@atlaskit/editor-core 216.11.3 → 216.12.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 +17 -0
- package/dist/cjs/utils/extensions.js +5 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/utils/extensions.js +3 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/utils/extensions.js +5 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/docs/0-intro.tsx +19 -19
- package/docs/1-legacy-editor.tsx +19 -19
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 216.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`dfe1c3b4007f4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dfe1c3b4007f4) -
|
|
8
|
+
[ux] Adding the ability to provide a Lozenge to Quick Insert Menu Items.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 216.11.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 216.11.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -97,7 +97,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
return _objectSpread(_objectSpread({
|
|
100
|
+
return _objectSpread(_objectSpread(_objectSpread({
|
|
101
101
|
// Add module key so typeahead/quick-insert can identify items
|
|
102
102
|
// **locale-agnostically**! nb: we _already_ send key in analytics
|
|
103
103
|
// events, this standardises and makes our items more predictable.
|
|
@@ -114,7 +114,10 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
114
114
|
}, ((0, _platformFeatureFlags.fg)('cc_fd_wb_create_priority_in_slash_menu_enabled') || (0, _platformFeatureFlags.fg)('rovo_chat_enable_skills_ui_m1')) && {
|
|
115
115
|
priority: item.priority
|
|
116
116
|
}), {}, {
|
|
117
|
-
categories: item.categories
|
|
117
|
+
categories: item.categories
|
|
118
|
+
}, item.lozenge != null && {
|
|
119
|
+
lozenge: item.lozenge
|
|
120
|
+
}), {}, {
|
|
118
121
|
isDisabledOffline: true,
|
|
119
122
|
action: function action(insert, state, source) {
|
|
120
123
|
if (typeof item.node === 'function') {
|
|
@@ -75,6 +75,9 @@ export async function extensionProviderToQuickInsertProvider(extensionProvider,
|
|
|
75
75
|
priority: item.priority
|
|
76
76
|
}),
|
|
77
77
|
categories: item.categories,
|
|
78
|
+
...(item.lozenge != null && {
|
|
79
|
+
lozenge: item.lozenge
|
|
80
|
+
}),
|
|
78
81
|
isDisabledOffline: true,
|
|
79
82
|
action: (insert, state, source) => {
|
|
80
83
|
if (typeof item.node === 'function') {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "216.11.
|
|
2
|
+
export const version = "216.11.4";
|
|
@@ -91,7 +91,7 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
return _objectSpread(_objectSpread({
|
|
94
|
+
return _objectSpread(_objectSpread(_objectSpread({
|
|
95
95
|
// Add module key so typeahead/quick-insert can identify items
|
|
96
96
|
// **locale-agnostically**! nb: we _already_ send key in analytics
|
|
97
97
|
// events, this standardises and makes our items more predictable.
|
|
@@ -108,7 +108,10 @@ function _extensionProviderToQuickInsertProvider() {
|
|
|
108
108
|
}, (fg('cc_fd_wb_create_priority_in_slash_menu_enabled') || fg('rovo_chat_enable_skills_ui_m1')) && {
|
|
109
109
|
priority: item.priority
|
|
110
110
|
}), {}, {
|
|
111
|
-
categories: item.categories
|
|
111
|
+
categories: item.categories
|
|
112
|
+
}, item.lozenge != null && {
|
|
113
|
+
lozenge: item.lozenge
|
|
114
|
+
}), {}, {
|
|
112
115
|
isDisabledOffline: true,
|
|
113
116
|
action: function action(insert, state, source) {
|
|
114
117
|
if (typeof item.node === 'function') {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "216.11.
|
|
2
|
+
export var version = "216.11.4";
|
package/docs/0-intro.tsx
CHANGED
|
@@ -388,27 +388,27 @@ function EditorInternal() {
|
|
|
388
388
|
|
|
389
389
|
|
|
390
390
|
${(
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
391
|
+
<Example
|
|
392
|
+
packageName="@atlaskit/editor-core/composable-editor"
|
|
393
|
+
// Ignored via go/ees005
|
|
394
|
+
// eslint-disable-next-line import/no-commonjs
|
|
395
|
+
Component={require('../examples/1-basic-composable-editor').default}
|
|
396
|
+
title="Basic"
|
|
397
|
+
// Ignored via go/ees005
|
|
398
|
+
// eslint-disable-next-line import/no-commonjs
|
|
399
|
+
source={require('!!raw-loader!../examples/1-basic-composable-editor')}
|
|
400
|
+
/>
|
|
401
|
+
)}
|
|
402
402
|
|
|
403
403
|
${(
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
404
|
+
<Props
|
|
405
|
+
shouldCollapseProps
|
|
406
|
+
heading="Props"
|
|
407
|
+
// Ignored via go/ees005
|
|
408
|
+
// eslint-disable-next-line import/no-commonjs
|
|
409
|
+
props={require('!!extract-react-types-loader!../src/composable-editor/composable-editor')}
|
|
410
|
+
/>
|
|
411
|
+
)}
|
|
412
412
|
|
|
413
413
|
`;
|
|
414
414
|
export default _default_1;
|
package/docs/1-legacy-editor.tsx
CHANGED
|
@@ -251,26 +251,26 @@ ${code`
|
|
|
251
251
|
`}
|
|
252
252
|
|
|
253
253
|
${(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
254
|
+
<Example
|
|
255
|
+
packageName="@atlaskit/editor-core"
|
|
256
|
+
// Ignored via go/ees005
|
|
257
|
+
// eslint-disable-next-line import/no-commonjs
|
|
258
|
+
Component={require('../examples/1-basic-composable-editor').default}
|
|
259
|
+
title="Basic"
|
|
260
|
+
// Ignored via go/ees005
|
|
261
|
+
// eslint-disable-next-line import/no-commonjs
|
|
262
|
+
source={require('!!raw-loader!../examples/1-basic-composable-editor')}
|
|
263
|
+
/>
|
|
264
|
+
)}
|
|
265
265
|
|
|
266
266
|
${(
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
267
|
+
<Props
|
|
268
|
+
shouldCollapseProps
|
|
269
|
+
heading="Props"
|
|
270
|
+
// Ignored via go/ees005
|
|
271
|
+
// eslint-disable-next-line import/no-commonjs
|
|
272
|
+
props={require('!!extract-react-types-loader!../src/editor')}
|
|
273
|
+
/>
|
|
274
|
+
)}
|
|
275
275
|
`;
|
|
276
276
|
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "216.
|
|
3
|
+
"version": "216.12.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
67
67
|
"@atlaskit/react-ufo": "^5.2.0",
|
|
68
68
|
"@atlaskit/task-decision": "^19.2.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^29.1.0",
|
|
70
70
|
"@atlaskit/tokens": "^11.0.0",
|
|
71
71
|
"@atlaskit/tooltip": "^20.14.0",
|
|
72
72
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"uuid": "^3.1.0"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@atlaskit/editor-common": "^111.
|
|
86
|
+
"@atlaskit/editor-common": "^111.17.0",
|
|
87
87
|
"@atlaskit/link-provider": "^4.2.0",
|
|
88
88
|
"@atlaskit/media-core": "^37.0.0",
|
|
89
89
|
"react": "^18.2.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@atlaskit/media-integration-test-helpers": "workspace:^",
|
|
108
108
|
"@atlaskit/media-test-helpers": "^40.0.0",
|
|
109
109
|
"@atlaskit/modal-dialog": "^14.10.0",
|
|
110
|
-
"@atlaskit/renderer": "^126.
|
|
110
|
+
"@atlaskit/renderer": "^126.10.0",
|
|
111
111
|
"@atlaskit/section-message": "^8.12.0",
|
|
112
112
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|
|
113
113
|
"@atlaskit/toggle": "^15.2.0",
|