@atlaskit/editor-core 153.1.1 → 154.0.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 +119 -0
- package/dist/cjs/actions/index.js +4 -4
- package/dist/cjs/commands/index.js +2 -2
- package/dist/cjs/create-editor/ErrorBoundary.js +7 -5
- package/dist/cjs/create-editor/ReactEditorView.js +17 -17
- package/dist/cjs/create-editor/create-editor.js +2 -2
- package/dist/cjs/create-editor/create-plugins-list.js +7 -6
- package/dist/cjs/editor.js +28 -22
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/keymaps/index.js +16 -8
- package/dist/cjs/labs/CollapsedEditor/index.js +3 -1
- package/dist/cjs/labs/next/full-page.js +4 -4
- package/dist/cjs/labs/next/internal/components/EditorInternal.js +3 -3
- package/dist/cjs/labs/next/internal/hooks/use-editor/index.js +9 -9
- package/dist/cjs/nodeviews/ReactNodeView.js +3 -3
- package/dist/cjs/plugins/alignment/index.js +7 -0
- package/dist/cjs/plugins/alignment/pm-plugins/keymap.js +19 -0
- package/dist/cjs/plugins/alignment/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +5 -3
- package/dist/cjs/plugins/analytics/consts.js +2 -2
- package/dist/cjs/plugins/analytics/plugin.js +7 -7
- package/dist/cjs/plugins/analytics/types/enums.js +1 -0
- package/dist/cjs/plugins/analytics/utils.js +2 -2
- package/dist/cjs/plugins/annotation/nodeviews/index.js +2 -2
- package/dist/cjs/plugins/annotation/pm-plugins/plugin-factory.js +2 -2
- package/dist/cjs/plugins/annotation/pm-plugins/reducer.js +2 -2
- package/dist/cjs/plugins/annotation/utils.js +9 -7
- package/dist/cjs/plugins/base/index.js +2 -2
- package/dist/cjs/plugins/base/pm-plugins/context-identifier.js +2 -2
- package/dist/cjs/plugins/base/pm-plugins/frozen-editor.js +7 -7
- package/dist/cjs/plugins/base/pm-plugins/inline-cursor-target.js +2 -2
- package/dist/cjs/plugins/block-type/pm-plugins/main.js +8 -8
- package/dist/cjs/plugins/block-type/styles.js +2 -2
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +2 -0
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +7 -3
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +4 -4
- package/dist/cjs/plugins/breakout/index.js +4 -4
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +2 -2
- package/dist/cjs/plugins/caption/nodeviews/index.js +2 -2
- package/dist/cjs/plugins/card/index.js +2 -2
- package/dist/cjs/plugins/card/nodeviews/blockCard.js +7 -5
- package/dist/cjs/plugins/card/nodeviews/embedCard.js +9 -7
- package/dist/cjs/plugins/card/nodeviews/inlineCard.js +7 -5
- package/dist/cjs/plugins/card/pm-plugins/doc.js +2 -2
- package/dist/cjs/plugins/card/pm-plugins/reducers.js +2 -2
- package/dist/cjs/plugins/card/pm-plugins/util/state.js +2 -2
- package/dist/cjs/plugins/card/styles.js +2 -2
- package/dist/cjs/plugins/card/toolbar.js +4 -4
- package/dist/cjs/plugins/card/ui/ResizableEmbedCard.js +10 -10
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +2 -2
- package/dist/cjs/plugins/code-block/ide-ux/paired-character-handling.js +2 -2
- package/dist/cjs/plugins/code-block/index.js +8 -3
- package/dist/cjs/plugins/code-block/pm-plugins/main-state.js +2 -2
- package/dist/cjs/plugins/code-block/pm-plugins/main.js +22 -4
- package/dist/cjs/plugins/code-block/refresh-browser-selection.js +2 -2
- package/dist/cjs/plugins/collab-edit/analytics.js +2 -2
- package/dist/cjs/plugins/collab-edit/events/initialize.js +11 -5
- package/dist/cjs/plugins/collab-edit/participants.js +2 -2
- package/dist/cjs/plugins/collab-edit/provider/collab-provider.js +2 -2
- package/dist/cjs/plugins/collab-edit/utils.js +4 -4
- package/dist/cjs/plugins/context-panel/index.js +2 -2
- package/dist/cjs/plugins/custom-autoformat/index.js +2 -2
- package/dist/cjs/plugins/custom-autoformat/reducers.js +2 -2
- package/dist/cjs/plugins/date/actions.js +3 -3
- package/dist/cjs/plugins/date/nodeviews/date.js +6 -4
- package/dist/cjs/plugins/date/pm-plugins/utils.js +2 -2
- package/dist/cjs/plugins/date/styles.js +2 -2
- package/dist/cjs/plugins/date/ui/DatePicker/index.js +6 -4
- package/dist/cjs/plugins/emoji/commands/insert-emoji.js +2 -2
- package/dist/cjs/plugins/emoji/index.js +2 -2
- package/dist/cjs/plugins/emoji/nodeviews/emoji-next.js +2 -2
- package/dist/cjs/plugins/emoji/nodeviews/emoji.js +2 -2
- package/dist/cjs/plugins/emoji/styles.js +2 -2
- package/dist/cjs/plugins/emoji/ui/Emoji/index.js +2 -2
- package/dist/cjs/plugins/expand/commands.js +2 -2
- package/dist/cjs/plugins/expand/nodeviews/index.js +2 -2
- package/dist/cjs/plugins/expand/reducer.js +2 -2
- package/dist/cjs/plugins/expand/ui/ExpandIconButton.js +9 -7
- package/dist/cjs/plugins/expand/ui/styles.js +2 -2
- package/dist/cjs/plugins/extension/actions.js +2 -2
- package/dist/cjs/plugins/extension/commands.js +5 -3
- package/dist/cjs/plugins/extension/context-panel.js +2 -2
- package/dist/cjs/plugins/extension/extension-api.js +102 -30
- package/dist/cjs/plugins/extension/plugin-factory.js +2 -2
- package/dist/cjs/plugins/extension/pm-plugins/unique-id.js +46 -23
- package/dist/cjs/plugins/extension/reducer.js +2 -2
- package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +5 -3
- package/dist/cjs/plugins/extension/ui/Extension/ExtensionComponent.js +6 -4
- package/dist/cjs/plugins/extension/ui/Extension/ExtensionNodeWrapper.js +2 -2
- package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +8 -6
- package/dist/cjs/plugins/extension/ui/Extension/index.js +3 -3
- package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +4 -4
- package/dist/cjs/plugins/feature-flags-context/index.js +2 -2
- package/dist/cjs/plugins/feedback-dialog/index.js +2 -2
- package/dist/cjs/plugins/find-replace/plugin.js +2 -2
- package/dist/cjs/plugins/find-replace/reducer.js +2 -2
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +3 -1
- package/dist/cjs/plugins/find-replace/ui/FindReplaceTooltipButton.js +2 -2
- package/dist/cjs/plugins/floating-toolbar/index.js +4 -4
- package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +2 -2
- package/dist/cjs/plugins/floating-toolbar/ui/Button.js +9 -5
- package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +21 -5
- package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +2 -2
- package/dist/cjs/plugins/floating-toolbar/ui/Select.js +2 -2
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +9 -3
- package/dist/cjs/plugins/fragment/index.js +11 -0
- package/dist/cjs/plugins/fragment/pm-plugins/fragment-consistency.js +157 -0
- package/dist/cjs/plugins/help-dialog/index.js +2 -2
- package/dist/cjs/plugins/help-dialog/ui/index.js +30 -4
- package/dist/cjs/plugins/hyperlink/Toolbar.js +2 -2
- package/dist/cjs/plugins/hyperlink/commands.js +2 -2
- package/dist/cjs/plugins/hyperlink/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/hyperlink/styles.js +2 -2
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +77 -37
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +2 -2
- package/dist/cjs/plugins/image-upload/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/insert-block/index.js +2 -2
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +4 -2
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -0
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -0
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +8 -5
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +4 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +6 -4
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/item.js +8 -3
- package/dist/cjs/plugins/layout/actions.js +2 -2
- package/dist/cjs/plugins/layout/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/layout/styles.js +2 -2
- package/dist/cjs/plugins/list/commands/indent-list.js +16 -11
- package/dist/cjs/plugins/list/commands/index.js +2 -2
- package/dist/cjs/plugins/list/commands/outdent-list.js +2 -2
- package/dist/cjs/plugins/list/pm-plugins/input-rules/index.js +4 -1
- package/dist/cjs/plugins/list/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/list/ui/ToolbarLists/index.js +11 -3
- package/dist/cjs/plugins/macro/actions.js +4 -4
- package/dist/cjs/plugins/macro/index.js +2 -2
- package/dist/cjs/plugins/media/commands/helpers.js +30 -4
- package/dist/cjs/plugins/media/commands/linking.js +2 -2
- package/dist/cjs/plugins/media/commands/media-editor.js +2 -2
- package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +4 -4
- package/dist/cjs/plugins/media/nodeviews/mediaInline.js +162 -23
- package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +5 -5
- package/dist/cjs/plugins/media/nodeviews/mediaNodeView/index.js +9 -5
- package/dist/cjs/plugins/media/nodeviews/mediaNodeView/media.js +5 -5
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +17 -13
- package/dist/cjs/plugins/media/pm-plugins/alt-text/commands.js +2 -2
- package/dist/cjs/plugins/media/pm-plugins/alt-text/reducer.js +2 -2
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +2 -2
- package/dist/cjs/plugins/media/pm-plugins/linking/index.js +2 -2
- package/dist/cjs/plugins/media/pm-plugins/linking/reducer.js +2 -2
- package/dist/cjs/plugins/media/pm-plugins/main.js +7 -7
- package/dist/cjs/plugins/media/pm-plugins/media-editor-plugin-factory.js +2 -2
- package/dist/cjs/plugins/media/styles.js +2 -2
- package/dist/cjs/plugins/media/toolbar/alt-text.js +2 -2
- package/dist/cjs/plugins/media/toolbar/index.js +10 -2
- package/dist/cjs/plugins/media/toolbar/linking.js +2 -2
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +2 -2
- package/dist/cjs/plugins/media/ui/MediaPicker/BrowserWrapper.js +2 -2
- package/dist/cjs/plugins/media/ui/MediaPicker/DropzoneWrapper.js +4 -4
- package/dist/cjs/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +2 -2
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +6 -6
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/styled.js +2 -2
- package/dist/cjs/plugins/media/utils/media-single.js +6 -6
- package/dist/cjs/plugins/mentions/analytics.js +2 -2
- package/dist/cjs/plugins/mentions/nodeviews/mention.js +2 -2
- package/dist/cjs/plugins/mentions/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/mentions/styles.js +2 -2
- package/dist/cjs/plugins/mentions/type-ahead/index.js +2 -2
- package/dist/cjs/plugins/mentions/ui/Mention/index.js +3 -3
- package/dist/cjs/plugins/mobile-dimensions/actions.js +1 -0
- package/dist/cjs/plugins/mobile-dimensions/commands.js +11 -2
- package/dist/cjs/plugins/mobile-dimensions/index.js +10 -1
- package/dist/cjs/plugins/mobile-dimensions/reducer.js +7 -2
- package/dist/cjs/plugins/panel/actions.js +11 -5
- package/dist/cjs/plugins/panel/index.js +2 -0
- package/dist/cjs/plugins/panel/nodeviews/panel.js +19 -21
- package/dist/cjs/plugins/panel/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/panel/styles.js +2 -2
- package/dist/cjs/plugins/panel/toolbar.js +43 -18
- package/dist/cjs/plugins/panel/utils.js +13 -9
- package/dist/cjs/plugins/paste/handlers.js +2 -2
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/cjs/plugins/paste/pm-plugins/main.js +9 -9
- package/dist/cjs/plugins/quick-insert/assets/index.js +3 -1
- package/dist/cjs/plugins/quick-insert/index.js +2 -2
- package/dist/cjs/plugins/rule/styles.js +2 -2
- package/dist/cjs/plugins/selection/gap-cursor/actions.js +6 -6
- package/dist/cjs/plugins/selection/plugin-factory.js +2 -2
- package/dist/cjs/plugins/selection/pm-plugins/selection-main.js +10 -10
- package/dist/cjs/plugins/selection/reducer.js +2 -2
- package/dist/cjs/plugins/status/actions.js +2 -2
- package/dist/cjs/plugins/status/analytics.js +2 -2
- package/dist/cjs/plugins/status/nodeviews/status.js +3 -3
- package/dist/cjs/plugins/status/plugin.js +2 -26
- package/dist/cjs/plugins/status/styles.js +2 -2
- package/dist/cjs/plugins/status/ui/statusPicker.js +2 -2
- package/dist/cjs/plugins/table/commands/collapse.js +3 -3
- package/dist/cjs/plugins/table/commands/misc.js +2 -2
- package/dist/cjs/plugins/table/commands/sort.js +2 -2
- package/dist/cjs/plugins/table/commands/toggle.js +2 -2
- package/dist/cjs/plugins/table/commands-with-analytics.js +2 -2
- package/dist/cjs/plugins/table/create-plugin-config.js +2 -2
- package/dist/cjs/plugins/table/event-handlers.js +34 -37
- package/dist/cjs/plugins/table/handlers.js +4 -5
- package/dist/cjs/plugins/table/index.js +23 -6
- package/dist/cjs/plugins/table/nodeviews/TableComponent.js +29 -29
- package/dist/cjs/plugins/table/nodeviews/table.js +10 -0
- package/dist/cjs/plugins/table/pm-plugins/main.js +7 -7
- package/dist/cjs/plugins/table/pm-plugins/plugin-factory.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.js +75 -0
- package/dist/cjs/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +18 -13
- package/dist/cjs/plugins/table/pm-plugins/sticky-headers/plugin-state.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-local-id.js +3 -3
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/event-handlers.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/plugin-factory.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/reducer.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/column-state.js +3 -3
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/dom.js +6 -4
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/misc.js +5 -3
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/resize-logic.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +12 -10
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/scale-table.js +5 -5
- package/dist/cjs/plugins/table/reducer.js +2 -2
- package/dist/cjs/plugins/table/toolbar.js +2 -2
- package/dist/cjs/plugins/table/transforms/column-width.js +5 -5
- package/dist/cjs/plugins/table/transforms/delete-columns.js +2 -2
- package/dist/cjs/plugins/table/transforms/delete-rows.js +2 -2
- package/dist/cjs/plugins/table/transforms/fix-tables.js +4 -4
- package/dist/cjs/plugins/table/transforms/merge.js +2 -2
- package/dist/cjs/plugins/table/transforms/split.js +2 -2
- package/dist/cjs/plugins/table/types.js +4 -4
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/index.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingDeleteButton/index.js +4 -4
- package/dist/cjs/plugins/table/ui/FloatingInsertButton/InsertButton.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingInsertButton/getPopupOptions.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingInsertButton/index.js +2 -2
- package/dist/cjs/plugins/table/ui/LayoutButton/index.js +4 -4
- package/dist/cjs/plugins/table/ui/TableFloatingControls/index.js +4 -4
- package/dist/cjs/plugins/table/ui/common-styles.css.js +5 -5
- package/dist/cjs/plugins/table/ui/consts.js +3 -3
- package/dist/cjs/plugins/table/ui/ui-styles.css.js +4 -4
- package/dist/cjs/plugins/table/utils/collapse.js +69 -23
- package/dist/cjs/plugins/table/utils/row-controls.js +2 -2
- package/dist/cjs/plugins/tasks-and-decisions/commands.js +4 -3
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +2 -2
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/helpers.js +26 -2
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/keymaps.js +40 -15
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/main.js +5 -3
- package/dist/cjs/plugins/tasks-and-decisions/styles.js +2 -2
- package/dist/cjs/plugins/tasks-and-decisions/ui/Task/index.js +6 -4
- package/dist/cjs/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +3 -1
- package/dist/cjs/plugins/text-color/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/icon.js +1 -1
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +4 -2
- package/dist/cjs/plugins/text-formatting/pm-plugins/keymap.js +12 -0
- package/dist/cjs/plugins/text-formatting/styles.js +2 -2
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +4 -2
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +29 -31
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +3 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/more-button.js +8 -13
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +3 -1
- package/dist/cjs/plugins/type-ahead/pm-plugins/reducer.js +2 -2
- package/dist/cjs/plugins/type-ahead/stats-modifier.js +4 -3
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +9 -9
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +2 -2
- package/dist/cjs/plugins/type-ahead/ui/hooks/use-resize-observer.js +2 -2
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +5 -3
- package/dist/cjs/plugins/undo-redo/undo-redo-input-source.js +2 -2
- package/dist/cjs/plugins/unsupported-content/index.js +5 -5
- package/dist/cjs/plugins/view-update-subscription/index.js +4 -4
- package/dist/cjs/plugins/width/index.js +2 -2
- package/dist/cjs/profiler/render-count.js +3 -3
- package/dist/cjs/test-utils.js +2 -2
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +3 -2
- package/dist/cjs/ui/Alignment/AlignmentButton/index.js +9 -2
- package/dist/cjs/ui/Alignment/index.js +7 -1
- package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -5
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +15 -5
- package/dist/cjs/ui/ColorPalette/Palettes/panelBackgroundPalette.js +96 -25
- package/dist/cjs/ui/ColorPickerButton/index.js +3 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +5 -2
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +3 -1
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/RadioGroup.js +2 -2
- package/dist/cjs/ui/ConfigPanel/Fields/String.js +3 -1
- package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +3 -1
- package/dist/cjs/ui/ConfigPanel/FormContent.js +2 -2
- package/dist/cjs/ui/ContextPanel/index.js +2 -2
- package/dist/cjs/ui/Dropdown/index.js +2 -2
- package/dist/cjs/ui/DropdownMenu/index.js +10 -7
- package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +7 -4
- package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +6 -4
- package/dist/cjs/ui/ElementBrowser/hooks/use-select-and-focus-on-arrow-navigation.js +2 -2
- package/dist/cjs/ui/FloatingToolbar/index.js +2 -2
- package/dist/cjs/ui/LinkSearch/LinkSearchList.js +7 -1
- package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +18 -53
- package/dist/cjs/ui/LinkSearch/transformTimeStamp.js +55 -0
- package/dist/cjs/ui/LinkSearch/withActivityProvider.js +5 -3
- package/dist/cjs/ui/PanelTextInput/index.js +15 -5
- package/dist/cjs/ui/Resizer/index.js +2 -2
- package/dist/cjs/ui/Resizer/styled.js +2 -2
- package/dist/cjs/ui/ToolbarButton/index.js +11 -6
- package/dist/cjs/ui/ToolbarFeedback/index.js +4 -4
- package/dist/cjs/ui/WidthEmitter/index.js +2 -2
- package/dist/cjs/ui/WithPluginState/index.js +5 -5
- package/dist/cjs/utils/announcer/announcer.js +64 -0
- package/dist/cjs/utils/document.js +22 -3
- package/dist/cjs/utils/extensions.js +6 -4
- package/dist/cjs/utils/filter/privacy-filter.js +2 -2
- package/dist/cjs/utils/input-rules.js +5 -5
- package/dist/cjs/utils/node-width.js +2 -2
- package/dist/cjs/utils/performance/instrumented-plugin.js +3 -3
- package/dist/cjs/utils/performance/plugin-performance-report.js +2 -2
- package/dist/cjs/utils/performance/simple-measure-to-entries.js +4 -3
- package/dist/cjs/utils/performance/track-transactions.js +5 -5
- package/dist/cjs/utils/pick-by.js +2 -2
- package/dist/cjs/utils/rich-media-utils.js +8 -8
- package/dist/cjs/utils/selection.js +4 -4
- package/dist/cjs/utils/step.js +5 -6
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/create-editor/ErrorBoundary.js +2 -1
- package/dist/es2019/create-editor/ReactEditorView.js +2 -2
- package/dist/es2019/create-editor/create-editor.js +1 -1
- package/dist/es2019/create-editor/create-plugins-list.js +4 -3
- package/dist/es2019/editor.js +4 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/keymaps/index.js +6 -2
- package/dist/es2019/labs/next/full-page.js +1 -1
- package/dist/es2019/labs/next/internal/components/EditorInternal.js +1 -1
- package/dist/es2019/labs/next/internal/hooks/use-editor/index.js +1 -1
- package/dist/es2019/nodeviews/ReactNodeView.js +1 -1
- package/dist/es2019/plugins/alignment/index.js +4 -0
- package/dist/es2019/plugins/alignment/pm-plugins/keymap.js +9 -0
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +5 -3
- package/dist/es2019/plugins/analytics/consts.js +1 -1
- package/dist/es2019/plugins/analytics/plugin.js +1 -1
- package/dist/es2019/plugins/analytics/types/enums.js +1 -0
- package/dist/es2019/plugins/annotation/nodeviews/index.js +1 -1
- package/dist/es2019/plugins/annotation/utils.js +2 -1
- package/dist/es2019/plugins/base/pm-plugins/frozen-editor.js +1 -1
- package/dist/es2019/plugins/base/pm-plugins/inline-cursor-target.js +1 -1
- package/dist/es2019/plugins/block-type/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/block-type/styles.js +1 -1
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +2 -0
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +7 -3
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +1 -1
- package/dist/es2019/plugins/breakout/index.js +1 -1
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +1 -1
- package/dist/es2019/plugins/caption/nodeviews/index.js +1 -1
- package/dist/es2019/plugins/card/nodeviews/blockCard.js +3 -2
- package/dist/es2019/plugins/card/nodeviews/embedCard.js +2 -1
- package/dist/es2019/plugins/card/nodeviews/inlineCard.js +3 -2
- package/dist/es2019/plugins/card/styles.js +1 -1
- package/dist/es2019/plugins/card/toolbar.js +1 -1
- package/dist/es2019/plugins/card/ui/ResizableEmbedCard.js +1 -1
- package/dist/es2019/plugins/code-block/index.js +1 -2
- package/dist/es2019/plugins/code-block/pm-plugins/main.js +19 -2
- package/dist/es2019/plugins/code-block/refresh-browser-selection.js +1 -1
- package/dist/es2019/plugins/collab-edit/analytics.js +1 -1
- package/dist/es2019/plugins/collab-edit/events/initialize.js +11 -5
- package/dist/es2019/plugins/collab-edit/utils.js +1 -1
- package/dist/es2019/plugins/date/actions.js +1 -1
- package/dist/es2019/plugins/date/nodeviews/date.js +2 -1
- package/dist/es2019/plugins/date/styles.js +1 -1
- package/dist/es2019/plugins/date/ui/DatePicker/index.js +2 -1
- package/dist/es2019/plugins/emoji/nodeviews/emoji-next.js +1 -1
- package/dist/es2019/plugins/emoji/nodeviews/emoji.js +1 -1
- package/dist/es2019/plugins/emoji/styles.js +2 -3
- package/dist/es2019/plugins/emoji/ui/Emoji/index.js +1 -1
- package/dist/es2019/plugins/expand/nodeviews/index.js +1 -1
- package/dist/es2019/plugins/expand/ui/ExpandIconButton.js +1 -1
- package/dist/es2019/plugins/expand/ui/styles.js +1 -1
- package/dist/es2019/plugins/extension/commands.js +3 -1
- package/dist/es2019/plugins/extension/extension-api.js +113 -40
- package/dist/es2019/plugins/extension/pm-plugins/unique-id.js +46 -25
- package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +2 -1
- package/dist/es2019/plugins/extension/ui/Extension/ExtensionComponent.js +2 -1
- package/dist/es2019/plugins/extension/ui/Extension/ExtensionNodeWrapper.js +1 -1
- package/dist/es2019/plugins/extension/ui/Extension/Lozenge.js +1 -1
- package/dist/es2019/plugins/extension/ui/Extension/index.js +1 -1
- package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +1 -1
- package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +3 -1
- package/dist/es2019/plugins/floating-toolbar/index.js +1 -1
- package/dist/es2019/plugins/floating-toolbar/ui/Button.js +4 -2
- package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +15 -2
- package/dist/es2019/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +1 -1
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +8 -3
- package/dist/es2019/plugins/fragment/index.js +10 -0
- package/dist/es2019/plugins/fragment/pm-plugins/fragment-consistency.js +140 -0
- package/dist/es2019/plugins/help-dialog/ui/index.js +18 -1
- package/dist/es2019/plugins/hyperlink/styles.js +1 -1
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +54 -9
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +1 -1
- package/dist/es2019/plugins/insert-block/index.js +1 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +3 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -0
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -0
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +6 -3
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +4 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +3 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/item.js +8 -3
- package/dist/es2019/plugins/layout/styles.js +1 -1
- package/dist/es2019/plugins/list/commands/indent-list.js +14 -9
- package/dist/es2019/plugins/list/pm-plugins/input-rules/index.js +4 -1
- package/dist/es2019/plugins/list/ui/ToolbarLists/index.js +11 -3
- package/dist/es2019/plugins/macro/actions.js +1 -1
- package/dist/es2019/plugins/media/commands/helpers.js +24 -1
- package/dist/es2019/plugins/media/nodeviews/mediaGroup.js +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaInline.js +94 -10
- package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaNodeView/index.js +3 -1
- package/dist/es2019/plugins/media/nodeviews/mediaNodeView/media.js +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +3 -1
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/es2019/plugins/media/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/media/styles.js +1 -1
- package/dist/es2019/plugins/media/toolbar/index.js +8 -0
- package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -1
- package/dist/es2019/plugins/media/ui/MediaPicker/DropzoneWrapper.js +1 -1
- package/dist/es2019/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -1
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/styled.js +1 -1
- package/dist/es2019/plugins/media/utils/media-single.js +1 -1
- package/dist/es2019/plugins/mentions/nodeviews/mention.js +1 -1
- package/dist/es2019/plugins/mentions/styles.js +1 -1
- package/dist/es2019/plugins/mentions/ui/Mention/index.js +1 -1
- package/dist/es2019/plugins/mobile-dimensions/actions.js +1 -0
- package/dist/es2019/plugins/mobile-dimensions/commands.js +4 -0
- package/dist/es2019/plugins/mobile-dimensions/index.js +10 -1
- package/dist/es2019/plugins/mobile-dimensions/reducer.js +5 -0
- package/dist/es2019/plugins/panel/actions.js +7 -1
- package/dist/es2019/plugins/panel/index.js +2 -0
- package/dist/es2019/plugins/panel/nodeviews/panel.js +15 -15
- package/dist/es2019/plugins/panel/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/panel/styles.js +1 -1
- package/dist/es2019/plugins/panel/toolbar.js +41 -16
- package/dist/es2019/plugins/panel/utils.js +8 -4
- package/dist/es2019/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/rule/styles.js +1 -1
- package/dist/es2019/plugins/selection/gap-cursor/actions.js +1 -1
- package/dist/es2019/plugins/selection/pm-plugins/selection-main.js +1 -1
- package/dist/es2019/plugins/status/nodeviews/status.js +2 -2
- package/dist/es2019/plugins/status/plugin.js +0 -27
- package/dist/es2019/plugins/status/styles.js +13 -1
- package/dist/es2019/plugins/status/ui/statusPicker.js +1 -1
- package/dist/es2019/plugins/table/commands/collapse.js +3 -3
- package/dist/es2019/plugins/table/commands/sort.js +1 -1
- package/dist/es2019/plugins/table/event-handlers.js +4 -6
- package/dist/es2019/plugins/table/handlers.js +3 -4
- package/dist/es2019/plugins/table/index.js +17 -2
- package/dist/es2019/plugins/table/nodeviews/TableComponent.js +10 -13
- package/dist/es2019/plugins/table/nodeviews/table.js +8 -0
- package/dist/es2019/plugins/table/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.js +63 -0
- package/dist/es2019/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +16 -13
- package/dist/es2019/plugins/table/pm-plugins/table-local-id.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/event-handlers.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/column-state.js +1 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/dom.js +2 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/misc.js +2 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +2 -1
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/scale-table.js +1 -1
- package/dist/es2019/plugins/table/transforms/column-width.js +2 -2
- package/dist/es2019/plugins/table/transforms/fix-tables.js +1 -1
- package/dist/es2019/plugins/table/types.js +1 -1
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +1 -1
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/index.js +1 -1
- package/dist/es2019/plugins/table/ui/FloatingDeleteButton/index.js +1 -1
- package/dist/es2019/plugins/table/ui/FloatingInsertButton/InsertButton.js +1 -1
- package/dist/es2019/plugins/table/ui/FloatingInsertButton/index.js +1 -1
- package/dist/es2019/plugins/table/ui/LayoutButton/index.js +1 -1
- package/dist/es2019/plugins/table/ui/TableFloatingControls/index.js +1 -1
- package/dist/es2019/plugins/table/ui/common-styles.css.js +1 -1
- package/dist/es2019/plugins/table/ui/consts.js +3 -3
- package/dist/es2019/plugins/table/ui/ui-styles.css.js +1 -1
- package/dist/es2019/plugins/table/utils/collapse.js +62 -22
- package/dist/es2019/plugins/tasks-and-decisions/commands.js +4 -3
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/helpers.js +19 -1
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/keymaps.js +23 -5
- package/dist/es2019/plugins/tasks-and-decisions/styles.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/ui/Task/index.js +1 -1
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/icon.js +1 -1
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +2 -0
- package/dist/es2019/plugins/text-formatting/pm-plugins/keymap.js +12 -0
- package/dist/es2019/plugins/text-formatting/styles.js +1 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +4 -2
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +10 -14
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +3 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/more-button.js +8 -5
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +3 -1
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +1 -1
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +1 -1
- package/dist/es2019/plugins/type-ahead/ui/hooks/use-resize-observer.js +1 -1
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +5 -3
- package/dist/es2019/plugins/unsupported-content/index.js +1 -1
- package/dist/es2019/profiler/render-count.js +1 -1
- package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +3 -2
- package/dist/es2019/ui/Alignment/AlignmentButton/index.js +8 -2
- package/dist/es2019/ui/Alignment/index.js +6 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +2 -5
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +15 -5
- package/dist/es2019/ui/ColorPalette/Palettes/panelBackgroundPalette.js +88 -21
- package/dist/es2019/ui/ColorPickerButton/index.js +1 -1
- package/dist/es2019/ui/Dropdown/index.js +1 -1
- package/dist/es2019/ui/DropdownMenu/index.js +9 -6
- package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/index.js +1 -1
- package/dist/es2019/ui/LinkSearch/LinkSearchList.js +7 -1
- package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +14 -45
- package/dist/es2019/ui/LinkSearch/transformTimeStamp.js +41 -0
- package/dist/es2019/ui/LinkSearch/withActivityProvider.js +1 -1
- package/dist/es2019/ui/PanelTextInput/index.js +12 -2
- package/dist/es2019/ui/Resizer/index.js +1 -1
- package/dist/es2019/ui/Resizer/styled.js +1 -1
- package/dist/es2019/ui/ToolbarButton/index.js +9 -4
- package/dist/es2019/ui/ToolbarFeedback/index.js +1 -1
- package/dist/es2019/ui/WidthEmitter/index.js +1 -1
- package/dist/es2019/ui/WithPluginState/index.js +1 -1
- package/dist/es2019/utils/announcer/announcer.js +38 -0
- package/dist/es2019/utils/document.js +21 -2
- package/dist/es2019/utils/extensions.js +2 -1
- package/dist/es2019/utils/input-rules.js +1 -1
- package/dist/es2019/utils/node-width.js +1 -1
- package/dist/es2019/utils/performance/instrumented-plugin.js +1 -1
- package/dist/es2019/utils/performance/track-transactions.js +1 -1
- package/dist/es2019/utils/rich-media-utils.js +1 -1
- package/dist/es2019/utils/selection.js +1 -1
- package/dist/es2019/utils/step.js +4 -5
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/commands/index.js +2 -2
- package/dist/esm/create-editor/ErrorBoundary.js +4 -3
- package/dist/esm/create-editor/ReactEditorView.js +4 -4
- package/dist/esm/create-editor/create-editor.js +1 -1
- package/dist/esm/create-editor/create-plugins-list.js +6 -5
- package/dist/esm/editor.js +6 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/keymaps/index.js +6 -2
- package/dist/esm/labs/CollapsedEditor/index.js +2 -1
- package/dist/esm/labs/next/full-page.js +1 -1
- package/dist/esm/labs/next/internal/components/EditorInternal.js +1 -1
- package/dist/esm/labs/next/internal/hooks/use-editor/index.js +3 -3
- package/dist/esm/nodeviews/ReactNodeView.js +1 -1
- package/dist/esm/plugins/alignment/index.js +6 -0
- package/dist/esm/plugins/alignment/pm-plugins/keymap.js +9 -0
- package/dist/esm/plugins/alignment/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +5 -3
- package/dist/esm/plugins/analytics/consts.js +1 -1
- package/dist/esm/plugins/analytics/plugin.js +3 -3
- package/dist/esm/plugins/analytics/types/enums.js +1 -0
- package/dist/esm/plugins/analytics/utils.js +2 -2
- package/dist/esm/plugins/annotation/nodeviews/index.js +1 -1
- package/dist/esm/plugins/annotation/pm-plugins/plugin-factory.js +2 -2
- package/dist/esm/plugins/annotation/pm-plugins/reducer.js +2 -2
- package/dist/esm/plugins/annotation/utils.js +2 -1
- package/dist/esm/plugins/base/index.js +2 -2
- package/dist/esm/plugins/base/pm-plugins/context-identifier.js +2 -2
- package/dist/esm/plugins/base/pm-plugins/frozen-editor.js +3 -3
- package/dist/esm/plugins/base/pm-plugins/inline-cursor-target.js +1 -1
- package/dist/esm/plugins/block-type/pm-plugins/main.js +3 -3
- package/dist/esm/plugins/block-type/styles.js +1 -1
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +2 -0
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +7 -3
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +1 -1
- package/dist/esm/plugins/breakout/index.js +3 -3
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +1 -1
- package/dist/esm/plugins/caption/nodeviews/index.js +1 -1
- package/dist/esm/plugins/card/index.js +2 -2
- package/dist/esm/plugins/card/nodeviews/blockCard.js +3 -2
- package/dist/esm/plugins/card/nodeviews/embedCard.js +4 -3
- package/dist/esm/plugins/card/nodeviews/inlineCard.js +3 -2
- package/dist/esm/plugins/card/pm-plugins/doc.js +2 -2
- package/dist/esm/plugins/card/pm-plugins/reducers.js +2 -2
- package/dist/esm/plugins/card/pm-plugins/util/state.js +2 -2
- package/dist/esm/plugins/card/styles.js +1 -1
- package/dist/esm/plugins/card/toolbar.js +3 -3
- package/dist/esm/plugins/card/ui/ResizableEmbedCard.js +3 -3
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +2 -2
- package/dist/esm/plugins/code-block/ide-ux/paired-character-handling.js +2 -2
- package/dist/esm/plugins/code-block/index.js +8 -3
- package/dist/esm/plugins/code-block/pm-plugins/main-state.js +2 -2
- package/dist/esm/plugins/code-block/pm-plugins/main.js +22 -4
- package/dist/esm/plugins/code-block/refresh-browser-selection.js +1 -1
- package/dist/esm/plugins/collab-edit/analytics.js +1 -1
- package/dist/esm/plugins/collab-edit/events/initialize.js +11 -5
- package/dist/esm/plugins/collab-edit/participants.js +2 -2
- package/dist/esm/plugins/collab-edit/provider/collab-provider.js +2 -2
- package/dist/esm/plugins/collab-edit/utils.js +1 -1
- package/dist/esm/plugins/context-panel/index.js +2 -2
- package/dist/esm/plugins/custom-autoformat/index.js +2 -2
- package/dist/esm/plugins/custom-autoformat/reducers.js +2 -2
- package/dist/esm/plugins/date/actions.js +1 -1
- package/dist/esm/plugins/date/nodeviews/date.js +2 -1
- package/dist/esm/plugins/date/pm-plugins/utils.js +2 -2
- package/dist/esm/plugins/date/styles.js +1 -1
- package/dist/esm/plugins/date/ui/DatePicker/index.js +2 -1
- package/dist/esm/plugins/emoji/commands/insert-emoji.js +2 -2
- package/dist/esm/plugins/emoji/index.js +2 -2
- package/dist/esm/plugins/emoji/nodeviews/emoji-next.js +1 -1
- package/dist/esm/plugins/emoji/nodeviews/emoji.js +1 -1
- package/dist/esm/plugins/emoji/styles.js +2 -2
- package/dist/esm/plugins/emoji/ui/Emoji/index.js +1 -1
- package/dist/esm/plugins/expand/commands.js +2 -2
- package/dist/esm/plugins/expand/nodeviews/index.js +1 -1
- package/dist/esm/plugins/expand/reducer.js +2 -2
- package/dist/esm/plugins/expand/ui/ExpandIconButton.js +5 -4
- package/dist/esm/plugins/expand/ui/styles.js +1 -1
- package/dist/esm/plugins/extension/actions.js +2 -2
- package/dist/esm/plugins/extension/commands.js +5 -3
- package/dist/esm/plugins/extension/context-panel.js +2 -2
- package/dist/esm/plugins/extension/extension-api.js +102 -30
- package/dist/esm/plugins/extension/plugin-factory.js +2 -2
- package/dist/esm/plugins/extension/pm-plugins/unique-id.js +45 -21
- package/dist/esm/plugins/extension/reducer.js +2 -2
- package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +2 -1
- package/dist/esm/plugins/extension/ui/Extension/ExtensionComponent.js +2 -1
- package/dist/esm/plugins/extension/ui/Extension/ExtensionNodeWrapper.js +1 -1
- package/dist/esm/plugins/extension/ui/Extension/Lozenge.js +5 -4
- package/dist/esm/plugins/extension/ui/Extension/index.js +1 -1
- package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +3 -3
- package/dist/esm/plugins/feature-flags-context/index.js +2 -2
- package/dist/esm/plugins/feedback-dialog/index.js +2 -2
- package/dist/esm/plugins/find-replace/plugin.js +2 -2
- package/dist/esm/plugins/find-replace/reducer.js +2 -2
- package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +3 -1
- package/dist/esm/plugins/find-replace/ui/FindReplaceTooltipButton.js +2 -2
- package/dist/esm/plugins/floating-toolbar/index.js +3 -3
- package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/reducer.js +2 -2
- package/dist/esm/plugins/floating-toolbar/ui/Button.js +8 -5
- package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +17 -2
- package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +1 -1
- package/dist/esm/plugins/floating-toolbar/ui/Select.js +2 -2
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +8 -3
- package/dist/esm/plugins/fragment/index.js +10 -0
- package/dist/esm/plugins/fragment/pm-plugins/fragment-consistency.js +145 -0
- package/dist/esm/plugins/help-dialog/index.js +2 -2
- package/dist/esm/plugins/help-dialog/ui/index.js +26 -1
- package/dist/esm/plugins/hyperlink/Toolbar.js +2 -2
- package/dist/esm/plugins/hyperlink/commands.js +2 -2
- package/dist/esm/plugins/hyperlink/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/hyperlink/styles.js +1 -1
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +75 -37
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +1 -1
- package/dist/esm/plugins/image-upload/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/insert-block/index.js +1 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +3 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -0
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -0
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +8 -5
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +4 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +5 -3
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/item.js +8 -3
- package/dist/esm/plugins/layout/actions.js +2 -2
- package/dist/esm/plugins/layout/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/layout/styles.js +1 -1
- package/dist/esm/plugins/list/commands/indent-list.js +15 -11
- package/dist/esm/plugins/list/commands/index.js +2 -2
- package/dist/esm/plugins/list/commands/outdent-list.js +2 -2
- package/dist/esm/plugins/list/pm-plugins/input-rules/index.js +4 -1
- package/dist/esm/plugins/list/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/list/ui/ToolbarLists/index.js +11 -3
- package/dist/esm/plugins/macro/actions.js +3 -3
- package/dist/esm/plugins/macro/index.js +2 -2
- package/dist/esm/plugins/media/commands/helpers.js +26 -3
- package/dist/esm/plugins/media/commands/linking.js +2 -2
- package/dist/esm/plugins/media/commands/media-editor.js +2 -2
- package/dist/esm/plugins/media/nodeviews/mediaGroup.js +3 -3
- package/dist/esm/plugins/media/nodeviews/mediaInline.js +147 -21
- package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaNodeView/index.js +3 -1
- package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +5 -3
- package/dist/esm/plugins/media/pm-plugins/alt-text/commands.js +2 -2
- package/dist/esm/plugins/media/pm-plugins/alt-text/reducer.js +2 -2
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/esm/plugins/media/pm-plugins/linking/index.js +2 -2
- package/dist/esm/plugins/media/pm-plugins/linking/reducer.js +2 -2
- package/dist/esm/plugins/media/pm-plugins/main.js +3 -3
- package/dist/esm/plugins/media/pm-plugins/media-editor-plugin-factory.js +2 -2
- package/dist/esm/plugins/media/styles.js +1 -1
- package/dist/esm/plugins/media/toolbar/alt-text.js +2 -2
- package/dist/esm/plugins/media/toolbar/index.js +10 -2
- package/dist/esm/plugins/media/toolbar/linking.js +2 -2
- package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -1
- package/dist/esm/plugins/media/ui/MediaPicker/BrowserWrapper.js +2 -2
- package/dist/esm/plugins/media/ui/MediaPicker/DropzoneWrapper.js +3 -3
- package/dist/esm/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -1
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/styled.js +1 -1
- package/dist/esm/plugins/media/utils/media-single.js +3 -3
- package/dist/esm/plugins/mentions/analytics.js +2 -2
- package/dist/esm/plugins/mentions/nodeviews/mention.js +1 -1
- package/dist/esm/plugins/mentions/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/mentions/styles.js +1 -1
- package/dist/esm/plugins/mentions/type-ahead/index.js +2 -2
- package/dist/esm/plugins/mentions/ui/Mention/index.js +1 -1
- package/dist/esm/plugins/mobile-dimensions/actions.js +1 -0
- package/dist/esm/plugins/mobile-dimensions/commands.js +6 -0
- package/dist/esm/plugins/mobile-dimensions/index.js +10 -1
- package/dist/esm/plugins/mobile-dimensions/reducer.js +7 -2
- package/dist/esm/plugins/panel/actions.js +10 -4
- package/dist/esm/plugins/panel/index.js +2 -0
- package/dist/esm/plugins/panel/nodeviews/panel.js +15 -15
- package/dist/esm/plugins/panel/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/panel/styles.js +1 -1
- package/dist/esm/plugins/panel/toolbar.js +39 -14
- package/dist/esm/plugins/panel/utils.js +10 -6
- package/dist/esm/plugins/paste/handlers.js +2 -2
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/esm/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/quick-insert/assets/index.js +2 -1
- package/dist/esm/plugins/quick-insert/index.js +2 -2
- package/dist/esm/plugins/rule/styles.js +1 -1
- package/dist/esm/plugins/selection/gap-cursor/actions.js +1 -1
- package/dist/esm/plugins/selection/plugin-factory.js +2 -2
- package/dist/esm/plugins/selection/pm-plugins/selection-main.js +1 -1
- package/dist/esm/plugins/selection/reducer.js +2 -2
- package/dist/esm/plugins/status/actions.js +2 -2
- package/dist/esm/plugins/status/analytics.js +2 -2
- package/dist/esm/plugins/status/nodeviews/status.js +2 -2
- package/dist/esm/plugins/status/plugin.js +2 -23
- package/dist/esm/plugins/status/styles.js +2 -2
- package/dist/esm/plugins/status/ui/statusPicker.js +1 -1
- package/dist/esm/plugins/table/commands/collapse.js +3 -3
- package/dist/esm/plugins/table/commands/misc.js +2 -2
- package/dist/esm/plugins/table/commands/sort.js +1 -1
- package/dist/esm/plugins/table/commands/toggle.js +2 -2
- package/dist/esm/plugins/table/commands-with-analytics.js +2 -2
- package/dist/esm/plugins/table/create-plugin-config.js +2 -2
- package/dist/esm/plugins/table/event-handlers.js +4 -6
- package/dist/esm/plugins/table/handlers.js +5 -6
- package/dist/esm/plugins/table/index.js +17 -2
- package/dist/esm/plugins/table/nodeviews/TableComponent.js +12 -13
- package/dist/esm/plugins/table/nodeviews/table.js +8 -0
- package/dist/esm/plugins/table/pm-plugins/main.js +3 -3
- package/dist/esm/plugins/table/pm-plugins/plugin-factory.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.js +63 -0
- package/dist/esm/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.js +17 -12
- package/dist/esm/plugins/table/pm-plugins/sticky-headers/plugin-state.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/table-local-id.js +4 -4
- package/dist/esm/plugins/table/pm-plugins/table-resizing/event-handlers.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/plugin-factory.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/table-resizing/reducer.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/column-state.js +1 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/dom.js +2 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/misc.js +2 -1
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/resize-logic.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +4 -3
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/scale-table.js +3 -3
- package/dist/esm/plugins/table/reducer.js +2 -2
- package/dist/esm/plugins/table/toolbar.js +2 -2
- package/dist/esm/plugins/table/transforms/column-width.js +4 -4
- package/dist/esm/plugins/table/transforms/delete-columns.js +2 -2
- package/dist/esm/plugins/table/transforms/delete-rows.js +2 -2
- package/dist/esm/plugins/table/transforms/fix-tables.js +3 -3
- package/dist/esm/plugins/table/transforms/merge.js +2 -2
- package/dist/esm/plugins/table/transforms/split.js +2 -2
- package/dist/esm/plugins/table/types.js +3 -3
- package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +1 -1
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +2 -2
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/index.js +1 -1
- package/dist/esm/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.js +2 -2
- package/dist/esm/plugins/table/ui/FloatingDeleteButton/index.js +3 -3
- package/dist/esm/plugins/table/ui/FloatingInsertButton/InsertButton.js +1 -1
- package/dist/esm/plugins/table/ui/FloatingInsertButton/getPopupOptions.js +2 -2
- package/dist/esm/plugins/table/ui/FloatingInsertButton/index.js +1 -1
- package/dist/esm/plugins/table/ui/LayoutButton/index.js +3 -3
- package/dist/esm/plugins/table/ui/TableFloatingControls/index.js +1 -1
- package/dist/esm/plugins/table/ui/common-styles.css.js +1 -1
- package/dist/esm/plugins/table/ui/consts.js +3 -3
- package/dist/esm/plugins/table/ui/ui-styles.css.js +1 -1
- package/dist/esm/plugins/table/utils/collapse.js +64 -22
- package/dist/esm/plugins/table/utils/row-controls.js +2 -2
- package/dist/esm/plugins/tasks-and-decisions/commands.js +4 -3
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +2 -2
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/helpers.js +19 -1
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/keymaps.js +42 -17
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/main.js +4 -3
- package/dist/esm/plugins/tasks-and-decisions/styles.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/ui/Task/index.js +3 -2
- package/dist/esm/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +2 -1
- package/dist/esm/plugins/text-color/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/icon.js +1 -1
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +4 -2
- package/dist/esm/plugins/text-formatting/pm-plugins/keymap.js +12 -0
- package/dist/esm/plugins/text-formatting/styles.js +1 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +4 -2
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +30 -32
- package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +3 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/more-button.js +8 -7
- package/dist/esm/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +3 -1
- package/dist/esm/plugins/type-ahead/pm-plugins/reducer.js +2 -2
- package/dist/esm/plugins/type-ahead/stats-modifier.js +3 -2
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +1 -1
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +1 -1
- package/dist/esm/plugins/type-ahead/ui/hooks/use-resize-observer.js +1 -1
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +5 -3
- package/dist/esm/plugins/undo-redo/undo-redo-input-source.js +2 -2
- package/dist/esm/plugins/unsupported-content/index.js +1 -1
- package/dist/esm/plugins/view-update-subscription/index.js +3 -2
- package/dist/esm/plugins/width/index.js +2 -2
- package/dist/esm/profiler/render-count.js +1 -1
- package/dist/esm/test-utils.js +2 -2
- package/dist/esm/ui/Addon/ClickAreaMobile/index.js +3 -2
- package/dist/esm/ui/Alignment/AlignmentButton/index.js +8 -2
- package/dist/esm/ui/Alignment/index.js +6 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +2 -5
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +1 -1
- package/dist/esm/ui/AppearanceComponents/Mobile.js +15 -5
- package/dist/esm/ui/ColorPalette/Palettes/panelBackgroundPalette.js +92 -23
- package/dist/esm/ui/ColorPickerButton/index.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +4 -2
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +2 -1
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +2 -2
- package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +2 -2
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +2 -2
- package/dist/esm/ui/ConfigPanel/Fields/RadioGroup.js +2 -2
- package/dist/esm/ui/ConfigPanel/Fields/String.js +2 -1
- package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +2 -1
- package/dist/esm/ui/ConfigPanel/FormContent.js +2 -2
- package/dist/esm/ui/ContextPanel/index.js +2 -2
- package/dist/esm/ui/Dropdown/index.js +1 -1
- package/dist/esm/ui/DropdownMenu/index.js +9 -6
- package/dist/esm/ui/ElementBrowser/components/CategoryList.js +7 -4
- package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +6 -4
- package/dist/esm/ui/ElementBrowser/hooks/use-select-and-focus-on-arrow-navigation.js +2 -2
- package/dist/esm/ui/FloatingToolbar/index.js +1 -1
- package/dist/esm/ui/LinkSearch/LinkSearchList.js +7 -1
- package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +17 -49
- package/dist/esm/ui/LinkSearch/transformTimeStamp.js +41 -0
- package/dist/esm/ui/LinkSearch/withActivityProvider.js +3 -2
- package/dist/esm/ui/PanelTextInput/index.js +12 -2
- package/dist/esm/ui/Resizer/index.js +1 -1
- package/dist/esm/ui/Resizer/styled.js +1 -1
- package/dist/esm/ui/ToolbarButton/index.js +11 -6
- package/dist/esm/ui/ToolbarFeedback/index.js +3 -3
- package/dist/esm/ui/WidthEmitter/index.js +1 -1
- package/dist/esm/ui/WithPluginState/index.js +3 -3
- package/dist/esm/utils/announcer/announcer.js +51 -0
- package/dist/esm/utils/document.js +20 -2
- package/dist/esm/utils/extensions.js +2 -1
- package/dist/esm/utils/filter/privacy-filter.js +2 -2
- package/dist/esm/utils/input-rules.js +3 -3
- package/dist/esm/utils/node-width.js +1 -1
- package/dist/esm/utils/performance/instrumented-plugin.js +1 -1
- package/dist/esm/utils/performance/plugin-performance-report.js +2 -2
- package/dist/esm/utils/performance/simple-measure-to-entries.js +3 -2
- package/dist/esm/utils/performance/track-transactions.js +1 -1
- package/dist/esm/utils/pick-by.js +2 -2
- package/dist/esm/utils/rich-media-utils.js +3 -3
- package/dist/esm/utils/selection.js +3 -3
- package/dist/esm/utils/step.js +4 -5
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/create-editor/ErrorBoundary.d.ts +2 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +4 -2
- package/dist/types/create-editor/create-editor.d.ts +2 -1
- package/dist/types/editor.d.ts +2 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/keymaps/index.d.ts +4 -0
- package/dist/types/labs/next/full-page.d.ts +1 -1
- package/dist/types/labs/next/internal/context/shared-config.d.ts +1 -1
- package/dist/types/labs/next/internal/editor-props-type.d.ts +1 -1
- package/dist/types/labs/next/internal/hooks/use-editor/create-dispatch-transaction.d.ts +1 -1
- package/dist/types/labs/next/presets/default.d.ts +1 -1
- package/dist/types/plugins/alignment/pm-plugins/keymap.d.ts +2 -0
- package/dist/types/plugins/analytics/types/enums.d.ts +1 -0
- package/dist/types/plugins/analytics/types/events.d.ts +1 -1
- package/dist/types/plugins/analytics/types/general-events.d.ts +3 -2
- package/dist/types/plugins/base/pm-plugins/context-identifier.d.ts +2 -1
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/blocktype-button.d.ts +1 -0
- package/dist/types/plugins/caption/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/card/index.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/genericCard.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/util/resolve.d.ts +1 -1
- package/dist/types/plugins/card/toolbar.d.ts +2 -2
- package/dist/types/plugins/card/types.d.ts +1 -1
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
- package/dist/types/plugins/code-block/pm-plugins/main.d.ts +2 -1
- package/dist/types/plugins/code-block/types.d.ts +1 -0
- package/dist/types/plugins/collab-edit/events/handlers.d.ts +3 -2
- package/dist/types/plugins/collab-edit/events/initialize.d.ts +1 -1
- package/dist/types/plugins/collab-edit/events/send-transaction.d.ts +1 -1
- package/dist/types/plugins/collab-edit/plugin.d.ts +1 -1
- package/dist/types/plugins/collab-edit/provider/types.d.ts +2 -2
- package/dist/types/plugins/collab-edit/types.d.ts +2 -2
- package/dist/types/plugins/emoji/nodeviews/emoji-next.d.ts +1 -1
- package/dist/types/plugins/emoji/nodeviews/emoji.d.ts +1 -1
- package/dist/types/plugins/emoji/pm-plugins/ascii-input-rules.d.ts +1 -1
- package/dist/types/plugins/emoji/ui/Emoji/index.d.ts +1 -1
- package/dist/types/plugins/expand/ui/styles.d.ts +1 -1
- package/dist/types/plugins/extension/nodeviews/extension.d.ts +2 -1
- package/dist/types/plugins/extension/plugin-factory.d.ts +3 -3
- package/dist/types/plugins/extension/plugin-key.d.ts +1 -1
- package/dist/types/plugins/extension/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/extension/types.d.ts +1 -1
- package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +11 -11
- package/dist/types/plugins/extension/ui/Extension/Extension/styles.d.ts +1 -1
- package/dist/types/plugins/extension/ui/Extension/ExtensionComponent.d.ts +2 -1
- package/dist/types/plugins/extension/ui/Extension/index.d.ts +2 -1
- package/dist/types/plugins/floating-toolbar/types.d.ts +4 -2
- package/dist/types/plugins/floating-toolbar/ui/Button.d.ts +2 -1
- package/dist/types/plugins/floating-toolbar/ui/EmojiPickerButton.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/ui/ExtensionsPlaceholder.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +2 -1
- package/dist/types/plugins/fragment/pm-plugins/fragment-consistency.d.ts +15 -0
- package/dist/types/plugins/hyperlink/HyperlinkToolbarAppearance.d.ts +1 -1
- package/dist/types/plugins/hyperlink/index.d.ts +1 -1
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +3 -2
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/index.d.ts +1 -1
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/utils.d.ts +1 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +2 -0
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/item.d.ts +3 -0
- package/dist/types/plugins/media/commands/helpers.d.ts +11 -0
- package/dist/types/plugins/media/media-plugin-options.d.ts +2 -1
- package/dist/types/plugins/media/nodeviews/mediaGroup.d.ts +2 -1
- package/dist/types/plugins/media/nodeviews/mediaInline.d.ts +22 -3
- package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +2 -2
- package/dist/types/plugins/media/nodeviews/mediaNodeView/index.d.ts +2 -1
- package/dist/types/plugins/media/nodeviews/mediaNodeView/media.d.ts +2 -1
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +2 -1
- package/dist/types/plugins/media/nodeviews/types.d.ts +2 -1
- package/dist/types/plugins/media/picker-facade.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/types.d.ts +1 -1
- package/dist/types/plugins/media/toolbar/linking.d.ts +1 -1
- package/dist/types/plugins/media/types.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaLinkingToolbar.d.ts +1 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/styled.d.ts +1 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/types.d.ts +1 -1
- package/dist/types/plugins/mentions/analytics.d.ts +1 -1
- package/dist/types/plugins/mentions/nodeviews/mention.d.ts +1 -1
- package/dist/types/plugins/mentions/pm-plugins/main.d.ts +2 -1
- package/dist/types/plugins/mentions/types.d.ts +1 -1
- package/dist/types/plugins/mentions/ui/Mention/index.d.ts +2 -1
- package/dist/types/plugins/mobile-dimensions/actions.d.ts +7 -2
- package/dist/types/plugins/mobile-dimensions/commands.d.ts +1 -0
- package/dist/types/plugins/mobile-dimensions/types.d.ts +2 -0
- package/dist/types/plugins/panel/nodeviews/panel.d.ts +1 -1
- package/dist/types/plugins/panel/pm-plugins/main.d.ts +3 -1
- package/dist/types/plugins/panel/toolbar.d.ts +3 -3
- package/dist/types/plugins/panel/types.d.ts +6 -0
- package/dist/types/plugins/paste/handlers.d.ts +1 -1
- package/dist/types/plugins/paste/index.d.ts +1 -1
- package/dist/types/plugins/paste/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/table/nodeviews/TableComponent.d.ts +0 -1
- package/dist/types/plugins/table/nodeviews/tableCell.d.ts +1 -1
- package/dist/types/plugins/table/pm-plugins/safari-delayed-dom-selection-syncing-workaround.d.ts +3 -0
- package/dist/types/plugins/table/pm-plugins/sticky-headers/nodeviews/tableRow.d.ts +2 -2
- package/dist/types/plugins/table/types.d.ts +1 -0
- package/dist/types/plugins/table/ui/FloatingDeleteButton/getPopUpOptions.d.ts +1 -1
- package/dist/types/plugins/table/ui/FloatingInsertButton/getPopupOptions.d.ts +1 -1
- package/dist/types/plugins/table/ui/consts.d.ts +1 -1
- package/dist/types/plugins/table/utils/collapse.d.ts +20 -4
- package/dist/types/plugins/tasks-and-decisions/nodeviews/taskItem.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +5 -0
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/main.d.ts +2 -1
- package/dist/types/plugins/tasks-and-decisions/ui/Task/index.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/more-button.d.ts +1 -0
- package/dist/types/types/editor-appearance-component.d.ts +2 -1
- package/dist/types/types/editor-instance.d.ts +0 -1
- package/dist/types/types/editor-props.d.ts +7 -4
- package/dist/types/types/pm-plugin.d.ts +2 -1
- package/dist/types/ui/Addon/ClickAreaMobile/index.d.ts +1 -0
- package/dist/types/ui/Alignment/AlignmentButton/index.d.ts +2 -0
- package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +0 -1
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -1
- package/dist/types/ui/ColorPalette/Palettes/panelBackgroundPalette.d.ts +1 -0
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/FormContent.d.ts +2 -1
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types/ui/DropdownMenu/types.d.ts +3 -0
- package/dist/types/ui/LinkSearch/LinkSearchList.d.ts +2 -0
- package/dist/types/ui/LinkSearch/LinkSearchListItem.d.ts +2 -0
- package/dist/types/ui/LinkSearch/index.d.ts +2 -2
- package/dist/types/ui/LinkSearch/transformTimeStamp.d.ts +10 -0
- package/dist/types/ui/LinkSearch/withActivityProvider.d.ts +2 -1
- package/dist/types/ui/PanelTextInput/index.d.ts +5 -0
- package/dist/types/ui/PluginSlot/index.d.ts +1 -1
- package/dist/types/ui/Resizer/styled.d.ts +1 -1
- package/dist/types/ui/Resizer/types.d.ts +1 -1
- package/dist/types/ui/Toolbar/toolbar-types.d.ts +1 -1
- package/dist/types/ui/ToolbarButton/index.d.ts +10 -2
- package/dist/types/ui/ToolbarButton/styles.d.ts +2 -2
- package/dist/types/utils/announcer/announcer.d.ts +22 -0
- package/dist/types/utils/document.d.ts +2 -1
- package/dist/types/utils/extensions.d.ts +1 -1
- package/dist/types/utils/filter/privacy-filter.d.ts +1 -1
- package/dist/types/utils/step.d.ts +3 -4
- package/package.json +28 -27
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PluginKey, Plugin } from 'prosemirror-state';
|
|
2
|
+
export var tableSafariDelayedDomSelectionSyncingWorkaroundKey = new PluginKey('tableSafariDelayedDomSelectionSyncingWorkaround');
|
|
3
|
+
export var createPlugin = function createPlugin() {
|
|
4
|
+
// From a review of the prosemirror-view source code,
|
|
5
|
+
// the only places where a view relies on the presence
|
|
6
|
+
// of view.mouseDown are;
|
|
7
|
+
// - when checking it's presence in selectionToDOM
|
|
8
|
+
// to delay drag selections
|
|
9
|
+
// - to ensure it is cleaned up when the mouseup
|
|
10
|
+
// event is not fired in a previous mousedown event
|
|
11
|
+
// Because we are manually wiping the view.mouseDown,
|
|
12
|
+
// we manage this custom cleanup ourselves
|
|
13
|
+
var prevMouseDownDone = null;
|
|
14
|
+
return new Plugin({
|
|
15
|
+
key: tableSafariDelayedDomSelectionSyncingWorkaroundKey,
|
|
16
|
+
props: {
|
|
17
|
+
handleDOMEvents: {
|
|
18
|
+
mousedown: function mousedown(view) {
|
|
19
|
+
// Workaround issue in safari where table selections
|
|
20
|
+
// do not work correctly since prosemirror delayed
|
|
21
|
+
// DOM selection syncing during pointer drag.
|
|
22
|
+
//
|
|
23
|
+
// https://github.com/ProseMirror/prosemirror-view/commit/885258b80551ac87b81601d3ed25f552aeb22293
|
|
24
|
+
// This fix removes the selectionToDOM from the view
|
|
25
|
+
// prior to selectionToDOM being called.
|
|
26
|
+
// selectionToDOM checks if there is an "active"
|
|
27
|
+
// mouseDown, and if so, it delays running logic
|
|
28
|
+
// which causes the table selections issue.
|
|
29
|
+
// The handleDOMEvents are called before ProseMirror
|
|
30
|
+
// events fired on the editable DOM element.
|
|
31
|
+
// This means the view.mouseView will not yet be
|
|
32
|
+
// created when the mousedown event starts.
|
|
33
|
+
// https://prosemirror.net/docs/ref/#view.EditorProps.handleDOMEvents
|
|
34
|
+
//
|
|
35
|
+
// Because selectionToDOM is only added to the script
|
|
36
|
+
// tasks queue following the mousedown event, we can
|
|
37
|
+
// prepend a task which will clear the mouseDown from
|
|
38
|
+
// the view. We do this using a setTimout with no
|
|
39
|
+
// interval.
|
|
40
|
+
if (prevMouseDownDone) {
|
|
41
|
+
// avoid memory leaks when the mouseup event is not fired
|
|
42
|
+
// in a previous mousedown event
|
|
43
|
+
prevMouseDownDone();
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
setTimeout(function () {
|
|
47
|
+
// the ts-ignores here are required due to the
|
|
48
|
+
// view.mouseDown being an internal which is
|
|
49
|
+
// not part of the views type signature
|
|
50
|
+
// @ts-ignore
|
|
51
|
+
if (view.mouseDown) {
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
prevMouseDownDone = view.mouseDown.done.bind(view.mouseDown); // @ts-ignore
|
|
54
|
+
|
|
55
|
+
view.mouseDown = null;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
import { findOverflowScrollParent } from '@atlaskit/editor-common';
|
|
4
|
+
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
5
5
|
import { pluginKey as widthPluginKey } from '../../../../../plugins/width';
|
|
6
6
|
import { mapChildren } from '../../../../../utils/slice';
|
|
7
7
|
import { TableCssClassName as ClassName, TableCssClassName } from '../../../types';
|
|
@@ -217,7 +217,9 @@ export var TableRowNodeView = /*#__PURE__*/function () {
|
|
|
217
217
|
});
|
|
218
218
|
|
|
219
219
|
_defineProperty(this, "makeRowHeaderNotSticky", function (table) {
|
|
220
|
-
|
|
220
|
+
var isEditorDestroyed = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
221
|
+
|
|
222
|
+
if (!_this.isSticky || !table || !_this.dom) {
|
|
221
223
|
return;
|
|
222
224
|
}
|
|
223
225
|
|
|
@@ -230,7 +232,7 @@ export var TableRowNodeView = /*#__PURE__*/function () {
|
|
|
230
232
|
_this.dom.style.top = '';
|
|
231
233
|
table.style.removeProperty('margin-top');
|
|
232
234
|
|
|
233
|
-
_this.emitOff();
|
|
235
|
+
_this.emitOff(isEditorDestroyed);
|
|
234
236
|
});
|
|
235
237
|
|
|
236
238
|
_defineProperty(this, "padding", 0);
|
|
@@ -252,19 +254,22 @@ export var TableRowNodeView = /*#__PURE__*/function () {
|
|
|
252
254
|
})(_this.view.state, _this.view.dispatch, _this.view);
|
|
253
255
|
});
|
|
254
256
|
|
|
255
|
-
_defineProperty(this, "emitOff", function () {
|
|
257
|
+
_defineProperty(this, "emitOff", function (isEditorDestroyed) {
|
|
256
258
|
if (_this.top === 0 && _this.padding === 0) {
|
|
257
259
|
return;
|
|
258
260
|
}
|
|
259
261
|
|
|
260
262
|
_this.top = 0;
|
|
261
263
|
_this.padding = 0;
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
|
|
265
|
+
if (!isEditorDestroyed) {
|
|
266
|
+
updateStickyState({
|
|
267
|
+
pos: _this.getPos(),
|
|
268
|
+
sticky: false,
|
|
269
|
+
top: _this.top,
|
|
270
|
+
padding: _this.padding
|
|
271
|
+
})(_this.view.state, _this.view.dispatch, _this.view);
|
|
272
|
+
}
|
|
268
273
|
});
|
|
269
274
|
|
|
270
275
|
this.view = view;
|
|
@@ -485,10 +490,10 @@ export var TableRowNodeView = /*#__PURE__*/function () {
|
|
|
485
490
|
this.unsubscribe();
|
|
486
491
|
|
|
487
492
|
if (this.tree) {
|
|
488
|
-
this.makeRowHeaderNotSticky(this.tree.table);
|
|
493
|
+
this.makeRowHeaderNotSticky(this.tree.table, true);
|
|
489
494
|
}
|
|
490
495
|
|
|
491
|
-
this.emitOff();
|
|
496
|
+
this.emitOff(true);
|
|
492
497
|
}
|
|
493
498
|
}, {
|
|
494
499
|
key: "ignoreMutation",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { pluginFactory } from '../../../../utils/plugin-state-factory';
|
|
8
8
|
import { pluginKey } from './plugin-key';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A plugin for ensuring tables always have unique local IDs, and to
|
|
@@ -19,7 +19,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
19
19
|
import { Plugin, PluginKey } from 'prosemirror-state';
|
|
20
20
|
import rafSchedule from 'raf-schd';
|
|
21
21
|
import { uuid } from '@atlaskit/adf-schema';
|
|
22
|
-
import {
|
|
22
|
+
import { stepAddsOneOf } from '../../../utils/step';
|
|
23
23
|
var pluginKey = new PluginKey('tableLocalIdPlugin');
|
|
24
24
|
|
|
25
25
|
var getPluginState = function getPluginState(state) {
|
|
@@ -32,7 +32,7 @@ var getPluginState = function getPluginState(state) {
|
|
|
32
32
|
|
|
33
33
|
var checkIsAddingTable = function checkIsAddingTable(transaction, nodeType) {
|
|
34
34
|
return transaction.steps.some(function (step) {
|
|
35
|
-
return
|
|
35
|
+
return stepAddsOneOf(step, new Set([nodeType]));
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
2
2
|
import { getSelectionRect } from '@atlaskit/editor-tables/utils';
|
|
3
|
-
import { tableCellMinWidth } from '@atlaskit/editor-common';
|
|
3
|
+
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
4
4
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { getParentNodeWidth } from '../../../../utils/node-width';
|
|
6
6
|
import { pluginKey as editorDisabledPluginKey } from '../../../editor-disabled';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { pluginFactory } from '../../../../utils/plugin-state-factory';
|
|
8
8
|
import { pluginKey } from './plugin-key';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
export default (function (pluginState, action) {
|
|
8
8
|
switch (action.type) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
2
2
|
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
3
|
-
import { tableNewColumnMinWidth } from '@atlaskit/editor-common';
|
|
3
|
+
import { tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
|
|
4
4
|
import { contentWidth } from './content-width';
|
|
5
5
|
import { unitToNumber } from './unit-to-number';
|
|
6
6
|
// Reads `width` and `minWidth` of each column from DOM and returns `ColumnState` containing those values
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { tableCellBorderWidth, tableCellPadding, tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
2
|
+
import { browser } from '@atlaskit/editor-common/utils';
|
|
2
3
|
import { closestElement, containsClassName, parsePx } from '../../../../../utils/dom';
|
|
3
4
|
import { updateOverflowShadows } from '../../../nodeviews/update-overflow-shadows';
|
|
4
5
|
import { TableCssClassName as ClassName } from '../../../types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { calcTableWidth
|
|
1
|
+
import { calcTableWidth } from '@atlaskit/editor-common/styles';
|
|
2
|
+
import { getBreakpoint, mapBreakpointToLayoutMaxWidth } from '@atlaskit/editor-common/ui';
|
|
2
3
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorWideLayoutWidth, akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
3
4
|
import { containsClassName } from '../../../../../utils';
|
|
4
5
|
import { pluginKey as widthPluginKey } from '../../../../width';
|
|
@@ -2,9 +2,9 @@ import _typeof from "@babel/runtime/helpers/typeof";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
|
|
9
9
|
import { getFreeSpace } from './column-state';
|
|
10
10
|
import { bulkColumnsResize, getTotalWidth } from './resize-state';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { tableCellMinWidth, tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
|
|
8
|
+
import { calcTableColumnWidths } from '@atlaskit/editor-common/utils';
|
|
8
9
|
import { hasTableBeenResized, insertColgroupFromNode } from './colgroup';
|
|
9
10
|
import { getCellsRefsInColumn, getColumnStateFromDOM } from './column-state';
|
|
10
11
|
import { syncStickyRowToTable } from './dom';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
|
-
import { tableCellMinWidth } from '@atlaskit/editor-common';
|
|
7
|
+
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
8
8
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import { getTableWidth } from '../../../utils';
|
|
10
10
|
import { getLayoutSize } from '../utils/misc';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { defaultTableSelection } from './pm-plugins/default-table-selection';
|
|
8
8
|
export default (function (pluginState, action) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
8
|
import { defineMessages } from 'react-intl-next';
|
|
9
9
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
|
-
import { tableNewColumnMinWidth } from '@atlaskit/editor-common';
|
|
8
|
+
import { tableNewColumnMinWidth } from '@atlaskit/editor-common/styles';
|
|
9
9
|
import { hasTableBeenResized } from '../pm-plugins/table-resizing/utils';
|
|
10
10
|
import { setMeta } from './metadata';
|
|
11
11
|
import { getResizeState, normaliseTableLayout } from '../pm-plugins/table-resizing/utils/resize-state';
|
|
12
12
|
import { getTableMaxWidth } from '../pm-plugins/table-resizing/utils/misc';
|
|
13
|
-
import { tableCellMinWidth } from '@atlaskit/editor-common';
|
|
13
|
+
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
14
14
|
import { scaleTableTo } from '../pm-plugins/table-resizing/utils/scale-table';
|
|
15
15
|
export var updateColumnWidths = function updateColumnWidths(resizeState, table, start) {
|
|
16
16
|
return function (tr) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
8
|
import { Selection } from 'prosemirror-state';
|
|
9
9
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
8
|
import { Selection } from 'prosemirror-state';
|
|
9
9
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
|
-
import { tableCellMinWidth } from '@atlaskit/editor-common';
|
|
7
|
+
import { tableCellMinWidth } from '@atlaskit/editor-common/styles';
|
|
8
8
|
import { akEditorDefaultLayoutWidth, akEditorWideLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
9
9
|
import { sendLogs } from '../../../utils/sendLogs';
|
|
10
10
|
import { calculateColumnWidth, contentWidth, getCellsRefsInColumn, getLayoutSize } from '../pm-plugins/table-resizing/utils';
|
|
@@ -2,9 +2,9 @@ import _typeof from "@babel/runtime/helpers/typeof";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
|
|
9
9
|
import { Fragment } from 'prosemirror-model';
|
|
10
10
|
import { Selection } from 'prosemirror-state';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { TableMap } from '@atlaskit/editor-tables/table-map';
|
|
8
8
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { tableCellSelector, tableHeaderSelector, tablePrefixSelector } from '@atlaskit/adf-schema';
|
|
8
|
-
import { TableSharedCssClassName } from '@atlaskit/editor-common';
|
|
8
|
+
import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
9
9
|
export var RESIZE_HANDLE_AREA_DECORATION_GAP = 30;
|
|
10
10
|
export var TableDecorations;
|
|
11
11
|
|
|
@@ -17,7 +17,7 @@ import React from 'react';
|
|
|
17
17
|
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
18
18
|
import { injectIntl } from 'react-intl-next';
|
|
19
19
|
import styled from 'styled-components';
|
|
20
|
-
import { Popup } from '@atlaskit/editor-common';
|
|
20
|
+
import { Popup } from '@atlaskit/editor-common/ui';
|
|
21
21
|
import { akEditorFloatingOverlapPanelZIndex, akEditorSmallZIndex } from '@atlaskit/editor-shared-styles';
|
|
22
22
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
23
23
|
import ToolbarButton from '../../../../ui/ToolbarButton';
|
|
@@ -6,9 +6,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
|
|
9
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10
10
|
|
|
11
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
12
|
|
|
13
13
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
14
|
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
7
7
|
import { findCellRectClosestToPos, getSelectionRect, isSelectionType } from '@atlaskit/editor-tables/utils';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
|
-
import { Popup } from '@atlaskit/editor-common';
|
|
9
|
+
import { Popup } from '@atlaskit/editor-common/ui';
|
|
10
10
|
import { akEditorFloatingOverlapPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import { getPluginState, pluginKey } from '../../pm-plugins/plugin-factory';
|
|
12
12
|
import { contextualMenuDropdownWidth, contextualMenuTriggerSize } from '../consts';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { tableDeleteButtonOffset, tableDeleteButtonSize, tableToolbarSize } from '../consts';
|
|
8
8
|
var DELETE_BUTTON_CONTROLS_OFFSET = tableToolbarSize + tableDeleteButtonSize + tableDeleteButtonOffset;
|
|
@@ -7,9 +7,9 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
|
|
10
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
11
|
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
13
|
|
|
14
14
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
15
15
|
|
|
@@ -19,7 +19,7 @@ import React, { Component } from 'react';
|
|
|
19
19
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
20
20
|
import { getSelectionRect, isTableSelected } from '@atlaskit/editor-tables/utils';
|
|
21
21
|
import { createPortal } from 'react-dom';
|
|
22
|
-
import { Popup } from '@atlaskit/editor-common';
|
|
22
|
+
import { Popup } from '@atlaskit/editor-common/ui';
|
|
23
23
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
24
24
|
import { closestElement } from '../../../../utils/dom';
|
|
25
25
|
import { INPUT_METHOD } from '../../../analytics';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
|
-
import { tableMarginTop } from '@atlaskit/editor-common';
|
|
3
|
+
import { tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
4
4
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
6
6
|
import * as keymaps from '../../../../keymaps';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { akEditorTableNumberColumnWidth } from '@atlaskit/editor-shared-styles';
|
|
8
8
|
import { tableInsertColumnButtonOffset, tableInsertColumnButtonSize, tableToolbarSize } from '../consts';
|
|
@@ -17,7 +17,7 @@ import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
|
17
17
|
import { findDomRefAtPos } from 'prosemirror-utils';
|
|
18
18
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
19
19
|
import { injectIntl } from 'react-intl-next';
|
|
20
|
-
import { Popup } from '@atlaskit/editor-common';
|
|
20
|
+
import { Popup } from '@atlaskit/editor-common/ui';
|
|
21
21
|
import { closestElement } from '../../../../utils/dom';
|
|
22
22
|
import { INPUT_METHOD } from '../../../analytics';
|
|
23
23
|
import { insertColumnWithAnalytics, insertRowWithAnalytics } from '../../commands-with-analytics';
|
|
@@ -10,14 +10,14 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
10
10
|
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
|
|
13
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
14
|
|
|
15
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
16
|
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import classnames from 'classnames';
|
|
19
19
|
import { injectIntl } from 'react-intl-next';
|
|
20
|
-
import { Popup } from '@atlaskit/editor-common';
|
|
20
|
+
import { Popup } from '@atlaskit/editor-common/ui';
|
|
21
21
|
import CollapseIcon from '@atlaskit/icon/glyph/editor/collapse';
|
|
22
22
|
import ExpandIcon from '@atlaskit/icon/glyph/editor/expand';
|
|
23
23
|
import commonMessages from '../../../../messages';
|