@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.
Files changed (84) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/index.js +0 -7
  3. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +38 -2
  4. package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +10 -2
  5. package/dist/cjs/version-wrapper.js +1 -1
  6. package/dist/es2019/index.js +0 -8
  7. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +40 -3
  8. package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +9 -1
  9. package/dist/es2019/version-wrapper.js +1 -1
  10. package/dist/esm/index.js +0 -8
  11. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +39 -3
  12. package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +9 -1
  13. package/dist/esm/version-wrapper.js +1 -1
  14. package/dist/types/index.d.ts +0 -7
  15. package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +1 -0
  16. package/dist/types-ts4.5/index.d.ts +0 -7
  17. package/dist/types-ts4.5/ui/EditorContentContainer/styles/tableStyles.d.ts +1 -0
  18. package/package.json +9 -3
  19. package/create-editor-content-style/package.json +0 -17
  20. package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +0 -43
  21. package/dist/cjs/ui/ContentStyles/ai-panels.js +0 -91
  22. package/dist/cjs/ui/ContentStyles/code-bidi-warning.js +0 -75
  23. package/dist/cjs/ui/ContentStyles/code-block.js +0 -28
  24. package/dist/cjs/ui/ContentStyles/date.js +0 -43
  25. package/dist/cjs/ui/ContentStyles/expand.js +0 -37
  26. package/dist/cjs/ui/ContentStyles/extension.js +0 -21
  27. package/dist/cjs/ui/ContentStyles/index.js +0 -220
  28. package/dist/cjs/ui/ContentStyles/layout.js +0 -80
  29. package/dist/cjs/ui/ContentStyles/media.js +0 -27
  30. package/dist/cjs/ui/ContentStyles/panel.js +0 -17
  31. package/dist/cjs/ui/ContentStyles/status.js +0 -158
  32. package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +0 -556
  33. package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +0 -47
  34. package/dist/es2019/ui/ContentStyles/ai-panels.js +0 -168
  35. package/dist/es2019/ui/ContentStyles/code-bidi-warning.js +0 -68
  36. package/dist/es2019/ui/ContentStyles/code-block.js +0 -90
  37. package/dist/es2019/ui/ContentStyles/date.js +0 -57
  38. package/dist/es2019/ui/ContentStyles/expand.js +0 -142
  39. package/dist/es2019/ui/ContentStyles/extension.js +0 -236
  40. package/dist/es2019/ui/ContentStyles/index.js +0 -580
  41. package/dist/es2019/ui/ContentStyles/layout.js +0 -388
  42. package/dist/es2019/ui/ContentStyles/media.js +0 -207
  43. package/dist/es2019/ui/ContentStyles/panel.js +0 -66
  44. package/dist/es2019/ui/ContentStyles/status.js +0 -197
  45. package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +0 -551
  46. package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +0 -36
  47. package/dist/esm/ui/ContentStyles/ai-panels.js +0 -87
  48. package/dist/esm/ui/ContentStyles/code-bidi-warning.js +0 -68
  49. package/dist/esm/ui/ContentStyles/code-block.js +0 -21
  50. package/dist/esm/ui/ContentStyles/date.js +0 -37
  51. package/dist/esm/ui/ContentStyles/expand.js +0 -31
  52. package/dist/esm/ui/ContentStyles/extension.js +0 -15
  53. package/dist/esm/ui/ContentStyles/index.js +0 -214
  54. package/dist/esm/ui/ContentStyles/layout.js +0 -74
  55. package/dist/esm/ui/ContentStyles/media.js +0 -21
  56. package/dist/esm/ui/ContentStyles/panel.js +0 -11
  57. package/dist/esm/ui/ContentStyles/status.js +0 -152
  58. package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +0 -548
  59. package/dist/types/nodeviews/getInlineNodeViewProducer.styles.d.ts +0 -2
  60. package/dist/types/ui/ContentStyles/ai-panels.d.ts +0 -8
  61. package/dist/types/ui/ContentStyles/code-bidi-warning.d.ts +0 -2
  62. package/dist/types/ui/ContentStyles/code-block.d.ts +0 -2
  63. package/dist/types/ui/ContentStyles/date.d.ts +0 -3
  64. package/dist/types/ui/ContentStyles/expand.d.ts +0 -2
  65. package/dist/types/ui/ContentStyles/extension.d.ts +0 -2
  66. package/dist/types/ui/ContentStyles/index.d.ts +0 -23
  67. package/dist/types/ui/ContentStyles/layout.d.ts +0 -8
  68. package/dist/types/ui/ContentStyles/media.d.ts +0 -2
  69. package/dist/types/ui/ContentStyles/panel.d.ts +0 -2
  70. package/dist/types/ui/ContentStyles/status.d.ts +0 -3
  71. package/dist/types/ui/ContentStyles/tasks-and-decisions.d.ts +0 -6
  72. package/dist/types-ts4.5/nodeviews/getInlineNodeViewProducer.styles.d.ts +0 -2
  73. package/dist/types-ts4.5/ui/ContentStyles/ai-panels.d.ts +0 -8
  74. package/dist/types-ts4.5/ui/ContentStyles/code-bidi-warning.d.ts +0 -2
  75. package/dist/types-ts4.5/ui/ContentStyles/code-block.d.ts +0 -2
  76. package/dist/types-ts4.5/ui/ContentStyles/date.d.ts +0 -3
  77. package/dist/types-ts4.5/ui/ContentStyles/expand.d.ts +0 -2
  78. package/dist/types-ts4.5/ui/ContentStyles/extension.d.ts +0 -2
  79. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +0 -23
  80. package/dist/types-ts4.5/ui/ContentStyles/layout.d.ts +0 -8
  81. package/dist/types-ts4.5/ui/ContentStyles/media.d.ts +0 -2
  82. package/dist/types-ts4.5/ui/ContentStyles/panel.d.ts +0 -2
  83. package/dist/types-ts4.5/ui/ContentStyles/status.d.ts +0 -3
  84. 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
- `;