@atlaskit/editor-json-transformer 9.6.0 → 9.8.0

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,26 @@
1
1
  # @atlaskit/editor-json-transformer
2
2
 
3
+ ## 9.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
8
+ Remove stale API report artifacts from published Platform packages.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 9.7.0
15
+
16
+ ### Minor Changes
17
+
18
+ - [`ae3b452f54cbe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ae3b452f54cbe) -
19
+ Add clean granular subpath exports `@atlaskit/editor-json-transformer/JSONTransformer-2` and
20
+ `@atlaskit/editor-json-transformer/toJSON`, so `JSONTransformer` and `toJSON` each have a
21
+ non-deprecated import target (Volt Stage-1). The root barrel and the
22
+ `@atlaskit/editor-json-transformer/jsonTransformer` shim are unchanged.
23
+
3
24
  ## 9.6.0
4
25
 
5
26
  ### Minor Changes
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@atlaskit/editor-json-transformer/JSONTransformer-2",
3
+ "main": "../dist/cjs/JSONTransformer-2.js",
4
+ "module": "../dist/esm/JSONTransformer-2.js",
5
+ "module:es2019": "../dist/es2019/JSONTransformer-2.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/JSONTransformer-2.d.ts"
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "9.6.0",
3
+ "version": "9.8.0",
4
4
  "description": "JSON transformer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,14 +21,14 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^57.0.0",
25
- "@atlaskit/adf-utils": "^20.7.0",
24
+ "@atlaskit/adf-schema": "^57.2.0",
25
+ "@atlaskit/adf-utils": "^20.8.0",
26
26
  "@atlaskit/editor-prosemirror": "^8.0.0",
27
27
  "@babel/runtime": "^7.0.0",
28
28
  "lodash": "^4.17.21"
29
29
  },
30
30
  "devDependencies": {
31
- "@atlassian/a11y-jest-testing": "^0.16.0",
31
+ "@atlassian/a11y-jest-testing": "^0.17.0",
32
32
  "@atlassian/structured-docs-types": "workspace:^",
33
33
  "react": "^19.2.0"
34
34
  },
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "@atlaskit/editor-json-transformer/toJSON",
3
+ "main": "../dist/cjs/toJSON.js",
4
+ "module": "../dist/esm/toJSON.js",
5
+ "module:es2019": "../dist/es2019/toJSON.js",
6
+ "sideEffects": false,
7
+ "types": "../dist/types/toJSON.d.ts"
8
+ }
package/report.api.md DELETED
@@ -1,75 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/editor-json-transformer"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- import type { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
20
-
21
- // @public (undocumented)
22
- export type JSONDocNode = {
23
- version: number;
24
- type: 'doc';
25
- content: JSONNode[];
26
- };
27
-
28
- // @public (undocumented)
29
- export type JSONNode = {
30
- type: string;
31
- attrs?: object;
32
- content?: Array<JSONNode | undefined>;
33
- marks?: any[];
34
- text?: string;
35
- };
36
-
37
- // @public (undocumented)
38
- export class JSONTransformer implements Transformer_2<JSONDocNode> {
39
- // (undocumented)
40
- encode(node: Node_2): JSONDocNode;
41
- encodeNode(node: Node_2): JSONNode;
42
- // (undocumented)
43
- parse(content: JSONDocNode, stage?: SchemaStage): Node_2;
44
- }
45
-
46
- // @public (undocumented)
47
- export enum SchemaStage {
48
- // (undocumented)
49
- FINAL = 'final',
50
- // (undocumented)
51
- STAGE_0 = 'stage0',
52
- }
53
-
54
- // @public (undocumented)
55
- interface Transformer_2<T> {
56
- // (undocumented)
57
- encode(node: Node_2): T;
58
- // (undocumented)
59
- parse(content: T): Node_2;
60
- }
61
-
62
- // (No @packageDocumentation comment for this package)
63
- ```
64
-
65
- <!--SECTION END: Main Entry Types-->
66
-
67
- ### Peer Dependencies
68
-
69
- <!--SECTION START: Peer Dependencies-->
70
-
71
- ```json
72
- {}
73
- ```
74
-
75
- <!--SECTION END: Peer Dependencies-->