@atlaskit/adf-schema 52.0.1 → 52.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 (100) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/index.js +12 -0
  3. package/dist/cjs/next-schema/generated/markTypes.js +8 -1
  4. package/dist/cjs/next-schema/generated/nodeTypes.js +52 -15
  5. package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
  6. package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
  7. package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  8. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  9. package/dist/cjs/next-schema/marks/fontSize.js +32 -0
  10. package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +1 -1
  11. package/dist/cjs/next-schema/nodes/extensionFrame.js +1 -1
  12. package/dist/cjs/next-schema/nodes/list.js +2 -2
  13. package/dist/cjs/next-schema/nodes/nestedExpand.js +1 -1
  14. package/dist/cjs/next-schema/nodes/panel.js +1 -1
  15. package/dist/cjs/next-schema/nodes/paragraph.js +16 -0
  16. package/dist/cjs/next-schema/nodes/task.js +5 -5
  17. package/dist/cjs/schema/create-schema.js +3 -0
  18. package/dist/cjs/schema/default-schema.js +1 -0
  19. package/dist/cjs/schema/index.js +12 -0
  20. package/dist/cjs/schema/marks/font-size.js +31 -0
  21. package/dist/cjs/schema/marks/index.js +7 -0
  22. package/dist/cjs/schema/nodes/index.js +6 -0
  23. package/dist/cjs/schema/nodes/task-list.js +18 -3
  24. package/dist/cjs/validator-schema/generated/validatorSpec.js +67 -14
  25. package/dist/es2019/index.js +2 -2
  26. package/dist/es2019/next-schema/generated/markTypes.js +7 -0
  27. package/dist/es2019/next-schema/generated/nodeTypes.js +51 -14
  28. package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
  29. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  30. package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  31. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  32. package/dist/es2019/next-schema/marks/fontSize.js +27 -0
  33. package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +1 -1
  34. package/dist/es2019/next-schema/nodes/extensionFrame.js +1 -1
  35. package/dist/es2019/next-schema/nodes/list.js +3 -3
  36. package/dist/es2019/next-schema/nodes/nestedExpand.js +1 -1
  37. package/dist/es2019/next-schema/nodes/panel.js +1 -1
  38. package/dist/es2019/next-schema/nodes/paragraph.js +16 -0
  39. package/dist/es2019/next-schema/nodes/task.js +4 -4
  40. package/dist/es2019/schema/create-schema.js +4 -1
  41. package/dist/es2019/schema/default-schema.js +2 -1
  42. package/dist/es2019/schema/index.js +2 -2
  43. package/dist/es2019/schema/marks/font-size.js +25 -0
  44. package/dist/es2019/schema/marks/index.js +1 -0
  45. package/dist/es2019/schema/nodes/index.js +1 -1
  46. package/dist/es2019/schema/nodes/task-list.js +15 -3
  47. package/dist/es2019/validator-schema/generated/validatorSpec.js +66 -13
  48. package/dist/esm/index.js +2 -2
  49. package/dist/esm/next-schema/generated/markTypes.js +7 -0
  50. package/dist/esm/next-schema/generated/nodeTypes.js +51 -14
  51. package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
  52. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  53. package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  54. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  55. package/dist/esm/next-schema/marks/fontSize.js +27 -0
  56. package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +1 -1
  57. package/dist/esm/next-schema/nodes/extensionFrame.js +1 -1
  58. package/dist/esm/next-schema/nodes/list.js +3 -3
  59. package/dist/esm/next-schema/nodes/nestedExpand.js +1 -1
  60. package/dist/esm/next-schema/nodes/panel.js +1 -1
  61. package/dist/esm/next-schema/nodes/paragraph.js +16 -0
  62. package/dist/esm/next-schema/nodes/task.js +4 -4
  63. package/dist/esm/schema/create-schema.js +4 -1
  64. package/dist/esm/schema/default-schema.js +2 -1
  65. package/dist/esm/schema/index.js +2 -2
  66. package/dist/esm/schema/marks/font-size.js +25 -0
  67. package/dist/esm/schema/marks/index.js +1 -0
  68. package/dist/esm/schema/nodes/index.js +1 -1
  69. package/dist/esm/schema/nodes/task-list.js +16 -2
  70. package/dist/esm/validator-schema/generated/validatorSpec.js +66 -13
  71. package/dist/json-schema/v1/stage-0.json +173 -0
  72. package/dist/types/index.d.ts +3 -3
  73. package/dist/types/next-schema/generated/markTypes.d.ts +11 -0
  74. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  75. package/dist/types/next-schema/generated/nodeTypes.d.ts +52 -15
  76. package/dist/types/next-schema/marks/fontSize.d.ts +16 -0
  77. package/dist/types/next-schema/nodes/paragraph.d.ts +19 -1
  78. package/dist/types/next-schema/nodes/task.d.ts +9 -1
  79. package/dist/types/schema/index.d.ts +3 -3
  80. package/dist/types/schema/marks/font-size.d.ts +12 -0
  81. package/dist/types/schema/marks/index.d.ts +2 -0
  82. package/dist/types/schema/nodes/index.d.ts +2 -2
  83. package/dist/types/schema/nodes/task-list.d.ts +6 -1
  84. package/dist/types/validator-schema/generated/validatorSpec.d.ts +53 -0
  85. package/dist/types-ts4.5/index.d.ts +3 -3
  86. package/dist/types-ts4.5/next-schema/generated/markTypes.d.ts +11 -0
  87. package/dist/types-ts4.5/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  88. package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +52 -15
  89. package/dist/types-ts4.5/next-schema/marks/fontSize.d.ts +16 -0
  90. package/dist/types-ts4.5/next-schema/nodes/paragraph.d.ts +19 -1
  91. package/dist/types-ts4.5/next-schema/nodes/task.d.ts +9 -1
  92. package/dist/types-ts4.5/schema/index.d.ts +3 -3
  93. package/dist/types-ts4.5/schema/marks/font-size.d.ts +12 -0
  94. package/dist/types-ts4.5/schema/marks/index.d.ts +2 -0
  95. package/dist/types-ts4.5/schema/nodes/index.d.ts +2 -2
  96. package/dist/types-ts4.5/schema/nodes/task-list.d.ts +6 -1
  97. package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +53 -0
  98. package/json-schema/v1/stage-0.json +173 -0
  99. package/package.json +2 -2
  100. package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
