@atlaskit/editor-core 216.11.4 → 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 +11 -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/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
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
|
+
|
|
3
14
|
## 216.11.4
|
|
4
15
|
|
|
5
16
|
### 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/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": "^29.
|
|
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",
|