@atlaskit/editor-core 193.25.4 → 193.27.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 +32 -0
- package/compass.yml +0 -1
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +6 -0
- package/dist/cjs/presets/universal.js +19 -8
- 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 +3 -2
- 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 +20 -8
- 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 +4 -3
- 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 +19 -8
- 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 +3 -2
- 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 +362 -31
- package/dist/types/presets/default.d.ts +328 -30
- package/dist/types/presets/universal.d.ts +362 -31
- package/dist/types/presets/useUniversalPreset.d.ts +362 -31
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +403 -21
- package/dist/types-ts4.5/presets/default.d.ts +368 -20
- package/dist/types-ts4.5/presets/universal.d.ts +403 -21
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +403 -21
- package/package.json +379 -381
|
@@ -77,7 +77,10 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
77
77
|
hyperlinkOptions: _objectSpread({
|
|
78
78
|
lpLinkPicker: (_featureFlags$lpLinkP = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP !== void 0 ? _featureFlags$lpLinkP : false
|
|
79
79
|
}, props.hyperlinkOptions),
|
|
80
|
-
__livePage: props.__livePage
|
|
80
|
+
__livePage: props.__livePage,
|
|
81
|
+
codeBlock: _objectSpread(_objectSpread({}, props.codeBlock), {}, {
|
|
82
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
83
|
+
})
|
|
81
84
|
}));
|
|
82
85
|
var statusMenuDisabled = !props.allowStatus ? true : _typeof(props.allowStatus) === 'object' ? Boolean(props.allowStatus.menuDisabled) : false;
|
|
83
86
|
var hasBeforePrimaryToolbar = function hasBeforePrimaryToolbar(components) {
|
|
@@ -93,7 +96,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
93
96
|
useLongPressSelection: false,
|
|
94
97
|
appearance: appearance,
|
|
95
98
|
allowInteractiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
|
|
96
|
-
__livePage: props.__livePage
|
|
99
|
+
__livePage: props.__livePage,
|
|
100
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
97
101
|
}], Boolean(props.allowExpand)).maybeAdd(guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([gridPlugin, {
|
|
98
102
|
shouldCalcBreakoutGridLines: isFullPage
|
|
99
103
|
}], Boolean(props.media)).maybeAdd([annotationPlugin, props.annotationProviders], Boolean(props.annotationProviders)).maybeAdd([mediaPlugin, _objectSpread(_objectSpread({}, props.media), {}, {
|
|
@@ -117,8 +121,11 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
117
121
|
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,
|
|
118
122
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
119
123
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
120
|
-
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
121
|
-
|
|
124
|
+
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider,
|
|
125
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
126
|
+
}], Boolean(props.mentionProvider)).maybeAdd([emojiPlugin, {
|
|
127
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
128
|
+
}], Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
122
129
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
123
130
|
tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
|
|
124
131
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
|
|
@@ -131,7 +138,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
131
138
|
}], Boolean(props.allowTables)).maybeAdd([tasksAndDecisionsPlugin, {
|
|
132
139
|
allowNestedTasks: props.allowNestedTasks,
|
|
133
140
|
consumeTabs: isFullPage,
|
|
134
|
-
useLongPressSelection: false
|
|
141
|
+
useLongPressSelection: false,
|
|
142
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
135
143
|
}], Boolean(props.allowTasksAndDecisions || props.taskDecisionProvider)).maybeAdd([feedbackDialogPlugin, _objectSpread({
|
|
136
144
|
coreVersion: coreVersion
|
|
137
145
|
}, props.feedbackInfo)], Boolean(props.feedbackInfo)).maybeAdd([helpDialogPlugin, !!props.legacyImageUploadProvider], Boolean(props.allowHelpDialog)).maybeAdd([saveOnEnterPlugin, props.onSave], Boolean(props.saveOnEnter && props.onSave)).maybeAdd(imageUploadPlugin, Boolean(props.legacyImageUploadProvider)).maybeAdd(
|
|
@@ -150,7 +158,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
150
158
|
})], Boolean(props.collabEdit || props.collabEditProvider)).maybeAdd([maxContentSizePlugin, props.maxContentSize], Boolean(props.maxContentSize)).maybeAdd([panelPlugin, {
|
|
151
159
|
useLongPressSelection: false,
|
|
152
160
|
allowCustomPanel: _typeof(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanel : false,
|
|
153
|
-
allowCustomPanelEdit: _typeof(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanelEdit : false
|
|
161
|
+
allowCustomPanelEdit: _typeof(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanelEdit : false,
|
|
162
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
154
163
|
}], Boolean(props.allowPanel)).maybeAdd(contextPanelPlugin, Boolean(isFullPage)).maybeAdd([extensionPlugin, {
|
|
155
164
|
breakoutEnabled: appearance === 'full-page' && (_typeof(props.allowExtension) === 'object' ? props.allowExtension.allowBreakout : true) !== false,
|
|
156
165
|
extensionHandlers: props.extensionHandlers,
|
|
@@ -163,7 +172,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
163
172
|
// long term this and media should be consolidated into adding both only once
|
|
164
173
|
// @ts-expect-error
|
|
165
174
|
[annotationPlugin, undefined], Boolean(!props.annotationProviders && props.allowConfluenceInlineComment)).maybeAdd([datePlugin, {
|
|
166
|
-
weekStartDay: _typeof(props.allowDate) === 'object' ? props.allowDate.weekStartDay : undefined
|
|
175
|
+
weekStartDay: _typeof(props.allowDate) === 'object' ? props.allowDate.weekStartDay : undefined,
|
|
176
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
167
177
|
}], Boolean(props.allowDate)).maybeAdd([placeholderTextPlugin,
|
|
168
178
|
// @ts-expect-error 2322: Type 'false | PlaceholderTextOptions | undefined'
|
|
169
179
|
props.allowTemplatePlaceholders !== true ? props.allowTemplatePlaceholders : {}], Boolean(props.allowTemplatePlaceholders)).maybeAdd([layoutPlugin, _objectSpread(_objectSpread({}, _typeof(props.allowLayouts) === 'object' ? props.allowLayouts : {}), {}, {
|
|
@@ -177,7 +187,8 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
177
187
|
editorAppearance: appearance
|
|
178
188
|
})], 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, {
|
|
179
189
|
menuDisabled: statusMenuDisabled,
|
|
180
|
-
allowZeroWidthSpaceAfter: !isMobile
|
|
190
|
+
allowZeroWidthSpaceAfter: !isMobile,
|
|
191
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
181
192
|
}], Boolean(props.allowStatus)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
|
|
182
193
|
showIndentationButtons: !!props.showIndentationButtons,
|
|
183
194
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
@@ -22,7 +22,9 @@ var clickWrapper = function clickWrapper(_ref) {
|
|
|
22
22
|
minHeight = _ref.minHeight;
|
|
23
23
|
return css({
|
|
24
24
|
height: '100%'
|
|
25
|
-
},
|
|
25
|
+
},
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
+
isExpanded && minHeight ? "min-height: ".concat(minHeight, "px") : '');
|
|
26
28
|
};
|
|
27
29
|
/**
|
|
28
30
|
* Click Area is responsible for improving UX by ensuring the user
|
|
@@ -76,6 +78,7 @@ var ClickAreaMobile = /*#__PURE__*/function (_React$Component) {
|
|
|
76
78
|
key: "render",
|
|
77
79
|
value: function render() {
|
|
78
80
|
return jsx("div", {
|
|
81
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
79
82
|
css: clickWrapper({
|
|
80
83
|
isExpanded: this.props.isExpanded,
|
|
81
84
|
minHeight: this.props.minHeight
|
|
@@ -44,6 +44,8 @@ var DropdownWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
44
44
|
onClick: _this2.handleClick
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
|
+
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
47
49
|
return jsx("div", {
|
|
48
50
|
css: dropdown
|
|
49
51
|
}, 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 var 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: "".concat(borderRadius(), "px"),
|
|
9
11
|
boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"),
|
|
10
12
|
boxSizing: 'border-box',
|
|
@@ -3,6 +3,7 @@ import { jsx } from '@emotion/react';
|
|
|
3
3
|
import { dropdownItem } from './styles';
|
|
4
4
|
var DropdownItemWrapper = function DropdownItemWrapper(props) {
|
|
5
5
|
return jsx("div", {
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
6
7
|
css: dropdownItem,
|
|
7
8
|
onClick: function onClick() {
|
|
8
9
|
return props.onClick && props.onClick({
|
|
@@ -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 var dropdownItem = css({
|
|
4
5
|
display: 'flex',
|
|
5
6
|
alignItems: 'center',
|
|
@@ -7,6 +8,7 @@ export var dropdownItem = css({
|
|
|
7
8
|
textDecoration: 'none',
|
|
8
9
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-400, 32px)", " ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-150, 12px)"),
|
|
9
10
|
color: "var(--ds-text, ".concat(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)"
|
|
@@ -21,15 +21,19 @@ var chromelessEditorStyles = css({
|
|
|
21
21
|
height: 'auto',
|
|
22
22
|
overflowX: 'hidden',
|
|
23
23
|
overflowY: 'auto'
|
|
24
|
-
},
|
|
24
|
+
},
|
|
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
|
+
scrollbarStyles, {
|
|
25
27
|
maxWidth: 'inherit',
|
|
26
28
|
boxSizing: 'border-box',
|
|
27
29
|
wordWrap: 'break-word',
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
31
|
'div > .ProseMirror': {
|
|
29
32
|
outline: 'none',
|
|
30
33
|
whiteSpace: 'pre-wrap',
|
|
31
34
|
padding: 0,
|
|
32
35
|
margin: 0,
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
33
37
|
'& > :last-child': {
|
|
34
38
|
paddingBottom: "var(--ds-space-100, 0.5em)"
|
|
35
39
|
}
|
|
@@ -73,9 +77,15 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
73
77
|
return jsx(WithFlash, {
|
|
74
78
|
animate: maxContentSizeReached
|
|
75
79
|
}, jsx("div", {
|
|
76
|
-
css: [chromelessEditorStyles, maxHeight &&
|
|
80
|
+
css: [chromelessEditorStyles, maxHeight &&
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
82
|
+
css({
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
84
|
maxHeight: "".concat(maxHeight, "px")
|
|
78
|
-
}),
|
|
85
|
+
}),
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
87
|
+
css({
|
|
88
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
79
89
|
minHeight: "".concat(minHeight, "px")
|
|
80
90
|
})],
|
|
81
91
|
"data-testid": "chromeless-editor",
|
|
@@ -36,6 +36,7 @@ var CommentEditorMargin = 14;
|
|
|
36
36
|
var commentEditorStyles = css({
|
|
37
37
|
display: 'flex',
|
|
38
38
|
flexDirection: 'column',
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
40
|
'.less-margin .ProseMirror': {
|
|
40
41
|
margin: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
|
|
41
42
|
},
|
|
@@ -44,24 +45,31 @@ var commentEditorStyles = css({
|
|
|
44
45
|
backgroundColor: "var(--ds-background-input, white)",
|
|
45
46
|
border: "1px solid ".concat("var(--ds-border-input, ".concat(N100, ")")),
|
|
46
47
|
boxSizing: 'border-box',
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
49
|
borderRadius: "".concat(borderRadius(), "px"),
|
|
48
50
|
maxWidth: 'inherit',
|
|
49
51
|
wordWrap: 'break-word'
|
|
50
52
|
});
|
|
51
53
|
var ContentArea = createEditorContentStyle(css({
|
|
52
54
|
flexGrow: 1,
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
56
|
overflowX: getBooleanFF('platform.editor.table-sticky-scrollbar') ? 'clip' : 'hidden',
|
|
54
57
|
lineHeight: '24px',
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
55
59
|
'.ProseMirror': {
|
|
56
60
|
margin: "var(--ds-space-150, 12px)"
|
|
57
61
|
},
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
58
63
|
'.gridParent': {
|
|
59
64
|
marginLeft: "var(--ds-space-025, 2px)",
|
|
60
65
|
marginRight: "var(--ds-space-025, 2px)",
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
67
|
width: "calc(100% + ".concat(CommentEditorMargin - GRID_GUTTER, "px)")
|
|
62
68
|
},
|
|
63
69
|
padding: "var(--ds-space-250, 20px)"
|
|
64
|
-
},
|
|
70
|
+
},
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
72
|
+
tableCommentEditorStyles));
|
|
65
73
|
ContentArea.displayName = 'ContentArea';
|
|
66
74
|
var secondaryToolbarStyles = css({
|
|
67
75
|
boxSizing: 'border-box',
|
|
@@ -142,7 +150,10 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
142
150
|
return jsx(WithFlash, {
|
|
143
151
|
animate: maxContentSizeReached
|
|
144
152
|
}, jsx("div", {
|
|
145
|
-
css: [commentEditorStyles,
|
|
153
|
+
css: [commentEditorStyles,
|
|
154
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
155
|
+
css({
|
|
156
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
146
157
|
minHeight: "".concat(minHeight, "px")
|
|
147
158
|
})]
|
|
148
159
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -185,7 +196,10 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
185
196
|
ref: function ref(_ref3) {
|
|
186
197
|
return _this.containerElement = _ref3;
|
|
187
198
|
},
|
|
188
|
-
css: maxHeight ?
|
|
199
|
+
css: maxHeight ?
|
|
200
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
201
|
+
css({
|
|
202
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
189
203
|
maxHeight: "".concat(maxHeight, "px")
|
|
190
204
|
}) : null
|
|
191
205
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -337,7 +351,10 @@ var EditorNext = function EditorNext(props) {
|
|
|
337
351
|
return jsx(WithFlash, {
|
|
338
352
|
animate: maxContentSizeReached
|
|
339
353
|
}, jsx("div", {
|
|
340
|
-
css: [commentEditorStyles,
|
|
354
|
+
css: [commentEditorStyles,
|
|
355
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
356
|
+
css({
|
|
357
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
341
358
|
minHeight: "".concat(minHeight, "px")
|
|
342
359
|
})]
|
|
343
360
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -378,7 +395,10 @@ var EditorNext = function EditorNext(props) {
|
|
|
378
395
|
var width = _ref5.width;
|
|
379
396
|
return jsx(ContentArea, {
|
|
380
397
|
ref: containerElement,
|
|
381
|
-
css: maxHeight ?
|
|
398
|
+
css: maxHeight ?
|
|
399
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
400
|
+
css({
|
|
401
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
382
402
|
maxHeight: "".concat(maxHeight, "px")
|
|
383
403
|
}) : null
|
|
384
404
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -16,7 +16,7 @@ var mainToolbarWrapperStyle = function mainToolbarWrapperStyle() {
|
|
|
16
16
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: relative;\n\talign-items: center;\n\tpadding: ", " ", " 0;\n\tdisplay: flex;\n\theight: auto;\n\tbackground-color: ", ";\n\tbox-shadow: none;\n\tpadding-left: ", ";\n\n\t& > div {\n\t\t> :first-child:not(style),\n\t\t> style:first-child + * {\n\t\t\tmargin-left: 0;\n\t\t}\n\t\t", "\n\t}\n\n\t.block-type-btn {\n\t\tpadding-left: 0;\n\t}\n"])), "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-surface, white)", "var(--ds-space-250, 20px)", isTwoLineEditorToolbar && "\n @media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px) {\n flex-direction: column-reverse;\n align-items: end;\n display: flex;\n justify-content: flex-end;\n }\n\n //make this more explicit for a toolbar\n > *:nth-child(1) {\n @media (max-width: ").concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px) {\n > div:nth-child(2) {\n justify-content: flex-end;\n display: flex;\n }\n }\n }\n "));
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
20
20
|
var stickyToolbarWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t/* stylelint-disable declaration-block-no-duplicate-properties */\n\tposition: relative;\n\tposition: sticky;\n\t/* stylelint-enable declaration-block-no-duplicate-properties */\n\tpadding-bottom: ", ";\n\tz-index: ", ";\n\ttransition: box-shadow ease-in-out 0.2s;\n\t&.show-keyline {\n\t\tbox-shadow: 0 ", "px 0 0\n\t\t\t", ";\n\t}\n"])), "var(--ds-space-100, 8px)", akEditorMenuZIndex, akEditorToolbarKeylineHeight, "var(--ds-background-accent-gray-subtlest, #F1F2F4)");
|
|
21
21
|
var StickyToolbar = function StickyToolbar(props) {
|
|
22
22
|
var _useState = useState(0),
|
|
@@ -38,6 +38,7 @@ var StickyToolbar = function StickyToolbar(props) {
|
|
|
38
38
|
return (
|
|
39
39
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
40
40
|
jsx("div", {
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
41
42
|
css: [mainToolbarWrapperStyle(props.twoLineEditorToolbar), stickyToolbarWrapperStyle]
|
|
42
43
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
43
44
|
,
|
|
@@ -55,6 +56,7 @@ var FixedToolbar = function FixedToolbar(props) {
|
|
|
55
56
|
return (
|
|
56
57
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
57
58
|
jsx("div", {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
58
60
|
css: mainToolbarWrapperStyle(props.twoLineEditorToolbar),
|
|
59
61
|
"data-testid": "ak-editor-main-toolbar"
|
|
60
62
|
}, props.children)
|
|
@@ -55,6 +55,7 @@ export var FullPageEditor = function FullPageEditor(props) {
|
|
|
55
55
|
}
|
|
56
56
|
var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
57
57
|
return jsx(ContextPanelWidthProvider, null, jsx("div", {
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
58
59
|
css: fullPageEditorWrapper
|
|
59
60
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
60
61
|
,
|
|
@@ -31,7 +31,13 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
31
31
|
var _contentAreaRef$curre;
|
|
32
32
|
var positionedOverEditor = _ref2.positionedOverEditor;
|
|
33
33
|
return jsx("div", {
|
|
34
|
-
css: [
|
|
34
|
+
css: [
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
36
|
+
contentArea,
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
38
|
+
props.isEditorToolbarHidden && contentAreaHeightNoToolbar,
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
40
|
+
positionedOverEditor && positionedOverEditorStyle],
|
|
35
41
|
"data-testid": CONTENT_AREA_TEST_ID
|
|
36
42
|
}, jsx(ScrollContainer
|
|
37
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -43,6 +49,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
43
49
|
editorView: props.editorView,
|
|
44
50
|
editorDisabled: props.disabled
|
|
45
51
|
}, jsx("div", {
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
46
53
|
css: editorContentAreaStyle({
|
|
47
54
|
fullWidthMode: fullWidthMode,
|
|
48
55
|
layoutMaxWidth: theme.layoutMaxWidth,
|
|
@@ -52,6 +59,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
52
59
|
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
53
60
|
ref: contentAreaRef
|
|
54
61
|
}, jsx("div", {
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
55
63
|
css: editorContentGutterStyle
|
|
56
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
57
65
|
,
|
|
@@ -21,7 +21,9 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
21
21
|
|
|
22
22
|
// When primary toolbar components is undefined, do not show two line editor toolbar
|
|
23
23
|
var twoLineEditorToolbar = !!props.customPrimaryToolbarComponents && !!((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.twoLineEditorToolbar);
|
|
24
|
-
var nonCustomToolbar =
|
|
24
|
+
var nonCustomToolbar =
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
26
|
+
jsx("div", {
|
|
25
27
|
css: nonCustomToolbarWrapperStyle
|
|
26
28
|
}, props.beforeIcon && jsx("div", {
|
|
27
29
|
css: mainToolbarIconBeforeStyle
|
|
@@ -41,7 +43,9 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
41
43
|
hasMinWidth: props.hasMinWidth,
|
|
42
44
|
twoLineEditorToolbar: twoLineEditorToolbar
|
|
43
45
|
}));
|
|
44
|
-
var customToolbar =
|
|
46
|
+
var customToolbar =
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
48
|
+
jsx("div", {
|
|
45
49
|
css: customToolbarWrapperStyle
|
|
46
50
|
}, twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? jsx(BeforePrimaryToolbarWrapper, {
|
|
47
51
|
beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
|
|
@@ -96,13 +100,16 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
96
100
|
handleEscape: handleEscape,
|
|
97
101
|
intl: props.intl
|
|
98
102
|
}, jsx("div", {
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
99
104
|
css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
|
|
100
105
|
"data-testid": "ak-editor-main-toolbar"
|
|
101
106
|
}, jsx("div", {
|
|
107
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
102
108
|
css: mainToolbarFirstChildStyle(twoLineEditorToolbar),
|
|
103
109
|
role: "toolbar",
|
|
104
110
|
"aria-label": props.intl.formatMessage(messages.toolbarLabel)
|
|
105
111
|
}, shouldSplitToolbar ? customToolbar : nonCustomToolbar), jsx("div", {
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
106
113
|
css: mainToolbarSecondChildStyle(twoLineEditorToolbar),
|
|
107
114
|
"data-testid": 'avatar-group-outside-plugin',
|
|
108
115
|
role: "region",
|
|
@@ -6,33 +6,45 @@ export var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
|
6
6
|
|
|
7
7
|
// box-shadow is overriden by the mainToolbar
|
|
8
8
|
var mainToolbarWithKeyline = css({
|
|
9
|
-
|
|
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
|
|
10
|
+
boxShadow: getBooleanFF('platform.confluence.frontend.narrow-full-page-editor-toolbar') ? "var(--ds-shadow-overflow, 0px 0px 8px #091E4228, 0px 0px 1px #091E421e)" : // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
11
|
+
"0 ".concat(akEditorToolbarKeylineHeight, "px 0 0 ", "var(--ds-background-accent-gray-subtlest, #F1F2F4)")
|
|
10
12
|
});
|
|
11
13
|
var mainToolbarTwoLineStyle = css(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
12
14
|
flexWrap: 'wrap',
|
|
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
|
height: "calc(".concat(FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(), " * 2)")
|
|
14
17
|
}));
|
|
15
18
|
var mainToolbar = css(_defineProperty({
|
|
16
19
|
position: 'relative',
|
|
17
20
|
alignItems: 'center',
|
|
18
21
|
boxShadow: 'none',
|
|
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
|
|
19
23
|
borderBottom: getBooleanFF('platform.confluence.frontend.narrow-full-page-editor-toolbar') ? "1px solid ".concat("var(--ds-border, #091E4224)") : undefined,
|
|
24
|
+
// 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
25
|
transition: "box-shadow 200ms ".concat(akEditorSwoopCubicBezier),
|
|
26
|
+
// 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
27
|
zIndex: akEditorFloatingDialogZIndex,
|
|
22
28
|
display: 'flex',
|
|
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
|
|
23
30
|
height: FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(),
|
|
24
31
|
flexShrink: 0,
|
|
25
32
|
backgroundColor: "var(--ds-surface, white)",
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
34
|
'& object': {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
27
36
|
height: '0 !important'
|
|
28
37
|
}
|
|
29
38
|
}, "@media (max-width: ".concat(akEditorMobileMaxWidth, "px)"), {
|
|
30
39
|
display: 'grid',
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
31
41
|
height: "calc(".concat(FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(), " * 2)")
|
|
32
42
|
}));
|
|
33
43
|
export var mainToolbarStyle = function mainToolbarStyle(showKeyline, twoLineEditorToolbar) {
|
|
34
44
|
return [mainToolbar, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle];
|
|
35
45
|
};
|
|
46
|
+
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
36
48
|
export var mainToolbarIconBeforeStyle = css(_defineProperty({
|
|
37
49
|
margin: "var(--ds-space-200, 16px)",
|
|
38
50
|
height: "var(--ds-space-400, 32px)",
|
|
@@ -50,6 +62,7 @@ var mainToolbarFirstChild = css(_defineProperty({
|
|
|
50
62
|
}));
|
|
51
63
|
var mainToolbarFirstChildTowLine = css(_defineProperty({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
52
64
|
flex: '1 1 100%',
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
66
|
height: FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(),
|
|
54
67
|
justifyContent: 'flex-end',
|
|
55
68
|
minWidth: 'fit-content'
|
|
@@ -65,17 +78,22 @@ var mainToolbarSecondChildTwoLine = css(_defineProperty({}, "@media (max-width:
|
|
|
65
78
|
flexGrow: 1,
|
|
66
79
|
flex: '1 1 100%',
|
|
67
80
|
margin: 'auto',
|
|
81
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
68
82
|
height: FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(),
|
|
69
83
|
minWidth: 0
|
|
70
84
|
}));
|
|
71
85
|
export var mainToolbarSecondChildStyle = function mainToolbarSecondChildStyle(twoLineEditorToolbar) {
|
|
72
86
|
return [mainToolbarSecondChild, twoLineEditorToolbar && mainToolbarSecondChildTwoLine];
|
|
73
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
|
|
74
90
|
export var nonCustomToolbarWrapperStyle = css({
|
|
75
91
|
alignItems: 'center',
|
|
76
92
|
display: 'flex',
|
|
77
93
|
flexGrow: 1
|
|
78
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
|
|
79
97
|
export var customToolbarWrapperStyle = css({
|
|
80
98
|
alignItems: 'center',
|
|
81
99
|
display: 'flex'
|
|
@@ -8,10 +8,14 @@ import { akEditorContextPanelWidth, akEditorFullWidthLayoutWidth, akEditorGutter
|
|
|
8
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
import { createEditorContentStyle } from '../../ContentStyles';
|
|
10
10
|
import { scrollbarStyles } from '../../styles';
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
11
13
|
var SWOOP_ANIMATION = "0.5s ".concat(akEditorSwoopCubicBezier);
|
|
12
14
|
var getTotalPadding = function getTotalPadding() {
|
|
13
15
|
return akEditorGutterPaddingDynamic() * 2;
|
|
14
16
|
};
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
15
19
|
export var fullPageEditorWrapper = css({
|
|
16
20
|
minWidth: '340px',
|
|
17
21
|
height: '100%',
|
|
@@ -27,34 +31,50 @@ var scrollStyles = css({
|
|
|
27
31
|
display: 'flex',
|
|
28
32
|
flexDirection: 'column',
|
|
29
33
|
scrollBehavior: 'smooth'
|
|
30
|
-
},
|
|
34
|
+
},
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
|
+
scrollbarStyles);
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
31
39
|
export var ScrollContainer = createEditorContentStyle(scrollStyles);
|
|
32
40
|
ScrollContainer.displayName = 'ScrollContainer';
|
|
33
41
|
|
|
34
42
|
// transition used to match scrollbar with config panel opening animation
|
|
35
43
|
// only use animation when opening as there is a bug with floating toolbars.
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
36
45
|
export var positionedOverEditorStyle = css({
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
46
|
+
// 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
|
|
38
47
|
paddingRight: "".concat(akEditorContextPanelWidth, "px"),
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
49
|
transition: "padding 500ms ".concat(akEditorSwoopCubicBezier),
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
40
51
|
'.fabric-editor-popup-scroll-parent': {
|
|
41
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
52
|
+
// 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
|
|
42
53
|
paddingLeft: "".concat(akEditorContextPanelWidth, "px"),
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
55
|
transition: "padding 500ms ".concat(akEditorSwoopCubicBezier)
|
|
44
56
|
}
|
|
45
57
|
});
|
|
58
|
+
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
46
60
|
export var contentArea = css({
|
|
47
61
|
display: 'flex',
|
|
48
62
|
flexDirection: 'row',
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
64
|
height: "calc(100% - ".concat(FULL_PAGE_EDITOR_TOOLBAR_HEIGHT(), ")"),
|
|
50
65
|
boxSizing: 'border-box',
|
|
51
66
|
margin: 0,
|
|
52
67
|
padding: 0,
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
69
|
transition: "padding 0ms ".concat(akEditorSwoopCubicBezier)
|
|
54
70
|
});
|
|
71
|
+
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
55
73
|
export var contentAreaHeightNoToolbar = css({
|
|
56
74
|
height: '100%'
|
|
57
75
|
});
|
|
76
|
+
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
58
78
|
export var sidebarArea = css({
|
|
59
79
|
height: '100%',
|
|
60
80
|
boxSizing: 'border-box',
|
|
@@ -63,11 +83,15 @@ export var sidebarArea = css({
|
|
|
63
83
|
|
|
64
84
|
// initially hide until we have a containerWidth and can properly size them,
|
|
65
85
|
// otherwise they can cause the editor width to extend which is non-recoverable
|
|
86
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
66
87
|
export var editorContentAreaHideContainer = css({
|
|
88
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
67
89
|
'.fabric-editor--full-width-mode': {
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
68
91
|
'.pm-table-container, .code-block, .extension-container': {
|
|
69
92
|
display: 'none'
|
|
70
93
|
},
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
71
95
|
'.multiBodiedExtension--container': {
|
|
72
96
|
display: 'none'
|
|
73
97
|
}
|
|
@@ -77,20 +101,29 @@ export var editorContentAreaHideContainer = css({
|
|
|
77
101
|
/* Prevent horizontal scroll on page in full width mode */
|
|
78
102
|
var editorContentAreaContainerStyle = function editorContentAreaContainerStyle(containerWidth) {
|
|
79
103
|
return css({
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
80
105
|
'.fabric-editor--full-width-mode': {
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
81
107
|
'.code-block, .extension-container': {
|
|
108
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
82
109
|
maxWidth: "".concat(containerWidth - getTotalPadding() - tableMarginFullWidthMode * 2, "px")
|
|
83
110
|
},
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
84
112
|
'.extension-container.inline': {
|
|
85
113
|
maxWidth: '100%'
|
|
86
114
|
},
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
87
116
|
'td .extension-container.inline': {
|
|
88
117
|
maxWidth: 'inherit'
|
|
89
118
|
},
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
90
120
|
'.multiBodiedExtension--container': {
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
91
122
|
maxWidth: "".concat(containerWidth - getTotalPadding() - tableMarginFullWidthMode * 2, "px")
|
|
92
123
|
},
|
|
124
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
93
125
|
'[data-layout-section]': {
|
|
126
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
94
127
|
maxWidth: "".concat(containerWidth - getTotalPadding() + akLayoutGutterOffset * 2, "px")
|
|
95
128
|
}
|
|
96
129
|
}
|
|
@@ -105,6 +138,7 @@ export var editorContentAreaStyle = function editorContentAreaStyle(_ref) {
|
|
|
105
138
|
var editorContentAreaWithLayoutWith = function editorContentAreaWithLayoutWith(layoutMaxWidth) {
|
|
106
139
|
return css({
|
|
107
140
|
// this restricts max width
|
|
141
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
108
142
|
maxWidth: "".concat(layoutMaxWidth + getTotalPadding(), "px")
|
|
109
143
|
});
|
|
110
144
|
};
|
|
@@ -117,11 +151,14 @@ var editorContentArea = css({
|
|
|
117
151
|
margin: 'auto',
|
|
118
152
|
flexDirection: 'column',
|
|
119
153
|
flexGrow: 1,
|
|
154
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
120
155
|
maxWidth: "".concat(akEditorFullWidthLayoutWidth + getTotalPadding(), "px"),
|
|
121
156
|
transition: "max-width ".concat(SWOOP_ANIMATION),
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
122
158
|
'& .ProseMirror': (_ProseMirror = {
|
|
123
159
|
flexGrow: 1,
|
|
124
160
|
boxSizing: 'border-box',
|
|
161
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
125
162
|
'& > *': {
|
|
126
163
|
clear: 'both'
|
|
127
164
|
}
|
|
@@ -130,20 +167,30 @@ var editorContentArea = css({
|
|
|
130
167
|
}), _defineProperty(_ProseMirror, '> p:last-child', {
|
|
131
168
|
marginBottom: "var(--ds-space-300, 24px)"
|
|
132
169
|
}), _ProseMirror)
|
|
133
|
-
},
|
|
170
|
+
},
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
172
|
+
tableFullPageEditorStyles, {
|
|
173
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
134
174
|
'.fabric-editor--full-width-mode': {
|
|
175
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
135
176
|
'.fabric-editor-breakout-mark, .extension-container.block, .pm-table-container': {
|
|
177
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
136
178
|
width: '100% !important'
|
|
137
179
|
},
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
138
181
|
'.fabric-editor-breakout-mark': {
|
|
139
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
182
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
140
183
|
marginLeft: 'unset !important',
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
141
185
|
transform: 'none !important'
|
|
142
186
|
}
|
|
143
187
|
}
|
|
144
188
|
});
|
|
189
|
+
|
|
190
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
145
191
|
export var editorContentGutterStyle = css({
|
|
146
192
|
boxSizing: 'border-box',
|
|
193
|
+
// 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
194
|
padding: getBooleanFF('platform.editor.core.increase-full-page-guttering') ? // there is no space token for 52px
|
|
148
195
|
"0 52px" : "0 ".concat("var(--ds-space-400, 32px)")
|
|
149
196
|
});
|