@atlaskit/editor-core 167.0.1 → 167.0.4

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 (117) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/i18n/cs.js +1 -23
  3. package/dist/cjs/i18n/da.js +1 -23
  4. package/dist/cjs/i18n/de.js +1 -23
  5. package/dist/cjs/i18n/es.js +1 -23
  6. package/dist/cjs/i18n/et.js +1 -23
  7. package/dist/cjs/i18n/fr.js +1 -23
  8. package/dist/cjs/i18n/hu.js +1 -23
  9. package/dist/cjs/i18n/is.js +1 -23
  10. package/dist/cjs/i18n/it.js +1 -23
  11. package/dist/cjs/i18n/ko.js +1 -23
  12. package/dist/cjs/i18n/nb.js +1 -9
  13. package/dist/cjs/i18n/nl.js +0 -3
  14. package/dist/cjs/i18n/pl.js +0 -1
  15. package/dist/cjs/i18n/pt_BR.js +1 -8
  16. package/dist/cjs/i18n/pt_PT.js +1 -11
  17. package/dist/cjs/i18n/ro.js +1 -23
  18. package/dist/cjs/i18n/sk.js +1 -23
  19. package/dist/cjs/i18n/sv.js +0 -1
  20. package/dist/cjs/plugins/card/styles.js +1 -1
  21. package/dist/cjs/plugins/date/actions.js +1 -1
  22. package/dist/cjs/plugins/layout/styles.js +1 -1
  23. package/dist/cjs/plugins/list/styles.js +3 -1
  24. package/dist/cjs/plugins/paste/handlers.js +40 -14
  25. package/dist/cjs/plugins/paste/pm-plugins/analytics.js +1 -1
  26. package/dist/cjs/plugins/paste/pm-plugins/main.js +17 -0
  27. package/dist/cjs/plugins/quick-insert/search.js +3 -1
  28. package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
  29. package/dist/cjs/plugins/table/utils/paste.js +16 -3
  30. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +7 -0
  31. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
  32. package/dist/cjs/version-wrapper.js +1 -1
  33. package/dist/cjs/version.json +1 -1
  34. package/dist/es2019/i18n/cs.js +1 -23
  35. package/dist/es2019/i18n/da.js +1 -23
  36. package/dist/es2019/i18n/de.js +1 -23
  37. package/dist/es2019/i18n/es.js +1 -23
  38. package/dist/es2019/i18n/et.js +1 -23
  39. package/dist/es2019/i18n/fr.js +1 -23
  40. package/dist/es2019/i18n/hu.js +1 -23
  41. package/dist/es2019/i18n/is.js +1 -23
  42. package/dist/es2019/i18n/it.js +1 -23
  43. package/dist/es2019/i18n/ko.js +1 -23
  44. package/dist/es2019/i18n/nb.js +1 -9
  45. package/dist/es2019/i18n/nl.js +0 -3
  46. package/dist/es2019/i18n/pl.js +0 -1
  47. package/dist/es2019/i18n/pt_BR.js +1 -8
  48. package/dist/es2019/i18n/pt_PT.js +1 -11
  49. package/dist/es2019/i18n/ro.js +1 -23
  50. package/dist/es2019/i18n/sk.js +1 -23
  51. package/dist/es2019/i18n/sv.js +0 -1
  52. package/dist/es2019/plugins/card/styles.js +3 -0
  53. package/dist/es2019/plugins/date/actions.js +1 -1
  54. package/dist/es2019/plugins/layout/styles.js +2 -1
  55. package/dist/es2019/plugins/list/styles.js +8 -0
  56. package/dist/es2019/plugins/paste/handlers.js +39 -12
  57. package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
  58. package/dist/es2019/plugins/paste/pm-plugins/main.js +14 -0
  59. package/dist/es2019/plugins/quick-insert/search.js +1 -1
  60. package/dist/es2019/plugins/table/ui/common-styles.js +4 -1
  61. package/dist/es2019/plugins/table/utils/paste.js +16 -3
  62. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +7 -0
  63. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +5 -2
  64. package/dist/es2019/version-wrapper.js +1 -1
  65. package/dist/es2019/version.json +1 -1
  66. package/dist/esm/i18n/cs.js +1 -23
  67. package/dist/esm/i18n/da.js +1 -23
  68. package/dist/esm/i18n/de.js +1 -23
  69. package/dist/esm/i18n/es.js +1 -23
  70. package/dist/esm/i18n/et.js +1 -23
  71. package/dist/esm/i18n/fr.js +1 -23
  72. package/dist/esm/i18n/hu.js +1 -23
  73. package/dist/esm/i18n/is.js +1 -23
  74. package/dist/esm/i18n/it.js +1 -23
  75. package/dist/esm/i18n/ko.js +1 -23
  76. package/dist/esm/i18n/nb.js +1 -9
  77. package/dist/esm/i18n/nl.js +0 -3
  78. package/dist/esm/i18n/pl.js +0 -1
  79. package/dist/esm/i18n/pt_BR.js +1 -8
  80. package/dist/esm/i18n/pt_PT.js +1 -11
  81. package/dist/esm/i18n/ro.js +1 -23
  82. package/dist/esm/i18n/sk.js +1 -23
  83. package/dist/esm/i18n/sv.js +0 -1
  84. package/dist/esm/plugins/card/styles.js +1 -1
  85. package/dist/esm/plugins/date/actions.js +1 -1
  86. package/dist/esm/plugins/layout/styles.js +1 -1
  87. package/dist/esm/plugins/list/styles.js +2 -1
  88. package/dist/esm/plugins/paste/handlers.js +40 -13
  89. package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
  90. package/dist/esm/plugins/paste/pm-plugins/main.js +16 -0
  91. package/dist/esm/plugins/quick-insert/search.js +3 -1
  92. package/dist/esm/plugins/table/ui/common-styles.js +1 -1
  93. package/dist/esm/plugins/table/utils/paste.js +16 -3
  94. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +7 -0
  95. package/dist/esm/ui/Appearance/Comment/Toolbar.js +1 -1
  96. package/dist/esm/version-wrapper.js +1 -1
  97. package/dist/esm/version.json +1 -1
  98. package/dist/types/i18n/cs.d.ts +0 -22
  99. package/dist/types/i18n/da.d.ts +0 -22
  100. package/dist/types/i18n/de.d.ts +0 -22
  101. package/dist/types/i18n/es.d.ts +0 -22
  102. package/dist/types/i18n/et.d.ts +0 -22
  103. package/dist/types/i18n/fr.d.ts +0 -22
  104. package/dist/types/i18n/hu.d.ts +0 -22
  105. package/dist/types/i18n/is.d.ts +0 -22
  106. package/dist/types/i18n/it.d.ts +0 -22
  107. package/dist/types/i18n/ko.d.ts +0 -22
  108. package/dist/types/i18n/nb.d.ts +0 -8
  109. package/dist/types/i18n/nl.d.ts +0 -3
  110. package/dist/types/i18n/pl.d.ts +0 -1
  111. package/dist/types/i18n/pt_BR.d.ts +0 -7
  112. package/dist/types/i18n/pt_PT.d.ts +0 -10
  113. package/dist/types/i18n/ro.d.ts +0 -22
  114. package/dist/types/i18n/sk.d.ts +0 -22
  115. package/dist/types/i18n/sv.d.ts +0 -1
  116. package/dist/types/plugins/paste/handlers.d.ts +1 -1
  117. package/package.json +11 -11
