@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.
- package/CHANGELOG.md +23 -0
- package/dist/cjs/presets/universal.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-compiled.js +3 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
- package/dist/cjs/ui/ContextPanel/index-compiled.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -4
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +1 -1
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/cjs/ui/quick-insert/ExtensionQuickInsertIcon.js +3 -3
- package/dist/cjs/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +115 -4
- package/dist/cjs/utils/extensions.js +30 -7
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/actions/index.js +2 -1
- package/dist/es2019/entry-points/CollapsedEditor.js +1 -0
- package/dist/es2019/entry-points/ContextPanel.js +1 -0
- package/dist/es2019/entry-points/EditorContentContainer.js +1 -0
- package/dist/es2019/entry-points/EditorContext.js +1 -0
- package/dist/es2019/entry-points/ReactEditorView.js +1 -0
- package/dist/es2019/entry-points/ToolbarHelp.js +1 -0
- package/dist/es2019/entry-points/ToolbarPortal.js +1 -0
- package/dist/es2019/entry-points/WithEditorActions.js +1 -0
- package/dist/es2019/entry-points/WithHelpTrigger.js +1 -0
- package/dist/es2019/entry-points/actions.js +1 -0
- package/dist/es2019/entry-points/appearance-editor-chromeless.js +1 -0
- package/dist/es2019/entry-points/appearance-editor-comment.js +1 -0
- package/dist/es2019/entry-points/appearance-editor-full-page.js +1 -0
- package/dist/es2019/entry-points/appearance-editor-full-width.js +1 -0
- package/dist/es2019/entry-points/create-plugins-list.js +1 -0
- package/dist/es2019/entry-points/exclude-from-hydration.js +1 -0
- package/dist/es2019/entry-points/feature-flags-from-props.js +1 -0
- package/dist/es2019/entry-points/getNodesCount.js +1 -0
- package/dist/es2019/entry-points/i18n-languages.js +1 -0
- package/dist/es2019/entry-points/measure-enum.js +1 -0
- package/dist/es2019/entry-points/preset-universal-universal.js +1 -0
- package/dist/es2019/entry-points/preset-universal-useUniversalPreset.js +1 -0
- package/dist/es2019/entry-points/test-utils.js +1 -0
- package/dist/es2019/entry-points/use-preset-context.js +1 -0
- package/dist/es2019/entry-points/version-wrapper.js +1 -0
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-compiled.js +4 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +1 -0
- package/dist/es2019/ui/ChromeCollapsed/styles.js +1 -0
- package/dist/es2019/ui/ContextPanel/index-compiled.js +1 -1
- package/dist/es2019/ui/ContextPanel/index.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -6
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +3 -2
- package/dist/es2019/ui/EditorContentContainer/styles/agentShimmerStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/aiPanel.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/annotationStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/backgroundColorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/blockMarksStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/blockSpacingStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/blockTypeStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/codeBlockStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/codeMarkStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/commentEditorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/containerTypeStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/contributorTagStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/dateStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/embedCardStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/emoji.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/floatingToolbarStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/fontSizeStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/fullPageEditorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/gapCursorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/gridStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/link.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/list.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +2 -1
- package/dist/es2019/ui/EditorContentContainer/styles/mentions.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/overflowShadowStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/panelStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/paragraphStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/placeholderStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/rule.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/ruleWithAttrs.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/scrollbarStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/selectionToolbarStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/statusStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/syncBlockStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/telepointerStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/textColorStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/textHighlightStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/unsupportedStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +1 -0
- package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +1 -0
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/es2019/ui/quick-insert/ExtensionQuickInsertIcon.js +3 -3
- package/dist/es2019/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +110 -2
- package/dist/es2019/utils/extensions.js +32 -7
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +2 -1
- package/dist/esm/entry-points/CollapsedEditor.js +1 -0
- package/dist/esm/entry-points/ContextPanel.js +1 -0
- package/dist/esm/entry-points/EditorContentContainer.js +1 -0
- package/dist/esm/entry-points/EditorContext.js +1 -0
- package/dist/esm/entry-points/ReactEditorView.js +1 -0
- package/dist/esm/entry-points/ToolbarHelp.js +1 -0
- package/dist/esm/entry-points/ToolbarPortal.js +1 -0
- package/dist/esm/entry-points/WithEditorActions.js +1 -0
- package/dist/esm/entry-points/WithHelpTrigger.js +1 -0
- package/dist/esm/entry-points/actions.js +1 -0
- package/dist/esm/entry-points/appearance-editor-chromeless.js +1 -0
- package/dist/esm/entry-points/appearance-editor-comment.js +1 -0
- package/dist/esm/entry-points/appearance-editor-full-page.js +1 -0
- package/dist/esm/entry-points/appearance-editor-full-width.js +1 -0
- package/dist/esm/entry-points/create-plugins-list.js +1 -0
- package/dist/esm/entry-points/exclude-from-hydration.js +1 -0
- package/dist/esm/entry-points/feature-flags-from-props.js +1 -0
- package/dist/esm/entry-points/getNodesCount.js +1 -0
- package/dist/esm/entry-points/i18n-languages.js +1 -0
- package/dist/esm/entry-points/measure-enum.js +1 -0
- package/dist/esm/entry-points/preset-universal-universal.js +1 -0
- package/dist/esm/entry-points/preset-universal-useUniversalPreset.js +1 -0
- package/dist/esm/entry-points/test-utils.js +1 -0
- package/dist/esm/entry-points/use-preset-context.js +1 -0
- package/dist/esm/entry-points/version-wrapper.js +1 -0
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-compiled.js +4 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea-emotion.js +1 -1
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +1 -0
- package/dist/esm/ui/ChromeCollapsed/styles.js +1 -0
- package/dist/esm/ui/ContextPanel/index-compiled.js +1 -1
- package/dist/esm/ui/ContextPanel/index.js +1 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +3 -6
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +3 -2
- package/dist/esm/ui/EditorContentContainer/styles/agentShimmerStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/aiPanel.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/annotationStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/backgroundColorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/blockMarksStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/blockSpacingStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/blockTypeStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/codeBlockStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/codeMarkStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/commentEditorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/containerTypeStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/contributorTagStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/dateStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/editorUGCTokenStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/embedCardStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/emoji.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/extensionBreakoutStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/firstBlockNodeStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/floatingToolbarStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/fontSizeStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/fullPageEditorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/gapCursorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/gridStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/link.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/list.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +2 -1
- package/dist/esm/ui/EditorContentContainer/styles/mentions.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/overflowShadowStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/panelStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/paragraphStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/placeholderStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/rule.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/ruleWithAttrs.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/scrollbarStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/selectionToolbarStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/statusStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockInteractiveCursorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/syncBlockStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/telepointerStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/textColorStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/textHighlightStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/unsupportedStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/vanillaTooltipStyles.js +1 -0
- package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +1 -0
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +1 -1
- package/dist/esm/ui/quick-insert/ExtensionQuickInsertIcon.js +3 -3
- package/dist/esm/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +114 -4
- package/dist/esm/utils/extensions.js +30 -6
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.d.ts +1 -1
- package/docs/4-annotations.tsx +1 -0
- 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
|
|
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
|
-
|
|
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
|
});
|
|
@@ -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 {};
|
package/docs/4-annotations.tsx
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "229.
|
|
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.
|
|
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": "^
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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",
|