@atlaskit/adf-schema 40.10.0 → 42.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 +12 -0
- package/dist/cjs/next-schema/nodes/paragraph.js +1 -2
- 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 -20
- package/dist/es2019/next-schema/nodes/paragraph.js +1 -2
- 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 -18
- package/dist/esm/next-schema/nodes/paragraph.js +1 -2
- 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 -18
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +0 -1
- package/dist/types/schema/nodes/types/inline-content.d.ts +1 -14
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +29 -13
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -1
- package/dist/cjs/next-schema/groups/atomicInlineGroup.js +0 -19
- package/dist/es2019/next-schema/groups/atomicInlineGroup.js +0 -13
- package/dist/esm/next-schema/groups/atomicInlineGroup.js +0 -13
- package/dist/types/next-schema/groups/atomicInlineGroup.d.ts +0 -1
package/CHANGELOG.md
CHANGED
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.paragraph = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
-
var _atomicInlineGroup = require("../groups/atomicInlineGroup");
|
9
8
|
var _inlineContentGroup = require("../groups/inlineContentGroup");
|
10
9
|
var _inlineGroup = require("../groups/inlineGroup");
|
11
10
|
var _alignmentAndIndentation = require("../marks/alignmentAndIndentation");
|
@@ -22,7 +21,7 @@ var paragraph = exports.paragraph = (0, _adfSchemaGenerator.adfNode)('paragraph'
|
|
22
21
|
selectable: false,
|
23
22
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
24
23
|
hasEmptyMarks: true,
|
25
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup,
|
24
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))],
|
26
25
|
DANGEROUS_MANUAL_OVERRIDE: {
|
27
26
|
'validator-spec': {
|
28
27
|
'props.marks': {
|
@@ -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,8 +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.
|
7
|
-
exports.unsupportedInline = void 0;
|
6
|
+
exports.unsupportedInline = 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.annotation = exports.alignment = void 0;
|
8
7
|
var blockCard = exports.blockCard = {
|
9
8
|
props: {
|
10
9
|
type: {
|
@@ -540,7 +539,7 @@ var status = exports.status = {
|
|
540
539
|
}
|
541
540
|
}
|
542
541
|
};
|
543
|
-
var
|
542
|
+
var text_formatted = exports.text_formatted = ['text', {
|
544
543
|
props: {
|
545
544
|
marks: {
|
546
545
|
type: 'array',
|
@@ -549,7 +548,7 @@ var formatted_text_inline = exports.formatted_text_inline = ['text', {
|
|
549
548
|
}
|
550
549
|
}
|
551
550
|
}];
|
552
|
-
var
|
551
|
+
var text_code_inline = exports.text_code_inline = ['text', {
|
553
552
|
props: {
|
554
553
|
marks: {
|
555
554
|
type: 'array',
|
@@ -638,7 +637,7 @@ var backgroundColor = exports.backgroundColor = {
|
|
638
637
|
}
|
639
638
|
}
|
640
639
|
};
|
641
|
-
var
|
640
|
+
var confluenceInlineComment = exports.confluenceInlineComment = {
|
642
641
|
props: {
|
643
642
|
type: {
|
644
643
|
type: 'enum',
|
@@ -669,7 +668,7 @@ var caption = exports.caption = {
|
|
669
668
|
},
|
670
669
|
content: {
|
671
670
|
type: 'array',
|
672
|
-
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', '
|
671
|
+
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'text_formatted', 'text_code_inline']],
|
673
672
|
allowUnsupportedInline: true,
|
674
673
|
minItems: 0
|
675
674
|
}
|
@@ -709,7 +708,7 @@ var mediaSingle_width_type = exports.mediaSingle_width_type = ['mediaSingle', {
|
|
709
708
|
}
|
710
709
|
}
|
711
710
|
}];
|
712
|
-
var
|
711
|
+
var text_link_inline = exports.text_link_inline = ['text', {
|
713
712
|
props: {
|
714
713
|
marks: {
|
715
714
|
type: 'array',
|
@@ -884,8 +883,7 @@ var confluenceUnsupportedInline = exports.confluenceUnsupportedInline = {
|
|
884
883
|
}
|
885
884
|
}
|
886
885
|
};
|
887
|
-
var
|
888
|
-
var inline = exports.inline = ['formatted_text_inline', 'code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
886
|
+
var inline_content = exports.inline_content = ['text_formatted', 'text_code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
889
887
|
var paragraph = exports.paragraph = {
|
890
888
|
props: {
|
891
889
|
type: {
|
@@ -903,7 +901,7 @@ var paragraph = exports.paragraph = {
|
|
903
901
|
},
|
904
902
|
content: {
|
905
903
|
type: 'array',
|
906
|
-
items: ['
|
904
|
+
items: ['inline_content'],
|
907
905
|
optional: true,
|
908
906
|
allowUnsupportedInline: true
|
909
907
|
},
|
@@ -961,7 +959,7 @@ var taskItem = exports.taskItem = {
|
|
961
959
|
},
|
962
960
|
content: {
|
963
961
|
type: 'array',
|
964
|
-
items: ['
|
962
|
+
items: ['inline_content'],
|
965
963
|
optional: true,
|
966
964
|
allowUnsupportedInline: true
|
967
965
|
}
|
@@ -1018,7 +1016,7 @@ var decisionItem = exports.decisionItem = {
|
|
1018
1016
|
},
|
1019
1017
|
content: {
|
1020
1018
|
type: 'array',
|
1021
|
-
items: ['
|
1019
|
+
items: ['inline_content'],
|
1022
1020
|
optional: true,
|
1023
1021
|
allowUnsupportedInline: true
|
1024
1022
|
}
|
@@ -1262,7 +1260,7 @@ var heading = exports.heading = {
|
|
1262
1260
|
},
|
1263
1261
|
content: {
|
1264
1262
|
type: 'array',
|
1265
|
-
items: ['
|
1263
|
+
items: ['inline_content'],
|
1266
1264
|
optional: true,
|
1267
1265
|
allowUnsupportedInline: true
|
1268
1266
|
},
|
@@ -1485,7 +1483,12 @@ var tableCell = exports.tableCell = {
|
|
1485
1483
|
},
|
1486
1484
|
optional: true
|
1487
1485
|
},
|
1488
|
-
content:
|
1486
|
+
content: {
|
1487
|
+
type: 'array',
|
1488
|
+
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']],
|
1489
|
+
minItems: 1,
|
1490
|
+
allowUnsupportedBlock: true
|
1491
|
+
}
|
1489
1492
|
},
|
1490
1493
|
required: ['content']
|
1491
1494
|
};
|
@@ -1537,15 +1540,27 @@ var tableHeader = exports.tableHeader = {
|
|
1537
1540
|
},
|
1538
1541
|
optional: true
|
1539
1542
|
},
|
1540
|
-
content:
|
1543
|
+
content: {
|
1544
|
+
type: 'array',
|
1545
|
+
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']],
|
1546
|
+
minItems: 1
|
1547
|
+
}
|
1541
1548
|
},
|
1542
1549
|
required: ['content']
|
1543
1550
|
};
|
1544
|
-
var
|
1545
|
-
|
1546
|
-
|
1547
|
-
|
1548
|
-
|
1551
|
+
var tableCellContent = exports.tableCellContent = {
|
1552
|
+
props: {
|
1553
|
+
type: {
|
1554
|
+
type: 'enum',
|
1555
|
+
values: ['tableCellContent']
|
1556
|
+
},
|
1557
|
+
content: {
|
1558
|
+
type: 'array',
|
1559
|
+
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']],
|
1560
|
+
minItems: 1,
|
1561
|
+
allowUnsupportedBlock: true
|
1562
|
+
}
|
1563
|
+
}
|
1549
1564
|
};
|
1550
1565
|
var tableRow = exports.tableRow = {
|
1551
1566
|
props: {
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { atomicInlineGroup } from '../groups/atomicInlineGroup';
|
3
2
|
import { inlineContentGroup } from '../groups/inlineContentGroup';
|
4
3
|
import { inlineGroup } from '../groups/inlineGroup';
|
5
4
|
import { alignment, indentation } from '../marks/alignmentAndIndentation';
|
@@ -16,7 +15,7 @@ export const paragraph = adfNode('paragraph').define({
|
|
16
15
|
selectable: false,
|
17
16
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
18
17
|
hasEmptyMarks: true,
|
19
|
-
content: [$zeroPlus($or(inlineGroup,
|
18
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))],
|
20
19
|
DANGEROUS_MANUAL_OVERRIDE: {
|
21
20
|
'validator-spec': {
|
22
21
|
'props.marks': {
|
@@ -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',
|
@@ -877,8 +877,7 @@ export const confluenceUnsupportedInline = {
|
|
877
877
|
}
|
878
878
|
}
|
879
879
|
};
|
880
|
-
export const
|
881
|
-
export const inline = ['formatted_text_inline', 'code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
880
|
+
export const inline_content = ['text_formatted', 'text_code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
882
881
|
export const paragraph = {
|
883
882
|
props: {
|
884
883
|
type: {
|
@@ -896,7 +895,7 @@ export const paragraph = {
|
|
896
895
|
},
|
897
896
|
content: {
|
898
897
|
type: 'array',
|
899
|
-
items: ['
|
898
|
+
items: ['inline_content'],
|
900
899
|
optional: true,
|
901
900
|
allowUnsupportedInline: true
|
902
901
|
},
|
@@ -954,7 +953,7 @@ export const taskItem = {
|
|
954
953
|
},
|
955
954
|
content: {
|
956
955
|
type: 'array',
|
957
|
-
items: ['
|
956
|
+
items: ['inline_content'],
|
958
957
|
optional: true,
|
959
958
|
allowUnsupportedInline: true
|
960
959
|
}
|
@@ -1011,7 +1010,7 @@ export const decisionItem = {
|
|
1011
1010
|
},
|
1012
1011
|
content: {
|
1013
1012
|
type: 'array',
|
1014
|
-
items: ['
|
1013
|
+
items: ['inline_content'],
|
1015
1014
|
optional: true,
|
1016
1015
|
allowUnsupportedInline: true
|
1017
1016
|
}
|
@@ -1255,7 +1254,7 @@ export const heading = {
|
|
1255
1254
|
},
|
1256
1255
|
content: {
|
1257
1256
|
type: 'array',
|
1258
|
-
items: ['
|
1257
|
+
items: ['inline_content'],
|
1259
1258
|
optional: true,
|
1260
1259
|
allowUnsupportedInline: true
|
1261
1260
|
},
|
@@ -1478,7 +1477,12 @@ export const tableCell = {
|
|
1478
1477
|
},
|
1479
1478
|
optional: true
|
1480
1479
|
},
|
1481
|
-
content:
|
1480
|
+
content: {
|
1481
|
+
type: 'array',
|
1482
|
+
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']],
|
1483
|
+
minItems: 1,
|
1484
|
+
allowUnsupportedBlock: true
|
1485
|
+
}
|
1482
1486
|
},
|
1483
1487
|
required: ['content']
|
1484
1488
|
};
|
@@ -1530,15 +1534,27 @@ export const tableHeader = {
|
|
1530
1534
|
},
|
1531
1535
|
optional: true
|
1532
1536
|
},
|
1533
|
-
content:
|
1537
|
+
content: {
|
1538
|
+
type: 'array',
|
1539
|
+
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']],
|
1540
|
+
minItems: 1
|
1541
|
+
}
|
1534
1542
|
},
|
1535
1543
|
required: ['content']
|
1536
1544
|
};
|
1537
|
-
export const
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1545
|
+
export const tableCellContent = {
|
1546
|
+
props: {
|
1547
|
+
type: {
|
1548
|
+
type: 'enum',
|
1549
|
+
values: ['tableCellContent']
|
1550
|
+
},
|
1551
|
+
content: {
|
1552
|
+
type: 'array',
|
1553
|
+
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']],
|
1554
|
+
minItems: 1,
|
1555
|
+
allowUnsupportedBlock: true
|
1556
|
+
}
|
1557
|
+
}
|
1542
1558
|
};
|
1543
1559
|
export const tableRow = {
|
1544
1560
|
props: {
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { atomicInlineGroup } from '../groups/atomicInlineGroup';
|
3
2
|
import { inlineContentGroup } from '../groups/inlineContentGroup';
|
4
3
|
import { inlineGroup } from '../groups/inlineGroup';
|
5
4
|
import { alignment, indentation } from '../marks/alignmentAndIndentation';
|
@@ -16,7 +15,7 @@ export var paragraph = adfNode('paragraph').define({
|
|
16
15
|
selectable: false,
|
17
16
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
18
17
|
hasEmptyMarks: true,
|
19
|
-
content: [$zeroPlus($or(inlineGroup,
|
18
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))],
|
20
19
|
DANGEROUS_MANUAL_OVERRIDE: {
|
21
20
|
'validator-spec': {
|
22
21
|
'props.marks': {
|
@@ -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',
|
@@ -877,8 +877,7 @@ export var confluenceUnsupportedInline = {
|
|
877
877
|
}
|
878
878
|
}
|
879
879
|
};
|
880
|
-
export var
|
881
|
-
export var inline = ['formatted_text_inline', 'code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
880
|
+
export var inline_content = ['text_formatted', 'text_code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
882
881
|
export var paragraph = {
|
883
882
|
props: {
|
884
883
|
type: {
|
@@ -896,7 +895,7 @@ export var paragraph = {
|
|
896
895
|
},
|
897
896
|
content: {
|
898
897
|
type: 'array',
|
899
|
-
items: ['
|
898
|
+
items: ['inline_content'],
|
900
899
|
optional: true,
|
901
900
|
allowUnsupportedInline: true
|
902
901
|
},
|
@@ -954,7 +953,7 @@ export var taskItem = {
|
|
954
953
|
},
|
955
954
|
content: {
|
956
955
|
type: 'array',
|
957
|
-
items: ['
|
956
|
+
items: ['inline_content'],
|
958
957
|
optional: true,
|
959
958
|
allowUnsupportedInline: true
|
960
959
|
}
|
@@ -1011,7 +1010,7 @@ export var decisionItem = {
|
|
1011
1010
|
},
|
1012
1011
|
content: {
|
1013
1012
|
type: 'array',
|
1014
|
-
items: ['
|
1013
|
+
items: ['inline_content'],
|
1015
1014
|
optional: true,
|
1016
1015
|
allowUnsupportedInline: true
|
1017
1016
|
}
|
@@ -1255,7 +1254,7 @@ export var heading = {
|
|
1255
1254
|
},
|
1256
1255
|
content: {
|
1257
1256
|
type: 'array',
|
1258
|
-
items: ['
|
1257
|
+
items: ['inline_content'],
|
1259
1258
|
optional: true,
|
1260
1259
|
allowUnsupportedInline: true
|
1261
1260
|
},
|
@@ -1478,7 +1477,12 @@ export var tableCell = {
|
|
1478
1477
|
},
|
1479
1478
|
optional: true
|
1480
1479
|
},
|
1481
|
-
content:
|
1480
|
+
content: {
|
1481
|
+
type: 'array',
|
1482
|
+
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']],
|
1483
|
+
minItems: 1,
|
1484
|
+
allowUnsupportedBlock: true
|
1485
|
+
}
|
1482
1486
|
},
|
1483
1487
|
required: ['content']
|
1484
1488
|
};
|
@@ -1530,15 +1534,27 @@ export var tableHeader = {
|
|
1530
1534
|
},
|
1531
1535
|
optional: true
|
1532
1536
|
},
|
1533
|
-
content:
|
1537
|
+
content: {
|
1538
|
+
type: 'array',
|
1539
|
+
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']],
|
1540
|
+
minItems: 1
|
1541
|
+
}
|
1534
1542
|
},
|
1535
1543
|
required: ['content']
|
1536
1544
|
};
|
1537
|
-
export var
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1545
|
+
export var tableCellContent = {
|
1546
|
+
props: {
|
1547
|
+
type: {
|
1548
|
+
type: 'enum',
|
1549
|
+
values: ['tableCellContent']
|
1550
|
+
},
|
1551
|
+
content: {
|
1552
|
+
type: 'array',
|
1553
|
+
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']],
|
1554
|
+
minItems: 1,
|
1555
|
+
allowUnsupportedBlock: true
|
1556
|
+
}
|
1557
|
+
}
|
1542
1558
|
};
|
1543
1559
|
export var tableRow = {
|
1544
1560
|
props: {
|
package/dist/types/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
2
2
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
3
|
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, } from './schema';
|
4
|
-
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline,
|
4
|
+
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, MultiBodiedExtensionDefinition, ExtensionFrameDefinition, BackgroundColorDefinition, } from './schema';
|
5
5
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor, } from './utils';
|
6
6
|
export type { Match, NameToEmoji } from './utils';
|
7
7
|
export type { NodeSpecOptions, MarkSpecOptions } from './schema';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, } from './nodes';
|
2
|
-
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline,
|
2
|
+
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, } from './nodes';
|
3
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
4
4
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
5
5
|
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette, } from './marks';
|
@@ -75,7 +75,6 @@ export type { NoMark } from './types/mark';
|
|
75
75
|
export type { MarksObject } from './types/mark';
|
76
76
|
export type { BlockContent } from './types/block-content';
|
77
77
|
export type { NonNestableBlockContent } from './types/non-nestable-block-content';
|
78
|
-
export type { InlineAtomic } from './types/inline-content';
|
79
78
|
export type { InlineCode } from './types/inline-content';
|
80
79
|
export type { InlineLinkText } from './types/inline-content';
|
81
80
|
export type { InlineFormattedText } from './types/inline-content';
|
@@ -1,15 +1,6 @@
|
|
1
|
-
import { HardBreakDefinition as HardBreak } from '../hard-break';
|
2
|
-
import { MentionDefinition as Mention } from '../mention';
|
3
|
-
import { EmojiDefinition as Emoji } from '../emoji';
|
4
|
-
import { InlineExtensionDefinition } from '../inline-extension';
|
5
|
-
import { DateDefinition as Date } from '../date';
|
6
|
-
import { PlaceholderDefinition as Placeholder } from '../placeholder';
|
7
|
-
import { InlineCardDefinition as InlineCard } from '../inline-card';
|
8
|
-
import { StatusDefinition as Status } from '../status';
|
9
1
|
import { TextDefinition as Text } from '../text';
|
10
2
|
import { MarksObject } from './mark';
|
11
3
|
import { AnnotationMarkDefinition as Annotation, CodeDefinition as Code, EmDefinition as Em, LinkDefinition as Link, StrikeDefinition as Strike, StrongDefinition as Strong, SubSupDefinition as SubSup, TextColorDefinition as TextColor, UnderlineDefinition as Underline, BackgroundColorDefinition as BackgroundColor } from '../../marks';
|
12
|
-
import { MediaInlineDefinition } from '../media-inline';
|
13
4
|
/**
|
14
5
|
* @name formatted_text_inline_node
|
15
6
|
*/
|
@@ -22,11 +13,7 @@ export type InlineLinkText = Text & MarksObject<Link>;
|
|
22
13
|
* @name code_inline_node
|
23
14
|
*/
|
24
15
|
export type InlineCode = Text & MarksObject<Code | Link | Annotation>;
|
25
|
-
/**
|
26
|
-
* @name atomic_inline_node
|
27
|
-
*/
|
28
|
-
export type InlineAtomic = HardBreak | Mention | Emoji | InlineExtensionDefinition | Date | Placeholder | InlineCard | Status | MediaInlineDefinition;
|
29
16
|
/**
|
30
17
|
* @name inline_node
|
31
18
|
*/
|
32
|
-
export type Inline = InlineFormattedText | InlineCode
|
19
|
+
export type Inline = InlineFormattedText | InlineCode;
|
@@ -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;
|
@@ -896,8 +896,7 @@ export declare const confluenceUnsupportedInline: {
|
|
896
896
|
};
|
897
897
|
};
|
898
898
|
};
|
899
|
-
export declare const
|
900
|
-
export declare const inline: string[];
|
899
|
+
export declare const inline_content: string[];
|
901
900
|
export declare const paragraph: {
|
902
901
|
props: {
|
903
902
|
type: {
|
@@ -1497,7 +1496,12 @@ export declare const tableCell: {
|
|
1497
1496
|
};
|
1498
1497
|
optional: boolean;
|
1499
1498
|
};
|
1500
|
-
content:
|
1499
|
+
content: {
|
1500
|
+
type: string;
|
1501
|
+
items: string[][];
|
1502
|
+
minItems: number;
|
1503
|
+
allowUnsupportedBlock: boolean;
|
1504
|
+
};
|
1501
1505
|
};
|
1502
1506
|
required: string[];
|
1503
1507
|
};
|
@@ -1549,15 +1553,27 @@ export declare const tableHeader: {
|
|
1549
1553
|
};
|
1550
1554
|
optional: boolean;
|
1551
1555
|
};
|
1552
|
-
content:
|
1556
|
+
content: {
|
1557
|
+
type: string;
|
1558
|
+
items: string[][];
|
1559
|
+
minItems: number;
|
1560
|
+
};
|
1553
1561
|
};
|
1554
1562
|
required: string[];
|
1555
1563
|
};
|
1556
|
-
export declare const
|
1557
|
-
|
1558
|
-
|
1559
|
-
|
1560
|
-
|
1564
|
+
export declare const tableCellContent: {
|
1565
|
+
props: {
|
1566
|
+
type: {
|
1567
|
+
type: string;
|
1568
|
+
values: string[];
|
1569
|
+
};
|
1570
|
+
content: {
|
1571
|
+
type: string;
|
1572
|
+
items: string[][];
|
1573
|
+
minItems: number;
|
1574
|
+
allowUnsupportedBlock: boolean;
|
1575
|
+
};
|
1576
|
+
};
|
1561
1577
|
};
|
1562
1578
|
export declare const tableRow: {
|
1563
1579
|
props: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "
|
3
|
+
"version": "42.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",
|
@@ -1,19 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.atomicInlineGroup = void 0;
|
7
|
-
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
-
var _date = require("../nodes/date");
|
9
|
-
var _emoji = require("../nodes/emoji");
|
10
|
-
var _hardBreak = require("../nodes/hardBreak");
|
11
|
-
var _inlineCard = require("../nodes/inlineCard");
|
12
|
-
var _inlineExtension = require("../nodes/inlineExtension");
|
13
|
-
var _mediaInline = require("../nodes/mediaInline");
|
14
|
-
var _mention = require("../nodes/mention");
|
15
|
-
var _placeholder = require("../nodes/placeholder");
|
16
|
-
var _status = require("../nodes/status");
|
17
|
-
var atomicInlineGroup = exports.atomicInlineGroup = (0, _adfSchemaGenerator.adfNodeGroup)('atomic_inline', [_hardBreak.hardBreak, _mention.mention, _emoji.emoji, _inlineExtension.inlineExtension.use('with_marks'), _date.date, _placeholder.placeholder, _inlineCard.inlineCard, _status.status, _mediaInline.mediaInline], {
|
18
|
-
ignore: ['pm-spec', 'json-schema']
|
19
|
-
});
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { date } from '../nodes/date';
|
3
|
-
import { emoji } from '../nodes/emoji';
|
4
|
-
import { hardBreak } from '../nodes/hardBreak';
|
5
|
-
import { inlineCard } from '../nodes/inlineCard';
|
6
|
-
import { inlineExtension } from '../nodes/inlineExtension';
|
7
|
-
import { mediaInline } from '../nodes/mediaInline';
|
8
|
-
import { mention } from '../nodes/mention';
|
9
|
-
import { placeholder } from '../nodes/placeholder';
|
10
|
-
import { status } from '../nodes/status';
|
11
|
-
export const atomicInlineGroup = adfNodeGroup('atomic_inline', [hardBreak, mention, emoji, inlineExtension.use('with_marks'), date, placeholder, inlineCard, status, mediaInline], {
|
12
|
-
ignore: ['pm-spec', 'json-schema']
|
13
|
-
});
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
2
|
-
import { date } from '../nodes/date';
|
3
|
-
import { emoji } from '../nodes/emoji';
|
4
|
-
import { hardBreak } from '../nodes/hardBreak';
|
5
|
-
import { inlineCard } from '../nodes/inlineCard';
|
6
|
-
import { inlineExtension } from '../nodes/inlineExtension';
|
7
|
-
import { mediaInline } from '../nodes/mediaInline';
|
8
|
-
import { mention } from '../nodes/mention';
|
9
|
-
import { placeholder } from '../nodes/placeholder';
|
10
|
-
import { status } from '../nodes/status';
|
11
|
-
export var atomicInlineGroup = adfNodeGroup('atomic_inline', [hardBreak, mention, emoji, inlineExtension.use('with_marks'), date, placeholder, inlineCard, status, mediaInline], {
|
12
|
-
ignore: ['pm-spec', 'json-schema']
|
13
|
-
});
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const atomicInlineGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|