@atlaskit/adf-schema 51.3.2 → 51.5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 51.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 16a4426: Promote syncBlock and bodiedSyncBlock to full schema
8
+
9
+ ## 51.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - b76eeec: EDITOR-2752 update BodiedSyncBlockDefinition to be an isolating node
14
+
3
15
  ## 51.3.2
4
16
 
5
17
  ### Patch Changes
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.syncBlockStage0 = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedSyncBlockStage0 = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockTaskItem = exports.blockCard = void 0;
6
+ exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.syncBlock = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedSyncBlock = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockTaskItem = exports.blockCard = void 0;
7
7
  var _createPMSpecFactory = require("../../schema/createPMSpecFactory");
8
8
  /**
9
9
  * This file was automatically generated by @atlaskit/adf-schema-generator
@@ -129,7 +129,7 @@ var bodiedExtensionWithMarks = exports.bodiedExtensionWithMarks = (0, _createPMS
129
129
  defining: true,
130
130
  isolating: true
131
131
  });
132
- var bodiedSyncBlockStage0 = exports.bodiedSyncBlockStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
132
+ var bodiedSyncBlock = exports.bodiedSyncBlock = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
133
133
  content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel | rule | table | taskList | unsupportedBlock)+',
134
134
  marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation breakout link fragment',
135
135
  attrs: {
@@ -140,7 +140,8 @@ var bodiedSyncBlockStage0 = exports.bodiedSyncBlockStage0 = (0, _createPMSpecFac
140
140
  default: ''
141
141
  }
142
142
  },
143
- selectable: true
143
+ selectable: true,
144
+ isolating: true
144
145
  });
145
146
  var bulletList = exports.bulletList = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
146
147
  content: 'listItem+',
@@ -1109,7 +1110,7 @@ var statusStage0 = exports.statusStage0 = (0, _createPMSpecFactory.createPMNodeS
1109
1110
  },
1110
1111
  selectable: true
1111
1112
  });
1112
- var syncBlockStage0 = exports.syncBlockStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1113
+ var syncBlock = exports.syncBlock = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1113
1114
  attrs: {
1114
1115
  resourceId: {
1115
1116
  default: ''
@@ -27,8 +27,8 @@ var _tableNodes = require("./tableNodes");
27
27
  var _task = require("./task");
28
28
  var _layoutSection = require("./layoutSection");
29
29
  var bodiedSyncBlock = exports.bodiedSyncBlock = (0, _adfSchemaGenerator.adfNode)('bodiedSyncBlock').define({
30
- stage0: true,
31
30
  selectable: true,
31
+ isolating: true,
32
32
  marks: [_breakout.breakout, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
33
33
  attrs: {
34
34
  resourceId: {
@@ -9,7 +9,6 @@ var _breakout = require("../marks/breakout");
9
9
  var _unsupportedMark = require("../marks/unsupportedMark");
10
10
  var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
11
11
  var syncBlock = exports.syncBlock = (0, _adfSchemaGenerator.adfNode)('syncBlock').define({
12
- stage0: true,
13
12
  selectable: true,
14
13
  marks: [_breakout.breakout, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
15
14
  attrs: {
@@ -10,7 +10,7 @@ var _nodes = require("./nodes");
10
10
  var _createSchema = require("./create-schema");
11
11
  var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
12
12
  var defaultSchemaConfig = {
13
- nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'unsupportedBlock', 'unsupportedInline'],
13
+ nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
14
14
  marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'dataConsumer', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery',
15
15
  // https://product-fabric.atlassian.net/browse/ED-10214,
16
16
  'fragment']
@@ -31,9 +31,7 @@ var getSchemaBasedOnStage = exports.getSchemaBasedOnStage = (0, _memoizeOne.defa
31
31
  table: _nodes.tableWithNestedTable,
32
32
  tableRow: _nodes.tableRowWithNestedTable,
33
33
  tableCell: _nodes.tableCellWithNestedTable,
34
- tableHeader: _nodes.tableHeaderWithNestedTable,
35
- syncBlock: _nodes.syncBlock,
36
- bodiedSyncBlock: _nodes.bodiedSyncBlock
34
+ tableHeader: _nodes.tableHeaderWithNestedTable
37
35
  };
38
36
  }
39
37
  return (0, _createSchema.createSchema)(defaultSchemaConfig);
@@ -12,7 +12,7 @@ var _utils = require("../../utils");
12
12
  * @name bodiedSyncBlock_node
13
13
  */
