@atlaskit/adf-schema 52.9.4 → 52.10.1

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 (53) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/index.js +30 -0
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +126 -1
  4. package/dist/cjs/next-schema/nodes/layoutColumn.js +29 -14
  5. package/dist/cjs/next-schema/nodes/tableNodes.js +63 -62
  6. package/dist/cjs/schema/default-schema.js +3 -2
  7. package/dist/cjs/schema/index.js +30 -0
  8. package/dist/cjs/schema/nodes/index.js +30 -0
  9. package/dist/cjs/schema/nodes/layout-column.js +87 -54
  10. package/dist/cjs/schema/nodes/tableNodes.js +69 -1
  11. package/dist/cjs/schema/nodes/types/valign.js +20 -0
  12. package/dist/cjs/validator-schema/generated/validatorSpec.js +15 -0
  13. package/dist/es2019/index.js +1 -1
  14. package/dist/es2019/next-schema/generated/nodeTypes.js +125 -0
  15. package/dist/es2019/next-schema/nodes/layoutColumn.js +25 -13
  16. package/dist/es2019/next-schema/nodes/tableNodes.js +62 -60
  17. package/dist/es2019/schema/default-schema.js +4 -3
  18. package/dist/es2019/schema/index.js +1 -1
  19. package/dist/es2019/schema/nodes/index.js +2 -2
  20. package/dist/es2019/schema/nodes/layout-column.js +79 -58
  21. package/dist/es2019/schema/nodes/tableNodes.js +61 -1
  22. package/dist/es2019/schema/nodes/types/valign.js +14 -0
  23. package/dist/es2019/validator-schema/generated/validatorSpec.js +15 -0
  24. package/dist/esm/index.js +1 -1
  25. package/dist/esm/next-schema/generated/nodeTypes.js +125 -0
  26. package/dist/esm/next-schema/nodes/layoutColumn.js +28 -14
  27. package/dist/esm/next-schema/nodes/tableNodes.js +63 -62
  28. package/dist/esm/schema/default-schema.js +4 -3
  29. package/dist/esm/schema/index.js +1 -1
  30. package/dist/esm/schema/nodes/index.js +2 -2
  31. package/dist/esm/schema/nodes/layout-column.js +85 -54
  32. package/dist/esm/schema/nodes/tableNodes.js +69 -1
  33. package/dist/esm/schema/nodes/types/valign.js +14 -0
  34. package/dist/esm/validator-schema/generated/validatorSpec.js +15 -0
  35. package/dist/json-schema/v1/stage-0.json +9 -0
  36. package/dist/types/index.d.ts +1 -1
  37. package/dist/types/next-schema/generated/nodeTypes.d.ts +77 -5
  38. package/dist/types/schema/index.d.ts +2 -2
  39. package/dist/types/schema/nodes/index.d.ts +6 -6
  40. package/dist/types/schema/nodes/layout-column.d.ts +7 -0
  41. package/dist/types/schema/nodes/tableNodes.d.ts +10 -0
  42. package/dist/types/schema/nodes/types/valign.d.ts +6 -0
  43. package/dist/types/validator-schema/generated/validatorSpec.d.ts +15 -0
  44. package/dist/types-ts4.5/index.d.ts +1 -1
  45. package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +77 -5
  46. package/dist/types-ts4.5/schema/index.d.ts +2 -2
  47. package/dist/types-ts4.5/schema/nodes/index.d.ts +6 -6
  48. package/dist/types-ts4.5/schema/nodes/layout-column.d.ts +7 -0
  49. package/dist/types-ts4.5/schema/nodes/tableNodes.d.ts +10 -0
  50. package/dist/types-ts4.5/schema/nodes/types/valign.d.ts +6 -0
  51. package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +15 -0
  52. package/json-schema/v1/stage-0.json +9 -0
  53. package/package.json +2 -2
@@ -6,7 +6,8 @@ import { hexToEditorBackgroundPaletteRawValue } from '../../utils/editor-palette
6
6
  import { B100, B50, B75, G200, G50, G75, hexToRgba, isHex, isRgb, N0, N20, N60, N800, P100, P50, P75, R100, R50, R75, rgbToHex, T100, T50, T75, Y200, Y50, Y75 } from '../../utils/colors';
