@atlaskit/editor-common 125.2.0 → 125.3.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 +29 -0
- package/dist/cjs/element-browser/components/ElementBrowserLoader.js +8 -31
- package/dist/cjs/extensibility/extensionNodeView.js +13 -18
- package/dist/cjs/extensions/extension-handlers.js +17 -96
- package/dist/cjs/floating-toolbar/DropdownMenuExtensionItems.js +4 -25
- package/dist/cjs/icons/index.js +10 -33
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/assets/index.js +257 -888
- package/dist/cjs/toolbar-flag-check.js +2 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +11 -30
- package/dist/cjs/ui/Popup/index.js +101 -17
- package/dist/es2019/element-browser/components/ElementBrowserLoader.js +2 -16
- package/dist/es2019/extensibility/extensionNodeView.js +13 -18
- package/dist/es2019/extensions/extension-handlers.js +15 -70
- package/dist/es2019/floating-toolbar/DropdownMenuExtensionItems.js +2 -16
- package/dist/es2019/icons/index.js +3 -17
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/assets/index.js +66 -386
- package/dist/es2019/toolbar-flag-check.js +2 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Mention/mention-with-profilecard.js +4 -15
- package/dist/es2019/ui/Popup/index.js +89 -7
- package/dist/esm/element-browser/components/ElementBrowserLoader.js +6 -28
- package/dist/esm/extensibility/extensionNodeView.js +13 -18
- package/dist/esm/extensions/extension-handlers.js +17 -97
- package/dist/esm/floating-toolbar/DropdownMenuExtensionItems.js +4 -24
- package/dist/esm/icons/index.js +7 -29
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/assets/index.js +194 -764
- package/dist/esm/toolbar-flag-check.js +2 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Mention/mention-with-profilecard.js +8 -25
- package/dist/esm/ui/Popup/index.js +101 -17
- package/dist/types/icons/index.d.ts +3 -5
- package/dist/types/quick-insert/assets/index.d.ts +32 -34
- package/dist/types/ui/Popup/index.d.ts +11 -0
- package/package.json +4 -5
|
@@ -3,345 +3,102 @@ 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
|
-
|
|
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,
|
|
6
|
+
export const IconAction = Loadable({
|
|
7
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-action" */'./action').then(module => module.default),
|
|
14
8
|
loading: () => null
|
|
15
9
|
});
|
|
16
|
-
export const
|
|
17
|
-
|
|
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,
|
|
10
|
+
export const IconCode = Loadable({
|
|
11
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-code" */'./code').then(module => module.default),
|
|
28
12
|
loading: () => null
|
|
29
13
|
});
|
|
30
|
-
export const
|
|
31
|
-
|
|
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,
|
|
14
|
+
export const IconDate = Loadable({
|
|
15
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-date" */'./date').then(module => module.default),
|
|
42
16
|
loading: () => null
|
|
43
17
|
});
|
|
44
|
-
export const
|
|
45
|
-
|
|
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,
|
|
18
|
+
export const IconDecision = Loadable({
|
|
19
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-decision" */'./decision').then(module => module.default),
|
|
56
20
|
loading: () => null
|
|
57
21
|
});
|
|
58
|
-
export const
|
|
59
|
-
|
|
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,
|
|
22
|
+
export const IconDivider = Loadable({
|
|
23
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-divider" */'./divider').then(module => module.default),
|
|
70
24
|
loading: () => null
|
|
71
25
|
});
|
|
72
|
-
export const
|
|
73
|
-
|
|
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,
|
|
26
|
+
export const IconEmoji = Loadable({
|
|
27
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-emoji" */'./emoji').then(module => module.default),
|
|
84
28
|
loading: () => null
|
|
85
29
|
});
|
|
86
|
-
export const
|
|
87
|
-
|
|
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,
|
|
30
|
+
export const IconImages = Loadable({
|
|
31
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-images" */'./images').then(module => module.default),
|
|
98
32
|
loading: () => null
|
|
99
33
|
});
|
|
100
|
-
export const
|
|
101
|
-
|
|
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,
|
|
34
|
+
export const IconLayout = Loadable({
|
|
35
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-layout" */'./layout').then(module => module.default),
|
|
112
36
|
loading: () => null
|
|
113
37
|
});
|
|
114
|
-
export const
|
|
115
|
-
|
|
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,
|
|
38
|
+
export const IconLink = Loadable({
|
|
39
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-link" */'./link').then(module => module.default),
|
|
126
40
|
loading: () => null
|
|
127
41
|
});
|
|
128
|
-
export const
|
|
129
|
-
|
|
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,
|
|
42
|
+
export const IconListNumber = Loadable({
|
|
43
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-list-number" */'./list-number').then(module => module.default),
|
|
140
44
|
loading: () => null
|
|
141
45
|
});
|
|
142
|
-
export const
|
|
143
|
-
|
|
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,
|
|
46
|
+
export const IconList = Loadable({
|
|
47
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-list" */'./list').then(module => module.default),
|
|
154
48
|
loading: () => null
|
|
155
49
|
});
|
|
156
|
-
export const
|
|
157
|
-
|
|
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,
|
|
50
|
+
export const IconMention = Loadable({
|
|
51
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-mention" */'./mention').then(module => module.default),
|
|
168
52
|
loading: () => null
|
|
169
53
|
});
|
|
170
|
-
export const
|
|
171
|
-
|
|
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,
|
|
54
|
+
export const IconPanelError = Loadable({
|
|
55
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-error" */'./panel-error').then(module => module.default),
|
|
182
56
|
loading: () => null
|
|
183
57
|
});
|
|
184
|
-
export const
|
|
185
|
-
|
|
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,
|
|
58
|
+
export const IconPanelNote = Loadable({
|
|
59
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-note" */'./panel-note').then(module => module.default),
|
|
196
60
|
loading: () => null
|
|
197
61
|
});
|
|
198
|
-
export const
|
|
199
|
-
|
|
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,
|
|
62
|
+
export const IconPanelSuccess = Loadable({
|
|
63
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-success" */'./panel-success').then(module => module.default),
|
|
210
64
|
loading: () => null
|
|
211
65
|
});
|
|
212
|
-
export const
|
|
213
|
-
|
|
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,
|
|
66
|
+
export const IconPanelWarning = Loadable({
|
|
67
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel-warning" */'./panel-warning').then(module => module.default),
|
|
224
68
|
loading: () => null
|
|
225
69
|
});
|
|
226
|
-
export const
|
|
227
|
-
|
|
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,
|
|
70
|
+
export const IconPanel = Loadable({
|
|
71
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-panel" */'./panel').then(module => module.default),
|
|
238
72
|
loading: () => null
|
|
239
73
|
});
|
|
240
|
-
export const
|
|
241
|
-
|
|
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,
|
|
74
|
+
export const IconQuote = Loadable({
|
|
75
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-quote" */'./quote').then(module => module.default),
|
|
252
76
|
loading: () => null
|
|
253
77
|
});
|
|
254
|
-
export const
|
|
255
|
-
|
|
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,
|
|
78
|
+
export const IconStatus = Loadable({
|
|
79
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-status" */'./status').then(module => module.default),
|
|
266
80
|
loading: () => null
|
|
267
81
|
});
|
|
268
|
-
export const
|
|
269
|
-
|
|
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,
|
|
82
|
+
export const IconOneColumnLayout = Loadable({
|
|
83
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-one-column-layout" */'./one-column-layout').then(module => module.default),
|
|
280
84
|
loading: () => null
|
|
281
85
|
});
|
|
282
|
-
export const
|
|
283
|
-
|
|
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,
|
|
86
|
+
export const IconTwoColumnLayout = Loadable({
|
|
87
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-two-column-layout" */'./two-column-layout').then(module => module.default),
|
|
294
88
|
loading: () => null
|
|
295
89
|
});
|
|
296
|
-
export const
|
|
297
|
-
|
|
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,
|
|
90
|
+
export const IconThreeColumnLayout = Loadable({
|
|
91
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-three-column-layout" */'./three-column-layout').then(module => module.default),
|
|
308
92
|
loading: () => null
|
|
309
93
|
});
|
|
310
|
-
export const
|
|
311
|
-
|
|
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,
|
|
94
|
+
export const IconFourColumnLayout = Loadable({
|
|
95
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-four-column-layout" */'./four-column-layout').then(module => module.default),
|
|
322
96
|
loading: () => null
|
|
323
97
|
});
|
|
324
|
-
export const
|
|
325
|
-
|
|
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,
|
|
98
|
+
export const IconFiveColumnLayout = Loadable({
|
|
99
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-five-column-layout" */'./five-column-layout').then(module => module.default),
|
|
336
100
|
loading: () => null
|
|
337
101
|
});
|
|
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();
|
|
345
102
|
function importHeading(level) {
|
|
346
103
|
switch (level) {
|
|
347
104
|
case 1:
|
|
@@ -363,116 +120,39 @@ export const IconHeading = ({
|
|
|
363
120
|
level,
|
|
364
121
|
label
|
|
365
122
|
}) => {
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
IconHeadingLazy.displayName = `lazy(IconHeading${level})`;
|
|
369
|
-
const IconHeadingLoadable = Loadable({
|
|
370
|
-
loader: loadIconHeading,
|
|
123
|
+
const Icon = Loadable({
|
|
124
|
+
loader: () => importHeading(level).then(module => module.default),
|
|
371
125
|
loading: () => null
|
|
372
126
|
});
|
|
373
|
-
return
|
|
374
|
-
fallback: null
|
|
375
|
-
}, /*#__PURE__*/React.createElement(IconHeadingLazy, {
|
|
376
|
-
label: label
|
|
377
|
-
})) : /*#__PURE__*/React.createElement(IconHeadingLoadable, {
|
|
127
|
+
return /*#__PURE__*/React.createElement(Icon, {
|
|
378
128
|
label: label
|
|
379
129
|
});
|
|
380
130
|
};
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
IconFeedbackLazy.displayName = 'lazy(IconFeedback)';
|
|
384
|
-
const IconFeedbackLoadable = Loadable({
|
|
385
|
-
loader: loadIconFeedback,
|
|
131
|
+
export const IconFeedback = Loadable({
|
|
132
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-feedback" */'./feedback').then(module => module.default),
|
|
386
133
|
loading: () => null
|
|
387
134
|
});
|
|
388
|
-
export const
|
|
389
|
-
|
|
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,
|
|
135
|
+
export const IconExpand = Loadable({
|
|
136
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-expand" */'./expand').then(module => module.default),
|
|
400
137
|
loading: () => null
|
|
401
138
|
});
|
|
402
|
-
export const
|
|
403
|
-
|
|
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,
|
|
139
|
+
export const IconDatasourceJiraIssue = Loadable({
|
|
140
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-jira-issue" */'./datasource-jira-issue').then(module => module.default),
|
|
414
141
|
loading: () => null
|
|
415
142
|
});
|
|
416
|
-
export const
|
|
417
|
-
|
|
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,
|
|
143
|
+
export const IconDatasourceAssetsObjects = Loadable({
|
|
144
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-assets-objects" */'./datasource-assets-objects').then(module => module.default),
|
|
428
145
|
loading: () => null
|
|
429
146
|
});
|
|
430
|
-
export const
|
|
431
|
-
|
|
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,
|
|
147
|
+
export const IconDatasourceConfluenceSearch = Loadable({
|
|
148
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-datasource-confluence-search" */'./datasource-confluence-search').then(module => module.default),
|
|
442
149
|
loading: () => null
|
|
443
150
|
});
|
|
444
|
-
export const
|
|
445
|
-
|
|
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,
|
|
151
|
+
export const IconLoom = Loadable({
|
|
152
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-loom" */'./loom').then(module => module.default),
|
|
456
153
|
loading: () => null
|
|
457
154
|
});
|
|
458
|
-
export const
|
|
459
|
-
|
|
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,
|
|
155
|
+
export const IconSyncBlock = Loadable({
|
|
156
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_editor-icon-sync-block" */'./syncBlock').then(module => module.default),
|
|
470
157
|
loading: () => null
|
|
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();
|
|
158
|
+
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export const areToolbarFlagsEnabled = isNewToolbarEnabled => Boolean(
|
|
1
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
2
|
+
export const areToolbarFlagsEnabled = isNewToolbarEnabled => Boolean(editorExperiment('platform_editor_controls', 'variant1') || isNewToolbarEnabled);
|
|
@@ -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 = "125.1
|
|
17
|
+
const packageVersion = "125.2.1";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -1,7 +1,5 @@
|
|
|
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';
|
|
5
3
|
import ResourcedMention from '@atlaskit/mention/resourced-mention';
|
|
6
4
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
5
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
@@ -13,21 +11,12 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
13
11
|
// Lazy-loaded so the agent profile card chunk (and its `@atlaskit/rovo-agent-components`
|
|
14
12
|
// dependency) stays off the critical path — it is only fetched when an agent mention
|
|
15
13
|
// (`userType === 'APP'`) actually renders, never for person mentions.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'@atlaskit/profilecard/agent-profile-card-trigger').then(mod => mod.AgentProfileCardTrigger)
|
|
20
|
-
AgentProfileCardTriggerLazy.displayName = 'lazy(AgentProfileCardTrigger)';
|
|
21
|
-
const AgentProfileCardTriggerLoadable = Loadable({
|
|
22
|
-
loader: loadAgentProfileCardTrigger,
|
|
14
|
+
// Uses react-loadable to match editor-common's code-splitting factory (see src/icons/index.ts).
|
|
15
|
+
const AgentProfileCardTrigger = Loadable({
|
|
16
|
+
loader: () => import( /* webpackChunkName: "@atlaskit-internal_profilecard/agent-profile-card-trigger" */
|
|
17
|
+
'@atlaskit/profilecard/agent-profile-card-trigger').then(mod => mod.AgentProfileCardTrigger),
|
|
23
18
|
loading: () => null
|
|
24
19
|
});
|
|
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);
|
|
31
20
|
|
|
32
21
|
// Ignored via go/ees005
|
|
33
22
|
// eslint-disable-next-line require-unicode-regexp
|