@atlaskit/editor-core 172.0.4 → 172.1.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 (204) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/cjs/create-editor/ReactEditorView.js +11 -2
  3. package/dist/cjs/create-editor/ReactEditorViewContext.js +15 -0
  4. package/dist/cjs/create-editor/create-plugins-list.js +2 -1
  5. package/dist/cjs/editor.js +7 -1
  6. package/dist/cjs/labs/next/mobile.js +5 -3
  7. package/dist/cjs/messages.js +5 -0
  8. package/dist/cjs/plugins/analytics/types/enums.js +1 -0
  9. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +1 -1
  10. package/dist/cjs/plugins/card/nodeviews/inlineCard.js +8 -0
  11. package/dist/cjs/plugins/card/pm-plugins/doc.js +2 -26
  12. package/dist/cjs/plugins/card/toolbar.js +118 -86
  13. package/dist/cjs/plugins/code-block/nodeviews/code-block.js +9 -2
  14. package/dist/cjs/plugins/code-block/pm-plugins/ide-ux.js +37 -1
  15. package/dist/cjs/plugins/code-block/toolbar.js +3 -1
  16. package/dist/cjs/plugins/code-block/ui/class-names.js +2 -0
  17. package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +4 -3
  18. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +3 -1
  19. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +42 -2
  20. package/dist/cjs/plugins/hyperlink/Toolbar.js +43 -8
  21. package/dist/cjs/plugins/media/commands/helpers.js +1 -8
  22. package/dist/cjs/plugins/media/index.js +1 -1
  23. package/dist/cjs/plugins/media/nodeviews/mediaNodeView/index.js +0 -10
  24. package/dist/cjs/plugins/media/nodeviews/mediaNodeView/media.js +2 -3
  25. package/dist/cjs/plugins/media/picker-facade.js +1 -0
  26. package/dist/cjs/plugins/media/pm-plugins/main.js +3 -13
  27. package/dist/cjs/plugins/panel/pm-plugins/keymaps.js +1 -1
  28. package/dist/cjs/plugins/paste/handlers.js +9 -20
  29. package/dist/cjs/plugins/paste/md.js +8 -2
  30. package/dist/cjs/plugins/paste/newline-md-plugin.js +67 -0
  31. package/dist/cjs/plugins/paste/paragraph-md-plugin.js +72 -0
  32. package/dist/cjs/plugins/table/commands/hover.js +4 -4
  33. package/dist/cjs/plugins/table/ui/TableFloatingControls/CornerControls/index.js +2 -1
  34. package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
  35. package/dist/cjs/plugins/table/utils/decoration.js +53 -3
  36. package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -0
  37. package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +3 -2
  38. package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +78 -53
  39. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -1
  40. package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +7 -2
  41. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +8 -2
  42. package/dist/cjs/ui/Appearance/Comment/Comment.js +13 -13
  43. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +8 -7
  44. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -1
  45. package/dist/cjs/ui/Appearance/Mobile.js +4 -2
  46. package/dist/cjs/ui/AppearanceComponents/Mobile.js +5 -4
  47. package/dist/cjs/ui/DropList/index.js +1 -1
  48. package/dist/cjs/ui/DropdownMenu/index.js +5 -5
  49. package/dist/cjs/ui/with-outer-listeners.js +105 -50
  50. package/dist/cjs/utils/deprecation-warnings.js +4 -0
  51. package/dist/cjs/utils/linking-utils.js +40 -1
  52. package/dist/cjs/version-wrapper.js +1 -1
  53. package/dist/cjs/version.json +1 -1
  54. package/dist/es2019/create-editor/ReactEditorView.js +11 -2
  55. package/dist/es2019/create-editor/ReactEditorViewContext.js +3 -0
  56. package/dist/es2019/create-editor/create-plugins-list.js +2 -1
  57. package/dist/es2019/editor.js +7 -1
  58. package/dist/es2019/labs/next/mobile.js +5 -3
  59. package/dist/es2019/messages.js +5 -0
  60. package/dist/es2019/plugins/analytics/types/enums.js +1 -0
  61. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +1 -1
  62. package/dist/es2019/plugins/card/nodeviews/inlineCard.js +10 -0
  63. package/dist/es2019/plugins/card/pm-plugins/doc.js +1 -24
  64. package/dist/es2019/plugins/card/toolbar.js +114 -86
  65. package/dist/es2019/plugins/code-block/nodeviews/code-block.js +9 -2
  66. package/dist/es2019/plugins/code-block/pm-plugins/ide-ux.js +40 -2
  67. package/dist/es2019/plugins/code-block/toolbar.js +2 -1
  68. package/dist/es2019/plugins/code-block/ui/class-names.js +2 -0
  69. package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +4 -3
  70. package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +3 -2
  71. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +37 -0
  72. package/dist/es2019/plugins/hyperlink/Toolbar.js +40 -9
  73. package/dist/es2019/plugins/media/commands/helpers.js +0 -2
  74. package/dist/es2019/plugins/media/index.js +1 -1
  75. package/dist/es2019/plugins/media/nodeviews/mediaNodeView/index.js +0 -7
  76. package/dist/es2019/plugins/media/nodeviews/mediaNodeView/media.js +2 -3
  77. package/dist/es2019/plugins/media/picker-facade.js +1 -0
  78. package/dist/es2019/plugins/media/pm-plugins/main.js +3 -13
  79. package/dist/es2019/plugins/panel/pm-plugins/keymaps.js +1 -1
  80. package/dist/es2019/plugins/paste/handlers.js +7 -19
  81. package/dist/es2019/plugins/paste/md.js +6 -2
  82. package/dist/es2019/plugins/paste/newline-md-plugin.js +56 -0
  83. package/dist/es2019/plugins/paste/paragraph-md-plugin.js +61 -0
  84. package/dist/es2019/plugins/table/commands/hover.js +4 -4
  85. package/dist/es2019/plugins/table/ui/TableFloatingControls/CornerControls/index.js +2 -1
  86. package/dist/es2019/plugins/table/ui/common-styles.js +39 -2
  87. package/dist/es2019/plugins/table/utils/decoration.js +60 -24
  88. package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -0
  89. package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +4 -3
  90. package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +78 -59
  91. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -2
  92. package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +6 -2
  93. package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +7 -2
  94. package/dist/es2019/ui/Appearance/Comment/Comment.js +12 -6
  95. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +7 -2
  96. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +2 -1
  97. package/dist/es2019/ui/Appearance/Mobile.js +4 -2
  98. package/dist/es2019/ui/AppearanceComponents/Mobile.js +5 -4
  99. package/dist/es2019/ui/DropList/index.js +1 -1
  100. package/dist/es2019/ui/DropdownMenu/index.js +10 -6
  101. package/dist/es2019/ui/with-outer-listeners.js +83 -33
  102. package/dist/es2019/utils/deprecation-warnings.js +4 -0
  103. package/dist/es2019/utils/linking-utils.js +37 -0
  104. package/dist/es2019/version-wrapper.js +1 -1
  105. package/dist/es2019/version.json +1 -1
  106. package/dist/esm/create-editor/ReactEditorView.js +11 -2
  107. package/dist/esm/create-editor/ReactEditorViewContext.js +3 -0
  108. package/dist/esm/create-editor/create-plugins-list.js +2 -1
  109. package/dist/esm/editor.js +7 -1
  110. package/dist/esm/labs/next/mobile.js +5 -3
  111. package/dist/esm/messages.js +5 -0
  112. package/dist/esm/plugins/analytics/types/enums.js +1 -0
  113. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +1 -1
  114. package/dist/esm/plugins/card/nodeviews/inlineCard.js +9 -0
  115. package/dist/esm/plugins/card/pm-plugins/doc.js +1 -20
  116. package/dist/esm/plugins/card/toolbar.js +108 -83
  117. package/dist/esm/plugins/code-block/nodeviews/code-block.js +9 -2
  118. package/dist/esm/plugins/code-block/pm-plugins/ide-ux.js +37 -2
  119. package/dist/esm/plugins/code-block/toolbar.js +2 -1
  120. package/dist/esm/plugins/code-block/ui/class-names.js +2 -0
  121. package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +4 -3
  122. package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +3 -2
  123. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +41 -2
  124. package/dist/esm/plugins/hyperlink/Toolbar.js +43 -10
  125. package/dist/esm/plugins/media/commands/helpers.js +0 -4
  126. package/dist/esm/plugins/media/index.js +1 -1
  127. package/dist/esm/plugins/media/nodeviews/mediaNodeView/index.js +0 -8
  128. package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +2 -3
  129. package/dist/esm/plugins/media/picker-facade.js +1 -0
  130. package/dist/esm/plugins/media/pm-plugins/main.js +3 -15
  131. package/dist/esm/plugins/panel/pm-plugins/keymaps.js +1 -1
  132. package/dist/esm/plugins/paste/handlers.js +11 -22
  133. package/dist/esm/plugins/paste/md.js +6 -2
  134. package/dist/esm/plugins/paste/newline-md-plugin.js +58 -0
  135. package/dist/esm/plugins/paste/paragraph-md-plugin.js +63 -0
  136. package/dist/esm/plugins/table/commands/hover.js +4 -4
  137. package/dist/esm/plugins/table/ui/TableFloatingControls/CornerControls/index.js +2 -1
  138. package/dist/esm/plugins/table/ui/common-styles.js +1 -1
  139. package/dist/esm/plugins/table/utils/decoration.js +50 -3
  140. package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -0
  141. package/dist/esm/plugins/type-ahead/ui/InputQuery.js +4 -3
  142. package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +77 -51
  143. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +2 -2
  144. package/dist/esm/ui/Addon/ClickAreaBlock/index.js +7 -2
  145. package/dist/esm/ui/Addon/ClickAreaMobile/index.js +8 -2
  146. package/dist/esm/ui/Appearance/Comment/Comment.js +12 -12
  147. package/dist/esm/ui/Appearance/FullPage/FullPage.js +7 -6
  148. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +2 -1
  149. package/dist/esm/ui/Appearance/Mobile.js +4 -2
  150. package/dist/esm/ui/AppearanceComponents/Mobile.js +5 -4
  151. package/dist/esm/ui/DropList/index.js +1 -1
  152. package/dist/esm/ui/DropdownMenu/index.js +5 -5
  153. package/dist/esm/ui/with-outer-listeners.js +105 -51
  154. package/dist/esm/utils/deprecation-warnings.js +4 -0
  155. package/dist/esm/utils/linking-utils.js +37 -0
  156. package/dist/esm/version-wrapper.js +1 -1
  157. package/dist/esm/version.json +1 -1
  158. package/dist/types/create-editor/ReactEditorView.d.ts +3 -0
  159. package/dist/types/create-editor/ReactEditorViewContext.d.ts +8 -0
  160. package/dist/types/messages.d.ts +5 -0
  161. package/dist/types/plugins/analytics/types/enums.d.ts +1 -0
  162. package/dist/types/plugins/analytics/types/events.d.ts +2 -2
  163. package/dist/types/plugins/analytics/types/link-tool-bar-events.d.ts +1 -0
  164. package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +3 -0
  165. package/dist/types/plugins/card/pm-plugins/doc.d.ts +1 -2
  166. package/dist/types/plugins/card/toolbar.d.ts +1 -0
  167. package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +1 -1
  168. package/dist/types/plugins/code-block/pm-plugins/ide-ux.d.ts +4 -1
  169. package/dist/types/plugins/code-block/ui/class-names.d.ts +2 -0
  170. package/dist/types/plugins/hyperlink/types.d.ts +1 -0
  171. package/dist/types/plugins/media/commands/helpers.d.ts +0 -1
  172. package/dist/types/plugins/media/nodeviews/mediaNodeView/index.d.ts +0 -1
  173. package/dist/types/plugins/media/nodeviews/mediaNodeView/media.d.ts +0 -1
  174. package/dist/types/plugins/media/pm-plugins/main.d.ts +0 -2
  175. package/dist/types/plugins/media/pm-plugins/types.d.ts +0 -2
  176. package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -1
  177. package/dist/types/plugins/paste/newline-md-plugin.d.ts +2 -0
  178. package/dist/types/plugins/paste/paragraph-md-plugin.d.ts +2 -0
  179. package/dist/types/plugins/table/utils/decoration.d.ts +1 -1
  180. package/dist/types/types/editor-appearance-component.d.ts +1 -0
  181. package/dist/types/types/feature-flags.d.ts +9 -0
  182. package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -0
  183. package/dist/types/ui/Addon/ClickAreaMobile/index.d.ts +1 -0
  184. package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +1 -0
  185. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +3 -3
  186. package/dist/types/ui/Appearance/Mobile.d.ts +1 -1
  187. package/dist/types/ui/AppearanceComponents/Mobile.d.ts +2 -1
  188. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  189. package/dist/types/ui/Dropdown/index.d.ts +1 -1
  190. package/dist/types/ui/with-outer-listeners.d.ts +2 -1
  191. package/dist/types/utils/linking-utils.d.ts +1 -0
  192. package/package.json +37 -39
  193. package/dist/cjs/plugins/type-ahead/ui/DynamicHeightListItem.js +0 -77
  194. package/dist/cjs/plugins/type-ahead/ui/hooks/use-dynamic-list-height-calculation.js +0 -118
  195. package/dist/cjs/plugins/type-ahead/ui/hooks/use-resize-observer.js +0 -70
  196. package/dist/es2019/plugins/type-ahead/ui/DynamicHeightListItem.js +0 -51
  197. package/dist/es2019/plugins/type-ahead/ui/hooks/use-dynamic-list-height-calculation.js +0 -97
  198. package/dist/es2019/plugins/type-ahead/ui/hooks/use-resize-observer.js +0 -53
  199. package/dist/esm/plugins/type-ahead/ui/DynamicHeightListItem.js +0 -51
  200. package/dist/esm/plugins/type-ahead/ui/hooks/use-dynamic-list-height-calculation.js +0 -101
  201. package/dist/esm/plugins/type-ahead/ui/hooks/use-resize-observer.js +0 -48
  202. package/dist/types/plugins/type-ahead/ui/DynamicHeightListItem.d.ts +0 -21
  203. package/dist/types/plugins/type-ahead/ui/hooks/use-dynamic-list-height-calculation.d.ts +0 -25
  204. package/dist/types/plugins/type-ahead/ui/hooks/use-resize-observer.d.ts +0 -8
