@atlaskit/editor-plugin-synced-block 8.3.4 → 8.3.6

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,24 @@
1
1
  # @atlaskit/editor-plugin-synced-block
2
2
 
3
+ ## 8.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`81682ab6c4a7f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/81682ab6c4a7f) -
8
+ EDITOR-7104: Update editor block menu copy behind feature gates.
9
+ - Update synced block quick insert and toolbar copy to "Sync block" behind
10
+ `platform_synced_block_patch_12`
11
+ - Update block menu "Turn into" copy to "Change format" behind
12
+ `platform_editor_block_menu_v2_patch_2`
13
+
14
+ - Updated dependencies
15
+
16
+ ## 8.3.5
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 8.3.4
4
23
 
5
24
  ### Patch Changes
@@ -13,6 +13,7 @@ var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
14
14
  var _editorToolbar = require("@atlaskit/editor-toolbar");
15
15
  var _blockSynced = _interopRequireDefault(require("@atlaskit/icon-lab/core/block-synced"));
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
17
  var _utils = require("../pm-plugins/utils/utils");
17
18
  var _types = require("../types");
18
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -44,7 +45,7 @@ var CreateSyncedBlockButton = exports.CreateSyncedBlockButton = function CreateS
44
45
  });
45
46
  api === null || api === void 0 || (_api$core2 = api.core) === null || _api$core2 === void 0 || _api$core2.actions.focus();
46
47
  }, [api]);
47
- var message = intl.formatMessage(_messages.syncBlockMessages.createSyncBlockLabel);
48
+ var message = intl.formatMessage((0, _platformFeatureFlags.fg)('platform_synced_block_patch_12') ? _messages.syncBlockMessages.syncBlockLabel : _messages.syncBlockMessages.createSyncBlockLabel);
48
49
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
49
50
  content: message
50
51
  }, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarButton, {
@@ -24,9 +24,10 @@ var getQuickInsertConfig = exports.getQuickInsertConfig = function getQuickInser
24
24
  if (!(config !== null && config !== void 0 && config.enableSourceCreation)) {
25
25
  return [];
26
26
  }
27
+ var syncBlockTitle = (0, _platformFeatureFlags.fg)('platform_synced_block_patch_12') ? _messages.blockTypeMessages.syncBlock : _messages.blockTypeMessages.syncedBlock;
27
28
  return [{
28
29
  id: 'syncBlock',
29
- title: formatMessage(_messages.blockTypeMessages.syncedBlock),
30
+ title: formatMessage(syncBlockTitle),
30
31
  description: formatMessage(_messages.blockTypeMessages.syncedBlockDescription),
31
32
  priority: 400,
32
33
  keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect', 'create'],
@@ -39,7 +40,7 @@ var getQuickInsertConfig = exports.getQuickInsertConfig = function getQuickInser
39
40
  }, formatMessage(_messages.blockTypeMessages.newLozenge))),
40
41
  icon: function icon() {
41
42
  return /*#__PURE__*/React.createElement(_quickInsert.IconSyncBlock, {
42
- label: formatMessage(_messages.blockTypeMessages.syncedBlock)
43
+ label: formatMessage(syncBlockTitle)
43
44
  });
44
45
  },
45
46
  action: function action(insert, state) {
@@ -5,6 +5,7 @@ import { syncBlockMessages } from '@atlaskit/editor-common/messages';
5
5
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
6
6
  import { ToolbarButton, ToolbarTooltip } from '@atlaskit/editor-toolbar';
7
7
  import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { canBeConvertedToSyncBlock } from '../pm-plugins/utils/utils';
9
10
  import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
10
11
  export const CreateSyncedBlockButton = ({
@@ -36,7 +37,7 @@ export const CreateSyncedBlockButton = ({
36
37
  }));
37
38
  api === null || api === void 0 ? void 0 : (_api$core2 = api.core) === null || _api$core2 === void 0 ? void 0 : _api$core2.actions.focus();
38
39
  }, [api]);
