@atlaskit/editor-core 214.2.4 → 215.0.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 +20 -0
- package/dist/cjs/index.js +0 -7
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +38 -2
- package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +10 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/index.js +0 -8
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +40 -3
- package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +9 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/index.js +0 -8
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +39 -3
- package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +9 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/index.d.ts +0 -7
- package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +0 -7
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tableStyles.d.ts +1 -0
- package/package.json +9 -3
- package/create-editor-content-style/package.json +0 -17
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +0 -43
- package/dist/cjs/ui/ContentStyles/ai-panels.js +0 -91
- package/dist/cjs/ui/ContentStyles/code-bidi-warning.js +0 -75
- package/dist/cjs/ui/ContentStyles/code-block.js +0 -28
- package/dist/cjs/ui/ContentStyles/date.js +0 -43
- package/dist/cjs/ui/ContentStyles/expand.js +0 -37
- package/dist/cjs/ui/ContentStyles/extension.js +0 -21
- package/dist/cjs/ui/ContentStyles/index.js +0 -220
- package/dist/cjs/ui/ContentStyles/layout.js +0 -80
- package/dist/cjs/ui/ContentStyles/media.js +0 -27
- package/dist/cjs/ui/ContentStyles/panel.js +0 -17
- package/dist/cjs/ui/ContentStyles/status.js +0 -158
- package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +0 -556
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +0 -47
- package/dist/es2019/ui/ContentStyles/ai-panels.js +0 -168
- package/dist/es2019/ui/ContentStyles/code-bidi-warning.js +0 -68
- package/dist/es2019/ui/ContentStyles/code-block.js +0 -90
- package/dist/es2019/ui/ContentStyles/date.js +0 -57
- package/dist/es2019/ui/ContentStyles/expand.js +0 -142
- package/dist/es2019/ui/ContentStyles/extension.js +0 -236
- package/dist/es2019/ui/ContentStyles/index.js +0 -580
- package/dist/es2019/ui/ContentStyles/layout.js +0 -388
- package/dist/es2019/ui/ContentStyles/media.js +0 -207
- package/dist/es2019/ui/ContentStyles/panel.js +0 -66
- package/dist/es2019/ui/ContentStyles/status.js +0 -197
- package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +0 -551
- package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +0 -36
- package/dist/esm/ui/ContentStyles/ai-panels.js +0 -87
- package/dist/esm/ui/ContentStyles/code-bidi-warning.js +0 -68
- package/dist/esm/ui/ContentStyles/code-block.js +0 -21
- package/dist/esm/ui/ContentStyles/date.js +0 -37
- package/dist/esm/ui/ContentStyles/expand.js +0 -31
- package/dist/esm/ui/ContentStyles/extension.js +0 -15
- package/dist/esm/ui/ContentStyles/index.js +0 -214
- package/dist/esm/ui/ContentStyles/layout.js +0 -74
- package/dist/esm/ui/ContentStyles/media.js +0 -21
- package/dist/esm/ui/ContentStyles/panel.js +0 -11
- package/dist/esm/ui/ContentStyles/status.js +0 -152
- package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +0 -548
- package/dist/types/nodeviews/getInlineNodeViewProducer.styles.d.ts +0 -2
- package/dist/types/ui/ContentStyles/ai-panels.d.ts +0 -8
- package/dist/types/ui/ContentStyles/code-bidi-warning.d.ts +0 -2
- package/dist/types/ui/ContentStyles/code-block.d.ts +0 -2
- package/dist/types/ui/ContentStyles/date.d.ts +0 -3
- package/dist/types/ui/ContentStyles/expand.d.ts +0 -2
- package/dist/types/ui/ContentStyles/extension.d.ts +0 -2
- package/dist/types/ui/ContentStyles/index.d.ts +0 -23
- package/dist/types/ui/ContentStyles/layout.d.ts +0 -8
- package/dist/types/ui/ContentStyles/media.d.ts +0 -2
- package/dist/types/ui/ContentStyles/panel.d.ts +0 -2
- package/dist/types/ui/ContentStyles/status.d.ts +0 -3
- package/dist/types/ui/ContentStyles/tasks-and-decisions.d.ts +0 -6
- package/dist/types-ts4.5/nodeviews/getInlineNodeViewProducer.styles.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/ai-panels.d.ts +0 -8
- package/dist/types-ts4.5/ui/ContentStyles/code-bidi-warning.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/code-block.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/date.d.ts +0 -3
- package/dist/types-ts4.5/ui/ContentStyles/expand.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/extension.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +0 -23
- package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +0 -8
- package/dist/types-ts4.5/ui/ContentStyles/media.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/panel.d.ts +0 -2
- package/dist/types-ts4.5/ui/ContentStyles/status.d.ts +0 -3
- package/dist/types-ts4.5/ui/ContentStyles/tasks-and-decisions.d.ts +0 -6
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
-
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
|
|
5
|
-
const extensionLabelStyles = css`
|
|
6
|
-
&.danger > span > div > .extension-label {
|
|
7
|
-
background-color: ${"var(--ds-background-accent-red-subtler, #FFD5D2)"};
|
|
8
|
-
color: ${"var(--ds-text-danger, #AE2E24)"};
|
|
9
|
-
opacity: 1;
|
|
10
|
-
box-shadow: none;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&:not(.danger).${akEditorSelectedNodeClassName} > span > div > .extension-label {
|
|
14
|
-
background-color: ${"var(--ds-background-selected, #E9F2FF)"};
|
|
15
|
-
color: ${"var(--ds-text-selected, #0C66E4)"};
|
|
16
|
-
opacity: 1;
|
|
17
|
-
box-shadow: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* Targets the icon for bodied macro styling in button label */
|
|
21
|
-
&.danger > span > div > .extension-label > span {
|
|
22
|
-
display: inline;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:not(.danger).${akEditorSelectedNodeClassName} > span > div .extension-label > span {
|
|
26
|
-
display: inline;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Start of bodied extension edit toggle styles */
|
|
30
|
-
&.danger.${akEditorSelectedNodeClassName} > span > .extension-edit-toggle-container {
|
|
31
|
-
opacity: 1;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&:not(.danger).${akEditorSelectedNodeClassName} > span > .extension-edit-toggle-container {
|
|
35
|
-
opacity: 1;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/* In view mode of the bodied macro, we never want to show the extension label */
|
|
39
|
-
&.danger.${akEditorSelectedNodeClassName} > span > div > .extension-label.always-hide-label {
|
|
40
|
-
opacity: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&:not(.danger).${akEditorSelectedNodeClassName}
|
|
44
|
-
> span
|
|
45
|
-
> div
|
|
46
|
-
> .extension-label.always-hide-label {
|
|
47
|
-
opacity: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* .with-bodied-macro-live-page-styles class will only be added to bodied macros with the renderer mode gate enabled */
|
|
51
|
-
&:not(.danger).${akEditorSelectedNodeClassName}
|
|
52
|
-
> span
|
|
53
|
-
> div
|
|
54
|
-
> .extension-label.with-bodied-macro-live-page-styles {
|
|
55
|
-
box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px ${"var(--ds-border-selected, #0C66E4)"};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&.danger.${akEditorSelectedNodeClassName}
|
|
59
|
-
> span
|
|
60
|
-
> div
|
|
61
|
-
> .extension-label.with-bodied-macro-live-page-styles {
|
|
62
|
-
box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px ${"var(--ds-border-danger, #E2483D)"};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&.danger.${akEditorSelectedNodeClassName}
|
|
66
|
-
> span
|
|
67
|
-
> .extension-edit-toggle-container
|
|
68
|
-
> .extension-edit-toggle {
|
|
69
|
-
background-color: ${"var(--ds-background-accent-red-subtler, #FFD5D2)"};
|
|
70
|
-
color: ${"var(--ds-text-danger, #AE2E24)"};
|
|
71
|
-
box-shadow: none;
|
|
72
|
-
}
|
|
73
|
-
`;
|
|
74
|
-
const dangerOverlayStyles = css({
|
|
75
|
-
opacity: 0.3,
|
|
76
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
77
|
-
backgroundColor: `var(--ds-background-danger-hovered, ${akEditorDeleteBackground})`
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
81
|
-
export const extensionStyles = css`
|
|
82
|
-
.multiBodiedExtensionView-content-wrap {
|
|
83
|
-
&.danger > span > .multiBodiedExtension--container {
|
|
84
|
-
box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px
|
|
85
|
-
${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
|
|
86
|
-
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`};
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
${extensionLabelStyles}
|
|
90
|
-
|
|
91
|
-
&.danger > span > .with-danger-overlay {
|
|
92
|
-
background-color: transparent;
|
|
93
|
-
.multiBodiedExtension--overlay {
|
|
94
|
-
${dangerOverlayStyles}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&:not(.danger).${akEditorSelectedNodeClassName} {
|
|
99
|
-
& > span > .multiBodiedExtension--container {
|
|
100
|
-
${getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket])}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
.multiBodiedExtension--container {
|
|
104
|
-
width: 100%;
|
|
105
|
-
max-width: 100%; /* ensure width can't go over 100% */
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.inlineExtensionView-content-wrap {
|
|
110
|
-
&.danger > span > .extension-container {
|
|
111
|
-
box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px
|
|
112
|
-
${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
|
|
113
|
-
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`};
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&.danger > span > .with-danger-overlay {
|
|
117
|
-
/* If the macro turned used to turn red before, not setting the background to be transparent will cause the
|
|
118
|
-
danger state to have two layers of red which we don't want. */
|
|
119
|
-
background-color: transparent;
|
|
120
|
-
.extension-overlay {
|
|
121
|
-
${dangerOverlayStyles}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
&:not(.danger).${akEditorSelectedNodeClassName} {
|
|
126
|
-
& > span > .extension-container {
|
|
127
|
-
${getSelectionStyles([SelectionStyle.BoxShadow])}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
${extensionLabelStyles}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/* This is referenced in the toDOM of a bodied extension and is used to put
|
|
135
|
-
label content into the bodied extension.
|
|
136
|
-
We do this so that we don't serialise the label (which causes the label to be
|
|
137
|
-
be copied to the clipboard causing copy-paste issues). */
|
|
138
|
-
.bodied-extension-to-dom-label::after {
|
|
139
|
-
content: attr(data-bodied-extension-label);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.extensionView-content-wrap,
|
|
143
|
-
.multiBodiedExtensionView-content-wrap,
|
|
144
|
-
.bodiedExtensionView-content-wrap {
|
|
145
|
-
margin: ${blockNodesVerticalMargin} 0;
|
|
146
|
-
|
|
147
|
-
&:first-of-type {
|
|
148
|
-
margin-top: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&:last-of-type {
|
|
152
|
-
margin-bottom: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
&:not(.danger).${akEditorSelectedNodeClassName} {
|
|
156
|
-
& > span > .extension-container {
|
|
157
|
-
${getSelectionStyles([SelectionStyle.BoxShadow])}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
&.danger > span > .extension-container {
|
|
162
|
-
box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px
|
|
163
|
-
${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
|
|
164
|
-
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`};
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
${extensionLabelStyles}
|
|
168
|
-
|
|
169
|
-
&.danger > span > .with-danger-overlay {
|
|
170
|
-
background-color: transparent;
|
|
171
|
-
.extension-overlay {
|
|
172
|
-
${dangerOverlayStyles}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
&.inline {
|
|
177
|
-
word-wrap: break-all;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.extensionView-content-wrap .extension-container {
|
|
182
|
-
overflow: hidden;
|
|
183
|
-
|
|
184
|
-
/* Don't hide overflow for editors inside extensions */
|
|
185
|
-
&:has(.extension-editable-area) {
|
|
186
|
-
overflow: visible;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.bodiedExtensionView-content-wrap .extensionView-content-wrap .extension-container {
|
|
191
|
-
width: 100%;
|
|
192
|
-
max-width: 100%; /* ensure width can't go over 100% */
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
[data-mark-type='fragment'] {
|
|
196
|
-
& > .extensionView-content-wrap,
|
|
197
|
-
& > .bodiedExtensionView-content-wrap {
|
|
198
|
-
margin: ${blockNodesVerticalMargin} 0;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
& > [data-mark-type='dataConsumer'] {
|
|
202
|
-
& > .extensionView-content-wrap,
|
|
203
|
-
& > .bodiedExtensionView-content-wrap {
|
|
204
|
-
margin: ${blockNodesVerticalMargin} 0;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
&:first-child {
|
|
209
|
-
& > .extensionView-content-wrap,
|
|
210
|
-
& > .bodiedExtensionView-content-wrap {
|
|
211
|
-
margin-top: 0;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
& > [data-mark-type='dataConsumer'] {
|
|
215
|
-
& > .extensionView-content-wrap,
|
|
216
|
-
& > .bodiedExtensionView-content-wrap {
|
|
217
|
-
margin-top: 0;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
&:nth-last-of-type(-n + 2):not(:first-of-type) {
|
|
223
|
-
& > .extensionView-content-wrap,
|
|
224
|
-
& > .bodiedExtensionView-content-wrap {
|
|
225
|
-
margin-bottom: 0;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
& > [data-mark-type='dataConsumer'] {
|
|
229
|
-
& > .extensionView-content-wrap,
|
|
230
|
-
& > .bodiedExtensionView-content-wrap {
|
|
231
|
-
margin-bottom: 0;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
`;
|