@atlaskit/editor-common 82.8.0 → 82.8.2
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/dist/cjs/card/LinkToolbarButtonGroup.js +1 -0
- package/dist/cjs/collab/index.js +1 -1
- package/dist/cjs/element-browser/ViewMore.js +2 -0
- package/dist/cjs/element-browser/components/CategoryList.js +1 -0
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +1 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +1 -0
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +1 -0
- package/dist/cjs/element-browser/components/ElementList/NotFoundIllustration.js +1 -0
- package/dist/cjs/element-browser/components/ElementSearch.js +2 -0
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +2 -0
- package/dist/cjs/element-browser/hooks/use-container-width.js +2 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +1 -0
- package/dist/cjs/extensibility/Extension/Extension/styles.js +2 -0
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +2 -0
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +2 -0
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +2 -0
- package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/index.js +1 -1
- package/dist/cjs/extensibility/Extension/styles.js +1 -0
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +1 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +2 -0
- package/dist/cjs/icons/shared/SteppedRainbowIconDecoration.js +1 -0
- package/dist/cjs/keymaps/index.js +2 -0
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -1
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +2 -1
- package/dist/cjs/link/LinkSearch/ToolbarComponents.js +2 -0
- package/dist/cjs/media-inline/inline-image-card.js +2 -0
- package/dist/cjs/media-inline/inline-image-wrapper.js +1 -1
- package/dist/cjs/media-inline/media-inline-image-card.js +1 -1
- package/dist/cjs/media-inline/styles.js +1 -1
- package/dist/cjs/media-inline/views/error-view.js +2 -0
- package/dist/cjs/media-inline/views/frame.js +2 -0
- package/dist/cjs/media-inline/views/icon-wrapper.js +1 -0
- package/dist/cjs/media-inline/views/loading-view.js +2 -0
- package/dist/cjs/media-inline/views/wrapper.js +2 -0
- package/dist/cjs/media-single/CommentBadge.js +2 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/cjs/selection/gap-cursor/styles.js +1 -1
- package/dist/cjs/selection/index.js +4 -16
- package/dist/cjs/styles/shared/annotation.js +1 -1
- package/dist/cjs/styles/shared/background-color.js +2 -0
- package/dist/cjs/styles/shared/block-marks.js +1 -0
- package/dist/cjs/styles/shared/blockquote.js +2 -0
- package/dist/cjs/styles/shared/code-block.js +1 -0
- package/dist/cjs/styles/shared/code-mark.js +1 -1
- package/dist/cjs/styles/shared/column-layout.js +2 -0
- package/dist/cjs/styles/shared/date.js +2 -0
- package/dist/cjs/styles/shared/embedCard.js +2 -0
- package/dist/cjs/styles/shared/expand.js +2 -0
- package/dist/cjs/styles/shared/grid.js +2 -0
- package/dist/cjs/styles/shared/headings.js +1 -1
- package/dist/cjs/styles/shared/indentation.js +1 -0
- package/dist/cjs/styles/shared/link.js +2 -0
- package/dist/cjs/styles/shared/lists.js +1 -1
- package/dist/cjs/styles/shared/media-single.js +1 -1
- package/dist/cjs/styles/shared/panel.js +1 -0
- package/dist/cjs/styles/shared/paragraph.js +2 -0
- package/dist/cjs/styles/shared/plugins.js +2 -0
- package/dist/cjs/styles/shared/resizer.js +1 -1
- package/dist/cjs/styles/shared/rule.js +2 -0
- package/dist/cjs/styles/shared/shadow.js +1 -0
- package/dist/cjs/styles/shared/smartCard.js +1 -1
- package/dist/cjs/styles/shared/table.js +1 -1
- package/dist/cjs/styles/shared/tableCell.js +1 -0
- package/dist/cjs/styles/shared/task-decision.js +1 -0
- package/dist/cjs/styles/shared/text-color.js +2 -0
- package/dist/cjs/styles/shared/unsupported-content.js +1 -1
- package/dist/cjs/styles/shared/whitespace.js +2 -0
- package/dist/cjs/table/SortingIcon.js +1 -0
- package/dist/cjs/ui/BaseTheme/index.js +2 -0
- package/dist/cjs/ui/Caption/index.js +1 -1
- package/dist/cjs/ui/DropList/index.js +2 -2
- package/dist/cjs/ui/Expand/index.js +1 -0
- package/dist/cjs/ui/FloatingToolbar/Separator.js +1 -0
- package/dist/cjs/ui/FloatingToolbar/SmallerEditIcon.js +1 -0
- package/dist/cjs/ui/MediaSingle/index.js +2 -0
- package/dist/cjs/ui/MediaSingle/link.js +2 -0
- package/dist/cjs/ui/MediaSingle/styled.js +1 -0
- package/dist/cjs/ui/Messages/index.js +2 -0
- package/dist/cjs/ui/MultiBodiedExtension/index.js +2 -0
- package/dist/cjs/ui/PanelTextInput/index.js +1 -1
- package/dist/cjs/ui/PanelTextInput/styles.js +2 -0
- package/dist/cjs/ui/ResizerLegacy/styled.js +1 -1
- package/dist/cjs/ui/UnsupportedBlock/index.js +2 -0
- package/dist/cjs/ui/UnsupportedInline/index.js +2 -0
- package/dist/cjs/ui/WidthProvider/index.js +2 -0
- package/dist/cjs/ui/clear-next-sibling-margin-top.js +2 -0
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +2 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/index.js +2 -0
- package/dist/cjs/ui-color/ColorPalette/styles.js +2 -0
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +11 -45
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +2 -0
- package/dist/cjs/ui-menu/DropdownContainer/index.js +1 -1
- package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -6
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +10 -39
- package/dist/cjs/ui-menu/ToolbarButton/index.js +1 -1
- package/dist/es2019/card/LinkToolbarButtonGroup.js +2 -0
- package/dist/es2019/collab/index.js +1 -0
- package/dist/es2019/element-browser/ViewMore.js +2 -0
- package/dist/es2019/element-browser/components/CategoryList.js +2 -0
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +2 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +2 -0
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -0
- package/dist/es2019/element-browser/components/ElementList/NotFoundIllustration.js +1 -0
- package/dist/es2019/element-browser/components/ElementSearch.js +2 -0
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +2 -0
- package/dist/es2019/element-browser/hooks/use-container-width.js +2 -0
- package/dist/es2019/extensibility/Extension/Extension/index.js +2 -0
- package/dist/es2019/extensibility/Extension/Extension/styles.js +1 -0
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +2 -0
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +1 -0
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +1 -0
- package/dist/es2019/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/es2019/extensibility/Extension/styles.js +1 -0
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +2 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +1 -0
- package/dist/es2019/icons/shared/SteppedRainbowIconDecoration.js +1 -0
- package/dist/es2019/keymaps/index.js +2 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -0
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +2 -0
- package/dist/es2019/link/LinkSearch/ToolbarComponents.js +1 -0
- package/dist/es2019/media-inline/inline-image-card.js +2 -0
- package/dist/es2019/media-inline/inline-image-wrapper.js +1 -0
- package/dist/es2019/media-inline/media-inline-image-card.js +2 -0
- package/dist/es2019/media-inline/styles.js +1 -0
- package/dist/es2019/media-inline/views/error-view.js +1 -0
- package/dist/es2019/media-inline/views/frame.js +1 -0
- package/dist/es2019/media-inline/views/icon-wrapper.js +1 -0
- package/dist/es2019/media-inline/views/loading-view.js +1 -0
- package/dist/es2019/media-inline/views/wrapper.js +1 -0
- package/dist/es2019/media-single/CommentBadge.js +2 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +2 -0
- package/dist/es2019/selection/gap-cursor/styles.js +1 -0
- package/dist/es2019/selection/index.js +4 -16
- package/dist/es2019/styles/shared/annotation.js +1 -0
- package/dist/es2019/styles/shared/background-color.js +1 -0
- package/dist/es2019/styles/shared/block-marks.js +1 -0
- package/dist/es2019/styles/shared/blockquote.js +1 -0
- package/dist/es2019/styles/shared/code-block.js +1 -0
- package/dist/es2019/styles/shared/code-mark.js +1 -0
- package/dist/es2019/styles/shared/column-layout.js +1 -0
- package/dist/es2019/styles/shared/date.js +1 -0
- package/dist/es2019/styles/shared/embedCard.js +1 -0
- package/dist/es2019/styles/shared/expand.js +1 -0
- package/dist/es2019/styles/shared/grid.js +1 -0
- package/dist/es2019/styles/shared/headings.js +1 -0
- package/dist/es2019/styles/shared/indentation.js +1 -0
- package/dist/es2019/styles/shared/link.js +1 -0
- package/dist/es2019/styles/shared/lists.js +1 -0
- package/dist/es2019/styles/shared/media-single.js +1 -0
- package/dist/es2019/styles/shared/panel.js +1 -0
- package/dist/es2019/styles/shared/paragraph.js +1 -0
- package/dist/es2019/styles/shared/plugins.js +1 -0
- package/dist/es2019/styles/shared/resizer.js +1 -0
- package/dist/es2019/styles/shared/rule.js +1 -0
- package/dist/es2019/styles/shared/shadow.js +1 -0
- package/dist/es2019/styles/shared/smartCard.js +1 -0
- package/dist/es2019/styles/shared/table.js +1 -0
- package/dist/es2019/styles/shared/tableCell.js +1 -0
- package/dist/es2019/styles/shared/task-decision.js +1 -0
- package/dist/es2019/styles/shared/text-color.js +1 -0
- package/dist/es2019/styles/shared/unsupported-content.js +1 -0
- package/dist/es2019/styles/shared/whitespace.js +1 -0
- package/dist/es2019/table/SortingIcon.js +1 -0
- package/dist/es2019/ui/BaseTheme/index.js +2 -0
- package/dist/es2019/ui/Caption/index.js +2 -0
- package/dist/es2019/ui/DropList/index.js +3 -1
- package/dist/es2019/ui/Expand/index.js +2 -0
- package/dist/es2019/ui/FloatingToolbar/Separator.js +1 -0
- package/dist/es2019/ui/FloatingToolbar/SmallerEditIcon.js +1 -0
- package/dist/es2019/ui/MediaSingle/index.js +2 -0
- package/dist/es2019/ui/MediaSingle/link.js +1 -0
- package/dist/es2019/ui/MediaSingle/styled.js +2 -0
- package/dist/es2019/ui/Messages/index.js +1 -0
- package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -0
- package/dist/es2019/ui/PanelTextInput/index.js +2 -0
- package/dist/es2019/ui/PanelTextInput/styles.js +1 -0
- package/dist/es2019/ui/ResizerLegacy/styled.js +1 -0
- package/dist/es2019/ui/UnsupportedBlock/index.js +2 -0
- package/dist/es2019/ui/UnsupportedInline/index.js +2 -0
- package/dist/es2019/ui/WidthProvider/index.js +2 -0
- package/dist/es2019/ui/clear-next-sibling-margin-top.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +2 -0
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/index.js +2 -0
- package/dist/es2019/ui-color/ColorPalette/styles.js +1 -0
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +11 -45
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +2 -0
- package/dist/es2019/ui-menu/DropdownContainer/index.js +2 -0
- package/dist/es2019/ui-menu/DropdownMenu/index.js +3 -6
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +10 -39
- package/dist/es2019/ui-menu/ToolbarButton/index.js +2 -0
- package/dist/esm/card/LinkToolbarButtonGroup.js +2 -0
- package/dist/esm/collab/index.js +1 -0
- package/dist/esm/element-browser/ViewMore.js +2 -0
- package/dist/esm/element-browser/components/CategoryList.js +2 -0
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +2 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -0
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -0
- package/dist/esm/element-browser/components/ElementList/NotFoundIllustration.js +1 -0
- package/dist/esm/element-browser/components/ElementSearch.js +2 -0
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +2 -0
- package/dist/esm/element-browser/hooks/use-container-width.js +2 -0
- package/dist/esm/extensibility/Extension/Extension/index.js +2 -0
- package/dist/esm/extensibility/Extension/Extension/styles.js +1 -0
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +2 -0
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +1 -0
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +1 -0
- package/dist/esm/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/esm/extensibility/Extension/styles.js +1 -0
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +2 -0
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +1 -0
- package/dist/esm/icons/shared/SteppedRainbowIconDecoration.js +1 -0
- package/dist/esm/keymaps/index.js +2 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -0
- package/dist/esm/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +2 -0
- package/dist/esm/link/LinkSearch/ToolbarComponents.js +1 -0
- package/dist/esm/media-inline/inline-image-card.js +2 -0
- package/dist/esm/media-inline/inline-image-wrapper.js +1 -0
- package/dist/esm/media-inline/media-inline-image-card.js +2 -0
- package/dist/esm/media-inline/styles.js +1 -0
- package/dist/esm/media-inline/views/error-view.js +1 -0
- package/dist/esm/media-inline/views/frame.js +1 -0
- package/dist/esm/media-inline/views/icon-wrapper.js +1 -0
- package/dist/esm/media-inline/views/loading-view.js +1 -0
- package/dist/esm/media-inline/views/wrapper.js +1 -0
- package/dist/esm/media-single/CommentBadge.js +2 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +2 -0
- package/dist/esm/selection/gap-cursor/styles.js +1 -0
- package/dist/esm/selection/index.js +4 -16
- package/dist/esm/styles/shared/annotation.js +1 -0
- package/dist/esm/styles/shared/background-color.js +1 -0
- package/dist/esm/styles/shared/block-marks.js +1 -0
- package/dist/esm/styles/shared/blockquote.js +1 -0
- package/dist/esm/styles/shared/code-block.js +1 -0
- package/dist/esm/styles/shared/code-mark.js +1 -0
- package/dist/esm/styles/shared/column-layout.js +1 -0
- package/dist/esm/styles/shared/date.js +1 -0
- package/dist/esm/styles/shared/embedCard.js +1 -0
- package/dist/esm/styles/shared/expand.js +1 -0
- package/dist/esm/styles/shared/grid.js +1 -0
- package/dist/esm/styles/shared/headings.js +1 -0
- package/dist/esm/styles/shared/indentation.js +1 -0
- package/dist/esm/styles/shared/link.js +1 -0
- package/dist/esm/styles/shared/lists.js +1 -0
- package/dist/esm/styles/shared/media-single.js +1 -0
- package/dist/esm/styles/shared/panel.js +1 -0
- package/dist/esm/styles/shared/paragraph.js +1 -0
- package/dist/esm/styles/shared/plugins.js +1 -0
- package/dist/esm/styles/shared/resizer.js +1 -0
- package/dist/esm/styles/shared/rule.js +1 -0
- package/dist/esm/styles/shared/shadow.js +1 -0
- package/dist/esm/styles/shared/smartCard.js +1 -0
- package/dist/esm/styles/shared/table.js +1 -0
- package/dist/esm/styles/shared/tableCell.js +1 -0
- package/dist/esm/styles/shared/task-decision.js +1 -0
- package/dist/esm/styles/shared/text-color.js +1 -0
- package/dist/esm/styles/shared/unsupported-content.js +1 -0
- package/dist/esm/styles/shared/whitespace.js +1 -0
- package/dist/esm/table/SortingIcon.js +1 -0
- package/dist/esm/ui/BaseTheme/index.js +2 -0
- package/dist/esm/ui/Caption/index.js +2 -0
- package/dist/esm/ui/DropList/index.js +3 -1
- package/dist/esm/ui/Expand/index.js +2 -0
- package/dist/esm/ui/FloatingToolbar/Separator.js +1 -0
- package/dist/esm/ui/FloatingToolbar/SmallerEditIcon.js +1 -0
- package/dist/esm/ui/MediaSingle/index.js +2 -0
- package/dist/esm/ui/MediaSingle/link.js +1 -0
- package/dist/esm/ui/MediaSingle/styled.js +2 -0
- package/dist/esm/ui/Messages/index.js +1 -0
- package/dist/esm/ui/MultiBodiedExtension/index.js +1 -0
- package/dist/esm/ui/PanelTextInput/index.js +2 -0
- package/dist/esm/ui/PanelTextInput/styles.js +1 -0
- package/dist/esm/ui/ResizerLegacy/styled.js +1 -0
- package/dist/esm/ui/UnsupportedBlock/index.js +2 -0
- package/dist/esm/ui/UnsupportedInline/index.js +2 -0
- package/dist/esm/ui/WidthProvider/index.js +2 -0
- package/dist/esm/ui/clear-next-sibling-margin-top.js +1 -0
- package/dist/esm/ui-color/ColorPalette/Color/index.js +2 -0
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +1 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -0
- package/dist/esm/ui-color/ColorPalette/index.js +2 -0
- package/dist/esm/ui-color/ColorPalette/styles.js +1 -0
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +11 -45
- package/dist/esm/ui-menu/ColorPickerButton/index.js +2 -0
- package/dist/esm/ui-menu/DropdownContainer/index.js +2 -0
- package/dist/esm/ui-menu/DropdownMenu/index.js +3 -6
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +10 -39
- package/dist/esm/ui-menu/ToolbarButton/index.js +2 -0
- package/dist/types/types/feature-flags.d.ts +1 -1
- package/dist/types-ts4.5/types/feature-flags.d.ts +1 -1
- package/package.json +5 -8
|
@@ -23,7 +23,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
23
23
|
var _react2 = require("@emotion/react");
|
|
24
24
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
25
25
|
var _menu = require("@atlaskit/menu");
|
|
26
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
26
|
var _colors = require("@atlaskit/theme/colors");
|
|
28
27
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
29
28
|
var _styles = require("../../styles");
|
|
@@ -36,6 +35,7 @@ var _types = require("../ArrowKeyNavigationProvider/types");
|
|
|
36
35
|
var _excluded = ["children"];
|
|
37
36
|
var _templateObject, _templateObject2;
|
|
38
37
|
/** @jsx jsx */
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
39
39
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
40
40
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
41
41
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -278,11 +278,7 @@ function DropdownMenuItem(_ref) {
|
|
|
278
278
|
}, item.content);
|
|
279
279
|
}
|
|
280
280
|
var _handleSubmenuActive = function _handleSubmenuActive(event) {
|
|
281
|
-
|
|
282
|
-
setSubmenuActive(Boolean(event.target instanceof HTMLElement && event.target.closest(".".concat(_styles.DropdownMenuSharedCssClassName.SUBMENU))));
|
|
283
|
-
} else {
|
|
284
|
-
setSubmenuActive(!!event.target.closest(".".concat(_styles.DropdownMenuSharedCssClassName.SUBMENU)));
|
|
285
|
-
}
|
|
281
|
+
setSubmenuActive(Boolean(event.target instanceof HTMLElement && event.target.closest(".".concat(_styles.DropdownMenuSharedCssClassName.SUBMENU))));
|
|
286
282
|
};
|
|
287
283
|
var dropListItem = (0, _react2.jsx)("div", {
|
|
288
284
|
css: function css() {
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ToolbarArrowKeyNavigationProvider = exports.KeyDownHandlerContext = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _messages = require("../../messages");
|
|
12
11
|
var _ui = require("../../ui");
|
|
13
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -15,6 +14,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
15
14
|
/** @jsx jsx */
|
|
16
15
|
/* eslint-disable no-console */
|
|
17
16
|
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
|
+
|
|
18
19
|
/*
|
|
19
20
|
** The context is used to handle the keydown events of submenus.
|
|
20
21
|
** Because the keyboard navigation is explicitly managed for main toolbar items
|
|
@@ -116,31 +117,14 @@ var ToolbarArrowKeyNavigationProvider = exports.ToolbarArrowKeyNavigationProvide
|
|
|
116
117
|
* @param event
|
|
117
118
|
*/
|
|
118
119
|
var handleKeyDown = function handleKeyDown(event) {
|
|
120
|
+
var _document$querySelect, _document$querySelect2, _wrapperRef$current;
|
|
119
121
|
// To trap the focus inside the horizontal toolbar for left and right arrow keys
|
|
120
122
|
var targetElement = event.target;
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.explicit-html-element-check')) {
|
|
124
|
-
if (targetElement instanceof HTMLElement && !targetElement.closest("".concat(childComponentSelector))) {
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
} else {
|
|
128
|
-
if (!(targetElement !== null && targetElement !== void 0 && targetElement.closest("".concat(childComponentSelector)))) {
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
123
|
+
if (targetElement instanceof HTMLElement && !targetElement.closest("".concat(childComponentSelector))) {
|
|
124
|
+
return;
|
|
131
125
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.explicit-html-element-check')) {
|
|
135
|
-
var _document$querySelect, _document$querySelect2;
|
|
136
|
-
if (targetElement instanceof HTMLElement && (_document$querySelect = document.querySelector('[data-role="droplistContent"], [data-test-id="color-picker-menu"], [data-emoji-picker-container="true"]')) !== null && _document$querySelect !== void 0 && _document$querySelect.contains(targetElement) || targetElement instanceof HTMLElement && (_document$querySelect2 = document.querySelector('[data-test-id="color-picker-menu"]')) !== null && _document$querySelect2 !== void 0 && _document$querySelect2.contains(targetElement) || event.key === 'ArrowUp' || event.key === 'ArrowDown' || disableArrowKeyNavigation) {
|
|
137
|
-
return;
|
|
138
|
-
}
|
|
139
|
-
} else {
|
|
140
|
-
var _document$querySelect3, _document$querySelect4;
|
|
141
|
-
if ((_document$querySelect3 = document.querySelector('[data-role="droplistContent"], [data-test-id="color-picker-menu"], [data-emoji-picker-container="true"]')) !== null && _document$querySelect3 !== void 0 && _document$querySelect3.contains(targetElement) || (_document$querySelect4 = document.querySelector('[data-test-id="color-picker-menu"]')) !== null && _document$querySelect4 !== void 0 && _document$querySelect4.contains(targetElement) || event.key === 'ArrowUp' || event.key === 'ArrowDown' || disableArrowKeyNavigation) {
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
126
|
+
if (targetElement instanceof HTMLElement && (_document$querySelect = document.querySelector('[data-role="droplistContent"], [data-test-id="color-picker-menu"], [data-emoji-picker-container="true"]')) !== null && _document$querySelect !== void 0 && _document$querySelect.contains(targetElement) || targetElement instanceof HTMLElement && (_document$querySelect2 = document.querySelector('[data-test-id="color-picker-menu"]')) !== null && _document$querySelect2 !== void 0 && _document$querySelect2.contains(targetElement) || event.key === 'ArrowUp' || event.key === 'ArrowDown' || disableArrowKeyNavigation) {
|
|
127
|
+
return;
|
|
144
128
|
}
|
|
145
129
|
var menuWrapper = document.querySelector('.menu-key-handler-wrapper');
|
|
146
130
|
if (menuWrapper) {
|
|
@@ -151,23 +135,10 @@ var ToolbarArrowKeyNavigationProvider = exports.ToolbarArrowKeyNavigationProvide
|
|
|
151
135
|
if (!filteredFocusableElements || (filteredFocusableElements === null || filteredFocusableElements === void 0 ? void 0 : filteredFocusableElements.length) === 0) {
|
|
152
136
|
return;
|
|
153
137
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
// to handle some use cases such as Tab in/out of main toolbar
|
|
157
|
-
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.explicit-html-element-check')) {
|
|
158
|
-
var _wrapperRef$current;
|
|
159
|
-
if (targetElement instanceof HTMLElement && !((_wrapperRef$current = wrapperRef.current) !== null && _wrapperRef$current !== void 0 && _wrapperRef$current.contains(targetElement))) {
|
|
160
|
-
selectedItemIndex.current = -1;
|
|
161
|
-
} else {
|
|
162
|
-
selectedItemIndex.current = targetElement instanceof HTMLElement && filteredFocusableElements.indexOf(targetElement) > -1 ? filteredFocusableElements.indexOf(targetElement) : selectedItemIndex.current;
|
|
163
|
-
}
|
|
138
|
+
if (targetElement instanceof HTMLElement && !((_wrapperRef$current = wrapperRef.current) !== null && _wrapperRef$current !== void 0 && _wrapperRef$current.contains(targetElement))) {
|
|
139
|
+
selectedItemIndex.current = -1;
|
|
164
140
|
} else {
|
|
165
|
-
|
|
166
|
-
if (!((_wrapperRef$current2 = wrapperRef.current) !== null && _wrapperRef$current2 !== void 0 && _wrapperRef$current2.contains(targetElement))) {
|
|
167
|
-
selectedItemIndex.current = -1;
|
|
168
|
-
} else {
|
|
169
|
-
selectedItemIndex.current = filteredFocusableElements.indexOf(targetElement) > -1 ? filteredFocusableElements.indexOf(targetElement) : selectedItemIndex.current;
|
|
170
|
-
}
|
|
141
|
+
selectedItemIndex.current = targetElement instanceof HTMLElement && filteredFocusableElements.indexOf(targetElement) > -1 ? filteredFocusableElements.indexOf(targetElement) : selectedItemIndex.current;
|
|
171
142
|
}
|
|
172
143
|
|
|
173
144
|
// do not scroll to focused element for sticky toolbar when navigating with arrows to avoid unnesessary scroll jump
|
|
@@ -19,7 +19,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
19
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // This file is copied to `packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/ToolbarButton/index.tsx`
|
|
20
20
|
// If you make any change here, copy it to above file as well
|
|
21
21
|
// and notify about the change in #team-fc-editor-ai-dev channel.
|
|
22
|
-
/** @jsx jsx */
|
|
22
|
+
/** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
23
|
var TOOLBAR_BUTTON = exports.TOOLBAR_BUTTON = _analytics.TOOLBAR_ACTION_SUBJECT_ID;
|
|
24
24
|
var buttonWrapper = (0, _react2.css)({
|
|
25
25
|
display: 'flex',
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { ButtonGroup } from '@atlaskit/button';
|
|
5
7
|
import { FloatingToolbarButton as Button } from '../ui';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { avatarColors, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
3
4
|
import { getGlobalTheme } from '@atlaskit/tokens';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useEffect, useRef } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { ButtonItem, Section } from '@atlaskit/menu';
|
|
5
7
|
const itemBefore = css({
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { Fragment, memo, useCallback } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
6
8
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import Loadable from 'react-loadable';
|
|
5
7
|
import Spinner from '@atlaskit/spinner';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { Fragment, memo, useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { Grid } from 'react-virtualized';
|
|
6
8
|
import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { memo, useLayoutEffect, useRef, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { injectIntl } from 'react-intl-next';
|
|
5
7
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import { FormattedMessage } from 'react-intl-next';
|
|
6
8
|
import { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { memo, useEffect, useRef, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
5
7
|
|
|
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import React, { Fragment } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { jsx } from '@emotion/react';
|
|
6
8
|
import classnames from 'classnames';
|
|
7
9
|
import { WithPluginState } from '../../..//with-plugin-state';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { Fragment } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { jsx } from '@emotion/react';
|
|
4
6
|
import classnames from 'classnames';
|
|
5
7
|
import { akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback } from 'react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css, jsx } from '@emotion/react';
|
|
4
5
|
import classnames from 'classnames';
|
|
5
6
|
import { N0, N30, N40, N500 } from '@atlaskit/theme/colors';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { jsx } from '@emotion/react';
|
|
4
5
|
import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
|
|
5
6
|
import { placeholderFallback, placeholderFallbackParams } from '../styles';
|
|
@@ -2,6 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import { Component } from 'react';
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
6
|
import { jsx } from '@emotion/react';
|
|
6
7
|
import { getExtensionLozengeData } from '../../../utils';
|
|
7
8
|
import { styledImage } from '../styles';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-exported-css */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css } from '@emotion/react';
|
|
3
4
|
import { N20, N20A, N70 } from '@atlaskit/theme/colors';
|
|
4
5
|
import { BODIED_EXT_PADDING, EXTENSION_PADDING } from '../../styles';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import classnames from 'classnames';
|
|
5
7
|
import { ZERO_WIDTH_SPACE } from '../utils';
|
|
@@ -3,6 +3,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
|
|
5
5
|
import React, { Fragment, useState } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
8
|
import { css, jsx } from '@emotion/react';
|
|
7
9
|
import classnames from 'classnames';
|
|
8
10
|
import EditorFileIcon from '@atlaskit/icon/glyph/editor/file';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { N40, N60, N80, P300, R400, T300, Y400 } from '@atlaskit/theme/colors';
|
|
4
5
|
const createSteppedRainbow = colors => {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { Fragment } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import { base, keyName } from 'w3c-keyname';
|
|
5
7
|
import { N400 } from '@atlaskit/theme/colors';
|
|
@@ -2,6 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import React, { PureComponent } from 'react';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
7
|
import { css, jsx } from '@emotion/react';
|
|
6
8
|
import debounce from 'lodash/debounce';
|
|
7
9
|
import { flushSync } from 'react-dom';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import Spinner from '@atlaskit/spinner';
|
|
5
7
|
import { N30 } from '@atlaskit/theme/colors';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { Fragment } from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { css, jsx } from '@emotion/react';
|
|
5
7
|
// AFP-2532 TODO: Fix automatic suppressions below
|
|
6
8
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment, useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { jsx } from '@emotion/react';
|
|
4
6
|
import { getRandomHex } from '@atlaskit/media-common';
|
|
5
7
|
import { useFilePreview } from '@atlaskit/media-file-preview';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
5
|
import { css, jsx } from '@emotion/react';
|
|
5
6
|
import { hexToEditorBorderPaletteColor } from '@atlaskit/editor-palette';
|
|
6
7
|
import { borderStyle, INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, INLINE_IMAGE_WRAPPER_CLASS_NAME, interactiveStyle, selectedStyle, wrapperStyle } from './styles';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment, useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { jsx } from '@emotion/react';
|
|
4
6
|
import ReactDOM from 'react-dom';
|
|
5
7
|
import { createIntl, injectIntl } from 'react-intl-next';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { B300 } from '@atlaskit/theme/colors';
|
|
3
4
|
import { DEFAULT_INLINE_IMAGE_ASPECT_RATIO, DEFAULT_INLINE_IMAGE_BORDER_SIZE, referenceHeights } from './constants';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
|
|
3
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useEffect, useMemo, useState } from 'react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
5
|
import { css, jsx } from '@emotion/react';
|
|
4
6
|
import debounce from 'lodash/debounce';
|
|
5
7
|
import { CustomThemeButton } from '@atlaskit/button';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "82.8.
|
|
4
|
+
const packageVersion = "82.8.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import { ACTION_SUBJECT, ACTION_SUBJECT_ID } from '../analytics';
|
|
6
8
|
import { ErrorBoundary } from '../ui/ErrorBoundary';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AllSelection, NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { CellSelection } from '@atlaskit/editor-tables';
|
|
3
3
|
import { selectedRect } from '@atlaskit/editor-tables/utils';
|
|
4
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
5
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../analytics';
|
|
6
5
|
export { RelativeSelectionPos } from './types';
|
|
7
6
|
export { GapCursorSelection, Side, JSON_ID, GapBookmark } from './gap-cursor/selection';
|
|
@@ -104,21 +103,10 @@ export function createSelectionClickHandler(nodes, isValidTarget, options) {
|
|
|
104
103
|
}
|
|
105
104
|
if (direct && nodes.indexOf(node.type.name) !== -1) {
|
|
106
105
|
const target = event.target;
|
|
107
|
-
if (
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return true;
|
|
112
|
-
}
|
|
113
|
-
} else {
|
|
114
|
-
if (event.target) {
|
|
115
|
-
const target = event.target;
|
|
116
|
-
if (isValidTarget(target)) {
|
|
117
|
-
const selectionPos = options.getNodeSelectionPos ? options.getNodeSelectionPos(view.state, nodePos) : nodePos;
|
|
118
|
-
selectNode(selectionPos)(view.state, view.dispatch);
|
|
119
|
-
return true;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
106
|
+
if (target instanceof HTMLElement && isValidTarget(target)) {
|
|
107
|
+
const selectionPos = options.getNodeSelectionPos ? options.getNodeSelectionPos(view.state, nodePos) : nodePos;
|
|
108
|
+
selectNode(selectionPos)(view.state, view.dispatch);
|
|
109
|
+
return true;
|
|
122
110
|
}
|
|
123
111
|
}
|
|
124
112
|
return false;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
|
|
3
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Perfectly safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css } from '@emotion/react';
|
|
3
4
|
|
|
4
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
import { akEditorBlockquoteBorderColor, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
3
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css } from '@emotion/react';
|
|
3
4
|
import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
5
|
import { N20, N30, N400, N800 } from '@atlaskit/theme/colors';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
3
4
|
export const embedCardStyles = css({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
3
4
|
export const expandIconWrapperStyle = css({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/use-tokens-space */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css } from '@emotion/react';
|
|
3
4
|
import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography';
|
|
4
5
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/use-tokens-space */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css } from '@emotion/react';
|
|
3
4
|
|
|
4
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
2
3
|
const linkSharedStyle = css({
|
|
3
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|