@atlaskit/editor-json-transformer 8.26.1 → 8.27.1

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,20 @@
1
1
  # @atlaskit/editor-json-transformer
2
2
 
3
+ ## 8.27.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
11
+ ## 8.27.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`72f94befc61f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72f94befc61f2) -
16
+ replace method-style signatures with function-style signatures
17
+
3
18
  ## 8.26.1
4
19
 
5
20
  ### Patch Changes
@@ -3,9 +3,9 @@
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
6
- "composite": true,
7
6
  "outDir": "../../../../../confluence/tsDist/@atlaskit__editor-json-transformer",
8
- "rootDir": "../"
7
+ "rootDir": "../",
8
+ "composite": true
9
9
  },
10
10
  "include": [
11
11
  "../src/**/*.ts",
@@ -3,8 +3,8 @@ import { type SanitizeNodeOptions } from './sanitize/sanitize-node';
3
3
  import type { JSONDocNode, JSONNode } from './types';
4
4
  export type { JSONDocNode, JSONNode } from './types';
5
5
  interface Transformer<T> {
6
- encode(node: PMNode): T;
7
- parse(content: T): PMNode;
6
+ encode: (node: PMNode) => T;
7
+ parse: (content: T) => PMNode;
8
8
  }
9
9
  export declare enum SchemaStage {
10
10
  FINAL = "final",
@@ -1,8 +1,8 @@
1
1
  interface MarkJson {
2
- type: string;
3
2
  attrs: {
4
3
  [key: string]: any;
5
4
  };
5
+ type: string;
6
6
  }
7
7
  type CanOverrideUnsupportedMark = (markJson?: MarkJson) => boolean;
8
8
  interface MarkOverrideRule {
@@ -1,15 +1,15 @@
1
1
  import type { JSONNode } from '../index';
2
2
  export declare function removeMarks(node: JSONNode): {
3
- type: string;
4
3
  attrs?: object;
5
4
  content?: Array<JSONNode | undefined>;
6
5
  marks?: any[];
7
6
  text?: string;
7
+ type: string;
8
8
  };
9
9
  export declare function removeNonAnnotationMarks(node: JSONNode): {
10
- type: string;
11
10
  attrs?: object;
12
11
  content?: Array<JSONNode | undefined>;
13
12
  marks?: any[];
14
13
  text?: string;
14
+ type: string;
15
15
  };
@@ -1,12 +1,12 @@
1
1
  export type JSONNode = {
2
- type: string;
3
2
  attrs?: object;
4
3
  content?: Array<JSONNode | undefined>;
5
4
  marks?: any[];
6
5
  text?: string;
6
+ type: string;
7
7
  };
8
8
  export type JSONDocNode = {
9
- version: number;
10
- type: 'doc';
11
9
  content: JSONNode[];
10
+ type: 'doc';
11
+ version: number;
12
12
  };
@@ -3,8 +3,8 @@ import { type SanitizeNodeOptions } from './sanitize/sanitize-node';
3
3
  import type { JSONDocNode, JSONNode } from './types';
4
4
  export type { JSONDocNode, JSONNode } from './types';
5
5
  interface Transformer<T> {
6
- encode(node: PMNode): T;
7
- parse(content: T): PMNode;
6
+ encode: (node: PMNode) => T;
7
+ parse: (content: T) => PMNode;
8
8
  }
9
9
  export declare enum SchemaStage {
10
10
  FINAL = "final",
@@ -1,8 +1,8 @@
1
1
  interface MarkJson {
2
- type: string;
3
2
  attrs: {
4
3
  [key: string]: any;
5
4
  };
5
+ type: string;
6
6
  }
7
7
  type CanOverrideUnsupportedMark = (markJson?: MarkJson) => boolean;
8
8
  interface MarkOverrideRule {
@@ -1,15 +1,15 @@
1
1
  import type { JSONNode } from '../index';
2
2
  export declare function removeMarks(node: JSONNode): {
3
- type: string;
4
3
  attrs?: object;
5
4
  content?: Array<JSONNode | undefined>;
6
5
  marks?: any[];
7
6
  text?: string;
7
+ type: string;
8
8
  };
9
9
  export declare function removeNonAnnotationMarks(node: JSONNode): {
10
- type: string;
11
10
  attrs?: object;
12
11
  content?: Array<JSONNode | undefined>;
13
12
  marks?: any[];
14
13
  text?: string;
14
+ type: string;
15
15
  };
@@ -1,12 +1,12 @@
1
1
  export type JSONNode = {
2
- type: string;
3
2
  attrs?: object;
4
3
  content?: Array<JSONNode | undefined>;
5
4
  marks?: any[];
6
5
  text?: string;
6
+ type: string;
7
7
  };
8
8
  export type JSONDocNode = {
9
- version: number;
10
- type: 'doc';
11
9
  content: JSONNode[];
10
+ type: 'doc';
11
+ version: number;
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.26.1",
3
+ "version": "8.27.1",
4
4
  "description": "JSON transformer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"