@atlaskit/editor-core 236.0.8 → 236.1.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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 236.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`1c4db454a74a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1c4db454a74a2) -
8
+ Registered menu hosts can override section and item ranks through getItemRank in the shared
9
+ ordering used by Quick Insert, type-ahead, and insert menus. Rovo editor presets group these
10
+ settings under quickInsertOptions. Typeahead handlers expose getRegisteredItemRank with a
11
+ RegisteredItemRankResolver that receives the registered component and its ranked parent. Skill
12
+ manifests and adapters accept visibility predicates that follow current chat state without
13
+ rebuilding registrations.
14
+
15
+ Under platform_editor_slash_command, main and inline Rovo chat show Rovo commands first and use
16
+ specialist placeholders. The chat skills layer receives selectedAgentId and respects the existing
17
+ enableSkillsInSpecialistPromptInput setting. Treatment keeps registrations and evaluates
18
+ visibility per item. Control keeps the legacy full-or-empty manifest and the same host opt-in.
19
+ Search mode and an existing prompt skill still prevent insertion.
20
+
21
+ Affected Jira, JSM, and Confluence skills require the signed-in user's product access at the site,
22
+ in addition to backend filtering of declared site entitlements. Skill Builder needs Studio and the
23
+ signed-in user's Rovo AI entitlement for that site. Eligibility requests follow site changes; user
24
+ identity remains stable during the signed-in session. Visibility reads committed React state and
25
+ supports server rendering.
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+
3
31
  ## 236.0.8
4
32
 
5
33
  ### Patch Changes
@@ -101,6 +101,7 @@ var getExtensionQuickInsertComponents = exports.getExtensionQuickInsertComponent
101
101
  return {
102
102
  type: 'menu-item',
103
103
  key: item.key,
104
+ isHidden: item.isHidden,
104
105
  parents: parents.map(function (parent) {
105
106
  var _CREATE_SECTION_RANK$;
106
107
  return {
@@ -142,7 +142,7 @@ function _extensionProviderToQuickInsertProvider() {
142
142
  return Promise.resolve([]);
143
143
  }
144
144
  var quickInsertItems = (0, _moduleHelpers.getQuickInsertItemsFromModule)(extensions, function (item) {
145
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, item.app ? {
145
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, item.app ? {
146
146
  app: item.app
147
147
  } : {}), {}, {
148
148
  // Add module key so typeahead/quick-insert can identify items
@@ -179,7 +179,9 @@ function _extensionProviderToQuickInsertProvider() {
179
179
  categories: item.categories
180
180
  }, item.lozenge != null && {
181
181
  lozenge: item.lozenge
182
- }), {}, {
182
+ }), item.isHidden ? {
183
+ isHidden: item.isHidden
184
+ } : {}), {}, {
183
185
  isDisabledOffline: true,
184
186
  // This legacy action intentionally mirrors executeExtensionQuickInsertItem,
185
187
  // which serves the registered representation of the same item.
@@ -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 = "236.0.7";
9
+ var version = exports.version = "236.0.8";
@@ -71,6 +71,7 @@ export const getExtensionQuickInsertComponents = ({
71
71
  return {
72
72
  type: 'menu-item',
73
73
  key: item.key,
74
+ isHidden: item.isHidden,
74
75
  parents: parents.map(parent => {
75
76
  var _CREATE_SECTION_RANK$;
76
77
  return {
@@ -142,6 +142,9 @@ export async function extensionProviderToQuickInsertProvider(extensionProvider,
142
142
  ...(item.lozenge != null && {
143
143
  lozenge: item.lozenge
144
144
  }),
145
+ ...(item.isHidden ? {
146
+ isHidden: item.isHidden
147
+ } : {}),
145
148
  isDisabledOffline: true,
146
149
  // This legacy action intentionally mirrors executeExtensionQuickInsertItem,
147
150
  // which serves the registered representation of the same item.
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "236.0.7";
3
+ export const version = "236.0.8";
@@ -94,6 +94,7 @@ export var getExtensionQuickInsertComponents = function getExtensionQuickInsertC
94
94
  return {
95
95
  type: 'menu-item',
96
96
  key: item.key,
97
+ isHidden: item.isHidden,
97
98
  parents: parents.map(function (parent) {
98
99
  var _CREATE_SECTION_RANK$;
99
100
  return {
@@ -137,7 +137,7 @@ function _extensionProviderToQuickInsertProvider() {
137
137
  return Promise.resolve([]);
138
138
  }
139
139
  var quickInsertItems = getQuickInsertItemsFromModule(extensions, function (item) {
140
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, item.app ? {
140
+ return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, item.app ? {
141
141
  app: item.app
142
142
  } : {}), {}, {
143
143
  // Add module key so typeahead/quick-insert can identify items
@@ -174,7 +174,9 @@ function _extensionProviderToQuickInsertProvider() {
174
174
  categories: item.categories
175
175
  }, item.lozenge != null && {
176
176
  lozenge: item.lozenge
177
- }), {}, {
177
+ }), item.isHidden ? {
178
+ isHidden: item.isHidden
179
+ } : {}), {}, {
178
180
  isDisabledOffline: true,
179
181
  // This legacy action intentionally mirrors executeExtensionQuickInsertItem,
180
182
  // which serves the registered representation of the same item.
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "236.0.7";
3
+ export var version = "236.0.8";
@@ -50,7 +50,7 @@ export type InitialPluginConfiguration = {
50
50
  type: 'added' | 'deleted';
51
51
  }[]) => void;
52
52
  };
53
- quickInsertPlugin?: Pick<QuickInsertPluginOptions, 'blockControlButtonEnabled' | 'isRecommendedItem' | 'maxRecommendedItems'>;
53
+ quickInsertPlugin?: Pick<QuickInsertPluginOptions, 'blockControlButtonEnabled' | 'getItemRank' | 'isRecommendedItem' | 'maxRecommendedItems'>;
54
54
  tasksAndDecisionsPlugin?: {
55
55
  allowBlockTaskItem?: boolean;
56
56
  hasEditPermission?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "236.0.8",
3
+ "version": "236.1.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -52,7 +52,7 @@
52
52
  "@atlaskit/editor-json-transformer": "^10.0.0",
53
53
  "@atlaskit/editor-plugin-block-menu": "^25.1.0",
54
54
  "@atlaskit/editor-plugin-connectivity": "^26.0.0",
55
- "@atlaskit/editor-plugin-quick-insert": "^26.0.0",
55
+ "@atlaskit/editor-plugin-quick-insert": "^26.1.0",
56
56
  "@atlaskit/editor-plugin-selection-extension": "^29.0.0",
57
57
  "@atlaskit/editor-plugin-user-preferences": "^24.0.0",
58
58
  "@atlaskit/editor-plugins": "^16.2.0",
@@ -96,7 +96,7 @@
96
96
  "uuid": "^11.1.1"
97
97
  },
98
98
  "peerDependencies": {
99
- "@atlaskit/editor-common": "^130.3.0",
99
+ "@atlaskit/editor-common": "^130.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",