Skip to content

Commit

Permalink
fix(maintainment): fix cjs issues with prosemirror-tables
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Jun 23, 2022
1 parent 482cb96 commit eb92597
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 63 deletions.
2 changes: 1 addition & 1 deletion demos/includeDependencies.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ prosemirror-keymap
prosemirror-model
prosemirror-schema-list
prosemirror-state
prosemirror-tables-contently
@_bdbch/prosemirror-tables
prosemirror-transform
prosemirror-view
react
Expand Down
52 changes: 26 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 1 addition & 25 deletions packages/extension-table/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/extension-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"prosemirror-model": "1.18.1",
"prosemirror-state": "1.4.0",
"prosemirror-tables-contently": "1.1.2",
"@_bdbch/prosemirror-tables": "1.1.3",
"prosemirror-view": "1.26.1"
},
"repository": {
Expand Down
18 changes: 9 additions & 9 deletions packages/extension-table/src/table.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
import {
callOrReturn,
getExtensionField,
mergeAttributes,
Node,
ParentConfig,
} from '@tiptap/core'
import { TextSelection } from 'prosemirror-state'
import {
addColumnAfter,
addColumnBefore,
Expand All @@ -24,7 +16,15 @@ import {
tableEditing,
toggleHeader,
toggleHeaderCell,
} from 'prosemirror-tables-contently'
} from '@_bdbch/prosemirror-tables'
import {
callOrReturn,
getExtensionField,
mergeAttributes,
Node,
ParentConfig,
} from '@tiptap/core'
import { TextSelection } from 'prosemirror-state'
import { NodeView } from 'prosemirror-view'

import { TableView } from './TableView'
Expand Down
2 changes: 1 addition & 1 deletion packages/extension-table/src/utilities/isCellSelection.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CellSelection } from 'prosemirror-tables-contently'
import { CellSelection } from '@_bdbch/prosemirror-tables'

export function isCellSelection(value: unknown): value is CellSelection {
return value instanceof CellSelection
Expand Down

0 comments on commit eb92597

Please sign in to comment.