@atlaskit/editor-synced-block-renderer 2.1.8 → 2.2.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,16 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-renderer
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`7b80545f98f03`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b80545f98f03) -
|
|
8
|
+
Refactor to suit provider changes
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 2.1.8
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -71,9 +71,11 @@ var SyncBlockNodeComponent = function SyncBlockNodeComponent(props) {
|
|
|
71
71
|
if (!(syncBlockData !== null && syncBlockData !== void 0 && syncBlockData.content)) {
|
|
72
72
|
return /*#__PURE__*/_react.default.createElement("div", null, "Sync block not found");
|
|
73
73
|
}
|
|
74
|
-
var syncBlockDoc =
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
var syncBlockDoc = {
|
|
75
|
+
content: syncBlockData.content,
|
|
76
|
+
version: 1,
|
|
77
|
+
type: 'doc'
|
|
78
|
+
};
|
|
77
79
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
78
80
|
"data-testid": "sync-block-renderer-wrapper"
|
|
79
81
|
}, /*#__PURE__*/_react.default.createElement(_renderer.ReactRenderer, {
|
|
@@ -55,8 +55,9 @@ const SyncBlockNodeComponent = props => {
|
|
|
55
55
|
return /*#__PURE__*/React.createElement("div", null, "Sync block not found");
|
|
56
56
|
}
|
|
57
57
|
const syncBlockDoc = {
|
|
58
|
-
|
|
59
|
-
version: 1
|
|
58
|
+
content: syncBlockData.content,
|
|
59
|
+
version: 1,
|
|
60
|
+
type: 'doc'
|
|
60
61
|
};
|
|
61
62
|
return /*#__PURE__*/React.createElement("div", {
|
|
62
63
|
"data-testid": "sync-block-renderer-wrapper"
|
|
@@ -62,9 +62,11 @@ var SyncBlockNodeComponent = function SyncBlockNodeComponent(props) {
|
|
|
62
62
|
if (!(syncBlockData !== null && syncBlockData !== void 0 && syncBlockData.content)) {
|
|
63
63
|
return /*#__PURE__*/React.createElement("div", null, "Sync block not found");
|
|
64
64
|
}
|
|
65
|
-
var syncBlockDoc =
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
var syncBlockDoc = {
|
|
66
|
+
content: syncBlockData.content,
|
|
67
|
+
version: 1,
|
|
68
|
+
type: 'doc'
|
|
69
|
+
};
|
|
68
70
|
return /*#__PURE__*/React.createElement("div", {
|
|
69
71
|
"data-testid": "sync-block-renderer-wrapper"
|
|
70
72
|
}, /*#__PURE__*/React.createElement(ReactRenderer, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-synced-block-renderer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "SyncedBlockRenderer for @atlaskit/editor-plugin-synced-block",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
32
|
-
"@atlaskit/editor-synced-block-provider": "^
|
|
33
|
-
"@atlaskit/renderer": "^124.
|
|
32
|
+
"@atlaskit/editor-synced-block-provider": "^2.0.0",
|
|
33
|
+
"@atlaskit/renderer": "^124.8.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@atlaskit/editor-common": "^110.
|
|
37
|
+
"@atlaskit/editor-common": "^110.15.0",
|
|
38
38
|
"react": "^18.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|