@atlaskit/adf-schema 55.2.1 → 56.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 56.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`377a4234587d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/377a4234587d1) -
8
+ Promote `tableCell` and `tableHeader` `valign` attribute from stage-0 to the full ADF schema, and
9
+ remove the now-redundant stage-0 node-spec selection in the table plugin.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 55.2.1
4
16
 
5
17
  ### Patch Changes
@@ -420,7 +420,7 @@ Object.defineProperty(exports, "tableCell", {
420
420
  Object.defineProperty(exports, "tableCellStage0", {
421
421
  enumerable: true,
422
422
  get: function get() {
423
- return _nodeTypes.tableCellStage0;
423
+ return _nodeTypes.tableCell;
424
424
  }
425
425
  });
426
426
  Object.defineProperty(exports, "tableCellWithNestedTable", {
@@ -432,7 +432,7 @@ Object.defineProperty(exports, "tableCellWithNestedTable", {
432
432
  Object.defineProperty(exports, "tableCellWithNestedTableStage0", {
433
433
  enumerable: true,
434
434
  get: function get() {
435
- return _nodeTypes.tableCellWithNestedTableStage0;
435
+ return _nodeTypes.tableCellWithNestedTable;
436
436
  }
437
437
  });
438
438
  Object.defineProperty(exports, "tableHeader", {
@@ -444,7 +444,7 @@ Object.defineProperty(exports, "tableHeader", {
444
444
  Object.defineProperty(exports, "tableHeaderStage0", {
445
445
  enumerable: true,
446
446
  get: function get() {
447
- return _nodeTypes.tableHeaderStage0;
447
+ return _nodeTypes.tableHeader;
448
448
  }
449
449
  });
450
450
  Object.defineProperty(exports, "tableHeaderWithNestedTable", {
@@ -456,7 +456,7 @@ Object.defineProperty(exports, "tableHeaderWithNestedTable", {
456
456
  Object.defineProperty(exports, "tableHeaderWithNestedTableStage0", {
457
457
  enumerable: true,
458
458
  get: function get() {
459
- return _nodeTypes.tableHeaderWithNestedTableStage0;
459
+ return _nodeTypes.tableHeaderWithNestedTable;
460
460
  }
461
461
  });
462
462
  Object.defineProperty(exports, "tableRow", {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTableStage0 = exports.tableHeaderWithNestedTable = exports.tableHeaderStage0 = exports.tableHeader = exports.tableCellWithNestedTableStage0 = exports.tableCellWithNestedTable = exports.tableCellStage0 = exports.tableCell = exports.table = exports.syncBlock = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithFontSize = exports.paragraphWithAlignment = exports.paragraph = exports.panelC1 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedSyncBlock = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockTaskItem = exports.blockCard = void 0;
6
+ exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.syncBlock = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithFontSize = exports.paragraphWithAlignment = exports.paragraph = exports.panelC1 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedSyncBlock = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockTaskItem = exports.blockCard = void 0;
7
7
  var _createPMSpecFactory = require("../../schema/createPMSpecFactory");
8
8
  /**
9
9
  * This file was automatically generated by @atlaskit/adf-schema-generator
@@ -1216,30 +1216,6 @@ var tableWithNestedTable = exports.tableWithNestedTable = (0, _createPMSpecFacto
1216
1216
  tableRole: 'table'
1217
1217
  });
1218
1218
  var tableCell = exports.tableCell = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1219
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
1220
- marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1221
- attrs: {
1222
- colspan: {
1223
- default: 1
1224
- },
1225
- rowspan: {
1226
- default: 1
1227
- },
1228
- colwidth: {
1229
- default: null
1230
- },
1231
- background: {
1232
- default: null
1233
- },
1234
- localId: {
1235
- default: null
1236
- }
1237
- },
1238
- selectable: false,
1239
- isolating: true,
1240
- tableRole: 'cell'
1241
- });
1242
- var tableCellStage0 = exports.tableCellStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1243
1219
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
1244
1220
  marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1245
1221
  attrs: {
@@ -1267,30 +1243,6 @@ var tableCellStage0 = exports.tableCellStage0 = (0, _createPMSpecFactory.createP
1267
1243
  tableRole: 'cell'
1268
1244
  });
1269
1245
  var tableCellWithNestedTable = exports.tableCellWithNestedTable = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1270
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock | table)+',
1271
- marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1272
- attrs: {
1273
- colspan: {
1274
- default: 1
1275
- },
1276
- rowspan: {
1277
- default: 1
1278
- },
1279
- colwidth: {
1280
- default: null
1281
- },
1282
- background: {
1283
- default: null
1284
- },
1285
- localId: {
1286
- default: null
1287
- }
1288
- },
1289
- selectable: false,
1290
- isolating: true,
1291
- tableRole: 'cell'
1292
- });
1293
- var tableCellWithNestedTableStage0 = exports.tableCellWithNestedTableStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1294
1246
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock | table)+',
1295
1247
  marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1296
1248
  attrs: {
@@ -1318,30 +1270,6 @@ var tableCellWithNestedTableStage0 = exports.tableCellWithNestedTableStage0 = (0
1318
1270
  tableRole: 'cell'
1319
1271
  });
1320
1272
  var tableHeader = exports.tableHeader = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1321
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
1322
- marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1323
- attrs: {
1324
- colspan: {
1325
- default: 1
1326
- },
1327
- rowspan: {
1328
- default: 1
1329
- },
1330
- colwidth: {
1331
- default: null
1332
- },
1333
- background: {
1334
- default: null
1335
- },
1336
- localId: {
1337
- default: null
1338
- }
1339
- },
1340
- selectable: false,
1341
- isolating: true,
1342
- tableRole: 'header_cell'
1343
- });
1344
- var tableHeaderStage0 = exports.tableHeaderStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1345
1273
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
1346
1274
  marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1347
1275
  attrs: {
@@ -1369,30 +1297,6 @@ var tableHeaderStage0 = exports.tableHeaderStage0 = (0, _createPMSpecFactory.cre
1369
1297
  tableRole: 'header_cell'
1370
1298
  });
1371
1299
  var tableHeaderWithNestedTable = exports.tableHeaderWithNestedTable = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1372
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | table)+',
1373
- marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1374
- attrs: {
1375
- colspan: {
1376
- default: 1
1377
- },
1378
- rowspan: {
1379
- default: 1
1380
- },
1381
- colwidth: {
1382
- default: null
1383
- },
1384
- background: {
1385
- default: null
1386
- },
1387
- localId: {
1388
- default: null
1389
- }
1390
- },
1391
- selectable: false,
1392
- isolating: true,
1393
- tableRole: 'header_cell'
1394
- });
1395
- var tableHeaderWithNestedTableStage0 = exports.tableHeaderWithNestedTableStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
1396
1300
  content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | table)+',
1397
1301
  marks: 'fontSize alignment unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
1398
1302
  attrs: {
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.table = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
9
  var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
11
10
  var _fragment = require("../marks/fragment");
12
11
  var _unsupportedMark = require("../marks/unsupportedMark");
@@ -15,8 +14,6 @@ var _tableCellContentPseudoGroup = require("../groups/tableCellContentPseudoGrou
15
14
  var _tableCellContent = require("./tableCellContent");
16
15
  var _nestedExpand = require("./nestedExpand");
17
16
  var _unsupportedBlock = require("./unsupportedBlock");
18
- 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; }
19
- 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) { (0, _defineProperty2.default)(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; }
20
17
  // Declare early to allow for circular references within the file
21
18
  var table = exports.table = (0, _adfSchemaGenerator.adfNode)('table');
22
19
  var valign = {
@@ -53,7 +50,8 @@ var cellAttributes = {
53
50
  type: 'string',
54
51
  default: null,
55
52
  optional: true
56
- }
53
+ },
54
+ valign: valign
57
55
  };
58
56
  var tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell').define({
59
57
  isolating: true,
@@ -62,11 +60,6 @@ var tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell').define({
62
60
  marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
63
61
  attrs: cellAttributes,
64
62
  content: [_tableCellContentPseudoGroup.tableCellContentPseudoGroup],
65
- stage0: {
66
- attrs: _objectSpread(_objectSpread({}, cellAttributes), {}, {
67
- valign: valign
68
- })
69
- },
70
63
  DANGEROUS_MANUAL_OVERRIDE: {
71
64
  'validator-spec': {
72
65
  required: {
@@ -77,12 +70,7 @@ var tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell').define({
77
70
  }
78
71
  }).variant('with_nested_table', {
79
72
  content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, (0, _toConsumableArray2.default)(_tableCellContentPseudoGroup.tableCellContentNodes).concat([_unsupportedBlock.unsupportedBlock, table])))],
80
- ignore: ['json-schema', 'validator-spec'],
81
- stage0: {
82
- attrs: _objectSpread(_objectSpread({}, cellAttributes), {}, {
83
- valign: valign
84
- })
85
- }
73
+ ignore: ['json-schema', 'validator-spec']
86
74
  });
87
75
  var tableHeader = (0, _adfSchemaGenerator.adfNode)('tableHeader').define({
88
76
  isolating: true,
@@ -91,11 +79,6 @@ var tableHeader = (0, _adfSchemaGenerator.adfNode)('tableHeader').define({
91
79
  marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
92
80
  attrs: cellAttributes,
93
81
  content: [_tableCellContentPseudoGroup.tableHeaderContentPseudoGroup],
94
- stage0: {
95
- attrs: _objectSpread(_objectSpread({}, cellAttributes), {}, {
96
- valign: valign
97
- })
98
- },
99
82
  DANGEROUS_MANUAL_OVERRIDE: {
100
83
  'validator-spec': {
101
84
  required: {
@@ -106,12 +89,7 @@ var tableHeader = (0, _adfSchemaGenerator.adfNode)('tableHeader').define({
106
89
  }
107
90
  }).variant('with_nested_table', {
108
91
  content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, (0, _toConsumableArray2.default)(_tableCellContentPseudoGroup.tableCellContentNodes).concat([_nestedExpand.nestedExpand, table])))],
109
- ignore: ['json-schema', 'validator-spec'],
110
- stage0: {
111
- attrs: _objectSpread(_objectSpread({}, cellAttributes), {}, {
112
- valign: valign
113
- })
114
- }
92
+ ignore: ['json-schema', 'validator-spec']
115
93
  });
116
94
  var tableRow = (0, _adfSchemaGenerator.adfNode)('tableRow').define({
117
95
  selectable: false,
@@ -56,13 +56,16 @@ var getCellAttrs = exports.getCellAttrs = function getCellAttrs(dom) {
56
56
  }
57
57
  var backgroundHexCode = dataCellBackgroundHexCode || (backgroundColor && backgroundColor !== defaultValues['background'] ? backgroundColor : null);
58
58
  var localId = defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.localId;
59
- return _objectSpread({
59
+ var valign = (0, _valign.parseValign)(dom.getAttribute('data-valign'));
60
+ return _objectSpread(_objectSpread({
60
61
  colspan: colspan,
61
62
  rowspan: Number(dom.getAttribute('rowspan') || 1),
62
63
  colwidth: width && width.length === colspan ? width : null,
63
64
  background: backgroundHexCode
64
65
  }, localId && {
65
66
  localId: localId
67
+ }), valign && {
68
+ valign: valign
66
69
  });
67
70
  };
68
71
  // these are for test only
@@ -191,22 +194,6 @@ var getCellDomAttrs = exports.getCellDomAttrs = function getCellDomAttrs(node) {
191
194
  if (node !== null && node !== void 0 && (_node$attrs = node.attrs) !== null && _node$attrs !== void 0 && _node$attrs.localId) {
192
195
  attrs['data-local-id'] = node.attrs.localId;
193
196
  }
194
- return attrs;
195
- };
196
- var getCellAttrsWithValign = function getCellAttrsWithValign(dom, defaultValues) {
197
- var base = getCellAttrs(dom, defaultValues);
198
- var valign = (0, _valign.parseValign)(dom.getAttribute('data-valign'));
199
- return valign ? _objectSpread(_objectSpread({}, base), {}, {
200
- valign: valign
201
- }) : base;
202
- };
203
-
204
- /**
205
- * @stage 0
206
- * Valign-aware variant of getCellDomAttrs — emits the `valign` HTML attribute when set to a non-default value.
207
- */
208
- var getCellDomAttrsWithValign = function getCellDomAttrsWithValign(node) {
209
- var attrs = getCellDomAttrs(node);
210
197
  if (node.attrs.valign) {
211
198
  attrs['data-valign'] = node.attrs.valign;
212
199
  }
@@ -391,49 +378,6 @@ var tableRowWithNestedTable = exports.tableRowWithNestedTable = (0, _nodeTypes.t
391
378
  var tableCellWithNestedTable = exports.tableCellWithNestedTable = (0, _nodeTypes.tableCellWithNestedTable)(tableCellNodeSpecOptions);
392
379
  var tableHeaderWithNestedTable = exports.tableHeaderWithNestedTable = (0, _nodeTypes.tableHeaderWithNestedTable)(tableHeaderNodeSpecOptions);
393
380
 
394
- // stage-0 table cell nodes with vertical alignment and localId support
395
- var tableCellNodeStage0SpecOptions = {
396
- parseDOM: [
397
- // Ignore number cell copied from renderer
398
- {
399
- tag: '.ak-renderer-table-number-column',
400
- ignore: true
401
- }, {
402
- tag: 'td',
403
- getAttrs: function getAttrs(dom) {
404
- return getCellAttrsWithValign(
405
- // eslint-disable-next-line @atlaskit/editor/no-as-casting
406
- dom, {
407
- localId: _uuid.uuid.generate()
408
- });
409
- }
410
- }],
411
- toDOM: function toDOM(node) {
412
- return ['td', getCellDomAttrsWithValign(node), 0];
413
- }
414
- };
415
- var tableHeaderNodeStage0SpecOptions = {
416
- parseDOM: [{
417
- tag: 'th',
418
- getAttrs: function getAttrs(dom) {
419
- return (
420
- // eslint-disable-next-line @atlaskit/editor/no-as-casting
421
- getCellAttrsWithValign(dom, {
422
- background: DEFAULT_TABLE_HEADER_CELL_BACKGROUND,
423
- localId: _uuid.uuid.generate()
424
- })
425
- );
426
- }
427
- }],
428
- toDOM: function toDOM(node) {
429
- return ['th', getCellDomAttrsWithValign(node), 0];
430
- }
431
- };
432
- var tableCellStage0 = exports.tableCellStage0 = (0, _nodeTypes.tableCellStage0)(tableCellNodeStage0SpecOptions);
433
- var tableHeaderStage0 = exports.tableHeaderStage0 = (0, _nodeTypes.tableHeaderStage0)(tableHeaderNodeStage0SpecOptions);
434
- var tableCellWithNestedTableStage0 = exports.tableCellWithNestedTableStage0 = (0, _nodeTypes.tableCellWithNestedTableStage0)(tableCellNodeStage0SpecOptions);
435
- var tableHeaderWithNestedTableStage0 = exports.tableHeaderWithNestedTableStage0 = (0, _nodeTypes.tableHeaderWithNestedTableStage0)(tableHeaderNodeStage0SpecOptions);
436
-
437
381
  // table nodes with localId support
438
382
  var tableRowNodeSpecOptionsWithLocalId = {
439
383
  parseDOM: [{
@@ -491,4 +435,19 @@ var tableHeaderWithLocalId = exports.tableHeaderWithLocalId = (0, _nodeTypes.tab
491
435
  // nested table nodes with localId support
492
436
  var tableRowWithNestedTableWithLocalId = exports.tableRowWithNestedTableWithLocalId = (0, _nodeTypes.tableRowWithNestedTable)(tableRowNodeSpecOptionsWithLocalId);
493
437
  var tableCellWithNestedTableWithLocalId = exports.tableCellWithNestedTableWithLocalId = (0, _nodeTypes.tableCellWithNestedTable)(tableCellNodeSpecOptionsWithLocalId);
494
- var tableHeaderWithNestedTableWithLocalId = exports.tableHeaderWithNestedTableWithLocalId = (0, _nodeTypes.tableHeaderWithNestedTable)(tableHeaderNodeSpecOptionsWithLocalId);
438
+ var tableHeaderWithNestedTableWithLocalId = exports.tableHeaderWithNestedTableWithLocalId = (0, _nodeTypes.tableHeaderWithNestedTable)(tableHeaderNodeSpecOptionsWithLocalId);
439
+
440
+ // `valign` is now in the full schema; the `*Stage0` exports are kept as aliases
441
+ // of the `*WithLocalId` specs for backwards compatibility.
442
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
443
+ /** @deprecated [EDITOR-7723] use `tableCellWithLocalId` */
444
+ var tableCellStage0 = exports.tableCellStage0 = tableCellWithLocalId;
445
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
446
+ /** @deprecated [EDITOR-7723] use `tableHeaderWithLocalId` */
447
+ var tableHeaderStage0 = exports.tableHeaderStage0 = tableHeaderWithLocalId;
448
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
449
+ /** @deprecated [EDITOR-7723] use `tableCellWithNestedTableWithLocalId` */
450
+ var tableCellWithNestedTableStage0 = exports.tableCellWithNestedTableStage0 = tableCellWithNestedTableWithLocalId;
451
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
452
+ /** @deprecated [EDITOR-7723] use `tableHeaderWithNestedTableWithLocalId` */
453
+ var tableHeaderWithNestedTableStage0 = exports.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';
@@ -1210,30 +1210,6 @@ export const tableWithNestedTable = createPMNodeSpecFactory({
1210
1210
  tableRole: 'table'
1211
1211
  });
1212
1212
  export const 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 const 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 const tableCellStage0 = createPMNodeSpecFactory({
1261
1237
  tableRole: 'cell'
1262
1238
  });
1263
1239
  export const 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 const 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 const tableCellWithNestedTableStage0 = createPMNodeSpecFactory({
1312
1264
  tableRole: 'cell'
1313
1265
  });
1314
1266
  export const 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 const 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 const tableHeaderStage0 = createPMNodeSpecFactory({
1363
1291
  tableRole: 'header_cell'
1364
1292
  });
1365
1293
  export const 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 const 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: {
@@ -43,7 +43,8 @@ const cellAttributes = {
43
43
  type: 'string',
44
44
  default: null,
45
45
  optional: true
46
- }
46
+ },
47
+ valign
47
48
  };
48
49
  const tableCell = adfNode('tableCell').define({
49
50
  isolating: true,
@@ -52,12 +53,6 @@ const tableCell = adfNode('tableCell').define({
52
53
  marks: [unsupportedMark, unsupportedNodeAttribute],
53
54
  attrs: cellAttributes,
54
55
  content: [tableCellContentPseudoGroup],
55
- stage0: {
56
- attrs: {
57
- ...cellAttributes,
58
- valign
59
- }
60
- },
61
56
  DANGEROUS_MANUAL_OVERRIDE: {
62
57
  'validator-spec': {
63
58
  required: {
@@ -68,13 +63,7 @@ const tableCell = adfNode('tableCell').define({
68
63
  }
69
64
  }).variant('with_nested_table', {
70
65
  content: [$onePlus($or(...tableCellContentNodes, unsupportedBlock, table))],
71
- ignore: ['json-schema', 'validator-spec'],
72
- stage0: {
73
- attrs: {
74
- ...cellAttributes,
75
- valign
76
- }
77
- }
66
+ ignore: ['json-schema', 'validator-spec']
78
67
  });
79
68
  const tableHeader = adfNode('tableHeader').define({
80
69
  isolating: true,
@@ -83,12 +72,6 @@ const tableHeader = adfNode('tableHeader').define({
83
72
  marks: [unsupportedMark, unsupportedNodeAttribute],
84
73
  attrs: cellAttributes,
85
74
  content: [tableHeaderContentPseudoGroup],
86
- stage0: {
87
- attrs: {
88
- ...cellAttributes,
89
- valign
90
- }
91
- },
92
75
  DANGEROUS_MANUAL_OVERRIDE: {
93
76
  'validator-spec': {
94
77
  required: {
@@ -99,13 +82,7 @@ const tableHeader = adfNode('tableHeader').define({
99
82
  }
100
83
  }).variant('with_nested_table', {
101
84
  content: [$onePlus($or(...tableCellContentNodes, nestedExpand, table))],
102
- ignore: ['json-schema', 'validator-spec'],
103
- stage0: {
104
- attrs: {
105
- ...cellAttributes,
106
- valign
107
- }
108
- }
85
+ ignore: ['json-schema', 'validator-spec']
109
86
  });
110
87
  const tableRow = adfNode('tableRow').define({
111
88
  selectable: false,
@@ -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';
@@ -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';
@@ -869,25 +869,11 @@ export interface TableCellDefinition {
869
869
  colwidth?: Array<number>;
870
870
  background?: string;
871
871
  localId?: string;
872
+ valign?: 'top' | 'middle' | 'bottom';
872
873
  };
873
874
  }
874
875
  export type TableCellNode = PMNode & TableCellDefinition;
875
876
  export declare const tableCell: PMNodeSpecFactoryInstance<TableCellNode>;
876
- export interface TableCellStage0Definition {
877
- type: 'tableCell';
878
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
879
- marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
880
- attrs: {
881
- colspan?: number;
882
- rowspan?: number;
883
- colwidth?: Array<number>;
884
- background?: string;
885
- localId?: string;
886
- valign?: 'top' | 'middle' | 'bottom';
887
- };
888
- }
889
- export type TableCellStage0Node = PMNode & TableCellStage0Definition;
890
- export declare const tableCellStage0: PMNodeSpecFactoryInstance<TableCellStage0Node>;
891
877
  export interface TableCellWithNestedTableDefinition {
892
878
  type: 'tableCell';
893
879
  content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
@@ -898,25 +884,11 @@ export interface TableCellWithNestedTableDefinition {
898
884
  colwidth?: Array<number>;
899
885
  background?: string;
900
886
  localId?: string;
887
+ valign?: 'top' | 'middle' | 'bottom';
901
888
  };
902
889
  }
903
890
  export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefinition;
904
891
  export declare const tableCellWithNestedTable: PMNodeSpecFactoryInstance<TableCellWithNestedTableNode>;
905
- export interface TableCellWithNestedTableStage0Definition {
906
- type: 'tableCell';
907
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
908
- marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
909
- attrs: {
910
- colspan?: number;
911
- rowspan?: number;
912
- colwidth?: Array<number>;
913
- background?: string;
914
- localId?: string;
915
- valign?: 'top' | 'middle' | 'bottom';
916
- };
917
- }
918
- export type TableCellWithNestedTableStage0Node = PMNode & TableCellWithNestedTableStage0Definition;
919
- export declare const tableCellWithNestedTableStage0: PMNodeSpecFactoryInstance<TableCellWithNestedTableStage0Node>;
920
892
  export interface TableHeaderDefinition {
921
893
  type: 'tableHeader';
922
894
  content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
@@ -927,25 +899,11 @@ export interface TableHeaderDefinition {
927
899
  colwidth?: Array<number>;
928
900
  background?: string;
929
901
  localId?: string;
902
+ valign?: 'top' | 'middle' | 'bottom';
930
903
  };
931
904
  }
932
905
  export type TableHeaderNode = PMNode & TableHeaderDefinition;
933
906
  export declare const tableHeader: PMNodeSpecFactoryInstance<TableHeaderNode>;
934
- export interface TableHeaderStage0Definition {
935
- type: 'tableHeader';
936
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
937
- marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
938
- attrs: {
939
- colspan?: number;
940
- rowspan?: number;
941
- colwidth?: Array<number>;
942
- background?: string;
943
- localId?: string;
944
- valign?: 'top' | 'middle' | 'bottom';
945
- };
946
- }
947
- export type TableHeaderStage0Node = PMNode & TableHeaderStage0Definition;
948
- export declare const tableHeaderStage0: PMNodeSpecFactoryInstance<TableHeaderStage0Node>;
949
907
  export interface TableHeaderWithNestedTableDefinition {
950
908
  type: 'tableHeader';
951
909
  content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
@@ -956,28 +914,14 @@ export interface TableHeaderWithNestedTableDefinition {
956
914
  colwidth?: Array<number>;
957
915
  background?: string;
958
916
  localId?: string;
917
+ valign?: 'top' | 'middle' | 'bottom';
959
918
  };
960
919
  }
961
920
  export type TableHeaderWithNestedTableNode = PMNode & TableHeaderWithNestedTableDefinition;
962
921
  export declare const tableHeaderWithNestedTable: PMNodeSpecFactoryInstance<TableHeaderWithNestedTableNode>;
963
- export interface TableHeaderWithNestedTableStage0Definition {
964
- type: 'tableHeader';
965
- content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
966
- marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
967
- attrs: {
968
- colspan?: number;
969
- rowspan?: number;
970
- colwidth?: Array<number>;
971
- background?: string;
972
- localId?: string;
973
- valign?: 'top' | 'middle' | 'bottom';
974
- };
975
- }
976
- export type TableHeaderWithNestedTableStage0Node = PMNode & TableHeaderWithNestedTableStage0Definition;
977
- export declare const tableHeaderWithNestedTableStage0: PMNodeSpecFactoryInstance<TableHeaderWithNestedTableStage0Node>;
978
922
  export interface TableRowDefinition {
979
923
  type: 'tableRow';
980
- content: Array<TableCellDefinition | TableCellStage0Definition | TableHeaderDefinition | TableHeaderStage0Definition>;
924
+ content: Array<TableCellDefinition | TableHeaderDefinition>;
981
925
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
982
926
  attrs: {
983
927
  localId?: string;
@@ -987,7 +931,7 @@ export type TableRowNode = PMNode & TableRowDefinition;
987
931
  export declare const tableRow: PMNodeSpecFactoryInstance<TableRowNode>;
988
932
  export interface TableRowWithNestedTableDefinition {
989
933
  type: 'tableRow';
990
- content: Array<TableCellWithNestedTableDefinition | TableCellWithNestedTableStage0Definition | TableHeaderWithNestedTableDefinition | TableHeaderWithNestedTableStage0Definition>;
934
+ content: Array<TableCellWithNestedTableDefinition | TableHeaderWithNestedTableDefinition>;
991
935
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
992
936
  attrs: {
993
937
  localId?: string;
@@ -22,9 +22,6 @@ export interface CellAttributes {
22
22
  colwidth?: number[];
23
23
  localId?: string;
24
24
  rowspan?: number;
25
- /**
26
- * @stage 0
27
- */
28
25
  valign?: Valign;
29
26
  }
30
27
  export declare const tablePrefixSelector = "pm-table";
@@ -38,6 +35,7 @@ export declare const getCellAttrs: (dom: HTMLElement, defaultValues?: CellAttrib
38
35
  colwidth: number[] | null;
39
36
  localId?: string;
40
37
  rowspan: number;
38
+ valign?: Valign;
41
39
  };
42
40
  export type CellDomAttrs = {
43
41
  class?: string;
@@ -162,13 +160,17 @@ export declare const tableWithNestedTable: NodeSpec;
162
160
  export declare const tableRowWithNestedTable: NodeSpec;
163
161
  export declare const tableCellWithNestedTable: NodeSpec;
164
162
  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;
169
163
  export declare const tableRowWithLocalId: NodeSpec;
170
164
  export declare const tableCellWithLocalId: NodeSpec;
171
165
  export declare const tableHeaderWithLocalId: NodeSpec;
172
166
  export declare const tableRowWithNestedTableWithLocalId: NodeSpec;
173
167
  export declare const tableCellWithNestedTableWithLocalId: NodeSpec;
174
168
  export declare const tableHeaderWithNestedTableWithLocalId: NodeSpec;
169
+ /** @deprecated [EDITOR-7723] use `tableCellWithLocalId` */
170
+ export declare const tableCellStage0: NodeSpec;
171
+ /** @deprecated [EDITOR-7723] use `tableHeaderWithLocalId` */
172
+ export declare const tableHeaderStage0: NodeSpec;
173
+ /** @deprecated [EDITOR-7723] use `tableCellWithNestedTableWithLocalId` */
174
+ export declare const tableCellWithNestedTableStage0: NodeSpec;
175
+ /** @deprecated [EDITOR-7723] use `tableHeaderWithNestedTableWithLocalId` */
176
+ export declare const tableHeaderWithNestedTableStage0: NodeSpec;
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "55.2.1",
3
+ "version": "56.0.0",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "@atlaskit/adf-schema-generator": "^3.1.0",
41
41
  "@atlaskit/editor-prosemirror": "^8.0.0",
42
- "@atlaskit/tmp-editor-statsig": "^108.0.0",
42
+ "@atlaskit/tmp-editor-statsig": "^108.3.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "css-color-names": "0.0.4",
45
45
  "linkify-it": "^3.0.3",