@atlaskit/editor-common 125.0.0 → 125.2.0
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 +39 -0
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +31 -8
- package/dist/cjs/extensibility/Extension.js +4 -2
- package/dist/cjs/extensibility/ExtensionComponent.js +3 -1
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +3 -0
- package/dist/cjs/extensibility/GeneratedContentReveal.js +18 -20
- package/dist/cjs/extensibility/extensionNodeView.js +61 -24
- package/dist/cjs/extensions/extension-handlers.js +96 -17
- package/dist/cjs/floating-toolbar/DropdownMenuExtensionItems.js +25 -4
- package/dist/cjs/icons/index.js +33 -10
- package/dist/cjs/messages/find-replace.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/assets/index.js +888 -257
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +30 -11
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +16 -2
- package/dist/es2019/extensibility/Extension.js +4 -2
- package/dist/es2019/extensibility/ExtensionComponent.js +3 -1
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/es2019/extensibility/GeneratedContentReveal.js +11 -16
- package/dist/es2019/extensibility/extensionNodeView.js +51 -23
- package/dist/es2019/extensions/extension-handlers.js +70 -15
- package/dist/es2019/floating-toolbar/DropdownMenuExtensionItems.js +16 -2
- package/dist/es2019/icons/index.js +17 -3
- package/dist/es2019/messages/find-replace.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/assets/index.js +386 -66
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Mention/mention-with-profilecard.js +15 -4
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +28 -6
- package/dist/esm/extensibility/Extension.js +4 -2
- package/dist/esm/extensibility/ExtensionComponent.js +3 -1
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +3 -0
- package/dist/esm/extensibility/GeneratedContentReveal.js +18 -20
- package/dist/esm/extensibility/extensionNodeView.js +56 -23
- package/dist/esm/extensions/extension-handlers.js +97 -17
- package/dist/esm/floating-toolbar/DropdownMenuExtensionItems.js +24 -4
- package/dist/esm/icons/index.js +29 -7
- package/dist/esm/messages/find-replace.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/assets/index.js +764 -194
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Mention/mention-with-profilecard.js +25 -8
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +4 -6
- package/dist/types/analytics/types/find-replace-events.d.ts +2 -0
- package/dist/types/extensibility/Extension.d.ts +2 -0
- package/dist/types/extensibility/ExtensionComponent.d.ts +2 -0
- package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +3 -1
- package/dist/types/extensibility/GeneratedContentReveal.d.ts +3 -1
- package/dist/types/extensibility/extensionNodeView.d.ts +13 -12
- package/dist/types/icons/index.d.ts +5 -3
- package/dist/types/messages/find-replace.d.ts +27 -22
- package/dist/types/quick-insert/assets/index.d.ts +34 -32
- package/package.json +5 -4
- package/dist/cjs/extensibility/useNativeEmbedSettled.js +0 -56
- package/dist/es2019/extensibility/useNativeEmbedSettled.js +0 -49
- package/dist/esm/extensibility/useNativeEmbedSettled.js +0 -51
- package/dist/types/extensibility/useNativeEmbedSettled.d.ts +0 -12
|
@@ -3,102 +3,345 @@ function _tsRewriteRelativeImportExtensions(t, e) { return "string" == typeof t
|
|
|
3
3
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Loadable from 'react-loadable';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
7
|
+
import { lazy, LazySuspense } from 'react-loosely-lazy';
|
|
8
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
|
+
const loadIconAction = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-action" */'./action').then(module => module.default);
|
|
10
|
+
const IconActionLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-action" */'./action').then(module => module.default));
|
|
11
|
+
IconActionLazy.displayName = 'lazy(IconAction)';
|
|
12
|
+
const IconActionLoadable = Loadable({
|
|
13
|
+
loader: loadIconAction,
|
|
8
14
|
loading: () => null
|
|
9
15
|
});
|
|
10
|
-
export const
|
|
11
|
-
|
|
16
|
+
export const IconAction = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
17
|
+
fallback: null
|
|
18
|
+
}, /*#__PURE__*/React.createElement(IconActionLazy, props)) :
|
|
19
|
+
/*#__PURE__*/
|
|
20
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
21
|
+
React.createElement(IconActionLoadable, props);
|
|
22
|
+
IconAction.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconActionLazy.preload() : IconActionLoadable.preload();
|
|
23
|
+
const loadIconCode = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-code" */'./code').then(module => module.default);
|
|
24
|
+
const IconCodeLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-code" */'./code').then(module => module.default));
|
|
25
|
+
IconCodeLazy.displayName = 'lazy(IconCode)';
|
|
26
|
+
const IconCodeLoadable = Loadable({
|
|
27
|
+
loader: loadIconCode,
|
|
12
28
|
loading: () => null
|
|
13
29
|
});
|
|
14
|
-
export const
|
|
15
|
-
|
|
30
|
+
export const IconCode = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
31
|
+
fallback: null
|
|
32
|
+
}, /*#__PURE__*/React.createElement(IconCodeLazy, props)) :
|
|
33
|
+
/*#__PURE__*/
|
|
34
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
35
|
+
React.createElement(IconCodeLoadable, props);
|
|
36
|
+
IconCode.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconCodeLazy.preload() : IconCodeLoadable.preload();
|
|
37
|
+
const loadIconDate = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-date" */'./date').then(module => module.default);
|
|
38
|
+
const IconDateLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-date" */'./date').then(module => module.default));
|
|
39
|
+
IconDateLazy.displayName = 'lazy(IconDate)';
|
|
40
|
+
const IconDateLoadable = Loadable({
|
|
41
|
+
loader: loadIconDate,
|
|
16
42
|
loading: () => null
|
|
17
43
|
});
|
|
18
|
-
export const
|
|
19
|
-
|
|
44
|
+
export const IconDate = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
45
|
+
fallback: null
|
|
46
|
+
}, /*#__PURE__*/React.createElement(IconDateLazy, props)) :
|
|
47
|
+
/*#__PURE__*/
|
|
48
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
49
|
+
React.createElement(IconDateLoadable, props);
|
|
50
|
+
IconDate.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconDateLazy.preload() : IconDateLoadable.preload();
|
|
51
|
+
const loadIconDecision = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-decision" */'./decision').then(module => module.default);
|
|
52
|
+
const IconDecisionLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-decision" */'./decision').then(module => module.default));
|
|
53
|
+
IconDecisionLazy.displayName = 'lazy(IconDecision)';
|
|
54
|
+
const IconDecisionLoadable = Loadable({
|
|
55
|
+
loader: loadIconDecision,
|
|
20
56
|
loading: () => null
|
|
21
57
|
});
|
|
22
|
-
export const
|
|
23
|
-
|
|
58
|
+
export const IconDecision = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
59
|
+
fallback: null
|
|
60
|
+
}, /*#__PURE__*/React.createElement(IconDecisionLazy, props)) :
|
|
61
|
+
/*#__PURE__*/
|
|
62
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
63
|
+
React.createElement(IconDecisionLoadable, props);
|
|
64
|
+
IconDecision.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconDecisionLazy.preload() : IconDecisionLoadable.preload();
|
|
65
|
+
const loadIconDivider = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-divider" */'./divider').then(module => module.default);
|
|
66
|
+
const IconDividerLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-divider" */'./divider').then(module => module.default));
|
|
67
|
+
IconDividerLazy.displayName = 'lazy(IconDivider)';
|
|
68
|
+
const IconDividerLoadable = Loadable({
|
|
69
|
+
loader: loadIconDivider,
|
|
24
70
|
loading: () => null
|
|
25
71
|
});
|
|
26
|
-
export const
|
|
27
|
-
|
|
72
|
+
export const IconDivider = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
73
|
+
fallback: null
|
|
74
|
+
}, /*#__PURE__*/React.createElement(IconDividerLazy, props)) :
|
|
75
|
+
/*#__PURE__*/
|
|
76
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
77
|
+
React.createElement(IconDividerLoadable, props);
|
|
78
|
+
IconDivider.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconDividerLazy.preload() : IconDividerLoadable.preload();
|
|
79
|
+
const loadIconEmoji = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-emoji" */'./emoji').then(module => module.default);
|
|
80
|
+
const IconEmojiLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-emoji" */'./emoji').then(module => module.default));
|
|
81
|
+
IconEmojiLazy.displayName = 'lazy(IconEmoji)';
|
|
82
|
+
const IconEmojiLoadable = Loadable({
|
|
83
|
+
loader: loadIconEmoji,
|
|
28
84
|
loading: () => null
|
|
29
85
|
});
|
|
30
|
-
export const
|
|
31
|
-
|
|
86
|
+
export const IconEmoji = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
87
|
+
fallback: null
|
|
88
|
+
}, /*#__PURE__*/React.createElement(IconEmojiLazy, props)) :
|
|
89
|
+
/*#__PURE__*/
|
|
90
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
91
|
+
React.createElement(IconEmojiLoadable, props);
|
|
92
|
+
IconEmoji.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconEmojiLazy.preload() : IconEmojiLoadable.preload();
|
|
93
|
+
const loadIconImages = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-images" */'./images').then(module => module.default);
|
|
94
|
+
const IconImagesLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-images" */'./images').then(module => module.default));
|
|
95
|
+
IconImagesLazy.displayName = 'lazy(IconImages)';
|
|
96
|
+
const IconImagesLoadable = Loadable({
|
|
97
|
+
loader: loadIconImages,
|
|
32
98
|
loading: () => null
|
|
33
99
|
});
|
|
34
|
-
export const
|
|
35
|
-
|
|
100
|
+
export const IconImages = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
101
|
+
fallback: null
|
|
102
|
+
}, /*#__PURE__*/React.createElement(IconImagesLazy, props)) :
|
|
103
|
+
/*#__PURE__*/
|
|
104
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
105
|
+
React.createElement(IconImagesLoadable, props);
|
|
106
|
+
IconImages.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconImagesLazy.preload() : IconImagesLoadable.preload();
|
|
107
|
+
const loadIconLayout = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-layout" */'./layout').then(module => module.default);
|
|
108
|
+
const IconLayoutLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-layout" */'./layout').then(module => module.default));
|
|
109
|
+
IconLayoutLazy.displayName = 'lazy(IconLayout)';
|
|
110
|
+
const IconLayoutLoadable = Loadable({
|
|
111
|
+
loader: loadIconLayout,
|
|
36
112
|
loading: () => null
|
|
37
113
|
});
|
|
38
|
-
export const
|
|
39
|
-
|
|
114
|
+
export const IconLayout = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
115
|
+
fallback: null
|
|
116
|
+
}, /*#__PURE__*/React.createElement(IconLayoutLazy, props)) :
|
|
117
|
+
/*#__PURE__*/
|
|
118
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
119
|
+
React.createElement(IconLayoutLoadable, props);
|
|
120
|
+
IconLayout.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconLayoutLazy.preload() : IconLayoutLoadable.preload();
|
|
121
|
+
const loadIconLink = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-link" */'./link').then(module => module.default);
|
|
122
|
+
const IconLinkLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-link" */'./link').then(module => module.default));
|
|
123
|
+
IconLinkLazy.displayName = 'lazy(IconLink)';
|
|
124
|
+
const IconLinkLoadable = Loadable({
|
|
125
|
+
loader: loadIconLink,
|
|
40
126
|
loading: () => null
|
|
41
127
|
});
|
|
42
|
-
export const
|
|
43
|
-
|
|
128
|
+
export const IconLink = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
129
|
+
fallback: null
|
|
130
|
+
}, /*#__PURE__*/React.createElement(IconLinkLazy, props)) :
|
|
131
|
+
/*#__PURE__*/
|
|
132
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
133
|
+
React.createElement(IconLinkLoadable, props);
|
|
134
|
+
IconLink.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconLinkLazy.preload() : IconLinkLoadable.preload();
|
|
135
|
+
const loadIconListNumber = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-list-number" */'./list-number').then(module => module.default);
|
|
136
|
+
const IconListNumberLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-list-number" */'./list-number').then(module => module.default));
|
|
137
|
+
IconListNumberLazy.displayName = 'lazy(IconListNumber)';
|
|
138
|
+
const IconListNumberLoadable = Loadable({
|
|
139
|
+
loader: loadIconListNumber,
|
|
44
140
|
loading: () => null
|
|
45
141
|
});
|
|
46
|
-
export const
|
|
47
|
-
|
|
142
|
+
export const IconListNumber = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
143
|
+
fallback: null
|
|
144
|
+
}, /*#__PURE__*/React.createElement(IconListNumberLazy, props)) :
|
|
145
|
+
/*#__PURE__*/
|
|
146
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
147
|
+
React.createElement(IconListNumberLoadable, props);
|
|
148
|
+
IconListNumber.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconListNumberLazy.preload() : IconListNumberLoadable.preload();
|
|
149
|
+
const loadIconList = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-list" */'./list').then(module => module.default);
|
|
150
|
+
const IconListLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-list" */'./list').then(module => module.default));
|
|
151
|
+
IconListLazy.displayName = 'lazy(IconList)';
|
|
152
|
+
const IconListLoadable = Loadable({
|
|
153
|
+
loader: loadIconList,
|
|
48
154
|
loading: () => null
|
|
49
155
|
});
|
|
50
|
-
export const
|
|
51
|
-
|
|
156
|
+
export const IconList = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
157
|
+
fallback: null
|
|
158
|
+
}, /*#__PURE__*/React.createElement(IconListLazy, props)) :
|
|
159
|
+
/*#__PURE__*/
|
|
160
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
161
|
+
React.createElement(IconListLoadable, props);
|
|
162
|
+
IconList.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconListLazy.preload() : IconListLoadable.preload();
|
|
163
|
+
const loadIconMention = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-mention" */'./mention').then(module => module.default);
|
|
164
|
+
const IconMentionLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-mention" */'./mention').then(module => module.default));
|
|
165
|
+
IconMentionLazy.displayName = 'lazy(IconMention)';
|
|
166
|
+
const IconMentionLoadable = Loadable({
|
|
167
|
+
loader: loadIconMention,
|
|
52
168
|
loading: () => null
|
|
53
169
|
});
|
|
54
|
-
export const
|
|
55
|
-
|
|
170
|
+
export const IconMention = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
171
|
+
fallback: null
|
|
172
|
+
}, /*#__PURE__*/React.createElement(IconMentionLazy, props)) :
|
|
173
|
+
/*#__PURE__*/
|
|
174
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
175
|
+
React.createElement(IconMentionLoadable, props);
|
|
176
|
+
IconMention.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconMentionLazy.preload() : IconMentionLoadable.preload();
|
|
177
|
+
const loadIconPanelError = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-error" */'./panel-error').then(module => module.default);
|
|
178
|
+
const IconPanelErrorLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-error" */'./panel-error').then(module => module.default));
|
|
179
|
+
IconPanelErrorLazy.displayName = 'lazy(IconPanelError)';
|
|
180
|
+
const IconPanelErrorLoadable = Loadable({
|
|
181
|
+
loader: loadIconPanelError,
|
|
56
182
|
loading: () => null
|
|
57
183
|
});
|
|
58
|
-
export const
|
|
59
|
-
|
|
184
|
+
export const IconPanelError = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
185
|
+
fallback: null
|
|
186
|
+
}, /*#__PURE__*/React.createElement(IconPanelErrorLazy, props)) :
|
|
187
|
+
/*#__PURE__*/
|
|
188
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
189
|
+
React.createElement(IconPanelErrorLoadable, props);
|
|
190
|
+
IconPanelError.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconPanelErrorLazy.preload() : IconPanelErrorLoadable.preload();
|
|
191
|
+
const loadIconPanelNote = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-note" */'./panel-note').then(module => module.default);
|
|
192
|
+
const IconPanelNoteLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-note" */'./panel-note').then(module => module.default));
|
|
193
|
+
IconPanelNoteLazy.displayName = 'lazy(IconPanelNote)';
|
|
194
|
+
const IconPanelNoteLoadable = Loadable({
|
|
195
|
+
loader: loadIconPanelNote,
|
|
60
196
|
loading: () => null
|
|
61
197
|
});
|
|
62
|
-
export const
|
|
63
|
-
|
|
198
|
+
export const IconPanelNote = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
199
|
+
fallback: null
|
|
200
|
+
}, /*#__PURE__*/React.createElement(IconPanelNoteLazy, props)) :
|
|
201
|
+
/*#__PURE__*/
|
|
202
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
203
|
+
React.createElement(IconPanelNoteLoadable, props);
|
|
204
|
+
IconPanelNote.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconPanelNoteLazy.preload() : IconPanelNoteLoadable.preload();
|
|
205
|
+
const loadIconPanelSuccess = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-success" */'./panel-success').then(module => module.default);
|
|
206
|
+
const IconPanelSuccessLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-success" */'./panel-success').then(module => module.default));
|
|
207
|
+
IconPanelSuccessLazy.displayName = 'lazy(IconPanelSuccess)';
|
|
208
|
+
const IconPanelSuccessLoadable = Loadable({
|
|
209
|
+
loader: loadIconPanelSuccess,
|
|
64
210
|
loading: () => null
|
|
65
211
|
});
|
|
66
|
-
export const
|
|
67
|
-
|
|
212
|
+
export const IconPanelSuccess = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
213
|
+
fallback: null
|
|
214
|
+
}, /*#__PURE__*/React.createElement(IconPanelSuccessLazy, props)) :
|
|
215
|
+
/*#__PURE__*/
|
|
216
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
217
|
+
React.createElement(IconPanelSuccessLoadable, props);
|
|
218
|
+
IconPanelSuccess.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconPanelSuccessLazy.preload() : IconPanelSuccessLoadable.preload();
|
|
219
|
+
const loadIconPanelWarning = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-warning" */'./panel-warning').then(module => module.default);
|
|
220
|
+
const IconPanelWarningLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-warning" */'./panel-warning').then(module => module.default));
|
|
221
|
+
IconPanelWarningLazy.displayName = 'lazy(IconPanelWarning)';
|
|
222
|
+
const IconPanelWarningLoadable = Loadable({
|
|
223
|
+
loader: loadIconPanelWarning,
|
|
68
224
|
loading: () => null
|
|
69
225
|
});
|
|
70
|
-
export const
|
|
71
|
-
|
|
226
|
+
export const IconPanelWarning = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
227
|
+
fallback: null
|
|
228
|
+
}, /*#__PURE__*/React.createElement(IconPanelWarningLazy, props)) :
|
|
229
|
+
/*#__PURE__*/
|
|
230
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
231
|
+
React.createElement(IconPanelWarningLoadable, props);
|
|
232
|
+
IconPanelWarning.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconPanelWarningLazy.preload() : IconPanelWarningLoadable.preload();
|
|
233
|
+
const loadIconPanel = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel" */'./panel').then(module => module.default);
|
|
234
|
+
const IconPanelLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel" */'./panel').then(module => module.default));
|
|
235
|
+
IconPanelLazy.displayName = 'lazy(IconPanel)';
|
|
236
|
+
const IconPanelLoadable = Loadable({
|
|
237
|
+
loader: loadIconPanel,
|
|
72
238
|
loading: () => null
|
|
73
239
|
});
|
|
74
|
-
export const
|
|
75
|
-
|
|
240
|
+
export const IconPanel = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
241
|
+
fallback: null
|
|
242
|
+
}, /*#__PURE__*/React.createElement(IconPanelLazy, props)) :
|
|
243
|
+
/*#__PURE__*/
|
|
244
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
245
|
+
React.createElement(IconPanelLoadable, props);
|
|
246
|
+
IconPanel.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconPanelLazy.preload() : IconPanelLoadable.preload();
|
|
247
|
+
const loadIconQuote = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-quote" */'./quote').then(module => module.default);
|
|
248
|
+
const IconQuoteLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-quote" */'./quote').then(module => module.default));
|
|
249
|
+
IconQuoteLazy.displayName = 'lazy(IconQuote)';
|
|
250
|
+
const IconQuoteLoadable = Loadable({
|
|
251
|
+
loader: loadIconQuote,
|
|
76
252
|
loading: () => null
|
|
77
253
|
});
|
|
78
|
-
export const
|
|
79
|
-
|
|
254
|
+
export const IconQuote = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
255
|
+
fallback: null
|
|
256
|
+
}, /*#__PURE__*/React.createElement(IconQuoteLazy, props)) :
|
|
257
|
+
/*#__PURE__*/
|
|
258
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
259
|
+
React.createElement(IconQuoteLoadable, props);
|
|
260
|
+
IconQuote.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconQuoteLazy.preload() : IconQuoteLoadable.preload();
|
|
261
|
+
const loadIconStatus = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-status" */'./status').then(module => module.default);
|
|
262
|
+
const IconStatusLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-status" */'./status').then(module => module.default));
|
|
263
|
+
IconStatusLazy.displayName = 'lazy(IconStatus)';
|
|
264
|
+
const IconStatusLoadable = Loadable({
|
|
265
|
+
loader: loadIconStatus,
|
|
80
266
|
loading: () => null
|
|
81
267
|
});
|
|
82
|
-
export const
|
|
83
|
-
|
|
268
|
+
export const IconStatus = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
269
|
+
fallback: null
|
|
270
|
+
}, /*#__PURE__*/React.createElement(IconStatusLazy, props)) :
|
|
271
|
+
/*#__PURE__*/
|
|
272
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
273
|
+
React.createElement(IconStatusLoadable, props);
|
|
274
|
+
IconStatus.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconStatusLazy.preload() : IconStatusLoadable.preload();
|
|
275
|
+
const loadIconOneColumnLayout = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-one-column-layout" */'./one-column-layout').then(module => module.default);
|
|
276
|
+
const IconOneColumnLayoutLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-one-column-layout" */'./one-column-layout').then(module => module.default));
|
|
277
|
+
IconOneColumnLayoutLazy.displayName = 'lazy(IconOneColumnLayout)';
|
|
278
|
+
const IconOneColumnLayoutLoadable = Loadable({
|
|
279
|
+
loader: loadIconOneColumnLayout,
|
|
84
280
|
loading: () => null
|
|
85
281
|
});
|
|
86
|
-
export const
|
|
87
|
-
|
|
282
|
+
export const IconOneColumnLayout = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
283
|
+
fallback: null
|
|
284
|
+
}, /*#__PURE__*/React.createElement(IconOneColumnLayoutLazy, props)) :
|
|
285
|
+
/*#__PURE__*/
|
|
286
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
287
|
+
React.createElement(IconOneColumnLayoutLoadable, props);
|
|
288
|
+
IconOneColumnLayout.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconOneColumnLayoutLazy.preload() : IconOneColumnLayoutLoadable.preload();
|
|
289
|
+
const loadIconTwoColumnLayout = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-two-column-layout" */'./two-column-layout').then(module => module.default);
|
|
290
|
+
const IconTwoColumnLayoutLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-two-column-layout" */'./two-column-layout').then(module => module.default));
|
|
291
|
+
IconTwoColumnLayoutLazy.displayName = 'lazy(IconTwoColumnLayout)';
|
|
292
|
+
const IconTwoColumnLayoutLoadable = Loadable({
|
|
293
|
+
loader: loadIconTwoColumnLayout,
|
|
88
294
|
loading: () => null
|
|
89
295
|
});
|
|
90
|
-
export const
|
|
91
|
-
|
|
296
|
+
export const IconTwoColumnLayout = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
297
|
+
fallback: null
|
|
298
|
+
}, /*#__PURE__*/React.createElement(IconTwoColumnLayoutLazy, props)) :
|
|
299
|
+
/*#__PURE__*/
|
|
300
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
301
|
+
React.createElement(IconTwoColumnLayoutLoadable, props);
|
|
302
|
+
IconTwoColumnLayout.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconTwoColumnLayoutLazy.preload() : IconTwoColumnLayoutLoadable.preload();
|
|
303
|
+
const loadIconThreeColumnLayout = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-three-column-layout" */'./three-column-layout').then(module => module.default);
|
|
304
|
+
const IconThreeColumnLayoutLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-three-column-layout" */'./three-column-layout').then(module => module.default));
|
|
305
|
+
IconThreeColumnLayoutLazy.displayName = 'lazy(IconThreeColumnLayout)';
|
|
306
|
+
const IconThreeColumnLayoutLoadable = Loadable({
|
|
307
|
+
loader: loadIconThreeColumnLayout,
|
|
92
308
|
loading: () => null
|
|
93
309
|
});
|
|
94
|
-
export const
|
|
95
|
-
|
|
310
|
+
export const IconThreeColumnLayout = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
311
|
+
fallback: null
|
|
312
|
+
}, /*#__PURE__*/React.createElement(IconThreeColumnLayoutLazy, props)) :
|
|
313
|
+
/*#__PURE__*/
|
|
314
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
315
|
+
React.createElement(IconThreeColumnLayoutLoadable, props);
|
|
316
|
+
IconThreeColumnLayout.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconThreeColumnLayoutLazy.preload() : IconThreeColumnLayoutLoadable.preload();
|
|
317
|
+
const loadIconFourColumnLayout = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-four-column-layout" */'./four-column-layout').then(module => module.default);
|
|
318
|
+
const IconFourColumnLayoutLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-four-column-layout" */'./four-column-layout').then(module => module.default));
|
|
319
|
+
IconFourColumnLayoutLazy.displayName = 'lazy(IconFourColumnLayout)';
|
|
320
|
+
const IconFourColumnLayoutLoadable = Loadable({
|
|
321
|
+
loader: loadIconFourColumnLayout,
|
|
96
322
|
loading: () => null
|
|
97
323
|
});
|
|
98
|
-
export const
|
|
99
|
-
|
|
324
|
+
export const IconFourColumnLayout = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
325
|
+
fallback: null
|
|
326
|
+
}, /*#__PURE__*/React.createElement(IconFourColumnLayoutLazy, props)) :
|
|
327
|
+
/*#__PURE__*/
|
|
328
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
329
|
+
React.createElement(IconFourColumnLayoutLoadable, props);
|
|
330
|
+
IconFourColumnLayout.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconFourColumnLayoutLazy.preload() : IconFourColumnLayoutLoadable.preload();
|
|
331
|
+
const loadIconFiveColumnLayout = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-five-column-layout" */'./five-column-layout').then(module => module.default);
|
|
332
|
+
const IconFiveColumnLayoutLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-five-column-layout" */'./five-column-layout').then(module => module.default));
|
|
333
|
+
IconFiveColumnLayoutLazy.displayName = 'lazy(IconFiveColumnLayout)';
|
|
334
|
+
const IconFiveColumnLayoutLoadable = Loadable({
|
|
335
|
+
loader: loadIconFiveColumnLayout,
|
|
100
336
|
loading: () => null
|
|
101
337
|
});
|
|
338
|
+
export const IconFiveColumnLayout = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
339
|
+
fallback: null
|
|
340
|
+
}, /*#__PURE__*/React.createElement(IconFiveColumnLayoutLazy, props)) :
|
|
341
|
+
/*#__PURE__*/
|
|
342
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
343
|
+
React.createElement(IconFiveColumnLayoutLoadable, props);
|
|
344
|
+
IconFiveColumnLayout.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconFiveColumnLayoutLazy.preload() : IconFiveColumnLayoutLoadable.preload();
|
|
102
345
|
function importHeading(level) {
|
|
103
346
|
switch (level) {
|
|
104
347
|
case 1:
|
|
@@ -120,39 +363,116 @@ export const IconHeading = ({
|
|
|
120
363
|
level,
|
|
121
364
|
label
|
|
122
365
|
}) => {
|
|
123
|
-
const
|
|
124
|
-
|
|
366
|
+
const loadIconHeading = () => importHeading(level).then(module => module.default);
|
|
367
|
+
const IconHeadingLazy = lazy(() => loadIconHeading());
|
|
368
|
+
IconHeadingLazy.displayName = `lazy(IconHeading${level})`;
|
|
369
|
+
const IconHeadingLoadable = Loadable({
|
|
370
|
+
loader: loadIconHeading,
|
|
125
371
|
loading: () => null
|
|
126
372
|
});
|
|
127
|
-
return /*#__PURE__*/React.createElement(
|
|
373
|
+
return isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
374
|
+
fallback: null
|
|
375
|
+
}, /*#__PURE__*/React.createElement(IconHeadingLazy, {
|
|
376
|
+
label: label
|
|
377
|
+
})) : /*#__PURE__*/React.createElement(IconHeadingLoadable, {
|
|
128
378
|
label: label
|
|
129
379
|
});
|
|
130
380
|
};
|
|
131
|
-
|
|
132
|
-
|
|
381
|
+
const loadIconFeedback = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-feedback" */'./feedback').then(module => module.default);
|
|
382
|
+
const IconFeedbackLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-feedback" */'./feedback').then(module => module.default));
|
|
383
|
+
IconFeedbackLazy.displayName = 'lazy(IconFeedback)';
|
|
384
|
+
const IconFeedbackLoadable = Loadable({
|
|
385
|
+
loader: loadIconFeedback,
|
|
133
386
|
loading: () => null
|
|
134
387
|
});
|
|
135
|
-
export const
|
|
136
|
-
|
|
388
|
+
export const IconFeedback = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
389
|
+
fallback: null
|
|
390
|
+
}, /*#__PURE__*/React.createElement(IconFeedbackLazy, props)) :
|
|
391
|
+
/*#__PURE__*/
|
|
392
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
393
|
+
React.createElement(IconFeedbackLoadable, props);
|
|
394
|
+
IconFeedback.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconFeedbackLazy.preload() : IconFeedbackLoadable.preload();
|
|
395
|
+
const loadIconExpand = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-expand" */'./expand').then(module => module.default);
|
|
396
|
+
const IconExpandLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-expand" */'./expand').then(module => module.default));
|
|
397
|
+
IconExpandLazy.displayName = 'lazy(IconExpand)';
|
|
398
|
+
const IconExpandLoadable = Loadable({
|
|
399
|
+
loader: loadIconExpand,
|
|
137
400
|
loading: () => null
|
|
138
401
|
});
|
|
139
|
-
export const
|
|
140
|
-
|
|
402
|
+
export const IconExpand = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
403
|
+
fallback: null
|
|
404
|
+
}, /*#__PURE__*/React.createElement(IconExpandLazy, props)) :
|
|
405
|
+
/*#__PURE__*/
|
|
406
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
407
|
+
React.createElement(IconExpandLoadable, props);
|
|
408
|
+
IconExpand.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconExpandLazy.preload() : IconExpandLoadable.preload();
|
|
409
|
+
const loadIconDatasourceJiraIssue = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-jira-issue" */'./datasource-jira-issue').then(module => module.default);
|
|
410
|
+
const IconDatasourceJiraIssueLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-jira-issue" */'./datasource-jira-issue').then(module => module.default));
|
|
411
|
+
IconDatasourceJiraIssueLazy.displayName = 'lazy(IconDatasourceJiraIssue)';
|
|
412
|
+
const IconDatasourceJiraIssueLoadable = Loadable({
|
|
413
|
+
loader: loadIconDatasourceJiraIssue,
|
|
141
414
|
loading: () => null
|
|
142
415
|
});
|
|
143
|
-
export const
|
|
144
|
-
|
|
416
|
+
export const IconDatasourceJiraIssue = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
417
|
+
fallback: null
|
|
418
|
+
}, /*#__PURE__*/React.createElement(IconDatasourceJiraIssueLazy, props)) :
|
|
419
|
+
/*#__PURE__*/
|
|
420
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
421
|
+
React.createElement(IconDatasourceJiraIssueLoadable, props);
|
|
422
|
+
IconDatasourceJiraIssue.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconDatasourceJiraIssueLazy.preload() : IconDatasourceJiraIssueLoadable.preload();
|
|
423
|
+
const loadIconDatasourceAssetsObjects = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-assets-objects" */'./datasource-assets-objects').then(module => module.default);
|
|
424
|
+
const IconDatasourceAssetsObjectsLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-assets-objects" */'./datasource-assets-objects').then(module => module.default));
|
|
425
|
+
IconDatasourceAssetsObjectsLazy.displayName = 'lazy(IconDatasourceAssetsObjects)';
|
|
426
|
+
const IconDatasourceAssetsObjectsLoadable = Loadable({
|
|
427
|
+
loader: loadIconDatasourceAssetsObjects,
|
|
145
428
|
loading: () => null
|
|
146
429
|
});
|
|
147
|
-
export const
|
|
148
|
-
|
|
430
|
+
export const IconDatasourceAssetsObjects = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
431
|
+
fallback: null
|
|
432
|
+
}, /*#__PURE__*/React.createElement(IconDatasourceAssetsObjectsLazy, props)) :
|
|
433
|
+
/*#__PURE__*/
|
|
434
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
435
|
+
React.createElement(IconDatasourceAssetsObjectsLoadable, props);
|
|
436
|
+
IconDatasourceAssetsObjects.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconDatasourceAssetsObjectsLazy.preload() : IconDatasourceAssetsObjectsLoadable.preload();
|
|
437
|
+
const loadIconDatasourceConfluenceSearch = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-confluence-search" */'./datasource-confluence-search').then(module => module.default);
|
|
438
|
+
const IconDatasourceConfluenceSearchLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-confluence-search" */'./datasource-confluence-search').then(module => module.default));
|
|
439
|
+
IconDatasourceConfluenceSearchLazy.displayName = 'lazy(IconDatasourceConfluenceSearch)';
|
|
440
|
+
const IconDatasourceConfluenceSearchLoadable = Loadable({
|
|
441
|
+
loader: loadIconDatasourceConfluenceSearch,
|
|
149
442
|
loading: () => null
|
|
150
443
|
});
|
|
151
|
-
export const
|
|
152
|
-
|
|
444
|
+
export const IconDatasourceConfluenceSearch = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
445
|
+
fallback: null
|
|
446
|
+
}, /*#__PURE__*/React.createElement(IconDatasourceConfluenceSearchLazy, props)) :
|
|
447
|
+
/*#__PURE__*/
|
|
448
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
449
|
+
React.createElement(IconDatasourceConfluenceSearchLoadable, props);
|
|
450
|
+
IconDatasourceConfluenceSearch.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconDatasourceConfluenceSearchLazy.preload() : IconDatasourceConfluenceSearchLoadable.preload();
|
|
451
|
+
const loadIconLoom = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-loom" */'./loom').then(module => module.default);
|
|
452
|
+
const IconLoomLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-loom" */'./loom').then(module => module.default));
|
|
453
|
+
IconLoomLazy.displayName = 'lazy(IconLoom)';
|
|
454
|
+
const IconLoomLoadable = Loadable({
|
|
455
|
+
loader: loadIconLoom,
|
|
153
456
|
loading: () => null
|
|
154
457
|
});
|
|
155
|
-
export const
|
|
156
|
-
|
|
458
|
+
export const IconLoom = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
459
|
+
fallback: null
|
|
460
|
+
}, /*#__PURE__*/React.createElement(IconLoomLazy, props)) :
|
|
461
|
+
/*#__PURE__*/
|
|
462
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
463
|
+
React.createElement(IconLoomLoadable, props);
|
|
464
|
+
IconLoom.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconLoomLazy.preload() : IconLoomLoadable.preload();
|
|
465
|
+
const loadIconSyncBlock = () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-sync-block" */'./syncBlock').then(module => module.default);
|
|
466
|
+
const IconSyncBlockLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-sync-block" */'./syncBlock').then(module => module.default));
|
|
467
|
+
IconSyncBlockLazy.displayName = 'lazy(IconSyncBlock)';
|
|
468
|
+
const IconSyncBlockLoadable = Loadable({
|
|
469
|
+
loader: loadIconSyncBlock,
|
|
157
470
|
loading: () => null
|
|
158
|
-
});
|
|
471
|
+
});
|
|
472
|
+
export const IconSyncBlock = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
473
|
+
fallback: null
|
|
474
|
+
}, /*#__PURE__*/React.createElement(IconSyncBlockLazy, props)) :
|
|
475
|
+
/*#__PURE__*/
|
|
476
|
+
// eslint-disable-next-line react/jsx-props-no-spreading -- pass icon props to the legacy component
|
|
477
|
+
React.createElement(IconSyncBlockLoadable, props);
|
|
478
|
+
IconSyncBlock.preload = () => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? IconSyncBlockLazy.preload() : IconSyncBlockLoadable.preload();
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "
|
|
17
|
+
const packageVersion = "125.1.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
|
+
// oxlint-disable-next-line @atlassian/no-restricted-imports
|
|
4
|
+
import { lazy, LazySuspense } from 'react-loosely-lazy';
|
|
3
5
|
import ResourcedMention from '@atlaskit/mention/resourced-mention';
|
|
4
6
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
5
7
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -11,12 +13,21 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
11
13
|
// Lazy-loaded so the agent profile card chunk (and its `@atlaskit/rovo-agent-components`
|
|
12
14
|
// dependency) stays off the critical path — it is only fetched when an agent mention
|
|
13
15
|
// (`userType === 'APP'`) actually renders, never for person mentions.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
const loadAgentProfileCardTrigger = () => import( /* webpackChunkName: "@atlaskit-internal_profilecard/agent-profile-card-trigger" */
|
|
17
|
+
'@atlaskit/profilecard/agent-profile-card-trigger').then(mod => mod.AgentProfileCardTrigger);
|
|
18
|
+
const AgentProfileCardTriggerLazy = lazy(() => import( /* webpackChunkName: "@atlaskit-internal_profilecard/agent-profile-card-trigger" */
|
|
19
|
+
'@atlaskit/profilecard/agent-profile-card-trigger').then(mod => mod.AgentProfileCardTrigger));
|
|
20
|
+
AgentProfileCardTriggerLazy.displayName = 'lazy(AgentProfileCardTrigger)';
|
|
21
|
+
const AgentProfileCardTriggerLoadable = Loadable({
|
|
22
|
+
loader: loadAgentProfileCardTrigger,
|
|
18
23
|
loading: () => null
|
|
19
24
|
});
|
|
25
|
+
const AgentProfileCardTrigger = props => isExperimentEnabled('platform_editor_loosely_lazy_migration') ? /*#__PURE__*/React.createElement(LazySuspense, {
|
|
26
|
+
fallback: null
|
|
27
|
+
}, /*#__PURE__*/React.createElement(AgentProfileCardTriggerLazy, props)) :
|
|
28
|
+
/*#__PURE__*/
|
|
29
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
30
|
+
React.createElement(AgentProfileCardTriggerLoadable, props);
|
|
20
31
|
|
|
21
32
|
// Ignored via go/ees005
|
|
22
33
|
// eslint-disable-next-line require-unicode-regexp
|