@atlaskit/editor-core 229.0.1 → 229.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/presets/universal.js +1 -1
  3. package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -1
  4. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +3 -1
  5. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
  6. package/dist/cjs/ui/ContextPanel/index-compiled.js +1 -1
  7. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -4
  8. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +2 -2
  9. package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +1 -1
  10. package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
  11. package/dist/cjs/ui/quick-insert/ExtensionQuickInsertIcon.js +3 -3
  12. package/dist/cjs/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +115 -4
  13. package/dist/cjs/utils/extensions.js +30 -7
  14. package/dist/cjs/version-wrapper.js +1 -1
  15. package/dist/es2019/actions/index.js +2 -1
  16. package/dist/es2019/entry-points/CollapsedEditor.js +1 -0
  17. package/dist/es2019/entry-points/ContextPanel.js +1 -0
  18. package/dist/es2019/entry-points/EditorContentContainer.js +1 -0
  19. package/dist/es2019/entry-points/EditorContext.js +1 -0
  20. package/dist/es2019/entry-points/ReactEditorView.js +1 -0
  21. package/dist/es2019/entry-points/ToolbarHelp.js +1 -0
  22. package/dist/es2019/entry-points/ToolbarPortal.js +1 -0
  23. package/dist/es2019/entry-points/WithEditorActions.js +1 -0
  24. package/dist/es2019/entry-points/WithHelpTrigger.js +1 -0
  25. package/dist/es2019/entry-points/actions.js +1 -0
  26. package/dist/es2019/entry-points/appearance-editor-chromeless.js +1 -0
  27. package/dist/es2019/entry-points/appearance-editor-comment.js +1 -0
  28. package/dist/es2019/entry-points/appearance-editor-full-page.js +1 -0
  29. package/dist/es2019/entry-points/appearance-editor-full-width.js +1 -0
  30. package/dist/es2019/entry-points/create-plugins-list.js +1 -0
  31. package/dist/es2019/entry-points/exclude-from-hydration.js +1 -0
  32. package/dist/es2019/entry-points/feature-flags-from-props.js +1 -0
  33. package/dist/es2019/entry-points/getNodesCount.js +1 -0
  34. package/dist/es2019/entry-points/i18n-languages.js +1 -0
  35. package/dist/es2019/entry-points/measure-enum.js +1 -0
  36. package/dist/es2019/entry-points/preset-universal-universal.js +1 -0
  37. package/dist/es2019/entry-points/preset-universal-useUniversalPreset.js +1 -0
  38. package/dist/es2019/entry-points/test-utils.js +1 -0
  39. package/dist/es2019/entry-points/use-preset-context.js +1 -0
  40. package/dist/es2019/entry-points/version-wrapper.js +1 -0
  41. package/dist/es2019/presets/universal.js +1 -1
  42. package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
  43. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +4 -2
  44. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
  45. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +1 -0
  46. package/dist/es2019/ui/ChromeCollapsed/styles.js +1 -0
  47. package/dist/es2019/ui/ContextPanel/index-compiled.js +1 -1
  48. package/dist/es2019/ui/ContextPanel/index.js +1 -0
  49. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -6
  50. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +3 -2
  51. package/dist/es2019/ui/EditorContentContainer/styles/agentShimmerStyles.js +1 -0
  52. package/dist/es2019/ui/EditorContentContainer/styles/aiPanel.js +1 -0
  53. package/dist/es2019/ui/EditorContentContainer/styles/annotationStyles.js +1 -0
  54. package/dist/es2019/ui/EditorContentContainer/styles/backgroundColorStyles.js +1 -0
  55. package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +1 -0
  56. package/dist/es2019/ui/EditorContentContainer/styles/blockMarksStyles.js +1 -0
  57. package/dist/es2019/ui/EditorContentContainer/styles/blockSpacingStyles.js +1 -0
  58. package/dist/es2019/ui/EditorContentContainer/styles/blockTypeStyles.js +1 -0
  59. package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +1 -0
  60. package/dist/es2019/ui/EditorContentContainer/styles/codeMarkStyles.js +1 -0
  61. package/dist/es2019/ui/EditorContentContainer/styles/commentEditorStyles.js +1 -0
  62. package/dist/es2019/ui/EditorContentContainer/styles/containerTypeStyles.js +1 -0
  63. package/dist/es2019/ui/EditorContentContainer/styles/contributorTagStyles.js +1 -0
  64. package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +1 -0
  65. package/dist/es2019/ui/EditorContentContainer/styles/dateStyles.js +1 -0
  66. package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +1 -0
  67. package/dist/es2019/ui/EditorContentContainer/styles/embedCardStyles.js +1 -0
  68. package/dist/es2019/ui/EditorContentContainer/styles/emoji.js +1 -0
  69. package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +1 -0
  70. package/dist/es2019/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +1 -0
  71. package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +1 -0
  72. package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +1 -0
  73. package/dist/es2019/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +1 -0
  74. package/dist/es2019/ui/EditorContentContainer/styles/floatingToolbarStyles.js +1 -0
  75. package/dist/es2019/ui/EditorContentContainer/styles/fontSizeStyles.js +1 -0
  76. package/dist/es2019/ui/EditorContentContainer/styles/fullPageEditorStyles.js +1 -0
  77. package/dist/es2019/ui/EditorContentContainer/styles/gapCursorStyles.js +1 -0
  78. package/dist/es2019/ui/EditorContentContainer/styles/gridStyles.js +1 -0
  79. package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +1 -0
  80. package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +1 -0
  81. package/dist/es2019/ui/EditorContentContainer/styles/link.js +1 -0
  82. package/dist/es2019/ui/EditorContentContainer/styles/list.js +1 -0
  83. package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +2 -1
  84. package/dist/es2019/ui/EditorContentContainer/styles/mentions.js +1 -0
  85. package/dist/es2019/ui/EditorContentContainer/styles/overflowShadowStyles.js +1 -0
  86. package/dist/es2019/ui/EditorContentContainer/styles/panelStyles.js +1 -0
  87. package/dist/es2019/ui/EditorContentContainer/styles/paragraphStyles.js +1 -0
  88. package/dist/es2019/ui/EditorContentContainer/styles/placeholderStyles.js +1 -0
  89. package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +1 -0
  90. package/dist/es2019/ui/EditorContentContainer/styles/rule.js +1 -0
  91. package/dist/es2019/ui/EditorContentContainer/styles/ruleWithAttrs.js +1 -0
  92. package/dist/es2019/ui/EditorContentContainer/styles/scrollbarStyles.js +1 -0
  93. package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +1 -0
  94. package/dist/es2019/ui/EditorContentContainer/styles/selectionToolbarStyles.js +1 -0
  95. package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +1 -0
  96. package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +1 -0
  97. package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +1 -0
  98. package/dist/es2019/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +1 -0
  99. package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +1 -0
  100. package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +1 -0
  101. package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -0
  102. package/dist/es2019/ui/EditorContentContainer/styles/telepointerStyles.js +1 -0
  103. package/dist/es2019/ui/EditorContentContainer/styles/textColorStyles.js +1 -0
  104. package/dist/es2019/ui/EditorContentContainer/styles/textHighlightStyles.js +1 -0
  105. package/dist/es2019/ui/EditorContentContainer/styles/unsupportedStyles.js +1 -0
  106. package/dist/es2019/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +1 -0
  107. package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +1 -0
  108. package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
  109. package/dist/es2019/ui/quick-insert/ExtensionQuickInsertIcon.js +3 -3
  110. package/dist/es2019/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +110 -2
  111. package/dist/es2019/utils/extensions.js +32 -7
  112. package/dist/es2019/version-wrapper.js +1 -1
  113. package/dist/esm/actions/index.js +2 -1
  114. package/dist/esm/entry-points/CollapsedEditor.js +1 -0
  115. package/dist/esm/entry-points/ContextPanel.js +1 -0
  116. package/dist/esm/entry-points/EditorContentContainer.js +1 -0
  117. package/dist/esm/entry-points/EditorContext.js +1 -0
  118. package/dist/esm/entry-points/ReactEditorView.js +1 -0
  119. package/dist/esm/entry-points/ToolbarHelp.js +1 -0
  120. package/dist/esm/entry-points/ToolbarPortal.js +1 -0
  121. package/dist/esm/entry-points/WithEditorActions.js +1 -0
  122. package/dist/esm/entry-points/WithHelpTrigger.js +1 -0
  123. package/dist/esm/entry-points/actions.js +1 -0
  124. package/dist/esm/entry-points/appearance-editor-chromeless.js +1 -0
  125. package/dist/esm/entry-points/appearance-editor-comment.js +1 -0
  126. package/dist/esm/entry-points/appearance-editor-full-page.js +1 -0
  127. package/dist/esm/entry-points/appearance-editor-full-width.js +1 -0
  128. package/dist/esm/entry-points/create-plugins-list.js +1 -0
  129. package/dist/esm/entry-points/exclude-from-hydration.js +1 -0
  130. package/dist/esm/entry-points/feature-flags-from-props.js +1 -0
  131. package/dist/esm/entry-points/getNodesCount.js +1 -0
  132. package/dist/esm/entry-points/i18n-languages.js +1 -0
  133. package/dist/esm/entry-points/measure-enum.js +1 -0
  134. package/dist/esm/entry-points/preset-universal-universal.js +1 -0
  135. package/dist/esm/entry-points/preset-universal-useUniversalPreset.js +1 -0
  136. package/dist/esm/entry-points/test-utils.js +1 -0
  137. package/dist/esm/entry-points/use-preset-context.js +1 -0
  138. package/dist/esm/entry-points/version-wrapper.js +1 -0
  139. package/dist/esm/presets/universal.js +1 -1
  140. package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
  141. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +4 -2
  142. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
  143. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +1 -0
  144. package/dist/esm/ui/ChromeCollapsed/styles.js +1 -0
  145. package/dist/esm/ui/ContextPanel/index-compiled.js +1 -1
  146. package/dist/esm/ui/ContextPanel/index.js +1 -0
  147. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -6
  148. package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +3 -2
  149. package/dist/esm/ui/EditorContentContainer/styles/agentShimmerStyles.js +1 -0
  150. package/dist/esm/ui/EditorContentContainer/styles/aiPanel.js +1 -0
  151. package/dist/esm/ui/EditorContentContainer/styles/annotationStyles.js +1 -0
  152. package/dist/esm/ui/EditorContentContainer/styles/backgroundColorStyles.js +1 -0
  153. package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +1 -0
  154. package/dist/esm/ui/EditorContentContainer/styles/blockMarksStyles.js +1 -0
  155. package/dist/esm/ui/EditorContentContainer/styles/blockSpacingStyles.js +1 -0
  156. package/dist/esm/ui/EditorContentContainer/styles/blockTypeStyles.js +1 -0
  157. package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +1 -0
  158. package/dist/esm/ui/EditorContentContainer/styles/codeMarkStyles.js +1 -0
  159. package/dist/esm/ui/EditorContentContainer/styles/commentEditorStyles.js +1 -0
  160. package/dist/esm/ui/EditorContentContainer/styles/containerTypeStyles.js +1 -0
  161. package/dist/esm/ui/EditorContentContainer/styles/contributorTagStyles.js +1 -0
  162. package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +1 -0
  163. package/dist/esm/ui/EditorContentContainer/styles/dateStyles.js +1 -0
  164. package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +1 -0
  165. package/dist/esm/ui/EditorContentContainer/styles/embedCardStyles.js +1 -0
  166. package/dist/esm/ui/EditorContentContainer/styles/emoji.js +1 -0
  167. package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +1 -0
  168. package/dist/esm/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +1 -0
  169. package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +1 -0
  170. package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +1 -0
  171. package/dist/esm/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +1 -0
  172. package/dist/esm/ui/EditorContentContainer/styles/floatingToolbarStyles.js +1 -0
  173. package/dist/esm/ui/EditorContentContainer/styles/fontSizeStyles.js +1 -0
  174. package/dist/esm/ui/EditorContentContainer/styles/fullPageEditorStyles.js +1 -0
  175. package/dist/esm/ui/EditorContentContainer/styles/gapCursorStyles.js +1 -0
  176. package/dist/esm/ui/EditorContentContainer/styles/gridStyles.js +1 -0
  177. package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +1 -0
  178. package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +1 -0
  179. package/dist/esm/ui/EditorContentContainer/styles/link.js +1 -0
  180. package/dist/esm/ui/EditorContentContainer/styles/list.js +1 -0
  181. package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +2 -1
  182. package/dist/esm/ui/EditorContentContainer/styles/mentions.js +1 -0
  183. package/dist/esm/ui/EditorContentContainer/styles/overflowShadowStyles.js +1 -0
  184. package/dist/esm/ui/EditorContentContainer/styles/panelStyles.js +1 -0
  185. package/dist/esm/ui/EditorContentContainer/styles/paragraphStyles.js +1 -0
  186. package/dist/esm/ui/EditorContentContainer/styles/placeholderStyles.js +1 -0
  187. package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +1 -0
  188. package/dist/esm/ui/EditorContentContainer/styles/rule.js +1 -0
  189. package/dist/esm/ui/EditorContentContainer/styles/ruleWithAttrs.js +1 -0
  190. package/dist/esm/ui/EditorContentContainer/styles/scrollbarStyles.js +1 -0
  191. package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +1 -0
  192. package/dist/esm/ui/EditorContentContainer/styles/selectionToolbarStyles.js +1 -0
  193. package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +1 -0
  194. package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +1 -0
  195. package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +1 -0
  196. package/dist/esm/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +1 -0
  197. package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +1 -0
  198. package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +1 -0
  199. package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -0
  200. package/dist/esm/ui/EditorContentContainer/styles/telepointerStyles.js +1 -0
  201. package/dist/esm/ui/EditorContentContainer/styles/textColorStyles.js +1 -0
  202. package/dist/esm/ui/EditorContentContainer/styles/textHighlightStyles.js +1 -0
  203. package/dist/esm/ui/EditorContentContainer/styles/unsupportedStyles.js +1 -0
  204. package/dist/esm/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +1 -0
  205. package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +1 -0
  206. package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
  207. package/dist/esm/ui/quick-insert/ExtensionQuickInsertIcon.js +3 -3
  208. package/dist/esm/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +114 -4
  209. package/dist/esm/utils/extensions.js +30 -6
  210. package/dist/esm/version-wrapper.js +1 -1
  211. package/dist/types/actions/index.d.ts +1 -1
  212. package/dist/types/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.d.ts +1 -1
  213. package/docs/4-annotations.tsx +1 -0
  214. package/package.json +11 -10
