@atlaskit/adf-schema 47.7.1 → 49.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/index.js +0 -48
- package/dist/cjs/next-schema/generated/nodeTypes.js +1 -73
- package/dist/cjs/next-schema/groups/blockContentGroup.js +2 -2
- package/dist/cjs/next-schema/groups/blockGroup.js +2 -2
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/blockquote.js +0 -8
- package/dist/cjs/next-schema/nodes/expand.js +1 -4
- package/dist/cjs/next-schema/nodes/list.js +2 -6
- package/dist/cjs/next-schema/nodes/nestedExpand.js +0 -6
- package/dist/cjs/next-schema/nodes/panel.js +0 -4
- package/dist/cjs/schema/create-schema.js +1 -1
- package/dist/cjs/schema/index.js +0 -48
- package/dist/cjs/schema/nodes/blockquote.js +2 -34
- package/dist/cjs/schema/nodes/expand.js +1 -2
- package/dist/cjs/schema/nodes/index.js +0 -48
- package/dist/cjs/schema/nodes/list-item.js +1 -19
- package/dist/cjs/schema/nodes/nested-expand.js +2 -32
- package/dist/cjs/schema/nodes/panel.js +1 -4
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +0 -72
- package/dist/es2019/next-schema/groups/blockContentGroup.js +2 -2
- package/dist/es2019/next-schema/groups/blockGroup.js +2 -2
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/blockquote.js +0 -8
- package/dist/es2019/next-schema/nodes/expand.js +1 -4
- package/dist/es2019/next-schema/nodes/list.js +2 -6
- package/dist/es2019/next-schema/nodes/nestedExpand.js +0 -6
- package/dist/es2019/next-schema/nodes/panel.js +0 -4
- package/dist/es2019/schema/create-schema.js +2 -2
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/blockquote.js +2 -34
- package/dist/es2019/schema/nodes/expand.js +1 -2
- package/dist/es2019/schema/nodes/index.js +5 -5
- package/dist/es2019/schema/nodes/list-item.js +1 -19
- package/dist/es2019/schema/nodes/nested-expand.js +2 -32
- package/dist/es2019/schema/nodes/panel.js +2 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +0 -72
- package/dist/esm/next-schema/groups/blockContentGroup.js +2 -2
- package/dist/esm/next-schema/groups/blockGroup.js +2 -2
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/esm/next-schema/nodes/blockquote.js +0 -8
- package/dist/esm/next-schema/nodes/expand.js +1 -4
- package/dist/esm/next-schema/nodes/list.js +2 -6
- package/dist/esm/next-schema/nodes/nestedExpand.js +0 -6
- package/dist/esm/next-schema/nodes/panel.js +0 -4
- package/dist/esm/schema/create-schema.js +2 -2
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/blockquote.js +2 -34
- package/dist/esm/schema/nodes/expand.js +1 -2
- package/dist/esm/schema/nodes/index.js +5 -5
- package/dist/esm/schema/nodes/list-item.js +1 -19
- package/dist/esm/schema/nodes/nested-expand.js +2 -32
- package/dist/esm/schema/nodes/panel.js +1 -4
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +8 -63
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +1 -11
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +1 -17
- package/dist/types/next-schema/nodes/blockquote.d.ts +1 -7
- package/dist/types/next-schema/nodes/expand.d.ts +1 -4
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +1 -7
- package/dist/types/next-schema/nodes/panel.d.ts +1 -5
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/blockquote.d.ts +0 -15
- package/dist/types/schema/nodes/expand.d.ts +0 -1
- package/dist/types/schema/nodes/index.d.ts +5 -5
- package/dist/types/schema/nodes/list-item.d.ts +0 -10
- package/dist/types/schema/nodes/nested-expand.d.ts +0 -5
- package/dist/types/schema/nodes/panel.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/validator-schema/utils/sortNestedArrays.js +0 -33
- package/dist/es2019/validator-schema/utils/sortNestedArrays.js +0 -24
- package/dist/esm/validator-schema/utils/sortNestedArrays.js +0 -26
- package/dist/types/validator-schema/utils/sortNestedArrays.d.ts +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 49.0.0
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- bf5cbd4: BREAKING CHANGE: EDITOR-616 Remove unused variations of blockquote, listItem, nestedExpand, and panel
|
8
|
+
|
9
|
+
## 48.0.0
|
10
|
+
|
11
|
+
### Major Changes
|
12
|
+
|
13
|
+
- 926c3fd: We fully rolled out expands with nested expands, please use expandWithNestedExpand instead of expand
|
14
|
+
|
3
15
|
## 47.7.1
|
4
16
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
@@ -345,24 +345,6 @@ Object.defineProperty(exports, "blockquote", {
|
|
345
345
|
return _schema.blockquote;
|
346
346
|
}
|
347
347
|
});
|
348
|
-
Object.defineProperty(exports, "blockquoteWithList", {
|
349
|
-
enumerable: true,
|
350
|
-
get: function get() {
|
351
|
-
return _schema.blockquoteWithList;
|
352
|
-
}
|
353
|
-
});
|
354
|
-
Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMedia", {
|
355
|
-
enumerable: true,
|
356
|
-
get: function get() {
|
357
|
-
return _schema.blockquoteWithNestedCodeblockOrMedia;
|
358
|
-
}
|
359
|
-
});
|
360
|
-
Object.defineProperty(exports, "blockquoteWithoutNonBodiedMacros", {
|
361
|
-
enumerable: true,
|
362
|
-
get: function get() {
|
363
|
-
return _schema.blockquoteWithoutNonBodiedMacros;
|
364
|
-
}
|
365
|
-
});
|
366
348
|
Object.defineProperty(exports, "bodiedExtension", {
|
367
349
|
enumerable: true,
|
368
350
|
get: function get() {
|
@@ -555,12 +537,6 @@ Object.defineProperty(exports, "emojiIdToAcName", {
|
|
555
537
|
return _utils.emojiIdToAcName;
|
556
538
|
}
|
557
539
|
});
|
558
|
-
Object.defineProperty(exports, "expand", {
|
559
|
-
enumerable: true,
|
560
|
-
get: function get() {
|
561
|
-
return _schema.expand;
|
562
|
-
}
|
563
|
-
});
|
564
540
|
Object.defineProperty(exports, "expandToJSON", {
|
565
541
|
enumerable: true,
|
566
542
|
get: function get() {
|
@@ -765,18 +741,6 @@ Object.defineProperty(exports, "listItemWithDecisionStage0", {
|
|
765
741
|
return _schema.listItemWithDecisionStage0;
|
766
742
|
}
|
767
743
|
});
|
768
|
-
Object.defineProperty(exports, "listItemWithTask", {
|
769
|
-
enumerable: true,
|
770
|
-
get: function get() {
|
771
|
-
return _schema.listItemWithTask;
|
772
|
-
}
|
773
|
-
});
|
774
|
-
Object.defineProperty(exports, "listItemWithoutNonBodiedMacros", {
|
775
|
-
enumerable: true,
|
776
|
-
get: function get() {
|
777
|
-
return _schema.listItemWithoutNonBodiedMacros;
|
778
|
-
}
|
779
|
-
});
|
780
744
|
Object.defineProperty(exports, "media", {
|
781
745
|
enumerable: true,
|
782
746
|
get: function get() {
|
@@ -861,12 +825,6 @@ Object.defineProperty(exports, "nestedExpand", {
|
|
861
825
|
return _schema.nestedExpand;
|
862
826
|
}
|
863
827
|
});
|
864
|
-
Object.defineProperty(exports, "nestedExpandWithoutNonBodiedMacros", {
|
865
|
-
enumerable: true,
|
866
|
-
get: function get() {
|
867
|
-
return _schema.nestedExpandWithoutNonBodiedMacros;
|
868
|
-
}
|
869
|
-
});
|
870
828
|
Object.defineProperty(exports, "normalizeHexColor", {
|
871
829
|
enumerable: true,
|
872
830
|
get: function get() {
|
@@ -897,12 +855,6 @@ Object.defineProperty(exports, "orderedListWithOrder", {
|
|
897
855
|
return _schema.orderedListWithOrder;
|
898
856
|
}
|
899
857
|
});
|
900
|
-
Object.defineProperty(exports, "panelWithoutNestedNonBodiedMacros", {
|
901
|
-
enumerable: true,
|
902
|
-
get: function get() {
|
903
|
-
return _schema.panelWithoutNestedNonBodiedMacros;
|
904
|
-
}
|
905
|
-
});
|
906
858
|
Object.defineProperty(exports, "paragraph", {
|
907
859
|
enumerable: true,
|
908
860
|
get: function get() {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.
|
6
|
+
exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockCard = void 0;
|
7
7
|
var _createPMSpecFactory = require("../../schema/createPMSpecFactory");
|
8
8
|
/**
|
9
9
|
* This file was automatically generated by @atlaskit/adf-schema-generator
|
@@ -47,20 +47,6 @@ var blockquoteLegacy = exports.blockquoteLegacy = (0, _createPMSpecFactory.creat
|
|
47
47
|
selectable: true,
|
48
48
|
defining: true
|
49
49
|
});
|
50
|
-
var blockquoteWithoutNestedCodeblockOrMedia = exports.blockquoteWithoutNestedCodeblockOrMedia = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
51
|
-
content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
|
52
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
53
|
-
group: 'block',
|
54
|
-
selectable: true,
|
55
|
-
defining: true
|
56
|
-
});
|
57
|
-
var blockquoteWithoutNonBodiedMacros = exports.blockquoteWithoutNonBodiedMacros = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
58
|
-
content: '(paragraph | orderedList | bulletList | unsupportedBlock | codeBlock | mediaSingle | mediaGroup)+',
|
59
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
60
|
-
group: 'block',
|
61
|
-
selectable: true,
|
62
|
-
defining: true
|
63
|
-
});
|
64
50
|
var bodiedExtension = exports.bodiedExtension = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
65
51
|
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
|
66
52
|
marks: 'dataConsumer fragment unsupportedMark unsupportedNodeAttribute',
|
@@ -328,21 +314,6 @@ var expandRootOnly = exports.expandRootOnly = (0, _createPMSpecFactory.createPMN
|
|
328
314
|
selectable: true,
|
329
315
|
isolating: true
|
330
316
|
});
|
331
|
-
var expandWithoutNestedExpand = exports.expandWithoutNestedExpand = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
332
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
|
333
|
-
marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
|
334
|
-
group: 'block',
|
335
|
-
attrs: {
|
336
|
-
title: {
|
337
|
-
default: ''
|
338
|
-
},
|
339
|
-
__expanded: {
|
340
|
-
default: true
|
341
|
-
}
|
342
|
-
},
|
343
|
-
selectable: true,
|
344
|
-
isolating: true
|
345
|
-
});
|
346
317
|
var extension = exports.extension = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
347
318
|
group: 'block',
|
348
319
|
atom: true,
|
@@ -598,12 +569,6 @@ var listItemWithNestedDecisionStage0 = exports.listItemWithNestedDecisionStage0
|
|
598
569
|
selectable: false,
|
599
570
|
defining: true
|
600
571
|
});
|
601
|
-
var listItemWithoutNonBodiedMacros = exports.listItemWithoutNonBodiedMacros = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
602
|
-
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock)*',
|
603
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
604
|
-
selectable: false,
|
605
|
-
defining: true
|
606
|
-
});
|
607
572
|
var media = exports.media = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
608
573
|
attrs: {
|
609
574
|
type: {
|
@@ -876,20 +841,6 @@ var nestedExpandWithNoMarks = exports.nestedExpandWithNoMarks = (0, _createPMSpe
|
|
876
841
|
selectable: true,
|
877
842
|
isolating: true
|
878
843
|
});
|
879
|
-
var nestedExpandWithoutNonBodiedMacros = exports.nestedExpandWithoutNonBodiedMacros = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
880
|
-
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+',
|
881
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
882
|
-
attrs: {
|
883
|
-
title: {
|
884
|
-
default: ''
|
885
|
-
},
|
886
|
-
__expanded: {
|
887
|
-
default: true
|
888
|
-
}
|
889
|
-
},
|
890
|
-
selectable: true,
|
891
|
-
isolating: true
|
892
|
-
});
|
893
844
|
var orderedList = exports.orderedList = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
894
845
|
content: 'listItem+',
|
895
846
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
@@ -924,29 +875,6 @@ var panel = exports.panel = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
924
875
|
},
|
925
876
|
selectable: true
|
926
877
|
});
|
927
|
-
var panelWithoutNestedNonBodiedMacros = exports.panelWithoutNestedNonBodiedMacros = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
928
|
-
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock)+',
|
929
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
930
|
-
group: 'block',
|
931
|
-
attrs: {
|
932
|
-
panelType: {
|
933
|
-
default: 'info'
|
934
|
-
},
|
935
|
-
panelIcon: {
|
936
|
-
default: null
|
937
|
-
},
|
938
|
-
panelIconId: {
|
939
|
-
default: null
|
940
|
-
},
|
941
|
-
panelIconText: {
|
942
|
-
default: null
|
943
|
-
},
|
944
|
-
panelColor: {
|
945
|
-
default: null
|
946
|
-
}
|
947
|
-
},
|
948
|
-
selectable: true
|
949
|
-
});
|
950
878
|
var paragraph = exports.paragraph = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
951
879
|
content: 'inline*',
|
952
880
|
marks: 'link em strong strike subsup underline textColor annotation backgroundColor typeAheadQuery confluenceInlineComment unsupportedNodeAttribute unsupportedMark code dataConsumer fragment border',
|
@@ -35,8 +35,8 @@ var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
|
35
35
|
* - no base mediaSingle
|
36
36
|
* - no base heading
|
37
37
|
*/
|
38
|
-
var blockContentGroup = exports.blockContentGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block_content', [_blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel,
|
38
|
+
var blockContentGroup = exports.blockContentGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block_content', [_blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _extension.extension.use('with_marks'), _embedCard.embedCard, _tableNodes.table,
|
39
39
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
40
|
-
_tableNodes.table.use('with_nested_table'), _expand.expand,
|
40
|
+
_tableNodes.table.use('with_nested_table'), _expand.expand, _bodiedExtension.bodiedExtension.use('with_marks'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
|
41
41
|
ignore: ['pm-spec']
|
42
42
|
});
|
@@ -24,9 +24,9 @@ var _rule = require("../nodes/rule");
|
|
24
24
|
var _tableNodes = require("../nodes/tableNodes");
|
25
25
|
var _task = require("../nodes/task");
|
26
26
|
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
27
|
-
var blockGroup = exports.blockGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block', [_blockCard.blockCard, _codeBlock.codeBlock, _mediaSingle.mediaSingle, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaSingle.mediaSingle.use('width_type'), _paragraph.paragraph, _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _paragraph.paragraph.use('with_no_marks'), _task.taskList, _list.orderedList, _list.bulletList, _blockquote.blockquote, _blockquote.blockquote.use('legacy'),
|
27
|
+
var blockGroup = exports.blockGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block', [_blockCard.blockCard, _codeBlock.codeBlock, _mediaSingle.mediaSingle, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaSingle.mediaSingle.use('width_type'), _paragraph.paragraph, _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _paragraph.paragraph.use('with_no_marks'), _task.taskList, _list.orderedList, _list.bulletList, _blockquote.blockquote, _blockquote.blockquote.use('legacy'), _decisionList.decisionList, _embedCard.embedCard, _extension.extension, _extension.extension.use('with_marks'), _heading.heading, _heading.heading.use('with_indentation'), _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _mediaGroup.mediaGroup, _rule.rule, _panel.panel, _tableNodes.table,
|
28
28
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
29
|
-
_tableNodes.table.use('with_nested_table'), _bodiedExtension.bodiedExtension, _bodiedExtension.bodiedExtension.use('with_marks'), _expand.expand,
|
29
|
+
_tableNodes.table.use('with_nested_table'), _bodiedExtension.bodiedExtension, _bodiedExtension.bodiedExtension.use('with_marks'), _expand.expand, _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
|
30
30
|
// @DSLCompatibilityException
|
31
31
|
// Block group in PM doesn't match ADF
|
32
32
|
ignore: ['validator-spec', 'json-schema']
|
@@ -21,7 +21,7 @@ var _paragraph = require("../nodes/paragraph");
|
|
21
21
|
var _rule = require("../nodes/rule");
|
22
22
|
var _task = require("../nodes/task");
|
23
23
|
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
24
|
-
var tableCellContentNodes = exports.tableCellContentNodes = [_paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _panel.panel, _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _codeBlock.codeBlock, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaGroup.mediaGroup, _decisionList.decisionList, _task.taskList, _blockCard.blockCard, _embedCard.embedCard, _extension.extension.use('with_marks'), _nestedExpand.nestedExpand.use('content'), _nestedExpand.nestedExpand.use('with_no_marks')
|
24
|
+
var tableCellContentNodes = exports.tableCellContentNodes = [_paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _panel.panel, _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _codeBlock.codeBlock, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaGroup.mediaGroup, _decisionList.decisionList, _task.taskList, _blockCard.blockCard, _embedCard.embedCard, _extension.extension.use('with_marks'), _nestedExpand.nestedExpand.use('content'), _nestedExpand.nestedExpand.use('with_no_marks')];
|
25
25
|
|
26
26
|
// This is not an actual group, but a collection of nodes
|
27
27
|
// @DSLCompatibilityException JSON Schema and PM Spec are not in sync. We need to fix it
|
@@ -23,12 +23,4 @@ var blockquote = exports.blockquote = (0, _adfSchemaGenerator.adfNode)('blockquo
|
|
23
23
|
}).variant('legacy', {
|
24
24
|
ignore: ['json-schema', 'validator-spec'],
|
25
25
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _unsupportedBlock.unsupportedBlock))]
|
26
|
-
}).variant('without_non_bodied_macros', {
|
27
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock, _codeBlock.codeBlock, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaGroup.mediaGroup))],
|
28
|
-
ignore: ['json-schema', 'validator-spec']
|
29
|
-
})
|
30
|
-
// TODO: Clean up this variant
|
31
|
-
.variant('without_nested_codeblock_or_media', {
|
32
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock))],
|
33
|
-
ignore: ['json-schema', 'validator-spec']
|
34
26
|
});
|
@@ -26,10 +26,7 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
|
|
26
26
|
optional: true
|
27
27
|
}
|
28
28
|
},
|
29
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup, _nestedExpand.nestedExpand.use('with_no_marks')
|
30
|
-
}).variant('without_nested_expand', {
|
31
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
|
32
|
-
ignore: ['json-schema', 'validator-spec']
|
29
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup, _nestedExpand.nestedExpand.use('with_no_marks')))]
|
33
30
|
}).variant('root_only', {
|
34
31
|
marks: [_breakout.breakout, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
35
32
|
noMarks: false,
|
@@ -26,10 +26,6 @@ var listItem = (0, _adfSchemaGenerator.adfNode)('listItem').define({
|
|
26
26
|
content: [(0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _unsupportedBlock.unsupportedBlock, _decisionList.decisionList, _extension.extension.use('with_marks')), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), bulletList, orderedList, _task.taskList, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _unsupportedBlock.unsupportedBlock, _decisionList.decisionList, _extension.extension.use('with_marks')))],
|
27
27
|
noExtend: true,
|
28
28
|
stage0: true
|
29
|
-
}).variant('without_non_bodied_macros', {
|
30
|
-
content: [(0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _unsupportedBlock.unsupportedBlock), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), bulletList, orderedList, _task.taskList, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _unsupportedBlock.unsupportedBlock))],
|
31
|
-
noExtend: true,
|
32
|
-
ignore: ['json-schema', 'validator-spec']
|
33
29
|
});
|
34
30
|
orderedList.define({
|
35
31
|
selectable: false,
|
@@ -42,10 +38,10 @@ orderedList.define({
|
|
42
38
|
optional: true
|
43
39
|
}
|
44
40
|
},
|
45
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')
|
41
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')))]
|
46
42
|
});
|
47
43
|
bulletList.define({
|
48
44
|
selectable: false,
|
49
45
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
50
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')
|
46
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')))]
|
51
47
|
});
|
@@ -60,10 +60,4 @@ var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nest
|
|
60
60
|
marks: [],
|
61
61
|
content: [],
|
62
62
|
noMarks: true
|
63
|
-
}).variant('without_non_bodied_macros', {
|
64
|
-
marks: [],
|
65
|
-
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, nestedExpandContent))],
|
66
|
-
noMarks: true,
|
67
|
-
noExtend: true,
|
68
|
-
ignore: ['json-schema', 'validator-spec']
|
69
63
|
});
|
@@ -51,8 +51,4 @@ var panel = exports.panel = (0, _adfSchemaGenerator.adfNode)('panel').define({
|
|
51
51
|
}
|
52
52
|
},
|
53
53
|
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, panelContent.concat([_extension.extension.use('with_marks')])))]
|
54
|
-
}).variant('without_nested_non_bodied_macros', {
|
55
|
-
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, panelContent))],
|
56
|
-
noExtend: true,
|
57
|
-
ignore: ['json-schema', 'validator-spec']
|
58
54
|
});
|
package/dist/cjs/schema/index.js
CHANGED
@@ -63,24 +63,6 @@ Object.defineProperty(exports, "blockquote", {
|
|
63
63
|
return _nodes.blockquote;
|
64
64
|
}
|
65
65
|
});
|
66
|
-
Object.defineProperty(exports, "blockquoteWithList", {
|
67
|
-
enumerable: true,
|
68
|
-
get: function get() {
|
69
|
-
return _nodes.blockquoteWithList;
|
70
|
-
}
|
71
|
-
});
|
72
|
-
Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMedia", {
|
73
|
-
enumerable: true,
|
74
|
-
get: function get() {
|
75
|
-
return _nodes.blockquoteWithNestedCodeblockOrMedia;
|
76
|
-
}
|
77
|
-
});
|
78
|
-
Object.defineProperty(exports, "blockquoteWithoutNonBodiedMacros", {
|
79
|
-
enumerable: true,
|
80
|
-
get: function get() {
|
81
|
-
return _nodes.blockquoteWithoutNonBodiedMacros;
|
82
|
-
}
|
83
|
-
});
|
84
66
|
Object.defineProperty(exports, "bodiedExtension", {
|
85
67
|
enumerable: true,
|
86
68
|
get: function get() {
|
@@ -267,12 +249,6 @@ Object.defineProperty(exports, "emoji", {
|
|
267
249
|
return _nodes.emoji;
|
268
250
|
}
|
269
251
|
});
|
270
|
-
Object.defineProperty(exports, "expand", {
|
271
|
-
enumerable: true,
|
272
|
-
get: function get() {
|
273
|
-
return _nodes.expand;
|
274
|
-
}
|
275
|
-
});
|
276
252
|
Object.defineProperty(exports, "expandToJSON", {
|
277
253
|
enumerable: true,
|
278
254
|
get: function get() {
|
@@ -417,18 +393,6 @@ Object.defineProperty(exports, "listItemWithDecisionStage0", {
|
|
417
393
|
return _nodes.listItemWithDecisionStage0;
|
418
394
|
}
|
419
395
|
});
|
420
|
-
Object.defineProperty(exports, "listItemWithTask", {
|
421
|
-
enumerable: true,
|
422
|
-
get: function get() {
|
423
|
-
return _nodes.listItemWithTask;
|
424
|
-
}
|
425
|
-
});
|
426
|
-
Object.defineProperty(exports, "listItemWithoutNonBodiedMacros", {
|
427
|
-
enumerable: true,
|
428
|
-
get: function get() {
|
429
|
-
return _nodes.listItemWithoutNonBodiedMacros;
|
430
|
-
}
|
431
|
-
});
|
432
396
|
Object.defineProperty(exports, "media", {
|
433
397
|
enumerable: true,
|
434
398
|
get: function get() {
|
@@ -513,12 +477,6 @@ Object.defineProperty(exports, "nestedExpand", {
|
|
513
477
|
return _nodes.nestedExpand;
|
514
478
|
}
|
515
479
|
});
|
516
|
-
Object.defineProperty(exports, "nestedExpandWithoutNonBodiedMacros", {
|
517
|
-
enumerable: true,
|
518
|
-
get: function get() {
|
519
|
-
return _nodes.nestedExpandWithoutNonBodiedMacros;
|
520
|
-
}
|
521
|
-
});
|
522
480
|
Object.defineProperty(exports, "orderedList", {
|
523
481
|
enumerable: true,
|
524
482
|
get: function get() {
|
@@ -537,12 +495,6 @@ Object.defineProperty(exports, "orderedListWithOrder", {
|
|
537
495
|
return _nodes.orderedListWithOrder;
|
538
496
|
}
|
539
497
|
});
|
540
|
-
Object.defineProperty(exports, "panelWithoutNestedNonBodiedMacros", {
|
541
|
-
enumerable: true,
|
542
|
-
get: function get() {
|
543
|
-
return _nodes.panelWithoutNestedNonBodiedMacros;
|
544
|
-
}
|
545
|
-
});
|
546
498
|
Object.defineProperty(exports, "paragraph", {
|
547
499
|
enumerable: true,
|
548
500
|
get: function get() {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.extendedBlockquote = exports.
|
6
|
+
exports.extendedBlockquote = exports.blockquote = void 0;
|
7
7
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
8
8
|
/**
|
9
9
|
* @name blockquote_node
|
@@ -19,40 +19,8 @@ var nodeSpecOptions = {
|
|
19
19
|
};
|
20
20
|
var blockquote = exports.blockquote = (0, _nodeTypes.blockquoteLegacy)(nodeSpecOptions);
|
21
21
|
|
22
|
-
/**
|
23
|
-
* @name blockquoteWithNestedCodeblockOrMedia
|
24
|
-
* @deprecated use extentedBlockquote instead
|
25
|
-
*/
|
26
|
-
var blockquoteWithNestedCodeblockOrMedia = exports.blockquoteWithNestedCodeblockOrMedia = (0, _nodeTypes.blockquoteWithoutNonBodiedMacros)(nodeSpecOptions);
|
27
|
-
|
28
22
|
/**
|
29
23
|
* @name extentedBlockquote
|
30
24
|
* @description the block quote node with nested code block, media, and extension
|
31
25
|
*/
|
32
|
-
var extendedBlockquote = exports.extendedBlockquote = (0, _nodeTypes.blockquote)(nodeSpecOptions);
|
33
|
-
|
34
|
-
/**
|
35
|
-
* @name blockquote_with_list_node
|
36
|
-
* @deprecated use extentedBlockquote instead
|
37
|
-
* TODO: remove this node in the next major version
|
38
|
-
*/
|
39
|
-
var blockquoteWithList = exports.blockquoteWithList = (0, _nodeTypes.blockquoteWithoutNestedCodeblockOrMedia)({
|
40
|
-
parseDOM: [{
|
41
|
-
tag: 'blockquote'
|
42
|
-
}],
|
43
|
-
toDOM: function toDOM() {
|
44
|
-
return ['blockquote', 0];
|
45
|
-
}
|
46
|
-
});
|
47
|
-
|
48
|
-
/**
|
49
|
-
* @name blockquote_without_non_bodied_macros_node
|
50
|
-
*/
|
51
|
-
var blockquoteWithoutNonBodiedMacros = exports.blockquoteWithoutNonBodiedMacros = (0, _nodeTypes.blockquoteWithoutNonBodiedMacros)({
|
52
|
-
parseDOM: [{
|
53
|
-
tag: 'blockquote'
|
54
|
-
}],
|
55
|
-
toDOM: function toDOM() {
|
56
|
-
return ['blockquote', 0];
|
57
|
-
}
|
58
|
-
});
|
26
|
+
var extendedBlockquote = exports.extendedBlockquote = (0, _nodeTypes.blockquote)(nodeSpecOptions);
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
exports.toJSON = exports.expandWithNestedExpand =
|
7
|
+
exports.toJSON = exports.expandWithNestedExpand = void 0;
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
9
9
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
@@ -60,7 +60,6 @@ var nodeSpecOptions = {
|
|
60
60
|
return ['div', attrs, 0];
|
61
61
|
}
|
62
62
|
};
|
63
|
-
var expand = exports.expand = (0, _nodeTypes.expandWithoutNestedExpand)(nodeSpecOptions);
|
64
63
|
var expandWithNestedExpand = exports.expandWithNestedExpand = (0, _nodeTypes.expand)(nodeSpecOptions);
|
65
64
|
var toJSON = exports.toJSON = function toJSON(node) {
|
66
65
|
return {
|
@@ -22,24 +22,6 @@ Object.defineProperty(exports, "blockquote", {
|
|
22
22
|
return _blockquote.blockquote;
|
23
23
|
}
|
24
24
|
});
|
25
|
-
Object.defineProperty(exports, "blockquoteWithList", {
|
26
|
-
enumerable: true,
|
27
|
-
get: function get() {
|
28
|
-
return _blockquote.blockquoteWithList;
|
29
|
-
}
|
30
|
-
});
|
31
|
-
Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMedia", {
|
32
|
-
enumerable: true,
|
33
|
-
get: function get() {
|
34
|
-
return _blockquote.blockquoteWithNestedCodeblockOrMedia;
|
35
|
-
}
|
36
|
-
});
|
37
|
-
Object.defineProperty(exports, "blockquoteWithoutNonBodiedMacros", {
|
38
|
-
enumerable: true,
|
39
|
-
get: function get() {
|
40
|
-
return _blockquote.blockquoteWithoutNonBodiedMacros;
|
41
|
-
}
|
42
|
-
});
|
43
25
|
Object.defineProperty(exports, "bodiedExtension", {
|
44
26
|
enumerable: true,
|
45
27
|
get: function get() {
|
@@ -142,12 +124,6 @@ Object.defineProperty(exports, "emoji", {
|
|
142
124
|
return _emoji.emoji;
|
143
125
|
}
|
144
126
|
});
|
145
|
-
Object.defineProperty(exports, "expand", {
|
146
|
-
enumerable: true,
|
147
|
-
get: function get() {
|
148
|
-
return _expand.expand;
|
149
|
-
}
|
150
|
-
});
|
151
127
|
Object.defineProperty(exports, "expandToJSON", {
|
152
128
|
enumerable: true,
|
153
129
|
get: function get() {
|
@@ -256,18 +232,6 @@ Object.defineProperty(exports, "listItemWithDecisionStage0", {
|
|
256
232
|
return _listItem.listItemWithDecisionStage0;
|
257
233
|
}
|
258
234
|
});
|
259
|
-
Object.defineProperty(exports, "listItemWithTask", {
|
260
|
-
enumerable: true,
|
261
|
-
get: function get() {
|
262
|
-
return _listItem.listItemWithTask;
|
263
|
-
}
|
264
|
-
});
|
265
|
-
Object.defineProperty(exports, "listItemWithoutNonBodiedMacros", {
|
266
|
-
enumerable: true,
|
267
|
-
get: function get() {
|
268
|
-
return _listItem.listItemWithoutNonBodiedMacros;
|
269
|
-
}
|
270
|
-
});
|
271
235
|
Object.defineProperty(exports, "media", {
|
272
236
|
enumerable: true,
|
273
237
|
get: function get() {
|
@@ -352,12 +316,6 @@ Object.defineProperty(exports, "nestedExpand", {
|
|
352
316
|
return _nestedExpand.nestedExpand;
|
353
317
|
}
|
354
318
|
});
|
355
|
-
Object.defineProperty(exports, "nestedExpandWithoutNonBodiedMacros", {
|
356
|
-
enumerable: true,
|
357
|
-
get: function get() {
|
358
|
-
return _nestedExpand.nestedExpandWithoutNonBodiedMacros;
|
359
|
-
}
|
360
|
-
});
|
361
319
|
Object.defineProperty(exports, "orderedList", {
|
362
320
|
enumerable: true,
|
363
321
|
get: function get() {
|
@@ -376,12 +334,6 @@ Object.defineProperty(exports, "orderedListWithOrder", {
|
|
376
334
|
return _orderedList.orderedListWithOrder;
|
377
335
|
}
|
378
336
|
});
|
379
|
-
Object.defineProperty(exports, "panelWithoutNestedNonBodiedMacros", {
|
380
|
-
enumerable: true,
|
381
|
-
get: function get() {
|
382
|
-
return _panel.panelWithoutNestedNonBodiedMacros;
|
383
|
-
}
|
384
|
-
});
|
385
337
|
Object.defineProperty(exports, "paragraph", {
|
386
338
|
enumerable: true,
|
387
339
|
get: function get() {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.listItemWithDecisionStage0 = exports.listItem = void 0;
|
7
7
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
8
8
|
/**
|
9
9
|
* @name list_item
|
@@ -18,12 +18,6 @@ var listItem = exports.listItem = (0, _nodeTypes.listItem)({
|
|
18
18
|
}
|
19
19
|
});
|
20
20
|
|
21
|
-
/**
|
22
|
-
* @name list_item_with_task
|
23
|
-
* @description this node allows task-list to be nested inside list-item
|
24
|
-
*/
|
25
|
-
var listItemWithTask = exports.listItemWithTask = listItem;
|
26
|
-
|
27
21
|
/**
|
28
22
|
* @name list_item_with_decision_stage0
|
29
23
|
* @description this node allows decisions to be nested inside list-item
|
@@ -35,16 +29,4 @@ var listItemWithDecisionStage0 = exports.listItemWithDecisionStage0 = (0, _nodeT
|
|
35
29
|
toDOM: function toDOM() {
|
36
30
|
return ['li', 0];
|
37
31
|
}
|
38
|
-
});
|
39
|
-
/**
|
40
|
-
* @name list_item_without_non_bodied_macros
|
41
|
-
* @description this node does not allow extension inside list-item
|
42
|
-
*/
|
43
|
-
var listItemWithoutNonBodiedMacros = exports.listItemWithoutNonBodiedMacros = (0, _nodeTypes.listItemWithoutNonBodiedMacros)({
|
44
|
-
parseDOM: [{
|
45
|
-
tag: 'li'
|
46
|
-
}],
|
47
|
-
toDOM: function toDOM() {
|
48
|
-
return ['li', 0];
|
49
|
-
}
|
50
32
|
});
|