@atlaskit/adf-schema 57.2.11 → 57.3.2
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 +20 -0
- package/bodied-rule/package.json +8 -0
- package/dist/cjs/next-schema/full-schema.adf.js +2 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +91 -17
- package/dist/cjs/next-schema/groups/blockContentGroup.js +2 -1
- package/dist/cjs/next-schema/groups/blockGroup.js +2 -1
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +2 -1
- package/dist/cjs/next-schema/nodes/bodiedRule.js +56 -0
- package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +2 -1
- package/dist/cjs/next-schema/nodes/extensionFrame.js +2 -1
- package/dist/cjs/next-schema/nodes/nestedExpand.js +2 -1
- package/dist/cjs/next-schema/nodes/panel.js +2 -1
- package/dist/cjs/next-schema/nodes/rule.js +33 -0
- package/dist/cjs/schema/default-schema.js +3 -1
- package/dist/cjs/schema/nodes/bodied-rule.js +57 -0
- package/dist/cjs/schema/nodes/rule.js +53 -1
- package/dist/cjs/schema/nodes-in-order.js +4 -0
- package/dist/cjs/validator-schema/generated/validatorSpec.js +142 -14
- package/dist/es2019/next-schema/full-schema.adf.js +2 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +90 -16
- package/dist/es2019/next-schema/groups/blockContentGroup.js +2 -1
- package/dist/es2019/next-schema/groups/blockGroup.js +2 -1
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +2 -1
- package/dist/es2019/next-schema/nodes/bodiedRule.js +50 -0
- package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +2 -1
- package/dist/es2019/next-schema/nodes/extensionFrame.js +2 -1
- package/dist/es2019/next-schema/nodes/nestedExpand.js +2 -1
- package/dist/es2019/next-schema/nodes/panel.js +2 -1
- package/dist/es2019/next-schema/nodes/rule.js +33 -0
- package/dist/es2019/schema/default-schema.js +4 -2
- package/dist/es2019/schema/nodes/bodied-rule.js +50 -0
- package/dist/es2019/schema/nodes/rule.js +56 -0
- package/dist/es2019/schema/nodes-in-order.js +4 -0
- package/dist/es2019/validator-schema/generated/validatorSpec.js +140 -13
- package/dist/esm/next-schema/full-schema.adf.js +2 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +90 -16
- package/dist/esm/next-schema/groups/blockContentGroup.js +2 -1
- package/dist/esm/next-schema/groups/blockGroup.js +2 -1
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +2 -1
- package/dist/esm/next-schema/nodes/bodiedRule.js +50 -0
- package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +2 -1
- package/dist/esm/next-schema/nodes/extensionFrame.js +2 -1
- package/dist/esm/next-schema/nodes/nestedExpand.js +2 -1
- package/dist/esm/next-schema/nodes/panel.js +2 -1
- package/dist/esm/next-schema/nodes/rule.js +33 -0
- package/dist/esm/schema/default-schema.js +4 -2
- package/dist/esm/schema/nodes/bodied-rule.js +51 -0
- package/dist/esm/schema/nodes/rule.js +52 -0
- package/dist/esm/schema/nodes-in-order.js +4 -0
- package/dist/esm/validator-schema/generated/validatorSpec.js +140 -13
- package/dist/json-schema/v1/stage-0.json +248 -0
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
- package/dist/types/next-schema/generated/nodeTypes.d.ts +67 -16
- package/dist/types/next-schema/nodes/bodiedRule.d.ts +2 -0
- package/dist/types/next-schema/nodes/rule.d.ts +6 -1
- package/dist/types/schema/default-schema.d.ts +1 -1
- package/dist/types/schema/nodes/bodied-rule.d.ts +34 -0
- package/dist/types/schema/nodes/bodied-sync-block.d.ts +2 -1
- package/dist/types/schema/nodes/doc.d.ts +2 -1
- package/dist/types/schema/nodes/multi-bodied-extension.d.ts +2 -1
- package/dist/types/schema/nodes/nested-expand.d.ts +2 -1
- package/dist/types/schema/nodes/panel.d.ts +3 -2
- package/dist/types/schema/nodes/rule.d.ts +20 -0
- package/dist/types/schema/nodes/tableNodes.d.ts +2 -1
- package/dist/types/schema/nodes/types/block-content.d.ts +2 -1
- package/dist/types/schema/nodes/types/non-nestable-block-content.d.ts +2 -1
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +127 -0
- package/json-schema/v1/stage-0.json +248 -0
- package/package.json +2 -2
- package/schema/bodied-rule/package.json +8 -0
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +2 -0
|
@@ -4,6 +4,7 @@ import { unsupportedMark } from '../marks/unsupportedMark';
|
|
|
4
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
5
5
|
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
|
6
6
|
import { blockCard } from './blockCard';
|
|
7
|
+
import { bodiedRule } from './bodiedRule';
|
|
7
8
|
import { blockquote } from './blockquote';
|
|
8
9
|
import { codeBlock } from './codeBlock';
|
|
9
10
|
import { confluenceUnsupportedBlock } from './confluenceUnsupportedBlock';
|
|
@@ -37,7 +38,7 @@ export var bodiedSyncBlock = adfNode('bodiedSyncBlock').define({
|
|
|
37
38
|
content: [$onePlus($or(paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList,
|
|
38
39
|
// panel_c1 must precede bare `panel` so the validator's repairing loop reaches it before
|
|
39
40
|
// base `panel` wraps a nested table as `unsupportedBlock`. See full-schema.adf.ts.
|
|
40
|
-
panel.use('c1'), panel, rule, table,
|
|
41
|
+
panel.use('c1'), panel, rule, rule.use('with_attrs'), bodiedRule, table,
|
|
41
42
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
|
42
43
|
table.use('with_nested_table'), taskList, unsupportedBlock))]
|
|
43
44
|
});
|
|
@@ -6,6 +6,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
|
6
6
|
import { blockCard } from './blockCard';
|
|
7
7
|
import { blockquote } from './blockquote';
|
|
8
8
|
import { bodiedExtension } from './bodiedExtension';
|
|
9
|
+
import { bodiedRule } from './bodiedRule';
|
|
9
10
|
import { codeBlock } from './codeBlock';
|
|
10
11
|
import { decisionList } from './decisionList';
|
|
11
12
|
import { embedCard } from './embedCard';
|
|
@@ -30,7 +31,7 @@ export var extensionFrame = adfNode('extensionFrame').define({
|
|
|
30
31
|
// packages/adf-schema-generator/src/transforms/adfToPm/buildPmSpec.ts
|
|
31
32
|
marks: [dataConsumer, fragment, unsupportedMark, unsupportedNodeAttribute],
|
|
32
33
|
attrs: {},
|
|
33
|
-
content: [$onePlus($or(paragraph.use('with_no_marks'), paragraph.use('with_font_size'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), codeBlock, mediaGroup, mediaSingle.use('full'), mediaSingle.use('caption'), decisionList, taskList, table,
|
|
34
|
+
content: [$onePlus($or(paragraph.use('with_no_marks'), paragraph.use('with_font_size'), panel, blockquote, orderedList, bulletList, rule, rule.use('with_attrs'), bodiedRule, heading.use('with_no_marks'), codeBlock, mediaGroup, mediaSingle.use('full'), mediaSingle.use('caption'), decisionList, taskList, table,
|
|
34
35
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
|
35
36
|
table.use('with_nested_table'), extension.use('with_marks'), bodiedExtension.use('with_marks'), unsupportedBlock, blockCard, embedCard))],
|
|
36
37
|
DANGEROUS_MANUAL_OVERRIDE: {
|
|
@@ -2,6 +2,7 @@ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
|
|
2
2
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
3
3
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
4
4
|
import { blockquote } from './blockquote';
|
|
5
|
+
import { bodiedRule } from './bodiedRule';
|
|
5
6
|
import { codeBlock } from './codeBlock';
|
|
6
7
|
import { decisionList } from './decisionList';
|
|
7
8
|
import { extension } from './extension';
|
|
@@ -14,7 +15,7 @@ import { paragraph } from './paragraph';
|
|
|
14
15
|
import { rule } from './rule';
|
|
15
16
|
import { taskList } from './task';
|
|
16
17
|
import { unsupportedBlock } from './unsupportedBlock';
|
|
17
|
-
var nestedExpandContent = [paragraph.use('with_no_marks'), paragraph.use('with_font_size'), heading.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, codeBlock, bulletList, orderedList, taskList, decisionList, rule, panel, blockquote, unsupportedBlock];
|
|
18
|
+
var nestedExpandContent = [paragraph.use('with_no_marks'), paragraph.use('with_font_size'), heading.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, codeBlock, bulletList, orderedList, taskList, decisionList, rule, rule.use('with_attrs'), bodiedRule, panel, blockquote, unsupportedBlock];
|
|
18
19
|
export var nestedExpand = adfNode('nestedExpand').define({
|
|
19
20
|
isolating: true,
|
|
20
21
|
selectable: true,
|
|
@@ -3,6 +3,7 @@ import { breakout } from '../marks/breakout';
|
|
|
3
3
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
4
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
5
5
|
import { blockCard } from './blockCard';
|
|
6
|
+
import { bodiedRule } from './bodiedRule';
|
|
6
7
|
import { codeBlock } from './codeBlock';
|
|
7
8
|
import { decisionList } from './decisionList';
|
|
8
9
|
import { heading } from './heading';
|
|
@@ -15,7 +16,7 @@ import { taskList } from './task';
|
|
|
15
16
|
import { unsupportedBlock } from './unsupportedBlock';
|
|
16
17
|
import { extension } from './extension';
|
|
17
18
|
import { table } from './tableStub';
|
|
18
|
-
var panelContent = [paragraph.use('with_no_marks'), paragraph.use('with_font_size'), heading.use('with_no_marks'), bulletList, orderedList, blockCard, mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, rule, decisionList, unsupportedBlock];
|
|
19
|
+
var panelContent = [paragraph.use('with_no_marks'), paragraph.use('with_font_size'), heading.use('with_no_marks'), bulletList, orderedList, blockCard, mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, rule, rule.use('with_attrs'), bodiedRule, decisionList, unsupportedBlock];
|
|
19
20
|
export var panel = adfNode('panel').define({
|
|
20
21
|
selectable: true,
|
|
21
22
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
|
@@ -2,6 +2,32 @@ import { adfNode } from '@atlaskit/adf-schema-generator';
|
|
|
2
2
|
import { breakout } from '../marks/breakout';
|
|
3
3
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
4
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
5
|
+
var ruleAttributes = {
|
|
6
|
+
localId: {
|
|
7
|
+
type: 'string',
|
|
8
|
+
default: null,
|
|
9
|
+
optional: true
|
|
10
|
+
},
|
|
11
|
+
color: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
default: null,
|
|
14
|
+
optional: true,
|
|
15
|
+
pattern: '^#[0-9a-fA-F]{6}$'
|
|
16
|
+
},
|
|
17
|
+
style: {
|
|
18
|
+
type: 'enum',
|
|
19
|
+
values: ['solid', 'dashed', 'dotted', 'sketch', 'fade'],
|
|
20
|
+
default: null,
|
|
21
|
+
optional: true
|
|
22
|
+
},
|
|
23
|
+
weight: {
|
|
24
|
+
type: 'number',
|
|
25
|
+
default: null,
|
|
26
|
+
minimum: 1,
|
|
27
|
+
maximum: 3,
|
|
28
|
+
optional: true
|
|
29
|
+
}
|
|
30
|
+
};
|
|
5
31
|
export var rule = adfNode('rule').define({
|
|
6
32
|
attrs: {
|
|
7
33
|
localId: {
|
|
@@ -10,9 +36,16 @@ export var rule = adfNode('rule').define({
|
|
|
10
36
|
optional: true
|
|
11
37
|
}
|
|
12
38
|
}
|
|
39
|
+
}).variant('with_attrs', {
|
|
40
|
+
stage0: true,
|
|
41
|
+
attrs: ruleAttributes
|
|
13
42
|
})
|
|
14
43
|
// this variant is used to support breakout resizing for rule nodes at the document root
|
|
15
44
|
.variant('root_only', {
|
|
16
45
|
stage0: true,
|
|
17
46
|
marks: [breakout, unsupportedMark, unsupportedNodeAttribute]
|
|
47
|
+
}).variant('with_attrs_root_only', {
|
|
48
|
+
stage0: true,
|
|
49
|
+
attrs: ruleAttributes,
|
|
50
|
+
marks: [breakout, unsupportedMark, unsupportedNodeAttribute]
|
|
18
51
|
});
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
|
2
2
|
import { createSchema } from './create-schema';
|
|
3
3
|
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtensionRootOnlyStage0, bodiedExtensionRootOnlyStage0, extensionRootOnlyStage0, expandWithNestedExpand, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0 } from './nodes';
|
|
4
|
+
import { bodiedRuleRootOnlyStage0 } from './nodes/bodied-rule';
|
|
4
5
|
import { extendedPanelC1RootOnlyStage0 } from './nodes/extended-panel-c1-root-only-stage0';
|
|
5
6
|
import { extendedPanelRootOnlyStage0 } from './nodes/extended-panel-root-only-stage0';
|
|
6
|
-
import {
|
|
7
|
+
import { ruleWithAttrsRootOnlyStage0 } from './nodes/rule';
|
|
7
8
|
var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
|
|
8
9
|
var defaultSchemaConfig = {
|
|
9
10
|
nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'panel_c1', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
|
|
@@ -35,7 +36,8 @@ function () {
|
|
|
35
36
|
tableHeader: tableHeaderWithNestedTableStage0,
|
|
36
37
|
panel: extendedPanelRootOnlyStage0(true),
|
|
37
38
|
panel_c1: extendedPanelC1RootOnlyStage0(true),
|
|
38
|
-
rule:
|
|
39
|
+
rule: ruleWithAttrsRootOnlyStage0,
|
|
40
|
+
bodiedRule: bodiedRuleRootOnlyStage0
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
return createSchema(defaultSchemaConfig);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
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
|
+
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 { bodiedRuleStage0 as bodiedRuleFactory } from '../../next-schema/generated/nodeTypes';
|
|
5
|
+
import { uuid } from '../../utils/uuid';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @name bodiedRule_node
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @name bodiedRule_root_only_node
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var getAttrs = function getAttrs(domNode) {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
17
|
+
var dom = domNode;
|
|
18
|
+
var weight = dom.getAttribute('data-weight');
|
|
19
|
+
return {
|
|
20
|
+
alignment: dom.getAttribute('data-alignment') || undefined,
|
|
21
|
+
color: dom.getAttribute('data-color') || undefined,
|
|
22
|
+
localId: dom.getAttribute('data-local-id') || uuid.generate(),
|
|
23
|
+
style: dom.getAttribute('data-style') || undefined,
|
|
24
|
+
weight: weight === null || weight === '' ? undefined : Number(weight)
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export var bodiedRule = bodiedRuleFactory({
|
|
28
|
+
parseDOM: [{
|
|
29
|
+
tag: 'div[data-node-type="bodied-rule"]',
|
|
30
|
+
getAttrs: getAttrs
|
|
31
|
+
}],
|
|
32
|
+
toDOM: function toDOM(node) {
|
|
33
|
+
var _node$attrs = node.attrs,
|
|
34
|
+
alignment = _node$attrs.alignment,
|
|
35
|
+
color = _node$attrs.color,
|
|
36
|
+
localId = _node$attrs.localId,
|
|
37
|
+
style = _node$attrs.style,
|
|
38
|
+
weight = _node$attrs.weight;
|
|
39
|
+
return ['div', {
|
|
40
|
+
'data-node-type': 'bodied-rule',
|
|
41
|
+
'data-alignment': alignment || undefined,
|
|
42
|
+
'data-color': color || undefined,
|
|
43
|
+
'data-local-id': localId || undefined,
|
|
44
|
+
'data-style': style || undefined,
|
|
45
|
+
'data-weight': weight !== null && weight !== void 0 ? weight : undefined
|
|
46
|
+
}, 0];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export var bodiedRuleRootOnlyStage0 = _objectSpread(_objectSpread({}, bodiedRule), {}, {
|
|
50
|
+
marks: 'breakout unsupportedMark unsupportedNodeAttribute'
|
|
51
|
+
});
|
|
@@ -12,6 +12,14 @@ import { uuid } from '../../utils/uuid';
|
|
|
12
12
|
* @name rule_root_only_node
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* @name rule_with_attrs_node
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @name rule_with_attrs_root_only_node
|
|
21
|
+
*/
|
|
22
|
+
|
|
15
23
|
var hrDOM = ['hr'];
|
|
16
24
|
export var rule = ruleFactory({
|
|
17
25
|
parseDOM: [{
|
|
@@ -37,6 +45,50 @@ export var ruleWithLocalId = ruleFactory({
|
|
|
37
45
|
}];
|
|
38
46
|
}
|
|
39
47
|
});
|
|
48
|
+
var getAttrs = function getAttrs(domNode) {
|
|
49
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
50
|
+
var dom = domNode;
|
|
51
|
+
var weight = dom.getAttribute('data-weight');
|
|
52
|
+
return {
|
|
53
|
+
color: dom.getAttribute('data-color') || undefined,
|
|
54
|
+
localId: dom.getAttribute('data-local-id') || undefined,
|
|
55
|
+
style: dom.getAttribute('data-style') || undefined,
|
|
56
|
+
weight: weight === null || weight === '' ? undefined : Number(weight)
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export var ruleWithAttrs = _objectSpread(_objectSpread({}, ruleWithLocalId), {}, {
|
|
60
|
+
attrs: _objectSpread(_objectSpread({}, ruleWithLocalId.attrs), {}, {
|
|
61
|
+
color: {
|
|
62
|
+
default: null
|
|
63
|
+
},
|
|
64
|
+
style: {
|
|
65
|
+
default: null
|
|
66
|
+
},
|
|
67
|
+
weight: {
|
|
68
|
+
default: null
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
parseDOM: [{
|
|
72
|
+
tag: 'hr',
|
|
73
|
+
getAttrs: getAttrs
|
|
74
|
+
}],
|
|
75
|
+
toDOM: function toDOM(node) {
|
|
76
|
+
var _node$attrs2 = node.attrs,
|
|
77
|
+
color = _node$attrs2.color,
|
|
78
|
+
localId = _node$attrs2.localId,
|
|
79
|
+
style = _node$attrs2.style,
|
|
80
|
+
weight = _node$attrs2.weight;
|
|
81
|
+
return ['hr', {
|
|
82
|
+
'data-color': color || undefined,
|
|
83
|
+
'data-local-id': localId || undefined,
|
|
84
|
+
'data-style': style || undefined,
|
|
85
|
+
'data-weight': weight !== null && weight !== void 0 ? weight : undefined
|
|
86
|
+
}];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
40
89
|
export var ruleRootOnlyStage0 = _objectSpread(_objectSpread({}, ruleWithLocalId), {}, {
|
|
41
90
|
marks: 'breakout unsupportedMark unsupportedNodeAttribute'
|
|
91
|
+
});
|
|
92
|
+
export var ruleWithAttrsRootOnlyStage0 = _objectSpread(_objectSpread({}, ruleWithAttrs), {}, {
|
|
93
|
+
marks: 'breakout unsupportedMark unsupportedNodeAttribute'
|
|
42
94
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItem, heading, codeBlock, extendedPanel, extendedPanelC1, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, blockTaskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expandWithNestedExpand, nestedExpand, embedCard, caption, extendedBlockquote, syncBlock, bodiedSyncBlock } from './nodes';
|
|
2
|
+
import { bodiedRule } from './nodes/bodied-rule';
|
|
2
3
|
export var nodesInOrder = [{
|
|
3
4
|
name: 'doc',
|
|
4
5
|
spec: doc
|
|
@@ -35,6 +36,9 @@ export var nodesInOrder = [{
|
|
|
35
36
|
}, {
|
|
36
37
|
name: 'rule',
|
|
37
38
|
spec: rule
|
|
39
|
+
}, {
|
|
40
|
+
name: 'bodiedRule',
|
|
41
|
+
spec: bodiedRule
|
|
38
42
|
}, {
|
|
39
43
|
name: 'image',
|
|
40
44
|
spec: image
|
|
@@ -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', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
|
|
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', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
|
|
53
53
|
export var blockCard = {
|
|
54
54
|
props: {
|
|
55
55
|
attrs: [{
|
|
@@ -246,6 +246,64 @@ export var bodiedExtension_with_marks = ['bodiedExtension', {
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
}];
|
|
249
|
+
export var bodiedRule = {
|
|
250
|
+
meta: {
|
|
251
|
+
stage0: true
|
|
252
|
+
},
|
|
253
|
+
props: {
|
|
254
|
+
attrs: {
|
|
255
|
+
props: {
|
|
256
|
+
alignment: {
|
|
257
|
+
optional: true,
|
|
258
|
+
type: 'enum',
|
|
259
|
+
values: ['start', 'center', 'end']
|
|
260
|
+
},
|
|
261
|
+
color: {
|
|
262
|
+
optional: true,
|
|
263
|
+
pattern: '^#[0-9a-fA-F]{6}$',
|
|
264
|
+
type: 'string'
|
|
265
|
+
},
|
|
266
|
+
localId: {
|
|
267
|
+
minLength: 1,
|
|
268
|
+
type: 'string'
|
|
269
|
+
},
|
|
270
|
+
style: {
|
|
271
|
+
optional: true,
|
|
272
|
+
type: 'enum',
|
|
273
|
+
values: ['solid', 'dashed', 'dotted', 'sketch', 'fade']
|
|
274
|
+
},
|
|
275
|
+
weight: {
|
|
276
|
+
maximum: 3,
|
|
277
|
+
minimum: 1,
|
|
278
|
+
optional: true,
|
|
279
|
+
type: 'number'
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
content: {
|
|
284
|
+
items: [['paragraph_with_no_marks', 'heading_with_no_marks']],
|
|
285
|
+
maxItems: 1,
|
|
286
|
+
minItems: 1,
|
|
287
|
+
type: 'array'
|
|
288
|
+
},
|
|
289
|
+
type: {
|
|
290
|
+
type: 'enum',
|
|
291
|
+
values: ['bodiedRule']
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
export var bodiedRule_root_only = ['bodiedRule', {
|
|
296
|
+
meta: {
|
|
297
|
+
stage0: true
|
|
298
|
+
},
|
|
299
|
+
props: {
|
|
300
|
+
marks: {
|
|
301
|
+
items: ['breakout'],
|
|
302
|
+
optional: true,
|
|
303
|
+
type: 'array'
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}];
|
|
249
307
|
export var bodiedSyncBlock = {
|
|
250
308
|
props: {
|
|
251
309
|
attrs: {
|
|
@@ -260,7 +318,7 @@ export var bodiedSyncBlock = {
|
|
|
260
318
|
},
|
|
261
319
|
content: {
|
|
262
320
|
allowUnsupportedBlock: true,
|
|
263
|
-
items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'layoutSection_with_single_column', 'layoutSection_full', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel_c1', 'panel', 'rule', 'table', 'taskList']],
|
|
321
|
+
items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'layoutSection_with_single_column', 'layoutSection_full', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel_c1', 'panel', 'rule', 'rule_with_attrs', 'bodiedRule', 'table', 'taskList']],
|
|
264
322
|
minItems: 1,
|
|
265
323
|
type: 'array'
|
|
266
324
|
},
|
|
@@ -531,7 +589,7 @@ export var doc = {
|
|
|
531
589
|
props: {
|
|
532
590
|
content: {
|
|
533
591
|
allowUnsupportedBlock: true,
|
|
534
|
-
items: [['panel_c1', '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', 'panel_root_only', 'panel_c1_root_only', 'rule_root_only', 'extension_root_only', 'bodiedExtension_root_only', 'multiBodiedExtension_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
|
|
592
|
+
items: [['panel_c1', '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', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'panel_root_only', 'panel_c1_root_only', 'rule_root_only', 'rule_with_attrs_root_only', 'bodiedRule_root_only', 'extension_root_only', 'bodiedExtension_root_only', 'multiBodiedExtension_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
|
|
535
593
|
type: 'array'
|
|
536
594
|
},
|
|
537
595
|
type: {
|
|
@@ -639,7 +697,7 @@ export var expand = {
|
|
|
639
697
|
},
|
|
640
698
|
content: {
|
|
641
699
|
allowUnsupportedBlock: true,
|
|
642
|
-
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']],
|
|
700
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
|
643
701
|
minItems: 1,
|
|
644
702
|
type: 'array'
|
|
645
703
|
},
|
|
@@ -734,7 +792,7 @@ export var extensionFrame = {
|
|
|
734
792
|
},
|
|
735
793
|
props: {
|
|
736
794
|
content: {
|
|
737
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
|
|
795
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
|
|
738
796
|
minItems: 1,
|
|
739
797
|
type: 'array'
|
|
740
798
|
},
|
|
@@ -990,7 +1048,7 @@ export var layoutColumn = {
|
|
|
990
1048
|
},
|
|
991
1049
|
content: {
|
|
992
1050
|
allowUnsupportedBlock: true,
|
|
993
|
-
items: [['panel_c1', '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']],
|
|
1051
|
+
items: [['panel_c1', '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', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks']],
|
|
994
1052
|
minItems: 1,
|
|
995
1053
|
type: 'array'
|
|
996
1054
|
},
|
|
@@ -1493,7 +1551,7 @@ export var nestedExpand = {
|
|
|
1493
1551
|
};
|
|
1494
1552
|
export var nestedExpand_content = {
|
|
1495
1553
|
allowUnsupportedBlock: true,
|
|
1496
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks']],
|
|
1554
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks']],
|
|
1497
1555
|
minItems: 1,
|
|
1498
1556
|
type: 'array'
|
|
1499
1557
|
};
|
|
@@ -1507,7 +1565,7 @@ export var nestedExpand_with_no_marks = ['nestedExpand', {
|
|
|
1507
1565
|
}
|
|
1508
1566
|
}
|
|
1509
1567
|
}];
|
|
1510
|
-
export var 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'];
|
|
1568
|
+
export var non_nestable_block_content = ['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
|
|
1511
1569
|
export var orderedList = {
|
|
1512
1570
|
props: {
|
|
1513
1571
|
attrs: {
|
|
@@ -1567,7 +1625,7 @@ export var panel = {
|
|
|
1567
1625
|
},
|
|
1568
1626
|
content: {
|
|
1569
1627
|
allowUnsupportedBlock: true,
|
|
1570
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks']],
|
|
1628
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'rule_with_attrs', 'bodiedRule', 'decisionList', 'extension_with_marks']],
|
|
1571
1629
|
minItems: 1,
|
|
1572
1630
|
type: 'array'
|
|
1573
1631
|
},
|
|
@@ -1584,7 +1642,7 @@ export var panel_c1 = ['panel', {
|
|
|
1584
1642
|
props: {
|
|
1585
1643
|
content: {
|
|
1586
1644
|
allowUnsupportedBlock: true,
|
|
1587
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks', 'table']],
|
|
1645
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'rule_with_attrs', 'bodiedRule', 'decisionList', 'extension_with_marks', 'table']],
|
|
1588
1646
|
minItems: 1,
|
|
1589
1647
|
type: 'array'
|
|
1590
1648
|
}
|
|
@@ -1597,7 +1655,7 @@ export var panel_c1_root_only = ['panel', {
|
|
|
1597
1655
|
props: {
|
|
1598
1656
|
content: {
|
|
1599
1657
|
allowUnsupportedBlock: true,
|
|
1600
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks', 'table']],
|
|
1658
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'rule_with_attrs', 'bodiedRule', 'decisionList', 'extension_with_marks', 'table']],
|
|
1601
1659
|
minItems: 1,
|
|
1602
1660
|
type: 'array'
|
|
1603
1661
|
},
|
|
@@ -1733,6 +1791,75 @@ export var rule_root_only = ['rule', {
|
|
|
1733
1791
|
}
|
|
1734
1792
|
}
|
|
1735
1793
|
}];
|
|
1794
|
+
export var rule_with_attrs = ['rule', {
|
|
1795
|
+
meta: {
|
|
1796
|
+
stage0: true
|
|
1797
|
+
},
|
|
1798
|
+
props: {
|
|
1799
|
+
attrs: {
|
|
1800
|
+
optional: true,
|
|
1801
|
+
props: {
|
|
1802
|
+
color: {
|
|
1803
|
+
optional: true,
|
|
1804
|
+
pattern: '^#[0-9a-fA-F]{6}$',
|
|
1805
|
+
type: 'string'
|
|
1806
|
+
},
|
|
1807
|
+
localId: {
|
|
1808
|
+
optional: true,
|
|
1809
|
+
type: 'string'
|
|
1810
|
+
},
|
|
1811
|
+
style: {
|
|
1812
|
+
optional: true,
|
|
1813
|
+
type: 'enum',
|
|
1814
|
+
values: ['solid', 'dashed', 'dotted', 'sketch', 'fade']
|
|
1815
|
+
},
|
|
1816
|
+
weight: {
|
|
1817
|
+
maximum: 3,
|
|
1818
|
+
minimum: 1,
|
|
1819
|
+
optional: true,
|
|
1820
|
+
type: 'number'
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
}];
|
|
1826
|
+
export var rule_with_attrs_root_only = ['rule', {
|
|
1827
|
+
meta: {
|
|
1828
|
+
stage0: true
|
|
1829
|
+
},
|
|
1830
|
+
props: {
|
|
1831
|
+
attrs: {
|
|
1832
|
+
optional: true,
|
|
1833
|
+
props: {
|
|
1834
|
+
color: {
|
|
1835
|
+
optional: true,
|
|
1836
|
+
pattern: '^#[0-9a-fA-F]{6}$',
|
|
1837
|
+
type: 'string'
|
|
1838
|
+
},
|
|
1839
|
+
localId: {
|
|
1840
|
+
optional: true,
|
|
1841
|
+
type: 'string'
|
|
1842
|
+
},
|
|
1843
|
+
style: {
|
|
1844
|
+
optional: true,
|
|
1845
|
+
type: 'enum',
|
|
1846
|
+
values: ['solid', 'dashed', 'dotted', 'sketch', 'fade']
|
|
1847
|
+
},
|
|
1848
|
+
weight: {
|
|
1849
|
+
maximum: 3,
|
|
1850
|
+
minimum: 1,
|
|
1851
|
+
optional: true,
|
|
1852
|
+
type: 'number'
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
},
|
|
1856
|
+
marks: {
|
|
1857
|
+
items: ['breakout'],
|
|
1858
|
+
optional: true,
|
|
1859
|
+
type: 'array'
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
}];
|
|
1736
1863
|
export var status = {
|
|
1737
1864
|
props: {
|
|
1738
1865
|
attrs: {
|
|
@@ -1904,7 +2031,7 @@ export var tableCell = {
|
|
|
1904
2031
|
},
|
|
1905
2032
|
content: {
|
|
1906
2033
|
allowUnsupportedBlock: true,
|
|
1907
|
-
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']],
|
|
2034
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', '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']],
|
|
1908
2035
|
minItems: 1,
|
|
1909
2036
|
type: 'array'
|
|
1910
2037
|
},
|
|
@@ -1951,7 +2078,7 @@ export var tableHeader = {
|
|
|
1951
2078
|
}
|
|
1952
2079
|
},
|
|
1953
2080
|
content: {
|
|
1954
|
-
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']],
|
|
2081
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', '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']],
|
|
1955
2082
|
minItems: 1,
|
|
1956
2083
|
type: 'array'
|
|
1957
2084
|
},
|