@atlaskit/editor-core 207.13.1 → 207.14.1

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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 207.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#162726](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/162726)
8
+ [`05c3aa3d6cd0c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/05c3aa3d6cd0c) -
9
+ NOISSUE - Remove lazy node view for tables. Includes cleaning up the feature gates:
10
+ platform_editor_disable_table_lnv & platform_editor_enable_table_lnv.
11
+ - Updated dependencies
12
+
13
+ ## 207.14.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#163502](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/163502)
18
+ [`fa92ca013b030`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fa92ca013b030) -
19
+ [https://product-fabric.atlassian.net/browse/ED-28120](ED-28120) - rewrite editor layout CSS
20
+ styles in object syntax
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies
25
+
3
26
  ## 207.13.1
4
27
 
5
28
  ### Patch Changes
@@ -5,16 +5,15 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.layoutViewStyles = exports.layoutBaseStyles = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
9
  var _react = require("@emotion/react");
11
- var _styles = require("@atlaskit/editor-common/styles");
12
- var _types = require("@atlaskit/editor-plugins/table/types");
13
- var _consts = require("@atlaskit/editor-plugins/table/ui/consts");
14
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
15
10
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
11
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
12
+ var _selectionStyles = require("./selectionStyles");
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
14
+
15
+ var gridMediumMaxWidth = 1024;
16
+ var akEditorSelectedNodeClassName = 'ak-editor-selected-node';
18
17
  var columnLayoutSharedStyle = (0, _react.css)({
19
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
20
19
  '[data-layout-section]': (0, _defineProperty2.default)({
@@ -30,7 +29,7 @@ var columnLayoutSharedStyle = (0, _react.css)({
30
29
  '& > .unsupportedBlockView-content-wrap': {
31
30
  minWidth: 'initial'
32
31
  }
33
- }, "@media screen and (max-width: ".concat(_editorSharedStyles.gridMediumMaxWidth, "px)"), {
32
+ }, "@media screen and (max-width: ".concat(gridMediumMaxWidth, "px)"), {
34
33
  flexDirection: 'column'
35
34
  })
36
35
  });
@@ -57,70 +56,439 @@ var columnLayoutResponsiveSharedStyle = (0, _react.css)({
57
56
  }
58
57
  });
59
58
  var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
60
- return (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
61
- (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t> :nth-child(1 of :not(style, .ProseMirror-gapcursor, .ProseMirror-widget, span)) {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t"]))) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
62
- (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t> :not(style):first-child,\n\t\t\t\t> style:first-child + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t"])));
59
+ return (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ?
60
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
61
+ (0, _react.css)({
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
63
+ '> :nth-child(1 of :not(style, .ProseMirror-gapcursor, .ProseMirror-widget, span))': {
64
+ marginTop: 0
65
+ }
66
+ }) :
67
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
68
+ (0, _react.css)({
69
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
70
+ '> :not(style):first-child, > style:first-child + *': {
71
+ marginTop: 0
72
+ },
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
74
+ '> .ProseMirror-gapcursor:first-child + *, > style:first-child + .ProseMirror-gapcursor + *': {
75
+ marginTop: 0
76
+ },
77
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
78
+ '> .ProseMirror-gapcursor:first-child + span + *': {
79
+ marginTop: 0
80
+ }
81
+ });
63
82
  };
64
83
  var layoutColumnStyles = function layoutColumnStyles() {
65
- return (0, _experiments.editorExperiment)('advanced_layouts', true) ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
66
- (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t> [data-layout-column] {\n\t\t\t\t\tmargin: 0 ", "px;\n\t\t\t\t}\n\n\t\t\t\t> [data-layout-column]:first-of-type {\n\t\t\t\t\tmargin-left: 0;\n\t\t\t\t}\n\n\t\t\t\t> [data-layout-column]:last-of-type {\n\t\t\t\t\tmargin-right: 0;\n\t\t\t\t}\n\n\t\t\t\t@media screen and (max-width: ", "px) {\n\t\t\t\t\t[data-layout-column] + [data-layout-column] {\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t> [data-layout-column].", ":not(.danger) {\n\t\t\t\t\t", ";\n\t\t\t\t\t/* layout column selection shorter after layout border has been removed */\n\t\t\t\t\t::before {\n\t\t\t\t\t\twidth: calc(100% - 8px);\n\t\t\t\t\t\tleft: 4px;\n\t\t\t\t\t\tborder-radius: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), _styles.LAYOUT_SECTION_MARGIN / 2, _editorSharedStyles.gridMediumMaxWidth, _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Blanket]), "var(--ds-border-radius, 3px)") : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
67
- (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t[data-layout-column] + [data-layout-column] {\n\t\t\t\t\tmargin-left: ", "px;\n\t\t\t\t}\n\n\t\t\t\t@media screen and (max-width: ", "px) {\n\t\t\t\t\t[data-layout-column] + [data-layout-column] {\n\t\t\t\t\t\tmargin-left: 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), _styles.LAYOUT_SECTION_MARGIN, _editorSharedStyles.gridMediumMaxWidth);
84
+ return (0, _experiments.editorExperiment)('advanced_layouts', true) ?
85
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
86
+ (0, _react.css)((0, _defineProperty2.default)((0, _defineProperty2.default)({
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
88
+ '> [data-layout-column]': {
89
+ margin: '0 4px'
90
+ },
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
92
+ '> [data-layout-column]:first-of-type': {
93
+ marginLeft: 0
94
+ },
95
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
96
+ '> [data-layout-column]:last-of-type': {
97
+ marginRight: 0
98
+ }
99
+ }, "@media screen and (max-width: ".concat(gridMediumMaxWidth, "px)"), {
100
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
101
+ '[data-layout-column] + [data-layout-column]': {
102
+ margin: 0
103
+ }
104
+ }), "> [data-layout-column].".concat(akEditorSelectedNodeClassName, ":not(.danger)"), [
105
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
106
+ _selectionStyles.blanketSelectionStyles,
107
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
108
+ _selectionStyles.hideNativeBrowserTextSelectionStyles, {
109
+ // layout column selection shorter after layout border has been removed
110
+ '::before': {
111
+ width: 'calc(100% - 8px)',
112
+ left: 4,
113
+ borderRadius: "var(--ds-border-radius, 3px)"
114
+ }
115
+ }])) :
116
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
117
+ (0, _react.css)((0, _defineProperty2.default)({
118
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
119
+ '[data-layout-column] + [data-layout-column]': {
120
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
121
+ marginLeft: 8
122
+ }
123
+ }, "@media screen and (max-width: ".concat(gridMediumMaxWidth, "px)"), {
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
125
+ '[data-layout-column] + [data-layout-column]': {
126
+ marginLeft: 0
127
+ }
128
+ }));
68
129
  };
69
130
  var layoutSectionStyles = function layoutSectionStyles() {
70
- return (0, _experiments.editorExperiment)('advanced_layouts', true) ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
71
- (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t", ";\n\t\t\t\t.layout-section-container [data-layout-section] {\n\t\t\t\t\t> .ProseMirror-widget {\n\t\t\t\t\t\tflex: none;\n\t\t\t\t\t\tdisplay: contents !important;\n\n\t\t\t\t\t\t&[data-blocks-drag-handle-container] div {\n\t\t\t\t\t\t\tdisplay: contents !important;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t&[data-blocks-drop-target-container] {\n\t\t\t\t\t\t\tdisplay: block !important;\n\t\t\t\t\t\t\tmargin: ", ";\n\n\t\t\t\t\t\t\t[data-drop-target-for-element] {\n\t\t\t\t\t\t\t\tposition: absolute;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t& + [data-layout-column] {\n\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t> [data-layout-column] {\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), columnLayoutResponsiveSharedStyle, "var(--ds-space-negative-050, -4px)") : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
72
- (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t", "\n\t\t\t"])), columnLayoutSharedStyle);
131
+ return (0, _experiments.editorExperiment)('advanced_layouts', true) ?
132
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
133
+ (0, _react.css)(columnLayoutResponsiveSharedStyle, {
134
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
135
+ '.layout-section-container [data-layout-section]': {
136
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
137
+ '> .ProseMirror-widget': {
138
+ flex: 'none',
139
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
140
+ display: 'contents !important',
141
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
142
+ '&[data-blocks-drag-handle-container] div': {
143
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
144
+ display: 'contents !important'
145
+ },
146
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
147
+ '&[data-blocks-drop-target-container]': {
148
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
149
+ display: 'block !important',
150
+ margin: "var(--ds-space-negative-050, -4px)",
151
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
152
+ '[data-drop-target-for-element]': {
153
+ position: 'absolute'
154
+ }
155
+ },
156
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
157
+ '& + [data-layout-column]': {
158
+ margin: 0
159
+ }
160
+ },
161
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
162
+ '> [data-layout-column]': {
163
+ margin: 0
164
+ }
165
+ }
166
+ }) : columnLayoutSharedStyle;
73
167
  };
74
168
 
75
169
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
76
- var layoutBorderBaseStyles = (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\t/* TODO: Remove the border styles below once design tokens have been enabled and fallbacks are no longer triggered.\n\tThis is because the default state already uses the same token and, as such, the hover style won't change anything.\n\thttps://product-fabric.atlassian.net/browse/DSP-4441 */\n\t/* Shows the border when cursor is inside a layout */\n\t&.selected [data-layout-column],\n\t&:hover [data-layout-column] {\n\t\tborder: ", "px solid ", ";\n\t}\n\n\t&.selected.danger [data-layout-column] {\n\t\tbackground-color: ", ";\n\t\tborder-color: ", ";\n\t}\n\n\t&.", ":not(.danger) {\n\t\t[data-layout-column] {\n\t\t\t", "\n\t\t\t::after {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t}\n\t}\n"])), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border, #091E4224)", "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(_editorSharedStyles.akEditorDeleteBorder, ")"), _editorSharedStyles.akEditorSelectedNodeClassName, (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Border, _editorSharedStyles.SelectionStyle.Blanket]));
170
+ var layoutBorderBaseStyles = (0, _react.css)((0, _defineProperty2.default)({
171
+ // TODO: DSP-4441 - Remove the border styles below once design tokens have been enabled and fallbacks are no longer triggered.
172
+ // This is because the default state already uses the same token and, as such, the hover style won't change anything.
173
+ // https://product-fabric.atlassian.net/browse/DSP-4441
174
+ // Shows the border when cursor is inside a layout
175
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
176
+ '&.selected [data-layout-column], &:hover [data-layout-column]': {
177
+ border: "1px solid ".concat("var(--ds-border, #091E4224)")
178
+ },
179
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
180
+ '&.selected.danger [data-layout-column]': {
181
+ backgroundColor: "var(--ds-background-danger, #FFECEB)",
182
+ borderColor: "var(--ds-border-danger, #E2483D)"
183
+ }
184
+ }, "&.".concat(akEditorSelectedNodeClassName, ":not(.danger)"), {
185
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
186
+ '[data-layout-column]': [
187
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
188
+ _selectionStyles.borderSelectionStyles,
189
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
190
+ _selectionStyles.blanketSelectionStyles,
191
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
192
+ _selectionStyles.hideNativeBrowserTextSelectionStyles, {
193
+ '::after': {
194
+ backgroundColor: 'transparent'
195
+ }
196
+ }]
197
+ }));
77
198
 
78
199
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
79
- var layoutBorderViewStyles = (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\t&.selected [data-layout-column],\n\t&:hover [data-layout-column] {\n\t\tborder: 0;\n\t}\n"])));
200
+ var layoutBorderViewStyles = (0, _react.css)({
201
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
202
+ '&.selected [data-layout-column], &:hover [data-layout-column]': {
203
+ border: 0
204
+ }
205
+ });
80
206
 
81
207
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
82
- var columnSeparatorBaseStyles = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t[data-layout-content]::before {\n\t\tcontent: '';\n\t\tborder-left: ", "px solid ", ";\n\t\tposition: absolute;\n\t\theight: calc(100% - 24px);\n\t\tmargin-left: -25px;\n\t}\n"])), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border, #091E4224)");
208
+ var columnSeparatorBaseStyles = (0, _react.css)({
209
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
210
+ '[data-layout-content]::before': {
211
+ content: "''",
212
+ borderLeft: "1px solid ".concat("var(--ds-border, #091E4224)"),
213
+ position: 'absolute',
214
+ height: 'calc(100% - 24px)',
215
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
216
+ marginLeft: -25
217
+ }
218
+ });
83
219
 
84
220
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
85
- var columnSeparatorViewStyles = (0, _react.css)(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2.default)(["\n\t[data-layout-content]::before {\n\t\tborder-left: 0;\n\t}\n"])));
221
+ var columnSeparatorViewStyles = (0, _react.css)({
222
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
223
+ '[data-layout-content]::before': {
224
+ borderLeft: 0
225
+ }
226
+ });
86
227
 
87
228
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
88
- var rowSeparatorBaseStyles = (0, _react.css)(_templateObject1 || (_templateObject1 = (0, _taggedTemplateLiteral2.default)(["\n\t[data-layout-content]::before {\n\t\tcontent: '';\n\t\tborder-top: ", "px solid ", ";\n\t\tposition: absolute;\n\t\twidth: calc(100% - 32px);\n\t\tmargin-top: -13px;\n\n\t\t/* clear styles for column separator */\n\t\tborder-left: unset;\n\t\tmargin-left: unset;\n\t\theight: unset;\n\t}\n"])), _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border, #091E4224)");
229
+ var rowSeparatorBaseStyles = (0, _react.css)({
230
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
231
+ '[data-layout-content]::before': {
232
+ content: "''",
233
+ borderTop: "1px solid ".concat("var(--ds-border, #091E4224)"),
234
+ position: 'absolute',
235
+ width: 'calc(100% - 32px)',
236
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
237
+ marginTop: -13,
238
+ // clear styles for column separator
239
+ borderLeft: 'unset',
240
+ marginLeft: 'unset',
241
+ height: 'unset'
242
+ }
243
+ });
89
244
 
90
245
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
91
- var rowSeparatorViewStyles = (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t[data-layout-content]::before {\n\t\tborder-top: 0;\n\t}\n"])));
246
+ var rowSeparatorViewStyles = (0, _react.css)({
247
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
248
+ '[data-layout-content]::before': {
249
+ borderTop: 0
250
+ }
251
+ });
92
252
 
93
253
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
94
254
  var layoutWithSeparatorBorderResponsiveBaseStyles = function layoutWithSeparatorBorderResponsiveBaseStyles(breakpoint
95
255
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
96
256
  ) {
97
- return (0, _react.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t&.selected,\n\t&:hover,\n\t&.selected.danger,\n\t&.", ":not(.danger) {\n\t\t[data-layout-column]:not(:first-of-type) {\n\t\t\t@container editor-area (max-width:", "px) {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t}\n"])), _editorSharedStyles.akEditorSelectedNodeClassName, breakpoint, rowSeparatorBaseStyles);
257
+ return (0, _react.css)((0, _defineProperty2.default)({}, "&.selected, &:hover, &.selected.danger, &.".concat(akEditorSelectedNodeClassName, ":not(.danger)"), {
258
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
259
+ '[data-layout-column]:not(:first-of-type)': (0, _defineProperty2.default)({}, "@container editor-area (max-width:".concat(breakpoint, "px)"), rowSeparatorBaseStyles)
260
+ }));
98
261
  };
99
262
 
100
263
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
101
264
  var layoutWithSeparatorBorderResponsiveViewStyles = function layoutWithSeparatorBorderResponsiveViewStyles(breakpoint
102
265
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
103
266
  ) {
104
- return (0, _react.css)(_templateObject12 || (_templateObject12 = (0, _taggedTemplateLiteral2.default)(["\n\t&.selected,\n\t&:hover,\n\t&.selected.danger,\n\t&.", ":not(.danger) {\n\t\t[data-layout-column]:not(:first-of-type) {\n\t\t\t@container editor-area (max-width:", "px) {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\t}\n"])), _editorSharedStyles.akEditorSelectedNodeClassName, breakpoint, rowSeparatorViewStyles);
267
+ return (0, _react.css)((0, _defineProperty2.default)({}, "&.selected, &:hover, &.selected.danger, &.".concat(akEditorSelectedNodeClassName, ":not(.danger)"), {
268
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
269
+ '[data-layout-column]:not(:first-of-type)': (0, _defineProperty2.default)({}, "@container editor-area (max-width:".concat(breakpoint, "px)"), rowSeparatorViewStyles)
270
+ }));
105
271
  };
106
272
 
107
273
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
108
- var layoutWithSeparatorBorderBaseStyles = (0, _react.css)(_templateObject13 || (_templateObject13 = (0, _taggedTemplateLiteral2.default)(["\n\t&.selected [data-layout-column]:not(:first-of-type),\n\t[data-empty-layout='true'] [data-layout-column]:not(:first-of-type),\n\t&:hover [data-layout-column]:not(:first-of-type) {\n\t\t", "\n\t}\n\n\t&.selected.danger [data-layout-section] {\n\t\tbackground-color: ", ";\n\n\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\tborder-radius: 4px;\n\t\t[data-layout-column]:not(:first-of-type) {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&.", ":not(.danger) [data-layout-section] {\n\t\tbox-shadow: 0 0 0 ", "px ", ";\n\t\tborder-radius: 4px;\n\t\tbackground-color: ", ";\n\t\t[data-layout-column] {\n\t\t\t", "\n\t\t\tborder: 0px;\n\t\t\t::before {\n\t\t\t\tbackground-color: transparent;\n\t\t\t}\n\t\t}\n\t\t[data-layout-column]:not(:first-of-type) {\n\t\t\t", "\n\t\t}\n\t}\n"])), columnSeparatorBaseStyles, "var(--ds-background-danger, ".concat(_editorSharedStyles.akEditorDeleteBackground, ")"), _editorSharedStyles.akEditorSelectedBorderSize, _editorSharedStyles.akEditorDeleteBorder, columnSeparatorBaseStyles, _editorSharedStyles.akEditorSelectedNodeClassName, _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border-selected, #0C66E4)", "var(--ds-background-selected, #E9F2FF)", (0, _editorSharedStyles.getSelectionStyles)([_editorSharedStyles.SelectionStyle.Blanket]), columnSeparatorBaseStyles);
274
+ var layoutWithSeparatorBorderBaseStyles = (0, _react.css)((0, _defineProperty2.default)({
275
+ "&.selected [data-layout-column]:not(:first-of-type), [data-empty-layout='true'] [data-layout-column]:not(:first-of-type), &:hover [data-layout-column]:not(:first-of-type)":
276
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
277
+ columnSeparatorBaseStyles,
278
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
279
+ '&.selected.danger [data-layout-section]': {
280
+ backgroundColor: "var(--ds-background-danger, #FFECEB)",
281
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-danger, #E2483D)"),
282
+ borderRadius: 4,
283
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
284
+ '[data-layout-column]:not(:first-of-type)': columnSeparatorBaseStyles
285
+ }
286
+ }, "&.".concat(akEditorSelectedNodeClassName, ":not(.danger) [data-layout-section]"), {
287
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)"),
288
+ borderRadius: 4,
289
+ backgroundColor: "var(--ds-background-selected, #E9F2FF)",
290
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
291
+ '[data-layout-column]': [
292
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
293
+ _selectionStyles.blanketSelectionStyles,
294
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
295
+ _selectionStyles.hideNativeBrowserTextSelectionStyles, {
296
+ border: 0,
297
+ '::before': {
298
+ backgroundColor: 'transparent'
299
+ }
300
+ }],
301
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
302
+ '[data-layout-column]:not(:first-of-type)': columnSeparatorBaseStyles
303
+ }));
109
304
 
110
305
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
111
- var layoutWithSeparatorBorderViewStyles = (0, _react.css)(_templateObject14 || (_templateObject14 = (0, _taggedTemplateLiteral2.default)(["\n\t&.selected [data-layout-column]:not(:first-of-type),\n\t[data-empty-layout='true'] [data-layout-column]:not(:first-of-type),\n\t&:hover [data-layout-column]:not(:first-of-type) {\n\t\t", "\n\t}\n\n\t&.selected.danger [data-layout-section] {\n\t\tbox-shadow: 0 0 0 0 ", ";\n\t\t[data-layout-column]:not(:first-of-type) {\n\t\t\t", "\n\t\t}\n\t}\n\n\t&.", ":not(.danger) [data-layout-section] {\n\t\tbox-shadow: 0 0 0 0 ", ";\n\t\t[data-layout-column]:not(:first-of-type) {\n\t\t\t", "\n\t\t}\n\t}\n"])), columnSeparatorViewStyles, _editorSharedStyles.akEditorDeleteBorder, columnSeparatorViewStyles, _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border-selected, #0C66E4)", columnSeparatorViewStyles);
306
+ var layoutWithSeparatorBorderViewStyles = (0, _react.css)((0, _defineProperty2.default)({
307
+ "&.selected [data-layout-column]:not(:first-of-type), [data-empty-layout='true'] [data-layout-column]:not(:first-of-type), &:hover [data-layout-column]:not(:first-of-type)":
308
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
309
+ columnSeparatorViewStyles,
310
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
311
+ '&.selected.danger [data-layout-section]': {
312
+ boxShadow: "0 0 0 0 ".concat("var(--ds-border-danger, #E2483D)"),
313
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
314
+ '[data-layout-column]:not(:first-of-type)': columnSeparatorViewStyles
315
+ }
316
+ }, "&.".concat(akEditorSelectedNodeClassName, ":not(.danger) [data-layout-section]"), {
317
+ boxShadow: "0 0 0 0 ".concat("var(--ds-border-selected, #0C66E4)"),
318
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
319
+ '[data-layout-column]:not(:first-of-type)': columnSeparatorViewStyles
320
+ }));
112
321
 
113
322
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
114
323
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
115
- var layoutResponsiveBaseStyles = (0, _react.css)(_templateObject15 || (_templateObject15 = (0, _taggedTemplateLiteral2.default)(["\n\t/* chosen breakpoints in container queries are to make sure layout responsiveness in editor aligns with renderer */\n\t/* not resized layout in full-width editor */\n\t.fabric-editor--full-width-mode .ProseMirror {\n\t\t> .layoutSectionView-content-wrap {\n\t\t\t[data-layout-section] {\n\t\t\t\t@container editor-area (max-width:724px) {\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\t}\n\n\t/* not resized layout in fixed-width editor */\n\t.ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror {\n\t\t> .layoutSectionView-content-wrap {\n\t\t\t[data-layout-section] {\n\t\t\t\t@container editor-area (max-width:788px) {\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\t}\n\n\t/* resized layout in full/fixed-width editor */\n\t.ProseMirror .fabric-editor-breakout-mark {\n\t\t.layoutSectionView-content-wrap {\n\t\t\t[data-layout-section] {\n\t\t\t\t@container editor-area (max-width:820px) {\n\t\t\t\t\tflex-direction: column;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\t}\n"])), layoutWithSeparatorBorderResponsiveBaseStyles(724), layoutWithSeparatorBorderResponsiveBaseStyles(788), layoutWithSeparatorBorderResponsiveBaseStyles(820));
324
+ var layoutResponsiveBaseStyles = (0, _react.css)({
325
+ // chosen breakpoints in container queries are to make sure layout responsiveness in editor aligns with renderer
326
+ // not resized layout in full-width editor
327
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
328
+ '.fabric-editor--full-width-mode .ProseMirror': {
329
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
330
+ '> .layoutSectionView-content-wrap': [{
331
+ '[data-layout-section]': {
332
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
333
+ '@container editor-area (max-width:724px)': {
334
+ flexDirection: 'column'
335
+ }
336
+ }
337
+ }, layoutWithSeparatorBorderResponsiveBaseStyles(724)]
338
+ },
339
+ // not resized layout in fixed-width editor
340
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
341
+ '.ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror': {
342
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
343
+ '> .layoutSectionView-content-wrap': [{
344
+ '[data-layout-section]': {
345
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
346
+ '@container editor-area (max-width:788px)': {
347
+ flexDirection: 'column'
348
+ }
349
+ }
350
+ }, layoutWithSeparatorBorderResponsiveBaseStyles(788)]
351
+ },
352
+ // resized layout in full/fixed-width editor
353
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
354
+ '.ProseMirror .fabric-editor-breakout-mark': {
355
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
356
+ '.layoutSectionView-content-wrap': [{
357
+ '[data-layout-section]': {
358
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries
359
+ '@container editor-area (max-width:820px)': {
360
+ flexDirection: 'column'
361
+ }
362
+ }
363
+ }, layoutWithSeparatorBorderResponsiveBaseStyles(820)]
364
+ }
365
+ });
116
366
 
117
367
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
118
- var layoutResponsiveViewStyles = (0, _react.css)(_templateObject16 || (_templateObject16 = (0, _taggedTemplateLiteral2.default)(["\n\t/* chosen breakpoints in container queries are to make sure layout responsiveness in editor aligns with renderer */\n\t/* not resized layout in full-width editor */\n\t.fabric-editor--full-width-mode .ProseMirror {\n\t\t> .layoutSectionView-content-wrap {\n\t\t\t", "\n\t\t}\n\t}\n\n\t/* not resized layout in fixed-width editor */\n\t.ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror {\n\t\t> .layoutSectionView-content-wrap {\n\t\t\t", "\n\t\t}\n\t}\n\n\t/* resized layout in full/fixed-width editor */\n\t.ProseMirror .fabric-editor-breakout-mark {\n\t\t.layoutSectionView-content-wrap {\n\t\t\t", "\n\t\t}\n\t}\n"])), layoutWithSeparatorBorderResponsiveViewStyles(724), layoutWithSeparatorBorderResponsiveViewStyles(788), layoutWithSeparatorBorderResponsiveViewStyles(820));
368
+ var layoutResponsiveViewStyles = (0, _react.css)({
369
+ // chosen breakpoints in container queries are to make sure layout responsiveness in editor aligns with renderer
370
+ // not resized layout in full-width editor
371
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
372
+ '.fabric-editor--full-width-mode .ProseMirror': {
373
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
374
+ '> .layoutSectionView-content-wrap': layoutWithSeparatorBorderResponsiveViewStyles(724)
375
+ },
376
+ // not resized layout in fixed-width editor
377
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-selectors
378
+ '.ak-editor-content-area:not(.fabric-editor--full-width-mode) .ProseMirror': {
379
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
380
+ '> .layoutSectionView-content-wrap': layoutWithSeparatorBorderResponsiveViewStyles(788)
381
+ },
382
+ // resized layout in full/fixed-width editor
383
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
384
+ '.ProseMirror .fabric-editor-breakout-mark': {
385
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
386
+ '.layoutSectionView-content-wrap': layoutWithSeparatorBorderResponsiveViewStyles(820)
387
+ }
388
+ });
119
389
 
120
390
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
121
391
  var layoutBaseStyles = exports.layoutBaseStyles = function layoutBaseStyles() {
122
- return (0, _react.css)(_templateObject17 || (_templateObject17 = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t", "\n\t\t[data-layout-section] {\n\t\t\t/* Ignored via go/ees007\n\t\t\tTODO: Migrate away from gridSize\n\t\t\tRecommendation: Replace directly with 7px */\n\t\t\tmargin: ", " -", "px 0;\n\t\t\ttransition: border-color 0.3s ", ";\n\t\t\tcursor: pointer;\n\n\t\t\t/* Inner cursor located 26px from left */\n\t\t\t[data-layout-column] {\n\t\t\t\tflex: 1;\n\t\t\t\tposition: relative;\n\n\t\t\t\tmin-width: 0;\n\t\t\t\t/* disable 4 borders when in view mode and advanced layouts is on */\n\t\t\t\tborder: ", "px\n\t\t\t\t\tsolid ", ";\n\t\t\t\tborder-radius: 4px;\n\t\t\t\tpadding: ", "px\n\t\t\t\t\t", "px;\n\t\t\t\tbox-sizing: border-box;\n\n\t\t\t\t> div {\n\t\t\t\t\t", "\n\n\t\t\t\t\t> .embedCardView-content-wrap:first-of-type .rich-media-item {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t> .mediaSingleView-content-wrap:first-of-type .rich-media-item {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t> .ProseMirror-gapcursor.-right:first-child\n\t\t\t\t\t\t+ .mediaSingleView-content-wrap\n\t\t\t\t\t\t.rich-media-item,\n\t\t\t\t\t> style:first-child\n\t\t\t\t\t\t+ .ProseMirror-gapcursor.-right\n\t\t\t\t\t\t+ .mediaSingleView-content-wrap\n\t\t\t\t\t\t.rich-media-item,\n\t\t\t\t\t> .ProseMirror-gapcursor.-right:first-of-type\n\t\t\t\t\t\t+ .embedCardView-content-wrap\n\t\t\t\t\t\t.rich-media-item {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t> .ProseMirror-gapcursor:first-child\n\t\t\t\t\t\t+ span\n\t\t\t\t\t\t+ .mediaSingleView-content-wrap\n\t\t\t\t\t\t.rich-media-item,\n\t\t\t\t\t> style:first-child\n\t\t\t\t\t\t+ .ProseMirror-gapcursor\n\t\t\t\t\t\t+ span\n\t\t\t\t\t\t+ .mediaSingleView-content-wrap\n\t\t\t\t\t\t.rich-media-item {\n\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Prevent first DecisionWrapper's margin-top: 8px from shifting decisions down\n\t\t\t and shrinking layout's node selectable area (leniency margin) */\n\t\t\t\t\t> [data-node-type='decisionList'] {\n\t\t\t\t\t\tli:first-of-type [data-decision-wrapper] {\n\t\t\t\t\t\t\tmargin-top: 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/* Make the 'content' fill the entire height of the layout column to allow click\n\t\t handler of layout section nodeview to target only data-layout-column */\n\t\t\t\t[data-layout-content] {\n\t\t\t\t\theight: 100%;\n\t\t\t\t\tcursor: text;\n\t\t\t\t\t.mediaGroupView-content-wrap {\n\t\t\t\t\t\tclear: both;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t", "\n\t\t}\n\n\t\t/* styles to support borders for layout */\n\t\t[data-layout-section],\n\t\t.layoutSectionView-content-wrap {\n\t\t\t", "\n\t\t}\n\t}\n\n\t", "\n\n\t/* hide separator when element is dragging on top of a layout column */\n\t[data-blocks-drop-target-container] ~ [data-layout-column] > [data-layout-content]::before {\n\t\tdisplay: none;\n\t}\n\n\t.fabric-editor--full-width-mode .ProseMirror {\n\t\t[data-layout-section] {\n\t\t\t.", " {\n\t\t\t\tmargin: 0 ", "px;\n\t\t\t}\n\t\t}\n\t}\n\n\t", "\n"])), layoutSectionStyles(), "var(--ds-space-100, 8px)", _editorSharedStyles.akLayoutGutterOffset + ((0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? 8 : 0), _editorSharedStyles.akEditorSwoopCubicBezier, (0, _experiments.editorExperiment)('advanced_layouts', true) ? 0 : _editorSharedStyles.akEditorSelectedBorderSize, "var(--ds-border, #091E4224)", _styles.LAYOUT_COLUMN_PADDING, _styles.LAYOUT_COLUMN_PADDING + ((0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? 8 : 0), firstNodeWithNotMarginTop(), layoutColumnStyles(), (0, _experiments.editorExperiment)('advanced_layouts', true) ? layoutWithSeparatorBorderBaseStyles : layoutBorderBaseStyles, (0, _experiments.editorExperiment)('advanced_layouts', true) && layoutResponsiveBaseStyles, _types.TableCssClassName.TABLE_CONTAINER, _consts.tableMarginFullWidthMode, (0, _experiments.editorExperiment)('advanced_layouts', false) && (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && ".ak-editor-content-area.appearance-full-page .ProseMirror [data-layout-section] {\n\t\t\t\tmargin: ".concat("var(--ds-space-100, 8px)", " -", _editorSharedStyles.akLayoutGutterOffset + 8, "px 0;\n\t\t\t\t}"));
392
+ return (0, _react.css)({
393
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
394
+ '.ProseMirror': [layoutSectionStyles(), {
395
+ '[data-layout-section]': [{
396
+ // TODO: EDF-123 - Migrate away from gridSize
397
+ // Recommendation: Replace directly with 7px
398
+ // Ignored via go/ees007
399
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
400
+ margin: "var(--ds-space-100, 8px)".concat(" -", 12 + ((0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? 8 : 0), "px 0"),
401
+ transition: 'border-color 0.3s cubic-bezier(0.15, 1, 0.3, 1)',
402
+ cursor: 'pointer',
403
+ // Inner cursor located 26px from left
404
+ '[data-layout-column]': {
405
+ flex: 1,
406
+ position: 'relative',
407
+ minWidth: 0,
408
+ /* disable 4 borders when in view mode and advanced layouts is on */
409
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
410
+ border: "".concat((0, _experiments.editorExperiment)('advanced_layouts', true) ? 0 : 1, "px solid ", "var(--ds-border, #091E4224)"),
411
+ borderRadius: 4,
412
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
413
+ padding: "12px ".concat(12 + ((0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? 8 : 0), "px"),
414
+ boxSizing: 'border-box',
415
+ '> div': [firstNodeWithNotMarginTop(), {
416
+ '> .embedCardView-content-wrap:first-of-type .rich-media-item': {
417
+ marginTop: 0
418
+ },
419
+ '> .mediaSingleView-content-wrap:first-of-type .rich-media-item': {
420
+ marginTop: 0
421
+ },
422
+ '> .ProseMirror-gapcursor.-right:first-child + .mediaSingleView-content-wrap .rich-media-item, > style:first-child + .ProseMirror-gapcursor.-right + .mediaSingleView-content-wrap .rich-media-item, > .ProseMirror-gapcursor.-right:first-of-type + .embedCardView-content-wrap .rich-media-item': {
423
+ marginTop: 0
424
+ },
425
+ '> .ProseMirror-gapcursor:first-child + span + .mediaSingleView-content-wrap .rich-media-item, > style:first-child + .ProseMirror-gapcursor + span + .mediaSingleView-content-wrap .rich-media-item': {
426
+ marginTop: 0
427
+ },
428
+ // Prevent first DecisionWrapper's margin-top: 8px from shifting decisions down and shrinking layout's node selectable area (leniency margin)
429
+ "> [data-node-type='decisionList']": {
430
+ 'li:first-of-type [data-decision-wrapper]': {
431
+ marginTop: 0
432
+ }
433
+ }
434
+ }],
435
+ // Make the 'content' fill the entire height of the layout column to allow click handler of layout section nodeview to target only data-layout-column
436
+ '[data-layout-content]': {
437
+ height: '100%',
438
+ cursor: 'text',
439
+ '.mediaGroupView-content-wrap': {
440
+ clear: 'both'
441
+ }
442
+ }
443
+ }
444
+ }, layoutColumnStyles()],
445
+ // styles to support borders for layout
446
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
447
+ '[data-layout-section], .layoutSectionView-content-wrap': (0, _experiments.editorExperiment)('advanced_layouts', true) ? layoutWithSeparatorBorderBaseStyles : layoutBorderBaseStyles
448
+ }],
449
+ // hide separator when element is dragging on top of a layout column
450
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
451
+ '[data-blocks-drop-target-container] ~ [data-layout-column] > [data-layout-content]::before': {
452
+ display: 'none'
453
+ },
454
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
455
+ '.fabric-editor--full-width-mode .ProseMirror': {
456
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
457
+ '[data-layout-section]': {
458
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
459
+ '.pm-table-container': {
460
+ margin: '0 2px'
461
+ }
462
+ }
463
+ }
464
+ },
465
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
466
+ (0, _experiments.editorExperiment)('advanced_layouts', true) && layoutResponsiveBaseStyles,
467
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
468
+ (0, _experiments.editorExperiment)('advanced_layouts', false) &&
469
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
470
+ (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && {
471
+ '.ak-editor-content-area.appearance-full-page .ProseMirror [data-layout-section]': {
472
+ margin: "var(--ds-space-100, 8px)".concat(" -20px 0")
473
+ }
474
+ });
123
475
  };
124
476
 
125
477
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Needs manual remediation
126
- var layoutViewStyles = exports.layoutViewStyles = (0, _react.css)(_templateObject18 || (_templateObject18 = (0, _taggedTemplateLiteral2.default)(["\n\t.ProseMirror {\n\t\t[data-layout-section] {\n\t\t\tcursor: default;\n\t\t\t[data-layout-column] {\n\t\t\t\tborder: 0;\n\t\t\t}\n\t\t}\n\t\t[data-layout-section],\n\t\t.layoutSectionView-content-wrap {\n\t\t\t", "\n\t\t}\n\t}\n\n\t", "\n"])), (0, _experiments.editorExperiment)('advanced_layouts', true) ? layoutWithSeparatorBorderViewStyles : layoutBorderViewStyles, (0, _experiments.editorExperiment)('advanced_layouts', true) && layoutResponsiveViewStyles);
478
+ var layoutViewStyles = exports.layoutViewStyles = (0, _react.css)({
479
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
480
+ '.ProseMirror': {
481
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
482
+ '[data-layout-section]': {
483
+ cursor: 'default',
484
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
485
+ '[data-layout-column]': {
486
+ border: 0
487
+ }
488
+ },
489
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
490
+ '[data-layout-section], .layoutSectionView-content-wrap': (0, _experiments.editorExperiment)('advanced_layouts', true) ? layoutWithSeparatorBorderViewStyles : layoutBorderViewStyles
491
+ }
492
+ },
493
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
494
+ (0, _experiments.editorExperiment)('advanced_layouts', true) && layoutResponsiveViewStyles);
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "207.13.1";
8
+ var version = exports.version = "207.14.1";