@atlaskit/adf-schema 51.2.0 → 51.3.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 (46) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/index.js +6 -0
  3. package/dist/cjs/next-schema/full-schema.adf.js +2 -1
  4. package/dist/cjs/next-schema/generated/nodeTypes.js +15 -2
  5. package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +46 -0
  6. package/dist/cjs/schema/create-schema.js +3 -0
  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/bodied-sync-block.js +39 -0
  10. package/dist/cjs/schema/nodes/index.js +8 -1
  11. package/dist/cjs/schema/nodes/sync-block.js +2 -1
  12. package/dist/cjs/validator-schema/generated/validatorSpec.js +31 -2
  13. package/dist/es2019/index.js +1 -1
  14. package/dist/es2019/next-schema/full-schema.adf.js +2 -1
  15. package/dist/es2019/next-schema/generated/nodeTypes.js +14 -1
  16. package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +40 -0
  17. package/dist/es2019/schema/create-schema.js +4 -1
  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/bodied-sync-block.js +35 -0
  21. package/dist/es2019/schema/nodes/index.js +2 -1
  22. package/dist/es2019/schema/nodes/sync-block.js +2 -1
  23. package/dist/es2019/validator-schema/generated/validatorSpec.js +30 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/next-schema/full-schema.adf.js +2 -1
  26. package/dist/esm/next-schema/generated/nodeTypes.js +14 -1
  27. package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +40 -0
  28. package/dist/esm/schema/create-schema.js +4 -1
  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/bodied-sync-block.js +34 -0
  32. package/dist/esm/schema/nodes/index.js +2 -1
  33. package/dist/esm/schema/nodes/sync-block.js +2 -1
  34. package/dist/esm/validator-schema/generated/validatorSpec.js +30 -1
  35. package/dist/json-schema/v1/stage-0.json +115 -0
  36. package/dist/types/index.d.ts +2 -2
  37. package/dist/types/next-schema/generated/nodeTypes.d.ts +12 -1
  38. package/dist/types/next-schema/nodes/bodiedSyncBlock.d.ts +1 -0
  39. package/dist/types/schema/default-schema.d.ts +1 -1
  40. package/dist/types/schema/index.d.ts +2 -2
  41. package/dist/types/schema/nodes/bodied-sync-block.d.ts +44 -0
  42. package/dist/types/schema/nodes/doc.d.ts +2 -1
  43. package/dist/types/schema/nodes/index.d.ts +2 -0
  44. package/dist/types/validator-schema/generated/validatorSpec.d.ts +29 -0
  45. package/json-schema/v1/stage-0.json +115 -0
  46. package/package.json +1 -1
@@ -123,6 +123,19 @@ export var bodiedExtensionWithMarks = createPMNodeSpecFactory({
123
123
  defining: true,
124
124
  isolating: true
125
125
  });
