@atlaskit/adf-schema 46.0.0 → 46.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/index.js +6 -0
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +15 -1
  4. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  5. package/dist/cjs/next-schema/nodes/expand.js +1 -9
  6. package/dist/cjs/next-schema/nodes/nestedExpand.js +16 -3
  7. package/dist/cjs/schema/default-schema.js +2 -1
  8. package/dist/cjs/schema/index.js +6 -0
  9. package/dist/cjs/schema/nodes/index.js +6 -0
  10. package/dist/cjs/schema/nodes/nested-expand.js +15 -8
  11. package/dist/cjs/schema/nodes/tableNodes.js +1 -1
  12. package/dist/cjs/validator-schema/generated/validatorSpec.js +28 -6
  13. package/dist/es2019/index.js +1 -1
  14. package/dist/es2019/next-schema/generated/nodeTypes.js +14 -0
  15. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  16. package/dist/es2019/next-schema/nodes/expand.js +1 -9
  17. package/dist/es2019/next-schema/nodes/nestedExpand.js +16 -3
  18. package/dist/es2019/schema/default-schema.js +3 -2
  19. package/dist/es2019/schema/index.js +1 -1
  20. package/dist/es2019/schema/nodes/index.js +1 -1
  21. package/dist/es2019/schema/nodes/nested-expand.js +15 -8
  22. package/dist/es2019/schema/nodes/tableNodes.js +1 -1
  23. package/dist/es2019/validator-schema/generated/validatorSpec.js +27 -5
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/next-schema/generated/nodeTypes.js +14 -0
  26. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  27. package/dist/esm/next-schema/nodes/expand.js +1 -9
  28. package/dist/esm/next-schema/nodes/nestedExpand.js +16 -3
  29. package/dist/esm/schema/default-schema.js +3 -2
  30. package/dist/esm/schema/index.js +1 -1
  31. package/dist/esm/schema/nodes/index.js +1 -1
  32. package/dist/esm/schema/nodes/nested-expand.js +15 -8
  33. package/dist/esm/schema/nodes/tableNodes.js +1 -1
  34. package/dist/esm/validator-schema/generated/validatorSpec.js +27 -5
  35. package/dist/json-schema/v1/full.json +3 -6
  36. package/dist/json-schema/v1/stage-0.json +85 -6
  37. package/dist/types/index.d.ts +1 -1
  38. package/dist/types/next-schema/generated/nodeTypes.d.ts +16 -6
  39. package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +6 -0
  40. package/dist/types/next-schema/nodes/nestedExpand.d.ts +7 -1
  41. package/dist/types/schema/index.d.ts +1 -1
  42. package/dist/types/schema/nodes/index.d.ts +1 -1
  43. package/dist/types/schema/nodes/nested-expand.d.ts +5 -0
  44. package/dist/types/validator-schema/generated/validatorSpec.d.ts +23 -1
  45. package/json-schema/v1/full.json +3 -6
  46. package/json-schema/v1/stage-0.json +85 -6
  47. package/package.json +3 -3
@@ -857,6 +857,20 @@ export var nestedExpandWithNoMarks = createPMNodeSpecFactory({
857
857
  selectable: true,
858
858
  isolating: true
859
859
  });
