@atlaskit/adf-schema 26.4.1 → 27.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,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 27.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`30d82d3462c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30d82d3462c) - [ED-19175] add missing support for the unsupportedBlock in table related nodes
8
+
3
9
  ## 26.4.1
4
10
 
5
11
  ### Patch Changes
@@ -180,7 +180,7 @@ var createTableSpec = function createTableSpec() {
180
180
  }
181
181
  }) : attrs;
182
182
  var tableNodeSpec = {
183
- content: 'tableRow+',
183
+ content: '(tableRow | unsupportedBlock)+',
184
184
  attrs: finalAttrs,
185
185
  marks: 'unsupportedMark unsupportedNodeAttribute',
186
186
  tableRole: 'table',
@@ -237,7 +237,7 @@ var tableToJSON = function tableToJSON(node) {
237
237
  exports.tableToJSON = tableToJSON;
238
238
  var tableRow = {
239
239
  selectable: false,
240
- content: '(tableCell | tableHeader)+',
240
+ content: '(tableCell | tableHeader | unsupportedBlock)+',
241
241
  marks: 'unsupportedMark unsupportedNodeAttribute',
242
242
  tableRole: 'row',
243
243
  parseDOM: [{
@@ -298,7 +298,7 @@ var toJSONTableCell = function toJSONTableCell(node) {
298
298
  exports.toJSONTableCell = toJSONTableCell;
299
299
  var tableHeader = {
300
300
  selectable: false,
301
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
301
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
302
302
  attrs: cellAttrs,
303
303
  tableRole: 'header_cell',
304
304
  isolating: true,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "26.4.1",
3
+ "version": "27.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -157,7 +157,7 @@ const createTableSpec = (allowCustomWidth = false) => {
157
157
  }
158
158
  } : attrs;
159
159
  const tableNodeSpec = {
160
- content: 'tableRow+',
160
+ content: '(tableRow | unsupportedBlock)+',
161
161
  attrs: finalAttrs,
162
162
  marks: 'unsupportedMark unsupportedNodeAttribute',
163
163
  tableRole: 'table',
@@ -208,7 +208,7 @@ export const tableToJSON = node => ({
208
208
  });
209
209
  export const tableRow = {
210
210
  selectable: false,
211
- content: '(tableCell | tableHeader)+',
211
+ content: '(tableCell | tableHeader | unsupportedBlock)+',
212
212
  marks: 'unsupportedMark unsupportedNodeAttribute',
213
213
  tableRole: 'row',
214
214
  parseDOM: [{
@@ -260,7 +260,7 @@ export const toJSONTableCell = node => ({
260
260
  });
261
261
  export const tableHeader = {
262
262
  selectable: false,
263
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
263
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
264
264
  attrs: cellAttrs,
265
265
  tableRole: 'header_cell',
266
266
  isolating: true,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "26.4.1",
3
+ "version": "27.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -163,7 +163,7 @@ var createTableSpec = function createTableSpec() {
163
163
  }
164
164
  }) : attrs;
165
165
  var tableNodeSpec = {
166
- content: 'tableRow+',
166
+ content: '(tableRow | unsupportedBlock)+',
167
167
  attrs: finalAttrs,
168
168
  marks: 'unsupportedMark unsupportedNodeAttribute',
169
169
  tableRole: 'table',
@@ -217,7 +217,7 @@ export var tableToJSON = function tableToJSON(node) {
217
217
  };
218
218
  export var tableRow = {
219
219
  selectable: false,
220
- content: '(tableCell | tableHeader)+',
220
+ content: '(tableCell | tableHeader | unsupportedBlock)+',
221
221
  marks: 'unsupportedMark unsupportedNodeAttribute',
222
222
  tableRole: 'row',
223
223
  parseDOM: [{
@@ -275,7 +275,7 @@ export var toJSONTableCell = function toJSONTableCell(node) {
275
275
  };
276
276
  export var tableHeader = {
277
277
  selectable: false,
278
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
278
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand | unsupportedBlock)+',
279
279
  attrs: cellAttrs,
280
280
  tableRole: 'header_cell',
281
281
  isolating: true,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "26.4.1",
3
+ "version": "27.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -68,6 +68,7 @@ export interface TableDefinition {
68
68
  attrs?: TableAttributes;
69
69
  /**
70
70
  * @minItems 1
71
+ * @allowUnsupportedBlock true
71
72
  */
72
73
  content: Array<TableRow>;
73
74
  marks?: Array<FragmentDefinition>;
@@ -77,6 +78,9 @@ export interface TableDefinition {
77
78
  */
78
79
  export interface TableRow {
79
80
  type: 'tableRow';
81
+ /**
82
+ * @allowUnsupportedBlock true
83
+ */
80
84
  content: Array<TableHeader | TableCell>;
81
85
  }
82
86
  /**
@@ -90,6 +94,9 @@ export type TableCellContent = Array<Panel | Paragraph | ParagraphWithMarks | Bl
90
94
  */
91
95
  export interface TableCell {
92
96
  type: 'tableCell';
97
+ /**
98
+ * @allowUnsupportedBlock true
99
+ */
93
100
  attrs?: CellAttributes;
94
101
  content: TableCellContent;
95
102
  }
@@ -98,6 +105,9 @@ export interface TableCell {
98
105
  */
99
106
  export interface TableHeader {
100
107
  type: 'tableHeader';
108
+ /**
109
+ * @allowUnsupportedBlock true
110
+ */
101
111
  attrs?: CellAttributes;
102
112
  content: TableCellContent;
103
113
  }
@@ -68,6 +68,7 @@ export interface TableDefinition {
68
68
  attrs?: TableAttributes;
69
69
  /**
70
70
  * @minItems 1
71
+ * @allowUnsupportedBlock true
71
72
  */
72
73
  content: Array<TableRow>;
73
74
  marks?: Array<FragmentDefinition>;
@@ -77,6 +78,9 @@ export interface TableDefinition {
77
78
  */
78
79
  export interface TableRow {
79
80
  type: 'tableRow';
81
+ /**
82
+ * @allowUnsupportedBlock true
83
+ */
80
84
  content: Array<TableHeader | TableCell>;
81
85
  }
82
86
  /**
@@ -90,6 +94,9 @@ export type TableCellContent = Array<Panel | Paragraph | ParagraphWithMarks | Bl
90
94
  */
91
95
  export interface TableCell {
92
96
  type: 'tableCell';
97
+ /**
98
+ * @allowUnsupportedBlock true
99
+ */
93
100
  attrs?: CellAttributes;
94
101
  content: TableCellContent;
95
102
  }
@@ -98,6 +105,9 @@ export interface TableCell {
98
105
  */
99
106
  export interface TableHeader {
100
107
  type: 'tableHeader';
108
+ /**
109
+ * @allowUnsupportedBlock true
110
+ */
101
111
  attrs?: CellAttributes;
102
112
  content: TableCellContent;
103
113
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "26.4.1",
3
+ "version": "27.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/"
package/report.api.md CHANGED
@@ -1669,7 +1669,6 @@ export const tableCellContentWrapperSelector: string;
1669
1669
 
1670
1670
  // @public
1671
1671
  export interface TableCellDefinition {
1672
- // (undocumented)
1673
1672
  attrs?: CellAttributes;
1674
1673
  // (undocumented)
1675
1674
  content: TableCellContent;
@@ -1684,7 +1683,6 @@ export const tableCellSelector: string;
1684
1683
  export interface TableDefinition {
1685
1684
  // (undocumented)
1686
1685
  attrs?: TableAttributes;
1687
- // (undocumented)
1688
1686
  content: Array<TableRowDefinition>;
1689
1687
  // (undocumented)
1690
1688
  marks?: Array<FragmentDefinition>;
@@ -1697,7 +1695,6 @@ export const tableHeader: NodeSpec;
1697
1695
 
1698
1696
  // @public
1699
1697
  export interface TableHeaderDefinition {
1700
- // (undocumented)
1701
1698
  attrs?: CellAttributes;
1702
1699
  // (undocumented)
1703
1700
  content: TableCellContent;
@@ -1719,7 +1716,6 @@ export const tableRow: NodeSpec;
1719
1716
 
1720
1717
  // @public
1721
1718
  export interface TableRowDefinition {
1722
- // (undocumented)
1723
1719
  content: Array<TableCellDefinition | TableHeaderDefinition>;
1724
1720
  // (undocumented)
1725
1721
  type: 'tableRow';
@@ -1494,7 +1494,6 @@ export const tableCellContentWrapperSelector: string;
1494
1494
 
1495
1495
  // @public
1496
1496
  export interface TableCellDefinition {
1497
- // (undocumented)
1498
1497
  attrs?: CellAttributes;
1499
1498
  // (undocumented)
1500
1499
  content: TableCellContent;
@@ -1509,7 +1508,6 @@ export const tableCellSelector: string;
1509
1508
  export interface TableDefinition {
1510
1509
  // (undocumented)
1511
1510
  attrs?: TableAttributes;
1512
- // (undocumented)
1513
1511
  content: Array<TableRowDefinition>;
1514
1512
  // (undocumented)
1515
1513
  marks?: Array<FragmentDefinition>;
@@ -1522,7 +1520,6 @@ export const tableHeader: NodeSpec;
1522
1520
 
1523
1521
  // @public
1524
1522
  export interface TableHeaderDefinition {
1525
- // (undocumented)
1526
1523
  attrs?: CellAttributes;
1527
1524
  // (undocumented)
1528
1525
  content: TableCellContent;
@@ -1544,7 +1541,6 @@ export const tableRow: NodeSpec;
1544
1541
 
1545
1542
  // @public
1546
1543
  export interface TableRowDefinition {
1547
- // (undocumented)
1548
1544
  content: Array<TableCellDefinition | TableHeaderDefinition>;
1549
1545
  // (undocumented)
1550
1546
  type: 'tableRow';