@atlaskit/editor-core 207.12.3 → 207.13.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/CollapsedEditor/index.js +1 -2
  3. package/dist/cjs/composable-editor/BaseThemeWrapper.js +1 -2
  4. package/dist/cjs/composable-editor/composable-editor.js +1 -2
  5. package/dist/cjs/create-editor/ReactEditorView.js +1 -2
  6. package/dist/cjs/presets/context.js +1 -2
  7. package/dist/cjs/ui/Appearance/Chromeless.js +1 -2
  8. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -2
  9. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -2
  10. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -2
  11. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +1 -2
  12. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +1 -2
  13. package/dist/cjs/ui/ChromeCollapsed/index.js +1 -2
  14. package/dist/cjs/ui/ContentStyles/index.js +5 -6
  15. package/dist/cjs/ui/ContentStyles/layout.js +5 -5
  16. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +14 -5
  17. package/dist/cjs/ui/EditorContentContainer/styles/blockTypeStyles.js +294 -0
  18. package/dist/cjs/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +59 -0
  19. package/dist/cjs/ui/EditorContentContainer/styles/layout.js +12 -12
  20. package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +3 -2
  21. package/dist/cjs/ui/IntlProviderIfMissingWrapper/IntlProviderIfMissingWrapper.js +1 -2
  22. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +1 -2
  23. package/dist/cjs/version-wrapper.js +1 -1
  24. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +22 -3
  25. package/dist/es2019/ui/EditorContentContainer/styles/blockTypeStyles.js +287 -0
  26. package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +53 -0
  27. package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +2 -1
  28. package/dist/es2019/version-wrapper.js +1 -1
  29. package/dist/esm/ui/ContentStyles/index.js +4 -4
  30. package/dist/esm/ui/ContentStyles/layout.js +5 -5
  31. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +11 -2
  32. package/dist/esm/ui/EditorContentContainer/styles/blockTypeStyles.js +287 -0
  33. package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +53 -0
  34. package/dist/esm/ui/EditorContentContainer/styles/layout.js +12 -12
  35. package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +2 -1
  36. package/dist/esm/version-wrapper.js +1 -1
  37. package/dist/types/create-editor/create-universal-preset.d.ts +15 -0
  38. package/dist/types/presets/universal.d.ts +15 -0
  39. package/dist/types/presets/useUniversalPreset.d.ts +15 -0
  40. package/dist/types/ui/EditorContentContainer/styles/blockTypeStyles.d.ts +4 -0
  41. package/dist/types/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +18 -0
  42. package/dist/types/ui/EditorContentContainer/styles/resizerStyles.d.ts +1 -0
  43. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +18 -0
  44. package/dist/types-ts4.5/presets/universal.d.ts +18 -0
  45. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +18 -0
  46. package/dist/types-ts4.5/ui/EditorContentContainer/styles/blockTypeStyles.d.ts +4 -0
  47. package/dist/types-ts4.5/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +18 -0
  48. package/dist/types-ts4.5/ui/EditorContentContainer/styles/resizerStyles.d.ts +1 -0
  49. package/package.json +5 -9
