@atlaskit/editor-shared-styles 1.6.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 (59) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/build/tsconfig.json +17 -0
  3. package/consts/package.json +7 -0
  4. package/dist/cjs/consts/consts.js +277 -0
  5. package/dist/cjs/consts/consts.test.js +25 -0
  6. package/dist/cjs/consts/index.js +541 -0
  7. package/dist/cjs/consts/types.js +5 -0
  8. package/dist/cjs/index.js +563 -0
  9. package/dist/cjs/overflow-shadow/index.js +13 -0
  10. package/dist/cjs/overflow-shadow/overflow-shadow.js +22 -0
  11. package/dist/cjs/selection/index.js +27 -0
  12. package/dist/cjs/selection/types.js +21 -0
  13. package/dist/cjs/selection/utils.js +49 -0
  14. package/dist/cjs/version.json +5 -0
  15. package/dist/es2019/consts/consts.js +152 -0
  16. package/dist/es2019/consts/consts.test.js +20 -0
  17. package/dist/es2019/consts/index.js +1 -0
  18. package/dist/es2019/consts/types.js +1 -0
  19. package/dist/es2019/index.js +3 -0
  20. package/dist/es2019/overflow-shadow/index.js +1 -0
  21. package/dist/es2019/overflow-shadow/overflow-shadow.js +23 -0
  22. package/dist/es2019/selection/index.js +2 -0
  23. package/dist/es2019/selection/types.js +13 -0
  24. package/dist/es2019/selection/utils.js +61 -0
  25. package/dist/es2019/version.json +5 -0
  26. package/dist/esm/consts/consts.js +162 -0
  27. package/dist/esm/consts/consts.test.js +22 -0
  28. package/dist/esm/consts/index.js +1 -0
  29. package/dist/esm/consts/types.js +1 -0
  30. package/dist/esm/index.js +3 -0
  31. package/dist/esm/overflow-shadow/index.js +1 -0
  32. package/dist/esm/overflow-shadow/overflow-shadow.js +10 -0
  33. package/dist/esm/selection/index.js +2 -0
  34. package/dist/esm/selection/types.js +13 -0
  35. package/dist/esm/selection/utils.js +38 -0
  36. package/dist/esm/version.json +5 -0
  37. package/dist/types/consts/consts.d.ts +124 -0
  38. package/dist/types/consts/index.d.ts +2 -0
  39. package/dist/types/consts/types.d.ts +3 -0
  40. package/dist/types/index.d.ts +4 -0
  41. package/dist/types/overflow-shadow/index.d.ts +1 -0
  42. package/dist/types/overflow-shadow/overflow-shadow.d.ts +5 -0
  43. package/dist/types/selection/index.d.ts +2 -0
  44. package/dist/types/selection/types.d.ts +11 -0
  45. package/dist/types/selection/utils.d.ts +13 -0
  46. package/package.json +46 -0
  47. package/selection/package.json +7 -0
  48. package/src/consts/consts.test.ts +21 -0
  49. package/src/consts/consts.ts +204 -0
  50. package/src/consts/index.ts +92 -0
  51. package/src/consts/types.ts +3 -0
  52. package/src/index.ts +99 -0
  53. package/src/overflow-shadow/index.ts +1 -0
  54. package/src/overflow-shadow/overflow-shadow.ts +29 -0
  55. package/src/selection/__tests__/unit/utils.ts +43 -0
  56. package/src/selection/index.ts +5 -0
  57. package/src/selection/types.ts +11 -0
  58. package/src/selection/utils.ts +71 -0
  59. package/tsconfig.json +11 -0
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,563 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "akEditorActiveBackground", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _consts.akEditorActiveBackground;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "akEditorActiveForeground", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _consts.akEditorActiveForeground;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "akEditorBlockquoteBorderColor", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _consts.akEditorBlockquoteBorderColor;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "akEditorBreakoutPadding", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _consts.akEditorBreakoutPadding;
28
+ }
29
+ });
30
+ Object.defineProperty(exports, "akEditorCodeBackground", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _consts.akEditorCodeBackground;
34
+ }
35
+ });
36
+ Object.defineProperty(exports, "akEditorCodeBlockPadding", {
37
+ enumerable: true,
38
+ get: function get() {
39
+ return _consts.akEditorCodeBlockPadding;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "akEditorCodeFontFamily", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _consts.akEditorCodeFontFamily;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "akEditorCodeInlinePadding", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _consts.akEditorCodeInlinePadding;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "akEditorContextPanelWidth", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _consts.akEditorContextPanelWidth;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "akEditorDefaultLayoutWidth", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _consts.akEditorDefaultLayoutWidth;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "akEditorDeleteBackground", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _consts.akEditorDeleteBackground;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "akEditorDeleteBackgroundShaded", {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _consts.akEditorDeleteBackgroundShaded;
76
+ }
77
+ });
78
+ Object.defineProperty(exports, "akEditorDeleteBackgroundWithOpacity", {
79
+ enumerable: true,
80
+ get: function get() {
81
+ return _consts.akEditorDeleteBackgroundWithOpacity;
82
+ }
83
+ });
84
+ Object.defineProperty(exports, "akEditorDeleteBorder", {
85
+ enumerable: true,
86
+ get: function get() {
87
+ return _consts.akEditorDeleteBorder;
88
+ }
89
+ });
90
+ Object.defineProperty(exports, "akEditorDeleteIconColor", {
91
+ enumerable: true,
92
+ get: function get() {
93
+ return _consts.akEditorDeleteIconColor;
94
+ }
95
+ });
96
+ Object.defineProperty(exports, "akEditorDropdownActiveBackground", {
97
+ enumerable: true,
98
+ get: function get() {
99
+ return _consts.akEditorDropdownActiveBackground;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, "akEditorFloatingDialogZIndex", {
103
+ enumerable: true,
104
+ get: function get() {
105
+ return _consts.akEditorFloatingDialogZIndex;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, "akEditorFloatingOverlapPanelZIndex", {
109
+ enumerable: true,
110
+ get: function get() {
111
+ return _consts.akEditorFloatingOverlapPanelZIndex;
112
+ }
113
+ });
114
+ Object.defineProperty(exports, "akEditorFloatingPanelZIndex", {
115
+ enumerable: true,
116
+ get: function get() {
117
+ return _consts.akEditorFloatingPanelZIndex;
118
+ }
119
+ });
120
+ Object.defineProperty(exports, "akEditorFocus", {
121
+ enumerable: true,
122
+ get: function get() {
123
+ return _consts.akEditorFocus;
124
+ }
125
+ });
126
+ Object.defineProperty(exports, "akEditorFullPageMaxWidth", {
127
+ enumerable: true,
128
+ get: function get() {
129
+ return _consts.akEditorFullPageMaxWidth;
130
+ }
131
+ });
132
+ Object.defineProperty(exports, "akEditorFullPageDefaultFontSize", {
133
+ enumerable: true,
134
+ get: function get() {
135
+ return _consts.akEditorFullPageDefaultFontSize;
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "akEditorFullWidthLayoutWidth", {
139
+ enumerable: true,
140
+ get: function get() {
141
+ return _consts.akEditorFullWidthLayoutWidth;
142
+ }
143
+ });
144
+ Object.defineProperty(exports, "akEditorFullWidthLayoutLineLength", {
145
+ enumerable: true,
146
+ get: function get() {
147
+ return _consts.akEditorFullWidthLayoutLineLength;
148
+ }
149
+ });
150
+ Object.defineProperty(exports, "akEditorGridLineZIndex", {
151
+ enumerable: true,
152
+ get: function get() {
153
+ return _consts.akEditorGridLineZIndex;
154
+ }
155
+ });
156
+ Object.defineProperty(exports, "akEditorGutterPadding", {
157
+ enumerable: true,
158
+ get: function get() {
159
+ return _consts.akEditorGutterPadding;
160
+ }
161
+ });
162
+ Object.defineProperty(exports, "akEditorInactiveForeground", {
163
+ enumerable: true,
164
+ get: function get() {
165
+ return _consts.akEditorInactiveForeground;
166
+ }
167
+ });
168
+ Object.defineProperty(exports, "akEditorMediaResizeHandlerPadding", {
169
+ enumerable: true,
170
+ get: function get() {
171
+ return _consts.akEditorMediaResizeHandlerPadding;
172
+ }
173
+ });
174
+ Object.defineProperty(exports, "akEditorMediaResizeHandlerPaddingWide", {
175
+ enumerable: true,
176
+ get: function get() {
177
+ return _consts.akEditorMediaResizeHandlerPaddingWide;
178
+ }
179
+ });
180
+ Object.defineProperty(exports, "akEditorMentionSelected", {
181
+ enumerable: true,
182
+ get: function get() {
183
+ return _consts.akEditorMentionSelected;
184
+ }
185
+ });
186
+ Object.defineProperty(exports, "akEditorMenuZIndex", {
187
+ enumerable: true,
188
+ get: function get() {
189
+ return _consts.akEditorMenuZIndex;
190
+ }
191
+ });
192
+ Object.defineProperty(exports, "akEditorStickyHeaderZIndex", {
193
+ enumerable: true,
194
+ get: function get() {
195
+ return _consts.akEditorStickyHeaderZIndex;
196
+ }
197
+ });
198
+ Object.defineProperty(exports, "akEditorMobileBreakoutPoint", {
199
+ enumerable: true,
200
+ get: function get() {
201
+ return _consts.akEditorMobileBreakoutPoint;
202
+ }
203
+ });
204
+ Object.defineProperty(exports, "akEditorPopupBackground", {
205
+ enumerable: true,
206
+ get: function get() {
207
+ return _consts.akEditorPopupBackground;
208
+ }
209
+ });
210
+ Object.defineProperty(exports, "akEditorPopupText", {
211
+ enumerable: true,
212
+ get: function get() {
213
+ return _consts.akEditorPopupText;
214
+ }
215
+ });
216
+ Object.defineProperty(exports, "akEditorPrimaryButton", {
217
+ enumerable: true,
218
+ get: function get() {
219
+ return _consts.akEditorPrimaryButton;
220
+ }
221
+ });
222
+ Object.defineProperty(exports, "akEditorSelectedBorderColor", {
223
+ enumerable: true,
224
+ get: function get() {
225
+ return _consts.akEditorSelectedBorderColor;
226
+ }
227
+ });
228
+ Object.defineProperty(exports, "akEditorSelectedBorderBoldSize", {
229
+ enumerable: true,
230
+ get: function get() {
231
+ return _consts.akEditorSelectedBorderBoldSize;
232
+ }
233
+ });
234
+ Object.defineProperty(exports, "akEditorSelectedBorderSize", {
235
+ enumerable: true,
236
+ get: function get() {
237
+ return _consts.akEditorSelectedBorderSize;
238
+ }
239
+ });
240
+ Object.defineProperty(exports, "akEditorSelectedBorder", {
241
+ enumerable: true,
242
+ get: function get() {
243
+ return _consts.akEditorSelectedBorder;
244
+ }
245
+ });
246
+ Object.defineProperty(exports, "akEditorSelectedBoxShadow", {
247
+ enumerable: true,
248
+ get: function get() {
249
+ return _consts.akEditorSelectedBoxShadow;
250
+ }
251
+ });
252
+ Object.defineProperty(exports, "akEditorSelectedIconColor", {
253
+ enumerable: true,
254
+ get: function get() {
255
+ return _consts.akEditorSelectedIconColor;
256
+ }
257
+ });
258
+ Object.defineProperty(exports, "akEditorSelectedBlanketColor", {
259
+ enumerable: true,
260
+ get: function get() {
261
+ return _consts.akEditorSelectedBlanketColor;
262
+ }
263
+ });
264
+ Object.defineProperty(exports, "akEditorSelectedBgColor", {
265
+ enumerable: true,
266
+ get: function get() {
267
+ return _consts.akEditorSelectedBgColor;
268
+ }
269
+ });
270
+ Object.defineProperty(exports, "akEditorSelectedBlanketOpacity", {
271
+ enumerable: true,
272
+ get: function get() {
273
+ return _consts.akEditorSelectedBlanketOpacity;
274
+ }
275
+ });
276
+ Object.defineProperty(exports, "akEditorSmallZIndex", {
277
+ enumerable: true,
278
+ get: function get() {
279
+ return _consts.akEditorSmallZIndex;
280
+ }
281
+ });
282
+ Object.defineProperty(exports, "akEditorShadowZIndex", {
283
+ enumerable: true,
284
+ get: function get() {
285
+ return _consts.akEditorShadowZIndex;
286
+ }
287
+ });
288
+ Object.defineProperty(exports, "akEditorSubtleAccent", {
289
+ enumerable: true,
290
+ get: function get() {
291
+ return _consts.akEditorSubtleAccent;
292
+ }
293
+ });
294
+ Object.defineProperty(exports, "akEditorSwoopCubicBezier", {
295
+ enumerable: true,
296
+ get: function get() {
297
+ return _consts.akEditorSwoopCubicBezier;
298
+ }
299
+ });
300
+ Object.defineProperty(exports, "akEditorTableBorder", {
301
+ enumerable: true,
302
+ get: function get() {
303
+ return _consts.akEditorTableBorder;
304
+ }
305
+ });
306
+ Object.defineProperty(exports, "akEditorTableBorderDark", {
307
+ enumerable: true,
308
+ get: function get() {
309
+ return _consts.akEditorTableBorderDark;
310
+ }
311
+ });
312
+ Object.defineProperty(exports, "akEditorTableBorderDelete", {
313
+ enumerable: true,
314
+ get: function get() {
315
+ return _consts.akEditorTableBorderDelete;
316
+ }
317
+ });
318
+ Object.defineProperty(exports, "akEditorTableBorderRadius", {
319
+ enumerable: true,
320
+ get: function get() {
321
+ return _consts.akEditorTableBorderRadius;
322
+ }
323
+ });
324
+ Object.defineProperty(exports, "akEditorTableBorderSelected", {
325
+ enumerable: true,
326
+ get: function get() {
327
+ return _consts.akEditorTableBorderSelected;
328
+ }
329
+ });
330
+ Object.defineProperty(exports, "akEditorTableCellBackgroundOpacity", {
331
+ enumerable: true,
332
+ get: function get() {
333
+ return _consts.akEditorTableCellBackgroundOpacity;
334
+ }
335
+ });
336
+ Object.defineProperty(exports, "akEditorTableCellDelete", {
337
+ enumerable: true,
338
+ get: function get() {
339
+ return _consts.akEditorTableCellDelete;
340
+ }
341
+ });
342
+ Object.defineProperty(exports, "akEditorTableCellMinWidth", {
343
+ enumerable: true,
344
+ get: function get() {
345
+ return _consts.akEditorTableCellMinWidth;
346
+ }
347
+ });
348
+ Object.defineProperty(exports, "akEditorTableCellSelected", {
349
+ enumerable: true,
350
+ get: function get() {
351
+ return _consts.akEditorTableCellSelected;
352
+ }
353
+ });
354
+ Object.defineProperty(exports, "akEditorTableFloatingControls", {
355
+ enumerable: true,
356
+ get: function get() {
357
+ return _consts.akEditorTableFloatingControls;
358
+ }
359
+ });
360
+ Object.defineProperty(exports, "akEditorTableLegacyCellMinWidth", {
361
+ enumerable: true,
362
+ get: function get() {
363
+ return _consts.akEditorTableLegacyCellMinWidth;
364
+ }
365
+ });
366
+ Object.defineProperty(exports, "akEditorTableNumberColumnWidth", {
367
+ enumerable: true,
368
+ get: function get() {
369
+ return _consts.akEditorTableNumberColumnWidth;
370
+ }
371
+ });
372
+ Object.defineProperty(exports, "akEditorTableToolbar", {
373
+ enumerable: true,
374
+ get: function get() {
375
+ return _consts.akEditorTableToolbar;
376
+ }
377
+ });
378
+ Object.defineProperty(exports, "akEditorTableToolbarDark", {
379
+ enumerable: true,
380
+ get: function get() {
381
+ return _consts.akEditorTableToolbarDark;
382
+ }
383
+ });
384
+ Object.defineProperty(exports, "akEditorTableToolbarDelete", {
385
+ enumerable: true,
386
+ get: function get() {
387
+ return _consts.akEditorTableToolbarDelete;
388
+ }
389
+ });
390
+ Object.defineProperty(exports, "akEditorTableToolbarSelected", {
391
+ enumerable: true,
392
+ get: function get() {
393
+ return _consts.akEditorTableToolbarSelected;
394
+ }
395
+ });
396
+ Object.defineProperty(exports, "akEditorTableToolbarSize", {
397
+ enumerable: true,
398
+ get: function get() {
399
+ return _consts.akEditorTableToolbarSize;
400
+ }
401
+ });
402
+ Object.defineProperty(exports, "akEditorUnitZIndex", {
403
+ enumerable: true,
404
+ get: function get() {
405
+ return _consts.akEditorUnitZIndex;
406
+ }
407
+ });
408
+ Object.defineProperty(exports, "akEditorWideLayoutWidth", {
409
+ enumerable: true,
410
+ get: function get() {
411
+ return _consts.akEditorWideLayoutWidth;
412
+ }
413
+ });
414
+ Object.defineProperty(exports, "akLayoutGutterOffset", {
415
+ enumerable: true,
416
+ get: function get() {
417
+ return _consts.akLayoutGutterOffset;
418
+ }
419
+ });
420
+ Object.defineProperty(exports, "akRichMediaResizeZIndex", {
421
+ enumerable: true,
422
+ get: function get() {
423
+ return _consts.akRichMediaResizeZIndex;
424
+ }
425
+ });
426
+ Object.defineProperty(exports, "blockNodesVerticalMargin", {
427
+ enumerable: true,
428
+ get: function get() {
429
+ return _consts.blockNodesVerticalMargin;
430
+ }
431
+ });
432
+ Object.defineProperty(exports, "breakoutWideScaleRatio", {
433
+ enumerable: true,
434
+ get: function get() {
435
+ return _consts.breakoutWideScaleRatio;
436
+ }
437
+ });
438
+ Object.defineProperty(exports, "editorFontSize", {
439
+ enumerable: true,
440
+ get: function get() {
441
+ return _consts.editorFontSize;
442
+ }
443
+ });
444
+ Object.defineProperty(exports, "gridMediumMaxWidth", {
445
+ enumerable: true,
446
+ get: function get() {
447
+ return _consts.gridMediumMaxWidth;
448
+ }
449
+ });
450
+ Object.defineProperty(exports, "getAkEditorFullPageMaxWidth", {
451
+ enumerable: true,
452
+ get: function get() {
453
+ return _consts.getAkEditorFullPageMaxWidth;
454
+ }
455
+ });
456
+ Object.defineProperty(exports, "relativeSize", {
457
+ enumerable: true,
458
+ get: function get() {
459
+ return _consts.relativeSize;
460
+ }
461
+ });
462
+ Object.defineProperty(exports, "relativeFontSizeToBase16", {
463
+ enumerable: true,
464
+ get: function get() {
465
+ return _consts.relativeFontSizeToBase16;
466
+ }
467
+ });
468
+ Object.defineProperty(exports, "DEFAULT_EMBED_CARD_HEIGHT", {
469
+ enumerable: true,
470
+ get: function get() {
471
+ return _consts.DEFAULT_EMBED_CARD_HEIGHT;
472
+ }
473
+ });
474
+ Object.defineProperty(exports, "DEFAULT_EMBED_CARD_WIDTH", {
475
+ enumerable: true,
476
+ get: function get() {
477
+ return _consts.DEFAULT_EMBED_CARD_WIDTH;
478
+ }
479
+ });
480
+ Object.defineProperty(exports, "akEditorLineHeight", {
481
+ enumerable: true,
482
+ get: function get() {
483
+ return _consts.akEditorLineHeight;
484
+ }
485
+ });
486
+ Object.defineProperty(exports, "akEditorRuleBackground", {
487
+ enumerable: true,
488
+ get: function get() {
489
+ return _consts.akEditorRuleBackground;
490
+ }
491
+ });
492
+ Object.defineProperty(exports, "akEditorRuleBorderRadius", {
493
+ enumerable: true,
494
+ get: function get() {
495
+ return _consts.akEditorRuleBorderRadius;
496
+ }
497
+ });
498
+ Object.defineProperty(exports, "akEditorSelectedNodeClassName", {
499
+ enumerable: true,
500
+ get: function get() {
501
+ return _consts.akEditorSelectedNodeClassName;
502
+ }
503
+ });
504
+ Object.defineProperty(exports, "akEditorToolbarKeylineHeight", {
505
+ enumerable: true,
506
+ get: function get() {
507
+ return _consts.akEditorToolbarKeylineHeight;
508
+ }
509
+ });
510
+ Object.defineProperty(exports, "VIEWPORT_SIZES", {
511
+ enumerable: true,
512
+ get: function get() {
513
+ return _consts.VIEWPORT_SIZES;
514
+ }
515
+ });
516
+ Object.defineProperty(exports, "akEditorMobileMaxWidth", {
517
+ enumerable: true,
518
+ get: function get() {
519
+ return _consts.akEditorMobileMaxWidth;
520
+ }
521
+ });
522
+ Object.defineProperty(exports, "getTableCellBackgroundDarkModeColors", {
523
+ enumerable: true,
524
+ get: function get() {
525
+ return _consts.getTableCellBackgroundDarkModeColors;
526
+ }
527
+ });
528
+ Object.defineProperty(exports, "ATLASSIAN_NAVIGATION_HEIGHT", {
529
+ enumerable: true,
530
+ get: function get() {
531
+ return _consts.ATLASSIAN_NAVIGATION_HEIGHT;
532
+ }
533
+ });
534
+ Object.defineProperty(exports, "SelectionStyle", {
535
+ enumerable: true,
536
+ get: function get() {
537
+ return _selection.SelectionStyle;
538
+ }
539
+ });
540
+ Object.defineProperty(exports, "getSelectionStyles", {
541
+ enumerable: true,
542
+ get: function get() {
543
+ return _selection.getSelectionStyles;
544
+ }
545
+ });
546
+ Object.defineProperty(exports, "hideNativeBrowserTextSelectionStyles", {
547
+ enumerable: true,
548
+ get: function get() {
549
+ return _selection.hideNativeBrowserTextSelectionStyles;
550
+ }
551
+ });
552
+ Object.defineProperty(exports, "overflowShadow", {
553
+ enumerable: true,
554
+ get: function get() {
555
+ return _overflowShadow.overflowShadow;
556
+ }
557
+ });
558
+
559
+ var _consts = require("./consts");
560
+
561
+ var _selection = require("./selection");
562
+
563
+ var _overflowShadow = require("./overflow-shadow");