@atlaskit/editor-core 207.3.0 → 207.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/cjs/presets/default.js +8 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +3 -3
- package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +230 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/default.js +8 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +4 -5
- package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +357 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/default.js +8 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +4 -4
- package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +224 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/presets/default.d.ts +14 -4
- package/dist/types/types/editor-props.d.ts +11 -10
- package/dist/types/ui/EditorContentContainer/styles/mediaStyles.d.ts +1 -0
- package/dist/types-ts4.5/presets/default.d.ts +14 -4
- package/dist/types-ts4.5/types/editor-props.d.ts +11 -10
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/mediaStyles.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { css } from '@emotion/react'; // eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
|
+
|
|
3
|
+
import { INLINE_IMAGE_WRAPPER_CLASS_NAME } from '@atlaskit/editor-common/media-inline';
|
|
4
|
+
import { MediaSharedClassNames, richMediaClassName } from '@atlaskit/editor-common/styles';
|
|
5
|
+
import { akEditorMediaResizeHandlerPadding, akEditorMediaResizeHandlerPaddingWide, akEditorSelectedBorderBoldSize, akEditorSelectedBoxShadow, akEditorSelectedNodeClassName, akEditorWrappedNodeZIndex } from '@atlaskit/editor-shared-styles';
|
|
6
|
+
import { fileCardImageViewSelector, inlinePlayerClassName, newFileExperienceClassName } from '@atlaskit/media-card';
|
|
7
|
+
const wrappedMediaBreakoutPoint = 410;
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Reference Heights
|
|
11
|
+
*
|
|
12
|
+
* These heights enforce consistent sizes with media inline nodes due to
|
|
13
|
+
* inconsistencies with center aligned inline nodes and text.
|
|
14
|
+
*
|
|
15
|
+
* There is conversation about refactoring media inline nodes to conform to
|
|
16
|
+
* aligning correctly with the surrounding text.
|
|
17
|
+
*
|
|
18
|
+
* These constants originally came from `headingSizes` from the `theme` package
|
|
19
|
+
* and have been copied here to remove this package.
|
|
20
|
+
*/
|
|
21
|
+
const referenceHeights = {
|
|
22
|
+
p: 24 - 2,
|
|
23
|
+
h1: 32 + 4,
|
|
24
|
+
h2: 28 + 3,
|
|
25
|
+
h3: 24 + 1,
|
|
26
|
+
h4: 20 + 3,
|
|
27
|
+
h5: 16 + 4,
|
|
28
|
+
h6: 16 + 2
|
|
29
|
+
};
|
|
30
|
+
const inlineImageSelector = `> .mediaInlineView-content-wrap > .${INLINE_IMAGE_WRAPPER_CLASS_NAME}, > :is(a, span[data-mark-type='border']) .mediaInlineView-content-wrap > .${INLINE_IMAGE_WRAPPER_CLASS_NAME}, > .${INLINE_IMAGE_WRAPPER_CLASS_NAME}, > :is(a, span[data-mark-type='border']) .${INLINE_IMAGE_WRAPPER_CLASS_NAME}`;
|
|
31
|
+
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles,@atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
33
|
+
export const mediaStyles = css({
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
35
|
+
'.ProseMirror': {
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-imported-style-values
|
|
37
|
+
[`li .${richMediaClassName}`]: {
|
|
38
|
+
margin: 0
|
|
39
|
+
},
|
|
40
|
+
// Hack for chrome to fix media single position inside a list when media is the first child
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
42
|
+
'&.ua-chrome li > .mediaSingleView-content-wrap::before': {
|
|
43
|
+
content: "''",
|
|
44
|
+
display: 'block',
|
|
45
|
+
height: 0
|
|
46
|
+
},
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
48
|
+
'&.ua-firefox': {
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
50
|
+
'.mediaSingleView-content-wrap': {
|
|
51
|
+
userSelect: 'none'
|
|
52
|
+
},
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
54
|
+
'.captionView-content-wrap': {
|
|
55
|
+
userSelect: 'text'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
59
|
+
".mediaSingleView-content-wrap[layout^='wrap-']": {
|
|
60
|
+
position: 'relative',
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-imported-style-values
|
|
62
|
+
zIndex: akEditorWrappedNodeZIndex,
|
|
63
|
+
maxWidth: '100%',
|
|
64
|
+
/* overwrite default Prosemirror setting making it clear: both */
|
|
65
|
+
clear: 'inherit'
|
|
66
|
+
},
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
68
|
+
".mediaSingleView-content-wrap[layout='center']": {
|
|
69
|
+
clear: 'both'
|
|
70
|
+
},
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-imported-style-values
|
|
72
|
+
[`table .${richMediaClassName}`]: {
|
|
73
|
+
marginTop: "var(--ds-space-150, 12px)",
|
|
74
|
+
marginBottom: "var(--ds-space-150, 12px)",
|
|
75
|
+
clear: 'both',
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
77
|
+
'&.image-wrap-left[data-layout], &.image-wrap-right[data-layout]': {
|
|
78
|
+
clear: 'none',
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
80
|
+
'&:first-child': {
|
|
81
|
+
marginTop: "var(--ds-space-150, 12px)"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-imported-style-values
|
|
86
|
+
[`.${richMediaClassName}.image-wrap-right + .${richMediaClassName}.image-wrap-left`]: {
|
|
87
|
+
clear: 'both'
|
|
88
|
+
},
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-imported-style-values
|
|
90
|
+
[`.${richMediaClassName}.image-wrap-left + .${richMediaClassName}.image-wrap-right, .${richMediaClassName}.image-wrap-right + .${richMediaClassName}.image-wrap-left, .${richMediaClassName}.image-wrap-left + .${richMediaClassName}.image-wrap-left, .${richMediaClassName}.image-wrap-right + .${richMediaClassName}.image-wrap-right`]: {
|
|
91
|
+
marginRight: 0,
|
|
92
|
+
marginLeft: 0
|
|
93
|
+
},
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
95
|
+
[`@media all and (max-width: ${wrappedMediaBreakoutPoint}px)`]: {
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
97
|
+
"div.mediaSingleView-content-wrap[layout='wrap-left'], div.mediaSingleView-content-wrap[data-layout='wrap-left'], div.mediaSingleView-content-wrap[layout='wrap-right'], div.mediaSingleView-content-wrap[data-layout='wrap-right']": {
|
|
98
|
+
float: 'none',
|
|
99
|
+
overflow: 'auto',
|
|
100
|
+
margin: `${"var(--ds-space-150, 12px)"} 0`
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
104
|
+
[`& [layout='full-width'] .${richMediaClassName}, & [layout='wide'] .${richMediaClassName}`]: {
|
|
105
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
106
|
+
marginLeft: '50%',
|
|
107
|
+
transform: 'translateX(-50%)'
|
|
108
|
+
},
|
|
109
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
110
|
+
".media-extended-resize-experience[layout^='wrap-']": {
|
|
111
|
+
// override 'overflow: auto' when viewport <= 410 set by mediaSingleSharedStyle
|
|
112
|
+
// to prevent scroll bar
|
|
113
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
114
|
+
overflow: 'visible !important'
|
|
115
|
+
},
|
|
116
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
117
|
+
"& [layout^='wrap-'] + [layout^='wrap-']": {
|
|
118
|
+
clear: 'none',
|
|
119
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
120
|
+
"& + p, & + div[class^='fabric-editor-align'], & + ul, & + ol, & + h1, & + h2, & + h3, & + h4, & + h5, & + h6": {
|
|
121
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
122
|
+
clear: 'both !important'
|
|
123
|
+
},
|
|
124
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
125
|
+
[`& .${richMediaClassName}`]: {
|
|
126
|
+
marginLeft: 0,
|
|
127
|
+
marginRight: 0
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
// Shifting the mediaInline image component (renders image) to align nicely with
|
|
131
|
+
// mediaInline (renders text) is a bit of a testing ground. This numbers represent
|
|
132
|
+
// shift in top and bottom and size adjustments to make up for lack of 1to1 size
|
|
133
|
+
// mapping
|
|
134
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
135
|
+
[`.${INLINE_IMAGE_WRAPPER_CLASS_NAME}`]: {
|
|
136
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
137
|
+
height: referenceHeights['p'],
|
|
138
|
+
transform: 'translateY(-2px)'
|
|
139
|
+
},
|
|
140
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
141
|
+
h1: {
|
|
142
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
143
|
+
[inlineImageSelector]: {
|
|
144
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
145
|
+
height: referenceHeights.h1,
|
|
146
|
+
transform: `translateY(-3px)`
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
150
|
+
h2: {
|
|
151
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
152
|
+
[inlineImageSelector]: {
|
|
153
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
154
|
+
height: referenceHeights.h2,
|
|
155
|
+
transform: `translateY(-3px)`
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
159
|
+
h3: {
|
|
160
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
161
|
+
[inlineImageSelector]: {
|
|
162
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
163
|
+
height: referenceHeights.h3,
|
|
164
|
+
transform: `translateY(-2px)`
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
168
|
+
h4: {
|
|
169
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
170
|
+
[inlineImageSelector]: {
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
172
|
+
height: referenceHeights.h4,
|
|
173
|
+
transform: `translateY(-2px)`
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
177
|
+
h5: {
|
|
178
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
179
|
+
[inlineImageSelector]: {
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
181
|
+
height: referenceHeights.h5,
|
|
182
|
+
transform: `translateY(-2px)`
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
186
|
+
h6: {
|
|
187
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
188
|
+
[inlineImageSelector]: {
|
|
189
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
190
|
+
height: referenceHeights.h6,
|
|
191
|
+
transform: `translateY(-2px)`
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
195
|
+
".mediaSingleView-content-wrap[layout='wrap-left']": {
|
|
196
|
+
float: 'left'
|
|
197
|
+
},
|
|
198
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
199
|
+
".mediaSingleView-content-wrap[layout='wrap-right']": {
|
|
200
|
+
float: 'right'
|
|
201
|
+
},
|
|
202
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
203
|
+
".mediaSingleView-content-wrap[layout='wrap-right'] + .mediaSingleView-content-wrap[layout='wrap-left']": {
|
|
204
|
+
clear: 'both'
|
|
205
|
+
},
|
|
206
|
+
// Larger margins for resize handlers when at depth 0 of the document
|
|
207
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
208
|
+
'& > .mediaSingleView-content-wrap': {
|
|
209
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
210
|
+
'.richMedia-resize-handle-right': {
|
|
211
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
212
|
+
marginRight: `-${akEditorMediaResizeHandlerPaddingWide}px`
|
|
213
|
+
},
|
|
214
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
215
|
+
'.richMedia-resize-handle-left': {
|
|
216
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
217
|
+
marginLeft: `-${akEditorMediaResizeHandlerPaddingWide}px`
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values,@atlaskit/ui-styling-standard/no-imported-style-values
|
|
222
|
+
[`.${MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT}`]: {
|
|
223
|
+
padding: 0
|
|
224
|
+
},
|
|
225
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
226
|
+
'.richMedia-resize-handle-right, .richMedia-resize-handle-left': {
|
|
227
|
+
display: 'flex',
|
|
228
|
+
flexDirection: 'column',
|
|
229
|
+
/* vertical align */
|
|
230
|
+
justifyContent: 'center'
|
|
231
|
+
},
|
|
232
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
233
|
+
'.richMedia-resize-handle-right': {
|
|
234
|
+
alignItems: 'flex-end',
|
|
235
|
+
paddingRight: "var(--ds-space-150, 12px)",
|
|
236
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
237
|
+
marginRight: `-${akEditorMediaResizeHandlerPadding}px`
|
|
238
|
+
},
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
240
|
+
'.richMedia-resize-handle-left': {
|
|
241
|
+
alignItems: 'flex-start',
|
|
242
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
243
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
244
|
+
marginLeft: `-${akEditorMediaResizeHandlerPadding}px`
|
|
245
|
+
},
|
|
246
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
247
|
+
'.richMedia-resize-handle-right::after, .richMedia-resize-handle-left::after': {
|
|
248
|
+
content: "' '",
|
|
249
|
+
display: 'flex',
|
|
250
|
+
width: 3,
|
|
251
|
+
height: 64,
|
|
252
|
+
borderRadius: 6
|
|
253
|
+
},
|
|
254
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
255
|
+
[`.${richMediaClassName}:hover .richMedia-resize-handle-left::after, .${richMediaClassName}:hover .richMedia-resize-handle-right::after`]: {
|
|
256
|
+
background: "var(--ds-border, #091E4224)"
|
|
257
|
+
},
|
|
258
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
259
|
+
[`.${akEditorSelectedNodeClassName} .richMedia-resize-handle-right::after, .${akEditorSelectedNodeClassName} .richMedia-resize-handle-left::after, .${richMediaClassName} .richMedia-resize-handle-right:hover::after, .${richMediaClassName} .richMedia-resize-handle-left:hover::after, .${richMediaClassName}.is-resizing .richMedia-resize-handle-right::after, .${richMediaClassName}.is-resizing .richMedia-resize-handle-left::after`]: {
|
|
260
|
+
background: "var(--ds-border-focused, #388BFF)"
|
|
261
|
+
},
|
|
262
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
263
|
+
'.__resizable_base__': {
|
|
264
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
265
|
+
left: 'unset !important',
|
|
266
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
267
|
+
width: 'auto !important',
|
|
268
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
269
|
+
height: 'auto !important'
|
|
270
|
+
},
|
|
271
|
+
// Danger when top level node for smart cards / inline links
|
|
272
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
273
|
+
'.danger > div > div > .media-card-frame, .danger > span > a': {
|
|
274
|
+
backgroundColor: "var(--ds-background-danger, #FFECEB)",
|
|
275
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
276
|
+
boxShadow: `0px 0px 0px ${akEditorSelectedBorderBoldSize}px, ${"var(--ds-border-danger, #E2483D)"}`,
|
|
277
|
+
transition: 'background-color 0s, box-shadow 0s'
|
|
278
|
+
},
|
|
279
|
+
// Danger when nested node or common
|
|
280
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
281
|
+
'.danger': {
|
|
282
|
+
// Media single
|
|
283
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
284
|
+
[`.${richMediaClassName} .${fileCardImageViewSelector}::after`]: {
|
|
285
|
+
border: `1px solid ${"var(--ds-border-danger, #E2483D)"}`
|
|
286
|
+
},
|
|
287
|
+
// Media single video player
|
|
288
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
289
|
+
[`.${richMediaClassName} .${inlinePlayerClassName}::after`]: {
|
|
290
|
+
border: `1px solid ${"var(--ds-border-danger, #E2483D)"}`
|
|
291
|
+
},
|
|
292
|
+
// New file experience
|
|
293
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
294
|
+
[`.${richMediaClassName} .${newFileExperienceClassName}`]: {
|
|
295
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
296
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-danger, #E2483D)"} !important`
|
|
297
|
+
},
|
|
298
|
+
// Media resize legacy handlers
|
|
299
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
300
|
+
'.richMedia-resize-handle-right::after, .richMedia-resize-handle-left::after': {
|
|
301
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
302
|
+
background: `${"var(--ds-icon-danger, #C9372C)"} !important`
|
|
303
|
+
},
|
|
304
|
+
// Media resize new handlers
|
|
305
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
306
|
+
'.resizer-handle-thumb': {
|
|
307
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
308
|
+
background: `${"var(--ds-icon-danger, #C9372C)"} !important`
|
|
309
|
+
},
|
|
310
|
+
// Smart cards
|
|
311
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
312
|
+
'div div .media-card-frame, .inlineCardView-content-wrap > span > a': {
|
|
313
|
+
backgroundColor: `${"var(--ds-blanket-danger, #EF5C4814)"}`,
|
|
314
|
+
transition: `background-color 0s`
|
|
315
|
+
},
|
|
316
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
317
|
+
'div div .media-card-frame::after': {
|
|
318
|
+
boxShadow: 'none'
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
322
|
+
'.warning': {
|
|
323
|
+
// Media single
|
|
324
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
325
|
+
[`.${richMediaClassName} .${fileCardImageViewSelector}::after`]: {
|
|
326
|
+
border: `1px solid ${"var(--ds-border-warning, #E56910)"}`
|
|
327
|
+
},
|
|
328
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
329
|
+
[`.${richMediaClassName} .${inlinePlayerClassName}::after`]: {
|
|
330
|
+
border: `1px solid ${"var(--ds-border-warning, #E56910)"}`
|
|
331
|
+
},
|
|
332
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
333
|
+
[`.${richMediaClassName} .${newFileExperienceClassName}`]: {
|
|
334
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
335
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-warning, #E56910)"} !important`
|
|
336
|
+
},
|
|
337
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
338
|
+
'.resizer-handle-thumb': {
|
|
339
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
340
|
+
background: `${"var(--ds-icon-warning, #E56910)"} !important`
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
344
|
+
'.media-filmstrip-list-item': {
|
|
345
|
+
cursor: 'pointer'
|
|
346
|
+
},
|
|
347
|
+
// When clicking drag handle, mediaGroup node will be selected. Hence we need to apply selected style to each media node
|
|
348
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
349
|
+
[`.mediaGroupView-content-wrap.${akEditorSelectedNodeClassName} #newFileExperienceWrapper`]: {
|
|
350
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
351
|
+
boxShadow: akEditorSelectedBoxShadow
|
|
352
|
+
},
|
|
353
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
354
|
+
'.ak-editor-no-interaction #newFileExperienceWrapper': {
|
|
355
|
+
boxShadow: 'none'
|
|
356
|
+
}
|
|
357
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "207.
|
|
2
|
+
export const version = "207.4.0";
|
|
@@ -42,6 +42,8 @@ import { isFullPage as fullPageCheck } from '../utils/is-full-page';
|
|
|
42
42
|
/**
|
|
43
43
|
* Note: The order that presets are added determines
|
|
44
44
|
* their placement in the editor toolbar
|
|
45
|
+
* @param options
|
|
46
|
+
* @example
|
|
45
47
|
*/
|
|
46
48
|
export function createDefaultPreset(options) {
|
|
47
49
|
var _options$featureFlags, _options$featureFlags2;
|
|
@@ -68,6 +70,12 @@ export function createDefaultPreset(options) {
|
|
|
68
70
|
})]).add([codeBlockPlugin, options.codeBlock]);
|
|
69
71
|
return preset;
|
|
70
72
|
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @param props
|
|
77
|
+
* @example
|
|
78
|
+
*/
|
|
71
79
|
export function useDefaultPreset(props) {
|
|
72
80
|
var preset = createDefaultPreset(props);
|
|
73
81
|
return [preset];
|
|
@@ -17,7 +17,7 @@ import { EmojiSharedCssClassName, defaultEmojiHeight } from '@atlaskit/editor-co
|
|
|
17
17
|
import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
|
|
18
18
|
import { PanelSharedCssClassName } from '@atlaskit/editor-common/panel';
|
|
19
19
|
import { gapCursorStyles } from '@atlaskit/editor-common/selection';
|
|
20
|
-
import { CodeBlockSharedCssClassName, GRID_GUTTER,
|
|
20
|
+
import { CodeBlockSharedCssClassName, GRID_GUTTER, SmartCardSharedCssClassName, blockMarksSharedStyles, codeBlockInListSafariFix, codeMarkSharedStyles, dateSharedStyle, expandClassNames, getSmartCardSharedStyles, gridStyles, indentationSharedStyles, listsSharedStyles, paragraphSharedStyles, resizerStyles, pragmaticResizerStyles, shadowSharedStyle, smartCardSharedStyles, smartCardStyles, tasksAndDecisionsStyles, textColorStyles, unsupportedStyles, whitespaceSharedStyles } from '@atlaskit/editor-common/styles';
|
|
21
21
|
import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
|
|
22
22
|
import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
|
|
23
23
|
import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
|
|
@@ -33,7 +33,6 @@ import { codeBlockStyles } from '../ContentStyles/code-block';
|
|
|
33
33
|
import { dateStyles, dateVanillaStyles } from '../ContentStyles/date';
|
|
34
34
|
import { expandStyles } from '../ContentStyles/expand';
|
|
35
35
|
import { extensionStyles } from '../ContentStyles/extension';
|
|
36
|
-
import { mediaStyles } from '../ContentStyles/media';
|
|
37
36
|
import { panelStyles } from '../ContentStyles/panel';
|
|
38
37
|
import { statusStyles, vanillaStatusStyles } from '../ContentStyles/status';
|
|
39
38
|
import { taskDecisionStyles, vanillaTaskDecisionIconWithoutVisualRefresh as vanillaDecisionIconWithoutVisualRefresh, vanillaTaskDecisionIconWithVisualRefresh as vanillaDecisionIconWithVisualRefresh, vanillaTaskDecisionStyles as vanillaDecisionStyles, vanillaTaskItemStyles } from '../ContentStyles/tasks-and-decisions';
|
|
@@ -43,6 +42,7 @@ import { backgroundColorStyles } from './styles/backgroundColorStyles';
|
|
|
43
42
|
import { embedCardStyles } from './styles/embedCardStyles';
|
|
44
43
|
import { layoutBaseStyles, layoutViewStyles } from './styles/layout';
|
|
45
44
|
import { linkStyles, linkStylesOld } from './styles/link';
|
|
45
|
+
import { mediaStyles } from './styles/mediaStyles';
|
|
46
46
|
import { ruleStyles } from './styles/rule';
|
|
47
47
|
var vanillaMentionsStyles = css({
|
|
48
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -141,7 +141,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
141
141
|
|
|
142
142
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
143
143
|
var contentStyles = function contentStyles() {
|
|
144
|
-
return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n ", ";\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar
|
|
144
|
+
return css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: var(--ak-editor-base-font-size);\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\n\t\t", ";\n\t}\n\n\t", "\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\n\t", "\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n ", ";\n\n\t", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n\t", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t// For FullPage only when inside a table\n\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In the \"editorContentAreaContainerStyle\" function\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n\t is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, whitespaceSharedStyles, paragraphSharedStyles(), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles, listsStyles, ruleStyles, mediaStyles, fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
145
145
|
exposure: false
|
|
146
146
|
}) && vanillaMentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
147
147
|
exposure: false
|
|
@@ -155,7 +155,7 @@ var contentStyles = function contentStyles() {
|
|
|
155
155
|
exposure: false
|
|
156
156
|
}) && fg('platform-visual-refresh-icons') && vanillaDecisionIconWithVisualRefresh, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
157
157
|
exposure: false
|
|
158
|
-
}) && !fg('platform-visual-refresh-icons') && vanillaDecisionIconWithoutVisualRefresh, statusStyles, editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles() : null, annotationStyles, smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, editorExperiment('platform_editor_vanilla_dom', true) ? dateVanillaStyles : null, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, pragmaticResizerStyles(), fixBlockControlStylesSSR(),
|
|
158
|
+
}) && !fg('platform-visual-refresh-icons') && vanillaDecisionIconWithoutVisualRefresh, statusStyles, editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles() : null, annotationStyles, smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, editorExperiment('platform_editor_vanilla_dom', true) ? dateVanillaStyles : null, dateStyles, embedCardStyles, unsupportedStyles, resizerStyles, pragmaticResizerStyles(), fixBlockControlStylesSSR(), !fg('platform-visual-refresh-icons') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
159
159
|
};
|
|
160
160
|
var CommentEditorMargin = 14;
|
|
161
161
|
|