@@ -19,7 +19,7 @@ var sentinelStyles = ".".concat(ClassName.TABLE_CONTAINER, " {\n > .").concat(C
19
19
  export var tableStyles = function tableStyles(props) {
20
20
  var _props$featureFlags;
21
21
 
22
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " button {\n background: ", ";\n color: ", ";\n cursor: none;\n }\n\n .", ":not(.", ") button:hover {\n background: ", ";\n color: ", " !important;\n cursor: pointer;\n }\n\n .ProseMirror {\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n\n .", " {\n margin-bottom: 0;\n }\n\n .", " {\n td.", ", th.", " {\n position: relative;\n overflow: visible;\n }\n\n td.", " {\n background-color: ", ";\n }\n }\n\n .", " {\n ", "\n }\n\n .", " {\n ", "\n }\n\n /* Delete button */\n ", "\n /* Ends Delete button */\n\n /* sticky styles */\n .", " .", " .", ":first-of-type {\n margin-top: ", "px;\n width: ", "px;\n\n position: fixed !important;\n z-index: ", " !important;\n box-shadow: 0px -", "px ", ";\n border-right: 0 none;\n /* top set by NumberColumn component */\n }\n\n .", " .", ".sticky {\n position: fixed !important;\n /* needs to be above row controls */\n z-index: ", " !important;\n background: ", ";\n\n width: ", "px;\n height: ", "px;\n }\n\n .", ".sticky .", " {\n border-bottom: 0px none;\n border-right: 0px none;\n\n height: ", "px;\n width: ", "px;\n }\n\n .", " .", " {\n z-index: 0;\n }\n\n .", "\n .", "\n .", ".sticky {\n position: fixed !important;\n z-index: ", " !important;\n display: flex;\n border-left: ", "px solid\n ", ";\n margin-left: -", "px;\n }\n\n .", " col:first-of-type {\n /* moving rows out of a table layout does weird things in Chrome */\n border-right: 1px solid ", ";\n }\n\n tr.sticky {\n padding-top: ", "px;\n position: fixed;\n display: grid;\n\n /* to keep it above cell selection */\n z-index: ", ";\n\n overflow-y: visible;\n overflow-x: hidden;\n\n grid-auto-flow: column;\n\n /* background for where controls apply */\n background: ", ";\n box-sizing: content-box;\n\n margin-top: 2px;\n\n box-shadow: ", ";\n margin-left: -1px;\n\n &.no-pointer-events {\n pointer-events: none;\n }\n }\n\n .", " .", " {\n left: unset;\n position: fixed;\n z-index: ", ";\n }\n\n .", ".", "\n .", " {\n padding-bottom: ", "px;\n }\n\n tr.sticky th {\n border-bottom: ", "px solid\n ", ";\n margin-right: -1px;\n }\n\n .", " tr.sticky > th:last-child {\n border-right-width: 1px;\n }\n\n /* add left edge for first cell */\n .", " tr.sticky > th:first-of-type {\n margin-left: 0px;\n }\n\n /* add a little bit so the scroll lines up with the table */\n .", " tr.sticky::after {\n content: ' ';\n width: 1px;\n }\n\n /* To fix jumpiness caused in Chrome Browsers for sticky headers */\n .", " .sticky + tr {\n min-height: 0px;\n }\n\n /* move resize line a little in sticky bar */\n .", ".", " {\n tr.sticky\n td.", ",\n tr.sticky\n th.", " {\n .", "::after {\n right: ", "px;\n }\n }\n\n /* when selected put it back to normal -- :not selector would be nicer */\n tr.sticky\n td.", ".", ",\n tr.sticky\n th.", ".", " {\n .", "::after {\n right: ", "px;\n }\n }\n }\n\n tr.sticky\n .", ",\n tr.sticky\n .", " {\n z-index: 1;\n }\n\n .", " tr.sticky {\n padding-top: ", "px;\n }\n\n .", ".", "\n .", "\n .", ":first-of-type {\n margin-top: ", "px;\n }\n\n .", ".sticky {\n border-top: ", "px solid\n ", ";\n }\n\n ", "\n ", "\n\n .", " .", " {\n height: 0; // stop overflow flash & set correct height in update-overflow-shadows.ts\n }\n\n .less-padding {\n padding: 0 ", "px;\n\n .", " {\n padding: 0 ", "px;\n }\n\n &.", "[data-number-column='true'] {\n padding-left: ", "px;\n }\n\n .", " {\n left: 6px;\n }\n\n .", " {\n left: calc(100% - 6px);\n }\n }\n\n > .", " {\n /**\n * Prevent margins collapsing, aids with placing the gap-cursor correctly\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing\n *\n * TODO: Enable this, many tests will fail!\n * border-top: 1px solid transparent;\n */\n }\n\n /* Breakout only works on top level */\n > * .", " .", " {\n margin-left: unset !important;\n width: 100% !important;\n }\n\n ", ";\n\n /* Corner controls */\n .", " {\n width: ", "px;\n height: ", "px;\n display: none;\n\n .", " {\n position: relative;\n\n ", ";\n }\n\n .", " {\n position: relative;\n\n ", ";\n }\n }\n\n .", ".sticky {\n .", " {\n /* sticky row insert dot overlaps other row insert and messes things up */\n display: none !important;\n }\n }\n\n .", " {\n position: absolute;\n top: 0;\n width: ", "px;\n height: ", "px;\n border: 1px solid ", ";\n border-radius: 0;\n border-top-left-radius: ", "px;\n background: ", ";\n box-sizing: border-box;\n padding: 0;\n :focus {\n outline: none;\n }\n }\n .active .", " {\n border-color: ", ";\n background: ", ";\n }\n\n .", "[data-number-column='true'] {\n .", ", .", " {\n width: ", "px;\n }\n .", " .", " {\n border-right-width: 0;\n }\n }\n\n :not(.", ") .", ":hover {\n border-color: ", ";\n background: ", ";\n cursor: pointer;\n }\n\n :not(.", ")\n .", ".", " {\n border-color: ", ";\n background: ", ";\n }\n\n /* Row controls */\n .", " {\n width: ", "px;\n box-sizing: border-box;\n display: none;\n position: relative;\n\n ", ";\n\n .", " {\n display: flex;\n flex-direction: column;\n }\n .", ":last-child > button {\n border-bottom-left-radius: ", "px;\n }\n .", " {\n position: relative;\n margin-top: -1px;\n }\n .", ":hover,\n .", ".active,\n .", ":hover {\n z-index: ", ";\n }\n\n ", "\n }\n\n :not(.", ") .", " {\n ", "\n ", "\n }\n\n /* Numbered column */\n .", " {\n position: relative;\n float: right;\n margin-left: ", "px;\n top: ", "px;\n width: ", "px;\n box-sizing: border-box;\n }\n\n .", " {\n border: 1px solid ", ";\n box-sizing: border-box;\n margin-top: -1px;\n padding-bottom: 2px;\n padding: 10px 2px;\n text-align: center;\n font-size: ", ";\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n\n :first-child {\n margin-top: 0;\n }\n :last-child {\n border-bottom: 1px solid ", ";\n }\n }\n\n .", " {\n .", ", .", " {\n display: block;\n }\n .", " {\n padding-left: 1px;\n .", " {\n border-left: 0 none;\n }\n\n .", ".active {\n border-bottom: 1px solid ", ";\n border-color: ", ";\n background-color: ", ";\n position: relative;\n z-index: ", ";\n color: ", ";\n }\n }\n }\n :not(.", ") .", " {\n .", " {\n cursor: pointer;\n }\n .", ":hover {\n border-bottom: 1px solid ", ";\n border-color: ", ";\n background-color: ", ";\n position: relative;\n z-index: ", ";\n color: ", ";\n }\n .", ".", " {\n background-color: ", ";\n border: 1px solid ", ";\n border-left: 0;\n color: ", ";\n position: relative;\n z-index: ", ";\n }\n }\n\n /* Table */\n .", " > table {\n table-layout: fixed;\n\n .", " + * {\n margin-top: 0;\n }\n\n /*\n * Headings have a top margin by default, but we don't want this on the\n * first heading within table header cells.\n *\n * This specifically sets margin-top for the first heading within a header\n * cell when center/right aligned.\n */\n th.", " > .fabric-editor-block-mark {\n > h1:first-of-type,\n > h2:first-of-type,\n > h3:first-of-type,\n > h4:first-of-type,\n > h5:first-of-type,\n > h6:first-of-type {\n margin-top: 0;\n }\n }\n\n .", ", .", " {\n position: relative;\n }\n /* Give selected cells a blue overlay */\n .", "::after,\n .", "::after {\n z-index: ", ";\n position: absolute;\n content: '';\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n }\n .", " {\n border: 1px solid ", ";\n }\n .", "::after {\n background: ", ";\n }\n th.", "::after,\n td.", "::after {\n background: ", ";\n }\n }\n .", " {\n position: absolute;\n /* top of corner control is table margin top - corner control height + 1 pixel of table border. */\n top: ", "px;\n }\n .", ".", " {\n z-index: ", ";\n }\n .", " {\n left: -", "px;\n }\n .", " {\n /*\n compensating for half of the insert column button\n that is aligned to the right edge initially on hover of the top right column control when table overflown,\n its center should be aligned with the edge\n */\n padding-right: ", "px;\n margin-right: -", "px;\n padding-bottom: ", "px;\n margin-bottom: -", "px;\n /* fixes gap cursor height */\n overflow: auto;\n position: relative;\n }\n }\n\n .ProseMirror.", " {\n .", " {\n overflow-x: auto;\n ", ";\n }\n }\n\n .ProseMirror.", " {\n cursor: col-resize;\n }\n\n .ProseMirror .pm-table-cell-content-wrap ol[data-child-count='100+'] {\n padding-left: revert;\n }\n"])), ClassName.LAYOUT_BUTTON, token('color.background.neutral', N20A), token('color.icon', N300), ClassName.LAYOUT_BUTTON, ClassName.IS_RESIZING, token('color.background.neutral.hovered', B300), token('color.icon', 'white'), tableSharedStyle(props), columnControlsLineMarker(props), hoveredDeleteButton, hoveredCell, hoveredWarningCell, resizeHandle, rangeSelectionStyles, ClassName.LAST_ITEM_IN_CELL, ClassName.TABLE_NODE_WRAPPER, ClassName.TABLE_CELL, ClassName.TABLE_HEADER_CELL, ClassName.TABLE_CELL, tableCellBackgroundColor(props), ClassName.CONTROLS_FLOATING_BUTTON_COLUMN, insertColumnButtonWrapper, ClassName.CONTROLS_FLOATING_BUTTON_ROW, insertRowButtonWrapper, DeleteButton, ClassName.TABLE_STICKY, ClassName.NUMBERED_COLUMN, ClassName.NUMBERED_COLUMN_BUTTON, stickyRowOffsetTop + 2, akEditorTableNumberColumnWidth, akEditorStickyHeaderZIndex, stickyRowOffsetTop, token('elevation.surface', 'white'), ClassName.TABLE_STICKY, ClassName.CORNER_CONTROLS, akEditorSmallZIndex, token('elevation.surface', 'white'), tableToolbarSize, tableToolbarSize, ClassName.CORNER_CONTROLS, ClassName.CONTROLS_CORNER_BUTTON, tableToolbarSize, tableToolbarSize, ClassName.TABLE_STICKY, ClassName.COLUMN_CONTROLS_DECORATIONS, ClassName.TABLE_STICKY, ClassName.ROW_CONTROLS, ClassName.ROW_CONTROLS_BUTTON_WRAP, akEditorStickyHeaderZIndex, tableToolbarSize, token('elevation.surface', 'white'), tableToolbarSize, ClassName.TABLE_STICKY, token('elevation.surface', 'green'), stickyRowOffsetTop, stickyRowZIndex, token('elevation.surface', 'white'), token('elevation.shadow.overflow', "0 6px 4px -4px ".concat(N40A)), ClassName.TABLE_STICKY, ClassName.TABLE_STICKY_SHADOW, stickyRowZIndex + 1, ClassName.WITH_CONTROLS, ClassName.TABLE_STICKY, ClassName.TABLE_STICKY_SHADOW, tableToolbarSize, stickyHeaderBorderBottomWidth, tableBorderColor(props), ClassName.TABLE_STICKY, ClassName.TABLE_STICKY, ClassName.TABLE_STICKY, ClassName.TABLE_STICKY, ClassName.TABLE_CONTAINER, ClassName.TABLE_STICKY, ClassName.WITH_RESIZE_LINE, ClassName.WITH_RESIZE_LINE, ClassName.RESIZE_HANDLE_DECORATION, (resizeHandlerAreaWidth - resizeLineWidth) / 2 + 1, ClassName.WITH_RESIZE_LINE, ClassName.SELECTED_CELL, ClassName.WITH_RESIZE_LINE, ClassName.SELECTED_CELL, ClassName.RESIZE_HANDLE_DECORATION, (resizeHandlerAreaWidth - resizeLineWidth) / 2, ClassName.HOVERED_CELL, ClassName.SELECTED_CELL, ClassName.WITH_CONTROLS, tableControlsSpacing, ClassName.WITH_CONTROLS, ClassName.TABLE_STICKY, ClassName.NUMBERED_COLUMN, ClassName.NUMBERED_COLUMN_BUTTON, tableControlsSpacing + 2, ClassName.CORNER_CONTROLS, tableControlsSpacing - tableToolbarSize + 2, token('elevation.surface', 'white'), (_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.stickyHeadersOptimization ? sentinelStyles : '', OverflowShadow(props), ClassName.TABLE_STICKY, ClassName.TABLE_STICKY_SHADOW, tablePadding, ClassName.ROW_CONTROLS_WRAPPER, tablePadding, ClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth + tablePadding - 1, ClassName.TABLE_LEFT_SHADOW, ClassName.TABLE_RIGHT_SHADOW, ClassName.NODEVIEW_WRAPPER, ClassName.NODEVIEW_WRAPPER, ClassName.TABLE_CONTAINER, columnControlsDecoration(props), ClassName.CORNER_CONTROLS, tableToolbarSize + 1, cornerControlHeight, ClassName.CORNER_CONTROLS_INSERT_ROW_MARKER, InsertMarker(props, "\n left: -11px;\n top: 9px;\n "), ClassName.CORNER_CONTROLS_INSERT_COLUMN_MARKER, InsertMarker(props, "\n right: -1px;\n top: -12px;\n "), ClassName.CORNER_CONTROLS, ClassName.CORNER_CONTROLS_INSERT_ROW_MARKER, ClassName.CONTROLS_CORNER_BUTTON, tableToolbarSize + 1, tableToolbarSize + 1, tableBorderColor(props), tableBorderRadiusSize, tableToolbarColor(props), ClassName.CONTROLS_CORNER_BUTTON, tableBorderSelectedColor, tableToolbarSelectedColor, ClassName.TABLE_CONTAINER, ClassName.CORNER_CONTROLS, ClassName.CONTROLS_CORNER_BUTTON, akEditorTableToolbarSize + akEditorTableNumberColumnWidth, ClassName.ROW_CONTROLS, ClassName.CONTROLS_BUTTON, ClassName.IS_RESIZING, ClassName.CONTROLS_CORNER_BUTTON, tableBorderSelectedColor, tableToolbarSelectedColor, ClassName.IS_RESIZING, ClassName.CONTROLS_CORNER_BUTTON, ClassName.HOVERED_CELL_IN_DANGER, tableBorderDeleteColor, tableToolbarDeleteColor, ClassName.ROW_CONTROLS, tableToolbarSize, InsertMarker(props, "\n bottom: -1px;\n left: -11px;\n "), ClassName.ROW_CONTROLS_INNER, ClassName.ROW_CONTROLS_BUTTON_WRAP, tableBorderRadiusSize, ClassName.ROW_CONTROLS_BUTTON_WRAP, ClassName.ROW_CONTROLS_BUTTON_WRAP, ClassName.ROW_CONTROLS_BUTTON_WRAP, ClassName.CONTROLS_BUTTON, akEditorUnitZIndex, HeaderButton(props, "\n border-bottom: 1px solid ".concat(tableBorderColor(props), ";\n border-right: 0px;\n border-radius: 0;\n height: 100%;\n width: ").concat(tableToolbarSize, "px;\n\n .").concat(ClassName.CONTROLS_BUTTON_OVERLAY, " {\n position: absolute;\n width: 30px;\n height: 50%;\n right: 0;\n bottom: 0;\n }\n .").concat(ClassName.CONTROLS_BUTTON_OVERLAY, ":first-of-type {\n top: 0;\n }\n ")), ClassName.IS_RESIZING, ClassName.ROW_CONTROLS, HeaderButtonHover(), HeaderButtonDanger(), ClassName.NUMBERED_COLUMN, akEditorTableToolbarSize - 1, akEditorTableToolbarSize, akEditorTableNumberColumnWidth + 1, ClassName.NUMBERED_COLUMN_BUTTON, tableBorderColor(props), relativeFontSizeToBase16(fontSize()), tableToolbarColor(props), tableTextColor(props), tableBorderColor(props), tableBorderColor(props), ClassName.WITH_CONTROLS, ClassName.CORNER_CONTROLS, ClassName.ROW_CONTROLS, ClassName.NUMBERED_COLUMN, ClassName.NUMBERED_COLUMN_BUTTON, ClassName.NUMBERED_COLUMN_BUTTON, tableBorderSelectedColor, tableBorderSelectedColor, tableToolbarSelectedColor, akEditorUnitZIndex, token('color.text.inverse', N0), ClassName.IS_RESIZING, ClassName.WITH_CONTROLS, ClassName.NUMBERED_COLUMN_BUTTON, ClassName.NUMBERED_COLUMN_BUTTON, tableBorderSelectedColor, tableBorderSelectedColor, tableToolbarSelectedColor, akEditorUnitZIndex, token('color.text.inverse', N0), ClassName.NUMBERED_COLUMN_BUTTON, ClassName.HOVERED_CELL_IN_DANGER, tableToolbarDeleteColor, tableBorderDeleteColor, token('color.text.inverse', R500), akEditorUnitZIndex, ClassName.TABLE_NODE_WRAPPER, ClassName.COLUMN_CONTROLS_DECORATIONS, ClassName.TABLE_HEADER_CELL, ClassName.SELECTED_CELL, ClassName.HOVERED_CELL_IN_DANGER, ClassName.SELECTED_CELL, ClassName.HOVERED_CELL_IN_DANGER, akEditorSmallZIndex, ClassName.SELECTED_CELL, tableBorderSelectedColor, ClassName.SELECTED_CELL, tableCellSelectedColor, ClassName.HOVERED_CELL_IN_DANGER, ClassName.HOVERED_CELL_IN_DANGER, tableCellDeleteColor, ClassName.ROW_CONTROLS_WRAPPER, tableMarginTop - cornerControlHeight + 1, ClassName.ROW_CONTROLS_WRAPPER, ClassName.TABLE_LEFT_SHADOW, akEditorUnitZIndex, ClassName.ROW_CONTROLS_WRAPPER, tableToolbarSize, ClassName.TABLE_NODE_WRAPPER, tableInsertColumnButtonSize / 2, tableInsertColumnButtonSize / 2, tableScrollbarOffset, tableScrollbarOffset, ClassName.IS_RESIZING, ClassName.TABLE_NODE_WRAPPER, scrollbarStyles, ClassName.RESIZE_CURSOR);
22
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " button {\n background: ", ";\n color: ", ";\n cursor: none;\n }\n\n .", ":not(.", ") button:hover {\n background: ", ";\n color: ", " !important;\n cursor: pointer;\n }\n\n .ProseMirror {\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n\n .", " {\n margin-bottom: 0;\n }\n\n .", " {\n td.", ", th.", " {\n position: relative;\n overflow: visible;\n }\n\n td.", " {\n background-color: ", ";\n }\n }\n\n .", " {\n ", "\n }\n\n .", " {\n ", "\n }\n\n /* Delete button */\n ", "\n /* Ends Delete button */\n\n /* sticky styles */\n .", " .", " .", ":first-of-type {\n margin-top: ", "px;\n width: ", "px;\n\n position: fixed !important;\n z-index: ", " !important;\n box-shadow: 0px -", "px ", ";\n border-right: 0 none;\n /* top set by NumberColumn component */\n }\n\n .", " .", ".sticky {\n position: fixed !important;\n /* needs to be above row controls */\n z-index: ", " !important;\n background: ", ";\n\n width: ", "px;\n height: ", "px;\n }\n\n .", ".sticky .", " {\n border-bottom: 0px none;\n border-right: 0px none;\n\n height: ", "px;\n width: ", "px;\n }\n\n .", " .", " {\n z-index: 0;\n }\n\n .", "\n .", "\n .", ".sticky {\n position: fixed !important;\n z-index: ", " !important;\n display: flex;\n border-left: ", "px solid\n ", ";\n margin-left: -", "px;\n }\n\n .", " col:first-of-type {\n /* moving rows out of a table layout does weird things in Chrome */\n border-right: 1px solid ", ";\n }\n\n tr.sticky {\n padding-top: ", "px;\n position: fixed;\n display: grid;\n\n /* to keep it above cell selection */\n z-index: ", ";\n\n overflow-y: visible;\n overflow-x: hidden;\n\n grid-auto-flow: column;\n\n /* background for where controls apply */\n background: ", ";\n box-sizing: content-box;\n\n margin-top: 2px;\n\n box-shadow: ", ";\n margin-left: -1px;\n\n &.no-pointer-events {\n pointer-events: none;\n }\n }\n\n .", " .", " {\n left: unset;\n position: fixed;\n z-index: ", ";\n }\n\n .", ".", "\n .", " {\n padding-bottom: ", "px;\n }\n\n tr.sticky th {\n border-bottom: ", "px solid\n ", ";\n margin-right: -1px;\n }\n\n .", " tr.sticky > th:last-child {\n border-right-width: 1px;\n }\n\n /* add left edge for first cell */\n .", " tr.sticky > th:first-of-type {\n margin-left: 0px;\n }\n\n /* add a little bit so the scroll lines up with the table */\n .", " tr.sticky::after {\n content: ' ';\n width: 1px;\n }\n\n /* To fix jumpiness caused in Chrome Browsers for sticky headers */\n .", " .sticky + tr {\n min-height: 0px;\n }\n\n /* move resize line a little in sticky bar */\n .", ".", " {\n tr.sticky\n td.", ",\n tr.sticky\n th.", " {\n .", "::after {\n right: ", "px;\n }\n }\n\n /* when selected put it back to normal -- :not selector would be nicer */\n tr.sticky\n td.", ".", ",\n tr.sticky\n th.", ".", " {\n .", "::after {\n right: ", "px;\n }\n }\n }\n\n tr.sticky\n .", ",\n tr.sticky\n .", " {\n z-index: 1;\n }\n\n .", " tr.sticky {\n padding-top: ", "px;\n }\n\n .", ".", "\n .", "\n .", ":first-of-type {\n margin-top: ", "px;\n }\n\n .", ".sticky {\n border-top: ", "px solid\n ", ";\n }\n\n ", "\n ", "\n\n .", " .", " {\n height: 0; // stop overflow flash & set correct height in update-overflow-shadows.ts\n }\n\n .less-padding {\n padding: 0 ", "px;\n\n .", " {\n padding: 0 ", "px;\n }\n\n &.", "[data-number-column='true'] {\n padding-left: ", "px;\n }\n\n .", " {\n left: 6px;\n }\n\n .", " {\n left: calc(100% - 6px);\n }\n }\n\n > .", " {\n /**\n * Prevent margins collapsing, aids with placing the gap-cursor correctly\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing\n *\n * TODO: Enable this, many tests will fail!\n * border-top: 1px solid transparent;\n */\n }\n\n /* Breakout only works on top level */\n > * .", " .", " {\n margin-left: unset !important;\n width: 100% !important;\n }\n\n ", ";\n\n /* Corner controls */\n .", " {\n width: ", "px;\n height: ", "px;\n display: none;\n\n .", " {\n position: relative;\n\n ", ";\n }\n\n .", " {\n position: relative;\n\n ", ";\n }\n }\n\n .", ".sticky {\n .", " {\n /* sticky row insert dot overlaps other row insert and messes things up */\n display: none !important;\n }\n }\n\n .", " {\n position: absolute;\n top: 0;\n width: ", "px;\n height: ", "px;\n border: 1px solid ", ";\n border-radius: 0;\n border-top-left-radius: ", "px;\n background: ", ";\n box-sizing: border-box;\n padding: 0;\n :focus {\n outline: none;\n }\n }\n .active .", " {\n border-color: ", ";\n background: ", ";\n }\n\n .", "[data-number-column='true'] {\n .", ", .", " {\n width: ", "px;\n }\n .", " .", " {\n border-right-width: 0;\n }\n }\n\n :not(.", ") .", ":hover {\n border-color: ", ";\n background: ", ";\n cursor: pointer;\n }\n\n :not(.", ")\n .", ".", " {\n border-color: ", ";\n background: ", ";\n }\n\n /* Row controls */\n .", " {\n width: ", "px;\n box-sizing: border-box;\n display: none;\n position: relative;\n\n ", ";\n\n .", " {\n display: flex;\n flex-direction: column;\n }\n .", ":last-child > button {\n border-bottom-left-radius: ", "px;\n }\n .", " {\n position: relative;\n margin-top: -1px;\n }\n .", ":hover,\n .", ".active,\n .", ":hover {\n z-index: ", ";\n }\n\n ", "\n }\n\n :not(.", ") .", " {\n ", "\n ", "\n }\n\n /* Numbered column */\n .", " {\n position: relative;\n float: right;\n margin-left: ", "px;\n top: ", "px;\n width: ", "px;\n box-sizing: border-box;\n }\n\n .", " {\n border: 1px solid ", ";\n box-sizing: border-box;\n margin-top: -1px;\n padding-bottom: 2px;\n padding: 10px 2px;\n text-align: center;\n font-size: ", ";\n background-color: ", ";\n color: ", ";\n border-color: ", ";\n\n :first-child:not(style),\n style:first-child + * {\n margin-top: 0;\n }\n :last-child {\n border-bottom: 1px solid ", ";\n }\n }\n\n .", " {\n .", ", .", " {\n display: block;\n }\n .", " {\n padding-left: 1px;\n .", " {\n border-left: 0 none;\n }\n\n .", ".active {\n border-bottom: 1px solid ", ";\n border-color: ", ";\n background-color: ", ";\n position: relative;\n z-index: ", ";\n color: ", ";\n }\n }\n }\n :not(.", ") .", " {\n .", " {\n cursor: pointer;\n }\n .", ":hover {\n border-bottom: 1px solid ", ";\n border-color: ", ";\n background-color: ", ";\n position: relative;\n z-index: ", ";\n color: ", ";\n }\n .", ".", " {\n background-color: ", ";\n border: 1px solid ", ";\n border-left: 0;\n color: ", ";\n position: relative;\n z-index: ", ";\n }\n }\n\n /* Table */\n .", " > table {\n table-layout: fixed;\n // Fixes Chrome border clipping bug ED-15245\n background: ", ";\n\n .", " + * {\n margin-top: 0;\n }\n\n /*\n * Headings have a top margin by default, but we don't want this on the\n * first heading within table header cells.\n *\n * This specifically sets margin-top for the first heading within a header\n * cell when center/right aligned.\n */\n th.", " > .fabric-editor-block-mark {\n > h1:first-of-type,\n > h2:first-of-type,\n > h3:first-of-type,\n > h4:first-of-type,\n > h5:first-of-type,\n > h6:first-of-type {\n margin-top: 0;\n }\n }\n\n .", ", .", " {\n position: relative;\n }\n /* Give selected cells a blue overlay */\n .", "::after,\n .", "::after {\n z-index: ", ";\n position: absolute;\n content: '';\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n }\n .", " {\n border: 1px solid ", ";\n }\n .", "::after {\n background: ", ";\n }\n th.", "::after,\n td.", "::after {\n background: ", ";\n }\n }\n .", " {\n position: absolute;\n /* top of corner control is table margin top - corner control height + 1 pixel of table border. */\n top: ", "px;\n }\n .", ".", " {\n z-index: ", ";\n }\n .", " {\n left: -", "px;\n }\n .", " {\n /*\n compensating for half of the insert column button\n that is aligned to the right edge initially on hover of the top right column control when table overflown,\n its center should be aligned with the edge\n */\n padding-right: ", "px;\n margin-right: -", "px;\n padding-bottom: ", "px;\n margin-bottom: -", "px;\n /* fixes gap cursor height */\n overflow: auto;\n position: relative;\n }\n }\n\n .ProseMirror.", " {\n .", " {\n overflow-x: auto;\n ", ";\n }\n }\n\n .ProseMirror.", " {\n cursor: col-resize;\n }\n\n .ProseMirror .pm-table-cell-content-wrap ol[data-child-count='100+'] {\n padding-left: revert;\n }\n"])), ClassName.LAYOUT_BUTTON, token('color.background.neutral', N20A), token('color.icon', N300), ClassName.LAYOUT_BUTTON, ClassName.IS_RESIZING, token('color.background.neutral.hovered', B300), token('color.icon', 'white'), tableSharedStyle(props), columnControlsLineMarker(props), hoveredDeleteButton, hoveredCell, hoveredWarningCell, resizeHandle, rangeSelectionStyles, ClassName.LAST_ITEM_IN_CELL, ClassName.TABLE_NODE_WRAPPER, ClassName.TABLE_CELL, ClassName.TABLE_HEADER_CELL, ClassName.TABLE_CELL, tableCellBackgroundColor(props), ClassName.CONTROLS_FLOATING_BUTTON_COLUMN, insertColumnButtonWrapper, ClassName.CONTROLS_FLOATING_BUTTON_ROW, insertRowButtonWrapper, DeleteButton, ClassName.TABLE_STICKY, ClassName.NUMBERED_COLUMN, ClassName.NUMBERED_COLUMN_BUTTON, stickyRowOffsetTop + 2, akEditorTableNumberColumnWidth, akEditorStickyHeaderZIndex, stickyRowOffsetTop, token('elevation.surface', 'white'), ClassName.TABLE_STICKY, ClassName.CORNER_CONTROLS, akEditorSmallZIndex, token('elevation.surface', 'white'), tableToolbarSize, tableToolbarSize, ClassName.CORNER_CONTROLS, ClassName.CONTROLS_CORNER_BUTTON, tableToolbarSize, tableToolbarSize, ClassName.TABLE_STICKY, ClassName.COLUMN_CONTROLS_DECORATIONS, ClassName.TABLE_STICKY, ClassName.ROW_CONTROLS, ClassName.ROW_CONTROLS_BUTTON_WRAP, akEditorStickyHeaderZIndex, tableToolbarSize, token('elevation.surface', 'white'), tableToolbarSize, ClassName.TABLE_STICKY, token('elevation.surface', 'green'), stickyRowOffsetTop, stickyRowZIndex, token('elevation.surface', 'white'), token('elevation.shadow.overflow', "0 6px 4px -4px ".concat(N40A)), ClassName.TABLE_STICKY, ClassName.TABLE_STICKY_SHADOW, stickyRowZIndex + 1, ClassName.WITH_CONTROLS, ClassName.TABLE_STICKY, ClassName.TABLE_STICKY_SHADOW, tableToolbarSize, stickyHeaderBorderBottomWidth, tableBorderColor(props), ClassName.TABLE_STICKY, ClassName.TABLE_STICKY, ClassName.TABLE_STICKY, ClassName.TABLE_STICKY, ClassName.TABLE_CONTAINER, ClassName.TABLE_STICKY, ClassName.WITH_RESIZE_LINE, ClassName.WITH_RESIZE_LINE, ClassName.RESIZE_HANDLE_DECORATION, (resizeHandlerAreaWidth - resizeLineWidth) / 2 + 1, ClassName.WITH_RESIZE_LINE, ClassName.SELECTED_CELL, ClassName.WITH_RESIZE_LINE, ClassName.SELECTED_CELL, ClassName.RESIZE_HANDLE_DECORATION, (resizeHandlerAreaWidth - resizeLineWidth) / 2, ClassName.HOVERED_CELL, ClassName.SELECTED_CELL, ClassName.WITH_CONTROLS, tableControlsSpacing, ClassName.WITH_CONTROLS, ClassName.TABLE_STICKY, ClassName.NUMBERED_COLUMN, ClassName.NUMBERED_COLUMN_BUTTON, tableControlsSpacing + 2, ClassName.CORNER_CONTROLS, tableControlsSpacing - tableToolbarSize + 2, token('elevation.surface', 'white'), (_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.stickyHeadersOptimization ? sentinelStyles : '', OverflowShadow(props), ClassName.TABLE_STICKY, ClassName.TABLE_STICKY_SHADOW, tablePadding, ClassName.ROW_CONTROLS_WRAPPER, tablePadding, ClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth + tablePadding - 1, ClassName.TABLE_LEFT_SHADOW, ClassName.TABLE_RIGHT_SHADOW, ClassName.NODEVIEW_WRAPPER, ClassName.NODEVIEW_WRAPPER, ClassName.TABLE_CONTAINER, columnControlsDecoration(props), ClassName.CORNER_CONTROLS, tableToolbarSize + 1, cornerControlHeight, ClassName.CORNER_CONTROLS_INSERT_ROW_MARKER, InsertMarker(props, "\n left: -11px;\n top: 9px;\n "), ClassName.CORNER_CONTROLS_INSERT_COLUMN_MARKER, InsertMarker(props, "\n right: -1px;\n top: -12px;\n "), ClassName.CORNER_CONTROLS, ClassName.CORNER_CONTROLS_INSERT_ROW_MARKER, ClassName.CONTROLS_CORNER_BUTTON, tableToolbarSize + 1, tableToolbarSize + 1, tableBorderColor(props), tableBorderRadiusSize, tableToolbarColor(props), ClassName.CONTROLS_CORNER_BUTTON, tableBorderSelectedColor, tableToolbarSelectedColor, ClassName.TABLE_CONTAINER, ClassName.CORNER_CONTROLS, ClassName.CONTROLS_CORNER_BUTTON, akEditorTableToolbarSize + akEditorTableNumberColumnWidth, ClassName.ROW_CONTROLS, ClassName.CONTROLS_BUTTON, ClassName.IS_RESIZING, ClassName.CONTROLS_CORNER_BUTTON, tableBorderSelectedColor, tableToolbarSelectedColor, ClassName.IS_RESIZING, ClassName.CONTROLS_CORNER_BUTTON, ClassName.HOVERED_CELL_IN_DANGER, tableBorderDeleteColor, tableToolbarDeleteColor, ClassName.ROW_CONTROLS, tableToolbarSize, InsertMarker(props, "\n bottom: -1px;\n left: -11px;\n "), ClassName.ROW_CONTROLS_INNER, ClassName.ROW_CONTROLS_BUTTON_WRAP, tableBorderRadiusSize, ClassName.ROW_CONTROLS_BUTTON_WRAP, ClassName.ROW_CONTROLS_BUTTON_WRAP, ClassName.ROW_CONTROLS_BUTTON_WRAP, ClassName.CONTROLS_BUTTON, akEditorUnitZIndex, HeaderButton(props, "\n border-bottom: 1px solid ".concat(tableBorderColor(props), ";\n border-right: 0px;\n border-radius: 0;\n height: 100%;\n width: ").concat(tableToolbarSize, "px;\n\n .").concat(ClassName.CONTROLS_BUTTON_OVERLAY, " {\n position: absolute;\n width: 30px;\n height: 50%;\n right: 0;\n bottom: 0;\n }\n .").concat(ClassName.CONTROLS_BUTTON_OVERLAY, ":first-of-type {\n top: 0;\n }\n ")), ClassName.IS_RESIZING, ClassName.ROW_CONTROLS, HeaderButtonHover(), HeaderButtonDanger(), ClassName.NUMBERED_COLUMN, akEditorTableToolbarSize - 1, akEditorTableToolbarSize, akEditorTableNumberColumnWidth + 1, ClassName.NUMBERED_COLUMN_BUTTON, tableBorderColor(props), relativeFontSizeToBase16(fontSize()), tableToolbarColor(props), tableTextColor(props), tableBorderColor(props), tableBorderColor(props), ClassName.WITH_CONTROLS, ClassName.CORNER_CONTROLS, ClassName.ROW_CONTROLS, ClassName.NUMBERED_COLUMN, ClassName.NUMBERED_COLUMN_BUTTON, ClassName.NUMBERED_COLUMN_BUTTON, tableBorderSelectedColor, tableBorderSelectedColor, tableToolbarSelectedColor, akEditorUnitZIndex, token('color.text.inverse', N0), ClassName.IS_RESIZING, ClassName.WITH_CONTROLS, ClassName.NUMBERED_COLUMN_BUTTON, ClassName.NUMBERED_COLUMN_BUTTON, tableBorderSelectedColor, tableBorderSelectedColor, tableToolbarSelectedColor, akEditorUnitZIndex, token('color.text.inverse', N0), ClassName.NUMBERED_COLUMN_BUTTON, ClassName.HOVERED_CELL_IN_DANGER, tableToolbarDeleteColor, tableBorderDeleteColor, token('color.text.inverse', R500), akEditorUnitZIndex, ClassName.TABLE_NODE_WRAPPER, tableBorderColor(props), ClassName.COLUMN_CONTROLS_DECORATIONS, ClassName.TABLE_HEADER_CELL, ClassName.SELECTED_CELL, ClassName.HOVERED_CELL_IN_DANGER, ClassName.SELECTED_CELL, ClassName.HOVERED_CELL_IN_DANGER, akEditorSmallZIndex, ClassName.SELECTED_CELL, tableBorderSelectedColor, ClassName.SELECTED_CELL, tableCellSelectedColor, ClassName.HOVERED_CELL_IN_DANGER, ClassName.HOVERED_CELL_IN_DANGER, tableCellDeleteColor, ClassName.ROW_CONTROLS_WRAPPER, tableMarginTop - cornerControlHeight + 1, ClassName.ROW_CONTROLS_WRAPPER, ClassName.TABLE_LEFT_SHADOW, akEditorUnitZIndex, ClassName.ROW_CONTROLS_WRAPPER, tableToolbarSize, ClassName.TABLE_NODE_WRAPPER, tableInsertColumnButtonSize / 2, tableInsertColumnButtonSize / 2, tableScrollbarOffset, tableScrollbarOffset, ClassName.IS_RESIZING, ClassName.TABLE_NODE_WRAPPER, scrollbarStyles, ClassName.RESIZE_CURSOR);
23
23
  };
