@atlaskit/editor-plugin-synced-block 5.3.6 → 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,15 @@
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
+
3
13
  ## 5.3.6
4
14
 
5
15
  ### 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
@@ -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
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "5.3.6",
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",