7
7
  import { uuid } from '../../utils/uuid';
8
8
  import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
9
- import { table as tableFactory, tableWithNestedTable as tableWithNestedTableFactory, tableRow as tableRowFactory, tableRowWithNestedTable as tableRowWithNestedTableFactory, tableHeader as tableHeaderFactory, tableHeaderWithNestedTable as tableHeaderWithNestedTableFactory, tableCell as tableCellFactory, tableCellWithNestedTable as tableCellWithNestedTableFactory } from '../../next-schema/generated/nodeTypes';
9
+ import { table as tableFactory, tableWithNestedTable as tableWithNestedTableFactory, tableRow as tableRowFactory, tableRowWithNestedTable as tableRowWithNestedTableFactory, tableHeader as tableHeaderFactory, tableHeaderWithNestedTable as tableHeaderWithNestedTableFactory, tableHeaderWithNestedTableStage0 as tableHeaderWithNestedTableStage0Factory, tableHeaderStage0 as tableHeaderStage0Factory, tableCell as tableCellFactory, tableCellWithNestedTable as tableCellWithNestedTableFactory, tableCellWithNestedTableStage0 as tableCellWithNestedTableStage0Factory, tableCellStage0 as tableCellStage0Factory } from '../../next-schema/generated/nodeTypes';
10
+ import { parseValign } from './types/valign';
10
11
  export var tablePrefixSelector = 'pm-table';
11
12
  export var tableCellSelector = "".concat(tablePrefixSelector, "-cell-content-wrap");
12
13
  export var tableHeaderSelector = "".concat(tablePrefixSelector, "-header-content-wrap");
@@ -184,6 +185,25 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
184
185
  }
185
186
  return attrs;
186
187
  };
188
+ var getCellAttrsWithValign = function getCellAttrsWithValign(dom, defaultValues) {
189
+ var base = getCellAttrs(dom, defaultValues);
190
+ var valign = parseValign(dom.getAttribute('data-valign'));
191
+ return valign ? _objectSpread(_objectSpread({}, base), {}, {
192
+ valign: valign
193
+ }) : base;
194
+ };
195
+
196
+ /**
197
+ * @stage 0
198
+ * Valign-aware variant of getCellDomAttrs — emits the `valign` HTML attribute when set to a non-default value.
199
+ */
200
+ var getCellDomAttrsWithValign = function getCellDomAttrsWithValign(node) {
201
+ var attrs = getCellDomAttrs(node);
202
+ if (node.attrs.valign) {
203
+ attrs['data-valign'] = node.attrs.valign;
204
+ }
205
+ return attrs;
206
+ };
187
207
  export var tableBackgroundColorPalette = new Map();
188
208
  export var tableBackgroundBorderColor = hexToRgba(N800, 0.12) || N0;
189
209
  export var tableBackgroundColorNames = new Map();
@@ -303,6 +323,10 @@ var cellAttrs = {
303
323
  localId: {
304
324
  default: null,
305
325
  optional: true
326
+ },
327
+ valign: {
328
+ default: null,
329
+ optional: true
306
330
  }
307
331
  };
