@atlaskit/adf-schema 37.1.37 → 37.1.39
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 +12 -0
- package/dist/cjs/next-schema/nodes/media.js +0 -8
- package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +10 -1
- package/dist/es2019/next-schema/nodes/media.js +0 -8
- package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +10 -1
- package/dist/esm/next-schema/nodes/media.js +0 -8
- package/dist/esm/next-schema/nodes/multiBodiedExtension.js +10 -1
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpecValidation.unit.ts +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 37.1.39
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- e2605b6: Align multi-bodied-extension node for validator spec in DSL.
|
8
|
+
|
9
|
+
## 37.1.38
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- f1944e4: throws error if applying validator spec manual override that does not exist
|
14
|
+
|
3
15
|
## 37.1.37
|
4
16
|
|
5
17
|
### Patch Changes
|
@@ -111,13 +111,5 @@ var media = exports.media = (0, _adfSchemaGenerator.adfNode)('media').define({
|
|
111
111
|
default: null
|
112
112
|
}
|
113
113
|
}]
|
114
|
-
},
|
115
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
116
|
-
'validator-spec': {
|
117
|
-
'props.attrs[1].props.url.optional': {
|
118
|
-
remove: true,
|
119
|
-
reason: '@DSLCompatibilityException - mismatch for validator spec as optional is not specified'
|
120
|
-
}
|
121
|
-
}
|
122
114
|
}
|
123
115
|
});
|
@@ -14,6 +14,7 @@ var multiBodiedExtension = exports.multiBodiedExtension = (0, _adfSchemaGenerato
|
|
14
14
|
selectable: true,
|
15
15
|
group: _blockRootOnlyGroup.blockRootOnlyGroup,
|
16
16
|
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
17
|
+
hasEmptyMarks: true,
|
17
18
|
attrs: {
|
18
19
|
extensionKey: {
|
19
20
|
type: 'string',
|
@@ -49,5 +50,13 @@ var multiBodiedExtension = exports.multiBodiedExtension = (0, _adfSchemaGenerato
|
|
49
50
|
}
|
50
51
|
},
|
51
52
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_extensionFrame.extensionFrame))],
|
52
|
-
ignore: ['json-schema']
|
53
|
+
ignore: ['json-schema'],
|
54
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
55
|
+
'validator-spec': {
|
56
|
+
'props.content.minItems': {
|
57
|
+
remove: true,
|
58
|
+
reason: "@DSLCompatibilityException - The content expression and minItems don't match in the current validator schema."
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
53
62
|
});
|
@@ -105,13 +105,5 @@ export const media = adfNode('media').define({
|
|
105
105
|
default: null
|
106
106
|
}
|
107
107
|
}]
|
108
|
-
},
|
109
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
110
|
-
'validator-spec': {
|
111
|
-
'props.attrs[1].props.url.optional': {
|
112
|
-
remove: true,
|
113
|
-
reason: '@DSLCompatibilityException - mismatch for validator spec as optional is not specified'
|
114
|
-
}
|
115
|
-
}
|
116
108
|
}
|
117
109
|
});
|
@@ -8,6 +8,7 @@ export const multiBodiedExtension = adfNode('multiBodiedExtension').define({
|
|
8
8
|
selectable: true,
|
9
9
|
group: blockRootOnlyGroup,
|
10
10
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
11
|
+
hasEmptyMarks: true,
|
11
12
|
attrs: {
|
12
13
|
extensionKey: {
|
13
14
|
type: 'string',
|
@@ -43,5 +44,13 @@ export const multiBodiedExtension = adfNode('multiBodiedExtension').define({
|
|
43
44
|
}
|
44
45
|
},
|
45
46
|
content: [$onePlus($or(extensionFrame))],
|
46
|
-
ignore: ['json-schema']
|
47
|
+
ignore: ['json-schema'],
|
48
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
49
|
+
'validator-spec': {
|
50
|
+
'props.content.minItems': {
|
51
|
+
remove: true,
|
52
|
+
reason: "@DSLCompatibilityException - The content expression and minItems don't match in the current validator schema."
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
47
56
|
});
|
@@ -105,13 +105,5 @@ export var media = adfNode('media').define({
|
|
105
105
|
default: null
|
106
106
|
}
|
107
107
|
}]
|
108
|
-
},
|
109
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
110
|
-
'validator-spec': {
|
111
|
-
'props.attrs[1].props.url.optional': {
|
112
|
-
remove: true,
|
113
|
-
reason: '@DSLCompatibilityException - mismatch for validator spec as optional is not specified'
|
114
|
-
}
|
115
|
-
}
|
116
108
|
}
|
117
109
|
});
|
@@ -8,6 +8,7 @@ export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
|
|
8
8
|
selectable: true,
|
9
9
|
group: blockRootOnlyGroup,
|
10
10
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
11
|
+
hasEmptyMarks: true,
|
11
12
|
attrs: {
|
12
13
|
extensionKey: {
|
13
14
|
type: 'string',
|
@@ -43,5 +44,13 @@ export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
|
|
43
44
|
}
|
44
45
|
},
|
45
46
|
content: [$onePlus($or(extensionFrame))],
|
46
|
-
ignore: ['json-schema']
|
47
|
+
ignore: ['json-schema'],
|
48
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
49
|
+
'validator-spec': {
|
50
|
+
'props.content.minItems': {
|
51
|
+
remove: true,
|
52
|
+
reason: "@DSLCompatibilityException - The content expression and minItems don't match in the current validator schema."
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
47
56
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "37.1.
|
3
|
+
"version": "37.1.39",
|
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.9",
|
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",
|
@@ -5,7 +5,6 @@ import adfNode from '../../../src/next-schema/full-schema.adf';
|
|
5
5
|
const newSpecs = sortNestedArrays(adfToValidatorSpec(adfNode));
|
6
6
|
const SKIP_LIST = [
|
7
7
|
'layoutSection_with_single_column', // doesn't exist in the output
|
8
|
-
'multiBodiedExtension', // doesn't match existing spec
|
9
8
|
'nestedExpand', // doesn't match existing spec
|
10
9
|
|
11
10
|
'atomic_inline', // doesn't exist in the output, not even used anywhere...
|