@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
|
@@ -28,7 +28,7 @@ var _fallback = _interopRequireDefault(require("./fallback"));
|
|
|
28
28
|
var _excluded = ["level"];
|
|
29
29
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || (0, _typeof2.default)(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; }
|
|
31
|
-
var IconAction = (0, _reactLoadable.default)({
|
|
31
|
+
var IconAction = exports.IconAction = (0, _reactLoadable.default)({
|
|
32
32
|
loader: function loader() {
|
|
33
33
|
return Promise.resolve().then(function () {
|
|
34
34
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-action" */'./action'));
|
|
@@ -40,8 +40,7 @@ var IconAction = (0, _reactLoadable.default)({
|
|
|
40
40
|
return null;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
exports.
|
|
44
|
-
var IconCode = (0, _reactLoadable.default)({
|
|
43
|
+
var IconCode = exports.IconCode = (0, _reactLoadable.default)({
|
|
45
44
|
loader: function loader() {
|
|
46
45
|
return Promise.resolve().then(function () {
|
|
47
46
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-code" */'./code'));
|
|
@@ -53,8 +52,7 @@ var IconCode = (0, _reactLoadable.default)({
|
|
|
53
52
|
return null;
|
|
54
53
|
}
|
|
55
54
|
});
|
|
56
|
-
exports.
|
|
57
|
-
var IconDate = (0, _reactLoadable.default)({
|
|
55
|
+
var IconDate = exports.IconDate = (0, _reactLoadable.default)({
|
|
58
56
|
loader: function loader() {
|
|
59
57
|
return Promise.resolve().then(function () {
|
|
60
58
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-date" */'./date'));
|
|
@@ -66,8 +64,7 @@ var IconDate = (0, _reactLoadable.default)({
|
|
|
66
64
|
return null;
|
|
67
65
|
}
|
|
68
66
|
});
|
|
69
|
-
exports.
|
|
70
|
-
var IconDecision = (0, _reactLoadable.default)({
|
|
67
|
+
var IconDecision = exports.IconDecision = (0, _reactLoadable.default)({
|
|
71
68
|
loader: function loader() {
|
|
72
69
|
return Promise.resolve().then(function () {
|
|
73
70
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-decision" */'./decision'));
|
|
@@ -79,8 +76,7 @@ var IconDecision = (0, _reactLoadable.default)({
|
|
|
79
76
|
return null;
|
|
80
77
|
}
|
|
81
78
|
});
|
|
82
|
-
exports.
|
|
83
|
-
var IconDivider = (0, _reactLoadable.default)({
|
|
79
|
+
var IconDivider = exports.IconDivider = (0, _reactLoadable.default)({
|
|
84
80
|
loader: function loader() {
|
|
85
81
|
return Promise.resolve().then(function () {
|
|
86
82
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-divider" */'./divider'));
|
|
@@ -92,8 +88,7 @@ var IconDivider = (0, _reactLoadable.default)({
|
|
|
92
88
|
return null;
|
|
93
89
|
}
|
|
94
90
|
});
|
|
95
|
-
exports.
|
|
96
|
-
var IconEmoji = (0, _reactLoadable.default)({
|
|
91
|
+
var IconEmoji = exports.IconEmoji = (0, _reactLoadable.default)({
|
|
97
92
|
loader: function loader() {
|
|
98
93
|
return Promise.resolve().then(function () {
|
|
99
94
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-emoji" */'./emoji'));
|
|
@@ -105,8 +100,7 @@ var IconEmoji = (0, _reactLoadable.default)({
|
|
|
105
100
|
return null;
|
|
106
101
|
}
|
|
107
102
|
});
|
|
108
|
-
exports.
|
|
109
|
-
var IconImages = (0, _reactLoadable.default)({
|
|
103
|
+
var IconImages = exports.IconImages = (0, _reactLoadable.default)({
|
|
110
104
|
loader: function loader() {
|
|
111
105
|
return Promise.resolve().then(function () {
|
|
112
106
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-images" */'./images'));
|
|
@@ -118,8 +112,7 @@ var IconImages = (0, _reactLoadable.default)({
|
|
|
118
112
|
return null;
|
|
119
113
|
}
|
|
120
114
|
});
|
|
121
|
-
exports.
|
|
122
|
-
var IconLayout = (0, _reactLoadable.default)({
|
|
115
|
+
var IconLayout = exports.IconLayout = (0, _reactLoadable.default)({
|
|
123
116
|
loader: function loader() {
|
|
124
117
|
return Promise.resolve().then(function () {
|
|
125
118
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-layout" */'./layout'));
|
|
@@ -131,8 +124,7 @@ var IconLayout = (0, _reactLoadable.default)({
|
|
|
131
124
|
return null;
|
|
132
125
|
}
|
|
133
126
|
});
|
|
134
|
-
exports.
|
|
135
|
-
var IconLink = (0, _reactLoadable.default)({
|
|
127
|
+
var IconLink = exports.IconLink = (0, _reactLoadable.default)({
|
|
136
128
|
loader: function loader() {
|
|
137
129
|
return Promise.resolve().then(function () {
|
|
138
130
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-link" */'./link'));
|
|
@@ -144,8 +136,7 @@ var IconLink = (0, _reactLoadable.default)({
|
|
|
144
136
|
return null;
|
|
145
137
|
}
|
|
146
138
|
});
|
|
147
|
-
exports.
|
|
148
|
-
var IconListNumber = (0, _reactLoadable.default)({
|
|
139
|
+
var IconListNumber = exports.IconListNumber = (0, _reactLoadable.default)({
|
|
149
140
|
loader: function loader() {
|
|
150
141
|
return Promise.resolve().then(function () {
|
|
151
142
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-list-number" */'./list-number'));
|
|
@@ -157,8 +148,7 @@ var IconListNumber = (0, _reactLoadable.default)({
|
|
|
157
148
|
return null;
|
|
158
149
|
}
|
|
159
150
|
});
|
|
160
|
-
exports.
|
|
161
|
-
var IconList = (0, _reactLoadable.default)({
|
|
151
|
+
var IconList = exports.IconList = (0, _reactLoadable.default)({
|
|
162
152
|
loader: function loader() {
|
|
163
153
|
return Promise.resolve().then(function () {
|
|
164
154
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-list" */'./list'));
|
|
@@ -170,8 +160,7 @@ var IconList = (0, _reactLoadable.default)({
|
|
|
170
160
|
return null;
|
|
171
161
|
}
|
|
172
162
|
});
|
|
173
|
-
exports.
|
|
174
|
-
var IconMention = (0, _reactLoadable.default)({
|
|
163
|
+
var IconMention = exports.IconMention = (0, _reactLoadable.default)({
|
|
175
164
|
loader: function loader() {
|
|
176
165
|
return Promise.resolve().then(function () {
|
|
177
166
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-mention" */'./mention'));
|
|
@@ -183,8 +172,7 @@ var IconMention = (0, _reactLoadable.default)({
|
|
|
183
172
|
return null;
|
|
184
173
|
}
|
|
185
174
|
});
|
|
186
|
-
exports.
|
|
187
|
-
var IconPanelError = (0, _reactLoadable.default)({
|
|
175
|
+
var IconPanelError = exports.IconPanelError = (0, _reactLoadable.default)({
|
|
188
176
|
loader: function loader() {
|
|
189
177
|
return Promise.resolve().then(function () {
|
|
190
178
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-error" */'./panel-error'));
|
|
@@ -196,8 +184,7 @@ var IconPanelError = (0, _reactLoadable.default)({
|
|
|
196
184
|
return null;
|
|
197
185
|
}
|
|
198
186
|
});
|
|
199
|
-
exports.
|
|
200
|
-
var IconPanelNote = (0, _reactLoadable.default)({
|
|
187
|
+
var IconPanelNote = exports.IconPanelNote = (0, _reactLoadable.default)({
|
|
201
188
|
loader: function loader() {
|
|
202
189
|
return Promise.resolve().then(function () {
|
|
203
190
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-note" */'./panel-note'));
|
|
@@ -209,8 +196,7 @@ var IconPanelNote = (0, _reactLoadable.default)({
|
|
|
209
196
|
return null;
|
|
210
197
|
}
|
|
211
198
|
});
|
|
212
|
-
exports.
|
|
213
|
-
var IconPanelSuccess = (0, _reactLoadable.default)({
|
|
199
|
+
var IconPanelSuccess = exports.IconPanelSuccess = (0, _reactLoadable.default)({
|
|
214
200
|
loader: function loader() {
|
|
215
201
|
return Promise.resolve().then(function () {
|
|
216
202
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-success" */'./panel-success'));
|
|
@@ -222,8 +208,7 @@ var IconPanelSuccess = (0, _reactLoadable.default)({
|
|
|
222
208
|
return null;
|
|
223
209
|
}
|
|
224
210
|
});
|
|
225
|
-
exports.
|
|
226
|
-
var IconPanelWarning = (0, _reactLoadable.default)({
|
|
211
|
+
var IconPanelWarning = exports.IconPanelWarning = (0, _reactLoadable.default)({
|
|
227
212
|
loader: function loader() {
|
|
228
213
|
return Promise.resolve().then(function () {
|
|
229
214
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-warning" */'./panel-warning'));
|
|
@@ -235,8 +220,7 @@ var IconPanelWarning = (0, _reactLoadable.default)({
|
|
|
235
220
|
return null;
|
|
236
221
|
}
|
|
237
222
|
});
|
|
238
|
-
exports.
|
|
239
|
-
var IconPanel = (0, _reactLoadable.default)({
|
|
223
|
+
var IconPanel = exports.IconPanel = (0, _reactLoadable.default)({
|
|
240
224
|
loader: function loader() {
|
|
241
225
|
return Promise.resolve().then(function () {
|
|
242
226
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel" */'./panel'));
|
|
@@ -248,8 +232,7 @@ var IconPanel = (0, _reactLoadable.default)({
|
|
|
248
232
|
return null;
|
|
249
233
|
}
|
|
250
234
|
});
|
|
251
|
-
exports.
|
|
252
|
-
var IconQuote = (0, _reactLoadable.default)({
|
|
235
|
+
var IconQuote = exports.IconQuote = (0, _reactLoadable.default)({
|
|
253
236
|
loader: function loader() {
|
|
254
237
|
return Promise.resolve().then(function () {
|
|
255
238
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-quote" */'./quote'));
|
|
@@ -261,8 +244,7 @@ var IconQuote = (0, _reactLoadable.default)({
|
|
|
261
244
|
return null;
|
|
262
245
|
}
|
|
263
246
|
});
|
|
264
|
-
exports.
|
|
265
|
-
var IconStatus = (0, _reactLoadable.default)({
|
|
247
|
+
var IconStatus = exports.IconStatus = (0, _reactLoadable.default)({
|
|
266
248
|
loader: function loader() {
|
|
267
249
|
return Promise.resolve().then(function () {
|
|
268
250
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-status" */'./status'));
|
|
@@ -274,7 +256,6 @@ var IconStatus = (0, _reactLoadable.default)({
|
|
|
274
256
|
return null;
|
|
275
257
|
}
|
|
276
258
|
});
|
|
277
|
-
exports.IconStatus = IconStatus;
|
|
278
259
|
function importHeading(level) {
|
|
279
260
|
switch (level) {
|
|
280
261
|
case 1:
|
|
@@ -328,7 +309,7 @@ function importHeading(level) {
|
|
|
328
309
|
}( /* webpackChunkName: "@atlaskit-internal_editor-icon-heading-6" */"./heading6");
|
|
329
310
|
}
|
|
330
311
|
}
|
|
331
|
-
var IconHeading = function IconHeading(_ref) {
|
|
312
|
+
var IconHeading = exports.IconHeading = function IconHeading(_ref) {
|
|
332
313
|
var level = _ref.level,
|
|
333
314
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
334
315
|
var Icon = (0, _reactLoadable.default)({
|
|
@@ -343,8 +324,7 @@ var IconHeading = function IconHeading(_ref) {
|
|
|
343
324
|
});
|
|
344
325
|
return /*#__PURE__*/_react.default.createElement(Icon, props);
|
|
345
326
|
};
|
|
346
|
-
exports.
|
|
347
|
-
var IconFeedback = (0, _reactLoadable.default)({
|
|
327
|
+
var IconFeedback = exports.IconFeedback = (0, _reactLoadable.default)({
|
|
348
328
|
loader: function loader() {
|
|
349
329
|
return Promise.resolve().then(function () {
|
|
350
330
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-feedback" */'./feedback'));
|
|
@@ -356,8 +336,7 @@ var IconFeedback = (0, _reactLoadable.default)({
|
|
|
356
336
|
return null;
|
|
357
337
|
}
|
|
358
338
|
});
|
|
359
|
-
exports.
|
|
360
|
-
var IconExpand = (0, _reactLoadable.default)({
|
|
339
|
+
var IconExpand = exports.IconExpand = (0, _reactLoadable.default)({
|
|
361
340
|
loader: function loader() {
|
|
362
341
|
return Promise.resolve().then(function () {
|
|
363
342
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-expand" */'./expand'));
|
|
@@ -369,8 +348,7 @@ var IconExpand = (0, _reactLoadable.default)({
|
|
|
369
348
|
return null;
|
|
370
349
|
}
|
|
371
350
|
});
|
|
372
|
-
exports.
|
|
373
|
-
var IconDatasourceJiraIssue = (0, _reactLoadable.default)({
|
|
351
|
+
var IconDatasourceJiraIssue = exports.IconDatasourceJiraIssue = (0, _reactLoadable.default)({
|
|
374
352
|
loader: function loader() {
|
|
375
353
|
return Promise.resolve().then(function () {
|
|
376
354
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-jira-issue" */'./datasource-jira-issue'));
|
|
@@ -382,8 +360,7 @@ var IconDatasourceJiraIssue = (0, _reactLoadable.default)({
|
|
|
382
360
|
return null;
|
|
383
361
|
}
|
|
384
362
|
});
|
|
385
|
-
exports.
|
|
386
|
-
var IconDatasourceAssetsObjects = (0, _reactLoadable.default)({
|
|
363
|
+
var IconDatasourceAssetsObjects = exports.IconDatasourceAssetsObjects = (0, _reactLoadable.default)({
|
|
387
364
|
loader: function loader() {
|
|
388
365
|
return Promise.resolve().then(function () {
|
|
389
366
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-assets-objects" */'./datasource-assets-objects'));
|
|
@@ -394,5 +371,4 @@ var IconDatasourceAssetsObjects = (0, _reactLoadable.default)({
|
|
|
394
371
|
loading: function loading() {
|
|
395
372
|
return null;
|
|
396
373
|
}
|
|
397
|
-
});
|
|
398
|
-
exports.IconDatasourceAssetsObjects = IconDatasourceAssetsObjects;
|
|
374
|
+
});
|
|
@@ -8,7 +8,7 @@ var _tokens = require("@atlaskit/tokens");
|
|
|
8
8
|
/**
|
|
9
9
|
* Warning -- if additional color modes beyond light and dark are added in future -- this will have unexpected behaviour
|
|
10
10
|
*/
|
|
11
|
-
var useIconThemed = function useIconThemed() {
|
|
11
|
+
var useIconThemed = exports.useIconThemed = function useIconThemed() {
|
|
12
12
|
var _useThemeObserver = (0, _tokens.useThemeObserver)(),
|
|
13
13
|
colorMode = _useThemeObserver.colorMode;
|
|
14
14
|
return {
|
|
@@ -16,5 +16,4 @@ var useIconThemed = function useIconThemed() {
|
|
|
16
16
|
return colorMode && colorMode === 'dark' ? colors['dark'] : colors['light'];
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
};
|
|
20
|
-
exports.useIconThemed = useIconThemed;
|
|
19
|
+
};
|
|
@@ -17,8 +17,7 @@ var processQuickInsertItems = function processQuickInsertItems(items, intl) {
|
|
|
17
17
|
return acc.concat(item);
|
|
18
18
|
}, []);
|
|
19
19
|
};
|
|
20
|
-
var memoProcessQuickInsertItems = (0, _memoizeOne.default)(processQuickInsertItems);
|
|
21
|
-
exports.memoProcessQuickInsertItems = memoProcessQuickInsertItems;
|
|
20
|
+
var memoProcessQuickInsertItems = exports.memoProcessQuickInsertItems = (0, _memoizeOne.default)(processQuickInsertItems);
|
|
22
21
|
var options = {
|
|
23
22
|
threshold: 0.3,
|
|
24
23
|
keys: [{
|
|
@@ -14,8 +14,7 @@ var _ErrorBoundary = require("../ui/ErrorBoundary");
|
|
|
14
14
|
var _utils = require("../utils");
|
|
15
15
|
/** @jsx jsx */
|
|
16
16
|
|
|
17
|
-
var inlineNodeViewClassname = 'inlineNodeView';
|
|
18
|
-
exports.inlineNodeViewClassname = inlineNodeViewClassname;
|
|
17
|
+
var inlineNodeViewClassname = exports.inlineNodeViewClassname = 'inlineNodeView';
|
|
19
18
|
function createNodeView(_ref) {
|
|
20
19
|
var nodeViewParams = _ref.nodeViewParams,
|
|
21
20
|
pmPluginFactoryParams = _ref.pmPluginFactoryParams,
|
|
@@ -169,7 +168,7 @@ function getPortalChildren(_ref2) {
|
|
|
169
168
|
|
|
170
169
|
return (0, _react2.jsx)(_ErrorBoundary.ErrorBoundary, {
|
|
171
170
|
component: _analytics.ACTION_SUBJECT.REACT_NODE_VIEW,
|
|
172
|
-
componentId: (_currentNode$type$nam = currentNode === null || currentNode === void 0
|
|
171
|
+
componentId: (_currentNode$type$nam = currentNode === null || currentNode === void 0 || (_currentNode$type = currentNode.type) === null || _currentNode$type === void 0 ? void 0 : _currentNode$type.name) !== null && _currentNode$type$nam !== void 0 ? _currentNode$type$nam : _analytics.ACTION_SUBJECT_ID.UNKNOWN_NODE,
|
|
173
172
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent
|
|
174
173
|
}, (0, _react2.jsx)("span", {
|
|
175
174
|
"aria-hidden": "true",
|
|
@@ -28,7 +28,7 @@ var _ErrorBoundary = require("../ui/ErrorBoundary");
|
|
|
28
28
|
var _utils = require("../utils");
|
|
29
29
|
var _analytics2 = require("../utils/analytics");
|
|
30
30
|
var _getInlineNodeViewProducer = require("./getInlineNodeViewProducer");
|
|
31
|
-
var ReactNodeView = /*#__PURE__*/function () {
|
|
31
|
+
var ReactNodeView = exports.default = /*#__PURE__*/function () {
|
|
32
32
|
function ReactNodeView(_node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent) {
|
|
33
33
|
var _this = this;
|
|
34
34
|
var hasAnalyticsContext = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false;
|
|
@@ -117,10 +117,10 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
119
|
var componentWithErrorBoundary = function componentWithErrorBoundary() {
|
|
120
|
-
var _this3$node$type$name, _this3$node
|
|
120
|
+
var _this3$node$type$name, _this3$node;
|
|
121
121
|
return /*#__PURE__*/_react.default.createElement(_ErrorBoundary.ErrorBoundary, {
|
|
122
122
|
component: _analytics.ACTION_SUBJECT.REACT_NODE_VIEW,
|
|
123
|
-
componentId: (_this3$node$type$name = _this3 === null || _this3 === void 0
|
|
123
|
+
componentId: (_this3$node$type$name = _this3 === null || _this3 === void 0 || (_this3$node = _this3.node) === null || _this3$node === void 0 || (_this3$node = _this3$node.type) === null || _this3$node === void 0 ? void 0 : _this3$node.name) !== null && _this3$node$type$name !== void 0 ? _this3$node$type$name : _analytics.ACTION_SUBJECT_ID.UNKNOWN_NODE,
|
|
124
124
|
dispatchAnalyticsEvent: _this3.dispatchAnalyticsEvent
|
|
125
125
|
}, component());
|
|
126
126
|
};
|
|
@@ -235,5 +235,4 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
235
235
|
}
|
|
236
236
|
}]);
|
|
237
237
|
return ReactNodeView;
|
|
238
|
-
}();
|
|
239
|
-
exports.default = ReactNodeView;
|
|
238
|
+
}();
|
|
@@ -4,18 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.snapTo = exports.imageAlignmentMap = exports.handleSides = void 0;
|
|
7
|
-
var snapTo = function snapTo(target, points) {
|
|
7
|
+
var snapTo = exports.snapTo = function snapTo(target, points) {
|
|
8
8
|
return points.length === 0 ?
|
|
9
9
|
// extreme last case if there are no points somehow
|
|
10
10
|
target : points.reduce(function (point, closest) {
|
|
11
11
|
return Math.abs(closest - target) < Math.abs(point - target) ? closest : point;
|
|
12
12
|
});
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
15
|
-
var
|
|
16
|
-
exports.handleSides = handleSides;
|
|
17
|
-
var imageAlignmentMap = {
|
|
14
|
+
var handleSides = exports.handleSides = ['left', 'right'];
|
|
15
|
+
var imageAlignmentMap = exports.imageAlignmentMap = {
|
|
18
16
|
left: 'start',
|
|
19
17
|
right: 'end'
|
|
20
|
-
};
|
|
21
|
-
exports.imageAlignmentMap = imageAlignmentMap;
|
|
18
|
+
};
|
|
@@ -51,7 +51,7 @@ var wrapGetPosExceptions = function wrapGetPosExceptions(spec) {
|
|
|
51
51
|
spec.props.nodeViews = safeNodeViews;
|
|
52
52
|
return spec;
|
|
53
53
|
};
|
|
54
|
-
var SafePlugin = /*#__PURE__*/function (_Plugin) {
|
|
54
|
+
var SafePlugin = exports.SafePlugin = /*#__PURE__*/function (_Plugin) {
|
|
55
55
|
(0, _inherits2.default)(SafePlugin, _Plugin);
|
|
56
56
|
var _super = _createSuper(SafePlugin);
|
|
57
57
|
// This variable isn't (and shouldn't) be used anywhere. Its purpose is
|
|
@@ -63,5 +63,4 @@ var SafePlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
63
63
|
return _super.call(this, wrapGetPosExceptions(spec));
|
|
64
64
|
}
|
|
65
65
|
return (0, _createClass2.default)(SafePlugin);
|
|
66
|
-
}(_state.Plugin);
|
|
67
|
-
exports.SafePlugin = SafePlugin;
|
|
66
|
+
}(_state.Plugin);
|
|
@@ -17,15 +17,13 @@ var _state = require("@atlaskit/editor-prosemirror/state");
|
|
|
17
17
|
var _isValidTargetNode = require("./utils/is-valid-target-node");
|
|
18
18
|
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); }; }
|
|
19
19
|
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; } }
|
|
20
|
-
var Side = /*#__PURE__*/function (Side) {
|
|
20
|
+
var Side = exports.Side = /*#__PURE__*/function (Side) {
|
|
21
21
|
Side["LEFT"] = "left";
|
|
22
22
|
Side["RIGHT"] = "right";
|
|
23
23
|
return Side;
|
|
24
24
|
}({});
|
|
25
|
-
exports.
|
|
26
|
-
var
|
|
27
|
-
exports.JSON_ID = JSON_ID;
|
|
28
|
-
var GapCursorSelection = /*#__PURE__*/function (_Selection) {
|
|
25
|
+
var JSON_ID = exports.JSON_ID = 'gapcursor';
|
|
26
|
+
var GapCursorSelection = exports.GapCursorSelection = /*#__PURE__*/function (_Selection) {
|
|
29
27
|
(0, _inherits2.default)(GapCursorSelection, _Selection);
|
|
30
28
|
var _super = _createSuper(GapCursorSelection);
|
|
31
29
|
/**
|
|
@@ -136,9 +134,8 @@ var GapCursorSelection = /*#__PURE__*/function (_Selection) {
|
|
|
136
134
|
}]);
|
|
137
135
|
return GapCursorSelection;
|
|
138
136
|
}(_state.Selection);
|
|
139
|
-
exports.GapCursorSelection = GapCursorSelection;
|
|
140
137
|
_state.Selection.jsonID(JSON_ID, GapCursorSelection);
|
|
141
|
-
var GapBookmark = /*#__PURE__*/function () {
|
|
138
|
+
var GapBookmark = exports.GapBookmark = /*#__PURE__*/function () {
|
|
142
139
|
function GapBookmark(pos) {
|
|
143
140
|
(0, _classCallCheck2.default)(this, GapBookmark);
|
|
144
141
|
this.pos = pos;
|
|
@@ -156,5 +153,4 @@ var GapBookmark = /*#__PURE__*/function () {
|
|
|
156
153
|
}
|
|
157
154
|
}]);
|
|
158
155
|
return GapBookmark;
|
|
159
|
-
}();
|
|
160
|
-
exports.GapBookmark = GapBookmark;
|
|
156
|
+
}();
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.isIgnored = void 0;
|
|
7
7
|
// we don't show gap cursor for those nodes
|
|
8
8
|
var IGNORED_NODES = ['paragraph', 'bulletList', 'orderedList', 'listItem', 'taskItem', 'decisionItem', 'heading', 'blockquote', 'layoutColumn', 'caption', 'media'];
|
|
9
|
-
var isIgnored = function isIgnored(node) {
|
|
9
|
+
var isIgnored = exports.isIgnored = function isIgnored(node) {
|
|
10
10
|
return !!node && IGNORED_NODES.indexOf(node.type.name) !== -1;
|
|
11
|
-
};
|
|
12
|
-
exports.isIgnored = isIgnored;
|
|
11
|
+
};
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.isValidTargetNode = void 0;
|
|
7
7
|
var _isIgnored = require("./is-ignored");
|
|
8
|
-
var isValidTargetNode = function isValidTargetNode(node) {
|
|
8
|
+
var isValidTargetNode = exports.isValidTargetNode = function isValidTargetNode(node) {
|
|
9
9
|
return !!node && !(0, _isIgnored.isIgnored)(node);
|
|
10
|
-
};
|
|
11
|
-
exports.isValidTargetNode = isValidTargetNode;
|
|
10
|
+
};
|
|
@@ -193,7 +193,7 @@ function getRangeSelectionAnalyticsPayload(selection, doc) {
|
|
|
193
193
|
* @param deletions the ranges to delete
|
|
194
194
|
*/
|
|
195
195
|
|
|
196
|
-
var selectNode = function selectNode(pos) {
|
|
196
|
+
var selectNode = exports.selectNode = function selectNode(pos) {
|
|
197
197
|
return function (state, dispatch) {
|
|
198
198
|
if (dispatch) {
|
|
199
199
|
dispatch(state.tr.setSelection(new _state.NodeSelection(state.doc.resolve(pos))));
|
|
@@ -201,7 +201,6 @@ var selectNode = function selectNode(pos) {
|
|
|
201
201
|
return true;
|
|
202
202
|
};
|
|
203
203
|
};
|
|
204
|
-
exports.selectNode = selectNode;
|
|
205
204
|
function createSelectionClickHandler(nodes, isValidTarget, options) {
|
|
206
205
|
return function handleClickOn(view, pos, node, nodePos, event, direct) {
|
|
207
206
|
if (options.useLongPressSelection) {
|
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.RelativeSelectionPos = void 0;
|
|
7
|
-
var RelativeSelectionPos = /*#__PURE__*/function (RelativeSelectionPos) {
|
|
7
|
+
var RelativeSelectionPos = exports.RelativeSelectionPos = /*#__PURE__*/function (RelativeSelectionPos) {
|
|
8
8
|
RelativeSelectionPos["Before"] = "Before";
|
|
9
9
|
RelativeSelectionPos["Start"] = "Start";
|
|
10
10
|
RelativeSelectionPos["Inside"] = "Inside";
|
|
11
11
|
RelativeSelectionPos["End"] = "End";
|
|
12
12
|
return RelativeSelectionPos;
|
|
13
|
-
}({});
|
|
14
|
-
exports.RelativeSelectionPos = RelativeSelectionPos;
|
|
13
|
+
}({});
|
|
@@ -12,7 +12,7 @@ exports.isSelectionAtStartOfNode = exports.isSelectionAtEndOfNode = void 0;
|
|
|
12
12
|
exports.startPositionOfParent = startPositionOfParent;
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
14
|
var _selection = require("./gap-cursor/selection");
|
|
15
|
-
var isSelectionAtStartOfNode = function isSelectionAtStartOfNode($pos, parentNode) {
|
|
15
|
+
var isSelectionAtStartOfNode = exports.isSelectionAtStartOfNode = function isSelectionAtStartOfNode($pos, parentNode) {
|
|
16
16
|
if (!parentNode) {
|
|
17
17
|
return false;
|
|
18
18
|
}
|
|
@@ -27,8 +27,7 @@ var isSelectionAtStartOfNode = function isSelectionAtStartOfNode($pos, parentNod
|
|
|
27
27
|
}
|
|
28
28
|
return true;
|
|
29
29
|
};
|
|
30
|
-
exports.
|
|
31
|
-
var isSelectionAtEndOfNode = function isSelectionAtEndOfNode($pos, parentNode) {
|
|
30
|
+
var isSelectionAtEndOfNode = exports.isSelectionAtEndOfNode = function isSelectionAtEndOfNode($pos, parentNode) {
|
|
32
31
|
if (!parentNode) {
|
|
33
32
|
return false;
|
|
34
33
|
}
|
|
@@ -43,7 +42,6 @@ var isSelectionAtEndOfNode = function isSelectionAtEndOfNode($pos, parentNode) {
|
|
|
43
42
|
}
|
|
44
43
|
return true;
|
|
45
44
|
};
|
|
46
|
-
exports.isSelectionAtEndOfNode = isSelectionAtEndOfNode;
|
|
47
45
|
function atTheEndOfDoc(state) {
|
|
48
46
|
var selection = state.selection,
|
|
49
47
|
doc = state.doc;
|
|
@@ -38,7 +38,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
38
38
|
* return super.viewShouldUpdate(nextNode);
|
|
39
39
|
* }```
|
|
40
40
|
*/
|
|
41
|
-
var SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
41
|
+
var SelectionBasedNodeView = exports.SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
42
42
|
(0, _inherits2.default)(SelectionBasedNodeView, _ReactNodeView);
|
|
43
43
|
var _super = _createSuper(SelectionBasedNodeView);
|
|
44
44
|
function SelectionBasedNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, reactComponent) {
|
|
@@ -123,5 +123,4 @@ var SelectionBasedNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
123
123
|
}
|
|
124
124
|
}]);
|
|
125
125
|
return SelectionBasedNodeView;
|
|
126
|
-
}(_reactNodeView.default);
|
|
127
|
-
exports.SelectionBasedNodeView = SelectionBasedNodeView;
|
|
126
|
+
}(_reactNodeView.default);
|
|
@@ -10,21 +10,19 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
var _components = require("@atlaskit/theme/components");
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3;
|
|
13
|
-
var annotationPrefix = 'ak-editor-annotation';
|
|
14
|
-
exports.
|
|
15
|
-
var AnnotationSharedClassNames = {
|
|
13
|
+
var annotationPrefix = exports.annotationPrefix = 'ak-editor-annotation';
|
|
14
|
+
var AnnotationSharedClassNames = exports.AnnotationSharedClassNames = {
|
|
16
15
|
focus: "".concat(annotationPrefix, "-focus"),
|
|
17
16
|
blur: "".concat(annotationPrefix, "-blur"),
|
|
18
17
|
draft: "".concat(annotationPrefix, "-draft")
|
|
19
18
|
};
|
|
20
|
-
exports.AnnotationSharedClassNames = AnnotationSharedClassNames;
|
|
21
19
|
var DY75 = 'rgb(111, 92, 37)';
|
|
22
20
|
var DY300 = '#ffd557';
|
|
23
21
|
var Y75a = 'rgba(255, 240, 179, 0.5)';
|
|
24
22
|
var Y200a = 'rgba(255, 196, 0, 0.82)';
|
|
25
23
|
var DY75a = 'rgba(111, 92, 37, 0.5)';
|
|
26
24
|
var DY200 = '#82641c';
|
|
27
|
-
var AnnotationSharedCSSByState = function AnnotationSharedCSSByState(props) {
|
|
25
|
+
var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function AnnotationSharedCSSByState(props) {
|
|
28
26
|
return {
|
|
29
27
|
focus: (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n // Background is not coming through in confluence, suspecting to be caused by some specific combination of\n // emotion and token look up\n\n background: ", ";\n border-bottom: 2px solid\n ", ";\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4147\n box-shadow: ", ";\n cursor: pointer;\n "])), (0, _components.themed)({
|
|
30
28
|
light: "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"),
|
|
@@ -42,8 +40,6 @@ var AnnotationSharedCSSByState = function AnnotationSharedCSSByState(props) {
|
|
|
42
40
|
})(props))
|
|
43
41
|
};
|
|
44
42
|
};
|
|
45
|
-
exports.
|
|
46
|
-
var annotationSharedStyles = function annotationSharedStyles(props) {
|
|
43
|
+
var annotationSharedStyles = exports.annotationSharedStyles = function annotationSharedStyles(props) {
|
|
47
44
|
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n .ProseMirror {\n .", " {\n ", ";\n }\n\n .", " {\n ", ";\n cursor: initial;\n }\n\n .", " {\n ", ";\n }\n }\n"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState(props).focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState(props).focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState(props).blur);
|
|
48
|
-
};
|
|
49
|
-
exports.annotationSharedStyles = annotationSharedStyles;
|
|
45
|
+
};
|
|
@@ -8,5 +8,4 @@ exports.blockMarksSharedStyles = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _templateObject;
|
|
11
|
-
var blockMarksSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /**\n * We need to remove margin-top from first item\n * inside doc, tableCell, tableHeader, blockquote, etc.\n */\n *:not(.fabric-editor-block-mark) >,\n /* For nested block marks apart from those with indentation mark */\n *:not(.fabric-editor-block-mark) >\n div.fabric-editor-block-mark:first-of-type\n /* Do not remove the margin top for nodes inside indentation marks */\n :not(.fabric-editor-indentation-mark)\n /* Do not remove the margin top for nodes inside alignment marks */\n :not(.fabric-editor-alignment),\n // If first element inside a block node has alignment mark, then remove the margin-top\n .fabric-editor-alignment:first-of-type:first-child,\n // If first document element has indentation mark remove margin-top\n .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child {\n p,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n .heading-wrapper {\n :first-child:not(style),\n style:first-child + * {\n margin-top: 0;\n }\n }\n }\n"])));
|
|
12
|
-
exports.blockMarksSharedStyles = blockMarksSharedStyles;
|
|
11
|
+
var blockMarksSharedStyles = exports.blockMarksSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /**\n * We need to remove margin-top from first item\n * inside doc, tableCell, tableHeader, blockquote, etc.\n */\n *:not(.fabric-editor-block-mark) >,\n /* For nested block marks apart from those with indentation mark */\n *:not(.fabric-editor-block-mark) >\n div.fabric-editor-block-mark:first-of-type\n /* Do not remove the margin top for nodes inside indentation marks */\n :not(.fabric-editor-indentation-mark)\n /* Do not remove the margin top for nodes inside alignment marks */\n :not(.fabric-editor-alignment),\n // If first element inside a block node has alignment mark, then remove the margin-top\n .fabric-editor-alignment:first-of-type:first-child,\n // If first document element has indentation mark remove margin-top\n .ProseMirror .fabric-editor-indentation-mark:first-of-type:first-child {\n p,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n .heading-wrapper {\n :first-child:not(style),\n style:first-child + * {\n margin-top: 0;\n }\n }\n }\n"])));
|
|
@@ -9,5 +9,4 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
11
|
var _templateObject;
|
|
12
|
-
var blockquoteSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n & blockquote {\n box-sizing: border-box;\n padding-left: ", ";\n border-left: 2px solid\n ", ";\n margin: ", " 0 0 0;\n margin-right: 0;\n\n [dir='rtl'] & {\n padding-left: 0;\n padding-right: ", ";\n }\n\n &:first-child {\n margin-top: 0;\n }\n\n &::before {\n content: '';\n }\n\n &::after {\n content: none;\n }\n\n & p {\n display: block;\n }\n\n & table,\n & table:last-child {\n display: inline-table;\n }\n }\n"])), "var(--ds-space-200, 16px)", "var(--ds-border, ".concat(_editorSharedStyles.akEditorBlockquoteBorderColor, ")"), _editorSharedStyles.blockNodesVerticalMargin, "var(--ds-space-200, 16px)");
|
|
13
|
-
exports.blockquoteSharedStyles = blockquoteSharedStyles;
|
|
12
|
+
var blockquoteSharedStyles = exports.blockquoteSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n & blockquote {\n box-sizing: border-box;\n padding-left: ", ";\n border-left: 2px solid\n ", ";\n margin: ", " 0 0 0;\n margin-right: 0;\n\n [dir='rtl'] & {\n padding-left: 0;\n padding-right: ", ";\n }\n\n &:first-child {\n margin-top: 0;\n }\n\n &::before {\n content: '';\n }\n\n &::after {\n content: none;\n }\n\n & p {\n display: block;\n }\n\n & table,\n & table:last-child {\n display: inline-table;\n }\n }\n"])), "var(--ds-space-200, 16px)", "var(--ds-border, ".concat(_editorSharedStyles.akEditorBlockquoteBorderColor, ")"), _editorSharedStyles.blockNodesVerticalMargin, "var(--ds-space-200, 16px)");
|
|
@@ -12,7 +12,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
12
12
|
var _components = require("@atlaskit/theme/components");
|
|
13
13
|
var _constants = require("@atlaskit/theme/constants");
|
|
14
14
|
var _templateObject, _templateObject2;
|
|
15
|
-
var CodeBlockSharedCssClassName = {
|
|
15
|
+
var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
|
|
16
16
|
CODEBLOCK_CONTAINER: 'code-block',
|
|
17
17
|
CODEBLOCK_START: 'code-block--start',
|
|
18
18
|
CODEBLOCK_END: 'code-block--end',
|
|
@@ -21,8 +21,7 @@ var CodeBlockSharedCssClassName = {
|
|
|
21
21
|
CODEBLOCK_CONTENT: 'code-content',
|
|
22
22
|
DS_CODEBLOCK: '[data-ds--code--code-block]'
|
|
23
23
|
};
|
|
24
|
-
exports.
|
|
25
|
-
var codeBlockSharedStyles = function codeBlockSharedStyles(props) {
|
|
24
|
+
var codeBlockSharedStyles = exports.codeBlockSharedStyles = function codeBlockSharedStyles(props) {
|
|
26
25
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n position: relative;\n background-color: ", ";\n border-radius: ", "px;\n margin: ", " 0 0 0;\n font-family: ", ";\n min-width: ", "px;\n cursor: pointer;\n\n --ds--code--bg-color: transparent;\n\n /* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n white-space: normal;\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n top: 0px;\n left: 0px;\n }\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n bottom: 0px;\n right: 0px;\n }\n\n .", " {\n background-color: ", ";\n display: flex;\n border-radius: ", "px;\n width: 100%;\n counter-reset: line;\n overflow-x: auto;\n\n background-image: ", ";\n\n background-repeat: no-repeat;\n background-attachment: local, local, local, local, scroll, scroll, scroll,\n scroll;\n background-size: ", " 100%,\n ", " 100%, ", " 100%,\n ", " 100%, ", " 100%,\n 1px 100%, ", " 100%, 1px 100%;\n background-position: 0 0, 0 0, 100% 0, 100% 0, 100% 0, 100% 0, 0 0, 0 0;\n\n /* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n overflow-y: hidden;\n }\n\n .", " {\n flex-shrink: 0;\n text-align: right;\n background-color: ", ";\n padding: ", ";\n position: relative;\n\n span {\n display: block;\n line-height: 0;\n font-size: 0;\n\n ::before {\n display: inline-block;\n content: counter(line);\n counter-increment: line;\n color: ", ";\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n\n .", " {\n display: flex;\n flex: 1;\n\n code {\n flex-grow: 1;\n tab-size: 4;\n cursor: text;\n color: ", ";\n border-radius: ", "px;\n margin: ", ";\n white-space: pre;\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", (0, _constants.borderRadius)(), _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorCodeFontFamily, _editorSharedStyles.akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _components.themed)({
|
|
27
26
|
light: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
28
27
|
dark: "var(--ds-background-neutral, ".concat(_colors.DN50, ")")
|
|
@@ -43,6 +42,4 @@ var codeBlockSharedStyles = function codeBlockSharedStyles(props) {
|
|
|
43
42
|
dark: "var(--ds-text, ".concat(_colors.DN800, ")")
|
|
44
43
|
})(props), (0, _constants.borderRadius)(), "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()));
|
|
45
44
|
};
|
|
46
|
-
exports.
|
|
47
|
-
var codeBlockInListSafariFix = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ::before {\n content: ' ';\n line-height: ", ";\n }\n\n > p:first-child,\n > .code-block:first-child,\n > .ProseMirror-gapcursor:first-child + .code-block {\n margin-top: -", "em !important;\n }\n"])), _editorSharedStyles.akEditorLineHeight, _editorSharedStyles.akEditorLineHeight);
|
|
48
|
-
exports.codeBlockInListSafariFix = codeBlockInListSafariFix;
|
|
45
|
+
var codeBlockInListSafariFix = exports.codeBlockInListSafariFix = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ::before {\n content: ' ';\n line-height: ", ";\n }\n\n > p:first-child,\n > .code-block:first-child,\n > .ProseMirror-gapcursor:first-child + .code-block {\n margin-top: -", "em !important;\n }\n"])), _editorSharedStyles.akEditorLineHeight, _editorSharedStyles.akEditorLineHeight);
|
|
@@ -11,11 +11,10 @@ var _inline = require("@atlaskit/code/inline");
|
|
|
11
11
|
var _colors = require("@atlaskit/theme/colors");
|
|
12
12
|
var _components = require("@atlaskit/theme/components");
|
|
13
13
|
var _templateObject;
|
|
14
|
-
var codeMarkSharedStyles = function codeMarkSharedStyles(props) {
|
|
14
|
+
var codeMarkSharedStyles = exports.codeMarkSharedStyles = function codeMarkSharedStyles(props) {
|
|
15
15
|
var theme = (0, _components.getTheme)(props);
|
|
16
16
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .code {\n --ds--code--bg-color: ", ";\n ", "\n }\n "])), (0, _components.themed)({
|
|
17
17
|
light: "var(--ds-background-neutral, ".concat(_colors.N30A, ")"),
|
|
18
18
|
dark: "var(--ds-background-neutral, ".concat(_colors.DN70, ")")
|
|
19
19
|
})(props), (0, _inline.getCodeStyles)(theme));
|
|
20
|
-
};
|
|
21
|
-
exports.codeMarkSharedStyles = codeMarkSharedStyles;
|
|
20
|
+
};
|
|
@@ -9,5 +9,4 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
11
|
var _templateObject;
|
|
12
|
-
var columnLayoutSharedStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n [data-layout-section] {\n position: relative;\n display: flex;\n flex-direction: row;\n & > * {\n flex: 1;\n min-width: 0;\n }\n\n & > .unsupportedBlockView-content-wrap {\n min-width: initial;\n }\n\n @media screen and (max-width: ", "px) {\n flex-direction: column;\n }\n }\n"])), _editorSharedStyles.gridMediumMaxWidth);
|
|
13
|
-
exports.columnLayoutSharedStyle = columnLayoutSharedStyle;
|
|
12
|
+
var columnLayoutSharedStyle = exports.columnLayoutSharedStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n [data-layout-section] {\n position: relative;\n display: flex;\n flex-direction: row;\n & > * {\n flex: 1;\n min-width: 0;\n }\n\n & > .unsupportedBlockView-content-wrap {\n min-width: initial;\n }\n\n @media screen and (max-width: ", "px) {\n flex-direction: column;\n }\n }\n"])), _editorSharedStyles.gridMediumMaxWidth);
|
|
@@ -8,10 +8,8 @@ exports.dateSharedStyle = exports.DateSharedCssClassName = void 0;
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _templateObject;
|
|
11
|
-
var DateSharedCssClassName = {
|
|
11
|
+
var DateSharedCssClassName = exports.DateSharedCssClassName = {
|
|
12
12
|
DATE_WRAPPER: "date-lozenger-container",
|
|
13
13
|
DATE_CONTAINER: 'dateView-content-wrap'
|
|
14
14
|
};
|
|
15
|
-
exports.
|
|
16
|
-
var dateSharedStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " span {\n white-space: unset;\n }\n"])), DateSharedCssClassName.DATE_WRAPPER);
|
|
17
|
-
exports.dateSharedStyle = dateSharedStyle;
|
|
15
|
+
var dateSharedStyle = exports.dateSharedStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " span {\n white-space: unset;\n }\n"])), DateSharedCssClassName.DATE_WRAPPER);
|