@atlaskit/editor-core 207.3.0 → 207.5.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 +29 -0
- package/dist/cjs/presets/default.js +8 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +11 -1
- package/dist/cjs/ui/ContentStyles/layout.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +7 -4
- package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +230 -0
- package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +211 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/default.js +8 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +11 -1
- package/dist/es2019/ui/ContentStyles/layout.js +1 -2
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +8 -8
- package/dist/es2019/ui/EditorContentContainer/styles/ai-panel.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/styles/layout.js +7 -7
- package/dist/es2019/ui/EditorContentContainer/styles/link.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +357 -0
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +256 -0
- package/dist/es2019/ui/EditorContentContainer/styles/rule.js +2 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/default.js +8 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +11 -1
- package/dist/esm/ui/ContentStyles/layout.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +8 -5
- package/dist/esm/ui/EditorContentContainer/styles/ai-panel.js +1 -1
- package/dist/esm/ui/EditorContentContainer/styles/layout.js +7 -7
- package/dist/esm/ui/EditorContentContainer/styles/link.js +1 -1
- package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +224 -0
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +203 -0
- package/dist/esm/ui/EditorContentContainer/styles/rule.js +2 -2
- 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/ui/EditorContentContainer/styles/resizerStyles.d.ts +10 -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/dist/types-ts4.5/ui/EditorContentContainer/styles/resizerStyles.d.ts +10 -0
- package/package.json +9 -5
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { css } from '@emotion/react'; // eslint-disable-line
|
|
2
|
+
|
|
3
|
+
export const resizerItemClassName = 'resizer-item';
|
|
4
|
+
export const resizerHoverZoneClassName = 'resizer-hover-zone';
|
|
5
|
+
export const resizerExtendedZone = 'resizer-is-extended';
|
|
6
|
+
export const resizerHandleClassName = 'resizer-handle';
|
|
7
|
+
export const resizerHandleTrackClassName = `${resizerHandleClassName}-track`;
|
|
8
|
+
export const resizerHandleThumbClassName = `${resizerHandleClassName}-thumb`;
|
|
9
|
+
export const resizerDangerClassName = `${resizerHandleClassName}-danger`;
|
|
10
|
+
export const handleWrapperClass = 'resizer-handle-wrapper';
|
|
11
|
+
|
|
12
|
+
// 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…
|
|
13
|
+
export const resizerStyles = css({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
15
|
+
[`.${resizerItemClassName}`]: {
|
|
16
|
+
willChange: 'width',
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
18
|
+
'&:hover, &.display-handle': {
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
20
|
+
[`& > .${handleWrapperClass} > .${resizerHandleClassName}`]: {
|
|
21
|
+
visibility: 'visible',
|
|
22
|
+
opacity: 1
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
26
|
+
'&.is-resizing': {
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
28
|
+
[`& .${resizerHandleThumbClassName}`]: {
|
|
29
|
+
background: "var(--ds-border-focused, #388BFF)"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
33
|
+
[`&.${resizerDangerClassName}`]: {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
35
|
+
[`& .${resizerHandleThumbClassName}`]: {
|
|
36
|
+
transition: 'none',
|
|
37
|
+
background: "var(--ds-icon-danger, #C9372C)"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
42
|
+
[`.${resizerHandleClassName}`]: {
|
|
43
|
+
display: 'flex',
|
|
44
|
+
visibility: 'hidden',
|
|
45
|
+
opacity: 0,
|
|
46
|
+
flexDirection: 'column',
|
|
47
|
+
justifyContent: 'center',
|
|
48
|
+
alignItems: 'center',
|
|
49
|
+
width: 7,
|
|
50
|
+
transition: 'visibility 0.2s, opacity 0.2s',
|
|
51
|
+
// NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles
|
|
52
|
+
// into the tooltip
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
54
|
+
"& div[role='presentation']": {
|
|
55
|
+
width: '100%',
|
|
56
|
+
height: '100%',
|
|
57
|
+
display: 'flex',
|
|
58
|
+
flexDirection: 'column',
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
alignItems: 'center',
|
|
61
|
+
marginTop: "var(--ds-space-negative-200, -16px)",
|
|
62
|
+
whiteSpace: 'normal'
|
|
63
|
+
},
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
65
|
+
'&.left': {
|
|
66
|
+
alignItems: 'flex-start'
|
|
67
|
+
},
|
|
68
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
69
|
+
'&.right': {
|
|
70
|
+
alignItems: 'flex-end'
|
|
71
|
+
},
|
|
72
|
+
// Handle Sizing
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
74
|
+
'&.small': {
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
76
|
+
[`& .${resizerHandleThumbClassName}`]: {
|
|
77
|
+
height: 43
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
81
|
+
'&.medium': {
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
83
|
+
[`& .${resizerHandleThumbClassName}`]: {
|
|
84
|
+
height: 64
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
88
|
+
'&.large': {
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
90
|
+
[`& .${resizerHandleThumbClassName}`]: {
|
|
91
|
+
height: 96
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
95
|
+
'&.clamped': {
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
97
|
+
[`& .${resizerHandleThumbClassName}`]: {
|
|
98
|
+
height: 'clamp(43px, calc(100% - 32px), 96px)'
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
// Handle Alignment
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
103
|
+
'&.sticky': {
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
105
|
+
[`& .${resizerHandleThumbClassName}`]: {
|
|
106
|
+
position: 'sticky',
|
|
107
|
+
top: "var(--ds-space-150, 12px)",
|
|
108
|
+
bottom: "var(--ds-space-150, 12px)"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
'&:hover': {
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
113
|
+
[`& .${resizerHandleThumbClassName}`]: {
|
|
114
|
+
background: "var(--ds-border-focused, #388BFF)"
|
|
115
|
+
},
|
|
116
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
117
|
+
[`& .${resizerHandleTrackClassName}`]: {
|
|
118
|
+
visibility: 'visible',
|
|
119
|
+
opacity: 0.5
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
124
|
+
[`.${resizerHandleThumbClassName}`]: {
|
|
125
|
+
content: "' '",
|
|
126
|
+
display: 'flex',
|
|
127
|
+
width: 3,
|
|
128
|
+
margin: `0 ${"var(--ds-space-025, 2px)"}`,
|
|
129
|
+
height: 64,
|
|
130
|
+
transition: 'background-color 0.2s',
|
|
131
|
+
borderRadius: 6,
|
|
132
|
+
border: 0,
|
|
133
|
+
padding: 0,
|
|
134
|
+
zIndex: 2,
|
|
135
|
+
outline: 'none',
|
|
136
|
+
minHeight: 24,
|
|
137
|
+
background: "var(--ds-border, #091E4224)",
|
|
138
|
+
'&:hover': {
|
|
139
|
+
cursor: 'col-resize'
|
|
140
|
+
},
|
|
141
|
+
'&:focus': {
|
|
142
|
+
background: "var(--ds-border-selected, #0C66E4)",
|
|
143
|
+
'&::after': {
|
|
144
|
+
content: "''",
|
|
145
|
+
position: 'absolute',
|
|
146
|
+
top: "var(--ds-space-negative-050, -4px)",
|
|
147
|
+
right: "var(--ds-space-negative-050, -4px)",
|
|
148
|
+
bottom: "var(--ds-space-negative-050, -4px)",
|
|
149
|
+
left: "var(--ds-space-negative-050, -4px)",
|
|
150
|
+
border: `2px solid ${"var(--ds-border-focused, #388BFF)"}`,
|
|
151
|
+
borderRadius: 'inherit',
|
|
152
|
+
zIndex: -1
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
157
|
+
[`.${resizerHandleTrackClassName}`]: {
|
|
158
|
+
visibility: 'hidden',
|
|
159
|
+
position: 'absolute',
|
|
160
|
+
width: 7,
|
|
161
|
+
height: 'calc(100% - 40px)',
|
|
162
|
+
borderRadius: 4,
|
|
163
|
+
opacity: 0,
|
|
164
|
+
transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
|
|
165
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
166
|
+
'&.none': {
|
|
167
|
+
background: 'none'
|
|
168
|
+
},
|
|
169
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
170
|
+
'&.shadow': {
|
|
171
|
+
background: "var(--ds-background-selected, #E9F2FF)"
|
|
172
|
+
},
|
|
173
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
174
|
+
'&.full-height': {
|
|
175
|
+
background: "var(--ds-background-selected, #E9F2FF)",
|
|
176
|
+
height: '100%',
|
|
177
|
+
minHeight: 36
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
181
|
+
'.ak-editor-selected-node': {
|
|
182
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
183
|
+
[`& .${resizerHandleThumbClassName}`]: {
|
|
184
|
+
background: "var(--ds-border-focused, #388BFF)"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
188
|
+
[`.ak-editor-no-interaction .ak-editor-selected-node .${resizerHandleClassName}:not(:hover) .${resizerHandleThumbClassName}`]: {
|
|
189
|
+
background: "var(--ds-border, #091E4224)"
|
|
190
|
+
},
|
|
191
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
192
|
+
[`.${resizerHoverZoneClassName}`]: {
|
|
193
|
+
position: 'relative',
|
|
194
|
+
display: 'inline-block',
|
|
195
|
+
width: '100%',
|
|
196
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
197
|
+
[`&.${resizerExtendedZone}`]: {
|
|
198
|
+
padding: `0 ${"var(--ds-space-150, 12px)"}`,
|
|
199
|
+
left: "var(--ds-space-negative-150, -12px)"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
// This below style is here to make sure the image width is correct when nested in a table
|
|
203
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors,@atlaskit/ui-styling-standard/no-unsafe-values
|
|
204
|
+
[`table .${resizerHoverZoneClassName}, table .${resizerHoverZoneClassName}.${resizerExtendedZone}`]: {
|
|
205
|
+
padding: 'unset',
|
|
206
|
+
left: 'unset'
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
211
|
+
export const pragmaticResizerStyles = css({
|
|
212
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
213
|
+
'.pm-breakout-resize-handle': {
|
|
214
|
+
position: 'relative',
|
|
215
|
+
display: 'flex',
|
|
216
|
+
alignItems: 'center',
|
|
217
|
+
justifyContent: 'center',
|
|
218
|
+
height: '100%',
|
|
219
|
+
width: 7,
|
|
220
|
+
alignSelf: 'center',
|
|
221
|
+
gridRow: 1,
|
|
222
|
+
gridColumn: 1,
|
|
223
|
+
cursor: 'col-resize',
|
|
224
|
+
borderRadius: 4,
|
|
225
|
+
transition: 'background-color 0.2s, visibility 0.2s, opacity 0.2s',
|
|
226
|
+
'&:hover': {
|
|
227
|
+
background: "var(--ds-background-selected, #E9F2FF)",
|
|
228
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
229
|
+
'.pm-breakout-resize-handle-inner': {
|
|
230
|
+
background: "var(--ds-border-focused, #388BFF)"
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
235
|
+
'.pm-breakout-resize-handle-left': {
|
|
236
|
+
justifySelf: 'start',
|
|
237
|
+
left: -20
|
|
238
|
+
},
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
240
|
+
'.pm-breakout-resize-handle-right': {
|
|
241
|
+
justifySelf: 'end',
|
|
242
|
+
right: -20
|
|
243
|
+
},
|
|
244
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
245
|
+
'.pm-breakout-resize-handle-inner': {
|
|
246
|
+
minWidth: 3,
|
|
247
|
+
// copied from resizeStyles.clamped
|
|
248
|
+
height: 'clamp(27px, calc(100% - 32px), 96px)',
|
|
249
|
+
background: "var(--ds-border, #091E4224)",
|
|
250
|
+
borderRadius: 6,
|
|
251
|
+
// sticky styles
|
|
252
|
+
position: 'sticky',
|
|
253
|
+
top: "var(--ds-space-150, 12px)",
|
|
254
|
+
bottom: "var(--ds-space-150, 12px)"
|
|
255
|
+
}
|
|
256
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
|
-
import { css } from
|
|
3
|
-
import { akEditorSelectedNodeClassName } from
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
|
+
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
5
5
|
export const ruleStyles = css({
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "207.
|
|
2
|
+
export const version = "207.5.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];
|
|
@@ -70,6 +70,16 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
70
70
|
if (props.hasHadInteraction && fg('platform_editor_no_cursor_on_live_doc_init')) {
|
|
71
71
|
interactionClassName = props.hasHadInteraction ? 'ak-editor-has-interaction' : 'ak-editor-no-interaction';
|
|
72
72
|
}
|
|
73
|
+
var shouldSetHiddenDataAttribute = function shouldSetHiddenDataAttribute() {
|
|
74
|
+
// When platform_editor_offline_banner_toolbar_position is enabled we use a different method to
|
|
75
|
+
// determine if the toolbar is hidden from outside of the editor, which doesn't require setting
|
|
76
|
+
// data-editor-primary-toolbar-hidden on the content area
|
|
77
|
+
// NOTE: When tidying, this function and the data attribute can be removed
|
|
78
|
+
if (!props.isEditorToolbarHidden || fg('platform_editor_offline_banner_toolbar_position')) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
return editorExperiment('platform_editor_controls', 'variant1');
|
|
82
|
+
};
|
|
73
83
|
return jsx("div", {
|
|
74
84
|
css: [
|
|
75
85
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
@@ -111,7 +121,7 @@ var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
111
121
|
,
|
|
112
122
|
className: "ak-editor-content-area-region",
|
|
113
123
|
"data-editor-editable-content": true,
|
|
114
|
-
"data-editor-primary-toolbar-hidden":
|
|
124
|
+
"data-editor-primary-toolbar-hidden": shouldSetHiddenDataAttribute() ? 'true' : undefined,
|
|
115
125
|
role: "region",
|
|
116
126
|
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
117
127
|
ref: contentAreaRef
|
|
@@ -71,5 +71,5 @@ var layoutResponsiveStyles = function layoutResponsiveStyles(viewMode) {
|
|
|
71
71
|
|
|
72
72
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
73
73
|
export var layoutStyles = function layoutStyles(viewMode) {
|
|
74
|
-
return css(_templateObject13 || (_templateObject13 = _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
|
|
74
|
+
return css(_templateObject13 || (_templateObject13 = _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: ", ";\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 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 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') ? AK_NESTED_DND_GUTTER_OFFSET : 0), akEditorSwoopCubicBezier, viewMode === 'view' ? 'default' : 'pointer', viewMode === 'view' || 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) ? layoutWithSeparatorBorderStyles(viewMode) : layoutBorderStyles(viewMode), editorExperiment('advanced_layouts', true) && layoutResponsiveStyles(viewMode), 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}"));
|
|
75
75
|
};
|
|
@@ -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, 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,8 @@ 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
|
+
import { resizerStyles, pragmaticResizerStyles } from './styles/resizerStyles';
|
|
46
47
|
import { ruleStyles } from './styles/rule';
|
|
47
48
|
var vanillaMentionsStyles = css({
|
|
48
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -141,7 +142,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
141
142
|
|
|
142
143
|
// jest warning: JSDOM version (22) doesn't support the new @container CSS rule
|
|
143
144
|
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
|
|
145
|
+
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 .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
146
|
exposure: false
|
|
146
147
|
}) && vanillaMentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
147
148
|
exposure: false
|
|
@@ -155,7 +156,7 @@ var contentStyles = function contentStyles() {
|
|
|
155
156
|
exposure: false
|
|
156
157
|
}) && fg('platform-visual-refresh-icons') && vanillaDecisionIconWithVisualRefresh, editorExperiment('platform_editor_vanilla_dom', true, {
|
|
157
158
|
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,
|
|
159
|
+
}) && !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, 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
160
|
};
|
|
160
161
|
var CommentEditorMargin = 14;
|
|
161
162
|
|
|
@@ -227,7 +228,9 @@ var EditorContentContainer = /*#__PURE__*/React.forwardRef(function (props, ref)
|
|
|
227
228
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
228
229
|
layoutBaseStyles(),
|
|
229
230
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
230
|
-
fg('platform_editor_hyperlink_underline') ? linkStyles : linkStylesOld,
|
|
231
|
+
fg('platform_editor_hyperlink_underline') ? linkStyles : linkStylesOld, editorExperiment('platform_editor_breakout_resizing', true) &&
|
|
232
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
233
|
+
pragmaticResizerStyles,
|
|
231
234
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
232
235
|
aiPanelBaseStyles,
|
|
233
236
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -4,7 +4,7 @@ var _templateObject, _templateObject2;
|
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
7
|
-
import { css, keyframes } from
|
|
7
|
+
import { css, keyframes } from '@emotion/react';
|
|
8
8
|
/**
|
|
9
9
|
* aiPanelStyles
|
|
10
10
|
* was imported from packages/editor/editor-core/src/ui/ContentStyles/ai-panels.ts
|
|
@@ -2,13 +2,13 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
5
|
-
import { css } from
|
|
6
|
-
import { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from
|
|
7
|
-
import { TableCssClassName } from
|
|
8
|
-
import { tableMarginFullWidthMode } from
|
|
9
|
-
import { gridMediumMaxWidth, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle, akEditorSelectedBorderSize, akEditorDeleteBackground, akEditorDeleteBorder, akLayoutGutterOffset, akEditorSwoopCubicBezier } from
|
|
10
|
-
import { fg } from
|
|
11
|
-
import { editorExperiment } from
|
|
5
|
+
import { css } from '@emotion/react';
|
|
6
|
+
import { LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from '@atlaskit/editor-common/styles';
|
|
7
|
+
import { TableCssClassName } from '@atlaskit/editor-plugins/table/types';
|
|
8
|
+
import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
|
|
9
|
+
import { gridMediumMaxWidth, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle, akEditorSelectedBorderSize, akEditorDeleteBackground, akEditorDeleteBorder, akLayoutGutterOffset, akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
12
|
var columnLayoutSharedStyle = css({
|
|
13
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
14
|
'[data-layout-section]': _defineProperty({
|