@atlaskit/adf-schema 40.10.0 → 41.0.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/tableCell.js +1 -5
- package/dist/cjs/next-schema/nodes/tableCellContent.js +1 -1
- package/dist/cjs/next-schema/nodes/tableHeader.js +0 -4
- package/dist/cjs/validator-schema/generated/validatorSpec.js +35 -18
- package/dist/es2019/next-schema/nodes/tableCell.js +1 -5
- package/dist/es2019/next-schema/nodes/tableCellContent.js +1 -1
- package/dist/es2019/next-schema/nodes/tableHeader.js +0 -4
- package/dist/es2019/validator-schema/generated/validatorSpec.js +34 -17
- package/dist/esm/next-schema/nodes/tableCell.js +1 -5
- package/dist/esm/next-schema/nodes/tableCellContent.js +1 -1
- package/dist/esm/next-schema/nodes/tableHeader.js +0 -4
- package/dist/esm/validator-schema/generated/validatorSpec.js +34 -17
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +29 -12
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -1
package/CHANGELOG.md
CHANGED
@@ -42,12 +42,8 @@ var tableCell = exports.tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell'
|
|
42
42
|
DANGEROUS_MANUAL_OVERRIDE: {
|
43
43
|
'validator-spec': {
|
44
44
|
required: {
|
45
|
-
reason: '@DSLCompatibilityException - required for
|
45
|
+
reason: '@DSLCompatibilityException - required for tableCell validator spec',
|
46
46
|
value: ['content']
|
47
|
-
},
|
48
|
-
'props.content': {
|
49
|
-
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
50
|
-
value: 'tableCell_content'
|
51
47
|
}
|
52
48
|
}
|
53
49
|
}
|
@@ -9,6 +9,6 @@ var _tableCellContentPseudoGroup = require("../groups/tableCellContentPseudoGrou
|
|
9
9
|
// @DSLCompatibilityException This is only used by JSON schema to group the table cell content into a definition.
|
10
10
|
// This node should be deleted and the content should be replicated in the JSON schema for table header and table cell node
|
11
11
|
var tableCellContent = exports.tableCellContent = (0, _adfSchemaGenerator.adfNode)('tableCellContent').define({
|
12
|
-
ignore: ['pm-spec'],
|
12
|
+
ignore: ['pm-spec', 'validator-spec'],
|
13
13
|
content: [_tableCellContentPseudoGroup.tableCellContentPseudoGroup]
|
14
14
|
});
|
@@ -44,10 +44,6 @@ var tableHeader = exports.tableHeader = (0, _adfSchemaGenerator.adfNode)('tableH
|
|
44
44
|
required: {
|
45
45
|
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
46
46
|
value: ['content']
|
47
|
-
},
|
48
|
-
'props.content': {
|
49
|
-
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
50
|
-
value: 'tableCell_content'
|
51
47
|
}
|
52
48
|
}
|
53
49
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.unsupportedBlock = exports.underline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.
|
6
|
+
exports.unsupportedBlock = exports.underline = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCellContent = exports.tableCell = exports.table = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_alignment = exports.paragraph = exports.panel_with_nested_blockquote = exports.panel_legacy = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem_with_nested_decision = exports.listItem_legacy = exports.listItem = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_content = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.indentation = exports.image = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_without_nested_expand = exports.expand_with_no_mark = exports.expand_with_breakout_mark = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.confluenceInlineComment = exports.codeBlock_with_no_marks = exports.codeBlock_with_marks = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote_without_nested_codeblock_or_media = exports.blockquote_legacy = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.atomic_inline = exports.annotation = exports.alignment = void 0;
|
7
7
|
exports.unsupportedInline = void 0;
|
8
8
|
var blockCard = exports.blockCard = {
|
9
9
|
props: {
|
@@ -540,7 +540,7 @@ var status = exports.status = {
|
|
540
540
|
}
|
541
541
|
}
|
542
542
|
};
|
543
|
-
var
|
543
|
+
var text_formatted = exports.text_formatted = ['text', {
|
544
544
|
props: {
|
545
545
|
marks: {
|
546
546
|
type: 'array',
|
@@ -549,7 +549,7 @@ var formatted_text_inline = exports.formatted_text_inline = ['text', {
|
|
549
549
|
}
|
550
550
|
}
|
551
551
|
}];
|
552
|
-
var
|
552
|
+
var text_code_inline = exports.text_code_inline = ['text', {
|
553
553
|
props: {
|
554
554
|
marks: {
|
555
555
|
type: 'array',
|
@@ -638,7 +638,7 @@ var backgroundColor = exports.backgroundColor = {
|
|
638
638
|
}
|
639
639
|
}
|
640
640
|
};
|
641
|
-
var
|
641
|
+
var confluenceInlineComment = exports.confluenceInlineComment = {
|
642
642
|
props: {
|
643
643
|
type: {
|
644
644
|
type: 'enum',
|
@@ -669,7 +669,7 @@ var caption = exports.caption = {
|
|
669
669
|
},
|
670
670
|
content: {
|
671
671
|
type: 'array',
|
672
|
-
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', '
|
672
|
+
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'text_formatted', 'text_code_inline']],
|
673
673
|
allowUnsupportedInline: true,
|
674
674
|
minItems: 0
|
675
675
|
}
|
@@ -709,7 +709,7 @@ var mediaSingle_width_type = exports.mediaSingle_width_type = ['mediaSingle', {
|
|
709
709
|
}
|
710
710
|
}
|
711
711
|
}];
|
712
|
-
var
|
712
|
+
var text_link_inline = exports.text_link_inline = ['text', {
|
713
713
|
props: {
|
714
714
|
marks: {
|
715
715
|
type: 'array',
|
@@ -885,7 +885,7 @@ var confluenceUnsupportedInline = exports.confluenceUnsupportedInline = {
|
|
885
885
|
}
|
886
886
|
};
|
887
887
|
var atomic_inline = exports.atomic_inline = ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline'];
|
888
|
-
var
|
888
|
+
var inline_content = exports.inline_content = ['text_formatted', 'text_code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
889
889
|
var paragraph = exports.paragraph = {
|
890
890
|
props: {
|
891
891
|
type: {
|
@@ -903,7 +903,7 @@ var paragraph = exports.paragraph = {
|
|
903
903
|
},
|
904
904
|
content: {
|
905
905
|
type: 'array',
|
906
|
-
items: ['
|
906
|
+
items: ['inline_content'],
|
907
907
|
optional: true,
|
908
908
|
allowUnsupportedInline: true
|
909
909
|
},
|
@@ -961,7 +961,7 @@ var taskItem = exports.taskItem = {
|
|
961
961
|
},
|
962
962
|
content: {
|
963
963
|
type: 'array',
|
964
|
-
items: ['
|
964
|
+
items: ['inline_content'],
|
965
965
|
optional: true,
|
966
966
|
allowUnsupportedInline: true
|
967
967
|
}
|
@@ -1018,7 +1018,7 @@ var decisionItem = exports.decisionItem = {
|
|
1018
1018
|
},
|
1019
1019
|
content: {
|
1020
1020
|
type: 'array',
|
1021
|
-
items: ['
|
1021
|
+
items: ['inline_content'],
|
1022
1022
|
optional: true,
|
1023
1023
|
allowUnsupportedInline: true
|
1024
1024
|
}
|
@@ -1262,7 +1262,7 @@ var heading = exports.heading = {
|
|
1262
1262
|
},
|
1263
1263
|
content: {
|
1264
1264
|
type: 'array',
|
1265
|
-
items: ['
|
1265
|
+
items: ['inline_content'],
|
1266
1266
|
optional: true,
|
1267
1267
|
allowUnsupportedInline: true
|
1268
1268
|
},
|
@@ -1485,7 +1485,12 @@ var tableCell = exports.tableCell = {
|
|
1485
1485
|
},
|
1486
1486
|
optional: true
|
1487
1487
|
},
|
1488
|
-
content:
|
1488
|
+
content: {
|
1489
|
+
type: 'array',
|
1490
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
1491
|
+
minItems: 1,
|
1492
|
+
allowUnsupportedBlock: true
|
1493
|
+
}
|
1489
1494
|
},
|
1490
1495
|
required: ['content']
|
1491
1496
|
};
|
@@ -1537,15 +1542,27 @@ var tableHeader = exports.tableHeader = {
|
|
1537
1542
|
},
|
1538
1543
|
optional: true
|
1539
1544
|
},
|
1540
|
-
content:
|
1545
|
+
content: {
|
1546
|
+
type: 'array',
|
1547
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
|
1548
|
+
minItems: 1
|
1549
|
+
}
|
1541
1550
|
},
|
1542
1551
|
required: ['content']
|
1543
1552
|
};
|
1544
|
-
var
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1553
|
+
var tableCellContent = exports.tableCellContent = {
|
1554
|
+
props: {
|
1555
|
+
type: {
|
1556
|
+
type: 'enum',
|
1557
|
+
values: ['tableCellContent']
|
1558
|
+
},
|
1559
|
+
content: {
|
1560
|
+
type: 'array',
|
1561
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
1562
|
+
minItems: 1,
|
1563
|
+
allowUnsupportedBlock: true
|
1564
|
+
}
|
1565
|
+
}
|
1549
1566
|
};
|
1550
1567
|
var tableRow = exports.tableRow = {
|
1551
1568
|
props: {
|
@@ -36,12 +36,8 @@ export const tableCell = adfNode('tableCell').define({
|
|
36
36
|
DANGEROUS_MANUAL_OVERRIDE: {
|
37
37
|
'validator-spec': {
|
38
38
|
required: {
|
39
|
-
reason: '@DSLCompatibilityException - required for
|
39
|
+
reason: '@DSLCompatibilityException - required for tableCell validator spec',
|
40
40
|
value: ['content']
|
41
|
-
},
|
42
|
-
'props.content': {
|
43
|
-
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
44
|
-
value: 'tableCell_content'
|
45
41
|
}
|
46
42
|
}
|
47
43
|
}
|
@@ -4,6 +4,6 @@ import { tableCellContentPseudoGroup } from '../groups/tableCellContentPseudoGro
|
|
4
4
|
// @DSLCompatibilityException This is only used by JSON schema to group the table cell content into a definition.
|
5
5
|
// This node should be deleted and the content should be replicated in the JSON schema for table header and table cell node
|
6
6
|
export const tableCellContent = adfNode('tableCellContent').define({
|
7
|
-
ignore: ['pm-spec'],
|
7
|
+
ignore: ['pm-spec', 'validator-spec'],
|
8
8
|
content: [tableCellContentPseudoGroup]
|
9
9
|
});
|
@@ -38,10 +38,6 @@ export const tableHeader = adfNode('tableHeader').define({
|
|
38
38
|
required: {
|
39
39
|
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
40
40
|
value: ['content']
|
41
|
-
},
|
42
|
-
'props.content': {
|
43
|
-
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
44
|
-
value: 'tableCell_content'
|
45
41
|
}
|
46
42
|
}
|
47
43
|
}
|
@@ -533,7 +533,7 @@ export const status = {
|
|
533
533
|
}
|
534
534
|
}
|
535
535
|
};
|
536
|
-
export const
|
536
|
+
export const text_formatted = ['text', {
|
537
537
|
props: {
|
538
538
|
marks: {
|
539
539
|
type: 'array',
|
@@ -542,7 +542,7 @@ export const formatted_text_inline = ['text', {
|
|
542
542
|
}
|
543
543
|
}
|
544
544
|
}];
|
545
|
-
export const
|
545
|
+
export const text_code_inline = ['text', {
|
546
546
|
props: {
|
547
547
|
marks: {
|
548
548
|
type: 'array',
|
@@ -631,7 +631,7 @@ export const backgroundColor = {
|
|
631
631
|
}
|
632
632
|
}
|
633
633
|
};
|
634
|
-
export const
|
634
|
+
export const confluenceInlineComment = {
|
635
635
|
props: {
|
636
636
|
type: {
|
637
637
|
type: 'enum',
|
@@ -662,7 +662,7 @@ export const caption = {
|
|
662
662
|
},
|
663
663
|
content: {
|
664
664
|
type: 'array',
|
665
|
-
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', '
|
665
|
+
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'text_formatted', 'text_code_inline']],
|
666
666
|
allowUnsupportedInline: true,
|
667
667
|
minItems: 0
|
668
668
|
}
|
@@ -702,7 +702,7 @@ export const mediaSingle_width_type = ['mediaSingle', {
|
|
702
702
|
}
|
703
703
|
}
|
704
704
|
}];
|
705
|
-
export const
|
705
|
+
export const text_link_inline = ['text', {
|
706
706
|
props: {
|
707
707
|
marks: {
|
708
708
|
type: 'array',
|
@@ -878,7 +878,7 @@ export const confluenceUnsupportedInline = {
|
|
878
878
|
}
|
879
879
|
};
|
880
880
|
export const atomic_inline = ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline'];
|
881
|
-
export const
|
881
|
+
export const inline_content = ['text_formatted', 'text_code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
882
882
|
export const paragraph = {
|
883
883
|
props: {
|
884
884
|
type: {
|
@@ -896,7 +896,7 @@ export const paragraph = {
|
|
896
896
|
},
|
897
897
|
content: {
|
898
898
|
type: 'array',
|
899
|
-
items: ['
|
899
|
+
items: ['inline_content'],
|
900
900
|
optional: true,
|
901
901
|
allowUnsupportedInline: true
|
902
902
|
},
|
@@ -954,7 +954,7 @@ export const taskItem = {
|
|
954
954
|
},
|
955
955
|
content: {
|
956
956
|
type: 'array',
|
957
|
-
items: ['
|
957
|
+
items: ['inline_content'],
|
958
958
|
optional: true,
|
959
959
|
allowUnsupportedInline: true
|
960
960
|
}
|
@@ -1011,7 +1011,7 @@ export const decisionItem = {
|
|
1011
1011
|
},
|
1012
1012
|
content: {
|
1013
1013
|
type: 'array',
|
1014
|
-
items: ['
|
1014
|
+
items: ['inline_content'],
|
1015
1015
|
optional: true,
|
1016
1016
|
allowUnsupportedInline: true
|
1017
1017
|
}
|
@@ -1255,7 +1255,7 @@ export const heading = {
|
|
1255
1255
|
},
|
1256
1256
|
content: {
|
1257
1257
|
type: 'array',
|
1258
|
-
items: ['
|
1258
|
+
items: ['inline_content'],
|
1259
1259
|
optional: true,
|
1260
1260
|
allowUnsupportedInline: true
|
1261
1261
|
},
|
@@ -1478,7 +1478,12 @@ export const tableCell = {
|
|
1478
1478
|
},
|
1479
1479
|
optional: true
|
1480
1480
|
},
|
1481
|
-
content:
|
1481
|
+
content: {
|
1482
|
+
type: 'array',
|
1483
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
1484
|
+
minItems: 1,
|
1485
|
+
allowUnsupportedBlock: true
|
1486
|
+
}
|
1482
1487
|
},
|
1483
1488
|
required: ['content']
|
1484
1489
|
};
|
@@ -1530,15 +1535,27 @@ export const tableHeader = {
|
|
1530
1535
|
},
|
1531
1536
|
optional: true
|
1532
1537
|
},
|
1533
|
-
content:
|
1538
|
+
content: {
|
1539
|
+
type: 'array',
|
1540
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
|
1541
|
+
minItems: 1
|
1542
|
+
}
|
1534
1543
|
},
|
1535
1544
|
required: ['content']
|
1536
1545
|
};
|
1537
|
-
export const
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1546
|
+
export const tableCellContent = {
|
1547
|
+
props: {
|
1548
|
+
type: {
|
1549
|
+
type: 'enum',
|
1550
|
+
values: ['tableCellContent']
|
1551
|
+
},
|
1552
|
+
content: {
|
1553
|
+
type: 'array',
|
1554
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
1555
|
+
minItems: 1,
|
1556
|
+
allowUnsupportedBlock: true
|
1557
|
+
}
|
1558
|
+
}
|
1542
1559
|
};
|
1543
1560
|
export const tableRow = {
|
1544
1561
|
props: {
|
@@ -36,12 +36,8 @@ export var tableCell = adfNode('tableCell').define({
|
|
36
36
|
DANGEROUS_MANUAL_OVERRIDE: {
|
37
37
|
'validator-spec': {
|
38
38
|
required: {
|
39
|
-
reason: '@DSLCompatibilityException - required for
|
39
|
+
reason: '@DSLCompatibilityException - required for tableCell validator spec',
|
40
40
|
value: ['content']
|
41
|
-
},
|
42
|
-
'props.content': {
|
43
|
-
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
44
|
-
value: 'tableCell_content'
|
45
41
|
}
|
46
42
|
}
|
47
43
|
}
|
@@ -4,6 +4,6 @@ import { tableCellContentPseudoGroup } from '../groups/tableCellContentPseudoGro
|
|
4
4
|
// @DSLCompatibilityException This is only used by JSON schema to group the table cell content into a definition.
|
5
5
|
// This node should be deleted and the content should be replicated in the JSON schema for table header and table cell node
|
6
6
|
export var tableCellContent = adfNode('tableCellContent').define({
|
7
|
-
ignore: ['pm-spec'],
|
7
|
+
ignore: ['pm-spec', 'validator-spec'],
|
8
8
|
content: [tableCellContentPseudoGroup]
|
9
9
|
});
|
@@ -38,10 +38,6 @@ export var tableHeader = adfNode('tableHeader').define({
|
|
38
38
|
required: {
|
39
39
|
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
40
40
|
value: ['content']
|
41
|
-
},
|
42
|
-
'props.content': {
|
43
|
-
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
44
|
-
value: 'tableCell_content'
|
45
41
|
}
|
46
42
|
}
|
47
43
|
}
|
@@ -533,7 +533,7 @@ export var status = {
|
|
533
533
|
}
|
534
534
|
}
|
535
535
|
};
|
536
|
-
export var
|
536
|
+
export var text_formatted = ['text', {
|
537
537
|
props: {
|
538
538
|
marks: {
|
539
539
|
type: 'array',
|
@@ -542,7 +542,7 @@ export var formatted_text_inline = ['text', {
|
|
542
542
|
}
|
543
543
|
}
|
544
544
|
}];
|
545
|
-
export var
|
545
|
+
export var text_code_inline = ['text', {
|
546
546
|
props: {
|
547
547
|
marks: {
|
548
548
|
type: 'array',
|
@@ -631,7 +631,7 @@ export var backgroundColor = {
|
|
631
631
|
}
|
632
632
|
}
|
633
633
|
};
|
634
|
-
export var
|
634
|
+
export var confluenceInlineComment = {
|
635
635
|
props: {
|
636
636
|
type: {
|
637
637
|
type: 'enum',
|
@@ -662,7 +662,7 @@ export var caption = {
|
|
662
662
|
},
|
663
663
|
content: {
|
664
664
|
type: 'array',
|
665
|
-
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', '
|
665
|
+
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'text_formatted', 'text_code_inline']],
|
666
666
|
allowUnsupportedInline: true,
|
667
667
|
minItems: 0
|
668
668
|
}
|
@@ -702,7 +702,7 @@ export var mediaSingle_width_type = ['mediaSingle', {
|
|
702
702
|
}
|
703
703
|
}
|
704
704
|
}];
|
705
|
-
export var
|
705
|
+
export var text_link_inline = ['text', {
|
706
706
|
props: {
|
707
707
|
marks: {
|
708
708
|
type: 'array',
|
@@ -878,7 +878,7 @@ export var confluenceUnsupportedInline = {
|
|
878
878
|
}
|
879
879
|
};
|
880
880
|
export var atomic_inline = ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline'];
|
881
|
-
export var
|
881
|
+
export var inline_content = ['text_formatted', 'text_code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
882
882
|
export var paragraph = {
|
883
883
|
props: {
|
884
884
|
type: {
|
@@ -896,7 +896,7 @@ export var paragraph = {
|
|
896
896
|
},
|
897
897
|
content: {
|
898
898
|
type: 'array',
|
899
|
-
items: ['
|
899
|
+
items: ['inline_content'],
|
900
900
|
optional: true,
|
901
901
|
allowUnsupportedInline: true
|
902
902
|
},
|
@@ -954,7 +954,7 @@ export var taskItem = {
|
|
954
954
|
},
|
955
955
|
content: {
|
956
956
|
type: 'array',
|
957
|
-
items: ['
|
957
|
+
items: ['inline_content'],
|
958
958
|
optional: true,
|
959
959
|
allowUnsupportedInline: true
|
960
960
|
}
|
@@ -1011,7 +1011,7 @@ export var decisionItem = {
|
|
1011
1011
|
},
|
1012
1012
|
content: {
|
1013
1013
|
type: 'array',
|
1014
|
-
items: ['
|
1014
|
+
items: ['inline_content'],
|
1015
1015
|
optional: true,
|
1016
1016
|
allowUnsupportedInline: true
|
1017
1017
|
}
|
@@ -1255,7 +1255,7 @@ export var heading = {
|
|
1255
1255
|
},
|
1256
1256
|
content: {
|
1257
1257
|
type: 'array',
|
1258
|
-
items: ['
|
1258
|
+
items: ['inline_content'],
|
1259
1259
|
optional: true,
|
1260
1260
|
allowUnsupportedInline: true
|
1261
1261
|
},
|
@@ -1478,7 +1478,12 @@ export var tableCell = {
|
|
1478
1478
|
},
|
1479
1479
|
optional: true
|
1480
1480
|
},
|
1481
|
-
content:
|
1481
|
+
content: {
|
1482
|
+
type: 'array',
|
1483
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
1484
|
+
minItems: 1,
|
1485
|
+
allowUnsupportedBlock: true
|
1486
|
+
}
|
1482
1487
|
},
|
1483
1488
|
required: ['content']
|
1484
1489
|
};
|
@@ -1530,15 +1535,27 @@ export var tableHeader = {
|
|
1530
1535
|
},
|
1531
1536
|
optional: true
|
1532
1537
|
},
|
1533
|
-
content:
|
1538
|
+
content: {
|
1539
|
+
type: 'array',
|
1540
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
|
1541
|
+
minItems: 1
|
1542
|
+
}
|
1534
1543
|
},
|
1535
1544
|
required: ['content']
|
1536
1545
|
};
|
1537
|
-
export var
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1546
|
+
export var tableCellContent = {
|
1547
|
+
props: {
|
1548
|
+
type: {
|
1549
|
+
type: 'enum',
|
1550
|
+
values: ['tableCellContent']
|
1551
|
+
},
|
1552
|
+
content: {
|
1553
|
+
type: 'array',
|
1554
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
1555
|
+
minItems: 1,
|
1556
|
+
allowUnsupportedBlock: true
|
1557
|
+
}
|
1558
|
+
}
|
1542
1559
|
};
|
1543
1560
|
export var tableRow = {
|
1544
1561
|
props: {
|
@@ -552,7 +552,7 @@ export declare const status: {
|
|
552
552
|
};
|
553
553
|
};
|
554
554
|
};
|
555
|
-
export declare const
|
555
|
+
export declare const text_formatted: (string | {
|
556
556
|
props: {
|
557
557
|
marks: {
|
558
558
|
type: string;
|
@@ -561,7 +561,7 @@ export declare const formatted_text_inline: (string | {
|
|
561
561
|
};
|
562
562
|
};
|
563
563
|
})[];
|
564
|
-
export declare const
|
564
|
+
export declare const text_code_inline: (string | {
|
565
565
|
props: {
|
566
566
|
marks: {
|
567
567
|
type: string;
|
@@ -650,7 +650,7 @@ export declare const backgroundColor: {
|
|
650
650
|
};
|
651
651
|
};
|
652
652
|
};
|
653
|
-
export declare const
|
653
|
+
export declare const confluenceInlineComment: {
|
654
654
|
props: {
|
655
655
|
type: {
|
656
656
|
type: string;
|
@@ -721,7 +721,7 @@ export declare const mediaSingle_width_type: (string | {
|
|
721
721
|
};
|
722
722
|
};
|
723
723
|
})[];
|
724
|
-
export declare const
|
724
|
+
export declare const text_link_inline: (string | {
|
725
725
|
props: {
|
726
726
|
marks: {
|
727
727
|
type: string;
|
@@ -897,7 +897,7 @@ export declare const confluenceUnsupportedInline: {
|
|
897
897
|
};
|
898
898
|
};
|
899
899
|
export declare const atomic_inline: string[];
|
900
|
-
export declare const
|
900
|
+
export declare const inline_content: string[];
|
901
901
|
export declare const paragraph: {
|
902
902
|
props: {
|
903
903
|
type: {
|
@@ -1497,7 +1497,12 @@ export declare const tableCell: {
|
|
1497
1497
|
};
|
1498
1498
|
optional: boolean;
|
1499
1499
|
};
|
1500
|
-
content:
|
1500
|
+
content: {
|
1501
|
+
type: string;
|
1502
|
+
items: string[][];
|
1503
|
+
minItems: number;
|
1504
|
+
allowUnsupportedBlock: boolean;
|
1505
|
+
};
|
1501
1506
|
};
|
1502
1507
|
required: string[];
|
1503
1508
|
};
|
@@ -1549,15 +1554,27 @@ export declare const tableHeader: {
|
|
1549
1554
|
};
|
1550
1555
|
optional: boolean;
|
1551
1556
|
};
|
1552
|
-
content:
|
1557
|
+
content: {
|
1558
|
+
type: string;
|
1559
|
+
items: string[][];
|
1560
|
+
minItems: number;
|
1561
|
+
};
|
1553
1562
|
};
|
1554
1563
|
required: string[];
|
1555
1564
|
};
|
1556
|
-
export declare const
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1565
|
+
export declare const tableCellContent: {
|
1566
|
+
props: {
|
1567
|
+
type: {
|
1568
|
+
type: string;
|
1569
|
+
values: string[];
|
1570
|
+
};
|
1571
|
+
content: {
|
1572
|
+
type: string;
|
1573
|
+
items: string[][];
|
1574
|
+
minItems: number;
|
1575
|
+
allowUnsupportedBlock: boolean;
|
1576
|
+
};
|
1577
|
+
};
|
1561
1578
|
};
|
1562
1579
|
export declare const tableRow: {
|
1563
1580
|
props: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "
|
3
|
+
"version": "41.0.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.32.
|
49
|
+
"@atlaskit/adf-schema-generator": "^1.32.1",
|
50
50
|
"@atlaskit/codemod-utils": "^4.2.4",
|
51
51
|
"@babel/cli": "^7.22.9",
|
52
52
|
"@babel/core": "^7.22.9",
|