@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
@@ -14,8 +14,8 @@ var _ui = require("../../ui");
14
14
  var _templateObject;
15
15
  /** @jsx jsx */
16
16
  /* eslint-disable no-console */
17
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
19
19
  /*
20
20
  ** The context is used to handle the keydown events of submenus.
21
21
  ** Because the keyboard navigation is explicitly managed for main toolbar items
@@ -18,8 +18,8 @@ var _templateObject; // This file is copied to `packages/editor/editor-plugin-ai
18
18
  // If you make any change here, copy it to above file as well
19
19
  // and notify about the change in #team-fc-editor-ai-dev channel.
20
20
  /** @jsx jsx */
21
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
22
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
22
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
23
23
  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; }
24
24
  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) { (0, _defineProperty2.default)(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; }
25
25
  var TOOLBAR_BUTTON = exports.TOOLBAR_BUTTON = _analytics.TOOLBAR_ACTION_SUBJECT_ID;
@@ -92,5 +92,5 @@ var _ColorPaletteArrowKeyNavigationProvider = require("./ArrowKeyNavigationProvi
92
92
  var _Dropdown = _interopRequireDefault(require("./Dropdown"));
93
93
  var _ColorPickerButton = _interopRequireDefault(require("./ColorPickerButton"));
94
94
  var _DropdownContainer = require("./DropdownContainer");
95
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
96
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
95
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
96
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -19,10 +19,10 @@ var _react = _interopRequireWildcard(require("react"));
19
19
  var _reactDom = _interopRequireDefault(require("react-dom"));
20
20
  var _ReactEditorViewContext = _interopRequireDefault(require("./ReactEditorViewContext"));
21
21
  var _excluded = ["handleClickOutside", "handleEnterKeydown", "handleEscapeKeydown", "closeOnTab"];
22
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
23
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
24
24
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
25
- 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; } }
25
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
26
26
  // This needs exporting to be used alongisde `withReactEditorViewOuterListeners`
27
27
  var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
28
28
  (0, _inherits2.default)(WithOutsideClick, _PureComponent);
@@ -15,10 +15,10 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
15
15
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
17
  var _react = _interopRequireWildcard(require("react"));
18
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
19
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
20
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
21
- 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; } }
21
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
22
22
  var withImageLoader = exports.withImageLoader = function withImageLoader(Wrapped) {
23
23
  return /*#__PURE__*/function (_Component) {
24
24
  (0, _inherits2.default)(WithImageLoader, _Component);
@@ -20,7 +20,7 @@ var _utils = require("../utils");
20
20
  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; }
21
21
  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) { (0, _defineProperty2.default)(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; }
22
22
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
23
- 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; } }
23
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
24
24
  var DEFAULT_SAMPLING_RATE = 100;
25
25
  var DEFAULT_SLOW_THRESHOLD = 4;
26
26
 
@@ -164,6 +164,7 @@ export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
164
164
  INPUT_METHOD["TYPEAHEAD"] = "typeAhead";
165
165
  INPUT_METHOD["DATASOURCE"] = "datasource_config";
166
166
  INPUT_METHOD["TABLE_CONTEXT_MENU"] = "tableContextMenu";
167
+ INPUT_METHOD["MOUSE"] = "mouse";
167
168
  return INPUT_METHOD;
168
169
  }({});