860
+ export var nestedExpandWithNonBodiedMacrosStage0 = createPMNodeSpecFactory({
861
+ content: '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock | extension)+',
862
+ marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
863
+ attrs: {
864
+ title: {
865
+ default: ''
866
+ },
867
+ __expanded: {
868
+ default: true
869
+ }
870
+ },
871
+ selectable: true,
872
+ isolating: true
873
+ });
860
874
  export var orderedList = createPMNodeSpecFactory({
861
875
  content: 'listItem+',
862
876
  marks: 'unsupportedMark unsupportedNodeAttribute',
@@ -15,7 +15,7 @@ import { paragraph } from '../nodes/paragraph';
15
15
  import { rule } from '../nodes/rule';
16
16
  import { taskList } from '../nodes/task';
17
17
  import { unsupportedBlock } from '../nodes/unsupportedBlock';
18
- export var tableCellContentNodes = [paragraph.use('with_no_marks'), paragraph.use('with_alignment'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), codeBlock, mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, decisionList, taskList, blockCard, embedCard, extension.use('with_marks'), nestedExpand.use('content'), nestedExpand.use('with_no_marks')];
18
+ export var tableCellContentNodes = [paragraph.use('with_no_marks'), paragraph.use('with_alignment'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), codeBlock, mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, decisionList, taskList, blockCard, embedCard, extension.use('with_marks'), nestedExpand.use('content'), nestedExpand.use('with_no_marks'), nestedExpand.use('with_non_bodied_macros')];
19
19
 
20
20
  // This is not an actual group, but a collection of nodes
21
21
  // @DSLCompatibilityException JSON Schema and PM Spec are not in sync. We need to fix it
@@ -20,15 +20,7 @@ export var expand = adfNode('expand').define({
20
20
  optional: true
21
21
  }
22
22
  },
23
- content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))],
24
- DANGEROUS_MANUAL_OVERRIDE: {
25
- 'validator-spec': {
26
- 'props.attrs.optional': {
27
- reason: '@DSLCompatibilityException - required for expand validator spec',
28
- remove: true
29
- }
30
- }
31
- }
23
+ content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks'), nestedExpand.use('with_non_bodied_macros')))]
32
24
  }).variant('without_nested_expand', {
33
25
  content: [$onePlus($or(nonNestableBlockContentGroup))],
34
26
  ignore: ['json-schema', 'validator-spec']
@@ -4,6 +4,7 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
4
4
  import { blockquote } from './blockquote';
5
5
  import { codeBlock } from './codeBlock';
6
6
  import { decisionList } from './decisionList';
7
+ import { extension } from './extension';
7
8
  import { heading } from './heading';
8
9
  import { bulletList, orderedList } from './list';
9
10
  import { mediaGroup } from './mediaGroup';
@@ -13,6 +14,7 @@ import { paragraph } from './paragraph';
13
14
  import { rule } from './rule';
14
15
  import { taskList } from './task';
15
16
  import { unsupportedBlock } from './unsupportedBlock';
17
+ var nestedExpandContent = [paragraph.use('with_no_marks'), heading.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, codeBlock, bulletList, orderedList, taskList, decisionList, rule, panel, blockquote, unsupportedBlock];
16
18
  export var nestedExpand = adfNode('nestedExpand').define({
17
19
  isolating: true,
18
20
  selectable: true,
@@ -29,7 +31,7 @@ export var nestedExpand = adfNode('nestedExpand').define({
29
31
  optional: true
30
32
  }
31
33
  },
32
- content: [$onePlus($or(paragraph.use('with_no_marks'), heading.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, codeBlock, bulletList, orderedList, taskList, decisionList, rule, panel, blockquote, unsupportedBlock))],
34
+ content: [$onePlus($or.apply(void 0, nestedExpandContent))],
33
35
  DANGEROUS_MANUAL_OVERRIDE: {
34
36
  'validator-spec': {
35
37
  'props.attrs.optional': {
@@ -37,8 +39,13 @@ export var nestedExpand = adfNode('nestedExpand').define({
37
39
  reason: '@DSLCompatibilityException - mismatch with DSL'
38
40
  },
39
41
  'props.content': {
40
- value: 'nestedExpand_content',
41
- reason: '@DSLCompatibilityException - mismatch with DSL'
42
+ value: {
43
+ type: 'array',
44
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks']],
45
+ minItems: 1,
46
+ allowUnsupportedBlock: true
47
+ },
48
+ reason: '@DSLCompatibilityException - this is to loose the validator ristriction to allow extension to be nested inside nestedExpand'
42
49
  },
43
50
  required: {
44
51
  reason: '@DSLCompatibilityException - required for nestedExpand validator spec',
@@ -52,4 +59,10 @@ export var nestedExpand = adfNode('nestedExpand').define({
52
59
  marks: [],
53
60
  content: [],
54
61
  noMarks: true
62
+ }).variant('with_non_bodied_macros', {
63
+ marks: [],
64
+ content: [$onePlus($or.apply(void 0, nestedExpandContent.concat([extension.use('with_marks')])))],
65
+ stage0: true,
66
+ noMarks: true,
67
+ noExtend: true
55
68
  });
@@ -1,5 +1,5 @@
1
1
  import memoizeOne from 'memoize-one';
2
- import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, blockquoteWithNestedCodeblockOrMedia, listItemWithDecisionStage0, panelWithBlockquoteStage0, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './nodes';
2
+ import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, blockquoteWithNestedCodeblockOrMedia, listItemWithDecisionStage0, panelWithBlockquoteStage0, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, nestedExpandWithNonBodiedMacrosStage0 } from './nodes';
3
3
  import { createSchema } from './create-schema';
4
4
  var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
5
5
  var defaultSchemaConfig = {
@@ -26,7 +26,8 @@ export var getSchemaBasedOnStage = memoizeOne(function () {
26
26
  table: tableWithNestedTable,
27
27
  tableRow: tableRowWithNestedTable,
28
28
  tableCell: tableCellWithNestedTable,
29
- tableHeader: tableHeaderWithNestedTable
29
+ tableHeader: tableHeaderWithNestedTable,
30
+ nestedExpand: nestedExpandWithNonBodiedMacrosStage0
30
31
  };
31
32
  }
32
33
  return createSchema(defaultSchemaConfig);
@@ -1,4 +1,4 @@
1
- export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './nodes';
1
+ export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './nodes';
2
2
  export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
3
3
  colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette } from './marks';
4
4
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
@@ -37,7 +37,7 @@ export { blockCard } from './block-card';
37
37
  export { unsupportedBlock } from './unsupported-block';
38
38
  export { unsupportedInline } from './unsupported-inline';
39
39
  export { status } from './status';
40
- export { nestedExpand } from './nested-expand';
40
+ export { nestedExpand, nestedExpandWithNonBodiedMacrosStage0 } from './nested-expand';
41
41
  export { embedCard } from './embed-card';
42
42
  // Extensions
43
43
  export { extension } from './extension';
@@ -1,4 +1,4 @@
1
- import { nestedExpand as nestedExpandFactory } from '../../next-schema/generated/nodeTypes';
1
+ import { nestedExpand as nestedExpandFactory, nestedExpandWithNonBodiedMacrosStage0 as nestedExpandWithNonBodiedMacrosStage0Factory } from '../../next-schema/generated/nodeTypes';
2
2
 
3
3
  /**
4
4
  * @name nestedExpand_content
@@ -21,12 +21,7 @@ function getExpandAttrs(domNode) {
21
21
  __expanded: true
22
22
  };
23
23
  }
24
-
25
- /**
26
- * @name nestedExpand
27
- * @description an expand that can be nested (eg. inside table, layout).
28
- */
29
- export var nestedExpand = nestedExpandFactory({
24
+ var nestedExpandFactoryOptions = {
30
25
  parseDOM: [{
31
26
  context: 'nestedExpand//',
32
27
  tag: '[data-node-type="nestedExpand"]',
@@ -49,4 +44,16 @@ export var nestedExpand = nestedExpandFactory({
49
44
  };
50
45
  return ['div', attrs, 0];
51
46
  }
52
- });
47
+ };
48
+
49
+ /**
50
+ * @name nestedExpand
51
+ * @description an expand that can be nested (eg. inside table, layout).
52
+ */
53
+ export var nestedExpand = nestedExpandFactory(nestedExpandFactoryOptions);
54
+
55
+ /**
56
+ * @name nestedExpandWithNonBodiedMacrosStage0
57
+ * @description an expand that can be nested (eg. inside table, layout).
58
+ */
59
+ export var nestedExpandWithNonBodiedMacrosStage0 = nestedExpandWithNonBodiedMacrosStage0Factory(nestedExpandFactoryOptions);
@@ -217,7 +217,7 @@ var tableNodeSpecOptions = {
217
217
  isNumberColumnEnabled: dom.getAttribute('data-number-column') === 'true',
218
218
  layout:
219
219
  // copying from editor
220
- dom.getAttribute('data-layout') || ( // copying from renderer
220
+ dom.getAttribute('data-layout') || (// copying from renderer
221
221
  breakoutWrapper === null || breakoutWrapper === void 0 ? void 0 : breakoutWrapper.getAttribute('data-layout')) || 'default',
222
222
  __autoSize: dom.getAttribute('data-autosize') === 'true',
223
223
  localId: dom.getAttribute('data-table-local-id') || uuid.generate(),
@@ -499,11 +499,12 @@ export var expand = {
499
499
  type: 'string',
500
500
  optional: true
501
501
  }
502
- }
502
+ },
503
+ optional: true
503
504
  },
504
505
  content: {
505
506
  type: 'array',
506
- items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
507
+ items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand_with_non_bodied_macros']],
507
508
  minItems: 1,
508
509
  allowUnsupportedBlock: true
509
510
  }
@@ -1237,7 +1238,12 @@ export var nestedExpand = {
1237
1238
  }
1238
1239
  }
1239
1240
  },
1240
- content: 'nestedExpand_content'
1241
+ content: {
1242
+ type: 'array',
1243
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks']],
1244
+ minItems: 1,
1245
+ allowUnsupportedBlock: true
1246
+ }
1241
1247
  },
1242
1248
  required: ['content']
1243
1249
  };
@@ -1257,6 +1263,22 @@ export var nestedExpand_with_no_marks = ['nestedExpand', {
1257
1263
  }
1258
1264
  }
1259
1265
  }];
1266
+ export var nestedExpand_with_non_bodied_macros = ['nestedExpand', {
1267
+ props: {
1268
+ content: {
1269
+ type: 'array',
1270
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks']],
1271
+ minItems: 1,
1272
+ allowUnsupportedBlock: true
1273
+ },
1274
+ marks: {
1275
+ type: 'array',
1276
+ maxItems: 0,
1277
+ items: [],
1278
+ optional: true
1279
+ }
1280
+ }
1281
+ }];
1260
1282
  export var non_nestable_block_content = ['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
1261
1283
  export var orderedList = {
1262
1284
  props: {
@@ -1551,7 +1573,7 @@ export var tableCell = {
1551
1573
  },
1552
1574
  content: {
1553
1575
  type: 'array',
1554
- 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']],
1576
+ 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_with_non_bodied_macros']],
1555
1577
  minItems: 1,
1556
1578
  allowUnsupportedBlock: true
1557
1579
  }
@@ -1590,7 +1612,7 @@ export var tableHeader = {
1590
1612
  },
1591
1613
  content: {
1592
1614
  type: 'array',
1593
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
1615
+ 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_with_non_bodied_macros', 'nestedExpand']],
1594
1616
  minItems: 1
1595
1617
  }
1596
1618
  },
@@ -860,7 +860,7 @@
860
860
  }
861
861
  },
862
862
  "additionalProperties": false,
863
- "required": ["type", "content", "attrs"]
863
+ "required": ["type", "content"]
864
864
  },
865
865
  "expand_root_only_node": {
866
866
  "type": "object",
@@ -1348,13 +1348,10 @@
1348
1348
  },
1349
1349
  "minItems": 2,
1350
1350
  "maxItems": 3
1351
- },
1352
- "type": {
1353
- "enum": ["layoutSection"]
1354
1351
  }
1355
1352
  },