@@ -0,0 +1,287 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
2
+ import { css } from '@emotion/react';
3
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
4
+ export var blocktypeStyles = css({
5
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
6
+ '.ProseMirror': {
7
+ // Block Quote Shared Styles
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
9
+ '& blockquote': {
10
+ boxSizing: 'border-box',
11
+ color: 'inherit',
12
+ width: '100%',
13
+ display: 'inline-block',
14
+ paddingLeft: "var(--ds-space-200, 16px)",
15
+ borderLeftWidth: '2px',
16
+ borderLeftStyle: 'solid',
17
+ borderLeftColor: "var(--ds-border, #091E4224)",
18
+ margin: '0.75rem 0 0 0',
19
+ // From https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
20
+ marginRight: 0,
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
22
+ '[dir="rtl"] &': {
23
+ paddingLeft: 0,
24
+ paddingRight: "var(--ds-space-200, 16px)"
25
+ },
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
27
+ '&:first-child': {
28
+ marginTop: 0
29
+ },
30
+ '&::before': {
31
+ content: "''"
32
+ },
33
+ '&::after': {
34
+ content: 'none'
35
+ },
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
37
+ '& p': {
38
+ display: 'block'
39
+ },
40
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
41
+ '& table, & table:last-child': {
42
+ display: 'inline-table'
43
+ },
44
+ // Workaround for overriding the inline-block display on last child of a blockquote set in CSS reset.
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
46
+ '> .code-block:last-child, >.mediaSingleView-content-wrap:last-child, >.mediaGroupView-content-wrap:last-child': {
47
+ display: 'block'
48
+ },
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
50
+ '> .extensionView-content-wrap:last-child': {
51
+ display: 'block'
52
+ }
53
+ },
54
+ // Headings Shared Styles -> Heading With Alignment Styles
55
+ // Override marginTop: 0 with default margin found in headingsSharedStyles for first heading in alignment block that is not the first child
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
57
+ '.fabric-editor-block-mark.fabric-editor-alignment:not(:first-child)': {
58
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
59
+ '> h1:first-child': {
60
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
61
+ marginTop: '1.667em'
62
+ },
63
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
64
+ '> h2:first-child': {
65
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
66
+ marginTop: '1.8em'
67
+ },
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
69
+ '> h3:first-child': {
70
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
71
+ marginTop: '2em'
72
+ },
73
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
74
+ '> h4:first-child': {
75
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
76
+ marginTop: '1.357em'
77
+ },
78
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
79
+ '> h5:first-child': {
80
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
81
+ marginTop: '1.667em'
82
+ },
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
84
+ '> h6:first-child': {
85
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
86
+ marginTop: '1.455em'
87
+ }
88
+ },
89
+ // Set marginTop: 0 if alignment block is next to a gap cursor or widget that is first child
90
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
91
+ '.ProseMirror-gapcursor:first-child + .fabric-editor-block-mark.fabric-editor-alignment, .ProseMirror-widget:first-child + .fabric-editor-block-mark.fabric-editor-alignment, .ProseMirror-widget:first-child + .ProseMirror-widget:nth-child(2) + .fabric-editor-block-mark.fabric-editor-alignment': {
92
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
93
+ '> :is(h1, h2, h3, h4, h5, h6):first-child': {
94
+ marginTop: '0'
95
+ }
96
+ }
97
+ }
98
+ });
99
+
100
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
101
+ export var blocktypeStyles_fg_platform_editor_typography_ugc = css({
102
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
103
+ '.ProseMirror': {
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
105
+ '& h1': {
106
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
107
+ font: 'var(--editor-font-ugc-token-heading-h1)',
108
+ marginBottom: 0,
109
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
110
+ marginTop: '1.45833em',
111
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
112
+ '& strong': {
113
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
114
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
115
+ }
116
+ },
117
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
118
+ '& h2': {
119
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
120
+ font: 'var(--editor-font-ugc-token-heading-h2)',
121
+ marginBottom: 0,
122
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
123
+ marginTop: '1.4em',
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
125
+ '& strong': {
126
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
127
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
128
+ }
129
+ },
130
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
131
+ '& h3': {
132
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
133
+ font: 'var(--editor-font-ugc-token-heading-h3)',
134
+ marginBottom: 0,
135
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
136
+ marginTop: '1.31249em',
137
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
138
+ '& strong': {
139
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
140
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
141
+ }
142
+ },
143
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
144
+ '& h4': {
145
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
146
+ font: 'var(--editor-font-ugc-token-heading-h4)',
147
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
148
+ marginTop: '1.25em',
149
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
150
+ '& strong': {
151
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
152
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
153
+ }
154
+ },
155
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
156
+ '& h5': {
157
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
158
+ font: 'var(--editor-font-ugc-token-heading-h5)',
159
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
160
+ marginTop: '1.45833em',
161
+ textTransform: 'none',
162
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
163
+ '& strong': {
164
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
165
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
166
+ }
167
+ },
168
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
169
+ '& h6': {
170
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
171
+ font: 'var(--editor-font-ugc-token-heading-h6)',
172
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
173
+ marginTop: '1.59091em',
174
+ textTransform: 'none',
175
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
176
+ '& strong': {
177
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
178
+ fontWeight: 'var(--editor-font-ugc-token-weight-heading-bold)'
179
+ }
180
+ }
181
+ }
182
+ });
183
+
184
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
185
+ export var blocktypeStyles_without_fg_platform_editor_typography_ugc = css({
186
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
187
+ '.ProseMirror': {
188
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
189
+ '& h1': {
190
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
191
+ fontSize: 'calc(24em / 14)',
192
+ fontStyle: 'inherit',
193
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
194
+ lineHeight: 'calc(28 / 24)',
195
+ color: "var(--ds-text, #172B4D)",
196
+ fontWeight: "var(--ds-font-weight-medium, 500)",
197
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
198
+ letterSpacing: "-0.01em",
199
+ marginBottom: 0,
200
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
201
+ marginTop: '1.667em'
202
+ },
203
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
204
+ '& h2': {
205
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
206
+ fontSize: 'calc(20em / 14)',
207
+ fontStyle: 'inherit',
208
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
209
+ lineHeight: 'calc(24 / 20)',
210
+ color: "var(--ds-text, #172B4D)",
211
+ fontWeight: "var(--ds-font-weight-medium, 500)",
212
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
213
+ letterSpacing: "-0.008em",
214
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
215
+ marginTop: '1.8em',
216
+ marginBottom: 0
217
+ },
218
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
219
+ '& h3': {
220
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
221
+ fontSize: 'calc(16em / 14)',
222
+ fontStyle: 'inherit',
223
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
224
+ lineHeight: 'calc(20 / 16)',
225
+ color: "var(--ds-text, #172B4D)",
226
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
227
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
228
+ letterSpacing: "-0.006em",
229
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
230
+ marginTop: '2em',
231
+ marginBottom: 0
232
+ },
233
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
234
+ '& h4': {
235
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
236
+ fontSize: 'calc(14em / 14)',
237
+ fontStyle: 'inherit',
238
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
239
+ lineHeight: 'calc(16 / 14)',
240
+ color: "var(--ds-text, #172B4D)",
241
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
242
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
243
+ letterSpacing: "-0.003em",
244
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
245
+ marginTop: '1.357em'
246
+ },
247
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
248
+ '& h5': {
249
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
250
+ fontSize: 'calc(12em / 14)',
251
+ fontStyle: 'inherit',
252
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
253
+ lineHeight: 'calc(16 / 12)',
254
+ color: "var(--ds-text, #172B4D)",
255
+ fontWeight: "var(--ds-font-weight-semibold, 600)",
256
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
257
+ marginTop: '1.667em',
258
+ textTransform: 'none'
259
+ },
260
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
261
+ '& h6': {
262
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
263
+ fontSize: 'calc(11em / 14)',
264
+ fontStyle: 'inherit',
265
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
266
+ lineHeight: 'calc(16 / 11)',
267
+ color: "var(--ds-text-subtlest, #626F86)",
268
+ fontWeight: "var(--ds-font-weight-bold, 700)",
269
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
270
+ marginTop: '1.455em',
271
+ textTransform: 'none'
272
+ }
273
+ }
274
+ });
275
+
276
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
277
+ export var blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes = css({
278
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
279
+ '.ak-editor-content-area.appearance-full-page .ProseMirror blockquote': {
280
+ paddingLeft: "var(--ds-space-250, 20px)"
281
+ },
282
+ // Don't want extra padding for inline editor (nested)
283
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
284
+ '.ak-editor-content-area .ak-editor-content-area .ProseMirror blockquote': {
285
+ paddingLeft: "var(--ds-space-200, 16px)"
286
+ }
287
+ });
@@ -0,0 +1,53 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
2
+ import { css } from '@emotion/react';
3
+
4
+ /**
5
+ * Use when fg('platform_editor_typography_ugc') is disabled.
6
+ */
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
8
+ export var editorUGCTokensDefault = css({
9
+ '--editor-font-ugc-token-heading-h1': 'normal 500 1.71429em/1.16667 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
10
+ '--editor-font-ugc-token-heading-h2': 'normal 500 1.42857em/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
11
+ '--editor-font-ugc-token-heading-h3': 'normal 600 1.14286em/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
12
+ '--editor-font-ugc-token-heading-h4': 'normal 600 1em/1.14286 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
13
+ '--editor-font-ugc-token-heading-h5': 'normal 600 0.857143em/1.33333 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
14
+ '--editor-font-ugc-token-heading-h6': 'normal 700 0.785714em/1.45455 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
15
+ '--editor-font-ugc-token-body': 'normal 400 1em/1.714 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
16
+ '--editor-font-ugc-token-weight-heading-bold': '700'
17
+ });
18
+
19
+ /**
20
+ * Use when fg('platform_editor_typography_ugc') is enabled, but none of the following are enabled:
21
+ * - fg('platform-dst-jira-web-fonts')
22
+ * - fg('confluence_typography_refreshed')
23
+ * - fg('atlas_editor_typography_refreshed')
24
+ */
25
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
26
+ export var editorUGCTokensModernized = css({
27
+ '--editor-font-ugc-token-heading-h1': 'normal 600 1.71429em/1.16667 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
28
+ '--editor-font-ugc-token-heading-h2': 'normal 600 1.42857em/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
29
+ '--editor-font-ugc-token-heading-h3': 'normal 600 1.14286em/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
30
+ '--editor-font-ugc-token-heading-h4': 'normal 600 1em/1.14286 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
31
+ '--editor-font-ugc-token-heading-h5': 'normal 600 0.857143em/1.33333 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
32
+ '--editor-font-ugc-token-heading-h6': 'normal 600 0.785714em/1.45455 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
33
+ '--editor-font-ugc-token-body': 'normal 400 1em/1.714 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
34
+ '--editor-font-ugc-token-weight-heading-bold': '700'
35
+ });
36
+
37
+ /**
38
+ * Use when fg('platform_editor_typography_ugc') is enabled and one of the following are enabled:
39
+ * - fg('platform-dst-jira-web-fonts')
40
+ * - fg('confluence_typography_refreshed')
41
+ * - fg('atlas_editor_typography_refreshed')
42
+ */
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
44
+ export var editorUGCTokensRefreshed = css({
45
+ '--editor-font-ugc-token-heading-h1': 'normal 600 1.71429em/1.16667 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
46
+ '--editor-font-ugc-token-heading-h2': 'normal 600 1.42857em/1.2 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
47
+ '--editor-font-ugc-token-heading-h3': 'normal 600 1.14286em/1.25 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
48
+ '--editor-font-ugc-token-heading-h4': 'normal 600 1em/1.14286 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
49
+ '--editor-font-ugc-token-heading-h5': 'normal 600 0.857143em/1.33333 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
50
+ '--editor-font-ugc-token-heading-h6': 'normal 600 0.785714em/1.45455 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
51
+ '--editor-font-ugc-token-body': 'normal 400 1em/1.714 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
52
+ '--editor-font-ugc-token-weight-heading-bold': '700'
53
+ });
@@ -1,6 +1,6 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
3
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18;
4
4
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
5
5
  import { css } from '@emotion/react';
