@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,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.ruleWithLocalId = exports.ruleRootOnlyStage0 = exports.rule = void 0;
|
|
7
|
+
exports.ruleWithLocalId = exports.ruleWithAttrsRootOnlyStage0 = exports.ruleWithAttrs = exports.ruleRootOnlyStage0 = exports.rule = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
|
10
10
|
var _uuid = require("../../utils/uuid");
|
|
@@ -18,6 +18,14 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
18
18
|
* @name rule_root_only_node
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* @name rule_with_attrs_node
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @name rule_with_attrs_root_only_node
|
|
27
|
+
*/
|
|
28
|
+
|
|
21
29
|
var hrDOM = ['hr'];
|
|
22
30
|
var rule = exports.rule = (0, _nodeTypes.rule)({
|
|
23
31
|
parseDOM: [{
|
|
@@ -43,6 +51,50 @@ var ruleWithLocalId = exports.ruleWithLocalId = (0, _nodeTypes.rule)({
|
|
|
43
51
|
}];
|
|
44
52
|
}
|
|
45
53
|
});
|
|
54
|
+
var getAttrs = function getAttrs(domNode) {
|
|
55
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
56
|
+
var dom = domNode;
|
|
57
|
+
var weight = dom.getAttribute('data-weight');
|
|
58
|
+
return {
|
|
59
|
+
color: dom.getAttribute('data-color') || undefined,
|
|
60
|
+
localId: dom.getAttribute('data-local-id') || undefined,
|
|
61
|
+
style: dom.getAttribute('data-style') || undefined,
|
|
62
|
+
weight: weight === null || weight === '' ? undefined : Number(weight)
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
var ruleWithAttrs = exports.ruleWithAttrs = _objectSpread(_objectSpread({}, ruleWithLocalId), {}, {
|
|
66
|
+
attrs: _objectSpread(_objectSpread({}, ruleWithLocalId.attrs), {}, {
|
|
67
|
+
color: {
|
|
68
|
+
default: null
|
|
69
|
+
},
|
|
70
|
+
style: {
|
|
71
|
+
default: null
|
|
72
|
+
},
|
|
73
|
+
weight: {
|
|
74
|
+
default: null
|
|
75
|
+
}
|
|
76
|
+
}),
|
|
77
|
+
parseDOM: [{
|
|
78
|
+
tag: 'hr',
|
|
79
|
+
getAttrs: getAttrs
|
|
80
|
+
}],
|
|
81
|
+
toDOM: function toDOM(node) {
|
|
82
|
+
var _node$attrs2 = node.attrs,
|
|
83
|
+
color = _node$attrs2.color,
|
|
84
|
+
localId = _node$attrs2.localId,
|
|
85
|
+
style = _node$attrs2.style,
|
|
86
|
+
weight = _node$attrs2.weight;
|
|
87
|
+
return ['hr', {
|
|
88
|
+
'data-color': color || undefined,
|
|
89
|
+
'data-local-id': localId || undefined,
|
|
90
|
+
'data-style': style || undefined,
|
|
91
|
+
'data-weight': weight !== null && weight !== void 0 ? weight : undefined
|
|
92
|
+
}];
|
|
93
|
+
}
|
|
94
|
+
});
|
|
46
95
|
var ruleRootOnlyStage0 = exports.ruleRootOnlyStage0 = _objectSpread(_objectSpread({}, ruleWithLocalId), {}, {
|
|
47
96
|
marks: 'breakout unsupportedMark unsupportedNodeAttribute'
|
|
97
|
+
});
|
|
98
|
+
var ruleWithAttrsRootOnlyStage0 = exports.ruleWithAttrsRootOnlyStage0 = _objectSpread(_objectSpread({}, ruleWithAttrs), {}, {
|
|
99
|
+
marks: 'breakout unsupportedMark unsupportedNodeAttribute'
|
|
48
100
|
});
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.nodesInOrder = void 0;
|
|
7
7
|
var _nodes = require("./nodes");
|
|
8
|
+
var _bodiedRule = require("./nodes/bodied-rule");
|
|
8
9
|
var nodesInOrder = exports.nodesInOrder = [{
|
|
9
10
|
name: 'doc',
|
|
10
11
|
spec: _nodes.doc
|
|
@@ -41,6 +42,9 @@ var nodesInOrder = exports.nodesInOrder = [{
|
|
|
41
42
|
}, {
|
|
42
43
|
name: 'rule',
|
|
43
44
|
spec: _nodes.rule
|
|
45
|
+
}, {
|
|
46
|
+
name: 'bodiedRule',
|
|
47
|
+
spec: _bodiedRule.bodiedRule
|
|
44
48
|
}, {
|
|
45
49
|
name: 'image',
|
|
46
50
|
spec: _nodes.image
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
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_with_attrs_root_only = exports.rule_with_attrs = exports.rule_root_only = 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_root_only = exports.panel_c1_root_only = exports.panel_c1 = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension_root_only = 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.extension_root_only = 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.bodiedRule_root_only = exports.bodiedRule = exports.bodiedExtension_with_marks = exports.bodiedExtension_root_only = exports.bodiedExtension = exports.blockquote = exports.block_content = exports.blockTaskItem = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
|
|
7
|
+
exports.underline = void 0;
|
|
7
8
|
var alignment = exports.alignment = {
|
|
8
9
|
props: {
|
|
9
10
|
attrs: {
|
|
@@ -55,7 +56,7 @@ var backgroundColor = exports.backgroundColor = {
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
};
|
|
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
|
+
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', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
|
|
59
60
|
var blockCard = exports.blockCard = {
|
|
60
61
|
props: {
|
|
61
62
|
attrs: [{
|
|
@@ -252,6 +253,64 @@ var bodiedExtension_with_marks = exports.bodiedExtension_with_marks = ['bodiedEx
|
|
|
252
253
|
}
|
|
253
254
|
}
|
|
254
255
|
}];
|
|
256
|
+
var bodiedRule = exports.bodiedRule = {
|
|
257
|
+
meta: {
|
|
258
|
+
stage0: true
|
|
259
|
+
},
|
|
260
|
+
props: {
|
|
261
|
+
attrs: {
|
|
262
|
+
props: {
|
|
263
|
+
alignment: {
|
|
264
|
+
optional: true,
|
|
265
|
+
type: 'enum',
|
|
266
|
+
values: ['start', 'center', 'end']
|
|
267
|
+
},
|
|
268
|
+
color: {
|
|
269
|
+
optional: true,
|
|
270
|
+
pattern: '^#[0-9a-fA-F]{6}$',
|
|
271
|
+
type: 'string'
|
|
272
|
+
},
|
|
273
|
+
localId: {
|
|
274
|
+
minLength: 1,
|
|
275
|
+
type: 'string'
|
|
276
|
+
},
|
|
277
|
+
style: {
|
|
278
|
+
optional: true,
|
|
279
|
+
type: 'enum',
|
|
280
|
+
values: ['solid', 'dashed', 'dotted', 'sketch', 'fade']
|
|
281
|
+
},
|
|
282
|
+
weight: {
|
|
283
|
+
maximum: 3,
|
|
284
|
+
minimum: 1,
|
|
285
|
+
optional: true,
|
|
286
|
+
type: 'number'
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
content: {
|
|
291
|
+
items: [['paragraph_with_no_marks', 'heading_with_no_marks']],
|
|
292
|
+
maxItems: 1,
|
|
293
|
+
minItems: 1,
|
|
294
|
+
type: 'array'
|
|
295
|
+
},
|
|
296
|
+
type: {
|
|
297
|
+
type: 'enum',
|
|
298
|
+
values: ['bodiedRule']
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
};
|
|
302
|
+
var bodiedRule_root_only = exports.bodiedRule_root_only = ['bodiedRule', {
|
|
303
|
+
meta: {
|
|
304
|
+
stage0: true
|
|
305
|
+
},
|
|
306
|
+
props: {
|
|
307
|
+
marks: {
|
|
308
|
+
items: ['breakout'],
|
|
309
|
+
optional: true,
|
|
310
|
+
type: 'array'
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}];
|
|
255
314
|
var bodiedSyncBlock = exports.bodiedSyncBlock = {
|
|
256
315
|
props: {
|
|
257
316
|
attrs: {
|
|
@@ -266,7 +325,7 @@ var bodiedSyncBlock = exports.bodiedSyncBlock = {
|
|
|
266
325
|
},
|
|
267
326
|
content: {
|
|
268
327
|
allowUnsupportedBlock: true,
|
|
269
|
-
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']],
|
|
328
|
+
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']],
|
|
270
329
|
minItems: 1,
|
|
271
330
|
type: 'array'
|
|
272
331
|
},
|
|
@@ -537,7 +596,7 @@ var doc = exports.doc = {
|
|
|
537
596
|
props: {
|
|
538
597
|
content: {
|
|
539
598
|
allowUnsupportedBlock: true,
|
|
540
|
-
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']],
|
|
599
|
+
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']],
|
|
541
600
|
type: 'array'
|
|
542
601
|
},
|
|
543
602
|
type: {
|
|
@@ -645,7 +704,7 @@ var expand = exports.expand = {
|
|
|
645
704
|
},
|
|
646
705
|
content: {
|
|
647
706
|
allowUnsupportedBlock: true,
|
|
648
|
-
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']],
|
|
707
|
+
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']],
|
|
649
708
|
minItems: 1,
|
|
650
709
|
type: 'array'
|
|
651
710
|
},
|
|
@@ -740,7 +799,7 @@ var extensionFrame = exports.extensionFrame = {
|
|
|
740
799
|
},
|
|
741
800
|
props: {
|
|
742
801
|
content: {
|
|
743
|
-
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']],
|
|
802
|
+
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']],
|
|
744
803
|
minItems: 1,
|
|
745
804
|
type: 'array'
|
|
746
805
|
},
|
|
@@ -996,7 +1055,7 @@ var layoutColumn = exports.layoutColumn = {
|
|
|
996
1055
|
},
|
|
997
1056
|
content: {
|
|
998
1057
|
allowUnsupportedBlock: true,
|
|
999
|
-
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']],
|
|
1058
|
+
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']],
|
|
1000
1059
|
minItems: 1,
|
|
1001
1060
|
type: 'array'
|
|
1002
1061
|
},
|
|
@@ -1499,7 +1558,7 @@ var nestedExpand = exports.nestedExpand = {
|
|
|
1499
1558
|
};
|
|
1500
1559
|
var nestedExpand_content = exports.nestedExpand_content = {
|
|
1501
1560
|
allowUnsupportedBlock: true,
|
|
1502
|
-
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']],
|
|
1561
|
+
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']],
|
|
1503
1562
|
minItems: 1,
|
|
1504
1563
|
type: 'array'
|
|
1505
1564
|
};
|
|
@@ -1513,7 +1572,7 @@ var nestedExpand_with_no_marks = exports.nestedExpand_with_no_marks = ['nestedEx
|
|
|
1513
1572
|
}
|
|
1514
1573
|
}
|
|
1515
1574
|
}];
|
|
1516
|
-
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'];
|
|
1575
|
+
var non_nestable_block_content = exports.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'];
|
|
1517
1576
|
var orderedList = exports.orderedList = {
|
|
1518
1577
|
props: {
|
|
1519
1578
|
attrs: {
|
|
@@ -1573,7 +1632,7 @@ var panel = exports.panel = {
|
|
|
1573
1632
|
},
|
|
1574
1633
|
content: {
|
|
1575
1634
|
allowUnsupportedBlock: true,
|
|
1576
|
-
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']],
|
|
1635
|
+
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']],
|
|
1577
1636
|
minItems: 1,
|
|
1578
1637
|
type: 'array'
|
|
1579
1638
|
},
|
|
@@ -1590,7 +1649,7 @@ var panel_c1 = exports.panel_c1 = ['panel', {
|
|
|
1590
1649
|
props: {
|
|
1591
1650
|
content: {
|
|
1592
1651
|
allowUnsupportedBlock: true,
|
|
1593
|
-
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']],
|
|
1652
|
+
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']],
|
|
1594
1653
|
minItems: 1,
|
|
1595
1654
|
type: 'array'
|
|
1596
1655
|
}
|
|
@@ -1603,7 +1662,7 @@ var panel_c1_root_only = exports.panel_c1_root_only = ['panel', {
|
|
|
1603
1662
|
props: {
|
|
1604
1663
|
content: {
|
|
1605
1664
|
allowUnsupportedBlock: true,
|
|
1606
|
-
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']],
|
|
1665
|
+
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']],
|
|
1607
1666
|
minItems: 1,
|
|
1608
1667
|
type: 'array'
|
|
1609
1668
|
},
|
|
@@ -1739,6 +1798,75 @@ var rule_root_only = exports.rule_root_only = ['rule', {
|
|
|
1739
1798
|
}
|
|
1740
1799
|
}
|
|
1741
1800
|
}];
|
|
1801
|
+
var rule_with_attrs = exports.rule_with_attrs = ['rule', {
|
|
1802
|
+
meta: {
|
|
1803
|
+
stage0: true
|
|
1804
|
+
},
|
|
1805
|
+
props: {
|
|
1806
|
+
attrs: {
|
|
1807
|
+
optional: true,
|
|
1808
|
+
props: {
|
|
1809
|
+
color: {
|
|
1810
|
+
optional: true,
|
|
1811
|
+
pattern: '^#[0-9a-fA-F]{6}$',
|
|
1812
|
+
type: 'string'
|
|
1813
|
+
},
|
|
1814
|
+
localId: {
|
|
1815
|
+
optional: true,
|
|
1816
|
+
type: 'string'
|
|
1817
|
+
},
|
|
1818
|
+
style: {
|
|
1819
|
+
optional: true,
|
|
1820
|
+
type: 'enum',
|
|
1821
|
+
values: ['solid', 'dashed', 'dotted', 'sketch', 'fade']
|
|
1822
|
+
},
|
|
1823
|
+
weight: {
|
|
1824
|
+
maximum: 3,
|
|
1825
|
+
minimum: 1,
|
|
1826
|
+
optional: true,
|
|
1827
|
+
type: 'number'
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
}];
|
|
1833
|
+
var rule_with_attrs_root_only = exports.rule_with_attrs_root_only = ['rule', {
|
|
1834
|
+
meta: {
|
|
1835
|
+
stage0: true
|
|
1836
|
+
},
|
|
1837
|
+
props: {
|
|
1838
|
+
attrs: {
|
|
1839
|
+
optional: true,
|
|
1840
|
+
props: {
|
|
1841
|
+
color: {
|
|
1842
|
+
optional: true,
|
|
1843
|
+
pattern: '^#[0-9a-fA-F]{6}$',
|
|
1844
|
+
type: 'string'
|
|
1845
|
+
},
|
|
1846
|
+
localId: {
|
|
1847
|
+
optional: true,
|
|
1848
|
+
type: 'string'
|
|
1849
|
+
},
|
|
1850
|
+
style: {
|
|
1851
|
+
optional: true,
|
|
1852
|
+
type: 'enum',
|
|
1853
|
+
values: ['solid', 'dashed', 'dotted', 'sketch', 'fade']
|
|
1854
|
+
},
|
|
1855
|
+
weight: {
|
|
1856
|
+
maximum: 3,
|
|
1857
|
+
minimum: 1,
|
|
1858
|
+
optional: true,
|
|
1859
|
+
type: 'number'
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
marks: {
|
|
1864
|
+
items: ['breakout'],
|
|
1865
|
+
optional: true,
|
|
1866
|
+
type: 'array'
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
}];
|
|
1742
1870
|
var status = exports.status = {
|
|
1743
1871
|
props: {
|
|
1744
1872
|
attrs: {
|
|
@@ -1910,7 +2038,7 @@ var tableCell = exports.tableCell = {
|
|
|
1910
2038
|
},
|
|
1911
2039
|
content: {
|
|
1912
2040
|
allowUnsupportedBlock: true,
|
|
1913
|
-
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']],
|
|
2041
|
+
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']],
|
|
1914
2042
|
minItems: 1,
|
|
1915
2043
|
type: 'array'
|
|
1916
2044
|
},
|
|
@@ -1957,7 +2085,7 @@ var tableHeader = exports.tableHeader = {
|
|
|
1957
2085
|
}
|
|
1958
2086
|
},
|
|
1959
2087
|
content: {
|
|
1960
|
-
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']],
|
|
2088
|
+
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']],
|
|
1961
2089
|
minItems: 1,
|
|
1962
2090
|
type: 'array'
|
|
1963
2091
|
},
|
|
@@ -12,6 +12,7 @@ import { extension } from './nodes/extension';
|
|
|
12
12
|
import { multiBodiedExtension } from './nodes/multiBodiedExtension';
|
|
13
13
|
import { panel } from './nodes/panel';
|
|
14
14
|
import { rule } from './nodes/rule';
|
|
15
|
+
import { bodiedRule } from './nodes/bodiedRule';
|
|
15
16
|
const doc = adfNode('doc').define({
|
|
16
17
|
root: true,
|
|
17
18
|
version: 1,
|
|
@@ -24,7 +25,7 @@ const doc = adfNode('doc').define({
|
|
|
24
25
|
// Deliberately placed AFTER `blockGroup` rather than first: `blockContentGroup` is ignored
|
|
25
26
|
// for `pm-spec`, so this keeps `block` the leading alternative in the PM content
|
|
26
27
|
// expression and leaves ProseMirror's defaultType/fill behaviour untouched.
|
|
27
|
-
panel.use('c1'), blockContentGroup, codeBlock.use('root_only'), panel.use('root_only'), panel.use('c1_root_only'), rule.use('root_only'), extension.use('root_only'), bodiedExtension.use('root_only'), multiBodiedExtension.use('root_only'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), blockRootOnlyGroup, expand.use('root_only'), syncBlock, bodiedSyncBlock))],
|
|
28
|
+
panel.use('c1'), blockContentGroup, codeBlock.use('root_only'), panel.use('root_only'), panel.use('c1_root_only'), rule.use('root_only'), rule.use('with_attrs_root_only'), bodiedRule.use('root_only'), extension.use('root_only'), bodiedExtension.use('root_only'), multiBodiedExtension.use('root_only'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), blockRootOnlyGroup, expand.use('root_only'), syncBlock, bodiedSyncBlock))],
|
|
28
29
|
DANGEROUS_MANUAL_OVERRIDE: {
|
|
29
30
|
'validator-spec': {
|
|
30
31
|
'props.content.minItems': {
|
|
@@ -69,7 +69,7 @@ export const blockTaskItem = createPMNodeSpecFactory({
|
|
|
69
69
|
defining: true
|
|
70
70
|
});
|
|
71
71
|
export const bodiedExtension = createPMNodeSpecFactory({
|
|
72
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
|
|
72
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | bodiedRule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
|
|
73
73
|
marks: 'dataConsumer fontSize fragment unsupportedMark unsupportedNodeAttribute',
|
|
74
74
|
group: 'block',
|
|
75
75
|
attrs: {
|
|
@@ -97,7 +97,7 @@ export const bodiedExtension = createPMNodeSpecFactory({
|
|
|
97
97
|
isolating: true
|
|
98
98
|
});
|
|
99
99
|
export const bodiedExtensionRootOnlyStage0 = createPMNodeSpecFactory({
|
|
100
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
|
|
100
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | bodiedRule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
|
|
101
101
|
marks: 'dataConsumer fontSize fragment unsupportedMark unsupportedNodeAttribute',
|
|
102
102
|
attrs: {
|
|
103
103
|
extensionKey: {
|
|
@@ -150,8 +150,49 @@ export const bodiedExtensionWithMarks = createPMNodeSpecFactory({
|
|
|
150
150
|
defining: true,
|
|
151
151
|
isolating: true
|
|
152
152
|
});
|
|
153
|
+
export const bodiedRuleRootOnlyStage0 = createPMNodeSpecFactory({
|
|
154
|
+
content: '(paragraph | heading){1,1}',
|
|
155
|
+
attrs: {
|
|
156
|
+
localId: {
|
|
157
|
+
default: ''
|
|
158
|
+
},
|
|
159
|
+
alignment: {
|
|
160
|
+
default: null
|
|
161
|
+
},
|
|
162
|
+
color: {
|
|
163
|
+
default: null
|
|
164
|
+
},
|
|
165
|
+
style: {
|
|
166
|
+
default: null
|
|
167
|
+
},
|
|
168
|
+
weight: {
|
|
169
|
+
default: null
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
export const bodiedRuleStage0 = createPMNodeSpecFactory({
|
|
174
|
+
content: '(paragraph | heading){1,1}',
|
|
175
|
+
group: 'block',
|
|
176
|
+
attrs: {
|
|
177
|
+
localId: {
|
|
178
|
+
default: ''
|
|
179
|
+
},
|
|
180
|
+
alignment: {
|
|
181
|
+
default: null
|
|
182
|
+
},
|
|
183
|
+
color: {
|
|
184
|
+
default: null
|
|
185
|
+
},
|
|
186
|
+
style: {
|
|
187
|
+
default: null
|
|
188
|
+
},
|
|
189
|
+
weight: {
|
|
190
|
+
default: null
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
});
|
|
153
194
|
export const bodiedSyncBlock = createPMNodeSpecFactory({
|
|
154
|
-
content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel_c1 | panel | rule | table | taskList | unsupportedBlock)+',
|
|
195
|
+
content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel_c1 | panel | rule | bodiedRule | table | taskList | unsupportedBlock)+',
|
|
155
196
|
marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation breakout link fragment',
|
|
156
197
|
attrs: {
|
|
157
198
|
resourceId: {
|
|
@@ -325,7 +366,7 @@ export const decisionList = createPMNodeSpecFactory({
|
|
|
325
366
|
defining: true
|
|
326
367
|
});
|
|
327
368
|
export const doc = createPMNodeSpecFactory({
|
|
328
|
-
content: '(block | panel_c1 | codeBlock | panel | panel_c1_root_only | rule | extension | bodiedExtension | multiBodiedExtension | layoutSection | blockRootOnly | expand | syncBlock | bodiedSyncBlock)+',
|
|
369
|
+
content: '(block | panel_c1 | codeBlock | panel | panel_c1_root_only | rule | bodiedRule | extension | bodiedExtension | multiBodiedExtension | layoutSection | blockRootOnly | expand | syncBlock | bodiedSyncBlock)+',
|
|
329
370
|
marks: 'unsupportedMark unsupportedNodeAttribute fontSize alignment indentation dataConsumer fragment breakout'
|
|
330
371
|
});
|
|
331
372
|
export const embedCard = createPMNodeSpecFactory({
|
|
@@ -391,7 +432,7 @@ export const emojiStage0 = createPMNodeSpecFactory({
|
|
|
391
432
|
selectable: true
|
|
392
433
|
});
|
|
393
434
|
export const expand = createPMNodeSpecFactory({
|
|
394
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
|
|
435
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | bodiedRule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
|
|
395
436
|
marks: 'fontSize unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
|
|
396
437
|
group: 'block',
|
|
397
438
|
attrs: {
|
|
@@ -409,7 +450,7 @@ export const expand = createPMNodeSpecFactory({
|
|
|
409
450
|
isolating: true
|
|
410
451
|
});
|
|
411
452
|
export const expandRootOnly = createPMNodeSpecFactory({
|
|
412
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
|
|
453
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | bodiedRule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
|
|
413
454
|
marks: 'fontSize unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
|
|
414
455
|
attrs: {
|
|
415
456
|
title: {
|
|
@@ -500,7 +541,7 @@ export const extensionWithMarks = createPMNodeSpecFactory({
|
|
|
500
541
|
selectable: true
|
|
501
542
|
});
|
|
502
543
|
export const extensionFrameStage0 = createPMNodeSpecFactory({
|
|
503
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
|
|
544
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | bodiedRule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
|
|
504
545
|
marks: 'dataConsumer fontSize fragment unsupportedMark unsupportedNodeAttribute',
|
|
505
546
|
attrs: {},
|
|
506
547
|
selectable: false,
|
|
@@ -1016,7 +1057,7 @@ export const multiBodiedExtensionStage0 = createPMNodeSpecFactory({
|
|
|
1016
1057
|
definingAsContext: true
|
|
1017
1058
|
});
|
|
1018
1059
|
export const nestedExpand = createPMNodeSpecFactory({
|
|
1019
|
-
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock | extension)+',
|
|
1060
|
+
content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | bodiedRule | panel | blockquote | unsupportedBlock | extension)+',
|
|
1020
1061
|
marks: 'fontSize unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
1021
1062
|
attrs: {
|
|
1022
1063
|
title: {
|
|
@@ -1062,7 +1103,7 @@ export const orderedList = createPMNodeSpecFactory({
|
|
|
1062
1103
|
selectable: false
|
|
1063
1104
|
});
|
|
1064
1105
|
export const panel = createPMNodeSpecFactory({
|
|
1065
|
-
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock | extension)+',
|
|
1106
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | bodiedRule | decisionList | unsupportedBlock | extension)+',
|
|
1066
1107
|
marks: 'fontSize unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
1067
1108
|
group: 'block',
|
|
1068
1109
|
attrs: {
|
|
@@ -1088,7 +1129,7 @@ export const panel = createPMNodeSpecFactory({
|
|
|
1088
1129
|
selectable: true
|
|
1089
1130
|
});
|
|
1090
1131
|
export const panelC1RootOnlyStage0 = createPMNodeSpecFactory({
|
|
1091
|
-
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock | extension | table)+',
|
|
1132
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | bodiedRule | decisionList | unsupportedBlock | extension | table)+',
|
|
1092
1133
|
marks: 'fontSize unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
1093
1134
|
attrs: {
|
|
1094
1135
|
panelType: {
|
|
@@ -1113,7 +1154,7 @@ export const panelC1RootOnlyStage0 = createPMNodeSpecFactory({
|
|
|
1113
1154
|
selectable: true
|
|
1114
1155
|
});
|
|
1115
1156
|
export const panelC1Stage0 = createPMNodeSpecFactory({
|
|
1116
|
-
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock | extension | table)+',
|
|
1157
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | bodiedRule | decisionList | unsupportedBlock | extension | table)+',
|
|
1117
1158
|
marks: 'fontSize unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
1118
1159
|
group: 'block',
|
|
1119
1160
|
attrs: {
|
|
@@ -1139,7 +1180,7 @@ export const panelC1Stage0 = createPMNodeSpecFactory({
|
|
|
1139
1180
|
selectable: true
|
|
1140
1181
|
});
|
|
1141
1182
|
export const panelRootOnlyStage0 = createPMNodeSpecFactory({
|
|
1142
|
-
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock | extension)+',
|
|
1183
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | bodiedRule | decisionList | unsupportedBlock | extension)+',
|
|
1143
1184
|
marks: 'fontSize unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
1144
1185
|
attrs: {
|
|
1145
1186
|
panelType: {
|
|
@@ -1238,6 +1279,39 @@ export const ruleRootOnlyStage0 = createPMNodeSpecFactory({
|
|
|
1238
1279
|
}
|
|
1239
1280
|
}
|
|
1240
1281
|
});
|
|
1282
|
+
export const ruleWithAttrsRootOnlyStage0 = createPMNodeSpecFactory({
|
|
1283
|
+
attrs: {
|
|
1284
|
+
localId: {
|
|
1285
|
+
default: null
|
|
1286
|
+
},
|
|
1287
|
+
color: {
|
|
1288
|
+
default: null
|
|
1289
|
+
},
|
|
1290
|
+
style: {
|
|
1291
|
+
default: null
|
|
1292
|
+
},
|
|
1293
|
+
weight: {
|
|
1294
|
+
default: null
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
});
|
|
1298
|
+
export const ruleWithAttrsStage0 = createPMNodeSpecFactory({
|
|
1299
|
+
group: 'block',
|
|
1300
|
+
attrs: {
|
|
1301
|
+
localId: {
|
|
1302
|
+
default: null
|
|
1303
|
+
},
|
|
1304
|
+
color: {
|
|
1305
|
+
default: null
|
|
1306
|
+
},
|
|
1307
|
+
style: {
|
|
1308
|
+
default: null
|
|
1309
|
+
},
|
|
1310
|
+
weight: {
|
|
1311
|
+
default: null
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
});
|
|
1241
1315
|
export const status = createPMNodeSpecFactory({
|
|
1242
1316
|
group: 'inline',
|
|
1243
1317
|
inline: true,
|
|
@@ -1344,7 +1418,7 @@ export const tableWithNestedTable = createPMNodeSpecFactory({
|
|
|
1344
1418
|
tableRole: 'table'
|
|
1345
1419
|
});
|
|
1346
1420
|
export const tableCell = createPMNodeSpecFactory({
|
|
1347
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
|
|
1421
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | bodiedRule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
|
|
1348
1422
|
marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
1349
1423
|
attrs: {
|
|
1350
1424
|
colspan: {
|
|
@@ -1371,7 +1445,7 @@ export const tableCell = createPMNodeSpecFactory({
|
|
|
1371
1445
|
tableRole: 'cell'
|
|
1372
1446
|
});
|
|
1373
1447
|
export const tableCellWithNestedTable = createPMNodeSpecFactory({
|
|
1374
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock | table)+',
|
|
1448
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | bodiedRule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock | table)+',
|
|
1375
1449
|
marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
1376
1450
|
attrs: {
|
|
1377
1451
|
colspan: {
|
|
@@ -1398,7 +1472,7 @@ export const tableCellWithNestedTable = createPMNodeSpecFactory({
|
|
|
1398
1472
|
tableRole: 'cell'
|
|
1399
1473
|
});
|
|
1400
1474
|
export const tableHeader = createPMNodeSpecFactory({
|
|
1401
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
|
|
1475
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | bodiedRule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
|
|
1402
1476
|
marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
1403
1477
|
attrs: {
|
|
1404
1478
|
colspan: {
|
|
@@ -1425,7 +1499,7 @@ export const tableHeader = createPMNodeSpecFactory({
|
|
|
1425
1499
|
tableRole: 'header_cell'
|
|
1426
1500
|
});
|
|
1427
1501
|
export const tableHeaderWithNestedTable = createPMNodeSpecFactory({
|
|
1428
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | table)+',
|
|
1502
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | bodiedRule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | table)+',
|
|
1429
1503
|
marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
|
1430
1504
|
attrs: {
|
|
1431
1505
|
colspan: {
|
|
@@ -2,6 +2,7 @@ import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
|
|
2
2
|
import { blockCard } from '../nodes/blockCard';
|
|
3
3
|
import { blockquote } from '../nodes/blockquote';
|
|
4
4
|
import { bodiedExtension } from '../nodes/bodiedExtension';
|
|
5
|
+
import { bodiedRule } from '../nodes/bodiedRule';
|
|
5
6
|
import { codeBlock } from '../nodes/codeBlock';
|
|
6
7
|
import { confluenceUnsupportedBlock } from '../nodes/confluenceUnsupportedBlock';
|
|
7
8
|
import { decisionList } from '../nodes/decisionList';
|
|
@@ -31,7 +32,7 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
|
|
31
32
|
* - no base mediaSingle
|
|
32
33
|
* - no base heading
|
|
33
34
|
*/
|
|
34
|
-
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, blockquote, extension.use('with_marks'), embedCard, table,
|
|
35
|
+
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, rule.use('with_attrs'), bodiedRule, panel, blockquote, extension.use('with_marks'), embedCard, table,
|
|
35
36
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
|
36
37
|
table.use('with_nested_table'), expand, bodiedExtension.use('with_marks'), confluenceUnsupportedBlock, unsupportedBlock], {
|
|
37
38
|
ignore: ['pm-spec']
|