1356
- "required": ["type", "content"],
1357
- "additionalProperties": false
1353
+ "required": ["content"],
1354
+ "additionalProperties": true
1358
1355
  }
1359
1356
  ]
1360
1357
  },
@@ -884,6 +884,9 @@
884
884
  },
885
885
  {
886
886
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
887
+ },
888
+ {
889
+ "$ref": "#/definitions/nestedExpand_with_non_bodied_macros_node"
887
890
  }
888
891
  ]
889
892
  },
@@ -891,7 +894,7 @@
891
894
  }
892
895
  },
893
896
  "additionalProperties": false,
894
- "required": ["type", "content", "attrs"]
897
+ "required": ["type", "content"]
895
898
  },
896
899
  "expand_root_only_node": {
897
900
  "type": "object",
@@ -923,6 +926,9 @@
923
926
  },
924
927
  {
925
928
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
929
+ },
930
+ {
931
+ "$ref": "#/definitions/nestedExpand_with_non_bodied_macros_node"
926
932
  }
927
933
  ]
928
934
  },
@@ -1470,13 +1476,10 @@
1470
1476
  },
1471
1477
  "minItems": 2,
1472
1478
  "maxItems": 3
1473
- },
1474
- "type": {
1475
- "enum": ["layoutSection"]
1476
1479
  }
