@atlaskit/editor-json-transformer 8.10.2 → 8.10.4

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,17 @@
1
1
  # @atlaskit/editor-json-transformer
2
2
 
3
+ ## 8.10.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4e6f1bf8511`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4e6f1bf8511) - [ED-19233] Import prosemirror libraries from internal facade package
8
+
9
+ ## 8.10.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`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
14
+
3
15
  ## 8.10.2
4
16
 
5
17
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.10.2",
3
+ "version": "8.10.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.10.2",
3
+ "version": "8.10.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.10.2",
3
+ "version": "8.10.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,4 +1,4 @@
1
- import type { Node as PMNode } from 'prosemirror-model';
1
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { JSONDocNode, JSONNode } from './types';
3
3
  export type { JSONDocNode, JSONNode } from './types';
4
4
  interface Transformer<T> {
@@ -1,4 +1,4 @@
1
- import type { Node as PMNode } from 'prosemirror-model';
1
+ import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { JSONDocNode, JSONNode } from './types';
3
3
  export type { JSONDocNode, JSONNode } from './types';
4
4
  interface Transformer<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.10.2",
3
+ "version": "8.10.4",
4
4
  "description": "JSON transformer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -37,19 +37,15 @@
37
37
  "./types": "./src/types.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@atlaskit/adf-schema": "^26.2.0",
40
+ "@atlaskit/adf-schema": "^26.4.0",
41
41
  "@atlaskit/adf-utils": "^19.0.0",
42
42
  "@babel/runtime": "^7.0.0",
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",
46
+ "@atlaskit/editor-prosemirror": "1.0.2",
49
47
  "@atlaskit/editor-test-helpers": "^18.10.0",
50
- "@atlaskit/util-data-test": "^17.8.0",
51
48
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
52
- "prosemirror-model": "1.16.0",
53
49
  "react": "^16.8.0",
54
50
  "typescript": "~4.9.5"
55
51
  },
package/report.api.md CHANGED
@@ -15,7 +15,7 @@
15
15
  <!--SECTION START: Main Entry Types-->
16
16
 
17
17
  ```ts
18
- import type { Node as Node_2 } from 'prosemirror-model';
18
+ import type { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
19
19
 
20
20
  // @public (undocumented)
21
21
  export type JSONDocNode = {
@@ -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 '@atlaskit/editor-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
+ ```