14
14
 
15
- var bodiedSyncBlock = exports.bodiedSyncBlock = (0, _nodeTypes.bodiedSyncBlockStage0)({
15
+ var bodiedSyncBlock = exports.bodiedSyncBlock = (0, _nodeTypes.bodiedSyncBlock)({
16
16
  parseDOM: [{
17
17
  tag: 'div[data-bodied-sync-block]',
18
18
  getAttrs: function getAttrs(domNode) {
@@ -12,7 +12,7 @@ var _utils = require("../../utils");
12
12
  * @name syncBlock_node
13
13
  */
14
14
 
15
- var syncBlock = exports.syncBlock = (0, _nodeTypes.syncBlockStage0)({
15
+ var syncBlock = exports.syncBlock = (0, _nodeTypes.syncBlock)({
16
16
  parseDOM: [{
17
17
  tag: 'div[data-sync-block]',
18
18
  getAttrs: function getAttrs(domNode) {
@@ -123,7 +123,7 @@ export const bodiedExtensionWithMarks = createPMNodeSpecFactory({
123
123
  defining: true,
124
124
  isolating: true
125
125
  });
126
- export const bodiedSyncBlockStage0 = createPMNodeSpecFactory({
126
+ export const bodiedSyncBlock = createPMNodeSpecFactory({
127
127
  content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel | rule | table | taskList | unsupportedBlock)+',
128
128
  marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation breakout link fragment',
129
129
  attrs: {
@@ -134,7 +134,8 @@ export const bodiedSyncBlockStage0 = createPMNodeSpecFactory({
134
134
  default: ''
135
135
  }
136
136
  },
137
- selectable: true
137
+ selectable: true,
138
+ isolating: true
138
139
  });
139
140
  export const bulletList = createPMNodeSpecFactory({
140
141
  content: 'listItem+',
@@ -1103,7 +1104,7 @@ export const statusStage0 = createPMNodeSpecFactory({
1103
1104
  },
1104
1105
  selectable: true
1105
1106
  });
1106
- export const syncBlockStage0 = createPMNodeSpecFactory({
1107
+ export const syncBlock = createPMNodeSpecFactory({
1107
1108
  attrs: {
1108
1109
  resourceId: {
1109
1110
  default: ''
@@ -21,8 +21,8 @@ import { table } from './tableNodes';
21
21
  import { taskList } from './task';
22
22
  import { layoutSection } from './layoutSection';
23
23
  export const bodiedSyncBlock = adfNode('bodiedSyncBlock').define({
24
- stage0: true,
25
24
  selectable: true,
25
+ isolating: true,
26
26
  marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
27
27
  attrs: {
28
28
  resourceId: {
@@ -3,7 +3,6 @@ import { breakout } from '../marks/breakout';
3
3
  import { unsupportedMark } from '../marks/unsupportedMark';
4
4
  import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
5
5
  export const syncBlock = adfNode('syncBlock').define({
6
- stage0: true,
7
6
  selectable: true,
8
7
  marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
9
8
  attrs: {
@@ -1,9 +1,9 @@
1
1
  import memoizeOne from 'memoize-one';
2
- import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, listItemWithDecisionStage0, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, syncBlock, bodiedSyncBlock } from './nodes';
2
+ import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, listItemWithDecisionStage0, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './nodes';
3
3
  import { createSchema } from './create-schema';
4
4
  const getDefaultSchemaConfig = () => {
5
5
  const defaultSchemaConfig = {
6
- nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'unsupportedBlock', 'unsupportedInline'],
6
+ nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
7
7
  marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'dataConsumer', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery',
8
8
  // https://product-fabric.atlassian.net/browse/ED-10214,
9
9
  'fragment']
@@ -23,9 +23,7 @@ export const getSchemaBasedOnStage = memoizeOne((stage = 'final') => {
23
23
  table: tableWithNestedTable,
24
24
  tableRow: tableRowWithNestedTable,
25
25
  tableCell: tableCellWithNestedTable,
26
- tableHeader: tableHeaderWithNestedTable,
27
- syncBlock,
28
- bodiedSyncBlock
26
+ tableHeader: tableHeaderWithNestedTable
29
27
  };
30
28
  }
31
29
  return createSchema(defaultSchemaConfig);
@@ -1,4 +1,4 @@
1
- import { bodiedSyncBlockStage0 } from '../../next-schema/generated/nodeTypes';
1
+ import { bodiedSyncBlock as bodiedSyncBlockFactory } from '../../next-schema/generated/nodeTypes';
2
2
  import { uuid } from '../../utils';
3
3
 
4
4
  /**
@@ -7,7 +7,7 @@ import { uuid } from '../../utils';
7
7
  * @name bodiedSyncBlock_node
8
8
  */
9
9
 
10
- export const bodiedSyncBlock = bodiedSyncBlockStage0({
10
+ export const bodiedSyncBlock = bodiedSyncBlockFactory({
11
11
  parseDOM: [{
12
12
  tag: 'div[data-bodied-sync-block]',
13
13
  getAttrs: domNode => {
@@ -1,4 +1,4 @@
1
- import { syncBlockStage0 as syncBlockFactory } from '../../next-schema/generated/nodeTypes';
1
+ import { syncBlock as syncBlockFactory } from '../../next-schema/generated/nodeTypes';
2
2
  import { uuid } from '../../utils';
3
3
 
4
4
  /**
@@ -123,7 +123,7 @@ export var bodiedExtensionWithMarks = createPMNodeSpecFactory({
123
123
  defining: true,
124
124
  isolating: true
125
125
  });
126
- export var bodiedSyncBlockStage0 = createPMNodeSpecFactory({
126
+ export var bodiedSyncBlock = createPMNodeSpecFactory({
127
127
  content: '(paragraph | blockCard | blockquote | bulletList | codeBlock | confluenceUnsupportedBlock | decisionList | embedCard | expand | heading | layoutSection | mediaGroup | mediaSingle | orderedList | panel | rule | table | taskList | unsupportedBlock)+',
128
128
  marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation breakout link fragment',
129
129
  attrs: {
@@ -134,7 +134,8 @@ export var bodiedSyncBlockStage0 = createPMNodeSpecFactory({
134
134
  default: ''
135
135
  }
136
136
  },
137
- selectable: true
137
+ selectable: true,
138
+ isolating: true
138
139
  });
139
140
  export var bulletList = createPMNodeSpecFactory({
140
141
  content: 'listItem+',
@@ -1103,7 +1104,7 @@ export var statusStage0 = createPMNodeSpecFactory({
1103
1104
  },
1104
1105
  selectable: true
1105
1106
  });
1106
- export var syncBlockStage0 = createPMNodeSpecFactory({
1107
+ export var syncBlock = createPMNodeSpecFactory({
1107
1108
  attrs: {
1108
1109
  resourceId: {
1109
1110
  default: ''
@@ -21,8 +21,8 @@ import { table } from './tableNodes';
21
21
  import { taskList } from './task';
22
22
  import { layoutSection } from './layoutSection';
23
23
  export var bodiedSyncBlock = adfNode('bodiedSyncBlock').define({
24
- stage0: true,
25
24
  selectable: true,
25
+ isolating: true,
26
26
  marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
27
27
  attrs: {
28
28
  resourceId: {
@@ -3,7 +3,6 @@ import { breakout } from '../marks/breakout';
3
3
  import { unsupportedMark } from '../marks/unsupportedMark';
4
4
  import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
5
5
  export var syncBlock = adfNode('syncBlock').define({
6
- stage0: true,
7
6
  selectable: true,
8
7
  marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
9
8
  attrs: {
@@ -1,9 +1,9 @@
1
1
  import memoizeOne from 'memoize-one';
2
- import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, listItemWithDecisionStage0, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, syncBlock, bodiedSyncBlock } from './nodes';
2
+ import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, listItemWithDecisionStage0, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './nodes';
3
3
  import { createSchema } from './create-schema';
4
4
  var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
5
5
  var defaultSchemaConfig = {
6
- nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'unsupportedBlock', 'unsupportedInline'],
6
+ nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
7
7
  marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'dataConsumer', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery',
8
8
  // https://product-fabric.atlassian.net/browse/ED-10214,
9
9
  'fragment']
@@ -24,9 +24,7 @@ export var getSchemaBasedOnStage = memoizeOne(function () {
24
24
  table: tableWithNestedTable,
25
25
  tableRow: tableRowWithNestedTable,
26
26
  tableCell: tableCellWithNestedTable,
27
- tableHeader: tableHeaderWithNestedTable,
28
- syncBlock: syncBlock,
29
- bodiedSyncBlock: bodiedSyncBlock
27
+ tableHeader: tableHeaderWithNestedTable
30
28
  };
31
29
  }
32
30
  return createSchema(defaultSchemaConfig);
@@ -1,4 +1,4 @@
1
- import { bodiedSyncBlockStage0 } from '../../next-schema/generated/nodeTypes';
1
+ import { bodiedSyncBlock as bodiedSyncBlockFactory } from '../../next-schema/generated/nodeTypes';
2
2
  import { uuid } from '../../utils';
3
3
 
4
4
  /**
@@ -7,7 +7,7 @@ import { uuid } from '../../utils';
7
7
  * @name bodiedSyncBlock_node
8
8
  */
9
9
 
10
- export var bodiedSyncBlock = bodiedSyncBlockStage0({
10
+ export var bodiedSyncBlock = bodiedSyncBlockFactory({
11
11
  parseDOM: [{
12
12
  tag: 'div[data-bodied-sync-block]',
13
13
  getAttrs: function getAttrs(domNode) {
@@ -1,4 +1,4 @@
1
- import { syncBlockStage0 as syncBlockFactory } from '../../next-schema/generated/nodeTypes';
1
+ import { syncBlock as syncBlockFactory } from '../../next-schema/generated/nodeTypes';
2
2
  import { uuid } from '../../utils';
3
3
 
4
4
  /**
@@ -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/paragraph_node"
437
+ },
438
+ {
439
+ "$ref": "#/definitions/paragraph_with_alignment_node"
440
+ },
441
+ {
442
+ "$ref": "#/definitions/paragraph_with_indentation_node"
443
+ },
444
+ {
445
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
446
+ },
447
+ {
448
+ "$ref": "#/definitions/blockCard_node"
449
+ },
450
+ {
451
+ "$ref": "#/definitions/blockquote_node"
452
+ },
453
+ {
454
+ "$ref": "#/definitions/bulletList_node"
455
+ },
456
+ {
457
+ "$ref": "#/definitions/codeBlock_node"
458
+ },
459
+ {
460
+ "$ref": "#/definitions/decisionList_node"
461
+ },
462
+ {
463
+ "$ref": "#/definitions/embedCard_node"
464
+ },
465
+ {
466
+ "$ref": "#/definitions/expand_node"
467
+ },
468
+ {
469
+ "$ref": "#/definitions/heading_node"
470
+ },
471
+ {
472
+ "$ref": "#/definitions/heading_with_alignment_node"
473
+ },
474
+ {
475
+ "$ref": "#/definitions/heading_with_indentation_node"
476
+ },
477
+ {
478
+ "$ref": "#/definitions/heading_with_no_marks_node"
479
+ },
480
+ {
481
+ "$ref": "#/definitions/layoutSection_node"
482
+ },
483
+ {
484
+ "$ref": "#/definitions/mediaGroup_node"
485
+ },
486
+ {
487
+ "$ref": "#/definitions/mediaSingle_node"
488
+ },
489
+ {
490
+ "$ref": "#/definitions/mediaSingle_caption_node"
491
+ },
492
+ {
493
+ "$ref": "#/definitions/mediaSingle_full_node"
494
+ },
495
+ {
496
+ "$ref": "#/definitions/orderedList_node"
497
+ },
498
+ {
499
+ "$ref": "#/definitions/panel_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": {
@@ -833,6 +945,12 @@
833
945
  },
834
946
  {
835
947
  "$ref": "#/definitions/expand_root_only_node"
948
+ },
949
+ {
950
+ "$ref": "#/definitions/syncBlock_node"
951
+ },
952
+ {
953
+ "$ref": "#/definitions/bodiedSyncBlock_node"
836
954
  }
837
955
  ]
838
956
  }
@@ -2396,6 +2514,35 @@
2396
2514
  "required": ["type", "attrs"],
2397
2515
  "additionalProperties": false
2398
2516
  },
2517
+ "syncBlock_node": {
2518
+ "type": "object",
2519
+ "properties": {
2520
+ "type": {
2521
+ "enum": ["syncBlock"]
2522
+ },
2523
+ "marks": {
2524
+ "type": "array",
2525
+ "items": {
2526
+ "$ref": "#/definitions/breakout_mark"
2527
+ }
2528
+ },
2529
+ "attrs": {
2530
+ "type": "object",
2531
+ "properties": {
2532
+ "resourceId": {
2533
+ "type": "string"
2534
+ },
2535
+ "localId": {
2536
+ "type": "string"
2537
+ }
2538
+ },
2539
+ "required": ["resourceId", "localId"],
2540
+ "additionalProperties": false
2541
+ }
2542
+ },
2543
+ "additionalProperties": false,
2544
+ "required": ["type", "attrs"]
2545
+ },
2399
2546
  "table_cell_content": {
2400
2547
  "type": "array",
2401
2548
  "items": {
@@ -88,7 +88,7 @@ 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 {
91
+ export interface BodiedSyncBlockDefinition {
92
92
  type: 'bodiedSyncBlock';
93
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
94
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
@@ -97,8 +97,8 @@ export interface BodiedSyncBlockStage0Definition {
97
97
  localId: string;
98
98
  };
99
99
  }
100
- export type BodiedSyncBlockStage0Node = PMNode & BodiedSyncBlockStage0Definition;
101
- export declare const bodiedSyncBlockStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BodiedSyncBlockStage0Node>) => import("prosemirror-model").NodeSpec;
100
+ export type BodiedSyncBlockNode = PMNode & BodiedSyncBlockDefinition;
101
+ export declare const bodiedSyncBlock: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BodiedSyncBlockNode>) => import("prosemirror-model").NodeSpec;
102
102
  export interface BulletListDefinition {
103
103
  type: 'bulletList';
104
104
  content: Array<ListItemDefinition | ListItemWithNestedDecisionStage0Definition>;
@@ -213,7 +213,7 @@ export type DecisionListNode = PMNode & DecisionListDefinition;
213
213
  export declare const decisionList: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<DecisionListNode>) => import("prosemirror-model").NodeSpec;
214
214
  export interface DocDefinition {
215
215
  type: 'doc';
216
- content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedSyncBlockStage0Definition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | SyncBlockStage0Definition>;
216
+ content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedSyncBlockDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | SyncBlockDefinition>;
217
217
  }
218
218
  export type DocNode = PMNode & DocDefinition;
219
219
  export declare const doc: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<DocNode>) => import("prosemirror-model").NodeSpec;
@@ -799,7 +799,7 @@ export interface StatusStage0Definition {
799
799
  }
800
800
  export type StatusStage0Node = PMNode & StatusStage0Definition;
801
801
  export declare const statusStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<StatusStage0Node>) => import("prosemirror-model").NodeSpec;
802
- export interface SyncBlockStage0Definition {
802
+ export interface SyncBlockDefinition {
803
803
  type: 'syncBlock';
804
804
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
805
805
  attrs: {
@@ -807,8 +807,8 @@ export interface SyncBlockStage0Definition {
807
807
  localId: string;
808
808
  };
809
809
  }
810
- export type SyncBlockStage0Node = PMNode & SyncBlockStage0Definition;
811
- export declare const syncBlockStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<SyncBlockStage0Node>) => import("prosemirror-model").NodeSpec;
810
+ export type SyncBlockNode = PMNode & SyncBlockDefinition;
811
+ export declare const syncBlock: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<SyncBlockNode>) => import("prosemirror-model").NodeSpec;
812
812
  export interface TableDefinition {
813
813
  type: 'table';
814
814
  content: Array<TableRowDefinition>;
@@ -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/paragraph_node"
437
+ },
438
+ {
439
+ "$ref": "#/definitions/paragraph_with_alignment_node"
440
+ },
441
+ {
442
+ "$ref": "#/definitions/paragraph_with_indentation_node"
443
+ },
444
+ {
445
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
446
+ },
447
+ {
448
+ "$ref": "#/definitions/blockCard_node"
449
+ },
450
+ {
451
+ "$ref": "#/definitions/blockquote_node"
452
+ },
453
+ {
454
+ "$ref": "#/definitions/bulletList_node"
455
+ },
456
+ {
457
+ "$ref": "#/definitions/codeBlock_node"
458
+ },
459
+ {
460
+ "$ref": "#/definitions/decisionList_node"
461
+ },
462
+ {
463
+ "$ref": "#/definitions/embedCard_node"
464
+ },
465
+ {
466
+ "$ref": "#/definitions/expand_node"
467
+ },
468
+ {
469
+ "$ref": "#/definitions/heading_node"
470
+ },
471
+ {
472
+ "$ref": "#/definitions/heading_with_alignment_node"
473
+ },
474
+ {
475
+ "$ref": "#/definitions/heading_with_indentation_node"
476
+ },
477
+ {
478
+ "$ref": "#/definitions/heading_with_no_marks_node"
479
+ },
480
+ {
481
+ "$ref": "#/definitions/layoutSection_node"
482
+ },
483
+ {
484
+ "$ref": "#/definitions/mediaGroup_node"
485
+ },
486
+ {
487
+ "$ref": "#/definitions/mediaSingle_node"
488
+ },
489
+ {
490
+ "$ref": "#/definitions/mediaSingle_caption_node"
491
+ },
492
+ {
493
+ "$ref": "#/definitions/mediaSingle_full_node"
494
+ },
495
+ {
496
+ "$ref": "#/definitions/orderedList_node"
497
+ },
498
+ {
499
+ "$ref": "#/definitions/panel_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": {
@@ -833,6 +945,12 @@
833
945
  },
834
946
  {
835
947
  "$ref": "#/definitions/expand_root_only_node"
948
+ },
949
+ {
950
+ "$ref": "#/definitions/syncBlock_node"
951
+ },
952
+ {
953
+ "$ref": "#/definitions/bodiedSyncBlock_node"
836
954
  }
837
955
  ]
838
956
  }
@@ -2396,6 +2514,35 @@
2396
2514
  "required": ["type", "attrs"],
2397
2515
  "additionalProperties": false
2398
2516
  },
2517
+ "syncBlock_node": {
2518
+ "type": "object",
2519
+ "properties": {
2520
+ "type": {
2521
+ "enum": ["syncBlock"]
2522
+ },
2523
+ "marks": {
2524
+ "type": "array",
2525
+ "items": {
2526
+ "$ref": "#/definitions/breakout_mark"
2527
+ }
2528
+ },
2529
+ "attrs": {
2530
+ "type": "object",
2531
+ "properties": {
2532
+ "resourceId": {
2533
+ "type": "string"
2534
+ },
2535
+ "localId": {
2536
+ "type": "string"
2537
+ }
2538
+ },
2539
+ "required": ["resourceId", "localId"],
2540
+ "additionalProperties": false
2541
+ }
2542
+ },
2543
+ "additionalProperties": false,
2544
+ "required": ["type", "attrs"]
2545
+ },
2399
2546
  "table_cell_content": {
2400
2547
  "type": "array",
2401
2548
  "items": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "51.3.2",
3
+ "version": "51.5.0",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"