@atlaskit/editor-common 110.9.0 → 110.9.1

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 (143) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/monitoring/error.js +1 -1
  3. package/dist/cjs/panel.js +0 -12
  4. package/dist/cjs/styles/index.js +0 -204
  5. package/dist/cjs/styles/shared/annotation.js +1 -68
  6. package/dist/cjs/styles/shared/code-block.js +2 -17
  7. package/dist/cjs/styles/shared/date.js +2 -12
  8. package/dist/cjs/styles/shared/grid.js +2 -41
  9. package/dist/cjs/styles/shared/lists.js +2 -10
  10. package/dist/cjs/styles/shared/panel.js +1 -39
  11. package/dist/cjs/styles/shared/resizer.js +2 -202
  12. package/dist/cjs/styles/shared/smart-card.js +1 -6
  13. package/dist/cjs/styles/shared/smartCard.js +2 -16
  14. package/dist/cjs/styles/shared/task-decision.js +2 -12
  15. package/dist/cjs/styles/shared/unsupported-content.js +2 -12
  16. package/dist/cjs/ui/DropList/index.js +1 -1
  17. package/dist/cjs/ui/Expand/sharedStyles.js +2 -97
  18. package/dist/cjs/ui/index.js +0 -7
  19. package/dist/es2019/monitoring/error.js +1 -1
  20. package/dist/es2019/panel.js +1 -1
  21. package/dist/es2019/styles/index.js +11 -23
  22. package/dist/es2019/styles/shared/annotation.js +1 -106
  23. package/dist/es2019/styles/shared/code-block.js +1 -164
  24. package/dist/es2019/styles/shared/date.js +1 -11
  25. package/dist/es2019/styles/shared/grid.js +1 -39
  26. package/dist/es2019/styles/shared/lists.js +1 -121
  27. package/dist/es2019/styles/shared/panel.js +1 -138
  28. package/dist/es2019/styles/shared/resizer.js +2 -211
  29. package/dist/es2019/styles/shared/smart-card.js +1 -24
  30. package/dist/es2019/styles/shared/smartCard.js +1 -151
  31. package/dist/es2019/styles/shared/task-decision.js +1 -63
  32. package/dist/es2019/styles/shared/unsupported-content.js +1 -27
  33. package/dist/es2019/ui/DropList/index.js +1 -1
  34. package/dist/es2019/ui/Expand/sharedStyles.js +1 -113
  35. package/dist/es2019/ui/index.js +0 -1
  36. package/dist/esm/monitoring/error.js +1 -1
  37. package/dist/esm/panel.js +1 -1
  38. package/dist/esm/styles/index.js +11 -23
  39. package/dist/esm/styles/shared/annotation.js +0 -67
  40. package/dist/esm/styles/shared/code-block.js +1 -15
  41. package/dist/esm/styles/shared/date.js +1 -9
  42. package/dist/esm/styles/shared/grid.js +1 -39
  43. package/dist/esm/styles/shared/lists.js +1 -10
  44. package/dist/esm/styles/shared/panel.js +0 -37
  45. package/dist/esm/styles/shared/resizer.js +2 -202
  46. package/dist/esm/styles/shared/smart-card.js +0 -5
  47. package/dist/esm/styles/shared/smartCard.js +1 -15
  48. package/dist/esm/styles/shared/task-decision.js +1 -10
  49. package/dist/esm/styles/shared/unsupported-content.js +1 -11
  50. package/dist/esm/ui/DropList/index.js +1 -1
  51. package/dist/esm/ui/Expand/sharedStyles.js +1 -96
  52. package/dist/esm/ui/index.js +0 -1
  53. package/dist/types/panel.d.ts +1 -1
  54. package/dist/types/styles/index.d.ts +11 -23
  55. package/dist/types/styles/shared/annotation.d.ts +0 -30
  56. package/dist/types/styles/shared/code-block.d.ts +0 -3
  57. package/dist/types/styles/shared/date.d.ts +0 -2
  58. package/dist/types/styles/shared/grid.d.ts +0 -2
  59. package/dist/types/styles/shared/lists.d.ts +0 -2
  60. package/dist/types/styles/shared/panel.d.ts +0 -2
  61. package/dist/types/styles/shared/resizer.d.ts +0 -4
  62. package/dist/types/styles/shared/smart-card.d.ts +0 -2
  63. package/dist/types/styles/shared/smartCard.d.ts +0 -1
  64. package/dist/types/styles/shared/task-decision.d.ts +0 -2
  65. package/dist/types/styles/shared/unsupported-content.d.ts +0 -2
  66. package/dist/types/ui/Expand/sharedStyles.d.ts +0 -6
  67. package/dist/types/ui/index.d.ts +0 -2
  68. package/dist/types-ts4.5/panel.d.ts +1 -1
  69. package/dist/types-ts4.5/styles/index.d.ts +11 -23
  70. package/dist/types-ts4.5/styles/shared/annotation.d.ts +0 -30
  71. package/dist/types-ts4.5/styles/shared/code-block.d.ts +0 -3
  72. package/dist/types-ts4.5/styles/shared/date.d.ts +0 -2
  73. package/dist/types-ts4.5/styles/shared/grid.d.ts +0 -2
  74. package/dist/types-ts4.5/styles/shared/lists.d.ts +0 -2
  75. package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -2
  76. package/dist/types-ts4.5/styles/shared/resizer.d.ts +0 -4
  77. package/dist/types-ts4.5/styles/shared/smart-card.d.ts +0 -2
  78. package/dist/types-ts4.5/styles/shared/smartCard.d.ts +0 -1
  79. package/dist/types-ts4.5/styles/shared/task-decision.d.ts +0 -2
  80. package/dist/types-ts4.5/styles/shared/unsupported-content.d.ts +0 -2
  81. package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +0 -6
  82. package/dist/types-ts4.5/ui/index.d.ts +0 -2
  83. package/package.json +1 -1
  84. package/dist/cjs/styles/shared/background-color.js +0 -33
  85. package/dist/cjs/styles/shared/block-marks.js +0 -14
  86. package/dist/cjs/styles/shared/code-mark.js +0 -32
  87. package/dist/cjs/styles/shared/column-layout.js +0 -70
  88. package/dist/cjs/styles/shared/embedCard.js +0 -42
  89. package/dist/cjs/styles/shared/indentation.js +0 -40
  90. package/dist/cjs/styles/shared/link.js +0 -24
  91. package/dist/cjs/styles/shared/paragraph.js +0 -39
  92. package/dist/cjs/styles/shared/rule.js +0 -24
  93. package/dist/cjs/styles/shared/shadow.js +0 -64
  94. package/dist/cjs/styles/shared/text-color.js +0 -20
  95. package/dist/cjs/styles/shared/whitespace.js +0 -15
  96. package/dist/es2019/styles/shared/background-color.js +0 -26
  97. package/dist/es2019/styles/shared/block-marks.js +0 -37
  98. package/dist/es2019/styles/shared/code-mark.js +0 -25
  99. package/dist/es2019/styles/shared/column-layout.js +0 -66
  100. package/dist/es2019/styles/shared/embedCard.js +0 -33
  101. package/dist/es2019/styles/shared/indentation.js +0 -34
  102. package/dist/es2019/styles/shared/link.js +0 -18
  103. package/dist/es2019/styles/shared/paragraph.js +0 -32
  104. package/dist/es2019/styles/shared/rule.js +0 -15
  105. package/dist/es2019/styles/shared/shadow.js +0 -69
  106. package/dist/es2019/styles/shared/text-color.js +0 -14
  107. package/dist/es2019/styles/shared/whitespace.js +0 -9
  108. package/dist/esm/styles/shared/background-color.js +0 -26
  109. package/dist/esm/styles/shared/block-marks.js +0 -8
  110. package/dist/esm/styles/shared/code-mark.js +0 -25
  111. package/dist/esm/styles/shared/column-layout.js +0 -63
  112. package/dist/esm/styles/shared/embedCard.js +0 -35
  113. package/dist/esm/styles/shared/indentation.js +0 -34
  114. package/dist/esm/styles/shared/link.js +0 -18
  115. package/dist/esm/styles/shared/paragraph.js +0 -32
  116. package/dist/esm/styles/shared/rule.js +0 -17
  117. package/dist/esm/styles/shared/shadow.js +0 -57
  118. package/dist/esm/styles/shared/text-color.js +0 -14
  119. package/dist/esm/styles/shared/whitespace.js +0 -9
  120. package/dist/types/styles/shared/background-color.d.ts +0 -1
  121. package/dist/types/styles/shared/block-marks.d.ts +0 -2
  122. package/dist/types/styles/shared/code-mark.d.ts +0 -1
  123. package/dist/types/styles/shared/column-layout.d.ts +0 -4
  124. package/dist/types/styles/shared/embedCard.d.ts +0 -3
  125. package/dist/types/styles/shared/indentation.d.ts +0 -2
  126. package/dist/types/styles/shared/link.d.ts +0 -2
  127. package/dist/types/styles/shared/paragraph.d.ts +0 -1
  128. package/dist/types/styles/shared/rule.d.ts +0 -1
  129. package/dist/types/styles/shared/shadow.d.ts +0 -15
  130. package/dist/types/styles/shared/text-color.d.ts +0 -2
  131. package/dist/types/styles/shared/whitespace.d.ts +0 -2
  132. package/dist/types-ts4.5/styles/shared/background-color.d.ts +0 -1
  133. package/dist/types-ts4.5/styles/shared/block-marks.d.ts +0 -2
  134. package/dist/types-ts4.5/styles/shared/code-mark.d.ts +0 -1
  135. package/dist/types-ts4.5/styles/shared/column-layout.d.ts +0 -4
  136. package/dist/types-ts4.5/styles/shared/embedCard.d.ts +0 -3
  137. package/dist/types-ts4.5/styles/shared/indentation.d.ts +0 -2
  138. package/dist/types-ts4.5/styles/shared/link.d.ts +0 -2
  139. package/dist/types-ts4.5/styles/shared/paragraph.d.ts +0 -1
  140. package/dist/types-ts4.5/styles/shared/rule.d.ts +0 -1
  141. package/dist/types-ts4.5/styles/shared/shadow.d.ts +0 -15
  142. package/dist/types-ts4.5/styles/shared/text-color.d.ts +0 -2
  143. package/dist/types-ts4.5/styles/shared/whitespace.d.ts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 110.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`be54c7e850cd3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be54c7e850cd3) -
8
+ remove unused deprecated styles used to be consumed in editor content styles
9
+ - [`30bb04cd8a8e9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/30bb04cd8a8e9) -
10
+ [ux] [ED-29292] Fix 2 issues with wrapped images in editor and renderer
11
+
12
+ 1. There is a gap between the first and the second wrapped images
13
+ 2. For wrapped images in layout, if image is the first node, it not horizontally aligned with the
14
+ following wrapped images
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 110.9.0
4
19
 
