@atlaskit/editor-core 217.10.0 → 217.11.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 +21 -0
- package/dist/cjs/create-editor/ReactEditorView.js +6 -6
- package/dist/cjs/create-editor/create-schema.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +8 -2
- package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/styles/layout.js +98 -11
- package/dist/cjs/ui/EditorContentContainer/styles/list.js +12 -5
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +3 -0
- package/dist/cjs/ui/EditorContentContainer/styles/smartCardStyles.js +36 -14
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +2 -2
- package/dist/es2019/create-editor/create-schema.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +9 -3
- package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +2 -2
- package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +2 -2
- package/dist/es2019/ui/EditorContentContainer/styles/layout.js +119 -0
- package/dist/es2019/ui/EditorContentContainer/styles/list.js +12 -5
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +3 -0
- package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +42 -12
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +6 -6
- package/dist/esm/create-editor/create-schema.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +9 -3
- package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +2 -2
- package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +2 -2
- package/dist/esm/ui/EditorContentContainer/styles/layout.js +97 -10
- package/dist/esm/ui/EditorContentContainer/styles/list.js +12 -5
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +3 -0
- package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +36 -14
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-schema.d.ts +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +6 -0
- package/dist/types/presets/universal.d.ts +7 -4
- package/dist/types/presets/useUniversalPreset.d.ts +6 -0
- package/dist/types/ui/EditorContentContainer/styles/layout.d.ts +15 -0
- package/dist/types-ts4.5/create-editor/create-schema.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +6 -0
- package/dist/types-ts4.5/presets/universal.d.ts +7 -4
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +6 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/layout.d.ts +15 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 217.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`fb96753c1753e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fb96753c1753e) -
|
|
8
|
+
[ux] Introduce adjustable layout column drag handle and update logic behind
|
|
9
|
+
platform_editor_layout_column_resize_handle experiment
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 217.10.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`3e18e5bea1aa1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e18e5bea1aa1) -
|
|
20
|
+
Fixed cursor placement when pressing Enter at the start of a nested task item. Fixed extra spacing
|
|
21
|
+
on nested task lists when flexible list indentation is enabled.
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 217.10.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
|
@@ -885,12 +885,12 @@ function ReactEditorView(props) {
|
|
|
885
885
|
return viewRef.current;
|
|
886
886
|
},
|
|
887
887
|
popupsMountPoint: props.editorProps.popupsMountPoint
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
888
|
+
};
|
|
889
|
+
},
|
|
890
|
+
// viewRef is intentionally omitted from the deps array — it's a stable ref object; the getter reads
|
|
891
|
+
// .current lazily so there's no stale-closure risk.
|
|
892
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
893
|
+
[editorRef, props.editorProps.popupsMountPoint]);
|
|
894
894
|
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017
|
|
895
895
|
var reactEditorViewContext = (0, _expValEquals.expValEquals)('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedReactEditorViewContext : {
|
|
896
896
|
editorRef: editorRef,
|
|
@@ -19,7 +19,7 @@ var _createEditor = require("./create-editor");
|
|
|
19
19
|
* Adds generic metadata attributes to a DOMOutputSpec array based on the provided node or mark.
|
|
20
20
|
* This function ensures that the DOMOutputSpec is annotated with ProseMirror-specific metadata.
|
|
21
21
|
*
|
|
22
|
-
* @param {
|
|
22
|
+
* @param {object} params - Parameters object.
|
|
23
23
|
* @param {PMNode | PMMark} params.nodeOrMark - The ProseMirror node or mark to extract metadata from.
|
|
24
24
|
* @param {DOMOutputSpec} params.domSpec - The DOMOutputSpec to which attributes will be added.
|
|
25
25
|
* @returns {DOMOutputSpec} The modified DOMOutputSpec with additional metadata.
|
|
@@ -393,11 +393,17 @@ var EditorContentContainer = /*#__PURE__*/_react.default.forwardRef(function (pr
|
|
|
393
393
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
394
394
|
_layout.layoutSectionStylesAdvanced :
|
|
395
395
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
396
|
-
_layout.layoutSectionStylesNotAdvanced, (0, _experiments.editorExperiment)('advanced_layouts', true)
|
|
396
|
+
_layout.layoutSectionStylesNotAdvanced, (0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _experiments.editorExperiment)('platform_editor_layout_column_resize_handle', true) &&
|
|
397
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
398
|
+
_layout.layoutColumnDividerStyles, (0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _experiments.editorExperiment)('platform_editor_layout_column_resize_handle', true) && (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') &&
|
|
399
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
400
|
+
_layout.layoutColumnDividerStylesNestedDnD, (0, _experiments.editorExperiment)('advanced_layouts', true) ?
|
|
397
401
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
398
402
|
_layout.layoutColumnStylesAdvanced :
|
|
399
403
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
400
|
-
_layout.layoutColumnStylesNotAdvanced,
|
|
404
|
+
_layout.layoutColumnStylesNotAdvanced, (0, _experiments.editorExperiment)('advanced_layouts', true) && (0, _experiments.editorExperiment)('platform_editor_layout_column_resize_handle', true) &&
|
|
405
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
406
|
+
_layout.layoutColumnResizeStyles,
|
|
401
407
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
402
408
|
(0, _experiments.editorExperiment)('advanced_layouts', true) ?
|
|
403
409
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -94,8 +94,8 @@ var expandStylesBase = exports.expandStylesBase = (0, _react.css)({
|
|
|
94
94
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
95
95
|
display: 'flow-root',
|
|
96
96
|
/* The follow rules inside @supports block are added as a part of ED-8893
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
The fix is targeting mobile bridge on iOS 12 or below,
|
|
98
|
+
We should consider remove this fix when we no longer support iOS 12 */
|
|
99
99
|
'@supports not (display: flow-root)': {
|
|
100
100
|
width: '100%',
|
|
101
101
|
boxSizing: 'border-box'
|
|
@@ -431,6 +431,6 @@ var getExtensionStyles = exports.getExtensionStyles = function getExtensionStyle
|
|
|
431
431
|
};
|
|
432
432
|
|
|
433
433
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
434
|
-
var extensionDiffStyles = exports.extensionDiffStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".show-diff-changed-decoration-node > span
|
|
435
|
-
boxShadow: "0 0 0 1px var(--diff-decoration-marker-color)"
|
|
434
|
+
var extensionDiffStyles = exports.extensionDiffStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".show-diff-changed-decoration-node > span .extension-container", {
|
|
435
|
+
boxShadow: "0 0 0 var(--diff-decoration-marker-ring-width, 1px) var(--diff-decoration-marker-color)"
|
|
436
436
|
}));
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.layoutStylesForView = exports.layoutSelectedStylesNotAdvanced = exports.layoutSelectedStylesForViewNotAdvanced = exports.layoutSelectedStylesForViewAdvanced = exports.layoutSelectedStylesAdvancedFix = exports.layoutSelectedStylesAdvanced = exports.layoutSectionStylesNotAdvanced = exports.layoutSectionStylesAdvanced = exports.layoutResponsiveStylesForView = exports.layoutResponsiveBaseStyles = exports.layoutColumnStylesNotAdvanced = exports.layoutColumnStylesAdvanced = exports.layoutColumnResponsiveStyles = exports.layoutColumnMartinTopFixesOld = exports.layoutColumnMartinTopFixesNew = exports.layoutBaseStylesWithTableExcerptsFix = exports.layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync = exports.layoutBaseStylesFixesUnderNestedDnDFG = exports.layoutBaseStylesAdvanced = exports.layoutBaseStyles = void 0;
|
|
7
|
+
exports.layoutStylesForView = exports.layoutSelectedStylesNotAdvanced = exports.layoutSelectedStylesForViewNotAdvanced = exports.layoutSelectedStylesForViewAdvanced = exports.layoutSelectedStylesAdvancedFix = exports.layoutSelectedStylesAdvanced = exports.layoutSectionStylesNotAdvanced = exports.layoutSectionStylesAdvanced = exports.layoutResponsiveStylesForView = exports.layoutResponsiveBaseStyles = exports.layoutColumnStylesNotAdvanced = exports.layoutColumnStylesAdvanced = exports.layoutColumnResponsiveStyles = exports.layoutColumnResizeStyles = exports.layoutColumnMartinTopFixesOld = exports.layoutColumnMartinTopFixesNew = exports.layoutColumnDividerStylesNestedDnD = exports.layoutColumnDividerStyles = exports.layoutBaseStylesWithTableExcerptsFix = exports.layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync = exports.layoutBaseStylesFixesUnderNestedDnDFG = exports.layoutBaseStylesAdvanced = exports.layoutBaseStyles = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _selectionStyles = require("./selectionStyles");
|
|
@@ -12,6 +12,63 @@ var _selectionStyles = require("./selectionStyles");
|
|
|
12
12
|
|
|
13
13
|
var gridMediumMaxWidth = 1024;
|
|
14
14
|
var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
|
|
15
|
+
|
|
16
|
+
// Class names for the column resize divider widget — must stay in sync with main.ts in editor-plugin-layout
|
|
17
|
+
var layoutColumnDividerClassName = 'layout-column-divider';
|
|
18
|
+
var layoutColumnDividerRailClassName = 'layout-column-divider-rail';
|
|
19
|
+
var layoutColumnDividerThumbClassName = 'layout-column-divider-thumb';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Styles for the column resize divider widget DOM elements.
|
|
23
|
+
* Mirrors the pm-breakout-resize-handle-* pattern from resizerStyles.ts.
|
|
24
|
+
* Applied only when advanced_layouts experiment is on.
|
|
25
|
+
*/
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
27
|
+
var layoutColumnDividerStyles = exports.layoutColumnDividerStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(layoutColumnDividerClassName), (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
28
|
+
// Negative margin removes the applied 'gap' from the parent's flex box
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
30
|
+
marginInline: '-15px 0px',
|
|
31
|
+
flexShrink: 0,
|
|
32
|
+
boxSizing: 'content-box',
|
|
33
|
+
cursor: 'col-resize',
|
|
34
|
+
position: 'relative',
|
|
35
|
+
zIndex: 2,
|
|
36
|
+
alignSelf: 'stretch',
|
|
37
|
+
display: 'flex',
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
justifyContent: 'center'
|
|
40
|
+
}, "&:hover .".concat(layoutColumnDividerRailClassName), {
|
|
41
|
+
background: "var(--ds-background-selected, #E9F2FE)"
|
|
42
|
+
}), "&:hover .".concat(layoutColumnDividerThumbClassName), {
|
|
43
|
+
background: "var(--ds-border-focused, #4688EC)"
|
|
44
|
+
})), ".".concat(layoutColumnDividerRailClassName), {
|
|
45
|
+
width: 7,
|
|
46
|
+
height: '100%',
|
|
47
|
+
display: 'flex',
|
|
48
|
+
alignItems: 'center',
|
|
49
|
+
justifyContent: 'center',
|
|
50
|
+
borderRadius: "var(--ds-radius-small, 4px)",
|
|
51
|
+
transition: 'background-color 0.2s',
|
|
52
|
+
pointerEvents: 'none'
|
|
53
|
+
}), ".".concat(layoutColumnDividerThumbClassName), {
|
|
54
|
+
minWidth: 3,
|
|
55
|
+
height: 'clamp(27px, calc(100% - 32px), 96px)',
|
|
56
|
+
background: "var(--ds-border, #0B120E24)",
|
|
57
|
+
borderRadius: "var(--ds-radius-medium, 6px)",
|
|
58
|
+
pointerEvents: 'none',
|
|
59
|
+
position: 'sticky',
|
|
60
|
+
top: "var(--ds-space-150, 12px)",
|
|
61
|
+
bottom: "var(--ds-space-150, 12px)"
|
|
62
|
+
}));
|
|
63
|
+
/**
|
|
64
|
+
* Override divider marginInline when platform_editor_nested_dnd_styles_changes is on,
|
|
65
|
+
* since the layout section/column spacing changes.
|
|
66
|
+
*/
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
68
|
+
var layoutColumnDividerStylesNestedDnD = exports.layoutColumnDividerStylesNestedDnD = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(layoutColumnDividerClassName), {
|
|
69
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
70
|
+
marginInline: '0 -7px'
|
|
71
|
+
}));
|
|
15
72
|
var selectorForNotResizedLayoutInFulllWidthEditor = '.fabric-editor--full-width-mode .ProseMirror > .layoutSectionView-content-wrap';
|
|
16
73
|
var selectorForNotResizedLayoutInFixedWidthEditor = '.ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror > .layoutSectionView-content-wrap';
|
|
17
74
|
var selectorForResizedLayoutInFullOrFixedWidthEditor = '.ProseMirror .fabric-editor-breakout-mark .layoutSectionView-content-wrap';
|
|
@@ -56,6 +113,25 @@ var layoutColumnStylesAdvanced = exports.layoutColumnStylesAdvanced = (0, _react
|
|
|
56
113
|
}])
|
|
57
114
|
});
|
|
58
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Layout column resize styles for the platform_editor_layout_column_resize_handle experiment
|
|
118
|
+
*/
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
120
|
+
var layoutColumnResizeStyles = exports.layoutColumnResizeStyles = (0, _react.css)({
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
122
|
+
'.ProseMirror [data-layout-section]': {
|
|
123
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
124
|
+
'> [data-layout-column][style*="--column-width"]': {
|
|
125
|
+
// Support CSS custom property for smooth resizing during drag
|
|
126
|
+
// When --column-resize-width is set, use it; otherwise fall back to the original flex-basis
|
|
127
|
+
// Using attribute selector for higher specificity than inline styles
|
|
128
|
+
flexBasis: 'var(--column-resize-width, var(--column-width))',
|
|
129
|
+
// Also ensure flex-grow and flex-shrink are reset when using custom width
|
|
130
|
+
flex: 'var(--column-resize-flex, 1)'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
|
|
59
135
|
/**
|
|
60
136
|
* Layout columns styles when advanced layouts experiment is off
|
|
61
137
|
*/
|
|
@@ -107,11 +183,11 @@ var layoutColumnResponsiveStyles = exports.layoutColumnResponsiveStyles = (0, _r
|
|
|
107
183
|
* Layout section styles when advanced layouts experiment is on
|
|
108
184
|
*/
|
|
109
185
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-exported-styles
|
|
110
|
-
var layoutSectionStylesAdvanced = exports.layoutSectionStylesAdvanced = (0, _react.css)({
|
|
186
|
+
var layoutSectionStylesAdvanced = exports.layoutSectionStylesAdvanced = (0, _react.css)((0, _defineProperty2.default)({
|
|
111
187
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
112
188
|
'.ProseMirror .layout-section-container [data-layout-section]': {
|
|
113
189
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
114
|
-
'> .ProseMirror-widget': {
|
|
190
|
+
'> .ProseMirror-widget': (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
115
191
|
flex: 'none',
|
|
116
192
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
117
193
|
display: 'contents !important',
|
|
@@ -129,18 +205,27 @@ var layoutSectionStylesAdvanced = exports.layoutSectionStylesAdvanced = (0, _rea
|
|
|
129
205
|
'[data-drop-target-for-element]': {
|
|
130
206
|
position: 'absolute'
|
|
131
207
|
}
|
|
132
|
-
},
|
|
133
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
134
|
-
'& + [data-layout-column]': {
|
|
135
|
-
margin: 0
|
|
136
208
|
}
|
|
137
|
-
},
|
|
209
|
+
}, "&.".concat(layoutColumnDividerClassName), {
|
|
210
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
211
|
+
display: 'block !important',
|
|
212
|
+
flex: 'none',
|
|
213
|
+
opacity: 0,
|
|
214
|
+
transition: 'opacity 0.2s'
|
|
215
|
+
}), '& + [data-layout-column]', {
|
|
216
|
+
margin: 0
|
|
217
|
+
}),
|
|
138
218
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
139
219
|
'> [data-layout-column]': {
|
|
140
220
|
margin: 0
|
|
141
221
|
}
|
|
142
222
|
}
|
|
143
|
-
})
|
|
223
|
+
}, ".ProseMirror .layoutSectionView-content-wrap:hover .layout-section-container [data-layout-section]", (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "> .ProseMirror-widget.".concat(layoutColumnDividerClassName), {
|
|
224
|
+
opacity: 1
|
|
225
|
+
}), "> .ProseMirror-widget.".concat(layoutColumnDividerClassName, " ~ [data-layout-column] [data-layout-content]::before"), {
|
|
226
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
227
|
+
display: 'none !important'
|
|
228
|
+
})));
|
|
144
229
|
|
|
145
230
|
/**
|
|
146
231
|
* Layout section styles when advanced layouts experiment is off
|
|
@@ -148,7 +233,7 @@ var layoutSectionStylesAdvanced = exports.layoutSectionStylesAdvanced = (0, _rea
|
|
|
148
233
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
149
234
|
var layoutSectionStylesNotAdvanced = exports.layoutSectionStylesNotAdvanced = (0, _react.css)({
|
|
150
235
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
151
|
-
'.ProseMirror [data-layout-section]': (0, _defineProperty2.default)({
|
|
236
|
+
'.ProseMirror [data-layout-section]': (0, _defineProperty2.default)((0, _defineProperty2.default)({
|
|
152
237
|
position: 'relative',
|
|
153
238
|
display: 'flex',
|
|
154
239
|
flexDirection: 'row',
|
|
@@ -161,7 +246,9 @@ var layoutSectionStylesNotAdvanced = exports.layoutSectionStylesNotAdvanced = (0
|
|
|
161
246
|
'& > .unsupportedBlockView-content-wrap': {
|
|
162
247
|
minWidth: 'initial'
|
|
163
248
|
}
|
|
164
|
-
}, "
|
|
249
|
+
}, "& > .".concat(layoutColumnDividerClassName), {
|
|
250
|
+
flex: 'none'
|
|
251
|
+
}), "@media screen and (max-width: ".concat(gridMediumMaxWidth, "px)"), {
|
|
165
252
|
flexDirection: 'column'
|
|
166
253
|
})
|
|
167
254
|
});
|
|
@@ -227,12 +227,19 @@ var listItemHiddenMarkerStyles = exports.listItemHiddenMarkerStyles = (0, _react
|
|
|
227
227
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
228
228
|
marginTop: '0 !important'
|
|
229
229
|
},
|
|
230
|
-
//
|
|
231
|
-
//
|
|
232
|
-
//
|
|
233
|
-
|
|
230
|
+
// Remove top margin from nested taskLists not preceded by a sibling taskItem.
|
|
231
|
+
// The base rule (tasksAndDecisionsStyles) sets margin-top on all nested taskLists,
|
|
232
|
+
// but with flexible indentation a taskList can be the first child with no taskItem above.
|
|
233
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
234
|
+
'div[data-task-list-local-id] > div[data-task-list-local-id]': {
|
|
235
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
236
|
+
marginTop: '0 !important'
|
|
237
|
+
},
|
|
238
|
+
// Restore margin when a nested taskList follows a taskItem
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
240
|
+
'div[data-task-local-id] + div[data-task-list-local-id]': {
|
|
234
241
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
235
|
-
|
|
242
|
+
marginTop: "var(--ds-space-050, 4px)".concat(" !important")
|
|
236
243
|
}
|
|
237
244
|
}
|
|
238
245
|
});
|
|
@@ -322,6 +322,9 @@ var pragmaticResizerStyles = exports.pragmaticResizerStyles = (0, _react.css)({
|
|
|
322
322
|
'.pm-breakout-resize-handle-container--right': {
|
|
323
323
|
justifySelf: 'end'
|
|
324
324
|
},
|
|
325
|
+
// Rail and thumb styles intentionally mirror the layout column divider
|
|
326
|
+
// (see layoutColumnDividerRailClassName and layoutColumnDividerThumbClassName in layout.ts).
|
|
327
|
+
// If updating these styles, consider keeping both in sync.
|
|
325
328
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
326
329
|
'.pm-breakout-resize-handle-rail': {
|
|
327
330
|
position: 'relative',
|
|
@@ -34,12 +34,12 @@ var editorControlsSmartCardStyles = exports.editorControlsSmartCardStyles = (0,
|
|
|
34
34
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
35
|
var smartCardDiffStyles = exports.smartCardDiffStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), (0, _defineProperty2.default)({}, "&[data-testid=\"show-diff-changed-decoration-node\"] .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
36
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
37
|
-
boxShadow: "0 0 0 1px var(--diff-decoration-marker-color)",
|
|
37
|
+
boxShadow: "0 0 0 var(--diff-decoration-marker-ring-width, 1px) var(--diff-decoration-marker-color)",
|
|
38
38
|
borderColor: 'transparent'
|
|
39
39
|
})));
|
|
40
40
|
|
|
41
41
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
|
-
var showDiffDeletedNodeStyles = exports.showDiffDeletedNodeStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
42
|
+
var showDiffDeletedNodeStyles = exports.showDiffDeletedNodeStyles = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
43
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
44
44
|
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
|
|
45
45
|
borderColor: 'transparent'
|
|
@@ -47,13 +47,17 @@ var showDiffDeletedNodeStyles = exports.showDiffDeletedNodeStyles = (0, _react.c
|
|
|
47
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
48
48
|
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
49
49
|
borderColor: 'transparent'
|
|
50
|
+
}), "&.show-diff-deleted-node-traditional.show-diff-deleted-outline-new .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
52
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtlest, #FFECEB)"),
|
|
53
|
+
borderColor: 'transparent'
|
|
50
54
|
}), "&.show-diff-deleted-node-traditional.show-diff-deleted-active .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
51
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
52
|
-
boxShadow: "0 0 0
|
|
56
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
|
|
53
57
|
borderColor: 'transparent'
|
|
54
58
|
}), "&.show-diff-deleted-node.show-diff-deleted-active .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
55
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
56
|
-
boxShadow: "0 0 0
|
|
60
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
|
|
57
61
|
borderColor: 'transparent'
|
|
58
62
|
}), "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER), {
|
|
59
63
|
opacity: 0.6
|
|
@@ -72,18 +76,25 @@ var showDiffDeletedNodeStyles = exports.showDiffDeletedNodeStyles = (0, _react.c
|
|
|
72
76
|
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
73
77
|
borderRadius: "var(--ds-radius-small, 4px)"
|
|
74
78
|
}
|
|
79
|
+
}), '.show-diff-deleted-node-traditional.show-diff-deleted-outline-new .media-card-wrapper', {
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
81
|
+
'& > div': {
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
83
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtlest, #FFECEB)"),
|
|
84
|
+
borderRadius: "var(--ds-radius-small, 4px)"
|
|
85
|
+
}
|
|
75
86
|
}), '.show-diff-deleted-node-traditional.show-diff-deleted-active .media-card-wrapper', {
|
|
76
87
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
77
88
|
'& > div': {
|
|
78
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
79
|
-
boxShadow: "0 0 0
|
|
90
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
|
|
80
91
|
borderRadius: "var(--ds-radius-small, 4px)"
|
|
81
92
|
}
|
|
82
93
|
}), '.show-diff-deleted-node.show-diff-deleted-active .media-card-wrapper', {
|
|
83
94
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
84
95
|
'& > div': {
|
|
85
96
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
86
|
-
boxShadow: "0 0 0
|
|
97
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
|
|
87
98
|
borderRadius: "var(--ds-radius-small, 4px)",
|
|
88
99
|
opacity: 0.6
|
|
89
100
|
}
|
|
@@ -98,21 +109,25 @@ var showDiffDeletedNodeStyles = exports.showDiffDeletedNodeStyles = (0, _react.c
|
|
|
98
109
|
}));
|
|
99
110
|
|
|
100
111
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
101
|
-
var showDiffDeletedNodeStylesNew = exports.showDiffDeletedNodeStylesNew = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
112
|
+
var showDiffDeletedNodeStylesNew = exports.showDiffDeletedNodeStylesNew = (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
102
113
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
103
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-
|
|
114
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
104
115
|
borderColor: 'transparent'
|
|
105
116
|
}), "&.show-diff-deleted-node-traditional .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
106
117
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
107
118
|
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
108
119
|
borderColor: 'transparent'
|
|
120
|
+
}), "&.show-diff-deleted-node-traditional.show-diff-deleted-outline-new .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
122
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtlest, #FFECEB)"),
|
|
123
|
+
borderColor: 'transparent'
|
|
109
124
|
}), "&.show-diff-deleted-node-traditional.show-diff-deleted-active .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
110
125
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
111
|
-
boxShadow: "0 0 0
|
|
126
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
|
|
112
127
|
borderColor: 'transparent'
|
|
113
128
|
}), "&.show-diff-deleted-node.show-diff-deleted-active .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
|
|
114
129
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
115
|
-
boxShadow: "0 0 0
|
|
130
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
|
|
116
131
|
borderColor: 'transparent'
|
|
117
132
|
}), "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER), {
|
|
118
133
|
opacity: 0.8
|
|
@@ -120,7 +135,7 @@ var showDiffDeletedNodeStylesNew = exports.showDiffDeletedNodeStylesNew = (0, _r
|
|
|
120
135
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
121
136
|
'& > div': {
|
|
122
137
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
123
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-
|
|
138
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
124
139
|
borderRadius: "var(--ds-radius-small, 4px)",
|
|
125
140
|
opacity: 0.8
|
|
126
141
|
}
|
|
@@ -128,21 +143,28 @@ var showDiffDeletedNodeStylesNew = exports.showDiffDeletedNodeStylesNew = (0, _r
|
|
|
128
143
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
129
144
|
'& > div': {
|
|
130
145
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
131
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
146
|
+
boxShadow: "0 0 0 var(--diff-decoration-marker-ring-width, 1px) ".concat("var(--ds-border-accent-red, #E2483D)"),
|
|
147
|
+
borderRadius: "var(--ds-radius-small, 4px)"
|
|
148
|
+
}
|
|
149
|
+
}), '.show-diff-deleted-node-traditional.show-diff-deleted-outline-new .media-card-wrapper', {
|
|
150
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
151
|
+
'& > div': {
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
153
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtlest, #FFECEB)"),
|
|
132
154
|
borderRadius: "var(--ds-radius-small, 4px)"
|
|
133
155
|
}
|
|
134
156
|
}), '.show-diff-deleted-node-traditional.show-diff-deleted-active .media-card-wrapper', {
|
|
135
157
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
136
158
|
'& > div': {
|
|
137
159
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
138
|
-
boxShadow: "0 0 0
|
|
160
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
|
|
139
161
|
borderRadius: "var(--ds-radius-small, 4px)"
|
|
140
162
|
}
|
|
141
163
|
}), '.show-diff-deleted-node.show-diff-deleted-active .media-card-wrapper', {
|
|
142
164
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
143
165
|
'& > div': {
|
|
144
166
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
145
|
-
boxShadow: "0 0 0
|
|
167
|
+
boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
|
|
146
168
|
borderRadius: "var(--ds-radius-small, 4px)",
|
|
147
169
|
opacity: 0.8
|
|
148
170
|
}
|
|
@@ -830,11 +830,11 @@ export function ReactEditorView(props) {
|
|
|
830
830
|
return viewRef.current;
|
|
831
831
|
},
|
|
832
832
|
popupsMountPoint: props.editorProps.popupsMountPoint
|
|
833
|
-
}
|
|
833
|
+
}),
|
|
834
834
|
// viewRef is intentionally omitted from the deps array — it's a stable ref object; the getter reads
|
|
835
835
|
// .current lazily so there's no stale-closure risk.
|
|
836
836
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
837
|
-
|
|
837
|
+
[editorRef, props.editorProps.popupsMountPoint]);
|
|
838
838
|
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017
|
|
839
839
|
const reactEditorViewContext = expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedReactEditorViewContext : {
|
|
840
840
|
editorRef,
|
|
@@ -9,7 +9,7 @@ import { fixExcludes } from './create-editor';
|
|
|
9
9
|
* Adds generic metadata attributes to a DOMOutputSpec array based on the provided node or mark.
|
|
10
10
|
* This function ensures that the DOMOutputSpec is annotated with ProseMirror-specific metadata.
|
|
11
11
|
*
|
|
12
|
-
* @param {
|
|
12
|
+
* @param {object} params - Parameters object.
|
|
13
13
|
* @param {PMNode | PMMark} params.nodeOrMark - The ProseMirror node or mark to extract metadata from.
|
|
14
14
|
* @param {DOMOutputSpec} params.domSpec - The DOMOutputSpec to which attributes will be added.
|
|
15
15
|
* @returns {DOMOutputSpec} The modified DOMOutputSpec with additional metadata.
|
|
@@ -42,7 +42,7 @@ import { gapCursorStyles, gapCursorStylesVisibilityFix } from './styles/gapCurso
|
|
|
42
42
|
import { gridStyles } from './styles/gridStyles';
|
|
43
43
|
import { indentationStyles } from './styles/indentationStyles';
|
|
44
44
|
import { InlineNodeViewSharedStyles } from './styles/inlineNodeViewSharedStyles';
|
|
45
|
-
import { layoutBaseStyles, layoutBaseStylesAdvanced, layoutBaseStylesWithTableExcerptsFix, layoutBaseStylesFixesUnderNestedDnDFG, layoutColumnMartinTopFixesNew, layoutColumnMartinTopFixesOld, layoutColumnResponsiveStyles, layoutColumnStylesAdvanced, layoutColumnStylesNotAdvanced, layoutResponsiveBaseStyles, layoutResponsiveStylesForView, layoutSectionStylesAdvanced, layoutSectionStylesNotAdvanced, layoutSelectedStylesAdvanced, layoutSelectedStylesForViewAdvanced, layoutSelectedStylesForViewNotAdvanced, layoutSelectedStylesNotAdvanced, layoutStylesForView, layoutSelectedStylesAdvancedFix, layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync } from './styles/layout';
|
|
45
|
+
import { layoutBaseStyles, layoutBaseStylesAdvanced, layoutBaseStylesWithTableExcerptsFix, layoutBaseStylesFixesUnderNestedDnDFG, layoutColumnMartinTopFixesNew, layoutColumnMartinTopFixesOld, layoutColumnDividerStyles, layoutColumnDividerStylesNestedDnD, layoutColumnResizeStyles, layoutColumnResponsiveStyles, layoutColumnStylesAdvanced, layoutColumnStylesNotAdvanced, layoutResponsiveBaseStyles, layoutResponsiveStylesForView, layoutSectionStylesAdvanced, layoutSectionStylesNotAdvanced, layoutSelectedStylesAdvanced, layoutSelectedStylesForViewAdvanced, layoutSelectedStylesForViewNotAdvanced, layoutSelectedStylesNotAdvanced, layoutStylesForView, layoutSelectedStylesAdvancedFix, layoutBaseStylesFixesUnderNestedDnDFGExcludingBodiedSync } from './styles/layout';
|
|
46
46
|
import { hyperLinkFloatingToolbarStyles, linkStyles } from './styles/link';
|
|
47
47
|
import { diffListStyles, getDenseListStyles, listItemHiddenMarkerStyles, listsStyles, listsStylesMarginLayoutShiftFix, listsStylesSafariFix } from './styles/list';
|
|
48
48
|
import { mediaAlignmentStyles, mediaCaptionStyles, mediaDangerStyles, mediaGroupStyles, mediaStyles } from './styles/mediaStyles';
|
|
@@ -389,11 +389,17 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
389
389
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
390
390
|
layoutSectionStylesAdvanced :
|
|
391
391
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
392
|
-
layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true)
|
|
392
|
+
layoutSectionStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorExperiment('platform_editor_layout_column_resize_handle', true) &&
|
|
393
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
394
|
+
layoutColumnDividerStyles, editorExperiment('advanced_layouts', true) && editorExperiment('platform_editor_layout_column_resize_handle', true) && fg('platform_editor_nested_dnd_styles_changes') &&
|
|
395
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
396
|
+
layoutColumnDividerStylesNestedDnD, editorExperiment('advanced_layouts', true) ?
|
|
393
397
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
394
398
|
layoutColumnStylesAdvanced :
|
|
395
399
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
396
|
-
layoutColumnStylesNotAdvanced,
|
|
400
|
+
layoutColumnStylesNotAdvanced, editorExperiment('advanced_layouts', true) && editorExperiment('platform_editor_layout_column_resize_handle', true) &&
|
|
401
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
402
|
+
layoutColumnResizeStyles,
|
|
397
403
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
398
404
|
editorExperiment('advanced_layouts', true) ?
|
|
399
405
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -87,8 +87,8 @@ export const expandStylesBase = css({
|
|
|
87
87
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
88
88
|
display: 'flow-root',
|
|
89
89
|
/* The follow rules inside @supports block are added as a part of ED-8893
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
The fix is targeting mobile bridge on iOS 12 or below,
|
|
91
|
+
We should consider remove this fix when we no longer support iOS 12 */
|
|
92
92
|
'@supports not (display: flow-root)': {
|
|
93
93
|
width: '100%',
|
|
94
94
|
boxSizing: 'border-box'
|
|
@@ -425,7 +425,7 @@ export const getExtensionStyles = contentMode => {
|
|
|
425
425
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
426
426
|
export const extensionDiffStyles = css({
|
|
427
427
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
428
|
-
[`.show-diff-changed-decoration-node > span
|
|
429
|
-
boxShadow: `0 0 0 1px var(--diff-decoration-marker-color)`
|
|
428
|
+
[`.show-diff-changed-decoration-node > span .extension-container`]: {
|
|
429
|
+
boxShadow: `0 0 0 var(--diff-decoration-marker-ring-width, 1px) var(--diff-decoration-marker-color)`
|
|
430
430
|
}
|
|
431
431
|
});
|