6
6
  import { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from '@atlaskit/editor-common/styles';
@@ -76,45 +76,45 @@ var layoutBorderViewStyles = css(_templateObject8 || (_templateObject8 = _tagged
76
76
  var columnSeparatorBaseStyles = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\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"])), akEditorSelectedBorderSize, "var(--ds-border, #091E4224)");
77
77
 
78
78
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
79
- var columnSeparatorViewStyles = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t[data-layout-content]::before {\n\t\tborder-left: 0;\n\t}\n"])));
79
+ var columnSeparatorViewStyles = css(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["\n\t[data-layout-content]::before {\n\t\tborder-left: 0;\n\t}\n"])));
80
80
 
81
81
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
82
- var rowSeparatorBaseStyles = css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\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"])), akEditorSelectedBorderSize, "var(--ds-border, #091E4224)");
82
+ var rowSeparatorBaseStyles = css(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["\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"])), akEditorSelectedBorderSize, "var(--ds-border, #091E4224)");
83
83
 
84
84
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
85
- var rowSeparatorViewStyles = css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t[data-layout-content]::before {\n\t\tborder-top: 0;\n\t}\n"])));
85
+ var rowSeparatorViewStyles = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t[data-layout-content]::before {\n\t\tborder-top: 0;\n\t}\n"])));
86
86
 
87
87
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
88
88
  var layoutWithSeparatorBorderResponsiveBaseStyles = function layoutWithSeparatorBorderResponsiveBaseStyles(breakpoint
89
89
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
90
90
  ) {
91
- return css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\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"])), akEditorSelectedNodeClassName, breakpoint, rowSeparatorBaseStyles);
91
+ return css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\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"])), akEditorSelectedNodeClassName, breakpoint, rowSeparatorBaseStyles);
92
92
  };
93
93
 
94
94
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
95
95
  var layoutWithSeparatorBorderResponsiveViewStyles = function layoutWithSeparatorBorderResponsiveViewStyles(breakpoint
96
96
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
97
97
  ) {
98
- return css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\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"])), akEditorSelectedNodeClassName, breakpoint, rowSeparatorViewStyles);
98
+ return css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\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"])), akEditorSelectedNodeClassName, breakpoint, rowSeparatorViewStyles);
99
99
  };
100
100
 
101
101
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
102
- var layoutWithSeparatorBorderBaseStyles = css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\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(akEditorDeleteBackground, ")"), akEditorSelectedBorderSize, akEditorDeleteBorder, columnSeparatorBaseStyles, akEditorSelectedNodeClassName, akEditorSelectedBorderSize, "var(--ds-border-selected, #0C66E4)", "var(--ds-background-selected, #E9F2FF)", getSelectionStyles([SelectionStyle.Blanket]), columnSeparatorBaseStyles);
102
+ var layoutWithSeparatorBorderBaseStyles = css(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\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(akEditorDeleteBackground, ")"), akEditorSelectedBorderSize, akEditorDeleteBorder, columnSeparatorBaseStyles, akEditorSelectedNodeClassName, akEditorSelectedBorderSize, "var(--ds-border-selected, #0C66E4)", "var(--ds-background-selected, #E9F2FF)", getSelectionStyles([SelectionStyle.Blanket]), columnSeparatorBaseStyles);
103
103
 
