@atlaskit/editor-json-transformer 8.9.2 → 8.9.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.9.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8f67b856676`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f67b856676) - [ED-18156] Remove circular dependency cycles for editor-json-transformer & editor-bitbucket-transformer
8
+
9
+ ## 8.9.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
14
+
3
15
  ## 8.9.2
4
16
 
5
17
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.9.2",
3
+ "version": "8.9.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.9.2",
3
+ "version": "8.9.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.9.2",
3
+ "version": "8.9.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,4 +1,4 @@
1
- import { Node as PMNode } from 'prosemirror-model';
1
+ import type { Node as PMNode } from '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 { Node as PMNode } from 'prosemirror-model';
1
+ import type { Node as PMNode } from '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.9.2",
3
+ "version": "8.9.4",
4
4
  "description": "JSON transformer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,7 +25,7 @@
25
25
  "atlassian": {
26
26
  "team": "Editor",
27
27
  "inPublicMirror": true,
28
- "releaseModel": "scheduled",
28
+ "releaseModel": "continuous",
29
29
  "website": {
30
30
  "name": "Editor Json Transformer"
31
31
  }
@@ -37,27 +37,24 @@
37
37
  "./types": "./src/types.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@atlaskit/adf-schema": "^25.6.0",
41
- "@atlaskit/adf-utils": "^18.2.0",
40
+ "@atlaskit/adf-schema": "^25.8.0",
41
+ "@atlaskit/adf-utils": "^18.3.0",
42
42
  "@babel/runtime": "^7.0.0",
43
- "lodash": "^4.17.21",
44
- "prosemirror-model": "1.16.0"
43
+ "lodash": "^4.17.21"
45
44
  },
46
45
  "devDependencies": {
47
46
  "@atlaskit/docs": "*",
48
47
  "@atlaskit/editor-bitbucket-transformer": "^8.1.0",
49
- "@atlaskit/editor-common": "^74.1.0",
48
+ "@atlaskit/editor-common": "^74.5.0",
50
49
  "@atlaskit/editor-confluence-transformer": "^8.2.0",
51
- "@atlaskit/editor-core": "^183.1.0",
52
50
  "@atlaskit/editor-jira-transformer": "^8.3.0",
53
51
  "@atlaskit/editor-markdown-transformer": "^5.2.0",
54
- "@atlaskit/editor-test-helpers": "^18.3.0",
52
+ "@atlaskit/editor-test-helpers": "^18.5.0",
55
53
  "@atlaskit/editor-wikimarkup-transformer": "^11.2.0",
56
54
  "@atlaskit/util-data-test": "^17.8.0",
57
55
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
58
- "@emotion/react": "^11.7.1",
59
56
  "@types/prosemirror-model": "^1.11.0",
60
- "prosemirror-view": "1.23.7",
57
+ "prosemirror-model": "1.16.0",
61
58
  "react": "^16.8.0",
62
59
  "typescript": "~4.9.5"
63
60
  },
package/report.api.md CHANGED
@@ -15,7 +15,7 @@
15
15
  <!--SECTION START: Main Entry Types-->
16
16
 
17
17
  ```ts
18
- import { Node as Node_2 } from 'prosemirror-model';
18
+ import type { Node as Node_2 } from '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 '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
+ ```