@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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 56.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6f7b6c498b07c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6f7b6c498b07c) -
8
+ [EDITOR-7591] Align the no-color highlight palette tile icon with the updated transparent
9
+ highlight styling for the experiment `platform_editor_lovability_text_bg_color`.
10
+
11
+ ## 56.0.0
12
+
13
+ ### Major Changes
14
+
15
+ - [`377a4234587d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/377a4234587d1) -
16
+ Promote `tableCell` and `tableHeader` `valign` attribute from stage-0 to the full ADF schema, and
17
+ remove the now-redundant stage-0 node-spec selection in the table plugin.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 55.2.1
4
24
 
5
25
  ### 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", {
package/dist/cjs/index.js CHANGED
@@ -333,12 +333,6 @@ Object.defineProperty(exports, "backgroundColorPalette", {
333
333
  return _schema.backgroundColorPalette;
334
334
  }
335
335
  });
336
- Object.defineProperty(exports, "backgroundColorPaletteNew", {
337
- enumerable: true,
338
- get: function get() {
339
- return _schema.backgroundColorPaletteNew;
340
- }
341
- });
342
336
  Object.defineProperty(exports, "blockCard", {
343
337
  enumerable: true,
344
338
  get: function get() {
@@ -465,12 +459,6 @@ Object.defineProperty(exports, "colorPaletteExtended", {
465
459
  return _schema.colorPaletteExtended;
466
460
  }
467
461
  });
468
- Object.defineProperty(exports, "colorPaletteNew", {
469
- enumerable: true,
470
- get: function get() {
471
- return _schema.colorPaletteNew;
472
- }
473
- });
474
462
  Object.defineProperty(exports, "confluenceInlineComment", {
475
463
  enumerable: true,
476
464
  get: function get() {
@@ -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';
@@ -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 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,