1477
1480
  },
1478
- "required": ["type", "content"],
1479
- "additionalProperties": false
1481
+ "required": ["content"],
1482
+ "additionalProperties": true
1480
1483
  }
1481
1484
  ]
1482
1485
  },
@@ -2132,6 +2135,79 @@
2132
2135
  }
2133
2136
  ]
2134
2137
  },
2138
+ "nestedExpand_with_non_bodied_macros_node": {
2139
+ "type": "object",
2140
+ "properties": {
2141
+ "type": {
2142
+ "enum": ["nestedExpand"]
2143
+ },
2144
+ "marks": {
2145
+ "type": "array",
2146
+ "maxItems": 0
2147
+ },
2148
+ "attrs": {
2149
+ "type": "object",
2150
+ "properties": {
2151
+ "title": {
2152
+ "type": "string"
2153
+ }
2154
+ },
2155
+ "additionalProperties": false
2156
+ },
2157
+ "content": {
2158
+ "type": "array",
2159
+ "items": {
2160
+ "anyOf": [
2161
+ {
2162
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
2163
+ },
2164
+ {
2165
+ "$ref": "#/definitions/heading_with_no_marks_node"
2166
+ },
2167
+ {
2168
+ "$ref": "#/definitions/mediaSingle_caption_node"
2169
+ },
2170
+ {
2171
+ "$ref": "#/definitions/mediaSingle_full_node"
2172
+ },
2173
+ {
2174
+ "$ref": "#/definitions/mediaGroup_node"
2175
+ },
2176
+ {
2177
+ "$ref": "#/definitions/codeBlock_node"
2178
+ },
2179
+ {
2180
+ "$ref": "#/definitions/bulletList_node"
2181
+ },
2182
+ {
2183
+ "$ref": "#/definitions/orderedList_node"
2184
+ },
2185
+ {
2186
+ "$ref": "#/definitions/taskList_node"
2187
+ },
2188
+ {
2189
+ "$ref": "#/definitions/decisionList_node"
2190
+ },
2191
+ {
2192
+ "$ref": "#/definitions/rule_node"
2193
+ },
2194
+ {
2195
+ "$ref": "#/definitions/panel_node"
2196
+ },
2197
+ {
2198
+ "$ref": "#/definitions/blockquote_node"
2199
+ },
2200
+ {
2201
+ "$ref": "#/definitions/extension_with_marks_node"
2202
+ }
2203
+ ]
2204
+ },
2205
+ "minItems": 1
2206
+ }
2207
+ },
2208
+ "additionalProperties": false,
2209
+ "required": ["type", "content"]
2210
+ },
2135
2211
  "non_nestable_block_content": {
2136
2212
  "anyOf": [
2137
2213
  {
@@ -2644,6 +2720,9 @@
2644
2720
  },
2645
2721
  {
2646
2722
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
2723
+ },
2724
+ {
2725
+ "$ref": "#/definitions/nestedExpand_with_non_bodied_macros_node"
2647
2726
  }
2648
2727
  ]
2649
2728
  },