5
20
  ### Minor Changes
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
16
16
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "110.8.0";
19
+ var packageVersion = "110.9.0";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // Ignored via go/ees007
package/dist/cjs/panel.js CHANGED
@@ -33,16 +33,4 @@ Object.defineProperty(exports, "getPanelTypeBackgroundNoTokens", {
33
33
  return _panel.getPanelTypeBackgroundNoTokens;
34
34
  }
35
35
  });
36
- Object.defineProperty(exports, "panelSharedStyles", {
37
- enumerable: true,
38
- get: function get() {
39
- return _panel.panelSharedStyles;
40
- }
41
- });
42
- Object.defineProperty(exports, "panelSharedStylesWithoutPrefix", {
43
- enumerable: true,
44
- get: function get() {
45
- return _panel.panelSharedStylesWithoutPrefix;
46
- }
47
- });
48
36
  var _panel = require("./styles/shared/panel");
@@ -3,12 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "AnnotationSharedCSSByState", {
7
- enumerable: true,
8
- get: function get() {
9
- return _annotation.AnnotationSharedCSSByState;
10
- }
11
- });
12
6
  Object.defineProperty(exports, "AnnotationSharedClassNames", {
13
7
  enumerable: true,
14
8
  get: function get() {
@@ -153,24 +147,6 @@ Object.defineProperty(exports, "UnsupportedSharedCssClassName", {
153
147
  return _unsupportedContent.UnsupportedSharedCssClassName;
154
148
  }
155
149
  });
156
- Object.defineProperty(exports, "annotationSharedStyles", {
157
- enumerable: true,
158
- get: function get() {
159
- return _annotation.annotationSharedStyles;
160
- }
161
- });
162
- Object.defineProperty(exports, "backgroundColorStyles", {
163
- enumerable: true,
164
- get: function get() {
165
- return _backgroundColor.backgroundColorStyles;
166
- }
167
- });
168
- Object.defineProperty(exports, "blockMarksSharedStyles", {
169
- enumerable: true,
170
- get: function get() {
171
- return _blockMarks.blockMarksSharedStyles;
172
- }
173
- });
174
150
  Object.defineProperty(exports, "blockquoteSharedStyles", {
175
151
  enumerable: true,
176
152
  get: function get() {
@@ -195,66 +171,12 @@ Object.defineProperty(exports, "calcTableWidth", {
195
171
  return _table.calcTableWidth;
196
172
  }
197
173
  });
198
- Object.defineProperty(exports, "codeBlockInListSafariFix", {
199
- enumerable: true,
200
- get: function get() {
201
- return _codeBlock.codeBlockInListSafariFix;
202
- }
203
- });
204
- Object.defineProperty(exports, "codeBlockSharedStyles", {
205
- enumerable: true,
206
- get: function get() {
207
- return _codeBlock.codeBlockSharedStyles;
208
- }
209
- });
210
- Object.defineProperty(exports, "codeMarkSharedStyles", {
211
- enumerable: true,
212
- get: function get() {
213
- return _codeMark.codeMarkSharedStyles;
214
- }
215
- });
216
- Object.defineProperty(exports, "columnLayoutResponsiveRendererStyles", {
217
- enumerable: true,
218
- get: function get() {
219
- return _columnLayout.columnLayoutResponsiveRendererStyles;
220
- }
221
- });
222
- Object.defineProperty(exports, "columnLayoutResponsiveSharedStyle", {
223
- enumerable: true,
224
- get: function get() {
225
- return _columnLayout.columnLayoutResponsiveSharedStyle;
226
- }
227
- });
228
- Object.defineProperty(exports, "columnLayoutSharedStyle", {
229
- enumerable: true,
230
- get: function get() {
231
- return _columnLayout.columnLayoutSharedStyle;
232
- }
233
- });
234
- Object.defineProperty(exports, "dateSharedStyle", {
235
- enumerable: true,
236
- get: function get() {
237
- return _date.dateSharedStyle;
238
- }
239
- });
240
174
  Object.defineProperty(exports, "disableBlueBorderStyles", {
241
175
  enumerable: true,
242
176
  get: function get() {
243
177
  return _plugins.disableBlueBorderStyles;
244
178
  }
245
179
  });
246
- Object.defineProperty(exports, "embedCardStyles", {
247
- enumerable: true,
248
- get: function get() {
249
- return _embedCard.embedCardStyles;
250
- }
251
- });
252
- Object.defineProperty(exports, "embedSpacingStyles", {
253
- enumerable: true,
254
- get: function get() {
255
- return _embedCard.embedSpacingStyles;
256
- }
257
- });
258
180
  Object.defineProperty(exports, "expandClassNames", {
259
181
  enumerable: true,
260
182
  get: function get() {
@@ -279,48 +201,18 @@ Object.defineProperty(exports, "getOrderedListInlineStyles", {
279
201
  return _lists.getOrderedListInlineStyles;
280
202
  }
281
203
  });
282
- Object.defineProperty(exports, "getSmartCardSharedStyles", {
283
- enumerable: true,
284
- get: function get() {
285
- return _smartCard.getSmartCardSharedStyles;
286
- }
287
- });
288
- Object.defineProperty(exports, "gridStyles", {
289
- enumerable: true,
290
- get: function get() {
291
- return _grid.gridStyles;
292
- }
293
- });
294
204
  Object.defineProperty(exports, "headingsSharedStyles", {
295
205
  enumerable: true,
296
206
  get: function get() {
297
207
  return _headings.headingsSharedStyles;
298
208
  }
299
209
  });
300
- Object.defineProperty(exports, "indentationSharedStyles", {
301
- enumerable: true,
302
- get: function get() {
303
- return _indentation.indentationSharedStyles;
304
- }
305
- });
306
- Object.defineProperty(exports, "linkSharedStyle", {
307
- enumerable: true,
308
- get: function get() {
309
- return _link.linkSharedStyle;
310
- }
311
- });
312
210
  Object.defineProperty(exports, "listItemCounterPadding", {
313
211
  enumerable: true,
314
212
  get: function get() {
315
213
  return _lists.listItemCounterPadding;
316
214
  }
317
215
  });
318
- Object.defineProperty(exports, "listsSharedStyles", {
319
- enumerable: true,
320
- get: function get() {
321
- return _lists.listsSharedStyles;
322
- }
323
- });
324
216
  Object.defineProperty(exports, "mediaSingleSharedStyle", {
325
217
  enumerable: true,
326
218
  get: function get() {
@@ -333,36 +225,6 @@ Object.defineProperty(exports, "mediaSingleSharedStyleNew", {
333
225
  return _mediaSingle.mediaSingleSharedStyleNew;
334
226
  }
335
227
  });
336
- Object.defineProperty(exports, "paragraphSharedStyles", {
337
- enumerable: true,
338
- get: function get() {
339
- return _paragraph.paragraphSharedStyles;
340
- }
341
- });
342
- Object.defineProperty(exports, "pragmaticResizerStyles", {
343
- enumerable: true,
344
- get: function get() {
345
- return _resizer.pragmaticResizerStyles;
346
- }
347
- });
348
- Object.defineProperty(exports, "pragmaticResizerStylesForTooltip", {
349
- enumerable: true,
350
- get: function get() {
351
- return _resizer.pragmaticResizerStylesForTooltip;
352
- }
353
- });
354
- Object.defineProperty(exports, "pragmaticResizerStylesWithReducedEditorGutter", {
355
- enumerable: true,
356
- get: function get() {
357
- return _resizer.pragmaticResizerStylesWithReducedEditorGutter;
358
- }
359
- });
360
- Object.defineProperty(exports, "pragmaticStylesLayoutFirstNodeResizeHandleFix", {
361
- enumerable: true,
362
- get: function get() {
363
- return _resizer.pragmaticStylesLayoutFirstNodeResizeHandleFix;
364
- }
365
- });
366
228
  Object.defineProperty(exports, "resizerHandleClassName", {
367
229
  enumerable: true,
368
230
  get: function get() {
@@ -399,42 +261,12 @@ Object.defineProperty(exports, "richMediaClassName", {
399
261
  return _mediaSingle.richMediaClassName;
400
262
  }
401
263
  });
402
- Object.defineProperty(exports, "ruleSharedStyles", {
403
- enumerable: true,
404
- get: function get() {
405
- return _rule.ruleSharedStyles;
406
- }
407
- });
408
264
  Object.defineProperty(exports, "separatorStyles", {
409
265
  enumerable: true,
410
266
  get: function get() {
411
267
  return _plugins.separatorStyles;
412
268
  }
413
269
  });
414
- Object.defineProperty(exports, "shadowSharedStyle", {
415
- enumerable: true,
416
- get: function get() {
417
- return _shadow.shadowSharedStyle;
418
- }
419
- });
420
- Object.defineProperty(exports, "sharedExpandStyles", {
421
- enumerable: true,
422
- get: function get() {
423
- return _sharedStyles.sharedExpandStyles;
424
- }
425
- });
426
- Object.defineProperty(exports, "smartCardSharedStyles", {
427
- enumerable: true,
428
- get: function get() {
429
- return _smartCard.smartCardSharedStyles;
430
- }
431
- });
432
- Object.defineProperty(exports, "smartCardStyles", {
433
- enumerable: true,
434
- get: function get() {
435
- return _smartCard2.smartCardStyles;
436
- }
437
- });
438
270
  Object.defineProperty(exports, "tableCellBorderWidth", {
439
271
  enumerable: true,
440
272
  get: function get() {
@@ -507,18 +339,6 @@ Object.defineProperty(exports, "tableSharedStyle", {
507
339
  return _table.tableSharedStyle;
508
340
  }
509
341
  });
510
- Object.defineProperty(exports, "tasksAndDecisionsStyles", {
511
- enumerable: true,
512
- get: function get() {
513
- return _taskDecision.tasksAndDecisionsStyles;
514
- }
515
- });
516
- Object.defineProperty(exports, "textColorStyles", {
517
- enumerable: true,
518
- get: function get() {
519
- return _textColor.textColorStyles;
520
- }
521
- });
522
342
  Object.defineProperty(exports, "triggerWrapperStyles", {
523
343
  enumerable: true,
524
344
  get: function get() {
@@ -531,41 +351,18 @@ Object.defineProperty(exports, "triggerWrapperStylesWithPadding", {
531
351
  return _plugins.triggerWrapperStylesWithPadding;
532
352
  }
533
353
  });
534
- Object.defineProperty(exports, "unsupportedStyles", {
535
- enumerable: true,
536
- get: function get() {
537
- return _unsupportedContent.unsupportedStyles;
538
- }
539
- });
540
- Object.defineProperty(exports, "whitespaceSharedStyles", {
541
- enumerable: true,
542
- get: function get() {
543
- return _whitespace.whitespaceSharedStyles;
544
- }
545
- });
546
354
  Object.defineProperty(exports, "wrapperStyle", {
547
355
  enumerable: true,
548
356
  get: function get() {
549
357
  return _plugins.wrapperStyle;
550
358
  }
551
359
  });
552
- var _textColor = require("./shared/text-color");
553
- var _backgroundColor = require("./shared/background-color");
554
360
  var _table = require("./shared/table");
555
361
  var _annotation = require("./shared/annotation");
556
- var _columnLayout = require("./shared/column-layout");
557
362
  var _mediaSingle = require("./shared/media-single");
558
363
  var _blockquote = require("./shared/blockquote");
559
364
  var _headings = require("./shared/headings");
560
- var _rule = require("./shared/rule");
561
- var _whitespace = require("./shared/whitespace");
562
- var _paragraph = require("./shared/paragraph");
563
- var _link = require("./shared/link");
564
365
  var _lists = require("./shared/lists");
565
- var _indentation = require("./shared/indentation");
566
- var _blockMarks = require("./shared/block-marks");
567
- var _codeMark = require("./shared/code-mark");
568
- var _shadow = require("./shared/shadow");
569
366
  var _date = require("./shared/date");
570
367
  var _taskDecision = require("./shared/task-decision");
571
368
  var _status = require("./shared/status");
@@ -577,7 +374,6 @@ var _extension = require("./shared/extension");
577
374
  var _resizer = require("./shared/resizer");
578
375
  var _grid = require("./shared/grid");
579
376
  var _smartCard2 = require("./shared/smartCard");
580
- var _embedCard = require("./shared/embedCard");
581
377
  var _plugins = require("./shared/plugins");
582
378
  var _unsupportedContent = require("./shared/unsupported-content");
583
379
  var _expand = require("./shared/expand");
@@ -1,14 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
- exports.blockAnnotationPrefix = exports.annotationSharedStyles = exports.annotationPrefix = exports.BlockAnnotationSharedClassNames = exports.AnnotationSharedClassNames = exports.AnnotationSharedCSSByState = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
- var _react = require("@emotion/react");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
- var _templateObject, _templateObject2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ exports.blockAnnotationPrefix = exports.annotationPrefix = exports.BlockAnnotationSharedClassNames = exports.AnnotationSharedClassNames = void 0;
12
7
  var annotationPrefix = exports.annotationPrefix = 'ak-editor-annotation';
13
8
  var AnnotationSharedClassNames = exports.AnnotationSharedClassNames = {
14
9
  focus: "".concat(annotationPrefix, "-focus"),
@@ -21,66 +16,4 @@ var BlockAnnotationSharedClassNames = exports.BlockAnnotationSharedClassNames =
21
16
  focus: "".concat(blockAnnotationPrefix, "-focus"),
22
17
  blur: "".concat(blockAnnotationPrefix, "-blur"),
23
18
  draft: "".concat(blockAnnotationPrefix, "-draft")
24
- };
25
- var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
26
- if ((0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes')) {
27
- // NOTE: These styles are shared between renderer and editor. Sometimes they
28
- // need different selectors and other times they apply the same attributes
29
- // in a different way. For example in renderer the focus styles are an
30
- // override, not a separate class. Be sure to check both usages of this
31
- // before modifying.
32
- return {
33
- common: {
34
- borderBottom: '2px solid transparent',
35
- cursor: 'pointer',
36
- padding: '1px 0 2px',
37
- '&:has(.card), &:has([data-inline-card])': (0, _platformFeatureFlags.fg)('annotations_align_editor_and_renderer_styles') ? {
38
- padding: '5px 0 3px 0'
39
- } : {
40
- paddingTop: '4px',
41
- border: 'none',
42
- boxShadow: "0 2px 0 0 ".concat("var(--ds-border-accent-yellow, #B38600)")
43
- },
44
- '&:has(.date-lozenger-container)': {
45
- paddingTop: '2px'
46
- }
47
- },
48
- focus: (0, _react.css)({
49
- background: "var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)",
50
- borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
51
- boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #091E4240, 0px 0px 1px #091E424f)"
52
- }),
53
- blur: (0, _react.css)({
54
- background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
55
- borderBottomColor: "var(--ds-border-accent-yellow, #B38600)"
56
- }),
57
- hover: (0, _react.css)({
58
- background: "var(--ds-background-accent-yellow-subtlest-hovered, #F8E6A0)",
59
- borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
60
- boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #091E4240, 0px 0px 1px #091E424f)"
61
- })
62
- };
63
- } else {
64
- return {
65
- focus: (0, _react.css)({
66
- // Background is not coming through in confluence, suspecting to be caused by some specific combination of
67
- // emotion and token look up
68
- background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
69
- borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
70
- // TODO: DSP-4147 - Annotation shadow
71
- boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
72
- cursor: 'pointer'
73
- }),
74
- blur: (0, _react.css)({
75
- background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
76
- borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
77
- cursor: 'pointer'
78
- })
79
- };
80
- }
81
- };
82
- var annotationSharedStyles = exports.annotationSharedStyles = function annotationSharedStyles() {
83
- return (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
84
- (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.blur, AnnotationSharedClassNames.focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().common, AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur, AnnotationSharedClassNames.hover, AnnotationSharedCSSByState().common, AnnotationSharedCSSByState().hover) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
85
- (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
86
19
  };
@@ -1,16 +1,9 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
- exports.codeBlockSharedStyles = exports.codeBlockInListSafariFix = exports.CodeBlockSharedCssClassName = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
- var _react = require("@emotion/react");
10
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _templateObject, _templateObject2;
12
- /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
+ exports.CodeBlockSharedCssClassName = void 0;
14
7
  var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
15
8
  CODEBLOCK_CONTAINER: 'code-block',
16
9
  CODEBLOCK_START: 'code-block--start',
@@ -21,12 +14,4 @@ var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
21
14
  DS_CODEBLOCK: '[data-ds--code--code-block]',
22
15
  CODEBLOCK_CONTENT_WRAPPED: 'code-content--wrapped',
23
16
  CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: 'code-content__line-number--wrapped'
24
- };
25
- var codeBlockSharedStyles = exports.codeBlockSharedStyles = function codeBlockSharedStyles() {
26
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t.code-block-gutter-pseudo-element::before {\n\t\t\tcontent: attr(data-label);\n\t\t}\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t/* This is a fix of marker of list item with code block.\n\t\t The list item marker in Chrome is aligned by the baseline of the text,\n\t\t that's why we need to add a text (content: \"1\") to the line number gutter to align\n\t\t the list item marker with the text.\n\t\t Without it, the list item marker will be aligned by the bottom of the code block. */\n\t\t.", "::before {\n\t\t\tcontent: '1';\n\t\t\tvisibility: hidden;\n\t\t\tfont-size: ", ";\n\t\t\tline-height: 1.5rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-radius-small, 3px)", _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorCodeFontFamily, _editorSharedStyles.akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-radius-small, 3px)", (0, _editorSharedStyles.overflowShadow)({
27
- leftCoverWidth: "var(--ds-space-300, 24px)"
28
- }), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, #172B4D)", "var(--ds-radius-small, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
29
- };
30
-
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
32
- var codeBlockInListSafariFix = exports.codeBlockInListSafariFix = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t::before {\n\t\tcontent: ' ';\n\t\tline-height: ", ";\n\t}\n\n\t> p:first-child,\n\t> .code-block:first-child,\n\t> .ProseMirror-gapcursor:first-child + .code-block {\n\t\tmargin-top: -", "em !important;\n\t}\n"])), _editorSharedStyles.akEditorLineHeight, _editorSharedStyles.akEditorLineHeight);
17
+ };
@@ -1,20 +1,10 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
- exports.dateSharedStyle = exports.DateSharedCssClassName = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _react = require("@emotion/react");
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
-
6
+ exports.DateSharedCssClassName = void 0;
12
7
  var DateSharedCssClassName = exports.DateSharedCssClassName = {
13
8
  DATE_WRAPPER: "date-lozenger-container",
14
9
  DATE_CONTAINER: 'dateView-content-wrap'
15
- };
16
-
17
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
18
- var dateSharedStyle = exports.dateSharedStyle = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(DateSharedCssClassName.DATE_WRAPPER, " span"), {
19
- whiteSpace: 'unset'
20
- }));
10
+ };
@@ -3,44 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.gridStyles = exports.GRID_GUTTER = void 0;
7
- var _react = require("@emotion/react");
8
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
-
11
- var GRID_GUTTER = exports.GRID_GUTTER = 12;
12
-
13
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
14
- var gridStyles = exports.gridStyles = (0, _react.css)({
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
16
- '.gridParent': {
17
- width: "calc(100% + ".concat(GRID_GUTTER * 2, "px)"),
18
- marginLeft: "var(--ds-space-negative-150, -12px)",
19
- marginRight: "var(--ds-space-negative-150, -12px)",
20
- transform: 'scale(1)',
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
22
- zIndex: _editorSharedStyles.akEditorGridLineZIndex
23
- },
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
25
- '.gridContainer': {
26
- position: 'fixed',
27
- height: '100vh',
28
- width: '100%',
29
- pointerEvents: 'none'
30
- },
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
32
- '.gridLine': {
33
- borderLeft: "1px solid ".concat("var(--ds-border, #091E4224)"),
34
- display: 'inline-block',
35
- boxSizing: 'border-box',
36
- height: '100%',
37
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
38
- marginLeft: '-1px',
39
- transition: 'border-color 0.15s linear',
40
- zIndex: 0
41
- },
42
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
43
- '.highlight': {
44
- borderLeft: "1px solid ".concat("var(--ds-border-focused, #388BFF)")
45
- }
46
- });
6
+ exports.GRID_GUTTER = void 0;
7
+ var GRID_GUTTER = exports.GRID_GUTTER = 12;
@@ -5,14 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.getOrderedListInlineStyles = getOrderedListInlineStyles;
8
- exports.listsSharedStyles = exports.listItemCounterPadding = void 0;
9
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
8
+ exports.listItemCounterPadding = void 0;
10
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
- var _react = require("@emotion/react");
13
- var _adfSchema = require("@atlaskit/adf-schema");
14
- var _browser = require("../../utils/browser");
15
- var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
11
  var listItemCounterPadding = exports.listItemCounterPadding = 24;
17
12
  var CSS_VAR_NAMES = /*#__PURE__*/function (CSS_VAR_NAMES) {
18
13
  CSS_VAR_NAMES["ITEM_COUNTER_PADDING"] = "--ed--list--item-counter--padding";
@@ -52,7 +47,4 @@ function getOrderedListInlineStyles(itemCounterDigitsSize, styleFormat
52
47
  return stringifyStyle(style);
53
48
  }
54
49
  return style;
55
- }
56
-
57
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, There is some "flow-root" hack that is not actually valid css. Do note, this might not even work in Compiled (or Emotion) due to the way tagged template expressions are parsed…
58
- var listsSharedStyles = exports.listsSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* =============== INDENTATION SPACING ========= */\n\n\tul,\n\tol {\n\t\tbox-sizing: border-box;\n\t\tpadding-left: var(", ", ", "px);\n\t\t/*\n Firefox does not handle empty block element inside li tag.\n If there is not block element inside li tag,\n then firefox sets inherited height to li\n However, if there is any block element and if it's empty\n (or has empty inline element) then\n firefox sets li tag height to zero.\n More details at\n https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation\n */\n\t\tli p:empty,\n\t\tli p > span:empty {\n\t\t\t", "\n\t\t}\n\t}\n\n\t", ", ", " {\n\t\t/*\n Ensures list item content adheres to the list's margin instead\n of filling the entire block row. This is important to allow\n clicking interactive elements which are floated next to a list.\n\n For some history and context on this block, see PRs related to tickets.:\n @see ED-6551 - original issue.\n @see ED-7015 - follow up issue.\n @see ED-7447 - flow-root change.\n\n We use 'display: table' (old clear fix / new block formatting context hack)\n for older browsers and 'flow-root' for modern browsers.\n\n @see https://css-tricks.com/display-flow-root/\n */\n\t\t/* For older browsers the do not support flow-root. */\n\t\t/* stylelint-disable declaration-block-no-duplicate-properties */\n\t\tdisplay: table;\n\t\tdisplay: flow-root;\n\t\t/* stylelint-enable declaration-block-no-duplicate-properties */\n\t}\n\n\t/* =============== INDENTATION AESTHETICS ========= */\n\n\t/**\n We support nested lists up to six levels deep.\n **/\n\n\t/* LEGACY LISTS */\n\n\tul,\n\tul ul ul ul {\n\t\tlist-style-type: disc;\n\t}\n\n\tul ul,\n\tul ul ul ul ul {\n\t\tlist-style-type: circle;\n\t}\n\n\tul ul ul,\n\tul ul ul ul ul ul {\n\t\tlist-style-type: square;\n\t}\n\n\tol,\n\tol ol ol ol {\n\t\tlist-style-type: decimal;\n\t}\n\tol ol,\n\tol ol ol ol ol {\n\t\tlist-style-type: lower-alpha;\n\t}\n\tol ol ol,\n\tol ol ol ol ol ol {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\t/* PREDICTABLE LISTS */\n\n\tol[data-indent-level='1'],\n\tol[data-indent-level='4'] {\n\t\tlist-style-type: decimal;\n\t}\n\n\tol[data-indent-level='2'],\n\tol[data-indent-level='5'] {\n\t\tlist-style-type: lower-alpha;\n\t}\n\n\tol[data-indent-level='3'],\n\tol[data-indent-level='6'] {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\tul[data-indent-level='1'],\n\tul[data-indent-level='4'] {\n\t\tlist-style-type: disc;\n\t}\n\n\tul[data-indent-level='2'],\n\tul[data-indent-level='5'] {\n\t\tlist-style-type: circle;\n\t}\n\n\tul[data-indent-level='3'],\n\tul[data-indent-level='6'] {\n\t\tlist-style-type: square;\n\t}\n"])), CSS_VAR_NAMES.ITEM_COUNTER_PADDING, listItemCounterPadding, _browser.browser.gecko ? 'display: inline-block;' : '', _adfSchema.orderedListSelector, _adfSchema.bulletListSelector);
50
+ }
@@ -1,24 +1,13 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  exports.darkPanelColors = exports.PanelSharedSelectors = exports.PanelSharedCssClassName = void 0;
8
7
  exports.getPanelDarkModeCSS = getPanelDarkModeCSS;
9
- exports.panelSharedStylesWithoutPrefix = exports.panelSharedStyles = exports.getPanelTypeBackgroundNoTokens = exports.getPanelTypeBackground = void 0;
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
12
- var _react = require("@emotion/react");
8
+ exports.getPanelTypeBackgroundNoTokens = exports.getPanelTypeBackground = void 0;
13
9
  var _adfSchema = require("@atlaskit/adf-schema");
14
10
  var _editorPalette = require("@atlaskit/editor-palette");
15
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
16
- var _consts = require("@atlaskit/editor-shared-styles/consts");
17
- var _emoji = require("@atlaskit/emoji");
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
- var _templateObject;
20
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
22
11
  var lightPanelColors = {
23
12
  info: '#DEEBFF',
24
13
  note: '#EAE6FF',
@@ -89,19 +78,6 @@ var darkPanelColors = exports.darkPanelColors = {
89
78
  LightGray: '#5A6977',
90
79
  TextColor: '#D9DDE3'
91
80
  };
92
- var lightIconColor = {
93
- info: "var(--ds-icon-information, #1D7AFC)",
94
- note: "var(--ds-icon-discovery, #8270DB)",
95
- tip: "var(--ds-icon-success, #22A06B)",
96
- success: "var(--ds-icon-success, #22A06B)",
97
- warning: "var(--ds-icon-warning, #E56910)",
98
- error: "var(--ds-icon-danger, #C9372C)"
99
- };
100
-
101
- // New custom icons are a little smaller than predefined icons.
102
- // To fix alignment issues with custom icons, vertical alignment is updated.
103
- var panelEmojiSpriteVerticalAlignment = -(8 * 3 - _consts.akEditorCustomIconSize) / 2;
104
- var panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
105
81
  function getPanelDarkModeCSS(colorName, colorValue) {
106
82
  return "\n &[data-panel-color=\"".concat(colorName, "\"] {\n background-color: ").concat(colorValue, " !important; // !important to override default style color\n color: ").concat(darkPanelColors.TextColor, ";\n }\n ");
107
83
  }
@@ -135,9 +111,6 @@ var PanelSharedSelectors = exports.PanelSharedSelectors = {
135
111
  yellowWarningIcon: "[aria-label=\":warning:\"] span:nth-child(1)",
136
112
  copyButton: "button[aria-label=\"Copy\"]"
137
113
  };
138
- var getIconStyles = function getIconStyles(panelType) {
139
- return "\n\t\t.".concat(PanelSharedCssClassName.icon, "[data-panel-type='").concat(panelType, "'] {\n\t\t\tcolor: ").concat(lightIconColor[panelType], ";\n\t\t}\n\t");
140
- };
141
114
 
142
115
  // Provides the color without tokens, used when converting to a custom panel
143
116
  var getPanelTypeBackgroundNoTokens = exports.getPanelTypeBackgroundNoTokens = function getPanelTypeBackgroundNoTokens(panelType) {
@@ -145,15 +118,4 @@ var getPanelTypeBackgroundNoTokens = exports.getPanelTypeBackgroundNoTokens = fu
145
118
  };
146
119
  var getPanelTypeBackground = exports.getPanelTypeBackground = function getPanelTypeBackground(panelType) {
147
120
  return (0, _editorPalette.hexToEditorBackgroundPaletteColor)(lightPanelColors[panelType]) || 'none';
148
- };
149
- var mainDynamicStyles = function mainDynamicStyles(panelType) {
150
- return "\n background-color: ".concat(getPanelTypeBackground(panelType), ";\n color: inherit;\n ");
151
- };
152
-
153
- // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Safe to autofix with a tiny tweak to `mainDynamicStyles` being an object, but holding off…
154
- var panelSharedStylesWithoutPrefix = exports.panelSharedStylesWithoutPrefix = function panelSharedStylesWithoutPrefix() {
155
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\tborder-radius: ", ";\n\tmargin: ", " 0 0;\n\tpadding-top: ", ";\n\tpadding-right: ", ";\n\tpadding-bottom: ", ";\n\tpadding-left: ", ";\n\tmin-width: ", "px;\n\tdisplay: flex;\n\tposition: relative;\n\talign-items: normal;\n\tword-break: break-word;\n\n\t", "\n\n\t.", " {\n\t\tflex-shrink: 0;\n\t\theight: ", ";\n\t\twidth: ", ";\n\t\tbox-sizing: content-box;\n\t\tpadding-right: ", ";\n\t\ttext-align: center;\n\t\tuser-select: none;\n\t\t-moz-user-select: none;\n\t\t-webkit-user-select: none;\n\t\t-ms-user-select: none;\n\t\tmargin-top: 0.1em;\n\n\t\t> span {\n\t\t\tvertical-align: middle;\n\t\t\tdisplay: inline-flex;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\t\t}\n\n\t\t.", " {\n\t\t\tvertical-align: ", "px;\n\n\t\t\t/* Vertical align only works for inline-block elements in Firefox */\n\t\t\t@-moz-document url-prefix() {\n\t\t\t\timg {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t.ak-editor-panel__content {\n\t\tmargin: ", " 0 ", ";\n\t\tflex: 1 0 0;\n\t\t/*\n https://ishadeed.com/article/min-max-css/#setting-min-width-to-zero-with-flexbox\n The default value for min-width is auto, which is computed to zero. When an element is a flex item, the value of min-width doesn\u2019t compute to zero. The minimum size of a flex item is equal to the size of its contents.\n */\n\t\tmin-width: 0;\n\t}\n\n\t/* support nested panel */\n\t.", " .", " {\n\t\tborder: 1px solid ", ";\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t\t", "\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t\t", "\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t\t", "\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t\t", "\n\t}\n\n\t&[data-panel-type='", "'] {\n\t\t", "\n\t\t", "\n\t}\n\n\t", "\n"])), "var(--ds-radius-small, 3px)", _editorSharedStyles.blockNodesVerticalMargin, "var(--ds-space-100, 8px)", "var(--ds-space-200, 16px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", _editorSharedStyles.akEditorTableCellMinWidth, mainDynamicStyles(_adfSchema.PanelType.INFO), PanelSharedCssClassName.icon, "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", _emoji.emojiSprite, panelEmojiSpriteVerticalAlignment, _emoji.emojiImage, panelEmojiImageVerticalAlignment, "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", PanelSharedCssClassName.content, prefix, "var(--ds-border, #091E42)", _adfSchema.PanelType.INFO, getIconStyles(_adfSchema.PanelType.INFO), _adfSchema.PanelType.NOTE, mainDynamicStyles(_adfSchema.PanelType.NOTE), getIconStyles(_adfSchema.PanelType.NOTE), _adfSchema.PanelType.TIP, mainDynamicStyles(_adfSchema.PanelType.TIP), getIconStyles(_adfSchema.PanelType.TIP), _adfSchema.PanelType.WARNING, mainDynamicStyles(_adfSchema.PanelType.WARNING), getIconStyles(_adfSchema.PanelType.WARNING), _adfSchema.PanelType.ERROR, mainDynamicStyles(_adfSchema.PanelType.ERROR), getIconStyles(_adfSchema.PanelType.ERROR), _adfSchema.PanelType.SUCCESS, mainDynamicStyles(_adfSchema.PanelType.SUCCESS), getIconStyles(_adfSchema.PanelType.SUCCESS), (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? "&.".concat(PanelSharedCssClassName.noIcon, " {\n\t\t\tpadding-right: ", "var(--ds-space-150, 12px)", ";\n\t\t\tpadding-left: ", "var(--ds-space-150, 12px)", ";\n\t\t}") : '');
156
- };
157
- var panelSharedStyles = exports.panelSharedStyles = function panelSharedStyles() {
158
- return (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(PanelSharedCssClassName.prefix), panelSharedStylesWithoutPrefix()));
159
121
  };