@atlaskit/adf-schema 37.1.35 → 37.1.36
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 +6 -0
- package/dist/cjs/next-schema/groups/blockRootOnlyGroup.js +5 -1
- package/dist/cjs/next-schema/nodes/mediaSingle.js +3 -1
- package/dist/es2019/next-schema/groups/blockRootOnlyGroup.js +5 -1
- package/dist/es2019/next-schema/nodes/mediaSingle.js +3 -1
- package/dist/esm/next-schema/groups/blockRootOnlyGroup.js +5 -1
- package/dist/esm/next-schema/nodes/mediaSingle.js +3 -1
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +1 -1
- package/dist/types/next-schema/nodes/mediaSingle.d.ts +1 -1
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/json-full-schema-backwards-compat.unit.ts +0 -3
package/CHANGELOG.md
CHANGED
@@ -6,4 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.blockRootOnlyGroup = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
8
|
var _multiBodiedExtension = require("../nodes/multiBodiedExtension");
|
9
|
-
var blockRootOnlyGroup = exports.blockRootOnlyGroup = (0, _adfSchemaGenerator.adfNodeGroup)('blockRootOnly', [_multiBodiedExtension.multiBodiedExtension]
|
9
|
+
var blockRootOnlyGroup = exports.blockRootOnlyGroup = (0, _adfSchemaGenerator.adfNodeGroup)('blockRootOnly', [_multiBodiedExtension.multiBodiedExtension], {
|
10
|
+
// @DSLCompatibilityException - Generated JSON Schema does not have this.
|
11
|
+
// We should introduce this to the JSON Schema since it is in PM Spec
|
12
|
+
ignore: ['json-schema']
|
13
|
+
});
|
@@ -123,7 +123,9 @@ var mediaSingle = exports.mediaSingle = (0, _adfSchemaGenerator.adfNode)('mediaS
|
|
123
123
|
}
|
124
124
|
}).variant('width_type', {
|
125
125
|
content: [(0, _adfSchemaGenerator.$range)(1, 1, (0, _adfSchemaGenerator.$or)(_media.media, _unsupportedBlock.unsupportedBlock))],
|
126
|
-
|
126
|
+
// @DSLCompatibilityException - Generated JSON Schema does not have this.
|
127
|
+
// We should introduce this to the JSON Schema since it is in PM Spec
|
128
|
+
ignore: ['json-schema'],
|
127
129
|
marks: [],
|
128
130
|
DANGEROUS_MANUAL_OVERRIDE: {
|
129
131
|
'pm-spec': {
|
@@ -1,3 +1,7 @@
|
|
1
1
|
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
2
2
|
import { multiBodiedExtension } from '../nodes/multiBodiedExtension';
|
3
|
-
export const blockRootOnlyGroup = adfNodeGroup('blockRootOnly', [multiBodiedExtension]
|
3
|
+
export const blockRootOnlyGroup = adfNodeGroup('blockRootOnly', [multiBodiedExtension], {
|
4
|
+
// @DSLCompatibilityException - Generated JSON Schema does not have this.
|
5
|
+
// We should introduce this to the JSON Schema since it is in PM Spec
|
6
|
+
ignore: ['json-schema']
|
7
|
+
});
|
@@ -117,7 +117,9 @@ export const mediaSingle = adfNode('mediaSingle').define({
|
|
117
117
|
}
|
118
118
|
}).variant('width_type', {
|
119
119
|
content: [$range(1, 1, $or(media, unsupportedBlock))],
|
120
|
-
|
120
|
+
// @DSLCompatibilityException - Generated JSON Schema does not have this.
|
121
|
+
// We should introduce this to the JSON Schema since it is in PM Spec
|
122
|
+
ignore: ['json-schema'],
|
121
123
|
marks: [],
|
122
124
|
DANGEROUS_MANUAL_OVERRIDE: {
|
123
125
|
'pm-spec': {
|
@@ -1,3 +1,7 @@
|
|
1
1
|
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
2
2
|
import { multiBodiedExtension } from '../nodes/multiBodiedExtension';
|
3
|
-
export var blockRootOnlyGroup = adfNodeGroup('blockRootOnly', [multiBodiedExtension]
|
3
|
+
export var blockRootOnlyGroup = adfNodeGroup('blockRootOnly', [multiBodiedExtension], {
|
4
|
+
// @DSLCompatibilityException - Generated JSON Schema does not have this.
|
5
|
+
// We should introduce this to the JSON Schema since it is in PM Spec
|
6
|
+
ignore: ['json-schema']
|
7
|
+
});
|
@@ -117,7 +117,9 @@ export var mediaSingle = adfNode('mediaSingle').define({
|
|
117
117
|
}
|
118
118
|
}).variant('width_type', {
|
119
119
|
content: [$range(1, 1, $or(media, unsupportedBlock))],
|
120
|
-
|
120
|
+
// @DSLCompatibilityException - Generated JSON Schema does not have this.
|
121
|
+
// We should introduce this to the JSON Schema since it is in PM Spec
|
122
|
+
ignore: ['json-schema'],
|
121
123
|
marks: [],
|
122
124
|
DANGEROUS_MANUAL_OVERRIDE: {
|
123
125
|
'pm-spec': {
|
@@ -97,7 +97,7 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
97
97
|
};
|
98
98
|
} & {
|
99
99
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentRangeSpec[];
|
100
|
-
ignore:
|
100
|
+
ignore: "json-schema"[];
|
101
101
|
marks: any[];
|
102
102
|
DANGEROUS_MANUAL_OVERRIDE: {
|
103
103
|
'pm-spec': {
|
@@ -68,7 +68,7 @@ export declare const mediaSingle: import("@atlaskit/adf-schema-generator/dist/ty
|
|
68
68
|
};
|
69
69
|
} & {
|
70
70
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentRangeSpec[];
|
71
|
-
ignore:
|
71
|
+
ignore: "json-schema"[];
|
72
72
|
marks: any[];
|
73
73
|
DANGEROUS_MANUAL_OVERRIDE: {
|
74
74
|
'pm-spec': {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "37.1.
|
3
|
+
"version": "37.1.36",
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
5
5
|
"publishConfig": {
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
@@ -47,7 +47,7 @@
|
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
49
|
"@atlassian/adf-schema-json": "^1.16.0",
|
50
|
-
"@atlaskit/adf-schema-generator": "^1.25.
|
50
|
+
"@atlaskit/adf-schema-generator": "^1.25.7",
|
51
51
|
"@atlaskit/adf-utils": "^19.2.2",
|
52
52
|
"@atlaskit/codemod-utils": "^4.2.4",
|
53
53
|
"@atlaskit/json-schema-generator": "^3.3.9",
|
@@ -48,10 +48,7 @@ test('ADF DSL to JSON Schema backwards compatibility for full schema', () => {
|
|
48
48
|
function transformFullFixtureForKnownFailures(json) {
|
49
49
|
const definitions = json.definitions;
|
50
50
|
|
51
|
-
delete definitions.doc_node;
|
52
|
-
delete definitions.blockRootOnly_node;
|
53
51
|
delete definitions.extensionFrame_node;
|
54
|
-
delete definitions.block_content;
|
55
52
|
delete definitions.non_nestable_block_content;
|
56
53
|
delete definitions.table_row_node;
|
57
54
|
delete definitions.table_cell_content;
|