308
332
  var tableCellNodeSpecOptions = {
@@ -358,6 +382,50 @@ export var tableWithNestedTable = tableWithNestedTableFactory(tableNodeSpecOptio
358
382
  export var tableRowWithNestedTable = tableRowWithNestedTableFactory(tableRowNodeSpecOptions);
359
383
  export var tableCellWithNestedTable = tableCellWithNestedTableFactory(tableCellNodeSpecOptions);
360
384
  export var tableHeaderWithNestedTable = tableHeaderWithNestedTableFactory(tableHeaderNodeSpecOptions);
385
+
386
+ // stage-0 table cell nodes with vertical alignment and localId support
387
+ var tableCellNodeStage0SpecOptions = {
388
+ parseDOM: [
389
+ // Ignore number cell copied from renderer
390
+ {
391
+ tag: '.ak-renderer-table-number-column',
392
+ ignore: true
393
+ }, {
394
+ tag: 'td',
395
+ getAttrs: function getAttrs(dom) {
396
+ return getCellAttrsWithValign(
397
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
398
+ dom, {
399
+ localId: uuid.generate()
400
+ });
401
+ }
402
+ }],
403
+ toDOM: function toDOM(node) {
404
+ return ['td', getCellDomAttrsWithValign(node), 0];
405
+ }
406
+ };
407
+ var tableHeaderNodeStage0SpecOptions = {
408
+ parseDOM: [{
409
+ tag: 'th',
410
+ getAttrs: function getAttrs(dom) {
411
+ return (
412
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
413
+ getCellAttrsWithValign(dom, {
414
+ background: DEFAULT_TABLE_HEADER_CELL_BACKGROUND,
415
+ localId: uuid.generate()
416
+ })
417
+ );
418
+ }
419
+ }],
420
+ toDOM: function toDOM(node) {
421
+ return ['th', getCellDomAttrsWithValign(node), 0];
422
+ }
423
+ };
424
+ export var tableCellStage0 = tableCellStage0Factory(tableCellNodeStage0SpecOptions);
425
+ export var tableHeaderStage0 = tableHeaderStage0Factory(tableHeaderNodeStage0SpecOptions);
426
+ export var tableCellWithNestedTableStage0 = tableCellWithNestedTableStage0Factory(tableCellNodeStage0SpecOptions);
427
+ export var tableHeaderWithNestedTableStage0 = tableHeaderWithNestedTableStage0Factory(tableHeaderNodeStage0SpecOptions);
428
+
361
429
  // table nodes with localId support
362
430
  var tableRowNodeSpecOptionsWithLocalId = {
363
431
  parseDOM: [{
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Parses a raw DOM attribute string into a valid {@link Valign}, or `undefined` if
3
+ * the value is absent or not one of the allowed values.
4
+ */
5
+ export var parseValign = function parseValign(raw) {
6
+ switch (raw) {
7
+ case 'top':
8
+ case 'middle':
9
+ case 'bottom':
10
+ return raw;
11
+ default:
12
+ return undefined;
13
+ }
14
+ };
@@ -992,6 +992,11 @@ export var layoutColumn = {
992
992
  optional: true,
993
993
  type: 'string'
994
994
  },
995
+ valign: {
996
+ optional: true,
997
+ type: 'enum',
998
+ values: ['top', 'middle', 'bottom']
999
+ },
995
1000
  width: {
996
1001
  maximum: 100,
997
1002
  minimum: 0,
@@ -1832,6 +1837,11 @@ export var tableCell = {
1832
1837
  rowspan: {
1833
1838
  optional: true,
1834
1839
  type: 'number'
1840
+ },
1841
+ valign: {
1842
+ optional: true,
1843
+ type: 'enum',
1844
+ values: ['top', 'middle', 'bottom']
1835
1845
  }
1836
1846
  }
1837
1847
  },
@@ -1875,6 +1885,11 @@ export var tableHeader = {
1875
1885
  rowspan: {
1876
1886
  optional: true,
1877
1887
  type: 'number'
1888
+ },
1889
+ valign: {
1890
+ optional: true,
1891
+ type: 'enum',
1892
+ values: ['top', 'middle', 'bottom']
1878
1893
  }
1879
1894
  }
1880
1895
  },
@@ -1787,6 +1787,9 @@
1787
1787
  },
1788
1788
  "localId": {
1789
1789
  "type": "string"
1790
+ },
1791
+ "valign": {
1792
+ "enum": ["top", "middle", "bottom"]
1790
1793
  }
1791
1794
  },
1792
1795
  "required": ["width"],
@@ -3004,6 +3007,9 @@
3004
3007
  },
3005
3008
  "localId": {
3006
3009
  "type": "string"
3010
+ },
3011
+ "valign": {
3012
+ "enum": ["top", "middle", "bottom"]
3007
3013
  }
3008
3014
  },
3009
3015
  "additionalProperties": false
@@ -3041,6 +3047,9 @@
3041
3047
  },
3042
3048
  "localId": {
3043
3049
  "type": "string"
3050
+ },
3051
+ "valign": {
3052
+ "enum": ["top", "middle", "bottom"]
3044
3053
  }
3045
3054
  },
3046
3055
  "additionalProperties": false