169
170
  export let TRIGGER_METHOD = /*#__PURE__*/function (TRIGGER_METHOD) {
@@ -23,6 +23,7 @@ export let TABLE_ACTION = /*#__PURE__*/function (TABLE_ACTION) {
23
23
  TABLE_ACTION["FIXED"] = "fixed";
24
24
  TABLE_ACTION["RESIZED"] = "resized";
25
25
  TABLE_ACTION["RESIZE_PERF_SAMPLING"] = "resizePerfSampling";
26
+ TABLE_ACTION["COLUMN_RESIZED"] = "columnResized";
26
27
  TABLE_ACTION["OVERFLOW_CHANGED"] = "overflowChanged";
27
28
  TABLE_ACTION["INITIAL_OVERFLOW_CAPTURED"] = "initialOverflowCaptured";
28
29
  TABLE_ACTION["MOVED_ROW"] = "movedRow";
@@ -16,6 +16,7 @@ import { alignAttributes, isInLayoutColumn, nonWrappedLayouts } from '../../util
16
16
 
17
17
  // Workaround as we don't want to import this package into `editor-common`
18
18
  // We'll get type errors if this gets out of sync with `editor-plugin-width`.
19
+
19
20
  export const alignmentIcons = [{
20
21
  id: 'editor.media.alignLeft',
21
22
  value: 'align-start',
@@ -5,8 +5,10 @@ import * as themeColors from '@atlaskit/theme/colors';
5
5
 
6
6
  // Format of the payload returned by the callback function passed to the collab provider
7
7
  // that gets called when syncing with the back-end service fails.
8
+
8
9
  // Format of the document and its metadata returned from the collab provider
9
10
  // after editing and for draft sync
11
+
10
12
  // Provider Errors
11
13
  // Emitted errors
12
14
  export let PROVIDER_ERROR_CODE = /*#__PURE__*/function (PROVIDER_ERROR_CODE) {
@@ -130,48 +132,44 @@ export const colors = [themeColors.R100, themeColors.R300, themeColors.R500, the
130
132
  solid,
131
133
  selection: hexToRgba(solid, 0.2)
132
134
  }));
133
- const telepointerColorStyle = (color, index) => `
134
- &.color-${index} {
135
- background-color: ${color.selection};
136
- &::after {
137
- background-color: ${color.solid};
138
- color: ${"var(--ds-text-inverse, #fff)"};
139
- border-color: ${color.solid};
140
- }
141
- }
142
- `;
143
135
  export const TELEPOINTER_DIM_CLASS = 'telepointer-dim';
144
- export const telepointerStyle = css`
145
- .ProseMirror .telepointer {
146
- position: relative;
147
- transition: opacity 200ms;
148
-
149
- &.telepointer-selection {
150
- line-height: 1.2;
151
- pointer-events: none;
152
- user-select: none;
136
+ export const telepointerStyle = css({
137
+ '.ProseMirror .telepointer': {
138
+ position: 'relative',
139
+ transition: 'opacity 200ms',
140
+ '&.telepointer-selection': {
141
+ lineHeight: 1.2,
142
+ pointerEvents: 'none',
143
+ userSelect: 'none'
144
+ },
145
+ '&.telepointer-selection-badge::after': {
146
+ content: 'attr(data-initial)',
147
+ position: 'absolute',
148
+ display: 'block',
149
+ // Disable top: -14px since it is necessary to align to cursor
150
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
151
+ top: '-14px',
152
+ fontSize: relativeFontSizeToBase16(9),
153
+ padding: "var(--ds-space-025, 2px)",
154
+ color: "var(--ds-text-inverse, white)",
155
+ left: '0px',
156
+ borderRadius: '2px 2px 2px 0',
157
+ lineHeight: 'initial'
158
+ },
159
+ [`&.${TELEPOINTER_DIM_CLASS}`]: {
160
+ opacity: 0.2
153
161
  }
154
-
155
- &.telepointer-selection-badge::after {
156
- content: attr(data-initial);
157
- position: absolute;
158
- display: block;
159
- top: -14px;
160
- font-size: ${relativeFontSizeToBase16(9)};
161
- padding: ${"var(--ds-space-025, 2px)"};
162
- color: ${"var(--ds-text-inverse, white)"};
163
- left: -1px;
164
- border-radius: 2px 2px 2px 0;
165
- line-height: initial;
166
- }
167
-
168
- &.${TELEPOINTER_DIM_CLASS} {
169
- opacity: 0.2;
162
+ }
163
+ }, ...colors.map((color, index) => ({
164
+ [`&.color-${index}`]: {
165
+ backgroundColor: color.selection,
166
+ '&::after': {
167
+ backgroundColor: color.solid,
168
+ color: "var(--ds-text-inverse, #fff)",
169
+ borderColor: color.solid
170
170
  }
171
-
172
- ${colors.map((color, index) => telepointerColorStyle(color, index))};
173
171
  }
174
- `;
172
+ })));
175
173
  const tintKey = 'collab:isDirtyTransaction';
