@atlaskit/adf-schema 47.3.1 → 47.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/next-schema/generated/nodeTypes.js +11 -11
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/expand.js +1 -1
- package/dist/cjs/next-schema/nodes/nestedExpand.js +7 -12
- package/dist/cjs/next-schema/nodes/panel.js +3 -17
- package/dist/cjs/schema/default-schema.js +1 -3
- package/dist/cjs/schema/index.js +4 -4
- package/dist/cjs/schema/nodes/index.js +4 -4
- package/dist/cjs/schema/nodes/nested-expand.js +27 -3
- package/dist/cjs/schema/nodes/panel.js +3 -3
- package/dist/cjs/validator-schema/generated/validatorSpec.js +8 -39
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +10 -10
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/expand.js +1 -1
- package/dist/es2019/next-schema/nodes/nestedExpand.js +7 -12
- package/dist/es2019/next-schema/nodes/panel.js +3 -17
- package/dist/es2019/schema/default-schema.js +2 -4
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/index.js +2 -2
- package/dist/es2019/schema/nodes/nested-expand.js +27 -3
- package/dist/es2019/schema/nodes/panel.js +2 -2
- package/dist/es2019/validator-schema/generated/validatorSpec.js +7 -38
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +10 -10
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/esm/next-schema/nodes/expand.js +1 -1
- package/dist/esm/next-schema/nodes/nestedExpand.js +7 -12
- package/dist/esm/next-schema/nodes/panel.js +3 -17
- package/dist/esm/schema/default-schema.js +2 -4
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/index.js +2 -2
- package/dist/esm/schema/nodes/nested-expand.js +27 -3
- package/dist/esm/schema/nodes/panel.js +3 -3
- package/dist/esm/validator-schema/generated/validatorSpec.js +7 -38
- package/dist/json-schema/v1/full.json +6 -0
- package/dist/json-schema/v1/stage-0.json +3 -172
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +16 -16
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +2 -2
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +3 -3
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +2 -2
- package/dist/types/next-schema/nodes/panel.d.ts +2 -2
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +2 -2
- package/dist/types/schema/nodes/nested-expand.d.ts +2 -2
- package/dist/types/schema/nodes/panel.d.ts +1 -1
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +1 -32
- package/json-schema/v1/full.json +6 -0
- package/json-schema/v1/stage-0.json +3 -172
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 47.5.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- ce54136: [ED-26496]Promote extension in nestedExpand to full schema
|
8
|
+
|
9
|
+
## 47.4.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- d016a37: ED-26949 Promote extension in panel to full schema
|
14
|
+
|
3
15
|
## 47.3.1
|
4
16
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
@@ -861,10 +861,10 @@ Object.defineProperty(exports, "nestedExpand", {
|
|
861
861
|
return _schema.nestedExpand;
|
862
862
|
}
|
863
863
|
});
|
864
|
-
Object.defineProperty(exports, "
|
864
|
+
Object.defineProperty(exports, "nestedExpandWithoutNonBodiedMacros", {
|
865
865
|
enumerable: true,
|
866
866
|
get: function get() {
|
867
|
-
return _schema.
|
867
|
+
return _schema.nestedExpandWithoutNonBodiedMacros;
|
868
868
|
}
|
869
869
|
});
|
870
870
|
Object.defineProperty(exports, "normalizeHexColor", {
|
@@ -897,10 +897,10 @@ Object.defineProperty(exports, "orderedListWithOrder", {
|
|
897
897
|
return _schema.orderedListWithOrder;
|
898
898
|
}
|
899
899
|
});
|
900
|
-
Object.defineProperty(exports, "
|
900
|
+
Object.defineProperty(exports, "panelWithoutNestedNonBodiedMacros", {
|
901
901
|
enumerable: true,
|
902
902
|
get: function get() {
|
903
|
-
return _schema.
|
903
|
+
return _schema.panelWithoutNestedNonBodiedMacros;
|
904
904
|
}
|
905
905
|
});
|
906
906
|
Object.defineProperty(exports, "paragraph", {
|
@@ -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.panelWithoutNestedNonBodiedMacros = exports.panel = exports.orderedList = exports.nestedExpandWithoutNonBodiedMacros = 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.listItemWithNonBodiedMacrosStage0 = 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.expandWithoutNestedExpand = 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.blockquoteWithoutNonBodiedMacros = exports.blockquoteWithoutNestedCodeblockOrMedia = 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
|
@@ -851,8 +851,8 @@ var multiBodiedExtensionStage0 = exports.multiBodiedExtensionStage0 = (0, _creat
|
|
851
851
|
definingAsContext: true
|
852
852
|
});
|
853
853
|
var nestedExpand = exports.nestedExpand = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
854
|
-
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+',
|
855
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
854
|
+
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock | extension)+',
|
855
|
+
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
856
856
|
attrs: {
|
857
857
|
title: {
|
858
858
|
default: ''
|
@@ -876,9 +876,9 @@ var nestedExpandWithNoMarks = exports.nestedExpandWithNoMarks = (0, _createPMSpe
|
|
876
876
|
selectable: true,
|
877
877
|
isolating: true
|
878
878
|
});
|
879
|
-
var
|
880
|
-
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock
|
881
|
-
marks: 'unsupportedMark unsupportedNodeAttribute
|
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
882
|
attrs: {
|
883
883
|
title: {
|
884
884
|
default: ''
|
@@ -902,8 +902,8 @@ var orderedList = exports.orderedList = (0, _createPMSpecFactory.createPMNodeSpe
|
|
902
902
|
selectable: false
|
903
903
|
});
|
904
904
|
var panel = exports.panel = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
905
|
-
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock)+',
|
906
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
905
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock | extension)+',
|
906
|
+
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
907
907
|
group: 'block',
|
908
908
|
attrs: {
|
909
909
|
panelType: {
|
@@ -924,9 +924,9 @@ var panel = exports.panel = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
924
924
|
},
|
925
925
|
selectable: true
|
926
926
|
});
|
927
|
-
var
|
928
|
-
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock
|
929
|
-
marks: 'unsupportedMark unsupportedNodeAttribute
|
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
930
|
group: 'block',
|
931
931
|
attrs: {
|
932
932
|
panelType: {
|
@@ -35,7 +35,7 @@ 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, _panel.panel.use('
|
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, _panel.panel.use('without_nested_non_bodied_macros'), _blockquote.blockquote, _blockquote.blockquote.use('without_nested_codeblock_or_media'), _blockquote.blockquote.use('without_non_bodied_macros'), _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
40
|
_tableNodes.table.use('with_nested_table'), _expand.expand, _expand.expand.use('without_nested_expand'), _bodiedExtension.bodiedExtension.use('with_marks'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
|
41
41
|
ignore: ['pm-spec']
|
@@ -24,7 +24,7 @@ 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'), _blockquote.blockquote.use('without_nested_codeblock_or_media'), _blockquote.blockquote.use('without_non_bodied_macros'), _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, _panel.panel.use('
|
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'), _blockquote.blockquote.use('without_nested_codeblock_or_media'), _blockquote.blockquote.use('without_non_bodied_macros'), _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, _panel.panel.use('without_nested_non_bodied_macros'), _tableNodes.table,
|
28
28
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
29
29
|
_tableNodes.table.use('with_nested_table'), _bodiedExtension.bodiedExtension, _bodiedExtension.bodiedExtension.use('with_marks'), _expand.expand, _expand.expand.use('without_nested_expand'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
|
30
30
|
// @DSLCompatibilityException
|
@@ -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'), _nestedExpand.nestedExpand.use('
|
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'), _nestedExpand.nestedExpand.use('without_non_bodied_macros')];
|
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
|
@@ -26,7 +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'), _nestedExpand.nestedExpand.use('
|
29
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup, _nestedExpand.nestedExpand.use('with_no_marks'), _nestedExpand.nestedExpand.use('without_non_bodied_macros')))]
|
30
30
|
}).variant('without_nested_expand', {
|
31
31
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
|
32
32
|
ignore: ['json-schema', 'validator-spec']
|
@@ -37,7 +37,7 @@ var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nest
|
|
37
37
|
optional: true
|
38
38
|
}
|
39
39
|
},
|
40
|
-
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, nestedExpandContent))],
|
40
|
+
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, nestedExpandContent.concat([_extension.extension.use('with_marks')])))],
|
41
41
|
DANGEROUS_MANUAL_OVERRIDE: {
|
42
42
|
'validator-spec': {
|
43
43
|
'props.attrs.optional': {
|
@@ -45,13 +45,8 @@ var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nest
|
|
45
45
|
reason: '@DSLCompatibilityException - mismatch with DSL'
|
46
46
|
},
|
47
47
|
'props.content': {
|
48
|
-
value:
|
49
|
-
|
50
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks']],
|
51
|
-
minItems: 1,
|
52
|
-
allowUnsupportedBlock: true
|
53
|
-
},
|
54
|
-
reason: '@DSLCompatibilityException - this is to loose the validator ristriction to allow extension to be nested inside nestedExpand'
|
48
|
+
value: 'nestedExpand_content',
|
49
|
+
reason: '@DSLCompatibilityException - mismatch with DSL'
|
55
50
|
},
|
56
51
|
required: {
|
57
52
|
reason: '@DSLCompatibilityException - required for nestedExpand validator spec',
|
@@ -65,10 +60,10 @@ var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nest
|
|
65
60
|
marks: [],
|
66
61
|
content: [],
|
67
62
|
noMarks: true
|
68
|
-
}).variant('
|
63
|
+
}).variant('without_non_bodied_macros', {
|
69
64
|
marks: [],
|
70
|
-
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, nestedExpandContent
|
71
|
-
stage0: true,
|
65
|
+
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, nestedExpandContent))],
|
72
66
|
noMarks: true,
|
73
|
-
noExtend: true
|
67
|
+
noExtend: true,
|
68
|
+
ignore: ['json-schema', 'validator-spec']
|
74
69
|
});
|
@@ -50,23 +50,9 @@ var panel = exports.panel = (0, _adfSchemaGenerator.adfNode)('panel').define({
|
|
50
50
|
optional: true
|
51
51
|
}
|
52
52
|
},
|
53
|
+
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, panelContent.concat([_extension.extension.use('with_marks')])))]
|
54
|
+
}).variant('without_nested_non_bodied_macros', {
|
53
55
|
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, panelContent))],
|
54
|
-
// TODO: remove the mannual override once with_nested_non_bodied_macros is promoted to full schema
|
55
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
56
|
-
'validator-spec': {
|
57
|
-
'props.content': {
|
58
|
-
value: {
|
59
|
-
type: 'array',
|
60
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks']],
|
61
|
-
minItems: 1,
|
62
|
-
allowUnsupportedBlock: true
|
63
|
-
},
|
64
|
-
reason: '@DSLCompatibilityException - this is to loose the validator ristriction to allow extension to be nested inside panel'
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}).variant('with_nested_non_bodied_macros', {
|
69
|
-
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, panelContent.concat([_extension.extension.use('with_marks')])))],
|
70
56
|
noExtend: true,
|
71
|
-
|
57
|
+
ignore: ['json-schema', 'validator-spec']
|
72
58
|
});
|
@@ -28,12 +28,10 @@ var getSchemaBasedOnStage = exports.getSchemaBasedOnStage = (0, _memoizeOne.defa
|
|
28
28
|
extensionFrame: _nodes.extensionFrame,
|
29
29
|
expand: _nodes.expandWithNestedExpand,
|
30
30
|
listItem: _nodes.listItemWithNonBodiedMacrosStage0,
|
31
|
-
panel: (0, _nodes.panelWithNonBodiedMacrosStage0)(true),
|
32
31
|
table: _nodes.tableWithNestedTable,
|
33
32
|
tableRow: _nodes.tableRowWithNestedTable,
|
34
33
|
tableCell: _nodes.tableCellWithNestedTable,
|
35
|
-
tableHeader: _nodes.tableHeaderWithNestedTable
|
36
|
-
nestedExpand: _nodes.nestedExpandWithNonBodiedMacrosStage0
|
34
|
+
tableHeader: _nodes.tableHeaderWithNestedTable
|
37
35
|
};
|
38
36
|
}
|
39
37
|
return (0, _createSchema.createSchema)(defaultSchemaConfig);
|
package/dist/cjs/schema/index.js
CHANGED
@@ -513,10 +513,10 @@ Object.defineProperty(exports, "nestedExpand", {
|
|
513
513
|
return _nodes.nestedExpand;
|
514
514
|
}
|
515
515
|
});
|
516
|
-
Object.defineProperty(exports, "
|
516
|
+
Object.defineProperty(exports, "nestedExpandWithoutNonBodiedMacros", {
|
517
517
|
enumerable: true,
|
518
518
|
get: function get() {
|
519
|
-
return _nodes.
|
519
|
+
return _nodes.nestedExpandWithoutNonBodiedMacros;
|
520
520
|
}
|
521
521
|
});
|
522
522
|
Object.defineProperty(exports, "orderedList", {
|
@@ -537,10 +537,10 @@ Object.defineProperty(exports, "orderedListWithOrder", {
|
|
537
537
|
return _nodes.orderedListWithOrder;
|
538
538
|
}
|
539
539
|
});
|
540
|
-
Object.defineProperty(exports, "
|
540
|
+
Object.defineProperty(exports, "panelWithoutNestedNonBodiedMacros", {
|
541
541
|
enumerable: true,
|
542
542
|
get: function get() {
|
543
|
-
return _nodes.
|
543
|
+
return _nodes.panelWithoutNestedNonBodiedMacros;
|
544
544
|
}
|
545
545
|
});
|
546
546
|
Object.defineProperty(exports, "paragraph", {
|
@@ -352,10 +352,10 @@ Object.defineProperty(exports, "nestedExpand", {
|
|
352
352
|
return _nestedExpand.nestedExpand;
|
353
353
|
}
|
354
354
|
});
|
355
|
-
Object.defineProperty(exports, "
|
355
|
+
Object.defineProperty(exports, "nestedExpandWithoutNonBodiedMacros", {
|
356
356
|
enumerable: true,
|
357
357
|
get: function get() {
|
358
|
-
return _nestedExpand.
|
358
|
+
return _nestedExpand.nestedExpandWithoutNonBodiedMacros;
|
359
359
|
}
|
360
360
|
});
|
361
361
|
Object.defineProperty(exports, "orderedList", {
|
@@ -376,10 +376,10 @@ Object.defineProperty(exports, "orderedListWithOrder", {
|
|
376
376
|
return _orderedList.orderedListWithOrder;
|
377
377
|
}
|
378
378
|
});
|
379
|
-
Object.defineProperty(exports, "
|
379
|
+
Object.defineProperty(exports, "panelWithoutNestedNonBodiedMacros", {
|
380
380
|
enumerable: true,
|
381
381
|
get: function get() {
|
382
|
-
return _panel.
|
382
|
+
return _panel.panelWithoutNestedNonBodiedMacros;
|
383
383
|
}
|
384
384
|
});
|
385
385
|
Object.defineProperty(exports, "paragraph", {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.nestedExpandWithoutNonBodiedMacros = exports.nestedExpand = void 0;
|
7
7
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
8
8
|
/**
|
9
9
|
* @name nestedExpand_content
|
@@ -50,6 +50,30 @@ var nestedExpandFactoryOptions = {
|
|
50
50
|
return ['div', attrs, 0];
|
51
51
|
}
|
52
52
|
};
|
53
|
+
var nestedExpandWithoutNonBodiedMacrosFactoryOptions = {
|
54
|
+
parseDOM: [{
|
55
|
+
context: 'nestedExpand//',
|
56
|
+
tag: '[data-node-type="nestedExpand"]',
|
57
|
+
getAttrs: getExpandAttrs
|
58
|
+
}, {
|
59
|
+
tag: '[data-node-type="nestedExpand"] button',
|
60
|
+
ignore: true
|
61
|
+
}, {
|
62
|
+
tag: '[data-node-type="expand"] button',
|
63
|
+
ignore: true
|
64
|
+
}, {
|
65
|
+
tag: 'div[data-node-type="nestedExpand"]',
|
66
|
+
getAttrs: getExpandAttrs
|
67
|
+
}],
|
68
|
+
toDOM: function toDOM(node) {
|
69
|
+
var attrs = {
|
70
|
+
'data-node-type': 'nestedExpand',
|
71
|
+
'data-title': node.attrs.title,
|
72
|
+
'data-expanded': node.attrs.__expanded
|
73
|
+
};
|
74
|
+
return ['div', attrs, 0];
|
75
|
+
}
|
76
|
+
};
|
53
77
|
|
54
78
|
/**
|
55
79
|
* @name nestedExpand
|
@@ -58,7 +82,7 @@ var nestedExpandFactoryOptions = {
|
|
58
82
|
var nestedExpand = exports.nestedExpand = (0, _nodeTypes.nestedExpand)(nestedExpandFactoryOptions);
|
59
83
|
|
60
84
|
/**
|
61
|
-
* @name
|
85
|
+
* @name nestedExpandWithNonBodiedMacros
|
62
86
|
* @description an expand that can be nested (eg. inside table, layout).
|
63
87
|
*/
|
64
|
-
var
|
88
|
+
var nestedExpandWithoutNonBodiedMacros = exports.nestedExpandWithoutNonBodiedMacros = (0, _nodeTypes.nestedExpandWithoutNonBodiedMacros)(nestedExpandWithoutNonBodiedMacrosFactoryOptions);
|
@@ -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.
|
7
|
+
exports.panelWithoutNestedNonBodiedMacros = exports.extendedPanel = exports.PanelType = 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; }
|
@@ -75,6 +75,6 @@ var createPanelNodeSpecOptions = function createPanelNodeSpecOptions(allowCustom
|
|
75
75
|
var extendedPanel = exports.extendedPanel = function extendedPanel(allowCustomPanel) {
|
76
76
|
return (0, _nodeTypes.panel)(createPanelNodeSpecOptions(allowCustomPanel));
|
77
77
|
};
|
78
|
-
var
|
79
|
-
return (0, _nodeTypes.
|
78
|
+
var panelWithoutNestedNonBodiedMacros = exports.panelWithoutNestedNonBodiedMacros = function panelWithoutNestedNonBodiedMacros(allowCustomPanel) {
|
79
|
+
return (0, _nodeTypes.panelWithoutNestedNonBodiedMacros)(createPanelNodeSpecOptions(allowCustomPanel));
|
80
80
|
};
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.underline = exports.text_with_no_marks = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = 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.
|
6
|
+
exports.underline = exports.text_with_no_marks = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = 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 = 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_non_bodied_macros = exports.listItem_with_nested_decision = 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.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_root_only = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceInlineComment = exports.codeBlock_root_only = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
|
7
7
|
var alignment = exports.alignment = {
|
8
8
|
props: {
|
9
9
|
type: {
|
@@ -55,7 +55,7 @@ var backgroundColor = exports.backgroundColor = {
|
|
55
55
|
}
|
56
56
|
}
|
57
57
|
};
|
58
|
-
var block_content = exports.block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', '
|
58
|
+
var block_content = exports.block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
|
59
59
|
var blockCard = exports.blockCard = {
|
60
60
|
props: {
|
61
61
|
type: {
|
@@ -418,7 +418,7 @@ var doc = exports.doc = {
|
|
418
418
|
},
|
419
419
|
content: {
|
420
420
|
type: 'array',
|
421
|
-
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', '
|
421
|
+
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only']],
|
422
422
|
allowUnsupportedBlock: true
|
423
423
|
}
|
424
424
|
}
|
@@ -510,7 +510,7 @@ var expand = exports.expand = {
|
|
510
510
|
},
|
511
511
|
content: {
|
512
512
|
type: 'array',
|
513
|
-
items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks'
|
513
|
+
items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
514
514
|
minItems: 1,
|
515
515
|
allowUnsupportedBlock: true
|
516
516
|
}
|
@@ -1255,18 +1255,13 @@ var nestedExpand = exports.nestedExpand = {
|
|
1255
1255
|
}
|
1256
1256
|
}
|
1257
1257
|
},
|
1258
|
-
content:
|
1259
|
-
type: 'array',
|
1260
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks']],
|
1261
|
-
minItems: 1,
|
1262
|
-
allowUnsupportedBlock: true
|
1263
|
-
}
|
1258
|
+
content: 'nestedExpand_content'
|
1264
1259
|
},
|
1265
1260
|
required: ['content']
|
1266
1261
|
};
|
1267
1262
|
var nestedExpand_content = exports.nestedExpand_content = {
|
1268
1263
|
type: 'array',
|
1269
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote']],
|
1264
|
+
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks']],
|
1270
1265
|
minItems: 1,
|
1271
1266
|
allowUnsupportedBlock: true
|
1272
1267
|
};
|
@@ -1280,22 +1275,6 @@ var nestedExpand_with_no_marks = exports.nestedExpand_with_no_marks = ['nestedEx
|
|
1280
1275
|
}
|
1281
1276
|
}
|
1282
1277
|
}];
|
1283
|
-
var nestedExpand_with_non_bodied_macros = exports.nestedExpand_with_non_bodied_macros = ['nestedExpand', {
|
1284
|
-
props: {
|
1285
|
-
content: {
|
1286
|
-
type: 'array',
|
1287
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks']],
|
1288
|
-
minItems: 1,
|
1289
|
-
allowUnsupportedBlock: true
|
1290
|
-
},
|
1291
|
-
marks: {
|
1292
|
-
type: 'array',
|
1293
|
-
maxItems: 0,
|
1294
|
-
items: [],
|
1295
|
-
optional: true
|
1296
|
-
}
|
1297
|
-
}
|
1298
|
-
}];
|
1299
1278
|
var non_nestable_block_content = exports.non_nestable_block_content = ['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
|
1300
1279
|
var orderedList = exports.orderedList = {
|
1301
1280
|
props: {
|
@@ -1358,16 +1337,6 @@ var panel = exports.panel = {
|
|
1358
1337
|
}
|
1359
1338
|
}
|
1360
1339
|
};
|
1361
|
-
var panel_with_nested_non_bodied_macros = exports.panel_with_nested_non_bodied_macros = ['panel', {
|
1362
|
-
props: {
|
1363
|
-
content: {
|
1364
|
-
type: 'array',
|
1365
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks']],
|
1366
|
-
minItems: 1,
|
1367
|
-
allowUnsupportedBlock: true
|
1368
|
-
}
|
1369
|
-
}
|
1370
|
-
}];
|
1371
1340
|
var paragraph = exports.paragraph = {
|
1372
1341
|
props: {
|
1373
1342
|
type: {
|
@@ -1590,7 +1559,7 @@ var tableCell = exports.tableCell = {
|
|
1590
1559
|
},
|
1591
1560
|
content: {
|
1592
1561
|
type: 'array',
|
1593
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks'
|
1562
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
1594
1563
|
minItems: 1,
|
1595
1564
|
allowUnsupportedBlock: true
|
1596
1565
|
}
|
@@ -1629,7 +1598,7 @@ var tableHeader = exports.tableHeader = {
|
|
1629
1598
|
},
|
1630
1599
|
content: {
|
1631
1600
|
type: 'array',
|
1632
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', '
|
1601
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
|
1633
1602
|
minItems: 1
|
1634
1603
|
}
|
1635
1604
|
},
|
package/dist/es2019/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, extendedBlockquote, blockquoteWithoutNonBodiedMacros, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
2
|
-
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, listItemWithNonBodiedMacrosStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand,
|
2
|
+
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, listItemWithNonBodiedMacrosStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithoutNonBodiedMacros, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithoutNestedNonBodiedMacros, 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, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './schema';
|
3
3
|
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';
|
4
4
|
|
5
5
|
// ADF createPMSpecFactory
|
@@ -845,8 +845,8 @@ export const multiBodiedExtensionStage0 = createPMNodeSpecFactory({
|
|
845
845
|
definingAsContext: true
|
846
846
|
});
|
847
847
|
export const nestedExpand = createPMNodeSpecFactory({
|
848
|
-
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+',
|
849
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
848
|
+
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock | extension)+',
|
849
|
+
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
850
850
|
attrs: {
|
851
851
|
title: {
|
852
852
|
default: ''
|
@@ -870,9 +870,9 @@ export const nestedExpandWithNoMarks = createPMNodeSpecFactory({
|
|
870
870
|
selectable: true,
|
871
871
|
isolating: true
|
872
872
|
});
|
873
|
-
export const
|
874
|
-
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock
|
875
|
-
marks: 'unsupportedMark unsupportedNodeAttribute
|
873
|
+
export const nestedExpandWithoutNonBodiedMacros = createPMNodeSpecFactory({
|
874
|
+
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+',
|
875
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
876
876
|
attrs: {
|
877
877
|
title: {
|
878
878
|
default: ''
|
@@ -896,8 +896,8 @@ export const orderedList = createPMNodeSpecFactory({
|
|
896
896
|
selectable: false
|
897
897
|
});
|
898
898
|
export const panel = createPMNodeSpecFactory({
|
899
|
-
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock)+',
|
900
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
899
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock | extension)+',
|
900
|
+
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
901
901
|
group: 'block',
|
902
902
|
attrs: {
|
903
903
|
panelType: {
|
@@ -918,9 +918,9 @@ export const panel = createPMNodeSpecFactory({
|
|
918
918
|
},
|
919
919
|
selectable: true
|
920
920
|
});
|
921
|
-
export const
|
922
|
-
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock
|
923
|
-
marks: 'unsupportedMark unsupportedNodeAttribute
|
921
|
+
export const panelWithoutNestedNonBodiedMacros = createPMNodeSpecFactory({
|
922
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock)+',
|
923
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
924
924
|
group: 'block',
|
925
925
|
attrs: {
|
926
926
|
panelType: {
|
@@ -30,7 +30,7 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
|
30
30
|
* - no base mediaSingle
|
31
31
|
* - no base heading
|
32
32
|
*/
|
33
|
-
export const blockContentGroup = adfNodeGroup('block_content', [blockCard, paragraph.use('with_no_marks'), paragraph.use('with_alignment'), paragraph.use('with_indentation'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, panel.use('
|
33
|
+
export const blockContentGroup = adfNodeGroup('block_content', [blockCard, paragraph.use('with_no_marks'), paragraph.use('with_alignment'), paragraph.use('with_indentation'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, panel.use('without_nested_non_bodied_macros'), blockquote, blockquote.use('without_nested_codeblock_or_media'), blockquote.use('without_non_bodied_macros'), extension.use('with_marks'), embedCard, table,
|
34
34
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
35
35
|
table.use('with_nested_table'), expand, expand.use('without_nested_expand'), bodiedExtension.use('with_marks'), confluenceUnsupportedBlock, unsupportedBlock], {
|
36
36
|
ignore: ['pm-spec']
|
@@ -18,7 +18,7 @@ import { rule } from '../nodes/rule';
|
|
18
18
|
import { table } from '../nodes/tableNodes';
|
19
19
|
import { taskList } from '../nodes/task';
|
20
20
|
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
21
|
-
export const blockGroup = adfNodeGroup('block', [blockCard, codeBlock, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), taskList, orderedList, bulletList, blockquote, blockquote.use('legacy'), blockquote.use('without_nested_codeblock_or_media'), blockquote.use('without_non_bodied_macros'), decisionList, embedCard, extension, extension.use('with_marks'), heading, heading.use('with_indentation'), heading.use('with_no_marks'), heading.use('with_alignment'), mediaGroup, rule, panel, panel.use('
|
21
|
+
export const blockGroup = adfNodeGroup('block', [blockCard, codeBlock, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), taskList, orderedList, bulletList, blockquote, blockquote.use('legacy'), blockquote.use('without_nested_codeblock_or_media'), blockquote.use('without_non_bodied_macros'), decisionList, embedCard, extension, extension.use('with_marks'), heading, heading.use('with_indentation'), heading.use('with_no_marks'), heading.use('with_alignment'), mediaGroup, rule, panel, panel.use('without_nested_non_bodied_macros'), table,
|
22
22
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
23
23
|
table.use('with_nested_table'), bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('without_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
|
24
24
|
// @DSLCompatibilityException
|
@@ -15,7 +15,7 @@ import { paragraph } from '../nodes/paragraph';
|
|
15
15
|
import { rule } from '../nodes/rule';
|
16
16
|
import { taskList } from '../nodes/task';
|
17
17
|
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
18
|
-
export const tableCellContentNodes = [paragraph.use('with_no_marks'), paragraph.use('with_alignment'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), codeBlock, mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, decisionList, taskList, blockCard, embedCard, extension.use('with_marks'), nestedExpand.use('content'), nestedExpand.use('with_no_marks'), nestedExpand.use('
|
18
|
+
export const tableCellContentNodes = [paragraph.use('with_no_marks'), paragraph.use('with_alignment'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), codeBlock, mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, decisionList, taskList, blockCard, embedCard, extension.use('with_marks'), nestedExpand.use('content'), nestedExpand.use('with_no_marks'), nestedExpand.use('without_non_bodied_macros')];
|
19
19
|
|
20
20
|
// This is not an actual group, but a collection of nodes
|
21
21
|
// @DSLCompatibilityException JSON Schema and PM Spec are not in sync. We need to fix it
|
@@ -20,7 +20,7 @@ export const expand = adfNode('expand').define({
|
|
20
20
|
optional: true
|
21
21
|
}
|
22
22
|
},
|
23
|
-
content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks'), nestedExpand.use('
|
23
|
+
content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks'), nestedExpand.use('without_non_bodied_macros')))]
|
24
24
|
}).variant('without_nested_expand', {
|
25
25
|
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
26
26
|
ignore: ['json-schema', 'validator-spec']
|