@atlaskit/editor-common 76.1.10 → 76.2.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 +17 -0
- package/copy-button/package.json +15 -0
- package/dist/cjs/__tests_external__/cases/fundamentals/collection.js +2 -3
- package/dist/cjs/__tests_external__/cases/fundamentals/test-cases/editor-is-present.js +2 -3
- package/dist/cjs/__tests_external__/cases/fundamentals/test-cases/editor-typing.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/delete.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/edit.js +3 -5
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/index.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/block/insert.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/delete.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/edit.js +3 -5
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/index.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/embed/insert.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/delete.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/edit.js +3 -5
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/index.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/insert.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/inline/unlink.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/url/index.js +2 -3
- package/dist/cjs/__tests_external__/cases/smart-links/test-cases/url/insert.js +2 -3
- package/dist/cjs/__tests_external__/page-objects/Editor.js +2 -3
- package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +2 -3
- package/dist/cjs/__tests_external__/page-objects/Renderer.js +2 -3
- package/dist/cjs/analytics/analytics-queue.js +8 -7
- package/dist/cjs/analytics/fire-analytics-event.js +4 -6
- package/dist/cjs/analytics/linking-utils.js +5 -9
- package/dist/cjs/analytics/types/enums.js +9 -17
- package/dist/cjs/analytics/types/extension-events.js +3 -5
- package/dist/cjs/analytics/types/format-events.js +3 -5
- package/dist/cjs/analytics/types/general-events.js +5 -9
- package/dist/cjs/analytics/types/inline-comment-events.js +2 -3
- package/dist/cjs/analytics/types/insert-events.js +5 -9
- package/dist/cjs/analytics/types/list-events.js +5 -9
- package/dist/cjs/analytics/types/node-events.js +3 -5
- package/dist/cjs/analytics/types/paste-events.js +4 -7
- package/dist/cjs/analytics/types/smart-links.js +2 -3
- package/dist/cjs/analytics/types/substitute-events.js +3 -5
- package/dist/cjs/analytics/types/table-events.js +4 -7
- package/dist/cjs/analytics/types/toolbar-button.js +2 -3
- package/dist/cjs/analytics/types/utils.js +3 -5
- package/dist/cjs/card/LinkToolbarButtonGroup.js +2 -3
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -3
- package/dist/cjs/card/index.js +1 -2
- package/dist/cjs/card/link-toolbar-button-group-options.js +2 -3
- package/dist/cjs/card/ui/assets/card.js +2 -3
- package/dist/cjs/card/ui/assets/embed.js +2 -3
- package/dist/cjs/card/ui/assets/inline.js +2 -3
- package/dist/cjs/card/ui/assets/url.js +2 -3
- package/dist/cjs/card/utils.js +3 -4
- package/dist/cjs/clipboard/index.js +5 -9
- package/dist/cjs/collab/index.js +3 -5
- package/dist/cjs/commands/index.js +4 -8
- package/dist/cjs/commands/insert-block.js +2 -3
- package/dist/cjs/copy-button/index.js +21 -0
- package/dist/cjs/core-utils/inside.js +2 -3
- package/dist/cjs/editor-analytics/withAnalytics.js +2 -2
- package/dist/cjs/element-browser/ElementBrowser.js +1 -2
- package/dist/cjs/element-browser/ViewMore.js +2 -3
- package/dist/cjs/element-browser/components/CategoryList.js +1 -2
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +1 -2
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +4 -8
- package/dist/cjs/element-browser/components/ElementList/utils.js +1 -1
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -2
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +1 -2
- package/dist/cjs/element-browser/constants.js +11 -22
- package/dist/cjs/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +3 -6
- package/dist/cjs/element-browser/types.js +2 -3
- package/dist/cjs/event-dispatcher/index.js +1 -2
- package/dist/cjs/extensions/combine-extension-providers.js +2 -3
- package/dist/cjs/extensions/default-extension-provider.js +2 -3
- package/dist/cjs/extensions/manifest-helpers.js +4 -8
- package/dist/cjs/extensions/module-helpers.js +4 -8
- package/dist/cjs/extensions/types/field-definitions.js +6 -11
- package/dist/cjs/floating-toolbar/index.js +5 -9
- package/dist/cjs/guideline/constants.js +2 -4
- package/dist/cjs/guideline/defaultGuideline.js +2 -3
- package/dist/cjs/guideline/dynamicGuideline.js +1 -2
- package/dist/cjs/guideline/fixedGuideline.js +3 -5
- package/dist/cjs/guideline/relativeGuideline.js +3 -5
- package/dist/cjs/guideline/snapping.js +3 -5
- package/dist/cjs/guideline/updateGuideline.js +2 -3
- package/dist/cjs/guideline/utils.js +7 -13
- package/dist/cjs/i18n/cs.js +2 -3
- package/dist/cjs/i18n/da.js +2 -3
- package/dist/cjs/i18n/de.js +2 -3
- package/dist/cjs/i18n/en.js +2 -3
- package/dist/cjs/i18n/en_GB.js +2 -3
- package/dist/cjs/i18n/en_ZZ.js +2 -3
- package/dist/cjs/i18n/es.js +2 -3
- package/dist/cjs/i18n/et.js +1 -2
- package/dist/cjs/i18n/fi.js +2 -3
- package/dist/cjs/i18n/fr.js +2 -3
- package/dist/cjs/i18n/hu.js +2 -3
- package/dist/cjs/i18n/it.js +2 -3
- package/dist/cjs/i18n/ja.js +2 -3
- package/dist/cjs/i18n/ko.js +2 -3
- package/dist/cjs/i18n/languages.js +2 -3
- package/dist/cjs/i18n/nb.js +2 -3
- package/dist/cjs/i18n/nl.js +2 -3
- package/dist/cjs/i18n/pl.js +2 -3
- package/dist/cjs/i18n/pt_BR.js +2 -3
- package/dist/cjs/i18n/pt_PT.js +1 -2
- package/dist/cjs/i18n/ru.js +2 -3
- package/dist/cjs/i18n/sk.js +1 -2
- package/dist/cjs/i18n/sv.js +2 -3
- package/dist/cjs/i18n/th.js +2 -3
- package/dist/cjs/i18n/tr.js +2 -3
- package/dist/cjs/i18n/uk.js +2 -3
- package/dist/cjs/i18n/vi.js +2 -3
- package/dist/cjs/i18n/zh.js +2 -3
- package/dist/cjs/i18n/zh_TW.js +2 -3
- package/dist/cjs/icons/index.js +2 -3
- package/dist/cjs/icons/shared/BorderIcon.js +2 -3
- package/dist/cjs/icons/shared/PanelErrorIcon.js +2 -3
- package/dist/cjs/icons/shared/PanelInfoIcon.js +2 -3
- package/dist/cjs/icons/shared/PanelNoteIcon.js +2 -3
- package/dist/cjs/icons/shared/PanelSuccessIcon.js +2 -3
- package/dist/cjs/icons/shared/PanelWarningIcon.js +2 -3
- package/dist/cjs/insert/index.js +6 -11
- package/dist/cjs/keymaps/consts.js +12 -24
- package/dist/cjs/keymaps/index.js +66 -132
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +6 -7
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/useEscapeClickaway.js +2 -3
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +9 -15
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/messages.js +2 -3
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/utils.js +4 -7
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +3 -5
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +5 -10
- package/dist/cjs/link/LinkSearch/ToolbarComponents.js +3 -6
- package/dist/cjs/link/LinkSearch/index.js +1 -2
- package/dist/cjs/link/LinkSearch/listItemAlts.js +2 -3
- package/dist/cjs/link/LinkSearch/transformTimeStamp.js +2 -3
- package/dist/cjs/link/types.js +3 -5
- package/dist/cjs/lists/analytics.js +3 -5
- package/dist/cjs/lists/indentation.js +2 -3
- package/dist/cjs/lists/node.js +3 -5
- package/dist/cjs/lists/replace-content.js +2 -3
- package/dist/cjs/lists/selection.js +3 -6
- package/dist/cjs/mark/commands.js +4 -7
- package/dist/cjs/mark/text-formatting.js +2 -3
- package/dist/cjs/media-single/constants.js +13 -26
- package/dist/cjs/media-single/utils.js +10 -19
- package/dist/cjs/messages/alignment.js +24 -0
- package/dist/cjs/messages/annotation.js +24 -0
- package/dist/cjs/messages/block-type.js +159 -0
- package/dist/cjs/messages/card.js +2 -3
- package/dist/cjs/messages/codeBidiWarning.js +2 -3
- package/dist/cjs/messages/codeBlockButton.js +2 -3
- package/dist/cjs/messages/full-page.js +2 -3
- package/dist/cjs/messages/index.js +30 -3
- package/dist/cjs/messages/insert-block.js +2 -3
- package/dist/cjs/messages/link-toolbar.js +2 -3
- package/dist/cjs/messages/link.js +2 -3
- package/dist/cjs/messages/list.js +2 -3
- package/dist/cjs/messages/media-and-embed-toolbar.js +2 -3
- package/dist/cjs/messages/toolbar.js +7 -3
- package/dist/cjs/messages/undo-redo.js +19 -0
- package/dist/cjs/messages/unsupportedContent.js +2 -3
- package/dist/cjs/monitoring/error.js +3 -4
- package/dist/cjs/node-width/index.js +5 -9
- package/dist/cjs/paste/md-plugins/linkify-md-plugin.js +2 -3
- package/dist/cjs/paste/md-plugins/newline-md-plugin.js +2 -3
- package/dist/cjs/paste/md-plugins/paragraph-md-plugin.js +2 -3
- package/dist/cjs/paste/md.js +1 -2
- package/dist/cjs/preset/builder.js +2 -3
- package/dist/cjs/preset/core-plugin.js +2 -3
- package/dist/cjs/preset/editor-commands.js +3 -4
- package/dist/cjs/preset/plugin-injection-api.js +4 -7
- package/dist/cjs/provider-factory/context.js +4 -7
- package/dist/cjs/provider-factory/provider-factory.js +2 -3
- package/dist/cjs/provider-factory/with-providers.js +1 -2
- package/dist/cjs/provider-helpers/combine-providers.js +2 -3
- package/dist/cjs/provider-helpers/promise-helpers.js +5 -9
- package/dist/cjs/quick-insert/assets/index.js +25 -49
- package/dist/cjs/quick-insert/use-icon-themed.js +2 -3
- package/dist/cjs/quick-insert/utils.js +1 -2
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +2 -3
- package/dist/cjs/react-node-view/index.js +4 -5
- package/dist/cjs/resizer/utils.js +4 -7
- package/dist/cjs/safe-plugin/index.js +2 -3
- package/dist/cjs/selection/gap-cursor/selection.js +5 -9
- package/dist/cjs/selection/gap-cursor/utils/is-ignored.js +2 -3
- package/dist/cjs/selection/gap-cursor/utils/is-valid-target-node.js +2 -3
- package/dist/cjs/selection/index.js +1 -2
- package/dist/cjs/selection/types.js +2 -3
- package/dist/cjs/selection/utils.js +2 -4
- package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +2 -3
- package/dist/cjs/styles/shared/annotation.js +5 -9
- package/dist/cjs/styles/shared/block-marks.js +1 -2
- package/dist/cjs/styles/shared/blockquote.js +1 -2
- package/dist/cjs/styles/shared/code-block.js +3 -6
- package/dist/cjs/styles/shared/code-mark.js +2 -3
- package/dist/cjs/styles/shared/column-layout.js +1 -2
- package/dist/cjs/styles/shared/date.js +2 -4
- package/dist/cjs/styles/shared/dropdown-menu.js +3 -5
- package/dist/cjs/styles/shared/embedCard.js +2 -4
- package/dist/cjs/styles/shared/emoji.js +2 -3
- package/dist/cjs/styles/shared/extension.js +2 -4
- package/dist/cjs/styles/shared/grid.js +2 -4
- package/dist/cjs/styles/shared/headings.js +2 -3
- package/dist/cjs/styles/shared/indentation.js +1 -2
- package/dist/cjs/styles/shared/layout.js +2 -4
- package/dist/cjs/styles/shared/link.js +1 -2
- package/dist/cjs/styles/shared/lists.js +2 -4
- package/dist/cjs/styles/shared/media-single.js +2 -4
- package/dist/cjs/styles/shared/mention.js +2 -3
- package/dist/cjs/styles/shared/panel.js +10 -19
- package/dist/cjs/styles/shared/paragraph.js +1 -2
- package/dist/cjs/styles/shared/plugins.js +4 -8
- package/dist/cjs/styles/shared/resizer.js +9 -18
- package/dist/cjs/styles/shared/rule.js +2 -3
- package/dist/cjs/styles/shared/shadow.js +1 -2
- package/dist/cjs/styles/shared/smart-card.js +2 -4
- package/dist/cjs/styles/shared/smartCard.js +3 -6
- package/dist/cjs/styles/shared/status.js +2 -3
- package/dist/cjs/styles/shared/table.js +13 -25
- package/dist/cjs/styles/shared/tableCell.js +2 -3
- package/dist/cjs/styles/shared/task-decision.js +2 -4
- package/dist/cjs/styles/shared/text-color.js +1 -2
- package/dist/cjs/styles/shared/unsupported-content.js +2 -4
- package/dist/cjs/styles/shared/whitespace.js +1 -2
- package/dist/cjs/transforms/expand.js +4 -7
- package/dist/cjs/transforms/extension.js +2 -3
- package/dist/cjs/type-ahead/index.js +3 -5
- package/dist/cjs/types/annotation/emitter.js +3 -5
- package/dist/cjs/types/index.js +2 -3
- package/dist/cjs/types/toolbar.js +4 -7
- package/dist/cjs/ufo/experience-store.js +9 -13
- package/dist/cjs/ui/Announcer/announcer.js +1 -2
- package/dist/cjs/ui/Caption/index.js +2 -4
- package/dist/cjs/ui/Caption/messages.js +2 -3
- package/dist/cjs/ui/ContextPanel/context.js +4 -8
- package/dist/cjs/ui/DropList/index.js +3 -4
- package/dist/cjs/ui/Emoji/index.js +2 -3
- package/dist/cjs/ui/ErrorBoundary/index.js +2 -3
- package/dist/cjs/ui/Expand/index.js +6 -11
- package/dist/cjs/ui/FloatingToolbar/Button.js +2 -3
- package/dist/cjs/ui/FloatingToolbar/Separator.js +2 -3
- package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +2 -3
- package/dist/cjs/ui/FloatingToolbar/styles.js +3 -5
- package/dist/cjs/ui/IntlErrorBoundary/index.js +4 -6
- package/dist/cjs/ui/Layer/index.js +1 -2
- package/dist/cjs/ui/Layer/internal/helpers.js +1 -2
- package/dist/cjs/ui/LinkSearch/const.js +4 -8
- package/dist/cjs/ui/MediaSingle/grid.js +6 -11
- package/dist/cjs/ui/MediaSingle/link.js +1 -2
- package/dist/cjs/ui/MediaSingle/styled.js +5 -9
- package/dist/cjs/ui/Mention/index.js +2 -3
- package/dist/cjs/ui/Mention/mention-with-providers.js +2 -3
- package/dist/cjs/ui/Messages/index.js +4 -7
- package/dist/cjs/ui/OverflowShadow/index.js +1 -2
- package/dist/cjs/ui/OverflowShadow/shadowObserver.js +4 -7
- package/dist/cjs/ui/PanelTextInput/index.js +2 -3
- package/dist/cjs/ui/PanelTextInput/styles.js +3 -5
- package/dist/cjs/ui/Popup/index.js +2 -3
- package/dist/cjs/ui/PortalProvider/index.js +8 -12
- package/dist/cjs/ui/ResizerLegacy/index.js +6 -7
- package/dist/cjs/ui/ResizerLegacy/styled.js +2 -3
- package/dist/cjs/ui/ResizerLegacy/utils.js +4 -7
- package/dist/cjs/ui/Toolbar/index.js +1 -2
- package/dist/cjs/ui/UnsupportedBlock/index.js +1 -2
- package/dist/cjs/ui/UnsupportedInline/index.js +1 -2
- package/dist/cjs/ui/WidthProvider/index.js +4 -7
- package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +2 -3
- package/dist/cjs/ui/clear-next-sibling-margin-top.js +2 -4
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -5
- package/dist/cjs/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/common.js +2 -3
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +2 -3
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessagesTokenModeNames.js +10 -19
- package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +4 -5
- package/dist/cjs/ui-color/ColorPalette/Palettes/statusColorPalette.js +3 -5
- package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/index.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/styles.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/utils.js +3 -5
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +2 -3
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +7 -8
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/index.js +2 -3
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/types.js +2 -3
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/cjs/ui-menu/Dropdown/index.js +4 -6
- package/dist/cjs/ui-menu/DropdownContainer/index.js +2 -3
- package/dist/cjs/ui-menu/DropdownMenu/index.js +6 -8
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +12 -14
- package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -4
- package/dist/cjs/ui-menu/ToolbarButton/styles.js +2 -3
- package/dist/cjs/ui-react/ReactEditorViewContext.js +1 -2
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +1 -1
- package/dist/cjs/utils/analytics.js +5 -10
- package/dist/cjs/utils/annotation/index.js +3 -5
- package/dist/cjs/utils/breakout.js +7 -13
- package/dist/cjs/utils/browser-extensions.js +1 -1
- package/dist/cjs/utils/browser.js +1 -2
- package/dist/cjs/utils/commands.js +11 -21
- package/dist/cjs/utils/compare-props.js +6 -11
- package/dist/cjs/utils/compareNodes.js +2 -4
- package/dist/cjs/utils/datasource.js +3 -5
- package/dist/cjs/utils/date.js +7 -13
- package/dist/cjs/utils/document.js +3 -5
- package/dist/cjs/utils/dom.js +1 -2
- package/dist/cjs/utils/editor-core-utils.js +9 -18
- package/dist/cjs/utils/error-reporter.js +2 -3
- package/dist/cjs/utils/grid.js +2 -3
- package/dist/cjs/utils/hyperlink.js +7 -13
- package/dist/cjs/utils/imageLoader.js +2 -3
- package/dist/cjs/utils/index.js +5 -10
- package/dist/cjs/utils/input-rules.js +5 -8
- package/dist/cjs/utils/is-text-input.js +2 -3
- package/dist/cjs/utils/list.js +7 -11
- package/dist/cjs/utils/macro.js +2 -3
- package/dist/cjs/utils/nodes.js +12 -24
- package/dist/cjs/utils/outdated-browsers.js +2 -3
- package/dist/cjs/utils/performance/get-performance-timing.js +2 -3
- package/dist/cjs/utils/performance/measure-render.js +1 -2
- package/dist/cjs/utils/performance/measure-tti.js +2 -4
- package/dist/cjs/utils/profiler/render-count.js +9 -11
- package/dist/cjs/utils/referentiality.js +19 -24
- package/dist/cjs/utils/rich-media-utils.js +5 -10
- package/dist/cjs/utils/scroll-gutter.js +3 -6
- package/dist/cjs/utils/should-force-tracking.js +2 -3
- package/dist/cjs/utils/track-unsupported-content.js +4 -7
- package/dist/cjs/utils/traversor.js +1 -2
- package/dist/cjs/utils/unsupportedContent/get-unsupported-content-level-data.js +4 -7
- package/dist/cjs/utils/validate-using-spec.js +3 -6
- package/dist/cjs/utils/validator.js +12 -21
- package/dist/cjs/utils/whitespace.js +2 -4
- package/dist/cjs/with-plugin-state/index.js +1 -2
- package/dist/es2019/analytics/analytics-queue.js +3 -1
- package/dist/es2019/card/utils.js +1 -1
- package/dist/es2019/copy-button/index.js +15 -0
- package/dist/es2019/messages/alignment.js +18 -0
- package/dist/es2019/messages/annotation.js +18 -0
- package/dist/es2019/messages/block-type.js +153 -0
- package/dist/es2019/messages/index.js +4 -0
- package/dist/es2019/messages/toolbar.js +5 -0
- package/dist/es2019/messages/undo-redo.js +13 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/PortalProvider/index.js +4 -4
- package/dist/esm/analytics/analytics-queue.js +7 -5
- package/dist/esm/analytics/fire-analytics-event.js +1 -1
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -1
- package/dist/esm/card/utils.js +1 -1
- package/dist/esm/copy-button/index.js +14 -0
- package/dist/esm/editor-analytics/withAnalytics.js +2 -2
- package/dist/esm/element-browser/components/ElementList/utils.js +1 -1
- package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +4 -4
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -3
- package/dist/esm/messages/alignment.js +18 -0
- package/dist/esm/messages/annotation.js +18 -0
- package/dist/esm/messages/block-type.js +153 -0
- package/dist/esm/messages/index.js +4 -0
- package/dist/esm/messages/toolbar.js +5 -0
- package/dist/esm/messages/undo-redo.js +13 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/editor-commands.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/esm/react-node-view/index.js +2 -2
- package/dist/esm/ufo/experience-store.js +5 -5
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Emoji/index.js +1 -1
- package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/esm/ui/Popup/index.js +1 -1
- package/dist/esm/ui/PortalProvider/index.js +4 -4
- package/dist/esm/ui/ResizerLegacy/index.js +4 -4
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +1 -1
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +6 -6
- package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -1
- package/dist/esm/ui-menu/Dropdown/index.js +2 -2
- package/dist/esm/ui-menu/DropdownMenu/index.js +3 -3
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +10 -10
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
- package/dist/esm/utils/browser-extensions.js +1 -1
- package/dist/esm/utils/input-rules.js +1 -1
- package/dist/esm/utils/list.js +3 -3
- package/dist/esm/utils/profiler/render-count.js +6 -6
- package/dist/esm/utils/referentiality.js +13 -13
- package/dist/types/card/utils.d.ts +1 -1
- package/dist/types/copy-button/index.d.ts +7 -0
- package/dist/types/guideline/fixedGuideline.d.ts +1 -1
- package/dist/types/messages/alignment.d.ts +17 -0
- package/dist/types/messages/annotation.d.ts +17 -0
- package/dist/types/messages/block-type.d.ts +152 -0
- package/dist/types/messages/index.d.ts +4 -0
- package/dist/types/messages/toolbar.d.ts +5 -0
- package/dist/types/messages/undo-redo.d.ts +12 -0
- package/dist/types-ts4.5/card/utils.d.ts +1 -1
- package/dist/types-ts4.5/copy-button/index.d.ts +7 -0
- package/dist/types-ts4.5/guideline/fixedGuideline.d.ts +1 -1
- package/dist/types-ts4.5/messages/alignment.d.ts +17 -0
- package/dist/types-ts4.5/messages/annotation.d.ts +17 -0
- package/dist/types-ts4.5/messages/block-type.d.ts +152 -0
- package/dist/types-ts4.5/messages/index.d.ts +4 -0
- package/dist/types-ts4.5/messages/toolbar.d.ts +5 -0
- package/dist/types-ts4.5/messages/undo-redo.d.ts +12 -0
- package/package.json +4 -3
package/dist/cjs/link/types.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.LinkAction = exports.InsertStatus = void 0;
|
|
7
|
-
var LinkAction = /*#__PURE__*/function (LinkAction) {
|
|
7
|
+
var LinkAction = exports.LinkAction = /*#__PURE__*/function (LinkAction) {
|
|
8
8
|
LinkAction["SHOW_INSERT_TOOLBAR"] = "SHOW_INSERT_TOOLBAR";
|
|
9
9
|
LinkAction["HIDE_TOOLBAR"] = "HIDE_TOOLBAR";
|
|
10
10
|
LinkAction["SELECTION_CHANGE"] = "SELECTION_CHANGE";
|
|
@@ -12,11 +12,9 @@ var LinkAction = /*#__PURE__*/function (LinkAction) {
|
|
|
12
12
|
LinkAction["EDIT_INSERTED_TOOLBAR"] = "EDIT_INSERTED_TOOLBAR";
|
|
13
13
|
return LinkAction;
|
|
14
14
|
}({});
|
|
15
|
-
exports.
|
|
16
|
-
var InsertStatus = /*#__PURE__*/function (InsertStatus) {
|
|
15
|
+
var InsertStatus = exports.InsertStatus = /*#__PURE__*/function (InsertStatus) {
|
|
17
16
|
InsertStatus["EDIT_LINK_TOOLBAR"] = "EDIT";
|
|
18
17
|
InsertStatus["INSERT_LINK_TOOLBAR"] = "INSERT";
|
|
19
18
|
InsertStatus["EDIT_INSERTED_TOOLBAR"] = "EDIT_INSERTED";
|
|
20
19
|
return InsertStatus;
|
|
21
|
-
}({});
|
|
22
|
-
exports.InsertStatus = InsertStatus;
|
|
20
|
+
}({});
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getCommonListAnalyticsAttributes = exports.countListItemsInSelection = void 0;
|
|
7
7
|
var _utils = require("../utils");
|
|
8
8
|
var _selection = require("./selection");
|
|
9
|
-
var getCommonListAnalyticsAttributes = function getCommonListAnalyticsAttributes(tr) {
|
|
9
|
+
var getCommonListAnalyticsAttributes = exports.getCommonListAnalyticsAttributes = function getCommonListAnalyticsAttributes(tr) {
|
|
10
10
|
var _tr$selection = tr.selection,
|
|
11
11
|
$from = _tr$selection.$from,
|
|
12
12
|
$to = _tr$selection.$to;
|
|
@@ -20,8 +20,7 @@ var getCommonListAnalyticsAttributes = function getCommonListAnalyticsAttributes
|
|
|
20
20
|
itemsInSelection: countListItemsInSelection(tr)
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
exports.
|
|
24
|
-
var countListItemsInSelection = function countListItemsInSelection(tr) {
|
|
23
|
+
var countListItemsInSelection = exports.countListItemsInSelection = function countListItemsInSelection(tr) {
|
|
25
24
|
var _tr$selection2 = tr.selection,
|
|
26
25
|
from = _tr$selection2.from,
|
|
27
26
|
to = _tr$selection2.to;
|
|
@@ -36,5 +35,4 @@ var countListItemsInSelection = function countListItemsInSelection(tr) {
|
|
|
36
35
|
}
|
|
37
36
|
});
|
|
38
37
|
return count;
|
|
39
|
-
};
|
|
40
|
-
exports.countListItemsInSelection = countListItemsInSelection;
|
|
38
|
+
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.hasValidListIndentationLevel = void 0;
|
|
7
7
|
var _selection = require("./selection");
|
|
8
|
-
var hasValidListIndentationLevel = function hasValidListIndentationLevel(_ref) {
|
|
8
|
+
var hasValidListIndentationLevel = exports.hasValidListIndentationLevel = function hasValidListIndentationLevel(_ref) {
|
|
9
9
|
var tr = _ref.tr,
|
|
10
10
|
maxIndentation = _ref.maxIndentation;
|
|
11
11
|
var initialIndentationLevel = (0, _selection.numberNestedLists)(tr.selection.$from);
|
|
@@ -20,5 +20,4 @@ var hasValidListIndentationLevel = function hasValidListIndentationLevel(_ref) {
|
|
|
20
20
|
currentPos++;
|
|
21
21
|
} while (currentIndentationLevel >= initialIndentationLevel);
|
|
22
22
|
return true;
|
|
23
|
-
};
|
|
24
|
-
exports.hasValidListIndentationLevel = hasValidListIndentationLevel;
|
|
23
|
+
};
|
package/dist/cjs/lists/node.js
CHANGED
|
@@ -16,13 +16,12 @@ function isListNodeValidContent(node) {
|
|
|
16
16
|
var listFragment = _model.Fragment.from(bulletList.createAndFill());
|
|
17
17
|
return !(0, _utils.isListItemNode)(node) && node.type.validContent(listFragment);
|
|
18
18
|
}
|
|
19
|
-
var JoinDirection = /*#__PURE__*/function (JoinDirection) {
|
|
19
|
+
var JoinDirection = exports.JoinDirection = /*#__PURE__*/function (JoinDirection) {
|
|
20
20
|
JoinDirection[JoinDirection["LEFT"] = 1] = "LEFT";
|
|
21
21
|
JoinDirection[JoinDirection["RIGHT"] = -1] = "RIGHT";
|
|
22
22
|
return JoinDirection;
|
|
23
23
|
}({});
|
|
24
|
-
exports.
|
|
25
|
-
var joinSiblingLists = function joinSiblingLists(_ref) {
|
|
24
|
+
var joinSiblingLists = exports.joinSiblingLists = function joinSiblingLists(_ref) {
|
|
26
25
|
var tr = _ref.tr,
|
|
27
26
|
direction = _ref.direction,
|
|
28
27
|
forceListType = _ref.forceListType;
|
|
@@ -93,5 +92,4 @@ var joinSiblingLists = function joinSiblingLists(_ref) {
|
|
|
93
92
|
tr.join(joins[i]);
|
|
94
93
|
}
|
|
95
94
|
return result;
|
|
96
|
-
};
|
|
97
|
-
exports.joinSiblingLists = joinSiblingLists;
|
|
95
|
+
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.moveTargetIntoList = void 0;
|
|
7
7
|
var _transform = require("@atlaskit/editor-prosemirror/transform");
|
|
8
|
-
var moveTargetIntoList = function moveTargetIntoList(_ref) {
|
|
8
|
+
var moveTargetIntoList = exports.moveTargetIntoList = function moveTargetIntoList(_ref) {
|
|
9
9
|
var _$target$nodeAfter;
|
|
10
10
|
var insertPosition = _ref.insertPosition,
|
|
11
11
|
$target = _ref.$target;
|
|
@@ -20,5 +20,4 @@ var moveTargetIntoList = function moveTargetIntoList(_ref) {
|
|
|
20
20
|
}
|
|
21
21
|
var step = new _transform.ReplaceAroundStep(from, to, gapFrom, gapTo, $target.doc.slice(insertPosition, $target.pos), 0, true);
|
|
22
22
|
return step;
|
|
23
|
-
};
|
|
24
|
-
exports.moveTargetIntoList = moveTargetIntoList;
|
|
23
|
+
};
|
|
@@ -7,7 +7,7 @@ exports.numberNestedLists = exports.normalizeListItemsSelection = exports.getLis
|
|
|
7
7
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
8
8
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
9
9
|
var _utils2 = require("../utils");
|
|
10
|
-
var numberNestedLists = function numberNestedLists(resolvedPos) {
|
|
10
|
+
var numberNestedLists = exports.numberNestedLists = function numberNestedLists(resolvedPos) {
|
|
11
11
|
var count = 0;
|
|
12
12
|
for (var i = resolvedPos.depth - 1; i > 0; i--) {
|
|
13
13
|
var node = resolvedPos.node(i);
|
|
@@ -17,8 +17,7 @@ var numberNestedLists = function numberNestedLists(resolvedPos) {
|
|
|
17
17
|
}
|
|
18
18
|
return count;
|
|
19
19
|
};
|
|
20
|
-
exports.
|
|
21
|
-
var getListItemAttributes = function getListItemAttributes($pos) {
|
|
20
|
+
var getListItemAttributes = exports.getListItemAttributes = function getListItemAttributes($pos) {
|
|
22
21
|
// Get level for the correct indent of nesting
|
|
23
22
|
var indentLevel = numberNestedLists($pos) - 1;
|
|
24
23
|
var itemAtPos = (0, _utils.findParentNodeClosestToPos)($pos, _utils2.isListItemNode);
|
|
@@ -30,8 +29,7 @@ var getListItemAttributes = function getListItemAttributes($pos) {
|
|
|
30
29
|
itemIndex: itemIndex
|
|
31
30
|
};
|
|
32
31
|
};
|
|
33
|
-
exports.
|
|
34
|
-
var normalizeListItemsSelection = function normalizeListItemsSelection(_ref) {
|
|
32
|
+
var normalizeListItemsSelection = exports.normalizeListItemsSelection = function normalizeListItemsSelection(_ref) {
|
|
35
33
|
var selection = _ref.selection,
|
|
36
34
|
doc = _ref.doc;
|
|
37
35
|
if (selection.empty) {
|
|
@@ -47,7 +45,6 @@ var normalizeListItemsSelection = function normalizeListItemsSelection(_ref) {
|
|
|
47
45
|
var anchor = resolvePositionToEndOfListItem($to);
|
|
48
46
|
return new _state.TextSelection(anchor, head);
|
|
49
47
|
};
|
|
50
|
-
exports.normalizeListItemsSelection = normalizeListItemsSelection;
|
|
51
48
|
var resolvePositionToStartOfListItem = function resolvePositionToStartOfListItem($pos) {
|
|
52
49
|
var fromRange = $pos.blockRange($pos, _utils2.isListItemNode);
|
|
53
50
|
var fromPosition = fromRange && $pos.textOffset === 0 && fromRange.end - 1 === $pos.pos ? _state.Selection.near($pos.doc.resolve(fromRange.end + 1), 1).$from : $pos;
|
|
@@ -62,7 +62,7 @@ function filterChildrenBetween(doc, from, to, predicate) {
|
|
|
62
62
|
});
|
|
63
63
|
return results;
|
|
64
64
|
}
|
|
65
|
-
var transformSmartCharsMentionsAndEmojis = function transformSmartCharsMentionsAndEmojis(from, to, tr) {
|
|
65
|
+
var transformSmartCharsMentionsAndEmojis = exports.transformSmartCharsMentionsAndEmojis = function transformSmartCharsMentionsAndEmojis(from, to, tr) {
|
|
66
66
|
var schema = tr.doc.type.schema;
|
|
67
67
|
var _schema$nodes2 = schema.nodes,
|
|
68
68
|
mention = _schema$nodes2.mention,
|
|
@@ -87,8 +87,7 @@ var transformSmartCharsMentionsAndEmojis = function transformSmartCharsMentionsA
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
|
-
exports.
|
|
91
|
-
var applyMarkOnRange = function applyMarkOnRange(from, to, removeMark, mark, tr) {
|
|
90
|
+
var applyMarkOnRange = exports.applyMarkOnRange = function applyMarkOnRange(from, to, removeMark, mark, tr) {
|
|
92
91
|
var schema = tr.doc.type.schema;
|
|
93
92
|
var code = schema.marks.code;
|
|
94
93
|
if (mark.type === code) {
|
|
@@ -114,7 +113,6 @@ var applyMarkOnRange = function applyMarkOnRange(from, to, removeMark, mark, tr)
|
|
|
114
113
|
});
|
|
115
114
|
return tr;
|
|
116
115
|
};
|
|
117
|
-
exports.applyMarkOnRange = applyMarkOnRange;
|
|
118
116
|
var entireSelectionContainsMark = function entireSelectionContainsMark(mark, doc, fromPos, toPos) {
|
|
119
117
|
var onlyContainsMark = true;
|
|
120
118
|
doc.nodesBetween(fromPos, toPos, function (node) {
|
|
@@ -174,7 +172,7 @@ var toggleMarkInRange = function toggleMarkInRange(mark) {
|
|
|
174
172
|
* @param markType
|
|
175
173
|
* @param attrs
|
|
176
174
|
*/
|
|
177
|
-
var toggleMark = function toggleMark(markType, attrs) {
|
|
175
|
+
var toggleMark = exports.toggleMark = function toggleMark(markType, attrs) {
|
|
178
176
|
return function (_ref3) {
|
|
179
177
|
var tr = _ref3.tr;
|
|
180
178
|
var mark = markType.create(attrs);
|
|
@@ -192,5 +190,4 @@ var toggleMark = function toggleMark(markType, attrs) {
|
|
|
192
190
|
tr: tr
|
|
193
191
|
});
|
|
194
192
|
};
|
|
195
|
-
};
|
|
196
|
-
exports.toggleMark = toggleMark;
|
|
193
|
+
};
|
|
@@ -8,7 +8,7 @@ var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
|
|
|
8
8
|
/**
|
|
9
9
|
* Determine if a mark of a specific type exists anywhere in the selection.
|
|
10
10
|
*/
|
|
11
|
-
var anyMarkActive = function anyMarkActive(state, markType) {
|
|
11
|
+
var anyMarkActive = exports.anyMarkActive = function anyMarkActive(state, markType) {
|
|
12
12
|
var _state$selection = state.selection,
|
|
13
13
|
$from = _state$selection.$from,
|
|
14
14
|
from = _state$selection.from,
|
|
@@ -30,5 +30,4 @@ var anyMarkActive = function anyMarkActive(state, markType) {
|
|
|
30
30
|
rangeHasMark = state.doc.rangeHasMark(from, to, markType);
|
|
31
31
|
}
|
|
32
32
|
return rangeHasMark;
|
|
33
|
-
};
|
|
34
|
-
exports.anyMarkActive = anyMarkActive;
|
|
33
|
+
};
|
|
@@ -4,25 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.wrappedLayouts = exports.MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH = exports.MEDIA_SINGLE_SNAP_GAP = exports.MEDIA_SINGLE_RESIZE_THROTTLE_TIME = exports.MEDIA_SINGLE_HIGHLIGHT_GAP = exports.MEDIA_SINGLE_HANDLE_MARGIN = exports.MEDIA_SINGLE_GUTTER_SIZE = exports.MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH = exports.Layout = exports.DEFAULT_ROUNDING_INTERVAL = exports.DEFAULT_IMAGE_WIDTH = exports.DEFAULT_IMAGE_HEIGHT = exports.CAPTION_PLACEHOLDER_ID = void 0;
|
|
7
|
-
var MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH = 24;
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.
|
|
11
|
-
var
|
|
12
|
-
exports.
|
|
13
|
-
var
|
|
14
|
-
exports.
|
|
15
|
-
var
|
|
16
|
-
exports.
|
|
17
|
-
var MEDIA_SINGLE_GUTTER_SIZE = MEDIA_SINGLE_HANDLE_MARGIN * 2;
|
|
18
|
-
exports.MEDIA_SINGLE_GUTTER_SIZE = MEDIA_SINGLE_GUTTER_SIZE;
|
|
19
|
-
var DEFAULT_IMAGE_WIDTH = 250;
|
|
20
|
-
exports.DEFAULT_IMAGE_WIDTH = DEFAULT_IMAGE_WIDTH;
|
|
21
|
-
var DEFAULT_IMAGE_HEIGHT = 200;
|
|
22
|
-
exports.DEFAULT_IMAGE_HEIGHT = DEFAULT_IMAGE_HEIGHT;
|
|
23
|
-
var MEDIA_SINGLE_RESIZE_THROTTLE_TIME = 100;
|
|
24
|
-
exports.MEDIA_SINGLE_RESIZE_THROTTLE_TIME = MEDIA_SINGLE_RESIZE_THROTTLE_TIME;
|
|
25
|
-
var Layout = /*#__PURE__*/function (Layout) {
|
|
7
|
+
var MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH = exports.MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH = 24;
|
|
8
|
+
var MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH = exports.MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH = 320;
|
|
9
|
+
var MEDIA_SINGLE_SNAP_GAP = exports.MEDIA_SINGLE_SNAP_GAP = 3;
|
|
10
|
+
var MEDIA_SINGLE_HIGHLIGHT_GAP = exports.MEDIA_SINGLE_HIGHLIGHT_GAP = 10;
|
|
11
|
+
var MEDIA_SINGLE_HANDLE_MARGIN = exports.MEDIA_SINGLE_HANDLE_MARGIN = 12;
|
|
12
|
+
var MEDIA_SINGLE_GUTTER_SIZE = exports.MEDIA_SINGLE_GUTTER_SIZE = MEDIA_SINGLE_HANDLE_MARGIN * 2;
|
|
13
|
+
var DEFAULT_IMAGE_WIDTH = exports.DEFAULT_IMAGE_WIDTH = 250;
|
|
14
|
+
var DEFAULT_IMAGE_HEIGHT = exports.DEFAULT_IMAGE_HEIGHT = 200;
|
|
15
|
+
var MEDIA_SINGLE_RESIZE_THROTTLE_TIME = exports.MEDIA_SINGLE_RESIZE_THROTTLE_TIME = 100;
|
|
16
|
+
var Layout = exports.Layout = /*#__PURE__*/function (Layout) {
|
|
26
17
|
Layout["FULL_WIDTH"] = "full-width";
|
|
27
18
|
Layout["WIDE"] = "wide";
|
|
28
19
|
Layout["CENTER"] = "center";
|
|
@@ -32,10 +23,6 @@ var Layout = /*#__PURE__*/function (Layout) {
|
|
|
32
23
|
Layout["WRAP_LEFT"] = "wrap-left";
|
|
33
24
|
return Layout;
|
|
34
25
|
}({});
|
|
35
|
-
exports.
|
|
36
|
-
var
|
|
37
|
-
exports.
|
|
38
|
-
var DEFAULT_ROUNDING_INTERVAL = 0.5;
|
|
39
|
-
exports.DEFAULT_ROUNDING_INTERVAL = DEFAULT_ROUNDING_INTERVAL;
|
|
40
|
-
var CAPTION_PLACEHOLDER_ID = 'caption-placeholder';
|
|
41
|
-
exports.CAPTION_PLACEHOLDER_ID = CAPTION_PLACEHOLDER_ID;
|
|
26
|
+
var wrappedLayouts = exports.wrappedLayouts = ['wrap-left', 'wrap-right', 'align-end', 'align-start'];
|
|
27
|
+
var DEFAULT_ROUNDING_INTERVAL = exports.DEFAULT_ROUNDING_INTERVAL = 0.5;
|
|
28
|
+
var CAPTION_PLACEHOLDER_ID = exports.CAPTION_PLACEHOLDER_ID = 'caption-placeholder';
|
|
@@ -42,7 +42,7 @@ function getMediaSinglePixelWidth(width, editorWidth) {
|
|
|
42
42
|
* @param gutterOffset gap between resizer handle and media
|
|
43
43
|
* @returns pixel width of the node
|
|
44
44
|
*/
|
|
45
|
-
var calcMediaSinglePixelWidth = function calcMediaSinglePixelWidth(_ref) {
|
|
45
|
+
var calcMediaSinglePixelWidth = exports.calcMediaSinglePixelWidth = function calcMediaSinglePixelWidth(_ref) {
|
|
46
46
|
var width = _ref.width,
|
|
47
47
|
_ref$widthType = _ref.widthType,
|
|
48
48
|
widthType = _ref$widthType === void 0 ? 'percentage' : _ref$widthType,
|
|
@@ -88,7 +88,6 @@ var calcMediaSinglePixelWidth = function calcMediaSinglePixelWidth(_ref) {
|
|
|
88
88
|
* @param contentWidth editor content width
|
|
89
89
|
* @param containerWidth editor container width
|
|
90
90
|
*/
|
|
91
|
-
exports.calcMediaSinglePixelWidth = calcMediaSinglePixelWidth;
|
|
92
91
|
var calcLegacyWideWidth = function calcLegacyWideWidth(containerWidth, origWidth, contentWidth) {
|
|
93
92
|
if (contentWidth) {
|
|
94
93
|
var wideWidth = Math.ceil(contentWidth * _editorSharedStyles.breakoutWideScaleRatio);
|
|
@@ -101,7 +100,7 @@ var calcLegacyWideWidth = function calcLegacyWideWidth(containerWidth, origWidth
|
|
|
101
100
|
* Calculate maximum width allowed for media single node in fix-width editor in new experience
|
|
102
101
|
* @param containerWidth width of editor container
|
|
103
102
|
*/
|
|
104
|
-
var calcMediaSingleMaxWidth = function calcMediaSingleMaxWidth(containerWidth) {
|
|
103
|
+
var calcMediaSingleMaxWidth = exports.calcMediaSingleMaxWidth = function calcMediaSingleMaxWidth(containerWidth) {
|
|
105
104
|
var fullWidthPadding = _editorSharedStyles.akEditorGutterPadding * 2;
|
|
106
105
|
return Math.min(containerWidth - fullWidthPadding, _editorSharedStyles.akEditorFullWidthLayoutWidth);
|
|
107
106
|
};
|
|
@@ -113,14 +112,12 @@ var calcMediaSingleMaxWidth = function calcMediaSingleMaxWidth(containerWidth) {
|
|
|
113
112
|
* @param maxWidth default to akEditorDefaultLayoutWidth (760)
|
|
114
113
|
* @param minWidth default to MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH (24)
|
|
115
114
|
*/
|
|
116
|
-
exports.
|
|
117
|
-
var getMediaSingleInitialWidth = function getMediaSingleInitialWidth() {
|
|
115
|
+
var getMediaSingleInitialWidth = exports.getMediaSingleInitialWidth = function getMediaSingleInitialWidth() {
|
|
118
116
|
var origWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _constants.DEFAULT_IMAGE_WIDTH;
|
|
119
117
|
var maxWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _editorSharedStyles.akEditorDefaultLayoutWidth;
|
|
120
118
|
var minWidth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _constants.MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH;
|
|
121
119
|
return Math.max(Math.min(origWidth, maxWidth), minWidth);
|
|
122
120
|
};
|
|
123
|
-
exports.getMediaSingleInitialWidth = getMediaSingleInitialWidth;
|
|
124
121
|
function calculateOffsetLeft(insideInlineLike, insideLayout, pmViewDom, wrapper) {
|
|
125
122
|
var offsetLeft = 0;
|
|
126
123
|
if (wrapper && insideInlineLike && !insideLayout) {
|
|
@@ -137,7 +134,7 @@ function calculateOffsetLeft(insideInlineLike, insideLayout, pmViewDom, wrapper)
|
|
|
137
134
|
* @param {number} interval The numeric interval to round to, default to 0.5
|
|
138
135
|
* @return {number} the rounded number
|
|
139
136
|
*/
|
|
140
|
-
var roundToNearest = function roundToNearest(value) {
|
|
137
|
+
var roundToNearest = exports.roundToNearest = function roundToNearest(value) {
|
|
141
138
|
var interval = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _constants.DEFAULT_ROUNDING_INTERVAL;
|
|
142
139
|
return Math.round(value / interval) * interval;
|
|
143
140
|
};
|
|
@@ -147,8 +144,7 @@ var roundToNearest = function roundToNearest(value) {
|
|
|
147
144
|
* @param isVideoFile is child media of video type
|
|
148
145
|
* @param contentWidth parent content width
|
|
149
146
|
*/
|
|
150
|
-
exports.
|
|
151
|
-
var calcMinWidth = function calcMinWidth(isVideoFile, contentWidth) {
|
|
147
|
+
var calcMinWidth = exports.calcMinWidth = function calcMinWidth(isVideoFile, contentWidth) {
|
|
152
148
|
return Math.min(contentWidth, isVideoFile ? _constants.MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH : _constants.MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH);
|
|
153
149
|
};
|
|
154
150
|
|
|
@@ -157,8 +153,7 @@ var calcMinWidth = function calcMinWidth(isVideoFile, contentWidth) {
|
|
|
157
153
|
* @param view Editor view
|
|
158
154
|
* @param pos node position
|
|
159
155
|
*/
|
|
160
|
-
exports.
|
|
161
|
-
var getMaxWidthForNestedNode = function getMaxWidthForNestedNode(view, pos) {
|
|
156
|
+
var getMaxWidthForNestedNode = exports.getMaxWidthForNestedNode = function getMaxWidthForNestedNode(view, pos) {
|
|
162
157
|
if (typeof pos !== 'number') {
|
|
163
158
|
return null;
|
|
164
159
|
}
|
|
@@ -174,7 +169,6 @@ var getMaxWidthForNestedNode = function getMaxWidthForNestedNode(view, pos) {
|
|
|
174
169
|
}
|
|
175
170
|
return null;
|
|
176
171
|
};
|
|
177
|
-
exports.getMaxWidthForNestedNode = getMaxWidthForNestedNode;
|
|
178
172
|
var calcParentPadding = function calcParentPadding(view, resolvedPos) {
|
|
179
173
|
// since table has constant padding, use hardcoded constant instead of query the dom
|
|
180
174
|
var tablePadding = 8;
|
|
@@ -191,7 +185,7 @@ var calcParentPadding = function calcParentPadding(view, resolvedPos) {
|
|
|
191
185
|
* @param pos node position
|
|
192
186
|
* @param forInsertion for insertion
|
|
193
187
|
*/
|
|
194
|
-
var getMaxWidthForNestedNodeNext = function getMaxWidthForNestedNodeNext(view, pos, forInsertion) {
|
|
188
|
+
var getMaxWidthForNestedNodeNext = exports.getMaxWidthForNestedNodeNext = function getMaxWidthForNestedNodeNext(view, pos, forInsertion) {
|
|
195
189
|
if (typeof pos !== 'number') {
|
|
196
190
|
return null;
|
|
197
191
|
}
|
|
@@ -208,8 +202,7 @@ var getMaxWidthForNestedNodeNext = function getMaxWidthForNestedNodeNext(view, p
|
|
|
208
202
|
* @param view editor view
|
|
209
203
|
* @returns parent content width for nested node
|
|
210
204
|
*/
|
|
211
|
-
exports.
|
|
212
|
-
var getParentWidthForNestedMediaSingleNode = function getParentWidthForNestedMediaSingleNode(resolvedPos, view) {
|
|
205
|
+
var getParentWidthForNestedMediaSingleNode = exports.getParentWidthForNestedMediaSingleNode = function getParentWidthForNestedMediaSingleNode(resolvedPos, view) {
|
|
213
206
|
var domNode = view.nodeDOM(resolvedPos.pos);
|
|
214
207
|
if (resolvedPos.nodeAfter && _richMediaUtils.floatingLayouts.includes(resolvedPos.nodeAfter.attrs.layout) && domNode && domNode.parentElement) {
|
|
215
208
|
var parentPadding = calcParentPadding(view, resolvedPos);
|
|
@@ -227,8 +220,7 @@ var getParentWidthForNestedMediaSingleNode = function getParentWidthForNestedMed
|
|
|
227
220
|
* @param view editor view
|
|
228
221
|
* @returns parent width used for media single initial width on insertion
|
|
229
222
|
*/
|
|
230
|
-
exports.
|
|
231
|
-
var getParentWidthForNestedMediaSingleNodeForInsertion = function getParentWidthForNestedMediaSingleNodeForInsertion(resolvedPos, view) {
|
|
223
|
+
var getParentWidthForNestedMediaSingleNodeForInsertion = exports.getParentWidthForNestedMediaSingleNodeForInsertion = function getParentWidthForNestedMediaSingleNodeForInsertion(resolvedPos, view) {
|
|
232
224
|
var parentPos = resolvedPos.before(resolvedPos.depth);
|
|
233
225
|
var parentDomNode = view.nodeDOM(parentPos);
|
|
234
226
|
var parentPadding = calcParentPadding(view, resolvedPos);
|
|
@@ -236,5 +228,4 @@ var getParentWidthForNestedMediaSingleNodeForInsertion = function getParentWidth
|
|
|
236
228
|
return parentDomNode.offsetWidth - parentPadding;
|
|
237
229
|
}
|
|
238
230
|
return null;
|
|
239
|
-
};
|
|
240
|
-
exports.getParentWidthForNestedMediaSingleNodeForInsertion = getParentWidthForNestedMediaSingleNodeForInsertion;
|
|
231
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.alignmentMessages = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
var alignmentMessages = exports.alignmentMessages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
alignLeft: {
|
|
10
|
+
id: 'fabric.editor.alignLeft',
|
|
11
|
+
defaultMessage: 'Align left',
|
|
12
|
+
description: 'Action to align/justify text to the left'
|
|
13
|
+
},
|
|
14
|
+
alignCenter: {
|
|
15
|
+
id: 'fabric.editor.alignCenter',
|
|
16
|
+
defaultMessage: 'Align center',
|
|
17
|
+
description: 'Action to align/justify text to the center/middle'
|
|
18
|
+
},
|
|
19
|
+
alignRight: {
|
|
20
|
+
id: 'fabric.editor.alignRight',
|
|
21
|
+
defaultMessage: 'Align right',
|
|
22
|
+
description: 'Action to align/justify text to the right'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.annotationMessages = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
var annotationMessages = exports.annotationMessages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
createComment: {
|
|
10
|
+
id: 'fabric.editor.createComment',
|
|
11
|
+
defaultMessage: 'Comment',
|
|
12
|
+
description: 'Create/add an inline comment based on the users selection'
|
|
13
|
+
},
|
|
14
|
+
createCommentInvalid: {
|
|
15
|
+
id: 'fabric.editor.createCommentInvalid',
|
|
16
|
+
defaultMessage: 'You can only comment on text and headings',
|
|
17
|
+
description: 'Error message to communicate to the user they can only do the current action in certain contexts'
|
|
18
|
+
},
|
|
19
|
+
toolbar: {
|
|
20
|
+
id: 'fabric.editor.annotationToolbar',
|
|
21
|
+
defaultMessage: 'Annotation toolbar',
|
|
22
|
+
description: 'A label for a toolbar (UI element) that creates annotations/comments in the document'
|
|
23
|
+
}
|
|
24
|
+
});
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.messages = void 0;
|
|
7
|
+
var _reactIntlNext = require("react-intl-next");
|
|
8
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
|
+
normal: {
|
|
10
|
+
id: 'fabric.editor.normal',
|
|
11
|
+
defaultMessage: 'Normal text',
|
|
12
|
+
description: 'This is the default text style'
|
|
13
|
+
},
|
|
14
|
+
heading1: {
|
|
15
|
+
id: 'fabric.editor.heading1',
|
|
16
|
+
defaultMessage: 'Heading 1',
|
|
17
|
+
description: 'Used for the title of a section of your document, headings run from 1 (largest size) to 6 (smallest size)'
|
|
18
|
+
},
|
|
19
|
+
heading1Description: {
|
|
20
|
+
id: 'fabric.editor.heading1Description',
|
|
21
|
+
defaultMessage: 'Use this for a top level heading',
|
|
22
|
+
description: 'Description of the main heading, heading 1'
|
|
23
|
+
},
|
|
24
|
+
heading2: {
|
|
25
|
+
id: 'fabric.editor.heading2',
|
|
26
|
+
defaultMessage: 'Heading 2',
|
|
27
|
+
description: 'Used for the title of a section of your document, headings run from 1 (largest size) to 6 (smallest size)'
|
|
28
|
+
},
|
|
29
|
+
heading2Description: {
|
|
30
|
+
id: 'fabric.editor.heading2Description',
|
|
31
|
+
defaultMessage: 'Use this for key sections',
|
|
32
|
+
description: 'Description of a subtitle heading or secondary heading'
|
|
33
|
+
},
|
|
34
|
+
heading3: {
|
|
35
|
+
id: 'fabric.editor.heading3',
|
|
36
|
+
defaultMessage: 'Heading 3',
|
|
37
|
+
description: 'Used for the title of a section of your document, headings run from 1 (largest size) to 6 (smallest size)'
|
|
38
|
+
},
|
|
39
|
+
heading3Description: {
|
|
40
|
+
id: 'fabric.editor.heading3Description',
|
|
41
|
+
defaultMessage: 'Use this for sub sections and group headings',
|
|
42
|
+
description: ''
|
|
43
|
+
},
|
|
44
|
+
heading4: {
|
|
45
|
+
id: 'fabric.editor.heading4',
|
|
46
|
+
defaultMessage: 'Heading 4',
|
|
47
|
+
description: 'Used for the title of a section of your document, headings run from 1 (largest size) to 6 (smallest size)'
|
|
48
|
+
},
|
|
49
|
+
heading4Description: {
|
|
50
|
+
id: 'fabric.editor.heading4Description',
|
|
51
|
+
defaultMessage: 'Use this for deep headings',
|
|
52
|
+
description: ''
|
|
53
|
+
},
|
|
54
|
+
heading5: {
|
|
55
|
+
id: 'fabric.editor.heading5',
|
|
56
|
+
defaultMessage: 'Heading 5',
|
|
57
|
+
description: 'Used for the title of a section of your document, headings run from 1 (largest size) to 6 (smallest size)'
|
|
58
|
+
},
|
|
59
|
+
heading5Description: {
|
|
60
|
+
id: 'fabric.editor.heading5Description',
|
|
61
|
+
defaultMessage: 'Use this for grouping list items',
|
|
62
|
+
description: ''
|
|
63
|
+
},
|
|
64
|
+
heading6: {
|
|
65
|
+
id: 'fabric.editor.heading6',
|
|
66
|
+
defaultMessage: 'Heading 6',
|
|
67
|
+
description: 'Used for the title of a section of your document, headings run from 1 (largest size) to 6 (smallest size)'
|
|
68
|
+
},
|
|
69
|
+
heading6Description: {
|
|
70
|
+
id: 'fabric.editor.heading6Description',
|
|
71
|
+
defaultMessage: 'Use this for low level headings',
|
|
72
|
+
description: ''
|
|
73
|
+
},
|
|
74
|
+
blockquote: {
|
|
75
|
+
id: 'fabric.editor.blockquote2',
|
|
76
|
+
defaultMessage: 'Quote',
|
|
77
|
+
description: 'Quote some text'
|
|
78
|
+
},
|
|
79
|
+
blockquoteDescription: {
|
|
80
|
+
id: 'fabric.editor.blockquote.description',
|
|
81
|
+
defaultMessage: 'Insert a quote or citation',
|
|
82
|
+
description: 'Quote some text'
|
|
83
|
+
},
|
|
84
|
+
codeblock: {
|
|
85
|
+
id: 'fabric.editor.codeblock',
|
|
86
|
+
defaultMessage: 'Code snippet',
|
|
87
|
+
description: 'Insert a snippet/segment of code (code block)'
|
|
88
|
+
},
|
|
89
|
+
codeblockDescription: {
|
|
90
|
+
id: 'fabric.editor.codeblock.description',
|
|
91
|
+
defaultMessage: 'Display code with syntax highlighting',
|
|
92
|
+
description: 'Insert a snippet/segment of code (code block)'
|
|
93
|
+
},
|
|
94
|
+
infoPanel: {
|
|
95
|
+
id: 'fabric.editor.infoPanel',
|
|
96
|
+
defaultMessage: 'Info panel',
|
|
97
|
+
description: 'Visually distinguishes your text by adding a background colour (blue, purple, yellow, green, red)'
|
|
98
|
+
},
|
|
99
|
+
infoPanelDescription: {
|
|
100
|
+
id: 'fabric.editor.infoPanel.description',
|
|
101
|
+
defaultMessage: 'Highlight information in a colored panel',
|
|
102
|
+
description: 'Visually distinguishes your text by adding a background colour (blue, purple, yellow, green, red)'
|
|
103
|
+
},
|
|
104
|
+
notePanel: {
|
|
105
|
+
id: 'fabric.editor.notePanel',
|
|
106
|
+
defaultMessage: 'Note panel',
|
|
107
|
+
description: 'Visually distinguishes your text by adding a note panel'
|
|
108
|
+
},
|
|
109
|
+
notePanelDescription: {
|
|
110
|
+
id: 'fabric.editor.notePanel.description',
|
|
111
|
+
defaultMessage: 'Add a note in a colored panel',
|
|
112
|
+
description: 'Visually distinguishes your text by adding a note panel'
|
|
113
|
+
},
|
|
114
|
+
successPanel: {
|
|
115
|
+
id: 'fabric.editor.successPanel',
|
|
116
|
+
defaultMessage: 'Success panel',
|
|
117
|
+
description: 'Visually distinguishes your text by adding a success panel'
|
|
118
|
+
},
|
|
119
|
+
successPanelDescription: {
|
|
120
|
+
id: 'fabric.editor.successPanel.description',
|
|
121
|
+
defaultMessage: 'Add tips in a colored panel',
|
|
122
|
+
description: 'Visually distinguishes your text by adding a success panel'
|
|
123
|
+
},
|
|
124
|
+
warningPanel: {
|
|
125
|
+
id: 'fabric.editor.warningPanel',
|
|
126
|
+
defaultMessage: 'Warning panel',
|
|
127
|
+
description: 'Visually distinguishes your text by adding a warning panel'
|
|
128
|
+
},
|
|
129
|
+
warningPanelDescription: {
|
|
130
|
+
id: 'fabric.editor.warningPanel.description',
|
|
131
|
+
defaultMessage: 'Add a note of caution in a colored panel',
|
|
132
|
+
description: 'Visually distinguishes your text by adding a warning panel'
|
|
133
|
+
},
|
|
134
|
+
errorPanel: {
|
|
135
|
+
id: 'fabric.editor.errorPanel',
|
|
136
|
+
defaultMessage: 'Error panel',
|
|
137
|
+
description: 'Visually distinguishes your text by adding a error panel'
|
|
138
|
+
},
|
|
139
|
+
errorPanelDescription: {
|
|
140
|
+
id: 'fabric.editor.errorPanel.description',
|
|
141
|
+
defaultMessage: 'Call out errors in a colored panel',
|
|
142
|
+
description: 'Visually distinguishes your text by adding a error panel'
|
|
143
|
+
},
|
|
144
|
+
customPanel: {
|
|
145
|
+
id: 'fabric.editor.customPanel',
|
|
146
|
+
defaultMessage: 'Custom panel',
|
|
147
|
+
description: 'Visually distinguishes your panel by adding a emoji icon and background color'
|
|
148
|
+
},
|
|
149
|
+
customPanelDescription: {
|
|
150
|
+
id: 'fabric.editor.customPanel.description',
|
|
151
|
+
defaultMessage: 'Add a note with an emoji and colored background',
|
|
152
|
+
description: 'Visually distinguishes your panel by adding a emoji icon and background color '
|
|
153
|
+
},
|
|
154
|
+
other: {
|
|
155
|
+
id: 'fabric.editor.other',
|
|
156
|
+
defaultMessage: 'Others...',
|
|
157
|
+
description: 'Other text formatting'
|
|
158
|
+
}
|
|
159
|
+
});
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var messages = (0, _reactIntlNext.defineMessages)({
|
|
8
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
url: {
|
|
10
10
|
id: 'fabric.editor.url',
|
|
11
11
|
defaultMessage: 'Display URL',
|
|
@@ -91,5 +91,4 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
91
91
|
defaultMessage: 'Edit search query',
|
|
92
92
|
description: 'Tooltip of button to edit a card into a datasource'
|
|
93
93
|
}
|
|
94
|
-
});
|
|
95
|
-
exports.messages = messages;
|
|
94
|
+
});
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.codeBidiWarningMessages = void 0;
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var codeBidiWarningMessages = (0, _reactIntlNext.defineMessages)({
|
|
8
|
+
var codeBidiWarningMessages = exports.codeBidiWarningMessages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
/**
|
|
10
10
|
* Message taken from
|
|
11
11
|
* https://hello.atlassian.net/wiki/spaces/~tswan/pages/1366555782/PSHELP-2943+Investigate+Trojan+Source+Attack+Vulnerability+design
|
|
@@ -15,5 +15,4 @@ var codeBidiWarningMessages = (0, _reactIntlNext.defineMessages)({
|
|
|
15
15
|
defaultMessage: 'Bidirectional characters change the order that text is rendered. This could be used to obscure malicious code.',
|
|
16
16
|
description: 'Tooltip message to present to users when a bidirectional character is encountered in code.'
|
|
17
17
|
}
|
|
18
|
-
});
|
|
19
|
-
exports.codeBidiWarningMessages = codeBidiWarningMessages;
|
|
18
|
+
});
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.codeBlockButtonMessages = void 0;
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var codeBlockButtonMessages = (0, _reactIntlNext.defineMessages)({
|
|
8
|
+
var codeBlockButtonMessages = exports.codeBlockButtonMessages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
copyCodeToClipboard: {
|
|
10
10
|
id: 'fabric.editor.codeBlockCopyButton.copyToClipboard',
|
|
11
11
|
defaultMessage: 'Copy as text',
|
|
@@ -26,5 +26,4 @@ var codeBlockButtonMessages = (0, _reactIntlNext.defineMessages)({
|
|
|
26
26
|
defaultMessage: 'Turn off wrap',
|
|
27
27
|
description: 'Wrap the content of the code block'
|
|
28
28
|
}
|
|
29
|
-
});
|
|
30
|
-
exports.codeBlockButtonMessages = codeBlockButtonMessages;
|
|
29
|
+
});
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var messages = (0, _reactIntlNext.defineMessages)({
|
|
8
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
toolbarLabel: {
|
|
10
10
|
id: 'fabric.editor.toolbarLabel',
|
|
11
11
|
defaultMessage: 'Editor toolbar',
|
|
@@ -21,5 +21,4 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
21
21
|
defaultMessage: 'Editable content',
|
|
22
22
|
description: 'Label for the ARIA region landmark'
|
|
23
23
|
}
|
|
24
|
-
});
|
|
25
|
-
exports.messages = messages;
|
|
24
|
+
});
|