@atlaskit/editor-common 82.2.2 → 82.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/dist/cjs/collab/index.js +1 -1
- package/dist/cjs/element-browser/ViewMore.js +1 -0
- package/dist/cjs/element-browser/components/CategoryList.js +2 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +19 -1
- package/dist/cjs/element-browser/components/ElementSearch.js +56 -42
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +18 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +6 -3
- package/dist/cjs/extensibility/Extension/Extension/styles.js +24 -9
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -2
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +9 -4
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +11 -6
- package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +20 -15
- package/dist/cjs/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/cjs/extensibility/Extension/styles.js +13 -0
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +20 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +14 -2
- package/dist/cjs/keymaps/index.js +2 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -0
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +9 -0
- package/dist/cjs/link/LinkSearch/ToolbarComponents.js +7 -0
- package/dist/cjs/media-inline/inline-image-wrapper.js +9 -1
- package/dist/cjs/media-inline/styles.js +12 -1
- package/dist/cjs/media-inline/views/frame.js +7 -4
- package/dist/cjs/media-inline/views/icon-wrapper.js +1 -0
- package/dist/cjs/media-inline/views/wrapper.js +1 -0
- package/dist/cjs/media-single/CommentBadge.js +5 -1
- package/dist/cjs/messages/help-dialog.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/rank.js +1 -1
- package/dist/cjs/selection/gap-cursor/styles.js +1 -1
- package/dist/cjs/styles/shared/annotation.js +6 -0
- package/dist/cjs/styles/shared/background-color.js +4 -0
- package/dist/cjs/styles/shared/block-marks.js +1 -0
- package/dist/cjs/styles/shared/blockquote.js +8 -1
- package/dist/cjs/styles/shared/code-block.js +2 -0
- package/dist/cjs/styles/shared/code-mark.js +1 -0
- package/dist/cjs/styles/shared/column-layout.js +6 -1
- package/dist/cjs/styles/shared/date.js +2 -0
- package/dist/cjs/styles/shared/embedCard.js +8 -0
- package/dist/cjs/styles/shared/expand.js +1 -0
- package/dist/cjs/styles/shared/grid.js +7 -0
- package/dist/cjs/styles/shared/headings.js +6 -0
- package/dist/cjs/styles/shared/indentation.js +8 -0
- package/dist/cjs/styles/shared/link.js +4 -1
- package/dist/cjs/styles/shared/lists.js +1 -1
- package/dist/cjs/styles/shared/media-single.js +8 -1
- package/dist/cjs/styles/shared/paragraph.js +4 -1
- package/dist/cjs/styles/shared/plugins.js +8 -0
- package/dist/cjs/styles/shared/resizer.js +1 -1
- package/dist/cjs/styles/shared/rule.js +2 -1
- package/dist/cjs/styles/shared/shadow.js +4 -1
- package/dist/cjs/styles/shared/smartCard.js +1 -1
- package/dist/cjs/styles/shared/tableCell.js +1 -0
- package/dist/cjs/styles/shared/task-decision.js +2 -0
- package/dist/cjs/styles/shared/text-color.js +3 -0
- package/dist/cjs/styles/shared/unsupported-content.js +1 -1
- package/dist/cjs/styles/shared/whitespace.js +3 -1
- package/dist/cjs/table/SortingIcon.js +2 -2
- package/dist/cjs/ui/DropList/index.js +5 -1
- package/dist/cjs/ui/Expand/index.js +13 -0
- package/dist/cjs/ui/MediaSingle/index.js +3 -1
- package/dist/cjs/ui/MediaSingle/link.js +1 -0
- package/dist/cjs/ui/MediaSingle/styled.js +6 -3
- package/dist/cjs/ui/Messages/index.js +12 -7
- package/dist/cjs/ui/MultiBodiedExtension/index.js +24 -0
- package/dist/cjs/ui/PanelTextInput/index.js +1 -0
- package/dist/cjs/ui/PanelTextInput/styles.js +6 -0
- package/dist/cjs/ui/Popup/index.js +1 -0
- package/dist/cjs/ui/UnsupportedBlock/index.js +2 -0
- package/dist/cjs/ui/UnsupportedInline/index.js +2 -0
- package/dist/cjs/ui/clear-next-sibling-margin-top.js +6 -2
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +60 -8
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +38 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/index.js +5 -2
- package/dist/cjs/ui-color/ColorPalette/styles.js +1 -0
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +7 -0
- package/dist/cjs/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/cjs/utils/annotation/index.js +24 -0
- package/dist/cjs/utils/index.js +6 -0
- package/dist/es2019/collab/index.js +1 -1
- package/dist/es2019/element-browser/ViewMore.js +1 -0
- package/dist/es2019/element-browser/components/CategoryList.js +3 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +19 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +56 -42
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +18 -0
- package/dist/es2019/extensibility/Extension/Extension/index.js +6 -3
- package/dist/es2019/extensibility/Extension/Extension/styles.js +24 -9
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -2
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +10 -4
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +11 -6
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +19 -14
- package/dist/es2019/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/es2019/extensibility/Extension/styles.js +14 -0
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +21 -5
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +14 -2
- package/dist/es2019/keymaps/index.js +1 -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 +9 -0
- package/dist/es2019/link/LinkSearch/ToolbarComponents.js +8 -0
- package/dist/es2019/media-inline/inline-image-wrapper.js +9 -1
- package/dist/es2019/media-inline/styles.js +12 -1
- package/dist/es2019/media-inline/views/frame.js +3 -1
- package/dist/es2019/media-inline/views/icon-wrapper.js +1 -0
- package/dist/es2019/media-inline/views/wrapper.js +1 -0
- package/dist/es2019/media-single/CommentBadge.js +5 -1
- package/dist/es2019/messages/help-dialog.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/rank.js +1 -1
- package/dist/es2019/selection/gap-cursor/styles.js +1 -1
- package/dist/es2019/styles/shared/annotation.js +6 -0
- package/dist/es2019/styles/shared/background-color.js +5 -0
- package/dist/es2019/styles/shared/block-marks.js +2 -0
- package/dist/es2019/styles/shared/blockquote.js +8 -1
- package/dist/es2019/styles/shared/code-block.js +2 -0
- package/dist/es2019/styles/shared/code-mark.js +2 -0
- package/dist/es2019/styles/shared/column-layout.js +6 -0
- package/dist/es2019/styles/shared/date.js +3 -0
- package/dist/es2019/styles/shared/embedCard.js +8 -0
- package/dist/es2019/styles/shared/expand.js +1 -0
- package/dist/es2019/styles/shared/grid.js +7 -0
- package/dist/es2019/styles/shared/headings.js +12 -0
- package/dist/es2019/styles/shared/indentation.js +9 -0
- package/dist/es2019/styles/shared/link.js +3 -0
- package/dist/es2019/styles/shared/lists.js +1 -1
- package/dist/es2019/styles/shared/media-single.js +15 -0
- package/dist/es2019/styles/shared/panel.js +1 -0
- package/dist/es2019/styles/shared/paragraph.js +4 -1
- package/dist/es2019/styles/shared/plugins.js +8 -0
- package/dist/es2019/styles/shared/resizer.js +1 -1
- package/dist/es2019/styles/shared/rule.js +2 -1
- package/dist/es2019/styles/shared/shadow.js +9 -0
- package/dist/es2019/styles/shared/smartCard.js +1 -1
- package/dist/es2019/styles/shared/tableCell.js +1 -0
- package/dist/es2019/styles/shared/task-decision.js +2 -0
- package/dist/es2019/styles/shared/text-color.js +4 -0
- package/dist/es2019/styles/shared/unsupported-content.js +1 -1
- package/dist/es2019/styles/shared/whitespace.js +2 -0
- package/dist/es2019/table/SortingIcon.js +2 -2
- package/dist/es2019/ui/DropList/index.js +5 -1
- package/dist/es2019/ui/Expand/index.js +13 -0
- package/dist/es2019/ui/MediaSingle/index.js +3 -1
- package/dist/es2019/ui/MediaSingle/link.js +2 -0
- package/dist/es2019/ui/MediaSingle/styled.js +3 -1
- package/dist/es2019/ui/Messages/index.js +5 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +24 -0
- package/dist/es2019/ui/PanelTextInput/index.js +1 -0
- package/dist/es2019/ui/PanelTextInput/styles.js +6 -0
- package/dist/es2019/ui/Popup/index.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/clear-next-sibling-margin-top.js +7 -2
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +64 -2
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +36 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/index.js +5 -2
- package/dist/es2019/ui-color/ColorPalette/styles.js +1 -0
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +7 -0
- package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/es2019/utils/annotation/index.js +22 -0
- package/dist/es2019/utils/index.js +1 -1
- package/dist/esm/collab/index.js +1 -1
- package/dist/esm/element-browser/ViewMore.js +1 -0
- package/dist/esm/element-browser/components/CategoryList.js +2 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +19 -1
- package/dist/esm/element-browser/components/ElementSearch.js +56 -42
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +18 -0
- package/dist/esm/extensibility/Extension/Extension/index.js +6 -3
- package/dist/esm/extensibility/Extension/Extension/styles.js +24 -9
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -2
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +10 -4
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +11 -6
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +20 -15
- package/dist/esm/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/esm/extensibility/Extension/styles.js +14 -0
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +20 -4
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +14 -2
- package/dist/esm/keymaps/index.js +1 -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 +9 -0
- package/dist/esm/link/LinkSearch/ToolbarComponents.js +8 -0
- package/dist/esm/media-inline/inline-image-wrapper.js +9 -1
- package/dist/esm/media-inline/styles.js +12 -1
- package/dist/esm/media-inline/views/frame.js +7 -4
- package/dist/esm/media-inline/views/icon-wrapper.js +1 -0
- package/dist/esm/media-inline/views/wrapper.js +1 -0
- package/dist/esm/media-single/CommentBadge.js +5 -1
- package/dist/esm/messages/help-dialog.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/rank.js +1 -1
- package/dist/esm/selection/gap-cursor/styles.js +1 -1
- package/dist/esm/styles/shared/annotation.js +6 -0
- package/dist/esm/styles/shared/background-color.js +5 -0
- package/dist/esm/styles/shared/block-marks.js +2 -0
- package/dist/esm/styles/shared/blockquote.js +8 -1
- package/dist/esm/styles/shared/code-block.js +2 -0
- package/dist/esm/styles/shared/code-mark.js +1 -0
- package/dist/esm/styles/shared/column-layout.js +5 -0
- package/dist/esm/styles/shared/date.js +2 -0
- package/dist/esm/styles/shared/embedCard.js +8 -0
- package/dist/esm/styles/shared/expand.js +1 -0
- package/dist/esm/styles/shared/grid.js +7 -0
- package/dist/esm/styles/shared/headings.js +6 -0
- package/dist/esm/styles/shared/indentation.js +9 -0
- package/dist/esm/styles/shared/link.js +3 -0
- package/dist/esm/styles/shared/lists.js +1 -1
- package/dist/esm/styles/shared/media-single.js +7 -0
- package/dist/esm/styles/shared/paragraph.js +4 -1
- package/dist/esm/styles/shared/plugins.js +8 -0
- package/dist/esm/styles/shared/resizer.js +1 -1
- package/dist/esm/styles/shared/rule.js +2 -1
- package/dist/esm/styles/shared/shadow.js +3 -0
- package/dist/esm/styles/shared/smartCard.js +1 -1
- package/dist/esm/styles/shared/tableCell.js +1 -0
- package/dist/esm/styles/shared/task-decision.js +2 -0
- package/dist/esm/styles/shared/text-color.js +4 -0
- package/dist/esm/styles/shared/unsupported-content.js +1 -1
- package/dist/esm/styles/shared/whitespace.js +2 -0
- package/dist/esm/table/SortingIcon.js +2 -2
- package/dist/esm/ui/DropList/index.js +5 -1
- package/dist/esm/ui/Expand/index.js +13 -0
- package/dist/esm/ui/MediaSingle/index.js +3 -1
- package/dist/esm/ui/MediaSingle/link.js +2 -0
- package/dist/esm/ui/MediaSingle/styled.js +6 -3
- package/dist/esm/ui/Messages/index.js +12 -7
- package/dist/esm/ui/MultiBodiedExtension/index.js +24 -0
- package/dist/esm/ui/PanelTextInput/index.js +1 -0
- package/dist/esm/ui/PanelTextInput/styles.js +6 -0
- package/dist/esm/ui/Popup/index.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/clear-next-sibling-margin-top.js +6 -2
- package/dist/esm/ui-color/ColorPalette/Color/index.js +60 -8
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +37 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/esm/ui-color/ColorPalette/index.js +5 -2
- package/dist/esm/ui-color/ColorPalette/styles.js +1 -0
- package/dist/esm/ui-menu/ColorPickerButton/index.js +7 -0
- package/dist/esm/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/esm/utils/annotation/index.js +22 -0
- package/dist/esm/utils/index.js +1 -1
- package/dist/types/analytics/types/highlight-events.d.ts +4 -2
- package/dist/types/analytics/types/inline-comment-events.d.ts +1 -0
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/messages/help-dialog.d.ts +5 -0
- package/dist/types/types/feature-flags.d.ts +8 -0
- package/dist/types/ui-color/ColorPalette/Color/index.d.ts +5 -2
- package/dist/types/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +3 -0
- package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +2 -0
- package/dist/types/utils/annotation/index.d.ts +10 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +4 -2
- package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +1 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/help-dialog.d.ts +5 -0
- package/dist/types-ts4.5/types/feature-flags.d.ts +8 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +5 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +3 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +2 -0
- package/dist/types-ts4.5/utils/annotation/index.d.ts +10 -0
- package/dist/types-ts4.5/utils/index.d.ts +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 82.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#107302](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107302)
|
|
8
|
+
[`b1279657d678b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b1279657d678b) -
|
|
9
|
+
[ux] [ED-23162] Add keyboard shortcut to toggle highlight color palette
|
|
10
|
+
|
|
11
|
+
## 82.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#108458](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108458)
|
|
16
|
+
[`07ff840152c4a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/07ff840152c4a) -
|
|
17
|
+
[ED-23469] Add elementDragAndDrop key for platform_editor_element_drag_and_drop feature gate
|
|
18
|
+
- [#107856](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/107856)
|
|
19
|
+
[`7ba2db81f78ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/7ba2db81f78ac) -
|
|
20
|
+
[ux] [ED-23348] Make transparent option in highlight color palette more obvious with a diagonal
|
|
21
|
+
line.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [#109540](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109540)
|
|
26
|
+
[`2267be0c78aea`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2267be0c78aea) -
|
|
27
|
+
[ux] Fix hover and remove interactions with new macro UX updates and update vr test snapshots
|
|
28
|
+
- [#109969](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109969)
|
|
29
|
+
[`52590a0b562ef`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/52590a0b562ef) -
|
|
30
|
+
ED-23690 Adds an attribute to annotation analytic events with the name of nodes inside the
|
|
31
|
+
annotation range
|
|
32
|
+
- Updated dependencies
|
|
33
|
+
|
|
3
34
|
## 82.2.2
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
package/dist/cjs/collab/index.js
CHANGED
|
@@ -128,7 +128,7 @@ var TELEPOINTER_DIM_CLASS = exports.TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
|
128
128
|
|
|
129
129
|
// ED-22557: Safely convert to object styling
|
|
130
130
|
// Disable top: -14px since it is necessary to align to cursor
|
|
131
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/no-exported-css
|
|
131
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
132
132
|
var telepointerStyle = exports.telepointerStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror .telepointer {\n\t\tposition: relative;\n\t\ttransition: opacity 200ms;\n\n\t\t&.telepointer-selection {\n\t\t\tline-height: 1.2;\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&.telepointer-selection-badge::after {\n\t\t\tcontent: attr(data-initial);\n\t\t\tposition: absolute;\n\t\t\tdisplay: block;\n\t\t\ttop: -14px;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: ", ";\n\t\t\tcolor: ", ";\n\t\t\tleft: 0px;\n\t\t\tborder-radius: 2px 2px 2px 0;\n\t\t\tline-height: initial;\n\t\t}\n\n\t\t&.", " {\n\t\t\topacity: 0.2;\n\t\t}\n\n\t\t", ";\n\t}\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(9), "var(--ds-space-025, 2px)", "var(--ds-text-inverse, #FFFFFF)", TELEPOINTER_DIM_CLASS, _editorSharedStyles.avatarColors.map(function (color, index) {
|
|
133
133
|
return telepointerColorStyle(color, index);
|
|
134
134
|
}));
|
|
@@ -37,6 +37,7 @@ var ViewMore = exports.ViewMore = function ViewMore(_ref) {
|
|
|
37
37
|
"aria-describedby": item.title,
|
|
38
38
|
"data-testid": "view-more-elements-item"
|
|
39
39
|
// @ts-ignore Overriding Menu styles is not supported
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
40
41
|
,
|
|
41
42
|
css: (0, _react2.css)({
|
|
42
43
|
padding: "0px ".concat("var(--ds-space-150, 12px)")
|
|
@@ -191,9 +191,11 @@ function CategoryListItem(_ref2) {
|
|
|
191
191
|
}, category.title));
|
|
192
192
|
}
|
|
193
193
|
var buttonWrapper = (0, _react2.css)((0, _defineProperty2.default)({
|
|
194
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
194
195
|
height: "".concat(_constants.GRID_SIZE * 4, "px"),
|
|
195
196
|
margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " 0")
|
|
196
197
|
}, "@media (min-width: ".concat(_constants.DEVICE_BREAKPOINT_NUMBERS.medium, "px)"), {
|
|
198
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
197
199
|
':not(:last-child)': {
|
|
198
200
|
marginBottom: 0
|
|
199
201
|
}
|
|
@@ -39,16 +39,20 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
39
39
|
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; }
|
|
40
40
|
var ICON_HEIGHT = exports.ICON_HEIGHT = 40;
|
|
41
41
|
var ICON_WIDTH = exports.ICON_WIDTH = 40;
|
|
42
|
+
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
42
44
|
var itemIcon = exports.itemIcon = (0, _react2.css)({
|
|
43
45
|
width: "".concat(ICON_WIDTH, "px"),
|
|
44
46
|
height: "".concat(ICON_HEIGHT, "px"),
|
|
45
47
|
overflow: 'hidden',
|
|
46
48
|
border: "1px solid ".concat("var(--ds-border, rgba(223, 225, 229, 0.5))"),
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
50
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
48
51
|
boxSizing: 'border-box',
|
|
49
52
|
display: 'flex',
|
|
50
53
|
justifyContent: 'center',
|
|
51
54
|
alignItems: 'center',
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
56
|
div: {
|
|
53
57
|
width: "".concat(ICON_WIDTH, "px"),
|
|
54
58
|
height: "".concat(ICON_HEIGHT, "px")
|
|
@@ -181,8 +185,11 @@ function ElementList(_ref) {
|
|
|
181
185
|
columnIndex: columnIndex,
|
|
182
186
|
parent: parent
|
|
183
187
|
}, (0, _react2.jsx)("div", {
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
184
189
|
style: style,
|
|
185
|
-
key: key
|
|
190
|
+
key: key
|
|
191
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766 -- Ignored via go/DSP-18766
|
|
192
|
+
,
|
|
186
193
|
className: "element-item-wrapper",
|
|
187
194
|
css: elementItemWrapper,
|
|
188
195
|
onKeyDown: (0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-focus-order-for-element-browser-categories_ztiw1') ? function (e) {
|
|
@@ -385,21 +392,28 @@ var elementItemsWrapper = (0, _react2.css)({
|
|
|
385
392
|
justifyContent: 'flex-start',
|
|
386
393
|
overflow: 'hidden',
|
|
387
394
|
padding: "var(--ds-space-025, 2px)",
|
|
395
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
388
396
|
'.ReactVirtualized__Collection, .ReactVirtualized__Grid': {
|
|
397
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
389
398
|
borderRadius: '3px',
|
|
390
399
|
outline: 'none',
|
|
391
400
|
'&:focus': {
|
|
401
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
392
402
|
boxShadow: "0 0 0 ".concat(_constants2.ELEMENT_LIST_PADDING, "px ", "var(--ds-border-focused, ".concat(_colors.B100, ")"))
|
|
393
403
|
}
|
|
394
404
|
},
|
|
405
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
395
406
|
'.ReactVirtualized__Collection__innerScrollContainer, .ReactVirtualized__Grid__innerScrollContainer': {
|
|
407
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
396
408
|
"div[class='element-item-wrapper']:last-child": {
|
|
397
409
|
paddingBottom: "var(--ds-space-050, 4px)"
|
|
398
410
|
}
|
|
399
411
|
}
|
|
400
412
|
});
|
|
401
413
|
var elementItemWrapper = (0, _react2.css)({
|
|
414
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
402
415
|
div: {
|
|
416
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
403
417
|
button: {
|
|
404
418
|
minHeight: '75px',
|
|
405
419
|
alignItems: 'flex-start',
|
|
@@ -426,8 +440,11 @@ var multilineStyle = (0, _react2.css)({
|
|
|
426
440
|
WebkitLineClamp: 2,
|
|
427
441
|
WebkitBoxOrient: 'vertical'
|
|
428
442
|
});
|
|
443
|
+
|
|
444
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
429
445
|
var itemDescription = (0, _react2.css)(multilineStyle, {
|
|
430
446
|
overflow: 'hidden',
|
|
447
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
431
448
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(11.67),
|
|
432
449
|
color: "var(--ds-text-subtle, ".concat(_colors.N200, ")"),
|
|
433
450
|
marginTop: "var(--ds-space-025, 2px)"
|
|
@@ -452,6 +469,7 @@ var itemAfter = (0, _react2.css)({
|
|
|
452
469
|
marginBottom: "var(--ds-space-negative-025, -2px)"
|
|
453
470
|
});
|
|
454
471
|
var itemIconStyle = (0, _react2.css)({
|
|
472
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
455
473
|
img: {
|
|
456
474
|
height: '40px',
|
|
457
475
|
width: '40px',
|
|
@@ -83,67 +83,79 @@ function ElementSearch(_ref) {
|
|
|
83
83
|
var assistiveMessage = getFormattedMessage(items === null || items === void 0 ? void 0 : items.length);
|
|
84
84
|
var isInputNotFocusedAndItemSelected = !inputFocused && selectedItemIndex !== undefined;
|
|
85
85
|
var ariaActiveDescendant = isInputNotFocusedAndItemSelected ? "searched-item-".concat(selectedItemIndex) : undefined;
|
|
86
|
-
return (
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
86
|
+
return (
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
88
|
+
(0, _react2.jsx)("div", {
|
|
89
|
+
css: [wrapper, mode === _types.Modes.inline && wrapperInline]
|
|
90
|
+
}, (0, _react2.jsx)(_textfield.default, {
|
|
91
|
+
ref: ref,
|
|
92
|
+
onChange: onChange,
|
|
93
|
+
onClick: onClick,
|
|
94
|
+
onFocus: onFocus,
|
|
95
|
+
onKeyDown: onKeyDown,
|
|
96
|
+
onBlur: onBlur,
|
|
97
|
+
elemBeforeInput: (0, _react2.jsx)("div", {
|
|
98
|
+
css: elementBeforeInput,
|
|
99
|
+
"data-testid": "element_search__element_before_input",
|
|
100
|
+
"aria-hidden": "true"
|
|
101
|
+
}, (0, _react2.jsx)(_search.default, {
|
|
102
|
+
size: "medium",
|
|
103
|
+
label: "Advanced search",
|
|
104
|
+
primaryColor: "inherit"
|
|
105
|
+
})),
|
|
106
|
+
elemAfterInput: (0, _react2.jsx)("div", {
|
|
107
|
+
css: elementAfterInput,
|
|
108
|
+
"data-testid": "element_search__element_after_input"
|
|
109
|
+
}, (0, _react2.jsx)("div", {
|
|
110
|
+
css: styledShortcut
|
|
111
|
+
}, "\u23CE ", formatMessage(_messages.default.elementAfterInputMessage))),
|
|
112
|
+
placeholder: formatMessage(_messages.default.placeHolderMessage),
|
|
113
|
+
"aria-label": "search",
|
|
114
|
+
"aria-labelledby": "search-assistive"
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
116
|
+
,
|
|
117
|
+
className: "js-search-input",
|
|
118
|
+
role: "combobox",
|
|
119
|
+
"aria-activedescendant": ariaActiveDescendant,
|
|
120
|
+
value: searchTerm
|
|
121
|
+
}), (0, _react2.jsx)("span", {
|
|
122
|
+
id: "search-assistive",
|
|
123
|
+
ref: assistiveTextRef,
|
|
124
|
+
"aria-live": "polite",
|
|
125
|
+
"aria-atomic": "true"
|
|
126
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
127
|
+
,
|
|
128
|
+
className: "assistive"
|
|
129
|
+
}, assistiveMessage))
|
|
130
|
+
);
|
|
128
131
|
}
|
|
132
|
+
|
|
133
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
129
134
|
var styledShortcut = (0, _react2.css)(_shortcut.shortcutStyle, {
|
|
130
135
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
|
|
131
136
|
width: "var(--ds-space-600, 48px)"
|
|
132
137
|
});
|
|
133
138
|
var wrapper = (0, _react2.css)({
|
|
139
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
134
140
|
'& > [data-ds--text-field--container]': {
|
|
141
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
135
142
|
height: "".concat(_constants.GRID_SIZE * 6, "px"),
|
|
143
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
136
144
|
borderRadius: "".concat(_constants.GRID_SIZE, "px"),
|
|
137
145
|
flex: '1 1 100%',
|
|
138
146
|
overflow: 'visible',
|
|
147
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
139
148
|
'& > [data-ds--text-field--input]': {
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
140
150
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(14),
|
|
141
151
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-075, 6px)", " ", "var(--ds-space-100, 8px)", " 0")
|
|
142
152
|
}
|
|
143
153
|
}
|
|
144
154
|
});
|
|
145
155
|
var wrapperInline = (0, _react2.css)({
|
|
156
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
146
157
|
'& > [data-ds--text-field--container]': {
|
|
158
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
147
159
|
height: "".concat(_constants.GRID_SIZE * 5, "px"),
|
|
148
160
|
flex: 'none',
|
|
149
161
|
overflow: 'revert'
|
|
@@ -152,6 +164,7 @@ var wrapperInline = (0, _react2.css)({
|
|
|
152
164
|
var elementBeforeInput = (0, _react2.css)({
|
|
153
165
|
margin: "1px ".concat("var(--ds-space-075, 6px)", " 0 ", "var(--ds-space-100, 8px)"),
|
|
154
166
|
color: "var(--ds-icon, ".concat(_colors.N200, ")"),
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
155
168
|
'span, svg': {
|
|
156
169
|
height: '20px',
|
|
157
170
|
width: '20px'
|
|
@@ -159,6 +172,7 @@ var elementBeforeInput = (0, _react2.css)({
|
|
|
159
172
|
});
|
|
160
173
|
var elementAfterInput = (0, _react2.css)({
|
|
161
174
|
margin: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
175
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
162
176
|
height: _constants.SEARCH_ITEM_HEIGHT_WIDTH,
|
|
163
177
|
textAlign: 'center'
|
|
164
178
|
});
|
|
@@ -35,9 +35,13 @@ var baseBrowserContainerStyles = (0, _react2.css)({
|
|
|
35
35
|
height: '100%',
|
|
36
36
|
minHeight: '-webkit-fill-available'
|
|
37
37
|
});
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
38
40
|
var mobileElementBrowserContainer = (0, _react2.css)(baseBrowserContainerStyles, {
|
|
39
41
|
flexDirection: 'column'
|
|
40
42
|
});
|
|
43
|
+
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
41
45
|
var elementBrowserContainer = (0, _react2.css)(baseBrowserContainerStyles, {
|
|
42
46
|
flexDirection: 'row'
|
|
43
47
|
});
|
|
@@ -47,20 +51,28 @@ var baseSidebarStyles = (0, _react2.css)({
|
|
|
47
51
|
overflowX: 'auto',
|
|
48
52
|
overflowY: 'hidden'
|
|
49
53
|
});
|
|
54
|
+
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
50
56
|
var mobileSideBar = (0, _react2.css)(baseSidebarStyles, {
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
51
58
|
flex: "0 0 ".concat(_constants.INLINE_SIDEBAR_HEIGHT),
|
|
52
59
|
padding: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-150, 12px)", " 0 ", "var(--ds-space-150, 12px)")
|
|
53
60
|
});
|
|
54
61
|
var mobileSideBarShowCategories = (0, _react2.css)({
|
|
55
62
|
flex: '0 0 auto'
|
|
56
63
|
});
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
57
65
|
var sideBar = (0, _react2.css)(baseSidebarStyles, {
|
|
58
66
|
flex: "0 0 'auto'"
|
|
59
67
|
});
|
|
68
|
+
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
60
70
|
var sideBarShowCategories = (0, _react2.css)(baseSidebarStyles, {
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
72
|
flex: "0 0 ".concat(_constants.SIDEBAR_WIDTH)
|
|
62
73
|
});
|
|
63
74
|
var sidebarHeading = (0, _react2.css)({
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
64
76
|
flex: "0 0 ".concat(_constants.SIDEBAR_HEADING_WRAPPER_HEIGHT),
|
|
65
77
|
display: 'inline-flex',
|
|
66
78
|
alignItems: 'center',
|
|
@@ -74,6 +86,8 @@ var mobileMainContent = (0, _react2.css)({
|
|
|
74
86
|
overflowY: 'auto',
|
|
75
87
|
height: '100%'
|
|
76
88
|
});
|
|
89
|
+
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
77
91
|
var mainContent = (0, _react2.css)(mobileMainContent, {
|
|
78
92
|
marginLeft: "var(--ds-space-200, 16px)",
|
|
79
93
|
height: 'auto'
|
|
@@ -85,14 +99,18 @@ var mobileCategoryListWrapper = (0, _react2.css)({
|
|
|
85
99
|
display: 'flex',
|
|
86
100
|
overflowX: 'auto',
|
|
87
101
|
padding: "var(--ds-space-200, 8px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0"),
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
88
103
|
minHeight: "".concat(_constants.GRID_SIZE * 4, "px"),
|
|
89
104
|
overflow: '-moz-scrollbars-none',
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
90
106
|
'&::-webkit-scrollbar': {
|
|
91
107
|
display: 'none'
|
|
92
108
|
},
|
|
93
109
|
scrollbarWidth: 'none',
|
|
94
110
|
MsOverflowStyle: 'none'
|
|
95
111
|
});
|
|
112
|
+
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
96
114
|
var categoryListWrapper = (0, _react2.css)(mobileCategoryListWrapper, {
|
|
97
115
|
padding: 0,
|
|
98
116
|
marginTop: "var(--ds-space-200, 24px)",
|
|
@@ -62,7 +62,6 @@ function ExtensionWithPluginState(props) {
|
|
|
62
62
|
editorAppearance !== 'full-width';
|
|
63
63
|
var classNames = (0, _classnames2.default)('extension-container', 'block', shadowClassNames, (0, _defineProperty2.default)({
|
|
64
64
|
'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
|
|
65
|
-
'with-border': showMacroInteractionDesignUpdates,
|
|
66
65
|
'with-bodied-border': showMacroInteractionDesignUpdates && hasBody,
|
|
67
66
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested,
|
|
68
67
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
|
|
@@ -118,7 +117,9 @@ function ExtensionWithPluginState(props) {
|
|
|
118
117
|
"data-layout": node.attrs.layout
|
|
119
118
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
120
119
|
,
|
|
121
|
-
className: classNames
|
|
120
|
+
className: classNames
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
122
|
+
,
|
|
122
123
|
css: _styles2.wrapperStyle
|
|
123
124
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
124
125
|
,
|
|
@@ -136,6 +137,7 @@ function ExtensionWithPluginState(props) {
|
|
|
136
137
|
className: 'extension-overlay',
|
|
137
138
|
css: _styles.overlay
|
|
138
139
|
}), (0, _react2.jsx)("div", {
|
|
140
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
139
141
|
css: _styles2.header,
|
|
140
142
|
contentEditable: false
|
|
141
143
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -146,11 +148,12 @@ function ExtensionWithPluginState(props) {
|
|
|
146
148
|
node: node,
|
|
147
149
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
148
150
|
}), children), hasBody &&
|
|
149
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
151
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
150
152
|
(0, _react2.jsx)("div", {
|
|
151
153
|
css: newContentStyles,
|
|
152
154
|
className: newContentClassNames
|
|
153
155
|
}, (0, _react2.jsx)("div", {
|
|
156
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
154
157
|
css: _styles2.content,
|
|
155
158
|
ref: handleContentDOMRef
|
|
156
159
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -8,40 +8,49 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
var _styles = require("../styles");
|
|
10
10
|
var widerLayoutClassName = exports.widerLayoutClassName = 'wider-layout';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
11
13
|
var wrapperStyle = exports.wrapperStyle = (0, _react.css)(_styles.wrapperDefault, {
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
12
15
|
'&.without-frame': {
|
|
13
16
|
background: 'transparent'
|
|
14
17
|
},
|
|
15
18
|
cursor: 'pointer',
|
|
16
19
|
width: '100%',
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
17
21
|
'.extension-overflow-wrapper:not(.with-body)': {
|
|
18
22
|
overflowX: 'auto'
|
|
19
23
|
},
|
|
20
|
-
|
|
21
|
-
border: "1px solid transparent" // adding this so macro doesn't jump when hover border is shown
|
|
22
|
-
},
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
25
|
'&.with-bodied-border': {
|
|
24
|
-
|
|
26
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, ".concat(_colors.N30, ")"))
|
|
25
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
29
|
'&.with-hover-border': {
|
|
27
|
-
|
|
30
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-input, ".concat(_colors.N500, ")"))
|
|
28
31
|
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
33
|
'&.with-margin-styles': {
|
|
30
34
|
margin: "0 ".concat("var(--ds-space-negative-150, -12px)"),
|
|
31
|
-
|
|
32
|
-
padding: '0 10px' // need exact number here to match editor elements' width
|
|
35
|
+
padding: "0 ".concat("var(--ds-space-150, 12px)")
|
|
33
36
|
}
|
|
34
37
|
});
|
|
38
|
+
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
35
40
|
var header = exports.header = (0, _react.css)({
|
|
36
41
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " 0px"),
|
|
37
42
|
verticalAlign: 'middle',
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
38
44
|
'&.with-children:not(.without-frame)': {
|
|
39
45
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
|
|
40
46
|
},
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
48
|
'&.without-frame': {
|
|
42
49
|
padding: 0
|
|
43
50
|
}
|
|
44
51
|
});
|
|
52
|
+
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
45
54
|
var content = exports.content = (0, _react.css)({
|
|
46
55
|
padding: "var(--ds-space-100, 8px)",
|
|
47
56
|
background: "var(--ds-surface, white)",
|
|
@@ -49,21 +58,27 @@ var content = exports.content = (0, _react.css)({
|
|
|
49
58
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
50
59
|
cursor: 'initial',
|
|
51
60
|
width: '100%',
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
62
|
'&.remove-border': {
|
|
53
63
|
border: 'none'
|
|
54
64
|
}
|
|
55
65
|
});
|
|
66
|
+
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
56
68
|
var contentWrapper = exports.contentWrapper = (0, _react.css)({
|
|
57
69
|
padding: "0 ".concat("var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)"),
|
|
58
70
|
display: 'flex',
|
|
59
71
|
justifyContent: 'center',
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
60
73
|
'&.with-padding-styles': {
|
|
61
74
|
padding: "var(--ds-space-100, 8px)"
|
|
62
75
|
}
|
|
63
76
|
});
|
|
77
|
+
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
64
79
|
var overflowWrapperStyles = exports.overflowWrapperStyles = (0, _react.css)({
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
65
81
|
'&.with-margin-styles': {
|
|
66
|
-
|
|
67
|
-
margin: "0 -10px" // need exact number here to match editor elements' width
|
|
82
|
+
margin: "0 ".concat("var(--ds-space-negative-150, -12px)")
|
|
68
83
|
}
|
|
69
84
|
});
|
|
@@ -35,7 +35,6 @@ var InlineExtension = function InlineExtension(props) {
|
|
|
35
35
|
'with-overlay': !showMacroInteractionDesignUpdates,
|
|
36
36
|
'with-children': hasChildren,
|
|
37
37
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
38
|
-
'with-border': showMacroInteractionDesignUpdates,
|
|
39
38
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered
|
|
40
39
|
});
|
|
41
40
|
var rendererContainerWidth = widthState ? widthState.width - (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2 : 0;
|
|
@@ -52,7 +51,9 @@ var InlineExtension = function InlineExtension(props) {
|
|
|
52
51
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
|
|
53
52
|
setIsNodeHovered: setIsNodeHovered
|
|
54
53
|
}), (0, _react2.jsx)("div", {
|
|
55
|
-
"data-testid": "inline-extension-wrapper"
|
|
54
|
+
"data-testid": "inline-extension-wrapper"
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
56
|
+
,
|
|
56
57
|
css: [_styles2.wrapperStyle, extendedInlineExtension && _styles2.inlineWrapperStyles]
|
|
57
58
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
58
59
|
,
|
|
@@ -7,10 +7,12 @@ exports.wrapperStyle = exports.inlineWrapperStyles = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
var _styles = require("../styles");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
10
11
|
var wrapperStyle = exports.wrapperStyle = (0, _react.css)(_styles.wrapperDefault, {
|
|
11
12
|
cursor: 'pointer',
|
|
12
13
|
display: 'inline-flex',
|
|
13
14
|
margin: "1px 1px ".concat("var(--ds-space-050, 4px)"),
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
16
|
'> img': {
|
|
15
17
|
borderRadius: "var(--ds-border-radius, 3px)"
|
|
16
18
|
},
|
|
@@ -20,22 +22,25 @@ var wrapperStyle = exports.wrapperStyle = (0, _react.css)(_styles.wrapperDefault
|
|
|
20
22
|
width: '1px',
|
|
21
23
|
content: "''"
|
|
22
24
|
},
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
26
|
'&.with-children': {
|
|
24
27
|
padding: 0,
|
|
25
28
|
background: "var(--ds-background-neutral-subtle, white)"
|
|
26
29
|
},
|
|
27
|
-
|
|
28
|
-
border: "1px solid transparent" // adding this so macro doesn't jump when hover border is shown
|
|
29
|
-
},
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
31
|
'&.with-hover-border': {
|
|
31
|
-
|
|
32
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-input, ".concat(_colors.N500, ")"))
|
|
32
33
|
}
|
|
33
34
|
});
|
|
35
|
+
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
34
37
|
var inlineWrapperStyles = exports.inlineWrapperStyles = (0, _react.css)({
|
|
35
38
|
maxWidth: '100%',
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
36
40
|
'tr &': {
|
|
37
41
|
maxWidth: 'inherit'
|
|
38
42
|
},
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
44
|
'.rich-media-item': {
|
|
40
45
|
maxWidth: '100%'
|
|
41
46
|
}
|
|
@@ -20,11 +20,13 @@ var labelStyles = (0, _react2.css)({
|
|
|
20
20
|
// Unfortunately, these need to be these exact numbers - otherwise there will be a noticeable gap/overlap
|
|
21
21
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
22
22
|
top: '-19px',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
24
|
'&.inline': {
|
|
24
25
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
25
26
|
top: '-18px',
|
|
26
27
|
marginLeft: "var(--ds-space-150, 12px)"
|
|
27
28
|
},
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
30
|
'&.show-label': {
|
|
29
31
|
cursor: 'pointer',
|
|
30
32
|
background: "var(--ds-background-accent-gray-subtle-pressed, ".concat(_colors.N40, ")"),
|
|
@@ -33,20 +35,20 @@ var labelStyles = (0, _react2.css)({
|
|
|
33
35
|
},
|
|
34
36
|
borderRadius: "var(--ds-border-radius, 3px)".concat(" ", "var(--ds-border-radius, 3px)", " 0 0"),
|
|
35
37
|
lineHeight: 1,
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
36
39
|
'&.nested': {
|
|
37
40
|
// Need to add indent if the node is nested since we removed previous indentation styles to make it fit properly
|
|
38
41
|
// in the nested component
|
|
39
42
|
marginLeft: "var(--ds-space-150, 12px)"
|
|
40
43
|
},
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
45
|
'&.bodied-background': {
|
|
42
46
|
background: "var(--ds-surface, ".concat(_colors.N0, ")")
|
|
43
47
|
},
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
44
49
|
'&.bodied-border': {
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
// to account for bodied having borders now - adding this to help with less conditional styling
|
|
48
|
-
border: '1px solid transparent',
|
|
49
|
-
borderBottom: 'none'
|
|
50
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, ".concat(_colors.N30, ")"))
|
|
51
|
+
}
|
|
50
52
|
});
|
|
51
53
|
var textStyles = (0, _react2.css)({
|
|
52
54
|
fontSize: '14px',
|
|
@@ -57,6 +59,7 @@ var containerStyles = (0, _react2.css)({
|
|
|
57
59
|
textAlign: 'left',
|
|
58
60
|
zIndex: 1,
|
|
59
61
|
position: 'relative',
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
60
63
|
'&.bodied': {
|
|
61
64
|
marginTop: "var(--ds-space-300, 24px)"
|
|
62
65
|
}
|
|
@@ -92,7 +95,9 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
92
95
|
}, [setIsNodeHovered]);
|
|
93
96
|
return (0, _react2.jsx)("div", {
|
|
94
97
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
95
|
-
css: containerStyles
|
|
98
|
+
css: containerStyles
|
|
99
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
100
|
+
,
|
|
96
101
|
className: containerClassNames
|
|
97
102
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
98
103
|
,
|