@atlaskit/editor-json-transformer 8.31.7 → 8.32.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 +18 -0
- package/afm-cc/tsconfig.json +0 -1
- package/afm-products/tsconfig.json +0 -1
- package/dist/cjs/entry-points/markOverrideRules.js +12 -0
- package/dist/cjs/entry-points/sanitize-remove-marks.js +12 -0
- package/dist/cjs/entry-points/sanitize-sanitize-node.js +12 -0
- package/dist/cjs/entry-points/types.js +1 -0
- package/dist/es2019/entry-points/markOverrideRules.js +2 -0
- package/dist/es2019/entry-points/sanitize-remove-marks.js +2 -0
- package/dist/es2019/entry-points/sanitize-sanitize-node.js +2 -0
- package/dist/es2019/entry-points/types.js +0 -0
- package/dist/esm/entry-points/markOverrideRules.js +2 -0
- package/dist/esm/entry-points/sanitize-remove-marks.js +2 -0
- package/dist/esm/entry-points/sanitize-sanitize-node.js +2 -0
- package/dist/esm/entry-points/types.js +0 -0
- package/dist/types/entry-points/markOverrideRules.d.ts +1 -0
- package/dist/types/entry-points/sanitize-remove-marks.d.ts +1 -0
- package/dist/types/entry-points/sanitize-sanitize-node.d.ts +1 -0
- package/dist/types/entry-points/types.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/sanitize/sanitize-node.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/markOverrideRules.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/sanitize-remove-marks.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/sanitize-sanitize-node.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/sanitize/sanitize-node.d.ts +1 -1
- package/editor-json-transformer.docs.tsx +46 -0
- package/markOverrideRules/package.json +5 -5
- package/package.json +5 -4
- package/sanitize/remove-marks/package.json +15 -0
- package/sanitize/sanitize-node/package.json +15 -0
- package/types/package.json +5 -5
- package/afm-jira/tsconfig.json +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-json-transformer
|
|
2
2
|
|
|
3
|
+
## 8.32.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ce30a31e6369d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ce30a31e6369d) -
|
|
8
|
+
Autofix: add explicit package exports (barrel removal)
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 8.31.8
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`c9b7aaa42d05b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c9b7aaa42d05b) -
|
|
19
|
+
Mechanical type-import autofix for editor core shell packages.
|
|
20
|
+
|
|
3
21
|
## 8.31.7
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "markOverrideRuleFor", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _markOverrideRules.markOverrideRuleFor;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _markOverrideRules = require("../markOverrideRules");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "removeMarks", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _removeMarks.removeMarks;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _removeMarks = require("../sanitize/remove-marks");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "sanitizeNode", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _sanitizeNode.sanitizeNode;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _sanitizeNode = require("../sanitize/sanitize-node");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { markOverrideRuleFor } from '../markOverrideRules';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { removeMarks } from '../sanitize/remove-marks';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { sanitizeNode } from '../sanitize/sanitize-node';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { JSONDocNode, JSONNode } from '../types';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import {
|
|
2
|
+
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> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { markOverrideRuleFor } from '../markOverrideRules';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { removeMarks } from '../sanitize/remove-marks';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { sanitizeNode } from '../sanitize/sanitize-node';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { JSONDocNode, JSONNode } from '../types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import {
|
|
2
|
+
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> {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Testing structured MCP docs for review — ignore this file.
|
|
3
|
+
* Contact #dst-structured-content in Slack with questions.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import path from 'path';
|
|
7
|
+
|
|
8
|
+
import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
|
|
9
|
+
|
|
10
|
+
import packageJson from './package.json';
|
|
11
|
+
|
|
12
|
+
const packagePath = path.resolve(__dirname);
|
|
13
|
+
|
|
14
|
+
const documentation: ComponentStructuredContentSource[] = [
|
|
15
|
+
{
|
|
16
|
+
name: 'Editor Json Transformer',
|
|
17
|
+
description: 'JSON transformer',
|
|
18
|
+
status: 'general-availability',
|
|
19
|
+
import: {
|
|
20
|
+
name: 'Editor Json Transformer',
|
|
21
|
+
package: '@atlaskit/editor-json-transformer',
|
|
22
|
+
type: 'default',
|
|
23
|
+
packagePath,
|
|
24
|
+
packageJson,
|
|
25
|
+
},
|
|
26
|
+
usageGuidelines: [],
|
|
27
|
+
contentGuidelines: [],
|
|
28
|
+
accessibilityGuidelines: [],
|
|
29
|
+
keywords: ['editor', 'editor-json-transformer', 'atlaskit'],
|
|
30
|
+
categories: ['editor'],
|
|
31
|
+
examples: [
|
|
32
|
+
{
|
|
33
|
+
name: 'JSON transformer',
|
|
34
|
+
description: 'Transform between JSON and ADF.',
|
|
35
|
+
source: path.resolve(packagePath, './examples/0-json-transformer.tsx'),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Layouts',
|
|
39
|
+
description: 'JSON transformer with layout nodes.',
|
|
40
|
+
source: path.resolve(packagePath, './examples/1-layouts.tsx'),
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
export default documentation;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-json-transformer/markOverrideRules",
|
|
3
|
-
"main": "../dist/cjs/markOverrideRules.js",
|
|
4
|
-
"module": "../dist/esm/markOverrideRules.js",
|
|
5
|
-
"module:es2019": "../dist/es2019/markOverrideRules.js",
|
|
3
|
+
"main": "../dist/cjs/entry-points/markOverrideRules.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/markOverrideRules.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/markOverrideRules.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/markOverrideRules.d.ts",
|
|
7
|
+
"types": "../dist/types/entry-points/markOverrideRules.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
9
|
">=4.5 <5.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.5/markOverrideRules.d.ts"
|
|
11
|
+
"../dist/types-ts4.5/entry-points/markOverrideRules.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-json-transformer",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.32.0",
|
|
4
4
|
"description": "JSON transformer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,14 +29,15 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^52.
|
|
33
|
-
"@atlaskit/adf-utils": "^19.
|
|
32
|
+
"@atlaskit/adf-schema": "^52.11.0",
|
|
33
|
+
"@atlaskit/adf-utils": "^19.29.0",
|
|
34
34
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
36
|
"lodash": "^4.17.21"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@atlassian/a11y-jest-testing": "^0.
|
|
39
|
+
"@atlassian/a11y-jest-testing": "^0.11.0",
|
|
40
|
+
"@atlassian/structured-docs-types": "workspace:^",
|
|
40
41
|
"react": "^18.2.0"
|
|
41
42
|
},
|
|
42
43
|
"techstack": {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-json-transformer/sanitize/remove-marks",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/sanitize-remove-marks.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/sanitize-remove-marks.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/sanitize-remove-marks.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/sanitize-remove-marks.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../../dist/types-ts4.5/entry-points/sanitize-remove-marks.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-json-transformer/sanitize/sanitize-node",
|
|
3
|
+
"main": "../../dist/cjs/entry-points/sanitize-sanitize-node.js",
|
|
4
|
+
"module": "../../dist/esm/entry-points/sanitize-sanitize-node.js",
|
|
5
|
+
"module:es2019": "../../dist/es2019/entry-points/sanitize-sanitize-node.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../../dist/types/entry-points/sanitize-sanitize-node.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <5.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../../dist/types-ts4.5/entry-points/sanitize-sanitize-node.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/types/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-json-transformer/types",
|
|
3
|
-
"main": "../dist/cjs/types.js",
|
|
4
|
-
"module": "../dist/esm/types.js",
|
|
5
|
-
"module:es2019": "../dist/es2019/types.js",
|
|
3
|
+
"main": "../dist/cjs/entry-points/types.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/types.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/types.js",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"types": "../dist/types/types.d.ts",
|
|
7
|
+
"types": "../dist/types/entry-points/types.d.ts",
|
|
8
8
|
"typesVersions": {
|
|
9
9
|
">=4.5 <5.9": {
|
|
10
10
|
"*": [
|
|
11
|
-
"../dist/types-ts4.5/types.d.ts"
|
|
11
|
+
"../dist/types-ts4.5/entry-points/types.d.ts"
|
|
12
12
|
]
|
|
13
13
|
}
|
|
14
14
|
}
|
package/afm-jira/tsconfig.json
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"outDir": "../../../../../jira/tsDist/@atlaskit__editor-json-transformer/app",
|
|
6
|
-
"rootDir": "../",
|
|
7
|
-
"composite": true,
|
|
8
|
-
"noCheck": true,
|
|
9
|
-
"isolatedDeclarations": true
|
|
10
|
-
},
|
|
11
|
-
"include": ["../src/**/*.ts", "../src/**/*.tsx"],
|
|
12
|
-
"exclude": [
|
|
13
|
-
"../src/**/__tests__/*",
|
|
14
|
-
"../src/**/*.test.*",
|
|
15
|
-
"../src/**/test.*",
|
|
16
|
-
"../src/**/examples.*",
|
|
17
|
-
"../src/**/examples/*",
|
|
18
|
-
"../src/**/examples/**/*",
|
|
19
|
-
"../src/**/*.stories.*",
|
|
20
|
-
"../src/**/stories/*",
|
|
21
|
-
"../src/**/stories/**/*"
|
|
22
|
-
],
|
|
23
|
-
"references": [
|
|
24
|
-
{
|
|
25
|
-
"path": "../../adf-schema/afm-jira/tsconfig.json"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"path": "../../adf-utils/afm-jira/tsconfig.json"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "../../editor-prosemirror/afm-jira/tsconfig.json"
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|