126
+ export var bodiedSyncBlockStage0 = createPMNodeSpecFactory({
127
+ content: '(blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel | paragraph | rule | table | taskList | unsupportedBlock)+',
128
+ marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation breakout link fragment',
129
+ attrs: {
130
+ resourceId: {
131
+ default: ''
132
+ },
133
+ localId: {
134
+ default: ''
135
+ }
136
+ },
137
+ selectable: true
138
+ });
126
139
  export var bulletList = createPMNodeSpecFactory({
127
140
  content: 'listItem+',
128
141
  marks: 'unsupportedMark unsupportedNodeAttribute',
@@ -272,7 +285,7 @@ export var decisionList = createPMNodeSpecFactory({
272
285
  defining: true
273
286
  });
274
287
  export var doc = createPMNodeSpecFactory({
275
- content: '(block | codeBlock | layoutSection | blockRootOnly | expand | syncBlock)+',
288
+ content: '(block | codeBlock | layoutSection | blockRootOnly | expand | syncBlock | bodiedSyncBlock)+',
276
289
  marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment breakout'
277
290
  });
278
291
  export var embedCard = createPMNodeSpecFactory({
@@ -0,0 +1,40 @@
1
+ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
2
+ import { breakout } from '../marks/breakout';
3
+ import { unsupportedMark } from '../marks/unsupportedMark';
4
+ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
5
+ import { unsupportedBlock } from '../nodes/unsupportedBlock';
6
+ import { blockCard } from './blockCard';
7
+ import { blockquote } from './blockquote';
8
+ import { codeBlock } from './codeBlock';
9
+ import { confluenceUnsupportedBlock } from './confluenceUnsupportedBlock';
10
+ import { decisionList } from './decisionList';
11
+ import { embedCard } from './embedCard';
12
+ import { expand } from './expand';
13
+ import { bulletList, orderedList } from './list';
14
+ import { mediaGroup } from './mediaGroup';
15
+ import { mediaSingle } from './mediaSingle';
16
+ import { panel } from './panel';
17
+ import { paragraph } from './paragraph';
18
+ import { rule } from './rule';
19
+ import { heading } from './heading';
20
+ import { table } from './tableNodes';
21
+ import { taskList } from './task';
22
+ import { layoutSection } from './layoutSection';
23
+ export var bodiedSyncBlock = adfNode('bodiedSyncBlock').define({
24
+ stage0: true,
25
+ selectable: true,
26
+ marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
27
+ attrs: {
28
+ resourceId: {
29
+ type: 'string',
30
+ default: ''
31
+ },
32
+ localId: {
33
+ type: 'string',
34
+ default: ''
35
+ }
36
+ },
37
+ content: [$onePlus($or(blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel, paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), rule, table,
38
+ // @ts-expect-error - types don't deal well with circular references for the variant
39
+ table.use('with_nested_table'), taskList, unsupportedBlock))]
40
+ });
@@ -2,7 +2,7 @@ import { Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups';
3
3
  import { sanitizeNodes } from './sanitizeNodes';
4
4
  import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
5
- import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItem, heading, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, blockTaskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expandWithNestedExpand, nestedExpand, embedCard, caption, extendedBlockquote, syncBlock } from './nodes';
5
+ import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItem, heading, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, blockTaskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expandWithNestedExpand, nestedExpand, embedCard, caption, extendedBlockquote, syncBlock, bodiedSyncBlock } from './nodes';
6
6
  function addItems(builtInItems, config) {
7
7
  var customSpecs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
8
8
  if (!config) {
@@ -196,6 +196,9 @@ var nodesInOrder = [{
196
196
  }, {
197
197
  name: 'syncBlock',
198
198
  spec: syncBlock
199
+ }, {
200
+ name: 'bodiedSyncBlock',
201
+ spec: bodiedSyncBlock
199
202
  }, {
200
203
  name: 'unknownBlock',
201
204
  spec: unknownBlock
@@ -1,5 +1,5 @@
1
1
  import memoizeOne from 'memoize-one';
2
- import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, listItemWithDecisionStage0, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, syncBlock } from './nodes';
2
+ import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, listItemWithDecisionStage0, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, syncBlock, bodiedSyncBlock } from './nodes';
3
3
  import { createSchema } from './create-schema';
4
4
  var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
5
5
  var defaultSchemaConfig = {
@@ -25,7 +25,8 @@ export var getSchemaBasedOnStage = memoizeOne(function () {
25
25
  tableRow: tableRowWithNestedTable,
26
26
  tableCell: tableCellWithNestedTable,
27
27
  tableHeader: tableHeaderWithNestedTable,
28
- syncBlock: syncBlock
28
+ syncBlock: syncBlock,
29
+ bodiedSyncBlock: bodiedSyncBlock
29
30
  };
30
31
  }
31
32
  return createSchema(defaultSchemaConfig);
@@ -1,4 +1,4 @@
1
- export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithDecisionStage0, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './nodes';
1
+ export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithDecisionStage0, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } 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, backgroundColorPaletteNext } from './marks';
4
4
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
@@ -0,0 +1,34 @@
1
+ import { bodiedSyncBlockStage0 } from '../../next-schema/generated/nodeTypes';
2
+ import { uuid } from '../../utils';
3
+
4
+ /**
5
+ * Represents a block node that is designed to be synchronized
6
+ * with an external resource across different products.
7
+ * @name bodiedSyncBlock_node
8
+ */
9
+
10
+ export var bodiedSyncBlock = bodiedSyncBlockStage0({
11
+ parseDOM: [{
12
+ tag: 'div[data-bodied-sync-block]',
13
+ getAttrs: function getAttrs(domNode) {
14
+ var dom = domNode;
15
+ var attrs = {
16
+ localId: dom.getAttribute('data-local-id') || uuid.generate(),
17
+ resourceId: dom.getAttribute('data-resource-id') || ''
18
+ };
19
+ return attrs;
20
+ }
21
+ }],
22
+ toDOM: function toDOM(node) {
23
+ var _node$attrs = node.attrs,
24
+ localId = _node$attrs.localId,
25
+ resourceId = _node$attrs.resourceId;
26
+ var name = 'div';
27
+ var attrs = {
28
+ 'data-bodied-sync-block': '',
29
+ 'data-local-id': localId,
30
+ 'data-resource-id': resourceId
31
+ };
32
+ return [name, attrs, 0];
33
+ }
34
+ });
@@ -44,4 +44,5 @@ export { extension } from './extension';
44
44
  export { inlineExtension } from './inline-extension';
45
45
  export { bodiedExtension } from './bodied-extension';
46
46
  export { extensionFrame, multiBodiedExtension } from './multi-bodied-extension';
47
- export { syncBlock } from './sync-block';
47
+ export { syncBlock } from './sync-block';
48
+ export { bodiedSyncBlock } from './bodied-sync-block';
@@ -1,4 +1,5 @@
1
1
  import { syncBlockStage0 as syncBlockFactory } from '../../next-schema/generated/nodeTypes';
2
+ import { uuid } from '../../utils';
2
3
 
3
4
  /**
4
5
  * Represents a block node that is designed to be synchronized
@@ -12,7 +13,7 @@ export var syncBlock = syncBlockFactory({
12
13
  getAttrs: function getAttrs(domNode) {
13
14
  var dom = domNode;
14
15
  var attrs = {
15
- localId: dom.getAttribute('data-local-id') || '',
16
+ localId: dom.getAttribute('data-local-id') || uuid.generate(),
16
17
  resourceId: dom.getAttribute('data-resource-id') || ''
17
18
  };
18
19
  return attrs;
@@ -234,6 +234,35 @@ export var bodiedExtension_with_marks = ['bodiedExtension', {
234
234
  }
235
235
  }
236
236
  }];
237
+ export var bodiedSyncBlock = {
238
+ props: {
239
+ type: {
240
+ type: 'enum',
241
+ values: ['bodiedSyncBlock']
242
+ },
243
+ attrs: {
244
+ props: {
245
+ resourceId: {
246
+ type: 'string'
247
+ },
248
+ localId: {
249
+ type: 'string'
250
+ }
251
+ }
252
+ },
253
+ content: {
254
+ type: 'array',
255
+ items: [['blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'rule', 'table', 'taskList']],
256
+ minItems: 1,
257
+ allowUnsupportedBlock: true
258
+ },
259
+ marks: {
260
+ type: 'array',
261
+ optional: true,
262
+ items: ['breakout']
263
+ }
264
+ }
265
+ };
237
266
  export var border = {
238
267
  props: {
239
268
  type: {
@@ -484,7 +513,7 @@ export var doc = {
484
513
  },
485
514
  content: {
486
515
  type: 'array',
487
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock']],
516
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
488
517
  allowUnsupportedBlock: true
489
518
  }
490
519
  }
@@ -403,6 +403,118 @@
403
403
  }
404
404
  ]
405
405
  },
406
+ "bodiedSyncBlock_node": {
407
+ "type": "object",
408
+ "properties": {
409
+ "type": {
410
+ "enum": ["bodiedSyncBlock"]
411
+ },
412
+ "marks": {
413
+ "type": "array",
414
+ "items": {
415
+ "$ref": "#/definitions/breakout_mark"
416
+ }
417
+ },
418
+ "attrs": {
419
+ "type": "object",
420
+ "properties": {
421
+ "resourceId": {
422
+ "type": "string"
423
+ },
424
+ "localId": {
425
+ "type": "string"
426
+ }
427
+ },
428
+ "required": ["resourceId", "localId"],
429
+ "additionalProperties": false
430
+ },
431
+ "content": {
432
+ "type": "array",
433
+ "items": {
434
+ "anyOf": [
435
+ {
436
+ "$ref": "#/definitions/blockCard_node"
437
+ },
438
+ {
439
+ "$ref": "#/definitions/blockquote_node"
440
+ },
441
+ {
442
+ "$ref": "#/definitions/bulletList_node"
443
+ },
444
+ {
445
+ "$ref": "#/definitions/codeBlock_node"
446
+ },
447
+ {
448
+ "$ref": "#/definitions/decisionList_node"
449
+ },
450
+ {
451
+ "$ref": "#/definitions/embedCard_node"
452
+ },
453
+ {
454
+ "$ref": "#/definitions/expand_node"
455
+ },
456
+ {
457
+ "$ref": "#/definitions/heading_node"
458
+ },
459
+ {
460
+ "$ref": "#/definitions/heading_with_alignment_node"
461
+ },
462
+ {
463
+ "$ref": "#/definitions/heading_with_indentation_node"
464
+ },
465
+ {
466
+ "$ref": "#/definitions/heading_with_no_marks_node"
467
+ },
468
+ {
469
+ "$ref": "#/definitions/layoutSection_node"
470
+ },
471
+ {
472
+ "$ref": "#/definitions/mediaGroup_node"
473
+ },
474
+ {
475
+ "$ref": "#/definitions/mediaSingle_node"
476
+ },
477
+ {
478
+ "$ref": "#/definitions/mediaSingle_caption_node"
479
+ },
480
+ {
481
+ "$ref": "#/definitions/mediaSingle_full_node"
482
+ },
483
+ {
484
+ "$ref": "#/definitions/orderedList_node"
485
+ },
486
+ {
487
+ "$ref": "#/definitions/panel_node"
488
+ },
489
+ {
490
+ "$ref": "#/definitions/paragraph_node"
491
+ },
492
+ {
493
+ "$ref": "#/definitions/paragraph_with_alignment_node"
494
+ },
495
+ {
496
+ "$ref": "#/definitions/paragraph_with_indentation_node"
497
+ },
498
+ {
499
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
500
+ },
501
+ {
502
+ "$ref": "#/definitions/rule_node"
503
+ },
504
+ {
505
+ "$ref": "#/definitions/table_node"
506
+ },
507
+ {
508
+ "$ref": "#/definitions/taskList_node"
509
+ }
510
+ ]
511
+ },
512
+ "minItems": 1
513
+ }
514
+ },
515
+ "additionalProperties": false,
516
+ "required": ["type", "attrs", "content"]
517
+ },
406
518
  "border_mark": {
407
519
  "type": "object",
408
520
  "properties": {
@@ -855,6 +967,9 @@
855
967
  },
856
968
  {
857
969
  "$ref": "#/definitions/syncBlock_node"
970
+ },
971
+ {
972
+ "$ref": "#/definitions/bodiedSyncBlock_node"
858
973
  }
859
974
  ]
860
975
  }
@@ -1,7 +1,7 @@
1
1
  export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, 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, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, backgroundColorPaletteNext, syncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './schema';
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, SyncBlockDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, MultiBodiedExtensionDefinition, ExtensionFrameDefinition, BackgroundColorDefinition, } from './schema';
3
+ colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, backgroundColorPaletteNext, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './schema';
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, SyncBlockDefinition, BodiedSyncBlockDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, BlockTaskItemDefinition, 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';
7
7
  export type { NodeSpecOptions, MarkSpecOptions } from './schema';
@@ -88,6 +88,17 @@ export interface BodiedExtensionWithMarksDefinition {
88
88
  }
89
89
  export type BodiedExtensionWithMarksNode = PMNode & BodiedExtensionWithMarksDefinition;
90
90
  export declare const bodiedExtensionWithMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BodiedExtensionWithMarksNode>) => import("prosemirror-model").NodeSpec;
91
+ export interface BodiedSyncBlockStage0Definition {
92
+ type: 'bodiedSyncBlock';
93
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BulletListDefinition | CodeBlockDefinition | ConfluenceUnsupportedBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExpandDefinition | HeadingDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | LayoutSectionDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | OrderedListDefinition | PanelDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
94
+ marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
95
+ attrs: {
96
+ resourceId: string;
97
+ localId: string;
98
+ };
99
+ }
100
+ export type BodiedSyncBlockStage0Node = PMNode & BodiedSyncBlockStage0Definition;
101
+ export declare const bodiedSyncBlockStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BodiedSyncBlockStage0Node>) => import("prosemirror-model").NodeSpec;
91
102
  export interface BulletListDefinition {
92
103
  type: 'bulletList';
93
104
  content: Array<ListItemDefinition | ListItemWithNestedDecisionStage0Definition>;
@@ -202,7 +213,7 @@ export type DecisionListNode = PMNode & DecisionListDefinition;
202
213
  export declare const decisionList: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<DecisionListNode>) => import("prosemirror-model").NodeSpec;
203
214
  export interface DocDefinition {
204
215
  type: 'doc';
205
- content: Array<BlockDefinition | BlockRootOnlyDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | SyncBlockStage0Definition>;
216
+ content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedSyncBlockStage0Definition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | SyncBlockStage0Definition>;
206
217
  }
207
218
  export type DocNode = PMNode & DocDefinition;
208
219
  export declare const doc: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<DocNode>) => import("prosemirror-model").NodeSpec;
@@ -0,0 +1 @@
1
+ export declare const bodiedSyncBlock: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec>;
@@ -1,5 +1,5 @@
1
1
  import { SchemaConfig } from './create-schema';
2
- type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'blockTaskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'syncBlock' | 'unsupportedBlock' | 'unsupportedInline';
2
+ type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'blockTaskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'syncBlock' | 'bodiedSyncBlock' | 'unsupportedBlock' | 'unsupportedInline';
3
3
  type DefaultSchemaMarks = 'link' | 'em' | 'strong' | 'strike' | 'subsup' | 'underline' | 'code' | 'textColor' | 'backgroundColor' | 'confluenceInlineComment' | 'breakout' | 'alignment' | 'indentation' | 'annotation' | 'border' | 'unsupportedMark' | 'unsupportedNodeAttribute' | 'typeAheadQuery' | 'dataConsumer' | 'fragment';
4
4
  export declare const defaultSchemaConfig: SchemaConfig<DefaultSchemaNodes, DefaultSchemaMarks>;
5
5
  export declare const getSchemaBasedOnStage: import("memoize-one").MemoizedFn<(this: any, stage?: any) => import("prosemirror-model").Schema<DefaultSchemaNodes, DefaultSchemaMarks>>;
@@ -1,5 +1,5 @@
1
- export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithDecisionStage0, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './nodes';
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, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, } from './nodes';
1
+ export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithDecisionStage0, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './nodes';
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, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition, } 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. */
5
5
  colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette, backgroundColorPaletteNext, } from './marks';
@@ -0,0 +1,44 @@
1
+ import { BreakoutMarkDefinition } from '../marks';
2
+ import { ExpandDefinition as Expand } from './expand';
3
+ import { PanelDefinition as Panel } from './panel';
4
+ import { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as ParagraphWithMarks } from './paragraph';
5
+ import { BlockQuoteDefinition as Blockquote } from './blockquote';
6
+ import { OrderedListDefinition as OrderedList } from './types/list';
7
+ import { BulletListDefinition as BulletList } from './types/list';
8
+ import { RuleDefinition as Rule } from './rule';
9
+ import { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from './heading';
10
+ import { CodeBlockDefinition as CodeBlock } from './code-block';
11
+ import { MediaGroupDefinition as MediaGroup } from './media-group';
12
+ import { MediaSingleDefinition as MediaSingle } from './media-single';
13
+ import { DecisionListDefinition as DecisionList } from './decision-list';
14
+ import { TaskListDefinition as TaskList } from './task-list';
15
+ import { TableDefinition as Table } from './tableNodes';
16
+ import { BlockCardDefinition as BlockCard } from './block-card';
17
+ import { EmbedCardDefinition as EmbedCard } from './embed-card';
18
+ import { LayoutSectionDefinition as LayoutSection } from './layout-section';
19
+ export interface BodiedSyncBlockAttrs {
20
+ /**
21
+ * The ID of the resource to be synchronized.
22
+ */
23
+ resourceId: string;
24
+ /**
25
+ * Required UUID attribute used for unique identification of the node
26
+ */
27
+ localId: string;
28
+ }
29
+ /**
30
+ * Represents a block node that is designed to be synchronized
31
+ * with an external resource across different products.
32
+ * @name bodiedSyncBlock_node
33
+ */
34
+ export interface BodiedSyncBlockDefinition {
35
+ type: 'bodiedSyncBlock';
36
+ marks?: Array<BreakoutMarkDefinition>;
37
+ attrs: BodiedSyncBlockAttrs;
38
+ /**
39
+ * @minItems 1
40
+ * @allowUnsupportedBlock true
41
+ */
42
+ content: Array<BlockCard | Blockquote | BulletList | CodeBlock | DecisionList | EmbedCard | Expand | Heading | HeadingWithMarks | LayoutSection | MediaGroup | MediaSingle | OrderedList | Panel | Paragraph | ParagraphWithMarks | Rule | Table | TaskList>;
43
+ }
44
+ export declare const bodiedSyncBlock: import("prosemirror-model").NodeSpec;
@@ -5,6 +5,7 @@ import { ParagraphWithIndentationDefinition } from './paragraph';
5
5
  import { BlockContent } from './types/block-content';
6
6
  import { MultiBodiedExtensionDefinition as MultiBodiedExtension } from './multi-bodied-extension';
7
7
  import { SyncBlockDefinition as SyncBlock } from './sync-block';
8
+ import { BodiedSyncBlockDefinition as BodiedSyncBlock } from './bodied-sync-block';
8
9
  /**
9
10
  * @name doc_node
10
11
  */
@@ -14,6 +15,6 @@ export interface DocNode {
14
15
  /**
15
16
  * @allowUnsupportedBlock true
16
17
  */
17
- content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandRootOnly | ParagraphWithIndentationDefinition | MultiBodiedExtension | SyncBlock>;
18
+ content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandRootOnly | ParagraphWithIndentationDefinition | MultiBodiedExtension | BodiedSyncBlock | SyncBlock>;
18
19
  }
19
20
  export declare const doc: import("prosemirror-model").NodeSpec;
@@ -94,3 +94,5 @@ export type { ExtensionFrameDefinition, MultiBodiedExtensionDefinition, } from '
94
94
  export { extensionFrame, multiBodiedExtension } from './multi-bodied-extension';
95
95
  export { syncBlock } from './sync-block';
96
96
  export type { SyncBlockDefinition } from './sync-block';
97
+ export { bodiedSyncBlock } from './bodied-sync-block';
98
+ export type { BodiedSyncBlockDefinition } from './bodied-sync-block';
@@ -244,6 +244,35 @@ export declare const bodiedExtension_with_marks: (string | {
244
244
  };
245
245
  };
246
246
  })[];
247
+ export declare const bodiedSyncBlock: {
248
+ props: {
249
+ type: {
250
+ type: string;
251
+ values: string[];
252
+ };
253
+ attrs: {
254
+ props: {
255
+ resourceId: {
256
+ type: string;
257
+ };
258
+ localId: {
259
+ type: string;
260
+ };
261
+ };
262
+ };
263
+ content: {
264
+ type: string;
265
+ items: string[][];
266
+ minItems: number;
267
+ allowUnsupportedBlock: boolean;
268
+ };
269
+ marks: {
270
+ type: string;
271
+ optional: boolean;
272
+ items: string[];
273
+ };
274
+ };
275
+ };
247
276
  export declare const border: {
248
277
  props: {
249
278
  type: {