@atlaskit/adf-schema 45.0.0 → 45.1.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 +10 -0
- package/dist/cjs/next-schema/nodes/codeBlock.js +0 -4
- package/dist/cjs/next-schema/nodes/mediaInline.js +0 -8
- package/dist/cjs/validator-schema/generated/validatorSpec.js +8 -0
- package/dist/es2019/next-schema/nodes/codeBlock.js +0 -4
- package/dist/es2019/next-schema/nodes/mediaInline.js +0 -8
- package/dist/es2019/validator-schema/generated/validatorSpec.js +8 -0
- package/dist/esm/next-schema/nodes/codeBlock.js +0 -4
- package/dist/esm/next-schema/nodes/mediaInline.js +0 -8
- package/dist/esm/validator-schema/generated/validatorSpec.js +8 -0
- package/dist/json-schema/v1/full.json +3 -0
- package/dist/json-schema/v1/stage-0.json +3 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +8 -0
- package/json-schema/v1/full.json +3 -0
- package/json-schema/v1/stage-0.json +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 45.1.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- aab5f4d: Validator will now correctly validate media inline nodes with the URL attribute
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- 162fff6: Remove exception for uniqueId on codeBlock and allow property on validator and json schema.
|
12
|
+
|
3
13
|
## 45.0.0
|
4
14
|
|
5
15
|
### Major Changes
|
@@ -29,10 +29,6 @@ var codeBlock = exports.codeBlock = (0, _adfSchemaGenerator.adfNode)('codeBlock'
|
|
29
29
|
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_text.text, _unsupportedInline.unsupportedInline))],
|
30
30
|
DANGEROUS_MANUAL_OVERRIDE: {
|
31
31
|
'validator-spec': {
|
32
|
-
'props.attrs.props.uniqueId': {
|
33
|
-
remove: true,
|
34
|
-
reason: '@DSLCompatibilityException - uniqueId is missing in the existing validator spec'
|
35
|
-
},
|
36
32
|
'props.content.items': {
|
37
33
|
value: [['text', {
|
38
34
|
props: {
|
@@ -97,13 +97,5 @@ var mediaInline = exports.mediaInline = (0, _adfSchemaGenerator.adfNode)('mediaI
|
|
97
97
|
type: 'object',
|
98
98
|
optional: true
|
99
99
|
}
|
100
|
-
},
|
101
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
102
|
-
'validator-spec': {
|
103
|
-
'props.attrs.props.url': {
|
104
|
-
remove: true,
|
105
|
-
reason: '@DSLCompatibilityException - url is not specified on the validator spec (but it probably should be)'
|
106
|
-
}
|
107
|
-
}
|
108
100
|
}
|
109
101
|
});
|
@@ -281,6 +281,10 @@ var codeBlock = exports.codeBlock = {
|
|
281
281
|
language: {
|
282
282
|
type: 'string',
|
283
283
|
optional: true
|
284
|
+
},
|
285
|
+
uniqueId: {
|
286
|
+
type: 'string',
|
287
|
+
optional: true
|
284
288
|
}
|
285
289
|
},
|
286
290
|
optional: true
|
@@ -1043,6 +1047,10 @@ var mediaInline = exports.mediaInline = {
|
|
1043
1047
|
values: ['link', 'file', 'image'],
|
1044
1048
|
optional: true
|
1045
1049
|
},
|
1050
|
+
url: {
|
1051
|
+
type: 'string',
|
1052
|
+
optional: true
|
1053
|
+
},
|
1046
1054
|
id: {
|
1047
1055
|
minLength: 1,
|
1048
1056
|
type: 'string'
|
@@ -23,10 +23,6 @@ export const codeBlock = adfNode('codeBlock').define({
|
|
23
23
|
content: [$zeroPlus($or(text, unsupportedInline))],
|
24
24
|
DANGEROUS_MANUAL_OVERRIDE: {
|
25
25
|
'validator-spec': {
|
26
|
-
'props.attrs.props.uniqueId': {
|
27
|
-
remove: true,
|
28
|
-
reason: '@DSLCompatibilityException - uniqueId is missing in the existing validator spec'
|
29
|
-
},
|
30
26
|
'props.content.items': {
|
31
27
|
value: [['text', {
|
32
28
|
props: {
|
@@ -91,13 +91,5 @@ export const mediaInline = adfNode('mediaInline').define({
|
|
91
91
|
type: 'object',
|
92
92
|
optional: true
|
93
93
|
}
|
94
|
-
},
|
95
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
96
|
-
'validator-spec': {
|
97
|
-
'props.attrs.props.url': {
|
98
|
-
remove: true,
|
99
|
-
reason: '@DSLCompatibilityException - url is not specified on the validator spec (but it probably should be)'
|
100
|
-
}
|
101
|
-
}
|
102
94
|
}
|
103
95
|
});
|
@@ -275,6 +275,10 @@ export const codeBlock = {
|
|
275
275
|
language: {
|
276
276
|
type: 'string',
|
277
277
|
optional: true
|
278
|
+
},
|
279
|
+
uniqueId: {
|
280
|
+
type: 'string',
|
281
|
+
optional: true
|
278
282
|
}
|
279
283
|
},
|
280
284
|
optional: true
|
@@ -1037,6 +1041,10 @@ export const mediaInline = {
|
|
1037
1041
|
values: ['link', 'file', 'image'],
|
1038
1042
|
optional: true
|
1039
1043
|
},
|
1044
|
+
url: {
|
1045
|
+
type: 'string',
|
1046
|
+
optional: true
|
1047
|
+
},
|
1040
1048
|
id: {
|
1041
1049
|
minLength: 1,
|
1042
1050
|
type: 'string'
|
@@ -23,10 +23,6 @@ export var codeBlock = adfNode('codeBlock').define({
|
|
23
23
|
content: [$zeroPlus($or(text, unsupportedInline))],
|
24
24
|
DANGEROUS_MANUAL_OVERRIDE: {
|
25
25
|
'validator-spec': {
|
26
|
-
'props.attrs.props.uniqueId': {
|
27
|
-
remove: true,
|
28
|
-
reason: '@DSLCompatibilityException - uniqueId is missing in the existing validator spec'
|
29
|
-
},
|
30
26
|
'props.content.items': {
|
31
27
|
value: [['text', {
|
32
28
|
props: {
|
@@ -91,13 +91,5 @@ export var mediaInline = adfNode('mediaInline').define({
|
|
91
91
|
type: 'object',
|
92
92
|
optional: true
|
93
93
|
}
|
94
|
-
},
|
95
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
96
|
-
'validator-spec': {
|
97
|
-
'props.attrs.props.url': {
|
98
|
-
remove: true,
|
99
|
-
reason: '@DSLCompatibilityException - url is not specified on the validator spec (but it probably should be)'
|
100
|
-
}
|
101
|
-
}
|
102
94
|
}
|
103
95
|
});
|
@@ -275,6 +275,10 @@ export var codeBlock = {
|
|
275
275
|
language: {
|
276
276
|
type: 'string',
|
277
277
|
optional: true
|
278
|
+
},
|
279
|
+
uniqueId: {
|
280
|
+
type: 'string',
|
281
|
+
optional: true
|
278
282
|
}
|
279
283
|
},
|
280
284
|
optional: true
|
@@ -1037,6 +1041,10 @@ export var mediaInline = {
|
|
1037
1041
|
values: ['link', 'file', 'image'],
|
1038
1042
|
optional: true
|
1039
1043
|
},
|
1044
|
+
url: {
|
1045
|
+
type: 'string',
|
1046
|
+
optional: true
|
1047
|
+
},
|
1040
1048
|
id: {
|
1041
1049
|
minLength: 1,
|
1042
1050
|
type: 'string'
|
@@ -286,6 +286,10 @@ export declare const codeBlock: {
|
|
286
286
|
type: string;
|
287
287
|
optional: boolean;
|
288
288
|
};
|
289
|
+
uniqueId: {
|
290
|
+
type: string;
|
291
|
+
optional: boolean;
|
292
|
+
};
|
289
293
|
};
|
290
294
|
optional: boolean;
|
291
295
|
};
|
@@ -1053,6 +1057,10 @@ export declare const mediaInline: {
|
|
1053
1057
|
values: string[];
|
1054
1058
|
optional: boolean;
|
1055
1059
|
};
|
1060
|
+
url: {
|
1061
|
+
type: string;
|
1062
|
+
optional: boolean;
|
1063
|
+
};
|
1056
1064
|
id: {
|
1057
1065
|
minLength: number;
|
1058
1066
|
type: string;
|
package/json-schema/v1/full.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "45.
|
3
|
+
"version": "45.1.0",
|
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/"
|
@@ -46,7 +46,7 @@
|
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
48
48
|
"@atlassian/adf-schema-json": "^1.24.0",
|
49
|
-
"@atlaskit/adf-schema-generator": "^1.38.
|
49
|
+
"@atlaskit/adf-schema-generator": "^1.38.3",
|
50
50
|
"@atlaskit/codemod-utils": "^4.2.4",
|
51
51
|
"@babel/cli": "^7.22.9",
|
52
52
|
"@babel/core": "^7.22.9",
|