@atlaskit/editor-plugin-synced-block 10.2.16 → 10.3.1

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-synced-block
2
2
 
3
+ ## 10.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`550cda5b8889d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/550cda5b8889d) -
14
+ Add a stable selector for the Copy to sync action
15
+
16
+ ```ts
17
+ SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarCopy; // 'synced-block-copy-btn'
18
+ ```
19
+
3
20
  ## 10.2.16
4
21
 
5
22
  ### Patch Changes
@@ -291,6 +291,7 @@ var handleButtonClick = function handleButtonClick(_ref2) {
291
291
  break;
292
292
  case _types.SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarSourceOverflowTrigger:
293
293
  case _types.SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarReferenceOverflowTrigger:
294
+ case _types.SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarCopy:
294
295
  break;
295
296
  default:
296
297
  {
@@ -21,6 +21,7 @@ var SYNCED_BLOCK_BUTTON_TEST_ID = exports.SYNCED_BLOCK_BUTTON_TEST_ID = {
21
21
  primaryToolbarCreate: 'create-synced-block-toolbar-btn',
22
22
  blockMenuCreate: 'create-synced-block-block-menu-btn',
23
23
  quickInsertCreate: 'create-synced-block-quick-insert-btn',
24
+ syncedBlockToolbarCopy: 'synced-block-copy-btn',
24
25
  syncedBlockToolbarReferenceDelete: 'reference-synced-block-delete-btn',
25
26
  syncedBlockToolbarSourceDelete: 'source-synced-block-delete-btn',
26
27
  syncedBlockToolbarReferenceUnsync: 'reference-synced-block-unsync-btn',
@@ -79,6 +79,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(stat
79
79
  title: isSyncBlockActivationEnabled ? formatMessage(_messages.syncBlockMessages.copyToSyncLabel) : formatMessage(_messages.syncBlockMessages.copySyncBlockLabel),
80
80
  showTitle: isSyncBlockActivationEnabled,
81
81
  tooltipContent: isSyncBlockActivationEnabled ? undefined : formatMessage(_messages.syncBlockMessages.copySyncedBlockTooltip),
82
+ testId: isSyncBlockActivationEnabled ? _types.SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarCopy : undefined,
82
83
  onClick: (0, _editorCommands.copySyncedBlockReferenceToClipboard)(syncBlockStore, _analytics.INPUT_METHOD.SYNCED_BLOCK_TB, api)
83
84
  }, hoverDecorationProps(nodeType, _consts.akEditorSelectedNodeClassName));
84
85
 
@@ -285,6 +285,7 @@ const handleButtonClick = ({
285
285
  break;
286
286
  case SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarSourceOverflowTrigger:
287
287
  case SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarReferenceOverflowTrigger:
288
+ case SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarCopy:
288
289
  break;
289
290
  default:
290
291
  {
@@ -15,6 +15,7 @@ export const SYNCED_BLOCK_BUTTON_TEST_ID = {
15
15
  primaryToolbarCreate: 'create-synced-block-toolbar-btn',
16
16
  blockMenuCreate: 'create-synced-block-block-menu-btn',
17
17
  quickInsertCreate: 'create-synced-block-quick-insert-btn',
18
+ syncedBlockToolbarCopy: 'synced-block-copy-btn',
18
19
  syncedBlockToolbarReferenceDelete: 'reference-synced-block-delete-btn',
19
20
  syncedBlockToolbarSourceDelete: 'source-synced-block-delete-btn',
20
21
  syncedBlockToolbarReferenceUnsync: 'reference-synced-block-unsync-btn',
@@ -75,6 +75,7 @@ export const getToolbarConfig = (state, intl, api, syncBlockStore) => {
75
75
  title: isSyncBlockActivationEnabled ? formatMessage(messages.copyToSyncLabel) : formatMessage(messages.copySyncBlockLabel),
76
76
  showTitle: isSyncBlockActivationEnabled,
77
77
  tooltipContent: isSyncBlockActivationEnabled ? undefined : formatMessage(messages.copySyncedBlockTooltip),
78
+ testId: isSyncBlockActivationEnabled ? SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarCopy : undefined,
78
79
  onClick: copySyncedBlockReferenceToClipboard(syncBlockStore, INPUT_METHOD.SYNCED_BLOCK_TB, api),
79
80
  ...hoverDecorationProps(nodeType, akEditorSelectedNodeClassName)
80
81
  };
@@ -284,6 +284,7 @@ var handleButtonClick = function handleButtonClick(_ref2) {
284
284
  break;
285
285
  case SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarSourceOverflowTrigger:
286
286
  case SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarReferenceOverflowTrigger:
287
+ case SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarCopy:
287
288
  break;
288
289
  default:
289
290
  {
@@ -15,6 +15,7 @@ export var SYNCED_BLOCK_BUTTON_TEST_ID = {
15
15
  primaryToolbarCreate: 'create-synced-block-toolbar-btn',
16
16
  blockMenuCreate: 'create-synced-block-block-menu-btn',
17
17
  quickInsertCreate: 'create-synced-block-quick-insert-btn',
18
+ syncedBlockToolbarCopy: 'synced-block-copy-btn',
18
19
  syncedBlockToolbarReferenceDelete: 'reference-synced-block-delete-btn',
19
20
  syncedBlockToolbarSourceDelete: 'source-synced-block-delete-btn',
20
21
  syncedBlockToolbarReferenceUnsync: 'reference-synced-block-unsync-btn',
@@ -70,6 +70,7 @@ export var getToolbarConfig = function getToolbarConfig(state, intl, api, syncBl
70
70
  title: isSyncBlockActivationEnabled ? formatMessage(messages.copyToSyncLabel) : formatMessage(messages.copySyncBlockLabel),
71
71
  showTitle: isSyncBlockActivationEnabled,
72
72
  tooltipContent: isSyncBlockActivationEnabled ? undefined : formatMessage(messages.copySyncedBlockTooltip),
73
+ testId: isSyncBlockActivationEnabled ? SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarCopy : undefined,
73
74
  onClick: copySyncedBlockReferenceToClipboard(syncBlockStore, INPUT_METHOD.SYNCED_BLOCK_TB, api)
74
75
  }, hoverDecorationProps(nodeType, akEditorSelectedNodeClassName));
75
76
 
@@ -83,6 +83,7 @@ export declare const SYNCED_BLOCK_BUTTON_TEST_ID: {
83
83
  readonly primaryToolbarCreate: "create-synced-block-toolbar-btn";
84
84
  readonly blockMenuCreate: "create-synced-block-block-menu-btn";
85
85
  readonly quickInsertCreate: "create-synced-block-quick-insert-btn";
86
+ readonly syncedBlockToolbarCopy: "synced-block-copy-btn";
86
87
  readonly syncedBlockToolbarReferenceDelete: "reference-synced-block-delete-btn";
87
88
  readonly syncedBlockToolbarSourceDelete: "source-synced-block-delete-btn";
88
89
  readonly syncedBlockToolbarReferenceUnsync: "reference-synced-block-unsync-btn";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "10.2.16",
3
+ "version": "10.3.1",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  "atlaskit:src": "src/index.ts",
22
22
  "dependencies": {
23
23
  "@atlaskit/adf-schema": "^56.1.0",
24
- "@atlaskit/button": "24.3.5",
24
+ "@atlaskit/button": "24.3.6",
25
25
  "@atlaskit/dropdown-menu": "17.1.6",
26
26
  "@atlaskit/editor-json-transformer": "^9.0.0",
27
27
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/platform-feature-flags": "^2.0.0",
47
47
  "@atlaskit/primitives": "^22.0.0",
48
48
  "@atlaskit/spinner": "20.1.1",
49
- "@atlaskit/tmp-editor-statsig": "^127.0.0",
49
+ "@atlaskit/tmp-editor-statsig": "^127.1.0",
50
50
  "@atlaskit/tokens": "16.0.0",
51
51
  "@atlaskit/tooltip": "^23.1.0",
52
52
  "@atlaskit/visually-hidden": "^4.2.0",