@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.27.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#111381](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111381)
|
|
8
|
+
[`5ec7ab3d39035`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ec7ab3d39035) -
|
|
9
|
+
Replace the LD flag controlling new column resizing experience with statsig experiment
|
|
10
|
+
|
|
11
|
+
## 193.27.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#110884](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110884)
|
|
16
|
+
[`674f78166705c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/674f78166705c) -
|
|
17
|
+
[ux] [ED-23516] Change border color for highlight and text-color palettes to use tokens.
|
|
18
|
+
Changedefault palette color when undefined
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#110390](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110390)
|
|
23
|
+
[`bead123202369`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bead123202369) -
|
|
24
|
+
[ux] [ED-23642] Reordering the typeahead so that date, status, code block & info panel are above
|
|
25
|
+
the fold (in the top 5 results)
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 193.26.0
|
|
4
29
|
|
|
5
30
|
### Minor Changes
|
package/compass.yml
CHANGED
|
@@ -13,24 +13,30 @@ var _css;
|
|
|
13
13
|
// For reasoning behind styles, see comments in:
|
|
14
14
|
// ./getInlineNodeViewProducer -> portalChildren()
|
|
15
15
|
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
16
17
|
var InlineNodeViewSharedStyles = exports.InlineNodeViewSharedStyles = (0, _react.css)((_css = {}, (0, _defineProperty2.default)(_css, ".".concat(_reactNodeView.inlineNodeViewClassname), {
|
|
17
18
|
display: 'inline',
|
|
18
19
|
userSelect: 'all',
|
|
19
20
|
whiteSpace: 'nowrap',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
20
22
|
'& > *:not(.zeroWidthSpaceContainer)': {
|
|
21
23
|
whiteSpace: 'pre-wrap'
|
|
22
24
|
},
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
26
|
'& > .assistive': {
|
|
24
27
|
userSelect: 'none'
|
|
25
28
|
}
|
|
26
29
|
}), (0, _defineProperty2.default)(_css, '&.ua-safari', (0, _defineProperty2.default)({}, ".".concat(_reactNodeView.inlineNodeViewClassname), {
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
27
31
|
'::selection, *::selection': {
|
|
28
32
|
background: 'transparent'
|
|
29
33
|
}
|
|
30
34
|
})), (0, _defineProperty2.default)(_css, "&.ua-chrome .".concat(_reactNodeView.inlineNodeViewClassname, " > span"), {
|
|
31
35
|
userSelect: 'none'
|
|
32
36
|
}), (0, _defineProperty2.default)(_css, ".".concat(_reactNodeView.inlineNodeViewClassname, "AddZeroWidthSpace"), {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
33
38
|
'::after': {
|
|
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
|
|
34
40
|
content: "'".concat(_utils.ZERO_WIDTH_SPACE, "'")
|
|
35
41
|
}
|
|
36
42
|
}), _css));
|
|
@@ -85,7 +85,10 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
85
85
|
hyperlinkOptions: _objectSpread({
|
|
86
86
|
lpLinkPicker: (_featureFlags$lpLinkP = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP !== void 0 ? _featureFlags$lpLinkP : false
|
|
87
87
|
}, props.hyperlinkOptions),
|
|
88
|
-
__livePage: props.__livePage
|
|
88
|
+
__livePage: props.__livePage,
|
|
89
|
+
codeBlock: _objectSpread(_objectSpread({}, props.codeBlock), {}, {
|
|
90
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
91
|
+
})
|
|
89
92
|
}));
|
|
90
93
|
var statusMenuDisabled = !props.allowStatus ? true : (0, _typeof2.default)(props.allowStatus) === 'object' ? Boolean(props.allowStatus.menuDisabled) : false;
|
|
91
94
|
var hasBeforePrimaryToolbar = function hasBeforePrimaryToolbar(components) {
|
|
@@ -101,7 +104,8 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
101
104
|
useLongPressSelection: false,
|
|
102
105
|
appearance: appearance,
|
|
103
106
|
allowInteractiveExpand: typeof props.allowExpand === 'boolean' ? props.allowExpand : Boolean(props.allowExpand && props.allowExpand.allowInteractiveExpand !== false),
|
|
104
|
-
__livePage: props.__livePage
|
|
107
|
+
__livePage: props.__livePage,
|
|
108
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
105
109
|
}], Boolean(props.allowExpand)).maybeAdd(_guideline.guidelinePlugin, Boolean(!isMobile && !isComment && !isChromeless && (props.media || props.allowTables))).maybeAdd([_grid.gridPlugin, {
|
|
106
110
|
shouldCalcBreakoutGridLines: isFullPage
|
|
107
111
|
}], Boolean(props.media)).maybeAdd([_annotation.annotationPlugin, props.annotationProviders], Boolean(props.annotationProviders)).maybeAdd([_media.mediaPlugin, _objectSpread(_objectSpread({}, props.media), {}, {
|
|
@@ -125,21 +129,26 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
125
129
|
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,
|
|
126
130
|
allowZeroWidthSpaceAfter: !isMobile,
|
|
127
131
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent,
|
|
128
|
-
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider
|
|
129
|
-
|
|
132
|
+
profilecardProvider: (_props$mention3 = props.mention) === null || _props$mention3 === void 0 ? void 0 : _props$mention3.profilecardProvider,
|
|
133
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
134
|
+
}], Boolean(props.mentionProvider)).maybeAdd([_emoji.emojiPlugin, {
|
|
135
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
136
|
+
}], Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
|
|
130
137
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
131
|
-
tableResizingEnabled:
|
|
138
|
+
tableResizingEnabled: isFullPage,
|
|
132
139
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
|
|
133
140
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
134
141
|
allowContextualMenu: !isMobile,
|
|
135
142
|
fullWidthEnabled: appearance === 'full-width',
|
|
136
143
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
137
144
|
getEditorFeatureFlags: getEditorFeatureFlags,
|
|
138
|
-
isTableAlignmentEnabled: (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.allow-table-alignment') && isFullPage
|
|
145
|
+
isTableAlignmentEnabled: (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.allow-table-alignment') && isFullPage,
|
|
146
|
+
isNewColumnResizingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableNewColumnResizing) && isFullPage
|
|
139
147
|
}], Boolean(props.allowTables)).maybeAdd([_tasksAndDecisions.tasksAndDecisionsPlugin, {
|
|
140
148
|
allowNestedTasks: props.allowNestedTasks,
|
|
141
149
|
consumeTabs: isFullPage,
|
|
142
|
-
useLongPressSelection: false
|
|
150
|
+
useLongPressSelection: false,
|
|
151
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
143
152
|
}], Boolean(props.allowTasksAndDecisions || props.taskDecisionProvider)).maybeAdd([_feedbackDialog.feedbackDialogPlugin, _objectSpread({
|
|
144
153
|
coreVersion: _versionWrapper.version
|
|
145
154
|
}, props.feedbackInfo)], Boolean(props.feedbackInfo)).maybeAdd([_helpDialog.helpDialogPlugin, !!props.legacyImageUploadProvider], Boolean(props.allowHelpDialog)).maybeAdd([_saveOnEnter.saveOnEnterPlugin, props.onSave], Boolean(props.saveOnEnter && props.onSave)).maybeAdd(_imageUpload.imageUploadPlugin, Boolean(props.legacyImageUploadProvider)).maybeAdd(
|
|
@@ -158,7 +167,8 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
158
167
|
})], Boolean(props.collabEdit || props.collabEditProvider)).maybeAdd([_maxContentSize.maxContentSizePlugin, props.maxContentSize], Boolean(props.maxContentSize)).maybeAdd([_panel.panelPlugin, {
|
|
159
168
|
useLongPressSelection: false,
|
|
160
169
|
allowCustomPanel: (0, _typeof2.default)(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanel : false,
|
|
161
|
-
allowCustomPanelEdit: (0, _typeof2.default)(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanelEdit : false
|
|
170
|
+
allowCustomPanelEdit: (0, _typeof2.default)(props.allowPanel) === 'object' ? props.allowPanel.allowCustomPanelEdit : false,
|
|
171
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
162
172
|
}], Boolean(props.allowPanel)).maybeAdd(_contextPanel.contextPanelPlugin, Boolean(isFullPage)).maybeAdd([_extension.extensionPlugin, {
|
|
163
173
|
breakoutEnabled: appearance === 'full-page' && ((0, _typeof2.default)(props.allowExtension) === 'object' ? props.allowExtension.allowBreakout : true) !== false,
|
|
164
174
|
extensionHandlers: props.extensionHandlers,
|
|
@@ -171,7 +181,8 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
171
181
|
// long term this and media should be consolidated into adding both only once
|
|
172
182
|
// @ts-expect-error
|
|
173
183
|
[_annotation.annotationPlugin, undefined], Boolean(!props.annotationProviders && props.allowConfluenceInlineComment)).maybeAdd([_date.datePlugin, {
|
|
174
|
-
weekStartDay: (0, _typeof2.default)(props.allowDate) === 'object' ? props.allowDate.weekStartDay : undefined
|
|
184
|
+
weekStartDay: (0, _typeof2.default)(props.allowDate) === 'object' ? props.allowDate.weekStartDay : undefined,
|
|
185
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
175
186
|
}], Boolean(props.allowDate)).maybeAdd([_placeholderText.placeholderTextPlugin,
|
|
176
187
|
// @ts-expect-error 2322: Type 'false | PlaceholderTextOptions | undefined'
|
|
177
188
|
props.allowTemplatePlaceholders !== true ? props.allowTemplatePlaceholders : {}], Boolean(props.allowTemplatePlaceholders)).maybeAdd([_layout.layoutPlugin, _objectSpread(_objectSpread({}, (0, _typeof2.default)(props.allowLayouts) === 'object' ? props.allowLayouts : {}), {}, {
|
|
@@ -185,7 +196,8 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
185
196
|
editorAppearance: appearance
|
|
186
197
|
})], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(_customAutoformat.customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([_status.statusPlugin, {
|
|
187
198
|
menuDisabled: statusMenuDisabled,
|
|
188
|
-
allowZeroWidthSpaceAfter: !isMobile
|
|
199
|
+
allowZeroWidthSpaceAfter: !isMobile,
|
|
200
|
+
getEditorFeatureFlags: getEditorFeatureFlags
|
|
189
201
|
}], Boolean(props.allowStatus)).maybeAdd(_indentation.indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(_scrollIntoView.scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([_toolbarListsIndentation.toolbarListsIndentationPlugin, {
|
|
190
202
|
showIndentationButtons: !!props.showIndentationButtons,
|
|
191
203
|
allowHeadingAndParagraphIndentation: !!props.allowIndentation
|
|
@@ -27,7 +27,9 @@ var clickWrapper = function clickWrapper(_ref) {
|
|
|
27
27
|
minHeight = _ref.minHeight;
|
|
28
28
|
return (0, _react2.css)({
|
|
29
29
|
height: '100%'
|
|
30
|
-
},
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
32
|
+
isExpanded && minHeight ? "min-height: ".concat(minHeight, "px") : '');
|
|
31
33
|
};
|
|
32
34
|
/**
|
|
33
35
|
* Click Area is responsible for improving UX by ensuring the user
|
|
@@ -81,6 +83,7 @@ var ClickAreaMobile = exports.default = /*#__PURE__*/function (_React$Component)
|
|
|
81
83
|
key: "render",
|
|
82
84
|
value: function render() {
|
|
83
85
|
return (0, _react2.jsx)("div", {
|
|
86
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
84
87
|
css: clickWrapper({
|
|
85
88
|
isExpanded: this.props.isExpanded,
|
|
86
89
|
minHeight: this.props.minHeight
|
|
@@ -50,6 +50,8 @@ var DropdownWrapper = exports.default = /*#__PURE__*/function (_React$Component)
|
|
|
50
50
|
onClick: _this2.handleClick
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
+
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
53
55
|
return (0, _react2.jsx)("div", {
|
|
54
56
|
css: _styles.dropdown
|
|
55
57
|
}, children);
|
|
@@ -7,10 +7,12 @@ exports.dropdown = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
var _constants = require("@atlaskit/theme/constants");
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
10
11
|
var dropdown = exports.dropdown = (0, _react.css)({
|
|
11
12
|
display: 'flex',
|
|
12
13
|
flexDirection: 'column',
|
|
13
14
|
background: "var(--ds-surface-overlay, white)",
|
|
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
|
|
14
16
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
15
17
|
boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(_colors.N60A, ", 0 0 1px ").concat(_colors.N60A), ")"),
|
|
16
18
|
boxSizing: 'border-box',
|
|
@@ -10,6 +10,7 @@ var _styles = require("./styles");
|
|
|
10
10
|
|
|
11
11
|
var DropdownItemWrapper = function DropdownItemWrapper(props) {
|
|
12
12
|
return (0, _react.jsx)("div", {
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
13
14
|
css: _styles.dropdownItem,
|
|
14
15
|
onClick: function onClick() {
|
|
15
16
|
return props.onClick && props.onClick({
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.dropdownItem = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
9
10
|
var dropdownItem = exports.dropdownItem = (0, _react.css)({
|
|
10
11
|
display: 'flex',
|
|
11
12
|
alignItems: 'center',
|
|
@@ -13,6 +14,7 @@ var dropdownItem = exports.dropdownItem = (0, _react.css)({
|
|
|
13
14
|
textDecoration: 'none',
|
|
14
15
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-400, 32px)", " ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-150, 12px)"),
|
|
15
16
|
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
16
18
|
'> span': {
|
|
17
19
|
display: 'flex',
|
|
18
20
|
marginRight: "var(--ds-space-100, 8px)"
|
|
@@ -30,15 +30,19 @@ var chromelessEditorStyles = (0, _react2.css)({
|
|
|
30
30
|
height: 'auto',
|
|
31
31
|
overflowX: 'hidden',
|
|
32
32
|
overflowY: 'auto'
|
|
33
|
-
},
|
|
33
|
+
},
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
|
+
_styles.scrollbarStyles, {
|
|
34
36
|
maxWidth: 'inherit',
|
|
35
37
|
boxSizing: 'border-box',
|
|
36
38
|
wordWrap: 'break-word',
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
40
|
'div > .ProseMirror': {
|
|
38
41
|
outline: 'none',
|
|
39
42
|
whiteSpace: 'pre-wrap',
|
|
40
43
|
padding: 0,
|
|
41
44
|
margin: 0,
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
42
46
|
'& > :last-child': {
|
|
43
47
|
paddingBottom: "var(--ds-space-100, 0.5em)"
|
|
44
48
|
}
|
|
@@ -82,9 +86,15 @@ var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
82
86
|
return (0, _react2.jsx)(_WithFlash.default, {
|
|
83
87
|
animate: maxContentSizeReached
|
|
84
88
|
}, (0, _react2.jsx)("div", {
|
|
85
|
-
css: [chromelessEditorStyles, maxHeight &&
|
|
89
|
+
css: [chromelessEditorStyles, maxHeight &&
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
91
|
+
(0, _react2.css)({
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
86
93
|
maxHeight: "".concat(maxHeight, "px")
|
|
87
|
-
}),
|
|
94
|
+
}),
|
|
95
|
+
// 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
|
+
(0, _react2.css)({
|
|
97
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
88
98
|
minHeight: "".concat(minHeight, "px")
|
|
89
99
|
})],
|
|
90
100
|
"data-testid": "chromeless-editor",
|
|
@@ -45,6 +45,7 @@ var CommentEditorMargin = 14;
|
|
|
45
45
|
var commentEditorStyles = (0, _react2.css)({
|
|
46
46
|
display: 'flex',
|
|
47
47
|
flexDirection: 'column',
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
48
49
|
'.less-margin .ProseMirror': {
|
|
49
50
|
margin: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
|
|
50
51
|
},
|
|
@@ -53,24 +54,31 @@ var commentEditorStyles = (0, _react2.css)({
|
|
|
53
54
|
backgroundColor: "var(--ds-background-input, white)",
|
|
54
55
|
border: "1px solid ".concat("var(--ds-border-input, ".concat(_colors.N100, ")")),
|
|
55
56
|
boxSizing: 'border-box',
|
|
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
|
|
56
58
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
57
59
|
maxWidth: 'inherit',
|
|
58
60
|
wordWrap: 'break-word'
|
|
59
61
|
});
|
|
60
62
|
var ContentArea = (0, _ContentStyles.createEditorContentStyle)((0, _react2.css)({
|
|
61
63
|
flexGrow: 1,
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
62
65
|
overflowX: (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table-sticky-scrollbar') ? 'clip' : 'hidden',
|
|
63
66
|
lineHeight: '24px',
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
64
68
|
'.ProseMirror': {
|
|
65
69
|
margin: "var(--ds-space-150, 12px)"
|
|
66
70
|
},
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
67
72
|
'.gridParent': {
|
|
68
73
|
marginLeft: "var(--ds-space-025, 2px)",
|
|
69
74
|
marginRight: "var(--ds-space-025, 2px)",
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
70
76
|
width: "calc(100% + ".concat(CommentEditorMargin - _styles.GRID_GUTTER, "px)")
|
|
71
77
|
},
|
|
72
78
|
padding: "var(--ds-space-250, 20px)"
|
|
73
|
-
},
|
|
79
|
+
},
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
81
|
+
_commonStyles.tableCommentEditorStyles));
|
|
74
82
|
ContentArea.displayName = 'ContentArea';
|
|
75
83
|
var secondaryToolbarStyles = (0, _react2.css)({
|
|
76
84
|
boxSizing: 'border-box',
|
|
@@ -151,7 +159,10 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
151
159
|
return (0, _react2.jsx)(_WithFlash.default, {
|
|
152
160
|
animate: maxContentSizeReached
|
|
153
161
|
}, (0, _react2.jsx)("div", {
|
|
154
|
-
css: [commentEditorStyles,
|
|
162
|
+
css: [commentEditorStyles,
|
|
163
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
164
|
+
(0, _react2.css)({
|
|
165
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
155
166
|
minHeight: "".concat(minHeight, "px")
|
|
156
167
|
})]
|
|
157
168
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -194,7 +205,10 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
194
205
|
ref: function ref(_ref3) {
|
|
195
206
|
return _this.containerElement = _ref3;
|
|
196
207
|
},
|
|
197
|
-
css: maxHeight ?
|
|
208
|
+
css: maxHeight ?
|
|
209
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
210
|
+
(0, _react2.css)({
|
|
211
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
198
212
|
maxHeight: "".concat(maxHeight, "px")
|
|
199
213
|
}) : null
|
|
200
214
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -346,7 +360,10 @@ var EditorNext = function EditorNext(props) {
|
|
|
346
360
|
return (0, _react2.jsx)(_WithFlash.default, {
|
|
347
361
|
animate: maxContentSizeReached
|
|
348
362
|
}, (0, _react2.jsx)("div", {
|
|
349
|
-
css: [commentEditorStyles,
|
|
363
|
+
css: [commentEditorStyles,
|
|
364
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
365
|
+
(0, _react2.css)({
|
|
366
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
350
367
|
minHeight: "".concat(minHeight, "px")
|
|
351
368
|
})]
|
|
352
369
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -387,7 +404,10 @@ var EditorNext = function EditorNext(props) {
|
|
|
387
404
|
var width = _ref5.width;
|
|
388
405
|
return (0, _react2.jsx)(ContentArea, {
|
|
389
406
|
ref: containerElement,
|
|
390
|
-
css: maxHeight ?
|
|
407
|
+
css: maxHeight ?
|
|
408
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
409
|
+
(0, _react2.css)({
|
|
410
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
391
411
|
maxHeight: "".concat(maxHeight, "px")
|
|
392
412
|
}) : null
|
|
393
413
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -25,7 +25,7 @@ var mainToolbarWrapperStyle = function mainToolbarWrapperStyle() {
|
|
|
25
25
|
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\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 "));
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression --
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
29
29
|
var stickyToolbarWrapperStyle = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\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)", _editorSharedStyles.akEditorMenuZIndex, _editorSharedStyles.akEditorToolbarKeylineHeight, "var(--ds-background-accent-gray-subtlest, #F1F2F4)");
|
|
30
30
|
var StickyToolbar = function StickyToolbar(props) {
|
|
31
31
|
var _useState = (0, _react.useState)(0),
|
|
@@ -47,6 +47,7 @@ var StickyToolbar = function StickyToolbar(props) {
|
|
|
47
47
|
return (
|
|
48
48
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
49
49
|
(0, _react2.jsx)("div", {
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
50
51
|
css: [mainToolbarWrapperStyle(props.twoLineEditorToolbar), stickyToolbarWrapperStyle]
|
|
51
52
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
52
53
|
,
|
|
@@ -64,6 +65,7 @@ var FixedToolbar = function FixedToolbar(props) {
|
|
|
64
65
|
return (
|
|
65
66
|
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives
|
|
66
67
|
(0, _react2.jsx)("div", {
|
|
68
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
67
69
|
css: mainToolbarWrapperStyle(props.twoLineEditorToolbar),
|
|
68
70
|
"data-testid": "ak-editor-main-toolbar"
|
|
69
71
|
}, props.children)
|
|
@@ -66,6 +66,7 @@ var FullPageEditor = exports.FullPageEditor = function FullPageEditor(props) {
|
|
|
66
66
|
}
|
|
67
67
|
var isEditorToolbarHidden = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view';
|
|
68
68
|
return (0, _react2.jsx)(_ui.ContextPanelWidthProvider, null, (0, _react2.jsx)("div", {
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
69
70
|
css: _StyledComponents.fullPageEditorWrapper
|
|
70
71
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
71
72
|
,
|
|
@@ -41,7 +41,13 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
41
41
|
var _contentAreaRef$curre;
|
|
42
42
|
var positionedOverEditor = _ref2.positionedOverEditor;
|
|
43
43
|
return (0, _react2.jsx)("div", {
|
|
44
|
-
css: [
|
|
44
|
+
css: [
|
|
45
|
+
// 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
|
+
_StyledComponents.contentArea,
|
|
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
|
+
props.isEditorToolbarHidden && _StyledComponents.contentAreaHeightNoToolbar,
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
50
|
+
positionedOverEditor && _StyledComponents.positionedOverEditorStyle],
|
|
45
51
|
"data-testid": CONTENT_AREA_TEST_ID
|
|
46
52
|
}, (0, _react2.jsx)(_StyledComponents.ScrollContainer
|
|
47
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -53,6 +59,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
53
59
|
editorView: props.editorView,
|
|
54
60
|
editorDisabled: props.disabled
|
|
55
61
|
}, (0, _react2.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
|
|
56
63
|
css: (0, _StyledComponents.editorContentAreaStyle)({
|
|
57
64
|
fullWidthMode: fullWidthMode,
|
|
58
65
|
layoutMaxWidth: theme.layoutMaxWidth,
|
|
@@ -62,6 +69,7 @@ var Content = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
62
69
|
"aria-label": props.intl.formatMessage(_messages.fullPageMessages.editableContentLabel),
|
|
63
70
|
ref: contentAreaRef
|
|
64
71
|
}, (0, _react2.jsx)("div", {
|
|
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
|
|
65
73
|
css: _StyledComponents.editorContentGutterStyle
|
|
66
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
67
75
|
,
|
|
@@ -31,7 +31,9 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
31
31
|
|
|
32
32
|
// When primary toolbar components is undefined, do not show two line editor toolbar
|
|
33
33
|
var twoLineEditorToolbar = !!props.customPrimaryToolbarComponents && !!((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.twoLineEditorToolbar);
|
|
34
|
-
var nonCustomToolbar =
|
|
34
|
+
var nonCustomToolbar =
|
|
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
|
+
(0, _react2.jsx)("div", {
|
|
35
37
|
css: _MainToolbar.nonCustomToolbarWrapperStyle
|
|
36
38
|
}, props.beforeIcon && (0, _react2.jsx)("div", {
|
|
37
39
|
css: _MainToolbar.mainToolbarIconBeforeStyle
|
|
@@ -51,7 +53,9 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
51
53
|
hasMinWidth: props.hasMinWidth,
|
|
52
54
|
twoLineEditorToolbar: twoLineEditorToolbar
|
|
53
55
|
}));
|
|
54
|
-
var customToolbar =
|
|
56
|
+
var customToolbar =
|
|
57
|
+
// 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
|
+
(0, _react2.jsx)("div", {
|
|
55
59
|
css: _MainToolbar.customToolbarWrapperStyle
|
|
56
60
|
}, twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? (0, _react2.jsx)(_BeforeWrapper.BeforePrimaryToolbarWrapper, {
|
|
57
61
|
beforePrimaryToolbarComponents: (_props$customPrimaryT = props.customPrimaryToolbarComponents) === null || _props$customPrimaryT === void 0 ? void 0 : _props$customPrimaryT.before
|
|
@@ -106,13 +110,16 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
|
|
|
106
110
|
handleEscape: handleEscape,
|
|
107
111
|
intl: props.intl
|
|
108
112
|
}, (0, _react2.jsx)("div", {
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
109
114
|
css: (0, _MainToolbar.mainToolbarStyle)(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
|
|
110
115
|
"data-testid": "ak-editor-main-toolbar"
|
|
111
116
|
}, (0, _react2.jsx)("div", {
|
|
117
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
112
118
|
css: (0, _MainToolbar.mainToolbarFirstChildStyle)(twoLineEditorToolbar),
|
|
113
119
|
role: "toolbar",
|
|
114
120
|
"aria-label": props.intl.formatMessage(_messages.fullPageMessages.toolbarLabel)
|
|
115
121
|
}, shouldSplitToolbar ? customToolbar : nonCustomToolbar), (0, _react2.jsx)("div", {
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
116
123
|
css: (0, _MainToolbar.mainToolbarSecondChildStyle)(twoLineEditorToolbar),
|
|
117
124
|
"data-testid": 'avatar-group-outside-plugin',
|
|
118
125
|
role: "region",
|
|
@@ -13,33 +13,45 @@ var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = exports.MAXIMUM_TWO_LINE_TOOLBAR_BREAK
|
|
|
13
13
|
|
|
14
14
|
// box-shadow is overriden by the mainToolbar
|
|
15
15
|
var mainToolbarWithKeyline = (0, _react.css)({
|
|
16
|
-
|
|
16
|
+
// 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
|
+
boxShadow: (0, _platformFeatureFlags.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
|
|
18
|
+
"0 ".concat(_editorSharedStyles.akEditorToolbarKeylineHeight, "px 0 0 ", "var(--ds-background-accent-gray-subtlest, #F1F2F4)")
|
|
17
19
|
});
|
|
18
20
|
var mainToolbarTwoLineStyle = (0, _react.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
19
21
|
flexWrap: 'wrap',
|
|
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
|
|
20
23
|
height: "calc(".concat((0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)(), " * 2)")
|
|
21
24
|
}));
|
|
22
25
|
var mainToolbar = (0, _react.css)((0, _defineProperty2.default)({
|
|
23
26
|
position: 'relative',
|
|
24
27
|
alignItems: 'center',
|
|
25
28
|
boxShadow: 'none',
|
|
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
|
|
26
30
|
borderBottom: (0, _platformFeatureFlags.getBooleanFF)('platform.confluence.frontend.narrow-full-page-editor-toolbar') ? "1px solid ".concat("var(--ds-border, #091E4224)") : undefined,
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
32
|
transition: "box-shadow 200ms ".concat(_editorSharedStyles.akEditorSwoopCubicBezier),
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
34
|
zIndex: _editorSharedStyles.akEditorFloatingDialogZIndex,
|
|
29
35
|
display: 'flex',
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
37
|
height: (0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)(),
|
|
31
38
|
flexShrink: 0,
|
|
32
39
|
backgroundColor: "var(--ds-surface, white)",
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
41
|
'& object': {
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
34
43
|
height: '0 !important'
|
|
35
44
|
}
|
|
36
45
|
}, "@media (max-width: ".concat(_editorSharedStyles.akEditorMobileMaxWidth, "px)"), {
|
|
37
46
|
display: 'grid',
|
|
47
|
+
// 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
48
|
height: "calc(".concat((0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)(), " * 2)")
|
|
39
49
|
}));
|
|
40
50
|
var mainToolbarStyle = exports.mainToolbarStyle = function mainToolbarStyle(showKeyline, twoLineEditorToolbar) {
|
|
41
51
|
return [mainToolbar, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle];
|
|
42
52
|
};
|
|
53
|
+
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
43
55
|
var mainToolbarIconBeforeStyle = exports.mainToolbarIconBeforeStyle = (0, _react.css)((0, _defineProperty2.default)({
|
|
44
56
|
margin: "var(--ds-space-200, 16px)",
|
|
45
57
|
height: "var(--ds-space-400, 32px)",
|
|
@@ -57,6 +69,7 @@ var mainToolbarFirstChild = (0, _react.css)((0, _defineProperty2.default)({
|
|
|
57
69
|
}));
|
|
58
70
|
var mainToolbarFirstChildTowLine = (0, _react.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, "px)"), {
|
|
59
71
|
flex: '1 1 100%',
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
60
73
|
height: (0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)(),
|
|
61
74
|
justifyContent: 'flex-end',
|
|
62
75
|
minWidth: 'fit-content'
|
|
@@ -72,17 +85,22 @@ var mainToolbarSecondChildTwoLine = (0, _react.css)((0, _defineProperty2.default
|
|
|
72
85
|
flexGrow: 1,
|
|
73
86
|
flex: '1 1 100%',
|
|
74
87
|
margin: 'auto',
|
|
88
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
75
89
|
height: (0, _editorSharedStyles.FULL_PAGE_EDITOR_TOOLBAR_HEIGHT)(),
|
|
76
90
|
minWidth: 0
|
|
77
91
|
}));
|
|
78
92
|
var mainToolbarSecondChildStyle = exports.mainToolbarSecondChildStyle = function mainToolbarSecondChildStyle(twoLineEditorToolbar) {
|
|
79
93
|
return [mainToolbarSecondChild, twoLineEditorToolbar && mainToolbarSecondChildTwoLine];
|
|
80
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
|
|
81
97
|
var nonCustomToolbarWrapperStyle = exports.nonCustomToolbarWrapperStyle = (0, _react.css)({
|
|
82
98
|
alignItems: 'center',
|
|
83
99
|
display: 'flex',
|
|
84
100
|
flexGrow: 1
|
|
85
101
|
});
|
|
102
|
+
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
86
104
|
var customToolbarWrapperStyle = exports.customToolbarWrapperStyle = (0, _react.css)({
|
|
87
105
|
alignItems: 'center',
|
|
88
106
|
display: 'flex'
|