@atlaskit/editor-core 183.0.12 → 183.1.1
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 +35 -0
- package/dist/cjs/actions/index.js +1 -16
- package/dist/cjs/create-editor/ErrorBoundary.js +19 -8
- package/dist/cjs/create-editor/ReactEditorViewInternal.js +40 -21
- package/dist/cjs/editor-next/editor-internal.js +6 -1
- package/dist/cjs/labs/next/presets/create-stub-internal-apis.js +1 -41
- package/dist/cjs/labs/next/presets/default.js +23 -1
- package/dist/cjs/labs/next/presets/universal.js +9 -18
- package/dist/cjs/plugins/analytics/index.js +0 -24
- package/dist/cjs/plugins/analytics/plugin-key.js +7 -1
- package/dist/cjs/plugins/analytics/plugin.js +17 -45
- package/dist/cjs/plugins/analytics/utils.js +24 -34
- package/dist/cjs/plugins/base/index.js +7 -1
- package/dist/cjs/plugins/base/pm-plugins/decoration.js +8 -0
- package/dist/cjs/plugins/block-type/commands/block-type.js +1 -1
- package/dist/cjs/plugins/caption/index.js +3 -2
- package/dist/cjs/plugins/caption/pm-plugins/main.js +8 -7
- package/dist/cjs/plugins/card/index.js +2 -2
- package/dist/cjs/plugins/card/nodeviews/embedCard.js +103 -70
- package/dist/cjs/plugins/card/nodeviews/genericCard.js +3 -2
- package/dist/cjs/plugins/card/pm-plugins/analytics/events-from-tr.js +36 -20
- package/dist/cjs/plugins/card/pm-plugins/analytics/utils.js +48 -9
- package/dist/cjs/plugins/card/pm-plugins/doc.js +19 -19
- package/dist/cjs/plugins/card/pm-plugins/main.js +5 -3
- package/dist/cjs/plugins/card/pm-plugins/shouldReplaceLink.js +4 -4
- package/dist/cjs/plugins/card/pm-plugins/util/resolve.js +6 -6
- package/dist/cjs/plugins/card/toolbar.js +86 -68
- package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +19 -13
- package/dist/cjs/plugins/card/ui/EditorSmartCardEventsNext.js +9 -3
- package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +6 -5
- package/dist/cjs/plugins/card/ui/LinkToolbarButtonGroup.js +2 -2
- package/dist/cjs/plugins/card/ui/ResizableEmbedCard.js +1 -2
- package/dist/cjs/plugins/collab-edit/ui/styles.js +2 -3
- package/dist/cjs/plugins/date/index.js +4 -3
- package/dist/cjs/plugins/expand/ui/styles.js +4 -5
- package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +3 -3
- package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +5 -1
- package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +2 -2
- package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +4 -6
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +5 -5
- package/dist/cjs/plugins/grid/index.js +73 -39
- package/dist/cjs/plugins/history/pm-history-types.js +1 -5
- package/dist/cjs/plugins/history/utils.js +2 -2
- package/dist/cjs/plugins/hyperlink/HyperlinkToolbarAppearance.js +4 -2
- package/dist/cjs/plugins/hyperlink/Toolbar.js +4 -3
- package/dist/cjs/plugins/hyperlink/commands.js +14 -14
- package/dist/cjs/plugins/hyperlink/index.js +7 -5
- package/dist/cjs/plugins/hyperlink/pm-plugins/input-rule.js +5 -5
- package/dist/cjs/plugins/hyperlink/pm-plugins/keymap.js +2 -3
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -3
- package/dist/cjs/plugins/insert-block/index.js +1 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +40 -44
- package/dist/cjs/plugins/layout/styles.js +2 -2
- package/dist/cjs/plugins/list/actions/conversions.js +1 -1
- package/dist/cjs/plugins/list/commands/listBackspace.js +5 -5
- package/dist/cjs/plugins/list/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/list/transforms.js +2 -2
- package/dist/cjs/plugins/list/utils/analytics.js +2 -2
- package/dist/cjs/plugins/list/utils/find.js +6 -6
- package/dist/cjs/plugins/list/utils/indentation.js +3 -3
- package/dist/cjs/plugins/list/utils/node.js +32 -23
- package/dist/cjs/plugins/list/utils/selection.js +11 -11
- package/dist/cjs/plugins/macro/actions.js +2 -2
- package/dist/cjs/plugins/media/commands/linking.js +1 -1
- package/dist/cjs/plugins/media/index.js +1 -1
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +31 -17
- package/dist/cjs/plugins/media/pm-plugins/alt-text/index.js +2 -2
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -4
- package/dist/cjs/plugins/media/toolbar/filePreviewItem.js +2 -2
- package/dist/cjs/plugins/media/toolbar/linking-toolbar-appearance.js +4 -4
- package/dist/cjs/plugins/media/ui/ImageBorder/styles.js +4 -1
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +3 -4
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +13 -4
- package/dist/cjs/plugins/media/utils/media-single.js +10 -57
- package/dist/cjs/plugins/paste/edge-cases/index.js +3 -3
- package/dist/cjs/plugins/paste/edge-cases/lists.js +1 -1
- package/dist/cjs/plugins/paste/handlers.js +16 -10
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +1 -1
- package/dist/cjs/plugins/paste/pm-plugins/main.js +13 -20
- package/dist/cjs/plugins/quick-insert/commands.js +1 -1
- package/dist/cjs/plugins/rule/pm-plugins/input-rule.js +1 -1
- package/dist/cjs/plugins/selection/commands.js +24 -23
- package/dist/cjs/plugins/selection/utils.js +2 -2
- package/dist/cjs/plugins/status/plugin.js +13 -7
- package/dist/cjs/plugins/status/ui/statusPicker.js +1 -1
- package/dist/cjs/plugins/type-ahead/insert-utils.js +2 -3
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -1
- package/dist/cjs/plugins/width/index.js +12 -0
- package/dist/cjs/ui/Alignment/styles.js +1 -2
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -3
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +1 -2
- package/dist/cjs/ui/ColorPickerButton/index.js +16 -9
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +1 -2
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +6 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +3 -4
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -2
- package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +1 -2
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
- package/dist/cjs/ui/ContentStyles/index.js +2 -2
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +1 -1
- package/dist/cjs/ui/ElementBrowser/constants.js +4 -0
- package/dist/cjs/ui/ErrorBoundary/index.js +7 -0
- package/dist/cjs/ui/Resizer/index.js +4 -4
- package/dist/cjs/utils/commands.js +2 -2
- package/dist/cjs/utils/document.js +4 -12
- package/dist/cjs/utils/index.js +1 -14
- package/dist/cjs/utils/selection.js +1 -26
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +1 -16
- package/dist/es2019/create-editor/ErrorBoundary.js +18 -7
- package/dist/es2019/create-editor/ReactEditorViewInternal.js +44 -27
- package/dist/es2019/editor-next/editor-internal.js +6 -1
- package/dist/es2019/labs/next/presets/create-stub-internal-apis.js +1 -39
- package/dist/es2019/labs/next/presets/default.js +27 -1
- package/dist/es2019/labs/next/presets/universal.js +9 -19
- package/dist/es2019/plugins/analytics/index.js +1 -1
- package/dist/es2019/plugins/analytics/plugin-key.js +8 -1
- package/dist/es2019/plugins/analytics/plugin.js +15 -38
- package/dist/es2019/plugins/analytics/utils.js +24 -11
- package/dist/es2019/plugins/base/index.js +4 -1
- package/dist/es2019/plugins/base/pm-plugins/decoration.js +9 -0
- package/dist/es2019/plugins/block-type/commands/block-type.js +1 -1
- package/dist/es2019/plugins/caption/index.js +3 -2
- package/dist/es2019/plugins/caption/pm-plugins/main.js +8 -7
- package/dist/es2019/plugins/card/index.js +2 -2
- package/dist/es2019/plugins/card/nodeviews/embedCard.js +105 -70
- package/dist/es2019/plugins/card/nodeviews/genericCard.js +3 -2
- package/dist/es2019/plugins/card/pm-plugins/analytics/events-from-tr.js +33 -16
- package/dist/es2019/plugins/card/pm-plugins/analytics/utils.js +43 -7
- package/dist/es2019/plugins/card/pm-plugins/doc.js +19 -19
- package/dist/es2019/plugins/card/pm-plugins/main.js +7 -3
- package/dist/es2019/plugins/card/pm-plugins/shouldReplaceLink.js +1 -1
- package/dist/es2019/plugins/card/pm-plugins/util/resolve.js +6 -6
- package/dist/es2019/plugins/card/toolbar.js +51 -30
- package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +11 -5
- package/dist/es2019/plugins/card/ui/EditorSmartCardEventsNext.js +6 -0
- package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +6 -5
- package/dist/es2019/plugins/card/ui/LinkToolbarButtonGroup.js +1 -1
- package/dist/es2019/plugins/card/ui/ResizableEmbedCard.js +1 -1
- package/dist/es2019/plugins/collab-edit/ui/styles.js +3 -4
- package/dist/es2019/plugins/date/index.js +4 -3
- package/dist/es2019/plugins/expand/ui/styles.js +1 -2
- package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +1 -1
- package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +6 -2
- package/dist/es2019/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +1 -1
- package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +3 -5
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +9 -9
- package/dist/es2019/plugins/grid/index.js +76 -39
- package/dist/es2019/plugins/history/pm-history-types.js +1 -2
- package/dist/es2019/plugins/history/utils.js +1 -1
- package/dist/es2019/plugins/hyperlink/HyperlinkToolbarAppearance.js +4 -2
- package/dist/es2019/plugins/hyperlink/Toolbar.js +4 -3
- package/dist/es2019/plugins/hyperlink/commands.js +3 -3
- package/dist/es2019/plugins/hyperlink/index.js +7 -5
- package/dist/es2019/plugins/hyperlink/pm-plugins/input-rule.js +3 -3
- package/dist/es2019/plugins/hyperlink/pm-plugins/keymap.js +1 -2
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/plugins/insert-block/index.js +1 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +16 -19
- package/dist/es2019/plugins/layout/styles.js +4 -0
- package/dist/es2019/plugins/list/actions/conversions.js +1 -1
- package/dist/es2019/plugins/list/commands/listBackspace.js +1 -1
- package/dist/es2019/plugins/list/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/list/transforms.js +1 -1
- package/dist/es2019/plugins/list/utils/analytics.js +1 -1
- package/dist/es2019/plugins/list/utils/find.js +1 -1
- package/dist/es2019/plugins/list/utils/indentation.js +1 -1
- package/dist/es2019/plugins/list/utils/node.js +2 -12
- package/dist/es2019/plugins/list/utils/selection.js +1 -1
- package/dist/es2019/plugins/macro/actions.js +1 -1
- package/dist/es2019/plugins/media/commands/linking.js +1 -1
- package/dist/es2019/plugins/media/index.js +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +20 -6
- package/dist/es2019/plugins/media/pm-plugins/alt-text/index.js +1 -1
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/es2019/plugins/media/toolbar/filePreviewItem.js +1 -1
- package/dist/es2019/plugins/media/toolbar/linking-toolbar-appearance.js +1 -1
- package/dist/es2019/plugins/media/ui/ImageBorder/styles.js +4 -0
- package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +2 -2
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/index.js +15 -3
- package/dist/es2019/plugins/media/utils/media-single.js +5 -53
- package/dist/es2019/plugins/paste/edge-cases/index.js +1 -1
- package/dist/es2019/plugins/paste/edge-cases/lists.js +1 -1
- package/dist/es2019/plugins/paste/handlers.js +11 -4
- package/dist/es2019/plugins/paste/pm-plugins/analytics.js +1 -1
- package/dist/es2019/plugins/paste/pm-plugins/main.js +2 -3
- package/dist/es2019/plugins/quick-insert/commands.js +1 -1
- package/dist/es2019/plugins/rule/pm-plugins/input-rule.js +1 -1
- package/dist/es2019/plugins/selection/commands.js +2 -1
- package/dist/es2019/plugins/selection/utils.js +1 -1
- package/dist/es2019/plugins/status/plugin.js +9 -3
- package/dist/es2019/plugins/status/ui/statusPicker.js +2 -2
- package/dist/es2019/plugins/type-ahead/insert-utils.js +1 -2
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -2
- package/dist/es2019/plugins/width/index.js +12 -0
- package/dist/es2019/ui/Alignment/styles.js +1 -2
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -3
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +3 -4
- package/dist/es2019/ui/ColorPickerButton/index.js +18 -9
- package/dist/es2019/ui/ConfigPanel/ErrorMessage/ErrorImage.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +7 -3
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +5 -6
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +2 -3
- package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +1 -2
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
- package/dist/es2019/ui/ContentStyles/index.js +2 -1
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +2 -2
- package/dist/es2019/ui/ElementBrowser/constants.js +3 -0
- package/dist/es2019/ui/ErrorBoundary/index.js +7 -0
- package/dist/es2019/ui/Resizer/index.js +4 -4
- package/dist/es2019/utils/commands.js +1 -1
- package/dist/es2019/utils/document.js +1 -8
- package/dist/es2019/utils/index.js +2 -2
- package/dist/es2019/utils/selection.js +0 -22
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +1 -16
- package/dist/esm/create-editor/ErrorBoundary.js +19 -8
- package/dist/esm/create-editor/ReactEditorViewInternal.js +40 -21
- package/dist/esm/editor-next/editor-internal.js +6 -1
- package/dist/esm/labs/next/presets/create-stub-internal-apis.js +1 -41
- package/dist/esm/labs/next/presets/default.js +23 -1
- package/dist/esm/labs/next/presets/universal.js +9 -18
- package/dist/esm/plugins/analytics/index.js +1 -1
- package/dist/esm/plugins/analytics/plugin-key.js +8 -1
- package/dist/esm/plugins/analytics/plugin.js +17 -45
- package/dist/esm/plugins/analytics/utils.js +24 -11
- package/dist/esm/plugins/base/index.js +4 -1
- package/dist/esm/plugins/base/pm-plugins/decoration.js +9 -0
- package/dist/esm/plugins/block-type/commands/block-type.js +1 -1
- package/dist/esm/plugins/caption/index.js +3 -2
- package/dist/esm/plugins/caption/pm-plugins/main.js +8 -7
- package/dist/esm/plugins/card/index.js +2 -2
- package/dist/esm/plugins/card/nodeviews/embedCard.js +103 -70
- package/dist/esm/plugins/card/nodeviews/genericCard.js +3 -2
- package/dist/esm/plugins/card/pm-plugins/analytics/events-from-tr.js +36 -20
- package/dist/esm/plugins/card/pm-plugins/analytics/utils.js +43 -7
- package/dist/esm/plugins/card/pm-plugins/doc.js +19 -19
- package/dist/esm/plugins/card/pm-plugins/main.js +5 -3
- package/dist/esm/plugins/card/pm-plugins/shouldReplaceLink.js +1 -1
- package/dist/esm/plugins/card/pm-plugins/util/resolve.js +6 -6
- package/dist/esm/plugins/card/toolbar.js +86 -68
- package/dist/esm/plugins/card/ui/EditLinkToolbar.js +19 -13
- package/dist/esm/plugins/card/ui/EditorSmartCardEventsNext.js +9 -3
- package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +6 -5
- package/dist/esm/plugins/card/ui/LinkToolbarButtonGroup.js +1 -1
- package/dist/esm/plugins/card/ui/ResizableEmbedCard.js +1 -1
- package/dist/esm/plugins/collab-edit/ui/styles.js +2 -3
- package/dist/esm/plugins/date/index.js +4 -3
- package/dist/esm/plugins/expand/ui/styles.js +2 -3
- package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +1 -1
- package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +5 -1
- package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +1 -1
- package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +2 -4
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +5 -5
- package/dist/esm/plugins/grid/index.js +72 -36
- package/dist/esm/plugins/history/pm-history-types.js +1 -2
- package/dist/esm/plugins/history/utils.js +1 -1
- package/dist/esm/plugins/hyperlink/HyperlinkToolbarAppearance.js +4 -2
- package/dist/esm/plugins/hyperlink/Toolbar.js +4 -3
- package/dist/esm/plugins/hyperlink/commands.js +3 -3
- package/dist/esm/plugins/hyperlink/index.js +7 -5
- package/dist/esm/plugins/hyperlink/pm-plugins/input-rule.js +3 -3
- package/dist/esm/plugins/hyperlink/pm-plugins/keymap.js +1 -2
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/esm/plugins/insert-block/index.js +1 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +40 -44
- package/dist/esm/plugins/layout/styles.js +3 -1
- package/dist/esm/plugins/list/actions/conversions.js +1 -1
- package/dist/esm/plugins/list/commands/listBackspace.js +1 -1
- package/dist/esm/plugins/list/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/list/transforms.js +1 -1
- package/dist/esm/plugins/list/utils/analytics.js +1 -1
- package/dist/esm/plugins/list/utils/find.js +1 -1
- package/dist/esm/plugins/list/utils/indentation.js +1 -1
- package/dist/esm/plugins/list/utils/node.js +2 -12
- package/dist/esm/plugins/list/utils/selection.js +1 -1
- package/dist/esm/plugins/macro/actions.js +1 -1
- package/dist/esm/plugins/media/commands/linking.js +1 -1
- package/dist/esm/plugins/media/index.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +31 -17
- package/dist/esm/plugins/media/pm-plugins/alt-text/index.js +1 -1
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/esm/plugins/media/toolbar/filePreviewItem.js +1 -1
- package/dist/esm/plugins/media/toolbar/linking-toolbar-appearance.js +1 -1
- package/dist/esm/plugins/media/ui/ImageBorder/styles.js +4 -0
- package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +2 -2
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +13 -3
- package/dist/esm/plugins/media/utils/media-single.js +5 -51
- package/dist/esm/plugins/paste/edge-cases/index.js +1 -1
- package/dist/esm/plugins/paste/edge-cases/lists.js +1 -1
- package/dist/esm/plugins/paste/handlers.js +11 -4
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +1 -1
- package/dist/esm/plugins/paste/pm-plugins/main.js +2 -3
- package/dist/esm/plugins/quick-insert/commands.js +1 -1
- package/dist/esm/plugins/rule/pm-plugins/input-rule.js +1 -1
- package/dist/esm/plugins/selection/commands.js +2 -1
- package/dist/esm/plugins/selection/utils.js +1 -1
- package/dist/esm/plugins/status/plugin.js +9 -3
- package/dist/esm/plugins/status/ui/statusPicker.js +2 -2
- package/dist/esm/plugins/type-ahead/insert-utils.js +1 -2
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +2 -2
- package/dist/esm/plugins/width/index.js +12 -0
- package/dist/esm/ui/Alignment/styles.js +1 -2
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -3
- package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +1 -2
- package/dist/esm/ui/ColorPickerButton/index.js +16 -9
- package/dist/esm/ui/ConfigPanel/ErrorMessage/ErrorImage.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +6 -2
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +3 -4
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +1 -2
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
- package/dist/esm/ui/ContentStyles/index.js +3 -3
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +2 -2
- package/dist/esm/ui/ElementBrowser/constants.js +3 -0
- package/dist/esm/ui/ErrorBoundary/index.js +7 -0
- package/dist/esm/ui/Resizer/index.js +4 -4
- package/dist/esm/utils/commands.js +1 -1
- package/dist/esm/utils/document.js +1 -8
- package/dist/esm/utils/index.js +2 -2
- package/dist/esm/utils/selection.js +0 -23
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/create-editor/ErrorBoundary.d.ts +2 -0
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +2 -1
- package/dist/types/labs/next/presets/create-stub-internal-apis.d.ts +0 -3
- package/dist/types/labs/next/presets/cxhtml.d.ts +63 -3
- package/dist/types/labs/next/presets/default.d.ts +129 -6
- package/dist/types/labs/next/presets/mobile.d.ts +63 -3
- package/dist/types/plugins/analytics/index.d.ts +1 -1
- package/dist/types/plugins/analytics/plugin-key.d.ts +6 -0
- package/dist/types/plugins/analytics/plugin.d.ts +9 -2
- package/dist/types/plugins/analytics/utils.d.ts +16 -3
- package/dist/types/plugins/base/index.d.ts +4 -0
- package/dist/types/plugins/base/pm-plugins/decoration.d.ts +8 -0
- package/dist/types/plugins/caption/index.d.ts +4 -1
- package/dist/types/plugins/caption/pm-plugins/main.d.ts +2 -1
- package/dist/types/plugins/card/index.d.ts +11 -1
- package/dist/types/plugins/card/nodeviews/embedCard.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/genericCard.d.ts +3 -0
- package/dist/types/plugins/card/pm-plugins/analytics/types.d.ts +2 -0
- package/dist/types/plugins/card/pm-plugins/analytics/utils.d.ts +8 -2
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +7 -7
- package/dist/types/plugins/card/pm-plugins/main.d.ts +3 -1
- package/dist/types/plugins/card/pm-plugins/util/resolve.d.ts +2 -1
- package/dist/types/plugins/card/toolbar.d.ts +7 -4
- package/dist/types/plugins/card/types.d.ts +1 -0
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +4 -2
- package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +2 -0
- package/dist/types/plugins/date/index.d.ts +3 -2
- package/dist/types/plugins/date/ui/DatePicker/date-picker-input.d.ts +1 -1
- package/dist/types/plugins/date/ui/DatePicker/index.d.ts +1 -1
- package/dist/types/plugins/grid/index.d.ts +14 -7
- package/dist/types/plugins/grid/types.d.ts +3 -2
- package/dist/types/plugins/history/pm-history-types.d.ts +0 -1
- package/dist/types/plugins/hyperlink/HyperlinkToolbarAppearance.d.ts +2 -0
- package/dist/types/plugins/hyperlink/Toolbar.d.ts +2 -1
- package/dist/types/plugins/hyperlink/commands.d.ts +1 -1
- package/dist/types/plugins/hyperlink/index.d.ts +6 -2
- package/dist/types/plugins/insert-block/index.d.ts +6 -4
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +3 -3
- package/dist/types/plugins/list/utils/node.d.ts +2 -6
- package/dist/types/plugins/media/index.d.ts +2 -1
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +4 -1
- package/dist/types/plugins/media/nodeviews/types.d.ts +4 -0
- package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/types.d.ts +1 -1
- package/dist/types/plugins/media/utils/media-single.d.ts +2 -15
- package/dist/types/plugins/paste/pm-plugins/main.d.ts +0 -1
- package/dist/types/plugins/width/index.d.ts +9 -1
- package/dist/types/types/performance-tracking.d.ts +1 -323
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +5 -5
- package/dist/types/ui/ColorPickerButton/index.d.ts +6 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/ElementBrowser/components/CategoryList.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementList/ElementList.d.ts +1 -1
- package/dist/types/ui/Resizer/types.d.ts +1 -1
- package/dist/types/utils/document.d.ts +0 -4
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/selection.d.ts +1 -2
- package/dist/types-ts4.5/create-editor/ErrorBoundary.d.ts +2 -0
- package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +2 -1
- package/dist/types-ts4.5/labs/next/presets/create-stub-internal-apis.d.ts +0 -3
- package/dist/types-ts4.5/labs/next/presets/cxhtml.d.ts +73 -3
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +149 -6
- package/dist/types-ts4.5/labs/next/presets/mobile.d.ts +73 -3
- package/dist/types-ts4.5/plugins/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/analytics/plugin-key.d.ts +6 -0
- package/dist/types-ts4.5/plugins/analytics/plugin.d.ts +10 -2
- package/dist/types-ts4.5/plugins/analytics/utils.d.ts +16 -3
- package/dist/types-ts4.5/plugins/base/index.d.ts +4 -0
- package/dist/types-ts4.5/plugins/base/pm-plugins/decoration.d.ts +8 -0
- package/dist/types-ts4.5/plugins/caption/index.d.ts +6 -1
- package/dist/types-ts4.5/plugins/caption/pm-plugins/main.d.ts +2 -1
- package/dist/types-ts4.5/plugins/card/index.d.ts +9 -1
- package/dist/types-ts4.5/plugins/card/nodeviews/embedCard.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/nodeviews/genericCard.d.ts +3 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/types.d.ts +2 -0
- package/dist/types-ts4.5/plugins/card/pm-plugins/analytics/utils.d.ts +8 -2
- package/dist/types-ts4.5/plugins/card/pm-plugins/doc.d.ts +7 -7
- package/dist/types-ts4.5/plugins/card/pm-plugins/main.d.ts +3 -1
- package/dist/types-ts4.5/plugins/card/pm-plugins/util/resolve.d.ts +2 -1
- package/dist/types-ts4.5/plugins/card/toolbar.d.ts +7 -4
- package/dist/types-ts4.5/plugins/card/types.d.ts +1 -0
- package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +4 -2
- package/dist/types-ts4.5/plugins/card/ui/LinkToolbarAppearance.d.ts +2 -0
- package/dist/types-ts4.5/plugins/date/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/date/ui/DatePicker/date-picker-input.d.ts +1 -1
- package/dist/types-ts4.5/plugins/date/ui/DatePicker/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/grid/index.d.ts +16 -7
- package/dist/types-ts4.5/plugins/grid/types.d.ts +3 -2
- package/dist/types-ts4.5/plugins/history/pm-history-types.d.ts +0 -1
- package/dist/types-ts4.5/plugins/hyperlink/HyperlinkToolbarAppearance.d.ts +2 -0
- package/dist/types-ts4.5/plugins/hyperlink/Toolbar.d.ts +2 -1
- package/dist/types-ts4.5/plugins/hyperlink/commands.d.ts +1 -1
- package/dist/types-ts4.5/plugins/hyperlink/index.d.ts +4 -2
- package/dist/types-ts4.5/plugins/insert-block/index.d.ts +4 -4
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +3 -3
- package/dist/types-ts4.5/plugins/list/utils/node.d.ts +2 -6
- package/dist/types-ts4.5/plugins/media/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaSingle.d.ts +4 -1
- package/dist/types-ts4.5/plugins/media/nodeviews/types.d.ts +4 -0
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/utils/media-single.d.ts +2 -15
- package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +0 -1
- package/dist/types-ts4.5/plugins/width/index.d.ts +9 -1
- package/dist/types-ts4.5/types/performance-tracking.d.ts +1 -323
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +5 -5
- package/dist/types-ts4.5/ui/ColorPickerButton/index.d.ts +6 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/ElementBrowser/components/CategoryList.d.ts +1 -1
- package/dist/types-ts4.5/ui/ElementBrowser/components/ElementList/ElementList.d.ts +1 -1
- package/dist/types-ts4.5/ui/Resizer/types.d.ts +1 -1
- package/dist/types-ts4.5/utils/document.d.ts +0 -4
- package/dist/types-ts4.5/utils/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/selection.d.ts +1 -2
- package/package.json +30 -23
- package/report.api.md +80 -151
- package/dist/cjs/analytics-api/api.js +0 -32
- package/dist/cjs/analytics-api/attach-payload-into-transaction.js +0 -36
- package/dist/cjs/analytics-api/editor-state-context.js +0 -77
- package/dist/cjs/analytics-api/map-attributes.js +0 -23
- package/dist/cjs/insert-api/api.js +0 -43
- package/dist/cjs/insert-api/insert-content-handlers.js +0 -94
- package/dist/cjs/insert-api/insert-node-helpers.js +0 -133
- package/dist/cjs/insert-api/types.js +0 -5
- package/dist/cjs/plugins/floating-toolbar/ui/Button.js +0 -93
- package/dist/cjs/plugins/hyperlink/analytics.js +0 -23
- package/dist/cjs/plugins/hyperlink/utils.js +0 -183
- package/dist/cjs/plugins/paste/md-plugins/ignore-list-heading-md-plugin.js +0 -47
- package/dist/cjs/plugins/paste/md-plugins/linkify-md-plugin.js +0 -135
- package/dist/cjs/plugins/paste/md-plugins/newline-md-plugin.js +0 -67
- package/dist/cjs/plugins/paste/md-plugins/paragraph-md-plugin.js +0 -73
- package/dist/cjs/plugins/paste/md.js +0 -31
- package/dist/cjs/plugins/undo-redo/undo-redo-input-source.js +0 -26
- package/dist/cjs/types/get-editor-props.js +0 -5
- package/dist/cjs/utils/get-editor-plugins.js +0 -30
- package/dist/cjs/utils/insert.js +0 -251
- package/dist/cjs/utils/sendLogs.js +0 -12
- package/dist/es2019/analytics-api/api.js +0 -28
- package/dist/es2019/analytics-api/attach-payload-into-transaction.js +0 -32
- package/dist/es2019/analytics-api/editor-state-context.js +0 -74
- package/dist/es2019/analytics-api/map-attributes.js +0 -14
- package/dist/es2019/insert-api/api.js +0 -42
- package/dist/es2019/insert-api/insert-content-handlers.js +0 -84
- package/dist/es2019/insert-api/insert-node-helpers.js +0 -137
- package/dist/es2019/insert-api/types.js +0 -1
- package/dist/es2019/plugins/floating-toolbar/ui/Button.js +0 -85
- package/dist/es2019/plugins/hyperlink/analytics.js +0 -17
- package/dist/es2019/plugins/hyperlink/utils.js +0 -149
- package/dist/es2019/plugins/paste/md-plugins/ignore-list-heading-md-plugin.js +0 -43
- package/dist/es2019/plugins/paste/md-plugins/linkify-md-plugin.js +0 -128
- package/dist/es2019/plugins/paste/md-plugins/newline-md-plugin.js +0 -58
- package/dist/es2019/plugins/paste/md-plugins/paragraph-md-plugin.js +0 -64
- package/dist/es2019/plugins/paste/md.js +0 -23
- package/dist/es2019/plugins/undo-redo/undo-redo-input-source.js +0 -17
- package/dist/es2019/types/get-editor-props.js +0 -1
- package/dist/es2019/utils/get-editor-plugins.js +0 -23
- package/dist/es2019/utils/insert.js +0 -244
- package/dist/es2019/utils/sendLogs.js +0 -1
- package/dist/esm/analytics-api/api.js +0 -25
- package/dist/esm/analytics-api/attach-payload-into-transaction.js +0 -29
- package/dist/esm/analytics-api/editor-state-context.js +0 -69
- package/dist/esm/analytics-api/map-attributes.js +0 -16
- package/dist/esm/insert-api/api.js +0 -36
- package/dist/esm/insert-api/insert-content-handlers.js +0 -86
- package/dist/esm/insert-api/insert-node-helpers.js +0 -123
- package/dist/esm/insert-api/types.js +0 -1
- package/dist/esm/plugins/floating-toolbar/ui/Button.js +0 -85
- package/dist/esm/plugins/hyperlink/analytics.js +0 -17
- package/dist/esm/plugins/hyperlink/utils.js +0 -168
- package/dist/esm/plugins/paste/md-plugins/ignore-list-heading-md-plugin.js +0 -41
- package/dist/esm/plugins/paste/md-plugins/linkify-md-plugin.js +0 -128
- package/dist/esm/plugins/paste/md-plugins/newline-md-plugin.js +0 -60
- package/dist/esm/plugins/paste/md-plugins/paragraph-md-plugin.js +0 -66
- package/dist/esm/plugins/paste/md.js +0 -23
- package/dist/esm/plugins/undo-redo/undo-redo-input-source.js +0 -18
- package/dist/esm/types/get-editor-props.js +0 -1
- package/dist/esm/utils/get-editor-plugins.js +0 -23
- package/dist/esm/utils/insert.js +0 -241
- package/dist/esm/utils/sendLogs.js +0 -1
- package/dist/types/analytics-api/api.d.ts +0 -9
- package/dist/types/analytics-api/attach-payload-into-transaction.d.ts +0 -10
- package/dist/types/analytics-api/editor-state-context.d.ts +0 -9
- package/dist/types/analytics-api/map-attributes.d.ts +0 -2
- package/dist/types/insert-api/api.d.ts +0 -9
- package/dist/types/insert-api/insert-content-handlers.d.ts +0 -9
- package/dist/types/insert-api/insert-node-helpers.d.ts +0 -30
- package/dist/types/insert-api/types.d.ts +0 -16
- package/dist/types/plugins/floating-toolbar/ui/Button.d.ts +0 -30
- package/dist/types/plugins/hyperlink/analytics.d.ts +0 -2
- package/dist/types/plugins/hyperlink/utils.d.ts +0 -25
- package/dist/types/plugins/paste/md-plugins/ignore-list-heading-md-plugin.d.ts +0 -2
- package/dist/types/plugins/paste/md-plugins/linkify-md-plugin.d.ts +0 -2
- package/dist/types/plugins/paste/md-plugins/newline-md-plugin.d.ts +0 -2
- package/dist/types/plugins/paste/md-plugins/paragraph-md-plugin.d.ts +0 -2
- package/dist/types/plugins/paste/md.d.ts +0 -2
- package/dist/types/plugins/undo-redo/undo-redo-input-source.d.ts +0 -3
- package/dist/types/types/get-editor-props.d.ts +0 -12
- package/dist/types/utils/get-editor-plugins.d.ts +0 -10
- package/dist/types/utils/insert.d.ts +0 -24
- package/dist/types/utils/sendLogs.d.ts +0 -1
- package/dist/types-ts4.5/analytics-api/api.d.ts +0 -9
- package/dist/types-ts4.5/analytics-api/attach-payload-into-transaction.d.ts +0 -10
- package/dist/types-ts4.5/analytics-api/editor-state-context.d.ts +0 -9
- package/dist/types-ts4.5/analytics-api/map-attributes.d.ts +0 -2
- package/dist/types-ts4.5/insert-api/api.d.ts +0 -9
- package/dist/types-ts4.5/insert-api/insert-content-handlers.d.ts +0 -9
- package/dist/types-ts4.5/insert-api/insert-node-helpers.d.ts +0 -30
- package/dist/types-ts4.5/insert-api/types.d.ts +0 -16
- package/dist/types-ts4.5/plugins/floating-toolbar/ui/Button.d.ts +0 -30
- package/dist/types-ts4.5/plugins/hyperlink/analytics.d.ts +0 -2
- package/dist/types-ts4.5/plugins/hyperlink/utils.d.ts +0 -25
- package/dist/types-ts4.5/plugins/paste/md-plugins/ignore-list-heading-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/plugins/paste/md-plugins/linkify-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/plugins/paste/md-plugins/newline-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/plugins/paste/md-plugins/paragraph-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/plugins/paste/md.d.ts +0 -2
- package/dist/types-ts4.5/plugins/undo-redo/undo-redo-input-source.d.ts +0 -3
- package/dist/types-ts4.5/types/get-editor-props.d.ts +0 -12
- package/dist/types-ts4.5/utils/get-editor-plugins.d.ts +0 -10
- package/dist/types-ts4.5/utils/insert.d.ts +0 -24
- package/dist/types-ts4.5/utils/sendLogs.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "183.
|
|
3
|
+
"version": "183.1.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,12 +49,14 @@
|
|
|
49
49
|
"@atlaskit/code": "^14.6.0",
|
|
50
50
|
"@atlaskit/date": "^0.10.0",
|
|
51
51
|
"@atlaskit/datetime-picker": "^12.5.0",
|
|
52
|
-
"@atlaskit/editor-common": "^74.
|
|
52
|
+
"@atlaskit/editor-common": "^74.1.0",
|
|
53
53
|
"@atlaskit/editor-json-transformer": "^8.9.0",
|
|
54
54
|
"@atlaskit/editor-markdown-transformer": "^5.2.0",
|
|
55
|
-
"@atlaskit/editor-palette": "1.4.
|
|
55
|
+
"@atlaskit/editor-palette": "1.4.2",
|
|
56
|
+
"@atlaskit/editor-plugin-analytics": "^0.0.1",
|
|
57
|
+
"@atlaskit/editor-plugin-content-insertion": "^0.0.1",
|
|
56
58
|
"@atlaskit/editor-plugin-feature-flags": "^0.1.0",
|
|
57
|
-
"@atlaskit/editor-plugin-table": "^1.
|
|
59
|
+
"@atlaskit/editor-plugin-table": "^1.4.0",
|
|
58
60
|
"@atlaskit/editor-shared-styles": "^2.4.0",
|
|
59
61
|
"@atlaskit/editor-tables": "^2.3.0",
|
|
60
62
|
"@atlaskit/emoji": "^67.4.0",
|
|
@@ -66,16 +68,17 @@
|
|
|
66
68
|
"@atlaskit/link-picker": "^1.20.0",
|
|
67
69
|
"@atlaskit/locale": "^2.5.0",
|
|
68
70
|
"@atlaskit/logo": "^13.14.0",
|
|
69
|
-
"@atlaskit/media-card": "^
|
|
71
|
+
"@atlaskit/media-card": "^75.0.0",
|
|
70
72
|
"@atlaskit/media-client": "^22.0.0",
|
|
71
73
|
"@atlaskit/media-common": "^4.1.0",
|
|
72
74
|
"@atlaskit/media-filmstrip": "^47.0.0",
|
|
73
|
-
"@atlaskit/media-picker": "^65.
|
|
74
|
-
"@atlaskit/media-ui": "^
|
|
75
|
-
"@atlaskit/media-viewer": "^
|
|
75
|
+
"@atlaskit/media-picker": "^65.1.0",
|
|
76
|
+
"@atlaskit/media-ui": "^23.0.0",
|
|
77
|
+
"@atlaskit/media-viewer": "^48.0.0",
|
|
76
78
|
"@atlaskit/mention": "^22.1.0",
|
|
77
|
-
"@atlaskit/menu": "^1.
|
|
79
|
+
"@atlaskit/menu": "^1.7.0",
|
|
78
80
|
"@atlaskit/modal-dialog": "^12.5.0",
|
|
81
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
79
82
|
"@atlaskit/prosemirror-collab": "^0.2.0",
|
|
80
83
|
"@atlaskit/prosemirror-input-rules": "^2.2.0",
|
|
81
84
|
"@atlaskit/radio": "^5.5.0",
|
|
@@ -111,19 +114,17 @@
|
|
|
111
114
|
"date-fns": "^2.17.0",
|
|
112
115
|
"fuse.js": "^6.6.2",
|
|
113
116
|
"is-number": "^7.0.0",
|
|
114
|
-
"linkify-it": "^2.0.3",
|
|
115
117
|
"lodash": "^4.17.21",
|
|
116
|
-
"markdown-it": "^12.3.2",
|
|
117
118
|
"memoize-one": "^6.0.0",
|
|
118
119
|
"prop-types": "^15.5.10",
|
|
119
120
|
"prosemirror-commands": "1.1.11",
|
|
120
121
|
"prosemirror-history": "^1.1.3",
|
|
121
122
|
"prosemirror-keymap": "1.1.4",
|
|
122
|
-
"prosemirror-model": "1.
|
|
123
|
+
"prosemirror-model": "1.16.0",
|
|
123
124
|
"prosemirror-state": "1.3.4",
|
|
124
125
|
"prosemirror-transform": "1.3.2",
|
|
125
126
|
"prosemirror-utils": "^1.0.0-0",
|
|
126
|
-
"prosemirror-view": "1.23.
|
|
127
|
+
"prosemirror-view": "1.23.7",
|
|
127
128
|
"raf-schd": "^4.0.3",
|
|
128
129
|
"re-resizable": "6.0.0",
|
|
129
130
|
"react-loadable": "^5.1.0",
|
|
@@ -134,8 +135,8 @@
|
|
|
134
135
|
"w3c-keyname": "^2.1.0"
|
|
135
136
|
},
|
|
136
137
|
"peerDependencies": {
|
|
137
|
-
"@atlaskit/link-provider": "^1.6.
|
|
138
|
-
"@atlaskit/media-core": "^34.1.
|
|
138
|
+
"@atlaskit/link-provider": "^1.6.2",
|
|
139
|
+
"@atlaskit/media-core": "^34.1.2",
|
|
139
140
|
"react": "^16.8.0",
|
|
140
141
|
"react-dom": "^16.8.0",
|
|
141
142
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -143,16 +144,16 @@
|
|
|
143
144
|
"devDependencies": {
|
|
144
145
|
"@af/integration-testing": "*",
|
|
145
146
|
"@atlaskit/atlassian-navigation": "^2.5.0",
|
|
146
|
-
"@atlaskit/breadcrumbs": "11.10.
|
|
147
|
+
"@atlaskit/breadcrumbs": "11.10.2",
|
|
147
148
|
"@atlaskit/code": "^14.6.0",
|
|
148
|
-
"@atlaskit/collab-provider": "8.
|
|
149
|
+
"@atlaskit/collab-provider": "8.9.1",
|
|
149
150
|
"@atlaskit/docs": "*",
|
|
150
151
|
"@atlaskit/drawer": "^7.5.0",
|
|
151
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
152
|
+
"@atlaskit/dropdown-menu": "^11.9.0",
|
|
152
153
|
"@atlaskit/editor-bitbucket-transformer": "^8.1.0",
|
|
153
154
|
"@atlaskit/editor-card-provider": "^3.0.0",
|
|
154
155
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
155
|
-
"@atlaskit/editor-plugin-table": "^1.
|
|
156
|
+
"@atlaskit/editor-plugin-table": "^1.4.0",
|
|
156
157
|
"@atlaskit/editor-test-helpers": "^18.3.0",
|
|
157
158
|
"@atlaskit/flag": "^15.2.0",
|
|
158
159
|
"@atlaskit/inline-dialog": "^13.6.0",
|
|
@@ -162,11 +163,12 @@
|
|
|
162
163
|
"@atlaskit/media-core": "^34.1.0",
|
|
163
164
|
"@atlaskit/media-integration-test-helpers": "^2.6.0",
|
|
164
165
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
165
|
-
"@atlaskit/menu": "^1.
|
|
166
|
+
"@atlaskit/menu": "^1.7.0",
|
|
166
167
|
"@atlaskit/page-layout": "^1.6.0",
|
|
168
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
167
169
|
"@atlaskit/profilecard": "^19.3.0",
|
|
168
170
|
"@atlaskit/pubsub": "^6.4.0",
|
|
169
|
-
"@atlaskit/renderer": "^108.
|
|
171
|
+
"@atlaskit/renderer": "^108.1.0",
|
|
170
172
|
"@atlaskit/section-message": "^6.4.0",
|
|
171
173
|
"@atlaskit/share": "*",
|
|
172
174
|
"@atlaskit/smart-user-picker": "^6.1.0",
|
|
@@ -180,7 +182,7 @@
|
|
|
180
182
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
181
183
|
"@atlassian/link-picker-atlassian-plugin": "^30.1.0",
|
|
182
184
|
"@atlassian/link-picker-plugins": "^20.1.0",
|
|
183
|
-
"@atlassian/search-provider": "2.4.
|
|
185
|
+
"@atlassian/search-provider": "2.4.3",
|
|
184
186
|
"@atlassian/ufo": "^0.2.0",
|
|
185
187
|
"@emotion/jest": "^11.8.0",
|
|
186
188
|
"@storybook/addon-knobs": "^5.3.18",
|
|
@@ -233,5 +235,10 @@
|
|
|
233
235
|
]
|
|
234
236
|
}
|
|
235
237
|
},
|
|
236
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
238
|
+
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
239
|
+
"platform-feature-flags": {
|
|
240
|
+
"platform.editor.sentry-error-monitoring_6bksu": {
|
|
241
|
+
"type": "boolean"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
237
244
|
}
|
package/report.api.md
CHANGED
|
@@ -27,6 +27,7 @@ import { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
|
|
|
27
27
|
import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
28
28
|
import { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
|
|
29
29
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
30
|
+
import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
|
|
30
31
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
31
32
|
import { CardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
32
33
|
import { CollabEditProvider } from '@atlaskit/editor-common/collab';
|
|
@@ -47,6 +48,7 @@ import { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
|
47
48
|
import { DropdownOptionT } from '@atlaskit/editor-common/types';
|
|
48
49
|
import { EditorActionsOptions } from '@atlaskit/editor-common/types';
|
|
49
50
|
import { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
51
|
+
import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
50
52
|
import { FeatureFlags as EditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
51
53
|
import { EditorPlugin } from '@atlaskit/editor-common/types';
|
|
52
54
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
@@ -84,6 +86,7 @@ import { Side as GapCursorSide } from '@atlaskit/editor-common/selection';
|
|
|
84
86
|
import { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
85
87
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
86
88
|
import { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
89
|
+
import { InputTracking } from '@atlaskit/editor-common/types';
|
|
87
90
|
import { IntlShape } from 'react-intl-next';
|
|
88
91
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
|
|
89
92
|
import { jsx } from '@emotion/react';
|
|
@@ -109,6 +112,7 @@ import { NodeConfig } from '@atlaskit/editor-common/types';
|
|
|
109
112
|
import { NodeType } from 'prosemirror-model';
|
|
110
113
|
import { NodeView } from 'prosemirror-view';
|
|
111
114
|
import { PaletteColor } from '@atlaskit/editor-common/ui-color';
|
|
115
|
+
import { PerformanceTracking } from '@atlaskit/editor-common/types';
|
|
112
116
|
import { PluginConfig } from '@atlaskit/editor-plugin-table/types';
|
|
113
117
|
import { PluginKey } from 'prosemirror-state';
|
|
114
118
|
import { PMPlugin } from '@atlaskit/editor-common/types';
|
|
@@ -140,6 +144,7 @@ import { TeamMentionResource } from '@atlaskit/mention/team-resource';
|
|
|
140
144
|
import type { ThemeModes } from '@atlaskit/theme/types';
|
|
141
145
|
import { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
142
146
|
import { Transaction } from 'prosemirror-state';
|
|
147
|
+
import { TransactionTracking } from '@atlaskit/editor-common/types';
|
|
143
148
|
import { Transformer as Transformer_2 } from '@atlaskit/editor-common/types';
|
|
144
149
|
import type { TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
145
150
|
import type { TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
@@ -311,22 +316,8 @@ export type BlockTypeState = {
|
|
|
311
316
|
availableWrapperBlockTypes: BlockType[];
|
|
312
317
|
};
|
|
313
318
|
|
|
314
|
-
// @public (undocumented)
|
|
315
|
-
type BrowserFreezetracking = {
|
|
316
|
-
enabled?: boolean;
|
|
317
|
-
trackInteractionType?: boolean;
|
|
318
|
-
trackSeverity?: boolean;
|
|
319
|
-
severityNormalThreshold?: number;
|
|
320
|
-
severityDegradedThreshold?: number;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
319
|
export { CardProvider };
|
|
324
320
|
|
|
325
|
-
// @public (undocumented)
|
|
326
|
-
type CatchAllTracking = {
|
|
327
|
-
enabled: boolean;
|
|
328
|
-
};
|
|
329
|
-
|
|
330
321
|
// @public (undocumented)
|
|
331
322
|
interface CellSelectionData {
|
|
332
323
|
// (undocumented)
|
|
@@ -391,10 +382,7 @@ export class CollapsedEditor extends React_2.Component<Props, State> {
|
|
|
391
382
|
// (undocumented)
|
|
392
383
|
editorComponent?: Editor | EditorMigrationComponent | EditorNext;
|
|
393
384
|
// (undocumented)
|
|
394
|
-
handleEditorRef: (
|
|
395
|
-
editorRef?: Editor | undefined,
|
|
396
|
-
editorRefCallback?: any,
|
|
397
|
-
) => void;
|
|
385
|
+
handleEditorRef: (editorRef?: Editor, editorRefCallback?: any) => void;
|
|
398
386
|
// (undocumented)
|
|
399
387
|
previouslyExpanded?: boolean;
|
|
400
388
|
// (undocumented)
|
|
@@ -421,14 +409,6 @@ type ConfigWithNodeInfo = {
|
|
|
421
409
|
node: Node_2;
|
|
422
410
|
};
|
|
423
411
|
|
|
424
|
-
// @public (undocumented)
|
|
425
|
-
type ContentRetrievalTracking = {
|
|
426
|
-
enabled: boolean;
|
|
427
|
-
successSamplingRate?: number;
|
|
428
|
-
failureSamplingRate?: number;
|
|
429
|
-
reportErrorStack?: boolean;
|
|
430
|
-
};
|
|
431
|
-
|
|
432
412
|
// @public (undocumented)
|
|
433
413
|
type Context = {
|
|
434
414
|
editorActions?: EditorActions;
|
|
@@ -441,6 +421,9 @@ export class ContextPanel extends React_2.Component<Props_4> {
|
|
|
441
421
|
render(): jsx.JSX.Element;
|
|
442
422
|
}
|
|
443
423
|
|
|
424
|
+
// @public (undocumented)
|
|
425
|
+
type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
|
|
426
|
+
|
|
444
427
|
// @public (undocumented)
|
|
445
428
|
interface CreateEditorStateOptions {
|
|
446
429
|
// (undocumented)
|
|
@@ -459,7 +442,7 @@ interface CreateEditorStateOptions {
|
|
|
459
442
|
export const createQuickInsertTools: (editorView: EditorView) => {
|
|
460
443
|
getItems: (
|
|
461
444
|
query: string,
|
|
462
|
-
options?: QuickInsertPluginOptions
|
|
445
|
+
options?: QuickInsertPluginOptions,
|
|
463
446
|
) => QuickInsertItem[];
|
|
464
447
|
};
|
|
465
448
|
|
|
@@ -594,11 +577,16 @@ type DefaultPresetPluginOptions = {
|
|
|
594
577
|
hyperlinkOptions?: HyperlinkPluginOptions;
|
|
595
578
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
596
579
|
typeAhead?: TypeAheadPluginOptions;
|
|
580
|
+
allowAnalyticsGASV3?: boolean;
|
|
581
|
+
performanceTracking?: EditorProps['performanceTracking'];
|
|
597
582
|
};
|
|
598
583
|
|
|
599
584
|
// @public
|
|
600
585
|
export const deleteDate: () => Command;
|
|
601
586
|
|
|
587
|
+
// @public (undocumented)
|
|
588
|
+
type DisplayGrid = (props: Required_2<GridPluginState>) => boolean;
|
|
589
|
+
|
|
602
590
|
export { DropdownOptionT };
|
|
603
591
|
|
|
604
592
|
// @public (undocumented)
|
|
@@ -643,8 +631,8 @@ export class Editor extends React_2.Component<
|
|
|
643
631
|
) => ExtensionProvider<any> | undefined;
|
|
644
632
|
// @deprecated (undocumented)
|
|
645
633
|
prepareQuickInsertProvider: (
|
|
646
|
-
extensionProvider?: ExtensionProvider
|
|
647
|
-
quickInsert?: QuickInsertOptions
|
|
634
|
+
extensionProvider?: ExtensionProvider,
|
|
635
|
+
quickInsert?: QuickInsertOptions,
|
|
648
636
|
) => Promise<QuickInsertProvider> | undefined;
|
|
649
637
|
// (undocumented)
|
|
650
638
|
static propTypes: {
|
|
@@ -1292,6 +1280,35 @@ type getPosHandler = boolean | getPosHandlerNode;
|
|
|
1292
1280
|
// @public (undocumented)
|
|
1293
1281
|
type getPosHandlerNode = () => number;
|
|
1294
1282
|
|
|
1283
|
+
// @public (undocumented)
|
|
1284
|
+
const gridPlugin: NextEditorPlugin<
|
|
1285
|
+
'grid',
|
|
1286
|
+
{
|
|
1287
|
+
pluginConfiguration: GridPluginOptions | undefined;
|
|
1288
|
+
dependencies: [typeof widthPlugin];
|
|
1289
|
+
sharedState: GridPluginState | null;
|
|
1290
|
+
actions: {
|
|
1291
|
+
displayGrid: CreateDisplayGrid;
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
>;
|
|
1295
|
+
|
|
1296
|
+
// @public (undocumented)
|
|
1297
|
+
interface GridPluginOptions {
|
|
1298
|
+
// (undocumented)
|
|
1299
|
+
shouldCalcBreakoutGridLines?: boolean;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
// @public (undocumented)
|
|
1303
|
+
type GridPluginState = {
|
|
1304
|
+
visible: boolean;
|
|
1305
|
+
gridType?: GridType;
|
|
1306
|
+
highlight: Highlights;
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1309
|
+
// @public (undocumented)
|
|
1310
|
+
type GridType = 'full' | 'wrapped';
|
|
1311
|
+
|
|
1295
1312
|
// @public
|
|
1296
1313
|
export function hasVisibleContent(node: Node_2): boolean;
|
|
1297
1314
|
|
|
@@ -1301,6 +1318,9 @@ type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
|
|
|
1301
1318
|
// @public (undocumented)
|
|
1302
1319
|
type HeadingLevelsAndNormalText = HeadingLevels | NormalTextLevel;
|
|
1303
1320
|
|
|
1321
|
+
// @public (undocumented)
|
|
1322
|
+
type Highlights = Array<'full-width' | 'wide' | number>;
|
|
1323
|
+
|
|
1304
1324
|
// @public
|
|
1305
1325
|
export const historyPluginKey: PluginKey<HistoryPluginState, any>;
|
|
1306
1326
|
|
|
@@ -1393,20 +1413,6 @@ type InputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
|
1393
1413
|
// @public (undocumented)
|
|
1394
1414
|
type InputMethod_2 = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
1395
1415
|
|
|
1396
|
-
// @public (undocumented)
|
|
1397
|
-
interface InputTracking {
|
|
1398
|
-
countNodes?: boolean;
|
|
1399
|
-
enabled: boolean;
|
|
1400
|
-
freezeThreshold?: number;
|
|
1401
|
-
samplingRate?: number;
|
|
1402
|
-
severityDegradedThreshold?: number;
|
|
1403
|
-
severityNormalThreshold?: number;
|
|
1404
|
-
slowThreshold?: number;
|
|
1405
|
-
trackRenderingTime?: boolean;
|
|
1406
|
-
trackSeverity?: boolean;
|
|
1407
|
-
trackSingleKeypress?: boolean;
|
|
1408
|
-
}
|
|
1409
|
-
|
|
1410
1416
|
// @public (undocumented)
|
|
1411
1417
|
export type InsertBlockInputMethodToolbar =
|
|
1412
1418
|
| INPUT_METHOD.INSERT_MENU
|
|
@@ -1423,9 +1429,9 @@ export const insertBlockTypesWithAnalytics: (
|
|
|
1423
1429
|
|
|
1424
1430
|
// @public (undocumented)
|
|
1425
1431
|
export const insertDate: (
|
|
1426
|
-
date?: DateType
|
|
1427
|
-
inputMethod?: InsertBlockInputMethodToolbar
|
|
1428
|
-
commitMethod?: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PICKER
|
|
1432
|
+
date?: DateType,
|
|
1433
|
+
inputMethod?: InsertBlockInputMethodToolbar,
|
|
1434
|
+
commitMethod?: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PICKER,
|
|
1429
1435
|
enterPressed?: boolean,
|
|
1430
1436
|
) => Command;
|
|
1431
1437
|
|
|
@@ -1467,8 +1473,8 @@ export const insertLinkWithAnalytics: (
|
|
|
1467
1473
|
from: number,
|
|
1468
1474
|
to: number,
|
|
1469
1475
|
href: string,
|
|
1470
|
-
title?: string
|
|
1471
|
-
displayText?: string
|
|
1476
|
+
title?: string,
|
|
1477
|
+
displayText?: string,
|
|
1472
1478
|
cardsAvailable?: boolean,
|
|
1473
1479
|
sourceEvent?: UIAnalyticsEvent | null | undefined,
|
|
1474
1480
|
) => Command;
|
|
@@ -1479,18 +1485,18 @@ export const insertLinkWithAnalyticsMobileNative: (
|
|
|
1479
1485
|
from: number,
|
|
1480
1486
|
to: number,
|
|
1481
1487
|
href: string,
|
|
1482
|
-
title?: string
|
|
1483
|
-
displayText?: string
|
|
1488
|
+
title?: string,
|
|
1489
|
+
displayText?: string,
|
|
1484
1490
|
) => Command;
|
|
1485
1491
|
|
|
1486
1492
|
// @public (undocumented)
|
|
1487
1493
|
export const insertMediaSingleNode: (
|
|
1488
1494
|
view: EditorView,
|
|
1489
1495
|
mediaState: MediaState,
|
|
1490
|
-
inputMethod?: InputMethodInsertMedia
|
|
1491
|
-
collection?: string
|
|
1492
|
-
alignLeftOnInsert?: boolean
|
|
1493
|
-
newInsertionBehaviour?: boolean
|
|
1496
|
+
inputMethod?: InputMethodInsertMedia,
|
|
1497
|
+
collection?: string,
|
|
1498
|
+
alignLeftOnInsert?: boolean,
|
|
1499
|
+
newInsertionBehaviour?: boolean,
|
|
1494
1500
|
) => boolean;
|
|
1495
1501
|
|
|
1496
1502
|
// @public (undocumented)
|
|
@@ -1507,9 +1513,9 @@ export const insertTaskDecisionCommand: (
|
|
|
1507
1513
|
| INPUT_METHOD.FORMATTING
|
|
1508
1514
|
| INPUT_METHOD.QUICK_INSERT
|
|
1509
1515
|
| InsertBlockInputMethodToolbar,
|
|
1510
|
-
addItem?: AddItemTransactionCreator
|
|
1511
|
-
listLocalId?: string
|
|
1512
|
-
itemLocalId?: string
|
|
1516
|
+
addItem?: AddItemTransactionCreator,
|
|
1517
|
+
listLocalId?: string,
|
|
1518
|
+
itemLocalId?: string,
|
|
1513
1519
|
) => Command;
|
|
1514
1520
|
|
|
1515
1521
|
// @public (undocumented)
|
|
@@ -1688,7 +1694,7 @@ export const mediaPlugin: NextEditorPlugin<
|
|
|
1688
1694
|
'media',
|
|
1689
1695
|
{
|
|
1690
1696
|
pluginConfiguration: MediaOptions | undefined;
|
|
1691
|
-
dependencies: [typeof featureFlagsPlugin];
|
|
1697
|
+
dependencies: [typeof featureFlagsPlugin, typeof gridPlugin];
|
|
1692
1698
|
}
|
|
1693
1699
|
>;
|
|
1694
1700
|
|
|
@@ -1951,26 +1957,9 @@ interface NodeSelectionData {
|
|
|
1951
1957
|
type: 'node';
|
|
1952
1958
|
}
|
|
1953
1959
|
|
|
1954
|
-
// @public (undocumented)
|
|
1955
|
-
type NodeViewTracking = {
|
|
1956
|
-
enabled: boolean;
|
|
1957
|
-
samplingRate?: 100;
|
|
1958
|
-
slowThreshold?: number;
|
|
1959
|
-
};
|
|
1960
|
-
|
|
1961
1960
|
// @public (undocumented)
|
|
1962
1961
|
type NormalTextLevel = 0;
|
|
1963
1962
|
|
|
1964
|
-
// @public (undocumented)
|
|
1965
|
-
type OnChangeCallbackTracking = {
|
|
1966
|
-
enabled: boolean;
|
|
1967
|
-
};
|
|
1968
|
-
|
|
1969
|
-
// @public (undocumented)
|
|
1970
|
-
type OnEditorReadyCallbackTracking = {
|
|
1971
|
-
enabled: boolean;
|
|
1972
|
-
};
|
|
1973
|
-
|
|
1974
1963
|
// @public (undocumented)
|
|
1975
1964
|
type OnEditorViewStateUpdated = (props: {
|
|
1976
1965
|
readonly originalTransaction: Readonly<Transaction>;
|
|
@@ -2004,28 +1993,6 @@ type PastePluginOptions = {
|
|
|
2004
1993
|
sanitizePrivateContent?: boolean;
|
|
2005
1994
|
};
|
|
2006
1995
|
|
|
2007
|
-
// @public (undocumented)
|
|
2008
|
-
type PasteTracking = {
|
|
2009
|
-
enabled: boolean;
|
|
2010
|
-
};
|
|
2011
|
-
|
|
2012
|
-
// @public (undocumented)
|
|
2013
|
-
type PerformanceTracking = {
|
|
2014
|
-
catchAllTracking?: CatchAllTracking;
|
|
2015
|
-
ttiTracking?: TTITracking;
|
|
2016
|
-
inputTracking?: InputTracking;
|
|
2017
|
-
transactionTracking?: TransactionTracking;
|
|
2018
|
-
uiTracking?: UITracking;
|
|
2019
|
-
nodeViewTracking?: NodeViewTracking;
|
|
2020
|
-
bFreezeTracking?: BrowserFreezetracking;
|
|
2021
|
-
proseMirrorRenderedTracking?: ProseMirrorRenderedTracking;
|
|
2022
|
-
contentRetrievalTracking?: ContentRetrievalTracking;
|
|
2023
|
-
onChangeCallbackTracking?: OnChangeCallbackTracking;
|
|
2024
|
-
onEditorReadyCallbackTracking?: OnEditorReadyCallbackTracking;
|
|
2025
|
-
pasteTracking?: PasteTracking;
|
|
2026
|
-
renderTracking?: RenderTracking;
|
|
2027
|
-
};
|
|
2028
|
-
|
|
2029
1996
|
// @public (undocumented)
|
|
2030
1997
|
class PickerFacade {
|
|
2031
1998
|
constructor(
|
|
@@ -2179,7 +2146,7 @@ type PrimaryToolbarComponents =
|
|
|
2179
2146
|
const processItems: (
|
|
2180
2147
|
items: Array<QuickInsertHandler>,
|
|
2181
2148
|
intl: IntlShape,
|
|
2182
|
-
extendedActions?: Record<string, Function
|
|
2149
|
+
extendedActions?: Record<string, Function>,
|
|
2183
2150
|
) => QuickInsertItem[];
|
|
2184
2151
|
|
|
2185
2152
|
// @public (undocumented)
|
|
@@ -2240,14 +2207,6 @@ type Props_5 = {
|
|
|
2240
2207
|
// @public (undocumented)
|
|
2241
2208
|
type ProsemirrorGetPosHandler = () => number;
|
|
2242
2209
|
|
|
2243
|
-
// @public (undocumented)
|
|
2244
|
-
type ProseMirrorRenderedTracking = {
|
|
2245
|
-
enabled?: boolean;
|
|
2246
|
-
trackSeverity: boolean;
|
|
2247
|
-
severityNormalThreshold: number;
|
|
2248
|
-
severityDegradedThreshold: number;
|
|
2249
|
-
};
|
|
2250
|
-
|
|
2251
2210
|
// @public (undocumented)
|
|
2252
2211
|
type ProviderFactoryState = {
|
|
2253
2212
|
extensionProvider?: ExtensionProvider;
|
|
@@ -2358,9 +2317,7 @@ class ReactEditorView_2<T = {}> extends React_2.Component<
|
|
|
2358
2317
|
appearance: EditorAppearance | undefined,
|
|
2359
2318
|
) => FULL_WIDTH_MODE;
|
|
2360
2319
|
// (undocumented)
|
|
2361
|
-
getDirectEditorProps: (
|
|
2362
|
-
state?: EditorState<any> | undefined,
|
|
2363
|
-
) => DirectEditorProps;
|
|
2320
|
+
getDirectEditorProps: (state?: EditorState) => DirectEditorProps;
|
|
2364
2321
|
// (undocumented)
|
|
2365
2322
|
getEditorState: () => EditorState<any> | undefined;
|
|
2366
2323
|
// (undocumented)
|
|
@@ -2409,15 +2366,8 @@ interface RectData {
|
|
|
2409
2366
|
export const removeStatus: (showStatusPickerAt: number) => Command;
|
|
2410
2367
|
|
|
2411
2368
|
// @public (undocumented)
|
|
2412
|
-
type
|
|
2413
|
-
|
|
2414
|
-
enabled: boolean;
|
|
2415
|
-
useShallow?: boolean;
|
|
2416
|
-
};
|
|
2417
|
-
reactEditorView: {
|
|
2418
|
-
enabled: boolean;
|
|
2419
|
-
useShallow?: boolean;
|
|
2420
|
-
};
|
|
2369
|
+
type Required_2<T> = {
|
|
2370
|
+
[P in keyof T]-?: T[P];
|
|
2421
2371
|
};
|
|
2422
2372
|
|
|
2423
2373
|
// @public (undocumented)
|
|
@@ -2802,28 +2752,6 @@ class TransactionTracker {
|
|
|
2802
2752
|
shouldTrackTransaction(options: TransactionTracking): boolean;
|
|
2803
2753
|
}
|
|
2804
2754
|
|
|
2805
|
-
// @public (undocumented)
|
|
2806
|
-
type TransactionTracking = {
|
|
2807
|
-
enabled: boolean;
|
|
2808
|
-
usePerformanceMarks?: boolean;
|
|
2809
|
-
samplingRate?: number;
|
|
2810
|
-
slowThreshold?: number;
|
|
2811
|
-
outlierThreshold?: number;
|
|
2812
|
-
outlierFactor?: number;
|
|
2813
|
-
};
|
|
2814
|
-
|
|
2815
|
-
// @public (undocumented)
|
|
2816
|
-
type TTITracking = {
|
|
2817
|
-
enabled: boolean;
|
|
2818
|
-
ttiIdleThreshold?: number;
|
|
2819
|
-
ttiCancelTimeout?: number;
|
|
2820
|
-
trackSeverity?: boolean;
|
|
2821
|
-
ttiSeverityNormalThreshold?: number;
|
|
2822
|
-
ttiSeverityDegradedThreshold?: number;
|
|
2823
|
-
ttiFromInvocationSeverityNormalThreshold?: number;
|
|
2824
|
-
ttiFromInvocationSeverityDegradedThreshold?: number;
|
|
2825
|
-
};
|
|
2826
|
-
|
|
2827
2755
|
// @public (undocumented)
|
|
2828
2756
|
type TypeAheadInputMethod =
|
|
2829
2757
|
| INPUT_METHOD.INSERT_MENU
|
|
@@ -2862,13 +2790,6 @@ interface TypeAheadStatsSerializable extends TypeAheadStats {
|
|
|
2862
2790
|
serialize: () => TypeAheadStats;
|
|
2863
2791
|
}
|
|
2864
2792
|
|
|
2865
|
-
// @public (undocumented)
|
|
2866
|
-
type UITracking = {
|
|
2867
|
-
enabled: boolean;
|
|
2868
|
-
samplingRate?: number;
|
|
2869
|
-
slowThreshold?: number;
|
|
2870
|
-
};
|
|
2871
|
-
|
|
2872
2793
|
// @public (undocumented)
|
|
2873
2794
|
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve';
|
|
2874
2795
|
|
|
@@ -2881,12 +2802,12 @@ export function updateLink(
|
|
|
2881
2802
|
): Command;
|
|
2882
2803
|
|
|
2883
2804
|
// @public (undocumented)
|
|
2884
|
-
export const updateStatus: (status?: StatusType
|
|
2805
|
+
export const updateStatus: (status?: StatusType) => Command;
|
|
2885
2806
|
|
|
2886
2807
|
// @public (undocumented)
|
|
2887
2808
|
export const updateStatusWithAnalytics: (
|
|
2888
2809
|
inputMethod: InsertBlockInputMethodToolbar,
|
|
2889
|
-
status?: StatusType
|
|
2810
|
+
status?: StatusType,
|
|
2890
2811
|
) => Command;
|
|
2891
2812
|
|
|
2892
2813
|
// @public (undocumented)
|
|
@@ -2903,6 +2824,14 @@ export const version: string;
|
|
|
2903
2824
|
// @public (undocumented)
|
|
2904
2825
|
type VisibilityEvent = 'setvisibility';
|
|
2905
2826
|
|
|
2827
|
+
// @public (undocumented)
|
|
2828
|
+
const widthPlugin: NextEditorPlugin<
|
|
2829
|
+
'width',
|
|
2830
|
+
{
|
|
2831
|
+
sharedState: EditorContainerWidth | undefined;
|
|
2832
|
+
}
|
|
2833
|
+
>;
|
|
2834
|
+
|
|
2906
2835
|
// @public (undocumented)
|
|
2907
2836
|
export class WithEditorActions extends React_2.Component<
|
|
2908
2837
|
WithEditorActionsProps,
|
|
@@ -2963,8 +2892,8 @@ export { WithPluginState };
|
|
|
2963
2892
|
|
|
2964
2893
|
```json
|
|
2965
2894
|
{
|
|
2966
|
-
"@atlaskit/link-provider": "^1.
|
|
2967
|
-
"@atlaskit/media-core": "^34.
|
|
2895
|
+
"@atlaskit/link-provider": "^1.6.1",
|
|
2896
|
+
"@atlaskit/media-core": "^34.1.1",
|
|
2968
2897
|
"react": "^16.8.0",
|
|
2969
2898
|
"react-dom": "^16.8.0",
|
|
2970
2899
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createEditorAnalyticsAPI = void 0;
|
|
7
|
-
var _analyticsListeners = require("@atlaskit/analytics-listeners");
|
|
8
|
-
var _attachPayloadIntoTransaction = require("./attach-payload-into-transaction");
|
|
9
|
-
var createEditorAnalyticsAPI = function createEditorAnalyticsAPI(_ref) {
|
|
10
|
-
var getEditorView = _ref.getEditorView,
|
|
11
|
-
getCreateUIAnalyticsEvent = _ref.getCreateUIAnalyticsEvent;
|
|
12
|
-
return {
|
|
13
|
-
attachAnalyticsEvent: function attachAnalyticsEvent(payload) {
|
|
14
|
-
return function (tr) {
|
|
15
|
-
var createAnalyticsEvent = getCreateUIAnalyticsEvent();
|
|
16
|
-
var editorView = getEditorView();
|
|
17
|
-
if (!tr || !createAnalyticsEvent || !editorView) {
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
var editorState = editorView.state;
|
|
21
|
-
(0, _attachPayloadIntoTransaction.attachPayloadIntoTransaction)({
|
|
22
|
-
tr: tr,
|
|
23
|
-
editorState: editorState,
|
|
24
|
-
payload: payload,
|
|
25
|
-
channel: _analyticsListeners.FabricChannel.editor
|
|
26
|
-
});
|
|
27
|
-
return true;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.createEditorAnalyticsAPI = createEditorAnalyticsAPI;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.attachPayloadIntoTransaction = void 0;
|
|
7
|
-
var _editorStateContext = require("./editor-state-context");
|
|
8
|
-
var _mapAttributes = require("./map-attributes");
|
|
9
|
-
var _steps = require("@atlaskit/adf-schema/steps");
|
|
10
|
-
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
|
-
var actionsToIgnore = [_analytics.ACTION.INVOKED, _analytics.ACTION.OPENED];
|
|
12
|
-
// This utils was taken as reference in packages/editor/editor-plugin-ai/src/analytics/utils.ts
|
|
13
|
-
// to create new util attachPayloadIntoTransaction in above file.
|
|
14
|
-
// If you make a change here, please review attachPayloadIntoTransaction in above
|
|
15
|
-
// file and update it as well if needed.
|
|
16
|
-
var attachPayloadIntoTransaction = function attachPayloadIntoTransaction(_ref) {
|
|
17
|
-
var payload = _ref.payload,
|
|
18
|
-
editorState = _ref.editorState,
|
|
19
|
-
tr = _ref.tr,
|
|
20
|
-
channel = _ref.channel;
|
|
21
|
-
payload = (0, _editorStateContext.getStateContext)(editorState, payload);
|
|
22
|
-
payload = (0, _mapAttributes.mapActionSubjectIdToAttributes)(payload);
|
|
23
|
-
var storedMarks = tr.storedMarks;
|
|
24
|
-
var pos = tr.mapping.map(editorState.selection.$from.pos, -1);
|
|
25
|
-
tr.step(new _steps.AnalyticsStep([{
|
|
26
|
-
payload: payload,
|
|
27
|
-
channel: channel
|
|
28
|
-
}], actionsToIgnore, pos) // We need to create the step based on a position, this prevent split history for relative changes.
|
|
29
|
-
);
|
|
30
|
-
|
|
31
|
-
// When you add a new step all the storedMarks are removed it
|
|
32
|
-
if (storedMarks) {
|
|
33
|
-
tr.setStoredMarks(storedMarks);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
exports.attachPayloadIntoTransaction = attachPayloadIntoTransaction;
|