@atlaskit/editor-plugin-table 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/commands/package.json +2 -2
- package/dist/cjs/plugins/table/commands/misc.js +1 -2
- package/dist/cjs/plugins/table/index.js +25 -34
- package/dist/cjs/plugins/table/transforms/column-width.js +0 -17
- package/dist/cjs/plugins/table/transforms/delete-columns.js +4 -13
- package/dist/cjs/plugins/table/transforms/delete-rows.js +4 -13
- package/dist/cjs/plugins/table/transforms/fix-tables.js +6 -24
- package/dist/cjs/plugins/table/transforms/index.js +0 -13
- package/dist/cjs/plugins/table/transforms/merge.js +5 -20
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/table/commands/misc.js +2 -3
- package/dist/es2019/plugins/table/index.js +21 -33
- package/dist/es2019/plugins/table/transforms/column-width.js +0 -17
- package/dist/es2019/plugins/table/transforms/delete-columns.js +4 -13
- package/dist/es2019/plugins/table/transforms/delete-rows.js +4 -13
- package/dist/es2019/plugins/table/transforms/fix-tables.js +0 -14
- package/dist/es2019/plugins/table/transforms/index.js +1 -2
- package/dist/es2019/plugins/table/transforms/merge.js +5 -21
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/table/commands/misc.js +2 -3
- package/dist/esm/plugins/table/index.js +25 -34
- package/dist/esm/plugins/table/transforms/column-width.js +0 -17
- package/dist/esm/plugins/table/transforms/delete-columns.js +4 -13
- package/dist/esm/plugins/table/transforms/delete-rows.js +4 -13
- package/dist/esm/plugins/table/transforms/fix-tables.js +0 -17
- package/dist/esm/plugins/table/transforms/index.js +1 -2
- package/dist/esm/plugins/table/transforms/merge.js +5 -21
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/cs.d.ts +6 -6
- package/dist/types/i18n/da.d.ts +6 -6
- package/dist/types/i18n/de.d.ts +6 -6
- package/dist/types/i18n/en.d.ts +6 -6
- package/dist/types/i18n/en_GB.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +6 -6
- package/dist/types/i18n/fi.d.ts +6 -6
- package/dist/types/i18n/fr.d.ts +6 -6
- package/dist/types/i18n/hu.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +6 -6
- package/dist/types/i18n/ja.d.ts +6 -6
- package/dist/types/i18n/ko.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +6 -6
- package/dist/types/i18n/nl.d.ts +6 -6
- package/dist/types/i18n/pl.d.ts +6 -6
- package/dist/types/i18n/pt_BR.d.ts +6 -6
- package/dist/types/i18n/ru.d.ts +6 -6
- package/dist/types/i18n/sv.d.ts +6 -6
- package/dist/types/i18n/th.d.ts +6 -6
- package/dist/types/i18n/tr.d.ts +6 -6
- package/dist/types/i18n/uk.d.ts +6 -6
- package/dist/types/i18n/vi.d.ts +6 -6
- package/dist/types/i18n/zh.d.ts +6 -6
- package/dist/types/i18n/zh_TW.d.ts +6 -6
- package/dist/types/plugins/table/commands/clear.d.ts +1 -1
- package/dist/types/plugins/table/commands/hover.d.ts +3 -3
- package/dist/types/plugins/table/commands/misc.d.ts +4 -4
- package/dist/types/plugins/table/commands-with-analytics.d.ts +2 -2
- package/dist/types/plugins/table/event-handlers.d.ts +3 -3
- package/dist/types/plugins/table/index.d.ts +9 -0
- package/dist/types/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +2 -2
- package/dist/types/plugins/table/nodeviews/table.d.ts +1 -1
- package/dist/types/plugins/table/nodeviews/types.d.ts +1 -1
- package/dist/types/plugins/table/nodeviews/update-overflow-shadows.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/decorations/utils/types.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/types.d.ts +5 -5
- package/dist/types/plugins/table/pm-plugins/table-resizing/commands.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +2 -2
- package/dist/types/plugins/table/transforms/fix-tables.d.ts +2 -3
- package/dist/types/plugins/table/transforms/index.d.ts +1 -2
- package/dist/types/plugins/table/transforms/replace-table.d.ts +1 -1
- package/dist/types/plugins/table/types.d.ts +11 -11
- package/dist/types/plugins/table/ui/FloatingDeleteButton/types.d.ts +1 -1
- package/dist/types/plugins/table/ui/ui-styles.d.ts +2 -2
- package/dist/types/plugins/table/utils/column-controls.d.ts +1 -1
- package/dist/types/plugins/table/utils/decoration.d.ts +1 -1
- package/dist/types/plugins/table/utils/dom.d.ts +2 -2
- package/dist/types/plugins/table/utils/row-controls.d.ts +1 -1
- package/dist/types/plugins/table/utils/selection.d.ts +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +35 -0
- package/dist/types-ts4.5/i18n/da.d.ts +33 -0
- package/dist/types-ts4.5/i18n/de.d.ts +33 -0
- package/dist/types-ts4.5/i18n/en.d.ts +35 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +35 -0
- package/dist/types-ts4.5/i18n/es.d.ts +33 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +33 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +35 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +35 -0
- package/dist/types-ts4.5/i18n/it.d.ts +35 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +35 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +33 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +33 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +35 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +35 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +35 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +35 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +33 -0
- package/dist/types-ts4.5/i18n/th.d.ts +33 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +35 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +35 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +33 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +35 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +35 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/plugins/table/commands/clear.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/commands/collapse.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/commands/go-to-next-cell.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table/commands/hover.d.ts +8 -0
- package/dist/types-ts4.5/plugins/table/commands/index.d.ts +8 -0
- package/dist/types-ts4.5/plugins/table/commands/insert.d.ts +10 -0
- package/dist/types-ts4.5/plugins/table/commands/misc.d.ts +27 -0
- package/dist/types-ts4.5/plugins/table/commands/referentiality.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/commands/selection.d.ts +8 -0
- package/dist/types-ts4.5/plugins/table/commands/sort.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/commands/split-cell.d.ts +6 -0
- package/dist/types-ts4.5/plugins/table/commands/toggle.d.ts +12 -0
- package/dist/types-ts4.5/plugins/table/commands-with-analytics.d.ts +26 -0
- package/dist/types-ts4.5/plugins/table/create-plugin-config.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/event-handlers.d.ts +16 -0
- package/dist/types-ts4.5/plugins/table/handlers.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/index.d.ts +30 -0
- package/dist/types-ts4.5/plugins/table/nodeviews/OverflowShadowsObserver.d.ts +25 -0
- package/dist/types-ts4.5/plugins/table/nodeviews/TableComponent.d.ts +73 -0
- package/dist/types-ts4.5/plugins/table/nodeviews/__mocks__/OverflowShadowsObserver.d.ts +9 -0
- package/dist/types-ts4.5/plugins/table/nodeviews/__mocks__/OverridableMock.d.ts +9 -0
- package/dist/types-ts4.5/plugins/table/nodeviews/table.d.ts +34 -0
- package/dist/types-ts4.5/plugins/table/nodeviews/tableCell.d.ts +19 -0
- package/dist/types-ts4.5/plugins/table/nodeviews/types.d.ts +24 -0
- package/dist/types-ts4.5/plugins/table/nodeviews/update-overflow-shadows.d.ts +8 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/plugin.d.ts +7 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/column-controls.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/column-resizing.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/compose-decorations.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/decorations/utils/types.d.ts +6 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/default-table-selection.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/keymap.d.ts +5 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/main.d.ts +8 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/plugin-factory.d.ts +1 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/safari-delete-composition-text-issue-workaround.d.ts +15 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/commands.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/index.d.ts +6 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/nodeviews/dom.d.ts +6 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +72 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/types.d.ts +16 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/sticky-headers/util.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-local-id.d.ts +22 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/commands.d.ts +25 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/index.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin-key.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/plugin.d.ts +6 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/colgroup.d.ts +15 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/column-state.d.ts +14 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/content-width.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +13 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/index.d.ts +12 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +22 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-column.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-logic.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +29 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/scale-table.d.ts +17 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +22 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-resizing/utils/unit-to-number.d.ts +1 -0
- package/dist/types-ts4.5/plugins/table/pm-plugins/table-selection-keymap.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table/reducer.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/toolbar.d.ts +37 -0
- package/dist/types-ts4.5/plugins/table/transforms/column-width.d.ts +18 -0
- package/dist/types-ts4.5/plugins/table/transforms/delete-columns.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/transforms/delete-rows.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/transforms/fix-tables.d.ts +9 -0
- package/dist/types-ts4.5/plugins/table/transforms/index.d.ts +6 -0
- package/dist/types-ts4.5/plugins/table/transforms/merge.d.ts +5 -0
- package/dist/types-ts4.5/plugins/table/transforms/replace-table.d.ts +5 -0
- package/dist/types-ts4.5/plugins/table/transforms/split.d.ts +9 -0
- package/dist/types-ts4.5/plugins/table/types.d.ts +332 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingContextualButton/index.d.ts +29 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingContextualButton/styles.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +88 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/index.d.ts +23 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingContextualMenu/styles.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/DeleteButton.d.ts +14 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.d.ts +10 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/index.d.ts +54 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingDeleteButton/types.d.ts +1 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/InsertButton.d.ts +12 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/getPopupOptions.d.ts +3 -0
- package/dist/types-ts4.5/plugins/table/ui/FloatingInsertButton/index.d.ts +35 -0
- package/dist/types-ts4.5/plugins/table/ui/LayoutButton/index.d.ts +21 -0
- package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/CornerControls/index.d.ts +16 -0
- package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/NumberColumn/index.d.ts +21 -0
- package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/RowControls/index.d.ts +17 -0
- package/dist/types-ts4.5/plugins/table/ui/TableFloatingControls/index.d.ts +40 -0
- package/dist/types-ts4.5/plugins/table/ui/common-styles.d.ts +8 -0
- package/dist/types-ts4.5/plugins/table/ui/consts.d.ts +39 -0
- package/dist/types-ts4.5/plugins/table/ui/messages.d.ts +58 -0
- package/dist/types-ts4.5/plugins/table/ui/ui-styles.d.ts +15 -0
- package/dist/types-ts4.5/plugins/table/utils/analytics.d.ts +18 -0
- package/dist/types-ts4.5/plugins/table/utils/collapse.d.ts +29 -0
- package/dist/types-ts4.5/plugins/table/utils/column-controls.d.ts +10 -0
- package/dist/types-ts4.5/plugins/table/utils/decoration.d.ts +16 -0
- package/dist/types-ts4.5/plugins/table/utils/dom.d.ts +20 -0
- package/dist/types-ts4.5/plugins/table/utils/get-allow-add-column-custom-step.d.ts +2 -0
- package/dist/types-ts4.5/plugins/table/utils/index.d.ts +11 -0
- package/dist/types-ts4.5/plugins/table/utils/nodes.d.ts +12 -0
- package/dist/types-ts4.5/plugins/table/utils/paste.d.ts +14 -0
- package/dist/types-ts4.5/plugins/table/utils/row-controls.d.ts +16 -0
- package/dist/types-ts4.5/plugins/table/utils/selection.d.ts +6 -0
- package/dist/types-ts4.5/plugins/table/utils/table.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table/utils/update-plugin-state-decorations.d.ts +4 -0
- package/dist/types-ts4.5/plugins/table-plugin.d.ts +2 -0
- package/dist/types-ts4.5/types/i18n.d.ts +5 -0
- package/examples/99-testing.tsx +4 -94
- package/package.json +19 -9
- package/plugin-key/package.json +2 -2
- package/report.api.md +11 -0
- package/src/__tests__/unit/analytics.ts +6 -0
- package/src/__tests__/unit/collab.ts +6 -0
- package/src/__tests__/unit/color-picker.ts +4 -0
- package/src/__tests__/unit/commands/go-to-next-cell.ts +8 -1
- package/src/__tests__/unit/commands/insert.ts +6 -0
- package/src/__tests__/unit/commands/misc.ts +14 -6
- package/src/__tests__/unit/commands/sort.ts +19 -12
- package/src/__tests__/unit/commands.ts +10 -2
- package/src/__tests__/unit/copy-paste.ts +6 -0
- package/src/__tests__/unit/event-handlers/index.ts +13 -8
- package/src/__tests__/unit/event-handlers.ts +13 -1
- package/src/__tests__/unit/fix-tables.ts +8 -4
- package/src/__tests__/unit/get-toolbar-config.ts +4 -0
- package/src/__tests__/unit/handlers.ts +8 -1
- package/src/__tests__/unit/hover-selection.ts +8 -1
- package/src/__tests__/unit/index.ts +10 -2
- package/src/__tests__/unit/keymap.ts +10 -4
- package/src/__tests__/unit/layout.ts +4 -0
- package/src/__tests__/unit/nodeviews/cell.ts +6 -0
- package/src/__tests__/unit/nodeviews/table.ts +16 -9
- package/src/__tests__/unit/pm-plugins/decorations/column-resizing.ts +14 -4
- package/src/__tests__/unit/pm-plugins/decorations/plugin.ts +8 -1
- package/src/__tests__/unit/pm-plugins/main-with-allow-collapse.ts +4 -0
- package/src/__tests__/unit/pm-plugins/main.ts +6 -0
- package/src/__tests__/unit/pm-plugins/safari-delete-composition-text-issue-workaround.ts +8 -4
- package/src/__tests__/unit/pm-plugins/sticky-headers/tableRow.tsx +13 -4
- package/src/__tests__/unit/pm-plugins/table-resizing/event-handlers.ts +6 -0
- package/src/__tests__/unit/pm-plugins/table-selection-keymap.ts +6 -0
- package/src/__tests__/unit/sort-column.ts +6 -0
- package/src/__tests__/unit/toolbar.ts +16 -9
- package/src/__tests__/unit/transforms/delete-columns.ts +8 -1
- package/src/__tests__/unit/transforms/delete-rows.ts +8 -1
- package/src/__tests__/unit/transforms/merging.ts +8 -1
- package/src/__tests__/unit/ui/ContextualMenu.tsx +8 -4
- package/src/__tests__/unit/ui/CornerControls.tsx +8 -1
- package/src/__tests__/unit/ui/FloatingContextualButton.tsx +8 -1
- package/src/__tests__/unit/ui/FloatingContextualMenu.tsx +8 -1
- package/src/__tests__/unit/ui/RowControls.tsx +8 -1
- package/src/__tests__/unit/ui/TableFloatingControls.tsx +8 -1
- package/src/__tests__/unit/undo-redo.ts +6 -0
- package/src/__tests__/unit/utils/collapse.ts +4 -0
- package/src/__tests__/unit/utils/nodes.ts +8 -1
- package/src/__tests__/unit/utils/row-controls.ts +8 -1
- package/src/__tests__/unit/utils.ts +8 -1
- package/src/plugins/table/commands/misc.ts +2 -4
- package/src/plugins/table/index.tsx +39 -40
- package/src/plugins/table/transforms/column-width.ts +0 -11
- package/src/plugins/table/transforms/delete-columns.ts +4 -5
- package/src/plugins/table/transforms/delete-rows.ts +4 -7
- package/src/plugins/table/transforms/fix-tables.ts +0 -17
- package/src/plugins/table/transforms/index.ts +1 -2
- package/src/plugins/table/transforms/merge.ts +9 -20
- package/types/package.json +2 -2
- package/ui/common-styles/package.json +2 -2
- package/ui/consts/package.json +2 -2
- package/dist/cjs/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.js +0 -79
- package/dist/cjs/plugins/table/transforms/metadata.js +0 -20
- package/dist/es2019/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.js +0 -71
- package/dist/es2019/plugins/table/transforms/metadata.js +0 -12
- package/dist/esm/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.js +0 -71
- package/dist/esm/plugins/table/transforms/metadata.js +0 -14
- package/dist/types/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.d.ts +0 -4
- package/dist/types/plugins/table/transforms/metadata.d.ts +0 -21
- package/src/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.ts +0 -78
- package/src/plugins/table/transforms/metadata.ts +0 -35
package/dist/types/i18n/hu.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
package/dist/types/i18n/it.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
package/dist/types/i18n/ja.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
package/dist/types/i18n/ko.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -24,10 +30,4 @@ declare const _default: {
|
|
|
24
30
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
25
31
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
26
32
|
};
|
|
27
|
-
/**
|
|
28
|
-
* NOTE:
|
|
29
|
-
*
|
|
30
|
-
* This file is automatically generated by Traduki 2.0.
|
|
31
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
32
|
-
*/
|
|
33
33
|
export default _default;
|
package/dist/types/i18n/nb.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -24,10 +30,4 @@ declare const _default: {
|
|
|
24
30
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
25
31
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
26
32
|
};
|
|
27
|
-
/**
|
|
28
|
-
* NOTE:
|
|
29
|
-
*
|
|
30
|
-
* This file is automatically generated by Traduki 2.0.
|
|
31
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
32
|
-
*/
|
|
33
33
|
export default _default;
|
package/dist/types/i18n/nl.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
package/dist/types/i18n/pl.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
package/dist/types/i18n/ru.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
package/dist/types/i18n/sv.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -24,10 +30,4 @@ declare const _default: {
|
|
|
24
30
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
25
31
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
26
32
|
};
|
|
27
|
-
/**
|
|
28
|
-
* NOTE:
|
|
29
|
-
*
|
|
30
|
-
* This file is automatically generated by Traduki 2.0.
|
|
31
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
32
|
-
*/
|
|
33
33
|
export default _default;
|
package/dist/types/i18n/th.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -24,10 +30,4 @@ declare const _default: {
|
|
|
24
30
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
25
31
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
26
32
|
};
|
|
27
|
-
/**
|
|
28
|
-
* NOTE:
|
|
29
|
-
*
|
|
30
|
-
* This file is automatically generated by Traduki 2.0.
|
|
31
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
32
|
-
*/
|
|
33
33
|
export default _default;
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
package/dist/types/i18n/uk.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -24,10 +30,4 @@ declare const _default: {
|
|
|
24
30
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
25
31
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
26
32
|
};
|
|
27
|
-
/**
|
|
28
|
-
* NOTE:
|
|
29
|
-
*
|
|
30
|
-
* This file is automatically generated by Traduki 2.0.
|
|
31
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
32
|
-
*/
|
|
33
33
|
export default _default;
|
package/dist/types/i18n/zh.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NOTE:
|
|
3
|
+
*
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
|
+
*/
|
|
1
7
|
declare const _default: {
|
|
2
8
|
'fabric.editor.canNotSortTable': string;
|
|
3
9
|
'fabric.editor.cellBackground': string;
|
|
@@ -26,10 +32,4 @@ declare const _default: {
|
|
|
26
32
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
27
33
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
28
34
|
};
|
|
29
|
-
/**
|
|
30
|
-
* NOTE:
|
|
31
|
-
*
|
|
32
|
-
* This file is automatically generated by Traduki 2.0.
|
|
33
|
-
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
34
|
-
*/
|
|
35
35
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Command } from '@atlaskit/editor-common/types';
|
|
2
|
-
export declare const clearMultipleCells: (targetCellPosition?: number
|
|
2
|
+
export declare const clearMultipleCells: (targetCellPosition?: number) => Command;
|
|
3
3
|
export declare const clearSelection: Command;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CellColumnPositioning } from '../types';
|
|
2
2
|
export declare const hoverMergedCells: () => import("@atlaskit/editor-common/types").Command;
|
|
3
|
-
export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean
|
|
4
|
-
export declare const hoverRows: (hoveredRows: number[], isInDanger?: boolean
|
|
5
|
-
export declare const hoverTable: (isInDanger?: boolean
|
|
3
|
+
export declare const hoverColumns: (hoveredColumns: number[], isInDanger?: boolean) => import("@atlaskit/editor-common/types").Command;
|
|
4
|
+
export declare const hoverRows: (hoveredRows: number[], isInDanger?: boolean) => import("@atlaskit/editor-common/types").Command;
|
|
5
|
+
export declare const hoverTable: (isInDanger?: boolean, isSelected?: boolean) => import("@atlaskit/editor-common/types").Command;
|
|
6
6
|
export declare const clearHoverSelection: () => import("@atlaskit/editor-common/types").Command;
|
|
7
7
|
export declare const showResizeHandleLine: (cellColumnPositioning: CellColumnPositioning) => import("@atlaskit/editor-common/types").Command;
|
|
8
8
|
export declare const hideResizeHandleLine: () => import("@atlaskit/editor-common/types").Command;
|
|
@@ -4,7 +4,7 @@ import { ContentNodeWithPos } from 'prosemirror-utils';
|
|
|
4
4
|
import { EditorView } from 'prosemirror-view';
|
|
5
5
|
import { Command } from '@atlaskit/editor-common/types';
|
|
6
6
|
export declare const setEditorFocus: (editorHasFocus: boolean) => Command;
|
|
7
|
-
export declare const setTableRef: (ref?: HTMLTableElement
|
|
7
|
+
export declare const setTableRef: (ref?: HTMLTableElement) => Command;
|
|
8
8
|
export declare const setCellAttr: (name: string, value: any) => Command;
|
|
9
9
|
export declare const triggerUnlessTableHeader: (command: Command) => Command;
|
|
10
10
|
export declare const transformSliceRemoveCellBackgroundColor: (slice: Slice, schema: Schema) => Slice;
|
|
@@ -14,9 +14,9 @@ export declare const deleteTable: Command;
|
|
|
14
14
|
export declare const deleteTableIfSelected: Command;
|
|
15
15
|
export declare const convertFirstRowToHeader: (schema: Schema) => (tr: Transaction) => Transaction;
|
|
16
16
|
export declare const moveCursorBackward: Command;
|
|
17
|
-
export declare const setMultipleCellAttrs: (attrs: Object, targetCellPosition?: number
|
|
18
|
-
export declare const selectColumn: (column: number, expand?: boolean
|
|
19
|
-
export declare const selectRow: (row: number, expand?: boolean
|
|
17
|
+
export declare const setMultipleCellAttrs: (attrs: Object, targetCellPosition?: number) => Command;
|
|
18
|
+
export declare const selectColumn: (column: number, expand?: boolean) => Command;
|
|
19
|
+
export declare const selectRow: (row: number, expand?: boolean) => Command;
|
|
20
20
|
export declare const showInsertColumnButton: (columnIndex: number) => Command;
|
|
21
21
|
export declare const showInsertRowButton: (rowIndex: number) => Command;
|
|
22
22
|
export declare const hideInsertColumnOrRowButton: () => Command;
|
|
@@ -6,10 +6,10 @@ import { InsertRowMethods, InsertRowOptions, RowInsertPosition } from './types';
|
|
|
6
6
|
import { TableSortOrder as SortOrder } from '@atlaskit/adf-schema/steps';
|
|
7
7
|
import { ResizeStateWithAnalytics } from './pm-plugins/table-resizing/utils';
|
|
8
8
|
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
9
|
-
export declare const emptyMultipleCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB, targetCellPosition?: number
|
|
9
|
+
export declare const emptyMultipleCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.FLOATING_TB, targetCellPosition?: number) => Command;
|
|
10
10
|
export declare const mergeCellsWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | null | undefined) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB) => Command;
|
|
11
11
|
export declare const splitCellWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB) => Command;
|
|
12
|
-
export declare const setColorWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB, cellColor: string, targetCellPosition?: number
|
|
12
|
+
export declare const setColorWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.FLOATING_TB, cellColor: string, targetCellPosition?: number) => Command;
|
|
13
13
|
export declare const addRowAroundSelection: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (side: RowInsertPosition) => Command;
|
|
14
14
|
export declare const insertRowWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: InsertRowMethods, options: InsertRowOptions) => Command;
|
|
15
15
|
export declare const insertColumnWithAnalytics: (getEditorContainerWidth: GetEditorContainerWidth, editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => (inputMethod: INPUT_METHOD.CONTEXT_MENU | INPUT_METHOD.BUTTON | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FLOATING_TB, position: number) => Command;
|
|
@@ -10,7 +10,7 @@ export declare const handleMouseOver: (view: EditorView, mouseEvent: Event) => b
|
|
|
10
10
|
export declare const handleMouseDown: (_: EditorView, event: Event) => boolean;
|
|
11
11
|
export declare const handleMouseOut: (view: EditorView, mouseEvent: Event) => boolean;
|
|
12
12
|
export declare const handleMouseLeave: (view: EditorView, event: Event) => boolean;
|
|
13
|
-
export declare const handleMouseMove: (getEditorFeatureFlags: GetEditorFeatureFlags) => (view: EditorView, event: Event, elementContentRects?: ElementContentRects
|
|
13
|
+
export declare const handleMouseMove: (getEditorFeatureFlags: GetEditorFeatureFlags) => (view: EditorView, event: Event, elementContentRects?: ElementContentRects) => boolean;
|
|
14
14
|
export declare function handleTripleClick(view: EditorView, pos: number): boolean;
|
|
15
|
-
export declare const handleCut: (oldTr: Transaction, oldState: EditorState, newState: EditorState, editorAnalyticsAPI?: EditorAnalyticsAPI
|
|
16
|
-
export declare const whenTableInFocus: (eventHandler: (view: EditorView, mouseEvent: Event, elementContentRects?: ElementContentRects
|
|
15
|
+
export declare const handleCut: (oldTr: Transaction, oldState: EditorState, newState: EditorState, editorAnalyticsAPI?: EditorAnalyticsAPI) => Transaction;
|
|
16
|
+
export declare const whenTableInFocus: (eventHandler: (view: EditorView, mouseEvent: Event, elementContentRects?: ElementContentRects) => boolean, elementContentRects?: ElementContentRects) => (view: EditorView, mouseEvent: Event) => boolean;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
+
import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
1
3
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
4
|
import type { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
|
|
3
5
|
import { PluginConfig } from './types';
|
|
4
6
|
import type { GetEditorFeatureFlags, NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
7
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
8
|
+
import type { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
|
|
5
9
|
interface TablePluginOptions {
|
|
6
10
|
tableOptions: PluginConfig;
|
|
7
11
|
breakoutEnabled?: boolean;
|
|
@@ -12,7 +16,12 @@ interface TablePluginOptions {
|
|
|
12
16
|
editorSelectionAPI?: EditorSelectionAPI;
|
|
13
17
|
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
14
18
|
}
|
|
19
|
+
type InsertTableAction = (analyticsPayload: AnalyticsEventPayload) => Command;
|
|
15
20
|
declare const tablesPlugin: NextEditorPlugin<'table', {
|
|
16
21
|
pluginConfiguration: TablePluginOptions | undefined;
|
|
22
|
+
actions: {
|
|
23
|
+
insertTable: InsertTableAction;
|
|
24
|
+
};
|
|
25
|
+
dependencies: [typeof analyticsPlugin, typeof contentInsertionPlugin];
|
|
17
26
|
}>;
|
|
18
27
|
export default tablesPlugin;
|
|
@@ -14,12 +14,12 @@ export declare class OverflowShadowsObserver {
|
|
|
14
14
|
private checkIntersectionEvent;
|
|
15
15
|
private updateStickyShadowsHeightIfChanged;
|
|
16
16
|
private getStickyCell;
|
|
17
|
-
observeShadowSentinels: (isSticky?: boolean
|
|
17
|
+
observeShadowSentinels: (isSticky?: boolean) => void;
|
|
18
18
|
/**
|
|
19
19
|
* Takes a heightStyle if it can be computed in a less expensive manner,
|
|
20
20
|
* e.g. bounds on an IntersectionObserverEntry, otherwise proceed with
|
|
21
21
|
* reading it from sticky cell
|
|
22
22
|
*/
|
|
23
|
-
updateStickyShadows: (stickyRowHeight?: number
|
|
23
|
+
updateStickyShadows: (stickyRowHeight?: number) => void;
|
|
24
24
|
dispose(): void;
|
|
25
25
|
}
|
|
@@ -7,7 +7,7 @@ import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
|
7
7
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
8
8
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
9
9
|
import { Props, TableOptions } from './types';
|
|
10
|
-
|
|
10
|
+
type ForwardRef = (node: HTMLElement | null) => void;
|
|
11
11
|
export default class TableView extends ReactNodeView<Props> {
|
|
12
12
|
private table;
|
|
13
13
|
private resizeObserver?;
|
|
@@ -3,7 +3,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
3
3
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
5
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
|
|
6
|
-
export
|
|
6
|
+
export type TableOptions = {
|
|
7
7
|
isBreakoutEnabled?: boolean;
|
|
8
8
|
isFullWidthModeEnabled?: boolean;
|
|
9
9
|
wasFullWidthModeEnabled?: boolean;
|
|
@@ -5,4 +5,4 @@ export declare const updateShadowListForStickyStyles: (heightStyle: string, shad
|
|
|
5
5
|
* Update overflow shadows for a given wrapper & table.
|
|
6
6
|
* if `overflowShadowOptimization` is enabled, this will exit early.
|
|
7
7
|
*/
|
|
8
|
-
export declare const updateOverflowShadows: (getEditorFeatureFlags: GetEditorFeatureFlags) => (editorState: EditorState, wrapper?: HTMLElement | null
|
|
8
|
+
export declare const updateOverflowShadows: (getEditorFeatureFlags: GetEditorFeatureFlags) => (editorState: EditorState, wrapper?: HTMLElement | null, table?: HTMLElement | null, rightShadows?: NodeListOf<HTMLElement> | null, leftShadows?: NodeListOf<HTMLElement> | null) => false | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReadonlyTransaction, Transaction } from 'prosemirror-state';
|
|
2
2
|
import { DecorationSet } from 'prosemirror-view';
|
|
3
|
-
export
|
|
3
|
+
export type DecorationTransformer = ({ decorationSet, tr, }: {
|
|
4
4
|
decorationSet: DecorationSet;
|
|
5
5
|
tr: Transaction | ReadonlyTransaction;
|
|
6
6
|
}) => DecorationSet;
|
|
@@ -5,4 +5,4 @@ import { PluginConfig } from '../types';
|
|
|
5
5
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
|
-
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, breakoutEnabled?: boolean
|
|
8
|
+
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, breakoutEnabled?: boolean, fullWidthModeEnabled?: boolean, previousFullWidthModeEnabled?: boolean, editorAnalyticsAPI?: EditorAnalyticsAPI) => SafePlugin<import("../types").TablePluginState, import("prosemirror-model").Schema<any, any>>;
|
|
@@ -59,7 +59,7 @@ export declare class TableRowNodeView implements NodeView {
|
|
|
59
59
|
onTablePluginState: (state: TablePluginState) => void;
|
|
60
60
|
updateStickyHeaderWidth: () => void;
|
|
61
61
|
shouldHeaderStick: (tree: TableDOMElements) => boolean;
|
|
62
|
-
makeHeaderRowSticky: (tree: TableDOMElements, scrollTop?: number
|
|
62
|
+
makeHeaderRowSticky: (tree: TableDOMElements, scrollTop?: number) => void;
|
|
63
63
|
makeRowHeaderNotSticky: (table: HTMLElement, isEditorDestroyed?: boolean) => void;
|
|
64
64
|
getWrapperoffset: (inverse?: boolean) => number;
|
|
65
65
|
getWrapperRefTop: (wrapper: HTMLElement) => number;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type RowStickyState = {
|
|
2
2
|
pos: number;
|
|
3
3
|
top: number;
|
|
4
4
|
padding: number;
|
|
5
5
|
sticky: boolean;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type StickyPluginState = RowStickyState[];
|
|
8
|
+
export type UpdateSticky = {
|
|
9
9
|
name: 'UPDATE';
|
|
10
10
|
state: RowStickyState;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type RemoveSticky = {
|
|
13
13
|
name: 'REMOVE';
|
|
14
14
|
pos: number;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type StickyPluginAction = UpdateSticky | RemoveSticky;
|
|
@@ -13,11 +13,11 @@ export declare const evenColumns: ({ resizeState, table, start, event, }: {
|
|
|
13
13
|
}) => Command;
|
|
14
14
|
export declare const distributeColumnsWidths: (newResizeState: ResizeState, table: ContentNodeWithPos) => Command;
|
|
15
15
|
export declare const setResizeHandlePos: (resizeHandlePos: number | null) => Command;
|
|
16
|
-
export declare const stopResizing: (tr?: Transaction
|
|
16
|
+
export declare const stopResizing: (tr?: Transaction) => Command;
|
|
17
17
|
export declare const setDragging: (dragging: {
|
|
18
18
|
startX: number;
|
|
19
19
|
startWidth: number;
|
|
20
|
-
} | null, tr?: Transaction
|
|
20
|
+
} | null, tr?: Transaction) => Command;
|
|
21
21
|
export declare const setLastClick: (lastClick: {
|
|
22
22
|
x: number;
|
|
23
23
|
y: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { EditorView } from 'prosemirror-view';
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { GetEditorContainerWidth, GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
-
export declare const handleMouseDown: (view: EditorView, event: MouseEvent, localResizeHandlePos: number, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, editorAnalyticsAPI?: EditorAnalyticsAPI
|
|
4
|
+
export declare const handleMouseDown: (view: EditorView, event: MouseEvent, localResizeHandlePos: number, getEditorContainerWidth: GetEditorContainerWidth, getEditorFeatureFlags: GetEditorFeatureFlags, editorAnalyticsAPI?: EditorAnalyticsAPI) => boolean;
|
|
@@ -9,5 +9,5 @@ export declare const isClickNear: (event: MouseEvent, click: {
|
|
|
9
9
|
export declare const getResizeCellPos: (view: EditorView, event: MouseEvent, lastColumnResizable: boolean) => number | null;
|
|
10
10
|
export declare const updateStickyMargins: (table: HTMLElement) => void;
|
|
11
11
|
export declare const applyColWidthsToStickyRow: (colGroup: HTMLTableColElement | null, headerRow: HTMLTableRowElement) => void;
|
|
12
|
-
export declare const syncStickyRowToTable: (tableRef?: HTMLElement | null
|
|
12
|
+
export declare const syncStickyRowToTable: (tableRef?: HTMLElement | null) => void;
|
|
13
13
|
export declare const applyTableWidthToStickyRow: (tableRef: HTMLElement, headerRow: HTMLTableRowElement) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ResizeState } from './types';
|
|
2
|
-
export declare const resizeColumn: (resizeState: ResizeState, colIndex: number, amount: number, tableRef: HTMLElement, selectedColumns?: number[]
|
|
2
|
+
export declare const resizeColumn: (resizeState: ResizeState, colIndex: number, amount: number, tableRef: HTMLElement, selectedColumns?: number[]) => ResizeState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ResizeState } from './types';
|
|
2
|
-
export declare const growColumn: (state: ResizeState, colIndex: number, amount: number, selectedColumns?: number[]
|
|
3
|
-
export declare const shrinkColumn: (state: ResizeState, colIndex: number, amount: number, selectedColumns?: number[]
|
|
2
|
+
export declare const growColumn: (state: ResizeState, colIndex: number, amount: number, selectedColumns?: number[]) => ResizeState;
|
|
3
|
+
export declare const shrinkColumn: (state: ResizeState, colIndex: number, amount: number, selectedColumns?: number[]) => ResizeState;
|
|
4
4
|
export declare function reduceSpace(state: ResizeState, amount: number, ignoreCols?: number[]): ResizeState;
|
|
@@ -2,9 +2,8 @@ import { Node as PMNode } from 'prosemirror-model';
|
|
|
2
2
|
import { Transaction } from 'prosemirror-state';
|
|
3
3
|
import { EditorView } from 'prosemirror-view';
|
|
4
4
|
import { ReportInvalidNodeAttrs } from '../types';
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const fixTables: (tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs | undefined) => Transaction | undefined;
|
|
5
|
+
export declare const removeExtraneousColumnWidths: (node: PMNode, basePos: number, tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs) => boolean;
|
|
6
|
+
export declare const fixTables: (tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs) => Transaction | undefined;
|
|
8
7
|
export declare const fixAutoSizedTable: (view: EditorView, tableNode: PMNode, tableRef: HTMLTableElement, tablePos: number, opts: {
|
|
9
8
|
containerWidth: number;
|
|
10
9
|
}) => Transaction;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { fixTables, fixAutoSizedTable } from './fix-tables';
|
|
2
2
|
export { mergeCells, canMergeCells, mergeEmptyColumns } from './merge';
|
|
3
3
|
export { deleteColumns } from './delete-columns';
|
|
4
4
|
export { deleteRows } from './delete-rows';
|
|
5
5
|
export { updateColumnWidths } from './column-width';
|
|
6
|
-
export { setMeta } from './metadata';
|
|
7
6
|
export { replaceSelectedTable } from './replace-table';
|
|
@@ -2,4 +2,4 @@ import { Transaction, EditorState } from 'prosemirror-state';
|
|
|
2
2
|
import { Slice } from 'prosemirror-model';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
|
-
export declare const replaceSelectedTable: (state: EditorState, content: string | Slice, inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.CLIPBOARD, editorAnalyticsAPI?: EditorAnalyticsAPI
|
|
5
|
+
export declare const replaceSelectedTable: (state: EditorState, content: string | Slice, inputMethod: INPUT_METHOD.KEYBOARD | INPUT_METHOD.CLIPBOARD, editorAnalyticsAPI?: EditorAnalyticsAPI) => Transaction;
|