@atlaskit/editor-common 78.11.4 → 78.11.6

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 (367) hide show
  1. package/.eslintrc.js +8 -0
  2. package/CHANGELOG.md +18 -0
  3. package/afm-cc/tsconfig.json +3 -0
  4. package/dist/cjs/__tests_external__/page-objects/Editor.js +1 -1
  5. package/dist/cjs/__tests_external__/page-objects/EditorSmartLink.js +1 -1
  6. package/dist/cjs/__tests_external__/page-objects/Renderer.js +1 -1
  7. package/dist/cjs/analytics/types/enums.js +1 -0
  8. package/dist/cjs/analytics/types/table-events.js +1 -0
  9. package/dist/cjs/annotation/index.js +1 -1
  10. package/dist/cjs/card/MediaAndEmbedsToolbar/index.js +2 -2
  11. package/dist/cjs/card/index.js +2 -2
  12. package/dist/cjs/clipboard/index.js +2 -2
  13. package/dist/cjs/collab/index.js +40 -10
  14. package/dist/cjs/element-browser/ElementBrowser.js +3 -3
  15. package/dist/cjs/element-browser/components/CategoryList.js +2 -2
  16. package/dist/cjs/element-browser/components/ElementBrowserLoader.js +2 -2
  17. package/dist/cjs/element-browser/components/ElementList/ElementList.js +92 -15
  18. package/dist/cjs/element-browser/components/ElementList/EmptyState.js +6 -5
  19. package/dist/cjs/element-browser/components/ElementSearch.js +5 -6
  20. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +2 -2
  21. package/dist/cjs/element-browser/hooks/use-container-width.js +2 -2
  22. package/dist/cjs/extensibility/Extension/Extension/index.js +2 -2
  23. package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -3
  24. package/dist/cjs/extensibility/Extension/Lozenge.js +1 -1
  25. package/dist/cjs/extensibility/Extension/styles.js +1 -1
  26. package/dist/cjs/extensibility/Extension.js +3 -3
  27. package/dist/cjs/extensibility/ExtensionComponent.js +3 -4
  28. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +2 -2
  29. package/dist/cjs/extensibility/extensionNodeView.js +1 -1
  30. package/dist/cjs/extensibility/index.js +2 -2
  31. package/dist/cjs/icons/index.js +2 -2
  32. package/dist/cjs/keymaps/index.js +10 -7
  33. package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +2 -2
  34. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -4
  35. package/dist/cjs/link/LinkSearch/LinkSearchList.js +15 -7
  36. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -4
  37. package/dist/cjs/link/LinkSearch/ToolbarComponents.js +17 -6
  38. package/dist/cjs/link/LinkSearch/index.js +1 -2
  39. package/dist/cjs/link/LinkSearch/withActivityProvider.js +1 -1
  40. package/dist/cjs/link/index.js +2 -2
  41. package/dist/cjs/media-inline/styles.js +2 -0
  42. package/dist/cjs/monitoring/error.js +3 -3
  43. package/dist/cjs/preset/editor-commands.js +1 -1
  44. package/dist/cjs/provider-factory/with-providers.js +1 -1
  45. package/dist/cjs/quick-insert/assets/index.js +2 -2
  46. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -0
  47. package/dist/cjs/resizer/Resizer.js +8 -11
  48. package/dist/cjs/safe-plugin/index.js +1 -1
  49. package/dist/cjs/selection/gap-cursor/selection.js +1 -1
  50. package/dist/cjs/selection/gap-cursor/styles.js +12 -3
  51. package/dist/cjs/selection-based-node-view/SelectionBasedNodeView.js +1 -1
  52. package/dist/cjs/styles/shared/annotation.js +18 -4
  53. package/dist/cjs/styles/shared/block-marks.js +1 -0
  54. package/dist/cjs/styles/shared/blockquote.js +29 -4
  55. package/dist/cjs/styles/shared/code-block.js +1 -0
  56. package/dist/cjs/styles/shared/code-mark.js +8 -3
  57. package/dist/cjs/styles/shared/column-layout.js +17 -3
  58. package/dist/cjs/styles/shared/date.js +4 -3
  59. package/dist/cjs/styles/shared/embedCard.js +19 -5
  60. package/dist/cjs/styles/shared/expand.js +3 -5
  61. package/dist/cjs/styles/shared/grid.js +28 -4
  62. package/dist/cjs/styles/shared/headings.js +34 -3
  63. package/dist/cjs/styles/shared/indentation.js +28 -4
  64. package/dist/cjs/styles/shared/link.js +5 -4
  65. package/dist/cjs/styles/shared/lists.js +2 -0
  66. package/dist/cjs/styles/shared/media-single.js +39 -3
  67. package/dist/cjs/styles/shared/panel.js +6 -3
  68. package/dist/cjs/styles/shared/paragraph.js +11 -4
  69. package/dist/cjs/styles/shared/plugins.js +30 -7
  70. package/dist/cjs/styles/shared/resizer.js +5 -3
  71. package/dist/cjs/styles/shared/rule.js +10 -4
  72. package/dist/cjs/styles/shared/shadow.js +31 -3
  73. package/dist/cjs/styles/shared/smartCard.js +2 -0
  74. package/dist/cjs/styles/shared/table.js +2 -0
  75. package/dist/cjs/styles/shared/tableCell.js +2 -4
  76. package/dist/cjs/styles/shared/text-color.js +8 -4
  77. package/dist/cjs/styles/shared/unsupported-content.js +2 -0
  78. package/dist/cjs/styles/shared/whitespace.js +4 -4
  79. package/dist/cjs/ui/Announcer/announcer.js +4 -2
  80. package/dist/cjs/ui/BaseTheme/index.js +2 -2
  81. package/dist/cjs/ui/Caption/index.js +1 -1
  82. package/dist/cjs/ui/ContextPanel/context.js +1 -1
  83. package/dist/cjs/ui/DropList/index.js +2 -2
  84. package/dist/cjs/ui/Emoji/index.js +3 -3
  85. package/dist/cjs/ui/ErrorBoundary/index.js +1 -1
  86. package/dist/cjs/ui/Expand/index.js +3 -3
  87. package/dist/cjs/ui/IntlErrorBoundary/index.js +1 -1
  88. package/dist/cjs/ui/IntlProviderIfMissingWrapper/index.js +2 -2
  89. package/dist/cjs/ui/Layer/index.js +3 -4
  90. package/dist/cjs/ui/MediaSingle/styled.js +16 -8
  91. package/dist/cjs/ui/Mention/index.js +3 -3
  92. package/dist/cjs/ui/Mention/mention-with-profilecard.js +2 -2
  93. package/dist/cjs/ui/Mention/mention-with-providers.js +3 -3
  94. package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -2
  95. package/dist/cjs/ui/OverflowShadow/index.js +1 -1
  96. package/dist/cjs/ui/PanelTextInput/index.js +1 -1
  97. package/dist/cjs/ui/Popup/index.js +1 -1
  98. package/dist/cjs/ui/PortalProvider/index.js +1 -1
  99. package/dist/cjs/ui/ResizerLegacy/index.js +1 -1
  100. package/dist/cjs/ui/ResizerLegacy/styled.js +1 -0
  101. package/dist/cjs/ui/UnsupportedBlock/index.js +3 -3
  102. package/dist/cjs/ui/UnsupportedInline/index.js +18 -5
  103. package/dist/cjs/ui/WidthProvider/index.js +2 -2
  104. package/dist/cjs/ui/WithCreateAnalyticsEvent/index.js +1 -1
  105. package/dist/cjs/ui/clear-next-sibling-margin-top.js +12 -5
  106. package/dist/cjs/ui/index.js +2 -2
  107. package/dist/cjs/ui/with-outer-listeners.js +3 -3
  108. package/dist/cjs/ui-color/ColorPalette/Color/index.js +3 -3
  109. package/dist/cjs/ui-color/ColorPalette/Color/styles.js +21 -5
  110. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +2 -2
  111. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +2 -2
  112. package/dist/cjs/ui-menu/ColorPickerButton/index.js +35 -7
  113. package/dist/cjs/ui-menu/Dropdown/index.js +3 -3
  114. package/dist/cjs/ui-menu/DropdownContainer/index.js +2 -2
  115. package/dist/cjs/ui-menu/DropdownMenu/index.js +3 -4
  116. package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +2 -2
  117. package/dist/cjs/ui-menu/ToolbarButton/index.js +2 -2
  118. package/dist/cjs/ui-menu/index.js +2 -2
  119. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +3 -3
  120. package/dist/cjs/utils/imageLoader.js +3 -3
  121. package/dist/cjs/with-plugin-state/index.js +1 -1
  122. package/dist/es2019/analytics/types/enums.js +1 -0
  123. package/dist/es2019/analytics/types/table-events.js +1 -0
  124. package/dist/es2019/card/MediaAndEmbedsToolbar/index.js +1 -0
  125. package/dist/es2019/collab/index.js +36 -38
  126. package/dist/es2019/element-browser/components/ElementList/ElementList.js +83 -94
  127. package/dist/es2019/element-browser/components/ElementList/EmptyState.js +6 -5
  128. package/dist/es2019/element-browser/components/ElementSearch.js +3 -4
  129. package/dist/es2019/extensibility/Extension/Extension/styles.js +4 -4
  130. package/dist/es2019/extensibility/Extension/styles.js +1 -1
  131. package/dist/es2019/extensibility/ExtensionComponent.js +0 -1
  132. package/dist/es2019/extensions/types/field-definitions.js +1 -0
  133. package/dist/es2019/keymaps/index.js +7 -11
  134. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
  135. package/dist/es2019/link/LinkSearch/LinkSearchList.js +14 -14
  136. package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +2 -1
  137. package/dist/es2019/link/LinkSearch/ToolbarComponents.js +17 -18
  138. package/dist/es2019/link/LinkSearch/index.js +0 -1
  139. package/dist/es2019/media-inline/media-inline-image-card.js +0 -1
  140. package/dist/es2019/media-inline/styles.js +2 -0
  141. package/dist/es2019/media-inline/views/icon-wrapper.js +0 -1
  142. package/dist/es2019/monitoring/error.js +1 -1
  143. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -0
  144. package/dist/es2019/resizer/Resizer.js +2 -3
  145. package/dist/es2019/selection/gap-cursor/styles.js +11 -9
  146. package/dist/es2019/styles/shared/annotation.js +13 -12
  147. package/dist/es2019/styles/shared/block-marks.js +1 -0
  148. package/dist/es2019/styles/shared/blockquote.js +27 -34
  149. package/dist/es2019/styles/shared/code-block.js +1 -0
  150. package/dist/es2019/styles/shared/code-mark.js +5 -5
  151. package/dist/es2019/styles/shared/column-layout.js +15 -17
  152. package/dist/es2019/styles/shared/date.js +4 -4
  153. package/dist/es2019/styles/shared/embedCard.js +17 -21
  154. package/dist/es2019/styles/shared/expand.js +3 -4
  155. package/dist/es2019/styles/shared/grid.js +27 -31
  156. package/dist/es2019/styles/shared/headings.js +36 -35
  157. package/dist/es2019/styles/shared/indentation.js +26 -20
  158. package/dist/es2019/styles/shared/link.js +4 -4
  159. package/dist/es2019/styles/shared/lists.js +2 -0
  160. package/dist/es2019/styles/shared/media-single.js +42 -65
  161. package/dist/es2019/styles/shared/panel.js +6 -6
  162. package/dist/es2019/styles/shared/paragraph.js +10 -9
  163. package/dist/es2019/styles/shared/plugins.js +29 -34
  164. package/dist/es2019/styles/shared/resizer.js +8 -3
  165. package/dist/es2019/styles/shared/rule.js +9 -8
  166. package/dist/es2019/styles/shared/shadow.js +35 -65
  167. package/dist/es2019/styles/shared/smartCard.js +2 -0
  168. package/dist/es2019/styles/shared/table.js +2 -0
  169. package/dist/es2019/styles/shared/tableCell.js +1 -3
  170. package/dist/es2019/styles/shared/text-color.js +7 -8
  171. package/dist/es2019/styles/shared/unsupported-content.js +2 -0
  172. package/dist/es2019/styles/shared/whitespace.js +4 -4
  173. package/dist/es2019/ui/Announcer/announcer.js +2 -0
  174. package/dist/es2019/ui/ContextPanel/context.js +1 -0
  175. package/dist/es2019/ui/DropList/index.js +1 -1
  176. package/dist/es2019/ui/Expand/index.js +3 -4
  177. package/dist/es2019/ui/Layer/index.js +0 -1
  178. package/dist/es2019/ui/MediaSingle/styled.js +37 -31
  179. package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -3
  180. package/dist/es2019/ui/ResizerLegacy/styled.js +2 -0
  181. package/dist/es2019/ui/UnsupportedBlock/index.js +2 -2
  182. package/dist/es2019/ui/UnsupportedInline/index.js +15 -15
  183. package/dist/es2019/ui/clear-next-sibling-margin-top.js +11 -9
  184. package/dist/es2019/ui-color/ColorPalette/Color/styles.js +20 -24
  185. package/dist/es2019/ui-menu/ColorPickerButton/index.js +34 -35
  186. package/dist/es2019/ui-menu/DropdownMenu/index.js +0 -1
  187. package/dist/es2019/utils/dom.js +1 -0
  188. package/dist/es2019/with-plugin-state/index.js +1 -0
  189. package/dist/esm/__tests_external__/page-objects/Editor.js +1 -1
  190. package/dist/esm/__tests_external__/page-objects/EditorSmartLink.js +1 -1
  191. package/dist/esm/__tests_external__/page-objects/Renderer.js +1 -1
  192. package/dist/esm/analytics/types/enums.js +1 -0
  193. package/dist/esm/analytics/types/table-events.js +1 -0
  194. package/dist/esm/annotation/index.js +1 -1
  195. package/dist/esm/card/MediaAndEmbedsToolbar/index.js +1 -0
  196. package/dist/esm/collab/index.js +40 -8
  197. package/dist/esm/element-browser/ElementBrowser.js +1 -1
  198. package/dist/esm/element-browser/components/ElementList/ElementList.js +90 -13
  199. package/dist/esm/element-browser/components/ElementList/EmptyState.js +6 -5
  200. package/dist/esm/element-browser/components/ElementSearch.js +3 -4
  201. package/dist/esm/extensibility/Extension/Extension/styles.js +4 -4
  202. package/dist/esm/extensibility/Extension/Lozenge.js +1 -1
  203. package/dist/esm/extensibility/Extension/styles.js +1 -1
  204. package/dist/esm/extensibility/Extension.js +1 -1
  205. package/dist/esm/extensibility/ExtensionComponent.js +1 -2
  206. package/dist/esm/extensibility/extensionNodeView.js +1 -1
  207. package/dist/esm/extensions/types/field-definitions.js +1 -0
  208. package/dist/esm/keymaps/index.js +7 -5
  209. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
  210. package/dist/esm/link/LinkSearch/LinkSearchList.js +15 -6
  211. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +3 -2
  212. package/dist/esm/link/LinkSearch/ToolbarComponents.js +17 -5
  213. package/dist/esm/link/LinkSearch/index.js +1 -2
  214. package/dist/esm/link/LinkSearch/withActivityProvider.js +1 -1
  215. package/dist/esm/media-inline/media-inline-image-card.js +0 -1
  216. package/dist/esm/media-inline/styles.js +2 -0
  217. package/dist/esm/media-inline/views/icon-wrapper.js +0 -1
  218. package/dist/esm/monitoring/error.js +1 -1
  219. package/dist/esm/preset/editor-commands.js +1 -1
  220. package/dist/esm/provider-factory/with-providers.js +1 -1
  221. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -0
  222. package/dist/esm/resizer/Resizer.js +2 -5
  223. package/dist/esm/safe-plugin/index.js +1 -1
  224. package/dist/esm/selection/gap-cursor/selection.js +1 -1
  225. package/dist/esm/selection/gap-cursor/styles.js +12 -3
  226. package/dist/esm/selection-based-node-view/SelectionBasedNodeView.js +1 -1
  227. package/dist/esm/styles/shared/annotation.js +18 -4
  228. package/dist/esm/styles/shared/block-marks.js +1 -0
  229. package/dist/esm/styles/shared/blockquote.js +29 -3
  230. package/dist/esm/styles/shared/code-block.js +1 -0
  231. package/dist/esm/styles/shared/code-mark.js +8 -3
  232. package/dist/esm/styles/shared/column-layout.js +17 -3
  233. package/dist/esm/styles/shared/date.js +4 -3
  234. package/dist/esm/styles/shared/embedCard.js +19 -4
  235. package/dist/esm/styles/shared/expand.js +3 -4
  236. package/dist/esm/styles/shared/grid.js +28 -3
  237. package/dist/esm/styles/shared/headings.js +34 -3
  238. package/dist/esm/styles/shared/indentation.js +28 -3
  239. package/dist/esm/styles/shared/link.js +5 -3
  240. package/dist/esm/styles/shared/lists.js +2 -0
  241. package/dist/esm/styles/shared/media-single.js +39 -3
  242. package/dist/esm/styles/shared/panel.js +6 -3
  243. package/dist/esm/styles/shared/paragraph.js +11 -3
  244. package/dist/esm/styles/shared/plugins.js +30 -6
  245. package/dist/esm/styles/shared/resizer.js +4 -2
  246. package/dist/esm/styles/shared/rule.js +10 -3
  247. package/dist/esm/styles/shared/shadow.js +31 -3
  248. package/dist/esm/styles/shared/smartCard.js +2 -0
  249. package/dist/esm/styles/shared/table.js +2 -0
  250. package/dist/esm/styles/shared/tableCell.js +1 -3
  251. package/dist/esm/styles/shared/text-color.js +8 -3
  252. package/dist/esm/styles/shared/unsupported-content.js +2 -0
  253. package/dist/esm/styles/shared/whitespace.js +4 -3
  254. package/dist/esm/ui/Announcer/announcer.js +2 -0
  255. package/dist/esm/ui/Caption/index.js +1 -1
  256. package/dist/esm/ui/ContextPanel/context.js +2 -1
  257. package/dist/esm/ui/DropList/index.js +2 -2
  258. package/dist/esm/ui/Emoji/index.js +1 -1
  259. package/dist/esm/ui/ErrorBoundary/index.js +1 -1
  260. package/dist/esm/ui/Expand/index.js +2 -2
  261. package/dist/esm/ui/IntlErrorBoundary/index.js +1 -1
  262. package/dist/esm/ui/Layer/index.js +1 -2
  263. package/dist/esm/ui/MediaSingle/styled.js +16 -8
  264. package/dist/esm/ui/Mention/index.js +1 -1
  265. package/dist/esm/ui/Mention/mention-with-providers.js +1 -1
  266. package/dist/esm/ui/MultiBodiedExtension/index.js +1 -3
  267. package/dist/esm/ui/OverflowShadow/index.js +1 -1
  268. package/dist/esm/ui/PanelTextInput/index.js +1 -1
  269. package/dist/esm/ui/Popup/index.js +1 -1
  270. package/dist/esm/ui/PortalProvider/index.js +1 -1
  271. package/dist/esm/ui/ResizerLegacy/index.js +1 -1
  272. package/dist/esm/ui/ResizerLegacy/styled.js +2 -0
  273. package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
  274. package/dist/esm/ui/UnsupportedInline/index.js +15 -3
  275. package/dist/esm/ui/WithCreateAnalyticsEvent/index.js +1 -1
  276. package/dist/esm/ui/clear-next-sibling-margin-top.js +12 -5
  277. package/dist/esm/ui/with-outer-listeners.js +1 -1
  278. package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -1
  279. package/dist/esm/ui-color/ColorPalette/Color/styles.js +21 -5
  280. package/dist/esm/ui-menu/ColorPickerButton/index.js +34 -7
  281. package/dist/esm/ui-menu/Dropdown/index.js +1 -1
  282. package/dist/esm/ui-menu/DropdownMenu/index.js +1 -2
  283. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +1 -1
  284. package/dist/esm/utils/dom.js +1 -0
  285. package/dist/esm/utils/imageLoader.js +1 -1
  286. package/dist/esm/with-plugin-state/index.js +1 -1
  287. package/dist/types/analytics/types/enums.d.ts +2 -1
  288. package/dist/types/analytics/types/table-events.d.ts +10 -1
  289. package/dist/types/collab/index.d.ts +1 -1
  290. package/dist/types/element-browser/components/ElementBrowserLoader.d.ts +1 -1
  291. package/dist/types/extensions/types/extension-manifest-common.d.ts +1 -1
  292. package/dist/types/extensions/types/extension-manifest.d.ts +1 -1
  293. package/dist/types/icons/index.d.ts +1 -1
  294. package/dist/types/link/LinkSearch/withActivityProvider.d.ts +1 -1
  295. package/dist/types/media-inline/inline-image-wrapper.d.ts +3 -2
  296. package/dist/types/media-inline/media-inline-image-card.d.ts +4 -4
  297. package/dist/types/media-inline/views/error-view.d.ts +3 -2
  298. package/dist/types/media-inline/views/frame.d.ts +3 -2
  299. package/dist/types/media-inline/views/icon-wrapper.d.ts +3 -2
  300. package/dist/types/media-inline/views/loading-view.d.ts +2 -2
  301. package/dist/types/quick-insert/assets/index.d.ts +24 -24
  302. package/dist/types/react-node-view/getInlineNodeViewProducer.d.ts +1 -1
  303. package/dist/types/react-node-view/index.d.ts +2 -2
  304. package/dist/types/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -1
  305. package/dist/types/styles/shared/resizer.d.ts +1 -0
  306. package/dist/types/types/annotation/index.d.ts +2 -2
  307. package/dist/types/types/floating-toolbar.d.ts +3 -3
  308. package/dist/types/ui/Announcer/announcer.d.ts +1 -1
  309. package/dist/types/ui/DropList/index.d.ts +1 -2
  310. package/dist/types/ui/ErrorBoundary/index.d.ts +1 -0
  311. package/dist/types/ui/IntlErrorBoundary/index.d.ts +1 -0
  312. package/dist/types/ui/Layer/index.d.ts +2 -1
  313. package/dist/types/ui/MediaSingle/styled.d.ts +1 -1
  314. package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
  315. package/dist/types/ui/Popup/index.d.ts +1 -0
  316. package/dist/types/ui/UnsupportedInline/index.d.ts +3 -3
  317. package/dist/types/ui/with-outer-listeners.d.ts +3 -2
  318. package/dist/types/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
  319. package/dist/types/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
  320. package/dist/types/ui-menu/ArrowKeyNavigationProvider/index.d.ts +1 -1
  321. package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
  322. package/dist/types/ui-menu/Dropdown/index.d.ts +1 -1
  323. package/dist/types/ui-menu/DropdownMenu/index.d.ts +1 -1
  324. package/dist/types/ui-menu/DropdownMenu/types.d.ts +1 -0
  325. package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -2
  326. package/dist/types/utils/imageLoader.d.ts +1 -1
  327. package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
  328. package/dist/types-ts4.5/analytics/types/table-events.d.ts +10 -1
  329. package/dist/types-ts4.5/collab/index.d.ts +1 -1
  330. package/dist/types-ts4.5/element-browser/components/ElementBrowserLoader.d.ts +1 -1
  331. package/dist/types-ts4.5/extensions/types/extension-manifest-common.d.ts +1 -1
  332. package/dist/types-ts4.5/extensions/types/extension-manifest.d.ts +1 -1
  333. package/dist/types-ts4.5/icons/index.d.ts +1 -1
  334. package/dist/types-ts4.5/link/LinkSearch/withActivityProvider.d.ts +1 -1
  335. package/dist/types-ts4.5/media-inline/inline-image-wrapper.d.ts +3 -2
  336. package/dist/types-ts4.5/media-inline/media-inline-image-card.d.ts +4 -4
  337. package/dist/types-ts4.5/media-inline/views/error-view.d.ts +3 -2
  338. package/dist/types-ts4.5/media-inline/views/frame.d.ts +3 -2
  339. package/dist/types-ts4.5/media-inline/views/icon-wrapper.d.ts +3 -2
  340. package/dist/types-ts4.5/media-inline/views/loading-view.d.ts +2 -2
  341. package/dist/types-ts4.5/quick-insert/assets/index.d.ts +24 -24
  342. package/dist/types-ts4.5/react-node-view/getInlineNodeViewProducer.d.ts +1 -1
  343. package/dist/types-ts4.5/react-node-view/index.d.ts +2 -2
  344. package/dist/types-ts4.5/selection-based-node-view/SelectionBasedNodeView.d.ts +1 -1
  345. package/dist/types-ts4.5/styles/shared/resizer.d.ts +1 -0
  346. package/dist/types-ts4.5/types/annotation/index.d.ts +2 -2
  347. package/dist/types-ts4.5/types/floating-toolbar.d.ts +3 -3
  348. package/dist/types-ts4.5/ui/Announcer/announcer.d.ts +1 -1
  349. package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -2
  350. package/dist/types-ts4.5/ui/ErrorBoundary/index.d.ts +1 -0
  351. package/dist/types-ts4.5/ui/IntlErrorBoundary/index.d.ts +1 -0
  352. package/dist/types-ts4.5/ui/Layer/index.d.ts +2 -1
  353. package/dist/types-ts4.5/ui/MediaSingle/styled.d.ts +1 -1
  354. package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
  355. package/dist/types-ts4.5/ui/Popup/index.d.ts +1 -0
  356. package/dist/types-ts4.5/ui/UnsupportedInline/index.d.ts +3 -3
  357. package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +3 -2
  358. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.d.ts +1 -1
  359. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.d.ts +1 -1
  360. package/dist/types-ts4.5/ui-menu/ArrowKeyNavigationProvider/index.d.ts +1 -1
  361. package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
  362. package/dist/types-ts4.5/ui-menu/Dropdown/index.d.ts +1 -1
  363. package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +1 -1
  364. package/dist/types-ts4.5/ui-menu/DropdownMenu/types.d.ts +1 -0
  365. package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +1 -2
  366. package/dist/types-ts4.5/utils/imageLoader.d.ts +1 -1
  367. package/package.json +4 -3
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React from 'react';
11
11
 
