@atlaskit/editor-plugin-synced-block 8.0.8 → 8.0.10

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,20 @@
1
1
  # @atlaskit/editor-plugin-synced-block
2
2
 
3
+ ## 8.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.0.9
10
+
11
+ ### Patch Changes
12
+
13
+ - [`c9d88dc997d4a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c9d88dc997d4a) -
14
+ Improve quick insert ranking for synced block when searching 'create'
15
+ (platform_synced_block_patch_10)
16
+ - Updated dependencies
17
+
3
18
  ## 8.0.8
4
19
 
5
20
  ### Patch Changes
@@ -10,6 +10,7 @@ exports.getQuickInsertConfig = void 0;
10
10
  require("./quick-insert.compiled.css");
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _runtime = require("@compiled/react/runtime");
13
+ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
13
14
  var _messages = require("@atlaskit/editor-common/messages");
14
15
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
15
16
  var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
@@ -28,8 +29,8 @@ var getQuickInsertConfig = exports.getQuickInsertConfig = function getQuickInser
28
29
  id: 'syncBlock',
29
30
  title: formatMessage(_messages.blockTypeMessages.syncedBlock),
30
31
  description: formatMessage(_messages.blockTypeMessages.syncedBlockDescription),
31
- priority: 800,
32
- keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect'],
32
+ priority: (0, _platformFeatureFlags.fg)('platform_synced_block_patch_10') ? 400 : 800,
33
+ keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect'].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_synced_block_patch_10') ? ['create'] : [])),
33
34
  isDisabledOffline: true,
34
35
  keyshortcut: '',
35
36
  lozenge: /*#__PURE__*/React.createElement("span", {
@@ -20,8 +20,8 @@ export const getQuickInsertConfig = (config, api, syncBlockStore) => {
20
20
  id: 'syncBlock',
21
21
  title: formatMessage(blockTypeMessages.syncedBlock),
22
22
  description: formatMessage(blockTypeMessages.syncedBlockDescription),
23
- priority: 800,
24
- keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect'],
23
+ priority: fg('platform_synced_block_patch_10') ? 400 : 800,
24
+ keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect', ...(fg('platform_synced_block_patch_10') ? ['create'] : [])],
25
25
  isDisabledOffline: true,
26
26
  keyshortcut: '',
27
27
  lozenge: /*#__PURE__*/React.createElement("span", {
@@ -1,4 +1,5 @@
1
1
  /* quick-insert.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
3
  import "./quick-insert.compiled.css";
3
4
  import * as React from 'react';
4
5
  import { ax, ix } from "@compiled/react/runtime";
@@ -19,8 +20,8 @@ export var getQuickInsertConfig = function getQuickInsertConfig(config, api, syn
19
20
  id: 'syncBlock',
20
21
  title: formatMessage(blockTypeMessages.syncedBlock),
21
22
  description: formatMessage(blockTypeMessages.syncedBlockDescription),
22
- priority: 800,
23
- keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect'],
23
+ priority: fg('platform_synced_block_patch_10') ? 400 : 800,
24
+ keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect'].concat(_toConsumableArray(fg('platform_synced_block_patch_10') ? ['create'] : [])),
24
25
  isDisabledOffline: true,
25
26
  keyshortcut: '',
26
27
  lozenge: /*#__PURE__*/React.createElement("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "8.0.8",
3
+ "version": "8.0.10",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -45,16 +45,16 @@
45
45
  "@atlaskit/editor-shared-styles": "^3.10.0",
46
46
  "@atlaskit/editor-synced-block-provider": "^6.2.0",
47
47
  "@atlaskit/editor-toolbar": "^1.0.0",
48
- "@atlaskit/flag": "^17.9.0",
48
+ "@atlaskit/flag": "^17.10.0",
49
49
  "@atlaskit/icon": "34.3.0",
50
50
  "@atlaskit/icon-lab": "^6.6.0",
51
- "@atlaskit/logo": "^20.0.0",
52
- "@atlaskit/lozenge": "^13.7.0",
51
+ "@atlaskit/logo": "^20.1.0",
52
+ "@atlaskit/lozenge": "^13.8.0",
53
53
  "@atlaskit/modal-dialog": "^14.18.0",
54
54
  "@atlaskit/platform-feature-flags": "^1.1.0",
55
55
  "@atlaskit/primitives": "^19.0.0",
56
56
  "@atlaskit/spinner": "19.1.2",
57
- "@atlaskit/tmp-editor-statsig": "^68.0.0",
57
+ "@atlaskit/tmp-editor-statsig": "^69.0.0",
58
58
  "@atlaskit/tokens": "13.0.1",
59
59
  "@atlaskit/tooltip": "^21.2.0",
60
60
  "@atlaskit/visually-hidden": "^3.0.0",
@@ -64,7 +64,7 @@
64
64
  "date-fns": "^2.17.0"
65
65
  },
66
66
  "peerDependencies": {
67
- "@atlaskit/editor-common": "^114.9.0",
67
+ "@atlaskit/editor-common": "^114.10.0",
68
68
  "react": "^18.2.0",
69
69
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
70
70
  },
@@ -126,6 +126,9 @@
126
126
  },
127
127
  "platform_synced_block_patch_9": {
128
128
  "type": "boolean"
129
+ },
130
+ "platform_synced_block_patch_10": {
131
+ "type": "boolean"
129
132
  }
130
133
  }
131
134
  }