176
174
  export const isDirtyTransaction = tr => {
177
175
  return Boolean(tr.getMeta(tintKey));
@@ -22,23 +22,21 @@ import EmptyState from './EmptyState';
22
22
  import { getColumnCount, getScrollbarWidth } from './utils';
23
23
  export const ICON_HEIGHT = 40;
24
24
  export const ICON_WIDTH = 40;
25
- export const itemIcon = css`
26
- width: ${ICON_WIDTH}px;
27
- height: ${ICON_HEIGHT}px;
28
- overflow: hidden;
29
- border: 1px solid ${"var(--ds-border, rgba(223, 225, 229, 0.5))"}; /* N60 at 50% */
30
- border-radius: ${borderRadius()}px;
31
- box-sizing: border-box;
32
-
33
- display: flex;
34
- justify-content: center;
35
- align-items: center;
36
-
37
- div {
38
- width: ${ICON_WIDTH}px;
39
- height: ${ICON_HEIGHT}px;
25
+ export const itemIcon = css({
26
+ width: `${ICON_WIDTH}px`,
27
+ height: `${ICON_HEIGHT}px`,
28
+ overflow: 'hidden',
29
+ border: `1px solid ${"var(--ds-border, rgba(223, 225, 229, 0.5))"}`,
30
+ borderRadius: `${borderRadius()}px`,
31
+ boxSizing: 'border-box',
32
+ display: 'flex',
33
+ justifyContent: 'center',
34
+ alignItems: 'center',
35
+ div: {
36
+ width: `${ICON_WIDTH}px`,
37
+ height: `${ICON_HEIGHT}px`
40
38
  }
41
- `;
39
+ });
42
40
  function ElementList({
43
41
  items,
44
42
  mode,
@@ -230,95 +228,86 @@ const ItemContent = /*#__PURE__*/memo(({
230
228
  }, keyshortcut))), description && jsx("p", {
231
229
  css: itemDescription
232
230
  }, description))));
233
- const elementItemsWrapper = css`
234
- flex: 1;
235
- flex-flow: row wrap;
236
- align-items: flex-start;
237
- justify-content: flex-start;
238
- overflow: hidden;
239
- padding: ${ELEMENT_LIST_PADDING}px; // For Focus outline
240
-
241
- .ReactVirtualized__Collection {
242
- border-radius: 3px; // Standard border-radius across other components like Search or Item.
243
- outline: none;
244
-
245
- :focus {
246
- box-shadow: 0 0 0 ${ELEMENT_LIST_PADDING}px
247
- ${`var(--ds-border-focused, ${B100})`};
231
+ const elementItemsWrapper = css({
232
+ flex: 1,
233
+ flexFlow: 'row wrap',
234
+ alignItems: 'flex-start',
235
+ justifyContent: 'flex-start',
236
+ overflow: 'hidden',
237
+ padding: "var(--ds-space-025, 2px)",
238
+ '.ReactVirtualized__Collection': {
239
+ borderRadius: '3px',
240
+ outline: 'none',
241
+ ':focus': {
242
+ boxShadow: `0 0 0 ${ELEMENT_LIST_PADDING}px ${`var(--ds-border-focused, ${B100})`}`
248
243
  }
249
- }
250
- .ReactVirtualized__Collection__innerScrollContainer {
251
- div[class='element-item-wrapper']:last-child {
252
- padding-bottom: ${"var(--ds-space-050, 4px)"};
244
+ },
245
+ '.ReactVirtualized__Collection__innerScrollContainer': {
246
+ "div[class='element-item-wrapper']:last-child": {
247
+ paddingBottom: "var(--ds-space-050, 4px)"
253
248
  }
254
249
  }
255
- `;
256
- const elementItemWrapper = css`
257
- div {
258
- button {
259
- height: 75px;
260
- align-items: flex-start;
261
- padding: ${"var(--ds-space-150, 12px)"} ${"var(--ds-space-150, 12px)"} 11px;
250
+ });
251
+ const elementItemWrapper = css({
252
+ div: {
253
+ button: {
254
+ height: '75px',
255
+ alignItems: 'flex-start',
256
+ padding: "var(--ds-space-150, 12px)"
262
257
  }
263
258
  }
264
- `;
265
- const itemBody = css`
266
- display: flex;
267
- flex-direction: row;
268
- flex-wrap: nowrap;
269
- justify-content: space-between;
270
- line-height: 1.4;
271
- width: 100%;
272
-
273
- margin-top: ${"var(--ds-space-negative-025, -2px)"}; // Fixes the Item Icon and text's alignment issue
274
- `;
259
+ });
260
+ const itemBody = css({
261
+ display: 'flex',
262
+ flexDirection: 'row',
263
+ flexWrap: 'nowrap',
264
+ justifyContent: 'space-between',
265
+ lineHeight: 1.4,
266
+ width: '100%',
267
+ marginTop: "var(--ds-space-negative-025, -2px)"
268
+ });
275
269
 