12
12
  // React context to communicate the active context panel width up and down the tree.
@@ -23,6 +23,7 @@ import React from 'react';
23
23
  // positionedOverEditor is used to determine whether the context panel is positioned over the Editor so we are
24
24
  // able to position and add margins to handle certain elements like inline comment dialogues overlapping the context
25
25
  // panel
26
+
26
27
  export var ContextPanel = /*#__PURE__*/React.createContext({
27
28
  width: 0,
28
29
  positionedOverEditor: false,
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  var _templateObject, _templateObject2, _templateObject3;
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  /** @jsx jsx */
13
13
 
14
14
  import { Component } from 'react';
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "78.11.4";
20
+ var packageVersion = "78.11.6";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React, { PureComponent } from 'react';
11
11
  import { ResourcedEmoji } from '@atlaskit/emoji/element';
12
12
  import { ProviderFactory, WithProviders } from '../../provider-factory';
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React from 'react';
11
11
  import { ACTION, EVENT_TYPE } from '../../analytics';
12
12
  import { logException } from '../../monitoring/error';
@@ -11,7 +11,7 @@ import { defineMessages } from 'react-intl-next';
11
11
  import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
12
12
  import { B300, N200, N200A, N300A, N30A, N40A, N50A, N90 } from '@atlaskit/theme/colors';
13
13
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
14
- import { fontSize, gridSize } from '@atlaskit/theme/constants';
14
+ import { fontSize } from '@atlaskit/theme/constants';
15
15
  export var messages = defineMessages({
16
16
  collapseNode: {
17
17
  id: 'fabric.editor.collapseNode',
@@ -78,7 +78,7 @@ var containerStyles = function containerStyles(styleProps) {
78
78
  };
79
79
  var contentStyles = function contentStyles(styleProps) {
80
80
  return function () {
81
- return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-right: ", ";\n // TODO: Migrate away from gridSize\n // Recommendation: Replace gridSize with 8 if important to highlight 8*4 - 8/2, or directly replace with 28px\n padding-left: ", "px;\n display: flow-root;\n\n // The follow rules inside @supports block are added as a part of ED-8893\n // The fix is targeting mobile bridge on iOS 12 or below,\n // We should consider remove this fix when we no longer support iOS 12\n @supports not (display: flow-root) {\n width: 100%;\n box-sizing: border-box;\n }\n\n ", "\n "])), styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)", "var(--ds-space-100, 8px)", gridSize() * 4 - gridSize() / 2, !styleProps.expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n /* Do not add text nowrap here because inline comment navigation depends on the location of the text */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n user-select: none;\n }\n " : '');
81
+ return css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n padding-top: ", ";\n padding-right: ", ";\n padding-left: ", ";\n margin-left: ", ";\n display: flow-root;\n\n // The follow rules inside @supports block are added as a part of ED-8893\n // The fix is targeting mobile bridge on iOS 12 or below,\n // We should consider remove this fix when we no longer support iOS 12\n @supports not (display: flow-root) {\n width: 100%;\n box-sizing: border-box;\n }\n\n ", "\n "])), styleProps.expanded ? "var(--ds-space-100, 8px)" : "var(--ds-space-0, 0px)", "var(--ds-space-100, 8px)", "var(--ds-space-300, 24px)", "var(--ds-space-050, 4px)", !styleProps.expanded ? "\n .expand-content-wrapper, .nestedExpand-content-wrapper {\n /* We visually hide the content here to preserve the content during copy+paste */\n /* Do not add text nowrap here because inline comment navigation depends on the location of the text */\n width: 100%;\n display: block;\n height: 0;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n user-select: none;\n }\n " : '');
82
82
  };
83
83
  };
84
84
  var titleInputStyles = function titleInputStyles() {
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React from 'react';
11
11
  import { IntlProvider } from 'react-intl-next';
12
12
  export var REACT_INTL_ERROR_MESSAGE = '<IntlProvider> needs to exist in the component ancestry';
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
9
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import React, { Component } from 'react';
13
13
  import Popper from 'popper.js'; // eslint-disable-line import/extensions
14
14
  import rafSchedule from 'raf-schd';
@@ -151,7 +151,6 @@ var Layer = /*#__PURE__*/function (_Component) {
151
151
  boundariesElement: 'viewport',
152
152
  padding: 0 // leave 0 pixels between popper and the boundariesElement
153
153
  },
154
-
155
154
  preventOverflow: {
156
155
  enabled: false,
157
156
  escapeWithReference: true
@@ -1,7 +1,7 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
3
  var _excluded = ["children"];
4
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
4
+ var _templateObject, _templateObject2, _templateObject3;
5
5
  /** @jsx jsx */
6
6
 
7
7
  import React from 'react';
@@ -149,20 +149,28 @@ export var MediaSingleDimensionHelper = function MediaSingleDimensionHelper(_ref
149
149
  isNestedNode = _ref$isNestedNode === void 0 ? false : _ref$isNestedNode,
150
150
  _ref$isInsideOfInline = _ref.isInsideOfInlineExtension,
151
151
  isInsideOfInlineExtension = _ref$isInsideOfInline === void 0 ? false : _ref$isInsideOfInline;
152
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* For nested rich media items, set max-width to 100% */\n tr &,\n [data-layout-column] &,\n [data-node-type='expand'] &,\n [data-panel-type] &,\n li & {\n max-width: 100%;\n }\n\n width: ", ";\n ", "\n max-width: ", ";\n\n ", "\n\n &:not(.is-resizing) {\n transition: width 100ms ease-in;\n }\n\n float: ", ";\n margin: ", ";\n\n &[class*='not-resizing'] {\n ", "\n }\n\n ", ";\n"])), isExtendedResizeExperienceOn ? "".concat(mediaSingleWidth || width, "px") : mediaSingleWidth ? calcResizedWidth(layout, width || 0, containerWidth) : calcLegacyWidth(layout, width || 0, containerWidth, fullWidthMode, isResized, isInsideOfInlineExtension), layout === 'full-width' &&
153
- /* This causes issues for new experience where we don't strip layout attributes
154
- when copying top-level node and pasting into a table/layout,
155
- because full-width layout will remain, causing node to be edge-to-edge */
156
- !isExtendedResizeExperienceOn && css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: 100%;\n "]))), isExtendedResizeExperienceOn ? "".concat(containerWidth, "px") : calcMaxWidth(layout, containerWidth), isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
152
+ return (// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
153
+ css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* For nested rich media items, set max-width to 100% */\n tr &,\n [data-layout-column] &,\n [data-node-type='expand'] &,\n [data-panel-type] &,\n li & {\n max-width: 100%;\n }\n\n width: ", ";\n ", "\n max-width: ", ";\n\n ", "\n\n &:not(.is-resizing) {\n transition: width 100ms ease-in;\n }\n\n float: ", ";\n margin: ", ";\n\n &[class*='not-resizing'] {\n ", "\n }\n\n ", ";\n "])), isExtendedResizeExperienceOn ? "".concat(mediaSingleWidth || width, "px") : mediaSingleWidth ? calcResizedWidth(layout, width || 0, containerWidth) : calcLegacyWidth(layout, width || 0, containerWidth, fullWidthMode, isResized, isInsideOfInlineExtension), layout === 'full-width' &&
154
+ /* This causes issues for new experience where we don't strip layout attributes
155
+ when copying top-level node and pasting into a table/layout,
156
+ because full-width layout will remain, causing node to be edge-to-edge */
157
+ !isExtendedResizeExperienceOn && css({
158
+ minWidth: '100%'
159
+ }), isExtendedResizeExperienceOn ? "".concat(containerWidth, "px") : calcMaxWidth(layout, containerWidth), isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout))
160
+ );
157
161
  };
158
162
  var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
159
163
  var hasFallbackContainer = _ref2.hasFallbackContainer,
160
164
  paddingBottom = _ref2.paddingBottom,
161
165
  height = _ref2.height;
162
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", "\n"])), hasFallbackContainer ? "\n &::after {\n content: '';\n display: block;\n ".concat(height ? "height: ".concat(height, "px;") : paddingBottom ? "padding-bottom: ".concat(paddingBottom, ";") : '', "\n\n /* Fixes extra padding problem in Firefox */\n font-size: 0;\n line-height: 0;\n }\n ") : '');
166
+ return (// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
167
+ css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n "])), hasFallbackContainer ? "\n &::after {\n content: '';\n display: block;\n ".concat(height ? "height: ".concat(height, "px;") : paddingBottom ? "padding-bottom: ".concat(paddingBottom, ";") : '', "\n\n /* Fixes extra padding problem in Firefox */\n font-size: 0;\n line-height: 0;\n }\n ") : '')
168
+ );
163
169
  };
170
+
171
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
164
172
  export var mediaWrapperStyle = function mediaWrapperStyle(props) {
165
- return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n\n ", "\n\n /* Editor */\n & > figure {\n position: ", ";\n height: 100%;\n width: 100%;\n }\n\n & > div {\n position: ", ";\n height: 100%;\n width: 100%;\n }\n\n &[data-node-type='embedCard'] > div {\n width: 100%;\n }\n\n /* Renderer */\n [data-node-type='media'] {\n position: static !important;\n\n > div {\n position: absolute;\n height: 100%;\n }\n }\n"])), RenderFallbackContainer(props), props.hasFallbackContainer ? 'absolute' : 'relative', props.hasFallbackContainer ? 'absolute' : 'relative');
173
+ return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n\n ", "\n\n /* Editor */\n & > figure {\n position: ", ";\n height: 100%;\n width: 100%;\n }\n\n & > div {\n position: ", ";\n height: 100%;\n width: 100%;\n }\n\n &[data-node-type='embedCard'] > div {\n width: 100%;\n }\n\n /* Renderer */\n [data-node-type='media'] {\n position: static !important;\n\n > div {\n position: absolute;\n height: 100%;\n }\n }\n"])), RenderFallbackContainer(props), props.hasFallbackContainer ? 'absolute' : 'relative', props.hasFallbackContainer ? 'absolute' : 'relative');
166
174
  };
167
175
  export var MediaWrapper = function MediaWrapper(_ref3) {
168
176
  var children = _ref3.children,
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React, { PureComponent } from 'react';
11
11
  import { ProviderFactory, WithProviders } from '../../provider-factory';
12
12
  import MentionWithProviders from './mention-with-providers';
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React, { PureComponent } from 'react';
12
12
  import { ResourcedMention } from '@atlaskit/mention/element';
13
13
  import ResourcedMentionWithProfilecard from './mention-with-profilecard';
@@ -2,8 +2,6 @@
2
2
 
3
3
  import { css } from '@emotion/react';
4
4
  import { N30, N40 } from '@atlaskit/theme/colors';
5
- import { BODIED_EXT_MBE_MARGIN_TOP } from '../../styles';
6
-
7
5
  // Wraps the navigation bar and extensionFrames
8
6
  var mbeExtensionContainer = css({
9
7
  background: 'transparent !important',
@@ -62,7 +60,7 @@ var extensionFrameContent = css({
62
60
  paddingRight: "var(--ds-space-150, 12px)".concat(" !important")
63
61
  },
64
62
  '.bodiedExtensionView-content-wrap': {
65
- marginTop: "".concat(BODIED_EXT_MBE_MARGIN_TOP, "px !important")
63
+ marginTop: "var(--ds-space-150, 12px)".concat(" !important")
66
64
  },
67
65
  '.extensionView-content-wrap': {
68
66
  marginTop: "var(--ds-space-100, 8px)".concat(" !important")
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React from 'react';
12
12
  import { ShadowObserver, shadowObserverClassNames } from './shadowObserver';
13
13
  export var shadowClassNames = {
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  /** @jsx jsx */
12
12
 
13
13
  import { PureComponent } from 'react';
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
9
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import React from 'react';
13
13
  import createFocusTrap from 'focus-trap';
14
14
  import rafSchedule from 'raf-schd';
@@ -8,7 +8,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  var _class4;
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import React from 'react';
13
13
  import PropTypes from 'prop-types';
14
14
  import { createPortal, unmountComponentAtNode, unstable_renderSubtreeIntoContainer } from 'react-dom';
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
9
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import React from 'react';
13
13
  import classnames from 'classnames';
14
14
  import { Resizable } from 're-resizable';
@@ -2,6 +2,8 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject;
3
3
  import { css } from '@emotion/react';
4
4
  import { MediaSingleDimensionHelper } from '../MediaSingle/styled';
5
+
6
+ // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Needs manual remediation
5
7
  export var wrapperStyle = function wrapperStyle(props) {
6
8
  return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & > div {\n ", ";\n position: relative;\n clear: both;\n\n > div {\n position: absolute;\n height: 100%;\n width: 100%;\n }\n }\n"])), MediaSingleDimensionHelper(props));
7
9
  };
@@ -13,7 +13,7 @@ import { ACTION_SUBJECT_ID } from '../../analytics';
13
13
  import { unsupportedContentMessages } from '../../messages/unsupportedContent';
14
14
  import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
15
15
  import { getUnsupportedContent } from '../unsupported-content-helper';
16
- var blockNodeStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px dashed ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n cursor: default;\n display: flex;\n font-size: ", ";\n margin: 10px 0;\n min-height: 24px;\n padding: 10px;\n text-align: center;\n vertical-align: text-bottom;\n min-width: 120px;\n align-items: center;\n justify-content: center;\n"])), "var(--ds-background-disabled, ".concat(N30, ")"), "var(--ds-border-disabled, ".concat(N50, ")"), borderRadius(), relativeFontSizeToBase16(fontSize()));
16
+ var blockNodeStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border: 1px dashed ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n cursor: default;\n display: flex;\n font-size: ", ";\n margin: ", " 0;\n min-height: 24px;\n padding: ", ";\n text-align: center;\n vertical-align: text-bottom;\n min-width: 120px;\n align-items: center;\n justify-content: center;\n"])), "var(--ds-background-disabled, ".concat(N30, ")"), "var(--ds-border-disabled, ".concat(N50, ")"), borderRadius(), relativeFontSizeToBase16(fontSize()), "var(--ds-space-100, 8px)", "var(--ds-space-150, 12px)");
17
17
  var UnsupportedBlockNode = function UnsupportedBlockNode(_ref) {
18
18
  var node = _ref.node,
19
19
  intl = _ref.intl,
@@ -1,5 +1,3 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject;
3
1
  /** @jsx jsx */
4
2
  import React, { useCallback, useRef } from 'react';
5
3
  import { css, jsx } from '@emotion/react';
@@ -13,7 +11,21 @@ import { ACTION_SUBJECT_ID } from '../../analytics';
13
11
  import { unsupportedContentMessages } from '../../messages/unsupportedContent';
14
12
  import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
15
13
  import { getUnsupportedContent } from '../unsupported-content-helper';
16
- var inlineNodeStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n align-items: center;\n background: ", ";\n border: 1px dashed ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n cursor: default;\n display: inline-flex;\n font-size: ", ";\n margin: 0 ", ";\n min-height: 24px;\n padding: 0 10px;\n vertical-align: middle;\n white-space: nowrap;\n"])), "var(--ds-background-disabled, ".concat(N30, ")"), "var(--ds-border-disabled, ".concat(N50, ")"), borderRadius(), relativeFontSizeToBase16(fontSize()), "var(--ds-space-025, 2px)");
14
+ var inlineNodeStyle = css({
15
+ alignItems: 'center',
16
+ background: "var(--ds-background-disabled, ".concat(N30, ")"),
17
+ border: "1px dashed ".concat("var(--ds-border-disabled, ".concat(N50, ")")),
18
+ borderRadius: "".concat(borderRadius(), "px"),
19
+ boxSizing: 'border-box',
20
+ cursor: 'default',
21
+ display: 'inline-flex',
22
+ fontSize: relativeFontSizeToBase16(fontSize()),
23
+ margin: "0 ".concat("var(--ds-space-025, 2px)"),
24
+ minHeight: '24px',
25
+ padding: "0 ".concat("var(--ds-space-100, 8px)"),
26
+ verticalAlign: 'middle',
27
+ whiteSpace: 'nowrap'
28
+ });
17
29
  var UnsupportedInlineNode = function UnsupportedInlineNode(_ref) {
18
30
  var node = _ref.node,
19
31
  intl = _ref.intl,
@@ -4,7 +4,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
4
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
7
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
8
  import React from 'react';
9
9
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
10
10
  export var WithCreateAnalyticsEvent = withAnalyticsEvents()( /*#__PURE__*/function (_React$Component) {
@@ -1,12 +1,19 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
2
  import { css } from '@emotion/react';
4
3
 
5
4
  // We use !important to ensure next sibling gets the margin reset no matter what
6
- var marginTopReset = "margin-top: 0 !important;";
7
- export var clearNextSiblingMarginTopStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & + * {\n ", "\n }\n"])), marginTopReset);
5
+
6
+ export var clearNextSiblingMarginTopStyle = css({
7
+ '& + *': {
8
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
9
+ marginTop: '0 !important'
10
+ }
11
+ });
8
12
  var textElements = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
9
13
  var nextSiblingBlockMarkContentSelectors = textElements.map(function (elem) {
10
14
  return "+ .fabric-editor-block-mark > ".concat(elem);
11
15
  }).join(',');
12
- export var clearNextSiblingBlockMarkMarginTopStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", " {\n ", "\n }\n"])), nextSiblingBlockMarkContentSelectors, marginTopReset);
16
+ export var clearNextSiblingBlockMarkMarginTopStyle = css(_defineProperty({}, "".concat(nextSiblingBlockMarkContentSelectors), {
17
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
18
+ marginTop: '0 !important'
19
+ }));
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import React, { PureComponent } from 'react';
11
11
  import ReactDOM from 'react-dom';
12
12
  export default function withOuterListeners(Component) {
@@ -6,7 +6,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
6
6
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
9
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  /** @jsx jsx */
11
11
  import React, { PureComponent } from 'react';
12
12
  import { jsx } from '@emotion/react';
@@ -1,14 +1,30 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
3
1
  import { css } from '@emotion/react';
4
2
  import { N0, N50, N900 } from '@atlaskit/theme/colors';
5
-
6
3
  /** this is not new usage - old code extracted from editor-core */
7
4
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
8
- export var buttonStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: 26px;\n width: 26px;\n background: ", ";\n padding: 0;\n border-radius: 4px;\n border: 1px solid ", ";\n cursor: pointer;\n display: block;\n"])), N900, N0);
5
+ export var buttonStyle = css({
6
+ height: '26px',
7
+ width: '26px',
8
+ background: "var(--ds-background-neutral, ".concat(N900, ")"),
9
+ padding: 0,
10
+ borderRadius: '4px',
11
+ border: "1px solid ".concat("var(--ds-border-inverse, ".concat(N0, ")")),
12
+ cursor: 'pointer',
13
+ display: 'block'
14
+ });
9
15
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
10
16
 
11
17
  /** this is not new usage - old code extracted from editor-core */
12
18
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
13
- export var buttonWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border: 1px solid transparent;\n margin: 1px;\n font-size: 0;\n display: flex;\n align-items: center;\n padding: 1px;\n border-radius: 6px;\n &:focus-within,\n &:focus,\n &:hover {\n border-color: ", " !important;\n }\n"])), N50);
19
+ export var buttonWrapperStyle = css({
20
+ border: '1px solid transparent',
21
+ fontSize: 0,
22
+ display: 'flex',
23
+ alignItems: 'center',
24
+ padding: "var(--ds-space-025, 2px)",
25
+ borderRadius: '6px',
26
+ '&:focus-within, &:focus, &:hover': {
27
+ borderColor: "".concat("var(--ds-border, ".concat(N50, ")"), " !important")
28
+ }
29
+ });
14
30
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
@@ -1,6 +1,4 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
- var _templateObject, _templateObject2, _templateObject3, _templateObject4;
4
2
  /** @jsx jsx */
5
3
  import React from 'react';
6
4
  import { css, jsx } from '@emotion/react';
@@ -17,14 +15,23 @@ import { ArrowKeyNavigationProvider } from '../ArrowKeyNavigationProvider';
17
15
  import { ArrowKeyNavigationType } from '../ArrowKeyNavigationProvider/types';
18
16
 
19
17
  // helps adjusts position of popup
20
- var colorPickerButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
21
- var colorPickerExpandContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0px ", ";\n"])), "var(--ds-space-negative-050, -4px)");
18
+ var colorPickerButtonWrapper = css({
19
+ position: 'relative'
20
+ });
21
+ var colorPickerExpandContainer = css({
22
+ margin: "0px ".concat("var(--ds-space-negative-050, -4px)")
23
+ });
22
24
 
23
25
  // Control the size of color picker buttons and preview
24
26
  // TODO: https://product-fabric.atlassian.net/browse/DSP-4134
25
27
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
26
28
  var colorPickerWrapper = function colorPickerWrapper() {
27
- return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n border-radius: ", ";\n background-color: ", ";\n box-shadow: 0 4px 8px -2px ", ", 0 0 1px ", ";\n padding: ", " 0px;\n"])), "var(--ds-border-radius, 3px)", "var(--ds-surface-overlay, ".concat(N0, ")"), N60A, N60A, "var(--ds-space-100, 8px)");
29
+ return css({
30
+ borderRadius: "var(--ds-border-radius, 3px)",
31
+ backgroundColor: "var(--ds-surface-overlay, ".concat(N0, ")"),
32
+ boxShadow: "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"),
33
+ padding: "var(--ds-space-100, 8px)".concat(" 0px")
34
+ });
28
35
  };
29
36
  /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
30
37
 
@@ -157,8 +164,28 @@ var ColorPickerButton = function ColorPickerButton(props) {
157
164
  var currentColor = props.currentColor && props.hexToPaletteColor ? props.hexToPaletteColor(props.currentColor) : props.currentColor;
158
165
  var buttonStyle = function buttonStyle() {
159
166
  var _props$size, _props$size2, _props$size3;
160
- return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: ", " 10px;\n background-color: ", ";\n ", "\n &:before {\n display: flex;\n justify-content: center;\n align-items: center;\n align-self: center;\n content: '';\n border: 1px solid ", ";\n border-radius: ", ";\n background-color: ", ";\n width: ", ";\n height: ", ";\n padding: 0;\n margin: 0px ", ";\n }\n &:hover {\n background: ", ";\n }\n "])), "var(--ds-space-075, 6px)", "var(--ds-background-neutral-subtle, transparent)", /* If custom props size height, override the button base height property */
161
- !!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) && "height: inherit;", DEFAULT_BORDER_COLOR, "var(--ds-border-radius, 3px)", currentColor || 'transparent', ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px', ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px', "var(--ds-space-025, 2px)", "var(--ds-background-neutral-subtle-hovered, ".concat(N30A, ")"));
167
+ return css({
168
+ padding: "var(--ds-space-075, 6px)".concat(" 10px"),
169
+ backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
170
+ height: "".concat(!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''),
171
+ '&:before': {
172
+ display: 'flex',
173
+ justifyContent: 'center',
174
+ alignItems: 'center',
175
+ alignSelf: 'center',
176
+ content: "''",
177
+ border: "1px solid ".concat(DEFAULT_BORDER_COLOR),
178
+ borderRadius: "var(--ds-border-radius, 3px)",
179
+ backgroundColor: currentColor || 'transparent',
180
+ width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
181
+ height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
182
+ padding: 0,
183
+ margin: "0px ".concat("var(--ds-space-025, 2px)")
184
+ },
185
+ '&:hover': {
186
+ background: "var(--ds-background-neutral-subtle-hovered, ".concat(N30A, ")")
187
+ }
188
+ });
162
189
  };
163
190
  return jsx("div", {
164
191
  css: colorPickerButtonWrapper
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React, { PureComponent } from 'react';
12
12
  import { withReactEditorViewOuterListeners } from '../../ui-react';
13
13
  import DropdownList from '../../ui/DropList';
@@ -15,7 +15,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
15
15
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
16
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
17
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
18
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
18
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
19
19
  /** @jsx jsx */
20
20
 
21
21
  import React, { PureComponent, useContext } from 'react';
@@ -44,7 +44,6 @@ var buttonStyles = function buttonStyles(isActive, submenuActive) {
44
44
  return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n > span:hover[aria-disabled='false'] {\n color: ", ";\n background-color: ", ";\n }\n ", "\n > span[aria-disabled='true'] {\n color: ", ";\n }\n :focus > span[aria-disabled='false'] {\n ", ";\n }\n :focus-visible,\n :focus-visible > span[aria-disabled='false'] {\n outline: none;\n }\n "])), "var(--ds-text, ".concat(N900, ")"), "var(--ds-background-neutral-subtle-hovered, rgb(244, 245, 247))", !submenuActive && "\n > span:active[aria-disabled='false'] {\n background-color: ".concat("var(--ds-background-neutral-subtle-pressed, rgb(179, 212, 255))", ";\n }"), "var(--ds-text-disabled, ".concat(N70, ")"), focusedMenuItemStyle); // The default focus-visible style is removed to ensure consistency across browsers
45
45
  }
46
46
  };
47
-
48
47
  var DropListWithOutsideListeners = withReactEditorViewOuterListeners(DropList);
49
48
 
50
49
  /**
@@ -9,7 +9,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
10
  var _excluded = ["handleClickOutside", "handleEnterKeydown", "handleEscapeKeydown", "closeOnTab"];
11
11
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
12
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
12
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
13
  import React, { PureComponent, useEffect, useState } from 'react';
14
14
  import ReactDOM from 'react-dom';
15
15
  import ReactEditorViewContext from './ReactEditorViewContext';
@@ -94,6 +94,7 @@ export function closestElement(node, s) {
94
94
  */
95
95
  // At time of writting prettier would strip the extend here.
96
96
  // prettier-ignore
97
+
97
98
  export function parsePx(pxStr) {
98
99
  if (!pxStr.endsWith('px')) {
99
100
  return undefined;
@@ -7,7 +7,7 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
7
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
9
9
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import React, { Component } from 'react';
12
12
  export var withImageLoader = function withImageLoader(Wrapped) {
13
13
  return /*#__PURE__*/function (_Component) {
@@ -8,7 +8,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
9
9
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
10
10
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
12
  import React from 'react';
13
13
  import PropTypes from 'prop-types';
14
14
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';