@atlaskit/editor-synced-block-renderer 2.2.0 → 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,15 @@
|
|
|
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
|
+
|
|
3
13
|
## 2.2.0
|
|
4
14
|
|
|
5
15
|
### Minor 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
|
+
}
|
|
@@ -76,8 +76,11 @@ var SyncBlockNodeComponent = function SyncBlockNodeComponent(props) {
|
|
|
76
76
|
version: 1,
|
|
77
77
|
type: 'doc'
|
|
78
78
|
};
|
|
79
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
80
|
-
"data-
|
|
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
|
|
81
84
|
}, /*#__PURE__*/_react.default.createElement(_renderer.ReactRenderer, {
|
|
82
85
|
appearance: "full-width",
|
|
83
86
|
adfStage: "stage0",
|
|
@@ -85,7 +88,7 @@ var SyncBlockNodeComponent = function SyncBlockNodeComponent(props) {
|
|
|
85
88
|
document: syncBlockDoc,
|
|
86
89
|
disableHeadingIDs: true,
|
|
87
90
|
dataProviders: props.providers
|
|
88
|
-
}));
|
|
91
|
+
})));
|
|
89
92
|
};
|
|
90
93
|
var getSyncBlockNodeComponent = exports.getSyncBlockNodeComponent = function getSyncBlockNodeComponent(dataProvider, doc) {
|
|
91
94
|
var content = doc.content;
|
|
@@ -59,8 +59,11 @@ const SyncBlockNodeComponent = props => {
|
|
|
59
59
|
version: 1,
|
|
60
60
|
type: 'doc'
|
|
61
61
|
};
|
|
62
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
"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
|
|
64
67
|
}, /*#__PURE__*/React.createElement(ReactRenderer, {
|
|
65
68
|
appearance: "full-width",
|
|
66
69
|
adfStage: "stage0",
|
|
@@ -68,7 +71,7 @@ const SyncBlockNodeComponent = props => {
|
|
|
68
71
|
document: syncBlockDoc,
|
|
69
72
|
disableHeadingIDs: true,
|
|
70
73
|
dataProviders: props.providers
|
|
71
|
-
}));
|
|
74
|
+
})));
|
|
72
75
|
};
|
|
73
76
|
export const getSyncBlockNodeComponent = (dataProvider, doc) => {
|
|
74
77
|
const {
|
|
@@ -67,8 +67,11 @@ var SyncBlockNodeComponent = function SyncBlockNodeComponent(props) {
|
|
|
67
67
|
version: 1,
|
|
68
68
|
type: 'doc'
|
|
69
69
|
};
|
|
70
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
71
|
-
"data-
|
|
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
|
|
72
75
|
}, /*#__PURE__*/React.createElement(ReactRenderer, {
|
|
73
76
|
appearance: "full-width",
|
|
74
77
|
adfStage: "stage0",
|
|
@@ -76,7 +79,7 @@ var SyncBlockNodeComponent = function SyncBlockNodeComponent(props) {
|
|
|
76
79
|
document: syncBlockDoc,
|
|
77
80
|
disableHeadingIDs: true,
|
|
78
81
|
dataProviders: props.providers
|
|
79
|
-
}));
|
|
82
|
+
})));
|
|
80
83
|
};
|
|
81
84
|
export var getSyncBlockNodeComponent = function getSyncBlockNodeComponent(dataProvider, doc) {
|
|
82
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.2.
|
|
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": "^2.
|
|
32
|
+
"@atlaskit/editor-synced-block-provider": "^2.1.0",
|
|
33
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": {
|