104
104
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
105
- var layoutWithSeparatorBorderViewStyles = css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\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, akEditorDeleteBorder, columnSeparatorViewStyles, akEditorSelectedNodeClassName, "var(--ds-border-selected, #0C66E4)", columnSeparatorViewStyles);
105
+ var layoutWithSeparatorBorderViewStyles = css(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\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, akEditorDeleteBorder, columnSeparatorViewStyles, akEditorSelectedNodeClassName, "var(--ds-border-selected, #0C66E4)", columnSeparatorViewStyles);
106
106
 
107
107
  // jest warning: JSDOM version (22) doesn't support the new @container CSS rule
108
108
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
109
- var layoutResponsiveBaseStyles = css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\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));
109
+ var layoutResponsiveBaseStyles = css(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\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));
110
110
 
111
111
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression
112
- var layoutResponsiveViewStyles = css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\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));
112
+ var layoutResponsiveViewStyles = css(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\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));
113
113
 
114
114
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
115
115
  export var layoutBaseStyles = function layoutBaseStyles() {
116
- return css(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\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)", akLayoutGutterOffset + (fg('platform_editor_nested_dnd_styles_changes') ? 8 : 0), akEditorSwoopCubicBezier, editorExperiment('advanced_layouts', true) ? 0 : akEditorSelectedBorderSize, "var(--ds-border, #091E4224)", LAYOUT_COLUMN_PADDING, LAYOUT_COLUMN_PADDING + (fg('platform_editor_nested_dnd_styles_changes') ? 8 : 0), firstNodeWithNotMarginTop(), layoutColumnStyles(), editorExperiment('advanced_layouts', true) ? layoutWithSeparatorBorderBaseStyles : layoutBorderBaseStyles, editorExperiment('advanced_layouts', true) && layoutResponsiveBaseStyles, TableCssClassName.TABLE_CONTAINER, tableMarginFullWidthMode, editorExperiment('advanced_layouts', false) && 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)", " -", akLayoutGutterOffset + 8, "px 0;\n\t\t\t\t}"));
116
+ return css(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\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)", akLayoutGutterOffset + (fg('platform_editor_nested_dnd_styles_changes') ? 8 : 0), akEditorSwoopCubicBezier, editorExperiment('advanced_layouts', true) ? 0 : akEditorSelectedBorderSize, "var(--ds-border, #091E4224)", LAYOUT_COLUMN_PADDING, LAYOUT_COLUMN_PADDING + (fg('platform_editor_nested_dnd_styles_changes') ? 8 : 0), firstNodeWithNotMarginTop(), layoutColumnStyles(), editorExperiment('advanced_layouts', true) ? layoutWithSeparatorBorderBaseStyles : layoutBorderBaseStyles, editorExperiment('advanced_layouts', true) && layoutResponsiveBaseStyles, TableCssClassName.TABLE_CONTAINER, tableMarginFullWidthMode, editorExperiment('advanced_layouts', false) && 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)", " -", akLayoutGutterOffset + 8, "px 0;\n\t\t\t\t}"));
117
117
  };
118
118
 
119
119
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Needs manual remediation
120
- export var layoutViewStyles = css(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\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"])), editorExperiment('advanced_layouts', true) ? layoutWithSeparatorBorderViewStyles : layoutBorderViewStyles, editorExperiment('advanced_layouts', true) && layoutResponsiveViewStyles);
120
+ export var layoutViewStyles = css(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\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"])), editorExperiment('advanced_layouts', true) ? layoutWithSeparatorBorderViewStyles : layoutBorderViewStyles, editorExperiment('advanced_layouts', true) && layoutResponsiveViewStyles);
@@ -8,6 +8,7 @@ export var resizerHandleClassName = 'resizer-handle';
8
8
  export var resizerHandleTrackClassName = "".concat(resizerHandleClassName, "-track");
9
9
  export var resizerHandleThumbClassName = "".concat(resizerHandleClassName, "-thumb");
10
10
  export var resizerDangerClassName = "".concat(resizerHandleClassName, "-danger");
11
+ export var resizerHandleThumbWidth = 3;
11
12
  export var handleWrapperClass = 'resizer-handle-wrapper';
12
13
 
13
14
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
@@ -239,7 +240,7 @@ export var pragmaticResizerStyles = css({
239
240
  },
240
241
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
241
242
  '.pm-breakout-resize-handle-inner': {
242
- minWidth: 3,
243
+ minWidth: "".concat(resizerHandleThumbWidth, "px"),
243
244
  // copied from resizeStyles.clamped
244
245
  height: 'clamp(27px, calc(100% - 32px), 96px)',
245
246
  background: "var(--ds-border, #091E4224)",
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "207.12.3";
2
+ export var version = "207.13.0";
@@ -718,6 +718,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
718
718
  setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
719
719
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
720
720
  };
721
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
722
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
723
+ commands: {
724
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
725
+ };
721
726
  }, undefined>>];
722
727
  actions?: {
723
728
  suppressToolbar?: (() => boolean) | undefined;
@@ -799,6 +804,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
799
804
  setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
800
805
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
801
806
  };
807
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
808
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
809
+ commands: {
810
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
811
+ };
802
812
  }, undefined>>];
803
813
  actions?: {
804
814
  suppressToolbar?: (() => boolean) | undefined;
@@ -882,6 +892,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
882
892
  setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
883
893
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
884
894
  };
895
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
896
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
897
+ commands: {
898
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
899
+ };
885
900
  }, undefined>>];