@@ -1,8 +1,117 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ 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; }
3
+ 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; }
1
4
  var googleDrivePreviewImageUrls = {
2
5
  dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/y01wj4t58w86byx86l6k81a22axud131.png',
3
6
  light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/wi413m0837rjykg23r6y0256b7377185.png'
4
7
  };
5
- var previewImageUrlsByKey = {
8
+ var dataAndChartsPreviewImageUrlsByKey = {
9
+ 'quick-insert-assets-menu-item': {
10
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/64d41r462m2343iomn821ver0g4ohh37.png',
11
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0w58rc60jh54m68224qqinuk52d6lldt.png'
12
+ },
13
+ 'blog-posts': {
14
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/syvwj7cg10q6n1586u2l64q78o2dc54d.png',
15
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5n54qb4j1pn588ud6604eh4c8hj5422v.png'
16
+ },
17
+ 'change-history': {
18
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/623tjta5b2flb1b7lf3t0dp6r4c858v5.png',
19
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/u83vu4k3if5kh4a12e34pr5jf833e71l.png'
20
+ },
21
+ children: {
22
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/a0qd7lp8011o238rmf3m872hb765y2g1.png',
23
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/ttbt2qi6tkl6cgdyig1th4x837g3c018.png'
24
+ },
25
+ details: {
26
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/11j376ovg761h7o2vfr0l6n8okxf22m4.png',
27
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/857b0i4hxk3pxeq3h5v2ykfav4niv5hx.png'
28
+ },
29
+ detailssummary: {
30
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/566j328lm7022fx64cv77w8xtyodre44.png',
31
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/07k170i7odd417hvcpkp800353211gwi.png'
32
+ },
33
+ 'content-report-table': {
34
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/ewhj8d8216yc6lyny58l2w4h3nikbs06.png',
35
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/060xk53i83jkbc5m5op8v44887tv3038.png'
36
+ },
37
+ pagetree: {
38
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8g3qkn50t2m3n05465s783f54517su0j.png',
39
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/kji77816l70343e211ll54222q3i0m57.png'
40
+ },
41
+ contributors: {
42
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/f115sn7v8x2oo65outd1g7124u03dfj1.png',
43
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/22801wwe6yf82mcfcrd7vg54620p5e0g.png'
44
+ },
45
+ 'database-extension:create-database': {
46
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/65m57812l47f0a55qpm51t8glk24vsne.png',
47
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/lqqxkx57ue3ws60m642br54ss6m3neow.png'
48
+ },
49
+ 'decisionreport:decisionreport': {
50
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1w6a5k5f1yndoy2g3j158n151020v71y.png',
51
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3347ejx66xy7y375s232mbeg0ia1rdm8.png'
52
+ },
53
+ 'database-extension:reference-database': {
54
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5b815435xso5xv248niy0dg3m3yr2w6c.png',
55
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/he1vu1p7ngbjcy6lw8i8vh601aw14ct1.png'
56
+ },
57
+ contentbylabel: {
58
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3i6n45of3ks7lm5v65k74r0580mqya62.png',
59
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8hy8d25516esmq4q267bf15483851454.png'
60
+ },
61
+ 'quick-insert-confluence-list-menu-item': {
62
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/8jh31f0k143b475y5tun230v166c7087.png',
63
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/6co68akkw56t83fql3m823qi21k8776u.png'
64
+ },
65
+ 'quick-insert-jira-work-items-menu-item': {
66
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/m284qw5066530tr5yd11473uq1l8t86t.png',
67
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4b1455q46emetd0jxv70xuo7i7lwo574.png'
68
+ },
69
+ listlabels: {
70
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/3k50k14u80g034t323q3m13m6820ag70.png',
71
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/1a51b87u6bvsq84pup1wy1n32pg2s6c7.png'
72
+ },
73
+ livesearch: {
74
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/80v4vx47y130st85qx46432fo18g0sbx.png',
75
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/0n8ie724cnnvl62w1m521k8eq5v73u76.png'
76
+ },
77
+ pagetreesearch: {
78
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/g32sx54apgb3yt844qi4y28gu835q682.png',
79
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/w7o6smtuy41bg08327dy2ai0fht2lc6m.png'
80
+ },
81
+ 'popular-labels': {
82
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/oqgl5347hqmx6u3v837q1bh2q70ls7bd.png',
83
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/a2x44n7aasba646mlmqht7cqfq6k8783.png'
84
+ },
85
+ 'questionslist-macro-native:questionslist-macro-native': {
86
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/37x027653yfd01ik041qnf005f1j5867.png',
87
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4f6f51758m5m6nu06x557nm115613233.png'
88
+ },
89
+ 'recently-updated': {
90
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/g4y1gsehg600ge0nem6r2xv4b0ga7106.png',
91
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/g2vqf86yj16fi74mny6b265mw5l181fx.png'
92
+ },
93
+ 'gadget:spaces': {
94
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/jw8r2233444raq4p3v56obq230hh5a8n.png',
95
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/b3py8prmf21tl73nb42gc67a0i437o1q.png'
96
+ },
97
+ 'tasks-report-macro': {
98
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/n2lm728m8n7au2q455wy57m407a8i74b.png',
99
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/e7qda5xter48ao38ieq82jgv3m7j3g8c.png'
100
+ },
101
+ calendar: {
102
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/01d5gi6lifcsu5el861v8p7kw84ja8it.png',
103
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/g7v75uv8mw0i7hw36181xx2nly2674pi.png'
104
+ },
105
+ userlister: {
106
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/5cy6l23fwmo2820uce5m50g1222l0hpb.png',
107
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4883g3sm4pdy8w3mmphdqj81588c37gf.png'
108
+ },
109
+ profile: {
110
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/evx8rg04mer8binf15e8ao0imm5kv7ek.png',
111
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/o2kexap23ijq8jeqhpvi8lgc51dex3wj.png'
112
+ }
113
+ };
114
+ var previewImageUrlsByKey = _objectSpread(_objectSpread({}, dataAndChartsPreviewImageUrlsByKey), {}, {
6
115
  'profile-picture:profile-picture': {
7
116
  dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/35rb2mbxc2dt8p7op8u8lyss5h220428.png',
8
117
  light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/4o3lpe2eh4nlakav375621i73do50kyx.png'
@@ -85,7 +194,7 @@ var previewImageUrlsByKey = {
85
194
  dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7jj541q4pq1joqf0ar53j42kr6371t1t.png',
86
195
  light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/v8eyy0fvu61fb8a4b4teea4pjs7g2842.png'
87
196
  }
88
- };
197
+ });
89
198
  var previewImageUrlsByTitle = {
90
199
  amplitude: {
91
200
  dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/7v8shu6n3wd15644f3ys785628dkt632.png',
@@ -106,6 +215,7 @@ var previewImageUrlsByTitle = {
106
215
  }
107
216
  };
108
217
  export var getExtensionQuickInsertPreviewImageUrls = function getExtensionQuickInsertPreviewImageUrls(item) {
109
- var _ref;
110
- return (_ref = item.key ? previewImageUrlsByKey[item.key] : undefined) !== null && _ref !== void 0 ? _ref : previewImageUrlsByTitle[item.title.toLowerCase()];
218
+ var _ref, _ref2, _ref3;
219
+ var normalizedTitle = item.title.toLowerCase();
220
+ return (_ref = (_ref2 = (_ref3 = item.key ? previewImageUrlsByKey[item.key] : undefined) !== null && _ref3 !== void 0 ? _ref3 : item.extensionKey === 'gadget' ? dataAndChartsPreviewImageUrlsByKey["".concat(item.extensionKey, ":").concat(normalizedTitle)] : undefined) !== null && _ref2 !== void 0 ? _ref2 : item.extensionKey ? dataAndChartsPreviewImageUrlsByKey[item.extensionKey] : undefined) !== null && _ref !== void 0 ? _ref : previewImageUrlsByTitle[normalizedTitle];
111
221
  };
@@ -5,6 +5,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  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; }
6
6
  import React from 'react';
7
7
  import Loadable from 'react-loadable';
8
+ // oxlint-disable-next-line @atlassian/no-restricted-imports
9
+ import { lazyForPaint, LazySuspense } from 'react-loosely-lazy';
8
10
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
9
11
  import { getQuickInsertItemsFromModule, resolveImport } from '@atlaskit/editor-common/extensions';
10
12
  import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
@@ -71,6 +73,23 @@ var dummyExtensionAPI = {
71
73
  }
72
74
  }
