@atlaskit/adf-schema 27.0.0 → 28.1.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
+ ## 28.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`106c54b0ce4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/106c54b0ce4) - [ux] ED-15896 - Added support for unsupported nodes in listItem
8
+
9
+ ## 28.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [`9064e2d0f28`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9064e2d0f28) - [ux] HOT-104783 Reverting https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37639
14
+
3
15
  ## 27.0.0
4
16
 
5
17
  ### Major Changes
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.listItem = void 0;
7
7
  var listItem = {
8
- content: '(paragraph | mediaSingle | codeBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock)*',
8
+ content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
9
9
  marks: 'unsupportedMark unsupportedNodeAttribute',
10
10
  defining: true,
11
11
  selectable: false,
@@ -180,7 +180,7 @@ var createTableSpec = function createTableSpec() {
180
180
  }
181
181
  }) : attrs;
182
182
  var tableNodeSpec = {
183
- content: '(tableRow | unsupportedBlock)+',
183
+ content: 'tableRow+',
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 | unsupportedBlock)+',
240
+ content: '(tableCell | tableHeader)+',
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 | unsupportedBlock)+',
301
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
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": "27.0.0",
3
+ "version": "28.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export const listItem = {
2
- content: '(paragraph | mediaSingle | codeBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock)*',
2
+ content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
3
3
  marks: 'unsupportedMark unsupportedNodeAttribute',
4
4
  defining: true,
5
5
  selectable: false,
@@ -157,7 +157,7 @@ const createTableSpec = (allowCustomWidth = false) => {
157
157
  }
158
158
  } : attrs;
159
159
  const tableNodeSpec = {
160
- content: '(tableRow | unsupportedBlock)+',
160
+ content: 'tableRow+',
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 | unsupportedBlock)+',
211
+ content: '(tableCell | tableHeader)+',
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 | unsupportedBlock)+',
263
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
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": "27.0.0",
3
+ "version": "28.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export var listItem = {
2
- content: '(paragraph | mediaSingle | codeBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock)*',
2
+ content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
3
3
  marks: 'unsupportedMark unsupportedNodeAttribute',
4
4
  defining: true,
5
5
  selectable: false,
@@ -163,7 +163,7 @@ var createTableSpec = function createTableSpec() {
163
163
  }
164
164
  }) : attrs;
165
165
  var tableNodeSpec = {
166
- content: '(tableRow | unsupportedBlock)+',
166
+ content: 'tableRow+',
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 | unsupportedBlock)+',
220
+ content: '(tableCell | tableHeader)+',
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 | unsupportedBlock)+',
278
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaSingle | mediaGroup | decisionList | taskList | blockCard | embedCard | extension | nestedExpand)+',
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": "27.0.0",
3
+ "version": "28.1.0",
4
4
  "sideEffects": false
5
5
  }
