@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
|
@@ -69,16 +69,21 @@ var expandIconWrapperStyle = function expandIconWrapperStyle() {
|
|
|
69
69
|
'&:hover': {
|
|
70
70
|
background: "var(--ds-background-neutral-subtle-hovered, ".concat(_colors.N30A, ")")
|
|
71
71
|
},
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
72
73
|
svg: {
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
73
75
|
transition: "transform 0.2s ".concat(_editorSharedStyles.akEditorSwoopCubicBezier)
|
|
74
76
|
}
|
|
75
77
|
});
|
|
76
78
|
};
|
|
77
79
|
var expandIconWrapperExpandedStyle = (0, _react2.css)({
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
78
81
|
svg: {
|
|
79
82
|
transform: 'rotate(90deg)'
|
|
80
83
|
}
|
|
81
84
|
});
|
|
85
|
+
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
82
87
|
var expandLayoutWrapperStyle = exports.expandLayoutWrapperStyle = (0, _react2.css)({
|
|
83
88
|
width: "var(--ds-space-300, 24px)",
|
|
84
89
|
height: "var(--ds-space-300, 24px)"
|
|
@@ -100,16 +105,20 @@ var containerStyles = function containerStyles(styleProps) {
|
|
|
100
105
|
// Only only these margins if the expand isn't editable
|
|
101
106
|
// and is the root level expand.
|
|
102
107
|
var marginHorizontal = styleProps['data-node-type'] === 'expand' ? "-".concat(_editorSharedStyles.akLayoutGutterOffset, "px") : 0;
|
|
108
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
103
109
|
var margin = "".concat(marginTop, " ").concat(marginHorizontal, " ").concat(marginBottom);
|
|
104
110
|
return function () {
|
|
105
111
|
return (0, _react2.css)({
|
|
106
112
|
borderWidth: '1px',
|
|
107
113
|
borderStyle: 'solid',
|
|
114
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
108
115
|
borderColor: focused ? EXPAND_FOCUSED_BORDER_COLOR : expanded ? EXPAND_EXPANDED_BORDER_COLOR : EXPAND_COLLAPSED_BORDER_COLOR,
|
|
109
116
|
borderRadius: BORDER_RADIUS,
|
|
110
117
|
minHeight: '25px',
|
|
118
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
111
119
|
background: !expanded ? EXPAND_COLLAPSED_BACKGROUND : EXPAND_SELECTED_BACKGROUND,
|
|
112
120
|
margin: margin,
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
113
122
|
transition: "background 0.3s ".concat(_editorSharedStyles.akEditorSwoopCubicBezier, ", border-color 0.3s ").concat(_editorSharedStyles.akEditorSwoopCubicBezier),
|
|
114
123
|
padding: "var(--ds-space-100, 8px)",
|
|
115
124
|
'&:hover': {
|
|
@@ -119,6 +128,7 @@ var containerStyles = function containerStyles(styleProps) {
|
|
|
119
128
|
border: "1px solid ".concat("var(--ds-border, ".concat(_colors.N50A, ")")),
|
|
120
129
|
background: EXPAND_SELECTED_BACKGROUND
|
|
121
130
|
},
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
122
132
|
'td > :not(style):first-child, td > style:first-child + *': {
|
|
123
133
|
marginTop: 0
|
|
124
134
|
}
|
|
@@ -136,7 +146,9 @@ var titleInputStyles = function titleInputStyles() {
|
|
|
136
146
|
return (0, _react2.css)({
|
|
137
147
|
outline: 'none',
|
|
138
148
|
border: 'none',
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
139
150
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()),
|
|
151
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
140
152
|
lineHeight: _editorSharedStyles.akEditorLineHeight,
|
|
141
153
|
fontWeight: 'normal',
|
|
142
154
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200A, ")"),
|
|
@@ -158,6 +170,7 @@ var titleContainerStyles = function titleContainerStyles() {
|
|
|
158
170
|
alignItems: 'flex-start',
|
|
159
171
|
background: 'none',
|
|
160
172
|
border: 'none',
|
|
173
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
161
174
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()),
|
|
162
175
|
width: '100%',
|
|
163
176
|
color: "var(--ds-text-subtle, ".concat(_colors.N300A, ")"),
|
|
@@ -34,6 +34,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
34
34
|
children = _ref.children,
|
|
35
35
|
className = _ref.className,
|
|
36
36
|
tooltipContent = _ref.tooltipContent,
|
|
37
|
+
tooltipStyle = _ref.tooltipStyle,
|
|
37
38
|
testId = _ref.testId,
|
|
38
39
|
_ref$hideTooltipOnCli = _ref.hideTooltipOnClick,
|
|
39
40
|
hideTooltipOnClick = _ref$hideTooltipOnCli === void 0 ? true : _ref$hideTooltipOnCli,
|
|
@@ -54,6 +55,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
54
55
|
// Only fallback to title for tooltip if title is not shown
|
|
55
56
|
, {
|
|
56
57
|
content: tooltipContent || (iconOnly ? title : undefined),
|
|
58
|
+
component: tooltipStyle,
|
|
57
59
|
hideTooltipOnClick: hideTooltipOnClick,
|
|
58
60
|
position: "top"
|
|
59
61
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -90,7 +90,9 @@ function MediaSingle(_ref) {
|
|
|
90
90
|
media = _children[0],
|
|
91
91
|
caption = _children[1];
|
|
92
92
|
return (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
93
|
-
ref: handleMediaSingleRef
|
|
93
|
+
ref: handleMediaSingleRef
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
95
|
+
,
|
|
94
96
|
css: (0, _styled.MediaSingleDimensionHelper)({
|
|
95
97
|
width: width,
|
|
96
98
|
layout: layout,
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.mediaLinkStyle = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
9
|
var mediaLinkStyle = exports.mediaLinkStyle = (0, _react.css)({
|
|
9
10
|
position: 'absolute',
|
|
10
11
|
background: 'transparent',
|
|
@@ -185,9 +185,12 @@ var mediaWrapperStyle = exports.mediaWrapperStyle = function mediaWrapperStyle(p
|
|
|
185
185
|
var MediaWrapper = exports.MediaWrapper = function MediaWrapper(_ref3) {
|
|
186
186
|
var children = _ref3.children,
|
|
187
187
|
rest = (0, _objectWithoutProperties2.default)(_ref3, _excluded);
|
|
188
|
-
return (
|
|
189
|
-
css
|
|
190
|
-
|
|
188
|
+
return (
|
|
189
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
190
|
+
(0, _react2.jsx)("div", {
|
|
191
|
+
css: mediaWrapperStyle(rest)
|
|
192
|
+
}, children)
|
|
193
|
+
);
|
|
191
194
|
};
|
|
192
195
|
MediaWrapper.displayName = 'WrapperMediaSingle';
|
|
193
196
|
|
|
@@ -18,14 +18,19 @@ var errorColor = (0, _react.css)({
|
|
|
18
18
|
var validColor = (0, _react.css)({
|
|
19
19
|
color: "var(--ds-text-success, ".concat(_colors.G400, ")")
|
|
20
20
|
});
|
|
21
|
+
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
21
23
|
var messageStyle = function messageStyle() {
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
return (
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
|
+
(0, _react.css)((0, _typography.h200)(), {
|
|
27
|
+
fontWeight: 'normal',
|
|
28
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
29
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
30
|
+
display: 'flex',
|
|
31
|
+
justifyContent: 'baseline'
|
|
32
|
+
})
|
|
33
|
+
);
|
|
29
34
|
};
|
|
30
35
|
var iconWrapperStyle = (0, _react.css)({
|
|
31
36
|
display: 'flex',
|
|
@@ -9,26 +9,35 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
|
|
10
10
|
// Wraps the navigation bar and extensionFrames
|
|
11
11
|
var mbeExtensionContainer = (0, _react.css)({
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
12
13
|
background: 'transparent !important',
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
13
15
|
'padding:': {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
14
17
|
left: "var(--ds-space-100, 8px)".concat(" !important"),
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
15
19
|
right: "var(--ds-space-100, 8px)".concat(" !important")
|
|
16
20
|
},
|
|
17
21
|
paddingBottom: "var(--ds-space-100, 8px)",
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
23
|
'&.remove-padding': {
|
|
19
24
|
paddingBottom: 0
|
|
20
25
|
},
|
|
21
26
|
position: 'relative',
|
|
22
27
|
verticalAlign: 'middle',
|
|
23
28
|
cursor: 'pointer',
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
30
|
'.multiBodiedExtension-handler-result': {
|
|
25
31
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
26
32
|
},
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
34
|
".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'], .multiBodiedExtension--frames > [data-extension-frame='true']": {
|
|
28
35
|
display: 'none',
|
|
29
36
|
background: "var(--ds-surface, white)"
|
|
30
37
|
},
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
39
|
'.multiBodiedExtension-content-dom-wrapper, .multiBodiedExtension--frames': {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
32
41
|
"[data-extension-frame='true'] > :not(style):first-child, [data-extension-frame='true'] > style:first-child + *": {
|
|
33
42
|
marginTop: 0
|
|
34
43
|
}
|
|
@@ -39,18 +48,22 @@ var mbeNavigation = (0, _react.css)({
|
|
|
39
48
|
borderTopRightRadius: "var(--ds-border-radius, 3px)",
|
|
40
49
|
userSelect: 'none',
|
|
41
50
|
WebkitUserModify: 'read-only',
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
42
52
|
borderBottom: 'none !important',
|
|
43
53
|
background: "var(--ds-surface, white)",
|
|
44
54
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
45
55
|
marginRight: "var(--ds-space-100, 8px)",
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
46
57
|
'&.remove-margins': {
|
|
47
58
|
margin: "var(--ds-space-negative-100, -8px)"
|
|
48
59
|
},
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
49
61
|
'&.remove-border': {
|
|
50
62
|
border: 'none'
|
|
51
63
|
}
|
|
52
64
|
});
|
|
53
65
|
var extensionFrameContent = (0, _react.css)({
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
54
67
|
padding: "var(--ds-space-100, 8px)".concat(" !important"),
|
|
55
68
|
display: 'block',
|
|
56
69
|
minHeight: '100px',
|
|
@@ -60,22 +73,33 @@ var extensionFrameContent = (0, _react.css)({
|
|
|
60
73
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
61
74
|
marginRight: "var(--ds-space-100, 8px)",
|
|
62
75
|
cursor: 'initial',
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
63
77
|
'.pm-table-with-controls': {
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
64
79
|
marginLeft: "var(--ds-space-150, 12px)".concat(" !important"),
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
65
81
|
paddingRight: "var(--ds-space-150, 12px)".concat(" !important")
|
|
66
82
|
},
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
67
84
|
'.bodiedExtensionView-content-wrap': {
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
68
86
|
marginTop: "var(--ds-space-150, 12px)".concat(" !important")
|
|
69
87
|
},
|
|
88
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
70
89
|
'.extensionView-content-wrap': {
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
71
91
|
marginTop: "var(--ds-space-100, 8px)".concat(" !important")
|
|
72
92
|
}
|
|
73
93
|
});
|
|
94
|
+
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
74
96
|
var removeMarginsAndBorder = exports.removeMarginsAndBorder = (0, _react.css)({
|
|
75
97
|
marginLeft: 0,
|
|
76
98
|
marginRight: 0,
|
|
77
99
|
border: 'none'
|
|
78
100
|
});
|
|
101
|
+
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
79
103
|
var sharedMultiBodiedExtensionStyles = exports.sharedMultiBodiedExtensionStyles = {
|
|
80
104
|
mbeExtensionContainer: mbeExtensionContainer,
|
|
81
105
|
mbeNavigation: mbeNavigation,
|
|
@@ -124,6 +124,7 @@ var PanelTextInput = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
124
124
|
inputId = _this$props2.inputId;
|
|
125
125
|
var value = this.state.value;
|
|
126
126
|
return (0, _react2.jsx)("input", {
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
127
128
|
css: [_styles.panelTextInput, width !== undefined && (0, _styles.panelTextInputWithCustomWidth)(width)],
|
|
128
129
|
role: role,
|
|
129
130
|
"aria-autocomplete": ariaAutoComplete ? 'list' : undefined,
|
|
@@ -8,7 +8,9 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
10
|
// Normal .className gets overridden by input[type=text] hence this hack to produce input.className
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
12
|
var panelTextInput = exports.panelTextInput = (0, _react.css)({
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
12
14
|
'input&': {
|
|
13
15
|
background: 'transparent',
|
|
14
16
|
border: "2px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")")),
|
|
@@ -16,11 +18,13 @@ var panelTextInput = exports.panelTextInput = (0, _react.css)({
|
|
|
16
18
|
boxSizing: 'content-box',
|
|
17
19
|
color: "var(--ds-text-subtle, ".concat(_colors.N400, ")"),
|
|
18
20
|
flexGrow: 1,
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
22
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(13),
|
|
20
23
|
lineHeight: '20px',
|
|
21
24
|
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-400, 32px)", " ", "var(--ds-space-075, 6px)", " ", "var(--ds-space-100, 8px)"),
|
|
22
25
|
minWidth: '145px',
|
|
23
26
|
/* Hides IE10+ built-in [x] clear input button */
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
28
|
'&::-ms-clear': {
|
|
25
29
|
display: 'none'
|
|
26
30
|
},
|
|
@@ -35,7 +39,9 @@ var panelTextInput = exports.panelTextInput = (0, _react.css)({
|
|
|
35
39
|
});
|
|
36
40
|
var panelTextInputWithCustomWidth = exports.panelTextInputWithCustomWidth = function panelTextInputWithCustomWidth(width) {
|
|
37
41
|
return (0, _react.css)({
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
38
43
|
'input&': {
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
45
|
width: "".concat(width, "px")
|
|
40
46
|
}
|
|
41
47
|
});
|
|
@@ -300,6 +300,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
300
300
|
style: _objectSpread(_objectSpread({
|
|
301
301
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
302
302
|
position: 'absolute',
|
|
303
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
303
304
|
zIndex: this.props.zIndex || _editorSharedStyles.akEditorFloatingPanelZIndex
|
|
304
305
|
}, position), this.props.style),
|
|
305
306
|
"aria-label": ariaLabel,
|
|
@@ -25,10 +25,12 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
25
25
|
var blockNodeStyle = (0, _react2.css)({
|
|
26
26
|
background: "var(--ds-background-disabled, ".concat(_colors.N30, ")"),
|
|
27
27
|
border: "1px dashed ".concat("var(--ds-border-disabled, ".concat(_colors.N50, ")")),
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
29
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
29
30
|
boxSizing: 'border-box',
|
|
30
31
|
cursor: 'default',
|
|
31
32
|
display: 'flex',
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
34
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()),
|
|
33
35
|
margin: "var(--ds-space-100, 8px)".concat(" 0"),
|
|
34
36
|
minHeight: '24px',
|
|
@@ -26,10 +26,12 @@ var inlineNodeStyle = (0, _react2.css)({
|
|
|
26
26
|
alignItems: 'center',
|
|
27
27
|
background: "var(--ds-background-disabled, ".concat(_colors.N30, ")"),
|
|
28
28
|
border: "1px dashed ".concat("var(--ds-border-disabled, ".concat(_colors.N50, ")")),
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
30
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
30
31
|
boxSizing: 'border-box',
|
|
31
32
|
cursor: 'default',
|
|
32
33
|
display: 'inline-flex',
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
35
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()),
|
|
34
36
|
margin: "0 ".concat("var(--ds-space-025, 2px)"),
|
|
35
37
|
minHeight: '24px',
|
|
@@ -9,9 +9,11 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
// We use !important to ensure next sibling gets the margin reset no matter what
|
|
11
11
|
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
13
|
var clearNextSiblingMarginTopStyle = exports.clearNextSiblingMarginTopStyle = (0, _react.css)({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
13
15
|
'& + *': {
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
15
17
|
marginTop: '0 !important'
|
|
16
18
|
}
|
|
17
19
|
});
|
|
@@ -19,7 +21,9 @@ var textElements = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
|
19
21
|
var nextSiblingBlockMarkContentSelectors = textElements.map(function (elem) {
|
|
20
22
|
return "+ .fabric-editor-block-mark > ".concat(elem);
|
|
21
23
|
}).join(',');
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
22
26
|
var clearNextSiblingBlockMarkMarginTopStyle = exports.clearNextSiblingBlockMarkMarginTopStyle = (0, _react.css)((0, _defineProperty2.default)({}, "".concat(nextSiblingBlockMarkContentSelectors), {
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
24
28
|
marginTop: '0 !important'
|
|
25
29
|
}));
|
|
@@ -67,7 +67,7 @@ function FunctionalComponentColor(props) {
|
|
|
67
67
|
border: "1px solid ".concat(borderColor)
|
|
68
68
|
},
|
|
69
69
|
autoFocus: autoFocus
|
|
70
|
-
}, isSelected && (0, _react2.jsx)(_done.default, {
|
|
70
|
+
}, !decorator && isSelected && (0, _react2.jsx)(_done.default, {
|
|
71
71
|
primaryColor: checkMarkColor,
|
|
72
72
|
label: ""
|
|
73
73
|
}), decorator)));
|
|
@@ -114,7 +114,9 @@ var ClassComponentColor = /*#__PURE__*/function (_PureComponent) {
|
|
|
114
114
|
}, (0, _react2.jsx)("span", {
|
|
115
115
|
css: _styles.buttonWrapperStyle
|
|
116
116
|
}, (0, _react2.jsx)("button", {
|
|
117
|
-
type: "button"
|
|
117
|
+
type: "button"
|
|
118
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
119
|
+
,
|
|
118
120
|
css: _styles.buttonStyle,
|
|
119
121
|
"aria-label": label,
|
|
120
122
|
role: "radio",
|
|
@@ -138,5 +140,10 @@ var ClassComponentColor = /*#__PURE__*/function (_PureComponent) {
|
|
|
138
140
|
}]);
|
|
139
141
|
return ClassComponentColor;
|
|
140
142
|
}(_react.PureComponent);
|
|
141
|
-
var Color =
|
|
143
|
+
var Color = function Color(props) {
|
|
144
|
+
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.transparent-diagonal-decorator')) {
|
|
145
|
+
return (0, _react2.jsx)(FunctionalComponentColor, props);
|
|
146
|
+
}
|
|
147
|
+
return (0, _react2.jsx)(ClassComponentColor, props);
|
|
148
|
+
};
|
|
142
149
|
var _default = exports.default = Color;
|
|
@@ -8,6 +8,7 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/** this is not new usage - old code extracted from editor-core */
|
|
10
10
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
12
|
var buttonStyle = exports.buttonStyle = (0, _react.css)({
|
|
12
13
|
height: '26px',
|
|
13
14
|
width: '26px',
|
|
@@ -22,6 +23,7 @@ var buttonStyle = exports.buttonStyle = (0, _react.css)({
|
|
|
22
23
|
|
|
23
24
|
/** this is not new usage - old code extracted from editor-core */
|
|
24
25
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
27
|
var buttonWrapperStyle = exports.buttonWrapperStyle = (0, _react.css)({
|
|
26
28
|
border: '1px solid transparent',
|
|
27
29
|
fontSize: 0,
|
|
@@ -30,6 +32,7 @@ var buttonWrapperStyle = exports.buttonWrapperStyle = (0, _react.css)({
|
|
|
30
32
|
padding: "var(--ds-space-025, 2px)",
|
|
31
33
|
borderRadius: '6px',
|
|
32
34
|
'&:focus-within, &:focus, &:hover': {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
33
36
|
borderColor: "".concat("var(--ds-border, ".concat(_colors.N50, ")"), " !important")
|
|
34
37
|
}
|
|
35
38
|
});
|
|
@@ -129,7 +129,7 @@ var _default = exports.default = (0, _reactIntlNext.defineMessages)({
|
|
|
129
129
|
// Colors only used in highlight palette
|
|
130
130
|
'no-color': {
|
|
131
131
|
id: 'fabric.theme.no-color',
|
|
132
|
-
defaultMessage: '
|
|
132
|
+
defaultMessage: 'No highlight',
|
|
133
133
|
description: 'Tooltip for the no color option in the highlight color palette in the main editor toolbar'
|
|
134
134
|
},
|
|
135
135
|
lime: {
|
|
@@ -62,6 +62,7 @@ var ColorPalette = function ColorPalette(props) {
|
|
|
62
62
|
}, [palette, cols]);
|
|
63
63
|
return (0, _react2.jsx)(_react.default.Fragment, null, colorsPerRow.map(function (row) {
|
|
64
64
|
return (0, _react2.jsx)("div", {
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
65
66
|
css: _styles.colorPaletteWrapper
|
|
66
67
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
67
68
|
,
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.colorPaletteWrapper = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
9
|
var colorPaletteWrapper = exports.colorPaletteWrapper = (0, _react.css)({
|
|
9
10
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
10
11
|
/* Firefox bug fix: https://product-fabric.atlassian.net/browse/ED-1789 */
|
|
@@ -32,6 +32,7 @@ var colorPickerExpandContainer = (0, _react2.css)({
|
|
|
32
32
|
// Control the size of color picker buttons and preview
|
|
33
33
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4134
|
|
34
34
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
35
36
|
var colorPickerWrapper = function colorPickerWrapper() {
|
|
36
37
|
return (0, _react2.css)({
|
|
37
38
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
@@ -175,17 +176,23 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
175
176
|
return (0, _react2.css)({
|
|
176
177
|
padding: "var(--ds-space-075, 6px)".concat(" 10px"),
|
|
177
178
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
179
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
178
180
|
height: "".concat(!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''),
|
|
181
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
179
182
|
'&:before': {
|
|
180
183
|
display: 'flex',
|
|
181
184
|
justifyContent: 'center',
|
|
182
185
|
alignItems: 'center',
|
|
183
186
|
alignSelf: 'center',
|
|
184
187
|
content: "''",
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
185
189
|
border: "1px solid ".concat(_uiColor.DEFAULT_BORDER_COLOR),
|
|
186
190
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
191
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
187
192
|
backgroundColor: currentColor || 'transparent',
|
|
193
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
188
194
|
width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
|
|
195
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
189
196
|
height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
|
|
190
197
|
padding: 0,
|
|
191
198
|
margin: "0px ".concat("var(--ds-space-025, 2px)")
|
|
@@ -44,6 +44,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
44
44
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
45
45
|
var wrapper = (0, _react2.css)({
|
|
46
46
|
/* tooltip in ToolbarButton is display:block */
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
47
48
|
'& > div > div': {
|
|
48
49
|
display: 'flex'
|
|
49
50
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -9,6 +9,7 @@ export let 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 let 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 let 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 let 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 let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -254,6 +260,8 @@ export let 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";
|
|
@@ -145,7 +145,7 @@ export const TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
|
145
145
|
|
|
146
146
|
// ED-22557: Safely convert to object styling
|
|
147
147
|
// Disable top: -14px since it is necessary to align to cursor
|
|
148
|
-
// 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
|
|
148
|
+
// 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
|
|
149
149
|
export const telepointerStyle = css`
|
|
150
150
|
.ProseMirror .telepointer {
|
|
151
151
|
position: relative;
|
|
@@ -31,6 +31,7 @@ export const ViewMore = ({
|
|
|
31
31
|
"aria-describedby": item.title,
|
|
32
32
|
"data-testid": "view-more-elements-item"
|
|
33
33
|
// @ts-ignore Overriding Menu styles is not supported
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
34
35
|
,
|
|
35
36
|
css: css({
|
|
36
37
|
padding: `0px ${"var(--ds-space-150, 12px)"}`
|
|
@@ -178,9 +178,12 @@ function CategoryListItem({
|
|
|
178
178
|
}, category.title));
|
|
179
179
|
}
|
|
180
180
|
const buttonWrapper = css({
|
|
181
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
181
182
|
height: `${GRID_SIZE * 4}px`,
|
|
182
183
|
margin: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} 0`,
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
183
185
|
[`@media (min-width: ${DEVICE_BREAKPOINT_NUMBERS.medium}px)`]: {
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
184
187
|
':not(:last-child)': {
|
|
185
188
|
marginBottom: 0
|
|
186
189
|
}
|