886
901
  actions?: {
887
902
  suppressToolbar?: (() => boolean) | undefined;
@@ -770,6 +770,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
770
770
  setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
771
771
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
772
772
  };
773
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
774
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
775
+ commands: {
776
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
777
+ };
773
778
  }, undefined>>];
774
779
  actions?: {
775
780
  suppressToolbar?: (() => boolean) | undefined;
@@ -851,6 +856,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
851
856
  setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
852
857
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
853
858
  };
859
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
860
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
861
+ commands: {
862
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
863
+ };
854
864
  }, undefined>>];
855
865
  actions?: {
856
866
  suppressToolbar?: (() => boolean) | undefined;
@@ -934,6 +944,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
934
944
  setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
935
945
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
936
946
  };
947
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
948
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
949
+ commands: {
950
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
951
+ };
937
952
  }, undefined>>];
938
953
  actions?: {
939
954
  suppressToolbar?: (() => boolean) | undefined;
@@ -718,6 +718,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
718
718
  setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
719
719
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
720
720
  };
721
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
722
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
723
+ commands: {
724
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
725
+ };
721
726
  }, undefined>>];
722
727
  actions?: {
723
728
  suppressToolbar?: (() => boolean) | undefined;
@@ -799,6 +804,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
799
804
  setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
800
805
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
801
806
  };
