@atlaskit/editor-plugin-card 12.3.18 → 12.4.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,22 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 12.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`06576a95fd8a9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/06576a95fd8a9) -
8
+ lower jira legacy macro search ranking
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 12.3.19
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 12.3.18
4
21
 
5
22
  ### Patch Changes
@@ -179,14 +179,17 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
179
179
  if (!options.allowDatasource) {
180
180
  return quickInsertArray;
181
181
  }
182
- quickInsertArray.push({
182
+ quickInsertArray.push(_objectSpread(_objectSpread({
183
183
  id: 'datasource',
184
184
  title: formatMessage((0, _platformFeatureFlags.fg)('confluence-issue-terminology-refresh') ? _messages.cardMessages.datasourceJiraIssueIssueTermRefresh : _messages.cardMessages.datasourceJiraIssue),
185
185
  description: formatMessage((0, _platformFeatureFlags.fg)('confluence-issue-terminology-refresh') ? _messages.cardMessages.datasourceJiraIssueDescriptionIssueTermRefresh : _messages.cardMessages.datasourceJiraIssueDescription),
186
186
  isDisabledOffline: true,
187
187
  categories: ['external-content', 'development'],
188
188
  keywords: ['jira'],
189
- featured: true,
189
+ featured: true
190
+ }, (0, _platformFeatureFlags.fg)('jim-lower-ranking-in-jira-macro-search') && {
191
+ priority: 500
192
+ }), {}, {
190
193
  icon: function icon() {
191
194
  return /*#__PURE__*/_react.default.createElement(_quickInsert.IconDatasourceJiraIssue, null);
192
195
  },
@@ -195,7 +198,7 @@ var cardPlugin = exports.cardPlugin = function cardPlugin(_ref) {
195
198
  (0, _actions.showDatasourceModal)('jira')(tr);
196
199
  return tr;
197
200
  }
198
- });
201
+ }));
199
202
  if ((0, _utils.canRenderDatasource)(_linkDatasource.ASSETS_LIST_OF_LINKS_DATASOURCE_ID)) {
200
203
  quickInsertArray.push({
201
204
  id: 'datasource',
@@ -166,6 +166,9 @@ export const cardPlugin = ({
166
166
  categories: ['external-content', 'development'],
167
167
  keywords: ['jira'],
168
168
  featured: true,
169
+ ...(fg('jim-lower-ranking-in-jira-macro-search') && {
170
+ priority: 500
171
+ }),
169
172
  icon: () => /*#__PURE__*/React.createElement(IconDatasourceJiraIssue, null),
170
173
  action(insert) {
171
174
  const tr = insert(undefined);
@@ -173,14 +173,17 @@ export var cardPlugin = function cardPlugin(_ref) {
173
173
  if (!options.allowDatasource) {
174
174
  return quickInsertArray;
175
175
  }
176
- quickInsertArray.push({
176
+ quickInsertArray.push(_objectSpread(_objectSpread({
177
177
  id: 'datasource',
178
178
  title: formatMessage(fg('confluence-issue-terminology-refresh') ? messages.datasourceJiraIssueIssueTermRefresh : messages.datasourceJiraIssue),
179
179
  description: formatMessage(fg('confluence-issue-terminology-refresh') ? messages.datasourceJiraIssueDescriptionIssueTermRefresh : messages.datasourceJiraIssueDescription),
180
180
  isDisabledOffline: true,
181
181
  categories: ['external-content', 'development'],
182
182
  keywords: ['jira'],
183
- featured: true,
183
+ featured: true
184
+ }, fg('jim-lower-ranking-in-jira-macro-search') && {
185
+ priority: 500
186
+ }), {}, {
184
187
  icon: function icon() {
185
188
  return /*#__PURE__*/React.createElement(IconDatasourceJiraIssue, null);
186
189
  },
@@ -189,7 +192,7 @@ export var cardPlugin = function cardPlugin(_ref) {
189
192
  showDatasourceModal('jira')(tr);
190
193
  return tr;
191
194
  }
192
- });
195
+ }));
193
196
  if (canRenderDatasource(ASSETS_LIST_OF_LINKS_DATASOURCE_ID)) {
194
197
  quickInsertArray.push({
195
198
  id: 'datasource',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "12.3.18",
3
+ "version": "12.4.0",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^52.1.0",
32
+ "@atlaskit/adf-schema": "^52.2.0",
33
33
  "@atlaskit/analytics-next": "^11.1.0",
34
34
  "@atlaskit/custom-steps": "^0.16.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^7.0.0",
@@ -60,8 +60,8 @@
60
60
  "@atlaskit/primitives": "^18.0.0",
61
61
  "@atlaskit/prosemirror-history": "^0.2.0",
62
62
  "@atlaskit/smart-card": "^43.25.0",
63
- "@atlaskit/theme": "^21.0.0",
64
- "@atlaskit/tmp-editor-statsig": "^32.5.0",
63
+ "@atlaskit/theme": "^22.0.0",
64
+ "@atlaskit/tmp-editor-statsig": "^33.0.0",
65
65
  "@atlaskit/tokens": "^11.0.0",
66
66
  "@babel/runtime": "^7.0.0",
67
67
  "@emotion/react": "^11.7.1",
@@ -71,7 +71,7 @@
71
71
  "uuid": "^3.1.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "@atlaskit/editor-common": "^111.23.0",
74
+ "@atlaskit/editor-common": "^111.26.0",
75
75
  "@atlaskit/link-provider": "^4.2.0",
76
76
  "react": "^18.2.0",
77
77
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -118,6 +118,9 @@
118
118
  },
119
119
  "platform_editor_adf_with_localid": {
120
120
  "type": "boolean"
121
+ },
122
+ "jim-lower-ranking-in-jira-macro-search": {
123
+ "type": "boolean"
121
124
  }
122
125
  },
123
126
  "stricter": {