@@ -68,7 +68,6 @@ export interface TableDefinition {
68
68
  attrs?: TableAttributes;
69
69
  /**
70
70
  * @minItems 1
71
- * @allowUnsupportedBlock true
72
71
  */
73
72
  content: Array<TableRow>;
74
73
  marks?: Array<FragmentDefinition>;
@@ -78,9 +77,6 @@ export interface TableDefinition {
78
77
  */
79
78
  export interface TableRow {
80
79
  type: 'tableRow';
81
- /**
82
- * @allowUnsupportedBlock true
83
- */
84
80
  content: Array<TableHeader | TableCell>;
85
81
  }
86
82
  /**
@@ -94,9 +90,6 @@ export type TableCellContent = Array<Panel | Paragraph | ParagraphWithMarks | Bl
94
90
  */
95
91
  export interface TableCell {
96
92
  type: 'tableCell';
97
- /**
98
- * @allowUnsupportedBlock true
99
- */
100
93
  attrs?: CellAttributes;
101
94
  content: TableCellContent;
102
95
  }
@@ -105,9 +98,6 @@ export interface TableCell {
105
98
  */
106
99
  export interface TableHeader {
107
100
  type: 'tableHeader';
108
- /**
109
- * @allowUnsupportedBlock true
110
- */
111
101
  attrs?: CellAttributes;
112
102
  content: TableCellContent;
113
103
  }
@@ -11,6 +11,7 @@ export interface ListItemDefinition {
11
11
  type: 'listItem';
12
12
  /**
13
13
  * @minItems 1
14
+ * @allowUnsupportedBlock true
14
15
  */
15
16
  content: ListItemArray;
16
17
  }
@@ -68,7 +68,6 @@ export interface TableDefinition {
68
68
  attrs?: TableAttributes;
69
69
  /**
70
70
  * @minItems 1
71
- * @allowUnsupportedBlock true
72
71
  */
73
72
  content: Array<TableRow>;
74
73
  marks?: Array<FragmentDefinition>;
@@ -78,9 +77,6 @@ export interface TableDefinition {
78
77
  */
79
78
  export interface TableRow {
80
79
  type: 'tableRow';
81
- /**
82
- * @allowUnsupportedBlock true
83
- */
84
80
  content: Array<TableHeader | TableCell>;
85
81
  }
86
82
  /**
@@ -94,9 +90,6 @@ export type TableCellContent = Array<Panel | Paragraph | ParagraphWithMarks | Bl
94
90
  */
95
91
  export interface TableCell {
96
92
  type: 'tableCell';
97
- /**
98
- * @allowUnsupportedBlock true
99
- */
100
93
  attrs?: CellAttributes;
101
94
  content: TableCellContent;
102
95
  }
@@ -105,9 +98,6 @@ export interface TableCell {
105
98
  */
106
99
  export interface TableHeader {
107
100
  type: 'tableHeader';
108
- /**
109
- * @allowUnsupportedBlock true
110
- */
111
101
  attrs?: CellAttributes;
112
102
  content: TableCellContent;
113
103
  }
@@ -11,6 +11,7 @@ export interface ListItemDefinition {
11
11
  type: 'listItem';
12
12
  /**
13
13
  * @minItems 1
14
+ * @allowUnsupportedBlock true
14
15
  */
15
16
  content: ListItemArray;
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "27.0.0",
3
+ "version": "28.1.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
@@ -1002,7 +1002,6 @@ export interface ListItemArray
1002
1002
 
1003
1003
  // @public
1004
1004
  export interface ListItemDefinition {
1005
- // (undocumented)
1006
1005
  content: ListItemArray;
1007
1006
  // (undocumented)
1008
1007
  type: 'listItem';
@@ -1669,6 +1668,7 @@ export const tableCellContentWrapperSelector: string;
1669
1668
 
1670
1669
  // @public
1671
1670
  export interface TableCellDefinition {
1671
+ // (undocumented)
1672
1672
  attrs?: CellAttributes;
1673
1673
  // (undocumented)
1674
1674
  content: TableCellContent;
@@ -1683,6 +1683,7 @@ export const tableCellSelector: string;
1683
1683
  export interface TableDefinition {
1684
1684
  // (undocumented)
1685
1685
  attrs?: TableAttributes;
1686
+ // (undocumented)
1686
1687
  content: Array<TableRowDefinition>;
1687
1688
  // (undocumented)
1688
1689
  marks?: Array<FragmentDefinition>;
@@ -1695,6 +1696,7 @@ export const tableHeader: NodeSpec;
1695
1696
 
1696
1697
  // @public
1697
1698
  export interface TableHeaderDefinition {
1699
+ // (undocumented)
1698
1700
  attrs?: CellAttributes;
1699
1701
  // (undocumented)
1700
1702
  content: TableCellContent;
@@ -1716,6 +1718,7 @@ export const tableRow: NodeSpec;
1716
1718
 
1717
1719
  // @public
1718
1720
  export interface TableRowDefinition {
1721
+ // (undocumented)
1719
1722
  content: Array<TableCellDefinition | TableHeaderDefinition>;
1720
1723
  // (undocumented)
1721
1724
  type: 'tableRow';
@@ -897,7 +897,6 @@ export interface ListItemArray extends Array<BulletListDefinition | CodeBlockDef
897
897
 
898
898
  // @public
899
899
  export interface ListItemDefinition {
900
- // (undocumented)
901
900
  content: ListItemArray;
902
901
  // (undocumented)
903
902
  type: 'listItem';
@@ -1494,6 +1493,7 @@ export const tableCellContentWrapperSelector: string;
1494
1493
 
1495
1494
  // @public
1496
1495
  export interface TableCellDefinition {
1496
+ // (undocumented)
1497
1497
  attrs?: CellAttributes;
1498
1498
  // (undocumented)
1499
1499
  content: TableCellContent;
@@ -1508,6 +1508,7 @@ export const tableCellSelector: string;
1508
1508
  export interface TableDefinition {
1509
1509
  // (undocumented)
1510
1510
  attrs?: TableAttributes;
1511
+ // (undocumented)
1511
1512
  content: Array<TableRowDefinition>;
1512
1513
  // (undocumented)
1513
1514
  marks?: Array<FragmentDefinition>;
@@ -1520,6 +1521,7 @@ export const tableHeader: NodeSpec;
1520
1521
 
1521
1522
  // @public
1522
1523
  export interface TableHeaderDefinition {
1524
+ // (undocumented)
1523
1525
  attrs?: CellAttributes;
1524
1526
  // (undocumented)
1525
1527
  content: TableCellContent;
@@ -1541,6 +1543,7 @@ export const tableRow: NodeSpec;
1541
1543
 
1542
1544
  // @public
1543
1545
  export interface TableRowDefinition {
1546
+ // (undocumented)
1544
1547
  content: Array<TableCellDefinition | TableHeaderDefinition>;
1545
1548
  // (undocumented)
1546
1549
  type: 'tableRow';