@atlaskit/editor-common 82.3.0 → 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 +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/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 +4 -2
- 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/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/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 +4 -2
- 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/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/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 +4 -2
- 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/highlight-events.d.ts +4 -2
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/messages/help-dialog.d.ts +5 -0
- package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +4 -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/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N30 } from '@atlaskit/theme/colors';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
3
4
|
export const buttonGroupStyle = css({
|
|
4
5
|
display: 'inline-flex',
|
|
5
6
|
alignItems: 'center',
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
8
|
'& > div': {
|
|
7
9
|
display: 'flex'
|
|
8
10
|
}
|
|
@@ -10,6 +12,7 @@ export const buttonGroupStyle = css({
|
|
|
10
12
|
|
|
11
13
|
// This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
|
|
12
14
|
// If you make change here, change in above file as well.
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
13
16
|
export const separatorStyles = css({
|
|
14
17
|
background: `var(--ds-border, ${N30})`,
|
|
15
18
|
width: '1px',
|
|
@@ -21,18 +24,23 @@ export const separatorStyles = css({
|
|
|
21
24
|
|
|
22
25
|
// This style is copied to packages/editor/editor-plugin-ai/src/ui/components/AtlassianIntelligenceToolbarButton/styles.tsx
|
|
23
26
|
// If you make change here, change in above file as well.
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
24
28
|
export const wrapperStyle = css({
|
|
25
29
|
display: 'flex',
|
|
26
30
|
alignItems: 'center',
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
32
|
'> div, > span': {
|
|
28
33
|
display: 'flex'
|
|
29
34
|
},
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
36
|
'> div > div': {
|
|
31
37
|
display: 'flex'
|
|
32
38
|
},
|
|
33
39
|
marginLeft: 0,
|
|
34
40
|
minWidth: 'auto'
|
|
35
41
|
});
|
|
42
|
+
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
36
44
|
export const triggerWrapperStyles = css({
|
|
37
45
|
display: 'flex'
|
|
38
46
|
});
|
|
@@ -18,7 +18,7 @@ const akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
|
18
18
|
export const handleWrapperClass = 'resizer-handle-wrapper';
|
|
19
19
|
export const resizerHandleZIndex = 1;
|
|
20
20
|
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Seems perfectly safe to autofix, but comments would be lost…
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
|
|
22
22
|
export const resizerStyles = css`
|
|
23
23
|
.${resizerItemClassName} {
|
|
24
24
|
will-change: width;
|
|
@@ -3,10 +3,11 @@ import { akEditorLineHeight } from '@atlaskit/editor-shared-styles';
|
|
|
3
3
|
import { N30A } from '@atlaskit/theme/colors';
|
|
4
4
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
5
5
|
export const ruleSharedStyles = () => css({
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
7
|
'& hr': {
|
|
7
8
|
border: 'none',
|
|
8
9
|
backgroundColor: `var(--ds-border, ${N30A})`,
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
10
11
|
margin: `${akEditorLineHeight}em 0`,
|
|
11
12
|
height: '2px',
|
|
12
13
|
borderRadius: '1px'
|
|
@@ -22,39 +22,48 @@ const shadowWidth = 8;
|
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
24
|
const shadowSharedStyle = css({
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
25
26
|
[`& .${shadowClassNames.RIGHT_SHADOW}::before, .${shadowClassNames.RIGHT_SHADOW}::after, .${shadowClassNames.LEFT_SHADOW}::before, .${shadowClassNames.LEFT_SHADOW}::after`]: {
|
|
26
27
|
display: 'none',
|
|
27
28
|
position: 'absolute',
|
|
28
29
|
pointerEvents: 'none',
|
|
30
|
+
// 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
31
|
zIndex: akEditorShadowZIndex,
|
|
30
32
|
width: `${shadowWidth}px`,
|
|
31
33
|
content: "''",
|
|
32
34
|
height: 'calc(100%)'
|
|
33
35
|
},
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
34
37
|
[`& .${shadowClassNames.RIGHT_SHADOW}, .${shadowClassNames.LEFT_SHADOW}`]: {
|
|
35
38
|
position: 'relative'
|
|
36
39
|
},
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
37
41
|
[`& .${shadowClassNames.LEFT_SHADOW}::before`]: {
|
|
38
42
|
background: `linear-gradient( to left, transparent 0, ${`var(--ds-shadow-overflow-spread, ${N40A})`} 140% ), linear-gradient( to right, ${"var(--ds-shadow-overflow-perimeter, transparent)"} 0px, transparent 1px )`,
|
|
39
43
|
top: '0px',
|
|
40
44
|
left: 0,
|
|
41
45
|
display: 'block'
|
|
42
46
|
},
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
43
48
|
[`& .${shadowClassNames.RIGHT_SHADOW}::after`]: {
|
|
44
49
|
background: `linear-gradient( to right, transparent 0, ${`var(--ds-shadow-overflow-spread, ${N40A})`} 140% ), linear-gradient( to left, ${"var(--ds-shadow-overflow-perimeter, transparent)"} 0px, transparent 1px )`,
|
|
45
50
|
right: '0px',
|
|
46
51
|
top: '0px',
|
|
47
52
|
display: 'block'
|
|
48
53
|
},
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
49
55
|
[`& .${shadowObserverClassNames.SENTINEL_LEFT}`]: {
|
|
50
56
|
height: '100%',
|
|
51
57
|
width: '0px',
|
|
52
58
|
minWidth: '0px'
|
|
53
59
|
},
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
54
61
|
[`& .${shadowObserverClassNames.SENTINEL_RIGHT}`]: {
|
|
55
62
|
height: '100%',
|
|
56
63
|
width: '0px',
|
|
57
64
|
minWidth: '0px'
|
|
58
65
|
}
|
|
59
66
|
});
|
|
67
|
+
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
60
69
|
export { shadowSharedStyle };
|
|
@@ -7,7 +7,7 @@ import { SmartCardSharedCssClassName } from './smart-card';
|
|
|
7
7
|
export const DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
8
8
|
export const FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
11
|
export const smartCardStyles = css`
|
|
12
12
|
.${SmartCardSharedCssClassName.INLINE_CARD_CONTAINER} {
|
|
13
13
|
max-width: calc(100% - 20px);
|
|
@@ -6,6 +6,8 @@ export const TaskDecisionSharedCssClassName = {
|
|
|
6
6
|
TASK_CONTAINER: 'taskItemView-content-wrap',
|
|
7
7
|
TASK_ITEM: 'task-item'
|
|
8
8
|
};
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
9
11
|
export const tasksAndDecisionsStyles = css`
|
|
10
12
|
.ProseMirror {
|
|
11
13
|
.taskItemView-content-wrap,
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export const textColorStyles = css({
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
3
6
|
'.fabric-text-color-mark': {
|
|
4
7
|
color: 'var(--custom-palette-color, inherit)'
|
|
5
8
|
},
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
10
|
'a .fabric-text-color-mark': {
|
|
7
11
|
color: 'unset'
|
|
8
12
|
}
|
|
@@ -7,7 +7,7 @@ export const UnsupportedSharedCssClassName = {
|
|
|
7
7
|
const inlineUnsupportedSelector = `.${UnsupportedSharedCssClassName.INLINE_CONTAINER} > span:nth-of-type(2)`;
|
|
8
8
|
const blockUnsupportedSelector = `.${UnsupportedSharedCssClassName.BLOCK_CONTAINER} > div`;
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
|
|
10
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
11
|
export const unsupportedStyles = css`
|
|
12
12
|
${blockUnsupportedSelector}, ${inlineUnsupportedSelector} {
|
|
13
13
|
cursor: pointer;
|
|
@@ -3,4 +3,6 @@ const whitespaceSharedStyles = css({
|
|
|
3
3
|
wordWrap: 'break-word',
|
|
4
4
|
whiteSpace: 'pre-wrap'
|
|
5
5
|
});
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
6
8
|
export { whitespaceSharedStyles };
|
|
@@ -14,7 +14,7 @@ export let StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
|
|
|
14
14
|
return StatusClassNames;
|
|
15
15
|
}({});
|
|
16
16
|
|
|
17
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
18
18
|
const buttonStyles = css`
|
|
19
19
|
position: absolute;
|
|
20
20
|
display: flex;
|
|
@@ -43,7 +43,7 @@ const buttonStyles = css`
|
|
|
43
43
|
}
|
|
44
44
|
`;
|
|
45
45
|
|
|
46
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
46
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
47
47
|
const iconWrapperStyles = css`
|
|
48
48
|
width: 8px;
|
|
49
49
|
height: 12px;
|
|
@@ -7,14 +7,16 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
|
|
|
7
7
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
8
8
|
import Layer from '../Layer';
|
|
9
9
|
const packageName = "@atlaskit/editor-common";
|
|
10
|
-
const packageVersion = "82.
|
|
10
|
+
const packageVersion = "82.4.0";
|
|
11
11
|
const halfFocusRing = 1;
|
|
12
12
|
const dropOffset = '0, 8';
|
|
13
13
|
class DropList extends Component {
|
|
14
14
|
constructor(...args) {
|
|
15
15
|
super(...args);
|
|
16
16
|
_defineProperty(this, "wrapperStyles", css({
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
18
|
display: this.props.shouldFitContainer ? 'block' : 'inline-flex',
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
20
|
flex: this.props.shouldFitContainer ? '1 1 auto' : undefined,
|
|
19
21
|
transitionDuration: '0.2s',
|
|
20
22
|
transition: 'box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38)'
|
|
@@ -22,7 +24,9 @@ class DropList extends Component {
|
|
|
22
24
|
_defineProperty(this, "triggerStyles", css({
|
|
23
25
|
transitionDuration: '0.2s',
|
|
24
26
|
transition: 'box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38)',
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
28
|
display: this.props.shouldFitContainer ? 'block' : 'inline-flex',
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
30
|
boxSizing: this.props.shouldFitContainer ? 'border-box' : undefined
|
|
27
31
|
}));
|
|
28
32
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -54,15 +54,20 @@ const expandIconWrapperStyle = () => css({
|
|
|
54
54
|
'&:hover': {
|
|
55
55
|
background: `var(--ds-background-neutral-subtle-hovered, ${N30A})`
|
|
56
56
|
},
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
57
58
|
svg: {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
58
60
|
transition: `transform 0.2s ${akEditorSwoopCubicBezier}`
|
|
59
61
|
}
|
|
60
62
|
});
|
|
61
63
|
const expandIconWrapperExpandedStyle = css({
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
62
65
|
svg: {
|
|
63
66
|
transform: 'rotate(90deg)'
|
|
64
67
|
}
|
|
65
68
|
});
|
|
69
|
+
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
66
71
|
export const expandLayoutWrapperStyle = css({
|
|
67
72
|
width: "var(--ds-space-300, 24px)",
|
|
68
73
|
height: "var(--ds-space-300, 24px)"
|
|
@@ -88,15 +93,19 @@ const containerStyles = styleProps => {
|
|
|
88
93
|
// Only only these margins if the expand isn't editable
|
|
89
94
|
// and is the root level expand.
|
|
90
95
|
const marginHorizontal = styleProps['data-node-type'] === 'expand' ? `-${akLayoutGutterOffset}px` : 0;
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
91
97
|
const margin = `${marginTop} ${marginHorizontal} ${marginBottom}`;
|
|
92
98
|
return () => css({
|
|
93
99
|
borderWidth: '1px',
|
|
94
100
|
borderStyle: 'solid',
|
|
101
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
95
102
|
borderColor: focused ? EXPAND_FOCUSED_BORDER_COLOR : expanded ? EXPAND_EXPANDED_BORDER_COLOR : EXPAND_COLLAPSED_BORDER_COLOR,
|
|
96
103
|
borderRadius: BORDER_RADIUS,
|
|
97
104
|
minHeight: '25px',
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
98
106
|
background: !expanded ? EXPAND_COLLAPSED_BACKGROUND : EXPAND_SELECTED_BACKGROUND,
|
|
99
107
|
margin: margin,
|
|
108
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
100
109
|
transition: `background 0.3s ${akEditorSwoopCubicBezier}, border-color 0.3s ${akEditorSwoopCubicBezier}`,
|
|
101
110
|
padding: "var(--ds-space-100, 8px)",
|
|
102
111
|
'&:hover': {
|
|
@@ -106,6 +115,7 @@ const containerStyles = styleProps => {
|
|
|
106
115
|
border: `1px solid ${`var(--ds-border, ${N50A})`}`,
|
|
107
116
|
background: EXPAND_SELECTED_BACKGROUND
|
|
108
117
|
},
|
|
118
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
109
119
|
'td > :not(style):first-child, td > style:first-child + *': {
|
|
110
120
|
marginTop: 0
|
|
111
121
|
}
|
|
@@ -144,7 +154,9 @@ css`
|
|
|
144
154
|
const titleInputStyles = () => css({
|
|
145
155
|
outline: 'none',
|
|
146
156
|
border: 'none',
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
147
158
|
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
159
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
148
160
|
lineHeight: akEditorLineHeight,
|
|
149
161
|
fontWeight: 'normal',
|
|
150
162
|
color: `var(--ds-text-subtlest, ${N200A})`,
|
|
@@ -164,6 +176,7 @@ const titleContainerStyles = () => css({
|
|
|
164
176
|
alignItems: 'flex-start',
|
|
165
177
|
background: 'none',
|
|
166
178
|
border: 'none',
|
|
179
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
167
180
|
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
168
181
|
width: '100%',
|
|
169
182
|
color: `var(--ds-text-subtle, ${N300A})`,
|
|
@@ -75,7 +75,9 @@ export default function MediaSingle({
|
|
|
75
75
|
}
|
|
76
76
|
const [media, caption] = children;
|
|
77
77
|
return jsx("div", _extends({
|
|
78
|
-
ref: handleMediaSingleRef
|
|
78
|
+
ref: handleMediaSingleRef
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
80
|
+
,
|
|
79
81
|
css: MediaSingleDimensionHelper({
|
|
80
82
|
width,
|
|
81
83
|
layout,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export const mediaLinkStyle = css({
|
|
3
5
|
position: 'absolute',
|
|
4
6
|
background: 'transparent',
|
|
@@ -244,7 +244,9 @@ export const mediaWrapperStyle = props => css`
|
|
|
244
244
|
export const MediaWrapper = ({
|
|
245
245
|
children,
|
|
246
246
|
...rest
|
|
247
|
-
}) =>
|
|
247
|
+
}) =>
|
|
248
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
249
|
+
jsx("div", {
|
|
248
250
|
css: mediaWrapperStyle(rest)
|
|
249
251
|
}, children);
|
|
250
252
|
MediaWrapper.displayName = 'WrapperMediaSingle';
|
|
@@ -11,7 +11,11 @@ const errorColor = css({
|
|
|
11
11
|
const validColor = css({
|
|
12
12
|
color: `var(--ds-text-success, ${G400})`
|
|
13
13
|
});
|
|
14
|
-
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
16
|
+
const messageStyle = () =>
|
|
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
|
|
18
|
+
css(h200(), {
|
|
15
19
|
fontWeight: 'normal',
|
|
16
20
|
color: `var(--ds-text-subtlest, ${N200})`,
|
|
17
21
|
marginTop: "var(--ds-space-050, 4px)",
|
|
@@ -3,26 +3,35 @@
|
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
// Wraps the navigation bar and extensionFrames
|
|
5
5
|
const mbeExtensionContainer = css({
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
6
7
|
background: 'transparent !important',
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
7
9
|
'padding:': {
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
8
11
|
left: `${"var(--ds-space-100, 8px)"} !important`,
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
9
13
|
right: `${"var(--ds-space-100, 8px)"} !important`
|
|
10
14
|
},
|
|
11
15
|
paddingBottom: "var(--ds-space-100, 8px)",
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
12
17
|
'&.remove-padding': {
|
|
13
18
|
paddingBottom: 0
|
|
14
19
|
},
|
|
15
20
|
position: 'relative',
|
|
16
21
|
verticalAlign: 'middle',
|
|
17
22
|
cursor: 'pointer',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
24
|
'.multiBodiedExtension-handler-result': {
|
|
19
25
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
20
26
|
},
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
28
|
".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'], .multiBodiedExtension--frames > [data-extension-frame='true']": {
|
|
22
29
|
display: 'none',
|
|
23
30
|
background: "var(--ds-surface, white)"
|
|
24
31
|
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
33
|
'.multiBodiedExtension-content-dom-wrapper, .multiBodiedExtension--frames': {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
26
35
|
"[data-extension-frame='true'] > :not(style):first-child, [data-extension-frame='true'] > style:first-child + *": {
|
|
27
36
|
marginTop: 0
|
|
28
37
|
}
|
|
@@ -33,18 +42,22 @@ const mbeNavigation = css({
|
|
|
33
42
|
borderTopRightRadius: "var(--ds-border-radius, 3px)",
|
|
34
43
|
userSelect: 'none',
|
|
35
44
|
WebkitUserModify: 'read-only',
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
36
46
|
borderBottom: 'none !important',
|
|
37
47
|
background: "var(--ds-surface, white)",
|
|
38
48
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
39
49
|
marginRight: "var(--ds-space-100, 8px)",
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
40
51
|
'&.remove-margins': {
|
|
41
52
|
margin: "var(--ds-space-negative-100, -8px)"
|
|
42
53
|
},
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
43
55
|
'&.remove-border': {
|
|
44
56
|
border: 'none'
|
|
45
57
|
}
|
|
46
58
|
});
|
|
47
59
|
const extensionFrameContent = css({
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
48
61
|
padding: `${"var(--ds-space-100, 8px)"} !important`,
|
|
49
62
|
display: 'block',
|
|
50
63
|
minHeight: '100px',
|
|
@@ -54,22 +67,33 @@ const extensionFrameContent = css({
|
|
|
54
67
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
55
68
|
marginRight: "var(--ds-space-100, 8px)",
|
|
56
69
|
cursor: 'initial',
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
57
71
|
'.pm-table-with-controls': {
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
58
73
|
marginLeft: `${"var(--ds-space-150, 12px)"} !important`,
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
59
75
|
paddingRight: `${"var(--ds-space-150, 12px)"} !important`
|
|
60
76
|
},
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
61
78
|
'.bodiedExtensionView-content-wrap': {
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
62
80
|
marginTop: `${"var(--ds-space-150, 12px)"} !important`
|
|
63
81
|
},
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
64
83
|
'.extensionView-content-wrap': {
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
65
85
|
marginTop: `${"var(--ds-space-100, 8px)"} !important`
|
|
66
86
|
}
|
|
67
87
|
});
|
|
88
|
+
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
68
90
|
export const removeMarginsAndBorder = css({
|
|
69
91
|
marginLeft: 0,
|
|
70
92
|
marginRight: 0,
|
|
71
93
|
border: 'none'
|
|
72
94
|
});
|
|
95
|
+
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
73
97
|
export const sharedMultiBodiedExtensionStyles = {
|
|
74
98
|
mbeExtensionContainer,
|
|
75
99
|
mbeNavigation,
|
|
@@ -107,6 +107,7 @@ export default class PanelTextInput extends PureComponent {
|
|
|
107
107
|
value
|
|
108
108
|
} = this.state;
|
|
109
109
|
return jsx("input", {
|
|
110
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
110
111
|
css: [panelTextInput, width !== undefined && panelTextInputWithCustomWidth(width)],
|
|
111
112
|
role: role,
|
|
112
113
|
"aria-autocomplete": ariaAutoComplete ? 'list' : undefined,
|
|
@@ -2,7 +2,9 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { B100, N100, N30, N400 } from '@atlaskit/theme/colors';
|
|
4
4
|
// Normal .className gets overridden by input[type=text] hence this hack to produce input.className
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
6
|
export const panelTextInput = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
6
8
|
'input&': {
|
|
7
9
|
background: 'transparent',
|
|
8
10
|
border: `2px solid ${`var(--ds-border, ${N30})`}`,
|
|
@@ -10,11 +12,13 @@ export const panelTextInput = css({
|
|
|
10
12
|
boxSizing: 'content-box',
|
|
11
13
|
color: `var(--ds-text-subtle, ${N400})`,
|
|
12
14
|
flexGrow: 1,
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
16
|
fontSize: relativeFontSizeToBase16(13),
|
|
14
17
|
lineHeight: '20px',
|
|
15
18
|
padding: `${"var(--ds-space-075, 6px)"} ${"var(--ds-space-400, 32px)"} ${"var(--ds-space-075, 6px)"} ${"var(--ds-space-100, 8px)"}`,
|
|
16
19
|
minWidth: '145px',
|
|
17
20
|
/* Hides IE10+ built-in [x] clear input button */
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
18
22
|
'&::-ms-clear': {
|
|
19
23
|
display: 'none'
|
|
20
24
|
},
|
|
@@ -28,7 +32,9 @@ export const panelTextInput = css({
|
|
|
28
32
|
}
|
|
29
33
|
});
|
|
30
34
|
export const panelTextInputWithCustomWidth = width => css({
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
36
|
'input&': {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
38
|
width: `${width}px`
|
|
33
39
|
}
|
|
34
40
|
});
|
|
@@ -255,6 +255,7 @@ export default class Popup extends React.Component {
|
|
|
255
255
|
style: {
|
|
256
256
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
257
257
|
position: 'absolute',
|
|
258
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
258
259
|
zIndex: this.props.zIndex || akEditorFloatingPanelZIndex,
|
|
259
260
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
260
261
|
...position,
|
|
@@ -14,10 +14,12 @@ import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
|
14
14
|
const blockNodeStyle = css({
|
|
15
15
|
background: `var(--ds-background-disabled, ${N30})`,
|
|
16
16
|
border: `1px dashed ${`var(--ds-border-disabled, ${N50})`}`,
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
18
|
borderRadius: `${borderRadius()}px`,
|
|
18
19
|
boxSizing: 'border-box',
|
|
19
20
|
cursor: 'default',
|
|
20
21
|
display: 'flex',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
23
|
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
22
24
|
margin: `${"var(--ds-space-100, 8px)"} 0`,
|
|
23
25
|
minHeight: '24px',
|
|
@@ -15,10 +15,12 @@ const inlineNodeStyle = css({
|
|
|
15
15
|
alignItems: 'center',
|
|
16
16
|
background: `var(--ds-background-disabled, ${N30})`,
|
|
17
17
|
border: `1px dashed ${`var(--ds-border-disabled, ${N50})`}`,
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
19
|
borderRadius: `${borderRadius()}px`,
|
|
19
20
|
boxSizing: 'border-box',
|
|
20
21
|
cursor: 'default',
|
|
21
22
|
display: 'inline-flex',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
24
|
fontSize: relativeFontSizeToBase16(fontSize()),
|
|
23
25
|
margin: `0 ${"var(--ds-space-025, 2px)"}`,
|
|
24
26
|
minHeight: '24px',
|
|
@@ -2,17 +2,22 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
|
|
3
3
|
// We use !important to ensure next sibling gets the margin reset no matter what
|
|
4
4
|
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
6
|
export const clearNextSiblingMarginTopStyle = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
8
|
'& + *': {
|
|
7
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
8
10
|
marginTop: '0 !important'
|
|
9
11
|
}
|
|
10
12
|
});
|
|
11
13
|
const textElements = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
12
14
|
const nextSiblingBlockMarkContentSelectors = textElements.map(elem => `+ .fabric-editor-block-mark > ${elem}`).join(',');
|
|
15
|
+
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
13
17
|
export const clearNextSiblingBlockMarkMarginTopStyle = css({
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
19
|
[`${nextSiblingBlockMarkContentSelectors}`]: {
|
|
15
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
16
21
|
marginTop: '0 !important'
|
|
17
22
|
}
|
|
18
23
|
});
|
|
@@ -60,7 +60,7 @@ function FunctionalComponentColor(props) {
|
|
|
60
60
|
border: `1px solid ${borderColor}`
|
|
61
61
|
},
|
|
62
62
|
autoFocus: autoFocus
|
|
63
|
-
}, isSelected && jsx(EditorDoneIcon, {
|
|
63
|
+
}, !decorator && isSelected && jsx(EditorDoneIcon, {
|
|
64
64
|
primaryColor: checkMarkColor,
|
|
65
65
|
label: ""
|
|
66
66
|
}), decorator)));
|
|
@@ -105,7 +105,9 @@ class ClassComponentColor extends PureComponent {
|
|
|
105
105
|
}, jsx("span", {
|
|
106
106
|
css: buttonWrapperStyle
|
|
107
107
|
}, jsx("button", {
|
|
108
|
-
type: "button"
|
|
108
|
+
type: "button"
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
110
|
+
,
|
|
109
111
|
css: buttonStyle,
|
|
110
112
|
"aria-label": label,
|
|
111
113
|
role: "radio",
|
|
@@ -2,6 +2,7 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { N0, N50, N900 } from '@atlaskit/theme/colors';
|
|
3
3
|
/** this is not new usage - old code extracted from editor-core */
|
|
4
4
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
6
|
export const buttonStyle = css({
|
|
6
7
|
height: '26px',
|
|
7
8
|
width: '26px',
|
|
@@ -16,6 +17,7 @@ export const buttonStyle = css({
|
|
|
16
17
|
|
|
17
18
|
/** this is not new usage - old code extracted from editor-core */
|
|
18
19
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
19
21
|
export const buttonWrapperStyle = css({
|
|
20
22
|
border: '1px solid transparent',
|
|
21
23
|
fontSize: 0,
|
|
@@ -24,6 +26,7 @@ export const buttonWrapperStyle = css({
|
|
|
24
26
|
padding: "var(--ds-space-025, 2px)",
|
|
25
27
|
borderRadius: '6px',
|
|
26
28
|
'&:focus-within, &:focus, &:hover': {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
27
30
|
borderColor: `${`var(--ds-border, ${N50})`} !important`
|
|
28
31
|
}
|
|
29
32
|
});
|
|
@@ -123,7 +123,7 @@ export default defineMessages({
|
|
|
123
123
|
// Colors only used in highlight palette
|
|
124
124
|
'no-color': {
|
|
125
125
|
id: 'fabric.theme.no-color',
|
|
126
|
-
defaultMessage: '
|
|
126
|
+
defaultMessage: 'No highlight',
|
|
127
127
|
description: 'Tooltip for the no color option in the highlight color palette in the main editor toolbar'
|
|
128
128
|
},
|
|
129
129
|
lime: {
|
|
@@ -57,6 +57,7 @@ const ColorPalette = props => {
|
|
|
57
57
|
return getColorsPerRowFromPalette(palette, cols);
|
|
58
58
|
}, [palette, cols]);
|
|
59
59
|
return jsx(React.Fragment, null, colorsPerRow.map(row => jsx("div", {
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
60
61
|
css: colorPaletteWrapper
|
|
61
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
62
63
|
,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
3
|
export const colorPaletteWrapper = css({
|
|
3
4
|
padding: `0 ${"var(--ds-space-100, 8px)"}`,
|
|
4
5
|
/* Firefox bug fix: https://product-fabric.atlassian.net/browse/ED-1789 */
|