@atlaskit/adf-schema 42.4.0 → 42.5.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 +6 -0
- package/dist/cjs/next-schema/nodes/caption.js +1 -13
- package/dist/cjs/validator-schema/generated/validatorSpec.js +2 -2
- package/dist/es2019/next-schema/nodes/caption.js +1 -13
- package/dist/es2019/validator-schema/generated/validatorSpec.js +2 -2
- package/dist/esm/next-schema/nodes/caption.js +1 -13
- package/dist/esm/validator-schema/generated/validatorSpec.js +2 -2
- package/dist/json-schema/v1/full.json +2 -3
- package/dist/json-schema/v1/stage-0.json +2 -3
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +1 -1
- package/json-schema/v1/full.json +2 -3
- package/json-schema/v1/stage-0.json +2 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -21,17 +21,5 @@ var caption = exports.caption = (0, _adfSchemaGenerator.adfNode)('caption').defi
|
|
21
21
|
selectable: false,
|
22
22
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
23
23
|
allowAnyChildMark: true,
|
24
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_hardBreak.hardBreak, _mention.mention, _emoji.emoji, _date.date, _placeholder.placeholder, _inlineCard.inlineCard, _status.status, _text.text.use('formatted'), _text.text.use('code_inline'), _unsupportedInline.unsupportedInline))]
|
25
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
26
|
-
'validator-spec': {
|
27
|
-
'props.content.optional': {
|
28
|
-
reason: '@DSLCompatibilityException - mismatch for caption',
|
29
|
-
remove: true
|
30
|
-
},
|
31
|
-
'props.content.minItems': {
|
32
|
-
reason: '@DSLCompatibilityException - mismatch for caption',
|
33
|
-
value: 0
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
24
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_hardBreak.hardBreak, _mention.mention, _emoji.emoji, _date.date, _placeholder.placeholder, _inlineCard.inlineCard, _status.status, _text.text.use('formatted'), _text.text.use('code_inline'), _unsupportedInline.unsupportedInline))]
|
37
25
|
});
|
@@ -669,8 +669,8 @@ var caption = exports.caption = {
|
|
669
669
|
content: {
|
670
670
|
type: 'array',
|
671
671
|
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'text_formatted', 'text_code_inline']],
|
672
|
-
|
673
|
-
|
672
|
+
optional: true,
|
673
|
+
allowUnsupportedInline: true
|
674
674
|
}
|
675
675
|
}
|
676
676
|
};
|
@@ -15,17 +15,5 @@ export const caption = adfNode('caption').define({
|
|
15
15
|
selectable: false,
|
16
16
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
17
17
|
allowAnyChildMark: true,
|
18
|
-
content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
|
19
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
20
|
-
'validator-spec': {
|
21
|
-
'props.content.optional': {
|
22
|
-
reason: '@DSLCompatibilityException - mismatch for caption',
|
23
|
-
remove: true
|
24
|
-
},
|
25
|
-
'props.content.minItems': {
|
26
|
-
reason: '@DSLCompatibilityException - mismatch for caption',
|
27
|
-
value: 0
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
18
|
+
content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
|
31
19
|
});
|
@@ -663,8 +663,8 @@ export const caption = {
|
|
663
663
|
content: {
|
664
664
|
type: 'array',
|
665
665
|
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'text_formatted', 'text_code_inline']],
|
666
|
-
|
667
|
-
|
666
|
+
optional: true,
|
667
|
+
allowUnsupportedInline: true
|
668
668
|
}
|
669
669
|
}
|
670
670
|
};
|
@@ -15,17 +15,5 @@ export var caption = adfNode('caption').define({
|
|
15
15
|
selectable: false,
|
16
16
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
17
17
|
allowAnyChildMark: true,
|
18
|
-
content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
|
19
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
20
|
-
'validator-spec': {
|
21
|
-
'props.content.optional': {
|
22
|
-
reason: '@DSLCompatibilityException - mismatch for caption',
|
23
|
-
remove: true
|
24
|
-
},
|
25
|
-
'props.content.minItems': {
|
26
|
-
reason: '@DSLCompatibilityException - mismatch for caption',
|
27
|
-
value: 0
|
28
|
-
}
|
29
|
-
}
|
30
|
-
}
|
18
|
+
content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
|
31
19
|
});
|
@@ -663,8 +663,8 @@ export var caption = {
|
|
663
663
|
content: {
|
664
664
|
type: 'array',
|
665
665
|
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'text_formatted', 'text_code_inline']],
|
666
|
-
|
667
|
-
|
666
|
+
optional: true,
|
667
|
+
allowUnsupportedInline: true
|
668
668
|
}
|
669
669
|
}
|
670
670
|
};
|
@@ -840,12 +840,11 @@
|
|
840
840
|
"$ref": "#/definitions/code_inline_node"
|
841
841
|
}
|
842
842
|
]
|
843
|
-
}
|
844
|
-
"minItems": 0
|
843
|
+
}
|
845
844
|
}
|
846
845
|
},
|
847
846
|
"additionalProperties": false,
|
848
|
-
"required": ["type"
|
847
|
+
"required": ["type"]
|
849
848
|
},
|
850
849
|
"mediaSingle_caption_node": {
|
851
850
|
"allOf": [
|
@@ -870,12 +870,11 @@
|
|
870
870
|
"$ref": "#/definitions/code_inline_node"
|
871
871
|
}
|
872
872
|
]
|
873
|
-
}
|
874
|
-
"minItems": 0
|
873
|
+
}
|
875
874
|
}
|
876
875
|
},
|
877
876
|
"additionalProperties": false,
|
878
|
-
"required": ["type"
|
877
|
+
"required": ["type"]
|
879
878
|
},
|
880
879
|
"mediaSingle_caption_node": {
|
881
880
|
"allOf": [
|
package/json-schema/v1/full.json
CHANGED
@@ -840,12 +840,11 @@
|
|
840
840
|
"$ref": "#/definitions/code_inline_node"
|
841
841
|
}
|
842
842
|
]
|
843
|
-
}
|
844
|
-
"minItems": 0
|
843
|
+
}
|
845
844
|
}
|
846
845
|
},
|
847
846
|
"additionalProperties": false,
|
848
|
-
"required": ["type"
|
847
|
+
"required": ["type"]
|
849
848
|
},
|
850
849
|
"mediaSingle_caption_node": {
|
851
850
|
"allOf": [
|
@@ -870,12 +870,11 @@
|
|
870
870
|
"$ref": "#/definitions/code_inline_node"
|
871
871
|
}
|
872
872
|
]
|
873
|
-
}
|
874
|
-
"minItems": 0
|
873
|
+
}
|
875
874
|
}
|
876
875
|
},
|
877
876
|
"additionalProperties": false,
|
878
|
-
"required": ["type"
|
877
|
+
"required": ["type"]
|
879
878
|
},
|
880
879
|
"mediaSingle_caption_node": {
|
881
880
|
"allOf": [
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "42.
|
3
|
+
"version": "42.5.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.22.0",
|
49
|
-
"@atlaskit/adf-schema-generator": "^1.
|
49
|
+
"@atlaskit/adf-schema-generator": "^1.35.0",
|
50
50
|
"@atlaskit/codemod-utils": "^4.2.4",
|
51
51
|
"@babel/cli": "^7.22.9",
|
52
52
|
"@babel/core": "^7.22.9",
|