@atlaskit/editor-core 193.26.0 → 193.27.2
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 +25 -0
- package/compass.yml +0 -1
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +6 -0
- package/dist/cjs/presets/universal.js +22 -10
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +4 -1
- package/dist/cjs/ui/Addon/Dropdown/index.js +2 -0
- package/dist/cjs/ui/Addon/Dropdown/styles.js +2 -0
- package/dist/cjs/ui/Addon/DropdownItem/index.js +1 -0
- package/dist/cjs/ui/Addon/DropdownItem/styles.js +2 -0
- package/dist/cjs/ui/Appearance/Chromeless.js +13 -3
- package/dist/cjs/ui/Appearance/Comment/Comment.js +25 -5
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +3 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +9 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +9 -2
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +19 -1
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +51 -5
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +1 -0
- package/dist/cjs/ui/ChromeCollapsed/index.js +3 -1
- package/dist/cjs/ui/ChromeCollapsed/styles.js +5 -0
- package/dist/cjs/ui/ContentStyles/ai-panels.js +19 -1
- package/dist/cjs/ui/ContentStyles/date.js +1 -1
- package/dist/cjs/ui/ContentStyles/extension.js +2 -1
- package/dist/cjs/ui/ContentStyles/index.js +4 -2
- package/dist/cjs/ui/ContentStyles/media.js +1 -1
- package/dist/cjs/ui/ContentStyles/status.js +1 -1
- package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +1 -1
- package/dist/cjs/ui/ContextPanel/index.js +9 -0
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +12 -9
- package/dist/cjs/ui/ToolbarFeedback/index.js +3 -1
- package/dist/cjs/ui/ToolbarFeedback/styles.js +16 -0
- package/dist/cjs/ui/WithFlash/index.js +2 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +11 -0
- package/dist/es2019/presets/universal.js +23 -10
- package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +4 -1
- package/dist/es2019/ui/Addon/Dropdown/index.js +2 -0
- package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -0
- package/dist/es2019/ui/Addon/DropdownItem/index.js +1 -0
- package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -0
- package/dist/es2019/ui/Appearance/Chromeless.js +13 -3
- package/dist/es2019/ui/Appearance/Comment/Comment.js +25 -5
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +3 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +9 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +9 -2
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +26 -1
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +54 -5
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +1 -0
- package/dist/es2019/ui/ChromeCollapsed/index.js +3 -1
- package/dist/es2019/ui/ChromeCollapsed/styles.js +5 -0
- package/dist/es2019/ui/ContentStyles/ai-panels.js +19 -1
- package/dist/es2019/ui/ContentStyles/date.js +1 -1
- package/dist/es2019/ui/ContentStyles/extension.js +2 -1
- package/dist/es2019/ui/ContentStyles/index.js +4 -2
- package/dist/es2019/ui/ContentStyles/media.js +1 -1
- package/dist/es2019/ui/ContentStyles/status.js +1 -1
- package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +1 -1
- package/dist/es2019/ui/ContextPanel/index.js +9 -0
- package/dist/es2019/ui/Toolbar/ToolbarInner.js +1 -0
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +13 -9
- package/dist/es2019/ui/ToolbarFeedback/index.js +3 -1
- package/dist/es2019/ui/ToolbarFeedback/styles.js +16 -0
- package/dist/es2019/ui/WithFlash/index.js +3 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +6 -0
- package/dist/esm/presets/universal.js +22 -10
- package/dist/esm/ui/Addon/ClickAreaMobile/index.js +4 -1
- package/dist/esm/ui/Addon/Dropdown/index.js +2 -0
- package/dist/esm/ui/Addon/Dropdown/styles.js +2 -0
- package/dist/esm/ui/Addon/DropdownItem/index.js +1 -0
- package/dist/esm/ui/Addon/DropdownItem/styles.js +2 -0
- package/dist/esm/ui/Appearance/Chromeless.js +13 -3
- package/dist/esm/ui/Appearance/Comment/Comment.js +25 -5
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +3 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +9 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +9 -2
- package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +19 -1
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +52 -5
- package/dist/esm/ui/AppearanceComponents/Mobile.js +1 -0
- package/dist/esm/ui/ChromeCollapsed/index.js +3 -1
- package/dist/esm/ui/ChromeCollapsed/styles.js +5 -0
- package/dist/esm/ui/ContentStyles/ai-panels.js +19 -1
- package/dist/esm/ui/ContentStyles/date.js +1 -1
- package/dist/esm/ui/ContentStyles/extension.js +2 -1
- package/dist/esm/ui/ContentStyles/index.js +4 -2
- package/dist/esm/ui/ContentStyles/media.js +1 -1
- package/dist/esm/ui/ContentStyles/status.js +1 -1
- package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +1 -1
- package/dist/esm/ui/ContextPanel/index.js +9 -0
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +12 -9
- package/dist/esm/ui/ToolbarFeedback/index.js +3 -1
- package/dist/esm/ui/ToolbarFeedback/styles.js +16 -0
- package/dist/esm/ui/WithFlash/index.js +2 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +288 -10
- package/dist/types/presets/default.d.ts +258 -10
- package/dist/types/presets/universal.d.ts +288 -10
- package/dist/types/presets/useUniversalPreset.d.ts +288 -10
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +318 -10
- package/dist/types-ts4.5/presets/default.d.ts +288 -10
- package/dist/types-ts4.5/presets/universal.d.ts +318 -10
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +318 -10
- package/package.json +389 -389
|
@@ -73,7 +73,11 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
73
73
|
lpLinkPicker: (_featureFlags$lpLinkP = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP !== void 0 ? _featureFlags$lpLinkP : false,
|
|
74
74
|
...props.hyperlinkOptions
|
|
75
75
|
},
|
|
76
|
-
__livePage: props.__livePage
|
|
76
|
+
__livePage: props.__livePage,
|
|
77
|
+
codeBlock: {
|
|
78
|
+
...props.codeBlock,
|
|
79
|
+
getEditorFeatureFlags
|
|
80
|
+
}
|
|
77
81
|
});
|
|
78
82
|
const statusMenuDisabled = !props.allowStatus ? true : typeof props.allowStatus === 'object' ? Boolean(props.allowStatus.menuDisabled) : false;
|
|
79
83
|
const hasBeforePrimaryToolbar = components => {
|
|
@@ -89,7 +93,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
89
93
|
useLongPressSelection: false,
|
|
90
94
|
appearance: appearance,
|
|
91
95
|
allowInteractiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
|
|
92
|
-
__livePage: props.__livePage
|
|
96
|
+
__livePage: props.__livePage,
|
|
97
|
+
getEditorFeatureFlags
|
|
93
98
|
}], Boolean(props.allowExpand)).maybeAdd(guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([gridPlugin, {
|
|
94
99
|
shouldCalcBreakoutGridLines: isFullPage
|
|
95
100
|
}], Boolean(props.media)).maybeAdd([annotationPlugin, props.annotationProviders], Boolean(props.annotationProviders)).maybeAdd([mediaPlugin, {
|
|
@@ -114,21 +119,26 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
114
119
|
insertDisplayName: (_props$mention$insert = (_props$mention = props.mention) === null || _props$mention === void 0 ? void 0 : _props$mention.insertDisplayName) !== null && _props$mention$insert !== void 0 ? _props$mention$insert : props.mentionInsertDisplayName,
|
|
115
120
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
116
121
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
117
|
-
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
118
|
-
|
|
122
|
+
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider,
|
|
123
|
+
getEditorFeatureFlags
|
|
124
|
+
}], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, {
|
|
125
|
+
getEditorFeatureFlags
|
|
126
|
+
}], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
119
127
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
120
|
-
tableResizingEnabled:
|
|
128
|
+
tableResizingEnabled: isFullPage,
|
|
121
129
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
|
|
122
130
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
123
131
|
allowContextualMenu: !isMobile,
|
|
124
132
|
fullWidthEnabled: appearance === 'full-width',
|
|
125
133
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
126
134
|
getEditorFeatureFlags,
|
|
127
|
-
isTableAlignmentEnabled: getBooleanFF('platform.editor.table.allow-table-alignment') && isFullPage
|
|
135
|
+
isTableAlignmentEnabled: getBooleanFF('platform.editor.table.allow-table-alignment') && isFullPage,
|
|
136
|
+
isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage
|
|
128
137
|
}], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
|
|
129
138
|
allowNestedTasks: props.allowNestedTasks,
|
|
130
139
|
consumeTabs: isFullPage,
|
|
131
|
-
useLongPressSelection: false
|
|
140
|
+
useLongPressSelection: false,
|
|
141
|
+
getEditorFeatureFlags
|
|
132
142
|
}], Boolean(props.allowTasksAndDecisions || props.taskDecisionProvider)).maybeAdd([feedbackDialogPlugin, {
|
|
133
143
|
coreVersion,
|
|
134
144
|
...props.feedbackInfo
|
|
@@ -149,7 +159,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
149
159
|
}], Boolean(props.collabEdit || props.collabEditProvider)).maybeAdd([maxContentSizePlugin, props.maxContentSize], Boolean(props.maxContentSize)).maybeAdd([panelPlugin, {
|
|
150
160
|
useLongPressSelection: false,
|
|
151
161
|
allowCustomPanel: typeof props.allowPanel === 'object' ? props.allowPanel.allowCustomPanel : false,
|
|
152
|
-
allowCustomPanelEdit: typeof props.allowPanel === 'object' ? props.allowPanel.allowCustomPanelEdit : false
|
|
162
|
+
allowCustomPanelEdit: typeof props.allowPanel === 'object' ? props.allowPanel.allowCustomPanelEdit : false,
|
|
163
|
+
getEditorFeatureFlags
|
|
153
164
|
}], Boolean(props.allowPanel)).maybeAdd(contextPanelPlugin, Boolean(isFullPage)).maybeAdd([extensionPlugin, {
|
|
154
165
|
breakoutEnabled: appearance === 'full-page' && (typeof props.allowExtension === 'object' ? props.allowExtension.allowBreakout : true) !== false,
|
|
155
166
|
extensionHandlers: props.extensionHandlers,
|
|
@@ -162,7 +173,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
162
173
|
// long term this and media should be consolidated into adding both only once
|
|
163
174
|
// @ts-expect-error
|
|
164
175
|
[annotationPlugin, undefined], Boolean(!props.annotationProviders && props.allowConfluenceInlineComment)).maybeAdd([datePlugin, {
|
|
165
|
-
weekStartDay: typeof props.allowDate === 'object' ? props.allowDate.weekStartDay : undefined
|
|
176
|
+
weekStartDay: typeof props.allowDate === 'object' ? props.allowDate.weekStartDay : undefined,
|
|
177
|
+
getEditorFeatureFlags
|
|
166
178
|
}], Boolean(props.allowDate)).maybeAdd([placeholderTextPlugin,
|
|
167
179
|
// @ts-expect-error 2322: Type 'false | PlaceholderTextOptions | undefined'
|
|
168
180
|
props.allowTemplatePlaceholders !== true ? props.allowTemplatePlaceholders : {}], Boolean(props.allowTemplatePlaceholders)).maybeAdd([layoutPlugin, {
|
|
@@ -180,7 +192,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
180
192
|
editorAppearance: appearance
|
|
181
193
|
}], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
|
|
182
194
|
menuDisabled: statusMenuDisabled,
|
|
183
|
-
allowZeroWidthSpaceAfter: !isMobile
|
|
195
|
+
allowZeroWidthSpaceAfter: !isMobile,
|
|
196
|
+
getEditorFeatureFlags
|
|
184
197
|
}], Boolean(props.allowStatus)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
|
|
185
198
|
showIndentationButtons: !!props.showIndentationButtons,
|
|
186
199
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
@@ -14,7 +14,9 @@ const clickWrapper = ({
|
|
|
14
14
|
minHeight
|
|
15
15
|
}) => css({
|
|
16
16
|
height: '100%'
|
|
17
|
-
},
|
|
17
|
+
},
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
|
+
isExpanded && minHeight ? `min-height: ${minHeight}px` : '');
|
|
18
20
|
/**
|
|
19
21
|
* Click Area is responsible for improving UX by ensuring the user
|
|
20
22
|
* can always tap beneath the content area, to insert more content.
|
|
@@ -58,6 +60,7 @@ export default class ClickAreaMobile extends React.Component {
|
|
|
58
60
|
}
|
|
59
61
|
render() {
|
|
60
62
|
return jsx("div", {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
61
64
|
css: clickWrapper({
|
|
62
65
|
isExpanded: this.props.isExpanded,
|
|
63
66
|
minHeight: this.props.minHeight
|
|
@@ -27,6 +27,8 @@ export default class DropdownWrapper extends React.Component {
|
|
|
27
27
|
const children = React.Children.map(this.props.children, child => /*#__PURE__*/React.cloneElement(child, {
|
|
28
28
|
onClick: this.handleClick
|
|
29
29
|
}));
|
|
30
|
+
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
30
32
|
return jsx("div", {
|
|
31
33
|
css: dropdown
|
|
32
34
|
}, children);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N60A } from '@atlaskit/theme/colors';
|
|
3
3
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
4
5
|
export const dropdown = css({
|
|
5
6
|
display: 'flex',
|
|
6
7
|
flexDirection: 'column',
|
|
7
8
|
background: "var(--ds-surface-overlay, white)",
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
8
10
|
borderRadius: `${borderRadius()}px`,
|
|
9
11
|
boxShadow: `var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`,
|
|
10
12
|
boxSizing: 'border-box',
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { dropdownItem } from './styles';
|
|
4
4
|
const DropdownItemWrapper = props => jsx("div", {
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
5
6
|
css: dropdownItem,
|
|
6
7
|
onClick: () => props.onClick && props.onClick({
|
|
7
8
|
actionOnClick: props.actionOnClick,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N20, N800 } 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 dropdownItem = css({
|
|
4
5
|
display: 'flex',
|
|
5
6
|
alignItems: 'center',
|
|
@@ -7,6 +8,7 @@ export const dropdownItem = css({
|
|
|
7
8
|
textDecoration: 'none',
|
|
8
9
|
padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-400, 32px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-150, 12px)"}`,
|
|
9
10
|
color: `var(--ds-text, ${N800})`,
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
10
12
|
'> span': {
|
|
11
13
|
display: 'flex',
|
|
12
14
|
marginRight: "var(--ds-space-100, 8px)"
|
|
@@ -13,15 +13,19 @@ const chromelessEditorStyles = css({
|
|
|
13
13
|
height: 'auto',
|
|
14
14
|
overflowX: 'hidden',
|
|
15
15
|
overflowY: 'auto'
|
|
16
|
-
},
|
|
16
|
+
},
|
|
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
|
+
scrollbarStyles, {
|
|
17
19
|
maxWidth: 'inherit',
|
|
18
20
|
boxSizing: 'border-box',
|
|
19
21
|
wordWrap: 'break-word',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
23
|
'div > .ProseMirror': {
|
|
21
24
|
outline: 'none',
|
|
22
25
|
whiteSpace: 'pre-wrap',
|
|
23
26
|
padding: 0,
|
|
24
27
|
margin: 0,
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
25
29
|
'& > :last-child': {
|
|
26
30
|
paddingBottom: "var(--ds-space-100, 0.5em)"
|
|
27
31
|
}
|
|
@@ -59,9 +63,15 @@ export default class Editor extends React.Component {
|
|
|
59
63
|
return jsx(WithFlash, {
|
|
60
64
|
animate: maxContentSizeReached
|
|
61
65
|
}, jsx("div", {
|
|
62
|
-
css: [chromelessEditorStyles, maxHeight &&
|
|
66
|
+
css: [chromelessEditorStyles, maxHeight &&
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
68
|
+
css({
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
63
70
|
maxHeight: `${maxHeight}px`
|
|
64
|
-
}),
|
|
71
|
+
}),
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
73
|
+
css({
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
65
75
|
minHeight: `${minHeight}px`
|
|
66
76
|
})],
|
|
67
77
|
"data-testid": "chromeless-editor",
|
|
@@ -27,6 +27,7 @@ const CommentEditorMargin = 14;
|
|
|
27
27
|
const commentEditorStyles = css({
|
|
28
28
|
display: 'flex',
|
|
29
29
|
flexDirection: 'column',
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
31
|
'.less-margin .ProseMirror': {
|
|
31
32
|
margin: `${"var(--ds-space-150, 12px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"}`
|
|
32
33
|
},
|
|
@@ -35,24 +36,31 @@ const commentEditorStyles = css({
|
|
|
35
36
|
backgroundColor: "var(--ds-background-input, white)",
|
|
36
37
|
border: `1px solid ${`var(--ds-border-input, ${N100})`}`,
|
|
37
38
|
boxSizing: 'border-box',
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
40
|
borderRadius: `${borderRadius()}px`,
|
|
39
41
|
maxWidth: 'inherit',
|
|
40
42
|
wordWrap: 'break-word'
|
|
41
43
|
});
|
|
42
44
|
const ContentArea = createEditorContentStyle(css({
|
|
43
45
|
flexGrow: 1,
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
44
47
|
overflowX: getBooleanFF('platform.editor.table-sticky-scrollbar') ? 'clip' : 'hidden',
|
|
45
48
|
lineHeight: '24px',
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
46
50
|
'.ProseMirror': {
|
|
47
51
|
margin: "var(--ds-space-150, 12px)"
|
|
48
52
|
},
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
49
54
|
'.gridParent': {
|
|
50
55
|
marginLeft: "var(--ds-space-025, 2px)",
|
|
51
56
|
marginRight: "var(--ds-space-025, 2px)",
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
58
|
width: `calc(100% + ${CommentEditorMargin - GRID_GUTTER}px)`
|
|
53
59
|
},
|
|
54
60
|
padding: "var(--ds-space-250, 20px)"
|
|
55
|
-
},
|
|
61
|
+
},
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
63
|
+
tableCommentEditorStyles));
|
|
56
64
|
ContentArea.displayName = 'ContentArea';
|
|
57
65
|
const secondaryToolbarStyles = css({
|
|
58
66
|
boxSizing: 'border-box',
|
|
@@ -130,7 +138,10 @@ class Editor extends React.Component {
|
|
|
130
138
|
return jsx(WithFlash, {
|
|
131
139
|
animate: maxContentSizeReached
|
|
132
140
|
}, jsx("div", {
|
|
133
|
-
css: [commentEditorStyles,
|
|
141
|
+
css: [commentEditorStyles,
|
|
142
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
143
|
+
css({
|
|
144
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
134
145
|
minHeight: `${minHeight}px`
|
|
135
146
|
})]
|
|
136
147
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -172,7 +183,10 @@ class Editor extends React.Component {
|
|
|
172
183
|
}) => {
|
|
173
184
|
return jsx(ContentArea, {
|
|
174
185
|
ref: ref => this.containerElement = ref,
|
|
175
|
-
css: maxHeight ?
|
|
186
|
+
css: maxHeight ?
|
|
187
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
188
|
+
css({
|
|
189
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
176
190
|
maxHeight: `${maxHeight}px`
|
|
177
191
|
}) : null
|
|
178
192
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -316,7 +330,10 @@ const EditorNext = props => {
|
|
|
316
330
|
return jsx(WithFlash, {
|
|
317
331
|
animate: maxContentSizeReached
|
|
318
332
|
}, jsx("div", {
|
|
319
|
-
css: [commentEditorStyles,
|
|
333
|
+
css: [commentEditorStyles,
|
|
334
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
335
|
+
css({
|
|
336
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
320
337
|
minHeight: `${minHeight}px`
|
|
321
338
|
})]
|
|
322
339
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -358,7 +375,10 @@ const EditorNext = props => {
|
|
|
358
375
|
}) => {
|
|
359
376
|
return jsx(ContentArea, {
|
|
360
377
|
ref: containerElement,
|
|
361
|
-
css: maxHeight ?
|
|
378
|
+
css: maxHeight ?
|
|
379
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
380
|
+
css({
|
|
381
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
362
382
|
maxHeight: `${maxHeight}px`
|
|
363
383
|
}) : null
|
|
364
384
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -47,7 +47,7 @@ const mainToolbarWrapperStyle = (isTwoLineEditorToolbar = false) => css`
|
|
|
47
47
|
}
|
|
48
48
|
`;
|
|
49
49
|
|
|
50
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
51
51
|
const stickyToolbarWrapperStyle = css`
|
|
52
52
|
/* stylelint-disable declaration-block-no-duplicate-properties */
|
|
53
53
|
position: relative;
|
|
@@ -78,6 +78,7 @@ const StickyToolbar = props => {
|
|
|
78
78
|
return (
|
|
79
79
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
80
80
|
jsx("div", {
|
|
81
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
81
82
|
css: [mainToolbarWrapperStyle(props.twoLineEditorToolbar), stickyToolbarWrapperStyle]
|
|
82
83
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
83
84
|
,
|
|
@@ -94,6 +95,7 @@ const StickyToolbar = props => {
|
|
|
94
95
|
const FixedToolbar = props =>
|
|
95
96
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
96
97
|
jsx("div", {
|
|
98
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
97
99
|
css: mainToolbarWrapperStyle(props.twoLineEditorToolbar),
|
|
98
100
|
"data-testid": "ak-editor-main-toolbar"
|
|
99
101
|
}, props.children);
|
|
@@ -48,6 +48,7 @@ export const FullPageEditor = props => {
|
|
|
48
48
|
}
|
|
49
49
|
const isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
50
50
|
return jsx(ContextPanelWidthProvider, null, jsx("div", {
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
51
52
|
css: fullPageEditorWrapper
|
|
52
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
53
54
|
,
|
|
@@ -30,7 +30,13 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
30
30
|
}) => {
|
|
31
31
|
var _contentAreaRef$curre;
|
|
32
32
|
return jsx("div", {
|
|
33
|
-
css: [
|
|
33
|
+
css: [
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
35
|
+
contentArea,
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
37
|
+
props.isEditorToolbarHidden && contentAreaHeightNoToolbar,
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
39
|
+
positionedOverEditor && positionedOverEditorStyle],
|
|
34
40
|
"data-testid": CONTENT_AREA_TEST_ID
|
|
35
41
|
}, jsx(ScrollContainer
|
|
36
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -42,6 +48,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
42
48
|
editorView: props.editorView,
|
|
43
49
|
editorDisabled: props.disabled
|
|
44
50
|
}, jsx("div", {
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
45
52
|
css: editorContentAreaStyle({
|
|
46
53
|
fullWidthMode,
|
|
47
54
|
layoutMaxWidth: theme.layoutMaxWidth,
|
|
@@ -51,6 +58,7 @@ const Content = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
51
58
|
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
52
59
|
ref: contentAreaRef
|
|
53
60
|
}, jsx("div", {
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
54
62
|
css: editorContentGutterStyle
|
|
55
63
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
56
64
|
,
|
|
@@ -17,7 +17,9 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
17
17
|
|
|
18
18
|
// When primary toolbar components is undefined, do not show two line editor toolbar
|
|
19
19
|
const twoLineEditorToolbar = !!props.customPrimaryToolbarComponents && !!((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.twoLineEditorToolbar);
|
|
20
|
-
const nonCustomToolbar =
|
|
20
|
+
const nonCustomToolbar =
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
22
|
+
jsx("div", {
|
|
21
23
|
css: nonCustomToolbarWrapperStyle
|
|
22
24
|
}, props.beforeIcon && jsx("div", {
|
|
23
25
|
css: mainToolbarIconBeforeStyle
|
|
@@ -37,7 +39,9 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
37
39
|
hasMinWidth: props.hasMinWidth,
|
|
38
40
|
twoLineEditorToolbar: twoLineEditorToolbar
|
|
39
41
|
}));
|
|
40
|
-
const customToolbar =
|
|
42
|
+
const customToolbar =
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
44
|
+
jsx("div", {
|
|
41
45
|
css: customToolbarWrapperStyle
|
|
42
46
|
}, twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? jsx(BeforePrimaryToolbarWrapper, {
|
|
43
47
|
beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
|
|
@@ -90,13 +94,16 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
|
|
|
90
94
|
handleEscape: handleEscape,
|
|
91
95
|
intl: props.intl
|
|
92
96
|
}, jsx("div", {
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
93
98
|
css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
|
|
94
99
|
"data-testid": "ak-editor-main-toolbar"
|
|
95
100
|
}, jsx("div", {
|
|
101
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
96
102
|
css: mainToolbarFirstChildStyle(twoLineEditorToolbar),
|
|
97
103
|
role: "toolbar",
|
|
98
104
|
"aria-label": props.intl.formatMessage(messages.toolbarLabel)
|
|
99
105
|
}, shouldSplitToolbar ? customToolbar : nonCustomToolbar), jsx("div", {
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
100
107
|
css: mainToolbarSecondChildStyle(twoLineEditorToolbar),
|
|
101
108
|
"data-testid": 'avatar-group-outside-plugin',
|
|
102
109
|
role: "region",
|
|
@@ -5,11 +5,16 @@ export const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
|
5
5
|
|
|
6
6
|
// box-shadow is overriden by the mainToolbar
|
|
7
7
|
const mainToolbarWithKeyline = css({
|
|
8
|
-
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
9
|
+
boxShadow: getBooleanFF('platform.confluence.frontend.narrow-full-page-editor-toolbar') ? `${"var(--ds-shadow-overflow, 0px 0px 8px #091E4228, 0px 0px 1px #091E421e)"}` :
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
11
|
+
`0 ${akEditorToolbarKeylineHeight}px 0 0 ${"var(--ds-background-accent-gray-subtlest, #F1F2F4)"}`
|
|
9
12
|
});
|
|
10
13
|
const mainToolbarTwoLineStyle = css({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
11
15
|
[`@media (max-width: ${MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT}px)`]: {
|
|
12
16
|
flexWrap: 'wrap',
|
|
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
|
|
13
18
|
height: `calc(${FULL_PAGE_EDITOR_TOOLBAR_HEIGHT()} * 2)`
|
|
14
19
|
}
|
|
15
20
|
});
|
|
@@ -17,26 +22,37 @@ const mainToolbar = css({
|
|
|
17
22
|
position: 'relative',
|
|
18
23
|
alignItems: 'center',
|
|
19
24
|
boxShadow: 'none',
|
|
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
|
|
20
26
|
borderBottom: getBooleanFF('platform.confluence.frontend.narrow-full-page-editor-toolbar') ? `1px solid ${"var(--ds-border, #091E4224)"}` : undefined,
|
|
27
|
+
// 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
28
|
transition: `box-shadow 200ms ${akEditorSwoopCubicBezier}`,
|
|
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
|
|
22
30
|
zIndex: akEditorFloatingDialogZIndex,
|
|
23
31
|
display: 'flex',
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
33
|
height: FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(),
|
|
25
34
|
flexShrink: 0,
|
|
26
35
|
backgroundColor: "var(--ds-surface, white)",
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
37
|
'& object': {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
28
39
|
height: '0 !important'
|
|
29
40
|
},
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
30
42
|
[`@media (max-width: ${akEditorMobileMaxWidth}px)`]: {
|
|
31
43
|
display: 'grid',
|
|
44
|
+
// 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
45
|
height: `calc(${FULL_PAGE_EDITOR_TOOLBAR_HEIGHT()} * 2)`
|
|
33
46
|
}
|
|
34
47
|
});
|
|
35
48
|
export const mainToolbarStyle = (showKeyline, twoLineEditorToolbar) => [mainToolbar, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle];
|
|
49
|
+
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
36
51
|
export const mainToolbarIconBeforeStyle = css({
|
|
37
52
|
margin: "var(--ds-space-200, 16px)",
|
|
38
53
|
height: "var(--ds-space-400, 32px)",
|
|
39
54
|
width: "var(--ds-space-400, 32px)",
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
40
56
|
[`@media (max-width: ${akEditorMobileMaxWidth}px)`]: {
|
|
41
57
|
gridColumn: 1,
|
|
42
58
|
gridRow: 1
|
|
@@ -45,14 +61,17 @@ export const mainToolbarIconBeforeStyle = css({
|
|
|
45
61
|
const mainToolbarFirstChild = css({
|
|
46
62
|
display: 'flex',
|
|
47
63
|
flexGrow: 1,
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
48
65
|
[`@media (max-width: ${akEditorMobileMaxWidth}px)`]: {
|
|
49
66
|
gridColumn: 1,
|
|
50
67
|
gridRow: 1
|
|
51
68
|
}
|
|
52
69
|
});
|
|
53
70
|
const mainToolbarFirstChildTowLine = css({
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
54
72
|
[`@media (max-width: ${MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT}px)`]: {
|
|
55
73
|
flex: '1 1 100%',
|
|
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
|
|
56
75
|
height: FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(),
|
|
57
76
|
justifyContent: 'flex-end',
|
|
58
77
|
minWidth: 'fit-content'
|
|
@@ -63,21 +82,27 @@ const mainToolbarSecondChild = css({
|
|
|
63
82
|
minWidth: 'fit-content'
|
|
64
83
|
});
|
|
65
84
|
const mainToolbarSecondChildTwoLine = css({
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
66
86
|
[`@media (max-width: ${MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT}px)`]: {
|
|
67
87
|
display: 'flex',
|
|
68
88
|
flexGrow: 1,
|
|
69
89
|
flex: '1 1 100%',
|
|
70
90
|
margin: 'auto',
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
71
92
|
height: FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(),
|
|
72
93
|
minWidth: 0
|
|
73
94
|
}
|
|
74
95
|
});
|
|
75
96
|
export const mainToolbarSecondChildStyle = twoLineEditorToolbar => [mainToolbarSecondChild, twoLineEditorToolbar && mainToolbarSecondChildTwoLine];
|
|
97
|
+
|
|
98
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
76
99
|
export const nonCustomToolbarWrapperStyle = css({
|
|
77
100
|
alignItems: 'center',
|
|
78
101
|
display: 'flex',
|
|
79
102
|
flexGrow: 1
|
|
80
103
|
});
|
|
104
|
+
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
81
106
|
export const customToolbarWrapperStyle = css({
|
|
82
107
|
alignItems: 'center',
|
|
83
108
|
display: 'flex'
|