@@ -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: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);
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 // ED-15246: Trello card is visible through a border of a table border\n // This fixes a border issue caused by relative positioned table cells\n &::after {\n height: 100%;\n content: '';\n border-left: 1px solid ", ";\n border-bottom: 1px solid ", ";\n position: absolute;\n right: 0px;\n top: 0px;\n bottom: 0;\n width: 100%;\n display: inline-block;\n pointer-events: none;\n }\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\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 width: 100%;\n pointer-events: none;\n }\n .", " {\n border: 1px solid ", ";\n }\n .", "::after {\n background: ", ";\n z-index: ", ";\n }\n th.", "::after,\n td.", "::after {\n background: ", ";\n z-index: ", ";\n }\n // ED-15246: Trello card is visible through a border of a table border\n td.", ", td.", " {\n &::after {\n height: 100%;\n width: 100%;\n border: 1px solid ", ";\n content: '';\n position: absolute;\n left: -1px;\n top: -1px;\n bottom: 0;\n z-index: ", ";\n display: inline-block;\n pointer-events: none;\n }\n &.", "::after {\n border: 1px solid ", ";\n z-index: ", ";\n }\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), tableBorderColor(props), tableBorderColor(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, akEditorSmallZIndex, ClassName.HOVERED_CELL_IN_DANGER, ClassName.HOVERED_CELL_IN_DANGER, tableCellDeleteColor, akEditorUnitZIndex * 100, ClassName.HOVERED_CELL, ClassName.SELECTED_CELL, tableBorderSelectedColor, akEditorSmallZIndex, ClassName.HOVERED_CELL_IN_DANGER, tableBorderDeleteColor, akEditorUnitZIndex * 100, 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);
@@ -1,3 +1,4 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
1
2
  import { TableMap } from '@atlaskit/editor-tables/table-map';