@@ -17,7 +17,7 @@ import { taskList } from '../nodes/task';
17
17
  import { unsupportedBlock } from '../nodes/unsupportedBlock';
18
18
 
19
19
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
- 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')];
20
+ export var tableCellContentNodes = [paragraph.use('with_no_marks'), paragraph.use('with_alignment'), paragraph.use('with_font_size_and_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')];
21
21
 
22
22
  // This is not an actual group, but a collection of nodes
23
23
  // @DSLCompatibilityException JSON Schema and PM Spec are not in sync. We need to fix it
@@ -0,0 +1,27 @@
1
+ import { adfMark } from '@atlaskit/adf-schema-generator';
2
+
3
+ /**
4
+ * fontSize mark - applies size styling to block-level content
5
+ *
6
+ * This mark is used to apply size styling to entire paragraph nodes,
7
+ * enabling features like "small text" in the full-page editor.
8
+ *
9
+ * @example
10
+ * ```json
11
+ * {
12
+ * "type": "paragraph",
13
+ * "marks": [{ "type": "fontSize", "attrs": { "fontSize": "small" }}],
14
+ * "content": [...]
15
+ * }
16
+ * ```
17
+ */
18
+ export var fontSize = adfMark('fontSize').define({
19
+ spanning: false,
20
+ inclusive: false,
21
+ attrs: {
22
+ fontSize: {
23
+ type: 'enum',
24
+ values: ['small']
25
+ }
26
+ }
27
+ });
@@ -34,7 +34,7 @@ export var bodiedSyncBlock = adfNode('bodiedSyncBlock').define({
34
34
  default: ''
35
35
  }
36
36
  },