@@ -1,6 +1,6 @@
1
1
  export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, 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, 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, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } 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, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, 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, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './schema';
4
4
  export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FontSizeMarkAttrs, FontSizeMarkDefinition, 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';
@@ -468,9 +468,21 @@ export interface LayoutColumnDefinition {
468
468
  }
469
469
  export type LayoutColumnNode = PMNode & LayoutColumnDefinition;
470
470
  export declare const layoutColumn: PMNodeSpecFactoryInstance<LayoutColumnNode>;
471
+ export interface LayoutColumnStage0Definition {
472
+ type: 'layoutColumn';
473
+ content: Array<BlockDefinition | UnsupportedBlockDefinition>;
474
+ marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
475
+ attrs: {
476
+ width: number;
477
+ localId?: string;
478
+ valign?: 'top' | 'middle' | 'bottom';
479
+ };
480
+ }
481
+ export type LayoutColumnStage0Node = PMNode & LayoutColumnStage0Definition;
482
+ export declare const layoutColumnStage0: PMNodeSpecFactoryInstance<LayoutColumnStage0Node>;
471
483
  export interface LayoutSectionDefinition {
472
484
  type: 'layoutSection';
473
- content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
485
+ content: Array<LayoutColumnDefinition | LayoutColumnStage0Definition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
474
486
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
475
487
  attrs: {
476
488
  localId?: string;
@@ -480,7 +492,7 @@ export type LayoutSectionNode = PMNode & LayoutSectionDefinition;
480
492
  export declare const layoutSection: PMNodeSpecFactoryInstance<LayoutSectionNode>;
481
493
  export interface LayoutSectionFullDefinition {
482
494
  type: 'layoutSection';
483
- content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition>;
495
+ content: Array<LayoutColumnDefinition | LayoutColumnStage0Definition | UnsupportedBlockDefinition>;
484
496
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
485
497
  attrs: {
486
498
  localId?: string;
@@ -490,7 +502,7 @@ export type LayoutSectionFullNode = PMNode & LayoutSectionFullDefinition;
490
502
  export declare const layoutSectionFull: PMNodeSpecFactoryInstance<LayoutSectionFullNode>;
491
503
  export interface LayoutSectionWithSingleColumnStage0Definition {
492
504
  type: 'layoutSection';
493
- content: Array<LayoutColumnDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
505
+ content: Array<LayoutColumnDefinition | LayoutColumnStage0Definition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
494
506
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
495
507
  attrs: {
496
508
  columnRuleStyle?: 'solid';
@@ -880,6 +892,21 @@ export interface TableCellDefinition {
880
892
  }
881
893
  export type TableCellNode = PMNode & TableCellDefinition;
882
894
  export declare const tableCell: PMNodeSpecFactoryInstance<TableCellNode>;
895
+ export interface TableCellStage0Definition {
896
+ type: 'tableCell';
897
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
898
+ marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
899
+ attrs: {
900
+ colspan?: number;
901
+ rowspan?: number;
902
+ colwidth?: Array<number>;
903
+ background?: string;
904
+ localId?: string;
905
+ valign?: 'top' | 'middle' | 'bottom';
906
+ };
907
+ }
908
+ export type TableCellStage0Node = PMNode & TableCellStage0Definition;
909
+ export declare const tableCellStage0: PMNodeSpecFactoryInstance<TableCellStage0Node>;
883
910
  export interface TableCellWithNestedTableDefinition {
884
911
  type: 'tableCell';
885
912
  content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
@@ -894,6 +921,21 @@ export interface TableCellWithNestedTableDefinition {
894
921
  }
895
922
  export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefinition;
896
923
  export declare const tableCellWithNestedTable: PMNodeSpecFactoryInstance<TableCellWithNestedTableNode>;
924
+ export interface TableCellWithNestedTableStage0Definition {
925
+ type: 'tableCell';
926
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
927
+ marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
928
+ attrs: {
929
+ colspan?: number;
930
+ rowspan?: number;
931
+ colwidth?: Array<number>;
932
+ background?: string;
933
+ localId?: string;
934
+ valign?: 'top' | 'middle' | 'bottom';
935
+ };
936
+ }
937
+ export type TableCellWithNestedTableStage0Node = PMNode & TableCellWithNestedTableStage0Definition;
938
+ export declare const tableCellWithNestedTableStage0: PMNodeSpecFactoryInstance<TableCellWithNestedTableStage0Node>;
897
939
  export interface TableHeaderDefinition {
898
940
  type: 'tableHeader';
899
941
  content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
@@ -908,6 +950,21 @@ export interface TableHeaderDefinition {
908
950
  }
909
951
  export type TableHeaderNode = PMNode & TableHeaderDefinition;
910
952
  export declare const tableHeader: PMNodeSpecFactoryInstance<TableHeaderNode>;
953
+ export interface TableHeaderStage0Definition {
954
+ type: 'tableHeader';
955
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
956
+ marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
957
+ attrs: {
958
+ colspan?: number;
959
+ rowspan?: number;
960
+ colwidth?: Array<number>;
961
+ background?: string;
962
+ localId?: string;
963
+ valign?: 'top' | 'middle' | 'bottom';
964
+ };
965
+ }
966
+ export type TableHeaderStage0Node = PMNode & TableHeaderStage0Definition;
967
+ export declare const tableHeaderStage0: PMNodeSpecFactoryInstance<TableHeaderStage0Node>;
911
968
  export interface TableHeaderWithNestedTableDefinition {
912
969
  type: 'tableHeader';
913
970
  content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
@@ -922,9 +979,24 @@ export interface TableHeaderWithNestedTableDefinition {
922
979
  }
923
980
  export type TableHeaderWithNestedTableNode = PMNode & TableHeaderWithNestedTableDefinition;
924
981
  export declare const tableHeaderWithNestedTable: PMNodeSpecFactoryInstance<TableHeaderWithNestedTableNode>;
982
+ export interface TableHeaderWithNestedTableStage0Definition {
983
+ type: 'tableHeader';
984
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
985
+ marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
986
+ attrs: {
987
+ colspan?: number;
988
+ rowspan?: number;
989
+ colwidth?: Array<number>;
990
+ background?: string;
991
+ localId?: string;
992
+ valign?: 'top' | 'middle' | 'bottom';
993
+ };
994
+ }
995
+ export type TableHeaderWithNestedTableStage0Node = PMNode & TableHeaderWithNestedTableStage0Definition;
996
+ export declare const tableHeaderWithNestedTableStage0: PMNodeSpecFactoryInstance<TableHeaderWithNestedTableStage0Node>;
925
997
  export interface TableRowDefinition {
926
998
  type: 'tableRow';
927
- content: Array<TableCellDefinition | TableHeaderDefinition>;
999
+ content: Array<TableCellDefinition | TableCellStage0Definition | TableHeaderDefinition | TableHeaderStage0Definition>;
928
1000
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
929
1001
  attrs: {
930
1002
  localId?: string;
@@ -934,7 +1006,7 @@ export type TableRowNode = PMNode & TableRowDefinition;
934
1006
  export declare const tableRow: PMNodeSpecFactoryInstance<TableRowNode>;
935
1007
  export interface TableRowWithNestedTableDefinition {
936
1008
  type: 'tableRow';
937
- content: Array<TableCellWithNestedTableDefinition | TableHeaderWithNestedTableDefinition>;
1009
+ content: Array<TableCellWithNestedTableDefinition | TableCellWithNestedTableStage0Definition | TableHeaderWithNestedTableDefinition | TableHeaderWithNestedTableStage0Definition>;
938
1010
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
939
1011
  attrs: {
940
1012
  localId?: string;
@@ -1,4 +1,4 @@
1
- export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, 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, 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';
1
+ export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, 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, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, 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, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './nodes';
2
2
  export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition, } from './nodes';
3
3
  export { AnnotationTypes, alignment, alignmentPositionMap, annotation, fontSize, breakout, code, colorPalette,
4
4
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
@@ -9,4 +9,4 @@ export { inlineNodes } from './inline-nodes';
9
9
  export { createSchema } from './create-schema';
10
10
  export { sanitizeNodes } from './sanitizeNodes';
11
11
  export type { NodeSpecOptions, MarkSpecOptions } from './createPMSpecFactory';
12
- export { createPMNodeSpecFactory, createPMMarkSpecFactory } from './createPMSpecFactory';
12
+ export { createPMNodeSpecFactory, createPMMarkSpecFactory, } from './createPMSpecFactory';
@@ -5,9 +5,9 @@ export { confluenceUnsupportedBlock } from './confluence-unsupported-block';
5
5
  export { confluenceUnsupportedInline } from './confluence-unsupported-inline';
6
6
  export { doc } from './doc';
7
7
  export type { DocNode } from './doc';
8
- export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId } from './blockquote';
8
+ export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, } from './blockquote';
9
9
  export type { BlockQuoteDefinition } from './blockquote';
10
- export { bulletList, bulletListSelector, bulletListWithLocalId } from './bullet-list';
10
+ export { bulletList, bulletListSelector, bulletListWithLocalId, } from './bullet-list';
11
11
  export type { BulletListDefinition } from './types/list';
12
12
  export { codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, toJSON as codeBlockToJSON, } from './code-block';
13
13
  export type { CodeBlockDefinition, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockWithMarksDefinition, } from './code-block';
@@ -25,7 +25,7 @@ export { emoji, emojiWithLocalId } from './emoji';
25
25
  export type { EmojiAttributes, EmojiDefinition } from './emoji';
26
26
  export { image } from './image';
27
27
  export { mention, toJSON as mentionToJSON } from './mention';
28
- export type { MentionAttributes, UserType as MentionUserType, MentionDefinition } from './mention';
28
+ export type { MentionAttributes, UserType as MentionUserType, MentionDefinition, } from './mention';
29
29
  export { listItem, listItemWithLocalId } from './list-item';
30
30
  export type { ListItemArray, ListItemDefinition } from './types/list';
31
31
  export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
@@ -39,11 +39,11 @@ export { media, copyPrivateAttributes as copyPrivateMediaAttributes, toJSON as m
39
39
  export type { MediaType, MediaBaseAttributes, MediaAttributes, ExternalMediaAttributes, DisplayType as MediaDisplayType, MediaDefinition, MediaADFAttrs, } from './media';
40
40
  export { mediaGroup } from './media-group';
41
41
  export { mediaInline } from './media-inline';
42
- export type { MediaInlineAttributes, MediaInlineDefinition } from './media-inline';
42
+ export type { MediaInlineAttributes, MediaInlineDefinition, } from './media-inline';
43
43
  export type { MediaGroupDefinition } from './media-group';
44
44
  export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, toJSON as mediaSingleToJSON, } from './media-single';
45
45
  export type { MediaSingleDefinition } from './media-single';
46
- 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';
46
+ export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, 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';
47
47
  export type { DisplayMode as TableDisplayMode, TableAttributes, CellAttributes, Layout as TableLayout, TableDefinition, TableCell as TableCellDefinition, TableHeader as TableHeaderDefinition, TableRow as TableRowDefinition, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, CellDomAttrs, } from './tableNodes';
48
48
  export { decisionList, decisionListSelector } from './decision-list';
49
49
  export type { DecisionListDefinition } from './decision-list';
@@ -59,7 +59,7 @@ export { placeholder, placeholderWithLocalId } from './placeholder';
59
59
  export type { PlaceholderDefinition } from './placeholder';
60
60
  export { layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, } from './layout-section';
61
61
  export type { LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, } from './layout-section';
62
- export { layoutColumn, layoutColumnWithLocalId } from './layout-column';
62
+ export { layoutColumn, layoutColumnStage0, layoutColumnWithLocalId, } from './layout-column';
63
63
  export type { LayoutColumnDefinition } from './layout-column';
64
64
  export { inlineCard, inlineCardWithLocalId } from './inline-card';
65
65
  export type { InlineCardDefinition } from './inline-card';
@@ -1,11 +1,17 @@
1
1
  import type { BlockContent } from './types/block-content';
2
2
  import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
3
+ import type { Valign } from './types/valign';
3
4
  /**
4
5
  * @name layoutColumn_node
5
6
  */
6
7
  export interface LayoutColumnDefinition {
7
8
  attrs: {
8
9
  localId?: string;
10
+ /**
11
+ // eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
12
+ * @stage 0
13
+ */
14
+ valign?: Valign;
9
15
  /**
10
16
  // eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
11
17
  * @minimum 0
@@ -24,4 +30,5 @@ export interface LayoutColumnDefinition {
24
30
  type: 'layoutColumn';
25
31
  }
26
32
  export declare const layoutColumn: NodeSpec;
33
+ export declare const layoutColumnStage0: NodeSpec;
27
34
  export declare const layoutColumnWithLocalId: NodeSpec;
@@ -15,12 +15,17 @@ import type { BlockCardDefinition as BlockCard } from './block-card';
15
15
  import type { EmbedCardDefinition as EmbedCard } from './embed-card';
16
16
  import type { NestedExpandDefinition as NestedExpand } from './nested-expand';
17
17
  import type { FragmentDefinition } from '../marks/fragment';
18
+ import type { Valign } from './types/valign';
18
19
  export interface CellAttributes {
19
20
  background?: string;
20
21
  colspan?: number;
21
22
  colwidth?: number[];
22
23
  localId?: string;
23
24
  rowspan?: number;
25
+ /**
26
+ * @stage 0
27
+ */
28
+ valign?: Valign;
24
29
  }
25
30
  export declare const tablePrefixSelector = "pm-table";
26
31
  export declare const tableCellSelector: 'pm-table-cell-content-wrap';
@@ -41,6 +46,7 @@ export type CellDomAttrs = {
41
46
  'data-cell-background'?: string;
42
47
  'data-colwidth'?: string;
43
48
  'data-local-id'?: string;
49
+ 'data-valign'?: Valign;
44
50
  rowspan?: string;
45
51
  style?: string;
46
52
  };
@@ -156,6 +162,10 @@ export declare const tableWithNestedTable: NodeSpec;
156
162
  export declare const tableRowWithNestedTable: NodeSpec;
157
163
  export declare const tableCellWithNestedTable: NodeSpec;
158
164
  export declare const tableHeaderWithNestedTable: NodeSpec;
165
+ export declare const tableCellStage0: NodeSpec;
166
+ export declare const tableHeaderStage0: NodeSpec;
167
+ export declare const tableCellWithNestedTableStage0: NodeSpec;
168
+ export declare const tableHeaderWithNestedTableStage0: NodeSpec;
159
169
  export declare const tableRowWithLocalId: NodeSpec;
160
170
  export declare const tableCellWithLocalId: NodeSpec;
161
171
  export declare const tableHeaderWithLocalId: NodeSpec;
@@ -0,0 +1,6 @@
1
+ export type Valign = 'top' | 'middle' | 'bottom';
2
+ /**
3
+ * Parses a raw DOM attribute string into a valid {@link Valign}, or `undefined` if
4
+ * the value is absent or not one of the allowed values.
5
+ */
6
+ export declare const parseValign: (raw: string | null) => Valign | undefined;
@@ -1004,6 +1004,11 @@ export declare const layoutColumn: {
1004
1004
  optional: boolean;
1005
1005
  type: string;
1006
1006
  };
1007
+ valign: {
1008
+ optional: boolean;
1009
+ type: string;
1010
+ values: string[];
1011
+ };
1007
1012
  width: {
1008
1013
  maximum: number;
1009
1014
  minimum: number;
@@ -1852,6 +1857,11 @@ export declare const tableCell: {
1852
1857
  optional: boolean;
1853
1858
  type: string;
1854
1859
  };
1860
+ valign: {
1861
+ optional: boolean;
1862
+ type: string;
1863
+ values: string[];
1864
+ };
1855
1865
  };
1856
1866
  };
1857
1867
  content: {
@@ -1895,6 +1905,11 @@ export declare const tableHeader: {
1895
1905
  optional: boolean;
1896
1906
  type: string;
1897
1907
  };
1908
+ valign: {
1909
+ optional: boolean;
1910
+ type: string;
1911
+ values: string[];
1912
+ };
1898
1913
  };
1899
1914
  };
1900
1915
  content: {
@@ -1,6 +1,6 @@
1
1
  export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, 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, 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, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } 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, layoutColumnStage0, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, 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, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './schema';
4
4
  export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FontSizeMarkAttrs, FontSizeMarkDefinition, 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';