@atlaskit/editor-core 207.12.4 → 207.13.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 +25 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +14 -5
- package/dist/cjs/ui/EditorContentContainer/styles/blockTypeStyles.js +294 -0
- package/dist/cjs/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +59 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +22 -3
- package/dist/es2019/ui/EditorContentContainer/styles/blockTypeStyles.js +287 -0
- package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +53 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +11 -2
- package/dist/esm/ui/EditorContentContainer/styles/blockTypeStyles.js +287 -0
- package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +53 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/blockTypeStyles.d.ts +4 -0
- package/dist/types/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +18 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/blockTypeStyles.d.ts +4 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/editorUGCTokenStyles.d.ts +18 -0
- package/package.json +2 -10
|
@@ -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,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "207.
|
|
2
|
+
export var version = "207.13.1";
|
|
@@ -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;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "207.
|
|
3
|
+
"version": "207.13.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
63
63
|
"@atlaskit/react-ufo": "^3.13.0",
|
|
64
64
|
"@atlaskit/task-decision": "^19.2.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^5.7.0",
|
|
66
66
|
"@atlaskit/tokens": "^4.9.0",
|
|
67
67
|
"@atlaskit/tooltip": "^20.2.0",
|
|
68
68
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -298,10 +298,6 @@
|
|
|
298
298
|
"type": "boolean",
|
|
299
299
|
"referenceOnly": true
|
|
300
300
|
},
|
|
301
|
-
"platform_editor_fix_drag_and_drop_lists": {
|
|
302
|
-
"type": "boolean",
|
|
303
|
-
"referenceOnly": true
|
|
304
|
-
},
|
|
305
301
|
"platform_editor_table_overflow_in_full_width_fix": {
|
|
306
302
|
"type": "boolean",
|
|
307
303
|
"referenceOnly": true
|
|
@@ -548,10 +544,6 @@
|
|
|
548
544
|
"type": "boolean",
|
|
549
545
|
"referenceOnly": true
|
|
550
546
|
},
|
|
551
|
-
"platform_editor_comments_api_manager_select": {
|
|
552
|
-
"type": "boolean",
|
|
553
|
-
"referenceOnly": true
|
|
554
|
-
},
|
|
555
547
|
"platform_editor_elements_dnd_multi_select_patch_3": {
|
|
556
548
|
"type": "boolean",
|
|
557
549
|
"referenceOnly": true
|