@atlaskit/adf-schema 55.2.1 → 56.0.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.
@@ -2,7 +2,7 @@ import { hexToEditorBackgroundPaletteRawValue } from '../../utils/editor-palette
2
2
  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';
3
3
  import { uuid } from '../../utils/uuid';
4
4
  import { getDarkModeLCHColor } from '../../utils/lch-color-inversion';
5
- 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';
5
+ 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';
6
6
  import { parseValign } from './types/valign';
7
7
  export const tablePrefixSelector = 'pm-table';
8
8
 
@@ -44,6 +44,7 @@ export const getCellAttrs = (dom, defaultValues = {}) => {
44
44
  }
45
45
  const backgroundHexCode = dataCellBackgroundHexCode || (backgroundColor && backgroundColor !== defaultValues['background'] ? backgroundColor : null);
46
46
  const localId = defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.localId;
47
+ const valign = parseValign(dom.getAttribute('data-valign'));
47
48
  return {
48
49
  colspan,
49
50
  rowspan: Number(dom.getAttribute('rowspan') || 1),
@@ -51,6 +52,9 @@ export const getCellAttrs = (dom, defaultValues = {}) => {
51
52
  background: backgroundHexCode,
52
53
  ...(localId && {
53
54
  localId
55
+ }),
56
+ ...(valign && {
57
+ valign
54
58
  })
55
59
  };
56
60
  };
