@atlaskit/editor-json-transformer 8.7.6 → 8.7.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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +9 -9
- package/report.api.md +38 -0
- package/tsconfig.json +1 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-json-transformer",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.7",
|
|
4
4
|
"description": "JSON transformer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"./types": "./src/types.ts"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^23.
|
|
33
|
-
"@atlaskit/adf-utils": "^17.
|
|
32
|
+
"@atlaskit/adf-schema": "^23.3.0",
|
|
33
|
+
"@atlaskit/adf-utils": "^17.1.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
35
|
"lodash": "^4.17.21",
|
|
36
36
|
"prosemirror-model": "1.14.3"
|
|
@@ -38,21 +38,21 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@atlaskit/docs": "*",
|
|
40
40
|
"@atlaskit/editor-bitbucket-transformer": "^7.2.0",
|
|
41
|
-
"@atlaskit/editor-common": "^
|
|
41
|
+
"@atlaskit/editor-common": "^69.1.0",
|
|
42
42
|
"@atlaskit/editor-confluence-transformer": "^8.1.0",
|
|
43
|
-
"@atlaskit/editor-core": "^
|
|
43
|
+
"@atlaskit/editor-core": "^172.0.0",
|
|
44
44
|
"@atlaskit/editor-jira-transformer": "^8.1.0",
|
|
45
45
|
"@atlaskit/editor-markdown-transformer": "^4.1.0",
|
|
46
|
-
"@atlaskit/editor-test-helpers": "^17.
|
|
47
|
-
"@atlaskit/editor-wikimarkup-transformer": "^11.
|
|
48
|
-
"@atlaskit/util-data-test": "^17.
|
|
46
|
+
"@atlaskit/editor-test-helpers": "^17.1.0",
|
|
47
|
+
"@atlaskit/editor-wikimarkup-transformer": "^11.1.0",
|
|
48
|
+
"@atlaskit/util-data-test": "^17.5.0",
|
|
49
49
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"@types/prosemirror-model": "^1.11.0",
|
|
52
52
|
"prosemirror-view": "1.23.2",
|
|
53
53
|
"react": "^16.8.0",
|
|
54
54
|
"styled-components": "^3.2.6",
|
|
55
|
-
"typescript": "4.
|
|
55
|
+
"typescript": "4.3.5"
|
|
56
56
|
},
|
|
57
57
|
"techstack": {
|
|
58
58
|
"@atlassian/frontend": {
|
package/report.api.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/editor-json-transformer"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
import { Node as Node_2 } from 'prosemirror-model';
|
|
7
|
+
|
|
8
|
+
export declare type JSONDocNode = {
|
|
9
|
+
version: number;
|
|
10
|
+
type: 'doc';
|
|
11
|
+
content: JSONNode[];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export declare type JSONNode = {
|
|
15
|
+
type: string;
|
|
16
|
+
attrs?: object;
|
|
17
|
+
content?: Array<JSONNode | undefined>;
|
|
18
|
+
marks?: any[];
|
|
19
|
+
text?: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export declare class JSONTransformer implements Transformer_2<JSONDocNode> {
|
|
23
|
+
encode(node: Node_2): JSONDocNode;
|
|
24
|
+
private internalParse;
|
|
25
|
+
parse(content: JSONDocNode): Node_2;
|
|
26
|
+
/**
|
|
27
|
+
* This method is used to encode a single node
|
|
28
|
+
*/
|
|
29
|
+
encodeNode(node: Node_2): JSONNode;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare interface Transformer_2<T> {
|
|
33
|
+
encode(node: Node_2): T;
|
|
34
|
+
parse(content: T): Node_2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {};
|
|
38
|
+
```
|