24
24
  export var tableFullPageEditorStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .ProseMirror .", " > table {\n margin-left: 0;\n margin-right: 0;\n width: 100%;\n }\n"])), ClassName.TABLE_NODE_WRAPPER);
25
25
  export var tableCommentEditorStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .ProseMirror .", " > table {\n margin-left: 0;\n margin-right: 0;\n ", ";\n }\n"])), ClassName.TABLE_NODE_WRAPPER, scrollbarStyles);
@@ -61,7 +61,7 @@ export var transformSliceToFixHardBreakProblemOnCopyFromCell = function transfor
61
61
  return slice;
62
62
  };
63
63
  export var transformSliceToRemoveOpenTable = function transformSliceToRemoveOpenTable(slice, schema) {
64
- var _slice$content$firstC;
64
+ var _slice$content$firstC6;
65
65
 
66
66
  // we're removing the table, tableRow and tableCell reducing the open depth by 3
67
67
  var depthDecrement = 3; // Case 1: A slice entirely within a single CELL
@@ -69,13 +69,26 @@ export var transformSliceToRemoveOpenTable = function transformSliceToRemoveOpen
69
69
  if ( // starts and ends inside of a cell
70
70
  slice.openStart >= 4 && slice.openEnd >= 4 && // slice is a table node
71
71
  slice.content.childCount === 1 && slice.content.firstChild.type === schema.nodes.table) {
72
- return new Slice(flatmap(slice.content, unwrapContentFromTable), slice.openStart - depthDecrement, slice.openEnd - depthDecrement);
72
+ var _slice$content$firstC, _slice$content$firstC2, _slice$content$firstC3, _slice$content$firstC4, _slice$content$firstC5;
73
+
74
+ // prosemirror-view has a bug that it duplicates table entry when selecting multiple paragraphs in a table cell.
75
+ // https://github.com/ProseMirror/prosemirror/issues/1270
76
+ // The structure becomes
77
+ // table(genuine) > tableRow(genuine) > table(duplicated) > tableRow(duplicated) > tableCell/tableHeader(genuine) > contents(genuine)
78
+ // As we are removing wrapping table anyway, we keep duplicated table and tableRow for simplicity
79
+ var cleaned = slice;
80
+
81
+ if (((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : (_slice$content$firstC2 = _slice$content$firstC.content) === null || _slice$content$firstC2 === void 0 ? void 0 : (_slice$content$firstC3 = _slice$content$firstC2.firstChild) === null || _slice$content$firstC3 === void 0 ? void 0 : (_slice$content$firstC4 = _slice$content$firstC3.content) === null || _slice$content$firstC4 === void 0 ? void 0 : (_slice$content$firstC5 = _slice$content$firstC4.firstChild) === null || _slice$content$firstC5 === void 0 ? void 0 : _slice$content$firstC5.type) === schema.nodes.table) {
82
+ cleaned = new Slice(slice.content.firstChild.content.firstChild.content, slice.openStart - 2, slice.openEnd - 2);
83
+ }
84
+
85
+ return new Slice(flatmap(cleaned.content, unwrapContentFromTable), cleaned.openStart - depthDecrement, cleaned.openEnd - depthDecrement);
73
86
  } // Case 2: A slice starting within a CELL and ending outside the table
74
87
 
75
88
 
76
89
  if ( // starts inside of a cell but ends outside of the starting table
77
90
  slice.openStart >= 4 && // slice starts from a table node (and spans across more than one node)
78
- slice.content.childCount > 1 && ((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type) === schema.nodes.table) {
91
+ slice.content.childCount > 1 && ((_slice$content$firstC6 = slice.content.firstChild) === null || _slice$content$firstC6 === void 0 ? void 0 : _slice$content$firstC6.type) === schema.nodes.table) {
79
92
  // repoint the slice's cutting depth so that cell content where the slice starts
80
93
  // does not get lifted out of the cell on paste
81
94
  return new Slice(slice.content, 1, slice.openEnd);
@@ -103,6 +103,13 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
103
103
  break;
104
104
 
105
105
  case 'Enter':
106
+ // ED-14758 - Under the W3C specification, any keycode sent under IME would return a keycode 229
107
+ // event.isComposing can't be used alone as this also included a virtual keyboard under a keyboardless device, therefore, it seems the best practice would be intercepting the event as below.
108
+ // Some suggested the other workaround maybe listen on`keypress` instead of `keydown`
109
+ if (event.isComposing && (event.which === 229 || event.keyCode === 229)) {
110
+ break;
111
+ }
112
+
106
113
  onItemSelect(event.shiftKey ? SelectItemMode.SHIFT_ENTER : SelectItemMode.ENTER);
107
114
  break;
108
115
 
@@ -11,7 +11,7 @@ import { N30 } from '@atlaskit/theme/colors';
11
11
  import { token } from '@atlaskit/tokens';
12
12
  import { akEditorToolbarKeylineHeight, akEditorGridLineZIndex, akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
13
13
  export var TableControlsPadding = 20;
14
- var mainToolbarWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding: ", "px ", "px 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", "px;\n\n & > div > *:first-child {\n margin-left: 0;\n }\n\n .block-type-btn {\n padding-left: 0;\n }\n"])), gridSize(), gridSize(), token('elevation.surface', 'white'), TableControlsPadding);
14
+ var mainToolbarWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding: ", "px ", "px 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", "px;\n\n & > div {\n > :first-child:not(style),\n > style:first-child + * {\n margin-left: 0;\n }\n }\n\n .block-type-btn {\n padding-left: 0;\n }\n"])), gridSize(), gridSize(), token('elevation.surface', 'white'), TableControlsPadding);
15
15
  var stickyToolbarWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /* stylelint-disable declaration-block-no-duplicate-properties */\n position: relative;\n position: sticky;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n padding-bottom: ", "px;\n z-index: ", ";\n transition: box-shadow ease-in-out 0.2s;\n &.show-keyline {\n box-shadow: 0 ", "px 0 0\n ", ";\n }\n"])), gridSize(), akEditorGridLineZIndex + akEditorMenuZIndex, akEditorToolbarKeylineHeight, token('color.border', N30));
16
16
 
17
17
  var StickyToolbar = function StickyToolbar(props) {
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "167.0.1";
2
+ export var version = "167.0.4";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "167.0.1",
3
+ "version": "167.0.4",
4
4
  "sideEffects": false
5
5
  }
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -158,28 +158,6 @@ declare const _default: {
158
158
  'fabric.editor.warningPanel.description': string;
159
159
  'fabric.editor.wrapLeft': string;
160
160
  'fabric.editor.wrapRight': string;
161
- 'fabric.theme.blue': string;
162
- 'fabric.theme.dark-blue': string;
163
- 'fabric.theme.dark-green': string;
164
- 'fabric.theme.dark-purple': string;
165
- 'fabric.theme.dark-red': string;
166
- 'fabric.theme.dark-teal': string;
167
- 'fabric.theme.dark-yellow': string;
168
- 'fabric.theme.gray': string;
169
- 'fabric.theme.green': string;
170
- 'fabric.theme.light-blue': string;
171
- 'fabric.theme.light-gray': string;
172
- 'fabric.theme.light-green': string;
173
- 'fabric.theme.light-purple': string;
174
- 'fabric.theme.light-red': string;
175
- 'fabric.theme.light-teal': string;
176
- 'fabric.theme.light-yellow': string;
177
- 'fabric.theme.orange': string;
178
- 'fabric.theme.purple': string;
179
- 'fabric.theme.red': string;
180
- 'fabric.theme.teal': string;
181
- 'fabric.theme.white': string;
182
- 'fabric.theme.yellow': string;
183
161
  };
184
162
  /**
185
163
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -143,28 +143,6 @@ declare const _default: {
143
143
  'fabric.editor.bold': string;
144
144
  'fabric.editor.italic': string;
145
145
  'fabric.editor.selected': string;
146
- 'fabric.theme.white': string;
147
- 'fabric.theme.light-blue': string;
148
- 'fabric.theme.light-teal': string;
149
- 'fabric.theme.light-green': string;
150
- 'fabric.theme.light-yellow': string;
151
- 'fabric.theme.light-red': string;
152
- 'fabric.theme.light-purple': string;
153
- 'fabric.theme.light-gray': string;
154
- 'fabric.theme.blue': string;
155
- 'fabric.theme.teal': string;
156
- 'fabric.theme.green': string;
157
- 'fabric.theme.yellow': string;
158
- 'fabric.theme.red': string;
159
- 'fabric.theme.orange': string;
160
- 'fabric.theme.purple': string;
161
- 'fabric.theme.gray': string;
162
- 'fabric.theme.dark-blue': string;
163
- 'fabric.theme.dark-teal': string;
164
- 'fabric.theme.dark-green': string;
165
- 'fabric.theme.dark-yellow': string;
166
- 'fabric.theme.dark-red': string;
167
- 'fabric.theme.dark-purple': string;
168
146
  };
169
147
  /**
170
148
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,6 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
- 'fabric.theme.dark-blue': string;
292
- 'fabric.theme.dark-green': string;
293
- 'fabric.theme.dark-purple': string;
294
- 'fabric.theme.dark-red': string;
295
- 'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
- 'fabric.theme.light-green': string;
302
- 'fabric.theme.light-purple': string;
303
- 'fabric.theme.light-red': string;
304
- 'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
- 'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
290
  };
313
291
  /**
314
292
  * NOTE:
@@ -287,28 +287,20 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
290
  'fabric.theme.dark-blue': string;
292
291
  'fabric.theme.dark-green': string;
293
292
  'fabric.theme.dark-purple': string;
294
293
  'fabric.theme.dark-red': string;
295
294
  'fabric.theme.dark-teal': string;
296
- 'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
- 'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
295
  'fabric.theme.light-green': string;
302
296
  'fabric.theme.light-purple': string;
303
297
  'fabric.theme.light-red': string;
304
298
  'fabric.theme.light-teal': string;
305
- 'fabric.theme.light-yellow': string;
306
299
  'fabric.theme.orange': string;
307
300
  'fabric.theme.purple': string;
308
301
  'fabric.theme.red': string;
309
302
  'fabric.theme.teal': string;
310
303
  'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
304
  };
313
305
  /**
314
306
  * NOTE:
@@ -305,9 +305,6 @@ declare const _default: {
305
305
  'fabric.theme.light-yellow': string;
306
306
  'fabric.theme.orange': string;
307
307
  'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
- 'fabric.theme.white': string;
311
308
  'fabric.theme.yellow': string;
312
309
  };
313
310
  /**
@@ -306,7 +306,6 @@ declare const _default: {
306
306
  'fabric.theme.orange': string;
307
307
  'fabric.theme.purple': string;
308
308
  'fabric.theme.red': string;
309
- 'fabric.theme.teal': string;
310
309
  'fabric.theme.white': string;
311
310
  'fabric.theme.yellow': string;
312
311
  };
@@ -287,28 +287,21 @@ declare const _default: {
287
287
  'fabric.editor.warningPanel.description': string;
288
288
  'fabric.editor.wrapLeft': string;
289
289
  'fabric.editor.wrapRight': string;
290
- 'fabric.theme.blue': string;
291
290
  'fabric.theme.dark-blue': string;
292
291
  'fabric.theme.dark-green': string;
293
292
  'fabric.theme.dark-purple': string;
294
293
  'fabric.theme.dark-red': string;
295
294
  'fabric.theme.dark-teal': string;
296
295
  'fabric.theme.dark-yellow': string;
297
- 'fabric.theme.gray': string;
298
296
  'fabric.theme.green': string;
299
- 'fabric.theme.light-blue': string;
300
- 'fabric.theme.light-gray': string;
301
297
  'fabric.theme.light-green': string;
302
298
  'fabric.theme.light-purple': string;
303
299
  'fabric.theme.light-red': string;
304
300
  'fabric.theme.light-teal': string;
305
301
  'fabric.theme.light-yellow': string;
306
- 'fabric.theme.orange': string;
307
302
  'fabric.theme.purple': string;
308
- 'fabric.theme.red': string;
309
303
  'fabric.theme.teal': string;
310
304
  'fabric.theme.white': string;
311
- 'fabric.theme.yellow': string;
312
305
  };
313
306
  /**
314
307
  * NOTE:
@@ -158,28 +158,18 @@ declare const _default: {
158
158
  'fabric.editor.warningPanel.description': string;
159
159
  'fabric.editor.wrapLeft': string;
160
160
  'fabric.editor.wrapRight': string;
161
- 'fabric.theme.blue': string;
162
161
  'fabric.theme.dark-blue': string;
163
162
  'fabric.theme.dark-green': string;
164
163
  'fabric.theme.dark-purple': string;
165
164
  'fabric.theme.dark-red': string;
166
165
  'fabric.theme.dark-teal': string;
167
166
  'fabric.theme.dark-yellow': string;
168
- 'fabric.theme.gray': string;
169
- 'fabric.theme.green': string;
170
- 'fabric.theme.light-blue': string;
171
- 'fabric.theme.light-gray': string;
172
167
  'fabric.theme.light-green': string;
173
168
  'fabric.theme.light-purple': string;
174
169
  'fabric.theme.light-red': string;
175
170
  'fabric.theme.light-teal': string;
176
171
  'fabric.theme.light-yellow': string;
177
- 'fabric.theme.orange': string;
178
- 'fabric.theme.purple': string;
179
- 'fabric.theme.red': string;
180
- 'fabric.theme.teal': string;
181
172
  'fabric.theme.white': string;
182
- 'fabric.theme.yellow': string;
183
173
  };
184
174
  /**
185
175
  * NOTE:
@@ -143,28 +143,6 @@ declare const _default: {
143
143
  'fabric.editor.bold': string;
144
144
  'fabric.editor.italic': string;
145
145
  'fabric.editor.selected': string;
146
- 'fabric.theme.white': string;
147
- 'fabric.theme.light-blue': string;
148
- 'fabric.theme.light-teal': string;
149
- 'fabric.theme.light-green': string;
150
- 'fabric.theme.light-yellow': string;
151
- 'fabric.theme.light-red': string;
152
- 'fabric.theme.light-purple': string;
153
- 'fabric.theme.light-gray': string;
154
- 'fabric.theme.blue': string;
155
- 'fabric.theme.teal': string;
156
- 'fabric.theme.green': string;
157
- 'fabric.theme.yellow': string;
158
- 'fabric.theme.red': string;
159
- 'fabric.theme.orange': string;
160
- 'fabric.theme.purple': string;
161
- 'fabric.theme.gray': string;
162
- 'fabric.theme.dark-blue': string;
163
- 'fabric.theme.dark-teal': string;
164
- 'fabric.theme.dark-green': string;
165
- 'fabric.theme.dark-yellow': string;
166
- 'fabric.theme.dark-red': string;
167
- 'fabric.theme.dark-purple': string;
168
146
  };
169
147
  /**
170
148
  * NOTE: