@atlaskit/editor-plugin-synced-block 10.2.15 → 10.3.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-synced-block
2
2
 
3
+ ## 10.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`550cda5b8889d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/550cda5b8889d) -
8
+ Add a stable selector for the Copy to sync action
9
+
10
+ ```ts
11
+ SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarCopy; // 'synced-block-copy-btn'
12
+ ```
13
+
14
+ ## 10.2.16
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 10.2.15
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',
@@ -1,4 +1,4 @@
1
- /* DeleteConfirmationModal.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* DeleteConfirmationModal.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
3
2
  ._y44vfmxe{animation:kgnpaw5 .7s ease-in-out}
4
3
  ._1mour5cr{margin-block:var(--ds-space-negative-050,-4px)}
@@ -1,4 +1,4 @@
1
- /* SyncedLocationDropdown.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SyncedLocationDropdown.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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
 
@@ -1,4 +1,4 @@
1
- /* quick-insert.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* quick-insert.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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',
@@ -1,4 +1,4 @@
1
- /* DeleteConfirmationModal.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* DeleteConfirmationModal.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./DeleteConfirmationModal.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback, useEffect, useState } from 'react';
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
3
2
  ._y44vfmxe{animation:kgnpaw5 .7s ease-in-out}
4
3
  ._1mour5cr{margin-block:var(--ds-space-negative-050,-4px)}
@@ -1,4 +1,4 @@
1
- /* SyncedLocationDropdown.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SyncedLocationDropdown.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./SyncedLocationDropdown.compiled.css";
4
4
  import * as React from 'react';
@@ -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
  };
@@ -1,4 +1,4 @@
1
- /* quick-insert.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* quick-insert.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./quick-insert.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -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',
@@ -1,4 +1,4 @@
1
- /* DeleteConfirmationModal.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* DeleteConfirmationModal.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
4
4
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
@@ -1,4 +1,3 @@
1
-
2
1
  ._2rkol0p1{border-radius:var(--ds-radius-tile,25%)}
3
2
  ._y44vfmxe{animation:kgnpaw5 .7s ease-in-out}
4
3
  ._1mour5cr{margin-block:var(--ds-space-negative-050,-4px)}
@@ -1,4 +1,4 @@
1
- /* SyncedLocationDropdown.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SyncedLocationDropdown.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _extends from "@babel/runtime/helpers/extends";
4
4
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
@@ -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
 
@@ -1,4 +1,4 @@
1
- /* quick-insert.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* quick-insert.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./quick-insert.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -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.15",
3
+ "version": "10.3.0",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -46,18 +46,18 @@
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": "^126.2.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",
53
53
  "@babel/runtime": "^7.0.0",
54
- "@compiled/react": "^0.20.0",
54
+ "@compiled/react": "^0.22.2",
55
55
  "bind-event-listener": "^3.0.0",
56
56
  "date-fns": "^2.17.0",
57
57
  "memoize-one": "^6.0.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^116.32.0",
60
+ "@atlaskit/editor-common": "^116.33.0",
61
61
  "react": "^18.2.0",
62
62
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
63
63
  },