@atlaskit/editor-synced-block-renderer 2.1.8 → 2.2.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,26 @@
|
|
|
1
1
|
# @atlaskit/editor-synced-block-renderer
|
|
2
2
|
|
|
3
|
+
## 2.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2261b8ade339b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2261b8ade339b) -
|
|
8
|
+
[ux] EDITOR-2255 integrate data provider for renderer sync block node
|
|
9
|
+
- [`c28cd65d12c24`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c28cd65d12c24) -
|
|
10
|
+
EDITOR-2447 Bump adf-schema to 51.3.1
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 2.2.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- [`7b80545f98f03`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b80545f98f03) -
|
|
18
|
+
Refactor to suit provider changes
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 2.1.8
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.products.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"outDir": "../../../../../tsDist/@atlaskit__editor-synced-block-renderer/app",
|
|
6
|
+
"rootDir": "../",
|
|
7
|
+
"composite": true
|
|
8
|
+
},
|
|
9
|
+
"include": [
|
|
10
|
+
"../src/**/*.ts",
|
|
11
|
+
"../src/**/*.tsx"
|
|
12
|
+
],
|
|
13
|
+
"exclude": [
|
|
14
|
+
"../src/**/__tests__/*",
|
|
15
|
+
"../src/**/*.test.*",
|
|
16
|
+
"../src/**/test.*",
|
|
17
|
+
"../src/**/examples.*",
|
|
18
|
+
"../src/**/examples/*",
|
|
19
|
+
"../src/**/examples/**/*",
|
|
20
|
+
"../src/**/*.stories.*",
|
|
21
|
+
"../src/**/stories/*",
|
|
22
|
+
"../src/**/stories/**/*"
|
|
23
|
+
],
|
|
24
|
+
"references": [
|
|
25
|
+
{
|
|
26
|
+
"path": "../../editor-synced-block-provider/afm-products/tsconfig.json"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"path": "../../renderer/afm-products/tsconfig.json"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"path": "../../editor-common/afm-products/tsconfig.json"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
@@ -71,11 +71,16 @@ 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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
var syncBlockDoc = {
|
|
75
|
+
content: syncBlockData.content,
|
|
76
|
+
version: 1,
|
|
77
|
+
type: 'doc'
|
|
78
|
+
};
|
|
79
|
+
return /*#__PURE__*/_react.default.createElement(_actions.RendererActionsContext, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
80
|
+
"data-sync-block": true,
|
|
81
|
+
"data-testid": "sync-block-renderer-wrapper",
|
|
82
|
+
"data-resource-id": props.resourceId,
|
|
83
|
+
"data-local-id": props.localId
|
|
79
84
|
}, /*#__PURE__*/_react.default.createElement(_renderer.ReactRenderer, {
|
|
80
85
|
appearance: "full-width",
|
|
81
86
|
adfStage: "stage0",
|
|
@@ -83,7 +88,7 @@ var SyncBlockNodeComponent = function SyncBlockNodeComponent(props) {
|
|
|
83
88
|
document: syncBlockDoc,
|
|
84
89
|
disableHeadingIDs: true,
|
|
85
90
|
dataProviders: props.providers
|
|
86
|
-
}));
|
|
91
|
+
})));
|
|
87
92
|
};
|
|
88
93
|
var getSyncBlockNodeComponent = exports.getSyncBlockNodeComponent = function getSyncBlockNodeComponent(dataProvider, doc) {
|
|
89
94
|
var content = doc.content;
|
|
@@ -55,11 +55,15 @@ 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
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
62
|
-
"data-
|
|
62
|
+
return /*#__PURE__*/React.createElement(RendererActionsContext, null, /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
"data-sync-block": true,
|
|
64
|
+
"data-testid": "sync-block-renderer-wrapper",
|
|
65
|
+
"data-resource-id": props.resourceId,
|
|
66
|
+
"data-local-id": props.localId
|
|
63
67
|
}, /*#__PURE__*/React.createElement(ReactRenderer, {
|
|
64
68
|
appearance: "full-width",
|
|
65
69
|
adfStage: "stage0",
|
|
@@ -67,7 +71,7 @@ const SyncBlockNodeComponent = props => {
|
|
|
67
71
|
document: syncBlockDoc,
|
|
68
72
|
disableHeadingIDs: true,
|
|
69
73
|
dataProviders: props.providers
|
|
70
|
-
}));
|
|
74
|
+
})));
|
|
71
75
|
};
|
|
72
76
|
export const getSyncBlockNodeComponent = (dataProvider, doc) => {
|
|
73
77
|
const {
|
|
@@ -62,11 +62,16 @@ 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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
var syncBlockDoc = {
|
|
66
|
+
content: syncBlockData.content,
|
|
67
|
+
version: 1,
|
|
68
|
+
type: 'doc'
|
|
69
|
+
};
|
|
70
|
+
return /*#__PURE__*/React.createElement(RendererActionsContext, null, /*#__PURE__*/React.createElement("div", {
|
|
71
|
+
"data-sync-block": true,
|
|
72
|
+
"data-testid": "sync-block-renderer-wrapper",
|
|
73
|
+
"data-resource-id": props.resourceId,
|
|
74
|
+
"data-local-id": props.localId
|
|
70
75
|
}, /*#__PURE__*/React.createElement(ReactRenderer, {
|
|
71
76
|
appearance: "full-width",
|
|
72
77
|
adfStage: "stage0",
|
|
@@ -74,7 +79,7 @@ var SyncBlockNodeComponent = function SyncBlockNodeComponent(props) {
|
|
|
74
79
|
document: syncBlockDoc,
|
|
75
80
|
disableHeadingIDs: true,
|
|
76
81
|
dataProviders: props.providers
|
|
77
|
-
}));
|
|
82
|
+
})));
|
|
78
83
|
};
|
|
79
84
|
export var getSyncBlockNodeComponent = function getSyncBlockNodeComponent(dataProvider, doc) {
|
|
80
85
|
var content = doc.content;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-synced-block-renderer",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
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": "^1.0
|
|
33
|
-
"@atlaskit/renderer": "^124.
|
|
32
|
+
"@atlaskit/editor-synced-block-provider": "^2.1.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.18.0",
|
|
38
38
|
"react": "^18.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|