@atlaskit/adf-schema 47.3.1 → 47.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/next-schema/generated/nodeTypes.js +6 -6
- 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/nodes/panel.js +3 -17
- package/dist/cjs/schema/default-schema.js +0 -1
- package/dist/cjs/schema/index.js +2 -2
- package/dist/cjs/schema/nodes/index.js +2 -2
- package/dist/cjs/schema/nodes/panel.js +3 -3
- package/dist/cjs/validator-schema/generated/validatorSpec.js +3 -13
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +5 -5
- 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/nodes/panel.js +3 -17
- package/dist/es2019/schema/default-schema.js +1 -2
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/schema/nodes/panel.js +2 -2
- package/dist/es2019/validator-schema/generated/validatorSpec.js +2 -12
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +5 -5
- 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/nodes/panel.js +3 -17
- package/dist/esm/schema/default-schema.js +1 -2
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/schema/nodes/panel.js +3 -3
- package/dist/esm/validator-schema/generated/validatorSpec.js +2 -12
- package/dist/json-schema/v1/full.json +3 -0
- package/dist/json-schema/v1/stage-0.json +0 -90
- 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 +5 -5
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +2 -2
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.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 +1 -1
- package/dist/types/schema/nodes/panel.d.ts +1 -1
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +0 -10
- package/json-schema/v1/full.json +3 -0
- package/json-schema/v1/stage-0.json +0 -90
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/index.js
CHANGED
@@ -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.nestedExpandWithNonBodiedMacrosStage0 = 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
|
@@ -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
|
@@ -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,7 +28,6 @@ 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,
|
package/dist/cjs/schema/index.js
CHANGED
@@ -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", {
|
@@ -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", {
|
@@ -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_non_bodied_macros = 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
|
}
|
@@ -1358,16 +1358,6 @@ var panel = exports.panel = {
|
|
1358
1358
|
}
|
1359
1359
|
}
|
1360
1360
|
};
|
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
1361
|
var paragraph = exports.paragraph = {
|
1372
1362
|
props: {
|
1373
1363
|
type: {
|
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, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel,
|
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, nestedExpandWithNonBodiedMacrosStage0, 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
|
@@ -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
|
@@ -44,23 +44,9 @@ export const panel = adfNode('panel').define({
|
|
44
44
|
optional: true
|
45
45
|
}
|
46
46
|
},
|
47
|
+
content: [$onePlus($or(...panelContent, extension.use('with_marks')))]
|
48
|
+
}).variant('without_nested_non_bodied_macros', {
|
47
49
|
content: [$onePlus($or(...panelContent))],
|
48
|
-
// TODO: remove the mannual override once with_nested_non_bodied_macros is promoted to full schema
|
49
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
50
|
-
'validator-spec': {
|
51
|
-
'props.content': {
|
52
|
-
value: {
|
53
|
-
type: 'array',
|
54
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks']],
|
55
|
-
minItems: 1,
|
56
|
-
allowUnsupportedBlock: true
|
57
|
-
},
|
58
|
-
reason: '@DSLCompatibilityException - this is to loose the validator ristriction to allow extension to be nested inside panel'
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}).variant('with_nested_non_bodied_macros', {
|
63
|
-
content: [$onePlus($or(...panelContent, extension.use('with_marks')))],
|
64
50
|
noExtend: true,
|
65
|
-
|
51
|
+
ignore: ['json-schema', 'validator-spec']
|
66
52
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
2
|
-
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, listItemWithNonBodiedMacrosStage0,
|
2
|
+
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, listItemWithNonBodiedMacrosStage0, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, nestedExpandWithNonBodiedMacrosStage0 } from './nodes';
|
3
3
|
import { createSchema } from './create-schema';
|
4
4
|
const getDefaultSchemaConfig = () => {
|
5
5
|
const defaultSchemaConfig = {
|
@@ -20,7 +20,6 @@ export const getSchemaBasedOnStage = memoizeOne((stage = 'final') => {
|
|
20
20
|
extensionFrame: extensionFrame,
|
21
21
|
expand: expandWithNestedExpand,
|
22
22
|
listItem: listItemWithNonBodiedMacrosStage0,
|
23
|
-
panel: panelWithNonBodiedMacrosStage0(true),
|
24
23
|
table: tableWithNestedTable,
|
25
24
|
tableRow: tableRowWithNestedTable,
|
26
25
|
tableCell: tableCellWithNestedTable,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, extendedBlockquote, blockquoteWithoutNonBodiedMacros, 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, listItemWithNonBodiedMacrosStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel,
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, extendedBlockquote, blockquoteWithoutNonBodiedMacros, 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, listItemWithNonBodiedMacrosStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithoutNestedNonBodiedMacros, 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, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './nodes';
|
2
2
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
3
|
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';
|
4
4
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
@@ -15,7 +15,7 @@ export { emoji } from './emoji';
|
|
15
15
|
export { image } from './image';
|
16
16
|
export { mention, toJSON as mentionToJSON } from './mention';
|
17
17
|
export { listItem, listItemWithTask, listItemWithDecisionStage0, listItemWithNonBodiedMacrosStage0 } from './list-item';
|
18
|
-
export { extendedPanel,
|
18
|
+
export { extendedPanel, panelWithoutNestedNonBodiedMacros, PanelType } from './panel';
|
19
19
|
export { text } from './text';
|
20
20
|
export { default as unknownBlock } from './unknown-block';
|
21
21
|
export { caption } from './caption';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { panel as panelFactory,
|
1
|
+
import { panel as panelFactory, panelWithoutNestedNonBodiedMacros as panelWithoutNestedNonBodiedMacrosFactory } from '../../next-schema/generated/nodeTypes';
|
2
2
|
export let PanelType = /*#__PURE__*/function (PanelType) {
|
3
3
|
PanelType["INFO"] = "info";
|
4
4
|
PanelType["NOTE"] = "note";
|
@@ -62,4 +62,4 @@ const createPanelNodeSpecOptions = allowCustomPanel => ({
|
|
62
62
|
* addition to content allowed inside panel
|
63
63
|
*/
|
64
64
|
export const extendedPanel = allowCustomPanel => panelFactory(createPanelNodeSpecOptions(allowCustomPanel));
|
65
|
-
export const
|
65
|
+
export const panelWithoutNestedNonBodiedMacros = allowCustomPanel => panelWithoutNestedNonBodiedMacrosFactory(createPanelNodeSpecOptions(allowCustomPanel));
|
@@ -49,7 +49,7 @@ export const backgroundColor = {
|
|
49
49
|
}
|
50
50
|
}
|
51
51
|
};
|
52
|
-
export const 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', '
|
52
|
+
export const 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'];
|
53
53
|
export const blockCard = {
|
54
54
|
props: {
|
55
55
|
type: {
|
@@ -412,7 +412,7 @@ export const doc = {
|
|
412
412
|
},
|
413
413
|
content: {
|
414
414
|
type: 'array',
|
415
|
-
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', '
|
415
|
+
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']],
|
416
416
|
allowUnsupportedBlock: true
|
417
417
|
}
|
418
418
|
}
|
@@ -1352,16 +1352,6 @@ export const panel = {
|
|
1352
1352
|
}
|
1353
1353
|
}
|
1354
1354
|
};
|
1355
|
-
export const panel_with_nested_non_bodied_macros = ['panel', {
|
1356
|
-
props: {
|
1357
|
-
content: {
|
1358
|
-
type: 'array',
|
1359
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks']],
|
1360
|
-
minItems: 1,
|
1361
|
-
allowUnsupportedBlock: true
|
1362
|
-
}
|
1363
|
-
}
|
1364
|
-
}];
|
1365
1355
|
export const paragraph = {
|
1366
1356
|
props: {
|
1367
1357
|
type: {
|
package/dist/esm/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, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel,
|
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, nestedExpandWithNonBodiedMacrosStage0, 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
|
@@ -896,8 +896,8 @@ export var orderedList = createPMNodeSpecFactory({
|
|
896
896
|
selectable: false
|
897
897
|
});
|
898
898
|
export var 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 var panel = createPMNodeSpecFactory({
|
|
918
918
|
},
|
919
919
|
selectable: true
|
920
920
|
});
|
921
|
-
export var
|
922
|
-
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock
|
923
|
-
marks: 'unsupportedMark unsupportedNodeAttribute
|
921
|
+
export var 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 var 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 var 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 var 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 var 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
|
@@ -44,23 +44,9 @@ export var panel = adfNode('panel').define({
|
|
44
44
|
optional: true
|
45
45
|
}
|
46
46
|
},
|
47
|
+
content: [$onePlus($or.apply(void 0, panelContent.concat([extension.use('with_marks')])))]
|
48
|
+
}).variant('without_nested_non_bodied_macros', {
|
47
49
|
content: [$onePlus($or.apply(void 0, panelContent))],
|
48
|
-
// TODO: remove the mannual override once with_nested_non_bodied_macros is promoted to full schema
|
49
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
50
|
-
'validator-spec': {
|
51
|
-
'props.content': {
|
52
|
-
value: {
|
53
|
-
type: 'array',
|
54
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks']],
|
55
|
-
minItems: 1,
|
56
|
-
allowUnsupportedBlock: true
|
57
|
-
},
|
58
|
-
reason: '@DSLCompatibilityException - this is to loose the validator ristriction to allow extension to be nested inside panel'
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}).variant('with_nested_non_bodied_macros', {
|
63
|
-
content: [$onePlus($or.apply(void 0, panelContent.concat([extension.use('with_marks')])))],
|
64
50
|
noExtend: true,
|
65
|
-
|
51
|
+
ignore: ['json-schema', 'validator-spec']
|
66
52
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
2
|
-
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, listItemWithNonBodiedMacrosStage0,
|
2
|
+
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, listItemWithNonBodiedMacrosStage0, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, nestedExpandWithNonBodiedMacrosStage0 } from './nodes';
|
3
3
|
import { createSchema } from './create-schema';
|
4
4
|
var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
|
5
5
|
var defaultSchemaConfig = {
|
@@ -21,7 +21,6 @@ export var getSchemaBasedOnStage = memoizeOne(function () {
|
|
21
21
|
extensionFrame: extensionFrame,
|
22
22
|
expand: expandWithNestedExpand,
|
23
23
|
listItem: listItemWithNonBodiedMacrosStage0,
|
24
|
-
panel: panelWithNonBodiedMacrosStage0(true),
|
25
24
|
table: tableWithNestedTable,
|
26
25
|
tableRow: tableRowWithNestedTable,
|
27
26
|
tableCell: tableCellWithNestedTable,
|
package/dist/esm/schema/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, extendedBlockquote, blockquoteWithoutNonBodiedMacros, 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, listItemWithNonBodiedMacrosStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel,
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, extendedBlockquote, blockquoteWithoutNonBodiedMacros, 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, listItemWithNonBodiedMacrosStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithoutNestedNonBodiedMacros, 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, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './nodes';
|
2
2
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
3
|
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';
|
4
4
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
@@ -15,7 +15,7 @@ export { emoji } from './emoji';
|
|
15
15
|
export { image } from './image';
|
16
16
|
export { mention, toJSON as mentionToJSON } from './mention';
|
17
17
|
export { listItem, listItemWithTask, listItemWithDecisionStage0, listItemWithNonBodiedMacrosStage0 } from './list-item';
|
18
|
-
export { extendedPanel,
|
18
|
+
export { extendedPanel, panelWithoutNestedNonBodiedMacros, PanelType } from './panel';
|
19
19
|
export { text } from './text';
|
20
20
|
export { default as unknownBlock } from './unknown-block';
|
21
21
|
export { caption } from './caption';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
2
|
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; }
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
4
|
-
import { panel as panelFactory,
|
4
|
+
import { panel as panelFactory, panelWithoutNestedNonBodiedMacros as panelWithoutNestedNonBodiedMacrosFactory } from '../../next-schema/generated/nodeTypes';
|
5
5
|
export var PanelType = /*#__PURE__*/function (PanelType) {
|
6
6
|
PanelType["INFO"] = "info";
|
7
7
|
PanelType["NOTE"] = "note";
|
@@ -70,6 +70,6 @@ var createPanelNodeSpecOptions = function createPanelNodeSpecOptions(allowCustom
|
|
70
70
|
export var extendedPanel = function extendedPanel(allowCustomPanel) {
|
71
71
|
return panelFactory(createPanelNodeSpecOptions(allowCustomPanel));
|
72
72
|
};
|
73
|
-
export var
|
74
|
-
return
|
73
|
+
export var panelWithoutNestedNonBodiedMacros = function panelWithoutNestedNonBodiedMacros(allowCustomPanel) {
|
74
|
+
return panelWithoutNestedNonBodiedMacrosFactory(createPanelNodeSpecOptions(allowCustomPanel));
|
75
75
|
};
|
@@ -49,7 +49,7 @@ export var backgroundColor = {
|
|
49
49
|
}
|
50
50
|
}
|
51
51
|
};
|
52
|
-
export var 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', '
|
52
|
+
export var 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'];
|
53
53
|
export var blockCard = {
|
54
54
|
props: {
|
55
55
|
type: {
|
@@ -412,7 +412,7 @@ export var doc = {
|
|
412
412
|
},
|
413
413
|
content: {
|
414
414
|
type: 'array',
|
415
|
-
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', '
|
415
|
+
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']],
|
416
416
|
allowUnsupportedBlock: true
|
417
417
|
}
|
418
418
|
}
|
@@ -1352,16 +1352,6 @@ export var panel = {
|
|
1352
1352
|
}
|
1353
1353
|
}
|
1354
1354
|
};
|
1355
|
-
export var panel_with_nested_non_bodied_macros = ['panel', {
|
1356
|
-
props: {
|
1357
|
-
content: {
|
1358
|
-
type: 'array',
|
1359
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks']],
|
1360
|
-
minItems: 1,
|
1361
|
-
allowUnsupportedBlock: true
|
1362
|
-
}
|
1363
|
-
}
|
1364
|
-
}];
|
1365
1355
|
export var paragraph = {
|
1366
1356
|
props: {
|
1367
1357
|
type: {
|
@@ -120,9 +120,6 @@
|
|
120
120
|
{
|
121
121
|
"$ref": "#/definitions/panel_node"
|
122
122
|
},
|
123
|
-
{
|
124
|
-
"$ref": "#/definitions/panel_with_nested_non_bodied_macros_node"
|
125
|
-
},
|
126
123
|
{
|
127
124
|
"$ref": "#/definitions/blockquote_node"
|
128
125
|
},
|
@@ -741,9 +738,6 @@
|
|
741
738
|
{
|
742
739
|
"$ref": "#/definitions/panel_node"
|
743
740
|
},
|
744
|
-
{
|
745
|
-
"$ref": "#/definitions/panel_with_nested_non_bodied_macros_node"
|
746
|
-
},
|
747
741
|
{
|
748
742
|
"$ref": "#/definitions/table_node"
|
749
743
|
},
|
@@ -2376,90 +2370,6 @@
|
|
2376
2370
|
"required": ["type", "content"]
|
2377
2371
|
},
|
2378
2372
|
"panel_node": {
|
2379
|
-
"type": "object",
|
2380
|
-
"properties": {
|
2381
|
-
"type": {
|
2382
|
-
"enum": ["panel"]
|
2383
|
-
},
|
2384
|
-
"attrs": {
|
2385
|
-
"type": "object",
|
2386
|
-
"properties": {
|
2387
|
-
"panelType": {
|
2388
|
-
"enum": [
|
2389
|
-
"info",
|
2390
|
-
"note",
|
2391
|
-
"tip",
|
2392
|
-
"warning",
|
2393
|
-
"error",
|
2394
|
-
"success",
|
2395
|
-
"custom"
|
2396
|
-
]
|
2397
|
-
},
|
2398
|
-
"panelIcon": {
|
2399
|
-
"type": "string"
|
2400
|
-
},
|
2401
|
-
"panelIconId": {
|
2402
|
-
"type": "string"
|
2403
|
-
},
|
2404
|
-
"panelIconText": {
|
2405
|
-
"type": "string"
|
2406
|
-
},
|
2407
|
-
"panelColor": {
|
2408
|
-
"type": "string"
|
2409
|
-
}
|
2410
|
-
},
|
2411
|
-
"required": ["panelType"],
|
2412
|
-
"additionalProperties": false
|
2413
|
-
},
|
2414
|
-
"content": {
|
2415
|
-
"type": "array",
|
2416
|
-
"items": {
|
2417
|
-
"anyOf": [
|
2418
|
-
{
|
2419
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
2420
|
-
},
|
2421
|
-
{
|
2422
|
-
"$ref": "#/definitions/heading_with_no_marks_node"
|
2423
|
-
},
|
2424
|
-
{
|
2425
|
-
"$ref": "#/definitions/bulletList_node"
|
2426
|
-
},
|
2427
|
-
{
|
2428
|
-
"$ref": "#/definitions/orderedList_node"
|
2429
|
-
},
|
2430
|
-
{
|
2431
|
-
"$ref": "#/definitions/blockCard_node"
|
2432
|
-
},
|
2433
|
-
{
|
2434
|
-
"$ref": "#/definitions/mediaGroup_node"
|
2435
|
-
},
|
2436
|
-
{
|
2437
|
-
"$ref": "#/definitions/mediaSingle_caption_node"
|
2438
|
-
},
|
2439
|
-
{
|
2440
|
-
"$ref": "#/definitions/mediaSingle_full_node"
|
2441
|
-
},
|
2442
|
-
{
|
2443
|
-
"$ref": "#/definitions/codeBlock_node"
|
2444
|
-
},
|
2445
|
-
{
|
2446
|
-
"$ref": "#/definitions/taskList_node"
|
2447
|
-
},
|
2448
|
-
{
|
2449
|
-
"$ref": "#/definitions/rule_node"
|
2450
|
-
},
|
2451
|
-
{
|
2452
|
-
"$ref": "#/definitions/decisionList_node"
|
2453
|
-
}
|
2454
|
-
]
|
2455
|
-
},
|
2456
|
-
"minItems": 1
|
2457
|
-
}
|
2458
|
-
},
|
2459
|
-
"additionalProperties": false,
|
2460
|
-
"required": ["type", "attrs", "content"]
|
2461
|
-
},
|
2462
|
-
"panel_with_nested_non_bodied_macros_node": {
|
2463
2373
|
"type": "object",
|
2464
2374
|
"properties": {
|
2465
2375
|
"type": {
|
package/dist/types/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, extendedBlockquote, blockquoteWithoutNonBodiedMacros, 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
|
-
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, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel,
|
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, listItemWithNonBodiedMacrosStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithNonBodiedMacrosStage0, 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';
|
4
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';
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source files in "packages/adf-schema/src/next-schema" ,
|
4
4
|
* and run "yarn workspace @atlaskit/adf-schema build:schema:all" to regenerate this file.
|
5
5
|
*/
|
6
|
-
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BlockquoteWithoutNestedCodeblockOrMediaDefinition, BlockquoteWithoutNonBodiedMacrosDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExpandWithoutNestedExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelDefinition,
|
7
|
-
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BlockquoteWithoutNestedCodeblockOrMediaDefinition | BlockquoteWithoutNonBodiedMacrosDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition |
|
6
|
+
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BlockquoteWithoutNestedCodeblockOrMediaDefinition, BlockquoteWithoutNonBodiedMacrosDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExpandWithoutNestedExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelDefinition, PanelWithoutNestedNonBodiedMacrosDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StatusStage0Definition, TableDefinition, TableWithNestedTableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
|
7
|
+
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BlockquoteWithoutNestedCodeblockOrMediaDefinition | BlockquoteWithoutNonBodiedMacrosDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelWithoutNestedNonBodiedMacrosDefinition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ExpandWithoutNestedExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
8
8
|
export type BlockRootOnlyDefinition = Array<MultiBodiedExtensionStage0Definition>;
|
9
9
|
export type InlineDefinition = Array<TextDefinition | TextFormattedDefinition | TextCodeInlineDefinition | DateDefinition | DateStage0Definition | EmojiDefinition | EmojiStage0Definition | HardBreakDefinition | InlineCardDefinition | InlineCardStage0Definition | MentionDefinition | MentionStage0Definition | PlaceholderDefinition | StatusDefinition | StatusStage0Definition | InlineExtensionDefinition | InlineExtensionWithMarksDefinition | MediaInlineDefinition | ImageDefinition | ConfluenceJiraIssueDefinition | ConfluenceUnsupportedInlineDefinition | UnsupportedInlineDefinition>;
|
10
10
|
export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | HeadingWithNoMarksDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | TableWithNestedTableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
|
@@ -670,7 +670,7 @@ export type OrderedListNode = PMNode & OrderedListDefinition;
|
|
670
670
|
export declare const orderedList: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<OrderedListNode>) => import("prosemirror-model").NodeSpec;
|
671
671
|
export interface PanelDefinition {
|
672
672
|
type: 'panel';
|
673
|
-
content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
673
|
+
content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
674
674
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
675
675
|
attrs: {
|
676
676
|
panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
|
@@ -682,9 +682,9 @@ export interface PanelDefinition {
|
|
682
682
|
}
|
683
683
|
export type PanelNode = PMNode & PanelDefinition;
|
684
684
|
export declare const panel: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<PanelNode>) => import("prosemirror-model").NodeSpec;
|
685
|
-
export interface
|
685
|
+
export interface PanelWithoutNestedNonBodiedMacrosDefinition {
|
686
686
|
type: 'panel';
|
687
|
-
content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition |
|
687
|
+
content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
688
688
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
689
689
|
attrs: {
|
690
690
|
panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
|
@@ -694,8 +694,8 @@ export interface PanelWithNestedNonBodiedMacrosStage0Definition {
|
|
694
694
|
panelColor?: string;
|
695
695
|
};
|
696
696
|
}
|
697
|
-
export type
|
698
|
-
export declare const
|
697
|
+
export type PanelWithoutNestedNonBodiedMacrosNode = PMNode & PanelWithoutNestedNonBodiedMacrosDefinition;
|
698
|
+
export declare const panelWithoutNestedNonBodiedMacros: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<PanelWithoutNestedNonBodiedMacrosNode>) => import("prosemirror-model").NodeSpec;
|
699
699
|
export interface ParagraphDefinition {
|
700
700
|
type: 'paragraph';
|
701
701
|
content: Array<InlineDefinition>;
|
@@ -11,10 +11,10 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
11
11
|
} & {
|
12
12
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
13
13
|
ignore: ("json-schema" | "validator-spec")[];
|
14
|
-
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "
|
14
|
+
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "without_nested_non_bodied_macros"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
15
15
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
16
16
|
noExtend: true;
|
17
|
-
|
17
|
+
ignore: ("json-schema" | "validator-spec")[];
|
18
18
|
}>)[];
|
19
19
|
/**
|
20
20
|
* @DSLCompatibilityException
|
@@ -65,10 +65,10 @@ export declare const tableCellContentNodes: (import("@atlaskit/adf-schema-genera
|
|
65
65
|
} & {
|
66
66
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
67
67
|
ignore: ("json-schema" | "validator-spec")[];
|
68
|
-
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "
|
68
|
+
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "without_nested_non_bodied_macros"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
69
69
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
70
70
|
noExtend: true;
|
71
|
-
|
71
|
+
ignore: ("json-schema" | "validator-spec")[];
|
72
72
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<any, import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
73
73
|
ignore: "pm-spec"[];
|
74
74
|
} & {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export declare const panel: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "
|
1
|
+
export declare const panel: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "without_nested_non_bodied_macros"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
2
2
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
3
3
|
noExtend: true;
|
4
|
-
|
4
|
+
ignore: ("json-schema" | "validator-spec")[];
|
5
5
|
}>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, extendedBlockquote, blockquoteWithoutNonBodiedMacros, 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, listItemWithNonBodiedMacrosStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel,
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, extendedBlockquote, blockquoteWithoutNonBodiedMacros, 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, listItemWithNonBodiedMacrosStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithoutNestedNonBodiedMacros, 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, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, } from './nodes';
|
2
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, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, 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. */
|
@@ -28,7 +28,7 @@ export { mention, toJSON as mentionToJSON } from './mention';
|
|
28
28
|
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition, } from './mention';
|
29
29
|
export { listItem, listItemWithTask, listItemWithDecisionStage0, listItemWithNonBodiedMacrosStage0, } from './list-item';
|
30
30
|
export type { ListItemArray, ListItemDefinition } from './types/list';
|
31
|
-
export { extendedPanel,
|
31
|
+
export { extendedPanel, panelWithoutNestedNonBodiedMacros, PanelType, } from './panel';
|
32
32
|
export type { PanelAttributes, PanelDefinition } from './panel';
|
33
33
|
export { text } from './text';
|
34
34
|
export type { TextDefinition } from './text';
|
@@ -47,4 +47,4 @@ export interface DOMAttributes {
|
|
47
47
|
* addition to content allowed inside panel
|
48
48
|
*/
|
49
49
|
export declare const extendedPanel: (allowCustomPanel: boolean) => import("prosemirror-model").NodeSpec;
|
50
|
-
export declare const
|
50
|
+
export declare const panelWithoutNestedNonBodiedMacros: (allowCustomPanel: boolean) => import("prosemirror-model").NodeSpec;
|
@@ -1371,16 +1371,6 @@ export declare const panel: {
|
|
1371
1371
|
};
|
1372
1372
|
};
|
1373
1373
|
};
|
1374
|
-
export declare const panel_with_nested_non_bodied_macros: (string | {
|
1375
|
-
props: {
|
1376
|
-
content: {
|
1377
|
-
type: string;
|
1378
|
-
items: string[][];
|
1379
|
-
minItems: number;
|
1380
|
-
allowUnsupportedBlock: boolean;
|
1381
|
-
};
|
1382
|
-
};
|
1383
|
-
})[];
|
1384
1374
|
export declare const paragraph: {
|
1385
1375
|
props: {
|
1386
1376
|
type: {
|
package/json-schema/v1/full.json
CHANGED
@@ -120,9 +120,6 @@
|
|
120
120
|
{
|
121
121
|
"$ref": "#/definitions/panel_node"
|
122
122
|
},
|
123
|
-
{
|
124
|
-
"$ref": "#/definitions/panel_with_nested_non_bodied_macros_node"
|
125
|
-
},
|
126
123
|
{
|
127
124
|
"$ref": "#/definitions/blockquote_node"
|
128
125
|
},
|
@@ -741,9 +738,6 @@
|
|
741
738
|
{
|
742
739
|
"$ref": "#/definitions/panel_node"
|
743
740
|
},
|
744
|
-
{
|
745
|
-
"$ref": "#/definitions/panel_with_nested_non_bodied_macros_node"
|
746
|
-
},
|
747
741
|
{
|
748
742
|
"$ref": "#/definitions/table_node"
|
749
743
|
},
|
@@ -2376,90 +2370,6 @@
|
|
2376
2370
|
"required": ["type", "content"]
|
2377
2371
|
},
|
2378
2372
|
"panel_node": {
|
2379
|
-
"type": "object",
|
2380
|
-
"properties": {
|
2381
|
-
"type": {
|
2382
|
-
"enum": ["panel"]
|
2383
|
-
},
|
2384
|
-
"attrs": {
|
2385
|
-
"type": "object",
|
2386
|
-
"properties": {
|
2387
|
-
"panelType": {
|
2388
|
-
"enum": [
|
2389
|
-
"info",
|
2390
|
-
"note",
|
2391
|
-
"tip",
|
2392
|
-
"warning",
|
2393
|
-
"error",
|
2394
|
-
"success",
|
2395
|
-
"custom"
|
2396
|
-
]
|
2397
|
-
},
|
2398
|
-
"panelIcon": {
|
2399
|
-
"type": "string"
|
2400
|
-
},
|
2401
|
-
"panelIconId": {
|
2402
|
-
"type": "string"
|
2403
|
-
},
|
2404
|
-
"panelIconText": {
|
2405
|
-
"type": "string"
|
2406
|
-
},
|
2407
|
-
"panelColor": {
|
2408
|
-
"type": "string"
|
2409
|
-
}
|
2410
|
-
},
|
2411
|
-
"required": ["panelType"],
|
2412
|
-
"additionalProperties": false
|
2413
|
-
},
|
2414
|
-
"content": {
|
2415
|
-
"type": "array",
|
2416
|
-
"items": {
|
2417
|
-
"anyOf": [
|
2418
|
-
{
|
2419
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
2420
|
-
},
|
2421
|
-
{
|
2422
|
-
"$ref": "#/definitions/heading_with_no_marks_node"
|
2423
|
-
},
|
2424
|
-
{
|
2425
|
-
"$ref": "#/definitions/bulletList_node"
|
2426
|
-
},
|
2427
|
-
{
|
2428
|
-
"$ref": "#/definitions/orderedList_node"
|
2429
|
-
},
|
2430
|
-
{
|
2431
|
-
"$ref": "#/definitions/blockCard_node"
|
2432
|
-
},
|
2433
|
-
{
|
2434
|
-
"$ref": "#/definitions/mediaGroup_node"
|
2435
|
-
},
|
2436
|
-
{
|
2437
|
-
"$ref": "#/definitions/mediaSingle_caption_node"
|
2438
|
-
},
|
2439
|
-
{
|
2440
|
-
"$ref": "#/definitions/mediaSingle_full_node"
|
2441
|
-
},
|
2442
|
-
{
|
2443
|
-
"$ref": "#/definitions/codeBlock_node"
|
2444
|
-
},
|
2445
|
-
{
|
2446
|
-
"$ref": "#/definitions/taskList_node"
|
2447
|
-
},
|
2448
|
-
{
|
2449
|
-
"$ref": "#/definitions/rule_node"
|
2450
|
-
},
|
2451
|
-
{
|
2452
|
-
"$ref": "#/definitions/decisionList_node"
|
2453
|
-
}
|
2454
|
-
]
|
2455
|
-
},
|
2456
|
-
"minItems": 1
|
2457
|
-
}
|
2458
|
-
},
|
2459
|
-
"additionalProperties": false,
|
2460
|
-
"required": ["type", "attrs", "content"]
|
2461
|
-
},
|
2462
|
-
"panel_with_nested_non_bodied_macros_node": {
|
2463
2373
|
"type": "object",
|
2464
2374
|
"properties": {
|
2465
2375
|
"type": {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "47.
|
3
|
+
"version": "47.4.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/"
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"memoize-one": "^6.0.0"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
48
|
-
"@atlassian/adf-schema-json": "^1.
|
48
|
+
"@atlassian/adf-schema-json": "^1.29.0",
|
49
49
|
"@atlaskit/adf-schema-generator": "^2.1.0",
|
50
50
|
"@atlaskit/codemod-utils": "^4.2.4",
|
51
51
|
"@babel/cli": "^7.22.9",
|