@atlaskit/editor-json-transformer 8.10.2 → 8.10.3
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 +1 -5
- package/tmp/api-report-tmp.d.ts +52 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-json-transformer
|
|
2
2
|
|
|
3
|
+
## 8.10.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`1bfa8537fae`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1bfa8537fae) - [ED-18163] Removed last circular dependencies by moving transformer tests to their related transformers and removing an unused dependency
|
|
8
|
+
|
|
3
9
|
## 8.10.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
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.10.
|
|
3
|
+
"version": "8.10.3",
|
|
4
4
|
"description": "JSON transformer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,11 +43,7 @@
|
|
|
43
43
|
"lodash": "^4.17.21"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^74.20.0",
|
|
47
|
-
"@atlaskit/editor-confluence-transformer": "^8.2.0",
|
|
48
|
-
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
49
46
|
"@atlaskit/editor-test-helpers": "^18.10.0",
|
|
50
|
-
"@atlaskit/util-data-test": "^17.8.0",
|
|
51
47
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
52
48
|
"prosemirror-model": "1.16.0",
|
|
53
49
|
"react": "^16.8.0",
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
|
|
7
|
+
import type { Node as Node_2 } from 'prosemirror-model';
|
|
8
|
+
|
|
9
|
+
// @public (undocumented)
|
|
10
|
+
export type JSONDocNode = {
|
|
11
|
+
version: number;
|
|
12
|
+
type: 'doc';
|
|
13
|
+
content: JSONNode[];
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
// @public (undocumented)
|
|
17
|
+
export type JSONNode = {
|
|
18
|
+
type: string;
|
|
19
|
+
attrs?: object;
|
|
20
|
+
content?: Array<JSONNode | undefined>;
|
|
21
|
+
marks?: any[];
|
|
22
|
+
text?: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// @public (undocumented)
|
|
26
|
+
export class JSONTransformer implements Transformer_2<JSONDocNode> {
|
|
27
|
+
// (undocumented)
|
|
28
|
+
encode(node: Node_2): JSONDocNode;
|
|
29
|
+
encodeNode(node: Node_2): JSONNode;
|
|
30
|
+
// (undocumented)
|
|
31
|
+
parse(content: JSONDocNode, stage?: SchemaStage): Node_2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// @public (undocumented)
|
|
35
|
+
export enum SchemaStage {
|
|
36
|
+
// (undocumented)
|
|
37
|
+
FINAL = "final",
|
|
38
|
+
// (undocumented)
|
|
39
|
+
STAGE_0 = "stage0"
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// @public (undocumented)
|
|
43
|
+
interface Transformer_2<T> {
|
|
44
|
+
// (undocumented)
|
|
45
|
+
encode(node: Node_2): T;
|
|
46
|
+
// (undocumented)
|
|
47
|
+
parse(content: T): Node_2;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// (No @packageDocumentation comment for this package)
|
|
51
|
+
|
|
52
|
+
```
|