37
- content: [$onePlus($or(paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel, rule, table,
37
+ content: [$onePlus($or(paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_font_size_and_alignment'), paragraph.use('with_font_size_and_indentation'), paragraph.use('with_no_marks'), blockCard, blockquote, blockquote.use('legacy'), bulletList, codeBlock, confluenceUnsupportedBlock, decisionList, embedCard, expand, heading, heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), mediaGroup, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), orderedList, panel, rule, table,
38
38
  // @ts-expect-error - types don't deal well with circular references for the variant
39
39
  table.use('with_nested_table'), taskList, unsupportedBlock))]
40
40
  });
@@ -30,7 +30,7 @@ export var extensionFrame = adfNode('extensionFrame').define({
30
30
  // packages/adf-schema-generator/src/transforms/adfToPm/buildPmSpec.ts
31
31
  marks: [dataConsumer, fragment, unsupportedMark, unsupportedNodeAttribute],
32
32
  attrs: {},
33
- content: [$onePlus($or(paragraph.use('with_no_marks'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), codeBlock, mediaGroup, mediaSingle.use('full'), mediaSingle.use('caption'), decisionList, taskList, table,
33
+ content: [$onePlus($or(paragraph.use('with_no_marks'), paragraph.use('with_font_size'), panel, blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), codeBlock, mediaGroup, mediaSingle.use('full'), mediaSingle.use('caption'), decisionList, taskList, table,
34
34
  // @ts-expect-error - types don't deal well with circular references for the variant
35
35
  table.use('with_nested_table'), extension.use('with_marks'), bodiedExtension.use('with_marks'), unsupportedBlock, blockCard, embedCard))],
36
36
  DANGEROUS_MANUAL_OVERRIDE: {
@@ -5,7 +5,7 @@ import { codeBlock } from './codeBlock';
5
5
  import { extension } from './extension';
6
6
  import { mediaSingle } from './mediaSingle';
7
7
  import { paragraph } from './paragraph';
8
- import { taskList } from './task';
8
+ import { taskList, taskListWithFlexibleFirstChild } from './task';
9
9
  import { unsupportedBlock } from './unsupportedBlock';
10
10
  export var orderedList = adfNode('orderedList');
11
11
  export var bulletList = adfNode('bulletList');
@@ -21,9 +21,9 @@ var listItem = adfNode('listItem').define({
21
21
  },
22
22
  marks: [unsupportedMark, unsupportedNodeAttribute],
23
23
  contentMinItems: 1,
24
- content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, extension.use('with_marks')), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, extension.use('with_marks')))]
24
+ content: [$or(paragraph.use('with_font_size'), paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, extension.use('with_marks')), $zeroPlus($or(paragraph.use('with_font_size'), paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, extension.use('with_marks')))]
25
25
  }).variant('with_flexible_first_child', {
26
- content: [$onePlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, extension.use('with_marks')))],
26
+ content: [$onePlus($or(paragraph.use('with_font_size'), paragraph.use('with_no_marks'), bulletList, orderedList, taskList, taskListWithFlexibleFirstChild.use('with_flexible_first_child'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, unsupportedBlock, extension.use('with_marks')))],
27
27
  noExtend: true,
28
28
  stage0: true
29
29
  });
@@ -14,7 +14,7 @@ import { paragraph } from './paragraph';
14
14
  import { rule } from './rule';
15
15
  import { taskList } from './task';
