@atlaskit/adf-schema 51.3.1 → 51.3.2
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/generated/nodeTypes.js +1 -1
- package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +1 -1
- package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +1 -1
- package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +1 -1
- package/dist/json-schema/v1/stage-0.json +12 -12
- package/dist/types/schema/nodes/bodied-sync-block.d.ts +1 -1
- package/json-schema/v1/stage-0.json +12 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -130,7 +130,7 @@ var bodiedExtensionWithMarks = exports.bodiedExtensionWithMarks = (0, _createPMS
|
|
|
130
130
|
isolating: true
|
|
131
131
|
});
|
|
132
132
|
var bodiedSyncBlockStage0 = exports.bodiedSyncBlockStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
133
|
-
content: '(blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel |
|
|
133
|
+
content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel | rule | table | taskList | unsupportedBlock)+',
|
|
134
134
|
marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation breakout link fragment',
|
|
135
135
|
attrs: {
|
|
136
136
|
resourceId: {
|
|
@@ -40,7 +40,7 @@ var bodiedSyncBlock = exports.bodiedSyncBlock = (0, _adfSchemaGenerator.adfNode)
|
|
|
40
40
|
default: ''
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockCard.blockCard, _blockquote.blockquote, _blockquote.blockquote.use('legacy'), _list.bulletList, _codeBlock.codeBlock, _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _decisionList.decisionList, _embedCard.embedCard, _expand.expand, _heading.heading, _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _heading.heading.use('with_no_marks'), _layoutSection.layoutSection, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaSingle.mediaSingle.use('width_type'), _list.orderedList, _panel.panel,
|
|
43
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _paragraph.paragraph.use('with_no_marks'), _blockCard.blockCard, _blockquote.blockquote, _blockquote.blockquote.use('legacy'), _list.bulletList, _codeBlock.codeBlock, _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _decisionList.decisionList, _embedCard.embedCard, _expand.expand, _heading.heading, _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _heading.heading.use('with_no_marks'), _layoutSection.layoutSection, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaSingle.mediaSingle.use('width_type'), _list.orderedList, _panel.panel, _rule.rule, _tableNodes.table,
|
|
44
44
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
|
45
45
|
_tableNodes.table.use('with_nested_table'), _task.taskList, _unsupportedBlock.unsupportedBlock))]
|
|
46
46
|
});
|
|
@@ -258,7 +258,7 @@ var bodiedSyncBlock = exports.bodiedSyncBlock = {
|
|
|
258
258
|
},
|
|
259
259
|
content: {
|
|
260
260
|
type: 'array',
|
|
261
|
-
items: [['blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', '
|
|
261
|
+
items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
|
|
262
262
|
minItems: 1,
|
|
263
263
|
allowUnsupportedBlock: true
|
|
264
264
|
},
|
|
@@ -124,7 +124,7 @@ export const bodiedExtensionWithMarks = createPMNodeSpecFactory({
|
|
|
124
124
|
isolating: true
|
|
125
125
|
});
|
|
126
126
|
export const bodiedSyncBlockStage0 = createPMNodeSpecFactory({
|
|
127
|
-
content: '(blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel |
|
|
127
|
+
content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel | rule | table | taskList | unsupportedBlock)+',
|
|
128
128
|
marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation breakout link fragment',
|
|
129
129
|
attrs: {
|
|
130
130
|
resourceId: {
|
|
@@ -34,7 +34,7 @@ export const bodiedSyncBlock = adfNode('bodiedSyncBlock').define({
|
|
|
34
34
|
default: ''
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
content: [$onePlus($or(blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel,
|
|
37
|
+
content: [$onePlus($or(paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel, rule, table,
|
|
38
38
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
|
39
39
|
table.use('with_nested_table'), taskList, unsupportedBlock))]
|
|
40
40
|
});
|
|
@@ -252,7 +252,7 @@ export const bodiedSyncBlock = {
|
|
|
252
252
|
},
|
|
253
253
|
content: {
|
|
254
254
|
type: 'array',
|
|
255
|
-
items: [['blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', '
|
|
255
|
+
items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
|
|
256
256
|
minItems: 1,
|
|
257
257
|
allowUnsupportedBlock: true
|
|
258
258
|
},
|
|
@@ -124,7 +124,7 @@ export var bodiedExtensionWithMarks = createPMNodeSpecFactory({
|
|
|
124
124
|
isolating: true
|
|
125
125
|
});
|
|
126
126
|
export var bodiedSyncBlockStage0 = createPMNodeSpecFactory({
|
|
127
|
-
content: '(blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel |
|
|
127
|
+
content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel | rule | table | taskList | unsupportedBlock)+',
|
|
128
128
|
marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation breakout link fragment',
|
|
129
129
|
attrs: {
|
|
130
130
|
resourceId: {
|
|
@@ -34,7 +34,7 @@ export var bodiedSyncBlock = adfNode('bodiedSyncBlock').define({
|
|
|
34
34
|
default: ''
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
content: [$onePlus($or(blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel,
|
|
37
|
+
content: [$onePlus($or(paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel, rule, table,
|
|
38
38
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
|
39
39
|
table.use('with_nested_table'), taskList, unsupportedBlock))]
|
|
40
40
|
});
|
|
@@ -252,7 +252,7 @@ export var bodiedSyncBlock = {
|
|
|
252
252
|
},
|
|
253
253
|
content: {
|
|
254
254
|
type: 'array',
|
|
255
|
-
items: [['blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', '
|
|
255
|
+
items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
|
|
256
256
|
minItems: 1,
|
|
257
257
|
allowUnsupportedBlock: true
|
|
258
258
|
},
|
|
@@ -432,6 +432,18 @@
|
|
|
432
432
|
"type": "array",
|
|
433
433
|
"items": {
|
|
434
434
|
"anyOf": [
|
|
435
|
+
{
|
|
436
|
+
"$ref": "#/definitions/paragraph_node"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"$ref": "#/definitions/paragraph_with_alignment_node"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"$ref": "#/definitions/paragraph_with_indentation_node"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
446
|
+
},
|
|
435
447
|
{
|
|
436
448
|
"$ref": "#/definitions/blockCard_node"
|
|
437
449
|
},
|
|
@@ -486,18 +498,6 @@
|
|
|
486
498
|
{
|
|
487
499
|
"$ref": "#/definitions/panel_node"
|
|
488
500
|
},
|
|
489
|
-
{
|
|
490
|
-
"$ref": "#/definitions/paragraph_node"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
"$ref": "#/definitions/paragraph_with_alignment_node"
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
"$ref": "#/definitions/paragraph_with_indentation_node"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
500
|
-
},
|
|
501
501
|
{
|
|
502
502
|
"$ref": "#/definitions/rule_node"
|
|
503
503
|
},
|
|
@@ -39,6 +39,6 @@ export interface BodiedSyncBlockDefinition {
|
|
|
39
39
|
* @minItems 1
|
|
40
40
|
* @allowUnsupportedBlock true
|
|
41
41
|
*/
|
|
42
|
-
content: Array<BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel |
|
|
42
|
+
content: Array<Paragraph | ParagraphWithMarks | BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | Rule | Table | TaskList>;
|
|
43
43
|
}
|
|
44
44
|
export declare const bodiedSyncBlock: import("prosemirror-model").NodeSpec;
|
|
@@ -432,6 +432,18 @@
|
|
|
432
432
|
"type": "array",
|
|
433
433
|
"items": {
|
|
434
434
|
"anyOf": [
|
|
435
|
+
{
|
|
436
|
+
"$ref": "#/definitions/paragraph_node"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"$ref": "#/definitions/paragraph_with_alignment_node"
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"$ref": "#/definitions/paragraph_with_indentation_node"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
446
|
+
},
|
|
435
447
|
{
|
|
436
448
|
"$ref": "#/definitions/blockCard_node"
|
|
437
449
|
},
|
|
@@ -486,18 +498,6 @@
|
|
|
486
498
|
{
|
|
487
499
|
"$ref": "#/definitions/panel_node"
|
|
488
500
|
},
|
|
489
|
-
{
|
|
490
|
-
"$ref": "#/definitions/paragraph_node"
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
"$ref": "#/definitions/paragraph_with_alignment_node"
|
|
494
|
-
},
|
|
495
|
-
{
|
|
496
|
-
"$ref": "#/definitions/paragraph_with_indentation_node"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
500
|
-
},
|
|
501
501
|
{
|
|
502
502
|
"$ref": "#/definitions/rule_node"
|
|
503
503
|
},
|
package/package.json
CHANGED