@atlaskit/editor-core 231.0.3 → 231.0.5
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 +38 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- package/dist/cjs/ui/quick-insert/ExtensionQuickInsertMenuItem.js +2 -2
- package/dist/cjs/ui/quick-insert/executeExtensionQuickInsertItem.js +1 -1
- package/dist/cjs/utils/extensions.js +5 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- package/dist/es2019/ui/quick-insert/ExtensionQuickInsertMenuItem.js +2 -2
- package/dist/es2019/ui/quick-insert/executeExtensionQuickInsertItem.js +2 -2
- package/dist/es2019/utils/extensions.js +3 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +1 -1
- package/dist/esm/ui/quick-insert/ExtensionQuickInsertMenuItem.js +2 -2
- package/dist/esm/ui/quick-insert/executeExtensionQuickInsertItem.js +2 -2
- package/dist/esm/utils/extensions.js +5 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +8 -8
- package/tsconfig.json +1 -1
- package/dist/cjs/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +0 -365
- package/dist/es2019/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +0 -358
- package/dist/esm/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.js +0 -358
- package/dist/types/ui/quick-insert/getExtensionQuickInsertPreviewImageUrls.d.ts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 231.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a034f535638cc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a034f535638cc) -
|
|
8
|
+
Add structured Quick Insert previews with localised title, description and attribution under
|
|
9
|
+
platform_editor_slash_command.
|
|
10
|
+
|
|
11
|
+
Exclude footer and category navigation actions from previews. Left-align attribution, use subtle
|
|
12
|
+
title and attribution text, and default description text.
|
|
13
|
+
|
|
14
|
+
Show text previews even without preview metadata, and reserve a fixed image area while images load
|
|
15
|
+
or when they fail. Keep previews within the viewport, flipping left when needed, with compact
|
|
16
|
+
panel dimensions and typography.
|
|
17
|
+
|
|
18
|
+
Replace baked panel screenshots with image-only assets. Remove image fields from text-only legacy
|
|
19
|
+
previews while preserving their attribution.
|
|
20
|
+
|
|
21
|
+
Let extension providers own their preview images and attribution. Pass preview metadata through
|
|
22
|
+
the Company Hub manifest factory and remove Editor's fallback preview registry.
|
|
23
|
+
|
|
24
|
+
Localize provider attribution names and display Confluence and Jira product icons instead of the
|
|
25
|
+
attribution prefix when an icon is present. Allow the Dropbox manifest to receive the host's
|
|
26
|
+
message formatter.
|
|
27
|
+
|
|
28
|
+
- [`f0e0122d5fb61`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f0e0122d5fb61) -
|
|
29
|
+
Handle array-valued extension actions when inserting Rovo Skills with
|
|
30
|
+
platform_editor_slash_command enabled.
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
|
|
33
|
+
## 231.0.4
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- [`ac601b5b2d024`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ac601b5b2d024) -
|
|
38
|
+
Enable updated status colors when platform_editor_update_status_colors_jira is enabled
|
|
39
|
+
- Updated dependencies
|
|
40
|
+
|
|
3
41
|
## 231.0.3
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
|
@@ -413,7 +413,7 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
|
|
|
413
413
|
// Evaluate the block-spacing experiment once per render.
|
|
414
414
|
var isBlockSpacingEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_extension_block_spacing');
|
|
415
415
|
var isFloatingTocEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_floating_toc');
|
|
416
|
-
var isUpdateStatusColorsEnabled = (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_update_status_colors', 'isEnabled', false);
|
|
416
|
+
var isUpdateStatusColorsEnabled = (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_update_status_colors', 'isEnabled', false) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
417
417
|
var isStatusStylesTeam26 = (0, _fg.fg)('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
418
418
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
419
419
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -334,7 +334,7 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
|
|
|
334
334
|
// Evaluate the block-spacing experiment once per render.
|
|
335
335
|
var isBlockSpacingEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_extension_block_spacing');
|
|
336
336
|
var isFloatingTocEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_floating_toc');
|
|
337
|
-
var isUpdateStatusColorsEnabled = (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_update_status_colors', 'isEnabled', false);
|
|
337
|
+
var isUpdateStatusColorsEnabled = (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_update_status_colors', 'isEnabled', false) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
338
338
|
var isStatusStylesTeam26 = (0, _fg.fg)('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
339
339
|
return (0, _react2.jsx)("div", {
|
|
340
340
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -10,7 +10,6 @@ var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
|
|
|
10
10
|
var _useQuickInsertContext = require("@atlaskit/editor-common/quick-insert/use-quick-insert-context");
|
|
11
11
|
var _executeExtensionQuickInsertItem = require("./executeExtensionQuickInsertItem");
|
|
12
12
|
var _ExtensionQuickInsertIcon = require("./ExtensionQuickInsertIcon");
|
|
13
|
-
var _getExtensionQuickInsertPreviewImageUrls = require("./getExtensionQuickInsertPreviewImageUrls");
|
|
14
13
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
14
|
var ExtensionQuickInsertMenuItem = exports.ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(_ref) {
|
|
16
15
|
var apiRef = _ref.apiRef,
|
|
@@ -46,7 +45,8 @@ var ExtensionQuickInsertMenuItem = exports.ExtensionQuickInsertMenuItem = functi
|
|
|
46
45
|
}),
|
|
47
46
|
isDisabled: isOffline,
|
|
48
47
|
onSelect: onSelect,
|
|
49
|
-
|
|
48
|
+
preview: item.preview,
|
|
49
|
+
description: item.description,
|
|
50
50
|
title: item.title
|
|
51
51
|
});
|
|
52
52
|
};
|
|
@@ -87,7 +87,7 @@ var executeExtensionQuickInsertItem = exports.executeExtensionQuickInsertItem =
|
|
|
87
87
|
}
|
|
88
88
|
api.core.actions.execute(function (_ref2) {
|
|
89
89
|
var tr = _ref2.tr;
|
|
90
|
-
var content = (0, _processRawValue.processRawValue)(tr.doc.type.schema, node);
|
|
90
|
+
var content = Array.isArray(node) ? (0, _processRawValue.processRawFragmentValue)(tr.doc.type.schema, node) : (0, _processRawValue.processRawValue)(tr.doc.type.schema, node);
|
|
91
91
|
return content ? (0, _utils.safeInsert)(content)(tr).scrollIntoView() : null;
|
|
92
92
|
});
|
|
93
93
|
}
|
|
@@ -140,7 +140,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
140
140
|
return Promise.resolve([]);
|
|
141
141
|
}
|
|
142
142
|
var quickInsertItems = (0, _extensions.getQuickInsertItemsFromModule)(extensions, function (item) {
|
|
143
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_app_category_analytics') || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command')) && item.app ? {
|
|
143
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_app_category_analytics') || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command')) && item.app ? {
|
|
144
144
|
app: item.app
|
|
145
145
|
} : {}), {}, {
|
|
146
146
|
// Add module key so typeahead/quick-insert can identify items
|
|
@@ -148,7 +148,10 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
148
148
|
// events, this standardises and makes our items more predictable.
|
|
149
149
|
key: item.key,
|
|
150
150
|
title: item.title,
|
|
151
|
-
description: item.description
|
|
151
|
+
description: item.description
|
|
152
|
+
}, item.preview ? {
|
|
153
|
+
preview: item.preview
|
|
154
|
+
} : {}), {}, {
|
|
152
155
|
icon: function icon() {
|
|
153
156
|
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_loosely_lazy_migration')) {
|
|
154
157
|
return /*#__PURE__*/_react.default.createElement(LazyExtensionIcon, {
|
|
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.name = void 0;
|
|
7
7
|
var name = exports.name = "@atlaskit/editor-core";
|
|
8
8
|
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
|
|
9
|
-
var version = exports.version = "231.0.
|
|
9
|
+
var version = exports.version = "231.0.4";
|
|
@@ -468,7 +468,7 @@ export const EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef((pro
|
|
|
468
468
|
// Evaluate the block-spacing experiment once per render.
|
|
469
469
|
const isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
|
|
470
470
|
const isFloatingTocEnabled = isExperimentEnabled('platform_editor_floating_toc');
|
|
471
|
-
const isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false);
|
|
471
|
+
const isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false) || UNSAFE_expValNoExposure('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
472
472
|
const isStatusStylesTeam26 = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
473
473
|
return /*#__PURE__*/React.createElement("div", {
|
|
474
474
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -337,7 +337,7 @@ export const EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef((prop
|
|
|
337
337
|
// Evaluate the block-spacing experiment once per render.
|
|
338
338
|
const isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
|
|
339
339
|
const isFloatingTocEnabled = isExperimentEnabled('platform_editor_floating_toc');
|
|
340
|
-
const isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false);
|
|
340
|
+
const isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false) || UNSAFE_expValNoExposure('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
341
341
|
const isStatusStylesTeam26 = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
342
342
|
return jsx("div", {
|
|
343
343
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -3,7 +3,6 @@ import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-i
|
|
|
3
3
|
import { useQuickInsertContext } from '@atlaskit/editor-common/quick-insert/use-quick-insert-context';
|
|
4
4
|
import { executeExtensionQuickInsertItem } from './executeExtensionQuickInsertItem';
|
|
5
5
|
import { ExtensionQuickInsertIcon } from './ExtensionQuickInsertIcon';
|
|
6
|
-
import { getExtensionQuickInsertPreviewImageUrls } from './getExtensionQuickInsertPreviewImageUrls';
|
|
7
6
|
export const ExtensionQuickInsertMenuItem = ({
|
|
8
7
|
apiRef,
|
|
9
8
|
createAnalyticsEvent,
|
|
@@ -41,7 +40,8 @@ export const ExtensionQuickInsertMenuItem = ({
|
|
|
41
40
|
}),
|
|
42
41
|
isDisabled: isOffline,
|
|
43
42
|
onSelect: onSelect,
|
|
44
|
-
|
|
43
|
+
preview: item.preview,
|
|
44
|
+
description: item.description,
|
|
45
45
|
title: item.title
|
|
46
46
|
});
|
|
47
47
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { resolveImport } from '@atlaskit/editor-common/extensions';
|
|
3
3
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
4
|
-
import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
4
|
+
import { processRawFragmentValue, processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
5
5
|
import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
6
6
|
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
7
7
|
const sendAnalytics = (item, selection, createAnalyticsEvent, source) => {
|
|
@@ -68,7 +68,7 @@ export const executeExtensionQuickInsertItem = ({
|
|
|
68
68
|
api.core.actions.execute(({
|
|
69
69
|
tr
|
|
70
70
|
}) => {
|
|
71
|
-
const content = processRawValue(tr.doc.type.schema, node);
|
|
71
|
+
const content = Array.isArray(node) ? processRawFragmentValue(tr.doc.type.schema, node) : processRawValue(tr.doc.type.schema, node);
|
|
72
72
|
return content ? safeInsert(content)(tr).scrollIntoView() : null;
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -113,6 +113,9 @@ export async function extensionProviderToQuickInsertProvider(extensionProvider,
|
|
|
113
113
|
key: item.key,
|
|
114
114
|
title: item.title,
|
|
115
115
|
description: item.description,
|
|
116
|
+
...(item.preview ? {
|
|
117
|
+
preview: item.preview
|
|
118
|
+
} : {}),
|
|
116
119
|
icon: () => {
|
|
117
120
|
if (isExperimentEnabled('platform_editor_loosely_lazy_migration')) {
|
|
118
121
|
return /*#__PURE__*/React.createElement(LazyExtensionIcon, {
|
|
@@ -412,7 +412,7 @@ export var EditorContentContainerCompiled = /*#__PURE__*/React.forwardRef(functi
|
|
|
412
412
|
// Evaluate the block-spacing experiment once per render.
|
|
413
413
|
var isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
|
|
414
414
|
var isFloatingTocEnabled = isExperimentEnabled('platform_editor_floating_toc');
|
|
415
|
-
var isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false);
|
|
415
|
+
var isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false) || UNSAFE_expValNoExposure('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
416
416
|
var isStatusStylesTeam26 = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
417
417
|
return /*#__PURE__*/React.createElement("div", {
|
|
418
418
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -332,7 +332,7 @@ export var EditorContentContainerEmotion = /*#__PURE__*/React.forwardRef(functio
|
|
|
332
332
|
// Evaluate the block-spacing experiment once per render.
|
|
333
333
|
var isBlockSpacingEnabled = isExperimentEnabled('platform_editor_extension_block_spacing');
|
|
334
334
|
var isFloatingTocEnabled = isExperimentEnabled('platform_editor_floating_toc');
|
|
335
|
-
var isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false);
|
|
335
|
+
var isUpdateStatusColorsEnabled = UNSAFE_expValNoExposure('platform_editor_update_status_colors', 'isEnabled', false) || UNSAFE_expValNoExposure('platform_editor_update_status_colors_jira', 'isEnabled', false);
|
|
336
336
|
var isStatusStylesTeam26 = fg('platform-dst-lozenge-tag-badge-visual-uplifts');
|
|
337
337
|
return jsx("div", {
|
|
338
338
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -3,7 +3,6 @@ import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-i
|
|
|
3
3
|
import { useQuickInsertContext } from '@atlaskit/editor-common/quick-insert/use-quick-insert-context';
|
|
4
4
|
import { executeExtensionQuickInsertItem } from './executeExtensionQuickInsertItem';
|
|
5
5
|
import { ExtensionQuickInsertIcon } from './ExtensionQuickInsertIcon';
|
|
6
|
-
import { getExtensionQuickInsertPreviewImageUrls } from './getExtensionQuickInsertPreviewImageUrls';
|
|
7
6
|
export var ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(_ref) {
|
|
8
7
|
var apiRef = _ref.apiRef,
|
|
9
8
|
createAnalyticsEvent = _ref.createAnalyticsEvent,
|
|
@@ -38,7 +37,8 @@ export var ExtensionQuickInsertMenuItem = function ExtensionQuickInsertMenuItem(
|
|
|
38
37
|
}),
|
|
39
38
|
isDisabled: isOffline,
|
|
40
39
|
onSelect: onSelect,
|
|
41
|
-
|
|
40
|
+
preview: item.preview,
|
|
41
|
+
description: item.description,
|
|
42
42
|
title: item.title
|
|
43
43
|
});
|
|
44
44
|
};
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
import { resolveImport } from '@atlaskit/editor-common/extensions';
|
|
6
6
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
7
|
-
import { processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
7
|
+
import { processRawFragmentValue, processRawValue } from '@atlaskit/editor-common/process-raw-value';
|
|
8
8
|
import { findInsertLocation } from '@atlaskit/editor-common/utils/analytics';
|
|
9
9
|
import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
|
|
10
10
|
var sendAnalytics = function sendAnalytics(item, selection, createAnalyticsEvent, source) {
|
|
@@ -80,7 +80,7 @@ export var executeExtensionQuickInsertItem = function executeExtensionQuickInser
|
|
|
80
80
|
}
|
|
81
81
|
api.core.actions.execute(function (_ref2) {
|
|
82
82
|
var tr = _ref2.tr;
|
|
83
|
-
var content = processRawValue(tr.doc.type.schema, node);
|
|
83
|
+
var content = Array.isArray(node) ? processRawFragmentValue(tr.doc.type.schema, node) : processRawValue(tr.doc.type.schema, node);
|
|
84
84
|
return content ? safeInsert(content)(tr).scrollIntoView() : null;
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -135,7 +135,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
135
135
|
return Promise.resolve([]);
|
|
136
136
|
}
|
|
137
137
|
var quickInsertItems = getQuickInsertItemsFromModule(extensions, function (item) {
|
|
138
|
-
return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, (isExperimentEnabled('platform_editor_slash_app_category_analytics') || isExperimentEnabled('platform_editor_slash_command')) && item.app ? {
|
|
138
|
+
return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, (isExperimentEnabled('platform_editor_slash_app_category_analytics') || isExperimentEnabled('platform_editor_slash_command')) && item.app ? {
|
|
139
139
|
app: item.app
|
|
140
140
|
} : {}), {}, {
|
|
141
141
|
// Add module key so typeahead/quick-insert can identify items
|
|
@@ -143,7 +143,10 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
143
143
|
// events, this standardises and makes our items more predictable.
|
|
144
144
|
key: item.key,
|
|
145
145
|
title: item.title,
|
|
146
|
-
description: item.description
|
|
146
|
+
description: item.description
|
|
147
|
+
}, item.preview ? {
|
|
148
|
+
preview: item.preview
|
|
149
|
+
} : {}), {}, {
|
|
147
150
|
icon: function icon() {
|
|
148
151
|
if (isExperimentEnabled('platform_editor_loosely_lazy_migration')) {
|
|
149
152
|
return /*#__PURE__*/React.createElement(LazyExtensionIcon, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "231.0.
|
|
3
|
+
"version": "231.0.5",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
60
60
|
"@atlaskit/editor-shared-styles": "^4.3.0",
|
|
61
61
|
"@atlaskit/editor-ssr-renderer": "^16.0.0",
|
|
62
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
62
|
+
"@atlaskit/editor-toolbar": "^2.8.0",
|
|
63
63
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
64
64
|
"@atlaskit/emoji": "^72.4.0",
|
|
65
65
|
"@atlaskit/feature-gate-js-client": "^7.0.0",
|
|
66
66
|
"@atlaskit/heading": "^8.0.0",
|
|
67
67
|
"@atlaskit/icon": "^38.0.0",
|
|
68
|
-
"@atlaskit/icon-lab": "^7.
|
|
68
|
+
"@atlaskit/icon-lab": "^7.10.0",
|
|
69
69
|
"@atlaskit/link": "^5.1.0",
|
|
70
70
|
"@atlaskit/media-card": "^82.1.0",
|
|
71
71
|
"@atlaskit/mention": "^30.0.0",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"@atlaskit/primitives": "^22.5.0",
|
|
77
77
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
78
78
|
"@atlaskit/react-ufo": "^8.0.0",
|
|
79
|
-
"@atlaskit/task-decision": "^21.
|
|
80
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
79
|
+
"@atlaskit/task-decision": "^21.11.0",
|
|
80
|
+
"@atlaskit/tmp-editor-statsig": "^209.0.0",
|
|
81
81
|
"@atlaskit/tokens": "^20.0.0",
|
|
82
82
|
"@atlaskit/tooltip": "^24.3.0",
|
|
83
83
|
"@atlaskit/width-detector": "^7.2.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"uuid": "^11.1.1"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@atlaskit/editor-common": "^125.
|
|
99
|
+
"@atlaskit/editor-common": "^125.4.0",
|
|
100
100
|
"@atlaskit/link-provider": "^6.0.0",
|
|
101
101
|
"@atlaskit/media-core": "^39.0.0",
|
|
102
102
|
"react": "^18.2.0 || ^19.2.0",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"@atlaskit/editor-plugin-alignment": "^22.0.0",
|
|
119
119
|
"@atlaskit/editor-plugin-annotation": "^21.0.0",
|
|
120
120
|
"@atlaskit/editor-plugin-base": "^22.0.0",
|
|
121
|
-
"@atlaskit/editor-plugin-card": "^27.
|
|
121
|
+
"@atlaskit/editor-plugin-card": "^27.1.0",
|
|
122
122
|
"@atlaskit/editor-plugin-code-block-advanced": "^21.0.0",
|
|
123
123
|
"@atlaskit/editor-plugin-collab-edit": "^22.0.0",
|
|
124
124
|
"@atlaskit/editor-plugin-content-insertion": "^21.0.0",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"@atlaskit/portal": "^7.0.0",
|
|
160
160
|
"@atlaskit/profilecard": "^27.0.0",
|
|
161
161
|
"@atlaskit/radio": "^10.2.0",
|
|
162
|
-
"@atlaskit/renderer": "^144.
|
|
162
|
+
"@atlaskit/renderer": "^144.1.0",
|
|
163
163
|
"@atlaskit/section-message": "^10.2.0",
|
|
164
164
|
"@atlaskit/spinner": "^20.4.0",
|
|
165
165
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
package/tsconfig.json
CHANGED