@atlaskit/editor-common 82.3.0 → 82.5.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 +26 -0
- package/dist/cjs/analytics/types/element-events.js +5 -0
- package/dist/cjs/analytics/types/enums.js +8 -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 -2
- package/dist/cjs/extensibility/Extension/Extension/styles.js +20 -0
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +8 -0
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -1
- 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 +12 -0
- package/dist/cjs/extensions/module-helpers.js +4 -0
- 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/FloatingToolbar/Button.js +2 -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 +10 -3
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/index.js +1 -0
- 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/es2019/analytics/types/element-events.js +1 -0
- package/dist/es2019/analytics/types/enums.js +8 -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 -2
- package/dist/es2019/extensibility/Extension/Extension/styles.js +20 -0
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +9 -0
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -1
- 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 +12 -0
- package/dist/es2019/extensions/module-helpers.js +4 -0
- 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/FloatingToolbar/Button.js +2 -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 +10 -3
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/index.js +1 -0
- 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/esm/analytics/types/element-events.js +1 -0
- package/dist/esm/analytics/types/enums.js +8 -0
- 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 -2
- package/dist/esm/extensibility/Extension/Extension/styles.js +20 -0
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +9 -0
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -1
- 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 +12 -0
- package/dist/esm/extensions/module-helpers.js +4 -0
- 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/FloatingToolbar/Button.js +2 -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 +10 -3
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/esm/ui-color/ColorPalette/index.js +1 -0
- 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/types/analytics/types/element-events.d.ts +10 -0
- package/dist/types/analytics/types/enums.d.ts +9 -1
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/analytics/types/highlight-events.d.ts +4 -2
- package/dist/types/analytics/types/index.d.ts +1 -0
- package/dist/types/extensions/types/extension-manifest-toolbar-item.d.ts +17 -2
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/messages/help-dialog.d.ts +5 -0
- package/dist/types/ui/FloatingToolbar/Button.d.ts +2 -1
- package/dist/types/ui-color/ColorPalette/Color/index.d.ts +2 -8
- package/dist/types-ts4.5/analytics/types/element-events.d.ts +10 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +9 -1
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +4 -2
- package/dist/types-ts4.5/analytics/types/index.d.ts +1 -0
- package/dist/types-ts4.5/extensions/types/extension-manifest-toolbar-item.d.ts +17 -2
- 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/ui/FloatingToolbar/Button.d.ts +2 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +2 -8
- package/package.json +1 -1
|
@@ -3,26 +3,35 @@
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
// Wraps the navigation bar and extensionFrames
|
|
5
5
|
const mbeExtensionContainer = css({
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
6
7
|
background: 'transparent !important',
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
7
9
|
'padding:': {
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
8
11
|
left: `${"var(--ds-space-100, 8px)"} !important`,
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
9
13
|
right: `${"var(--ds-space-100, 8px)"} !important`
|
|
10
14
|
},
|
|
11
15
|
paddingBottom: "var(--ds-space-100, 8px)",
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
12
17
|
'&.remove-padding': {
|
|
13
18
|
paddingBottom: 0
|
|
14
19
|
},
|
|
15
20
|
position: 'relative',
|
|
16
21
|
verticalAlign: 'middle',
|
|
17
22
|
cursor: 'pointer',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
24
|
'.multiBodiedExtension-handler-result': {
|
|
19
25
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
20
26
|
},
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
28
|
".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'], .multiBodiedExtension--frames > [data-extension-frame='true']": {
|
|
22
29
|
display: 'none',
|
|
23
30
|
background: "var(--ds-surface, white)"
|
|
24
31
|
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
33
|
'.multiBodiedExtension-content-dom-wrapper, .multiBodiedExtension--frames': {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
26
35
|
"[data-extension-frame='true'] > :not(style):first-child, [data-extension-frame='true'] > style:first-child + *": {
|
|
27
36
|
marginTop: 0
|
|
28
37
|
}
|
|
@@ -33,18 +42,22 @@ const mbeNavigation = css({
|
|
|
33
42
|
borderTopRightRadius: "var(--ds-border-radius, 3px)",
|
|
34
43
|
userSelect: 'none',
|
|
35
44
|
WebkitUserModify: 'read-only',
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
36
46
|
borderBottom: 'none !important',
|
|
37
47
|
background: "var(--ds-surface, white)",
|
|
38
48
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
39
49
|
marginRight: "var(--ds-space-100, 8px)",
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
40
51
|
'&.remove-margins': {
|
|
41
52
|
margin: "var(--ds-space-negative-100, -8px)"
|
|
42
53
|
},
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
43
55
|
'&.remove-border': {
|
|
44
56
|
border: 'none'
|
|
45
57
|
}
|
|
46
58
|
});
|
|
47
59
|
const extensionFrameContent = css({
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
48
61
|
padding: `${"var(--ds-space-100, 8px)"} !important`,
|
|
49
62
|
display: 'block',
|
|
50
63
|
minHeight: '100px',
|
|
@@ -54,22 +67,33 @@ const extensionFrameContent = css({
|
|
|
54
67
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
55
68
|
marginRight: "var(--ds-space-100, 8px)",
|
|
56
69
|
cursor: 'initial',
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
57
71
|
'.pm-table-with-controls': {
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
58
73
|
marginLeft: `${"var(--ds-space-150, 12px)"} !important`,
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
59
75
|
paddingRight: `${"var(--ds-space-150, 12px)"} !important`
|
|
60
76
|
},
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
61
78
|
'.bodiedExtensionView-content-wrap': {
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
62
80
|
marginTop: `${"var(--ds-space-150, 12px)"} !important`
|
|
63
81
|
},
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
64
83
|
'.extensionView-content-wrap': {
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
65
85
|
marginTop: `${"var(--ds-space-100, 8px)"} !important`
|
|
66
86
|
}
|
|
67
87
|
});
|
|
88
|
+
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
68
90
|
export const removeMarginsAndBorder = css({
|
|
69
91
|
marginLeft: 0,
|
|
70
92
|
marginRight: 0,
|
|
71
93
|
border: 'none'
|
|
72
94
|
});
|
|
95
|
+
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
73
97
|
export const sharedMultiBodiedExtensionStyles = {
|
|
74
98
|
mbeExtensionContainer,
|
|
75
99
|
mbeNavigation,
|
|
@@ -107,6 +107,7 @@ export default class PanelTextInput extends PureComponent {
|
|
|
107
107
|
value
|
|
108
108
|
} = this.state;
|
|
109
109
|
return jsx("input", {
|
|
110
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
110
111
|
css: [panelTextInput, width !== undefined && panelTextInputWithCustomWidth(width)],
|
|
111
112
|
role: role,
|
|
112
113
|
"aria-autocomplete": ariaAutoComplete ? 'list' : undefined,
|
|
@@ -2,7 +2,9 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { B100, N100, N30, N400 } from '@atlaskit/theme/colors';
|
|
4
4
|
// Normal .className gets overridden by input[type=text] hence this hack to produce input.className
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
6
|
export const panelTextInput = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
6
8
|
'input&': {
|
|
7
9
|
background: 'transparent',
|
|
8
10
|
border: `2px solid ${`var(--ds-border, ${N30})`}`,
|
|
@@ -10,11 +12,13 @@ export const panelTextInput = css({
|
|
|
10
12
|
boxSizing: 'content-box',
|
|
11
13
|
color: `var(--ds-text-subtle, ${N400})`,
|
|
12
14
|
flexGrow: 1,
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
16
|
fontSize: relativeFontSizeToBase16(13),
|
|
14
17
|
lineHeight: '20px',
|
|
15
18
|
padding: `${"var(--ds-space-075, 6px)"} ${"var(--ds-space-400, 32px)"} ${"var(--ds-space-075, 6px)"} ${"var(--ds-space-100, 8px)"}`,
|
|
16
19
|
minWidth: '145px',
|
|
17
20
|
/* Hides IE10+ built-in [x] clear input button */
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
18
22
|
'&::-ms-clear': {
|
|
19
23
|
display: 'none'
|
|
20
24
|
},
|
|
@@ -28,7 +32,9 @@ export const panelTextInput = css({
|
|
|
28
32
|
}
|
|
29
33
|
});
|
|
30
34
|
export const panelTextInputWithCustomWidth = width => css({
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
36
|
'input&': {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
38
|
width: `${width}px`
|
|
33
39
|
}
|
|
34
40
|
});
|
|
@@ -255,6 +255,7 @@ export default class Popup extends React.Component {
|
|
|
255
255
|
style: {
|
|
256
256
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
257
257
|
position: 'absolute',
|
|
258
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
258
259
|
zIndex: this.props.zIndex || akEditorFloatingPanelZIndex,
|
|
259
260
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
260
261
|
...position,
|
|
@@ -14,10 +14,12 @@ import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
|
14
14
|
const blockNodeStyle = css({
|
|
15
15
|
background: `var(--ds-background-disabled, ${N30})`,
|
|
16
16
|
border: `1px dashed ${`var(--ds-border-disabled, ${N50})`}`,
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
18
|
borderRadius: `${borderRadius()}px`,
|
|
18
19
|
boxSizing: 'border-box',
|
|
19
20
|
cursor: 'default',
|
|
20
21
|
display: 'flex',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
23
|
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
22
24
|
margin: `${"var(--ds-space-100, 8px)"} 0`,
|
|
23
25
|
minHeight: '24px',
|
|
@@ -15,10 +15,12 @@ const inlineNodeStyle = css({
|
|
|
15
15
|
alignItems: 'center',
|
|
16
16
|
background: `var(--ds-background-disabled, ${N30})`,
|
|
17
17
|
border: `1px dashed ${`var(--ds-border-disabled, ${N50})`}`,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
19
|
borderRadius: `${borderRadius()}px`,
|
|
19
20
|
boxSizing: 'border-box',
|
|
20
21
|
cursor: 'default',
|
|
21
22
|
display: 'inline-flex',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
24
|
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
23
25
|
margin: `0 ${"var(--ds-space-025, 2px)"}`,
|
|
24
26
|
minHeight: '24px',
|
|
@@ -2,17 +2,22 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
|
|
3
3
|
// We use !important to ensure next sibling gets the margin reset no matter what
|
|
4
4
|
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
6
|
export const clearNextSiblingMarginTopStyle = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
8
|
'& + *': {
|
|
7
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
8
10
|
marginTop: '0 !important'
|
|
9
11
|
}
|
|
10
12
|
});
|
|
11
13
|
const textElements = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
12
14
|
const nextSiblingBlockMarkContentSelectors = textElements.map(elem => `+ .fabric-editor-block-mark > ${elem}`).join(',');
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
13
17
|
export const clearNextSiblingBlockMarkMarginTopStyle = css({
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
19
|
[`${nextSiblingBlockMarkContentSelectors}`]: {
|
|
15
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
16
21
|
marginTop: '0 !important'
|
|
17
22
|
}
|
|
18
23
|
});
|
|
@@ -60,7 +60,7 @@ function FunctionalComponentColor(props) {
|
|
|
60
60
|
border: `1px solid ${borderColor}`
|
|
61
61
|
},
|
|
62
62
|
autoFocus: autoFocus
|
|
63
|
-
}, isSelected && jsx(EditorDoneIcon, {
|
|
63
|
+
}, !decorator && isSelected && jsx(EditorDoneIcon, {
|
|
64
64
|
primaryColor: checkMarkColor,
|
|
65
65
|
label: ""
|
|
66
66
|
}), decorator)));
|
|
@@ -105,7 +105,9 @@ class ClassComponentColor extends PureComponent {
|
|
|
105
105
|
}, jsx("span", {
|
|
106
106
|
css: buttonWrapperStyle
|
|
107
107
|
}, jsx("button", {
|
|
108
|
-
type: "button"
|
|
108
|
+
type: "button"
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
110
|
+
,
|
|
109
111
|
css: buttonStyle,
|
|
110
112
|
"aria-label": label,
|
|
111
113
|
role: "radio",
|
|
@@ -127,5 +129,10 @@ class ClassComponentColor extends PureComponent {
|
|
|
127
129
|
}))));
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
|
-
const Color =
|
|
132
|
+
const Color = props => {
|
|
133
|
+
if (getBooleanFF('platform.editor.transparent-diagonal-decorator')) {
|
|
134
|
+
return jsx(FunctionalComponentColor, props);
|
|
135
|
+
}
|
|
136
|
+
return jsx(ClassComponentColor, props);
|
|
137
|
+
};
|
|
131
138
|
export default Color;
|
|
@@ -2,6 +2,7 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { N0, N50, N900 } from '@atlaskit/theme/colors';
|
|
3
3
|
/** this is not new usage - old code extracted from editor-core */
|
|
4
4
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
6
|
export const buttonStyle = css({
|
|
6
7
|
height: '26px',
|
|
7
8
|
width: '26px',
|
|
@@ -16,6 +17,7 @@ export const buttonStyle = css({
|
|
|
16
17
|
|
|
17
18
|
/** this is not new usage - old code extracted from editor-core */
|
|
18
19
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
19
21
|
export const buttonWrapperStyle = css({
|
|
20
22
|
border: '1px solid transparent',
|
|
21
23
|
fontSize: 0,
|
|
@@ -24,6 +26,7 @@ export const buttonWrapperStyle = css({
|
|
|
24
26
|
padding: "var(--ds-space-025, 2px)",
|
|
25
27
|
borderRadius: '6px',
|
|
26
28
|
'&:focus-within, &:focus, &:hover': {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
27
30
|
borderColor: `${`var(--ds-border, ${N50})`} !important`
|
|
28
31
|
}
|
|
29
32
|
});
|
|
@@ -123,7 +123,7 @@ export default defineMessages({
|
|
|
123
123
|
// Colors only used in highlight palette
|
|
124
124
|
'no-color': {
|
|
125
125
|
id: 'fabric.theme.no-color',
|
|
126
|
-
defaultMessage: '
|
|
126
|
+
defaultMessage: 'No highlight',
|
|
127
127
|
description: 'Tooltip for the no color option in the highlight color palette in the main editor toolbar'
|
|
128
128
|
},
|
|
129
129
|
lime: {
|
|
@@ -57,6 +57,7 @@ const ColorPalette = props => {
|
|
|
57
57
|
return getColorsPerRowFromPalette(palette, cols);
|
|
58
58
|
}, [palette, cols]);
|
|
59
59
|
return jsx(React.Fragment, null, colorsPerRow.map(row => jsx("div", {
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
60
61
|
css: colorPaletteWrapper
|
|
61
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
62
63
|
,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
3
|
export const colorPaletteWrapper = css({
|
|
3
4
|
padding: `0 ${"var(--ds-space-100, 8px)"}`,
|
|
4
5
|
/* Firefox bug fix: https://product-fabric.atlassian.net/browse/ED-1789 */
|
|
@@ -24,6 +24,7 @@ const colorPickerExpandContainer = css({
|
|
|
24
24
|
// Control the size of color picker buttons and preview
|
|
25
25
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4134
|
|
26
26
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
27
28
|
const colorPickerWrapper = () => css({
|
|
28
29
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
29
30
|
backgroundColor: `var(--ds-surface-overlay, ${N0})`,
|
|
@@ -155,17 +156,23 @@ const ColorPickerButton = props => {
|
|
|
155
156
|
return css({
|
|
156
157
|
padding: `${"var(--ds-space-075, 6px)"} 10px`,
|
|
157
158
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
159
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
158
160
|
height: `${!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''}`,
|
|
161
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
159
162
|
'&:before': {
|
|
160
163
|
display: 'flex',
|
|
161
164
|
justifyContent: 'center',
|
|
162
165
|
alignItems: 'center',
|
|
163
166
|
alignSelf: 'center',
|
|
164
167
|
content: "''",
|
|
168
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
165
169
|
border: `1px solid ${DEFAULT_BORDER_COLOR}`,
|
|
166
170
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
167
172
|
backgroundColor: currentColor || 'transparent',
|
|
173
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
168
174
|
width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
|
|
175
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
169
176
|
height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
|
|
170
177
|
padding: 0,
|
|
171
178
|
margin: `0px ${"var(--ds-space-025, 2px)"}`
|
|
@@ -18,6 +18,7 @@ import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
|
|
|
18
18
|
import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
|
|
19
19
|
const wrapper = css({
|
|
20
20
|
/* tooltip in ToolbarButton is display:block */
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
22
|
'& > div > div': {
|
|
22
23
|
display: 'flex'
|
|
23
24
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
9
9
|
ACTION["ACTIVATED"] = "activated";
|
|
10
10
|
ACTION["ADDED"] = "added";
|
|
11
11
|
ACTION["BROWSER_FREEZE"] = "browserFreeze";
|
|
12
|
+
ACTION["CANCELLED"] = "cancelled";
|
|
12
13
|
ACTION["CAUGHT_DOM_ERROR"] = "caughtDomError";
|
|
13
14
|
ACTION["CHANGED_BACKGROUND_COLOR"] = "changedBackgroundColor";
|
|
14
15
|
ACTION["CHANGED_ICON"] = "changedIcon";
|
|
@@ -34,6 +35,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
34
35
|
ACTION["DISMISSED"] = "dismissed";
|
|
35
36
|
ACTION["DISPATCHED_INVALID_TRANSACTION"] = "dispatchedInvalidTransaction";
|
|
36
37
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
38
|
+
ACTION["DRAGGED"] = "dragged";
|
|
37
39
|
ACTION["EDITED"] = "edited";
|
|
38
40
|
ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
|
|
39
41
|
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
|
|
@@ -148,6 +150,7 @@ export var INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
|
148
150
|
INPUT_METHOD["CONFIG_PANEL"] = "configPanel";
|
|
149
151
|
INPUT_METHOD["CONTEXT_MENU"] = "contextMenu";
|
|
150
152
|
INPUT_METHOD["DRAG_AND_DROP"] = "dragAndDrop";
|
|
153
|
+
INPUT_METHOD["DRAG"] = "drag";
|
|
151
154
|
INPUT_METHOD["EXTERNAL"] = "external";
|
|
152
155
|
INPUT_METHOD["EXTENSION_API"] = "extensionApi";
|
|
153
156
|
INPUT_METHOD["FLOATING_TB"] = "floatingToolbar";
|
|
@@ -225,6 +228,9 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
225
228
|
ACTION_SUBJECT["LOOM"] = "loom";
|
|
226
229
|
ACTION_SUBJECT["MULTI_BODIED_EXTENSION"] = "multiBodiedExtension";
|
|
227
230
|
ACTION_SUBJECT["BODIED_EXTENSION"] = "bodiedExtension";
|
|
231
|
+
ACTION_SUBJECT["DROP_TARGET"] = "dropTarget";
|
|
232
|
+
ACTION_SUBJECT["DRAG"] = "drag";
|
|
233
|
+
ACTION_SUBJECT["ELEMENT"] = "element";
|
|
228
234
|
return ACTION_SUBJECT;
|
|
229
235
|
}({});
|
|
230
236
|
export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -254,6 +260,8 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
254
260
|
ACTION_SUBJECT_ID["DECISION"] = "decision";
|
|
255
261
|
ACTION_SUBJECT_ID["DIVIDER"] = "divider";
|
|
256
262
|
ACTION_SUBJECT_ID["EDIT_LINK"] = "editLink";
|
|
263
|
+
ACTION_SUBJECT_ID["ELEMENT_DRAG_HANDLE"] = "elementDragHandle";
|
|
264
|
+
ACTION_SUBJECT_ID["ELEMENT_DROP_TARGET"] = "elementDropTarget";
|
|
257
265
|
ACTION_SUBJECT_ID["EMBEDS"] = "embeds";
|
|
258
266
|
ACTION_SUBJECT_ID["EMOJI"] = "emoji";
|
|
259
267
|
ACTION_SUBJECT_ID["EXPAND"] = "expand";
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -137,7 +137,7 @@ export var TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
|
137
137
|
|
|
138
138
|
// ED-22557: Safely convert to object styling
|
|
139
139
|
// Disable top: -14px since it is necessary to align to cursor
|
|
140
|
-
// 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
|
|
140
|
+
// 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
|
|
141
141
|
export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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"])), relativeFontSizeToBase16(9), "var(--ds-space-025, 2px)", "var(--ds-text-inverse, #FFFFFF)", TELEPOINTER_DIM_CLASS, avatarColors.map(function (color, index) {
|
|
142
142
|
return telepointerColorStyle(color, index);
|
|
143
143
|
}));
|
|
@@ -30,6 +30,7 @@ export var ViewMore = function ViewMore(_ref) {
|
|
|
30
30
|
"aria-describedby": item.title,
|
|
31
31
|
"data-testid": "view-more-elements-item"
|
|
32
32
|
// @ts-ignore Overriding Menu styles is not supported
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
34
|
,
|
|
34
35
|
css: css({
|
|
35
36
|
padding: "0px ".concat("var(--ds-space-150, 12px)")
|
|
@@ -181,9 +181,11 @@ function CategoryListItem(_ref2) {
|
|
|
181
181
|
}, category.title));
|
|
182
182
|
}
|
|
183
183
|
var buttonWrapper = css(_defineProperty({
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
184
185
|
height: "".concat(GRID_SIZE * 4, "px"),
|
|
185
186
|
margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " 0")
|
|
186
187
|
}, "@media (min-width: ".concat(DEVICE_BREAKPOINT_NUMBERS.medium, "px)"), {
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
187
189
|
':not(:last-child)': {
|
|
188
190
|
marginBottom: 0
|
|
189
191
|
}
|
|
@@ -28,16 +28,20 @@ import EmptyState from './EmptyState';
|
|
|
28
28
|
import { getColumnCount, getScrollbarWidth } from './utils';
|
|
29
29
|
export var ICON_HEIGHT = 40;
|
|
30
30
|
export var ICON_WIDTH = 40;
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
31
33
|
export var itemIcon = css({
|
|
32
34
|
width: "".concat(ICON_WIDTH, "px"),
|
|
33
35
|
height: "".concat(ICON_HEIGHT, "px"),
|
|
34
36
|
overflow: 'hidden',
|
|
35
37
|
border: "1px solid ".concat("var(--ds-border, rgba(223, 225, 229, 0.5))"),
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
39
|
borderRadius: "".concat(borderRadius(), "px"),
|
|
37
40
|
boxSizing: 'border-box',
|
|
38
41
|
display: 'flex',
|
|
39
42
|
justifyContent: 'center',
|
|
40
43
|
alignItems: 'center',
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
41
45
|
div: {
|
|
42
46
|
width: "".concat(ICON_WIDTH, "px"),
|
|
43
47
|
height: "".concat(ICON_HEIGHT, "px")
|
|
@@ -170,8 +174,11 @@ function ElementList(_ref) {
|
|
|
170
174
|
columnIndex: columnIndex,
|
|
171
175
|
parent: parent
|
|
172
176
|
}, jsx("div", {
|
|
177
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
173
178
|
style: style,
|
|
174
|
-
key: key
|
|
179
|
+
key: key
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766 -- Ignored via go/DSP-18766
|
|
181
|
+
,
|
|
175
182
|
className: "element-item-wrapper",
|
|
176
183
|
css: elementItemWrapper,
|
|
177
184
|
onKeyDown: getBooleanFF('platform.editor.a11y-focus-order-for-element-browser-categories_ztiw1') ? function (e) {
|
|
@@ -374,21 +381,28 @@ var elementItemsWrapper = css({
|
|
|
374
381
|
justifyContent: 'flex-start',
|
|
375
382
|
overflow: 'hidden',
|
|
376
383
|
padding: "var(--ds-space-025, 2px)",
|
|
384
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
377
385
|
'.ReactVirtualized__Collection, .ReactVirtualized__Grid': {
|
|
386
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
378
387
|
borderRadius: '3px',
|
|
379
388
|
outline: 'none',
|
|
380
389
|
'&:focus': {
|
|
390
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
381
391
|
boxShadow: "0 0 0 ".concat(ELEMENT_LIST_PADDING, "px ", "var(--ds-border-focused, ".concat(B100, ")"))
|
|
382
392
|
}
|
|
383
393
|
},
|
|
394
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
384
395
|
'.ReactVirtualized__Collection__innerScrollContainer, .ReactVirtualized__Grid__innerScrollContainer': {
|
|
396
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
385
397
|
"div[class='element-item-wrapper']:last-child": {
|
|
386
398
|
paddingBottom: "var(--ds-space-050, 4px)"
|
|
387
399
|
}
|
|
388
400
|
}
|
|
389
401
|
});
|
|
390
402
|
var elementItemWrapper = css({
|
|
403
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
391
404
|
div: {
|
|
405
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
392
406
|
button: {
|
|
393
407
|
minHeight: '75px',
|
|
394
408
|
alignItems: 'flex-start',
|
|
@@ -415,8 +429,11 @@ var multilineStyle = css({
|
|
|
415
429
|
WebkitLineClamp: 2,
|
|
416
430
|
WebkitBoxOrient: 'vertical'
|
|
417
431
|
});
|
|
432
|
+
|
|
433
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
418
434
|
var itemDescription = css(multilineStyle, {
|
|
419
435
|
overflow: 'hidden',
|
|
436
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
420
437
|
fontSize: relativeFontSizeToBase16(11.67),
|
|
421
438
|
color: "var(--ds-text-subtle, ".concat(N200, ")"),
|
|
422
439
|
marginTop: "var(--ds-space-025, 2px)"
|
|
@@ -441,6 +458,7 @@ var itemAfter = css({
|
|
|
441
458
|
marginBottom: "var(--ds-space-negative-025, -2px)"
|
|
442
459
|
});
|
|
443
460
|
var itemIconStyle = css({
|
|
461
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
444
462
|
img: {
|
|
445
463
|
height: '40px',
|
|
446
464
|
width: '40px',
|
|
@@ -72,67 +72,79 @@ function ElementSearch(_ref) {
|
|
|
72
72
|
var assistiveMessage = getFormattedMessage(items === null || items === void 0 ? void 0 : items.length);
|
|
73
73
|
var isInputNotFocusedAndItemSelected = !inputFocused && selectedItemIndex !== undefined;
|
|
74
74
|
var ariaActiveDescendant = isInputNotFocusedAndItemSelected ? "searched-item-".concat(selectedItemIndex) : undefined;
|
|
75
|
-
return
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
75
|
+
return (
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
77
|
+
jsx("div", {
|
|
78
|
+
css: [wrapper, mode === Modes.inline && wrapperInline]
|
|
79
|
+
}, jsx(Textfield, {
|
|
80
|
+
ref: ref,
|
|
81
|
+
onChange: onChange,
|
|
82
|
+
onClick: onClick,
|
|
83
|
+
onFocus: onFocus,
|
|
84
|
+
onKeyDown: onKeyDown,
|
|
85
|
+
onBlur: onBlur,
|
|
86
|
+
elemBeforeInput: jsx("div", {
|
|
87
|
+
css: elementBeforeInput,
|
|
88
|
+
"data-testid": "element_search__element_before_input",
|
|
89
|
+
"aria-hidden": "true"
|
|
90
|
+
}, jsx(SearchIcon, {
|
|
91
|
+
size: "medium",
|
|
92
|
+
label: "Advanced search",
|
|
93
|
+
primaryColor: "inherit"
|
|
94
|
+
})),
|
|
95
|
+
elemAfterInput: jsx("div", {
|
|
96
|
+
css: elementAfterInput,
|
|
97
|
+
"data-testid": "element_search__element_after_input"
|
|
98
|
+
}, jsx("div", {
|
|
99
|
+
css: styledShortcut
|
|
100
|
+
}, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
|
|
101
|
+
placeholder: formatMessage(commonMessages.placeHolderMessage),
|
|
102
|
+
"aria-label": "search",
|
|
103
|
+
"aria-labelledby": "search-assistive"
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
105
|
+
,
|
|
106
|
+
className: "js-search-input",
|
|
107
|
+
role: "combobox",
|
|
108
|
+
"aria-activedescendant": ariaActiveDescendant,
|
|
109
|
+
value: searchTerm
|
|
110
|
+
}), jsx("span", {
|
|
111
|
+
id: "search-assistive",
|
|
112
|
+
ref: assistiveTextRef,
|
|
113
|
+
"aria-live": "polite",
|
|
114
|
+
"aria-atomic": "true"
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
116
|
+
,
|
|
117
|
+
className: "assistive"
|
|
118
|
+
}, assistiveMessage))
|
|
119
|
+
);
|
|
117
120
|
}
|
|
121
|
+
|
|
122
|
+
// 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
|
|
118
123
|
var styledShortcut = css(shortcutStyle, {
|
|
119
124
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
|
|
120
125
|
width: "var(--ds-space-600, 48px)"
|
|
121
126
|
});
|
|
122
127
|
var wrapper = css({
|
|
128
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
123
129
|
'& > [data-ds--text-field--container]': {
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
124
131
|
height: "".concat(GRID_SIZE * 6, "px"),
|
|
132
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
125
133
|
borderRadius: "".concat(GRID_SIZE, "px"),
|
|
126
134
|
flex: '1 1 100%',
|
|
127
135
|
overflow: 'visible',
|
|
136
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
128
137
|
'& > [data-ds--text-field--input]': {
|
|
138
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
129
139
|
fontSize: relativeFontSizeToBase16(14),
|
|
130
140
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-075, 6px)", " ", "var(--ds-space-100, 8px)", " 0")
|
|
131
141
|
}
|
|
132
142
|
}
|
|
133
143
|
});
|
|
134
144
|
var wrapperInline = css({
|
|
145
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
135
146
|
'& > [data-ds--text-field--container]': {
|
|
147
|
+
// 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
148
|
height: "".concat(GRID_SIZE * 5, "px"),
|
|
137
149
|
flex: 'none',
|
|
138
150
|
overflow: 'revert'
|
|
@@ -141,6 +153,7 @@ var wrapperInline = css({
|
|
|
141
153
|
var elementBeforeInput = css({
|
|
142
154
|
margin: "1px ".concat("var(--ds-space-075, 6px)", " 0 ", "var(--ds-space-100, 8px)"),
|
|
143
155
|
color: "var(--ds-icon, ".concat(N200, ")"),
|
|
156
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
144
157
|
'span, svg': {
|
|
145
158
|
height: '20px',
|
|
146
159
|
width: '20px'
|
|
@@ -148,6 +161,7 @@ var elementBeforeInput = css({
|
|
|
148
161
|
});
|
|
149
162
|
var elementAfterInput = css({
|
|
150
163
|
margin: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
164
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
151
165
|
height: SEARCH_ITEM_HEIGHT_WIDTH,
|
|
152
166
|
textAlign: 'center'
|
|
153
167
|
});
|