@atlaskit/editor-json-transformer 8.32.0 → 8.33.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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-json-transformer
|
|
2
2
|
|
|
3
|
+
## 8.33.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.33.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`cd85cdec5ae7e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cd85cdec5ae7e) -
|
|
14
|
+
EDITOR-7170 add transform for panel -> panel_c1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 8.32.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -56,6 +56,11 @@ function sanitizeNode(json) {
|
|
|
56
56
|
}
|
|
57
57
|
return;
|
|
58
58
|
},
|
|
59
|
+
panel_c1: function panel_c1(node) {
|
|
60
|
+
return _objectSpread(_objectSpread({}, node), {}, {
|
|
61
|
+
type: 'panel'
|
|
62
|
+
});
|
|
63
|
+
},
|
|
59
64
|
emoji: _removeMarks.removeNonAnnotationMarks,
|
|
60
65
|
mention: _removeMarks.removeNonAnnotationMarks,
|
|
61
66
|
date: _removeMarks.removeNonAnnotationMarks,
|
|
@@ -49,6 +49,11 @@ export function sanitizeNode(json) {
|
|
|
49
49
|
}
|
|
50
50
|
return;
|
|
51
51
|
},
|
|
52
|
+
panel_c1: function panel_c1(node) {
|
|
53
|
+
return _objectSpread(_objectSpread({}, node), {}, {
|
|
54
|
+
type: 'panel'
|
|
55
|
+
});
|
|
56
|
+
},
|
|
52
57
|
emoji: removeNonAnnotationMarks,
|
|
53
58
|
mention: removeNonAnnotationMarks,
|
|
54
59
|
date: removeNonAnnotationMarks,
|
|
@@ -5,42 +5,44 @@
|
|
|
5
5
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
|
|
8
|
-
import type {
|
|
8
|
+
import type { StructuredContentSource } from '@atlassian/structured-docs-types/types';
|
|
9
9
|
|
|
10
10
|
import packageJson from './package.json';
|
|
11
11
|
|
|
12
12
|
const packagePath = path.resolve(__dirname);
|
|
13
13
|
|
|
14
|
-
const documentation:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
description: 'JSON transformer',
|
|
18
|
-
status: 'general-availability',
|
|
19
|
-
import: {
|
|
14
|
+
const documentation: StructuredContentSource = {
|
|
15
|
+
components: [
|
|
16
|
+
{
|
|
20
17
|
name: 'Editor Json Transformer',
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
keywords: ['editor', 'editor-json-transformer', 'atlaskit'],
|
|
30
|
-
categories: ['editor'],
|
|
31
|
-
examples: [
|
|
32
|
-
{
|
|
33
|
-
name: 'JSON transformer',
|
|
34
|
-
description: 'Transform between JSON and ADF.',
|
|
35
|
-
source: path.resolve(packagePath, './examples/0-json-transformer.tsx'),
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'Layouts',
|
|
39
|
-
description: 'JSON transformer with layout nodes.',
|
|
40
|
-
source: path.resolve(packagePath, './examples/1-layouts.tsx'),
|
|
18
|
+
description: 'JSON transformer',
|
|
19
|
+
status: 'general-availability',
|
|
20
|
+
import: {
|
|
21
|
+
name: 'Editor Json Transformer',
|
|
22
|
+
package: '@atlaskit/editor-json-transformer',
|
|
23
|
+
type: 'default',
|
|
24
|
+
packagePath,
|
|
25
|
+
packageJson,
|
|
41
26
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
]
|
|
27
|
+
usageGuidelines: [],
|
|
28
|
+
contentGuidelines: [],
|
|
29
|
+
accessibilityGuidelines: [],
|
|
30
|
+
keywords: ['editor', 'editor-json-transformer', 'atlaskit'],
|
|
31
|
+
categories: ['editor'],
|
|
32
|
+
examples: [
|
|
33
|
+
{
|
|
34
|
+
name: 'JSON transformer',
|
|
35
|
+
description: 'Transform between JSON and ADF.',
|
|
36
|
+
source: path.resolve(packagePath, './examples/0-json-transformer.tsx'),
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'Layouts',
|
|
40
|
+
description: 'JSON transformer with layout nodes.',
|
|
41
|
+
source: path.resolve(packagePath, './examples/1-layouts.tsx'),
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
};
|
|
45
47
|
|
|
46
48
|
export default documentation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-json-transformer",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.33.1",
|
|
4
4
|
"description": "JSON transformer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^
|
|
33
|
-
"@atlaskit/adf-utils": "^19.
|
|
32
|
+
"@atlaskit/adf-schema": "^53.0.0",
|
|
33
|
+
"@atlaskit/adf-utils": "^19.33.0",
|
|
34
34
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"lodash": "^4.17.21"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
39
|
+
"@atlassian/a11y-jest-testing": "^0.12.0",
|
|
40
40
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
41
41
|
"react": "^18.2.0"
|
|
42
42
|
},
|