@atlaskit/editor-core 162.0.1 → 163.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 +42 -0
- package/dist/cjs/create-editor/ErrorBoundary.js +1 -1
- package/dist/cjs/create-editor/ReactEditorView.js +2 -2
- package/dist/cjs/editor.js +3 -7
- package/dist/cjs/keymaps/index.js +14 -9
- package/dist/cjs/labs/next/full-page.js +34 -46
- package/dist/cjs/labs/next/presets/cxhtml.js +0 -1
- package/dist/cjs/nodeviews/ReactNodeView.js +16 -41
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.js +227 -0
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +21 -0
- package/dist/cjs/nodeviews/getPerformanceOptions.js +64 -0
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +16 -6
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +10 -17
- package/dist/cjs/plugins/analytics/types/enums.js +2 -0
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +9 -16
- package/dist/cjs/plugins/base/index.js +26 -7
- package/dist/cjs/plugins/base/pm-plugins/inline-cursor-target.js +141 -76
- package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +5 -8
- package/dist/cjs/plugins/block-type/commands/block-type.js +21 -9
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +9 -9
- package/dist/cjs/plugins/card/nodeviews/genericCard.js +4 -4
- package/dist/cjs/plugins/card/pm-plugins/doc.js +53 -6
- package/dist/cjs/plugins/card/pm-plugins/main.js +16 -1
- package/dist/cjs/plugins/card/styles.js +2 -2
- package/dist/cjs/plugins/card/ui/LinkToolbarIconDropdown.js +6 -6
- package/dist/cjs/plugins/card/ui/ResizableEmbedCard.js +7 -8
- package/dist/cjs/plugins/code-block/styles.js +2 -2
- package/dist/cjs/plugins/collab-edit/styles.js +2 -2
- package/dist/cjs/plugins/collab-edit/ui/avatars.js +6 -1
- package/dist/cjs/plugins/collab-edit/ui/colored-avatar-item.js +4 -5
- package/dist/cjs/plugins/collab-edit/ui/invite-to-edit.js +15 -4
- package/dist/cjs/plugins/collab-edit/ui/styles.js +10 -14
- package/dist/cjs/plugins/date/nodeviews/date.js +30 -75
- package/dist/cjs/plugins/date/pm-plugins/main.js +8 -11
- package/dist/cjs/plugins/date/styles.js +2 -2
- package/dist/cjs/plugins/date/ui/DatePicker/date-picker-input.js +7 -6
- package/dist/cjs/plugins/date/ui/DatePicker/index.js +8 -7
- package/dist/cjs/plugins/emoji/styles.js +3 -3
- package/dist/cjs/plugins/expand/ui/ExpandIconButton.js +13 -16
- package/dist/cjs/plugins/expand/ui/styles.js +26 -12
- package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +16 -9
- package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +9 -6
- package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/index.js +7 -3
- package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +7 -4
- package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +14 -13
- package/dist/cjs/plugins/extension/ui/Extension/styles.js +20 -26
- package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +14 -17
- package/dist/cjs/plugins/extension/ui/styles.js +2 -2
- package/dist/cjs/plugins/fake-text-cursor/styles.js +2 -2
- package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +1 -1
- package/dist/cjs/plugins/find-replace/styles.js +2 -2
- package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +6 -7
- package/dist/cjs/plugins/floating-toolbar/ui/styles.js +7 -1
- package/dist/cjs/plugins/grid/styles.js +2 -2
- package/dist/cjs/plugins/help-dialog/ui/index.js +134 -40
- package/dist/cjs/plugins/help-dialog/ui/styles.js +26 -49
- package/dist/cjs/plugins/hyperlink/styles.js +6 -16
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +23 -20
- package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +13 -10
- package/dist/cjs/plugins/list/commands/index.js +8 -0
- package/dist/cjs/plugins/list/pm-plugins/main.js +6 -0
- package/dist/cjs/plugins/list/styles.js +2 -2
- package/dist/cjs/plugins/list/utils/node.js +4 -3
- package/dist/cjs/plugins/media/index.js +9 -40
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +28 -23
- package/dist/cjs/plugins/media/pm-plugins/main.js +1 -8
- package/dist/cjs/plugins/media/pm-plugins/media-editor-plugin-factory.js +2 -67
- package/dist/cjs/plugins/media/styles.js +1 -1
- package/dist/cjs/plugins/media/toolbar/index.js +0 -13
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -1
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +12 -8
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/styled.js +7 -6
- package/dist/cjs/plugins/media/utils/media-single.js +8 -4
- package/dist/cjs/plugins/mentions/styles.js +2 -2
- package/dist/cjs/plugins/panel/styles.js +5 -2
- package/dist/cjs/plugins/placeholder/styles.js +2 -2
- package/dist/cjs/plugins/placeholder-text/styles.js +2 -2
- package/dist/cjs/plugins/rule/pm-plugins/input-rule.js +2 -1
- package/dist/cjs/plugins/rule/styles.js +5 -2
- package/dist/cjs/plugins/selection/gap-cursor/styles.js +4 -4
- package/dist/cjs/plugins/selection/pm-plugins/selection-main.js +13 -30
- package/dist/cjs/plugins/status/index.js +9 -12
- package/dist/cjs/plugins/status/nodeviews/status.js +43 -126
- package/dist/cjs/plugins/status/plugin.js +14 -6
- package/dist/cjs/plugins/status/styles.js +2 -2
- package/dist/cjs/plugins/table/index.js +1 -1
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +10 -16
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/styles.js +2 -2
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/index.js +7 -12
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/styles.js +2 -2
- package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
- package/dist/cjs/plugins/tasks-and-decisions/styles.js +2 -2
- package/dist/cjs/plugins/type-ahead/constants.js +3 -1
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +8 -0
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +15 -56
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +48 -3
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +4 -1
- package/dist/cjs/plugins/unsupported-content/styles.js +2 -2
- package/dist/cjs/profiler/render-count.js +1 -3
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +0 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +0 -1
- package/dist/cjs/ui/Appearance/FullPage/messages.js +2 -2
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +18 -16
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +16 -14
- package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +13 -10
- package/dist/cjs/ui/ConfigPanel/Fields/UserSelect.js +15 -4
- package/dist/cjs/ui/ConfigPanel/Header.js +30 -30
- package/dist/cjs/ui/ContentStyles/index.js +13 -20
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +5 -6
- package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +30 -23
- package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +51 -47
- package/dist/cjs/ui/ElementBrowser/components/ElementList/EmptyState.js +17 -14
- package/dist/cjs/ui/ElementBrowser/components/ElementList/NotFoundIllustration.js +18 -18
- package/dist/cjs/ui/ElementBrowser/components/StatelessElementBrowser.js +55 -68
- package/dist/cjs/ui/ElementBrowser/hooks/use-container-width.js +10 -11
- package/dist/cjs/ui/FloatingToolbar/styles.js +1 -1
- package/dist/cjs/ui/LinkSearch/LinkSearchList.js +18 -22
- package/dist/cjs/ui/PortalProvider/index.js +3 -3
- package/dist/cjs/ui/Resizer/styled.js +7 -5
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +5 -3
- package/dist/cjs/ui/WithFlash/index.js +9 -17
- package/dist/cjs/utils/insert.js +25 -2
- package/dist/cjs/utils/performance/components/RenderTracking.js +52 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/ErrorBoundary.js +2 -2
- package/dist/es2019/create-editor/ReactEditorView.js +1 -1
- package/dist/es2019/editor.js +3 -5
- package/dist/es2019/keymaps/index.js +10 -4
- package/dist/es2019/labs/next/full-page.js +44 -43
- package/dist/es2019/labs/next/presets/cxhtml.js +0 -1
- package/dist/es2019/nodeviews/ReactNodeView.js +13 -35
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.js +216 -0
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +15 -0
- package/dist/es2019/nodeviews/getPerformanceOptions.js +47 -0
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +18 -7
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/styles.js +5 -5
- package/dist/es2019/plugins/analytics/types/enums.js +2 -0
- package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +12 -7
- package/dist/es2019/plugins/base/index.js +24 -5
- package/dist/es2019/plugins/base/pm-plugins/inline-cursor-target.js +135 -77
- package/dist/es2019/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +5 -4
- package/dist/es2019/plugins/block-type/commands/block-type.js +18 -11
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +10 -6
- package/dist/es2019/plugins/card/nodeviews/genericCard.js +5 -5
- package/dist/es2019/plugins/card/pm-plugins/doc.js +44 -4
- package/dist/es2019/plugins/card/pm-plugins/main.js +17 -1
- package/dist/es2019/plugins/card/styles.js +1 -1
- package/dist/es2019/plugins/card/ui/LinkToolbarIconDropdown.js +6 -6
- package/dist/es2019/plugins/card/ui/ResizableEmbedCard.js +8 -7
- package/dist/es2019/plugins/code-block/styles.js +4 -0
- package/dist/es2019/plugins/collab-edit/styles.js +1 -1
- package/dist/es2019/plugins/collab-edit/ui/avatars.js +6 -2
- package/dist/es2019/plugins/collab-edit/ui/colored-avatar-item.js +5 -4
- package/dist/es2019/plugins/collab-edit/ui/invite-to-edit.js +9 -5
- package/dist/es2019/plugins/collab-edit/ui/styles.js +5 -7
- package/dist/es2019/plugins/date/nodeviews/date.js +37 -48
- package/dist/es2019/plugins/date/pm-plugins/main.js +8 -10
- package/dist/es2019/plugins/date/styles.js +1 -1
- package/dist/es2019/plugins/date/ui/DatePicker/date-picker-input.js +8 -4
- package/dist/es2019/plugins/date/ui/DatePicker/index.js +9 -5
- package/dist/es2019/plugins/emoji/styles.js +1 -2
- package/dist/es2019/plugins/expand/ui/ExpandIconButton.js +13 -14
- package/dist/es2019/plugins/expand/ui/styles.js +32 -22
- package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +17 -11
- package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +7 -6
- package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/index.js +9 -5
- package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/styles.js +5 -3
- package/dist/es2019/plugins/extension/ui/Extension/Lozenge.js +14 -7
- package/dist/es2019/plugins/extension/ui/Extension/styles.js +14 -8
- package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +15 -9
- package/dist/es2019/plugins/extension/ui/styles.js +2 -1
- package/dist/es2019/plugins/fake-text-cursor/styles.js +1 -1
- package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +1 -1
- package/dist/es2019/plugins/find-replace/styles.js +1 -1
- package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +12 -8
- package/dist/es2019/plugins/floating-toolbar/ui/styles.js +7 -1
- package/dist/es2019/plugins/grid/styles.js +1 -1
- package/dist/es2019/plugins/help-dialog/ui/index.js +132 -37
- package/dist/es2019/plugins/help-dialog/ui/styles.js +13 -13
- package/dist/es2019/plugins/hyperlink/styles.js +1 -5
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +25 -20
- package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +14 -7
- package/dist/es2019/plugins/list/commands/index.js +7 -0
- package/dist/es2019/plugins/list/pm-plugins/main.js +6 -0
- package/dist/es2019/plugins/list/styles.js +1 -1
- package/dist/es2019/plugins/list/utils/node.js +4 -3
- package/dist/es2019/plugins/media/index.js +1 -28
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +30 -16
- package/dist/es2019/plugins/media/pm-plugins/main.js +1 -7
- package/dist/es2019/plugins/media/pm-plugins/media-editor-plugin-factory.js +1 -49
- package/dist/es2019/plugins/media/styles.js +1 -2
- package/dist/es2019/plugins/media/toolbar/index.js +0 -12
- package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +0 -1
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/index.js +14 -9
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/styled.js +4 -5
- package/dist/es2019/plugins/media/utils/media-single.js +9 -5
- package/dist/es2019/plugins/mentions/styles.js +1 -1
- package/dist/es2019/plugins/panel/styles.js +3 -3
- package/dist/es2019/plugins/placeholder/styles.js +1 -1
- package/dist/es2019/plugins/placeholder-text/styles.js +1 -1
- package/dist/es2019/plugins/rule/pm-plugins/input-rule.js +4 -1
- package/dist/es2019/plugins/rule/styles.js +3 -3
- package/dist/es2019/plugins/selection/gap-cursor/styles.js +2 -2
- package/dist/es2019/plugins/selection/pm-plugins/selection-main.js +4 -20
- package/dist/es2019/plugins/status/index.js +1 -5
- package/dist/es2019/plugins/status/nodeviews/status.js +45 -82
- package/dist/es2019/plugins/status/plugin.js +13 -6
- package/dist/es2019/plugins/status/styles.js +1 -7
- package/dist/es2019/plugins/table/index.js +1 -1
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +11 -10
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/styles.js +1 -1
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/index.js +7 -8
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/styles.js +1 -1
- package/dist/es2019/plugins/table/ui/common-styles.js +4 -0
- package/dist/es2019/plugins/tasks-and-decisions/styles.js +1 -1
- package/dist/es2019/plugins/type-ahead/constants.js +1 -0
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +11 -1
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +19 -51
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +41 -3
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +3 -1
- package/dist/es2019/plugins/unsupported-content/styles.js +1 -1
- package/dist/es2019/profiler/render-count.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +0 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +0 -1
- package/dist/es2019/ui/Appearance/FullPage/messages.js +1 -1
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +19 -16
- package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +18 -13
- package/dist/es2019/ui/ConfigPanel/Fields/TabGroup.js +14 -8
- package/dist/es2019/ui/ConfigPanel/Fields/UserSelect.js +12 -3
- package/dist/es2019/ui/ConfigPanel/Header.js +30 -19
- package/dist/es2019/ui/ContentStyles/index.js +33 -38
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +5 -6
- package/dist/es2019/ui/ElementBrowser/ModalElementBrowser.js +49 -38
- package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +54 -33
- package/dist/es2019/ui/ElementBrowser/components/ElementList/EmptyState.js +18 -10
- package/dist/es2019/ui/ElementBrowser/components/ElementList/NotFoundIllustration.js +19 -17
- package/dist/es2019/ui/ElementBrowser/components/StatelessElementBrowser.js +132 -119
- package/dist/es2019/ui/ElementBrowser/hooks/use-container-width.js +10 -9
- package/dist/es2019/ui/FloatingToolbar/styles.js +2 -1
- package/dist/es2019/ui/LinkSearch/LinkSearchList.js +14 -9
- package/dist/es2019/ui/PortalProvider/index.js +3 -3
- package/dist/es2019/ui/Resizer/styled.js +3 -3
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +6 -3
- package/dist/es2019/ui/WithFlash/index.js +15 -6
- package/dist/es2019/utils/insert.js +20 -0
- package/dist/es2019/utils/performance/components/RenderTracking.js +37 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/ErrorBoundary.js +2 -2
- package/dist/esm/create-editor/ReactEditorView.js +1 -1
- package/dist/esm/editor.js +3 -5
- package/dist/esm/keymaps/index.js +7 -4
- package/dist/esm/labs/next/full-page.js +38 -36
- package/dist/esm/labs/next/presets/cxhtml.js +0 -1
- package/dist/esm/nodeviews/ReactNodeView.js +17 -38
- package/dist/esm/nodeviews/getInlineNodeViewProducer.js +212 -0
- package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +9 -0
- package/dist/esm/nodeviews/getPerformanceOptions.js +45 -0
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +17 -7
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/styles.js +5 -5
- package/dist/esm/plugins/analytics/types/enums.js +2 -0
- package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +9 -9
- package/dist/esm/plugins/base/index.js +26 -7
- package/dist/esm/plugins/base/pm-plugins/inline-cursor-target.js +134 -69
- package/dist/esm/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +5 -4
- package/dist/esm/plugins/block-type/commands/block-type.js +19 -9
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +9 -6
- package/dist/esm/plugins/card/nodeviews/genericCard.js +5 -5
- package/dist/esm/plugins/card/pm-plugins/doc.js +47 -4
- package/dist/esm/plugins/card/pm-plugins/main.js +15 -1
- package/dist/esm/plugins/card/styles.js +1 -1
- package/dist/esm/plugins/card/ui/LinkToolbarIconDropdown.js +6 -6
- package/dist/esm/plugins/card/ui/ResizableEmbedCard.js +8 -9
- package/dist/esm/plugins/code-block/styles.js +2 -2
- package/dist/esm/plugins/collab-edit/styles.js +1 -1
- package/dist/esm/plugins/collab-edit/ui/avatars.js +6 -2
- package/dist/esm/plugins/collab-edit/ui/colored-avatar-item.js +5 -4
- package/dist/esm/plugins/collab-edit/ui/invite-to-edit.js +9 -5
- package/dist/esm/plugins/collab-edit/ui/styles.js +6 -7
- package/dist/esm/plugins/date/nodeviews/date.js +30 -71
- package/dist/esm/plugins/date/pm-plugins/main.js +8 -9
- package/dist/esm/plugins/date/styles.js +1 -1
- package/dist/esm/plugins/date/ui/DatePicker/date-picker-input.js +7 -4
- package/dist/esm/plugins/date/ui/DatePicker/index.js +8 -5
- package/dist/esm/plugins/emoji/styles.js +2 -2
- package/dist/esm/plugins/expand/ui/ExpandIconButton.js +13 -15
- package/dist/esm/plugins/expand/ui/styles.js +24 -12
- package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +18 -11
- package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +5 -5
- package/dist/esm/plugins/extension/ui/Extension/InlineExtension/index.js +9 -5
- package/dist/esm/plugins/extension/ui/Extension/InlineExtension/styles.js +5 -3
- package/dist/esm/plugins/extension/ui/Extension/Lozenge.js +13 -7
- package/dist/esm/plugins/extension/ui/Extension/styles.js +13 -11
- package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +15 -9
- package/dist/esm/plugins/extension/ui/styles.js +2 -2
- package/dist/esm/plugins/fake-text-cursor/styles.js +1 -1
- package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +1 -1
- package/dist/esm/plugins/find-replace/styles.js +1 -1
- package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +6 -7
- package/dist/esm/plugins/floating-toolbar/ui/styles.js +7 -1
- package/dist/esm/plugins/grid/styles.js +1 -1
- package/dist/esm/plugins/help-dialog/ui/index.js +135 -41
- package/dist/esm/plugins/help-dialog/ui/styles.js +13 -13
- package/dist/esm/plugins/hyperlink/styles.js +3 -5
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -20
- package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +14 -7
- package/dist/esm/plugins/list/commands/index.js +7 -0
- package/dist/esm/plugins/list/pm-plugins/main.js +6 -0
- package/dist/esm/plugins/list/styles.js +1 -1
- package/dist/esm/plugins/list/utils/node.js +4 -3
- package/dist/esm/plugins/media/index.js +9 -37
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +29 -15
- package/dist/esm/plugins/media/pm-plugins/main.js +1 -9
- package/dist/esm/plugins/media/pm-plugins/media-editor-plugin-factory.js +1 -58
- package/dist/esm/plugins/media/styles.js +1 -1
- package/dist/esm/plugins/media/toolbar/index.js +0 -12
- package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -1
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +13 -9
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/styled.js +4 -3
- package/dist/esm/plugins/media/utils/media-single.js +9 -5
- package/dist/esm/plugins/mentions/styles.js +1 -1
- package/dist/esm/plugins/panel/styles.js +4 -2
- package/dist/esm/plugins/placeholder/styles.js +1 -1
- package/dist/esm/plugins/placeholder-text/styles.js +1 -1
- package/dist/esm/plugins/rule/pm-plugins/input-rule.js +2 -1
- package/dist/esm/plugins/rule/styles.js +4 -2
- package/dist/esm/plugins/selection/gap-cursor/styles.js +3 -3
- package/dist/esm/plugins/selection/pm-plugins/selection-main.js +5 -21
- package/dist/esm/plugins/status/index.js +9 -12
- package/dist/esm/plugins/status/nodeviews/status.js +37 -115
- package/dist/esm/plugins/status/plugin.js +13 -6
- package/dist/esm/plugins/status/styles.js +2 -2
- package/dist/esm/plugins/table/index.js +1 -1
- package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +10 -11
- package/dist/esm/plugins/table/ui/FloatingContextualButton/styles.js +1 -1
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/index.js +7 -10
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/styles.js +1 -1
- package/dist/esm/plugins/table/ui/common-styles.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/styles.js +1 -1
- package/dist/esm/plugins/type-ahead/constants.js +1 -0
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +9 -1
- package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +18 -56
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +44 -3
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +3 -1
- package/dist/esm/plugins/unsupported-content/styles.js +1 -1
- package/dist/esm/profiler/render-count.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +0 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +0 -1
- package/dist/esm/ui/Appearance/FullPage/messages.js +1 -1
- package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +19 -16
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +17 -13
- package/dist/esm/ui/ConfigPanel/Fields/TabGroup.js +13 -8
- package/dist/esm/ui/ConfigPanel/Fields/UserSelect.js +14 -3
- package/dist/esm/ui/ConfigPanel/Header.js +30 -19
- package/dist/esm/ui/ContentStyles/index.js +12 -17
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +5 -6
- package/dist/esm/ui/ElementBrowser/ModalElementBrowser.js +29 -18
- package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +50 -35
- package/dist/esm/ui/ElementBrowser/components/ElementList/EmptyState.js +18 -10
- package/dist/esm/ui/ElementBrowser/components/ElementList/NotFoundIllustration.js +19 -17
- package/dist/esm/ui/ElementBrowser/components/StatelessElementBrowser.js +53 -52
- package/dist/esm/ui/ElementBrowser/hooks/use-container-width.js +9 -8
- package/dist/esm/ui/FloatingToolbar/styles.js +1 -1
- package/dist/esm/ui/LinkSearch/LinkSearchList.js +14 -9
- package/dist/esm/ui/PortalProvider/index.js +3 -3
- package/dist/esm/ui/Resizer/styled.js +4 -2
- package/dist/esm/ui/Toolbar/ToolbarInner.js +6 -3
- package/dist/esm/ui/WithFlash/index.js +8 -8
- package/dist/esm/utils/insert.js +20 -0
- package/dist/esm/utils/performance/components/RenderTracking.js +39 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/editor.d.ts +1 -1
- package/dist/types/keymaps/index.d.ts +3 -2
- package/dist/types/labs/next/full-page.d.ts +1 -1
- package/dist/types/labs/next/mobile.d.ts +1 -1
- package/dist/types/nodeviews/ReactNodeView.d.ts +0 -5
- package/dist/types/nodeviews/getInlineNodeViewProducer.d.ts +23 -0
- package/dist/types/nodeviews/getInlineNodeViewProducer.styles.d.ts +1 -0
- package/dist/types/nodeviews/getPerformanceOptions.d.ts +19 -0
- package/dist/types/plugins/alignment/ui/ToolbarAlignment/index.d.ts +3 -1
- package/dist/types/plugins/alignment/ui/ToolbarAlignment/styles.d.ts +4 -5
- package/dist/types/plugins/analytics/types/enums.d.ts +2 -0
- package/dist/types/plugins/analytics/types/events.d.ts +11 -3
- package/dist/types/plugins/analytics/types/general-events.d.ts +1 -1
- package/dist/types/plugins/analytics/types/utils.d.ts +4 -0
- package/dist/types/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/inline-cursor-target.d.ts +12 -6
- package/dist/types/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.d.ts +3 -3
- package/dist/types/plugins/breakout/ui/LayoutButton.d.ts +1 -0
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +1 -0
- package/dist/types/plugins/card/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/card/styles.d.ts +1 -1
- package/dist/types/plugins/card/ui/LinkToolbarButtonGroup.d.ts +1 -1
- package/dist/types/plugins/collab-edit/styles.d.ts +1 -1
- package/dist/types/plugins/collab-edit/ui/avatars.d.ts +1 -0
- package/dist/types/plugins/collab-edit/ui/colored-avatar-item.d.ts +3 -2
- package/dist/types/plugins/collab-edit/ui/invite-to-edit.d.ts +1 -0
- package/dist/types/plugins/collab-edit/ui/styles.d.ts +3 -8
- package/dist/types/plugins/date/nodeviews/date.d.ts +3 -15
- package/dist/types/plugins/date/styles.d.ts +1 -1
- package/dist/types/plugins/date/ui/DatePicker/date-picker-input.d.ts +1 -0
- package/dist/types/plugins/date/ui/DatePicker/index.d.ts +1 -0
- package/dist/types/plugins/emoji/styles.d.ts +2 -2
- package/dist/types/plugins/expand/ui/ExpandIconButton.d.ts +5 -3
- package/dist/types/plugins/expand/ui/styles.d.ts +2 -1
- package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +1 -0
- package/dist/types/plugins/extension/ui/Extension/Extension/styles.d.ts +3 -8
- package/dist/types/plugins/extension/ui/Extension/InlineExtension/index.d.ts +3 -1
- package/dist/types/plugins/extension/ui/Extension/InlineExtension/styles.d.ts +2 -2
- package/dist/types/plugins/extension/ui/Extension/Lozenge.d.ts +3 -1
- package/dist/types/plugins/extension/ui/Extension/styles.d.ts +6 -6
- package/dist/types/plugins/extension/ui/SaveIndicator/SaveIndicator.d.ts +1 -0
- package/dist/types/plugins/extension/ui/styles.d.ts +1 -1
- package/dist/types/plugins/fake-text-cursor/styles.d.ts +1 -1
- package/dist/types/plugins/find-replace/styles.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/ui/styles.d.ts +6 -1
- package/dist/types/plugins/grid/styles.d.ts +1 -1
- package/dist/types/plugins/help-dialog/ui/index.d.ts +3 -1
- package/dist/types/plugins/help-dialog/ui/styles.d.ts +12 -13
- package/dist/types/plugins/hyperlink/styles.d.ts +2 -4
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +4 -2
- package/dist/types/plugins/jira-issue/nodeviews/jira-issue.d.ts +3 -2
- package/dist/types/plugins/list/styles.d.ts +1 -1
- package/dist/types/plugins/list/utils/node.d.ts +0 -1
- package/dist/types/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.d.ts +3 -1
- package/dist/types/plugins/media/pm-plugins/main.d.ts +0 -1
- package/dist/types/plugins/media/pm-plugins/media-editor-plugin-factory.d.ts +1 -3
- package/dist/types/plugins/media/types.d.ts +0 -19
- package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +3 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/styled.d.ts +2 -2
- package/dist/types/plugins/mentions/styles.d.ts +1 -1
- package/dist/types/plugins/panel/styles.d.ts +2 -1
- package/dist/types/plugins/placeholder/styles.d.ts +1 -1
- package/dist/types/plugins/placeholder-text/styles.d.ts +1 -1
- package/dist/types/plugins/rule/styles.d.ts +2 -1
- package/dist/types/plugins/selection/gap-cursor/styles.d.ts +1 -1
- package/dist/types/plugins/status/nodeviews/status.d.ts +6 -13
- package/dist/types/plugins/status/plugin.d.ts +2 -3
- package/dist/types/plugins/status/styles.d.ts +1 -1
- package/dist/types/plugins/status/ui/statusPicker.d.ts +1 -1
- package/dist/types/plugins/table/ui/FloatingContextualButton/index.d.ts +4 -2
- package/dist/types/plugins/table/ui/FloatingContextualButton/styles.d.ts +1 -1
- package/dist/types/plugins/table/ui/FloatingContextualMenu/index.d.ts +3 -2
- package/dist/types/plugins/table/ui/FloatingContextualMenu/styles.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/styles.d.ts +1 -1
- package/dist/types/plugins/type-ahead/constants.d.ts +1 -0
- package/dist/types/plugins/type-ahead/ui/TypeAheadList.d.ts +1 -0
- package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +26 -0
- package/dist/types/plugins/unsupported-content/styles.d.ts +1 -1
- package/dist/types/types/editor-appearance-component.d.ts +0 -1
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +0 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +3 -9
- package/dist/types/ui/ColorPickerButton/index.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ErrorMessage/ErrorImage.d.ts +1 -0
- package/dist/types/ui/ConfigPanel/Fields/Boolean.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/Fields/TabGroup.d.ts +1 -0
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Header.d.ts +3 -3
- package/dist/types/ui/ContentStyles/index.d.ts +1 -4
- package/dist/types/ui/ElementBrowser/ModalElementBrowser.d.ts +1 -0
- package/dist/types/ui/ElementBrowser/components/ElementList/ElementList.d.ts +1 -0
- package/dist/types/ui/ElementBrowser/components/ElementSearch.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +2 -1
- package/dist/types/ui/ElementBrowser/hooks/use-container-width.d.ts +1 -0
- package/dist/types/ui/LinkSearch/LinkSearchList.d.ts +4 -3
- package/dist/types/ui/Resizer/styled.d.ts +1 -2
- package/dist/types/ui/Toolbar/ToolbarInner.d.ts +3 -1
- package/dist/types/ui/ToolbarButton/index.d.ts +3 -3
- package/dist/types/ui/ToolbarButton/styles.d.ts +2 -2
- package/dist/types/ui/WithFlash/index.d.ts +3 -1
- package/dist/types/utils/insert.d.ts +2 -1
- package/dist/types/utils/performance/components/RenderTracking.d.ts +13 -0
- package/package.json +27 -29
- package/dist/cjs/plugins/media/commands/media-editor.js +0 -80
- package/dist/cjs/plugins/media/pm-plugins/media-editor.js +0 -106
- package/dist/cjs/plugins/media/toolbar/annotation.js +0 -244
- package/dist/cjs/plugins/media/ui/MediaEditor.js +0 -88
- package/dist/cjs/utils/compare.js +0 -136
- package/dist/cjs/utils/react-hooks/use-component-renderer-tracking/index.js +0 -83
- package/dist/es2019/plugins/media/commands/media-editor.js +0 -46
- package/dist/es2019/plugins/media/pm-plugins/media-editor.js +0 -43
- package/dist/es2019/plugins/media/toolbar/annotation.js +0 -136
- package/dist/es2019/plugins/media/ui/MediaEditor.js +0 -51
- package/dist/es2019/utils/compare.js +0 -99
- package/dist/es2019/utils/react-hooks/use-component-renderer-tracking/index.js +0 -66
- package/dist/esm/plugins/media/commands/media-editor.js +0 -59
- package/dist/esm/plugins/media/pm-plugins/media-editor.js +0 -90
- package/dist/esm/plugins/media/toolbar/annotation.js +0 -218
- package/dist/esm/plugins/media/ui/MediaEditor.js +0 -76
- package/dist/esm/utils/compare.js +0 -115
- package/dist/esm/utils/react-hooks/use-component-renderer-tracking/index.js +0 -68
- package/dist/types/plugins/media/commands/media-editor.d.ts +0 -7
- package/dist/types/plugins/media/pm-plugins/media-editor.d.ts +0 -3
- package/dist/types/plugins/media/toolbar/annotation.d.ts +0 -24
- package/dist/types/plugins/media/ui/MediaEditor.d.ts +0 -14
- package/dist/types/utils/compare.d.ts +0 -32
- package/dist/types/utils/react-hooks/use-component-renderer-tracking/index.d.ts +0 -30
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
|
|
3
|
+
/** @jsx jsx */
|
|
2
4
|
import React, { memo, useState, useCallback, useEffect } from 'react';
|
|
5
|
+
import { css, jsx } from '@emotion/react';
|
|
3
6
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import styled, { css } from 'styled-components';
|
|
5
7
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
8
|
import { fireAnalyticsEvent, EVENT_TYPE, ACTION_SUBJECT, ACTION } from '../../../plugins/analytics';
|
|
7
9
|
import ElementList from './ElementList/ElementList';
|
|
@@ -10,6 +12,101 @@ import ElementSearch from './ElementSearch';
|
|
|
10
12
|
import { DEVICE_BREAKPOINT_NUMBERS, GRID_SIZE, INLINE_SIDEBAR_HEIGHT, SIDEBAR_HEADING_PADDING_LEFT, SIDEBAR_HEADING_WRAPPER_HEIGHT, SIDEBAR_WIDTH } from '../constants';
|
|
11
13
|
import useContainerWidth from '../hooks/use-container-width';
|
|
12
14
|
import useSelectAndFocusOnArrowNavigation from '../hooks/use-select-and-focus-on-arrow-navigation';
|
|
15
|
+
const wrapper = css`
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-height: inherit;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
`;
|
|
20
|
+
const baseBrowserContainerStyles = css`
|
|
21
|
+
display: flex;
|
|
22
|
+
height: 100%;
|
|
23
|
+
/** Needed for Safari to work with current css.
|
|
24
|
+
* 100% heights wont work and
|
|
25
|
+
* will default to auto if one of the containers doesn't have a specified height in pixels.
|
|
26
|
+
* Setting the min-height to fill available fits safari's needs and the above 100% height works on the rest of the browsers.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */
|
|
30
|
+
|
|
31
|
+
/* stylelint-disable-next-line */
|
|
32
|
+
min-height: -webkit-fill-available;
|
|
33
|
+
`;
|
|
34
|
+
const mobileElementBrowserContainer = css`
|
|
35
|
+
${baseBrowserContainerStyles};
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
`;
|
|
38
|
+
const elementBrowserContainer = css`
|
|
39
|
+
${baseBrowserContainerStyles};
|
|
40
|
+
flex-direction: row;
|
|
41
|
+
`;
|
|
42
|
+
const baseSidebarStyles = css`
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
|
|
46
|
+
overflow-x: auto;
|
|
47
|
+
overflow-y: hidden;
|
|
48
|
+
`;
|
|
49
|
+
const mobileSideBar = css`
|
|
50
|
+
${baseSidebarStyles};
|
|
51
|
+
flex: 0 0 ${INLINE_SIDEBAR_HEIGHT};
|
|
52
|
+
padding: 12px 12px 0 12px;
|
|
53
|
+
`;
|
|
54
|
+
const mobileSideBarShowCategories = css`
|
|
55
|
+
flex: 0 0 auto;
|
|
56
|
+
`;
|
|
57
|
+
const sideBar = css`
|
|
58
|
+
${baseSidebarStyles};
|
|
59
|
+
flex: 0 0 'auto';
|
|
60
|
+
`;
|
|
61
|
+
const sideBarShowCategories = css`
|
|
62
|
+
${baseSidebarStyles};
|
|
63
|
+
flex: 0 0 ${SIDEBAR_WIDTH};
|
|
64
|
+
`;
|
|
65
|
+
const sidebarHeading = css`
|
|
66
|
+
flex: 0 0 ${SIDEBAR_HEADING_WRAPPER_HEIGHT};
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
padding-left: ${SIDEBAR_HEADING_PADDING_LEFT};
|
|
70
|
+
font-weight: 700;
|
|
71
|
+
`;
|
|
72
|
+
const mobileMainContent = css`
|
|
73
|
+
flex: 1 1 auto;
|
|
74
|
+
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
height: 100%;
|
|
80
|
+
`;
|
|
81
|
+
const mainContent = css`
|
|
82
|
+
${mobileMainContent}
|
|
83
|
+
margin-left: ${GRID_SIZE * 2}px;
|
|
84
|
+
// Needed for safari
|
|
85
|
+
height: auto;
|
|
86
|
+
`;
|
|
87
|
+
const searchContainer = css`
|
|
88
|
+
padding-bottom: ${GRID_SIZE * 2}px;
|
|
89
|
+
`;
|
|
90
|
+
const mobileCategoryListWrapper = css`
|
|
91
|
+
display: flex;
|
|
92
|
+
overflow-x: auto;
|
|
93
|
+
|
|
94
|
+
padding: ${GRID_SIZE}px 0 ${GRID_SIZE * 2}px 0;
|
|
95
|
+
min-height: ${GRID_SIZE * 4}px;
|
|
96
|
+
|
|
97
|
+
overflow: -moz-scrollbars-none;
|
|
98
|
+
::-webkit-scrollbar {
|
|
99
|
+
display: none;
|
|
100
|
+
}
|
|
101
|
+
scrollbar-width: none;
|
|
102
|
+
-ms-overflow-style: none;
|
|
103
|
+
`;
|
|
104
|
+
const categoryListWrapper = css`
|
|
105
|
+
${mobileCategoryListWrapper}
|
|
106
|
+
padding: 0;
|
|
107
|
+
margin-top: ${GRID_SIZE * 3}px;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
`;
|
|
13
110
|
|
|
14
111
|
function StatelessElementBrowser(props) {
|
|
15
112
|
const {
|
|
@@ -75,9 +172,10 @@ function StatelessElementBrowser(props) {
|
|
|
75
172
|
onSelectItem(selectedItem);
|
|
76
173
|
}
|
|
77
174
|
}, [onSelectItem, selectedItem]);
|
|
78
|
-
return
|
|
175
|
+
return jsx("div", {
|
|
176
|
+
css: wrapper,
|
|
79
177
|
"data-testid": "element-browser"
|
|
80
|
-
},
|
|
178
|
+
}, jsx(ContainerWidthMonitor, null), containerWidth < DEVICE_BREAKPOINT_NUMBERS.medium ? jsx(MobileBrowser, _extends({}, props, {
|
|
81
179
|
selectedItemIndex: selectedItemIndex,
|
|
82
180
|
focusedItemIndex: focusedItemIndex,
|
|
83
181
|
setFocusedItemIndex: setFocusedItemIndex,
|
|
@@ -86,7 +184,7 @@ function StatelessElementBrowser(props) {
|
|
|
86
184
|
setFocusOnSearch: setFocusOnSearch,
|
|
87
185
|
onKeyPress: onItemsEnterKeyPress,
|
|
88
186
|
onKeyDown: onKeyDown
|
|
89
|
-
})) :
|
|
187
|
+
})) : jsx(DesktopBrowser, _extends({}, props, {
|
|
90
188
|
selectedItemIndex: selectedItemIndex,
|
|
91
189
|
focusedItemIndex: focusedItemIndex,
|
|
92
190
|
setFocusedItemIndex: setFocusedItemIndex,
|
|
@@ -98,13 +196,6 @@ function StatelessElementBrowser(props) {
|
|
|
98
196
|
})));
|
|
99
197
|
}
|
|
100
198
|
|
|
101
|
-
const Wrapper = styled.div`
|
|
102
|
-
width: 100%;
|
|
103
|
-
max-height: inherit;
|
|
104
|
-
overflow: hidden;
|
|
105
|
-
`;
|
|
106
|
-
Wrapper.displayName = 'Wrapper';
|
|
107
|
-
|
|
108
199
|
function MobileBrowser({
|
|
109
200
|
showCategories,
|
|
110
201
|
showSearch,
|
|
@@ -127,25 +218,29 @@ function MobileBrowser({
|
|
|
127
218
|
createAnalyticsEvent,
|
|
128
219
|
emptyStateHandler
|
|
129
220
|
}) {
|
|
130
|
-
return
|
|
221
|
+
return jsx("div", {
|
|
222
|
+
css: mobileElementBrowserContainer,
|
|
131
223
|
onKeyPress: onKeyPress,
|
|
132
224
|
onKeyDown: onKeyDown,
|
|
133
225
|
"data-testid": "mobile__element-browser"
|
|
134
|
-
},
|
|
135
|
-
showCategories:
|
|
136
|
-
}, showSearch &&
|
|
226
|
+
}, jsx("div", {
|
|
227
|
+
css: showCategories ? [mobileSideBar, mobileSideBarShowCategories] : mobileSideBar
|
|
228
|
+
}, showSearch && jsx(ElementSearch, {
|
|
137
229
|
onSearch: onSearch,
|
|
138
230
|
mode: mode,
|
|
139
231
|
focus: focusOnSearch,
|
|
140
232
|
onClick: setFocusOnSearch,
|
|
141
233
|
searchTerm: searchTerm
|
|
142
|
-
}), showCategories &&
|
|
234
|
+
}), showCategories && jsx("nav", {
|
|
235
|
+
css: mobileCategoryListWrapper,
|
|
143
236
|
tabIndex: -1
|
|
144
|
-
},
|
|
237
|
+
}, jsx(CategoryList, {
|
|
145
238
|
categories: categories,
|
|
146
239
|
onSelectCategory: onSelectCategory,
|
|
147
240
|
selectedCategory: selectedCategory
|
|
148
|
-
}))),
|
|
241
|
+
}))), jsx("div", {
|
|
242
|
+
css: mobileMainContent
|
|
243
|
+
}, jsx(ElementList, {
|
|
149
244
|
items: items,
|
|
150
245
|
mode: mode,
|
|
151
246
|
onInsertItem: onInsertItem,
|
|
@@ -182,29 +277,39 @@ function DesktopBrowser({
|
|
|
182
277
|
createAnalyticsEvent,
|
|
183
278
|
emptyStateHandler
|
|
184
279
|
}) {
|
|
185
|
-
return
|
|
280
|
+
return jsx("div", {
|
|
281
|
+
css: elementBrowserContainer,
|
|
186
282
|
"data-testid": "desktop__element-browser"
|
|
187
|
-
}, showCategories &&
|
|
188
|
-
showCategories:
|
|
189
|
-
},
|
|
283
|
+
}, showCategories && jsx("div", {
|
|
284
|
+
css: showCategories ? sideBarShowCategories : sideBar
|
|
285
|
+
}, jsx("h2", {
|
|
286
|
+
css: sidebarHeading,
|
|
287
|
+
"data-testid": "sidebar-heading"
|
|
288
|
+
}, jsx(FormattedMessage, {
|
|
190
289
|
id: "fabric.editor.elementbrowser.sidebar.heading",
|
|
191
290
|
defaultMessage: "Browse",
|
|
192
291
|
description: "Sidebar heading"
|
|
193
|
-
})),
|
|
292
|
+
})), jsx("nav", {
|
|
293
|
+
css: categoryListWrapper
|
|
294
|
+
}, jsx(CategoryList, {
|
|
194
295
|
categories: categories,
|
|
195
296
|
onSelectCategory: onSelectCategory,
|
|
196
297
|
selectedCategory: selectedCategory,
|
|
197
298
|
createAnalyticsEvent: createAnalyticsEvent
|
|
198
|
-
}))),
|
|
299
|
+
}))), jsx("div", {
|
|
300
|
+
css: mainContent,
|
|
199
301
|
onKeyPress: onKeyPress,
|
|
200
|
-
onKeyDown: onKeyDown
|
|
201
|
-
|
|
302
|
+
onKeyDown: onKeyDown,
|
|
303
|
+
"data-testid": "main-content"
|
|
304
|
+
}, showSearch && jsx("div", {
|
|
305
|
+
css: searchContainer
|
|
306
|
+
}, jsx(ElementSearch, {
|
|
202
307
|
onSearch: onSearch,
|
|
203
308
|
mode: mode,
|
|
204
309
|
focus: focusOnSearch,
|
|
205
310
|
onClick: setFocusOnSearch,
|
|
206
311
|
searchTerm: searchTerm
|
|
207
|
-
})),
|
|
312
|
+
})), jsx(ElementList, {
|
|
208
313
|
items: items,
|
|
209
314
|
mode: mode,
|
|
210
315
|
onInsertItem: onInsertItem,
|
|
@@ -219,98 +324,6 @@ function DesktopBrowser({
|
|
|
219
324
|
})));
|
|
220
325
|
}
|
|
221
326
|
|
|
222
|
-
const baseBrowserContainerStyles = css`
|
|
223
|
-
display: flex;
|
|
224
|
-
height: 100%;
|
|
225
|
-
/** Needed for Safari to work with current css.
|
|
226
|
-
* 100% heights wont work and
|
|
227
|
-
* will default to auto if one of the containers doesn't have a specified height in pixels.
|
|
228
|
-
* Setting the min-height to fill available fits safari's needs and the above 100% height works on the rest of the browsers.
|
|
229
|
-
*/
|
|
230
|
-
min-height: -webkit-fill-available;
|
|
231
|
-
`;
|
|
232
|
-
const MobileElementBrowserContainer = styled.div`
|
|
233
|
-
${baseBrowserContainerStyles};
|
|
234
|
-
flex-direction: column;
|
|
235
|
-
`;
|
|
236
|
-
MobileElementBrowserContainer.displayName = 'MobileElementBrowserContainer';
|
|
237
|
-
const ElementBrowserContainer = styled.div`
|
|
238
|
-
${baseBrowserContainerStyles};
|
|
239
|
-
flex-direction: row;
|
|
240
|
-
`;
|
|
241
|
-
const baseSidebarStyles = css`
|
|
242
|
-
display: flex;
|
|
243
|
-
flex-direction: column;
|
|
244
|
-
|
|
245
|
-
overflow-x: auto;
|
|
246
|
-
overflow-y: hidden;
|
|
247
|
-
`;
|
|
248
|
-
const MobileSideBar = styled.div`
|
|
249
|
-
${baseSidebarStyles};
|
|
250
|
-
flex: 0 0
|
|
251
|
-
${({
|
|
252
|
-
showCategories
|
|
253
|
-
}) => showCategories ? 'auto' : INLINE_SIDEBAR_HEIGHT};
|
|
254
|
-
padding: 12px 12px 0 12px;
|
|
255
|
-
`;
|
|
256
|
-
const SideBar = styled.div`
|
|
257
|
-
${baseSidebarStyles};
|
|
258
|
-
flex: 0 0
|
|
259
|
-
${({
|
|
260
|
-
showCategories
|
|
261
|
-
}) => showCategories ? SIDEBAR_WIDTH : 'auto'};
|
|
262
|
-
`;
|
|
263
|
-
const SidebarHeading = styled.h2`
|
|
264
|
-
flex: 0 0 ${SIDEBAR_HEADING_WRAPPER_HEIGHT};
|
|
265
|
-
display: inline-flex;
|
|
266
|
-
align-items: center;
|
|
267
|
-
padding-left: ${SIDEBAR_HEADING_PADDING_LEFT};
|
|
268
|
-
font-weight: 700;
|
|
269
|
-
`;
|
|
270
|
-
/**
|
|
271
|
-
* In enzyme styled components show up as styled.element
|
|
272
|
-
* and if we don't wanna export SidebarHeading just for testing.
|
|
273
|
-
* https://github.com/styled-components/styled-components/issues/896
|
|
274
|
-
*/
|
|
275
|
-
|
|
276
|
-
SidebarHeading.displayName = 'SidebarHeading';
|
|
277
|
-
const MobileMainContent = styled.div`
|
|
278
|
-
flex: 1 1 auto;
|
|
279
|
-
|
|
280
|
-
display: flex;
|
|
281
|
-
flex-direction: column;
|
|
282
|
-
|
|
283
|
-
overflow-y: auto;
|
|
284
|
-
height: 100%;
|
|
285
|
-
`;
|
|
286
|
-
const MainContent = styled(MobileMainContent)`
|
|
287
|
-
margin-left: ${GRID_SIZE * 2}px;
|
|
288
|
-
// Needed for safari
|
|
289
|
-
height: auto;
|
|
290
|
-
`;
|
|
291
|
-
MainContent.displayName = 'MainContent';
|
|
292
|
-
const SearchContainer = styled.div`
|
|
293
|
-
padding-bottom: ${GRID_SIZE * 2}px;
|
|
294
|
-
`;
|
|
295
|
-
const MobileCategoryListWrapper = styled.nav`
|
|
296
|
-
display: flex;
|
|
297
|
-
overflow-x: auto;
|
|
298
|
-
|
|
299
|
-
padding: ${GRID_SIZE}px 0 ${GRID_SIZE * 2}px 0;
|
|
300
|
-
min-height: ${GRID_SIZE * 4}px;
|
|
301
|
-
|
|
302
|
-
overflow: -moz-scrollbars-none;
|
|
303
|
-
::-webkit-scrollbar {
|
|
304
|
-
display: none;
|
|
305
|
-
}
|
|
306
|
-
scrollbar-width: none;
|
|
307
|
-
-ms-overflow-style: none;
|
|
308
|
-
`;
|
|
309
|
-
const CategoryListWrapper = styled(MobileCategoryListWrapper)`
|
|
310
|
-
padding: 0;
|
|
311
|
-
margin-top: ${GRID_SIZE * 3}px;
|
|
312
|
-
flex-direction: column;
|
|
313
|
-
`;
|
|
314
327
|
const MemoizedElementBrowser = /*#__PURE__*/memo(withAnalyticsContext({
|
|
315
328
|
source: 'ElementBrowser'
|
|
316
329
|
})(withAnalyticsEvents()(StatelessElementBrowser)));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React, { memo, useEffect, useRef, useState } from 'react';
|
|
2
|
-
import
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
@@ -27,6 +28,9 @@ import { WidthObserver } from '@atlaskit/width-detector';
|
|
|
27
28
|
*
|
|
28
29
|
*/
|
|
29
30
|
|
|
31
|
+
const widthObserverWrapper = css`
|
|
32
|
+
position: relative;
|
|
33
|
+
`;
|
|
30
34
|
export default function useContainerWidth() {
|
|
31
35
|
const [containerWidth, setContainerWidth] = useState(0);
|
|
32
36
|
const ref = useRef(null);
|
|
@@ -40,10 +44,11 @@ export default function useContainerWidth() {
|
|
|
40
44
|
}
|
|
41
45
|
}, [ref]);
|
|
42
46
|
const ContainerWidthMonitor = /*#__PURE__*/memo(() => {
|
|
43
|
-
return
|
|
44
|
-
|
|
47
|
+
return jsx("div", {
|
|
48
|
+
css: widthObserverWrapper,
|
|
49
|
+
ref: ref,
|
|
45
50
|
tabIndex: -1
|
|
46
|
-
},
|
|
51
|
+
}, jsx(WidthObserver, {
|
|
47
52
|
setWidth: setContainerWidth
|
|
48
53
|
}));
|
|
49
54
|
});
|
|
@@ -51,8 +56,4 @@ export default function useContainerWidth() {
|
|
|
51
56
|
containerWidth,
|
|
52
57
|
ContainerWidthMonitor
|
|
53
58
|
};
|
|
54
|
-
}
|
|
55
|
-
const WidthObserverWrapper = styled.div`
|
|
56
|
-
position: relative;
|
|
57
|
-
`;
|
|
58
|
-
WidthObserverWrapper.displayName = 'WidthObserverWrapper';
|
|
59
|
+
}
|
|
@@ -4,7 +4,8 @@ import { N0 } from '@atlaskit/theme/colors';
|
|
|
4
4
|
import { dropShadow } from '../styles';
|
|
5
5
|
export const Container = styled.div`
|
|
6
6
|
border-radius: ${borderRadius()}px;
|
|
7
|
-
${dropShadow}
|
|
7
|
+
${dropShadow}
|
|
8
|
+
display: flex;
|
|
8
9
|
align-items: center;
|
|
9
10
|
box-sizing: border-box;
|
|
10
11
|
padding: 4px 8px;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { css, jsx } from '@emotion/react';
|
|
2
3
|
import { PureComponent } from 'react';
|
|
3
4
|
import Spinner from '@atlaskit/spinner';
|
|
4
|
-
import styled from 'styled-components';
|
|
5
5
|
import LinkSearchListItem from './LinkSearchListItem';
|
|
6
|
-
const
|
|
6
|
+
const listContainer = css`
|
|
7
7
|
padding-top: 0;
|
|
8
8
|
`;
|
|
9
|
-
const
|
|
9
|
+
const spinnerContainer = css`
|
|
10
10
|
text-align: center;
|
|
11
11
|
min-height: 80px;
|
|
12
12
|
margin-top: 30px;
|
|
13
13
|
`;
|
|
14
|
-
export const
|
|
14
|
+
export const linkSearchList = css`
|
|
15
15
|
padding: 0;
|
|
16
16
|
list-style: none;
|
|
17
17
|
`;
|
|
@@ -33,11 +33,12 @@ export default class LinkSearchList extends PureComponent {
|
|
|
33
33
|
let loadingContent;
|
|
34
34
|
|
|
35
35
|
if (items && items.length > 0) {
|
|
36
|
-
itemsContent =
|
|
36
|
+
itemsContent = jsx("ul", {
|
|
37
|
+
css: linkSearchList,
|
|
37
38
|
id: id,
|
|
38
39
|
role: role,
|
|
39
40
|
"aria-controls": ariaControls
|
|
40
|
-
}, items.map((item, index) =>
|
|
41
|
+
}, items.map((item, index) => jsx(LinkSearchListItem, {
|
|
41
42
|
id: `link-search-list-item-${index}`,
|
|
42
43
|
role: role && 'option',
|
|
43
44
|
item: item,
|
|
@@ -51,12 +52,16 @@ export default class LinkSearchList extends PureComponent {
|
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
if (isLoading) {
|
|
54
|
-
loadingContent =
|
|
55
|
+
loadingContent = jsx("div", {
|
|
56
|
+
css: spinnerContainer
|
|
57
|
+
}, jsx(Spinner, {
|
|
55
58
|
size: "medium"
|
|
56
59
|
}));
|
|
57
60
|
}
|
|
58
61
|
|
|
59
|
-
return
|
|
62
|
+
return jsx("div", {
|
|
63
|
+
css: listContainer
|
|
64
|
+
}, itemsContent, loadingContent);
|
|
60
65
|
}
|
|
61
66
|
|
|
62
67
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
var _class
|
|
3
|
+
var _class;
|
|
4
4
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { createPortal, unstable_renderSubtreeIntoContainer, unmountComponentAtNode } from 'react-dom';
|
|
@@ -156,7 +156,7 @@ const dummyAnalyticsContext = {
|
|
|
156
156
|
getAtlaskitAnalyticsEventHandlers() {}
|
|
157
157
|
|
|
158
158
|
};
|
|
159
|
-
const AnalyticsContextWrapper = (
|
|
159
|
+
const AnalyticsContextWrapper = (_class = class AnalyticsContextWrapper extends React.Component {
|
|
160
160
|
render() {
|
|
161
161
|
const {
|
|
162
162
|
value
|
|
@@ -170,4 +170,4 @@ const AnalyticsContextWrapper = (_temp = _class = class AnalyticsContextWrapper
|
|
|
170
170
|
|
|
171
171
|
}, _defineProperty(_class, "contextTypes", {
|
|
172
172
|
contextAdapter: PropTypes.object
|
|
173
|
-
}),
|
|
173
|
+
}), _class);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
1
2
|
import { MediaSingleDimensionHelper } from '@atlaskit/editor-common/ui';
|
|
2
|
-
|
|
3
|
-
export const Wrapper = styled.div`
|
|
3
|
+
export const wrapperStyle = props => css`
|
|
4
4
|
& > div {
|
|
5
|
-
${MediaSingleDimensionHelper};
|
|
5
|
+
${MediaSingleDimensionHelper(props)};
|
|
6
6
|
position: relative;
|
|
7
7
|
clear: both;
|
|
8
8
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
const
|
|
5
|
+
const toolbarComponentsWrapper = css`
|
|
5
6
|
display: flex;
|
|
6
7
|
|
|
7
8
|
@media (max-width: ${akEditorMobileMaxWidth}px) {
|
|
@@ -35,7 +36,9 @@ export class ToolbarInner extends React.Component {
|
|
|
35
36
|
return null;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
return
|
|
39
|
+
return jsx("div", {
|
|
40
|
+
css: toolbarComponentsWrapper
|
|
41
|
+
}, items.map((component, key) => {
|
|
39
42
|
const props = {
|
|
40
43
|
key
|
|
41
44
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
|
|
3
|
+
/** @jsx jsx */
|
|
2
4
|
import React from 'react';
|
|
3
|
-
import
|
|
5
|
+
import { css, jsx, keyframes } from '@emotion/react';
|
|
4
6
|
import { R100 } from '@atlaskit/theme/colors';
|
|
5
7
|
const pulseBackground = keyframes`
|
|
6
8
|
50% {
|
|
@@ -18,13 +20,20 @@ const pulseBackgroundReverse = keyframes`
|
|
|
18
20
|
background-color: ${R100};
|
|
19
21
|
}
|
|
20
22
|
`;
|
|
21
|
-
const
|
|
23
|
+
const flashWrapper = css`
|
|
22
24
|
&.-flash > div {
|
|
23
25
|
animation: 0.25s ease-in-out ${pulseBackgroundReverse};
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
& > div {
|
|
27
|
-
animation:
|
|
29
|
+
animation: 'none';
|
|
30
|
+
}
|
|
31
|
+
`;
|
|
32
|
+
const flashWrapperAnimated = css`
|
|
33
|
+
${flashWrapper}
|
|
34
|
+
|
|
35
|
+
& > div {
|
|
36
|
+
animation: 0.25s ease-in-out ${pulseBackground};
|
|
28
37
|
}
|
|
29
38
|
`;
|
|
30
39
|
export default class WithFlash extends React.Component {
|
|
@@ -40,9 +49,9 @@ export default class WithFlash extends React.Component {
|
|
|
40
49
|
children
|
|
41
50
|
} = this.props;
|
|
42
51
|
this.toggle = animate && !this.toggle;
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
|
|
52
|
+
return jsx("div", {
|
|
53
|
+
css: animate ? flashWrapperAnimated : flashWrapper,
|
|
54
|
+
className: this.toggle ? '-flash' : ''
|
|
46
55
|
}, children);
|
|
47
56
|
}
|
|
48
57
|
|
|
@@ -47,6 +47,8 @@ const shouldSplit = (nodeType, schemaNodes) => {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
export const safeInsert = (content, position) => tr => {
|
|
50
|
+
var _tr$selection$$from$n;
|
|
51
|
+
|
|
50
52
|
const {
|
|
51
53
|
nodes
|
|
52
54
|
} = tr.doc.type.schema;
|
|
@@ -85,6 +87,14 @@ export const safeInsert = (content, position) => tr => {
|
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
|
|
90
|
+
const grandParentType = (_tr$selection$$from$n = tr.selection.$from.node(-1)) === null || _tr$selection$$from$n === void 0 ? void 0 : _tr$selection$$from$n.type;
|
|
91
|
+
const parentType = tr.selection.$from.parent.type;
|
|
92
|
+
|
|
93
|
+
if (!lookDirection && !shouldSplitSelectedNodeOnNodeInsertion(parentType, grandParentType, content)) {
|
|
94
|
+
// node to be inserted is an invalid child of selection so insert below selected node
|
|
95
|
+
return pmSafeInsert(content, tr.selection.from)(tr);
|
|
96
|
+
}
|
|
97
|
+
|
|
88
98
|
if (!lookDirection) {
|
|
89
99
|
// fallback to consumer for now
|
|
90
100
|
return null;
|
|
@@ -177,4 +187,14 @@ export const insertSelectedItem = (maybeNode, opts = {}) => (state, tr, start) =
|
|
|
177
187
|
}
|
|
178
188
|
|
|
179
189
|
return tr;
|
|
190
|
+
}; // ED-14584: Util to check if the current node is a paragraph & the content being
|
|
191
|
+
// inserted is a valid child of the grandparent node
|
|
192
|
+
// In this case, the node being inserted to should split
|
|
193
|
+
|
|
194
|
+
export const shouldSplitSelectedNodeOnNodeInsertion = (parentNodeType, grandParentNodeType, content) => {
|
|
195
|
+
if (parentNodeType.name === 'paragraph' && grandParentNodeType.validContent(Fragment.from(content))) {
|
|
196
|
+
return true;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return false;
|
|
180
200
|
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import debounce from 'lodash/debounce';
|
|
3
|
+
import { useComponentRenderTracking } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { EVENT_TYPE } from '../../../plugins/analytics';
|
|
5
|
+
export function RenderTracking(props) {
|
|
6
|
+
const debouncedHandleAnalyticsEvent = useMemo(() => debounce(props.handleAnalyticsEvent, 500), [props.handleAnalyticsEvent]);
|
|
7
|
+
useComponentRenderTracking({
|
|
8
|
+
onRender: ({
|
|
9
|
+
renderCount,
|
|
10
|
+
propsDifference
|
|
11
|
+
}) => {
|
|
12
|
+
if (!renderCount) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
debouncedHandleAnalyticsEvent({
|
|
17
|
+
payload: {
|
|
18
|
+
action: props.action,
|
|
19
|
+
actionSubject: props.actionSubject,
|
|
20
|
+
attributes: {
|
|
21
|
+
count: renderCount,
|
|
22
|
+
propsDifference: propsDifference
|
|
23
|
+
},
|
|
24
|
+
eventType: EVENT_TYPE.OPERATIONAL
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
},
|
|
28
|
+
propsDiffingOptions: {
|
|
29
|
+
enabled: true,
|
|
30
|
+
props: props.componentProps,
|
|
31
|
+
propsToIgnore: props.propsToIgnore,
|
|
32
|
+
useShallow: props.useShallow
|
|
33
|
+
},
|
|
34
|
+
zeroBasedCount: true
|
|
35
|
+
});
|
|
36
|
+
return null;
|
|
37
|
+
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -21,7 +21,7 @@ import uuid from 'uuid';
|
|
|
21
21
|
import memoizeOne from 'memoize-one';
|
|
22
22
|
import { sniffUserBrowserExtensions } from '@atlaskit/editor-common/utils';
|
|
23
23
|
import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
24
|
-
import {
|
|
24
|
+
import { IntlErrorBoundary } from '@atlaskit/editor-common/ui';
|
|
25
25
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../plugins/analytics';
|
|
26
26
|
import { editorAnalyticsChannel } from '../plugins/analytics/consts';
|
|
27
27
|
import { getFeatureFlags } from '../plugins/feature-flags-context';
|
|
@@ -248,7 +248,7 @@ export var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component
|
|
|
248
248
|
}, {
|
|
249
249
|
key: "render",
|
|
250
250
|
value: function render() {
|
|
251
|
-
return /*#__PURE__*/React.createElement(
|
|
251
|
+
return /*#__PURE__*/React.createElement(IntlErrorBoundary, null, this.props.children);
|
|
252
252
|
}
|
|
253
253
|
}]);
|
|
254
254
|
|
|
@@ -26,7 +26,7 @@ import { ExperienceStore, EditorExperience, RELIABILITY_INTERVAL } from '@atlask
|
|
|
26
26
|
import { createDispatch, EventDispatcher } from '../event-dispatcher';
|
|
27
27
|
import { processRawValue } from '../utils';
|
|
28
28
|
import { freezeUnsafeTransactionProperties } from '../utils/performance/safer-transactions';
|
|
29
|
-
import { RenderTracking } from '../utils/
|
|
29
|
+
import { RenderTracking } from '../utils/performance/components/RenderTracking';
|
|
30
30
|
import { findChangedNodesFromTransaction, validateNodes, validNode } from '../utils/nodes';
|
|
31
31
|
import createPluginList from './create-plugins-list';
|
|
32
32
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, FULL_WIDTH_MODE, getAnalyticsEventsFromTransaction, PLATFORMS } from '../plugins/analytics';
|