@atlaskit/adf-schema 52.16.6 → 53.0.1
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 +17 -0
- package/dist/cjs/entry-points/code-block.js +0 -6
- package/dist/cjs/entry-points/schema-code-block.js +0 -6
- package/dist/cjs/entry-points/schema-next-nodeTypes.js +0 -12
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/next-schema/full-schema.adf.js +1 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +2 -37
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/codeBlock.js +5 -60
- package/dist/cjs/schema/default-schema.js +1 -2
- package/dist/cjs/schema/index.js +0 -6
- package/dist/cjs/schema/nodes/code-block.js +23 -109
- package/dist/cjs/schema/nodes/index.js +0 -6
- package/dist/cjs/validator-schema/generated/validatorSpec.js +15 -70
- package/dist/es2019/entry-points/code-block.js +1 -1
- package/dist/es2019/entry-points/schema-code-block.js +1 -1
- package/dist/es2019/entry-points/schema-next-nodeTypes.js +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/full-schema.adf.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +1 -36
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/codeBlock.js +5 -60
- package/dist/es2019/schema/default-schema.js +2 -3
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/code-block.js +34 -116
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +14 -69
- package/dist/esm/entry-points/code-block.js +1 -1
- package/dist/esm/entry-points/schema-code-block.js +1 -1
- package/dist/esm/entry-points/schema-next-nodeTypes.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/full-schema.adf.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +1 -36
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/esm/next-schema/nodes/codeBlock.js +5 -60
- package/dist/esm/schema/default-schema.js +2 -3
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/code-block.js +23 -108
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +14 -69
- package/dist/json-schema/v1/full.json +12 -0
- package/dist/json-schema/v1/stage-0.json +4 -91
- package/dist/types/entry-points/code-block.d.ts +1 -1
- package/dist/types/entry-points/schema-code-block.d.ts +1 -1
- package/dist/types/entry-points/schema-next-nodeTypes.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
- package/dist/types/next-schema/generated/nodeTypes.d.ts +16 -39
- package/dist/types/next-schema/nodes/codeBlock.d.ts +1 -3
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/code-block.d.ts +0 -8
- package/dist/types/schema/nodes/index.d.ts +1 -1
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +8 -63
- package/dist/types-ts4.5/entry-points/code-block.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/schema-code-block.d.ts +1 -1
- package/dist/types-ts4.5/entry-points/schema-next-nodeTypes.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/next-schema/generated/nodeGroupTypes.d.ts +3 -3
- package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +16 -39
- package/dist/types-ts4.5/next-schema/nodes/codeBlock.d.ts +1 -3
- package/dist/types-ts4.5/schema/index.d.ts +1 -1
- package/dist/types-ts4.5/schema/nodes/code-block.d.ts +0 -8
- package/dist/types-ts4.5/schema/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +8 -63
- package/json-schema/v1/full.json +12 -0
- package/json-schema/v1/stage-0.json +4 -91
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/adf-schema
|
|
2
2
|
|
|
3
|
+
## 53.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 53.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [`38d753a24e9ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38d753a24e9ad) -
|
|
14
|
+
Promote code block wrap and line number attrs to the full ADF schema
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 52.16.6
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -15,12 +15,6 @@ Object.defineProperty(exports, "codeBlockToJSON", {
|
|
|
15
15
|
return _codeBlock.toJSON;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "codeBlockWithExtendedAttributes", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _codeBlock.codeBlockWithExtendedAttributes;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
18
|
Object.defineProperty(exports, "codeBlockWithLocalId", {
|
|
25
19
|
enumerable: true,
|
|
26
20
|
get: function get() {
|
|
@@ -15,12 +15,6 @@ Object.defineProperty(exports, "codeBlockToJSON", {
|
|
|
15
15
|
return _codeBlock.toJSON;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "codeBlockWithExtendedAttributes", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function get() {
|
|
21
|
-
return _codeBlock.codeBlockWithExtendedAttributes;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
18
|
Object.defineProperty(exports, "codeBlockWithLocalId", {
|
|
25
19
|
enumerable: true,
|
|
26
20
|
get: function get() {
|
|
@@ -69,18 +69,6 @@ Object.defineProperty(exports, "codeBlockRootOnly", {
|
|
|
69
69
|
return _nodeTypes.codeBlockRootOnly;
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
Object.defineProperty(exports, "codeBlockRootOnlyWithExtendedAttributesStage0", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function get() {
|
|
75
|
-
return _nodeTypes.codeBlockRootOnlyWithExtendedAttributesStage0;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "codeBlockWithExtendedAttributesStage0", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function get() {
|
|
81
|
-
return _nodeTypes.codeBlockWithExtendedAttributesStage0;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
72
|
Object.defineProperty(exports, "confluenceJiraIssue", {
|
|
85
73
|
enumerable: true,
|
|
86
74
|
get: function get() {
|
package/dist/cjs/index.js
CHANGED
|
@@ -441,12 +441,6 @@ Object.defineProperty(exports, "codeBlockToJSON", {
|
|
|
441
441
|
return _schema.codeBlockToJSON;
|
|
442
442
|
}
|
|
443
443
|
});
|
|
444
|
-
Object.defineProperty(exports, "codeBlockWithExtendedAttributes", {
|
|
445
|
-
enumerable: true,
|
|
446
|
-
get: function get() {
|
|
447
|
-
return _schema.codeBlockWithExtendedAttributes;
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
444
|
Object.defineProperty(exports, "codeBlockWithLocalId", {
|
|
451
445
|
enumerable: true,
|
|
452
446
|
get: function get() {
|
|
@@ -21,7 +21,7 @@ _panel.panel.use('c1').addContent(_tableNodes.table);
|
|
|
21
21
|
var doc = (0, _adfSchemaGenerator.adfNode)('doc').define({
|
|
22
22
|
root: true,
|
|
23
23
|
version: 1,
|
|
24
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _codeBlock.codeBlock.use('root_only'),
|
|
24
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _codeBlock.codeBlock.use('root_only'), _layoutSection.layoutSection, _layoutSection.layoutSection.use('with_single_column'), _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup, _expand.expand.use('root_only'), _syncBlock.syncBlock, _bodiedSyncBlock.bodiedSyncBlock))],
|
|
25
25
|
DANGEROUS_MANUAL_OVERRIDE: {
|
|
26
26
|
'validator-spec': {
|
|
27
27
|
'props.content.minItems': {
|
|
@@ -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.tableHeaderWithNestedTableStage0 = exports.tableHeaderWithNestedTable = exports.tableHeaderStage0 = exports.tableHeader = exports.tableCellWithNestedTableStage0 = exports.tableCellWithNestedTable = exports.tableCellStage0 = exports.tableCell = exports.table = exports.syncBlock = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithFontSize = exports.paragraphWithAlignment = exports.paragraph = exports.panelC1 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumnStage0 = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.
|
|
6
|
+
exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTableStage0 = exports.tableHeaderWithNestedTable = exports.tableHeaderStage0 = exports.tableHeader = exports.tableCellWithNestedTableStage0 = exports.tableCellWithNestedTable = exports.tableCellStage0 = exports.tableCell = exports.table = exports.syncBlock = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithFontSize = exports.paragraphWithAlignment = exports.paragraph = exports.panelC1 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumnStage0 = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedSyncBlock = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockTaskItem = 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
|
|
@@ -169,40 +169,6 @@ var codeBlock = exports.codeBlock = (0, _createPMSpecFactory.createPMNodeSpecFac
|
|
|
169
169
|
content: '(text | unsupportedInline)*',
|
|
170
170
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
|
171
171
|
group: 'block',
|
|
172
|
-
attrs: {
|
|
173
|
-
language: {
|
|
174
|
-
default: null
|
|
175
|
-
},
|
|
176
|
-
uniqueId: {
|
|
177
|
-
default: null
|
|
178
|
-
},
|
|
179
|
-
localId: {
|
|
180
|
-
default: null
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
code: true,
|
|
184
|
-
defining: true
|
|
185
|
-
});
|
|
186
|
-
var codeBlockRootOnly = exports.codeBlockRootOnly = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
187
|
-
content: '(text | unsupportedInline)*',
|
|
188
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
|
189
|
-
attrs: {
|
|
190
|
-
language: {
|
|
191
|
-
default: null
|
|
192
|
-
},
|
|
193
|
-
uniqueId: {
|
|
194
|
-
default: null
|
|
195
|
-
},
|
|
196
|
-
localId: {
|
|
197
|
-
default: null
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
code: true,
|
|
201
|
-
defining: true
|
|
202
|
-
});
|
|
203
|
-
var codeBlockRootOnlyWithExtendedAttributesStage0 = exports.codeBlockRootOnlyWithExtendedAttributesStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
204
|
-
content: '(text | unsupportedInline)*',
|
|
205
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
|
206
172
|
attrs: {
|
|
207
173
|
language: {
|
|
208
174
|
default: null
|
|
@@ -223,10 +189,9 @@ var codeBlockRootOnlyWithExtendedAttributesStage0 = exports.codeBlockRootOnlyWit
|
|
|
223
189
|
code: true,
|
|
224
190
|
defining: true
|
|
225
191
|
});
|
|
226
|
-
var
|
|
192
|
+
var codeBlockRootOnly = exports.codeBlockRootOnly = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
227
193
|
content: '(text | unsupportedInline)*',
|
|
228
194
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
|
229
|
-
group: 'block',
|
|
230
195
|
attrs: {
|
|
231
196
|
language: {
|
|
232
197
|
default: null
|
|
@@ -36,7 +36,7 @@ var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
|
|
36
36
|
* - no base mediaSingle
|
|
37
37
|
* - no base heading
|
|
38
38
|
*/
|
|
39
|
-
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,
|
|
39
|
+
var blockContentGroup = exports.blockContentGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block_content', [_blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _extension.extension.use('with_marks'), _embedCard.embedCard, _tableNodes.table,
|
|
40
40
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
|
41
41
|
_tableNodes.table.use('with_nested_table'), _expand.expand, _bodiedExtension.bodiedExtension.use('with_marks'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
|
|
42
42
|
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,
|
|
27
|
+
var blockGroup = exports.blockGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block', [_blockCard.blockCard, _codeBlock.codeBlock, _mediaSingle.mediaSingle, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaSingle.mediaSingle.use('width_type'), _paragraph.paragraph, _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _paragraph.paragraph.use('with_no_marks'), _task.taskList, _list.orderedList, _list.bulletList, _blockquote.blockquote, _blockquote.blockquote.use('legacy'), _decisionList.decisionList, _embedCard.embedCard, _extension.extension, _extension.extension.use('with_marks'), _heading.heading, _heading.heading.use('with_indentation'), _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _mediaGroup.mediaGroup, _rule.rule, _panel.panel, _panel.panel.use('c1'), _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, _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
|
|
30
30
|
// @DSLCompatibilityException
|
|
@@ -24,7 +24,7 @@ var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
|
|
24
24
|
// Not an actual group, but a collection of nodes that can't be nested inside each other
|
|
25
25
|
// TODO: ED-29537 - make it an actual group
|
|
26
26
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
27
|
-
var nonNestableBlockContent = exports.nonNestableBlockContent = [_paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_font_size'), _panel.panel, _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading.use('with_no_marks'), _codeBlock.codeBlock,
|
|
27
|
+
var nonNestableBlockContent = exports.nonNestableBlockContent = [_paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_font_size'), _panel.panel, _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading.use('with_no_marks'), _codeBlock.codeBlock, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _decisionList.decisionList, _task.taskList, _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'), _blockCard.blockCard, _embedCard.embedCard, _extension.extension.use('with_marks'), _unsupportedBlock.unsupportedBlock];
|
|
30
30
|
|
|
@@ -22,7 +22,7 @@ var _rule = require("../nodes/rule");
|
|
|
22
22
|
var _task = require("../nodes/task");
|
|
23
23
|
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25
|
-
var tableCellContentNodes = exports.tableCellContentNodes = [_paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _panel.panel, _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _codeBlock.codeBlock,
|
|
25
|
+
var tableCellContentNodes = exports.tableCellContentNodes = [_paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _panel.panel, _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _codeBlock.codeBlock, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaGroup.mediaGroup, _decisionList.decisionList, _task.taskList, _blockCard.blockCard, _embedCard.embedCard, _extension.extension.use('with_marks'), _nestedExpand.nestedExpand.use('content'), _nestedExpand.nestedExpand.use('with_no_marks')];
|
|
26
26
|
|
|
27
27
|
// This is not an actual group, but a collection of nodes
|
|
28
28
|
// @DSLCompatibilityException JSON Schema and PM Spec are not in sync. We need to fix it
|
|
@@ -13,34 +13,6 @@ var _unsupportedInline = require("./unsupportedInline");
|
|
|
13
13
|
var codeBlock = exports.codeBlock = (0, _adfSchemaGenerator.adfNode)('codeBlock').define({
|
|
14
14
|
code: true,
|
|
15
15
|
defining: true,
|
|
16
|
-
attrs: {
|
|
17
|
-
language: {
|
|
18
|
-
type: 'string',
|
|
19
|
-
default: null,
|
|
20
|
-
optional: true
|
|
21
|
-
},
|
|
22
|
-
uniqueId: {
|
|
23
|
-
type: 'string',
|
|
24
|
-
default: null,
|
|
25
|
-
optional: true
|
|
26
|
-
},
|
|
27
|
-
localId: {
|
|
28
|
-
type: 'string',
|
|
29
|
-
default: null,
|
|
30
|
-
optional: true
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
noMarks: true,
|
|
34
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_text.text.use('with_no_marks'), _unsupportedInline.unsupportedInline))]
|
|
35
|
-
})
|
|
36
|
-
// Variant used root scenario where we have breakout
|
|
37
|
-
.variant('root_only', {
|
|
38
|
-
marks: [_breakout.breakout, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
|
39
|
-
noMarks: false,
|
|
40
|
-
noExtend: true
|
|
41
|
-
})
|
|
42
|
-
// Stage-0 variant: adds wrap and hideLineNumbers attributes (ADF Change 101)
|
|
43
|
-
.variant('with_extended_attributes', {
|
|
44
16
|
attrs: {
|
|
45
17
|
language: {
|
|
46
18
|
type: 'string',
|
|
@@ -68,39 +40,12 @@ var codeBlock = exports.codeBlock = (0, _adfSchemaGenerator.adfNode)('codeBlock'
|
|
|
68
40
|
optional: true
|
|
69
41
|
}
|
|
70
42
|
},
|
|
71
|
-
|
|
43
|
+
noMarks: true,
|
|
44
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_text.text.use('with_no_marks'), _unsupportedInline.unsupportedInline))]
|
|
72
45
|
})
|
|
73
|
-
//
|
|
74
|
-
.variant('
|
|
46
|
+
// Variant used root scenario where we have breakout
|
|
47
|
+
.variant('root_only', {
|
|
75
48
|
marks: [_breakout.breakout, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
|
76
49
|
noMarks: false,
|
|
77
|
-
noExtend: true
|
|
78
|
-
attrs: {
|
|
79
|
-
language: {
|
|
80
|
-
type: 'string',
|
|
81
|
-
default: null,
|
|
82
|
-
optional: true
|
|
83
|
-
},
|
|
84
|
-
uniqueId: {
|
|
85
|
-
type: 'string',
|
|
86
|
-
default: null,
|
|
87
|
-
optional: true
|
|
88
|
-
},
|
|
89
|
-
localId: {
|
|
90
|
-
type: 'string',
|
|
91
|
-
default: null,
|
|
92
|
-
optional: true
|
|
93
|
-
},
|
|
94
|
-
wrap: {
|
|
95
|
-
type: 'boolean',
|
|
96
|
-
default: null,
|
|
97
|
-
optional: true
|
|
98
|
-
},
|
|
99
|
-
hideLineNumbers: {
|
|
100
|
-
type: 'boolean',
|
|
101
|
-
default: false,
|
|
102
|
-
optional: true
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
stage0: true
|
|
50
|
+
noExtend: true
|
|
106
51
|
});
|
|
@@ -35,8 +35,7 @@ function () {
|
|
|
35
35
|
table: _nodes.tableWithNestedTable,
|
|
36
36
|
tableRow: _nodes.tableRowWithNestedTable,
|
|
37
37
|
tableCell: _nodes.tableCellWithNestedTableStage0,
|
|
38
|
-
tableHeader: _nodes.tableHeaderWithNestedTableStage0
|
|
39
|
-
codeBlock: _nodes.codeBlockWithExtendedAttributes
|
|
38
|
+
tableHeader: _nodes.tableHeaderWithNestedTableStage0
|
|
40
39
|
};
|
|
41
40
|
}
|
|
42
41
|
return (0, _createSchema.createSchema)(defaultSchemaConfig);
|
package/dist/cjs/schema/index.js
CHANGED
|
@@ -159,12 +159,6 @@ Object.defineProperty(exports, "codeBlockToJSON", {
|
|
|
159
159
|
return _nodes.codeBlockToJSON;
|
|
160
160
|
}
|
|
161
161
|
});
|
|
162
|
-
Object.defineProperty(exports, "codeBlockWithExtendedAttributes", {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function get() {
|
|
165
|
-
return _nodes.codeBlockWithExtendedAttributes;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
162
|
Object.defineProperty(exports, "codeBlockWithLocalId", {
|
|
169
163
|
enumerable: true,
|
|
170
164
|
get: function get() {
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.toJSON = exports.codeBlockWithLocalId = exports.
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
6
|
+
exports.toJSON = exports.codeBlockWithLocalId = exports.codeBlock = void 0;
|
|
9
7
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
10
8
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
|
11
9
|
var _utils = require("../../utils");
|
|
12
|
-
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; }
|
|
13
|
-
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) { (0, _defineProperty2.default)(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; }
|
|
14
10
|
/**
|
|
15
11
|
* @name codeBlock_with_no_marks_node
|
|
16
12
|
*/
|
|
@@ -82,109 +78,6 @@ function parseCodeFromHtml(node) {
|
|
|
82
78
|
return code;
|
|
83
79
|
}
|
|
84
80
|
var codeBlock = exports.codeBlock = (0, _nodeTypes.codeBlock)({
|
|
85
|
-
parseDOM: [{
|
|
86
|
-
tag: 'pre',
|
|
87
|
-
preserveWhitespace: 'full',
|
|
88
|
-
getAttrs: function getAttrs(domNode) {
|
|
89
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
90
|
-
var dom = domNode;
|
|
91
|
-
var language =
|
|
92
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
93
|
-
getLanguageFromBitbucketStyle(dom.parentElement) ||
|
|
94
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
95
|
-
getLanguageFromEditorStyle(dom.parentElement) || getLanguageFromCode(dom) ||
|
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
97
|
-
dom.getAttribute('data-language');
|
|
98
|
-
dom = removeLastNewLine(dom);
|
|
99
|
-
return {
|
|
100
|
-
language: language
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
// Handle VSCode, Android Studio paste
|
|
105
|
-
// Checking `white-space: pre-wrap` is too aggressive @see ED-2627
|
|
106
|
-
{
|
|
107
|
-
tag: 'div[style]',
|
|
108
|
-
preserveWhitespace: 'full',
|
|
109
|
-
getAttrs: function getAttrs(domNode) {
|
|
110
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
111
|
-
var dom = domNode;
|
|
112
|
-
if (dom.style.whiteSpace === 'pre' || dom.style.fontFamily && dom.style.fontFamily.toLowerCase().indexOf('monospace') > -1) {
|
|
113
|
-
return {};
|
|
114
|
-
}
|
|
115
|
-
return false;
|
|
116
|
-
},
|
|
117
|
-
getContent: function getContent(domNode, schema) {
|
|
118
|
-
var code = parseCodeFromHtml(domNode);
|
|
119
|
-
return code ? _model.Fragment.from(schema.text(code)) : _model.Fragment.empty;
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
// Handle GitHub/Gist paste
|
|
123
|
-
{
|
|
124
|
-
tag: 'table[style]',
|
|
125
|
-
preserveWhitespace: 'full',
|
|
126
|
-
getAttrs: function getAttrs(dom) {
|
|
127
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
128
|
-
if (dom.querySelector('td[class*="blob-code"]')) {
|
|
129
|
-
return {};
|
|
130
|
-
}
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
}, {
|
|
134
|
-
tag: 'div.code-block',
|
|
135
|
-
preserveWhitespace: 'full',
|
|
136
|
-
getAttrs: function getAttrs(domNode) {
|
|
137
|
-
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
138
|
-
var dom = domNode;
|
|
139
|
-
// TODO: ED-5604 - Fix it inside `react-syntax-highlighter`
|
|
140
|
-
// Remove line numbers
|
|
141
|
-
var lineNumber = dom.querySelectorAll('.react-syntax-highlighter-line-number');
|
|
142
|
-
if (lineNumber.length > 0) {
|
|
143
|
-
// It's possible to copy without the line numbers too hence this
|
|
144
|
-
// `react-syntax-highlighter-line-number` check, so that we don't remove real code
|
|
145
|
-
lineNumber.forEach(function (line) {
|
|
146
|
-
return line.remove();
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
return {};
|
|
150
|
-
}
|
|
151
|
-
}],
|
|
152
|
-
toDOM: function toDOM(node) {
|
|
153
|
-
return ['pre', ['code', {
|
|
154
|
-
'data-language': node.attrs.language
|
|
155
|
-
}, 0]];
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
var toJSON = exports.toJSON = function toJSON(node) {
|
|
159
|
-
return {
|
|
160
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
161
|
-
attrs: Object.keys(node.attrs).reduce(function (memo, key) {
|
|
162
|
-
if (key === 'uniqueId') {
|
|
163
|
-
return memo;
|
|
164
|
-
}
|
|
165
|
-
if (key === 'language' && node.attrs.language === null) {
|
|
166
|
-
return memo;
|
|
167
|
-
}
|
|
168
|
-
if (key === 'wrap' && node.attrs.wrap === null) {
|
|
169
|
-
return memo;
|
|
170
|
-
}
|
|
171
|
-
if (key === 'hideLineNumbers' && !node.attrs.hideLineNumbers) {
|
|
172
|
-
return memo;
|
|
173
|
-
}
|
|
174
|
-
memo[key] = node.attrs[key];
|
|
175
|
-
return memo;
|
|
176
|
-
}, {})
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @name codeBlock_with_extended_attributes
|
|
182
|
-
* @description stage-0 codeBlock variant with wrap and hideLineNumbers attributes (ADF Change 101)
|
|
183
|
-
*
|
|
184
|
-
* Stage-0 variant: adds wrap and hideLineNumbers attributes (ADF Change 101).
|
|
185
|
-
* The DSL variant includes all attrs (base + new), so the generated factory provides the full set.
|
|
186
|
-
*/
|
|
187
|
-
var codeBlockWithExtendedAttributes = exports.codeBlockWithExtendedAttributes = _objectSpread({}, (0, _nodeTypes.codeBlockWithExtendedAttributesStage0)({
|
|
188
81
|
parseDOM: [{
|
|
189
82
|
tag: 'pre',
|
|
190
83
|
preserveWhitespace: 'full',
|
|
@@ -285,7 +178,28 @@ var codeBlockWithExtendedAttributes = exports.codeBlockWithExtendedAttributes =
|
|
|
285
178
|
'data-language': node.attrs.language
|
|
286
179
|
}, 0]];
|
|
287
180
|
}
|
|
288
|
-
})
|
|
181
|
+
});
|
|
182
|
+
var toJSON = exports.toJSON = function toJSON(node) {
|
|
183
|
+
return {
|
|
184
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
185
|
+
attrs: Object.keys(node.attrs).reduce(function (memo, key) {
|
|
186
|
+
if (key === 'uniqueId') {
|
|
187
|
+
return memo;
|
|
188
|
+
}
|
|
189
|
+
if (key === 'language' && node.attrs.language === null) {
|
|
190
|
+
return memo;
|
|
191
|
+
}
|
|
192
|
+
if (key === 'wrap' && node.attrs.wrap === null) {
|
|
193
|
+
return memo;
|
|
194
|
+
}
|
|
195
|
+
if (key === 'hideLineNumbers' && !node.attrs.hideLineNumbers) {
|
|
196
|
+
return memo;
|
|
197
|
+
}
|
|
198
|
+
memo[key] = node.attrs[key];
|
|
199
|
+
return memo;
|
|
200
|
+
}, {})
|
|
201
|
+
};
|
|
202
|
+
};
|
|
289
203
|
var codeBlockWithLocalId = exports.codeBlockWithLocalId = (0, _nodeTypes.codeBlock)({
|
|
290
204
|
parseDOM: [{
|
|
291
205
|
tag: 'pre',
|
|
@@ -88,12 +88,6 @@ Object.defineProperty(exports, "codeBlockToJSON", {
|
|
|
88
88
|
return _codeBlock.toJSON;
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
|
-
Object.defineProperty(exports, "codeBlockWithExtendedAttributes", {
|
|
92
|
-
enumerable: true,
|
|
93
|
-
get: function get() {
|
|
94
|
-
return _codeBlock.codeBlockWithExtendedAttributes;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
91
|
Object.defineProperty(exports, "codeBlockWithLocalId", {
|
|
98
92
|
enumerable: true,
|
|
99
93
|
get: function get() {
|
|
@@ -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.syncBlock = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_font_size = exports.paragraph_with_alignment = exports.paragraph = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem = 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.fontSize = 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.
|
|
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.syncBlock = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_font_size = exports.paragraph_with_alignment = exports.paragraph = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem = 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.fontSize = 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.bodiedSyncBlock = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote = exports.block_content = exports.blockTaskItem = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
|
|
7
7
|
var alignment = exports.alignment = {
|
|
8
8
|
props: {
|
|
9
9
|
attrs: {
|
|
@@ -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', '
|
|
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
|
attrs: [{
|
|
@@ -368,6 +368,10 @@ var codeBlock = exports.codeBlock = {
|
|
|
368
368
|
attrs: {
|
|
369
369
|
optional: true,
|
|
370
370
|
props: {
|
|
371
|
+
hideLineNumbers: {
|
|
372
|
+
optional: true,
|
|
373
|
+
type: 'boolean'
|
|
374
|
+
},
|
|
371
375
|
language: {
|
|
372
376
|
optional: true,
|
|
373
377
|
type: 'string'
|
|
@@ -379,6 +383,10 @@ var codeBlock = exports.codeBlock = {
|
|
|
379
383
|
uniqueId: {
|
|
380
384
|
optional: true,
|
|
381
385
|
type: 'string'
|
|
386
|
+
},
|
|
387
|
+
wrap: {
|
|
388
|
+
optional: true,
|
|
389
|
+
type: 'boolean'
|
|
382
390
|
}
|
|
383
391
|
}
|
|
384
392
|
},
|
|
@@ -403,69 +411,6 @@ var codeBlock_root_only = exports.codeBlock_root_only = ['codeBlock', {
|
|
|
403
411
|
}
|
|
404
412
|
}
|
|
405
413
|
}];
|
|
406
|
-
var codeBlock_root_only_with_extended_attributes = exports.codeBlock_root_only_with_extended_attributes = ['codeBlock', {
|
|
407
|
-
props: {
|
|
408
|
-
attrs: {
|
|
409
|
-
optional: true,
|
|
410
|
-
props: {
|
|
411
|
-
hideLineNumbers: {
|
|
412
|
-
optional: true,
|
|
413
|
-
type: 'boolean'
|
|
414
|
-
},
|
|
415
|
-
language: {
|
|
416
|
-
optional: true,
|
|
417
|
-
type: 'string'
|
|
418
|
-
},
|
|
419
|
-
localId: {
|
|
420
|
-
optional: true,
|
|
421
|
-
type: 'string'
|
|
422
|
-
},
|
|
423
|
-
uniqueId: {
|
|
424
|
-
optional: true,
|
|
425
|
-
type: 'string'
|
|
426
|
-
},
|
|
427
|
-
wrap: {
|
|
428
|
-
optional: true,
|
|
429
|
-
type: 'boolean'
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
},
|
|
433
|
-
marks: {
|
|
434
|
-
items: ['breakout'],
|
|
435
|
-
optional: true,
|
|
436
|
-
type: 'array'
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}];
|
|
440
|
-
var codeBlock_with_extended_attributes = exports.codeBlock_with_extended_attributes = ['codeBlock', {
|
|
441
|
-
props: {
|
|
442
|
-
attrs: {
|
|
443
|
-
optional: true,
|
|
444
|
-
props: {
|
|
445
|
-
hideLineNumbers: {
|
|
446
|
-
optional: true,
|
|
447
|
-
type: 'boolean'
|
|
448
|
-
},
|
|
449
|
-
language: {
|
|
450
|
-
optional: true,
|
|
451
|
-
type: 'string'
|
|
452
|
-
},
|
|
453
|
-
localId: {
|
|
454
|
-
optional: true,
|
|
455
|
-
type: 'string'
|
|
456
|
-
},
|
|
457
|
-
uniqueId: {
|
|
458
|
-
optional: true,
|
|
459
|
-
type: 'string'
|
|
460
|
-
},
|
|
461
|
-
wrap: {
|
|
462
|
-
optional: true,
|
|
463
|
-
type: 'boolean'
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}];
|
|
469
414
|
var confluenceInlineComment = exports.confluenceInlineComment = {
|
|
470
415
|
props: {
|
|
471
416
|
attrs: {
|
|
@@ -574,7 +519,7 @@ var doc = exports.doc = {
|
|
|
574
519
|
props: {
|
|
575
520
|
content: {
|
|
576
521
|
allowUnsupportedBlock: true,
|
|
577
|
-
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', '
|
|
522
|
+
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', 'syncBlock', 'bodiedSyncBlock']],
|
|
578
523
|
type: 'array'
|
|
579
524
|
},
|
|
580
525
|
type: {
|
|
@@ -682,7 +627,7 @@ var expand = exports.expand = {
|
|
|
682
627
|
},
|
|
683
628
|
content: {
|
|
684
629
|
allowUnsupportedBlock: true,
|
|
685
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', '
|
|
630
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
|
686
631
|
minItems: 1,
|
|
687
632
|
type: 'array'
|
|
688
633
|
},
|
|
@@ -1511,7 +1456,7 @@ var nestedExpand_with_no_marks = exports.nestedExpand_with_no_marks = ['nestedEx
|
|
|
1511
1456
|
}
|
|
1512
1457
|
}
|
|
1513
1458
|
}];
|
|
1514
|
-
var non_nestable_block_content = exports.non_nestable_block_content = ['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', '
|
|
1459
|
+
var non_nestable_block_content = exports.non_nestable_block_content = ['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
|
|
1515
1460
|
var orderedList = exports.orderedList = {
|
|
1516
1461
|
props: {
|
|
1517
1462
|
attrs: {
|
|
@@ -1853,7 +1798,7 @@ var tableCell = exports.tableCell = {
|
|
|
1853
1798
|
},
|
|
1854
1799
|
content: {
|
|
1855
1800
|
allowUnsupportedBlock: true,
|
|
1856
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', '
|
|
1801
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
|
1857
1802
|
minItems: 1,
|
|
1858
1803
|
type: 'array'
|
|
1859
1804
|
},
|
|
@@ -1900,7 +1845,7 @@ var tableHeader = exports.tableHeader = {
|
|
|
1900
1845
|
}
|
|
1901
1846
|
},
|
|
1902
1847
|
content: {
|
|
1903
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', '
|
|
1848
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
|
|
1904
1849
|
minItems: 1,
|
|
1905
1850
|
type: 'array'
|
|
1906
1851
|
},
|