@@ -182,23 +186,6 @@ export const getCellDomAttrs = node => {
182
186
  if (node !== null && node !== void 0 && (_node$attrs = node.attrs) !== null && _node$attrs !== void 0 && _node$attrs.localId) {
183
187
  attrs['data-local-id'] = node.attrs.localId;
184
188
  }
185
- return attrs;
186
- };
187
- const getCellAttrsWithValign = (dom, defaultValues) => {
188
- const base = getCellAttrs(dom, defaultValues);
189
- const valign = parseValign(dom.getAttribute('data-valign'));
190
- return valign ? {
191
- ...base,
192
- 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
- const getCellDomAttrsWithValign = node => {
201
- const attrs = getCellDomAttrs(node);
202
189
  if (node.attrs.valign) {
203
190
  attrs['data-valign'] = node.attrs.valign;
204
191
  }
@@ -364,40 +351,6 @@ export const tableRowWithNestedTable = tableRowWithNestedTableFactory(tableRowNo
364
351
  export const tableCellWithNestedTable = tableCellWithNestedTableFactory(tableCellNodeSpecOptions);
365
352
  export const tableHeaderWithNestedTable = tableHeaderWithNestedTableFactory(tableHeaderNodeSpecOptions);
366
353
 
367
- // stage-0 table cell nodes with vertical alignment and localId support
368
- const tableCellNodeStage0SpecOptions = {
369
- parseDOM: [
370
- // Ignore number cell copied from renderer
371
- {
372
- tag: '.ak-renderer-table-number-column',
373
- ignore: true
374
- }, {
375
- tag: 'td',
376
- getAttrs: dom => getCellAttrsWithValign(
377
- // eslint-disable-next-line @atlaskit/editor/no-as-casting
378
- dom, {
379
- localId: uuid.generate()
380
- })
381
- }],
382
- toDOM: node => ['td', getCellDomAttrsWithValign(node), 0]
383
- };
384
- const tableHeaderNodeStage0SpecOptions = {
385
- parseDOM: [{
386
- tag: 'th',
387
- getAttrs: dom =>
388
- // eslint-disable-next-line @atlaskit/editor/no-as-casting
389
- getCellAttrsWithValign(dom, {
390
- background: DEFAULT_TABLE_HEADER_CELL_BACKGROUND,
391
- localId: uuid.generate()
392
- })
393
- }],
394
- toDOM: node => ['th', getCellDomAttrsWithValign(node), 0]
395
- };
396
- export const tableCellStage0 = tableCellStage0Factory(tableCellNodeStage0SpecOptions);
397
- export const tableHeaderStage0 = tableHeaderStage0Factory(tableHeaderNodeStage0SpecOptions);
398
- export const tableCellWithNestedTableStage0 = tableCellWithNestedTableStage0Factory(tableCellNodeStage0SpecOptions);
399
- export const tableHeaderWithNestedTableStage0 = tableHeaderWithNestedTableStage0Factory(tableHeaderNodeStage0SpecOptions);
400
-
401
354
  // table nodes with localId support
402
355
  const tableRowNodeSpecOptionsWithLocalId = {
403
356
  parseDOM: [{
@@ -445,4 +398,19 @@ export const tableHeaderWithLocalId = tableHeaderFactory(tableHeaderNodeSpecOpti
445
398
  // nested table nodes with localId support
446
399
  export const tableRowWithNestedTableWithLocalId = tableRowWithNestedTableFactory(tableRowNodeSpecOptionsWithLocalId);
447
400
  export const tableCellWithNestedTableWithLocalId = tableCellWithNestedTableFactory(tableCellNodeSpecOptionsWithLocalId);
448
- export const tableHeaderWithNestedTableWithLocalId = tableHeaderWithNestedTableFactory(tableHeaderNodeSpecOptionsWithLocalId);
401
+ export const tableHeaderWithNestedTableWithLocalId = tableHeaderWithNestedTableFactory(tableHeaderNodeSpecOptionsWithLocalId);
402
+
403
+ // `valign` is now in the full schema; the `*Stage0` exports are kept as aliases
404
+ // of the `*WithLocalId` specs for backwards compatibility.
405
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
406
+ /** @deprecated [EDITOR-7723] use `tableCellWithLocalId` */
407
+ export const tableCellStage0 = tableCellWithLocalId;
408
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
409
+ /** @deprecated [EDITOR-7723] use `tableHeaderWithLocalId` */
410
+ export const tableHeaderStage0 = tableHeaderWithLocalId;
411
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
412
+ /** @deprecated [EDITOR-7723] use `tableCellWithNestedTableWithLocalId` */
413
+ export const tableCellWithNestedTableStage0 = tableCellWithNestedTableWithLocalId;
414
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
415
+ /** @deprecated [EDITOR-7723] use `tableHeaderWithNestedTableWithLocalId` */
416
+ export const tableHeaderWithNestedTableStage0 = tableHeaderWithNestedTableWithLocalId;
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumn as layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTableStage0, tableHeader, tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline } from '../next-schema/generated/nodeTypes';
2
+ export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumn as layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCell as tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTable as tableCellWithNestedTableStage0, tableHeader, tableHeader as tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTable as tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline } from '../next-schema/generated/nodeTypes';
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette, colorPaletteNew,
2
+ export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette,
3
3
  // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
4
4
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
5
- 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, extendedPanelC1, extendedPanelC1WithLocalId, 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, backgroundColorPaletteNew, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './schema';
5
+ 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, extendedPanelC1, extendedPanelC1WithLocalId, 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';
6
6
  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';
7
7
 
8
8
  // ADF createPMSpecFactory
@@ -1210,30 +1210,6 @@ export var tableWithNestedTable = createPMNodeSpecFactory({
1210
1210
  tableRole: 'table'
1211
1211
  });
1212
1212
  export var tableCell = createPMNodeSpecFactory({
1213
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
1214
- marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1215
- attrs: {
1216
- colspan: {
1217
- default: 1
1218
- },
1219
- rowspan: {
1220
- default: 1
1221
- },
1222
- colwidth: {
1223
- default: null
1224
- },
1225
- background: {
1226
- default: null
1227
- },
1228
- localId: {
1229
- default: null
1230
- }
1231
- },
1232
- selectable: false,
1233
- isolating: true,
1234
- tableRole: 'cell'
1235
- });
1236
- export var tableCellStage0 = createPMNodeSpecFactory({
1237
1213
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
1238
1214
  marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1239
1215
  attrs: {
@@ -1261,30 +1237,6 @@ export var tableCellStage0 = createPMNodeSpecFactory({
1261
1237
  tableRole: 'cell'
1262
1238
  });
1263
1239
  export var tableCellWithNestedTable = createPMNodeSpecFactory({
1264
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock | table)+',
1265
- marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1266
- attrs: {
1267
- colspan: {
1268
- default: 1
1269
- },
1270
- rowspan: {
1271
- default: 1
1272
- },
1273
- colwidth: {
1274
- default: null
1275
- },
1276
- background: {
1277
- default: null
1278
- },
1279
- localId: {
1280
- default: null
1281
- }
1282
- },
1283
- selectable: false,
1284
- isolating: true,
1285
- tableRole: 'cell'
1286
- });
1287
- export var tableCellWithNestedTableStage0 = createPMNodeSpecFactory({
1288
1240
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock | table)+',
1289
1241
  marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1290
1242
  attrs: {
@@ -1312,30 +1264,6 @@ export var tableCellWithNestedTableStage0 = createPMNodeSpecFactory({
1312
1264
  tableRole: 'cell'
1313
1265
  });
1314
1266
  export var tableHeader = createPMNodeSpecFactory({
1315
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
1316
- marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1317
- attrs: {
1318
- colspan: {
1319
- default: 1
1320
- },
1321
- rowspan: {
1322
- default: 1
1323
- },
1324
- colwidth: {
1325
- default: null
1326
- },
1327
- background: {
1328
- default: null
1329
- },
1330
- localId: {
1331
- default: null
1332
- }
1333
- },
1334
- selectable: false,
1335
- isolating: true,
1336
- tableRole: 'header_cell'
1337
- });
1338
- export var tableHeaderStage0 = createPMNodeSpecFactory({
1339
1267
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
1340
1268
  marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1341
1269
  attrs: {
@@ -1363,30 +1291,6 @@ export var tableHeaderStage0 = createPMNodeSpecFactory({
1363
1291
  tableRole: 'header_cell'
1364
1292
  });
1365
1293
  export var tableHeaderWithNestedTable = createPMNodeSpecFactory({
1366
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | table)+',
1367
- marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1368
- attrs: {
1369
- colspan: {
1370
- default: 1
1371
- },
1372
- rowspan: {
1373
- default: 1
1374
- },
1375
- colwidth: {
1376
- default: null
1377
- },
1378
- background: {
1379
- default: null
1380
- },
1381
- localId: {
1382
- default: null
1383
- }
1384
- },
1385
- selectable: false,
1386
- isolating: true,
1387
- tableRole: 'header_cell'
1388
- });
1389
- export var tableHeaderWithNestedTableStage0 = createPMNodeSpecFactory({
1390
1294
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | table)+',
1391
1295
  marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1392
1296
  attrs: {
@@ -1,7 +1,4 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- 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; }
4
- 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; }
5
2
  import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
6
3
  import { fragment } from '../marks/fragment';
7
4
  import { unsupportedMark } from '../marks/unsupportedMark';
@@ -47,7 +44,8 @@ var cellAttributes = {
47
44
  type: 'string',
48
45
  default: null,
49
46
  optional: true
50
- }
47
+ },
48
+ valign: valign
51
49
  };
52
50
  var tableCell = adfNode('tableCell').define({
53
51
  isolating: true,
@@ -56,11 +54,6 @@ var tableCell = adfNode('tableCell').define({
56
54
  marks: [unsupportedMark, unsupportedNodeAttribute],
57
55
  attrs: cellAttributes,
58
56
  content: [tableCellContentPseudoGroup],
59
- stage0: {
60
- attrs: _objectSpread(_objectSpread({}, cellAttributes), {}, {
61
- valign: valign
62
- })
63
- },
64
57
  DANGEROUS_MANUAL_OVERRIDE: {
65
58
  'validator-spec': {
66
59
  required: {
@@ -71,12 +64,7 @@ var tableCell = adfNode('tableCell').define({
71
64
  }
72
65
  }).variant('with_nested_table', {
73
66
  content: [$onePlus($or.apply(void 0, _toConsumableArray(tableCellContentNodes).concat([unsupportedBlock, table])))],
74
- ignore: ['json-schema', 'validator-spec'],
75
- stage0: {
76
- attrs: _objectSpread(_objectSpread({}, cellAttributes), {}, {
77
- valign: valign
78
- })
79
- }
67
+ ignore: ['json-schema', 'validator-spec']
80
68
  });
81
69
  var tableHeader = adfNode('tableHeader').define({
82
70
  isolating: true,
@@ -85,11 +73,6 @@ var tableHeader = adfNode('tableHeader').define({
85
73
  marks: [unsupportedMark, unsupportedNodeAttribute],
86
74
  attrs: cellAttributes,
87
75
  content: [tableHeaderContentPseudoGroup],
88
- stage0: {
89
- attrs: _objectSpread(_objectSpread({}, cellAttributes), {}, {
90
- valign: valign
91
- })
92
- },
93
76
  DANGEROUS_MANUAL_OVERRIDE: {
94
77
  'validator-spec': {
95
78
  required: {
@@ -100,12 +83,7 @@ var tableHeader = adfNode('tableHeader').define({
100
83
  }
101
84
  }).variant('with_nested_table', {
102
85
  content: [$onePlus($or.apply(void 0, _toConsumableArray(tableCellContentNodes).concat([nestedExpand, table])))],
103
- ignore: ['json-schema', 'validator-spec'],
104
- stage0: {
105
- attrs: _objectSpread(_objectSpread({}, cellAttributes), {}, {
106
- valign: valign
107
- })
108
- }
86
+ ignore: ['json-schema', 'validator-spec']
109
87
  });
110
88
  var tableRow = adfNode('tableRow').define({
111
89
  selectable: false,
@@ -6,7 +6,7 @@ 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, tableHeaderWithNestedTableStage0 as tableHeaderWithNestedTableStage0Factory, tableHeaderStage0 as tableHeaderStage0Factory, tableCell as tableCellFactory, tableCellWithNestedTable as tableCellWithNestedTableFactory, tableCellWithNestedTableStage0 as tableCellWithNestedTableStage0Factory, tableCellStage0 as tableCellStage0Factory } 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, tableCell as tableCellFactory, tableCellWithNestedTable as tableCellWithNestedTableFactory } from '../../next-schema/generated/nodeTypes';
10
10
  import { parseValign } from './types/valign';
11
11
  export var tablePrefixSelector = 'pm-table';
12
12
 
@@ -49,13 +49,16 @@ export var getCellAttrs = function getCellAttrs(dom) {
49
49
  }
50
50
  var backgroundHexCode = dataCellBackgroundHexCode || (backgroundColor && backgroundColor !== defaultValues['background'] ? backgroundColor : null);
51
51
  var localId = defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.localId;
52
- return _objectSpread({
52
+ var valign = parseValign(dom.getAttribute('data-valign'));
53
+ return _objectSpread(_objectSpread({
53
54
  colspan: colspan,
54
55
  rowspan: Number(dom.getAttribute('rowspan') || 1),
55
56
  colwidth: width && width.length === colspan ? width : null,
56
57
  background: backgroundHexCode
57
58
  }, localId && {
58
59
  localId: localId
60
+ }), valign && {
61
+ valign: valign
59
62
  });
60
63
  };
61
64
  // these are for test only
@@ -184,22 +187,6 @@ export var getCellDomAttrs = function getCellDomAttrs(node) {
184
187
  if (node !== null && node !== void 0 && (_node$attrs = node.attrs) !== null && _node$attrs !== void 0 && _node$attrs.localId) {
185
188
  attrs['data-local-id'] = node.attrs.localId;
186
189
  }
187
- return attrs;
188
- };
189
- var getCellAttrsWithValign = function getCellAttrsWithValign(dom, defaultValues) {
190
- var base = getCellAttrs(dom, defaultValues);
191
- var valign = parseValign(dom.getAttribute('data-valign'));
192
- return valign ? _objectSpread(_objectSpread({}, base), {}, {
193
- valign: valign
194
- }) : base;
195
- };
196
-
197
- /**
198
- * @stage 0
199
- * Valign-aware variant of getCellDomAttrs — emits the `valign` HTML attribute when set to a non-default value.
200
- */
201
- var getCellDomAttrsWithValign = function getCellDomAttrsWithValign(node) {
202
- var attrs = getCellDomAttrs(node);
203
190
  if (node.attrs.valign) {
204
191
  attrs['data-valign'] = node.attrs.valign;
205
192
  }
@@ -384,49 +371,6 @@ export var tableRowWithNestedTable = tableRowWithNestedTableFactory(tableRowNode
384
371
  export var tableCellWithNestedTable = tableCellWithNestedTableFactory(tableCellNodeSpecOptions);
385
372
  export var tableHeaderWithNestedTable = tableHeaderWithNestedTableFactory(tableHeaderNodeSpecOptions);
386
373
 
387
- // stage-0 table cell nodes with vertical alignment and localId support
388
- var tableCellNodeStage0SpecOptions = {
389
- parseDOM: [
390
- // Ignore number cell copied from renderer
391
- {
392
- tag: '.ak-renderer-table-number-column',
393
- ignore: true
394
- }, {
395
- tag: 'td',
396
- getAttrs: function getAttrs(dom) {
397
- return getCellAttrsWithValign(
398
- // eslint-disable-next-line @atlaskit/editor/no-as-casting
399
- dom, {
400
- localId: uuid.generate()
401
- });
402
- }
403
- }],
404
- toDOM: function toDOM(node) {
405
- return ['td', getCellDomAttrsWithValign(node), 0];
406
- }
407
- };
408
- var tableHeaderNodeStage0SpecOptions = {
409
- parseDOM: [{
410
- tag: 'th',
411
- getAttrs: function getAttrs(dom) {
412
- return (
413
- // eslint-disable-next-line @atlaskit/editor/no-as-casting
414
- getCellAttrsWithValign(dom, {
415
- background: DEFAULT_TABLE_HEADER_CELL_BACKGROUND,
416
- localId: uuid.generate()
417
- })
418
- );
419
- }
420
- }],
421
- toDOM: function toDOM(node) {
422
- return ['th', getCellDomAttrsWithValign(node), 0];
423
- }
424
- };
425
- export var tableCellStage0 = tableCellStage0Factory(tableCellNodeStage0SpecOptions);
426
- export var tableHeaderStage0 = tableHeaderStage0Factory(tableHeaderNodeStage0SpecOptions);
427
- export var tableCellWithNestedTableStage0 = tableCellWithNestedTableStage0Factory(tableCellNodeStage0SpecOptions);
428
- export var tableHeaderWithNestedTableStage0 = tableHeaderWithNestedTableStage0Factory(tableHeaderNodeStage0SpecOptions);
429
-
430
374
  // table nodes with localId support
431
375
  var tableRowNodeSpecOptionsWithLocalId = {
432
376
  parseDOM: [{
@@ -484,4 +428,19 @@ export var tableHeaderWithLocalId = tableHeaderFactory(tableHeaderNodeSpecOption
484
428
  // nested table nodes with localId support
485
429
  export var tableRowWithNestedTableWithLocalId = tableRowWithNestedTableFactory(tableRowNodeSpecOptionsWithLocalId);
486
430
  export var tableCellWithNestedTableWithLocalId = tableCellWithNestedTableFactory(tableCellNodeSpecOptionsWithLocalId);
487
- export var tableHeaderWithNestedTableWithLocalId = tableHeaderWithNestedTableFactory(tableHeaderNodeSpecOptionsWithLocalId);
431
+ export var tableHeaderWithNestedTableWithLocalId = tableHeaderWithNestedTableFactory(tableHeaderNodeSpecOptionsWithLocalId);
432
+
433
+ // `valign` is now in the full schema; the `*Stage0` exports are kept as aliases
434
+ // of the `*WithLocalId` specs for backwards compatibility.
435
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
436
+ /** @deprecated [EDITOR-7723] use `tableCellWithLocalId` */
437
+ export var tableCellStage0 = tableCellWithLocalId;
438
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
439
+ /** @deprecated [EDITOR-7723] use `tableHeaderWithLocalId` */
440
+ export var tableHeaderStage0 = tableHeaderWithLocalId;
441
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
442
+ /** @deprecated [EDITOR-7723] use `tableCellWithNestedTableWithLocalId` */
443
+ export var tableCellWithNestedTableStage0 = tableCellWithNestedTableWithLocalId;
444
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
445
+ /** @deprecated [EDITOR-7723] use `tableHeaderWithNestedTableWithLocalId` */
446
+ export var tableHeaderWithNestedTableStage0 = tableHeaderWithNestedTableWithLocalId;
@@ -2711,6 +2711,9 @@
2711
2711
  },
2712
2712
  "localId": {
2713
2713
  "type": "string"
2714
+ },
2715
+ "valign": {
2716
+ "enum": ["top", "middle", "bottom"]
2714
2717
  }
2715
2718
  },
2716
2719
  "additionalProperties": false
@@ -2748,6 +2751,9 @@
2748
2751
  },
2749
2752
  "localId": {
2750
2753
  "type": "string"
2754
+ },
2755
+ "valign": {
2756
+ "enum": ["top", "middle", "bottom"]
2751
2757
  }
2752
2758
  },
2753
2759
  "additionalProperties": false
@@ -1,2 +1,2 @@
1
- export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumn as layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTableStage0, tableHeader, tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline, } from '../next-schema/generated/nodeTypes';
2
- export type { BlockCardNodeAttributes0, BlockCardNodeAttributes1, BlockCardNodeAttributes2, BlockCardDefinition, BlockCardNode, BlockquoteDefinition, BlockquoteNode, BlockquoteLegacyDefinition, BlockquoteLegacyNode, BlockTaskItemDefinition, BlockTaskItemNode, BodiedExtensionDefinition, BodiedExtensionNode, BodiedExtensionWithMarksDefinition, BodiedExtensionWithMarksNode, BodiedSyncBlockDefinition, BodiedSyncBlockNode, BulletListDefinition, BulletListNode, CaptionDefinition, CaptionNode, CodeBlockDefinition, CodeBlockNode, CodeBlockRootOnlyDefinition, CodeBlockRootOnlyNode, ConfluenceJiraIssueDefinition, ConfluenceJiraIssueNode, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedBlockNode, ConfluenceUnsupportedInlineDefinition, ConfluenceUnsupportedInlineNode, DateDefinition, DateNode, DateStage0Definition, DateStage0Node, DecisionItemDefinition, DecisionItemNode, DecisionListDefinition, DecisionListNode, DocDefinition, DocNode, EmbedCardDefinition, EmbedCardNode, EmojiDefinition, EmojiNode, EmojiStage0Definition, EmojiStage0Node, ExpandDefinition, ExpandNode, ExpandRootOnlyDefinition, ExpandRootOnlyNode, ExtensionDefinition, ExtensionNode, ExtensionWithMarksDefinition, ExtensionWithMarksNode, ExtensionFrameStage0Definition, ExtensionFrameStage0Node, HardBreakDefinition, HardBreakNode, HeadingDefinition, HeadingNode, HeadingWithAlignmentDefinition, HeadingWithAlignmentNode, HeadingWithIndentationDefinition, HeadingWithIndentationNode, HeadingWithNoMarksDefinition, HeadingWithNoMarksNode, ImageDefinition, ImageNode, InlineCardNodeAttributes0, InlineCardNodeAttributes1, InlineCardDefinition, InlineCardNode, InlineCardStage0NodeAttributes0, InlineCardStage0NodeAttributes1, InlineCardStage0Definition, InlineCardStage0Node, InlineExtensionDefinition, InlineExtensionNode, InlineExtensionWithMarksDefinition, InlineExtensionWithMarksNode, LayoutColumnDefinition, LayoutColumnDefinition as LayoutColumnStage0Definition, LayoutColumnNode, LayoutColumnNode as LayoutColumnStage0Node, LayoutSectionDefinition, LayoutSectionNode, LayoutSectionFullDefinition, LayoutSectionFullNode, LayoutSectionWithSingleColumnStage0Definition, LayoutSectionWithSingleColumnStage0Node, ListItemDefinition, ListItemNode, MediaNodeAttributes0, MediaNodeAttributes1, MediaDefinition, MediaNode, MediaGroupDefinition, MediaGroupNode, MediaInlineDefinition, MediaInlineNode, MediaSingleNodeAttributes0, MediaSingleNodeAttributes1, MediaSingleDefinition, MediaSingleNode, MediaSingleCaptionNodeAttributes0, MediaSingleCaptionNodeAttributes1, MediaSingleCaptionDefinition, MediaSingleCaptionNode, MediaSingleFullNodeAttributes0, MediaSingleFullNodeAttributes1, MediaSingleFullDefinition, MediaSingleFullNode, MediaSingleWidthTypeNodeAttributes0, MediaSingleWidthTypeNodeAttributes1, MediaSingleWidthTypeDefinition, MediaSingleWidthTypeNode, MentionDefinition, MentionNode, MentionStage0Definition, MentionStage0Node, MultiBodiedExtensionStage0Definition, MultiBodiedExtensionStage0Node, NestedExpandDefinition, NestedExpandNode, NestedExpandWithNoMarksDefinition, NestedExpandWithNoMarksNode, OrderedListDefinition, OrderedListNode, PanelDefinition, PanelNode, ParagraphDefinition, ParagraphNode, ParagraphWithAlignmentDefinition, ParagraphWithAlignmentNode, ParagraphWithFontSizeDefinition, ParagraphWithFontSizeNode, ParagraphWithIndentationDefinition, ParagraphWithIndentationNode, ParagraphWithNoMarksDefinition, ParagraphWithNoMarksNode, PlaceholderDefinition, PlaceholderNode, RuleDefinition, RuleNode, StatusDefinition, StatusNode, StatusStage0Definition, StatusStage0Node, SyncBlockDefinition, SyncBlockNode, TableDefinition, TableNode, TableWithNestedTableDefinition, TableWithNestedTableNode, TableCellDefinition, TableCellNode, TableCellStage0Definition, TableCellStage0Node, TableCellWithNestedTableDefinition, TableCellWithNestedTableNode, TableCellWithNestedTableStage0Definition, TableCellWithNestedTableStage0Node, TableHeaderDefinition, TableHeaderNode, TableHeaderStage0Definition, TableHeaderStage0Node, TableHeaderWithNestedTableDefinition, TableHeaderWithNestedTableNode, TableHeaderWithNestedTableStage0Definition, TableHeaderWithNestedTableStage0Node, TableRowDefinition, TableRowNode, TableRowWithNestedTableDefinition, TableRowWithNestedTableNode, TaskItemDefinition, TaskItemNode, TaskListDefinition, TaskListNode, TextDefinition, TextNode, TextCodeInlineDefinition, TextCodeInlineNode, TextFormattedDefinition, TextFormattedNode, TextWithNoMarksDefinition, TextWithNoMarksNode, UnsupportedBlockDefinition, UnsupportedBlockNode, UnsupportedInlineDefinition, UnsupportedInlineNode, } from '../next-schema/generated/nodeTypes';
1
+ export { blockCard, blockquote, blockquoteLegacy, blockTaskItem, bodiedExtension, bodiedExtensionWithMarks, bodiedSyncBlock, bulletList, caption, codeBlock, codeBlockRootOnly, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, date, dateStage0, decisionItem, decisionList, doc, embedCard, emoji, emojiStage0, expand, expandRootOnly, extension, extensionWithMarks, extensionFrameStage0, hardBreak, heading, headingWithAlignment, headingWithIndentation, headingWithNoMarks, image, inlineCard, inlineCardStage0, inlineExtension, inlineExtensionWithMarks, layoutColumn, layoutColumn as layoutColumnStage0, layoutSection, layoutSectionFull, layoutSectionWithSingleColumnStage0, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingleCaption, mediaSingleFull, mediaSingleWidthType, mention, mentionStage0, multiBodiedExtensionStage0, nestedExpand, nestedExpandWithNoMarks, orderedList, panel, paragraph, paragraphWithAlignment, paragraphWithFontSize, paragraphWithIndentation, paragraphWithNoMarks, placeholder, rule, status, statusStage0, syncBlock, table, tableWithNestedTable, tableCell, tableCell as tableCellStage0, tableCellWithNestedTable, tableCellWithNestedTable as tableCellWithNestedTableStage0, tableHeader, tableHeader as tableHeaderStage0, tableHeaderWithNestedTable, tableHeaderWithNestedTable as tableHeaderWithNestedTableStage0, tableRow, tableRowWithNestedTable, taskItem, taskList, text, textCodeInline, textFormatted, textWithNoMarks, unsupportedBlock, unsupportedInline, } from '../next-schema/generated/nodeTypes';
2
+ export type { BlockCardNodeAttributes0, BlockCardNodeAttributes1, BlockCardNodeAttributes2, BlockCardDefinition, BlockCardNode, BlockquoteDefinition, BlockquoteNode, BlockquoteLegacyDefinition, BlockquoteLegacyNode, BlockTaskItemDefinition, BlockTaskItemNode, BodiedExtensionDefinition, BodiedExtensionNode, BodiedExtensionWithMarksDefinition, BodiedExtensionWithMarksNode, BodiedSyncBlockDefinition, BodiedSyncBlockNode, BulletListDefinition, BulletListNode, CaptionDefinition, CaptionNode, CodeBlockDefinition, CodeBlockNode, CodeBlockRootOnlyDefinition, CodeBlockRootOnlyNode, ConfluenceJiraIssueDefinition, ConfluenceJiraIssueNode, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedBlockNode, ConfluenceUnsupportedInlineDefinition, ConfluenceUnsupportedInlineNode, DateDefinition, DateNode, DateStage0Definition, DateStage0Node, DecisionItemDefinition, DecisionItemNode, DecisionListDefinition, DecisionListNode, DocDefinition, DocNode, EmbedCardDefinition, EmbedCardNode, EmojiDefinition, EmojiNode, EmojiStage0Definition, EmojiStage0Node, ExpandDefinition, ExpandNode, ExpandRootOnlyDefinition, ExpandRootOnlyNode, ExtensionDefinition, ExtensionNode, ExtensionWithMarksDefinition, ExtensionWithMarksNode, ExtensionFrameStage0Definition, ExtensionFrameStage0Node, HardBreakDefinition, HardBreakNode, HeadingDefinition, HeadingNode, HeadingWithAlignmentDefinition, HeadingWithAlignmentNode, HeadingWithIndentationDefinition, HeadingWithIndentationNode, HeadingWithNoMarksDefinition, HeadingWithNoMarksNode, ImageDefinition, ImageNode, InlineCardNodeAttributes0, InlineCardNodeAttributes1, InlineCardDefinition, InlineCardNode, InlineCardStage0NodeAttributes0, InlineCardStage0NodeAttributes1, InlineCardStage0Definition, InlineCardStage0Node, InlineExtensionDefinition, InlineExtensionNode, InlineExtensionWithMarksDefinition, InlineExtensionWithMarksNode, LayoutColumnDefinition, LayoutColumnDefinition as LayoutColumnStage0Definition, LayoutColumnNode, LayoutColumnNode as LayoutColumnStage0Node, LayoutSectionDefinition, LayoutSectionNode, LayoutSectionFullDefinition, LayoutSectionFullNode, LayoutSectionWithSingleColumnStage0Definition, LayoutSectionWithSingleColumnStage0Node, ListItemDefinition, ListItemNode, MediaNodeAttributes0, MediaNodeAttributes1, MediaDefinition, MediaNode, MediaGroupDefinition, MediaGroupNode, MediaInlineDefinition, MediaInlineNode, MediaSingleNodeAttributes0, MediaSingleNodeAttributes1, MediaSingleDefinition, MediaSingleNode, MediaSingleCaptionNodeAttributes0, MediaSingleCaptionNodeAttributes1, MediaSingleCaptionDefinition, MediaSingleCaptionNode, MediaSingleFullNodeAttributes0, MediaSingleFullNodeAttributes1, MediaSingleFullDefinition, MediaSingleFullNode, MediaSingleWidthTypeNodeAttributes0, MediaSingleWidthTypeNodeAttributes1, MediaSingleWidthTypeDefinition, MediaSingleWidthTypeNode, MentionDefinition, MentionNode, MentionStage0Definition, MentionStage0Node, MultiBodiedExtensionStage0Definition, MultiBodiedExtensionStage0Node, NestedExpandDefinition, NestedExpandNode, NestedExpandWithNoMarksDefinition, NestedExpandWithNoMarksNode, OrderedListDefinition, OrderedListNode, PanelDefinition, PanelNode, ParagraphDefinition, ParagraphNode, ParagraphWithAlignmentDefinition, ParagraphWithAlignmentNode, ParagraphWithFontSizeDefinition, ParagraphWithFontSizeNode, ParagraphWithIndentationDefinition, ParagraphWithIndentationNode, ParagraphWithNoMarksDefinition, ParagraphWithNoMarksNode, PlaceholderDefinition, PlaceholderNode, RuleDefinition, RuleNode, StatusDefinition, StatusNode, StatusStage0Definition, StatusStage0Node, SyncBlockDefinition, SyncBlockNode, TableDefinition, TableNode, TableWithNestedTableDefinition, TableWithNestedTableNode, TableCellDefinition, TableCellDefinition as TableCellStage0Definition, TableCellNode, TableCellNode as TableCellStage0Node, TableCellWithNestedTableDefinition, TableCellWithNestedTableDefinition as TableCellWithNestedTableStage0Definition, TableCellWithNestedTableNode, TableCellWithNestedTableNode as TableCellWithNestedTableStage0Node, TableHeaderDefinition, TableHeaderDefinition as TableHeaderStage0Definition, TableHeaderNode, TableHeaderNode as TableHeaderStage0Node, TableHeaderWithNestedTableDefinition, TableHeaderWithNestedTableDefinition as TableHeaderWithNestedTableStage0Definition, TableHeaderWithNestedTableNode, TableHeaderWithNestedTableNode as TableHeaderWithNestedTableStage0Node, TableRowDefinition, TableRowNode, TableRowWithNestedTableDefinition, TableRowWithNestedTableNode, TaskItemDefinition, TaskItemNode, TaskListDefinition, TaskListNode, TextDefinition, TextNode, TextCodeInlineDefinition, TextCodeInlineNode, TextFormattedDefinition, TextFormattedNode, TextWithNoMarksDefinition, TextWithNoMarksNode, UnsupportedBlockDefinition, UnsupportedBlockNode, UnsupportedInlineDefinition, UnsupportedInlineNode, } from '../next-schema/generated/nodeTypes';
@@ -1,6 +1,6 @@
1
- export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette, colorPaletteNew,
1
+ export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette,
2
2
  /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
3
- colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, 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, extendedPanelC1, extendedPanelC1WithLocalId, 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, backgroundColorPaletteNew, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableCellStage0, tableHeaderStage0, tableCellWithNestedTableStage0, tableHeaderWithNestedTableStage0, 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, extendedPanelC1, extendedPanelC1WithLocalId, 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';