276
270
  /*
277
271
  * -webkit-line-clamp is also supported by firefox 🎉
278
272
  * https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/68#CSS
279
273
  */
280
- const multilineStyle = css`
281
- display: -webkit-box;
282
- -webkit-line-clamp: 2;
283
- -webkit-box-orient: vertical;
284
- `;
285
- const itemDescription = css`
286
- ${multilineStyle};
287
-
288
- overflow: hidden;
289
- font-size: ${relativeFontSizeToBase16(11.67)};
290
- color: ${`var(--ds-text-subtle, ${N200})`};
291
- margin-top: ${"var(--ds-space-025, 2px)"};
292
- `;
293
- const itemText = css`
294
- width: inherit;
295
- white-space: initial;
296
- `;
297
- const itemTitleWrapper = css`
298
- display: flex;
299
- justify-content: space-between; // Title and keyboardshortcut are rendered in the same block
300
- `;
301
- const itemTitle = css`
302
- width: 100%;
303
- overflow: hidden;
304
-
305
- white-space: nowrap;
306
- text-overflow: ellipsis;
307
- `;
308
- const itemAfter = css`
309
- flex: 0 0 auto;
310
-
311
- // Prevents item from being cut off due to negative margin
312
- padding-top: ${"var(--ds-space-025, 2px)"};
313
- margin-bottom: ${"var(--ds-space-negative-025, -2px)"};
314
- `;
315
- const itemIconStyle = css`
316
- img {
317
- height: 40px;
318
- width: 40px;
319
- object-fit: cover;
274
+ const multilineStyle = css({
275
+ display: '-webkit-box',
276
+ WebkitLineClamp: 2,
277
+ WebkitBoxOrient: 'vertical'
278
+ });
279
+ const itemDescription = css(multilineStyle, {
280
+ overflow: 'hidden',
281
+ fontSize: relativeFontSizeToBase16(11.67),
282
+ color: `var(--ds-text-subtle, ${N200})`,
283
+ marginTop: "var(--ds-space-025, 2px)"
284
+ });
285
+ const itemText = css({
286
+ width: 'inherit',
287
+ whiteSpace: 'initial'
288
+ });
289
+ const itemTitleWrapper = css({
290
+ display: 'flex',
291
+ justifyContent: 'space-between'
292
+ });
293
+ const itemTitle = css({
294
+ width: '100%',
295
+ overflow: 'hidden',
296
+ whiteSpace: 'nowrap',
297
+ textOverflow: 'ellipsis'
298
+ });
299
+ const itemAfter = css({
300
+ flex: '0 0 auto',
301
+ paddingTop: "var(--ds-space-025, 2px)",
302
+ marginBottom: "var(--ds-space-negative-025, -2px)"
303
+ });
304
+ const itemIconStyle = css({
305
+ img: {
306
+ height: '40px',
307
+ width: '40px',
308
+ objectFit: 'cover'
320
309
  }
321
- `;
310
+ });
322
311
  const MemoizedElementListWithAnalytics = /*#__PURE__*/memo(withAnalyticsContext({
323
312
  component: 'ElementList'
324
313
  })(ElementList));
@@ -2,6 +2,7 @@
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { FormattedMessage } from 'react-intl-next';
4
4
  import Button from '@atlaskit/button';