16
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];
17
+ var nestedExpandContent = [paragraph.use('with_no_marks'), paragraph.use('with_font_size'), heading.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, codeBlock, bulletList, orderedList, taskList, decisionList, rule, panel, blockquote, unsupportedBlock];
18
18
  export var nestedExpand = adfNode('nestedExpand').define({
19
19
  isolating: true,
20
20
  selectable: true,
@@ -13,7 +13,7 @@ import { rule } from './rule';
13
13
  import { taskList } from './task';
14
14
  import { unsupportedBlock } from './unsupportedBlock';
15
15
  import { extension } from './extension';
16
- var panelContent = [paragraph.use('with_no_marks'), heading.use('with_no_marks'), bulletList, orderedList, blockCard, mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, rule, decisionList, unsupportedBlock];
16
+ var panelContent = [paragraph.use('with_no_marks'), paragraph.use('with_font_size'), heading.use('with_no_marks'), bulletList, orderedList, blockCard, mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, rule, decisionList, unsupportedBlock];
17
17
  export var panel = adfNode('panel').define({
18
18
  selectable: true,
19
19
  marks: [unsupportedMark, unsupportedNodeAttribute],
@@ -2,6 +2,7 @@ import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
2
  import { inlineContentGroup } from '../groups/inlineContentGroup';
3
3
  import { inlineGroup } from '../groups/inlineGroup';
4
4
  import { alignment, indentation } from '../marks/alignmentAndIndentation';
5
+ import { fontSize } from '../marks/fontSize';
5
6
  import { unsupportedMark } from '../marks/unsupportedMark';
6
7
  import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
7
8
  export var paragraph = adfNode('paragraph').define({
@@ -33,4 +34,19 @@ export var paragraph = adfNode('paragraph').define({
33
34
  marks: [],
34
35
  noMarks: true,
35
36
  ignore: []
37
+ }).variant('with_font_size', {
38
+ marks: [fontSize, unsupportedMark, unsupportedNodeAttribute],
39
+ content: [],
40
+ ignore: [],
41
+ stage0: true
42
+ }).variant('with_font_size_and_alignment', {
43
+ marks: [fontSize, alignment, unsupportedMark, unsupportedNodeAttribute],
44
+ content: [],
45
+ ignore: [],
46
+ stage0: true
47
+ }).variant('with_font_size_and_indentation', {
48
+ marks: [fontSize, indentation, unsupportedMark, unsupportedNodeAttribute],
49
+ content: [],
50
+ ignore: [],
51
+ stage0: true
36
52
  });
@@ -6,9 +6,9 @@ import { inlineContentGroup } from '../groups/inlineContentGroup';
6
6
  import { inlineGroup } from '../groups/inlineGroup';
7
7
  import { unsupportedMark } from '../marks/unsupportedMark';
8
8
  import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
9
- import { unsupportedBlock } from './unsupportedBlock';
10
- import { paragraph } from './paragraph';
11
9
  import { extension } from './extension';
10
+ import { paragraph } from './paragraph';
11
+ import { unsupportedBlock } from './unsupportedBlock';
12
12
  export var taskItem = adfNode('taskItem');
13
13
  export var taskList = adfNode('taskList');
14
14
  export var blockTaskItem = adfNode('blockTaskItem');
@@ -37,7 +37,7 @@ blockTaskItem.define(_objectSpread(_objectSpread({}, commonTaskItemProps), {}, {
37
37
  allowAnyChildMark: false,
38
38
  // Override the commonTaskItemProps setting
39
39
  contentMinItems: 1,
40
- content: [$or(paragraph.use('with_no_marks'), extension.use('with_marks')), $zeroPlus($or(paragraph.use('with_no_marks'), extension.use('with_marks')))]
40
+ content: [$or(paragraph.use('with_no_marks'), paragraph.use('with_font_size'), extension.use('with_marks')), $zeroPlus($or(paragraph.use('with_no_marks'), paragraph.use('with_font_size'), extension.use('with_marks')))]
41
41
  }));
42
42
  taskList.define({
43
43
  defining: true,
@@ -52,7 +52,7 @@ taskList.define({
52
52
  contentMinItems: 1,
53
53
  content: [$onePlus($or(taskItem, unsupportedBlock, blockTaskItem)), $zeroPlus($or(taskItem, taskList, unsupportedBlock, blockTaskItem))]
54
54
  });
55
- taskList.variant('flexible_first_child', {
55
+ export var taskListWithFlexibleFirstChild = taskList.variant('with_flexible_first_child', {
56
56
  contentMinItems: 1,
57
57
  content: [$onePlus($or(taskItem, taskList, unsupportedBlock, blockTaskItem))],
58
58
  stage0: true
@@ -1,7 +1,7 @@
1
1
  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
- import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
4
+ import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, fontSize, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
5
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] : {};
@@ -249,6 +249,9 @@ var marksInOrder = [{
249
249
  name: 'confluenceInlineComment',
250
250
  spec: confluenceInlineComment
251
251
  }].concat(markGroupDeclarations, [{
252
+ name: 'fontSize',
253
+ spec: fontSize
254
+ }, {
252
255
  name: 'breakout',
253
256
  spec: breakout
254
257
  }, {
@@ -1,5 +1,5 @@
1
1
  import memoizeOne from 'memoize-one';
2
- import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, listItemWithFlexibleFirstChildStage0, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './nodes';
2
+ import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, tableWithNestedTable, listItemWithFlexibleFirstChildStage0, taskListWithFlexibleFirstChildStage0, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './nodes';
3
3
  import { createSchema } from './create-schema';
4
4
  var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
5
5
  var defaultSchemaConfig = {
@@ -25,6 +25,7 @@ function () {
25
25
  extensionFrame: extensionFrame,
26
26
  expand: expandWithNestedExpand,
27
27
  listItem: listItemWithFlexibleFirstChildStage0,
28
+ taskList: taskListWithFlexibleFirstChildStage0,
28
29
  table: tableWithNestedTable,
29
30
  tableRow: tableRowWithNestedTable,
30
31
  tableCell: tableCellWithNestedTable,
@@ -1,6 +1,6 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- 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, listItemWithFlexibleFirstChildStage0, 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';
3
- export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
2
+ 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, listItemWithFlexibleFirstChildStage0, 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, taskListWithFlexibleFirstChildStage0, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './nodes';
3
+ export { AnnotationTypes, alignment, alignmentPositionMap, annotation, fontSize, breakout, code, colorPalette,
4
4
  // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
5
5
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
6
6
  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';
@@ -0,0 +1,25 @@
1
+ import { fontSize as fontSizeFactory } from '../../next-schema/generated/markTypes';
2
+ var allowedSizes = ['small'];
3
+
4
+ /**
5
+ * @name fontSize_mark
6
+ */
7
+
8
+ export var fontSize = fontSizeFactory({
9
+ parseDOM: [{
10
+ tag: 'div.fabric-editor-font-size',
11
+ getAttrs: function getAttrs(dom) {
12
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
13
+ var fontSize = dom.getAttribute('data-font-size');
14
+ return {
15
+ fontSize: allowedSizes.indexOf(fontSize || '') === -1 ? 'small' : fontSize
16
+ };
17
+ }
18
+ }],
19
+ toDOM: function toDOM(mark) {
20
+ return ['div', {
21
+ class: 'fabric-editor-block-mark fabric-editor-font-size',
22
+ 'data-font-size': mark.attrs.fontSize
23
+ }, 0];
24
+ }
25
+ });
@@ -10,6 +10,7 @@ export { subsup } from './subsup';
10
10
  export { textColor, colorPalette, colorPaletteExtended } from './text-color';
11
11
  export { confluenceInlineComment } from './confluence-inline-comment';
12
12
  export { breakout } from './breakout';
13
+ export { fontSize } from './font-size';
13
14
  export { alignment, alignmentPositionMap } from './alignment';
14
15
  export { indentation } from './indentation';
15
16
  export { annotation, AnnotationMarkStates, buildDataAttributes as buildAnnotationMarkDataAttributes, AnnotationTypes } from './annotation';
@@ -27,7 +27,7 @@ export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWi
27
27
  export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector } from './tableNodes';
28
28
  export { decisionList, decisionListSelector } from './decision-list';
29
29
  export { decisionItem } from './decision-item';
30
- export { taskList, taskListSelector } from './task-list';
30
+ export { taskList, taskListSelector, taskListWithFlexibleFirstChildStage0 } from './task-list';
31
31
  export { taskItem, blockTaskItem } from './task-item';
32
32
  export { date, dateWithLocalId } from './date';
33
33
  export { placeholder, placeholderWithLocalId } from './placeholder';
@@ -1,5 +1,8 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ import { taskList as taskListFactory, taskListWithFlexibleFirstChildStage0 as taskListWithFlexibleFirstChildStage0Factory } from '../../next-schema/generated/nodeTypes';
1
5
  import { uuid } from '../../utils/uuid';
2
- import { taskList as taskListFactory } from '../../next-schema/generated/nodeTypes';
3
6
 
4
7
  /**
5
8
  * @name taskList_node
@@ -7,7 +10,7 @@ import { taskList as taskListFactory } from '../../next-schema/generated/nodeTyp
7
10
 
8
11
  var name = 'actionList';
9
12
  export var taskListSelector = "[data-node-type=\"".concat(name, "\"]");
10
- export var taskList = taskListFactory({
13
+ var taskListParseDOMAndToDOM = {
11
14
  parseDOM: [{
12
15
  tag: "div".concat(taskListSelector),
13
16
  // Default priority is 50. We normally don't change this but since this node type is
@@ -28,4 +31,15 @@ export var taskList = taskListFactory({
28
31
  };
29
32
  return ['div', attrs, 0];
30
33
  }
34
+ };
35
+ export var taskList = taskListFactory(taskListParseDOMAndToDOM);
36
+ var taskListWithFlexibleFirstChild = taskListWithFlexibleFirstChildStage0Factory(taskListParseDOMAndToDOM);
37
+
38
+ /**
39
+ * @name task_list_with_flexible_first_child_stage0
40
+ * @description stage0 taskList with flexible first child content (see EDITOR-5417)
41
+ */
42
+ export var taskListWithFlexibleFirstChildStage0 = _objectSpread(_objectSpread({}, taskListWithFlexibleFirstChild), {}, {
43
+ // Generated spec omits PM group; keep taskList in block content for doc validation.
44
+ group: 'block'
31
45
  });
@@ -49,7 +49,7 @@ export var backgroundColor = {
49
49
  }
50
50
  }
51
51
  };
52
- export var block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
52
+ export var block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_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'];
53
53
  export var blockCard = {
54
54
  props: {
55
55
  type: {
@@ -171,7 +171,7 @@ export var blockTaskItem = {
171
171
  content: {
172
172
  type: 'array',
173
173
  isTupleLike: true,
174
- items: [['paragraph_with_no_marks', 'extension_with_marks'], ['paragraph_with_no_marks', 'extension_with_marks']],
174
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'extension_with_marks'], ['paragraph_with_no_marks', 'paragraph_with_font_size', 'extension_with_marks']],
175
175
  minItems: 1
176
176
  }
177
177
  }
@@ -252,7 +252,7 @@ export var bodiedSyncBlock = {
252
252
  },
253
253
  content: {
254
254
  type: 'array',
255
- items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'layoutSection_with_single_column', 'layoutSection_full', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
255
+ items: [['paragraph', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_indentation', 'paragraph_with_no_marks', 'blockCard', 'blockquote', 'bulletList', 'codeBlock', 'decisionList', 'embedCard', 'expand', 'heading', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection', 'layoutSection_with_single_column', 'layoutSection_full', 'mediaGroup', 'mediaSingle', 'mediaSingle_caption', 'mediaSingle_full', 'mediaSingle_width_type', 'orderedList', 'panel', 'rule', 'table', 'taskList']],
256
256
  minItems: 1,
257
257
  allowUnsupportedBlock: true
258
258
  },
@@ -513,7 +513,7 @@ export var doc = {
513
513
  },
514
514
  content: {
515
515
  type: 'array',
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']],
516
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_font_size_and_alignment', 'paragraph_with_font_size_and_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']],
517
517
  allowUnsupportedBlock: true
518
518
  }
519
519
  }
@@ -617,7 +617,7 @@ export var expand = {
617
617
  },
618
618
  content: {
619
619
  type: 'array',
620
- 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']],
620
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
621
621
  minItems: 1,
622
622
  allowUnsupportedBlock: true
623
623
  }
@@ -692,7 +692,7 @@ export var extensionFrame = {
692
692
  },
693
693
  content: {
694
694
  type: 'array',
695
- items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
695
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
696
696
  minItems: 1
697
697
  },
698
698
  marks: {
@@ -702,6 +702,22 @@ export var extensionFrame = {
702
702
  }
703
703
  }
704
704
  };
705
+ export var fontSize = {
706
+ props: {
707
+ type: {
708
+ type: 'enum',
709
+ values: ['fontSize']
710
+ },
711
+ attrs: {
712
+ props: {
713
+ fontSize: {
714
+ type: 'enum',
715
+ values: ['small']
716
+ }
717
+ }
718
+ }
719
+ }
720
+ };
705
721
  export var fragment = {
706
722
  props: {
707
723
  type: {
@@ -1057,7 +1073,7 @@ export var listItem = {
1057
1073
  content: {
1058
1074
  type: 'array',
1059
1075
  isTupleLike: true,
1060
- items: [['paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'extension_with_marks'], ['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'extension_with_marks']],
1076
+ items: [['paragraph_with_font_size', 'paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'extension_with_marks'], ['paragraph_with_font_size', 'paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'extension_with_marks']],
1061
1077
  minItems: 1,
1062
1078
  allowUnsupportedBlock: true
1063
1079
  }
@@ -1067,7 +1083,7 @@ export var listItem_with_flexible_first_child = ['listItem', {
1067
1083
  props: {
1068
1084
  content: {
1069
1085
  type: 'array',
1070
- items: [['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'extension_with_marks']],
1086
+ items: [['paragraph_with_font_size', 'paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'taskList_with_flexible_first_child', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'extension_with_marks']],
1071
1087
  minItems: 1,
1072
1088
  allowUnsupportedBlock: true
1073
1089
  }
@@ -1418,7 +1434,7 @@ export var nestedExpand = {
1418
1434
  };
1419
1435
  export var nestedExpand_content = {
1420
1436
  type: 'array',
1421
- 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']],
1437
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks']],
1422
1438
  minItems: 1,
1423
1439
  allowUnsupportedBlock: true
1424
1440
  };
@@ -1432,7 +1448,7 @@ export var nestedExpand_with_no_marks = ['nestedExpand', {
1432
1448
  }
1433
1449
  }
1434
1450
  }];
1435
- 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'];
1451
+ export var non_nestable_block_content = ['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
1436
1452
  export var orderedList = {
1437
1453
  props: {
1438
1454
  type: {
@@ -1496,7 +1512,7 @@ export var panel = {
1496
1512
  },
1497
1513
  content: {
1498
1514
  type: 'array',
1499
- items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks']],
1515
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'extension_with_marks']],
1500
1516
  minItems: 1,
1501
1517
  allowUnsupportedBlock: true
1502
1518
  }
@@ -1539,6 +1555,33 @@ export var paragraph_with_alignment = ['paragraph', {
1539
1555
  }
1540
1556
  }
1541
1557
  }];
1558
+ export var paragraph_with_font_size = ['paragraph', {
1559
+ props: {
1560
+ marks: {
1561
+ type: 'array',
1562
+ optional: true,
1563
+ items: ['fontSize']
1564
+ }
1565
+ }
1566
+ }];
1567
+ export var paragraph_with_font_size_and_alignment = ['paragraph', {
1568
+ props: {
1569
+ marks: {
1570
+ type: 'array',
1571
+ optional: true,
1572
+ items: [['fontSize', 'alignment']]
1573
+ }
1574
+ }
1575
+ }];
1576
+ export var paragraph_with_font_size_and_indentation = ['paragraph', {
1577
+ props: {
1578
+ marks: {
1579
+ type: 'array',
1580
+ optional: true,
1581
+ items: [['fontSize', 'indentation']]
1582
+ }
1583
+ }
1584
+ }];
1542
1585
  export var paragraph_with_indentation = ['paragraph', {
1543
1586
  props: {
1544
1587
  marks: {
@@ -1764,7 +1807,7 @@ export var tableCell = {
1764
1807
  },
1765
1808
  content: {
1766
1809
  type: 'array',
1767
- 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']],
1810
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_font_size_and_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']],
1768
1811
  minItems: 1,
1769
1812
  allowUnsupportedBlock: true
1770
1813
  }
@@ -1807,7 +1850,7 @@ export var tableHeader = {
1807
1850
  },
1808
1851
  content: {
1809
1852
  type: 'array',
1810
- 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']],
1853
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_font_size_and_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']],
1811
1854
  minItems: 1
1812
1855
  }
1813
1856
  },
@@ -1881,6 +1924,16 @@ export var taskList = {
1881
1924
  }
1882
1925
  }
1883
1926
  };
1927
+ export var taskList_with_flexible_first_child = ['taskList', {
1928
+ props: {
1929
+ content: {
1930
+ type: 'array',
1931
+ items: [['taskItem', 'taskList', 'blockTaskItem']],
1932
+ minItems: 1,
1933
+ allowUnsupportedBlock: true
1934
+ }
1935
+ }
1936
+ }];
1884
1937
  export var text = {
1885
1938
  props: {
1886
1939
  type: {