@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
|
@@ -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
|
});
|
|
@@ -3,10 +3,69 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import React, { PureComponent } from 'react';
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
5
|
import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
|
|
6
|
+
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import { N0 } from '@atlaskit/theme/colors';
|
|
7
8
|
import Tooltip from '@atlaskit/tooltip';
|
|
8
9
|
import { buttonStyle, buttonWrapperStyle } from './styles';
|
|
9
|
-
|
|
10
|
+
function FunctionalComponentColor(props) {
|
|
11
|
+
const {
|
|
12
|
+
autoFocus,
|
|
13
|
+
tabIndex,
|
|
14
|
+
value,
|
|
15
|
+
label,
|
|
16
|
+
isSelected,
|
|
17
|
+
borderColor,
|
|
18
|
+
/** this is not new usage - old code extracted from editor-core */
|
|
19
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
20
|
+
checkMarkColor = N0,
|
|
21
|
+
/**
|
|
22
|
+
* When hexToPaletteColor prop is set,
|
|
23
|
+
* it will be used to get background color style based on
|
|
24
|
+
* value (which will be hexcode) prop
|
|
25
|
+
*/
|
|
26
|
+
hexToPaletteColor,
|
|
27
|
+
decorator
|
|
28
|
+
} = props;
|
|
29
|
+
const colorStyle = hexToPaletteColor ? hexToPaletteColor(value) : value;
|
|
30
|
+
const onMouseDown = e => {
|
|
31
|
+
e.preventDefault();
|
|
32
|
+
};
|
|
33
|
+
const onClick = e => {
|
|
34
|
+
const {
|
|
35
|
+
onClick,
|
|
36
|
+
value,
|
|
37
|
+
label
|
|
38
|
+
} = props;
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
onClick(value, label);
|
|
41
|
+
};
|
|
42
|
+
return jsx(Tooltip, {
|
|
43
|
+
content: label
|
|
44
|
+
}, jsx("span", {
|
|
45
|
+
css: buttonWrapperStyle
|
|
46
|
+
}, jsx("button", {
|
|
47
|
+
type: "button",
|
|
48
|
+
css: buttonStyle,
|
|
49
|
+
"aria-label": label,
|
|
50
|
+
role: "radio",
|
|
51
|
+
"aria-checked": isSelected,
|
|
52
|
+
onClick: onClick,
|
|
53
|
+
onMouseDown: onMouseDown,
|
|
54
|
+
tabIndex: tabIndex
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
56
|
+
,
|
|
57
|
+
className: `${isSelected ? 'selected' : ''}`,
|
|
58
|
+
style: {
|
|
59
|
+
backgroundColor: colorStyle || 'transparent',
|
|
60
|
+
border: `1px solid ${borderColor}`
|
|
61
|
+
},
|
|
62
|
+
autoFocus: autoFocus
|
|
63
|
+
}, !decorator && isSelected && jsx(EditorDoneIcon, {
|
|
64
|
+
primaryColor: checkMarkColor,
|
|
65
|
+
label: ""
|
|
66
|
+
}), decorator)));
|
|
67
|
+
}
|
|
68
|
+
class ClassComponentColor extends PureComponent {
|
|
10
69
|
constructor(...args) {
|
|
11
70
|
super(...args);
|
|
12
71
|
_defineProperty(this, "onMouseDown", e => {
|
|
@@ -46,7 +105,9 @@ class Color extends PureComponent {
|
|
|
46
105
|
}, jsx("span", {
|
|
47
106
|
css: buttonWrapperStyle
|
|
48
107
|
}, jsx("button", {
|
|
49
|
-
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
|
+
,
|
|
50
111
|
css: buttonStyle,
|
|
51
112
|
"aria-label": label,
|
|
52
113
|
role: "radio",
|
|
@@ -68,4 +129,5 @@ class Color extends PureComponent {
|
|
|
68
129
|
}))));
|
|
69
130
|
}
|
|
70
131
|
}
|
|
132
|
+
const Color = getBooleanFF('platform.editor.transparent-diagonal-decorator') ? FunctionalComponentColor : ClassComponentColor;
|
|
71
133
|
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
|
});
|
|
@@ -1,15 +1,50 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
1
4
|
import { backgroundColorPalette } from '@atlaskit/adf-schema';
|
|
5
|
+
import Icon from '@atlaskit/icon';
|
|
6
|
+
import { useThemeObserver } from '@atlaskit/tokens';
|
|
2
7
|
import { DEFAULT_BORDER_COLOR } from './common';
|
|
3
8
|
import getColorMessage from './getColorMessage';
|
|
4
9
|
import paletteMessages from './paletteMessages';
|
|
5
10
|
import { mapPaletteColor } from './textColorPalette';
|
|
6
11
|
export const REMOVE_HIGHLIGHT_COLOR = '#00000000';
|
|
12
|
+
const DiagonalLineGlyph = () => jsx("svg", {
|
|
13
|
+
width: "24",
|
|
14
|
+
height: "24",
|
|
15
|
+
viewBox: "0 0 24 24",
|
|
16
|
+
fill: "none",
|
|
17
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
18
|
+
}, jsx("rect", {
|
|
19
|
+
width: "24",
|
|
20
|
+
height: "24",
|
|
21
|
+
fill: "white",
|
|
22
|
+
fillOpacity: "0.01"
|
|
23
|
+
}), jsx("path", {
|
|
24
|
+
fillRule: "evenodd",
|
|
25
|
+
clipRule: "evenodd",
|
|
26
|
+
d: "M17.2038 7.70388C17.5955 8.09565 17.5941 8.73128 17.2005 9.12127L9.1213 17.1277C8.73027 17.5152 8.09958 17.5138 7.71031 17.1245C7.31854 16.7328 7.31997 16.0971 7.71351 15.7071L15.7928 7.70069C16.1838 7.31318 16.8145 7.31461 17.2038 7.70388Z",
|
|
27
|
+
fill: "currentColor",
|
|
28
|
+
fillOpacity: "0.5"
|
|
29
|
+
}));
|
|
30
|
+
export const EditorDiagonalLineIcon = () => {
|
|
31
|
+
const {
|
|
32
|
+
colorMode
|
|
33
|
+
} = useThemeObserver();
|
|
34
|
+
const primaryColor = colorMode === 'dark' ? "var(--ds-background-accent-gray-bolder, #626F86)" : "var(--ds-background-accent-gray-subtle, #8590A2)";
|
|
35
|
+
return jsx(Icon, {
|
|
36
|
+
glyph: DiagonalLineGlyph,
|
|
37
|
+
label: "",
|
|
38
|
+
primaryColor: primaryColor
|
|
39
|
+
});
|
|
40
|
+
};
|
|
7
41
|
export const highlightColorPalette = [{
|
|
8
42
|
value: REMOVE_HIGHLIGHT_COLOR,
|
|
9
43
|
label: 'No color',
|
|
10
44
|
// Mostly informative, only used for analytics
|
|
11
45
|
border: DEFAULT_BORDER_COLOR,
|
|
12
|
-
message: getColorMessage(paletteMessages, 'no-color')
|
|
46
|
+
message: getColorMessage(paletteMessages, 'no-color'),
|
|
47
|
+
decorator: jsx(EditorDiagonalLineIcon, null)
|
|
13
48
|
}];
|
|
14
49
|
backgroundColorPalette.forEach((label, color) => {
|
|
15
50
|
highlightColorPalette.push(mapPaletteColor(label, color));
|
|
@@ -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
|
,
|
|
@@ -67,7 +68,8 @@ const ColorPalette = props => {
|
|
|
67
68
|
value,
|
|
68
69
|
label,
|
|
69
70
|
border,
|
|
70
|
-
message
|
|
71
|
+
message,
|
|
72
|
+
decorator
|
|
71
73
|
}) => {
|
|
72
74
|
if (paletteColorTooltipMessages) {
|
|
73
75
|
if (tokenTheme === 'dark') {
|
|
@@ -85,7 +87,8 @@ const ColorPalette = props => {
|
|
|
85
87
|
onClick: onClick,
|
|
86
88
|
isSelected: value === selectedColor,
|
|
87
89
|
checkMarkColor: getCheckMarkColor(value, useIconToken),
|
|
88
|
-
hexToPaletteColor: hexToPaletteColor
|
|
90
|
+
hexToPaletteColor: hexToPaletteColor,
|
|
91
|
+
decorator: decorator
|
|
89
92
|
});
|
|
90
93
|
}))));
|
|
91
94
|
};
|
|
@@ -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
|
}
|
|
@@ -101,4 +101,26 @@ export function containsAnyAnnotations(slice, state) {
|
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
return hasAnnotation;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* This returns a list of node names that are inline nodes in the range.
|
|
108
|
+
*/
|
|
109
|
+
export function getRangeInlineNodeNames({
|
|
110
|
+
doc,
|
|
111
|
+
pos
|
|
112
|
+
}) {
|
|
113
|
+
if (!getBooleanFF('platform.editor.allow-inline-comments-for-inline-nodes-round-2_ctuxz')) {
|
|
114
|
+
return undefined;
|
|
115
|
+
}
|
|
116
|
+
let nodeNames = new Set();
|
|
117
|
+
doc.nodesBetween(pos.from, pos.to, node => {
|
|
118
|
+
if (node.isInline) {
|
|
119
|
+
nodeNames.add(node.type.name);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
// We sort the list alphabetically to make human consumption of the list easier (in tools like the analytics extension)
|
|
124
|
+
const sortedNames = [...nodeNames].sort();
|
|
125
|
+
return sortedNames;
|
|
104
126
|
}
|
|
@@ -2,7 +2,7 @@ import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
|
2
2
|
import { hasDocAsParent } from './document';
|
|
3
3
|
import { isEmptyParagraph } from './editor-core-utils';
|
|
4
4
|
export { shouldAutoLinkifyMatch } from './should-auto-linkify-tld';
|
|
5
|
-
export { canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, hasAnnotationMark } from './annotation';
|
|
5
|
+
export { canApplyAnnotationOnRange, containsAnyAnnotations, getAnnotationIdsFromRange, hasAnnotationMark, getRangeInlineNodeNames } from './annotation';
|
|
6
6
|
export { getExtensionLozengeData } from './macro';
|
|
7
7
|
export { default as browser } from './browser';
|
|
8
8
|
export { default as ErrorReporter } from './error-reporter';
|
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',
|