807
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
808
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
809
+ commands: {
810
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
811
+ };
802
812
  }, undefined>>];
803
813
  actions?: {
804
814
  suppressToolbar?: (() => boolean) | undefined;
@@ -882,6 +892,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
882
892
  setMultiSelectPositions: (anchor?: number | undefined, head?: number | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
883
893
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean | undefined) => import("@atlaskit/editor-common/types").EditorCommand;
884
894
  };
895
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
896
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
897
+ commands: {
898
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
899
+ };
885
900
  }, undefined>>];
886
901
  actions?: {
887
902
  suppressToolbar?: (() => boolean) | undefined;
@@ -0,0 +1,4 @@
1
+ export declare const blocktypeStyles: import("@emotion/react").SerializedStyles;
2
+ export declare const blocktypeStyles_fg_platform_editor_typography_ugc: import("@emotion/react").SerializedStyles;
3
+ export declare const blocktypeStyles_without_fg_platform_editor_typography_ugc: import("@emotion/react").SerializedStyles;
4
+ export declare const blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Use when fg('platform_editor_typography_ugc') is disabled.
3
+ */
4
+ export declare const editorUGCTokensDefault: import("@emotion/react").SerializedStyles;
5
+ /**
6
+ * Use when fg('platform_editor_typography_ugc') is enabled, but none of the following are enabled:
7
+ * - fg('platform-dst-jira-web-fonts')
8
+ * - fg('confluence_typography_refreshed')
9
+ * - fg('atlas_editor_typography_refreshed')
10
+ */
11
+ export declare const editorUGCTokensModernized: import("@emotion/react").SerializedStyles;
12
+ /**
13
+ * Use when fg('platform_editor_typography_ugc') is enabled and one of the following are enabled:
14
+ * - fg('platform-dst-jira-web-fonts')
15
+ * - fg('confluence_typography_refreshed')
16
+ * - fg('atlas_editor_typography_refreshed')
17
+ */
18
+ export declare const editorUGCTokensRefreshed: import("@emotion/react").SerializedStyles;
@@ -5,6 +5,7 @@ export declare const resizerHandleClassName = "resizer-handle";
5
5
  export declare const resizerHandleTrackClassName = "resizer-handle-track";
6
6
  export declare const resizerHandleThumbClassName = "resizer-handle-thumb";
7
7
  export declare const resizerDangerClassName = "resizer-handle-danger";
8
+ export declare const resizerHandleThumbWidth = 3;
8
9
  export declare const handleWrapperClass = "resizer-handle-wrapper";
9
10
  export declare const resizerStyles: import("@emotion/react").SerializedStyles;
10
11
  export declare const pragmaticResizerStyles: import("@emotion/react").SerializedStyles;