2
3
  import { findTable, getCellsInRow, getSelectionRect } from '@atlaskit/editor-tables/utils';
3
4
  import { Decoration } from 'prosemirror-view';
@@ -25,8 +26,54 @@ export var createCellHoverDecoration = function createCellHoverDecoration(cells,
25
26
  });
26
27
  });
27
28
  };
28
- export var createControlsHoverDecoration = function createControlsHoverDecoration(cells, type, danger, selected) {
29
- return cells.map(function (cell) {
29
+ export var createControlsHoverDecoration = function createControlsHoverDecoration(cells, type, tr, danger, selected) {
30
+ var table = findTable(tr.selection);
31
+
32
+ if (!table) {
33
+ return [];
34
+ }
35
+
36
+ var map = TableMap.get(table.node);
37
+
38
+ var _cells$reduce = cells.reduce(function (_ref, cell) {
39
+ var _ref2 = _slicedToArray(_ref, 2),
40
+ min = _ref2[0],
41
+ max = _ref2[1];
42
+
43
+ if (min === null || cell.pos < min) {
44
+ min = cell.pos;
45
+ }
46
+
47
+ if (max === null || cell.pos > max) {
48
+ max = cell.pos;
49
+ }
50
+
51
+ return [min, max];
52
+ }, [null, null]),
53
+ _cells$reduce2 = _slicedToArray(_cells$reduce, 2),
54
+ min = _cells$reduce2[0],
55
+ max = _cells$reduce2[1];
56
+
57
+ if (min === null || max === null) {
58
+ return [];
59
+ }
60
+
61
+ var updatedCells = cells.map(function (x) {
62
+ return x.pos;
63
+ }); // ED-15246 fixed trello card table overflow issue
64
+ // If columns / rows have been merged the hovered selection is different to the actual selection
65
+ // So If the table cells are in danger we want to create a "rectangle" selection
66
+ // to match the "clicked" selection
67
+
68
+ if (danger) {
69
+ var rect = map.rectBetween(min - table.start, max - table.start);
70
+ updatedCells = map.cellsInRect(rect).map(function (x) {
71
+ return x + table.start;
72
+ });
73
+ }
74
+
75
+ return updatedCells.map(function (pos) {
76
+ var cell = tr.doc.nodeAt(pos);
30
77
  var classes = [ClassName.HOVERED_CELL];
31
78
 
32
79
  if (danger) {
@@ -54,7 +101,7 @@ export var createControlsHoverDecoration = function createControlsHoverDecoratio
54
101
  break;
55
102
  }
56
103
 
57
- return Decoration.node(cell.pos, cell.pos + cell.node.nodeSize, {
104
+ return Decoration.node(pos, pos + cell.nodeSize, {
58
105
  class: classes.join(' ')
59
106
  }, {
60
107
  key: key
@@ -48,6 +48,7 @@ var Task = /*#__PURE__*/function (_ReactNodeView) {
48
48
  state: isChecked ? 'DONE' : 'TODO',
49
49
  localId: taskId
50
50
  });
51
+ tr.setMeta('scrollIntoView', false);
51
52
 
52
53
  _this.view.dispatch(tr);
53
54
  });
@@ -3,7 +3,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
3
3
  var _templateObject;
4
4
 
5
5
  /** @jsx jsx */
6
- import React, { useRef, useEffect, useCallback, Fragment } from 'react';
6
+ import React, { useRef, useCallback, Fragment, useLayoutEffect } from 'react';
7
7
  import { css, jsx } from '@emotion/react';
8
8
  import { keyName as keyNameNormalized } from 'w3c-keyname';
9
9
  import { browser, ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/utils';
@@ -86,6 +86,7 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
86
86
  addPrefixTrigger: true,
87
87
  setSelectionAt: CloseSelectionOptions.AFTER_TEXT_INSERTED
88
88
  });
89
+ stopDefault = true;
89
90
  break;
90
91
 
91
92
  case 'Backspace':
@@ -147,7 +148,7 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
147
148
  (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : _ref$current3.focus();
148
149
  return false;
149
150
  }, [onQueryFocus]);
150
- useEffect(function () {
151
+ useLayoutEffect(function () {
151
152
  if (!ref.current) {
152
153
  return;
153
154
  }
@@ -300,7 +301,7 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
300
301
  }
301
302
  };
302
303
  }, [triggerQueryPrefix, cleanedInputContent, onQueryFocus, cancel, checkKeyEvent]);
303
- useEffect(function () {
304
+ useLayoutEffect(function () {
304
305
  var hasReopenQuery = typeof reopenQuery === 'string' && reopenQuery.trim().length > 0;
305
306
 
306
307
  if (ref.current && forceFocus) {
@@ -1,16 +1,15 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
3
 
3
4
  var _templateObject;
4
5
 
5
6
  /** @jsx jsx */
6
- import React, { useMemo, useEffect, useRef, useCallback, useLayoutEffect } from 'react';
7
+ import React, { useMemo, useRef, useCallback, useLayoutEffect, useState } from 'react';
7
8
  import { jsx, css } from '@emotion/react';
8
9
  import { MenuGroup } from '@atlaskit/menu';
9
- import { ICON_HEIGHT, ITEM_PADDING } from './TypeAheadListItem';
10
- import { VariableSizeList as List } from 'react-window';
11
- import { ResizeObserverProvider } from './hooks/use-resize-observer';
12
- import { useDynamicListHeightCalculation } from './hooks/use-dynamic-list-height-calculation';
13
- import { DynamicHeightListItem, SelectedIndexContext, ListItemActionsContext, UpdateListItemHeightContext } from './DynamicHeightListItem';
10
+ import { CellMeasurer, CellMeasurerCache } from 'react-virtualized/dist/commonjs/CellMeasurer';
11
+ import { List } from 'react-virtualized/dist/commonjs/List';
12
+ import { ICON_HEIGHT, ITEM_PADDING, TypeAheadListItem } from './TypeAheadListItem';
14
13
  import { injectIntl } from 'react-intl-next';
15
14
  import { typeAheadListMessages } from '../messages';
16
15
  var LIST_ITEM_ESTIMATED_HEIGHT = ICON_HEIGHT + ITEM_PADDING * 2;
@@ -23,29 +22,26 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref) {
23
22
  intl = _ref.intl,
24
23
  fitHeight = _ref.fitHeight;
25
24
  var listRef = useRef();
26
- var redrawListAtIndex = useCallback(function (index) {
27
- listRef.current.resetAfterIndex(index);
28
- }, []);
29
25
  var lastVisibleIndexes = useRef({
30
26
  overscanStartIndex: 0,
31
27
  overscanStopIndex: 0,
32
- visibleStartIndex: 0,
33
- visibleStopIndex: 0
28
+ startIndex: 0,
29
+ stopIndex: 0
34
30
  });
35
- var getFirstVisibleIndex = useCallback(function () {
36
- return lastVisibleIndexes.current.overscanStartIndex;
37
- }, []);
31
+ var estimatedHeight = items.length * LIST_ITEM_ESTIMATED_HEIGHT;
32
+
33
+ var _useState = useState(Math.min(estimatedHeight, fitHeight)),
34
+ _useState2 = _slicedToArray(_useState, 2),
35
+ height = _useState2[0],
36
+ setHeight = _useState2[1];
38
37
 
39
- var _useDynamicListHeight = useDynamicListHeightCalculation({
40
- redrawListAtIndex: redrawListAtIndex,
41
- getFirstVisibleIndex: getFirstVisibleIndex,
42
- listLength: items.length,
43
- listMaxHeight: fitHeight,
44
- listItemEstimatedHeight: LIST_ITEM_ESTIMATED_HEIGHT
45
- }),
46
- getListItemHeight = _useDynamicListHeight.getListItemHeight,
47
- setListItemHeight = _useDynamicListHeight.setListItemHeight,
48
- renderedListHeight = _useDynamicListHeight.renderedListHeight;
38
+ var _useState3 = useState(new CellMeasurerCache({
39
+ fixedWidth: true,
40
+ defaultHeight: LIST_ITEM_ESTIMATED_HEIGHT
41
+ })),
42
+ _useState4 = _slicedToArray(_useState3, 2),
43
+ cache = _useState4[0],
44
+ setCache = _useState4[1];
49
45
 
50
46
  var onItemsRendered = useCallback(function (props) {
51
47
  lastVisibleIndexes.current = props;
@@ -76,58 +72,88 @@ var TypeAheadListComponent = /*#__PURE__*/React.memo(function (_ref) {
76
72
  requestAnimationFrame(function () {
77
73
  requestAnimationFrame(function () {
78
74
  var indexes = lastVisibleIndexes.current;
79
- var isSelectedItemVisible = selectedIndex >= indexes.visibleStartIndex && selectedIndex <= indexes.visibleStopIndex;
75
+ var isSelectedItemVisible = selectedIndex >= indexes.startIndex && selectedIndex <= indexes.stopIndex;
80
76
 
81
77
  if (!isSelectedItemVisible) {
82
- listRef.current.scrollToItem(selectedIndex);
78
+ listRef.current.scrollToRow(selectedIndex);
83
79
  }
84
80
  });
85
81
  });
86
- }, [selectedIndex]);
87
- useEffect(function () {
82
+ }, [selectedIndex, lastVisibleIndexes]);
83
+ useLayoutEffect(function () {
88
84
  if (!listRef.current) {
89
85
  return;
90
86
  }
91
87
 
92
- listRef.current.scrollToItem(selectedIndex);
93
- }, [selectedIndex]);
88
+ var indexes = lastVisibleIndexes.current;
89
+ var isSelectedItemVisible = selectedIndex >= indexes.startIndex && selectedIndex <= indexes.stopIndex;
90
+
91
+ if (!isSelectedItemVisible) {
92
+ listRef.current.scrollToRow(selectedIndex);
93
+ }
94
+ }, [selectedIndex, lastVisibleIndexes]);
94
95
  useLayoutEffect(function () {
95
- requestAnimationFrame(function () {
96
- listRef.current.resetAfterIndex(lastVisibleIndexes.current.overscanStartIndex);
97
- });
96
+ setCache(new CellMeasurerCache({
97
+ fixedWidth: true,
98
+ defaultHeight: LIST_ITEM_ESTIMATED_HEIGHT
99
+ }));
98
100
  }, [items]);
101
+ useLayoutEffect(function () {
102
+ var height = Math.min(items.reduce(function (prevValue, currentValue, index) {
103
+ return prevValue + cache.rowHeight({
104
+ index: index
105
+ });
106
+ }, 0), fitHeight);
107
+ setHeight(height);
108
+ }, [items, cache, fitHeight]);
109
+
110
+ var renderRow = function renderRow(_ref3) {
111
+ var index = _ref3.index,
112
+ key = _ref3.key,
113
+ style = _ref3.style,
114
+ parent = _ref3.parent;
115
+ return jsx(CellMeasurer, {
116
+ key: key,
117
+ cache: cache,
118
+ parent: parent,
119
+ columnIndex: 0,
120
+ rowIndex: index
121
+ }, jsx("div", {
122
+ style: style,
123
+ "data-index": index
124
+ }, jsx("div", {
125
+ "data-testid": "list-item-height-observed-".concat(index)
126
+ }, jsx(TypeAheadListItem, {
127
+ key: items[index].title,
128
+ item: items[index],
129
+ itemIndex: index,
130
+ selectedIndex: selectedIndex,
131
+ onItemClick: actions.onItemClick,
132
+ onItemHover: actions.onItemHover
133
+ }))));
134
+ };
99
135
 
100
136
  if (!Array.isArray(items)) {
101
137
  return null;
102
138
  }
103
139
 
104
- var estimatedHeight = items.length * LIST_ITEM_ESTIMATED_HEIGHT;
105
- var height = Math.min(typeof renderedListHeight === 'number' ? renderedListHeight : estimatedHeight, fitHeight);
106
140
  return jsx(MenuGroup, {
107
141
  role: "listbox",
108
142
  "aria-live": "polite",
109
143
  "aria-label": intl.formatMessage(typeAheadListMessages.typeAheadResultLabel),
110
144
  "aria-relevant": "additions removals"
111
- }, jsx(ResizeObserverProvider, null, jsx(UpdateListItemHeightContext.Provider, {
112
- value: setListItemHeight
113
- }, jsx(ListItemActionsContext.Provider, {
114
- value: actions
115
- }, jsx(SelectedIndexContext.Provider, {
116
- value: selectedIndex
117
145
  }, jsx(List, {
118
- useIsScrolling: true,
146
+ rowRenderer: renderRow,
119
147
  ref: listRef,
120
- itemData: items,
121
- itemCount: items.length,
122
- estimatedItemSize: LIST_ITEM_ESTIMATED_HEIGHT,
123
- onScroll: onScroll,
124
- onItemsRendered: onItemsRendered,
125
- itemSize: getListItemHeight,
148
+ rowCount: items.length,
149
+ rowHeight: cache.rowHeight,
150
+ onRowsRendered: onItemsRendered,
126
151
  width: LIST_WIDTH,
152
+ onScroll: onScroll,
127
153
  height: height,
128
- overscanCount: 3,
129
- css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n button {\n padding: 12px 12px 11px;\n\n span:last-child span:last-child {\n white-space: normal;\n }\n }\n "])))
130
- }, DynamicHeightListItem))))));
154
+ overscanRowCount: 3,
155
+ css: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n button {\n padding: 12px 12px 11px;\n span:last-child span:last-child {\n white-space: normal;\n }\n }\n "])))
156
+ }));
131
157
  });
132
158
  export var TypeAheadList = injectIntl(TypeAheadListComponent);
133
159
  TypeAheadList.displayName = 'TypeAheadList';
@@ -4,7 +4,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
4
4
  var _templateObject;
5
5
 
6
6
  /** @jsx jsx */
7
- import React, { useCallback, useEffect, useMemo, useState } from 'react';
7
+ import React, { useCallback, useEffect, useMemo, useState, useLayoutEffect } from 'react';
8
8
  import { css, jsx } from '@emotion/react';
9
9
  import rafSchedule from 'raf-schd';
10
10
  import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
@@ -139,7 +139,7 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
139
139
  return setFitHeight(minFitHeight);
140
140
  }, [anchorElement, popupsMountPoint]);
141
141
  var getFitHeightDebounced = rafSchedule(getFitHeight);
142
- useEffect(function () {
142
+ useLayoutEffect(function () {
143
143
  var scrollableElement = popupsScrollableElement || findOverflowScrollParent(anchorElement);
144
144
  getFitHeight();
145
145
  window.addEventListener('resize', getFitHeightDebounced);
@@ -36,13 +36,18 @@ var ClickAreaBlock = /*#__PURE__*/function (_React$Component) {
36
36
  _this = _super.call.apply(_super, [this].concat(args));
37
37
 
38
38
  _defineProperty(_assertThisInitialized(_this), "handleClick", function (event) {
39
- var view = _this.props.editorView;
39
+ var _this$props = _this.props,
40
+ view = _this$props.editorView,
41
+ editorDisabled = _this$props.editorDisabled;
40
42
 
41
43
  if (!view) {
42
44
  return;
43
45
  }
44
46
 
45
- clickAreaClickHandler(view, event);
47
+ if (!editorDisabled) {
48
+ // if the editor is disabled -- we don't want to intercept any click events
49
+ clickAreaClickHandler(view, event);
50
+ }
46
51
  });
47
52
 
48
53
  return _this;
@@ -62,13 +62,19 @@ var ClickAreaMobile = /*#__PURE__*/function (_React$Component) {
62
62
  _defineProperty(_assertThisInitialized(_this), "clickElementRef", /*#__PURE__*/React.createRef());
63
63
 
64
64
  _defineProperty(_assertThisInitialized(_this), "handleClick", function (event) {
65
- var view = _this.props.editorView;
65
+ var _this$props = _this.props,
66
+ view = _this$props.editorView,
67
+ editorDisabled = _this$props.editorDisabled;
66
68
 
67
69
  if (!view) {
68
70
  return;
69
71
  }
70
72
 
71
- clickAreaClickHandler(view, event);
73
+ if (!editorDisabled) {
74
+ // if the editor is disabled -- we don't want to intercept any click events
75
+ clickAreaClickHandler(view, event);
76
+ }
77
+
72
78
  var scrollGutterClicked = event.clientY > view.dom.getBoundingClientRect().bottom; // Reset the default prosemirror scrollIntoView logic by
73
79
  // clamping the scroll position to the bottom of the viewport.
74
80
 
@@ -50,22 +50,19 @@ var Editor = /*#__PURE__*/function (_React$Component) {
50
50
 
51
51
  var _super = _createSuper(Editor);
52
52
 
53
- function Editor() {
53
+ // Wrapper container for toolbar and content area
54
+ function Editor(props) {
54
55
  var _this;
55
56
 
56
57
  _classCallCheck(this, Editor);
57
58
 
58
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
59
- args[_key] = arguments[_key];
60
- }
61
-
62
- _this = _super.call.apply(_super, [this].concat(args));
59
+ _this = _super.call(this, props);
63
60
 
64
61
  _defineProperty(_assertThisInitialized(_this), "appearance", 'comment');
65
62
 
66
63
  _defineProperty(_assertThisInitialized(_this), "containerElement", null);
67
64
 
68
- _defineProperty(_assertThisInitialized(_this), "wrapperElement", null);
65
+ _defineProperty(_assertThisInitialized(_this), "wrapperElementRef", /*#__PURE__*/React.createRef());
69
66
 
70
67
  _defineProperty(_assertThisInitialized(_this), "handleSave", function () {
71
68
  if (_this.props.editorView && _this.props.onSave) {
@@ -112,9 +109,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
112
109
  }, jsx("div", {
113
110
  css: [commentEditorStyle, css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n min-height: ", "px;\n "])), minHeight)],
114
111
  className: "akEditor",
115
- ref: function ref(_ref4) {
116
- return _this.wrapperElement = _ref4;
117
- }
112
+ ref: _this.wrapperElementRef
118
113
  }, jsx(MainToolbar, {
119
114
  useStickyToolbar: useStickyToolbar
120
115
  }, jsx(Toolbar, {
@@ -133,7 +128,8 @@ var Editor = /*#__PURE__*/function (_React$Component) {
133
128
  }), jsx("div", {
134
129
  css: mainToolbarCustomComponentsSlotStyle
135
130
  }, customPrimaryToolbarComponents)), jsx(ClickAreaBlock, {
136
- editorView: editorView
131
+ editorView: editorView,
132
+ editorDisabled: disabled
137
133
  }, jsx(WidthConsumer, null, function (_ref2) {
138
134
  var width = _ref2.width;
139
135
  return jsx(ContentArea, {
@@ -157,7 +153,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
157
153
  popupsScrollableElement: popupsScrollableElement,
158
154
  containerElement: _this.containerElement,
159
155
  disabled: !!disabled,
160
- wrapperElement: _this.wrapperElement
156
+ wrapperElement: _this.wrapperElementRef.current
161
157
  }), editorDOMElement);
162
158
  })), jsx(WidthEmitter, {
163
159
  editorView: editorView
@@ -180,6 +176,10 @@ var Editor = /*#__PURE__*/function (_React$Component) {
180
176
  }), customSecondaryToolbarComponents));
181
177
  });
182
178
 
179
+ if (props.innerRef) {
180
+ _this.wrapperElementRef = props.innerRef;
181
+ }
182
+
183
183
  return _this;
184
184
  }
185
185
 
@@ -25,16 +25,13 @@ export var FullPageEditor = /*#__PURE__*/function (_React$Component) {
25
25
 
26
26
  var _super = _createSuper(FullPageEditor);
27
27
 
28
- function FullPageEditor() {
28
+ // Wrapper container for toolbar and content area
29
+ function FullPageEditor(props) {
29
30
  var _this;
30
31
 
31
32
  _classCallCheck(this, FullPageEditor);
32
33
 
33
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
34
- args[_key] = arguments[_key];
35
- }
36
-
37
- _this = _super.call.apply(_super, [this].concat(args));
34
+ _this = _super.call(this, props);
38
35
 
39
36
  _defineProperty(_assertThisInitialized(_this), "state", {
40
37
  showKeyline: false
@@ -85,6 +82,10 @@ export var FullPageEditor = /*#__PURE__*/function (_React$Component) {
85
82
  _this.updateToolbarKeyline();
86
83
  });
87
84
 
85
+ if (props.innerRef) {
86
+ _this.wrapperElementRef = props.innerRef;
87
+ }
88
+
88
89
  return _this;
89
90
  }
90
91
 
@@ -25,7 +25,8 @@ var Content = /*#__PURE__*/React.memo(function (props) {
25
25
  ref: props.scrollContainerRef,
26
26
  className: "fabric-editor-popup-scroll-parent"
27
27
  }, jsx(ClickAreaBlock, {
28
- editorView: props.editorView
28
+ editorView: props.editorView,
29
+ editorDisabled: props.disabled
29
30
  }, jsx("div", {
30
31
  css: editorContentAreaStyle({
31
32
  fullWidthMode: fullWidthMode,
@@ -5,11 +5,13 @@ export default function Mobile(_ref) {
5
5
  var editorView = _ref.editorView,
6
6
  maxHeight = _ref.maxHeight,
7
7
  persistScrollGutter = _ref.persistScrollGutter,
8
- editorDOMElement = _ref.editorDOMElement;
8
+ editorDOMElement = _ref.editorDOMElement,
9
+ disabled = _ref.disabled;
9
10
  return /*#__PURE__*/React.createElement(MobileAppearance, {
10
11
  editorView: editorView || null,
11
12
  maxHeight: maxHeight,
12
- persistScrollGutter: persistScrollGutter
13
+ persistScrollGutter: persistScrollGutter,
14
+ editorDisabled: disabled
13
15
  }, editorDOMElement, editorView && /*#__PURE__*/React.createElement(WidthEmitter, {
14
16
  editorView: editorView
15
17
  }));
@@ -16,9 +16,9 @@ var ContentArea = createEditorContentStyle();
16
16
  ContentArea.displayName = 'ContentArea';
17
17
  export function MobileAppearance(_ref) {
18
18
  var editorView = _ref.editorView,
19
- maxHeight = _ref.maxHeight,
20
19
  persistScrollGutter = _ref.persistScrollGutter,
21
- children = _ref.children;
20
+ children = _ref.children,
21
+ editorDisabled = _ref.editorDisabled;
22
22
  var render = useCallback(function (_ref2) {
23
23
  var maxContentSize = _ref2.maxContentSize,
24
24
  mobileDimensions = _ref2.mobileDimensions;
@@ -58,11 +58,12 @@ export function MobileAppearance(_ref) {
58
58
  editorView: editorView || undefined,
59
59
  minHeight: minHeight,
60
60
  persistScrollGutter: persistScrollGutter,
61
- isExpanded: currentIsExpanded
61
+ isExpanded: currentIsExpanded,
62
+ editorDisabled: editorDisabled
62
63
  }, jsx(ContentArea, null, jsx("div", {
63
64
  className: "ak-editor-content-area"
64
65
  }, children)))));
65
- }, [children, editorView, persistScrollGutter]);
66
+ }, [children, editorView, persistScrollGutter, editorDisabled]);
66
67
  return jsx(WithPluginState, {
67
68
  plugins: {
68
69
  maxContentSize: maxContentSizePluginKey,
@@ -23,7 +23,7 @@ import { N0, DN50, DN600, N50A, N60A, N900 } from '@atlaskit/theme/colors';
23
23
  import { themed } from '@atlaskit/theme/components';
24
24
  import { token } from '@atlaskit/tokens';
25
25
  var packageName = "@atlaskit/editor-core";
26
- var packageVersion = "172.0.4";
26
+ var packageVersion = "172.1.1";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = "0, ".concat(gridSize(), "px");
29
29