39
- const message = intl.formatMessage(syncBlockMessages.createSyncBlockLabel);
40
+ const message = intl.formatMessage(fg('platform_synced_block_patch_12') ? syncBlockMessages.syncBlockLabel : syncBlockMessages.createSyncBlockLabel);
40
41
  return /*#__PURE__*/React.createElement(ToolbarTooltip, {
41
42
  content: message
42
43
  }, /*#__PURE__*/React.createElement(ToolbarButton, {
@@ -16,9 +16,10 @@ export const getQuickInsertConfig = (config, api, syncBlockStore) => {
16
16
  if (!(config !== null && config !== void 0 && config.enableSourceCreation)) {
17
17
  return [];
18
18
  }
19
+ const syncBlockTitle = fg('platform_synced_block_patch_12') ? blockTypeMessages.syncBlock : blockTypeMessages.syncedBlock;
19
20
  return [{
20
21
  id: 'syncBlock',
21
- title: formatMessage(blockTypeMessages.syncedBlock),
22
+ title: formatMessage(syncBlockTitle),
22
23
  description: formatMessage(blockTypeMessages.syncedBlockDescription),
23
24
  priority: 400,
24
25
  keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect', 'create'],
@@ -30,7 +31,7 @@ export const getQuickInsertConfig = (config, api, syncBlockStore) => {
30
31
  appearance: fg('confluence_fronend_labels_categorization_migration') ? 'discovery' : 'new'
31
32
  }, formatMessage(blockTypeMessages.newLozenge))),
32
33
  icon: () => /*#__PURE__*/React.createElement(IconSyncBlock, {
33
- label: formatMessage(blockTypeMessages.syncedBlock)
34
+ label: formatMessage(syncBlockTitle)
34
35
  }),
35
36
  action: (insert, state) => {
36
37
  var _api$analytics;
@@ -5,6 +5,7 @@ import { syncBlockMessages } from '@atlaskit/editor-common/messages';
5
5
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
6
6
  import { ToolbarButton, ToolbarTooltip } from '@atlaskit/editor-toolbar';
7
7
  import BlockSyncedIcon from '@atlaskit/icon-lab/core/block-synced';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { canBeConvertedToSyncBlock } from '../pm-plugins/utils/utils';
9
10
  import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
10
11
  export var CreateSyncedBlockButton = function CreateSyncedBlockButton(_ref) {
@@ -35,7 +36,7 @@ export var CreateSyncedBlockButton = function CreateSyncedBlockButton(_ref) {
35
36
  });
36
37
  api === null || api === void 0 || (_api$core2 = api.core) === null || _api$core2 === void 0 || _api$core2.actions.focus();
37
38
  }, [api]);
38
- var message = intl.formatMessage(syncBlockMessages.createSyncBlockLabel);
39
+ var message = intl.formatMessage(fg('platform_synced_block_patch_12') ? syncBlockMessages.syncBlockLabel : syncBlockMessages.createSyncBlockLabel);
39
40
  return /*#__PURE__*/React.createElement(ToolbarTooltip, {
40
41
  content: message
41
42
  }, /*#__PURE__*/React.createElement(ToolbarButton, {
@@ -15,9 +15,10 @@ export var getQuickInsertConfig = function getQuickInsertConfig(config, api, syn
15
15
  if (!(config !== null && config !== void 0 && config.enableSourceCreation)) {
16
16
  return [];
17
17
  }
18
+ var syncBlockTitle = fg('platform_synced_block_patch_12') ? blockTypeMessages.syncBlock : blockTypeMessages.syncedBlock;
18
19
  return [{
19
20
  id: 'syncBlock',
20
- title: formatMessage(blockTypeMessages.syncedBlock),
21
+ title: formatMessage(syncBlockTitle),
21
22
  description: formatMessage(blockTypeMessages.syncedBlockDescription),
22
23
  priority: 400,
23
24
  keywords: ['synced', 'block', 'synced-block', 'sync', 'sync-block', 'auto', 'update', 'excerpt', 'connect', 'create'],
@@ -30,7 +31,7 @@ export var getQuickInsertConfig = function getQuickInsertConfig(config, api, syn
30
31
  }, formatMessage(blockTypeMessages.newLozenge))),
31
32
  icon: function icon() {
32
33
  return /*#__PURE__*/React.createElement(IconSyncBlock, {
33
- label: formatMessage(blockTypeMessages.syncedBlock)
34
+ label: formatMessage(syncBlockTitle)
34
35
  });
35
36
  },
36
37
  action: function action(insert, state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "8.3.4",
3
+ "version": "8.3.6",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,8 +31,8 @@
31
31
  "@atlaskit/adf-schema": "^52.11.0",
32
32
  "@atlaskit/button": "23.11.5",
33
33
  "@atlaskit/dropdown-menu": "16.8.11",
34
- "@atlaskit/editor-json-transformer": "^8.31.0",
35
- "@atlaskit/editor-plugin-analytics": "^10.0.0",
34
+ "@atlaskit/editor-json-transformer": "^8.32.0",
35
+ "@atlaskit/editor-plugin-analytics": "^10.1.0",
36
36
  "@atlaskit/editor-plugin-block-menu": "^9.2.0",
37
37
  "@atlaskit/editor-plugin-connectivity": "10.1.0",
38
38
  "@atlaskit/editor-plugin-content-format": "^4.1.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/editor-prosemirror": "^7.3.0",
45
45
  "@atlaskit/editor-shared-styles": "^3.11.0",
46
46
  "@atlaskit/editor-synced-block-provider": "^6.6.0",
47
- "@atlaskit/editor-toolbar": "^1.4.0",
47
+ "@atlaskit/editor-toolbar": "^1.5.0",
48
48
  "@atlaskit/flag": "^17.11.0",
49
49
  "@atlaskit/icon": "34.5.0",
50
50
  "@atlaskit/icon-lab": "^6.9.0",
@@ -54,7 +54,7 @@
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": "^80.3.0",
57
+ "@atlaskit/tmp-editor-statsig": "^81.0.0",
58
58
  "@atlaskit/tokens": "13.0.4",
59
59
  "@atlaskit/tooltip": "^22.2.0",
60
60
  "@atlaskit/visually-hidden": "^3.1.0",