5
+ import { Box, xcss } from '@atlaskit/primitives';
5
6
  import NotFoundIllustration from './NotFoundIllustration';
6
7
  export default function EmptyState({
7
8
  onExternalLinkClick
@@ -21,8 +22,8 @@ export default function EmptyState({
21
22
  id: "fabric.editor.elementbrowser.search.empty-state.sub-heading",
22
23
  defaultMessage: "Try searching with a different term or discover new apps for Atlassian products.",
23
24
  description: "Empty state sub-heading"
24
- })), jsx("div", {
25
- css: externalLinkWrapper
25
+ })), jsx(Box, {
26
+ xcss: externalLinkWrapper
26
27
  }, jsx(Button, {
27
28
  appearance: "primary",
28
29
  target: "_blank",
@@ -40,7 +41,7 @@ const emptyStateHeading = css({
40
41
  color: "var(--ds-text, rgb(23, 43, 77))",
41
42
  fontWeight: 500,
42
43
  letterSpacing: '-0.008em',
43
- marginTop: '28px'
44
+ marginTop: "var(--ds-space-300, 24px)"
44
45
  });
45
46
  const emptyStateSubHeading = css({
46
47
  marginTop: "var(--ds-space-200, 16px)",
@@ -54,6 +55,6 @@ const emptyStateWrapper = css({
54
55
  alignItems: 'center',
55
56
  width: '100%'
56
57
  });
57
- const externalLinkWrapper = css({
58
- marginTop: '14px'
58
+ const externalLinkWrapper = xcss({
59
+ marginTop: "var(--ds-space-150, 12px)"
59
60
  });
@@ -114,8 +114,8 @@ function ElementSearch({
114
114
  }, assistiveMessage));
115
115
  }
116
116
  const styledShortcut = css(shortcutStyle, {
117
- padding: `${GRID_SIZE / 2}px ${GRID_SIZE}px`,
118
- width: `${GRID_SIZE * 6}px`
117
+ padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"}`,
118
+ width: "var(--ds-space-600, 48px)"
119
119
  });
120
120
  const wrapper = css({
121
121
  '& > [data-ds--text-field--container]': {
@@ -124,9 +124,8 @@ const wrapper = css({
124
124
  flex: '1 1 100%',
125
125
  overflow: 'visible',
126
126
  '& > [data-ds--text-field--input]': {
127
- marginBottom: '3px',
128
127
  fontSize: relativeFontSizeToBase16(14),
129
- padding: `${GRID_SIZE}px ${"var(--ds-space-075, 6px)"} ${GRID_SIZE}px 0`
128
+ padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-075, 6px)"} ${"var(--ds-space-100, 8px)"} 0`
130
129
  }
131
130
  }
132
131
  });
@@ -1,6 +1,6 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { N30 } from '@atlaskit/theme/colors';
3
- import { padding, wrapperDefault } from '../styles';
3
+ import { wrapperDefault } from '../styles';
4
4
  export const widerLayoutClassName = 'wider-layout';
5
5
  export const wrapperStyle = css(wrapperDefault, {
6
6
  '&.without-frame': {
@@ -13,7 +13,7 @@ export const wrapperStyle = css(wrapperDefault, {
13
13
  }
14
14
  });
15
15
  export const header = css({
16
- padding: `${padding / 2}px ${padding / 2}px 0px`,
16
+ padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} 0px`,
17
17
  verticalAlign: 'middle',
18
18
  '&.with-children:not(.without-frame)': {
19
19
  padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"}`
@@ -23,7 +23,7 @@ export const header = css({
23
23
  }
24
24
  });
25
25
  export const content = css({
26
- padding: `${padding}px`,
26
+ padding: "var(--ds-space-100, 8px)",
27
27
  background: "var(--ds-surface, white)",
28
28
  border: `1px solid ${`var(--ds-border, ${N30})`}`,
29
29
  borderRadius: "var(--ds-border-radius, 3px)",
@@ -31,7 +31,7 @@ export const content = css({
31
31
  width: '100%'
32
32
  });
33
33
  export const contentWrapper = css({
34
- padding: `0 ${padding}px ${padding}px`,
34
+ padding: `0 ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"}`,
35
35
  display: 'flex',
36
36
  justifyContent: 'center',
37
37
  '&.remove-padding': {
@@ -43,7 +43,7 @@ export const placeholderFallback = css({
43
43
  export const placeholderFallbackParams = css({
44
44
  display: 'inline-block',
45
45
  maxWidth: '200px',
46
- marginLeft: '5px',
46
+ marginLeft: "var(--ds-space-050, 4px)",
47
47
  color: `var(--ds-text-subtlest, ${N70})`,
48
48
  textOverflow: 'ellipsis',
49
49
  whiteSpace: 'nowrap',
@@ -210,7 +210,6 @@ export class ExtensionComponent extends Component {
210
210
  /** We don't want this error to block renderer */
211
211
  /** We keep rendering the default content */
212
212
  }
213
-
214
213
  return null;
215
214
  }
216
215
  }
@@ -2,6 +2,7 @@
2
2
  // Thereby they _always_ need a value for submission
3
3
  //
4
4
  // You can do that through `defaultValue`, or `isRequired: true`
5
+
5
6
  export const isFieldset = field => {
6
7
  return field.type === 'fieldset';
7
8
  };
@@ -90,17 +90,13 @@ const arrowKeysMap = {
90
90
  ARROWUP: '\u2191',
91
91
  ARROWDOWN: '\u2193'
92
92
  };
93
- const tooltipShortcutStyle = css`
94
- border-radius: 2px;
95
- background-color: ${`var(--ds-background-inverse-subtle, ${N400})`};
96
- padding: 0 ${"var(--ds-space-025, 2px)"};
97
-
98
- /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */
99
- /* stylelint-disable-next-line */
100
- label: tooltip-shortcut;
101
- `;
102
- /* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
103
-
93
+ const tooltipShortcutStyle = css({
94
+ borderRadius: '2px',
95
+ backgroundColor: `var(--ds-background-inverse-subtle, ${N400})`,
96
+ padding: `0 ${"var(--ds-space-025, 2px)"}`,
97
+ // NOTE: This might not actually do anything: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E
98
+ label: 'tooltip-shortcut'
99
+ });
104
100
  function formatShortcut(keymap) {
105
101
  let shortcut;
106
102
  if (browser.mac) {
@@ -30,7 +30,7 @@ export const visuallyHiddenStyles = css`
30
30
  clip-path: inset(50%);
31
31
  height: 1px;
32
32
  width: 1px;
33
- margin: -1px;
33
+ margin: ${"var(--ds-space-negative-025, -2px)"};
34
34
  overflow: hidden;
35
35
  padding: 0;
36
36
  position: absolute;
@@ -4,20 +4,20 @@ import { css, jsx } from '@emotion/react';
4
4
  import Spinner from '@atlaskit/spinner';
5
5
  import { N30 } from '@atlaskit/theme/colors';
6
6
  import LinkSearchListItem from './LinkSearchListItem';
7
- const listContainer = css`
8
- padding-top: 0;
9
- margin-top: ${"var(--ds-space-150, 12px)"};
10
- border-top: 1px solid ${`var(--ds-border, ${N30})`};
11
- `;
12
- const spinnerContainer = css`
13
- text-align: center;
14
- min-height: 80px;
15
- margin-top: 30px;
16
- `;
17
- export const linkSearchList = css`
18
- padding: 0;
19
- list-style: none;
20
- `;
7
+ const listContainer = css({
8
+ paddingTop: 0,
9
+ marginTop: "var(--ds-space-150, 12px)",
10
+ borderTop: `1px solid ${`var(--ds-border, ${N30})`}`
11
+ });
12
+ const spinnerContainer = css({
13
+ textAlign: 'center',
14
+ minHeight: '80px',
15
+ marginTop: "var(--ds-space-400, 32px)"
16
+ });
17
+ export const linkSearchList = css({
18
+ padding: 0,
19
+ listStyle: 'none'
20
+ });
21
21
  export default class LinkSearchList extends PureComponent {
22
22
  render() {
23
23
  const {