@atlaskit/editor-core 207.15.0 → 207.16.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/ui/ContentStyles/index.js +10 -2
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +14 -6
- package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +263 -0
- package/dist/cjs/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +46 -0
- package/dist/cjs/ui/EditorContentContainer/styles/placeholderTextStyles.js +72 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +9 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +16 -5
- package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +256 -0
- package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +40 -0
- package/dist/es2019/ui/EditorContentContainer/styles/placeholderTextStyles.js +65 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +10 -2
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +14 -6
- package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +256 -0
- package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +40 -0
- package/dist/esm/ui/EditorContentContainer/styles/placeholderTextStyles.js +65 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/expandStyles.d.ts +4 -0
- package/dist/types/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/placeholderTextStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/expandStyles.d.ts +4 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/placeholderTextStyles.d.ts +1 -0
- package/package.json +17 -15
|
@@ -0,0 +1,256 @@
|
|
|
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 expandStyles = css({
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
6
|
+
'.ak-editor-expand__icon > div': {
|
|
7
|
+
display: 'flex'
|
|
8
|
+
},
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
10
|
+
'.ak-editor-expand': {
|
|
11
|
+
// sharedExpandStyles.containerStyles({ expanded: false, focused: false })(),
|
|
12
|
+
borderWidth: '1px',
|
|
13
|
+
borderStyle: 'solid',
|
|
14
|
+
borderColor: 'transparent',
|
|
15
|
+
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
16
|
+
minHeight: '25px',
|
|
17
|
+
background: "var(--ds-background-neutral-subtle, transparent)",
|
|
18
|
+
margin: "var(--ds-space-050, 0.25rem)".concat(" 0 0"),
|
|
19
|
+
transition: 'background 0.3s cubic-bezier(0.15, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.15, 1, 0.3, 1)',
|
|
20
|
+
padding: "var(--ds-space-100, 8px)",
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
22
|
+
'td > :not(style):first-child, td > style:first-child + *': {
|
|
23
|
+
marginTop: 0
|
|
24
|
+
},
|
|
25
|
+
cursor: 'pointer',
|
|
26
|
+
boxSizing: 'border-box',
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
28
|
+
'td > &': {
|
|
29
|
+
marginTop: 0
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
32
|
+
'.ak-editor-expand__icon-container svg': {
|
|
33
|
+
color: "var(--ds-icon-subtle, #626F86)",
|
|
34
|
+
transform: 'rotate(90deg)'
|
|
35
|
+
},
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
37
|
+
'&.ak-editor-selected-node:not(.danger)': {
|
|
38
|
+
// SelectionStyle.Blanket
|
|
39
|
+
position: 'relative',
|
|
40
|
+
// Fixes ED-9263, where emoji or inline card in panel makes selection go outside the panel
|
|
41
|
+
// in Safari. Looks like it's caused by user-select: all in the emoji element
|
|
42
|
+
'-webkit-user-select': 'text',
|
|
43
|
+
'&::before': {
|
|
44
|
+
position: 'absolute',
|
|
45
|
+
content: "''",
|
|
46
|
+
left: 0,
|
|
47
|
+
right: 0,
|
|
48
|
+
top: 0,
|
|
49
|
+
bottom: 0,
|
|
50
|
+
width: '100%',
|
|
51
|
+
pointerEvents: 'none',
|
|
52
|
+
zIndex: 12,
|
|
53
|
+
// akEditorStickyheaderZIndex (11) + 1
|
|
54
|
+
backgroundColor: "var(--ds-blanket-selected, #388BFF14)"
|
|
55
|
+
},
|
|
56
|
+
// SelectionStyle.Border (common case)
|
|
57
|
+
border: "1px solid ".concat("var(--ds-border-selected, #0C66E4)"),
|
|
58
|
+
// If fg('platform_editor_nested_dnd_styles_changes') is true,
|
|
59
|
+
// then we'll also need the rest of the selection styles for blanket
|
|
60
|
+
|
|
61
|
+
// hideNativeBrowserTextSelectionStyles
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
63
|
+
'&::selection, *::selection': {
|
|
64
|
+
backgroundColor: 'transparent'
|
|
65
|
+
},
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
67
|
+
'&::-moz-selection, *::-moz-selection': {
|
|
68
|
+
backgroundColor: 'transparent'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
72
|
+
'&.danger': {
|
|
73
|
+
background: "var(--ds-background-danger, #FFECEB)",
|
|
74
|
+
borderColor: "var(--ds-border-danger, #E2483D)"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
78
|
+
'.ProseMirror > .ak-editor-expand__type-expand, .fabric-editor-breakout-mark-dom > .ak-editor-expand__type-expand': {
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
80
|
+
marginLeft: '-12px',
|
|
81
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
82
|
+
marginRight: '-12px'
|
|
83
|
+
},
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
85
|
+
'.ak-editor-expand__content': {
|
|
86
|
+
// sharedExpandStyles.contentStyles({ expanded: false, focused: false })(),
|
|
87
|
+
paddingTop: "var(--ds-space-0, 0px)",
|
|
88
|
+
paddingRight: "var(--ds-space-100, 8px)",
|
|
89
|
+
paddingLeft: "var(--ds-space-300, 24px)",
|
|
90
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
91
|
+
display: 'flow-root',
|
|
92
|
+
/* The follow rules inside @supports block are added as a part of ED-8893
|
|
93
|
+
The fix is targeting mobile bridge on iOS 12 or below,
|
|
94
|
+
We should consider remove this fix when we no longer support iOS 12 */
|
|
95
|
+
'@supports not (display: flow-root)': {
|
|
96
|
+
width: '100%',
|
|
97
|
+
boxSizing: 'border-box'
|
|
98
|
+
},
|
|
99
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
100
|
+
'.expand-content-wrapper, .nestedExpand-content-wrapper': {
|
|
101
|
+
/* We visually hide the content here to preserve the content during copy+paste */
|
|
102
|
+
/* Do not add text nowrap here because inline comment navigation depends on the location of the text */
|
|
103
|
+
width: '100%',
|
|
104
|
+
display: 'block',
|
|
105
|
+
height: 0,
|
|
106
|
+
overflow: 'hidden',
|
|
107
|
+
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
108
|
+
userSelect: 'none'
|
|
109
|
+
},
|
|
110
|
+
cursor: 'text'
|
|
111
|
+
},
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
113
|
+
'.ak-editor-expand__title-input': {
|
|
114
|
+
// sharedExpandStyles.titleInputStyles(),
|
|
115
|
+
outline: 'none',
|
|
116
|
+
border: 'none',
|
|
117
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
118
|
+
fontSize: 'calc(14rem / 16)',
|
|
119
|
+
// relativeFontSizeToBase16(14),
|
|
120
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
121
|
+
lineHeight: 1.714,
|
|
122
|
+
// If fg('platform-visual-refresh-icons') then this needs to be overridden
|
|
123
|
+
fontWeight: "var(--ds-font-weight-regular, 400)",
|
|
124
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
125
|
+
background: 'transparent',
|
|
126
|
+
display: 'flex',
|
|
127
|
+
flex: 1,
|
|
128
|
+
padding: "0 0 0 ".concat("var(--ds-space-050, 4px)"),
|
|
129
|
+
width: '100%',
|
|
130
|
+
'&::placeholder': {
|
|
131
|
+
opacity: 1,
|
|
132
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
136
|
+
'.ak-editor-expand__title-container': {
|
|
137
|
+
// sharedExpandStyles.titleContainerStyles(),
|
|
138
|
+
padding: 0,
|
|
139
|
+
display: 'flex',
|
|
140
|
+
// Omitting alignItems: 'flex-start' as it would be overridden
|
|
141
|
+
background: 'none',
|
|
142
|
+
border: 'none',
|
|
143
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
144
|
+
fontSize: 'calc(14rem / 16)',
|
|
145
|
+
// relativeFontSizeToBase16(14),
|
|
146
|
+
width: '100%',
|
|
147
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
148
|
+
// Omitting overflow: 'hidden' as it would be overridden
|
|
149
|
+
cursor: 'pointer',
|
|
150
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
151
|
+
'&:focus': {
|
|
152
|
+
outline: 0
|
|
153
|
+
},
|
|
154
|
+
alignItems: 'center',
|
|
155
|
+
overflow: 'visible'
|
|
156
|
+
},
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
158
|
+
'.ak-editor-expand__expanded': {
|
|
159
|
+
background: "var(--ds-background-neutral-subtle, #00000000)",
|
|
160
|
+
borderColor: "var(--ds-border, #091E4224)",
|
|
161
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
162
|
+
'.ak-editor-expand__content': {
|
|
163
|
+
paddingTop: "var(--ds-space-100, 8px)"
|
|
164
|
+
// If fg('platform_editor_nested_dnd_styles_changes') then this needs to be extended
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
168
|
+
'.ak-editor-expand__input-container': {
|
|
169
|
+
width: '100%'
|
|
170
|
+
},
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
172
|
+
'.ak-editor-expand:not(.ak-editor-expand__expanded)': {
|
|
173
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
174
|
+
'.ak-editor-expand__content': {
|
|
175
|
+
position: 'absolute',
|
|
176
|
+
height: '1px',
|
|
177
|
+
width: '1px',
|
|
178
|
+
overflow: 'hidden',
|
|
179
|
+
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
180
|
+
whiteSpace: 'nowrap'
|
|
181
|
+
},
|
|
182
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
183
|
+
'.ak-editor-expand__icon-container svg': {
|
|
184
|
+
color: "var(--ds-icon-subtle, #626F86)",
|
|
185
|
+
transform: 'rotate(0deg)'
|
|
186
|
+
},
|
|
187
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
188
|
+
'&:not(.ak-editor-selected-node):not(.danger)': {
|
|
189
|
+
background: 'transparent',
|
|
190
|
+
borderColor: 'transparent',
|
|
191
|
+
'&:hover': {
|
|
192
|
+
borderColor: "var(--ds-border, #091E4224)",
|
|
193
|
+
background: "var(--ds-background-neutral-subtle, #00000000)"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
|
|
199
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
200
|
+
export var expandStylesMixin_fg_platform_visual_refresh_icons = css({
|
|
201
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
202
|
+
'.ak-editor-expand__title-input': {
|
|
203
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
204
|
+
lineHeight: 1
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
209
|
+
export var expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes = css({
|
|
210
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
211
|
+
'.ak-editor-content-area.appearance-full-page .ProseMirror > .ak-editor-expand__type-expand, .fabric-editor-breakout-mark-dom > .ak-editor-expand__type-expand': {
|
|
212
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
213
|
+
marginLeft: '-20px',
|
|
214
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
215
|
+
marginRight: '-20px'
|
|
216
|
+
},
|
|
217
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
218
|
+
'.ak-editor-expand__expanded': {
|
|
219
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
220
|
+
'.ak-editor-expand__content': {
|
|
221
|
+
// firstNodeWithNotMarginTop
|
|
222
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
223
|
+
'> :nth-child(1 of :not(style, .ProseMirror-gapcursor, .ProseMirror-widget, span))': {
|
|
224
|
+
marginTop: 0
|
|
225
|
+
},
|
|
226
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
227
|
+
'> div.ak-editor-expand[data-node-type="nestedExpand"]': {
|
|
228
|
+
marginTop: "var(--ds-space-050, 0.25rem)"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
235
|
+
export var expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes = css({
|
|
236
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
237
|
+
'.ak-editor-expand': {
|
|
238
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
239
|
+
'&.ak-editor-selected-node:not(.danger)': {
|
|
240
|
+
// SelectionStyle.Border (with fg('platform_editor_nested_dnd_styles_changes'))
|
|
241
|
+
// Fixes ED-15246: Trello card is visible through a border of a table border
|
|
242
|
+
'&::after': {
|
|
243
|
+
height: '100%',
|
|
244
|
+
content: "'\\00a0'",
|
|
245
|
+
background: "var(--ds-border-selected, #0C66E4)",
|
|
246
|
+
position: 'absolute',
|
|
247
|
+
right: '-1px',
|
|
248
|
+
top: 0,
|
|
249
|
+
bottom: 0,
|
|
250
|
+
width: '1px',
|
|
251
|
+
border: 'none',
|
|
252
|
+
display: 'inline-block'
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
|
+
|
|
4
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
5
|
+
export var InlineNodeViewSharedStyles = css({
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
7
|
+
'.inlineNodeView': {
|
|
8
|
+
display: 'inline',
|
|
9
|
+
userSelect: 'all',
|
|
10
|
+
whiteSpace: 'nowrap',
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
12
|
+
'& > *:not(.zeroWidthSpaceContainer)': {
|
|
13
|
+
whiteSpace: 'pre-wrap'
|
|
14
|
+
},
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
16
|
+
'& > .assistive': {
|
|
17
|
+
userSelect: 'none'
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
21
|
+
'&.ua-safari': {
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
23
|
+
'.inlineNodeView': {
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
25
|
+
'&::selection, *::selection': {
|
|
26
|
+
background: 'transparent'
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
31
|
+
'&.ua-chrome .inlineNodeView > span': {
|
|
32
|
+
userSelect: 'none'
|
|
33
|
+
},
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
35
|
+
'.inlineNodeViewAddZeroWidthSpace': {
|
|
36
|
+
'&::after': {
|
|
37
|
+
content: "'\u200B'" // ZERO_WIDTH_SPACE
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
});
|
|
@@ -0,0 +1,65 @@
|
|
|
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 placeholderTextStyles = css({
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
6
|
+
'.ProseMirror span[data-placeholder]': {
|
|
7
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
8
|
+
display: 'inline'
|
|
9
|
+
},
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
11
|
+
'.ProseMirror span.pm-placeholder': {
|
|
12
|
+
display: 'inline',
|
|
13
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
14
|
+
},
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
16
|
+
'.ProseMirror span.pm-placeholder__text': {
|
|
17
|
+
display: 'inline',
|
|
18
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
19
|
+
},
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
21
|
+
'.ProseMirror span.pm-placeholder.ak-editor-selected-node': {
|
|
22
|
+
// ...backgroundSelectionStyles
|
|
23
|
+
backgroundColor: "var(--ds-background-selected, #E9F2FF)",
|
|
24
|
+
// ...backgroundSelectionStyles -> hideNativeBrowserTextSelectionStyles
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
26
|
+
'&::selection,*::selection': {
|
|
27
|
+
backgroundColor: 'transparent'
|
|
28
|
+
},
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
|
|
30
|
+
'&::-moz-selection,*::-moz-selection': {
|
|
31
|
+
backgroundColor: 'transparent'
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
35
|
+
'.ProseMirror span.pm-placeholder__text[data-placeholder]::after': {
|
|
36
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
37
|
+
cursor: 'text',
|
|
38
|
+
content: 'attr(data-placeholder)',
|
|
39
|
+
display: 'inline'
|
|
40
|
+
},
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
42
|
+
'.ProseMirror': {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
44
|
+
'.ProseMirror-fake-text-cursor': {
|
|
45
|
+
display: 'inline',
|
|
46
|
+
pointerEvents: 'none',
|
|
47
|
+
position: 'relative'
|
|
48
|
+
},
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
50
|
+
'.ProseMirror-fake-text-cursor::after': {
|
|
51
|
+
content: '""',
|
|
52
|
+
display: 'inline',
|
|
53
|
+
top: 0,
|
|
54
|
+
position: 'absolute',
|
|
55
|
+
borderRight: "1px solid ".concat("var(--ds-border, #091E4224)")
|
|
56
|
+
},
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
58
|
+
'.ProseMirror-fake-text-selection': {
|
|
59
|
+
display: 'inline',
|
|
60
|
+
pointerEvents: 'none',
|
|
61
|
+
position: 'relative',
|
|
62
|
+
backgroundColor: "var(--ds-background-selected, #B3D4FF)"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "207.
|
|
2
|
+
export var version = "207.16.0";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const expandStyles: import("@emotion/react").SerializedStyles;
|
|
2
|
+
export declare const expandStylesMixin_fg_platform_visual_refresh_icons: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const InlineNodeViewSharedStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const placeholderTextStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const expandStyles: import("@emotion/react").SerializedStyles;
|
|
2
|
+
export declare const expandStylesMixin_fg_platform_visual_refresh_icons: import("@emotion/react").SerializedStyles;
|
|
3
|
+
export declare const expandStylesMixin_fg_platform_editor_nested_dnd_styles_changes: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const expandStylesMixin_without_fg_platform_editor_nested_dnd_styles_changes: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const InlineNodeViewSharedStyles: import("@emotion/react").SerializedStyles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const placeholderTextStyles: 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.16.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^23.2.0",
|
|
48
48
|
"@atlaskit/css": "^0.10.0",
|
|
49
|
-
"@atlaskit/editor-common": "^106.
|
|
49
|
+
"@atlaskit/editor-common": "^106.3.0",
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
51
51
|
"@atlaskit/editor-performance-metrics": "^2.1.0",
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^2.5.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
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.
|
|
66
|
-
"@atlaskit/tokens": "^5.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^5.13.0",
|
|
66
|
+
"@atlaskit/tokens": "^5.1.0",
|
|
67
67
|
"@atlaskit/tooltip": "^20.3.0",
|
|
68
68
|
"@atlaskit/width-detector": "^5.0.0",
|
|
69
69
|
"@babel/runtime": "^7.0.0",
|
|
@@ -92,19 +92,19 @@
|
|
|
92
92
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
93
93
|
"@atlaskit/collab-provider": "^10.19.0",
|
|
94
94
|
"@atlaskit/editor-plugin-annotation": "^2.9.0",
|
|
95
|
-
"@atlaskit/editor-plugin-card": "^6.
|
|
95
|
+
"@atlaskit/editor-plugin-card": "^6.6.0",
|
|
96
96
|
"@atlaskit/editor-plugin-list": "^4.2.0",
|
|
97
97
|
"@atlaskit/editor-plugin-paste": "^3.3.0",
|
|
98
98
|
"@atlaskit/link-provider": "^3.3.0",
|
|
99
99
|
"@atlaskit/logo": "^19.0.0",
|
|
100
100
|
"@atlaskit/media-core": "^36.1.0",
|
|
101
101
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
102
|
-
"@atlaskit/media-test-helpers": "^36.
|
|
102
|
+
"@atlaskit/media-test-helpers": "^36.1.0",
|
|
103
103
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
104
104
|
"@atlaskit/primitives": "^14.8.0",
|
|
105
105
|
"@atlaskit/renderer": "^118.6.0",
|
|
106
106
|
"@atlaskit/section-message": "^8.2.0",
|
|
107
|
-
"@atlaskit/smart-card": "^38.
|
|
107
|
+
"@atlaskit/smart-card": "^38.8.0",
|
|
108
108
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
109
109
|
"@atlaskit/toggle": "^15.0.0",
|
|
110
110
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
@@ -210,10 +210,6 @@
|
|
|
210
210
|
"type": "boolean",
|
|
211
211
|
"referenceOnly": true
|
|
212
212
|
},
|
|
213
|
-
"hardcoded-embeds-only-on-new-line": {
|
|
214
|
-
"type": "boolean",
|
|
215
|
-
"referenceOnly": true
|
|
216
|
-
},
|
|
217
213
|
"platform_editor_table_initial_load_fix": {
|
|
218
214
|
"type": "boolean",
|
|
219
215
|
"referenceOnly": true
|
|
@@ -534,10 +530,6 @@
|
|
|
534
530
|
"type": "boolean",
|
|
535
531
|
"referenceOnly": true
|
|
536
532
|
},
|
|
537
|
-
"platform_editor_controls_move_actions": {
|
|
538
|
-
"type": "boolean",
|
|
539
|
-
"referenceOnly": true
|
|
540
|
-
},
|
|
541
533
|
"platform_editor_undo_redo_find_on_primary_toolbar": {
|
|
542
534
|
"type": "boolean",
|
|
543
535
|
"referenceOnly": true
|
|
@@ -569,6 +561,9 @@
|
|
|
569
561
|
"platform_editor_find_and_replace_duplication": {
|
|
570
562
|
"type": "boolean"
|
|
571
563
|
},
|
|
564
|
+
"platform_editor_find_and_replace_1": {
|
|
565
|
+
"type": "boolean"
|
|
566
|
+
},
|
|
572
567
|
"editor_a11y_aria_label_removal_popup": {
|
|
573
568
|
"type": "boolean",
|
|
574
569
|
"referenceOnly": true
|
|
@@ -624,11 +619,18 @@
|
|
|
624
619
|
"platform-dst-jira-web-fonts": {
|
|
625
620
|
"type": "boolean"
|
|
626
621
|
},
|
|
622
|
+
"platform_editor_breakout_resizing_hello_release": {
|
|
623
|
+
"type": "boolean",
|
|
624
|
+
"referenceOnly": true
|
|
625
|
+
},
|
|
627
626
|
"confluence_typography_refreshed": {
|
|
628
627
|
"type": "boolean"
|
|
629
628
|
},
|
|
630
629
|
"atlas_editor_typography_refreshed": {
|
|
631
630
|
"type": "boolean"
|
|
631
|
+
},
|
|
632
|
+
"platform_editor_fix_floating_toolbar_focus": {
|
|
633
|
+
"type": "boolean"
|
|
632
634
|
}
|
|
633
635
|
},
|
|
634
636
|
"stricter": {
|