@atlaskit/editor-common 76.6.0 → 76.8.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 +12 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/selection/gap-cursor/actions.js +92 -0
- package/dist/cjs/selection/gap-cursor/styles.js +17 -0
- package/dist/cjs/selection/index.js +26 -0
- package/dist/cjs/types/insert-block.js +5 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/editor-core-utils.js +16 -1
- package/dist/cjs/utils/index.js +12 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/selection/gap-cursor/actions.js +84 -0
- package/dist/es2019/selection/gap-cursor/styles.js +145 -0
- package/dist/es2019/selection/index.js +2 -0
- package/dist/es2019/types/insert-block.js +1 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/editor-core-utils.js +17 -1
- package/dist/es2019/utils/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/selection/gap-cursor/actions.js +87 -0
- package/dist/esm/selection/gap-cursor/styles.js +10 -0
- package/dist/esm/selection/index.js +2 -0
- package/dist/esm/types/insert-block.js +1 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/editor-core-utils.js +13 -1
- package/dist/esm/utils/index.js +1 -1
- package/dist/types/selection/gap-cursor/actions.d.ts +11 -0
- package/dist/types/selection/gap-cursor/styles.d.ts +2 -0
- package/dist/types/selection/index.d.ts +3 -1
- package/dist/types/selection/types.d.ts +5 -4
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/insert-block.d.ts +2 -0
- package/dist/types/ui/DropList/index.d.ts +1 -1
- package/dist/types/utils/editor-core-utils.d.ts +7 -4
- package/dist/types/utils/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/collection.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-is-present.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/fundamentals/test-cases/editor-typing.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/index.d.ts +0 -4
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/delete.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/edit.d.ts +0 -4
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/index.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/block/insert.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/delete.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/edit.d.ts +0 -4
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/index.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/embed/insert.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/delete.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/edit.d.ts +0 -4
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/index.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/insert.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/inline/unlink.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/types.d.ts +0 -4
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/index.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/smart-links/test-cases/url/insert.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/cases/types.d.ts +0 -7
- package/dist/types-ts4.5/__tests_external__/index.d.ts +0 -3
- package/dist/types-ts4.5/__tests_external__/page-objects/Editor.d.ts +0 -9
- package/dist/types-ts4.5/__tests_external__/page-objects/EditorSmartLink.d.ts +0 -40
- package/dist/types-ts4.5/__tests_external__/page-objects/Renderer.d.ts +0 -6
- package/dist/types-ts4.5/analytics/analytics-queue.d.ts +0 -10
- package/dist/types-ts4.5/analytics/api.d.ts +0 -5
- package/dist/types-ts4.5/analytics/fire-analytics-event.d.ts +0 -4
- package/dist/types-ts4.5/analytics/index.d.ts +0 -7
- package/dist/types-ts4.5/analytics/linking-utils.d.ts +0 -14
- package/dist/types-ts4.5/analytics/types/avatar.d.ts +0 -5
- package/dist/types-ts4.5/analytics/types/block.d.ts +0 -3
- package/dist/types-ts4.5/analytics/types/config-panel-events.d.ts +0 -17
- package/dist/types-ts4.5/analytics/types/cut-copy-events.d.ts +0 -12
- package/dist/types-ts4.5/analytics/types/date-events.d.ts +0 -17
- package/dist/types-ts4.5/analytics/types/dispatch-analytics-event.d.ts +0 -2
- package/dist/types-ts4.5/analytics/types/element-browser-events.d.ts +0 -11
- package/dist/types-ts4.5/analytics/types/enums.d.ts +0 -357
- package/dist/types-ts4.5/analytics/types/events.d.ts +0 -130
- package/dist/types-ts4.5/analytics/types/experimental-events.d.ts +0 -16
- package/dist/types-ts4.5/analytics/types/extension-events.d.ts +0 -37
- package/dist/types-ts4.5/analytics/types/find-replace-events.d.ts +0 -23
- package/dist/types-ts4.5/analytics/types/format-events.d.ts +0 -49
- package/dist/types-ts4.5/analytics/types/general-events.d.ts +0 -182
- package/dist/types-ts4.5/analytics/types/index.d.ts +0 -36
- package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +0 -17
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +0 -128
- package/dist/types-ts4.5/analytics/types/link-tool-bar-events.d.ts +0 -76
- package/dist/types-ts4.5/analytics/types/list-events.d.ts +0 -66
- package/dist/types-ts4.5/analytics/types/media-events.d.ts +0 -35
- package/dist/types-ts4.5/analytics/types/node-events.d.ts +0 -56
- package/dist/types-ts4.5/analytics/types/paste-events.d.ts +0 -39
- package/dist/types-ts4.5/analytics/types/performance-report.d.ts +0 -24
- package/dist/types-ts4.5/analytics/types/referentiality-events.d.ts +0 -52
- package/dist/types-ts4.5/analytics/types/selection-events.d.ts +0 -21
- package/dist/types-ts4.5/analytics/types/smart-links.d.ts +0 -14
- package/dist/types-ts4.5/analytics/types/substitute-events.d.ts +0 -26
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +0 -142
- package/dist/types-ts4.5/analytics/types/toolbar-button.d.ts +0 -22
- package/dist/types-ts4.5/analytics/types/type-ahead.d.ts +0 -27
- package/dist/types-ts4.5/analytics/types/utils.d.ts +0 -46
- package/dist/types-ts4.5/analytics/utils.d.ts +0 -3
- package/dist/types-ts4.5/card/LinkToolbarButtonGroup.d.ts +0 -16
- package/dist/types-ts4.5/card/MediaAndEmbedsToolbar/index.d.ts +0 -11
- package/dist/types-ts4.5/card/cardOptions.d.ts +0 -13
- package/dist/types-ts4.5/card/index.d.ts +0 -7
- package/dist/types-ts4.5/card/link-toolbar-button-group-options.d.ts +0 -5
- package/dist/types-ts4.5/card/types.d.ts +0 -27
- package/dist/types-ts4.5/card/ui/assets/card.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/assets/embed.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/assets/inline.d.ts +0 -3
- package/dist/types-ts4.5/card/ui/assets/url.d.ts +0 -3
- package/dist/types-ts4.5/card/utils.d.ts +0 -18
- package/dist/types-ts4.5/clipboard/index.d.ts +0 -6
- package/dist/types-ts4.5/collab/index.d.ts +0 -379
- package/dist/types-ts4.5/commands/index.d.ts +0 -21
- package/dist/types-ts4.5/commands/insert-block.d.ts +0 -5
- package/dist/types-ts4.5/copy-button/index.d.ts +0 -7
- package/dist/types-ts4.5/core-utils/index.d.ts +0 -1
- package/dist/types-ts4.5/core-utils/inside.d.ts +0 -2
- package/dist/types-ts4.5/editor-analytics/index.d.ts +0 -1
- package/dist/types-ts4.5/editor-analytics/withAnalytics.d.ts +0 -34
- package/dist/types-ts4.5/element-browser/ElementBrowser.d.ts +0 -37
- package/dist/types-ts4.5/element-browser/ViewMore.d.ts +0 -6
- package/dist/types-ts4.5/element-browser/components/CategoryList.d.ts +0 -10
- package/dist/types-ts4.5/element-browser/components/ElementBrowserLoader.d.ts +0 -6
- package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +0 -33
- package/dist/types-ts4.5/element-browser/components/ElementList/EmptyState.d.ts +0 -6
- package/dist/types-ts4.5/element-browser/components/ElementList/NotFoundIllustration.d.ts +0 -2
- package/dist/types-ts4.5/element-browser/components/ElementList/cellSizeAndPositionGetter.d.ts +0 -7
- package/dist/types-ts4.5/element-browser/components/ElementList/utils.d.ts +0 -12
- package/dist/types-ts4.5/element-browser/components/ElementSearch.d.ts +0 -18
- package/dist/types-ts4.5/element-browser/components/StatelessElementBrowser.d.ts +0 -23
- package/dist/types-ts4.5/element-browser/constants.d.ts +0 -19
- package/dist/types-ts4.5/element-browser/hooks/use-container-width.d.ts +0 -33
- package/dist/types-ts4.5/element-browser/hooks/use-focus.d.ts +0 -35
- package/dist/types-ts4.5/element-browser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +0 -72
- package/dist/types-ts4.5/element-browser/index.d.ts +0 -2
- package/dist/types-ts4.5/element-browser/types.d.ts +0 -12
- package/dist/types-ts4.5/emoji.d.ts +0 -3
- package/dist/types-ts4.5/event-dispatcher/index.d.ts +0 -21
- package/dist/types-ts4.5/extensions/combine-extension-providers.d.ts +0 -7
- package/dist/types-ts4.5/extensions/default-extension-provider.d.ts +0 -17
- package/dist/types-ts4.5/extensions/extension-fields-helpers.d.ts +0 -10
- package/dist/types-ts4.5/extensions/extension-handlers.d.ts +0 -13
- package/dist/types-ts4.5/extensions/index.d.ts +0 -8
- package/dist/types-ts4.5/extensions/manifest-helpers.d.ts +0 -9
- package/dist/types-ts4.5/extensions/module-helpers.d.ts +0 -11
- package/dist/types-ts4.5/extensions/types/extension-handler.d.ts +0 -40
- package/dist/types-ts4.5/extensions/types/extension-manifest-common.d.ts +0 -8
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +0 -45
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +0 -101
- package/dist/types-ts4.5/extensions/types/extension-parameters.d.ts +0 -5
- package/dist/types-ts4.5/extensions/types/extension-provider.d.ts +0 -8
- package/dist/types-ts4.5/extensions/types/field-definitions.d.ts +0 -171
- package/dist/types-ts4.5/extensions/types/index.d.ts +0 -8
- package/dist/types-ts4.5/extensions/types/utils.d.ts +0 -18
- package/dist/types-ts4.5/extensions.d.ts +0 -2
- package/dist/types-ts4.5/floating-toolbar/index.d.ts +0 -6
- package/dist/types-ts4.5/guideline/constants.d.ts +0 -2
- package/dist/types-ts4.5/guideline/defaultGuideline.d.ts +0 -2
- package/dist/types-ts4.5/guideline/dynamicGuideline.d.ts +0 -6
- package/dist/types-ts4.5/guideline/fixedGuideline.d.ts +0 -32
- package/dist/types-ts4.5/guideline/index.d.ts +0 -9
- package/dist/types-ts4.5/guideline/relativeGuideline.d.ts +0 -8
- package/dist/types-ts4.5/guideline/snapping.d.ts +0 -19
- package/dist/types-ts4.5/guideline/types.d.ts +0 -67
- package/dist/types-ts4.5/guideline/updateGuideline.d.ts +0 -5
- package/dist/types-ts4.5/guideline/utils.d.ts +0 -27
- package/dist/types-ts4.5/hooks/index.d.ts +0 -3
- package/dist/types-ts4.5/hooks/useConstructor.d.ts +0 -9
- package/dist/types-ts4.5/hooks/usePreviousState.d.ts +0 -11
- package/dist/types-ts4.5/hooks/useSharedPluginState.d.ts +0 -68
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -211
- package/dist/types-ts4.5/i18n/da.d.ts +0 -211
- package/dist/types-ts4.5/i18n/de.d.ts +0 -211
- package/dist/types-ts4.5/i18n/en.d.ts +0 -211
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -211
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -211
- package/dist/types-ts4.5/i18n/es.d.ts +0 -211
- package/dist/types-ts4.5/i18n/et.d.ts +0 -8
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -211
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -211
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -211
- package/dist/types-ts4.5/i18n/index.d.ts +0 -32
- package/dist/types-ts4.5/i18n/it.d.ts +0 -211
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -211
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -211
- package/dist/types-ts4.5/i18n/languages.d.ts +0 -35
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -211
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -211
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -211
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -211
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -211
- package/dist/types-ts4.5/i18n/sk.d.ts +0 -8
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -211
- package/dist/types-ts4.5/i18n/th.d.ts +0 -211
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -211
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -211
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -211
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -211
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -211
- package/dist/types-ts4.5/icons/index.d.ts +0 -10
- package/dist/types-ts4.5/icons/shared/BorderIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelErrorIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelInfoIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelNoteIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelSuccessIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/PanelWarningIcon.d.ts +0 -3
- package/dist/types-ts4.5/icons/shared/table.d.ts +0 -2
- package/dist/types-ts4.5/in-product.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -1
- package/dist/types-ts4.5/insert/index.d.ts +0 -26
- package/dist/types-ts4.5/keymaps/consts.d.ts +0 -12
- package/dist/types-ts4.5/keymaps/index.d.ts +0 -97
- package/dist/types-ts4.5/keymaps/keymap.d.ts +0 -11
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/index.d.ts +0 -23
- package/dist/types-ts4.5/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.d.ts +0 -2
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +0 -115
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +0 -21
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/messages.d.ts +0 -32
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/utils.d.ts +0 -8
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchList.d.ts +0 -20
- package/dist/types-ts4.5/link/LinkSearch/LinkSearchListItem.d.ts +0 -22
- package/dist/types-ts4.5/link/LinkSearch/ToolbarComponents.d.ts +0 -3
- package/dist/types-ts4.5/link/LinkSearch/index.d.ts +0 -59
- package/dist/types-ts4.5/link/LinkSearch/listItemAlts.d.ts +0 -2
- package/dist/types-ts4.5/link/LinkSearch/transformTimeStamp.d.ts +0 -10
- package/dist/types-ts4.5/link/LinkSearch/types.d.ts +0 -49
- package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +0 -66
- package/dist/types-ts4.5/link/index.d.ts +0 -16
- package/dist/types-ts4.5/link/types.d.ts +0 -40
- package/dist/types-ts4.5/link/utils.d.ts +0 -3
- package/dist/types-ts4.5/lists/analytics.d.ts +0 -4
- package/dist/types-ts4.5/lists/indentation.d.ts +0 -5
- package/dist/types-ts4.5/lists/index.d.ts +0 -6
- package/dist/types-ts4.5/lists/node.d.ts +0 -18
- package/dist/types-ts4.5/lists/replace-content.d.ts +0 -8
- package/dist/types-ts4.5/lists/selection.d.ts +0 -13
- package/dist/types-ts4.5/mark/commands.d.ts +0 -18
- package/dist/types-ts4.5/mark/index.d.ts +0 -2
- package/dist/types-ts4.5/mark/text-formatting.d.ts +0 -8
- package/dist/types-ts4.5/media-single/constants.d.ts +0 -22
- package/dist/types-ts4.5/media-single/index.d.ts +0 -2
- package/dist/types-ts4.5/media-single/utils.d.ts +0 -92
- package/dist/types-ts4.5/mention.d.ts +0 -2
- package/dist/types-ts4.5/messages/alignment.d.ts +0 -17
- package/dist/types-ts4.5/messages/annotation.d.ts +0 -17
- package/dist/types-ts4.5/messages/block-type.d.ts +0 -152
- package/dist/types-ts4.5/messages/card.d.ts +0 -87
- package/dist/types-ts4.5/messages/codeBidiWarning.d.ts +0 -11
- package/dist/types-ts4.5/messages/codeBlockButton.d.ts +0 -22
- package/dist/types-ts4.5/messages/full-page.d.ts +0 -17
- package/dist/types-ts4.5/messages/index.d.ts +0 -138
- package/dist/types-ts4.5/messages/insert-block.d.ts +0 -172
- package/dist/types-ts4.5/messages/link-toolbar.d.ts +0 -57
- package/dist/types-ts4.5/messages/link.d.ts +0 -7
- package/dist/types-ts4.5/messages/list.d.ts +0 -27
- package/dist/types-ts4.5/messages/media-and-embed-toolbar.d.ts +0 -12
- package/dist/types-ts4.5/messages/toolbar.d.ts +0 -92
- package/dist/types-ts4.5/messages/undo-redo.d.ts +0 -12
- package/dist/types-ts4.5/messages/unsupportedContent.d.ts +0 -17
- package/dist/types-ts4.5/monitoring/error.d.ts +0 -4
- package/dist/types-ts4.5/monitoring/index.d.ts +0 -1
- package/dist/types-ts4.5/node-width/index.d.ts +0 -15
- package/dist/types-ts4.5/normalize-feature-flags.d.ts +0 -27
- package/dist/types-ts4.5/panel.d.ts +0 -1
- package/dist/types-ts4.5/paste/clipboard.d.ts +0 -2
- package/dist/types-ts4.5/paste/index.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/ignore-list-heading-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/linkify-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/newline-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md-plugins/paragraph-md-plugin.d.ts +0 -2
- package/dist/types-ts4.5/paste/md.d.ts +0 -2
- package/dist/types-ts4.5/preset/builder.d.ts +0 -36
- package/dist/types-ts4.5/preset/core-plugin.d.ts +0 -22
- package/dist/types-ts4.5/preset/editor-commands.d.ts +0 -21
- package/dist/types-ts4.5/preset/index.d.ts +0 -3
- package/dist/types-ts4.5/preset/plugin-injection-api.d.ts +0 -53
- package/dist/types-ts4.5/provider-factory/autoformatting-provider.d.ts +0 -9
- package/dist/types-ts4.5/provider-factory/card-provider.d.ts +0 -7
- package/dist/types-ts4.5/provider-factory/context-identifier-provider.d.ts +0 -6
- package/dist/types-ts4.5/provider-factory/context.d.ts +0 -6
- package/dist/types-ts4.5/provider-factory/image-upload-provider.d.ts +0 -7
- package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +0 -25
- package/dist/types-ts4.5/provider-factory/media-provider.d.ts +0 -15
- package/dist/types-ts4.5/provider-factory/profile-card-provider.d.ts +0 -6
- package/dist/types-ts4.5/provider-factory/provider-factory.d.ts +0 -17
- package/dist/types-ts4.5/provider-factory/quick-insert-provider.d.ts +0 -30
- package/dist/types-ts4.5/provider-factory/search-provider.d.ts +0 -12
- package/dist/types-ts4.5/provider-factory/types.d.ts +0 -37
- package/dist/types-ts4.5/provider-factory/with-providers.d.ts +0 -18
- package/dist/types-ts4.5/provider-factory.d.ts +0 -13
- package/dist/types-ts4.5/provider-helpers/combine-providers.d.ts +0 -9
- package/dist/types-ts4.5/provider-helpers/index.d.ts +0 -1
- package/dist/types-ts4.5/provider-helpers/promise-helpers.d.ts +0 -32
- package/dist/types-ts4.5/quick-insert/assets/action.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/code.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/custom-panel.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/datasource-assets-objects.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/datasource-jira-issue.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/date.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/decision.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/divider.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/emoji.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/expand.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/fallback.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/feedback.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading1.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading2.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading3.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading4.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading5.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/heading6.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/images.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/index.d.ts +0 -32
- package/dist/types-ts4.5/quick-insert/assets/layout.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/link.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/list-number.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/list.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/mention.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-error.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-note.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-success.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel-warning.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/panel.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/quote.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/assets/status.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/index.d.ts +0 -2
- package/dist/types-ts4.5/quick-insert/use-icon-themed.d.ts +0 -9
- package/dist/types-ts4.5/quick-insert/utils.d.ts +0 -7
- package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +0 -20
- package/dist/types-ts4.5/react-node-view/index.d.ts +0 -56
- package/dist/types-ts4.5/react-node-view/types.d.ts +0 -12
- package/dist/types-ts4.5/resizer/Resizer.d.ts +0 -52
- package/dist/types-ts4.5/resizer/index.d.ts +0 -2
- package/dist/types-ts4.5/resizer/types.d.ts +0 -28
- package/dist/types-ts4.5/resizer/utils.d.ts +0 -6
- package/dist/types-ts4.5/safe-plugin/index.d.ts +0 -6
- package/dist/types-ts4.5/selection/gap-cursor/selection.d.ts +0 -41
- package/dist/types-ts4.5/selection/gap-cursor/utils/index.d.ts +0 -2
- package/dist/types-ts4.5/selection/gap-cursor/utils/is-ignored.d.ts +0 -2
- package/dist/types-ts4.5/selection/gap-cursor/utils/is-valid-target-node.d.ts +0 -2
- package/dist/types-ts4.5/selection/gap-cursor/utils/setGapCursorSelection.d.ts +0 -3
- package/dist/types-ts4.5/selection/index.d.ts +0 -29
- package/dist/types-ts4.5/selection/types.d.ts +0 -32
- package/dist/types-ts4.5/selection/utils.d.ts +0 -11
- package/dist/types-ts4.5/selection-based-node-view/SelectionBasedNodeView.d.ts +0 -49
- package/dist/types-ts4.5/selection-based-node-view/index.d.ts +0 -1
- package/dist/types-ts4.5/styles/index.d.ts +0 -32
- package/dist/types-ts4.5/styles/shared/annotation.d.ts +0 -12
- package/dist/types-ts4.5/styles/shared/block-marks.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/blockquote.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/code-block.d.ts +0 -12
- package/dist/types-ts4.5/styles/shared/code-mark.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/column-layout.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/date.d.ts +0 -5
- package/dist/types-ts4.5/styles/shared/dropdown-menu.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/embedCard.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/emoji.d.ts +0 -7
- package/dist/types-ts4.5/styles/shared/expand.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/extension.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/grid.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/headings.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/indentation.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/layout.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/link.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/lists.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/media-single.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/media.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/mention.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -85
- package/dist/types-ts4.5/styles/shared/paragraph.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/plugins.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +0 -9
- package/dist/types-ts4.5/styles/shared/rule.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/shadow.d.ts +0 -15
- package/dist/types-ts4.5/styles/shared/smart-card.d.ts +0 -8
- package/dist/types-ts4.5/styles/shared/smartCard.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/status.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/table.d.ts +0 -35
- package/dist/types-ts4.5/styles/shared/tableCell.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/task-decision.d.ts +0 -6
- package/dist/types-ts4.5/styles/shared/text-color.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/unsupported-content.d.ts +0 -5
- package/dist/types-ts4.5/styles/shared/whitespace.d.ts +0 -2
- package/dist/types-ts4.5/transforms/expand.d.ts +0 -5
- package/dist/types-ts4.5/transforms/extension.d.ts +0 -6
- package/dist/types-ts4.5/transforms/index.d.ts +0 -3
- package/dist/types-ts4.5/transforms/layout.d.ts +0 -15
- package/dist/types-ts4.5/type-ahead/index.d.ts +0 -12
- package/dist/types-ts4.5/types/annotation/emitter.d.ts +0 -33
- package/dist/types-ts4.5/types/annotation/index.d.ts +0 -85
- package/dist/types-ts4.5/types/block-type.d.ts +0 -4
- package/dist/types-ts4.5/types/breakout.d.ts +0 -1
- package/dist/types-ts4.5/types/command.d.ts +0 -6
- package/dist/types-ts4.5/types/context-panel.d.ts +0 -3
- package/dist/types-ts4.5/types/copy-button.d.ts +0 -24
- package/dist/types-ts4.5/types/datasource.d.ts +0 -1
- package/dist/types-ts4.5/types/doc-builder.d.ts +0 -26
- package/dist/types-ts4.5/types/editor-actions.d.ts +0 -21
- package/dist/types-ts4.5/types/editor-appearance.d.ts +0 -1
- package/dist/types-ts4.5/types/editor-command.d.ts +0 -5
- package/dist/types-ts4.5/types/editor-container-width.d.ts +0 -19
- package/dist/types-ts4.5/types/editor-plugin.d.ts +0 -92
- package/dist/types-ts4.5/types/editor-public-api.d.ts +0 -4
- package/dist/types-ts4.5/types/editor-react-context.d.ts +0 -6
- package/dist/types-ts4.5/types/empty-state-handler.d.ts +0 -7
- package/dist/types-ts4.5/types/feature-flags.d.ts +0 -311
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +0 -260
- package/dist/types-ts4.5/types/grid.d.ts +0 -1
- package/dist/types-ts4.5/types/hyperlink.d.ts +0 -35
- package/dist/types-ts4.5/types/image-upload-reference-event.d.ts +0 -10
- package/dist/types-ts4.5/types/index.d.ts +0 -51
- package/dist/types-ts4.5/types/input-rules.d.ts +0 -8
- package/dist/types-ts4.5/types/layout.d.ts +0 -6
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +0 -157
- package/dist/types-ts4.5/types/performance-tracking.d.ts +0 -343
- package/dist/types-ts4.5/types/plugin-factory.d.ts +0 -27
- package/dist/types-ts4.5/types/prosemirror-config.d.ts +0 -14
- package/dist/types-ts4.5/types/quick-insert.d.ts +0 -38
- package/dist/types-ts4.5/types/resizable-media-single.d.ts +0 -15
- package/dist/types-ts4.5/types/selection.d.ts +0 -3
- package/dist/types-ts4.5/types/supported-browsers.d.ts +0 -15
- package/dist/types-ts4.5/types/tables.d.ts +0 -13
- package/dist/types-ts4.5/types/text-formatting.d.ts +0 -36
- package/dist/types-ts4.5/types/toolbar.d.ts +0 -30
- package/dist/types-ts4.5/types/type-ahead.d.ts +0 -72
- package/dist/types-ts4.5/types/ui-components.d.ts +0 -23
- package/dist/types-ts4.5/ufo/experience-store.d.ts +0 -33
- package/dist/types-ts4.5/ufo/index.d.ts +0 -1
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +0 -23
- package/dist/types-ts4.5/ui/BaseTheme/index.d.ts +0 -15
- package/dist/types-ts4.5/ui/Caption/index.d.ts +0 -19
- package/dist/types-ts4.5/ui/Caption/messages.d.ts +0 -7
- package/dist/types-ts4.5/ui/ContextPanel/context.d.ts +0 -24
- package/dist/types-ts4.5/ui/DropList/index.d.ts +0 -21
- package/dist/types-ts4.5/ui/Emoji/index.d.ts +0 -22
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +0 -25
- package/dist/types-ts4.5/ui/EventHandlers/index.d.ts +0 -36
- package/dist/types-ts4.5/ui/Expand/index.d.ts +0 -42
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +0 -30
- package/dist/types-ts4.5/ui/FloatingToolbar/Separator.d.ts +0 -4
- package/dist/types-ts4.5/ui/FloatingToolbar/SmallerEditIcon.d.ts +0 -3
- package/dist/types-ts4.5/ui/FloatingToolbar/styles.d.ts +0 -20
- package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +0 -15
- package/dist/types-ts4.5/ui/IntlProviderIfMissingWrapper/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/Layer/index.d.ts +0 -47
- package/dist/types-ts4.5/ui/Layer/internal/helpers.d.ts +0 -5
- package/dist/types-ts4.5/ui/LinkSearch/const.d.ts +0 -4
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +0 -25
- package/dist/types-ts4.5/ui/MediaSingle/index.d.ts +0 -28
- package/dist/types-ts4.5/ui/MediaSingle/link.d.ts +0 -1
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +0 -57
- package/dist/types-ts4.5/ui/MediaSingle/types.d.ts +0 -12
- package/dist/types-ts4.5/ui/Mention/index.d.ts +0 -21
- package/dist/types-ts4.5/ui/Mention/mention-with-profilecard.d.ts +0 -15
- package/dist/types-ts4.5/ui/Mention/mention-with-providers.d.ts +0 -22
- package/dist/types-ts4.5/ui/Mention/types.d.ts +0 -2
- package/dist/types-ts4.5/ui/Messages/index.d.ts +0 -11
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +0 -103
- package/dist/types-ts4.5/ui/OverflowShadow/shadowObserver.d.ts +0 -27
- package/dist/types-ts4.5/ui/PanelTextInput/index.d.ts +0 -45
- package/dist/types-ts4.5/ui/PanelTextInput/styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/Popup/index.d.ts +0 -85
- package/dist/types-ts4.5/ui/Popup/utils.d.ts +0 -42
- package/dist/types-ts4.5/ui/PortalProvider/PortalProviderThemesProvider.d.ts +0 -6
- package/dist/types-ts4.5/ui/PortalProvider/index.d.ts +0 -51
- package/dist/types-ts4.5/ui/ResizerLegacy/index.d.ts +0 -43
- package/dist/types-ts4.5/ui/ResizerLegacy/styled.d.ts +0 -2
- package/dist/types-ts4.5/ui/ResizerLegacy/types.d.ts +0 -26
- package/dist/types-ts4.5/ui/ResizerLegacy/utils.d.ts +0 -6
- package/dist/types-ts4.5/ui/Toolbar/index.d.ts +0 -5
- package/dist/types-ts4.5/ui/UnsupportedBlock/index.d.ts +0 -14
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +0 -14
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +0 -29
- package/dist/types-ts4.5/ui/WithCreateAnalyticsEvent/index.d.ts +0 -6
- package/dist/types-ts4.5/ui/clear-next-sibling-margin-top.d.ts +0 -2
- package/dist/types-ts4.5/ui/index.d.ts +0 -43
- package/dist/types-ts4.5/ui/unsupported-content-helper.d.ts +0 -3
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +0 -8
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +0 -20
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/styles.d.ts +0 -4
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/borderColorPalette.d.ts +0 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.d.ts +0 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/common.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/getColorMessage.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/index.d.ts +0 -3
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/paletteMessages.d.ts +0 -123
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.d.ts +0 -1444
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/panelBackgroundPalette.d.ts +0 -4
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +0 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +0 -12
- package/dist/types-ts4.5/ui-color/ColorPalette/index.d.ts +0 -38
- package/dist/types-ts4.5/ui-color/ColorPalette/styles.d.ts +0 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/utils.d.ts +0 -12
- package/dist/types-ts4.5/ui-color/index.d.ts +0 -12
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +0 -7
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +0 -7
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/index.d.ts +0 -3
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/types.d.ts +0 -36
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +0 -28
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +0 -44
- package/dist/types-ts4.5/ui-menu/DropdownContainer/index.d.ts +0 -3
- package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +0 -22
- package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +0 -52
- package/dist/types-ts4.5/ui-menu/ToolbarArrowKeyNavigationProvider/index.d.ts +0 -31
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +0 -57
- package/dist/types-ts4.5/ui-menu/ToolbarButton/styles.d.ts +0 -4
- package/dist/types-ts4.5/ui-menu/index.d.ts +0 -11
- package/dist/types-ts4.5/ui-react/ReactEditorViewContext.d.ts +0 -8
- package/dist/types-ts4.5/ui-react/index.d.ts +0 -2
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +0 -12
- package/dist/types-ts4.5/utils/analytics.d.ts +0 -29
- package/dist/types-ts4.5/utils/annotation/index.d.ts +0 -8
- package/dist/types-ts4.5/utils/breakout.d.ts +0 -50
- package/dist/types-ts4.5/utils/browser-extensions.d.ts +0 -43
- package/dist/types-ts4.5/utils/browser.d.ts +0 -4
- package/dist/types-ts4.5/utils/commands.d.ts +0 -48
- package/dist/types-ts4.5/utils/compare-props.d.ts +0 -32
- package/dist/types-ts4.5/utils/compareNodes.d.ts +0 -49
- package/dist/types-ts4.5/utils/compose.d.ts +0 -30
- package/dist/types-ts4.5/utils/count-nodes.d.ts +0 -8
- package/dist/types-ts4.5/utils/create-wrap-selection-transaction.d.ts +0 -15
- package/dist/types-ts4.5/utils/datasource.d.ts +0 -3
- package/dist/types-ts4.5/utils/date.d.ts +0 -18
- package/dist/types-ts4.5/utils/dedupe.d.ts +0 -1
- package/dist/types-ts4.5/utils/document.d.ts +0 -25
- package/dist/types-ts4.5/utils/dom.d.ts +0 -40
- package/dist/types-ts4.5/utils/editor-core-utils.d.ts +0 -34
- package/dist/types-ts4.5/utils/error-reporter.d.ts +0 -13
- package/dist/types-ts4.5/utils/extension-handler.d.ts +0 -2
- package/dist/types-ts4.5/utils/filter/privacy-filter.d.ts +0 -9
- package/dist/types-ts4.5/utils/get-performance-options.d.ts +0 -16
- package/dist/types-ts4.5/utils/getModeFromTheme.d.ts +0 -1
- package/dist/types-ts4.5/utils/grid.d.ts +0 -3
- package/dist/types-ts4.5/utils/hyperlink.d.ts +0 -29
- package/dist/types-ts4.5/utils/imageLoader.d.ts +0 -14
- package/dist/types-ts4.5/utils/index.d.ts +0 -86
- package/dist/types-ts4.5/utils/input-rules.d.ts +0 -16
- package/dist/types-ts4.5/utils/is-text-input.d.ts +0 -2
- package/dist/types-ts4.5/utils/list.d.ts +0 -14
- package/dist/types-ts4.5/utils/macro.d.ts +0 -10
- package/dist/types-ts4.5/utils/nodes.d.ts +0 -52
- package/dist/types-ts4.5/utils/outdated-browsers.d.ts +0 -1
- package/dist/types-ts4.5/utils/performance/get-performance-timing.d.ts +0 -8
- package/dist/types-ts4.5/utils/performance/hooks/use-component-render-tracking/index.d.ts +0 -19
- package/dist/types-ts4.5/utils/performance/is-performance-api-available.d.ts +0 -3
- package/dist/types-ts4.5/utils/performance/measure-render.d.ts +0 -52
- package/dist/types-ts4.5/utils/performance/measure-tti.d.ts +0 -14
- package/dist/types-ts4.5/utils/performance/measure.d.ts +0 -3
- package/dist/types-ts4.5/utils/performance/navigation.d.ts +0 -1
- package/dist/types-ts4.5/utils/plugin-state-factory.d.ts +0 -16
- package/dist/types-ts4.5/utils/profiler/render-count.d.ts +0 -50
- package/dist/types-ts4.5/utils/prosemirror/autojoin.d.ts +0 -13
- package/dist/types-ts4.5/utils/referentiality.d.ts +0 -18
- package/dist/types-ts4.5/utils/rich-media-utils.d.ts +0 -9
- package/dist/types-ts4.5/utils/scroll-gutter.d.ts +0 -3
- package/dist/types-ts4.5/utils/should-force-tracking.d.ts +0 -1
- package/dist/types-ts4.5/utils/slice.d.ts +0 -11
- package/dist/types-ts4.5/utils/table.d.ts +0 -5
- package/dist/types-ts4.5/utils/track-unsupported-content.d.ts +0 -20
- package/dist/types-ts4.5/utils/traversor.d.ts +0 -9
- package/dist/types-ts4.5/utils/types.d.ts +0 -2
- package/dist/types-ts4.5/utils/unsupportedContent/get-unsupported-content-level-data.d.ts +0 -57
- package/dist/types-ts4.5/utils/validate-using-spec.d.ts +0 -19
- package/dist/types-ts4.5/utils/validator.d.ts +0 -42
- package/dist/types-ts4.5/utils/whitespace.d.ts +0 -2
- package/dist/types-ts4.5/utils/wrap-selection-in.d.ts +0 -9
- package/dist/types-ts4.5/validator.d.ts +0 -2
- package/dist/types-ts4.5/with-plugin-state/index.d.ts +0 -108
- package/dist/types-ts4.5/with-plugin-state/types.d.ts +0 -10
- package/tmp/api-report-tmp.d.ts +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 76.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#40750](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40750) [`fc19a7b9edd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fc19a7b9edd) - [ED-19875] Extraction of Editor Core's Selection Plugin into independent package '@atlaskit/editor-plugin-selection'.
|
|
8
|
+
|
|
9
|
+
## 76.7.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#41289](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41289) [`805e20742e7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/805e20742e7) - Decouple Date Plugin
|
|
14
|
+
|
|
3
15
|
## 76.6.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
16
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "76.
|
|
19
|
+
var packageVersion = "76.8.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.setSelectionTopLevelBlocks = exports.setGapCursorAtPos = void 0;
|
|
7
|
+
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
8
|
+
var _selection = require("./selection");
|
|
9
|
+
var _isValidTargetNode = require("./utils/is-valid-target-node");
|
|
10
|
+
// This function captures clicks outside of the ProseMirror contentEditable area
|
|
11
|
+
// see also description of "handleClick" in gap-cursor pm-plugin
|
|
12
|
+
var captureCursorCoords = function captureCursorCoords(event, editorRef, posAtCoords, tr) {
|
|
13
|
+
var rect = editorRef.getBoundingClientRect();
|
|
14
|
+
|
|
15
|
+
// capture clicks before the first block element
|
|
16
|
+
if (event.clientY < rect.top) {
|
|
17
|
+
return {
|
|
18
|
+
position: 0,
|
|
19
|
+
side: _selection.Side.LEFT
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
if (rect.left > 0) {
|
|
23
|
+
// calculate start position of a node that is vertically at the same level
|
|
24
|
+
var _coords = posAtCoords({
|
|
25
|
+
left: rect.left,
|
|
26
|
+
top: event.clientY
|
|
27
|
+
});
|
|
28
|
+
if (_coords && _coords.inside > -1) {
|
|
29
|
+
var $from = tr.doc.resolve(_coords.inside);
|
|
30
|
+
var start = $from.before(1);
|
|
31
|
+
var side = event.clientX < rect.left ? _selection.Side.LEFT : _selection.Side.RIGHT;
|
|
32
|
+
var position;
|
|
33
|
+
if (side === _selection.Side.LEFT) {
|
|
34
|
+
position = start;
|
|
35
|
+
} else {
|
|
36
|
+
var node = tr.doc.nodeAt(start);
|
|
37
|
+
if (node) {
|
|
38
|
+
position = start + node.nodeSize;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
position: position,
|
|
43
|
+
side: side
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return null;
|
|
48
|
+
};
|
|
49
|
+
var setSelectionTopLevelBlocks = exports.setSelectionTopLevelBlocks = function setSelectionTopLevelBlocks(tr, event, editorRef, posAtCoords, editorFocused) {
|
|
50
|
+
var cursorCoords = captureCursorCoords(event, editorRef, posAtCoords, tr);
|
|
51
|
+
if (!cursorCoords) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
var $pos = cursorCoords.position !== undefined ? tr.doc.resolve(cursorCoords.position) : null;
|
|
55
|
+
if ($pos === null) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
var isGapCursorAllowed = cursorCoords.side === _selection.Side.LEFT ? (0, _isValidTargetNode.isValidTargetNode)($pos.nodeAfter) : (0, _isValidTargetNode.isValidTargetNode)($pos.nodeBefore);
|
|
59
|
+
if (isGapCursorAllowed && _selection.GapCursorSelection.valid($pos)) {
|
|
60
|
+
// this forces PM to re-render the decoration node if we change the side of the gap cursor, it doesn't do it by default
|
|
61
|
+
if (tr.selection instanceof _selection.GapCursorSelection) {
|
|
62
|
+
tr.setSelection(_state.Selection.near($pos));
|
|
63
|
+
} else {
|
|
64
|
+
tr.setSelection(new _selection.GapCursorSelection($pos, cursorCoords.side));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
// try to set text selection if the editor isnt focused
|
|
68
|
+
// if the editor is focused, we are most likely dragging a selection outside.
|
|
69
|
+
else if (editorFocused === false) {
|
|
70
|
+
var selectionTemp = _state.Selection.findFrom($pos, cursorCoords.side === _selection.Side.LEFT ? 1 : -1, true);
|
|
71
|
+
if (selectionTemp) {
|
|
72
|
+
tr.setSelection(selectionTemp);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var setGapCursorAtPos = exports.setGapCursorAtPos = function setGapCursorAtPos(position) {
|
|
77
|
+
var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _selection.Side.LEFT;
|
|
78
|
+
return function (state, dispatch) {
|
|
79
|
+
// @see ED-6231
|
|
80
|
+
if (position > state.doc.content.size) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
var $pos = state.doc.resolve(position);
|
|
84
|
+
if (_selection.GapCursorSelection.valid($pos)) {
|
|
85
|
+
if (dispatch) {
|
|
86
|
+
dispatch(state.tr.setSelection(new _selection.GapCursorSelection($pos, side)));
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
return false;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.hideCaretModifier = exports.gapCursorStyles = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _react = require("@emotion/react");
|
|
10
|
+
var _templateObject, _templateObject2;
|
|
11
|
+
var gapCursorBlink = (0, _react.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n from, to {\n opacity: 0;\n }\n 50% {\n opacity: 1;\n }\n"])));
|
|
12
|
+
var hideCaretModifier = exports.hideCaretModifier = 'ProseMirror-hide-gapcursor';
|
|
13
|
+
var gapCursor = '.ProseMirror-gapcursor';
|
|
14
|
+
var prosemirrorwidget = '.ProseMirror-widget';
|
|
15
|
+
var wrapLeft = '[layout="wrap-left"]';
|
|
16
|
+
var wrapRight = '[layout="wrap-right"]';
|
|
17
|
+
var gapCursorStyles = exports.gapCursorStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n /* =============== GAP CURSOR ================== */\n .ProseMirror {\n &.", " {\n caret-color: transparent;\n }\n\n ", " {\n display: none;\n pointer-events: none;\n position: relative;\n\n & span {\n caret-color: transparent;\n position: absolute;\n height: 100%;\n width: 100%;\n display: block;\n }\n\n & span::after {\n animation: 1s ", " step-end infinite;\n border-left: 1px solid;\n content: '';\n display: block;\n position: absolute;\n top: 0;\n height: 100%;\n }\n &.-left span::after {\n left: -3px;\n }\n &.-right span::after {\n right: -3px;\n }\n & span[layout='full-width'],\n & span[layout='wide'],\n & span[layout='fixed-width'] {\n margin-left: 50%;\n transform: translateX(-50%);\n }\n &", " {\n float: right;\n }\n\n /* fix vertical alignment of gap cursor */\n &:first-of-type + ul,\n &:first-of-type + span + ul,\n &:first-of-type + ol,\n &:first-of-type + span + ol,\n &:first-of-type + pre,\n &:first-of-type + span + pre,\n &:first-of-type + blockquote,\n &:first-of-type + span + blockquote {\n margin-top: 0;\n }\n }\n &.ProseMirror-focused ", " {\n display: block;\n border-color: transparent;\n }\n }\n\n /* This hack below is for two images aligned side by side */\n ", "", " + span + ", ",\n ", "", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " + ", ",\n ", " + ", " + span ", ",\n ", " + ", " + ", ",\n ", " + ", " + span + ", ",\n ", " + ", " {\n clear: none;\n }\n\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div,\n ", " + ", " + ", " > div,\n ", " + ", " + span + ", " > div {\n margin-right: 0;\n margin-left: 0;\n margin-bottom: 0;\n }\n\n ", " + ", ",\n ", " + ", " {\n float: left;\n }\n\n ", " + ", " + span + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after,\n ", " + ", " + ", "::after,\n ", " + ", " + span + ", "::after {\n visibility: hidden;\n display: block;\n font-size: 0;\n content: ' ';\n clear: both;\n height: 0;\n }\n\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + ", " + *,\n ", " + ", " + ", " + span + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + span + ", " + *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + ", " + * > *,\n ", " + ", " + ", " + span + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + span + ", " + * > *,\n ", " + ", " + *,\n ", " + ", " + span + * {\n margin-top: 0;\n }\n"])), hideCaretModifier, gapCursor, gapCursorBlink, wrapRight, gapCursor, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapRight, wrapLeft, gapCursor, wrapRight, gapCursor, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, wrapRight, gapCursor, wrapLeft, wrapLeft, gapCursor, wrapRight, wrapRight, gapCursor, wrapLeft, gapCursor, wrapLeft, wrapRight, gapCursor, wrapRight, wrapLeft, prosemirrorwidget, gapCursor, prosemirrorwidget, gapCursor);
|
|
@@ -64,10 +64,22 @@ Object.defineProperty(exports, "endPositionOfParent", {
|
|
|
64
64
|
return _utils3.endPositionOfParent;
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
+
Object.defineProperty(exports, "gapCursorStyles", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function get() {
|
|
70
|
+
return _styles.gapCursorStyles;
|
|
71
|
+
}
|
|
72
|
+
});
|
|
67
73
|
exports.getAllSelectionAnalyticsPayload = getAllSelectionAnalyticsPayload;
|
|
68
74
|
exports.getCellSelectionAnalyticsPayload = getCellSelectionAnalyticsPayload;
|
|
69
75
|
exports.getNodeSelectionAnalyticsPayload = getNodeSelectionAnalyticsPayload;
|
|
70
76
|
exports.getRangeSelectionAnalyticsPayload = getRangeSelectionAnalyticsPayload;
|
|
77
|
+
Object.defineProperty(exports, "hideCaretModifier", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function get() {
|
|
80
|
+
return _styles.hideCaretModifier;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
71
83
|
Object.defineProperty(exports, "isIgnored", {
|
|
72
84
|
enumerable: true,
|
|
73
85
|
get: function get() {
|
|
@@ -93,12 +105,24 @@ Object.defineProperty(exports, "isValidTargetNode", {
|
|
|
93
105
|
}
|
|
94
106
|
});
|
|
95
107
|
exports.selectNode = void 0;
|
|
108
|
+
Object.defineProperty(exports, "setGapCursorAtPos", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function get() {
|
|
111
|
+
return _actions.setGapCursorAtPos;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
96
114
|
Object.defineProperty(exports, "setGapCursorSelection", {
|
|
97
115
|
enumerable: true,
|
|
98
116
|
get: function get() {
|
|
99
117
|
return _setGapCursorSelection.setGapCursorSelection;
|
|
100
118
|
}
|
|
101
119
|
});
|
|
120
|
+
Object.defineProperty(exports, "setSelectionTopLevelBlocks", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function get() {
|
|
123
|
+
return _actions.setSelectionTopLevelBlocks;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
102
126
|
Object.defineProperty(exports, "startPositionOfParent", {
|
|
103
127
|
enumerable: true,
|
|
104
128
|
get: function get() {
|
|
@@ -111,8 +135,10 @@ var _utils = require("@atlaskit/editor-tables/utils");
|
|
|
111
135
|
var _analytics = require("../analytics");
|
|
112
136
|
var _types = require("./types");
|
|
113
137
|
var _selection = require("./gap-cursor/selection");
|
|
138
|
+
var _actions = require("./gap-cursor/actions");
|
|
114
139
|
var _utils2 = require("./gap-cursor/utils");
|
|
115
140
|
var _setGapCursorSelection = require("./gap-cursor/utils/setGapCursorSelection");
|
|
141
|
+
var _styles = require("./gap-cursor/styles");
|
|
116
142
|
var _utils3 = require("./utils");
|
|
117
143
|
function getNodeSelectionAnalyticsPayload(selection) {
|
|
118
144
|
if (selection instanceof _state.NodeSelection) {
|
|
@@ -24,7 +24,7 @@ var _templateObject, _templateObject2, _templateObject3;
|
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
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; } } /** @jsx jsx */
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "76.
|
|
27
|
+
var packageVersion = "76.8.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -9,13 +9,17 @@ exports.isElementInTableCell = void 0;
|
|
|
9
9
|
exports.isEmptyParagraph = isEmptyParagraph;
|
|
10
10
|
exports.isValidPosition = exports.isTextSelection = exports.isLastItemMediaGroup = exports.isInLayoutColumn = void 0;
|
|
11
11
|
exports.nonNullable = nonNullable;
|
|
12
|
-
exports.
|
|
12
|
+
exports.removeBlockMarks = void 0;
|
|
13
|
+
exports.setAllSelection = setAllSelection;
|
|
14
|
+
exports.setCellSelection = setCellSelection;
|
|
15
|
+
exports.setNodeSelection = void 0;
|
|
13
16
|
exports.setTextSelection = setTextSelection;
|
|
14
17
|
exports.stepAddsOneOf = stepAddsOneOf;
|
|
15
18
|
exports.stepHasSlice = void 0;
|
|
16
19
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
17
20
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
18
21
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
22
|
+
var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
19
23
|
var _dom = require("./dom");
|
|
20
24
|
/**
|
|
21
25
|
* Checks if node is an empty paragraph.
|
|
@@ -81,6 +85,17 @@ function setTextSelection(view, anchor, head) {
|
|
|
81
85
|
var tr = state.tr.setSelection(_state.TextSelection.create(state.doc, anchor, head));
|
|
82
86
|
dispatch(tr);
|
|
83
87
|
}
|
|
88
|
+
function setAllSelection(view) {
|
|
89
|
+
var state = view.state,
|
|
90
|
+
dispatch = view.dispatch;
|
|
91
|
+
var tr = state.tr.setSelection(new _state.AllSelection(view.state.doc));
|
|
92
|
+
dispatch(tr);
|
|
93
|
+
}
|
|
94
|
+
function setCellSelection(view, anchor, head) {
|
|
95
|
+
var state = view.state,
|
|
96
|
+
dispatch = view.dispatch;
|
|
97
|
+
dispatch(state.tr.setSelection(_cellSelection.CellSelection.create(state.doc, anchor, head)));
|
|
98
|
+
}
|
|
84
99
|
function nonNullable(value) {
|
|
85
100
|
return value !== null && value !== undefined;
|
|
86
101
|
}
|
package/dist/cjs/utils/index.js
CHANGED
|
@@ -871,6 +871,18 @@ Object.defineProperty(exports, "sanitizeNodeForPrivacy", {
|
|
|
871
871
|
return _privacyFilter.sanitizeNodeForPrivacy;
|
|
872
872
|
}
|
|
873
873
|
});
|
|
874
|
+
Object.defineProperty(exports, "setAllSelection", {
|
|
875
|
+
enumerable: true,
|
|
876
|
+
get: function get() {
|
|
877
|
+
return _editorCoreUtils.setAllSelection;
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
Object.defineProperty(exports, "setCellSelection", {
|
|
881
|
+
enumerable: true,
|
|
882
|
+
get: function get() {
|
|
883
|
+
return _editorCoreUtils.setCellSelection;
|
|
884
|
+
}
|
|
885
|
+
});
|
|
874
886
|
Object.defineProperty(exports, "setNodeSelection", {
|
|
875
887
|
enumerable: true,
|
|
876
888
|
get: function get() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
2
2
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
3
|
-
const packageVersion = "76.
|
|
3
|
+
const packageVersion = "76.8.0";
|
|
4
4
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
5
5
|
// Remove URL as it has UGC
|
|
6
6
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { GapCursorSelection, Side } from './selection';
|
|
3
|
+
import { isValidTargetNode } from './utils/is-valid-target-node';
|
|
4
|
+
|
|
5
|
+
// This function captures clicks outside of the ProseMirror contentEditable area
|
|
6
|
+
// see also description of "handleClick" in gap-cursor pm-plugin
|
|
7
|
+
const captureCursorCoords = (event, editorRef, posAtCoords, tr) => {
|
|
8
|
+
const rect = editorRef.getBoundingClientRect();
|
|
9
|
+
|
|
10
|
+
// capture clicks before the first block element
|
|
11
|
+
if (event.clientY < rect.top) {
|
|
12
|
+
return {
|
|
13
|
+
position: 0,
|
|
14
|
+
side: Side.LEFT
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
if (rect.left > 0) {
|
|
18
|
+
// calculate start position of a node that is vertically at the same level
|
|
19
|
+
const coords = posAtCoords({
|
|
20
|
+
left: rect.left,
|
|
21
|
+
top: event.clientY
|
|
22
|
+
});
|
|
23
|
+
if (coords && coords.inside > -1) {
|
|
24
|
+
const $from = tr.doc.resolve(coords.inside);
|
|
25
|
+
const start = $from.before(1);
|
|
26
|
+
const side = event.clientX < rect.left ? Side.LEFT : Side.RIGHT;
|
|
27
|
+
let position;
|
|
28
|
+
if (side === Side.LEFT) {
|
|
29
|
+
position = start;
|
|
30
|
+
} else {
|
|
31
|
+
const node = tr.doc.nodeAt(start);
|
|
32
|
+
if (node) {
|
|
33
|
+
position = start + node.nodeSize;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
position,
|
|
38
|
+
side
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return null;
|
|
43
|
+
};
|
|
44
|
+
export const setSelectionTopLevelBlocks = (tr, event, editorRef, posAtCoords, editorFocused) => {
|
|
45
|
+
const cursorCoords = captureCursorCoords(event, editorRef, posAtCoords, tr);
|
|
46
|
+
if (!cursorCoords) {
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const $pos = cursorCoords.position !== undefined ? tr.doc.resolve(cursorCoords.position) : null;
|
|
50
|
+
if ($pos === null) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const isGapCursorAllowed = cursorCoords.side === Side.LEFT ? isValidTargetNode($pos.nodeAfter) : isValidTargetNode($pos.nodeBefore);
|
|
54
|
+
if (isGapCursorAllowed && GapCursorSelection.valid($pos)) {
|
|
55
|
+
// this forces PM to re-render the decoration node if we change the side of the gap cursor, it doesn't do it by default
|
|
56
|
+
if (tr.selection instanceof GapCursorSelection) {
|
|
57
|
+
tr.setSelection(Selection.near($pos));
|
|
58
|
+
} else {
|
|
59
|
+
tr.setSelection(new GapCursorSelection($pos, cursorCoords.side));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// try to set text selection if the editor isnt focused
|
|
63
|
+
// if the editor is focused, we are most likely dragging a selection outside.
|
|
64
|
+
else if (editorFocused === false) {
|
|
65
|
+
const selectionTemp = Selection.findFrom($pos, cursorCoords.side === Side.LEFT ? 1 : -1, true);
|
|
66
|
+
if (selectionTemp) {
|
|
67
|
+
tr.setSelection(selectionTemp);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
export const setGapCursorAtPos = (position, side = Side.LEFT) => (state, dispatch) => {
|
|
72
|
+
// @see ED-6231
|
|
73
|
+
if (position > state.doc.content.size) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
const $pos = state.doc.resolve(position);
|
|
77
|
+
if (GapCursorSelection.valid($pos)) {
|
|
78
|
+
if (dispatch) {
|
|
79
|
+
dispatch(state.tr.setSelection(new GapCursorSelection($pos, side)));
|
|
80
|
+
}
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
return false;
|
|
84
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { css, keyframes } from '@emotion/react';
|
|
2
|
+
const gapCursorBlink = keyframes`
|
|
3
|
+
from, to {
|
|
4
|
+
opacity: 0;
|
|
5
|
+
}
|
|
6
|
+
50% {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
export const hideCaretModifier = 'ProseMirror-hide-gapcursor';
|
|
11
|
+
const gapCursor = '.ProseMirror-gapcursor';
|
|
12
|
+
const prosemirrorwidget = '.ProseMirror-widget';
|
|
13
|
+
const wrapLeft = '[layout="wrap-left"]';
|
|
14
|
+
const wrapRight = '[layout="wrap-right"]';
|
|
15
|
+
export const gapCursorStyles = css`
|
|
16
|
+
/* =============== GAP CURSOR ================== */
|
|
17
|
+
.ProseMirror {
|
|
18
|
+
&.${hideCaretModifier} {
|
|
19
|
+
caret-color: transparent;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
${gapCursor} {
|
|
23
|
+
display: none;
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
& span {
|
|
28
|
+
caret-color: transparent;
|
|
29
|
+
position: absolute;
|
|
30
|
+
height: 100%;
|
|
31
|
+
width: 100%;
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
& span::after {
|
|
36
|
+
animation: 1s ${gapCursorBlink} step-end infinite;
|
|
37
|
+
border-left: 1px solid;
|
|
38
|
+
content: '';
|
|
39
|
+
display: block;
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 0;
|
|
42
|
+
height: 100%;
|
|
43
|
+
}
|
|
44
|
+
&.-left span::after {
|
|
45
|
+
left: -3px;
|
|
46
|
+
}
|
|
47
|
+
&.-right span::after {
|
|
48
|
+
right: -3px;
|
|
49
|
+
}
|
|
50
|
+
& span[layout='full-width'],
|
|
51
|
+
& span[layout='wide'],
|
|
52
|
+
& span[layout='fixed-width'] {
|
|
53
|
+
margin-left: 50%;
|
|
54
|
+
transform: translateX(-50%);
|
|
55
|
+
}
|
|
56
|
+
&${wrapRight} {
|
|
57
|
+
float: right;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* fix vertical alignment of gap cursor */
|
|
61
|
+
&:first-of-type + ul,
|
|
62
|
+
&:first-of-type + span + ul,
|
|
63
|
+
&:first-of-type + ol,
|
|
64
|
+
&:first-of-type + span + ol,
|
|
65
|
+
&:first-of-type + pre,
|
|
66
|
+
&:first-of-type + span + pre,
|
|
67
|
+
&:first-of-type + blockquote,
|
|
68
|
+
&:first-of-type + span + blockquote {
|
|
69
|
+
margin-top: 0;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&.ProseMirror-focused ${gapCursor} {
|
|
73
|
+
display: block;
|
|
74
|
+
border-color: transparent;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* This hack below is for two images aligned side by side */
|
|
79
|
+
${gapCursor}${wrapLeft} + span + ${wrapLeft},
|
|
80
|
+
${gapCursor}${wrapRight} + span + ${wrapRight},
|
|
81
|
+
${gapCursor} + ${wrapLeft} + ${wrapRight},
|
|
82
|
+
${gapCursor} + ${wrapLeft} + span + ${wrapRight},
|
|
83
|
+
${gapCursor} + ${wrapRight} + ${wrapLeft},
|
|
84
|
+
${gapCursor} + ${wrapRight} + span + ${wrapLeft},
|
|
85
|
+
${wrapLeft} + ${gapCursor} + ${wrapRight},
|
|
86
|
+
${wrapLeft} + ${gapCursor} + span ${wrapRight},
|
|
87
|
+
${wrapRight} + ${gapCursor} + ${wrapLeft},
|
|
88
|
+
${wrapRight} + ${gapCursor} + span + ${wrapLeft},
|
|
89
|
+
${wrapLeft} + ${gapCursor} {
|
|
90
|
+
clear: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
${wrapLeft} + ${gapCursor} + ${wrapRight} > div,
|
|
94
|
+
${wrapLeft} + ${gapCursor} + span + ${wrapRight} > div,
|
|
95
|
+
${wrapRight} + ${gapCursor} + ${wrapLeft} > div,
|
|
96
|
+
${wrapRight} + ${gapCursor} + span + ${wrapLeft} > div,
|
|
97
|
+
${gapCursor} + ${wrapRight} + ${wrapLeft} > div,
|
|
98
|
+
${gapCursor} + ${wrapRight} + span + ${wrapLeft} > div,
|
|
99
|
+
${gapCursor} + ${wrapLeft} + ${wrapRight} > div,
|
|
100
|
+
${gapCursor} + ${wrapLeft} + span + ${wrapRight} > div {
|
|
101
|
+
margin-right: 0;
|
|
102
|
+
margin-left: 0;
|
|
103
|
+
margin-bottom: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
${wrapLeft} + ${gapCursor},
|
|
107
|
+
${wrapRight} + ${gapCursor} {
|
|
108
|
+
float: left;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
${gapCursor} + ${wrapLeft} + span + ${wrapRight}::after,
|
|
112
|
+
${gapCursor} + ${wrapRight} + span + ${wrapLeft}::after,
|
|
113
|
+
${wrapLeft} + ${gapCursor} + ${wrapRight}::after,
|
|
114
|
+
${wrapLeft} + ${gapCursor} + span + ${wrapRight}::after,
|
|
115
|
+
${wrapRight} + ${gapCursor} + ${wrapLeft}::after,
|
|
116
|
+
${wrapRight} + ${gapCursor} + span + ${wrapLeft}::after {
|
|
117
|
+
visibility: hidden;
|
|
118
|
+
display: block;
|
|
119
|
+
font-size: 0;
|
|
120
|
+
content: ' ';
|
|
121
|
+
clear: both;
|
|
122
|
+
height: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
${wrapLeft} + ${gapCursor} + ${wrapRight} + *,
|
|
126
|
+
${wrapLeft} + ${gapCursor} + ${wrapRight} + span + *,
|
|
127
|
+
${wrapRight} + ${gapCursor} + ${wrapLeft} + *,
|
|
128
|
+
${wrapRight} + ${gapCursor} + ${wrapLeft} + span + *,
|
|
129
|
+
${wrapLeft} + ${gapCursor} + span + ${wrapRight} + *,
|
|
130
|
+
${wrapRight} + ${gapCursor} + span + ${wrapLeft} + *,
|
|
131
|
+
${gapCursor} + ${wrapLeft} + span + ${wrapRight} + *,
|
|
132
|
+
${gapCursor} + ${wrapRight} + span + ${wrapLeft} + *,
|
|
133
|
+
${wrapLeft} + ${gapCursor} + ${wrapRight} + * > *,
|
|
134
|
+
${wrapLeft} + ${gapCursor} + ${wrapRight} + span + * > *,
|
|
135
|
+
${wrapRight} + ${gapCursor} + ${wrapLeft} + * > *,
|
|
136
|
+
${wrapRight} + ${gapCursor} + ${wrapLeft} + span + * > *,
|
|
137
|
+
${wrapLeft} + ${gapCursor} + span + ${wrapRight} + * > *,
|
|
138
|
+
${wrapRight} + ${gapCursor} + span + ${wrapLeft} + * > *,
|
|
139
|
+
${gapCursor} + ${wrapLeft} + span + ${wrapRight} + * > *,
|
|
140
|
+
${gapCursor} + ${wrapRight} + span + ${wrapLeft} + * > *,
|
|
141
|
+
${prosemirrorwidget} + ${gapCursor} + *,
|
|
142
|
+
${prosemirrorwidget} + ${gapCursor} + span + * {
|
|
143
|
+
margin-top: 0;
|
|
144
|
+
}
|
|
145
|
+
`;
|
|
@@ -4,8 +4,10 @@ import { selectedRect } from '@atlaskit/editor-tables/utils';
|
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
5
5
|
export { RelativeSelectionPos } from './types';
|
|
6
6
|
export { GapCursorSelection, Side, JSON_ID, GapBookmark } from './gap-cursor/selection';
|
|
7
|
+
export { setSelectionTopLevelBlocks, setGapCursorAtPos } from './gap-cursor/actions';
|
|
7
8
|
export { isIgnored, isValidTargetNode } from './gap-cursor/utils';
|
|
8
9
|
export { setGapCursorSelection } from './gap-cursor/utils/setGapCursorSelection';
|
|
10
|
+
export { hideCaretModifier, gapCursorStyles } from './gap-cursor/styles';
|
|
9
11
|
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, isSelectionAtEndOfNode, isSelectionAtStartOfNode, startPositionOfParent } from './utils';
|
|
10
12
|
export function getNodeSelectionAnalyticsPayload(selection) {
|
|
11
13
|
if (selection instanceof NodeSelection) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,7 +9,7 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
9
9
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
10
10
|
import Layer from '../Layer';
|
|
11
11
|
const packageName = "@atlaskit/editor-common";
|
|
12
|
-
const packageVersion = "76.
|
|
12
|
+
const packageVersion = "76.8.0";
|
|
13
13
|
const halfFocusRing = 1;
|
|
14
14
|
const dropOffset = '0, 8';
|
|
15
15
|
class DropList extends Component {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
1
|
+
import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { ReplaceAroundStep, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
3
3
|
import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
4
|
+
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
5
|
import { closest } from './dom';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -69,6 +70,21 @@ export function setTextSelection(view, anchor, head) {
|
|
|
69
70
|
const tr = state.tr.setSelection(TextSelection.create(state.doc, anchor, head));
|
|
70
71
|
dispatch(tr);
|
|
71
72
|
}
|
|
73
|
+
export function setAllSelection(view) {
|
|
74
|
+
const {
|
|
75
|
+
state,
|
|
76
|
+
dispatch
|
|
77
|
+
} = view;
|
|
78
|
+
const tr = state.tr.setSelection(new AllSelection(view.state.doc));
|
|
79
|
+
dispatch(tr);
|
|
80
|
+
}
|
|
81
|
+
export function setCellSelection(view, anchor, head) {
|
|
82
|
+
const {
|
|
83
|
+
state,
|
|
84
|
+
dispatch
|
|
85
|
+
} = view;
|
|
86
|
+
dispatch(state.tr.setSelection(CellSelection.create(state.doc, anchor, head)));
|
|
87
|
+
}
|
|
72
88
|
export function nonNullable(value) {
|
|
73
89
|
return value !== null && value !== undefined;
|
|
74
90
|
}
|
|
@@ -6,7 +6,7 @@ export { getExtensionLozengeData } from './macro';
|
|
|
6
6
|
export { default as browser } from './browser';
|
|
7
7
|
export { default as ErrorReporter } from './error-reporter';
|
|
8
8
|
export { isPastDate, timestampToIsoFormat, timestampToString, timestampToTaskContext, timestampToUTCDate, todayTimestampInUTC } from './date';
|
|
9
|
-
export { isElementInTableCell, isTextSelection, isLastItemMediaGroup, setNodeSelection, setTextSelection, nonNullable, stepAddsOneOf, stepHasSlice, extractSliceFromStep, isValidPosition, isEmptyParagraph, isInLayoutColumn, removeBlockMarks, filterChildrenBetween } from './editor-core-utils';
|
|
9
|
+
export { isElementInTableCell, isTextSelection, isLastItemMediaGroup, setNodeSelection, setTextSelection, setAllSelection, setCellSelection, nonNullable, stepAddsOneOf, stepHasSlice, extractSliceFromStep, isValidPosition, isEmptyParagraph, isInLayoutColumn, removeBlockMarks, filterChildrenBetween } from './editor-core-utils';
|
|
10
10
|
export { withImageLoader } from './imageLoader';
|
|
11
11
|
export { absoluteBreakoutWidth, calcBreakoutWidth, calcWideWidth, breakoutConsts, calculateBreakoutStyles, calcBreakoutWidthPx, getNextBreakoutMode, getTitle } from './breakout';
|
|
12
12
|
export { findChangedNodesFromTransaction, validNode, validateNodes, isType, isParagraph, isText, isLinkMark, SelectedState, isNodeSelectedOrInRange, isSupportedInParent, isMediaNode, isNodeBeforeMediaNode } from './nodes';
|
|
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
8
8
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
9
|
-
var packageVersion = "76.
|
|
9
|
+
var packageVersion = "76.8.0";
|
|
10
10
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
11
11
|
// Remove URL as it has UGC
|
|
12
12
|
// TODO: Sanitise the URL instead of just removing it
|