@atlaskit/editor-core 172.1.2 → 172.2.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 +24 -0
- package/dist/cjs/analytics-api/api.js +38 -0
- package/dist/cjs/analytics-api/attach-payload-into-transaction.js +36 -0
- package/dist/cjs/analytics-api/editor-state-context.js +96 -0
- package/dist/cjs/analytics-api/map-attributes.js +30 -0
- package/dist/cjs/create-editor/ReactEditorView.js +47 -6
- package/dist/cjs/create-editor/ReactEditorViewContext.js +2 -6
- package/dist/cjs/create-editor/create-plugins-list.js +12 -3
- package/dist/cjs/event-dispatcher/index.js +12 -81
- package/dist/cjs/insert-api/api.js +48 -0
- package/dist/cjs/insert-api/insert-content-handlers.js +101 -0
- package/dist/cjs/insert-api/insert-node-helpers.js +157 -0
- package/dist/cjs/{plugins/analytics/types/avatar.js → insert-api/types.js} +0 -0
- package/dist/cjs/keymaps/index.js +437 -288
- package/dist/cjs/messages.js +8 -125
- package/dist/cjs/plugins/analytics/index.js +26 -26
- package/dist/cjs/plugins/analytics/types/enums.js +49 -344
- package/dist/cjs/plugins/analytics/types/extension-events.js +19 -26
- package/dist/cjs/plugins/analytics/types/general-events.js +25 -34
- package/dist/cjs/plugins/analytics/types/index.js +10 -56
- package/dist/cjs/plugins/analytics/types/inline-comment-events.js +7 -8
- package/dist/cjs/plugins/analytics/types/node-events.js +13 -20
- package/dist/cjs/plugins/analytics/types/smart-links.js +8 -14
- package/dist/cjs/plugins/analytics/types/toolbar-button.js +7 -20
- package/dist/cjs/plugins/analytics/utils.js +37 -127
- package/dist/cjs/plugins/expand/utils.js +18 -45
- package/dist/cjs/plugins/extension/actions.js +10 -30
- package/dist/cjs/plugins/extension/ui/Extension/styles.js +18 -8
- package/dist/cjs/plugins/insert-block/index.js +1 -0
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +31 -22
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/messages.js +6 -170
- package/dist/cjs/plugins/layout/styles.js +14 -6
- package/dist/cjs/plugins/layout/utils.js +25 -66
- package/dist/cjs/plugins/paste/handlers.js +19 -15
- package/dist/cjs/plugins/paste/util/index.js +30 -1
- package/dist/cjs/plugins/selection/gap-cursor/selection.js +23 -188
- package/dist/cjs/plugins/selection/gap-cursor/utils/is-ignored.js +7 -8
- package/dist/cjs/plugins/selection/gap-cursor/utils/is-valid-target-node.js +7 -8
- package/dist/cjs/plugins/selection/gap-cursor/utils.js +6 -6
- package/dist/cjs/plugins/selection/gap-cursor-selection.js +1 -1
- package/dist/cjs/plugins/selection/types.js +9 -11
- package/dist/cjs/plugins/selection/utils.js +2 -2
- package/dist/cjs/plugins/table/commands/go-to-next-cell.js +40 -38
- package/dist/cjs/plugins/table/commands/insert.js +57 -49
- package/dist/cjs/plugins/table/commands/selection.js +302 -218
- package/dist/cjs/plugins/table/commands-with-analytics.js +241 -219
- package/dist/cjs/plugins/table/event-handlers.js +60 -60
- package/dist/cjs/plugins/table/index.js +64 -20
- package/dist/cjs/plugins/table/nodeviews/TableComponent.js +20 -22
- package/dist/cjs/plugins/table/nodeviews/table.js +19 -11
- package/dist/cjs/plugins/table/nodeviews/tableCell.js +11 -13
- package/dist/cjs/plugins/table/nodeviews/update-overflow-shadows.js +25 -25
- package/dist/cjs/plugins/table/pm-plugins/keymap.js +15 -13
- package/dist/cjs/plugins/table/pm-plugins/main.js +8 -8
- package/dist/cjs/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +4 -8
- package/dist/cjs/plugins/table/pm-plugins/sticky-headers/plugin.js +2 -1
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/event-handlers.js +7 -10
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/plugin.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/dom.js +30 -28
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/misc.js +4 -7
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +3 -2
- package/dist/cjs/plugins/table/pm-plugins/table-selection-keymap.js +3 -3
- package/dist/cjs/plugins/table/toolbar.js +74 -72
- package/dist/cjs/plugins/table/transforms/column-width.js +41 -38
- package/dist/cjs/plugins/table/transforms/replace-table.js +4 -4
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +2 -4
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +25 -21
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/cjs/plugins/table/ui/FloatingDeleteButton/index.js +7 -4
- package/dist/cjs/plugins/table/ui/FloatingInsertButton/index.js +12 -11
- package/dist/cjs/plugins/table/ui/LayoutButton/index.js +2 -2
- package/dist/cjs/plugins/table/ui/TableFloatingControls/index.js +4 -6
- package/dist/cjs/plugins/table/ui/common-styles.js +3 -3
- package/dist/cjs/plugins/table/utils/analytics.js +26 -1
- package/dist/cjs/plugins/table/utils/index.js +0 -6
- package/dist/cjs/selection-api/api.js +34 -0
- package/dist/cjs/types/browser.js +1 -2
- package/dist/cjs/ui/ColorPalette/Color/index.js +2 -106
- package/dist/cjs/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +2 -21
- package/dist/cjs/ui/ColorPalette/Palettes/common.js +7 -25
- package/dist/cjs/ui/ColorPalette/Palettes/paletteMessages.js +2 -114
- package/dist/cjs/ui/ColorPalette/Palettes/panelBackgroundPalette.js +12 -152
- package/dist/cjs/ui/ColorPalette/Palettes/statusColorPalette.js +13 -61
- package/dist/cjs/ui/ColorPalette/Palettes/textColorPalette.js +12 -34
- package/dist/cjs/ui/ColorPalette/index.js +2 -76
- package/dist/cjs/ui/Dropdown/index.js +3 -119
- package/dist/cjs/ui/DropdownMenu/index.js +3 -286
- package/dist/cjs/ui/Toolbar/types.js +19 -33
- package/dist/cjs/ui/ToolbarButton/index.js +8 -120
- package/dist/cjs/ui/WithPluginState/index.js +1 -3
- package/dist/cjs/ui/styles.js +35 -27
- package/dist/cjs/ui/with-outer-listeners.js +4 -152
- package/dist/cjs/utils/dom.js +46 -123
- package/dist/cjs/utils/index.js +40 -42
- package/dist/cjs/utils/node-width.js +7 -79
- package/dist/cjs/utils/nodes.js +57 -124
- package/dist/cjs/utils/plugin-state-factory.js +7 -107
- package/dist/cjs/utils/selection.js +11 -62
- package/dist/cjs/utils/slice.js +28 -68
- package/dist/cjs/utils/step.js +18 -46
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics-api/api.js +30 -0
- package/dist/es2019/analytics-api/attach-payload-into-transaction.js +25 -0
- package/dist/es2019/analytics-api/editor-state-context.js +85 -0
- package/dist/es2019/analytics-api/map-attributes.js +14 -0
- package/dist/es2019/create-editor/ReactEditorView.js +33 -4
- package/dist/es2019/create-editor/ReactEditorViewContext.js +1 -2
- package/dist/es2019/create-editor/create-plugins-list.js +13 -4
- package/dist/es2019/event-dispatcher/index.js +1 -60
- package/dist/es2019/insert-api/api.js +43 -0
- package/dist/es2019/insert-api/insert-content-handlers.js +85 -0
- package/dist/es2019/insert-api/insert-node-helpers.js +149 -0
- package/dist/es2019/{plugins/analytics/types/avatar.js → insert-api/types.js} +0 -0
- package/dist/es2019/keymaps/index.js +1 -186
- package/dist/es2019/messages.js +2 -123
- package/dist/es2019/plugins/analytics/index.js +1 -1
- package/dist/es2019/plugins/analytics/types/enums.js +1 -336
- package/dist/es2019/plugins/analytics/types/extension-events.js +1 -22
- package/dist/es2019/plugins/analytics/types/general-events.js +1 -30
- package/dist/es2019/plugins/analytics/types/index.js +1 -6
- package/dist/es2019/plugins/analytics/types/inline-comment-events.js +1 -7
- package/dist/es2019/plugins/analytics/types/node-events.js +1 -18
- package/dist/es2019/plugins/analytics/types/smart-links.js +1 -12
- package/dist/es2019/plugins/analytics/types/toolbar-button.js +1 -19
- package/dist/es2019/plugins/analytics/utils.js +12 -113
- package/dist/es2019/plugins/expand/utils.js +1 -36
- package/dist/es2019/plugins/extension/actions.js +1 -26
- package/dist/es2019/plugins/extension/ui/Extension/styles.js +2 -3
- package/dist/es2019/plugins/insert-block/index.js +1 -0
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +22 -12
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/messages.js +1 -168
- package/dist/es2019/plugins/layout/styles.js +2 -3
- package/dist/es2019/plugins/layout/utils.js +1 -54
- package/dist/es2019/plugins/paste/handlers.js +8 -4
- package/dist/es2019/plugins/paste/util/index.js +23 -0
- package/dist/es2019/plugins/selection/gap-cursor/selection.js +1 -136
- package/dist/es2019/plugins/selection/gap-cursor/utils/is-ignored.js +1 -5
- package/dist/es2019/plugins/selection/gap-cursor/utils/is-valid-target-node.js +1 -4
- package/dist/es2019/plugins/selection/gap-cursor/utils.js +4 -4
- package/dist/es2019/plugins/selection/gap-cursor-selection.js +1 -1
- package/dist/es2019/plugins/selection/types.js +2 -9
- package/dist/es2019/plugins/selection/utils.js +1 -1
- package/dist/es2019/plugins/table/commands/go-to-next-cell.js +4 -4
- package/dist/es2019/plugins/table/commands/insert.js +26 -24
- package/dist/es2019/plugins/table/commands/selection.js +109 -51
- package/dist/es2019/plugins/table/commands-with-analytics.js +39 -38
- package/dist/es2019/plugins/table/event-handlers.js +6 -7
- package/dist/es2019/plugins/table/index.js +56 -16
- package/dist/es2019/plugins/table/nodeviews/TableComponent.js +11 -12
- package/dist/es2019/plugins/table/nodeviews/table.js +18 -8
- package/dist/es2019/plugins/table/nodeviews/tableCell.js +2 -3
- package/dist/es2019/plugins/table/nodeviews/update-overflow-shadows.js +3 -4
- package/dist/es2019/plugins/table/pm-plugins/keymap.js +13 -12
- package/dist/es2019/plugins/table/pm-plugins/main.js +8 -8
- package/dist/es2019/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +4 -6
- package/dist/es2019/plugins/table/pm-plugins/sticky-headers/plugin.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/event-handlers.js +7 -8
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/plugin.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/dom.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/misc.js +4 -4
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +3 -2
- package/dist/es2019/plugins/table/pm-plugins/table-selection-keymap.js +3 -3
- package/dist/es2019/plugins/table/toolbar.js +24 -24
- package/dist/es2019/plugins/table/transforms/column-width.js +3 -2
- package/dist/es2019/plugins/table/transforms/replace-table.js +4 -4
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +2 -2
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +19 -16
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/es2019/plugins/table/ui/FloatingDeleteButton/index.js +8 -4
- package/dist/es2019/plugins/table/ui/FloatingInsertButton/index.js +9 -6
- package/dist/es2019/plugins/table/ui/LayoutButton/index.js +2 -2
- package/dist/es2019/plugins/table/ui/TableFloatingControls/index.js +2 -3
- package/dist/es2019/plugins/table/ui/common-styles.js +1 -1
- package/dist/es2019/plugins/table/utils/analytics.js +16 -1
- package/dist/es2019/plugins/table/utils/index.js +1 -1
- package/dist/es2019/selection-api/api.js +22 -0
- package/dist/es2019/types/browser.js +0 -1
- package/dist/es2019/ui/ColorPalette/Color/index.js +1 -66
- package/dist/es2019/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -14
- package/dist/es2019/ui/ColorPalette/Palettes/common.js +1 -20
- package/dist/es2019/ui/ColorPalette/Palettes/paletteMessages.js +2 -113
- package/dist/es2019/ui/ColorPalette/Palettes/panelBackgroundPalette.js +1 -137
- package/dist/es2019/ui/ColorPalette/Palettes/statusColorPalette.js +1 -51
- package/dist/es2019/ui/ColorPalette/Palettes/textColorPalette.js +1 -25
- package/dist/es2019/ui/ColorPalette/index.js +2 -62
- package/dist/es2019/ui/Dropdown/index.js +2 -84
- package/dist/es2019/ui/DropdownMenu/index.js +2 -244
- package/dist/es2019/ui/Toolbar/types.js +1 -30
- package/dist/es2019/ui/ToolbarButton/index.js +2 -94
- package/dist/es2019/ui/WithPluginState/index.js +1 -1
- package/dist/es2019/ui/styles.js +9 -47
- package/dist/es2019/ui/with-outer-listeners.js +2 -104
- package/dist/es2019/utils/dom.js +1 -113
- package/dist/es2019/utils/index.js +2 -21
- package/dist/es2019/utils/node-width.js +1 -75
- package/dist/es2019/utils/nodes.js +1 -88
- package/dist/es2019/utils/plugin-state-factory.js +1 -107
- package/dist/es2019/utils/selection.js +2 -52
- package/dist/es2019/utils/slice.js +1 -56
- package/dist/es2019/utils/step.js +1 -35
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics-api/api.js +27 -0
- package/dist/esm/analytics-api/attach-payload-into-transaction.js +22 -0
- package/dist/esm/analytics-api/editor-state-context.js +81 -0
- package/dist/esm/analytics-api/map-attributes.js +20 -0
- package/dist/esm/create-editor/ReactEditorView.js +44 -6
- package/dist/esm/create-editor/ReactEditorViewContext.js +1 -2
- package/dist/esm/create-editor/create-plugins-list.js +15 -4
- package/dist/esm/event-dispatcher/index.js +1 -74
- package/dist/esm/insert-api/api.js +37 -0
- package/dist/esm/insert-api/insert-content-handlers.js +88 -0
- package/dist/esm/insert-api/insert-node-helpers.js +138 -0
- package/dist/{es2019/plugins/analytics/types/config-panel-events.js → esm/insert-api/types.js} +0 -0
- package/dist/esm/keymaps/index.js +1 -184
- package/dist/esm/messages.js +2 -123
- package/dist/esm/plugins/analytics/index.js +1 -1
- package/dist/esm/plugins/analytics/types/enums.js +1 -336
- package/dist/esm/plugins/analytics/types/extension-events.js +1 -22
- package/dist/esm/plugins/analytics/types/general-events.js +1 -30
- package/dist/esm/plugins/analytics/types/index.js +1 -6
- package/dist/esm/plugins/analytics/types/inline-comment-events.js +1 -7
- package/dist/esm/plugins/analytics/types/node-events.js +1 -18
- package/dist/esm/plugins/analytics/types/smart-links.js +1 -12
- package/dist/esm/plugins/analytics/types/toolbar-button.js +1 -19
- package/dist/esm/plugins/analytics/utils.js +12 -113
- package/dist/esm/plugins/expand/utils.js +1 -34
- package/dist/esm/plugins/extension/actions.js +1 -24
- package/dist/esm/plugins/extension/ui/Extension/styles.js +2 -3
- package/dist/esm/plugins/insert-block/index.js +1 -0
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +22 -12
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/messages.js +1 -168
- package/dist/esm/plugins/layout/styles.js +2 -3
- package/dist/esm/plugins/layout/utils.js +1 -58
- package/dist/esm/plugins/paste/handlers.js +8 -4
- package/dist/esm/plugins/paste/util/index.js +23 -0
- package/dist/esm/plugins/selection/gap-cursor/selection.js +1 -176
- package/dist/esm/plugins/selection/gap-cursor/utils/is-ignored.js +1 -5
- package/dist/esm/plugins/selection/gap-cursor/utils/is-valid-target-node.js +1 -4
- package/dist/esm/plugins/selection/gap-cursor/utils.js +4 -4
- package/dist/esm/plugins/selection/gap-cursor-selection.js +1 -1
- package/dist/esm/plugins/selection/types.js +2 -9
- package/dist/esm/plugins/selection/utils.js +1 -1
- package/dist/esm/plugins/table/commands/go-to-next-cell.js +34 -32
- package/dist/esm/plugins/table/commands/insert.js +57 -49
- package/dist/esm/plugins/table/commands/selection.js +303 -215
- package/dist/esm/plugins/table/commands-with-analytics.js +241 -220
- package/dist/esm/plugins/table/event-handlers.js +60 -59
- package/dist/esm/plugins/table/index.js +62 -18
- package/dist/esm/plugins/table/nodeviews/TableComponent.js +20 -21
- package/dist/esm/plugins/table/nodeviews/table.js +19 -9
- package/dist/esm/plugins/table/nodeviews/tableCell.js +11 -12
- package/dist/esm/plugins/table/nodeviews/update-overflow-shadows.js +25 -24
- package/dist/esm/plugins/table/pm-plugins/keymap.js +14 -13
- package/dist/esm/plugins/table/pm-plugins/main.js +8 -8
- package/dist/esm/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +4 -6
- package/dist/esm/plugins/table/pm-plugins/sticky-headers/plugin.js +2 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/event-handlers.js +7 -8
- package/dist/esm/plugins/table/pm-plugins/table-resizing/plugin.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/dom.js +30 -28
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/misc.js +4 -4
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +3 -2
- package/dist/esm/plugins/table/pm-plugins/table-selection-keymap.js +3 -3
- package/dist/esm/plugins/table/toolbar.js +75 -73
- package/dist/esm/plugins/table/transforms/column-width.js +41 -38
- package/dist/esm/plugins/table/transforms/replace-table.js +4 -4
- package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +2 -2
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +25 -21
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/esm/plugins/table/ui/FloatingDeleteButton/index.js +6 -4
- package/dist/esm/plugins/table/ui/FloatingInsertButton/index.js +9 -6
- package/dist/esm/plugins/table/ui/LayoutButton/index.js +2 -2
- package/dist/esm/plugins/table/ui/TableFloatingControls/index.js +4 -5
- package/dist/esm/plugins/table/ui/common-styles.js +1 -1
- package/dist/esm/plugins/table/utils/analytics.js +22 -1
- package/dist/esm/plugins/table/utils/index.js +1 -1
- package/dist/esm/selection-api/api.js +23 -0
- package/dist/esm/types/browser.js +0 -1
- package/dist/esm/ui/ColorPalette/Color/index.js +1 -93
- package/dist/esm/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -14
- package/dist/esm/ui/ColorPalette/Palettes/common.js +1 -19
- package/dist/esm/ui/ColorPalette/Palettes/paletteMessages.js +2 -113
- package/dist/esm/ui/ColorPalette/Palettes/panelBackgroundPalette.js +1 -147
- package/dist/esm/ui/ColorPalette/Palettes/statusColorPalette.js +1 -51
- package/dist/esm/ui/ColorPalette/Palettes/textColorPalette.js +1 -25
- package/dist/esm/ui/ColorPalette/index.js +2 -64
- package/dist/esm/ui/Dropdown/index.js +2 -106
- package/dist/esm/ui/DropdownMenu/index.js +2 -265
- package/dist/esm/ui/Toolbar/types.js +1 -30
- package/dist/esm/ui/ToolbarButton/index.js +2 -102
- package/dist/esm/ui/WithPluginState/index.js +1 -1
- package/dist/esm/ui/styles.js +17 -20
- package/dist/esm/ui/with-outer-listeners.js +2 -139
- package/dist/esm/utils/dom.js +1 -113
- package/dist/esm/utils/index.js +5 -23
- package/dist/esm/utils/node-width.js +1 -73
- package/dist/esm/utils/nodes.js +1 -100
- package/dist/esm/utils/plugin-state-factory.js +1 -106
- package/dist/esm/utils/selection.js +2 -50
- package/dist/esm/utils/slice.js +1 -59
- package/dist/esm/utils/step.js +1 -37
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +2 -16
- package/dist/types/analytics-api/api.d.ts +9 -0
- package/dist/types/analytics-api/attach-payload-into-transaction.d.ts +10 -0
- package/dist/types/analytics-api/editor-state-context.d.ts +9 -0
- package/dist/types/analytics-api/map-attributes.d.ts +2 -0
- package/dist/types/create-editor/ReactEditorView.d.ts +1 -0
- package/dist/types/create-editor/ReactEditorViewContext.d.ts +1 -7
- package/dist/types/create-editor/create-plugins-list.d.ts +5 -1
- package/dist/types/event-dispatcher/index.d.ts +2 -19
- package/dist/types/insert-api/api.d.ts +9 -0
- package/dist/types/insert-api/insert-content-handlers.d.ts +9 -0
- package/dist/types/insert-api/insert-node-helpers.d.ts +30 -0
- package/dist/types/insert-api/types.d.ts +16 -0
- package/dist/types/keymaps/index.d.ts +2 -89
- package/dist/types/labs/next/presets/cxhtml.d.ts +1 -1
- package/dist/types/labs/next/presets/mobile.d.ts +1 -1
- package/dist/types/messages.d.ts +2 -124
- package/dist/types/plugins/analytics/index.d.ts +2 -2
- package/dist/types/plugins/analytics/types/dispatch-analytics-event.d.ts +1 -2
- package/dist/types/plugins/analytics/types/enums.d.ts +1 -313
- package/dist/types/plugins/analytics/types/events.d.ts +1 -111
- package/dist/types/plugins/analytics/types/experimental-events.d.ts +1 -17
- package/dist/types/plugins/analytics/types/extension-events.d.ts +2 -43
- package/dist/types/plugins/analytics/types/general-events.d.ts +2 -179
- package/dist/types/plugins/analytics/types/index.d.ts +4 -14
- package/dist/types/plugins/analytics/types/inline-comment-events.d.ts +2 -17
- package/dist/types/plugins/analytics/types/link-tool-bar-events.d.ts +1 -76
- package/dist/types/plugins/analytics/types/media-events.d.ts +1 -16
- package/dist/types/plugins/analytics/types/node-events.d.ts +2 -56
- package/dist/types/plugins/analytics/types/selection-events.d.ts +1 -18
- package/dist/types/plugins/analytics/types/smart-links.d.ts +2 -13
- package/dist/types/plugins/analytics/types/toolbar-button.d.ts +2 -22
- package/dist/types/plugins/analytics/types/type-ahead.d.ts +1 -27
- package/dist/types/plugins/analytics/utils.d.ts +3 -8
- package/dist/types/plugins/annotation/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/util/state.d.ts +1 -1
- package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/context-panel/types.d.ts +1 -3
- package/dist/types/plugins/expand/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/expand/utils.d.ts +1 -5
- package/dist/types/plugins/extension/actions.d.ts +2 -6
- package/dist/types/plugins/extension/commands.d.ts +7 -7
- package/dist/types/plugins/extension/plugin-factory.d.ts +2 -2
- package/dist/types/plugins/extension/ui/Extension/styles.d.ts +2 -2
- package/dist/types/plugins/find-replace/commands.d.ts +7 -7
- package/dist/types/plugins/find-replace/plugin.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/types.d.ts +1 -153
- package/dist/types/plugins/floating-toolbar/ui/Button.d.ts +2 -1
- package/dist/types/plugins/floating-toolbar/ui/Select.d.ts +2 -12
- package/dist/types/plugins/floating-toolbar/ui/types.d.ts +1 -20
- package/dist/types/plugins/insert-block/index.d.ts +2 -0
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/messages.d.ts +1 -167
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +3 -1
- package/dist/types/plugins/layout/styles.d.ts +2 -2
- package/dist/types/plugins/layout/utils.d.ts +1 -15
- package/dist/types/plugins/media/commands/linking.d.ts +3 -3
- package/dist/types/plugins/media/nodeviews/mediaNodeView/index.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/alt-text/commands.d.ts +2 -2
- package/dist/types/plugins/media/pm-plugins/alt-text/index.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/linking/index.d.ts +1 -1
- package/dist/types/plugins/mobile-dimensions/commands.d.ts +4 -4
- package/dist/types/plugins/mobile-dimensions/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/paste/util/index.d.ts +2 -1
- package/dist/types/plugins/selection/commands.d.ts +1 -1
- package/dist/types/plugins/selection/gap-cursor/selection.d.ts +1 -40
- package/dist/types/plugins/selection/gap-cursor/utils/is-ignored.d.ts +1 -2
- package/dist/types/plugins/selection/gap-cursor/utils/is-valid-target-node.d.ts +1 -2
- package/dist/types/plugins/selection/gap-cursor-selection.d.ts +1 -1
- package/dist/types/plugins/selection/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/selection/types.d.ts +4 -19
- package/dist/types/plugins/table/commands/go-to-next-cell.d.ts +3 -2
- package/dist/types/plugins/table/commands/hover.d.ts +7 -7
- package/dist/types/plugins/table/commands/insert.d.ts +5 -4
- package/dist/types/plugins/table/commands/misc.d.ts +8 -8
- package/dist/types/plugins/table/commands/selection.d.ts +4 -3
- package/dist/types/plugins/table/commands/toggle.d.ts +1 -1
- package/dist/types/plugins/table/commands-with-analytics.d.ts +21 -19
- package/dist/types/plugins/table/event-handlers.d.ts +4 -2
- package/dist/types/plugins/table/index.d.ts +7 -0
- package/dist/types/plugins/table/nodeviews/TableComponent.d.ts +4 -2
- package/dist/types/plugins/table/nodeviews/table.d.ts +2 -1
- package/dist/types/plugins/table/nodeviews/tableCell.d.ts +2 -1
- package/dist/types/plugins/table/nodeviews/types.d.ts +3 -0
- package/dist/types/plugins/table/nodeviews/update-overflow-shadows.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/keymap.d.ts +3 -1
- package/dist/types/plugins/table/pm-plugins/main.d.ts +4 -2
- package/dist/types/plugins/table/pm-plugins/plugin-factory.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/commands.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/plugin-state.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/sticky-headers/plugin.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/commands.d.ts +4 -4
- package/dist/types/plugins/table/pm-plugins/table-resizing/event-handlers.d.ts +3 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/plugin-factory.d.ts +2 -2
- package/dist/types/plugins/table/pm-plugins/table-resizing/plugin.d.ts +3 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/dom.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/misc.d.ts +3 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/resize-state.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/table-selection-keymap.d.ts +2 -1
- package/dist/types/plugins/table/toolbar.d.ts +5 -3
- package/dist/types/plugins/table/transforms/column-width.d.ts +2 -1
- package/dist/types/plugins/table/transforms/replace-table.d.ts +3 -2
- package/dist/types/plugins/table/types.d.ts +3 -1
- package/dist/types/plugins/table/ui/FloatingContextualButton/index.d.ts +1 -1
- package/dist/types/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +4 -0
- package/dist/types/plugins/table/ui/FloatingContextualMenu/index.d.ts +5 -1
- package/dist/types/plugins/table/ui/FloatingDeleteButton/index.d.ts +2 -0
- package/dist/types/plugins/table/ui/FloatingInsertButton/index.d.ts +5 -1
- package/dist/types/plugins/table/ui/LayoutButton/index.d.ts +2 -0
- package/dist/types/plugins/table/ui/TableFloatingControls/index.d.ts +2 -0
- package/dist/types/plugins/table/utils/analytics.d.ts +3 -0
- package/dist/types/plugins/table/utils/index.d.ts +1 -1
- package/dist/types/plugins/type-ahead/types.d.ts +2 -50
- package/dist/types/plugins/width/index.d.ts +3 -6
- package/dist/types/selection-api/api.d.ts +11 -0
- package/dist/types/types/browser.d.ts +1 -10
- package/dist/types/types/editor-appearance.d.ts +1 -1
- package/dist/types/types/editor-plugin.d.ts +1 -59
- package/dist/types/types/editor-react-context.d.ts +1 -6
- package/dist/types/types/empty-state-handler.d.ts +1 -7
- package/dist/types/types/feature-flags.d.ts +1 -343
- package/dist/types/types/pm-config.d.ts +1 -14
- package/dist/types/types/pm-plugin.d.ts +1 -27
- package/dist/types/types/ui-components.d.ts +1 -22
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +118 -118
- package/dist/types/ui/ColorPalette/Color/index.d.ts +1 -19
- package/dist/types/ui/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +1 -2
- package/dist/types/ui/ColorPalette/Palettes/common.d.ts +1 -1
- package/dist/types/ui/ColorPalette/Palettes/paletteMessages.d.ts +2 -113
- package/dist/types/ui/ColorPalette/Palettes/panelBackgroundPalette.d.ts +1 -3
- package/dist/types/ui/ColorPalette/Palettes/statusColorPalette.d.ts +1 -3
- package/dist/types/ui/ColorPalette/Palettes/textColorPalette.d.ts +1 -3
- package/dist/types/ui/ColorPalette/Palettes/type.d.ts +1 -8
- package/dist/types/ui/ColorPalette/index.d.ts +2 -23
- package/dist/types/ui/ColorPickerButton/index.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/Dropdown/index.d.ts +2 -33
- package/dist/types/ui/DropdownMenu/index.d.ts +2 -18
- package/dist/types/ui/DropdownMenu/types.d.ts +1 -43
- package/dist/types/ui/Toolbar/types.d.ts +2 -30
- package/dist/types/ui/ToolbarButton/index.d.ts +3 -52
- package/dist/types/ui/styles.d.ts +3 -3
- package/dist/types/ui/with-outer-listeners.d.ts +2 -10
- package/dist/types/utils/document-logger.d.ts +2 -7
- package/dist/types/utils/dom.d.ts +2 -26
- package/dist/types/utils/index.d.ts +3 -6
- package/dist/types/utils/node-width.d.ts +1 -7
- package/dist/types/utils/nodes.d.ts +1 -35
- package/dist/types/utils/performance/plugin-performance-report.d.ts +2 -25
- package/dist/types/utils/plugin-state-factory.d.ts +2 -16
- package/dist/types/utils/selection.d.ts +3 -6
- package/dist/types/utils/slice.d.ts +2 -11
- package/dist/types/utils/step.d.ts +1 -15
- package/package.json +5 -6
- package/dist/cjs/plugins/analytics/types/config-panel-events.js +0 -5
- package/dist/cjs/plugins/analytics/types/cut-copy-events.js +0 -5
- package/dist/cjs/plugins/analytics/types/date-events.js +0 -5
- package/dist/cjs/plugins/analytics/types/element-browser-events.js +0 -5
- package/dist/cjs/plugins/analytics/types/find-replace-events.js +0 -5
- package/dist/cjs/plugins/analytics/types/format-events.js +0 -24
- package/dist/cjs/plugins/analytics/types/insert-events.js +0 -51
- package/dist/cjs/plugins/analytics/types/list-events.js +0 -25
- package/dist/cjs/plugins/analytics/types/paste-events.js +0 -55
- package/dist/cjs/plugins/analytics/types/substitute-events.js +0 -24
- package/dist/cjs/plugins/analytics/types/table-events.js +0 -43
- package/dist/cjs/plugins/analytics/types/utils.js +0 -27
- package/dist/cjs/ui/ColorPalette/Color/styles.js +0 -21
- package/dist/cjs/ui/ColorPalette/Palettes/getColorMessage.js +0 -17
- package/dist/cjs/ui/ColorPalette/styles.js +0 -19
- package/dist/cjs/ui/DropList/index.js +0 -215
- package/dist/cjs/ui/Layer/index.js +0 -245
- package/dist/cjs/ui/Layer/internal/helpers.js +0 -70
- package/dist/cjs/ui/ToolbarButton/styles.js +0 -26
- package/dist/es2019/plugins/analytics/types/cut-copy-events.js +0 -1
- package/dist/es2019/plugins/analytics/types/date-events.js +0 -1
- package/dist/es2019/plugins/analytics/types/element-browser-events.js +0 -1
- package/dist/es2019/plugins/analytics/types/find-replace-events.js +0 -1
- package/dist/es2019/plugins/analytics/types/format-events.js +0 -16
- package/dist/es2019/plugins/analytics/types/insert-events.js +0 -41
- package/dist/es2019/plugins/analytics/types/list-events.js +0 -17
- package/dist/es2019/plugins/analytics/types/paste-events.js +0 -46
- package/dist/es2019/plugins/analytics/types/substitute-events.js +0 -16
- package/dist/es2019/plugins/analytics/types/table-events.js +0 -34
- package/dist/es2019/plugins/analytics/types/utils.js +0 -19
- package/dist/es2019/ui/ColorPalette/Color/styles.js +0 -24
- package/dist/es2019/ui/ColorPalette/Palettes/getColorMessage.js +0 -14
- package/dist/es2019/ui/ColorPalette/styles.js +0 -7
- package/dist/es2019/ui/DropList/index.js +0 -186
- package/dist/es2019/ui/Layer/index.js +0 -195
- package/dist/es2019/ui/Layer/internal/helpers.js +0 -62
- package/dist/es2019/ui/ToolbarButton/styles.js +0 -12
- package/dist/esm/plugins/analytics/types/avatar.js +0 -1
- package/dist/esm/plugins/analytics/types/config-panel-events.js +0 -1
- package/dist/esm/plugins/analytics/types/cut-copy-events.js +0 -1
- package/dist/esm/plugins/analytics/types/date-events.js +0 -1
- package/dist/esm/plugins/analytics/types/element-browser-events.js +0 -1
- package/dist/esm/plugins/analytics/types/find-replace-events.js +0 -1
- package/dist/esm/plugins/analytics/types/format-events.js +0 -16
- package/dist/esm/plugins/analytics/types/insert-events.js +0 -41
- package/dist/esm/plugins/analytics/types/list-events.js +0 -17
- package/dist/esm/plugins/analytics/types/paste-events.js +0 -46
- package/dist/esm/plugins/analytics/types/substitute-events.js +0 -16
- package/dist/esm/plugins/analytics/types/table-events.js +0 -34
- package/dist/esm/plugins/analytics/types/utils.js +0 -19
- package/dist/esm/ui/ColorPalette/Color/styles.js +0 -8
- package/dist/esm/ui/ColorPalette/Palettes/getColorMessage.js +0 -10
- package/dist/esm/ui/ColorPalette/styles.js +0 -7
- package/dist/esm/ui/DropList/index.js +0 -203
- package/dist/esm/ui/Layer/index.js +0 -228
- package/dist/esm/ui/Layer/internal/helpers.js +0 -62
- package/dist/esm/ui/ToolbarButton/styles.js +0 -12
- package/dist/types/plugins/analytics/types/avatar.d.ts +0 -5
- package/dist/types/plugins/analytics/types/config-panel-events.d.ts +0 -17
- package/dist/types/plugins/analytics/types/cut-copy-events.d.ts +0 -12
- package/dist/types/plugins/analytics/types/date-events.d.ts +0 -17
- package/dist/types/plugins/analytics/types/element-browser-events.d.ts +0 -11
- package/dist/types/plugins/analytics/types/find-replace-events.d.ts +0 -23
- package/dist/types/plugins/analytics/types/format-events.d.ts +0 -49
- package/dist/types/plugins/analytics/types/insert-events.d.ts +0 -128
- package/dist/types/plugins/analytics/types/list-events.d.ts +0 -52
- package/dist/types/plugins/analytics/types/paste-events.d.ts +0 -39
- package/dist/types/plugins/analytics/types/substitute-events.d.ts +0 -26
- package/dist/types/plugins/analytics/types/table-events.d.ts +0 -94
- package/dist/types/plugins/analytics/types/utils.d.ts +0 -45
- package/dist/types/ui/ColorPalette/Color/styles.d.ts +0 -2
- package/dist/types/ui/ColorPalette/Palettes/getColorMessage.d.ts +0 -2
- package/dist/types/ui/ColorPalette/styles.d.ts +0 -1
- package/dist/types/ui/DropList/index.d.ts +0 -22
- package/dist/types/ui/Layer/index.d.ts +0 -47
- package/dist/types/ui/Layer/internal/helpers.d.ts +0 -5
- package/dist/types/ui/ToolbarButton/styles.d.ts +0 -4
|
@@ -2,9 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import { Node as PmNode } from 'prosemirror-model';
|
|
3
3
|
import { EditorView } from 'prosemirror-view';
|
|
4
4
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
import { DispatchAnalyticsEvent } from '
|
|
5
|
+
import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
7
|
+
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
6
8
|
export interface Props {
|
|
7
9
|
editorView: EditorView;
|
|
10
|
+
getEditorContainerWidth: GetEditorContainerWidth;
|
|
8
11
|
tableRef?: HTMLElement;
|
|
9
12
|
tableNode?: PmNode;
|
|
10
13
|
insertColumnButtonIndex?: number;
|
|
@@ -16,6 +19,7 @@ export interface Props {
|
|
|
16
19
|
scrollableElement?: HTMLElement;
|
|
17
20
|
hasStickyHeaders?: boolean;
|
|
18
21
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
22
|
+
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
19
23
|
}
|
|
20
24
|
export declare class FloatingInsertButton extends React.Component<Props & WrappedComponentProps, any> {
|
|
21
25
|
static displayName: string;
|
|
@@ -3,6 +3,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
3
3
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { TableLayout } from '@atlaskit/adf-schema';
|
|
5
5
|
import { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
6
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
7
|
export interface Props {
|
|
7
8
|
editorView: EditorView;
|
|
8
9
|
targetRef?: HTMLElement;
|
|
@@ -12,6 +13,7 @@ export interface Props {
|
|
|
12
13
|
isResizing?: boolean;
|
|
13
14
|
layout?: TableLayout;
|
|
14
15
|
stickyHeader?: RowStickyState;
|
|
16
|
+
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
15
17
|
}
|
|
16
18
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
17
19
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
@@ -3,8 +3,10 @@ import { Selection } from 'prosemirror-state';
|
|
|
3
3
|
import { EditorView } from 'prosemirror-view';
|
|
4
4
|
import type { TableColumnOrdering } from '@atlaskit/adf-schema/steps';
|
|
5
5
|
import { RowStickyState } from '../../pm-plugins/sticky-headers';
|
|
6
|
+
import type { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
6
7
|
export interface Props {
|
|
7
8
|
editorView: EditorView;
|
|
9
|
+
getEditorFeatureFlags: GetEditorFeatureFlags;
|
|
8
10
|
selection?: Selection;
|
|
9
11
|
tableRef?: HTMLTableElement;
|
|
10
12
|
tableActive?: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Selection } from 'prosemirror-state';
|
|
2
2
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
3
|
+
import type { AnalyticsEventPayload, AnalyticsEventPayloadCallback, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
import { HigherOrderCommand } from '@atlaskit/editor-common/types';
|
|
3
5
|
export declare function getSelectedTableInfo(selection: Selection): {
|
|
4
6
|
table: import("prosemirror-utils").ContentNodeWithPos | undefined;
|
|
5
7
|
map: TableMap | undefined;
|
|
@@ -13,3 +15,4 @@ export declare function getSelectedCellInfo(selection: Selection): {
|
|
|
13
15
|
verticalCells: number;
|
|
14
16
|
totalCells: number;
|
|
15
17
|
};
|
|
18
|
+
export declare const withEditorAnalyticsAPI: (payload: AnalyticsEventPayload | AnalyticsEventPayloadCallback) => (editorAnalyticsAPI: EditorAnalyticsAPI | undefined | null) => HigherOrderCommand;
|
|
@@ -3,7 +3,7 @@ export { findControlsHoverDecoration, createControlsHoverDecoration, createColum
|
|
|
3
3
|
export { isIsolating, containsHeaderColumn, containsHeaderRow, checkIfHeaderColumnEnabled, checkIfHeaderRowEnabled, checkIfNumberColumnEnabled, isLayoutSupported, getTableWidth, tablesHaveDifferentColumnWidths, tablesHaveDifferentNoOfColumns, } from './nodes';
|
|
4
4
|
export { unwrapContentFromTable, removeTableFromFirstChild, removeTableFromLastChild, transformSliceToRemoveOpenTable, transformSliceToCorrectEmptyTableCells, transformSliceToFixHardBreakProblemOnCopyFromCell, } from './paste';
|
|
5
5
|
export { isCell, isCornerButton, isInsertRowButton, isColumnControlsDecorations, isTableControlsButton, isTableContainerOrWrapper, isRowControlsButton, getColumnOrRowIndex, getMousePositionHorizontalRelativeByElement, getMousePositionVerticalRelativeByElement, updateResizeHandles, isResizeHandleDecoration, hasResizeHandler, } from './dom';
|
|
6
|
-
export {
|
|
6
|
+
export { isColumnDeleteButtonVisible, getColumnDeleteButtonParams, getColumnClassNames, } from './column-controls';
|
|
7
7
|
export { getRowHeights, isRowDeleteButtonVisible, getRowDeleteButtonParams, getRowsParams, getRowClassNames, copyPreviousRow, } from './row-controls';
|
|
8
8
|
export type { RowParams } from './row-controls';
|
|
9
9
|
export { getSelectedTableInfo, getSelectedCellInfo } from './analytics';
|
|
@@ -1,30 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Node as PMNode, Fragment } from 'prosemirror-model';
|
|
3
1
|
import type { DecorationSet } from 'prosemirror-view';
|
|
4
|
-
import type { TypeAheadItem, TypeAheadItemRenderProps } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
6
2
|
import { EditorState, Transaction, ReadonlyTransaction } from 'prosemirror-state';
|
|
7
3
|
import type { INPUT_METHOD } from '../analytics/types/enums';
|
|
8
|
-
import type { TypeAheadPayload } from '../analytics/types/type-ahead';
|
|
9
4
|
import type { CloseSelectionOptions } from './constants';
|
|
10
5
|
import type { UiComponentFactoryParams } from '../../types/ui-components';
|
|
11
6
|
import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
selectInlineNode?: boolean;
|
|
15
|
-
}) => Transaction;
|
|
7
|
+
import type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
8
|
+
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, };
|
|
16
9
|
export declare type OnSelectItem = (props: {
|
|
17
10
|
index: number;
|
|
18
11
|
item: TypeAheadItem;
|
|
19
12
|
}) => void;
|
|
20
|
-
export interface TypeAheadStats {
|
|
21
|
-
startedAt: number;
|
|
22
|
-
endedAt: number;
|
|
23
|
-
keyCount: {
|
|
24
|
-
arrowUp: number;
|
|
25
|
-
arrowDown: number;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
13
|
export interface TypeAheadStatsSerializable extends TypeAheadStats {
|
|
29
14
|
serialize: () => TypeAheadStats;
|
|
30
15
|
}
|
|
@@ -36,39 +21,6 @@ export interface TypeAheadStatsMobileModifier extends TypeAheadStatsSerializable
|
|
|
36
21
|
resetTime: () => void;
|
|
37
22
|
closeTime: () => void;
|
|
38
23
|
}
|
|
39
|
-
export declare type TypeAheadSelectItem = (state: EditorState, item: TypeAheadItem, insert: TypeAheadInsert, meta: {
|
|
40
|
-
mode: SelectItemMode;
|
|
41
|
-
stats: TypeAheadStats;
|
|
42
|
-
query: string;
|
|
43
|
-
sourceListItem: Array<TypeAheadItem>;
|
|
44
|
-
}) => Transaction | false;
|
|
45
|
-
declare type TypeAheadForceSelectProps = {
|
|
46
|
-
query: string;
|
|
47
|
-
items: Array<TypeAheadItem>;
|
|
48
|
-
editorState: EditorState;
|
|
49
|
-
};
|
|
50
|
-
export declare type TypeAheadForceSelect = (props: TypeAheadForceSelectProps) => TypeAheadItem | undefined;
|
|
51
|
-
export declare type TypeAheadHandler = {
|
|
52
|
-
id: TypeAheadAvailableNodes;
|
|
53
|
-
trigger: string;
|
|
54
|
-
customRegex?: string;
|
|
55
|
-
headless?: boolean;
|
|
56
|
-
forceSelect?: TypeAheadForceSelect;
|
|
57
|
-
onInvokeAnalytics?: TypeAheadPayload;
|
|
58
|
-
onOpen?: (editorState: EditorState) => void;
|
|
59
|
-
getItems: (props: {
|
|
60
|
-
query: string;
|
|
61
|
-
editorState: EditorState;
|
|
62
|
-
}) => Promise<Array<TypeAheadItem>>;
|
|
63
|
-
selectItem: TypeAheadSelectItem;
|
|
64
|
-
dismiss?: (props: {
|
|
65
|
-
editorState: EditorState;
|
|
66
|
-
query: string;
|
|
67
|
-
stats: TypeAheadStats;
|
|
68
|
-
wasItemInserted?: boolean;
|
|
69
|
-
}) => void;
|
|
70
|
-
getHighlight?: (state: EditorState) => JSX.Element | null;
|
|
71
|
-
};
|
|
72
24
|
export declare type TypeAheadPluginState = {
|
|
73
25
|
decorationSet: DecorationSet;
|
|
74
26
|
decorationElement: HTMLElement | null;
|
|
@@ -2,12 +2,9 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
3
|
import { Dispatch } from '../../event-dispatcher';
|
|
4
4
|
import { EditorPlugin } from '../../types';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
lineLength?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const pluginKey: PluginKey<WidthPluginState, any>;
|
|
5
|
+
import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
6
|
+
export declare type WidthPluginState = EditorContainerWidth;
|
|
7
|
+
export declare const pluginKey: PluginKey<EditorContainerWidth, any>;
|
|
11
8
|
export declare function createPlugin(dispatch: Dispatch<WidthPluginState>): SafePlugin | undefined;
|
|
12
9
|
declare const widthPlugin: () => EditorPlugin;
|
|
13
10
|
export default widthPlugin;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
|
|
2
|
+
import type { Transaction, Selection, EditorState } from 'prosemirror-state';
|
|
3
|
+
import type { SelectionPluginState } from '../plugins/selection/types';
|
|
4
|
+
export declare type EditorSelectionAPI = {
|
|
5
|
+
setSelectionRelativeToNode: (props: {
|
|
6
|
+
selectionRelativeToNode?: RelativeSelectionPos;
|
|
7
|
+
selection?: Selection | null;
|
|
8
|
+
}) => (state: EditorState) => Transaction;
|
|
9
|
+
getSelectionPluginState: (state: EditorState) => SelectionPluginState;
|
|
10
|
+
};
|
|
11
|
+
export declare const createEditorSelectionAPI: () => EditorSelectionAPI;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type Browsers = typeof SupportedBrowsers[number];
|
|
3
|
-
export declare type Range = {
|
|
4
|
-
minimum: number;
|
|
5
|
-
maximum?: number;
|
|
6
|
-
};
|
|
7
|
-
export declare type DisableSpellcheckByBrowser = {
|
|
8
|
-
[b in Browsers]?: Range;
|
|
9
|
-
};
|
|
10
|
-
export {};
|
|
1
|
+
export type { Browsers, Range, DisableSpellcheckByBrowser, } from '@atlaskit/editor-common/types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
@@ -1,59 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { TypeAheadHandler } from '../plugins/type-ahead/types';
|
|
3
|
-
import { FloatingToolbarHandler } from '../plugins/floating-toolbar/types';
|
|
4
|
-
import { ContextPanelHandler } from '../plugins/context-panel/types';
|
|
5
|
-
import { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
|
|
6
|
-
import { PMPlugin } from './pm-plugin';
|
|
7
|
-
import { MarkConfig, NodeConfig } from './pm-config';
|
|
8
|
-
import { UIComponentFactory } from './ui-components';
|
|
9
|
-
import { Transaction, EditorState } from 'prosemirror-state';
|
|
10
|
-
export declare type PluginsOptions = {
|
|
11
|
-
[pluginName: string]: any;
|
|
12
|
-
quickInsert?: QuickInsertHandler;
|
|
13
|
-
typeAhead?: TypeAheadHandler;
|
|
14
|
-
floatingToolbar?: FloatingToolbarHandler;
|
|
15
|
-
contextPanel?: ContextPanelHandler;
|
|
16
|
-
};
|
|
17
|
-
declare type EditorViewStateUpdatedCallbackProps = {
|
|
18
|
-
readonly originalTransaction: Readonly<Transaction>;
|
|
19
|
-
readonly transactions: Transaction[];
|
|
20
|
-
readonly oldEditorState: Readonly<EditorState>;
|
|
21
|
-
readonly newEditorState: Readonly<EditorState>;
|
|
22
|
-
};
|
|
23
|
-
export interface EditorPlugin {
|
|
24
|
-
/**
|
|
25
|
-
* Name of a plugin, that other plugins can use to provide options to it or exclude via a preset.
|
|
26
|
-
*/
|
|
27
|
-
name: string;
|
|
28
|
-
/**
|
|
29
|
-
* Options that will be passed to a plugin with a corresponding name if it exists and enabled.
|
|
30
|
-
*/
|
|
31
|
-
pluginsOptions?: PluginsOptions;
|
|
32
|
-
/**
|
|
33
|
-
* List of ProseMirror-plugins. This is where we define which plugins will be added to EditorView (main-plugin, keybindings, input-rules, etc.).
|
|
34
|
-
*/
|
|
35
|
-
pmPlugins?: (pluginOptions?: any) => Array<PMPlugin>;
|
|
36
|
-
/**
|
|
37
|
-
* List of Nodes to add to the schema.
|
|
38
|
-
*/
|
|
39
|
-
nodes?: () => NodeConfig[];
|
|
40
|
-
/**
|
|
41
|
-
* List of Marks to add to the schema.
|
|
42
|
-
*/
|
|
43
|
-
marks?: () => MarkConfig[];
|
|
44
|
-
/**
|
|
45
|
-
* Optional UI-component that lives inside the actual content-area (like mention-picker, floating toolbar for links, etc.)
|
|
46
|
-
*/
|
|
47
|
-
contentComponent?: UIComponentFactory;
|
|
48
|
-
/**
|
|
49
|
-
* Optional UI-component that will be added to the toolbar at the top of the editor (doesn't exist in the compact-editor).
|
|
50
|
-
*/
|
|
51
|
-
primaryToolbarComponent?: ToolbarUIComponentFactory;
|
|
52
|
-
/**
|
|
53
|
-
* Optional UI-component that will be added to the toolbar at the bottom right of the editor. (doesn't exist in the full-page editor)
|
|
54
|
-
* In compact mode this toolbar lives on the right-hand side of the editor.
|
|
55
|
-
*/
|
|
56
|
-
secondaryToolbarComponent?: UIComponentFactory;
|
|
57
|
-
onEditorViewStateUpdated?: (props: EditorViewStateUpdatedCallbackProps) => void;
|
|
58
|
-
}
|
|
59
|
-
export {};
|
|
1
|
+
export type { PluginsOptions, EditorPlugin, } from '@atlaskit/editor-common/types';
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { UIAnalyticsEventHandler } from '@atlaskit/analytics-next';
|
|
3
|
-
export declare type EditorReactContext = {
|
|
4
|
-
getAtlaskitAnalyticsEventHandlers: () => UIAnalyticsEventHandler[];
|
|
5
|
-
intl: IntlShape;
|
|
6
|
-
};
|
|
1
|
+
export type { EditorReactContext } from '@atlaskit/editor-common/types';
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare type EmptyStateHandler = (params: EmptyStateHandlerParams) => React.ReactElement<any> | null;
|
|
3
|
-
export declare type EmptyStateHandlerParams = {
|
|
4
|
-
mode: string;
|
|
5
|
-
selectedCategory?: string;
|
|
6
|
-
searchTerm?: string;
|
|
7
|
-
};
|
|
1
|
+
export type { EmptyStateHandler, EmptyStateHandlerParams, } from '@atlaskit/editor-common/types';
|
|
@@ -1,343 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Feature Flags for experimental features/behaviours.
|
|
4
|
-
*
|
|
5
|
-
* This feature flags are not meant to be used as plugin configuration and are only for temporary flags that will eventually be enabled be default or removed.
|
|
6
|
-
* If your plugin requires permanent configuration options it's better to keep them in plugin options.
|
|
7
|
-
*
|
|
8
|
-
* # ADDING NEW FEATURE FLAG
|
|
9
|
-
*
|
|
10
|
-
* – Every feature flag must have a description explaining what it's meant to be doing.
|
|
11
|
-
* – Every feature flag must have an associated ticket and a DUE DATE when this flag will be removed and an owner who will remove it.
|
|
12
|
-
*
|
|
13
|
-
* ## TEMPLATE
|
|
14
|
-
*
|
|
15
|
-
* When adding a new feature flag use the following template:
|
|
16
|
-
*
|
|
17
|
-
* ```
|
|
18
|
-
* @description
|
|
19
|
-
* What this feature flag is doing. Do not lead with "Feature flag to".
|
|
20
|
-
*
|
|
21
|
-
* @see https://product-fabric.atlassian.net/browse/ED-1
|
|
22
|
-
* @default false
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* ## NAMING
|
|
26
|
-
* – Name feature flags without `allow`.
|
|
27
|
-
* – A name should read as "Feature flag to enable ...".
|
|
28
|
-
*
|
|
29
|
-
* Example: name = "newInsertionBehaviour" -> "Enable new insertion behaviour"
|
|
30
|
-
*/
|
|
31
|
-
export declare type FeatureFlags = {
|
|
32
|
-
/**
|
|
33
|
-
* @description Enable single layout option
|
|
34
|
-
*
|
|
35
|
-
* @see https://hello.atlassian.net/browse/LOVE-187
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
singleLayout?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* @description Enable new insertion behaviour
|
|
41
|
-
*
|
|
42
|
-
* @see https://product-fabric.atlassian.net/l/c/JYoSEu00
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
newInsertionBehaviour?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* @description Allows to toggle expand open state
|
|
48
|
-
* @default true
|
|
49
|
-
*/
|
|
50
|
-
interactiveExpand?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* @description
|
|
53
|
-
* Whether a placeholder bracket hint was provided (`string => boolean`)
|
|
54
|
-
* Placeholder text to be displayed when a bracket '{' is typed and the line is empty e.g. 'Did you mean to use '/' to insert content?'
|
|
55
|
-
* This is used to aid migration for TinyMCE power users to the new Fabric editor power user shortcuts.
|
|
56
|
-
*
|
|
57
|
-
* @see https://product-fabric.atlassian.net/l/c/4JLjusAP
|
|
58
|
-
* @default true
|
|
59
|
-
*/
|
|
60
|
-
placeholderBracketHint?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* @description
|
|
63
|
-
* Whether placeholder hints were provided (`string[] => boolean`)
|
|
64
|
-
* Placeholder text values to display on new empty lines.
|
|
65
|
-
*
|
|
66
|
-
* @see https://product-fabric.atlassian.net/l/c/GG1Yv9cK
|
|
67
|
-
* @default false
|
|
68
|
-
*/
|
|
69
|
-
placeholderHints?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* @description
|
|
72
|
-
* Enable additional text colours within the colour palette.
|
|
73
|
-
*
|
|
74
|
-
* @see https://product-fabric.atlassian.net/l/c/YhyvfWqg
|
|
75
|
-
* @default false
|
|
76
|
-
*/
|
|
77
|
-
moreTextColors?: boolean;
|
|
78
|
-
/**
|
|
79
|
-
* @description
|
|
80
|
-
* Enable find/replace functionality within the editor
|
|
81
|
-
*
|
|
82
|
-
* @see https://product-fabric.atlassian.net/browse/ED-3504
|
|
83
|
-
* @default false
|
|
84
|
-
*/
|
|
85
|
-
findReplace?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* @description
|
|
88
|
-
* Enable case matching functionality in find/replace feature within the editor
|
|
89
|
-
*
|
|
90
|
-
* @see https://product-fabric.atlassian.net/browse/ED-9684
|
|
91
|
-
* @default false
|
|
92
|
-
*/
|
|
93
|
-
findReplaceMatchCase?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* @description
|
|
96
|
-
* Enable `localId` generation for extensions.
|
|
97
|
-
*
|
|
98
|
-
* @see https://product-fabric.atlassian.net/l/c/2m0i9jLX
|
|
99
|
-
* @default false
|
|
100
|
-
*/
|
|
101
|
-
extensionLocalIdGeneration?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* @description
|
|
104
|
-
* Enable date picker which has a textbox for internationalised keyboard date
|
|
105
|
-
* input.
|
|
106
|
-
*
|
|
107
|
-
* @see https://product-fabric.atlassian.net/browse/ED-8928
|
|
108
|
-
* @default false
|
|
109
|
-
*/
|
|
110
|
-
keyboardAccessibleDatepicker?: boolean;
|
|
111
|
-
/**
|
|
112
|
-
* @description
|
|
113
|
-
* Enable add column custom step
|
|
114
|
-
*
|
|
115
|
-
* @see https://product-fabric.atlassian.net/browse/ED-8856
|
|
116
|
-
* @default false
|
|
117
|
-
*/
|
|
118
|
-
addColumnWithCustomStep?: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* @description
|
|
121
|
-
* Enable undo/redo buttons and functionality within the editor
|
|
122
|
-
*
|
|
123
|
-
* @see https://product-fabric.atlassian.net/browse/ED-9537
|
|
124
|
-
* @default false
|
|
125
|
-
*/
|
|
126
|
-
undoRedoButtons?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* @description
|
|
129
|
-
* Measure render performance for all tracked analytics events
|
|
130
|
-
*
|
|
131
|
-
* @default false
|
|
132
|
-
*/
|
|
133
|
-
catchAllTracking?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* @description
|
|
136
|
-
* Enables performance optimization for sticky headers in tables
|
|
137
|
-
*
|
|
138
|
-
* @see https://product-fabric.atlassian.net/browse/ED-11807
|
|
139
|
-
* @default false
|
|
140
|
-
*/
|
|
141
|
-
stickyHeadersOptimization?: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* @description
|
|
144
|
-
* Enables performance optimization for initial table render
|
|
145
|
-
*
|
|
146
|
-
* @see https://product-fabric.atlassian.net/browse/ED-11647
|
|
147
|
-
* @default false
|
|
148
|
-
*/
|
|
149
|
-
initialRenderOptimization?: boolean;
|
|
150
|
-
/**
|
|
151
|
-
* @description
|
|
152
|
-
* Enables performance optimization for mousemove inside table
|
|
153
|
-
*
|
|
154
|
-
* @see https://product-fabric.atlassian.net/browse/ED-11577
|
|
155
|
-
* @default false
|
|
156
|
-
*/
|
|
157
|
-
mouseMoveOptimization?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* @description
|
|
160
|
-
* Enables performance optimization for table rendering on keypress
|
|
161
|
-
*
|
|
162
|
-
* @see https://product-fabric.atlassian.net/browse/ED-11640
|
|
163
|
-
* @default false
|
|
164
|
-
*/
|
|
165
|
-
tableRenderOptimization?: boolean;
|
|
166
|
-
/**
|
|
167
|
-
* @description
|
|
168
|
-
* Enables performance optimization for table rendering on keypress
|
|
169
|
-
*
|
|
170
|
-
* @see https://product-fabric.atlassian.net/browse/ED-11781
|
|
171
|
-
* @default false
|
|
172
|
-
*/
|
|
173
|
-
tableOverflowShadowsOptimization?: boolean;
|
|
174
|
-
/**
|
|
175
|
-
* @description
|
|
176
|
-
* Yield to user interaction work before sending analytics
|
|
177
|
-
*
|
|
178
|
-
* @see https://product-fabric.atlassian.net/browse/ED-10584
|
|
179
|
-
* @default false
|
|
180
|
-
*/
|
|
181
|
-
queueAnalytics?: boolean;
|
|
182
|
-
/**
|
|
183
|
-
* Enable extend floating toolbars
|
|
184
|
-
* @see https://product-fabric.atlassian.net/browse/ED-11963
|
|
185
|
-
* @default false
|
|
186
|
-
*/
|
|
187
|
-
extendFloatingToolbar?: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Set editor to use the input rule with unpredictable undo results
|
|
190
|
-
* @see https://product-fabric.atlassian.net/browse/ED-12676
|
|
191
|
-
* @default true
|
|
192
|
-
*/
|
|
193
|
-
useUnpredictableInputRule?: boolean;
|
|
194
|
-
/**
|
|
195
|
-
* Show the avatar group as a plugin
|
|
196
|
-
* @see https://product-fabric.atlassian.net/browse/CERN-747
|
|
197
|
-
* @default false
|
|
198
|
-
*/
|
|
199
|
-
showAvatarGroupAsPlugin?: boolean;
|
|
200
|
-
/**
|
|
201
|
-
* @description
|
|
202
|
-
* Enables docStructure for unhandleErrorEvents
|
|
203
|
-
*
|
|
204
|
-
* @see https://product-fabric.atlassian.net/browse/ED-12998
|
|
205
|
-
* @default false
|
|
206
|
-
*/
|
|
207
|
-
errorBoundaryDocStructure?: boolean;
|
|
208
|
-
/**
|
|
209
|
-
* @description
|
|
210
|
-
* Enables docStructure for synchronyError
|
|
211
|
-
*
|
|
212
|
-
* @see https://product-fabric.atlassian.net/browse/ED-12998
|
|
213
|
-
* @default false
|
|
214
|
-
*/
|
|
215
|
-
synchronyErrorDocStructure?: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* @decsription
|
|
218
|
-
* Enables the view update subscription plugin
|
|
219
|
-
*
|
|
220
|
-
* @default false
|
|
221
|
-
*/
|
|
222
|
-
enableViewUpdateSubscription?: boolean;
|
|
223
|
-
/**
|
|
224
|
-
* @description
|
|
225
|
-
* Enable scroll-to-telepointer for collab avatars
|
|
226
|
-
*
|
|
227
|
-
* @see https://product-fabric.atlassian.net/browse/ED-12460
|
|
228
|
-
* @default false
|
|
229
|
-
*/
|
|
230
|
-
collabAvatarScroll?: boolean;
|
|
231
|
-
/**
|
|
232
|
-
* @description
|
|
233
|
-
* Enable UFO experiences
|
|
234
|
-
*
|
|
235
|
-
* @see https://product-fabric.atlassian.net/browse/ED-13059
|
|
236
|
-
* @default false
|
|
237
|
-
*/
|
|
238
|
-
ufo?: boolean;
|
|
239
|
-
/**
|
|
240
|
-
* Split editor toolbar to two lines when viewport is small
|
|
241
|
-
* @see https://product-fabric.atlassian.net/browse/CERN-1124
|
|
242
|
-
* @default false
|
|
243
|
-
*/
|
|
244
|
-
twoLineEditorToolbar?: boolean;
|
|
245
|
-
/**
|
|
246
|
-
* Prevent transactions from being mutated (e.g. apply, filterTransaction,
|
|
247
|
-
* appendTransaction) after being dispatched
|
|
248
|
-
* @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3131836958/Editor+DACI+013+Avoid+content+loss+with+bad+transactions+Ghost+Steps
|
|
249
|
-
* @see https://product-fabric.atlassian.net/browse/ED-14002
|
|
250
|
-
* @default false
|
|
251
|
-
*/
|
|
252
|
-
saferDispatchedTransactions?: boolean;
|
|
253
|
-
/**
|
|
254
|
-
* Create non-smart hyperlinks on plain text paste (Cmd/Ctrl+Shift+v)
|
|
255
|
-
* @see https://product-fabric.atlassian.net/browse/EDM-2492
|
|
256
|
-
* @default false
|
|
257
|
-
*/
|
|
258
|
-
plainTextPasteLinkification?: boolean;
|
|
259
|
-
/**
|
|
260
|
-
* @description
|
|
261
|
-
* Enable new collab service
|
|
262
|
-
* @see https://product-fabric.atlassian.net/browse/ED-14097
|
|
263
|
-
* @default false
|
|
264
|
-
*/
|
|
265
|
-
useNativeCollabPlugin?: boolean;
|
|
266
|
-
/**
|
|
267
|
-
* Enable custom up/down key handler when cursor below/above an inline media
|
|
268
|
-
* @see https://product-fabric.atlassian.net/browse/ED-13066
|
|
269
|
-
* Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1227468
|
|
270
|
-
* @default undefined
|
|
271
|
-
*/
|
|
272
|
-
chromeCursorHandlerFixedVersion?: number;
|
|
273
|
-
/**
|
|
274
|
-
* Number to distinguish between which different toolbar is being displayed
|
|
275
|
-
* as part of the smart link view changing experiment run by the Linking Platform.
|
|
276
|
-
* @see https://product-fabric.atlassian.net/browse/EDM-2640
|
|
277
|
-
* @default null
|
|
278
|
-
*/
|
|
279
|
-
viewChangingExperimentToolbarStyle?: string;
|
|
280
|
-
/**
|
|
281
|
-
* @description
|
|
282
|
-
* Enable display of a preview modal on mouse over of inline smart card
|
|
283
|
-
*
|
|
284
|
-
* @see https://product-fabric.atlassian.net/browse/EDM-2860
|
|
285
|
-
* @default false
|
|
286
|
-
*/
|
|
287
|
-
showHoverPreview?: boolean;
|
|
288
|
-
/**
|
|
289
|
-
* @description
|
|
290
|
-
* Generic way of disabling spellcheck per browser by version range
|
|
291
|
-
*
|
|
292
|
-
* @see https://product-fabric.atlassian.net/browse/ED-14510
|
|
293
|
-
* @default {}
|
|
294
|
-
* Example:
|
|
295
|
-
* {
|
|
296
|
-
* ie: {
|
|
297
|
-
* minimum: 101,
|
|
298
|
-
* },
|
|
299
|
-
* chrome: {
|
|
300
|
-
* minimum: 96,
|
|
301
|
-
* maximum: 109,
|
|
302
|
-
* },
|
|
303
|
-
* };
|
|
304
|
-
*/
|
|
305
|
-
disableSpellcheckByBrowser?: DisableSpellcheckByBrowser | undefined;
|
|
306
|
-
/**
|
|
307
|
-
* @description
|
|
308
|
-
* Show indentation buttons in the Editor toolbar
|
|
309
|
-
*
|
|
310
|
-
* @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3237512038/EXPLORE+Indentation+buttons+in+the+Editor+toolbar
|
|
311
|
-
* @see https://product-fabric.atlassian.net/browse/ED-15067
|
|
312
|
-
* @default false
|
|
313
|
-
*/
|
|
314
|
-
indentationButtonsInTheToolbar?: boolean;
|
|
315
|
-
/**
|
|
316
|
-
* @description
|
|
317
|
-
* Show copy buttons in the Floating toolbar
|
|
318
|
-
*
|
|
319
|
-
* @see https://product-fabric.atlassian.net/wiki/spaces/E/pages/3237609689/Cubone+Mini+project+-+Copy+button+in+the+floating+toolbar
|
|
320
|
-
* @see https://product-fabric.atlassian.net/browse/ED-15090
|
|
321
|
-
* @default false
|
|
322
|
-
*/
|
|
323
|
-
floatingToolbarCopyButton?: boolean;
|
|
324
|
-
/**
|
|
325
|
-
* @description
|
|
326
|
-
* Use the linking platform link picker for link insertion and edit
|
|
327
|
-
*
|
|
328
|
-
* @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3158246501/PP+Link+Picker+-+Standalone
|
|
329
|
-
* @see https://product-fabric.atlassian.net/browse/EDM-2577
|
|
330
|
-
* @default false
|
|
331
|
-
*/
|
|
332
|
-
lpLinkPicker?: boolean;
|
|
333
|
-
/**
|
|
334
|
-
* @description
|
|
335
|
-
* Show link settings button in the Floating toolbar
|
|
336
|
-
*
|
|
337
|
-
* @see https://product-fabric.atlassian.net/wiki/spaces/EM/pages/3199172609/POP+Some+users+need+to+work+with+URLs+to+get+their+job+done
|
|
338
|
-
* @see https://product-fabric.atlassian.net/browse/EDM-3268
|
|
339
|
-
* @default null
|
|
340
|
-
*/
|
|
341
|
-
floatingToolbarLinkSettingsButton?: string;
|
|
342
|
-
};
|
|
343
|
-
export declare type FeatureFlagKey = keyof FeatureFlags;
|
|
1
|
+
export type { FeatureFlags, FeatureFlagKey, } from '@atlaskit/editor-common/types';
|
|
@@ -1,14 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { NodeView } from 'prosemirror-view';
|
|
3
|
-
export interface NodeConfig {
|
|
4
|
-
name: string;
|
|
5
|
-
node: NodeSpec;
|
|
6
|
-
}
|
|
7
|
-
export interface MarkConfig {
|
|
8
|
-
name: string;
|
|
9
|
-
mark: MarkSpec;
|
|
10
|
-
}
|
|
11
|
-
export interface NodeViewConfig {
|
|
12
|
-
name: string;
|
|
13
|
-
nodeView: NodeView;
|
|
14
|
-
}
|
|
1
|
+
export type { NodeConfig, MarkConfig, NodeViewConfig, } from '@atlaskit/editor-common/types';
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ErrorReporter } from '@atlaskit/editor-common/utils';
|
|
3
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
import { Schema } from 'prosemirror-model';
|
|
5
|
-
import { IntlShape } from 'react-intl-next';
|
|
6
|
-
import { EditorReactContext } from '../types';
|
|
7
|
-
import { Dispatch, EventDispatcher } from '../event-dispatcher';
|
|
8
|
-
import { PortalProviderAPI } from '../ui/PortalProvider';
|
|
9
|
-
import { DispatchAnalyticsEvent } from '../plugins/analytics/types/dispatch-analytics-event';
|
|
10
|
-
import type { FeatureFlags } from './feature-flags';
|
|
11
|
-
export declare type PMPluginFactoryParams = {
|
|
12
|
-
schema: Schema;
|
|
13
|
-
dispatch: Dispatch;
|
|
14
|
-
eventDispatcher: EventDispatcher;
|
|
15
|
-
providerFactory: ProviderFactory;
|
|
16
|
-
errorReporter?: ErrorReporter;
|
|
17
|
-
portalProviderAPI: PortalProviderAPI;
|
|
18
|
-
reactContext: () => EditorReactContext;
|
|
19
|
-
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
20
|
-
featureFlags: FeatureFlags;
|
|
21
|
-
getIntl: () => IntlShape;
|
|
22
|
-
};
|
|
23
|
-
export declare type PMPluginFactory = (params: PMPluginFactoryParams) => SafePlugin | undefined;
|
|
24
|
-
export declare type PMPlugin = {
|
|
25
|
-
name: string;
|
|
26
|
-
plugin: PMPluginFactory;
|
|
27
|
-
};
|
|
1
|
+
export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from '@atlaskit/editor-common/types';
|