73
75
  };
76
+ // Keep lazy icon component identities stable across menu unmounts and remounts.
77
+ var lazyExtensionIconCache = new WeakMap();
78
+ var LazyExtensionIcon = function LazyExtensionIcon(_ref) {
79
+ var iconLoader = _ref.iconLoader;
80
+ var Icon = lazyExtensionIconCache.get(iconLoader);
81
+ if (!Icon) {
82
+ Icon = lazyForPaint(function () {
83
+ return iconLoader();
84
+ });
85
+ lazyExtensionIconCache.set(iconLoader, Icon);
86
+ }
87
+ return /*#__PURE__*/React.createElement(LazySuspense, {
88
+ fallback: null
89
+ }, /*#__PURE__*/React.createElement(Icon, {
90
+ label: ""
91
+ }));
92
+ };
74
93
 
75
94
  /** Creates legacy and registered Quick Insert representations for extensions. */
76
95
  export function extensionProviderToQuickInsertProvider(_x, _x2, _x3, _x4) {
@@ -116,12 +135,6 @@ function _extensionProviderToQuickInsertProvider() {
116
135
  return Promise.resolve([]);
117
136
  }
118
137
  var quickInsertItems = getQuickInsertItemsFromModule(extensions, function (item) {
119
- var Icon = Loadable({
120
- loader: item.icon,
121
- loading: function loading() {
122
- return null;
123
- }
124
- });
125
138
  return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, (isExperimentEnabled('platform_editor_slash_app_category_analytics') || isExperimentEnabled('platform_editor_slash_command')) && item.app ? {
126
139
  app: item.app
127
140
  } : {}), {}, {
@@ -132,6 +145,17 @@ function _extensionProviderToQuickInsertProvider() {
132
145
  title: item.title,
133
146
  description: item.description,
134
147
  icon: function icon() {
148
+ if (isExperimentEnabled('platform_editor_loosely_lazy_migration')) {
149
+ return /*#__PURE__*/React.createElement(LazyExtensionIcon, {
150
+ iconLoader: item.icon
151
+ });
152
+ }
153
+ var Icon = Loadable({
154
+ loader: item.icon,
155
+ loading: function loading() {
156
+ return null;
157
+ }
158
+ });
135
159
  return /*#__PURE__*/React.createElement(Icon, {
136
160
  label: ""
137
161
  });
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "229.0.0";
3
+ export var version = "229.1.0";
@@ -2,9 +2,9 @@ import type { AnalyticsEventPayload } from '@atlaskit/analytics-next/AnalyticsEv
2
2
  import type { ResolvedEditorState } from '@atlaskit/editor-common/collab';
3
3
  import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
4
4
  import type { ContextUpdateHandler, EditorActionsOptions, FeatureFlags, ReplaceRawValue, GetResolvedEditorStateReason, Transformer } from '@atlaskit/editor-common/types';
5
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
5
6
  import { Node } from '@atlaskit/editor-prosemirror/model';
6
7
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
7
- import type { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
8
8
  /**
9
9
  * @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-26729 Internal documentation for deprecation (no external access)} Editor actions is no longer supported and will be removed in a future version. Please use the core actions, or Plugin APIs directly instead
10
10
  * @example If you were using editorActions.getValue() replace with:
@@ -3,5 +3,5 @@ type PreviewImageUrls = {
3
3
  dark: string;
4
4
  light: string;
5
5
  };
6
- export declare const getExtensionQuickInsertPreviewImageUrls: (item: Pick<MenuItem, 'title'> & Partial<Pick<MenuItem, 'key'>>) => PreviewImageUrls | undefined;
6
+ export declare const getExtensionQuickInsertPreviewImageUrls: (item: Pick<MenuItem, 'title'> & Partial<Pick<MenuItem, 'extensionKey' | 'key'>>) => PreviewImageUrls | undefined;
7
7
  export {};
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
+
2
3
  import React from 'react';
3
4
 
4
5
  import { code, md } from '@atlaskit/docs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "229.0.1",
3
+ "version": "229.1.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -59,7 +59,7 @@
59
59
  "@atlaskit/editor-prosemirror": "^9.0.0",
60
60
  "@atlaskit/editor-shared-styles": "^4.3.0",
61
61
  "@atlaskit/editor-ssr-renderer": "^14.0.0",
62
- "@atlaskit/editor-toolbar": "^2.6.0",
62
+ "@atlaskit/editor-toolbar": "^2.7.0",
63
63
  "@atlaskit/editor-toolbar-model": "^1.2.0",
64
64
  "@atlaskit/emoji": "^72.4.0",
65
65
  "@atlaskit/feature-gate-js-client": "^6.0.0",
@@ -77,7 +77,7 @@
77
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
78
78
  "@atlaskit/react-ufo": "^7.13.0",
79
79
  "@atlaskit/task-decision": "^21.10.0",
80
- "@atlaskit/tmp-editor-statsig": "^200.0.0",
80
+ "@atlaskit/tmp-editor-statsig": "^201.0.0",
81
81
  "@atlaskit/tokens": "^18.2.0",
82
82
  "@atlaskit/tooltip": "^24.3.0",
83
83
  "@atlaskit/width-detector": "^7.2.0",
@@ -91,11 +91,12 @@
91
91
  "memoize-one": "^6.0.0",
92
92
  "prop-types": "^15.5.10",
93
93
  "react-loadable": "^5.1.0",
94
+ "react-loosely-lazy": "^1.0.0",
94
95
  "react-transition-group": "^4.4.1",
95
96
  "uuid": "^11.1.1"
96
97
  },
97
98
  "peerDependencies": {
98
- "@atlaskit/editor-common": "^123.0.0",
99
+ "@atlaskit/editor-common": "^123.2.0",
99
100
  "@atlaskit/link-provider": "^5.7.0",
100
101
  "@atlaskit/media-core": "^38.2.0",
101
102
  "react": "^18.2.0 || ^19.2.0",
@@ -111,7 +112,7 @@
111
112
  "@atlaskit/analytics-gas-types": "^6.2.0",
112
113
  "@atlaskit/analytics-listeners": "^11.4.0",
113
114
  "@atlaskit/code": "^19.2.0",
114
- "@atlaskit/collab-provider": "^28.1.0",
115
+ "@atlaskit/collab-provider": "^28.3.0",
115
116
  "@atlaskit/docs": "^12.2.0",
116
117
  "@atlaskit/drawer": "^14.3.0",
117
118
  "@atlaskit/editor-plugin-alignment": "^20.0.0",
@@ -119,7 +120,7 @@
119
120
  "@atlaskit/editor-plugin-base": "^20.0.0",
120
121
  "@atlaskit/editor-plugin-card": "^25.0.0",
121
122
  "@atlaskit/editor-plugin-code-block-advanced": "^19.0.0",
122
- "@atlaskit/editor-plugin-collab-edit": "^20.0.0",
123
+ "@atlaskit/editor-plugin-collab-edit": "^20.1.0",
123
124
  "@atlaskit/editor-plugin-content-insertion": "^19.0.0",
124
125
  "@atlaskit/editor-plugin-editor-viewmode": "^21.0.0",
125
126
  "@atlaskit/editor-plugin-extension": "^22.0.0",
@@ -133,7 +134,7 @@
133
134
  "@atlaskit/editor-plugin-media": "^21.0.0",
134
135
  "@atlaskit/editor-plugin-paste": "^20.0.0",
135
136
  "@atlaskit/editor-plugin-selection-marker": "^19.0.0",
136
- "@atlaskit/editor-plugin-show-diff": "^17.0.0",
137
+ "@atlaskit/editor-plugin-show-diff": "^17.1.0",
137
138
  "@atlaskit/editor-plugin-synced-block": "^17.0.0",
138
139
  "@atlaskit/editor-plugin-table": "^31.0.0",
139
140
  "@atlaskit/editor-plugin-tasks-and-decisions": "^22.0.0",
@@ -146,7 +147,7 @@
146
147
  "@atlaskit/form": "^17.2.0",
147
148
  "@atlaskit/link-provider": "^5.7.0",
148
149
  "@atlaskit/linking-common": "^12.3.0",
149
- "@atlaskit/logo": "^23.0.0",
150
+ "@atlaskit/logo": "^23.1.0",
150
151
  "@atlaskit/media-core": "^38.2.0",
151
152
  "@atlaskit/media-integration-test-helpers": "workspace:^",
152
153
  "@atlaskit/media-picker": "^72.4.0",
@@ -169,10 +170,10 @@
169
170
  "@atlassian/a11y-jest-testing": "^0.17.0",
170
171
  "@atlassian/a11y-playwright-testing": "^0.12.0",
171
172
  "@atlassian/adf-schema-json": "^1.35.0",
172
- "@atlassian/editor-rovo-bridge": "^18.1.0",
173
+ "@atlassian/editor-rovo-bridge": "^18.2.0",
173
174
  "@atlassian/experiment-test-utils": "^0.2.0",
174
175
  "@atlassian/feature-flags-test-utils": "^1.3.0",
175
- "@atlassian/search-client": "^3.2.0",
176
+ "@atlassian/search-client": "^3.4.0",
176
177
  "@atlassian/search-provider": "^20.0.0",
177
178
  "@atlassian/structured-docs-types": "workspace:^",
178
179
  "@atlassian/testing-library": "^0.11.0",