@atlaskit/editor-common 78.11.4 → 78.11.6
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/.eslintrc.js +8 -0
- package/CHANGELOG.md +18 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/__tests_external__/page-objects/Editor.js +1 -1
- package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +1 -1
- package/dist/cjs/__tests_external__/page-objects/Renderer.js +1 -1
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/analytics/types/table-events.js +1 -0
- package/dist/cjs/annotation/index.js +1 -1
- package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -2
- package/dist/cjs/card/index.js +2 -2
- package/dist/cjs/clipboard/index.js +2 -2
- package/dist/cjs/collab/index.js +40 -10
- package/dist/cjs/element-browser/ElementBrowser.js +3 -3
- package/dist/cjs/element-browser/components/CategoryList.js +2 -2
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +2 -2
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +92 -15
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +6 -5
- package/dist/cjs/element-browser/components/ElementSearch.js +5 -6
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/cjs/element-browser/hooks/use-container-width.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -3
- package/dist/cjs/extensibility/Extension/Lozenge.js +1 -1
- package/dist/cjs/extensibility/Extension/styles.js +1 -1
- package/dist/cjs/extensibility/Extension.js +3 -3
- package/dist/cjs/extensibility/ExtensionComponent.js +3 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +2 -2
- package/dist/cjs/extensibility/extensionNodeView.js +1 -1
- package/dist/cjs/extensibility/index.js +2 -2
- package/dist/cjs/icons/index.js +2 -2
- package/dist/cjs/keymaps/index.js +10 -7
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +2 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -4
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +15 -7
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -4
- package/dist/cjs/link/LinkSearch/ToolbarComponents.js +17 -6
- package/dist/cjs/link/LinkSearch/index.js +1 -2
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
- package/dist/cjs/link/index.js +2 -2
- package/dist/cjs/media-inline/styles.js +2 -0
- package/dist/cjs/monitoring/error.js +3 -3
- package/dist/cjs/preset/editor-commands.js +1 -1
- package/dist/cjs/provider-factory/with-providers.js +1 -1
- package/dist/cjs/quick-insert/assets/index.js +2 -2
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -0
- package/dist/cjs/resizer/Resizer.js +8 -11
- package/dist/cjs/safe-plugin/index.js +1 -1
- package/dist/cjs/selection/gap-cursor/selection.js +1 -1
- package/dist/cjs/selection/gap-cursor/styles.js +12 -3
- package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +1 -1
- package/dist/cjs/styles/shared/annotation.js +18 -4
- package/dist/cjs/styles/shared/block-marks.js +1 -0
- package/dist/cjs/styles/shared/blockquote.js +29 -4
- package/dist/cjs/styles/shared/code-block.js +1 -0
- package/dist/cjs/styles/shared/code-mark.js +8 -3
- package/dist/cjs/styles/shared/column-layout.js +17 -3
- package/dist/cjs/styles/shared/date.js +4 -3
- package/dist/cjs/styles/shared/embedCard.js +19 -5
- package/dist/cjs/styles/shared/expand.js +3 -5
- package/dist/cjs/styles/shared/grid.js +28 -4
- package/dist/cjs/styles/shared/headings.js +34 -3
- package/dist/cjs/styles/shared/indentation.js +28 -4
- package/dist/cjs/styles/shared/link.js +5 -4
- package/dist/cjs/styles/shared/lists.js +2 -0
- package/dist/cjs/styles/shared/media-single.js +39 -3
- package/dist/cjs/styles/shared/panel.js +6 -3
- package/dist/cjs/styles/shared/paragraph.js +11 -4
- package/dist/cjs/styles/shared/plugins.js +30 -7
- package/dist/cjs/styles/shared/resizer.js +5 -3
- package/dist/cjs/styles/shared/rule.js +10 -4
- package/dist/cjs/styles/shared/shadow.js +31 -3
- package/dist/cjs/styles/shared/smartCard.js +2 -0
- package/dist/cjs/styles/shared/table.js +2 -0
- package/dist/cjs/styles/shared/tableCell.js +2 -4
- package/dist/cjs/styles/shared/text-color.js +8 -4
- package/dist/cjs/styles/shared/unsupported-content.js +2 -0
- package/dist/cjs/styles/shared/whitespace.js +4 -4
- package/dist/cjs/ui/Announcer/announcer.js +4 -2
- package/dist/cjs/ui/BaseTheme/index.js +2 -2
- package/dist/cjs/ui/Caption/index.js +1 -1
- package/dist/cjs/ui/ContextPanel/context.js +1 -1
- package/dist/cjs/ui/DropList/index.js +2 -2
- package/dist/cjs/ui/Emoji/index.js +3 -3
- package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/Expand/index.js +3 -3
- package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/cjs/ui/IntlProviderIfMissingWrapper/index.js +2 -2
- package/dist/cjs/ui/Layer/index.js +3 -4
- package/dist/cjs/ui/MediaSingle/styled.js +16 -8
- package/dist/cjs/ui/Mention/index.js +3 -3
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
- package/dist/cjs/ui/Mention/mention-with-providers.js +3 -3
- package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -2
- package/dist/cjs/ui/OverflowShadow/index.js +1 -1
- package/dist/cjs/ui/PanelTextInput/index.js +1 -1
- package/dist/cjs/ui/Popup/index.js +1 -1
- package/dist/cjs/ui/PortalProvider/index.js +1 -1
- package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
- package/dist/cjs/ui/ResizerLegacy/styled.js +1 -0
- package/dist/cjs/ui/UnsupportedBlock/index.js +3 -3
- package/dist/cjs/ui/UnsupportedInline/index.js +18 -5
- package/dist/cjs/ui/WidthProvider/index.js +2 -2
- package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +1 -1
- package/dist/cjs/ui/clear-next-sibling-margin-top.js +12 -5
- package/dist/cjs/ui/index.js +2 -2
- package/dist/cjs/ui/with-outer-listeners.js +3 -3
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +3 -3
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +21 -5
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +2 -2
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +2 -2
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +35 -7
- package/dist/cjs/ui-menu/Dropdown/index.js +3 -3
- package/dist/cjs/ui-menu/DropdownContainer/index.js +2 -2
- package/dist/cjs/ui-menu/DropdownMenu/index.js +3 -4
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +2 -2
- package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
- package/dist/cjs/ui-menu/index.js +2 -2
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +3 -3
- package/dist/cjs/utils/imageLoader.js +3 -3
- package/dist/cjs/with-plugin-state/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/analytics/types/table-events.js +1 -0
- package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -0
- package/dist/es2019/collab/index.js +36 -38
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +83 -94
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +6 -5
- package/dist/es2019/element-browser/components/ElementSearch.js +3 -4
- package/dist/es2019/extensibility/Extension/Extension/styles.js +4 -4
- package/dist/es2019/extensibility/Extension/styles.js +1 -1
- package/dist/es2019/extensibility/ExtensionComponent.js +0 -1
- package/dist/es2019/extensions/types/field-definitions.js +1 -0
- package/dist/es2019/keymaps/index.js +7 -11
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +14 -14
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +2 -1
- package/dist/es2019/link/LinkSearch/ToolbarComponents.js +17 -18
- package/dist/es2019/link/LinkSearch/index.js +0 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +0 -1
- package/dist/es2019/media-inline/styles.js +2 -0
- package/dist/es2019/media-inline/views/icon-wrapper.js +0 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -0
- package/dist/es2019/resizer/Resizer.js +2 -3
- package/dist/es2019/selection/gap-cursor/styles.js +11 -9
- package/dist/es2019/styles/shared/annotation.js +13 -12
- package/dist/es2019/styles/shared/block-marks.js +1 -0
- package/dist/es2019/styles/shared/blockquote.js +27 -34
- package/dist/es2019/styles/shared/code-block.js +1 -0
- package/dist/es2019/styles/shared/code-mark.js +5 -5
- package/dist/es2019/styles/shared/column-layout.js +15 -17
- package/dist/es2019/styles/shared/date.js +4 -4
- package/dist/es2019/styles/shared/embedCard.js +17 -21
- package/dist/es2019/styles/shared/expand.js +3 -4
- package/dist/es2019/styles/shared/grid.js +27 -31
- package/dist/es2019/styles/shared/headings.js +36 -35
- package/dist/es2019/styles/shared/indentation.js +26 -20
- package/dist/es2019/styles/shared/link.js +4 -4
- package/dist/es2019/styles/shared/lists.js +2 -0
- package/dist/es2019/styles/shared/media-single.js +42 -65
- package/dist/es2019/styles/shared/panel.js +6 -6
- package/dist/es2019/styles/shared/paragraph.js +10 -9
- package/dist/es2019/styles/shared/plugins.js +29 -34
- package/dist/es2019/styles/shared/resizer.js +8 -3
- package/dist/es2019/styles/shared/rule.js +9 -8
- package/dist/es2019/styles/shared/shadow.js +35 -65
- package/dist/es2019/styles/shared/smartCard.js +2 -0
- package/dist/es2019/styles/shared/table.js +2 -0
- package/dist/es2019/styles/shared/tableCell.js +1 -3
- package/dist/es2019/styles/shared/text-color.js +7 -8
- package/dist/es2019/styles/shared/unsupported-content.js +2 -0
- package/dist/es2019/styles/shared/whitespace.js +4 -4
- package/dist/es2019/ui/Announcer/announcer.js +2 -0
- package/dist/es2019/ui/ContextPanel/context.js +1 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/index.js +3 -4
- package/dist/es2019/ui/Layer/index.js +0 -1
- package/dist/es2019/ui/MediaSingle/styled.js +37 -31
- package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -3
- package/dist/es2019/ui/ResizerLegacy/styled.js +2 -0
- package/dist/es2019/ui/UnsupportedBlock/index.js +2 -2
- package/dist/es2019/ui/UnsupportedInline/index.js +15 -15
- package/dist/es2019/ui/clear-next-sibling-margin-top.js +11 -9
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +20 -24
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +34 -35
- package/dist/es2019/ui-menu/DropdownMenu/index.js +0 -1
- package/dist/es2019/utils/dom.js +1 -0
- package/dist/es2019/with-plugin-state/index.js +1 -0
- package/dist/esm/__tests_external__/page-objects/Editor.js +1 -1
- package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +1 -1
- package/dist/esm/__tests_external__/page-objects/Renderer.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/analytics/types/table-events.js +1 -0
- package/dist/esm/annotation/index.js +1 -1
- package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -0
- package/dist/esm/collab/index.js +40 -8
- package/dist/esm/element-browser/ElementBrowser.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +90 -13
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +6 -5
- package/dist/esm/element-browser/components/ElementSearch.js +3 -4
- package/dist/esm/extensibility/Extension/Extension/styles.js +4 -4
- package/dist/esm/extensibility/Extension/Lozenge.js +1 -1
- package/dist/esm/extensibility/Extension/styles.js +1 -1
- package/dist/esm/extensibility/Extension.js +1 -1
- package/dist/esm/extensibility/ExtensionComponent.js +1 -2
- package/dist/esm/extensibility/extensionNodeView.js +1 -1
- package/dist/esm/extensions/types/field-definitions.js +1 -0
- package/dist/esm/keymaps/index.js +7 -5
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +15 -6
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +3 -2
- package/dist/esm/link/LinkSearch/ToolbarComponents.js +17 -5
- package/dist/esm/link/LinkSearch/index.js +1 -2
- package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
- package/dist/esm/media-inline/media-inline-image-card.js +0 -1
- package/dist/esm/media-inline/styles.js +2 -0
- package/dist/esm/media-inline/views/icon-wrapper.js +0 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/preset/editor-commands.js +1 -1
- package/dist/esm/provider-factory/with-providers.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -0
- package/dist/esm/resizer/Resizer.js +2 -5
- package/dist/esm/safe-plugin/index.js +1 -1
- package/dist/esm/selection/gap-cursor/selection.js +1 -1
- package/dist/esm/selection/gap-cursor/styles.js +12 -3
- package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +1 -1
- package/dist/esm/styles/shared/annotation.js +18 -4
- package/dist/esm/styles/shared/block-marks.js +1 -0
- package/dist/esm/styles/shared/blockquote.js +29 -3
- package/dist/esm/styles/shared/code-block.js +1 -0
- package/dist/esm/styles/shared/code-mark.js +8 -3
- package/dist/esm/styles/shared/column-layout.js +17 -3
- package/dist/esm/styles/shared/date.js +4 -3
- package/dist/esm/styles/shared/embedCard.js +19 -4
- package/dist/esm/styles/shared/expand.js +3 -4
- package/dist/esm/styles/shared/grid.js +28 -3
- package/dist/esm/styles/shared/headings.js +34 -3
- package/dist/esm/styles/shared/indentation.js +28 -3
- package/dist/esm/styles/shared/link.js +5 -3
- package/dist/esm/styles/shared/lists.js +2 -0
- package/dist/esm/styles/shared/media-single.js +39 -3
- package/dist/esm/styles/shared/panel.js +6 -3
- package/dist/esm/styles/shared/paragraph.js +11 -3
- package/dist/esm/styles/shared/plugins.js +30 -6
- package/dist/esm/styles/shared/resizer.js +4 -2
- package/dist/esm/styles/shared/rule.js +10 -3
- package/dist/esm/styles/shared/shadow.js +31 -3
- package/dist/esm/styles/shared/smartCard.js +2 -0
- package/dist/esm/styles/shared/table.js +2 -0
- package/dist/esm/styles/shared/tableCell.js +1 -3
- package/dist/esm/styles/shared/text-color.js +8 -3
- package/dist/esm/styles/shared/unsupported-content.js +2 -0
- package/dist/esm/styles/shared/whitespace.js +4 -3
- package/dist/esm/ui/Announcer/announcer.js +2 -0
- package/dist/esm/ui/Caption/index.js +1 -1
- package/dist/esm/ui/ContextPanel/context.js +2 -1
- package/dist/esm/ui/DropList/index.js +2 -2
- package/dist/esm/ui/Emoji/index.js +1 -1
- package/dist/esm/ui/ErrorBoundary/index.js +1 -1
- package/dist/esm/ui/Expand/index.js +2 -2
- package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
- package/dist/esm/ui/Layer/index.js +1 -2
- package/dist/esm/ui/MediaSingle/styled.js +16 -8
- package/dist/esm/ui/Mention/index.js +1 -1
- package/dist/esm/ui/Mention/mention-with-providers.js +1 -1
- package/dist/esm/ui/MultiBodiedExtension/index.js +1 -3
- package/dist/esm/ui/OverflowShadow/index.js +1 -1
- package/dist/esm/ui/PanelTextInput/index.js +1 -1
- package/dist/esm/ui/Popup/index.js +1 -1
- package/dist/esm/ui/PortalProvider/index.js +1 -1
- package/dist/esm/ui/ResizerLegacy/index.js +1 -1
- package/dist/esm/ui/ResizerLegacy/styled.js +2 -0
- package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
- package/dist/esm/ui/UnsupportedInline/index.js +15 -3
- package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +1 -1
- package/dist/esm/ui/clear-next-sibling-margin-top.js +12 -5
- package/dist/esm/ui/with-outer-listeners.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +21 -5
- package/dist/esm/ui-menu/ColorPickerButton/index.js +34 -7
- package/dist/esm/ui-menu/Dropdown/index.js +1 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +1 -2
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
- package/dist/esm/utils/dom.js +1 -0
- package/dist/esm/utils/imageLoader.js +1 -1
- package/dist/esm/with-plugin-state/index.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types/analytics/types/table-events.d.ts +10 -1
- package/dist/types/collab/index.d.ts +1 -1
- package/dist/types/element-browser/components/ElementBrowserLoader.d.ts +1 -1
- package/dist/types/extensions/types/extension-manifest-common.d.ts +1 -1
- package/dist/types/extensions/types/extension-manifest.d.ts +1 -1
- package/dist/types/icons/index.d.ts +1 -1
- package/dist/types/link/LinkSearch/withActivityProvider.d.ts +1 -1
- package/dist/types/media-inline/inline-image-wrapper.d.ts +3 -2
- package/dist/types/media-inline/media-inline-image-card.d.ts +4 -4
- package/dist/types/media-inline/views/error-view.d.ts +3 -2
- package/dist/types/media-inline/views/frame.d.ts +3 -2
- package/dist/types/media-inline/views/icon-wrapper.d.ts +3 -2
- package/dist/types/media-inline/views/loading-view.d.ts +2 -2
- package/dist/types/quick-insert/assets/index.d.ts +24 -24
- package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +1 -1
- package/dist/types/react-node-view/index.d.ts +2 -2
- package/dist/types/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -1
- package/dist/types/styles/shared/resizer.d.ts +1 -0
- package/dist/types/types/annotation/index.d.ts +2 -2
- package/dist/types/types/floating-toolbar.d.ts +3 -3
- package/dist/types/ui/Announcer/announcer.d.ts +1 -1
- package/dist/types/ui/DropList/index.d.ts +1 -2
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -0
- package/dist/types/ui/IntlErrorBoundary/index.d.ts +1 -0
- package/dist/types/ui/Layer/index.d.ts +2 -1
- package/dist/types/ui/MediaSingle/styled.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types/ui/Popup/index.d.ts +1 -0
- package/dist/types/ui/UnsupportedInline/index.d.ts +3 -3
- package/dist/types/ui/with-outer-listeners.d.ts +3 -2
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/ui-menu/ArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types/ui-menu/Dropdown/index.d.ts +1 -1
- package/dist/types/ui-menu/DropdownMenu/index.d.ts +1 -1
- package/dist/types/ui-menu/DropdownMenu/types.d.ts +1 -0
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -2
- package/dist/types/utils/imageLoader.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/table-events.d.ts +10 -1
- package/dist/types-ts4.5/collab/index.d.ts +1 -1
- package/dist/types-ts4.5/element-browser/components/ElementBrowserLoader.d.ts +1 -1
- package/dist/types-ts4.5/extensions/types/extension-manifest-common.d.ts +1 -1
- package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +1 -1
- package/dist/types-ts4.5/icons/index.d.ts +1 -1
- package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +1 -1
- package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +3 -2
- package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +4 -4
- package/dist/types-ts4.5/media-inline/views/error-view.d.ts +3 -2
- package/dist/types-ts4.5/media-inline/views/frame.d.ts +3 -2
- package/dist/types-ts4.5/media-inline/views/icon-wrapper.d.ts +3 -2
- package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +2 -2
- package/dist/types-ts4.5/quick-insert/assets/index.d.ts +24 -24
- package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +1 -1
- package/dist/types-ts4.5/react-node-view/index.d.ts +2 -2
- package/dist/types-ts4.5/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +1 -0
- package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +3 -3
- package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +1 -1
- package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -2
- package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/Layer/index.d.ts +2 -1
- package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +1 -1
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Popup/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +3 -2
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +1 -0
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -2
- package/dist/types-ts4.5/utils/imageLoader.d.ts +1 -1
- package/package.json +4 -3
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { N30, N40 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { BODIED_EXT_MBE_MARGIN_TOP } from '../../styles';
|
|
6
|
-
|
|
7
5
|
// Wraps the navigation bar and extensionFrames
|
|
8
6
|
const mbeExtensionContainer = css({
|
|
9
7
|
background: 'transparent !important',
|
|
@@ -62,7 +60,7 @@ const extensionFrameContent = css({
|
|
|
62
60
|
paddingRight: `${"var(--ds-space-150, 12px)"} !important`
|
|
63
61
|
},
|
|
64
62
|
'.bodiedExtensionView-content-wrap': {
|
|
65
|
-
marginTop: `${
|
|
63
|
+
marginTop: `${"var(--ds-space-150, 12px)"} !important`
|
|
66
64
|
},
|
|
67
65
|
'.extensionView-content-wrap': {
|
|
68
66
|
marginTop: `${"var(--ds-space-100, 8px)"} !important`
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { MediaSingleDimensionHelper } from '../MediaSingle/styled';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
3
5
|
export const wrapperStyle = props => css`
|
|
4
6
|
& > div {
|
|
5
7
|
${MediaSingleDimensionHelper(props)};
|
|
@@ -19,9 +19,9 @@ const blockNodeStyle = css`
|
|
|
19
19
|
cursor: default;
|
|
20
20
|
display: flex;
|
|
21
21
|
font-size: ${relativeFontSizeToBase16(fontSize())};
|
|
22
|
-
margin:
|
|
22
|
+
margin: ${"var(--ds-space-100, 8px)"} 0;
|
|
23
23
|
min-height: 24px;
|
|
24
|
-
padding:
|
|
24
|
+
padding: ${"var(--ds-space-150, 12px)"};
|
|
25
25
|
text-align: center;
|
|
26
26
|
vertical-align: text-bottom;
|
|
27
27
|
min-width: 120px;
|
|
@@ -11,21 +11,21 @@ import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
|
11
11
|
import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
12
12
|
import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
|
|
13
13
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
14
|
-
const inlineNodeStyle = css
|
|
15
|
-
|
|
16
|
-
background:
|
|
17
|
-
border: 1px dashed ${`var(--ds-border-disabled, ${N50})`}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
cursor: default
|
|
21
|
-
display: inline-flex
|
|
22
|
-
|
|
23
|
-
margin: 0 ${"var(--ds-space-025, 2px)"}
|
|
24
|
-
|
|
25
|
-
padding: 0
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
const inlineNodeStyle = css({
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
background: `var(--ds-background-disabled, ${N30})`,
|
|
17
|
+
border: `1px dashed ${`var(--ds-border-disabled, ${N50})`}`,
|
|
18
|
+
borderRadius: `${borderRadius()}px`,
|
|
19
|
+
boxSizing: 'border-box',
|
|
20
|
+
cursor: 'default',
|
|
21
|
+
display: 'inline-flex',
|
|
22
|
+
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
23
|
+
margin: `0 ${"var(--ds-space-025, 2px)"}`,
|
|
24
|
+
minHeight: '24px',
|
|
25
|
+
padding: `0 ${"var(--ds-space-100, 8px)"}`,
|
|
26
|
+
verticalAlign: 'middle',
|
|
27
|
+
whiteSpace: 'nowrap'
|
|
28
|
+
});
|
|
29
29
|
const UnsupportedInlineNode = ({
|
|
30
30
|
node,
|
|
31
31
|
intl,
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
|
|
3
3
|
// We use !important to ensure next sibling gets the margin reset no matter what
|
|
4
|
-
|
|
5
|
-
export const clearNextSiblingMarginTopStyle = css
|
|
6
|
-
& + * {
|
|
7
|
-
|
|
4
|
+
|
|
5
|
+
export const clearNextSiblingMarginTopStyle = css({
|
|
6
|
+
'& + *': {
|
|
7
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
8
|
+
marginTop: '0 !important'
|
|
8
9
|
}
|
|
9
|
-
|
|
10
|
+
});
|
|
10
11
|
const textElements = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
11
12
|
const nextSiblingBlockMarkContentSelectors = textElements.map(elem => `+ .fabric-editor-block-mark > ${elem}`).join(',');
|
|
12
|
-
export const clearNextSiblingBlockMarkMarginTopStyle = css
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
export const clearNextSiblingBlockMarkMarginTopStyle = css({
|
|
14
|
+
[`${nextSiblingBlockMarkContentSelectors}`]: {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
16
|
+
marginTop: '0 !important'
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
});
|
|
@@ -1,34 +1,30 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N0, N50, N900 } from '@atlaskit/theme/colors';
|
|
3
|
-
|
|
4
3
|
/** this is not new usage - old code extracted from editor-core */
|
|
5
4
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
6
|
-
export const buttonStyle = css
|
|
7
|
-
height: 26px
|
|
8
|
-
width: 26px
|
|
9
|
-
background: ${N900}
|
|
10
|
-
padding: 0
|
|
11
|
-
|
|
12
|
-
border: 1px solid ${N0}
|
|
13
|
-
cursor: pointer
|
|
14
|
-
display: block
|
|
15
|
-
|
|
5
|
+
export const buttonStyle = css({
|
|
6
|
+
height: '26px',
|
|
7
|
+
width: '26px',
|
|
8
|
+
background: `var(--ds-background-neutral, ${N900})`,
|
|
9
|
+
padding: 0,
|
|
10
|
+
borderRadius: '4px',
|
|
11
|
+
border: `1px solid ${`var(--ds-border-inverse, ${N0})`}`,
|
|
12
|
+
cursor: 'pointer',
|
|
13
|
+
display: 'block'
|
|
14
|
+
});
|
|
16
15
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
17
16
|
|
|
18
17
|
/** this is not new usage - old code extracted from editor-core */
|
|
19
18
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
20
|
-
export const buttonWrapperStyle = css
|
|
21
|
-
border: 1px solid transparent
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
&:focus,
|
|
30
|
-
&:hover {
|
|
31
|
-
border-color: ${N50} !important;
|
|
19
|
+
export const buttonWrapperStyle = css({
|
|
20
|
+
border: '1px solid transparent',
|
|
21
|
+
fontSize: 0,
|
|
22
|
+
display: 'flex',
|
|
23
|
+
alignItems: 'center',
|
|
24
|
+
padding: "var(--ds-space-025, 2px)",
|
|
25
|
+
borderRadius: '6px',
|
|
26
|
+
'&:focus-within, &:focus, &:hover': {
|
|
27
|
+
borderColor: `${`var(--ds-border, ${N50})`} !important`
|
|
32
28
|
}
|
|
33
|
-
|
|
29
|
+
});
|
|
34
30
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -14,22 +14,22 @@ import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
|
|
|
14
14
|
import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
|
|
15
15
|
|
|
16
16
|
// helps adjusts position of popup
|
|
17
|
-
const colorPickerButtonWrapper = css
|
|
18
|
-
position: relative
|
|
19
|
-
|
|
20
|
-
const colorPickerExpandContainer = css
|
|
21
|
-
margin: 0px ${"var(--ds-space-negative-050, -4px)"}
|
|
22
|
-
|
|
17
|
+
const colorPickerButtonWrapper = css({
|
|
18
|
+
position: 'relative'
|
|
19
|
+
});
|
|
20
|
+
const colorPickerExpandContainer = css({
|
|
21
|
+
margin: `0px ${"var(--ds-space-negative-050, -4px)"}`
|
|
22
|
+
});
|
|
23
23
|
|
|
24
24
|
// Control the size of color picker buttons and preview
|
|
25
25
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4134
|
|
26
26
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
27
|
-
const colorPickerWrapper = () => css
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
padding:
|
|
32
|
-
|
|
27
|
+
const colorPickerWrapper = () => css({
|
|
28
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
29
|
+
backgroundColor: `var(--ds-surface-overlay, ${N0})`,
|
|
30
|
+
boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`,
|
|
31
|
+
padding: `${"var(--ds-space-100, 8px)"} 0px`
|
|
32
|
+
});
|
|
33
33
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
34
34
|
|
|
35
35
|
const ColorPaletteWithListeners = withOuterListeners(ColorPalette);
|
|
@@ -151,29 +151,28 @@ const ColorPickerButton = props => {
|
|
|
151
151
|
const currentColor = props.currentColor && props.hexToPaletteColor ? props.hexToPaletteColor(props.currentColor) : props.currentColor;
|
|
152
152
|
const buttonStyle = () => {
|
|
153
153
|
var _props$size, _props$size2, _props$size3;
|
|
154
|
-
return css
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
176
|
-
`;
|
|
154
|
+
return css({
|
|
155
|
+
padding: `${"var(--ds-space-075, 6px)"} 10px`,
|
|
156
|
+
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
157
|
+
height: `${!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''}`,
|
|
158
|
+
'&:before': {
|
|
159
|
+
display: 'flex',
|
|
160
|
+
justifyContent: 'center',
|
|
161
|
+
alignItems: 'center',
|
|
162
|
+
alignSelf: 'center',
|
|
163
|
+
content: "''",
|
|
164
|
+
border: `1px solid ${DEFAULT_BORDER_COLOR}`,
|
|
165
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
166
|
+
backgroundColor: currentColor || 'transparent',
|
|
167
|
+
width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
|
|
168
|
+
height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
|
|
169
|
+
padding: 0,
|
|
170
|
+
margin: `0px ${"var(--ds-space-025, 2px)"}`
|
|
171
|
+
},
|
|
172
|
+
'&:hover': {
|
|
173
|
+
background: `var(--ds-background-neutral-subtle-hovered, ${N30A})`
|
|
174
|
+
}
|
|
175
|
+
});
|
|
177
176
|
};
|
|
178
177
|
return jsx("div", {
|
|
179
178
|
css: colorPickerButtonWrapper
|
package/dist/es2019/utils/dom.js
CHANGED
|
@@ -11,6 +11,7 @@ const DEFAULT_SLOW_THRESHOLD = 4;
|
|
|
11
11
|
// It was using some private types from
|
|
12
12
|
// - EditorAction: packages/editor/editor-core/src/actions/index.ts
|
|
13
13
|
// - EditorSharedConfig: packages/editor/editor-core/src/labs/next/internal/context/shared-config.tsx
|
|
14
|
+
|
|
14
15
|
/**
|
|
15
16
|
* @private
|
|
16
17
|
* @deprecated
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
9
9
|
import { RendererPageObject } from './Renderer';
|
|
10
10
|
export var EditorPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
11
11
|
import { BlockCardPageObject, EmbedCardPageObject, InlineCardPageObject } from '@atlaskit/smart-card/in-product';
|
|
12
12
|
export var EditorSmartLinkPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
4
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7
|
-
function _isNativeReflectConstruct() {
|
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { InProductTestPageObject } from '@atlaskit/in-product-testing';
|
|
9
9
|
export var RendererPageObject = /*#__PURE__*/function (_InProductTestPageObj) {
|
|
10
10
|
_inherits(RendererPageObject, _InProductTestPageObj);
|
|
@@ -164,6 +164,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
164
164
|
INPUT_METHOD["TYPEAHEAD"] = "typeAhead";
|
|
165
165
|
INPUT_METHOD["DATASOURCE"] = "datasource_config";
|
|
166
166
|
INPUT_METHOD["TABLE_CONTEXT_MENU"] = "tableContextMenu";
|
|
167
|
+
INPUT_METHOD["MOUSE"] = "mouse";
|
|
167
168
|
return INPUT_METHOD;
|
|
168
169
|
}({});
|
|
169
170
|
export var TRIGGER_METHOD = /*#__PURE__*/function (TRIGGER_METHOD) {
|
|
@@ -23,6 +23,7 @@ export var TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
|
|
|
23
23
|
TABLE_ACTION["FIXED"] = "fixed";
|
|
24
24
|
TABLE_ACTION["RESIZED"] = "resized";
|
|
25
25
|
TABLE_ACTION["RESIZE_PERF_SAMPLING"] = "resizePerfSampling";
|
|
26
|
+
TABLE_ACTION["COLUMN_RESIZED"] = "columnResized";
|
|
26
27
|
TABLE_ACTION["OVERFLOW_CHANGED"] = "overflowChanged";
|
|
27
28
|
TABLE_ACTION["INITIAL_OVERFLOW_CAPTURED"] = "initialOverflowCaptured";
|
|
28
29
|
TABLE_ACTION["MOVED_ROW"] = "movedRow";
|
|
@@ -5,7 +5,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8
|
-
function _isNativeReflectConstruct() {
|
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
9
|
import { EventEmitter } from 'events';
|
|
10
10
|
export var AnnotationUpdateEmitter = /*#__PURE__*/function (_EventEmitter) {
|
|
11
11
|
_inherits(AnnotationUpdateEmitter, _EventEmitter);
|
|
@@ -20,6 +20,7 @@ import { alignAttributes, isInLayoutColumn, nonWrappedLayouts } from '../../util
|
|
|
20
20
|
|
|
21
21
|
// Workaround as we don't want to import this package into `editor-common`
|
|
22
22
|
// We'll get type errors if this gets out of sync with `editor-plugin-width`.
|
|
23
|
+
|
|
23
24
|
export var alignmentIcons = [{
|
|
24
25
|
id: 'editor.media.alignLeft',
|
|
25
26
|
value: 'align-start',
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { hexToRgba } from '@atlaskit/adf-schema';
|
|
5
5
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
@@ -7,8 +7,10 @@ import * as themeColors from '@atlaskit/theme/colors';
|
|
|
7
7
|
|
|
8
8
|
// Format of the payload returned by the callback function passed to the collab provider
|
|
9
9
|
// that gets called when syncing with the back-end service fails.
|
|
10
|
+
|
|
10
11
|
// Format of the document and its metadata returned from the collab provider
|
|
11
12
|
// after editing and for draft sync
|
|
13
|
+
|
|
12
14
|
// Provider Errors
|
|
13
15
|
// Emitted errors
|
|
14
16
|
export var PROVIDER_ERROR_CODE = /*#__PURE__*/function (PROVIDER_ERROR_CODE) {
|
|
@@ -134,13 +136,43 @@ export var colors = [themeColors.R100, themeColors.R300, themeColors.R500, theme
|
|
|
134
136
|
selection: hexToRgba(solid, 0.2)
|
|
135
137
|
};
|
|
136
138
|
});
|
|
137
|
-
var telepointerColorStyle = function telepointerColorStyle(color, index) {
|
|
138
|
-
return "\n &.color-".concat(index, " {\n background-color: ").concat(color.selection, ";\n &::after {\n background-color: ").concat(color.solid, ";\n color: ", "var(--ds-text-inverse, #fff)", ";\n border-color: ").concat(color.solid, ";\n }\n }\n");
|
|
139
|
-
};
|
|
140
139
|
export var TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
141
|
-
export var telepointerStyle = css
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
export var telepointerStyle = css.apply(void 0, [{
|
|
141
|
+
'.ProseMirror .telepointer': _defineProperty({
|
|
142
|
+
position: 'relative',
|
|
143
|
+
transition: 'opacity 200ms',
|
|
144
|
+
'&.telepointer-selection': {
|
|
145
|
+
lineHeight: 1.2,
|
|
146
|
+
pointerEvents: 'none',
|
|
147
|
+
userSelect: 'none'
|
|
148
|
+
},
|
|
149
|
+
'&.telepointer-selection-badge::after': {
|
|
150
|
+
content: 'attr(data-initial)',
|
|
151
|
+
position: 'absolute',
|
|
152
|
+
display: 'block',
|
|
153
|
+
// Disable top: -14px since it is necessary to align to cursor
|
|
154
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
155
|
+
top: '-14px',
|
|
156
|
+
fontSize: relativeFontSizeToBase16(9),
|
|
157
|
+
padding: "var(--ds-space-025, 2px)",
|
|
158
|
+
color: "var(--ds-text-inverse, white)",
|
|
159
|
+
left: '0px',
|
|
160
|
+
borderRadius: '2px 2px 2px 0',
|
|
161
|
+
lineHeight: 'initial'
|
|
162
|
+
}
|
|
163
|
+
}, "&.".concat(TELEPOINTER_DIM_CLASS), {
|
|
164
|
+
opacity: 0.2
|
|
165
|
+
})
|
|
166
|
+
}].concat(_toConsumableArray(colors.map(function (color, index) {
|
|
167
|
+
return _defineProperty({}, "&.color-".concat(index), {
|
|
168
|
+
backgroundColor: color.selection,
|
|
169
|
+
'&::after': {
|
|
170
|
+
backgroundColor: color.solid,
|
|
171
|
+
color: "var(--ds-text-inverse, #fff)",
|
|
172
|
+
borderColor: color.solid
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
}))));
|
|
144
176
|
var tintKey = 'collab:isDirtyTransaction';
|
|
145
177
|
export var isDirtyTransaction = function isDirtyTransaction(tr) {
|
|
146
178
|
return Boolean(tr.getMeta(tintKey));
|
|
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() {
|
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import React, { PureComponent } from 'react';
|
|
11
11
|
import StatelessElementBrowser from './components/StatelessElementBrowser';
|
|
12
12
|
var ElementBrowser = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
5
4
|
var _excluded = ["items", "mode", "selectedItemIndex", "focusedItemIndex", "setColumnCount", "createAnalyticsEvent", "emptyStateHandler", "selectedCategory", "searchTerm"];
|
|
6
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
7
5
|
/** @jsx jsx */
|
|
8
6
|
import React, { Fragment, memo, useCallback, useEffect, useMemo, useState } from 'react';
|
|
9
7
|
import { css, jsx } from '@emotion/react';
|
|
@@ -27,7 +25,21 @@ import EmptyState from './EmptyState';
|
|
|
27
25
|
import { getColumnCount, getScrollbarWidth } from './utils';
|
|
28
26
|
export var ICON_HEIGHT = 40;
|
|
29
27
|
export var ICON_WIDTH = 40;
|
|
30
|
-
export var itemIcon = css(
|
|
28
|
+
export var itemIcon = css({
|
|
29
|
+
width: "".concat(ICON_WIDTH, "px"),
|
|
30
|
+
height: "".concat(ICON_HEIGHT, "px"),
|
|
31
|
+
overflow: 'hidden',
|
|
32
|
+
border: "1px solid ".concat("var(--ds-border, rgba(223, 225, 229, 0.5))"),
|
|
33
|
+
borderRadius: "".concat(borderRadius(), "px"),
|
|
34
|
+
boxSizing: 'border-box',
|
|
35
|
+
display: 'flex',
|
|
36
|
+
justifyContent: 'center',
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
div: {
|
|
39
|
+
width: "".concat(ICON_WIDTH, "px"),
|
|
40
|
+
height: "".concat(ICON_HEIGHT, "px")
|
|
41
|
+
}
|
|
42
|
+
});
|
|
31
43
|
function ElementList(_ref) {
|
|
32
44
|
var items = _ref.items,
|
|
33
45
|
mode = _ref.mode,
|
|
@@ -221,21 +233,86 @@ var ItemContent = /*#__PURE__*/memo(function (_ref6) {
|
|
|
221
233
|
css: itemDescription
|
|
222
234
|
}, description)));
|
|
223
235
|
});
|
|
224
|
-
var elementItemsWrapper = css(
|
|
225
|
-
|
|
226
|
-
|
|
236
|
+
var elementItemsWrapper = css({
|
|
237
|
+
flex: 1,
|
|
238
|
+
flexFlow: 'row wrap',
|
|
239
|
+
alignItems: 'flex-start',
|
|
240
|
+
justifyContent: 'flex-start',
|
|
241
|
+
overflow: 'hidden',
|
|
242
|
+
padding: "var(--ds-space-025, 2px)",
|
|
243
|
+
'.ReactVirtualized__Collection': {
|
|
244
|
+
borderRadius: '3px',
|
|
245
|
+
outline: 'none',
|
|
246
|
+
':focus': {
|
|
247
|
+
boxShadow: "0 0 0 ".concat(ELEMENT_LIST_PADDING, "px ", "var(--ds-border-focused, ".concat(B100, ")"))
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
'.ReactVirtualized__Collection__innerScrollContainer': {
|
|
251
|
+
"div[class='element-item-wrapper']:last-child": {
|
|
252
|
+
paddingBottom: "var(--ds-space-050, 4px)"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
var elementItemWrapper = css({
|
|
257
|
+
div: {
|
|
258
|
+
button: {
|
|
259
|
+
height: '75px',
|
|
260
|
+
alignItems: 'flex-start',
|
|
261
|
+
padding: "var(--ds-space-150, 12px)"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
var itemBody = css({
|
|
266
|
+
display: 'flex',
|
|
267
|
+
flexDirection: 'row',
|
|
268
|
+
flexWrap: 'nowrap',
|
|
269
|
+
justifyContent: 'space-between',
|
|
270
|
+
lineHeight: 1.4,
|
|
271
|
+
width: '100%',
|
|
272
|
+
marginTop: "var(--ds-space-negative-025, -2px)"
|
|
273
|
+
});
|
|
227
274
|
|
|
228
275
|
/*
|
|
229
276
|
* -webkit-line-clamp is also supported by firefox 🎉
|
|
230
277
|
* https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/68#CSS
|
|
231
278
|
*/
|
|
232
|
-
var multilineStyle = css(
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
var
|
|
238
|
-
|
|
279
|
+
var multilineStyle = css({
|
|
280
|
+
display: '-webkit-box',
|
|
281
|
+
WebkitLineClamp: 2,
|
|
282
|
+
WebkitBoxOrient: 'vertical'
|
|
283
|
+
});
|
|
284
|
+
var itemDescription = css(multilineStyle, {
|
|
285
|
+
overflow: 'hidden',
|
|
286
|
+
fontSize: relativeFontSizeToBase16(11.67),
|
|
287
|
+
color: "var(--ds-text-subtle, ".concat(N200, ")"),
|
|
288
|
+
marginTop: "var(--ds-space-025, 2px)"
|
|
289
|
+
});
|
|
290
|
+
var itemText = css({
|
|
291
|
+
width: 'inherit',
|
|
292
|
+
whiteSpace: 'initial'
|
|
293
|
+
});
|
|
294
|
+
var itemTitleWrapper = css({
|
|
295
|
+
display: 'flex',
|
|
296
|
+
justifyContent: 'space-between'
|
|
297
|
+
});
|
|
298
|
+
var itemTitle = css({
|
|
299
|
+
width: '100%',
|
|
300
|
+
overflow: 'hidden',
|
|
301
|
+
whiteSpace: 'nowrap',
|
|
302
|
+
textOverflow: 'ellipsis'
|
|
303
|
+
});
|
|
304
|
+
var itemAfter = css({
|
|
305
|
+
flex: '0 0 auto',
|
|
306
|
+
paddingTop: "var(--ds-space-025, 2px)",
|
|
307
|
+
marginBottom: "var(--ds-space-negative-025, -2px)"
|
|
308
|
+
});
|
|
309
|
+
var itemIconStyle = css({
|
|
310
|
+
img: {
|
|
311
|
+
height: '40px',
|
|
312
|
+
width: '40px',
|
|
313
|
+
objectFit: 'cover'
|
|
314
|
+
}
|
|
315
|
+
});
|
|
239
316
|
var MemoizedElementListWithAnalytics = /*#__PURE__*/memo(withAnalyticsContext({
|
|
240
317
|
component: 'ElementList'
|
|
241
318
|
})(ElementList));
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
5
6
|
import NotFoundIllustration from './NotFoundIllustration';
|
|
6
7
|
export default function EmptyState(_ref) {
|
|
7
8
|
var onExternalLinkClick = _ref.onExternalLinkClick;
|
|
@@ -20,8 +21,8 @@ export default function EmptyState(_ref) {
|
|
|
20
21
|
id: "fabric.editor.elementbrowser.search.empty-state.sub-heading",
|
|
21
22
|
defaultMessage: "Try searching with a different term or discover new apps for Atlassian products.",
|
|
22
23
|
description: "Empty state sub-heading"
|
|
23
|
-
})), jsx(
|
|
24
|
-
|
|
24
|
+
})), jsx(Box, {
|
|
25
|
+
xcss: externalLinkWrapper
|
|
25
26
|
}, jsx(Button, {
|
|
26
27
|
appearance: "primary",
|
|
27
28
|
target: "_blank",
|
|
@@ -39,7 +40,7 @@ var emptyStateHeading = css({
|
|
|
39
40
|
color: "var(--ds-text, rgb(23, 43, 77))",
|
|
40
41
|
fontWeight: 500,
|
|
41
42
|
letterSpacing: '-0.008em',
|
|
42
|
-
marginTop:
|
|
43
|
+
marginTop: "var(--ds-space-300, 24px)"
|
|
43
44
|
});
|
|
44
45
|
var emptyStateSubHeading = css({
|
|
45
46
|
marginTop: "var(--ds-space-200, 16px)",
|
|
@@ -53,6 +54,6 @@ var emptyStateWrapper = css({
|
|
|
53
54
|
alignItems: 'center',
|
|
54
55
|
width: '100%'
|
|
55
56
|
});
|
|
56
|
-
var externalLinkWrapper =
|
|
57
|
-
marginTop:
|
|
57
|
+
var externalLinkWrapper = xcss({
|
|
58
|
+
marginTop: "var(--ds-space-150, 12px)"
|
|
58
59
|
});
|
|
@@ -112,8 +112,8 @@ function ElementSearch(_ref) {
|
|
|
112
112
|
}, assistiveMessage));
|
|
113
113
|
}
|
|
114
114
|
var styledShortcut = css(shortcutStyle, {
|
|
115
|
-
padding: "".concat(
|
|
116
|
-
width: "
|
|
115
|
+
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
|
|
116
|
+
width: "var(--ds-space-600, 48px)"
|
|
117
117
|
});
|
|
118
118
|
var wrapper = css({
|
|
119
119
|
'& > [data-ds--text-field--container]': {
|
|
@@ -122,9 +122,8 @@ var wrapper = css({
|
|
|
122
122
|
flex: '1 1 100%',
|
|
123
123
|
overflow: 'visible',
|
|
124
124
|
'& > [data-ds--text-field--input]': {
|
|
125
|
-
marginBottom: '3px',
|
|
126
125
|
fontSize: relativeFontSizeToBase16(14),
|
|
127
|
-
padding: "".concat(
|
|
126
|
+
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-075, 6px)", " ", "var(--ds-space-100, 8px)", " 0")
|
|
128
127
|
}
|
|
129
128
|
}
|
|
130
129
|
});
|