@@ -1,6 +1,6 @@
1
1
  export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
2
2
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
3
- colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, } from './schema';
3
+ colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, } from './schema';
4
4
  export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, MultiBodiedExtensionDefinition, ExtensionFrameDefinition, BackgroundColorDefinition, } from './schema';
5
5
  export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor, } from './utils';
6
6
  export type { Match, NameToEmoji } from './utils';
@@ -220,7 +220,7 @@ export type EmojiStage0Node = PMNode & EmojiStage0Definition;
220
220
  export declare const emojiStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<EmojiStage0Node>) => import("prosemirror-model").NodeSpec;
221
221
  export interface ExpandDefinition {
222
222
  type: 'expand';
223
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
223
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | NestedExpandWithNonBodiedMacrosStage0Definition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
224
224
  attrs: {
225
225
  title?: string;
226
226
  __expanded?: boolean;
@@ -230,7 +230,7 @@ export type ExpandNode = PMNode & ExpandDefinition;
230
230
  export declare const expand: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ExpandNode>) => import("prosemirror-model").NodeSpec;
231
231
  export interface ExpandRootOnlyDefinition {
232
232
  type: 'expand';
233
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
233
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | NestedExpandWithNonBodiedMacrosStage0Definition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
234
234
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
235
235
  attrs: {
236
236
  title?: string;
@@ -634,6 +634,16 @@ export interface NestedExpandWithNoMarksDefinition {
634
634
  }
635
635
  export type NestedExpandWithNoMarksNode = PMNode & NestedExpandWithNoMarksDefinition;
636
636
  export declare const nestedExpandWithNoMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<NestedExpandWithNoMarksNode>) => import("prosemirror-model").NodeSpec;
637
+ export interface NestedExpandWithNonBodiedMacrosStage0Definition {
638
+ type: 'nestedExpand';
639
+ content: Array<BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
640
+ attrs: {
641
+ title?: string;
642
+ __expanded?: boolean;
643
+ };
644
+ }
645
+ export type NestedExpandWithNonBodiedMacrosStage0Node = PMNode & NestedExpandWithNonBodiedMacrosStage0Definition;
646
+ export declare const nestedExpandWithNonBodiedMacrosStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<NestedExpandWithNonBodiedMacrosStage0Node>) => import("prosemirror-model").NodeSpec;
637
647
  export interface OrderedListDefinition {
638
648
  type: 'orderedList';
639
649
  content: Array<ListItemDefinition | ListItemWithNestedDecisionStage0Definition>;
@@ -778,7 +788,7 @@ export type TableWithNestedTableNode = PMNode & TableWithNestedTableDefinition;
778
788
  export declare const tableWithNestedTable: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableWithNestedTableNode>) => import("prosemirror-model").NodeSpec;
779
789
  export interface TableCellDefinition {
780
790
  type: 'tableCell';
781
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
791
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | NestedExpandWithNonBodiedMacrosStage0Definition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
782
792
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
783
793
  attrs: {
784
794
  colspan?: number;
@@ -791,7 +801,7 @@ export type TableCellNode = PMNode & TableCellDefinition;
791
801
  export declare const tableCell: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableCellNode>) => import("prosemirror-model").NodeSpec;
792
802
  export interface TableCellWithNestedTableDefinition {
793
803
  type: 'tableCell';
794
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
804
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | NestedExpandWithNonBodiedMacrosStage0Definition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
795
805
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
796
806
  attrs: {
797
807
  colspan?: number;
@@ -804,7 +814,7 @@ export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefi
804
814
  export declare const tableCellWithNestedTable: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableCellWithNestedTableNode>) => import("prosemirror-model").NodeSpec;
805
815
  export interface TableHeaderDefinition {
806
816
  type: 'tableHeader';
807
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
817
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | NestedExpandWithNonBodiedMacrosStage0Definition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
808
818
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
809
819
  attrs: {
810
820
  colspan?: number;
@@ -817,7 +827,7 @@ export type TableHeaderNode = PMNode & TableHeaderDefinition;
817
827
  export declare const tableHeader: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableHeaderNode>) => import("prosemirror-model").NodeSpec;
818
828
  export interface TableHeaderWithNestedTableDefinition {
819
829
  type: 'tableHeader';
820
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
830
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | NestedExpandWithNonBodiedMacrosStage0Definition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
821
831
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
822
832
  attrs: {
823
833
  colspan?: number;
@@ -72,6 +72,12 @@ export declare const tableCellContentNodes: (import("@atlaskit/adf-schema-genera
72
72
  marks: any[];
73
73
  content: any[];
74
74
  noMarks: true;
75
+ } & {
76
+ marks: any[];
77
+ content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
78
+ stage0: true;
79
+ noMarks: true;
80
+ noExtend: true;
75
81
  }>)[];
76
82
  export declare const tableCellContentPseudoGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec;
77
83
  export declare const tableHeaderContentPseudoGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec;
@@ -1,7 +1,13 @@
1
- export declare const nestedExpand: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "content", "with_no_marks"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
1
+ export declare const nestedExpand: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "content", "with_no_marks", "with_non_bodied_macros"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
2
2
  ignore: "pm-spec"[];
3
3
  } & {
4
4
  marks: any[];
5
5
  content: any[];
6
6
  noMarks: true;
7
+ } & {
8
+ marks: any[];
9
+ content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
10
+ stage0: true;
11
+ noMarks: true;
12
+ noExtend: true;
7
13
  }>;
@@ -1,4 +1,4 @@
1
- export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, } from './nodes';
1
+ export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithNonBodiedMacrosStage0, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, } from './nodes';
2
2
  export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, } from './nodes';
3
3
  export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
4
4
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
@@ -69,7 +69,7 @@ export { unsupportedBlock } from './unsupported-block';
69
69
  export { unsupportedInline } from './unsupported-inline';
70
70
  export { status } from './status';
71
71
  export type { StatusDefinition } from './status';
72
- export { nestedExpand } from './nested-expand';
72
+ export { nestedExpand, nestedExpandWithNonBodiedMacrosStage0, } from './nested-expand';
73
73
  export type { NestedExpandDefinition } from './nested-expand';
74
74
  export type { NoMark } from './types/mark';
75
75
  export type { MarksObject } from './types/mark';
@@ -36,3 +36,8 @@ export type NestedExpandDefinition = NestedExpandBaseDefinition & NoMark;
36
36
  * @description an expand that can be nested (eg. inside table, layout).
37
37
  */
38
38
  export declare const nestedExpand: import("prosemirror-model").NodeSpec;
39
+ /**
40
+ * @name nestedExpandWithNonBodiedMacrosStage0
41
+ * @description an expand that can be nested (eg. inside table, layout).
42
+ */
43
+ export declare const nestedExpandWithNonBodiedMacrosStage0: import("prosemirror-model").NodeSpec;
@@ -510,6 +510,7 @@ export declare const expand: {
510
510
  optional: boolean;
511
511
  };
512
512
  };
513
+ optional: boolean;
513
514
  };
514
515
  content: {
515
516
  type: string;
@@ -1256,7 +1257,12 @@ export declare const nestedExpand: {
1256
1257
  };
1257
1258
  };
1258
1259
  };
1259
- content: string;
1260
+ content: {
1261
+ type: string;
1262
+ items: string[][];
1263
+ minItems: number;
1264
+ allowUnsupportedBlock: boolean;
1265
+ };
1260
1266
  };
1261
1267
  required: string[];
1262
1268
  };
@@ -1276,6 +1282,22 @@ export declare const nestedExpand_with_no_marks: (string | {
1276
1282
  };
1277
1283
  };
1278
1284
  })[];
1285
+ export declare const nestedExpand_with_non_bodied_macros: (string | {
1286
+ props: {
1287
+ content: {
1288
+ type: string;
1289
+ items: string[][];
1290
+ minItems: number;
1291
+ allowUnsupportedBlock: boolean;
1292
+ };
1293
+ marks: {
1294
+ type: string;
1295
+ maxItems: number;
1296
+ items: any[];
1297
+ optional: boolean;
1298
+ };
1299
+ };
1300
+ })[];
1279
1301
  export declare const non_nestable_block_content: string[];
1280
1302
  export declare const orderedList: {
1281
1303
  props: {