@atlaskit/editor-core 151.1.2 → 152.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 +112 -0
- package/dist/cjs/create-editor/ReactEditorView.js +22 -8
- package/dist/cjs/create-editor/create-plugins-list.js +30 -11
- package/dist/cjs/labs/next/presets/cxhtml.js +1 -2
- package/dist/cjs/labs/next/presets/default.js +3 -1
- package/dist/cjs/nodeviews/ReactNodeView.js +2 -2
- package/dist/cjs/nodeviews/SelectionBasedNodeView.js +6 -0
- package/dist/cjs/plugins/analytics/types/enums.js +1 -0
- package/dist/cjs/plugins/annotation/utils.js +19 -8
- package/dist/cjs/plugins/avatar-group/index.js +2 -1
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +5 -2
- package/dist/cjs/plugins/before-primaryToolbar/index.js +26 -0
- package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +28 -0
- package/dist/cjs/plugins/code-bidi-warning/index.js +5 -2
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/main.js +12 -3
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +15 -5
- package/dist/cjs/plugins/code-block/index.js +3 -3
- package/dist/cjs/plugins/code-block/nodeviews/highlighting-code-block.js +6 -3
- package/dist/cjs/plugins/code-block/pm-plugins/main.js +11 -3
- package/dist/cjs/plugins/extension/extension-api.js +10 -2
- package/dist/cjs/plugins/extension/ui/styles.js +1 -1
- package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +4 -2
- package/dist/cjs/plugins/find-replace/FindReplaceToolbarButtonWithState.js +172 -0
- package/dist/cjs/plugins/find-replace/index.js +14 -137
- package/dist/cjs/plugins/find-replace/ui/Find.js +16 -9
- package/dist/cjs/plugins/find-replace/ui/FindReplace.js +9 -2
- package/dist/cjs/plugins/find-replace/ui/Replace.js +11 -3
- package/dist/cjs/plugins/find-replace/ui/styles.js +44 -35
- package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +10 -4
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +1 -1
- package/dist/cjs/plugins/fragment/index.js +34 -0
- package/dist/cjs/plugins/fragment/plugin-key.js +11 -0
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/cjs/plugins/index.js +16 -0
- package/dist/cjs/plugins/list/actions/conversions.js +39 -71
- package/dist/cjs/plugins/list/transforms.js +7 -1
- package/dist/cjs/plugins/media/index.js +2 -3
- package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +3 -1
- package/dist/cjs/plugins/media/nodeviews/mediaInline.js +12 -5
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +6 -4
- package/dist/cjs/plugins/media/nodeviews/styles.js +6 -1
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +5 -1
- package/dist/cjs/plugins/media/pm-plugins/main.js +49 -15
- package/dist/cjs/plugins/media/toolbar/commands.js +59 -0
- package/dist/cjs/plugins/media/toolbar/filePreviewItem.js +7 -2
- package/dist/cjs/plugins/media/toolbar/index.js +90 -3
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +9 -1
- package/dist/cjs/plugins/media/utils/media-common.js +1 -1
- package/dist/cjs/plugins/media/utils/media-files.js +5 -1
- package/dist/cjs/plugins/panel/actions.js +2 -2
- package/dist/cjs/plugins/panel/index.js +3 -3
- package/dist/cjs/plugins/panel/nodeviews/panel.js +2 -2
- package/dist/cjs/plugins/panel/toolbar.js +10 -5
- package/dist/cjs/plugins/panel/utils.js +15 -0
- package/dist/cjs/plugins/rank.js +3 -2
- package/dist/cjs/plugins/selection/pm-plugins/selection-main.js +49 -1
- package/dist/cjs/plugins/status/ui/statusPicker.js +4 -2
- package/dist/cjs/plugins/table/commands/insert.js +1 -0
- package/dist/cjs/plugins/table/index.js +3 -2
- package/dist/cjs/plugins/table/nodeviews/OverflowShadowsObserver.js +1 -3
- package/dist/cjs/plugins/table/pm-plugins/main.js +26 -3
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +2 -0
- package/dist/cjs/plugins/table/transforms/column-width.js +14 -5
- package/dist/cjs/plugins/table/transforms/fix-tables.js +43 -6
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +3 -2
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -0
- package/dist/cjs/plugins/table/ui/common-styles.css.js +1 -1
- package/dist/cjs/plugins/table/ui/consts.js +1 -1
- package/dist/cjs/plugins/table/ui/messages.js +1 -1
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +2 -1
- package/dist/cjs/plugins/text-formatting/index.js +2 -1
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +1 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +77 -26
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +32 -9
- package/dist/cjs/ui/ColorPalette/Color/index.js +8 -18
- package/dist/cjs/ui/ColorPalette/index.js +7 -4
- package/dist/cjs/ui/ColorPickerButton/index.js +1 -1
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +114 -61
- package/dist/cjs/ui/ConfigPanel/FormContent.js +39 -26
- package/dist/cjs/ui/ConfigPanel/transformers.js +490 -248
- package/dist/cjs/ui/ConfigPanel/utils.js +2 -10
- package/dist/cjs/ui/DropdownMenu/index.js +3 -1
- package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +1 -1
- package/dist/cjs/ui/Resizer/index.js +9 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +19 -8
- package/dist/es2019/create-editor/create-plugins-list.js +31 -12
- package/dist/es2019/labs/next/presets/cxhtml.js +1 -2
- package/dist/es2019/labs/next/presets/default.js +3 -1
- package/dist/es2019/nodeviews/ReactNodeView.js +1 -1
- package/dist/es2019/nodeviews/SelectionBasedNodeView.js +11 -0
- package/dist/es2019/plugins/analytics/types/enums.js +1 -0
- package/dist/es2019/plugins/annotation/utils.js +18 -7
- package/dist/es2019/plugins/avatar-group/index.js +2 -1
- package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +3 -2
- package/dist/es2019/plugins/before-primaryToolbar/index.js +15 -0
- package/dist/es2019/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +12 -0
- package/dist/es2019/plugins/code-bidi-warning/index.js +8 -2
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/main.js +12 -2
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +16 -5
- package/dist/es2019/plugins/code-block/index.js +3 -2
- package/dist/es2019/plugins/code-block/nodeviews/highlighting-code-block.js +6 -3
- package/dist/es2019/plugins/code-block/pm-plugins/main.js +11 -3
- package/dist/es2019/plugins/extension/extension-api.js +9 -2
- package/dist/es2019/plugins/extension/ui/styles.js +6 -0
- package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +4 -2
- package/dist/es2019/plugins/find-replace/FindReplaceToolbarButtonWithState.js +152 -0
- package/dist/es2019/plugins/find-replace/index.js +15 -128
- package/dist/es2019/plugins/find-replace/ui/Find.js +18 -10
- package/dist/es2019/plugins/find-replace/ui/FindReplace.js +11 -3
- package/dist/es2019/plugins/find-replace/ui/Replace.js +12 -4
- package/dist/es2019/plugins/find-replace/ui/styles.js +37 -47
- package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +2 -1
- package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +10 -2
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +1 -1
- package/dist/es2019/plugins/fragment/index.js +22 -0
- package/dist/es2019/plugins/fragment/plugin-key.js +2 -0
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/es2019/plugins/index.js +2 -0
- package/dist/es2019/plugins/list/actions/conversions.js +38 -69
- package/dist/es2019/plugins/list/transforms.js +5 -1
- package/dist/es2019/plugins/media/index.js +2 -2
- package/dist/es2019/plugins/media/nodeviews/mediaGroup.js +2 -1
- package/dist/es2019/plugins/media/nodeviews/mediaInline.js +8 -4
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +7 -5
- package/dist/es2019/plugins/media/nodeviews/styles.js +2 -0
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +5 -1
- package/dist/es2019/plugins/media/pm-plugins/main.js +32 -17
- package/dist/es2019/plugins/media/toolbar/commands.js +47 -0
- package/dist/es2019/plugins/media/toolbar/filePreviewItem.js +6 -2
- package/dist/es2019/plugins/media/toolbar/index.js +90 -3
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/index.js +7 -1
- package/dist/es2019/plugins/media/utils/media-common.js +1 -1
- package/dist/es2019/plugins/media/utils/media-files.js +6 -1
- package/dist/es2019/plugins/panel/actions.js +2 -2
- package/dist/es2019/plugins/panel/index.js +5 -5
- package/dist/es2019/plugins/panel/nodeviews/panel.js +2 -2
- package/dist/es2019/plugins/panel/toolbar.js +10 -5
- package/dist/es2019/plugins/panel/utils.js +8 -1
- package/dist/es2019/plugins/rank.js +3 -2
- package/dist/es2019/plugins/selection/pm-plugins/selection-main.js +48 -1
- package/dist/es2019/plugins/status/ui/statusPicker.js +4 -2
- package/dist/es2019/plugins/table/commands/insert.js +1 -2
- package/dist/es2019/plugins/table/index.js +2 -1
- package/dist/es2019/plugins/table/nodeviews/OverflowShadowsObserver.js +1 -2
- package/dist/es2019/plugins/table/pm-plugins/main.js +25 -4
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +2 -0
- package/dist/es2019/plugins/table/transforms/column-width.js +13 -3
- package/dist/es2019/plugins/table/transforms/fix-tables.js +43 -5
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +3 -2
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -0
- package/dist/es2019/plugins/table/ui/common-styles.css.js +5 -1
- package/dist/es2019/plugins/table/ui/consts.js +2 -2
- package/dist/es2019/plugins/table/ui/messages.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/main.js +3 -3
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +2 -1
- package/dist/es2019/plugins/text-formatting/index.js +3 -2
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +2 -1
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +2 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +60 -27
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +51 -7
- package/dist/es2019/ui/ColorPalette/Color/index.js +9 -18
- package/dist/es2019/ui/ColorPalette/index.js +7 -4
- package/dist/es2019/ui/ColorPickerButton/index.js +1 -1
- package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +101 -49
- package/dist/es2019/ui/ConfigPanel/FormContent.js +35 -26
- package/dist/es2019/ui/ConfigPanel/transformers.js +243 -72
- package/dist/es2019/ui/ConfigPanel/utils.js +1 -2
- package/dist/es2019/ui/Dropdown/index.js +2 -1
- package/dist/es2019/ui/DropdownMenu/index.js +7 -3
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +1 -0
- package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +1 -0
- package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +2 -2
- package/dist/es2019/ui/Resizer/index.js +9 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +22 -8
- package/dist/esm/create-editor/create-plugins-list.js +31 -12
- package/dist/esm/labs/next/presets/cxhtml.js +1 -2
- package/dist/esm/labs/next/presets/default.js +3 -1
- package/dist/esm/nodeviews/ReactNodeView.js +2 -2
- package/dist/esm/nodeviews/SelectionBasedNodeView.js +7 -0
- package/dist/esm/plugins/analytics/types/enums.js +1 -0
- package/dist/esm/plugins/annotation/utils.js +18 -7
- package/dist/esm/plugins/avatar-group/index.js +2 -1
- package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +5 -2
- package/dist/esm/plugins/before-primaryToolbar/index.js +15 -0
- package/dist/esm/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +12 -0
- package/dist/esm/plugins/code-bidi-warning/index.js +5 -2
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/main.js +12 -3
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +15 -5
- package/dist/esm/plugins/code-block/index.js +3 -3
- package/dist/esm/plugins/code-block/nodeviews/highlighting-code-block.js +6 -3
- package/dist/esm/plugins/code-block/pm-plugins/main.js +11 -3
- package/dist/esm/plugins/extension/extension-api.js +9 -2
- package/dist/esm/plugins/extension/ui/styles.js +1 -1
- package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +4 -2
- package/dist/esm/plugins/find-replace/FindReplaceToolbarButtonWithState.js +155 -0
- package/dist/esm/plugins/find-replace/index.js +14 -131
- package/dist/esm/plugins/find-replace/ui/Find.js +17 -10
- package/dist/esm/plugins/find-replace/ui/FindReplace.js +10 -3
- package/dist/esm/plugins/find-replace/ui/Replace.js +11 -4
- package/dist/esm/plugins/find-replace/ui/styles.js +39 -18
- package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +2 -1
- package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +9 -4
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +1 -1
- package/dist/esm/plugins/fragment/index.js +22 -0
- package/dist/esm/plugins/fragment/plugin-key.js +2 -0
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/esm/plugins/index.js +2 -0
- package/dist/esm/plugins/list/actions/conversions.js +38 -71
- package/dist/esm/plugins/list/transforms.js +7 -1
- package/dist/esm/plugins/media/index.js +2 -3
- package/dist/esm/plugins/media/nodeviews/mediaGroup.js +2 -1
- package/dist/esm/plugins/media/nodeviews/mediaInline.js +11 -6
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +7 -5
- package/dist/esm/plugins/media/nodeviews/styles.js +2 -0
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +5 -1
- package/dist/esm/plugins/media/pm-plugins/main.js +47 -16
- package/dist/esm/plugins/media/toolbar/commands.js +45 -0
- package/dist/esm/plugins/media/toolbar/filePreviewItem.js +6 -2
- package/dist/esm/plugins/media/toolbar/index.js +88 -3
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +9 -1
- package/dist/esm/plugins/media/utils/media-common.js +1 -1
- package/dist/esm/plugins/media/utils/media-files.js +6 -1
- package/dist/esm/plugins/panel/actions.js +2 -2
- package/dist/esm/plugins/panel/index.js +5 -5
- package/dist/esm/plugins/panel/nodeviews/panel.js +2 -2
- package/dist/esm/plugins/panel/toolbar.js +9 -4
- package/dist/esm/plugins/panel/utils.js +13 -0
- package/dist/esm/plugins/rank.js +3 -2
- package/dist/esm/plugins/selection/pm-plugins/selection-main.js +50 -1
- package/dist/esm/plugins/status/ui/statusPicker.js +4 -2
- package/dist/esm/plugins/table/commands/insert.js +1 -2
- package/dist/esm/plugins/table/index.js +3 -2
- package/dist/esm/plugins/table/nodeviews/OverflowShadowsObserver.js +1 -2
- package/dist/esm/plugins/table/pm-plugins/main.js +27 -4
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +2 -0
- package/dist/esm/plugins/table/transforms/column-width.js +13 -3
- package/dist/esm/plugins/table/transforms/fix-tables.js +42 -4
- package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +3 -2
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -0
- package/dist/esm/plugins/table/ui/common-styles.css.js +1 -1
- package/dist/esm/plugins/table/ui/consts.js +2 -2
- package/dist/esm/plugins/table/ui/messages.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/main.js +3 -3
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +2 -1
- package/dist/esm/plugins/text-formatting/index.js +3 -2
- package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +2 -1
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +2 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +67 -27
- package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +20 -7
- package/dist/esm/ui/ColorPalette/Color/index.js +9 -16
- package/dist/esm/ui/ColorPalette/index.js +7 -4
- package/dist/esm/ui/ColorPickerButton/index.js +1 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +113 -62
- package/dist/esm/ui/ConfigPanel/FormContent.js +39 -26
- package/dist/esm/ui/ConfigPanel/transformers.js +488 -248
- package/dist/esm/ui/ConfigPanel/utils.js +1 -6
- package/dist/esm/ui/Dropdown/index.js +2 -1
- package/dist/esm/ui/DropdownMenu/index.js +7 -3
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +1 -0
- package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +1 -0
- package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +2 -2
- package/dist/esm/ui/Resizer/index.js +9 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/labs/next/full-page.d.ts +1 -1
- package/dist/types/nodeviews/ReactNodeView.d.ts +1 -1
- package/dist/types/nodeviews/SelectionBasedNodeView.d.ts +1 -0
- package/dist/types/plugins/analytics/types/enums.d.ts +1 -0
- package/dist/types/plugins/analytics/types/events.d.ts +7 -1
- package/dist/types/plugins/annotation/utils.d.ts +1 -1
- package/dist/types/plugins/avatar-group/index.d.ts +1 -0
- package/dist/types/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +1 -0
- package/dist/types/plugins/before-primaryToolbar/index.d.ts +5 -0
- package/dist/types/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.d.ts +5 -0
- package/dist/types/plugins/code-bidi-warning/index.d.ts +4 -2
- package/dist/types/plugins/code-bidi-warning/pm-plugins/main.d.ts +4 -2
- package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +2 -1
- package/dist/types/plugins/code-bidi-warning/pm-plugins/types.d.ts +1 -0
- package/dist/types/plugins/code-block/index.d.ts +1 -1
- package/dist/types/plugins/code-block/nodeviews/highlighting-code-block.d.ts +12 -1
- package/dist/types/plugins/code-block/pm-plugins/main.d.ts +3 -1
- package/dist/types/plugins/code-block/types.d.ts +2 -0
- package/dist/types/plugins/feature-flags-context/get-enabled-feature-flag-keys.d.ts +1 -1
- package/dist/types/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +15 -0
- package/dist/types/plugins/find-replace/index.d.ts +1 -0
- package/dist/types/plugins/find-replace/ui/Find.d.ts +1 -0
- package/dist/types/plugins/find-replace/ui/FindReplace.d.ts +1 -0
- package/dist/types/plugins/find-replace/ui/Replace.d.ts +1 -0
- package/dist/types/plugins/find-replace/ui/styles.d.ts +5 -14
- package/dist/types/plugins/floating-toolbar/ui/EmojiPickerButton.d.ts +1 -1
- package/dist/types/plugins/fragment/index.d.ts +5 -0
- package/dist/types/plugins/fragment/plugin-key.d.ts +2 -0
- package/dist/types/plugins/index.d.ts +2 -0
- package/dist/types/plugins/media/nodeviews/mediaInline.d.ts +3 -2
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/styles.d.ts +2 -0
- package/dist/types/plugins/media/toolbar/commands.d.ts +3 -0
- package/dist/types/plugins/media/toolbar/filePreviewItem.d.ts +2 -0
- package/dist/types/plugins/media/types.d.ts +0 -1
- package/dist/types/plugins/panel/actions.d.ts +1 -1
- package/dist/types/plugins/panel/types.d.ts +8 -2
- package/dist/types/plugins/quick-insert/index.d.ts +2 -1
- package/dist/types/plugins/table/commands/insert.d.ts +3 -0
- package/dist/types/plugins/table/pm-plugins/main.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +1 -0
- package/dist/types/plugins/table/transforms/column-width.d.ts +4 -1
- package/dist/types/plugins/table/transforms/fix-tables.d.ts +3 -2
- package/dist/types/plugins/table/types.d.ts +8 -0
- package/dist/types/plugins/table/ui/consts.d.ts +1 -1
- package/dist/types/types/editor-appearance-component.d.ts +2 -2
- package/dist/types/types/editor-props.d.ts +11 -1
- package/dist/types/types/feature-flags.d.ts +13 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/MainToolbar.d.ts +10 -1
- package/dist/types/ui/ColorPalette/Color/index.d.ts +8 -5
- package/dist/types/ui/ColorPalette/index.d.ts +1 -0
- package/dist/types/ui/ConfigPanel/transformers.d.ts +7 -1
- package/dist/types/ui/ConfigPanel/utils.d.ts +0 -1
- package/dist/types/ui/Resizer/index.d.ts +1 -0
- package/package.json +35 -31
- package/dist/cjs/plugins/floating-toolbar/ui/EditorRemoveEmojiIcon.js +0 -38
- package/dist/es2019/plugins/floating-toolbar/ui/EditorRemoveEmojiIcon.js +0 -28
- package/dist/esm/plugins/floating-toolbar/ui/EditorRemoveEmojiIcon.js +0 -28
- package/dist/types/plugins/floating-toolbar/ui/EditorRemoveEmojiIcon.d.ts +0 -1
|
@@ -7,7 +7,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
|
|
8
8
|
import { NodeSelection, Plugin } from 'prosemirror-state';
|
|
9
9
|
import { uuid } from '@atlaskit/adf-schema';
|
|
10
|
-
import { nodesBetweenChanged } from '../../../utils';
|
|
10
|
+
import { nodesBetweenChanged, SetAttrsStep } from '../../../utils';
|
|
11
11
|
import { createSelectionClickHandler } from '../../selection/utils';
|
|
12
12
|
import { decisionItemNodeView } from '../nodeviews/decisionItem';
|
|
13
13
|
import { taskItemNodeViewFactory } from '../nodeviews/taskItem';
|
|
@@ -145,9 +145,9 @@ export function createPlugin(portalProviderAPI, eventDispatcher, providerFactory
|
|
|
145
145
|
rest = _objectWithoutProperties(_node$attrs, ["localId"]);
|
|
146
146
|
|
|
147
147
|
if (localId === undefined || localId === null || localId === '') {
|
|
148
|
-
tr.
|
|
148
|
+
tr.step(new SetAttrsStep(pos, _objectSpread({
|
|
149
149
|
localId: uuid.generate()
|
|
150
|
-
}, rest));
|
|
150
|
+
}, rest)));
|
|
151
151
|
modified = true;
|
|
152
152
|
}
|
|
153
153
|
}
|
|
@@ -238,7 +238,8 @@ var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
|
|
|
238
238
|
onClick: function onClick(color) {
|
|
239
239
|
return _this2.changeTextColor(color, pluginState.disabled);
|
|
240
240
|
},
|
|
241
|
-
selectedColor: pluginState.color
|
|
241
|
+
selectedColor: pluginState.color,
|
|
242
|
+
isShowingMoreColors: isShowingMoreColors
|
|
242
243
|
})), showMoreColorsToggle && /*#__PURE__*/React.createElement(ShowMoreWrapper, null, /*#__PURE__*/React.createElement(Button, {
|
|
243
244
|
appearance: "subtle",
|
|
244
245
|
onClick: this.handleShowMoreToggle,
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { code, em, strike, strong, subsup, underline } from '@atlaskit/adf-schema';
|
|
3
3
|
import WithPluginState from '../../ui/WithPluginState';
|
|
4
4
|
import { plugin as textFormattingPlugin, pluginKey as textFormattingPluginKey } from './pm-plugins/main';
|
|
5
|
-
import { plugin as clearFormattingPlugin } from './pm-plugins/clear-formatting';
|
|
5
|
+
import { plugin as clearFormattingPlugin, pluginKey as clearFormattingPluginKey } from './pm-plugins/clear-formatting';
|
|
6
6
|
import clearFormattingKeymapPlugin from './pm-plugins/clear-formatting-keymap';
|
|
7
7
|
import textFormattingCursorPlugin from './pm-plugins/cursor';
|
|
8
8
|
import textFormattingInputRulePlugin from './pm-plugins/input-rule';
|
|
@@ -88,7 +88,8 @@ var textFormatting = function textFormatting() {
|
|
|
88
88
|
disabled = _ref6.disabled;
|
|
89
89
|
return /*#__PURE__*/React.createElement(WithPluginState, {
|
|
90
90
|
plugins: {
|
|
91
|
-
textFormattingState: textFormattingPluginKey
|
|
91
|
+
textFormattingState: textFormattingPluginKey,
|
|
92
|
+
clearFormattingPluginState: clearFormattingPluginKey
|
|
92
93
|
},
|
|
93
94
|
render: function render() {
|
|
94
95
|
return /*#__PURE__*/React.createElement(Toolbar, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { useMemo, useEffect, useRef, useCallback, useLayoutEffect } from 'react';
|
|
3
|
-
import { text as colorsText, N200, N20, DN70, N800, DN600, DN300 } from '@atlaskit/theme/colors';
|
|
3
|
+
import { text as colorsText, N200, N20, DN70, N800, DN600, DN300 } from '@atlaskit/theme/colors'; // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
4
|
+
|
|
4
5
|
import { ItemGroup, itemThemeNamespace } from '@atlaskit/item';
|
|
5
6
|
import { themed } from '@atlaskit/theme/components';
|
|
6
7
|
import { ThemeProvider } from 'styled-components';
|
|
@@ -4,7 +4,8 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
4
4
|
|
|
5
5
|
import React, { useCallback, useMemo, useRef, useLayoutEffect } from 'react';
|
|
6
6
|
import { N200 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { borderRadius } from '@atlaskit/theme/constants';
|
|
7
|
+
import { borderRadius } from '@atlaskit/theme/constants'; // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
8
|
+
|
|
8
9
|
import Item from '@atlaskit/item';
|
|
9
10
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
10
11
|
import styled from 'styled-components';
|
|
@@ -1,38 +1,78 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import React, { useState, useEffect } from 'react';
|
|
2
3
|
import AvatarsWithPluginState from '../../../plugins/collab-edit/ui';
|
|
4
|
+
import FindReplaceToolbarButtonWithState from '../../../plugins/find-replace/FindReplaceToolbarButtonWithState';
|
|
5
|
+
import { BeforePrimaryToolbarWrapper } from '../../../plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper';
|
|
3
6
|
import Toolbar from '../../Toolbar';
|
|
4
|
-
import { MainToolbar, MainToolbarIconBefore,
|
|
7
|
+
import { MainToolbar, MainToolbarIconBefore, MainToolbarFirstChild, MainToolbarSecondChild, NonCustomToolbarWrapper, CustomToolbarWrapper, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT } from './MainToolbar';
|
|
5
8
|
import { ContextPanelConsumer } from '../../ContextPanel/context';
|
|
6
9
|
export var FullPageToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
10
|
+
var _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$collabEdit, _props$collabEdit2, _props$collabEdit3, _props$featureFlags4, _props$featureFlags5;
|
|
11
|
+
|
|
12
|
+
var _useState = useState(false),
|
|
13
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14
|
+
shouldSplitToolbar = _useState2[0],
|
|
15
|
+
setShouldSplitToolbar = _useState2[1];
|
|
16
|
+
|
|
17
|
+
var nonCustomToolbar = /*#__PURE__*/React.createElement(NonCustomToolbarWrapper, null, props.beforeIcon && /*#__PURE__*/React.createElement(MainToolbarIconBefore, null, props.beforeIcon), /*#__PURE__*/React.createElement(Toolbar, {
|
|
18
|
+
editorView: props.editorView,
|
|
19
|
+
editorActions: props.editorActions,
|
|
20
|
+
eventDispatcher: props.eventDispatcher,
|
|
21
|
+
providerFactory: props.providerFactory,
|
|
22
|
+
appearance: props.appearance,
|
|
23
|
+
items: props.primaryToolbarComponents,
|
|
24
|
+
popupsMountPoint: props.popupsMountPoint,
|
|
25
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
26
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
27
|
+
disabled: props.disabled,
|
|
28
|
+
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
29
|
+
containerElement: props.containerElement,
|
|
30
|
+
hasMinWidth: props.hasMinWidth
|
|
31
|
+
}));
|
|
32
|
+
var customToolbar = /*#__PURE__*/React.createElement(CustomToolbarWrapper, null, (_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? /*#__PURE__*/React.createElement(BeforePrimaryToolbarWrapper, {
|
|
33
|
+
beforePrimaryToolbarComponents: props.customPrimaryToolbarComponents.before
|
|
34
|
+
}) : null, (props === null || props === void 0 ? void 0 : (_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.showAvatarGroupAsPlugin) === true && !((_props$featureFlags3 = props.featureFlags) !== null && _props$featureFlags3 !== void 0 && _props$featureFlags3.twoLineEditorToolbar) ? null : /*#__PURE__*/React.createElement(AvatarsWithPluginState, {
|
|
35
|
+
editorView: props.editorView,
|
|
36
|
+
eventDispatcher: props.eventDispatcher,
|
|
37
|
+
inviteToEditComponent: (_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.inviteToEditComponent,
|
|
38
|
+
inviteToEditHandler: (_props$collabEdit2 = props.collabEdit) === null || _props$collabEdit2 === void 0 ? void 0 : _props$collabEdit2.inviteToEditHandler,
|
|
39
|
+
isInviteToEditButtonSelected: (_props$collabEdit3 = props.collabEdit) === null || _props$collabEdit3 === void 0 ? void 0 : _props$collabEdit3.isInviteToEditButtonSelected
|
|
40
|
+
}), (_props$featureFlags4 = props.featureFlags) !== null && _props$featureFlags4 !== void 0 && _props$featureFlags4.findReplace && (_props$featureFlags5 = props.featureFlags) !== null && _props$featureFlags5 !== void 0 && _props$featureFlags5.twoLineEditorToolbar ? /*#__PURE__*/React.createElement(FindReplaceToolbarButtonWithState, {
|
|
41
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
42
|
+
popupsMountPoint: props.popupsMountPoint,
|
|
43
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
44
|
+
editorView: props.editorView,
|
|
45
|
+
containerElement: props.containerElement,
|
|
46
|
+
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent
|
|
47
|
+
}) : null, !!props.customPrimaryToolbarComponents && 'after' in props.customPrimaryToolbarComponents ? props.customPrimaryToolbarComponents.after : props.customPrimaryToolbarComponents);
|
|
48
|
+
useEffect(function () {
|
|
49
|
+
var _props$featureFlags6;
|
|
50
|
+
|
|
51
|
+
if ((_props$featureFlags6 = props.featureFlags) !== null && _props$featureFlags6 !== void 0 && _props$featureFlags6.twoLineEditorToolbar) {
|
|
52
|
+
var updateOnResize = function updateOnResize() {
|
|
53
|
+
setShouldSplitToolbar(window.innerWidth <= MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
window.addEventListener('resize', updateOnResize);
|
|
57
|
+
updateOnResize();
|
|
58
|
+
return function () {
|
|
59
|
+
return window.removeEventListener('resize', updateOnResize);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
7
63
|
return /*#__PURE__*/React.createElement(ContextPanelConsumer, null, function (_ref) {
|
|
8
|
-
var _props$
|
|
64
|
+
var _props$featureFlags7, _props$featureFlags8, _props$featureFlags9;
|
|
9
65
|
|
|
10
66
|
var contextPanelWidth = _ref.width;
|
|
11
67
|
return /*#__PURE__*/React.createElement(MainToolbar, {
|
|
12
68
|
"data-testid": "ak-editor-main-toolbar",
|
|
13
|
-
showKeyline: props.showKeyline || contextPanelWidth > 0
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
popupsMountPoint: props.popupsMountPoint,
|
|
22
|
-
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
23
|
-
popupsScrollableElement: props.popupsScrollableElement,
|
|
24
|
-
disabled: props.disabled,
|
|
25
|
-
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
26
|
-
containerElement: props.containerElement,
|
|
27
|
-
hasMinWidth: props.hasMinWidth
|
|
28
|
-
}), /*#__PURE__*/React.createElement(MainToolbarCustomComponentsSlot, {
|
|
29
|
-
"data-testid": 'avatar-group-outside-plugin'
|
|
30
|
-
}, (props === null || props === void 0 ? void 0 : (_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.showAvatarGroupAsPlugin) === true ? null : /*#__PURE__*/React.createElement(AvatarsWithPluginState, {
|
|
31
|
-
editorView: props.editorView,
|
|
32
|
-
eventDispatcher: props.eventDispatcher,
|
|
33
|
-
inviteToEditComponent: props.collabEdit && props.collabEdit.inviteToEditComponent,
|
|
34
|
-
inviteToEditHandler: props.collabEdit && props.collabEdit.inviteToEditHandler,
|
|
35
|
-
isInviteToEditButtonSelected: props.collabEdit && props.collabEdit.isInviteToEditButtonSelected
|
|
36
|
-
}), props.customPrimaryToolbarComponents));
|
|
69
|
+
showKeyline: props.showKeyline || contextPanelWidth > 0,
|
|
70
|
+
twoLineEditorToolbar: !!((_props$featureFlags7 = props.featureFlags) !== null && _props$featureFlags7 !== void 0 && _props$featureFlags7.twoLineEditorToolbar)
|
|
71
|
+
}, /*#__PURE__*/React.createElement(MainToolbarFirstChild, {
|
|
72
|
+
twoLineEditorToolbar: !!((_props$featureFlags8 = props.featureFlags) !== null && _props$featureFlags8 !== void 0 && _props$featureFlags8.twoLineEditorToolbar)
|
|
73
|
+
}, shouldSplitToolbar ? customToolbar : nonCustomToolbar), /*#__PURE__*/React.createElement(MainToolbarSecondChild, {
|
|
74
|
+
"data-testid": 'avatar-group-outside-plugin',
|
|
75
|
+
twoLineEditorToolbar: !!((_props$featureFlags9 = props.featureFlags) !== null && _props$featureFlags9 !== void 0 && _props$featureFlags9.twoLineEditorToolbar)
|
|
76
|
+
}, shouldSplitToolbar ? nonCustomToolbar : customToolbar));
|
|
37
77
|
});
|
|
38
78
|
});
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7;
|
|
4
4
|
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { N30 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
import { akEditorMenuZIndex, akEditorSwoopCubicBezier, akEditorToolbarKeylineHeight, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
9
|
+
export var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
9
10
|
var toolbarLineHeight = 56;
|
|
10
|
-
export var MainToolbar = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n box-shadow: ", ";\n transition: box-shadow 200ms ", ";\n z-index: ", ";\n display: flex;\n height: ", "px;\n flex-shrink: 0;\n background-color: white;\n\n & object {\n height: 0 !important;\n }\n\n @media (max-width: ", "px) {\n display: grid;\n height: calc(", "px * 2);\n }\n"])), function (props) {
|
|
11
|
+
export var MainToolbar = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n box-shadow: ", ";\n transition: box-shadow 200ms ", ";\n z-index: ", ";\n display: flex;\n height: ", "px;\n flex-shrink: 0;\n background-color: white;\n\n & object {\n height: 0 !important;\n }\n\n @media (max-width: ", "px) {\n ", "\n }\n\n @media (max-width: ", "px) {\n display: grid;\n height: calc(", "px * 2);\n }\n"])), function (props) {
|
|
11
12
|
return props.showKeyline ? "0 ".concat(akEditorToolbarKeylineHeight, "px 0 0 ").concat(N30) : 'none';
|
|
12
|
-
}, akEditorSwoopCubicBezier, akEditorMenuZIndex, toolbarLineHeight,
|
|
13
|
+
}, akEditorSwoopCubicBezier, akEditorMenuZIndex, toolbarLineHeight, MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, function (props) {
|
|
14
|
+
return props.twoLineEditorToolbar && "\n flex-wrap: wrap;\n height: calc(".concat(toolbarLineHeight, "px * 2);\n ");
|
|
15
|
+
}, akEditorMobileMaxWidth, toolbarLineHeight);
|
|
13
16
|
MainToolbar.displayName = 'MainToolbar';
|
|
14
17
|
export var MainToolbarIconBefore = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: ", "px;\n height: ", "px;\n width: ", "px;\n @media (max-width: ", "px) {\n grid-column: 1;\n grid-row: 1;\n }\n"])), gridSize() * 2, gridSize() * 4, gridSize() * 4, akEditorMobileMaxWidth);
|
|
15
18
|
MainToolbarIconBefore.displayName = 'MainToolbarIconBefore';
|
|
16
|
-
export var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
export var MainToolbarFirstChild = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-grow: 1;\n\n @media (max-width: ", "px) {\n ", "\n }\n @media (max-width: ", "px) {\n grid-column: 1;\n grid-row: 1;\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, function (props) {
|
|
20
|
+
return props.twoLineEditorToolbar && "\n flex: 1 1 100%;\n height: ".concat(toolbarLineHeight, "px;\n justify-content: flex-end;\n // ED-10241: We add fit-content to ensure that MainToolbar does not\n // shrink more than the size of its contents. This will prevent the\n // find/replace icon from being overlapped during a confluence\n // publish operation\n min-width: fit-content;\n ");
|
|
21
|
+
}, akEditorMobileMaxWidth);
|
|
22
|
+
MainToolbarFirstChild.displayName = 'MainToolbarFirstChild';
|
|
23
|
+
export var MainToolbarSecondChild = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n // ED-10241: We add fit-content to ensure that MainToolbar does not\n // shrink more than the size of its contents. This will prevent the\n // find/replace icon from being overlapped during a confluence\n // publish operation\n min-width: fit-content;\n @media (max-width: ", "px) {\n ", "\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, function (props) {
|
|
24
|
+
return props.twoLineEditorToolbar && "\n display: flex;\n flex-grow: 1;\n flex: 1 1 100%;\n margin: auto;\n height: ".concat(toolbarLineHeight, "px;\n min-width: 0;\n ");
|
|
25
|
+
});
|
|
26
|
+
MainToolbarSecondChild.displayName = 'MainToolbarSecondChild';
|
|
27
|
+
export var SecondaryToolbar = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n justify-content: flex-end;\n align-items: center;\n flex-shrink: 0;\n display: flex;\n padding: 24px 0;\n"])));
|
|
28
|
+
SecondaryToolbar.displayName = 'SecondaryToolbar';
|
|
29
|
+
export var NonCustomToolbarWrapper = styled.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n flex-grow: 1;\n"])));
|
|
30
|
+
NonCustomToolbarWrapper.displayName = 'NonCustomToolbar';
|
|
31
|
+
export var CustomToolbarWrapper = styled.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n align-items: center;\n display: flex;\n"])));
|
|
32
|
+
CustomToolbarWrapper.displayName = 'CustomToolbar';
|
|
@@ -12,19 +12,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
12
12
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { PureComponent } from 'react';
|
|
15
|
-
import { defineMessages, injectIntl } from 'react-intl';
|
|
16
15
|
import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
|
|
17
16
|
import { N0 } from '@atlaskit/theme/colors';
|
|
18
17
|
import { Button, ButtonWrapper } from './styles';
|
|
19
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
20
|
-
|
|
21
|
-
var messages = defineMessages({
|
|
22
|
-
selected: {
|
|
23
|
-
id: 'fabric.editor.selected',
|
|
24
|
-
defaultMessage: 'Selected',
|
|
25
|
-
description: 'If the item is selected or not.'
|
|
26
|
-
}
|
|
27
|
-
});
|
|
18
|
+
import Tooltip from '@atlaskit/tooltip';
|
|
28
19
|
|
|
29
20
|
var Color = /*#__PURE__*/function (_PureComponent) {
|
|
30
21
|
_inherits(Color, _PureComponent);
|
|
@@ -62,19 +53,20 @@ var Color = /*#__PURE__*/function (_PureComponent) {
|
|
|
62
53
|
key: "render",
|
|
63
54
|
value: function render() {
|
|
64
55
|
var _this$props2 = this.props,
|
|
56
|
+
autoFocus = _this$props2.autoFocus,
|
|
65
57
|
tabIndex = _this$props2.tabIndex,
|
|
66
58
|
value = _this$props2.value,
|
|
67
59
|
label = _this$props2.label,
|
|
68
60
|
isSelected = _this$props2.isSelected,
|
|
69
61
|
borderColor = _this$props2.borderColor,
|
|
70
62
|
_this$props2$checkMar = _this$props2.checkMarkColor,
|
|
71
|
-
checkMarkColor = _this$props2$checkMar === void 0 ? N0 : _this$props2$checkMar
|
|
72
|
-
formatMessage = _this$props2.intl.formatMessage;
|
|
73
|
-
var ariaLabelText = isSelected ? "".concat(label, " ").concat(formatMessage(messages.selected)) : label;
|
|
63
|
+
checkMarkColor = _this$props2$checkMar === void 0 ? N0 : _this$props2$checkMar;
|
|
74
64
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
75
65
|
content: label
|
|
76
66
|
}, /*#__PURE__*/React.createElement(ButtonWrapper, null, /*#__PURE__*/React.createElement(Button, {
|
|
77
|
-
"aria-label":
|
|
67
|
+
"aria-label": label,
|
|
68
|
+
role: "radio",
|
|
69
|
+
"aria-checked": isSelected,
|
|
78
70
|
onClick: this.onClick,
|
|
79
71
|
onMouseDown: this.onMouseDown,
|
|
80
72
|
tabIndex: tabIndex,
|
|
@@ -82,7 +74,8 @@ var Color = /*#__PURE__*/function (_PureComponent) {
|
|
|
82
74
|
style: {
|
|
83
75
|
backgroundColor: value || 'transparent',
|
|
84
76
|
border: "1px solid ".concat(borderColor)
|
|
85
|
-
}
|
|
77
|
+
},
|
|
78
|
+
autoFocus: autoFocus
|
|
86
79
|
}, isSelected && /*#__PURE__*/React.createElement(EditorDoneIcon, {
|
|
87
80
|
primaryColor: checkMarkColor,
|
|
88
81
|
label: ""
|
|
@@ -93,4 +86,4 @@ var Color = /*#__PURE__*/function (_PureComponent) {
|
|
|
93
86
|
return Color;
|
|
94
87
|
}(PureComponent);
|
|
95
88
|
|
|
96
|
-
export default
|
|
89
|
+
export default Color;
|
|
@@ -25,6 +25,7 @@ var ColorPalette = function ColorPalette(props) {
|
|
|
25
25
|
onClick = props.onClick,
|
|
26
26
|
selectedColor = props.selectedColor,
|
|
27
27
|
className = props.className,
|
|
28
|
+
isShowingMoreColors = props.isShowingMoreColors,
|
|
28
29
|
formatMessage = props.intl.formatMessage;
|
|
29
30
|
var colorsPerRow = React.useMemo(function () {
|
|
30
31
|
return palette.reduce(function (resultArray, item, index) {
|
|
@@ -35,11 +36,12 @@ var ColorPalette = function ColorPalette(props) {
|
|
|
35
36
|
return resultArray;
|
|
36
37
|
}, []);
|
|
37
38
|
}, [palette, cols]);
|
|
38
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, colorsPerRow.map(function (row) {
|
|
39
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, colorsPerRow.map(function (row, rowIdx) {
|
|
39
40
|
return /*#__PURE__*/React.createElement(ColorPaletteWrapper, {
|
|
40
41
|
className: className,
|
|
41
|
-
key: "row-first-color-".concat(row[0].value)
|
|
42
|
-
|
|
42
|
+
key: "row-first-color-".concat(row[0].value),
|
|
43
|
+
role: "radiogroup"
|
|
44
|
+
}, row.map(function (_ref, colorIdx) {
|
|
43
45
|
var value = _ref.value,
|
|
44
46
|
label = _ref.label,
|
|
45
47
|
border = _ref.border,
|
|
@@ -51,7 +53,8 @@ var ColorPalette = function ColorPalette(props) {
|
|
|
51
53
|
label: message ? formatMessage(message) : label,
|
|
52
54
|
onClick: onClick,
|
|
53
55
|
isSelected: value === selectedColor,
|
|
54
|
-
checkMarkColor: getContrastColor(value, [N0, N500])
|
|
56
|
+
checkMarkColor: getContrastColor(value, [N0, N500]),
|
|
57
|
+
autoFocus: isShowingMoreColors && rowIdx === 1 && colorIdx === 0
|
|
55
58
|
});
|
|
56
59
|
}));
|
|
57
60
|
}));
|
|
@@ -18,7 +18,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../plu
|
|
|
18
18
|
|
|
19
19
|
var ColorPickerButtonWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"]))); // Control the size of color picker buttons and preview
|
|
20
20
|
|
|
21
|
-
var ColorPickerWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-radius: ", "px;\n background-color: white;\n box-shadow: 0 4px 8px -2px ", ", 0 0 1px ", ";\n padding:
|
|
21
|
+
var ColorPickerWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-radius: ", "px;\n background-color: white;\n box-shadow: 0 4px 8px -2px ", ", 0 0 1px ", ";\n padding: 8px 0px;\n"])), borderRadius(), N60A, N60A);
|
|
22
22
|
|
|
23
23
|
var ColorPickerButton = function ColorPickerButton(props) {
|
|
24
24
|
var _props$size, _props$size2;
|
|
@@ -9,10 +9,6 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
9
9
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
10
10
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
11
11
|
|
|
12
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
13
|
-
|
|
14
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
15
|
-
|
|
16
12
|
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); }; }
|
|
17
13
|
|
|
18
14
|
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; } }
|
|
@@ -23,11 +19,12 @@ import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-n
|
|
|
23
19
|
import Form from '@atlaskit/form';
|
|
24
20
|
import { isTabGroup } from '@atlaskit/editor-common/extensions';
|
|
25
21
|
import _isEqual from 'lodash/isEqual';
|
|
22
|
+
import _mergeRecursive from 'lodash/merge';
|
|
26
23
|
import { fireAnalyticsEvent, EVENT_TYPE, ACTION_SUBJECT, ACTION } from '../../plugins/analytics';
|
|
27
24
|
import LoadingState from './LoadingState';
|
|
28
25
|
import Header from './Header';
|
|
29
26
|
import ErrorMessage from './ErrorMessage';
|
|
30
|
-
import { serialize, deserialize } from './transformers';
|
|
27
|
+
import { serialize, deserialize, findDuplicateFields } from './transformers';
|
|
31
28
|
import { injectIntl } from 'react-intl';
|
|
32
29
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
33
30
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -36,6 +33,7 @@ import { pluginKey as extensionPluginKey } from '../../plugins/extension/plugin-
|
|
|
36
33
|
import WithPluginState from '../WithPluginState';
|
|
37
34
|
import FormContent from './FormContent';
|
|
38
35
|
import { messages } from './messages';
|
|
36
|
+
import { FormErrorBoundary } from './FormErrorBoundary';
|
|
39
37
|
|
|
40
38
|
function ConfigForm(_ref) {
|
|
41
39
|
var canSave = _ref.canSave,
|
|
@@ -49,7 +47,17 @@ function ConfigForm(_ref) {
|
|
|
49
47
|
onCancel = _ref.onCancel,
|
|
50
48
|
onFieldChange = _ref.onFieldChange,
|
|
51
49
|
parameters = _ref.parameters,
|
|
52
|
-
submitting = _ref.submitting
|
|
50
|
+
submitting = _ref.submitting,
|
|
51
|
+
contextIdentifierProvider = _ref.contextIdentifierProvider;
|
|
52
|
+
useEffect(function () {
|
|
53
|
+
if (fields) {
|
|
54
|
+
var firstDuplicateField = findDuplicateFields(fields);
|
|
55
|
+
|
|
56
|
+
if (firstDuplicateField) {
|
|
57
|
+
throw new Error("Possible duplicate field name: `".concat(firstDuplicateField.name, "`."));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, [fields]);
|
|
53
61
|
|
|
54
62
|
if (isLoading || !hasParsedParameters && errorMessage === null) {
|
|
55
63
|
return /*#__PURE__*/React.createElement(LoadingState, null);
|
|
@@ -61,44 +69,36 @@ function ConfigForm(_ref) {
|
|
|
61
69
|
});
|
|
62
70
|
}
|
|
63
71
|
|
|
64
|
-
return /*#__PURE__*/React.createElement(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
onFieldChange: onFieldChange,
|
|
75
|
-
firstVisibleFieldName: firstVisibleFieldName,
|
|
76
|
-
contextIdentifierProvider: extension === null || extension === void 0 ? void 0 : extension.contextIdentifierProvider
|
|
77
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
style: canSave ? {} : {
|
|
79
|
-
display: 'none'
|
|
80
|
-
}
|
|
81
|
-
}, /*#__PURE__*/React.createElement(FormFooter, {
|
|
82
|
-
align: "start"
|
|
83
|
-
}, /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(Button, {
|
|
84
|
-
type: "submit",
|
|
85
|
-
appearance: "primary"
|
|
86
|
-
}, intl.formatMessage(messages.submit)), /*#__PURE__*/React.createElement(Button, {
|
|
87
|
-
appearance: "default",
|
|
88
|
-
isDisabled: submitting,
|
|
89
|
-
onClick: onCancel
|
|
90
|
-
}, intl.formatMessage(messages.cancel))))));
|
|
72
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormContent, {
|
|
73
|
+
fields: fields,
|
|
74
|
+
parameters: parameters,
|
|
75
|
+
extensionManifest: extensionManifest,
|
|
76
|
+
onFieldChange: onFieldChange,
|
|
77
|
+
firstVisibleFieldName: firstVisibleFieldName,
|
|
78
|
+
contextIdentifierProvider: contextIdentifierProvider
|
|
79
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
style: canSave ? {} : {
|
|
81
|
+
display: 'none'
|
|
91
82
|
}
|
|
92
|
-
}
|
|
83
|
+
}, /*#__PURE__*/React.createElement(FormFooter, {
|
|
84
|
+
align: "start"
|
|
85
|
+
}, /*#__PURE__*/React.createElement(ButtonGroup, null, /*#__PURE__*/React.createElement(Button, {
|
|
86
|
+
type: "submit",
|
|
87
|
+
appearance: "primary"
|
|
88
|
+
}, intl.formatMessage(messages.submit)), /*#__PURE__*/React.createElement(Button, {
|
|
89
|
+
appearance: "default",
|
|
90
|
+
isDisabled: submitting,
|
|
91
|
+
onClick: onCancel
|
|
92
|
+
}, intl.formatMessage(messages.cancel))))));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
var ConfigFormIntl = injectIntl(ConfigForm);
|
|
96
96
|
|
|
97
|
-
var WithOnFieldChange = function WithOnFieldChange(
|
|
98
|
-
var getState =
|
|
99
|
-
autoSave =
|
|
100
|
-
handleSubmit =
|
|
101
|
-
children =
|
|
97
|
+
var WithOnFieldChange = function WithOnFieldChange(_ref2) {
|
|
98
|
+
var getState = _ref2.getState,
|
|
99
|
+
autoSave = _ref2.autoSave,
|
|
100
|
+
handleSubmit = _ref2.handleSubmit,
|
|
101
|
+
children = _ref2.children;
|
|
102
102
|
var getStateRef = useRef(getState);
|
|
103
103
|
useEffect(function () {
|
|
104
104
|
getStateRef.current = getState;
|
|
@@ -153,14 +153,52 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
153
153
|
});
|
|
154
154
|
|
|
155
155
|
_defineProperty(_assertThisInitialized(_this), "backfillTabFormData", function (fields, formData, currentParameters) {
|
|
156
|
-
var
|
|
157
|
-
|
|
156
|
+
var getRelevantData = function getRelevantData(field, formParams, currentParams, backfill) {
|
|
157
|
+
if (field.hasGroupedValues && !(field.name in backfill)) {
|
|
158
|
+
backfill[field.name] = {};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
var actualFormParams = field.hasGroupedValues ? formParams[field.name] || {} : formParams;
|
|
162
|
+
var actualCurrentParams = field.hasGroupedValues ? currentParams[field.name] || {} : currentParams;
|
|
163
|
+
var actualBackfillParams = field.hasGroupedValues ? backfill[field.name] : backfill;
|
|
164
|
+
return {
|
|
165
|
+
formParams: actualFormParams,
|
|
166
|
+
currentParams: actualCurrentParams,
|
|
167
|
+
backfillParams: actualBackfillParams
|
|
168
|
+
};
|
|
169
|
+
}; // Traverse any tab structures and backfill field values on tabs
|
|
170
|
+
// which aren't shown. This filter should be ok because tabs are
|
|
171
|
+
// currently only allowed on top level
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
var mergedTabGroups = fields.filter(isTabGroup).reduce(function (missingBackfill, tabGroup) {
|
|
175
|
+
var _getRelevantData = getRelevantData(tabGroup, formData, currentParameters, missingBackfill),
|
|
176
|
+
tabGroupFormData = _getRelevantData.formParams,
|
|
177
|
+
tabGroupCurrentData = _getRelevantData.currentParams,
|
|
178
|
+
tabGroupParams = _getRelevantData.backfillParams; // Loop through tabs and see what fields are missing from current data
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
tabGroup.fields.forEach(function (tabField) {
|
|
182
|
+
var _getRelevantData2 = getRelevantData(tabField, tabGroupFormData, tabGroupCurrentData, tabGroupParams),
|
|
183
|
+
tabFormData = _getRelevantData2.formParams,
|
|
184
|
+
tabCurrentData = _getRelevantData2.currentParams,
|
|
185
|
+
tabParams = _getRelevantData2.backfillParams;
|
|
186
|
+
|
|
187
|
+
tabField.fields.forEach(function (field) {
|
|
188
|
+
if (field.name in tabFormData || !(field.name in tabCurrentData)) {
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
tabParams[field.name] = tabCurrentData[field.name];
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
return missingBackfill;
|
|
158
196
|
}, {});
|
|
159
|
-
return
|
|
197
|
+
return _mergeRecursive({}, mergedTabGroups, formData);
|
|
160
198
|
});
|
|
161
199
|
|
|
162
200
|
_defineProperty(_assertThisInitialized(_this), "handleSubmit", /*#__PURE__*/function () {
|
|
163
|
-
var
|
|
201
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(formData) {
|
|
164
202
|
var _this$props, fields, extensionManifest, onChange, serializedData;
|
|
165
203
|
|
|
166
204
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -202,12 +240,12 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
202
240
|
}));
|
|
203
241
|
|
|
204
242
|
return function (_x) {
|
|
205
|
-
return
|
|
243
|
+
return _ref3.apply(this, arguments);
|
|
206
244
|
};
|
|
207
245
|
}());
|
|
208
246
|
|
|
209
247
|
_defineProperty(_assertThisInitialized(_this), "parseParameters", /*#__PURE__*/function () {
|
|
210
|
-
var
|
|
248
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(fields, parameters) {
|
|
211
249
|
var extensionManifest, currentParameters;
|
|
212
250
|
return _regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
213
251
|
while (1) {
|
|
@@ -256,7 +294,7 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
256
294
|
}));
|
|
257
295
|
|
|
258
296
|
return function (_x2, _x3) {
|
|
259
|
-
return
|
|
297
|
+
return _ref4.apply(this, arguments);
|
|
260
298
|
};
|
|
261
299
|
}());
|
|
262
300
|
|
|
@@ -414,10 +452,10 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
414
452
|
handleKeyDown = this.handleKeyDown;
|
|
415
453
|
return /*#__PURE__*/React.createElement(Form, {
|
|
416
454
|
onSubmit: handleSubmit
|
|
417
|
-
}, function (
|
|
418
|
-
var formProps =
|
|
419
|
-
getState =
|
|
420
|
-
submitting =
|
|
455
|
+
}, function (_ref5) {
|
|
456
|
+
var formProps = _ref5.formProps,
|
|
457
|
+
getState = _ref5.getState,
|
|
458
|
+
submitting = _ref5.submitting;
|
|
421
459
|
return /*#__PURE__*/React.createElement(WithOnFieldChange, {
|
|
422
460
|
autoSave: !!autoSave,
|
|
423
461
|
getState: getState,
|
|
@@ -428,18 +466,31 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
428
466
|
noValidate: true,
|
|
429
467
|
onKeyDown: handleKeyDown,
|
|
430
468
|
"data-testid": "extension-config-panel"
|
|
431
|
-
}), _this2.renderHeader(extensionManifest), /*#__PURE__*/React.createElement(
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
469
|
+
}), _this2.renderHeader(extensionManifest), /*#__PURE__*/React.createElement(WithPluginState, {
|
|
470
|
+
plugins: {
|
|
471
|
+
extension: extensionPluginKey
|
|
472
|
+
},
|
|
473
|
+
render: function render(_ref6) {
|
|
474
|
+
var extension = _ref6.extension;
|
|
475
|
+
return /*#__PURE__*/React.createElement(FormErrorBoundary, {
|
|
476
|
+
contextIdentifierProvider: extension === null || extension === void 0 ? void 0 : extension.contextIdentifierProvider,
|
|
477
|
+
extensionKey: extensionManifest.key,
|
|
478
|
+
fields: fields || []
|
|
479
|
+
}, /*#__PURE__*/React.createElement(ConfigFormIntl, {
|
|
480
|
+
canSave: !autoSave,
|
|
481
|
+
errorMessage: errorMessage,
|
|
482
|
+
extensionManifest: extensionManifest,
|
|
483
|
+
fields: fields,
|
|
484
|
+
firstVisibleFieldName: firstVisibleFieldName,
|
|
485
|
+
hasParsedParameters: hasParsedParameters,
|
|
486
|
+
isLoading: isLoading || false,
|
|
487
|
+
onCancel: onCancel,
|
|
488
|
+
onFieldChange: onFieldChange,
|
|
489
|
+
parameters: currentParameters,
|
|
490
|
+
submitting: submitting,
|
|
491
|
+
contextIdentifierProvider: extension === null || extension === void 0 ? void 0 : extension.contextIdentifierProvider
|
|
492
|
+
}));
|
|
493
|
+
}
|
|
443
494
|
}));
|
|
444
495
|
});
|
|
445
496
|
});
|