@atlaskit/editor-plugin-synced-block 5.3.5 → 5.3.7

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
+ ## 5.3.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`dac15aa628811`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dac15aa628811) -
8
+ [ux] fix wrapped media/embed link is displayed out of border in synced block
9
+ - [`aa5302b457078`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aa5302b457078) -
10
+ [ux] EDITOR-4763 Ensure initial source sync block data are always registered
11
+ - Updated dependencies
12
+
13
+ ## 5.3.6
14
+
15
+ ### Patch Changes
16
+
17
+ - [`e2542bcabe129`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e2542bcabe129) -
18
+ [ux] EDITOR-4753 fix sync block label styles and border styles when it is in error state
19
+
3
20
  ## 5.3.5
4
21
 
5
22
  ### Patch Changes
@@ -65,7 +65,7 @@ var createSyncedBlock = exports.createSyncedBlock = function createSyncedBlock(_
65
65
 
66
66
  // Save the new node with empty content to backend
67
67
  // This is so that the node can be copied and referenced without the source being saved/published
68
- syncBlockStore.sourceManager.createBodiedSyncBlockNode(_attrs);
68
+ syncBlockStore.sourceManager.createBodiedSyncBlockNode(_attrs, _newBodiedSyncBlockNode);
69
69
  tr.replaceWith(conversionInfo.from, conversionInfo.to, _newBodiedSyncBlockNode).scrollIntoView();
70
70
 
71
71
  // set selection to the start of the previous selection for the position taken up by the start of the new synced block
@@ -58,7 +58,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(stat
58
58
  onClick: (0, _editorCommands.removeSyncedBlock)(api),
59
59
  icon: _delete.default,
60
60
  testId: (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding') ? _types.SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarReferenceDelete : undefined
61
- }, hoverDecorationProps(nodeType, _consts.akEditorSelectedNodeClassName));
61
+ }, hoverDecorationProps(nodeType, (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding') ? undefined : _consts.akEditorSelectedNodeClassName));
62
62
  items.push(deleteButton);
63
63
  } else {
64
64
  if (!isErroredBlock && (0, _platformFeatureFlags.fg)('platform_synced_block_dogfooding')) {
@@ -65,7 +65,7 @@ export const createSyncedBlock = ({
65
65
 
66
66
  // Save the new node with empty content to backend
67
67
  // This is so that the node can be copied and referenced without the source being saved/published
68
- syncBlockStore.sourceManager.createBodiedSyncBlockNode(attrs);
68
+ syncBlockStore.sourceManager.createBodiedSyncBlockNode(attrs, newBodiedSyncBlockNode);
69
69
  tr.replaceWith(conversionInfo.from, conversionInfo.to, newBodiedSyncBlockNode).scrollIntoView();
70
70
 
71
71
  // set selection to the start of the previous selection for the position taken up by the start of the new synced block
@@ -53,7 +53,7 @@ export const getToolbarConfig = (state, intl, api, syncBlockStore) => {
53
53
  onClick: removeSyncedBlock(api),
54
54
  icon: DeleteIcon,
55
55
  testId: fg('platform_synced_block_dogfooding') ? SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarReferenceDelete : undefined,
56
- ...hoverDecorationProps(nodeType, akEditorSelectedNodeClassName)
56
+ ...hoverDecorationProps(nodeType, fg('platform_synced_block_dogfooding') ? undefined : akEditorSelectedNodeClassName)
57
57
  };
58
58
  items.push(deleteButton);
59
59
  } else {
@@ -59,7 +59,7 @@ export var createSyncedBlock = function createSyncedBlock(_ref) {
59
59
 
60
60
  // Save the new node with empty content to backend
61
61
  // This is so that the node can be copied and referenced without the source being saved/published
62
- syncBlockStore.sourceManager.createBodiedSyncBlockNode(_attrs);
62
+ syncBlockStore.sourceManager.createBodiedSyncBlockNode(_attrs, _newBodiedSyncBlockNode);
63
63
  tr.replaceWith(conversionInfo.from, conversionInfo.to, _newBodiedSyncBlockNode).scrollIntoView();
64
64
 
65
65
  // set selection to the start of the previous selection for the position taken up by the start of the new synced block
@@ -49,7 +49,7 @@ export var getToolbarConfig = function getToolbarConfig(state, intl, api, syncBl
49
49
  onClick: removeSyncedBlock(api),
50
50
  icon: DeleteIcon,
51
51
  testId: fg('platform_synced_block_dogfooding') ? SYNCED_BLOCK_BUTTON_TEST_ID.syncedBlockToolbarReferenceDelete : undefined
52
- }, hoverDecorationProps(nodeType, akEditorSelectedNodeClassName));
52
+ }, hoverDecorationProps(nodeType, fg('platform_synced_block_dogfooding') ? undefined : akEditorSelectedNodeClassName));
53
53
  items.push(deleteButton);
54
54
  } else {
55
55
  if (!isErroredBlock && fg('platform_synced_block_dogfooding')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "5.3.5",
3
+ "version": "5.3.7",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/editor-json-transformer": "^8.31.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^7.0.0",
36
36
  "@atlaskit/editor-plugin-block-menu": "^6.0.0",
37
- "@atlaskit/editor-plugin-connectivity": "7.0.0",
37
+ "@atlaskit/editor-plugin-connectivity": "7.0.1",
38
38
  "@atlaskit/editor-plugin-decorations": "^7.0.0",
39
39
  "@atlaskit/editor-plugin-floating-toolbar": "^9.1.0",
40
40
  "@atlaskit/editor-plugin-selection": "^7.0.0",