@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
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 { PanelType } from '@atlaskit/adf-schema';
|
|
4
5
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
@@ -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 { N30 } 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,6 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
2
2
|
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css } from '@emotion/react';
|
|
4
5
|
import { akEditorShadowZIndex } from '@atlaskit/editor-shared-styles';
|
|
5
6
|
import { N40A } 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
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
3
4
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -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 { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, tablePrefixSelector } from '@atlaskit/adf-schema';
|
|
3
4
|
import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorSelectedNodeClassName, akEditorTableBorder, akEditorTableNumberColumnWidth, akEditorTableToolbar, akEditorWideLayoutWidth, overflowShadow } from '@atlaskit/editor-shared-styles';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
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 { tableBackgroundColorNames } from '@atlaskit/adf-schema';
|
|
4
5
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression */
|
|
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 { akEditorLineHeight, akEditorTableCellMinWidth } from '@atlaskit/editor-shared-styles';
|
|
4
5
|
export const TaskDecisionSharedCssClassName = {
|
|
@@ -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,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 { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
3
4
|
export const UnsupportedSharedCssClassName = {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
4
|
import { ThemeProvider } from '@emotion/react';
|
|
3
5
|
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
4
6
|
import { fontSize } from '@atlaskit/theme/constants';
|
|
@@ -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 { css, jsx } from '@emotion/react';
|
|
5
7
|
import { injectIntl } from 'react-intl-next';
|
|
6
8
|
import { N200, N400 } from '@atlaskit/theme/colors';
|
|
@@ -2,12 +2,14 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import { Component } 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 { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
7
9
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
10
|
import Layer from '../Layer';
|
|
9
11
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "82.8.
|
|
12
|
+
const packageVersion = "82.8.2";
|
|
11
13
|
const halfFocusRing = 1;
|
|
12
14
|
const dropOffset = '0, 8';
|
|
13
15
|
class DropList extends Component {
|
|
@@ -2,6 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import React, { forwardRef } 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 { defineMessages } from 'react-intl-next';
|
|
7
9
|
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
@@ -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 classnames from 'classnames';
|
|
6
8
|
import { akEditorMediaResizeHandlerPaddingWide, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
@@ -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,6 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
|
|
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 { css, jsx } from '@emotion/react';
|
|
5
7
|
import { akEditorDefaultLayoutWidth, akEditorFullPageMaxWidth, akEditorFullWidthLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
6
8
|
import { nonWrappedLayouts } from '../../utils';
|
|
@@ -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 { css, jsx } from '@emotion/react';
|
|
4
5
|
import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
|
|
5
6
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
@@ -2,6 +2,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
|
|
4
4
|
import { PureComponent } 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 { browser } from '../../utils';
|
|
7
9
|
import { panelTextInput, panelTextInputWithCustomWidth } from './styles';
|
|
@@ -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 { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
3
4
|
import { B100, N100, N30, N400 } from '@atlaskit/theme/colors';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { useCallback, 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 { injectIntl } from 'react-intl-next';
|
|
5
7
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React, { useCallback, 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 { injectIntl } from 'react-intl-next';
|
|
5
7
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
@@ -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 rafSchedule from 'raf-schd';
|
|
5
7
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { PureComponent } 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 EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
|
|
6
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -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 { jsx } from '@emotion/react';
|
|
4
6
|
import chromatism from 'chromatism';
|
|
5
7
|
import { 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
|
// 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 colorPaletteWrapper = css({
|
package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
2
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
const hasEnabledItems = list => list.some(item => item.getAttribute('aria-disabled') !== 'true');
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -63,6 +62,7 @@ export const MenuArrowKeyNavigationProvider = ({
|
|
|
63
62
|
* @param event
|
|
64
63
|
*/
|
|
65
64
|
const handleKeyDown = event => {
|
|
65
|
+
var _wrapperRef$current;
|
|
66
66
|
const targetElement = event.target;
|
|
67
67
|
|
|
68
68
|
// Tab key on menu items can be handled in the parent components of dropdown menus with KeydownHandlerContext
|
|
@@ -77,16 +77,8 @@ export const MenuArrowKeyNavigationProvider = ({
|
|
|
77
77
|
if (!focusableElements || (focusableElements === null || focusableElements === void 0 ? void 0 : focusableElements.length) === 0) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
-
if (targetElement instanceof HTMLElement && !((_wrapperRef$current = wrapperRef.current) !== null && _wrapperRef$current !== void 0 && _wrapperRef$current.contains(targetElement))) {
|
|
83
|
-
setCurrentSelectedItemIndex(-1);
|
|
84
|
-
}
|
|
85
|
-
} else {
|
|
86
|
-
var _wrapperRef$current2;
|
|
87
|
-
if (!((_wrapperRef$current2 = wrapperRef.current) !== null && _wrapperRef$current2 !== void 0 && _wrapperRef$current2.contains(targetElement))) {
|
|
88
|
-
setCurrentSelectedItemIndex(-1);
|
|
89
|
-
}
|
|
80
|
+
if (targetElement instanceof HTMLElement && !((_wrapperRef$current = wrapperRef.current) !== null && _wrapperRef$current !== void 0 && _wrapperRef$current.contains(targetElement))) {
|
|
81
|
+
setCurrentSelectedItemIndex(-1);
|
|
90
82
|
}
|
|
91
83
|
switch (event.key) {
|
|
92
84
|
case 'ArrowDown':
|
|
@@ -113,47 +105,21 @@ export const MenuArrowKeyNavigationProvider = ({
|
|
|
113
105
|
// ArrowLeft/Right on the menu should close the menus
|
|
114
106
|
// then logic to retain the focus can be handled in the parent components with KeydownHandlerContext
|
|
115
107
|
case 'ArrowLeft':
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
if (targetElement instanceof HTMLElement && !targetElement.closest('.custom-key-handler-wrapper')) {
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
if (!(targetElement !== null && targetElement !== void 0 && targetElement.closest('.custom-key-handler-wrapper'))) {
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
108
|
+
if (targetElement instanceof HTMLElement && !targetElement.closest('.custom-key-handler-wrapper')) {
|
|
109
|
+
return;
|
|
125
110
|
}
|
|
126
111
|
handleClose(event);
|
|
127
|
-
if (
|
|
128
|
-
|
|
129
|
-
keyDownHandlerContext === null || keyDownHandlerContext === void 0 ? void 0 : keyDownHandlerContext.handleArrowLeft();
|
|
130
|
-
}
|
|
131
|
-
} else {
|
|
132
|
-
if (!(targetElement !== null && targetElement !== void 0 && targetElement.closest('[data-testid="editor-floating-toolbar"]'))) {
|
|
133
|
-
keyDownHandlerContext === null || keyDownHandlerContext === void 0 ? void 0 : keyDownHandlerContext.handleArrowLeft();
|
|
134
|
-
}
|
|
112
|
+
if (targetElement instanceof HTMLElement && !targetElement.closest('[data-testid="editor-floating-toolbar"]')) {
|
|
113
|
+
keyDownHandlerContext === null || keyDownHandlerContext === void 0 ? void 0 : keyDownHandlerContext.handleArrowLeft();
|
|
135
114
|
}
|
|
136
115
|
break;
|
|
137
116
|
case 'ArrowRight':
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
if (targetElement instanceof HTMLElement && !targetElement.closest('.custom-key-handler-wrapper')) {
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
} else {
|
|
144
|
-
if (!targetElement.closest('.custom-key-handler-wrapper')) {
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
117
|
+
if (targetElement instanceof HTMLElement && !targetElement.closest('.custom-key-handler-wrapper')) {
|
|
118
|
+
return;
|
|
147
119
|
}
|
|
148
120
|
handleClose(event);
|
|
149
|
-
if (
|
|
150
|
-
|
|
151
|
-
keyDownHandlerContext === null || keyDownHandlerContext === void 0 ? void 0 : keyDownHandlerContext.handleArrowRight();
|
|
152
|
-
}
|
|
153
|
-
} else {
|
|
154
|
-
if (!targetElement.closest('[data-testid="editor-floating-toolbar"]')) {
|
|
155
|
-
keyDownHandlerContext === null || keyDownHandlerContext === void 0 ? void 0 : keyDownHandlerContext.handleArrowRight();
|
|
156
|
-
}
|
|
121
|
+
if (targetElement instanceof HTMLElement && !targetElement.closest('[data-testid="editor-floating-toolbar"]')) {
|
|
122
|
+
keyDownHandlerContext === null || keyDownHandlerContext === void 0 ? void 0 : keyDownHandlerContext.handleArrowRight();
|
|
157
123
|
}
|
|
158
124
|
break;
|
|
159
125
|
case 'Escape':
|
|
@@ -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 { withAnalyticsContext, withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
7
|
import Button from '@atlaskit/button';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { useContext } 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 { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
|
|
6
8
|
import DropdownComponent from '../Dropdown';
|
|
@@ -3,10 +3,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
|
|
5
5
|
import React, { PureComponent, useContext } 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 { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
8
10
|
import { CustomItem, MenuGroup, Section } from '@atlaskit/menu';
|
|
9
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { B100, N70, N900 } from '@atlaskit/theme/colors';
|
|
11
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
13
|
import { DropdownMenuSharedCssClassName } from '../../styles';
|
|
@@ -272,11 +273,7 @@ export function DropdownMenuItem({
|
|
|
272
273
|
}, item.content);
|
|
273
274
|
}
|
|
274
275
|
const _handleSubmenuActive = event => {
|
|
275
|
-
|
|
276
|
-
setSubmenuActive(Boolean(event.target instanceof HTMLElement && event.target.closest(`.${DropdownMenuSharedCssClassName.SUBMENU}`)));
|
|
277
|
-
} else {
|
|
278
|
-
setSubmenuActive(!!event.target.closest(`.${DropdownMenuSharedCssClassName.SUBMENU}`));
|
|
279
|
-
}
|
|
276
|
+
setSubmenuActive(Boolean(event.target instanceof HTMLElement && event.target.closest(`.${DropdownMenuSharedCssClassName.SUBMENU}`)));
|
|
280
277
|
};
|
|
281
278
|
const dropListItem = jsx("div", {
|
|
282
279
|
css: () => buttonStyles(item.isActive, submenuActive),
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
|
|
4
4
|
import React, { useCallback, useLayoutEffect, useRef } 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
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import { fullPageMessages as messages } from '../../messages';
|
|
8
9
|
import { EDIT_AREA_ID } from '../../ui';
|
|
9
10
|
/*
|
|
@@ -109,31 +110,14 @@ export const ToolbarArrowKeyNavigationProvider = ({
|
|
|
109
110
|
* @param event
|
|
110
111
|
*/
|
|
111
112
|
const handleKeyDown = event => {
|
|
113
|
+
var _document$querySelect, _document$querySelect2, _wrapperRef$current;
|
|
112
114
|
// To trap the focus inside the horizontal toolbar for left and right arrow keys
|
|
113
115
|
const targetElement = event.target;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
if (getBooleanFF('platform.editor.explicit-html-element-check')) {
|
|
117
|
-
if (targetElement instanceof HTMLElement && !targetElement.closest(`${childComponentSelector}`)) {
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
} else {
|
|
121
|
-
if (!(targetElement !== null && targetElement !== void 0 && targetElement.closest(`${childComponentSelector}`))) {
|
|
122
|
-
return;
|
|
123
|
-
}
|
|
116
|
+
if (targetElement instanceof HTMLElement && !targetElement.closest(`${childComponentSelector}`)) {
|
|
117
|
+
return;
|
|
124
118
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (getBooleanFF('platform.editor.explicit-html-element-check')) {
|
|
128
|
-
var _document$querySelect, _document$querySelect2;
|
|
129
|
-
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) {
|
|
130
|
-
return;
|
|
131
|
-
}
|
|
132
|
-
} else {
|
|
133
|
-
var _document$querySelect3, _document$querySelect4;
|
|
134
|
-
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) {
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
119
|
+
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) {
|
|
120
|
+
return;
|
|
137
121
|
}
|
|
138
122
|
const menuWrapper = document.querySelector('.menu-key-handler-wrapper');
|
|
139
123
|
if (menuWrapper) {
|
|
@@ -144,23 +128,10 @@ export const ToolbarArrowKeyNavigationProvider = ({
|
|
|
144
128
|
if (!filteredFocusableElements || (filteredFocusableElements === null || filteredFocusableElements === void 0 ? void 0 : filteredFocusableElements.length) === 0) {
|
|
145
129
|
return;
|
|
146
130
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
// to handle some use cases such as Tab in/out of main toolbar
|
|
150
|
-
if (getBooleanFF('platform.editor.explicit-html-element-check')) {
|
|
151
|
-
var _wrapperRef$current;
|
|
152
|
-
if (targetElement instanceof HTMLElement && !((_wrapperRef$current = wrapperRef.current) !== null && _wrapperRef$current !== void 0 && _wrapperRef$current.contains(targetElement))) {
|
|
153
|
-
selectedItemIndex.current = -1;
|
|
154
|
-
} else {
|
|
155
|
-
selectedItemIndex.current = targetElement instanceof HTMLElement && filteredFocusableElements.indexOf(targetElement) > -1 ? filteredFocusableElements.indexOf(targetElement) : selectedItemIndex.current;
|
|
156
|
-
}
|
|
131
|
+
if (targetElement instanceof HTMLElement && !((_wrapperRef$current = wrapperRef.current) !== null && _wrapperRef$current !== void 0 && _wrapperRef$current.contains(targetElement))) {
|
|
132
|
+
selectedItemIndex.current = -1;
|
|
157
133
|
} else {
|
|
158
|
-
|
|
159
|
-
if (!((_wrapperRef$current2 = wrapperRef.current) !== null && _wrapperRef$current2 !== void 0 && _wrapperRef$current2.contains(targetElement))) {
|
|
160
|
-
selectedItemIndex.current = -1;
|
|
161
|
-
} else {
|
|
162
|
-
selectedItemIndex.current = filteredFocusableElements.indexOf(targetElement) > -1 ? filteredFocusableElements.indexOf(targetElement) : selectedItemIndex.current;
|
|
163
|
-
}
|
|
134
|
+
selectedItemIndex.current = targetElement instanceof HTMLElement && filteredFocusableElements.indexOf(targetElement) > -1 ? filteredFocusableElements.indexOf(targetElement) : selectedItemIndex.current;
|
|
164
135
|
}
|
|
165
136
|
|
|
166
137
|
// do not scroll to focused element for sticky toolbar when navigating with arrows to avoid unnesessary scroll jump
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
// and notify about the change in #team-fc-editor-ai-dev channel.
|
|
4
4
|
/** @jsx jsx */
|
|
5
5
|
import React, { useCallback } 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 { FabricChannel } from '@atlaskit/analytics-listeners';
|
|
8
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -2,6 +2,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
2
2
|
var _excluded = ["disabled"];
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
import React 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 { ButtonGroup } from '@atlaskit/button';
|
|
7
9
|
import { FloatingToolbarButton as Button } from '../ui';
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css } from '@emotion/react';
|
|
4
5
|
import { avatarColors, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
5
6
|
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
|
var itemBefore = css({
|
|
@@ -8,6 +8,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
8
8
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
9
9
|
/** @jsx jsx */
|
|
10
10
|
import React, { Fragment, memo, useCallback } from 'react';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
13
|
import { css, jsx } from '@emotion/react';
|
|
12
14
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
13
15
|
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';
|
|
@@ -4,6 +4,8 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
var _excluded = ["items", "mode", "selectedItemIndex", "focusedItemIndex", "columnCount", "setColumnCount", "createAnalyticsEvent", "emptyStateHandler", "selectedCategory", "selectedCategoryIndex", "searchTerm", "setFocusedCategoryIndex", "setFocusedItemIndex"];
|
|
5
5
|
/** @jsx jsx */
|
|
6
6
|
import React, { Fragment, memo, useCallback, useEffect, useMemo, useState } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
9
|
import { css, jsx } from '@emotion/react';
|
|
8
10
|
import { Grid } from 'react-virtualized';
|
|
9
11
|
import { AutoSizer } from 'react-virtualized/dist/commonjs/AutoSizer';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React, { memo, useLayoutEffect, 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 { injectIntl } from 'react-intl-next';
|
|
6
8
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|