@atlaskit/editor-plugin-table 12.2.3 → 12.2.4

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,13 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 12.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`57b19274b9fdd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/57b19274b9fdd) -
8
+ EDITOR-1373 Bump adf-schema version
9
+ - Updated dependencies
10
+
3
11
  ## 12.2.3
4
12
 
5
13
  ### Patch Changes
@@ -265,13 +265,13 @@ var tablePlugin = function tablePlugin(_ref) {
265
265
  })
266
266
  }, {
267
267
  name: 'tableHeader',
268
- node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableHeaderWithLocalId : _adfSchema.tableHeaderWithNestedTable
268
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableHeaderWithNestedTableWithLocalId : _adfSchema.tableHeaderWithNestedTable
269
269
  }, {
270
270
  name: 'tableRow',
271
- node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableRowWithLocalId : _adfSchema.tableRowWithNestedTable
271
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableRowWithNestedTableWithLocalId : _adfSchema.tableRowWithNestedTable
272
272
  }, {
273
273
  name: 'tableCell',
274
- node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableCellWithLocalId : _adfSchema.tableCellWithNestedTable
274
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableCellWithNestedTableWithLocalId : _adfSchema.tableCellWithNestedTable
275
275
  }] : [{
276
276
  name: 'table',
277
277
  node: (0, _toDOM.tableNodeSpecWithFixedToDOM)({
@@ -286,13 +286,13 @@ var tablePlugin = function tablePlugin(_ref) {
286
286
  })
287
287
  }, {
288
288
  name: 'tableHeader',
289
- node: _adfSchema.tableHeader
289
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableHeaderWithLocalId : _adfSchema.tableHeader
290
290
  }, {
291
291
  name: 'tableRow',
292
- node: _adfSchema.tableRow
292
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableRowWithLocalId : _adfSchema.tableRow
293
293
  }, {
294
294
  name: 'tableCell',
295
- node: _adfSchema.tableCell
295
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.tableCellWithLocalId : _adfSchema.tableCell
296
296
  }];
297
297
  },
298
298
  pmPlugins: function pmPlugins() {
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect } from 'react';
2
- import { tableCell, tableCellWithNestedTable, tableHeader, tableHeaderWithLocalId, tableHeaderWithNestedTable, tableRow, tableRowWithNestedTable, tableRowWithLocalId, tableCellWithLocalId } from '@atlaskit/adf-schema';
2
+ import { tableCell, tableCellWithNestedTable, tableHeader, tableHeaderWithLocalId, tableHeaderWithNestedTable, tableRow, tableRowWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableCellWithNestedTableWithLocalId, tableRowWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
4
4
  import { browser } from '@atlaskit/editor-common/browser';
5
5
  import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
@@ -254,13 +254,13 @@ const tablePlugin = ({
254
254
  })
255
255
  }, {
256
256
  name: 'tableHeader',
257
- node: fg('platform_editor_adf_with_localid') ? tableHeaderWithLocalId : tableHeaderWithNestedTable
257
+ node: fg('platform_editor_adf_with_localid') ? tableHeaderWithNestedTableWithLocalId : tableHeaderWithNestedTable
258
258
  }, {
259
259
  name: 'tableRow',
260
- node: fg('platform_editor_adf_with_localid') ? tableRowWithLocalId : tableRowWithNestedTable
260
+ node: fg('platform_editor_adf_with_localid') ? tableRowWithNestedTableWithLocalId : tableRowWithNestedTable
261
261
  }, {
262
262
  name: 'tableCell',
263
- node: fg('platform_editor_adf_with_localid') ? tableCellWithLocalId : tableCellWithNestedTable
263
+ node: fg('platform_editor_adf_with_localid') ? tableCellWithNestedTableWithLocalId : tableCellWithNestedTable
264
264
  }] : [{
265
265
  name: 'table',
266
266
  node: tableNodeSpecWithFixedToDOM({
@@ -275,13 +275,13 @@ const tablePlugin = ({
275
275
  })
276
276
  }, {
277
277
  name: 'tableHeader',
278
- node: tableHeader
278
+ node: fg('platform_editor_adf_with_localid') ? tableHeaderWithLocalId : tableHeader
279
279
  }, {
280
280
  name: 'tableRow',
281
- node: tableRow
281
+ node: fg('platform_editor_adf_with_localid') ? tableRowWithLocalId : tableRow
282
282
  }, {
283
283
  name: 'tableCell',
284
- node: tableCell
284
+ node: fg('platform_editor_adf_with_localid') ? tableCellWithLocalId : tableCell
285
285
  }];
286
286
  },
287
287
  pmPlugins() {
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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; }
4
4
  import React, { useEffect } from 'react';
5
- import { tableCell, tableCellWithNestedTable, tableHeader, tableHeaderWithLocalId, tableHeaderWithNestedTable, tableRow, tableRowWithNestedTable, tableRowWithLocalId, tableCellWithLocalId } from '@atlaskit/adf-schema';
5
+ import { tableCell, tableCellWithNestedTable, tableHeader, tableHeaderWithLocalId, tableHeaderWithNestedTable, tableRow, tableRowWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableCellWithNestedTableWithLocalId, tableRowWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from '@atlaskit/adf-schema';
6
6
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, TABLE_ACTION } from '@atlaskit/editor-common/analytics';
7
7
  import { browser } from '@atlaskit/editor-common/browser';
8
8
  import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
@@ -257,13 +257,13 @@ var tablePlugin = function tablePlugin(_ref) {
257
257
  })
258
258
  }, {
259
259
  name: 'tableHeader',
260
- node: fg('platform_editor_adf_with_localid') ? tableHeaderWithLocalId : tableHeaderWithNestedTable
260
+ node: fg('platform_editor_adf_with_localid') ? tableHeaderWithNestedTableWithLocalId : tableHeaderWithNestedTable
261
261
  }, {
262
262
  name: 'tableRow',
263
- node: fg('platform_editor_adf_with_localid') ? tableRowWithLocalId : tableRowWithNestedTable
263
+ node: fg('platform_editor_adf_with_localid') ? tableRowWithNestedTableWithLocalId : tableRowWithNestedTable
264
264
  }, {
265
265
  name: 'tableCell',
266
- node: fg('platform_editor_adf_with_localid') ? tableCellWithLocalId : tableCellWithNestedTable
266
+ node: fg('platform_editor_adf_with_localid') ? tableCellWithNestedTableWithLocalId : tableCellWithNestedTable
267
267
  }] : [{
268
268
  name: 'table',
269
269
  node: tableNodeSpecWithFixedToDOM({
@@ -278,13 +278,13 @@ var tablePlugin = function tablePlugin(_ref) {
278
278
  })
279
279
  }, {
280
280
  name: 'tableHeader',
281
- node: tableHeader
281
+ node: fg('platform_editor_adf_with_localid') ? tableHeaderWithLocalId : tableHeader
282
282
  }, {
283
283
  name: 'tableRow',
284
- node: tableRow
284
+ node: fg('platform_editor_adf_with_localid') ? tableRowWithLocalId : tableRow
285
285
  }, {
286
286
  name: 'tableCell',
287
- node: tableCell
287
+ node: fg('platform_editor_adf_with_localid') ? tableCellWithLocalId : tableCell
288
288
  }];
289
289
  },
290
290
  pmPlugins: function pmPlugins() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "12.2.3",
3
+ "version": "12.2.4",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -28,7 +28,7 @@
28
28
  "singleton": true
29
29
  },
30
30
  "dependencies": {
31
- "@atlaskit/adf-schema": "^50.2.0",
31
+ "@atlaskit/adf-schema": "^50.2.1",
32
32
  "@atlaskit/button": "^23.4.0",
33
33
  "@atlaskit/custom-steps": "^0.11.0",
34
34
  "@atlaskit/editor-palette": "^2.1.0",
@@ -37,11 +37,11 @@
37
37
  "@atlaskit/editor-plugin-batch-attribute-updates": "^3.0.0",
38
38
  "@atlaskit/editor-plugin-content-insertion": "^3.1.0",
39
39
  "@atlaskit/editor-plugin-editor-viewmode": "^5.0.0",
40
- "@atlaskit/editor-plugin-extension": "6.1.9",
40
+ "@atlaskit/editor-plugin-extension": "6.1.10",
41
41
  "@atlaskit/editor-plugin-guideline": "^3.0.0",
42
42
  "@atlaskit/editor-plugin-interaction": "^5.0.0",
43
43
  "@atlaskit/editor-plugin-limited-mode": "^0.0.3",
44
- "@atlaskit/editor-plugin-selection": "^3.0.0",
44
+ "@atlaskit/editor-plugin-selection": "^3.1.0",
45
45
  "@atlaskit/editor-plugin-user-intent": "^1.1.0",
46
46
  "@atlaskit/editor-plugin-width": "^4.0.0",
47
47
  "@atlaskit/editor-prosemirror": "7.0.0",
@@ -10,6 +10,9 @@ import {
10
10
  tableRowWithNestedTable,
11
11
  tableRowWithLocalId,
12
12
  tableCellWithLocalId,
13
+ tableCellWithNestedTableWithLocalId,
14
+ tableRowWithNestedTableWithLocalId,
15
+ tableHeaderWithNestedTableWithLocalId,
13
16
  } from '@atlaskit/adf-schema';
14
17
  import {
15
18
  ACTION,
@@ -343,19 +346,19 @@ const tablePlugin: TablePlugin = ({ config: options, api }) => {
343
346
  {
344
347
  name: 'tableHeader',
345
348
  node: fg('platform_editor_adf_with_localid')
346
- ? tableHeaderWithLocalId
349
+ ? tableHeaderWithNestedTableWithLocalId
347
350
  : tableHeaderWithNestedTable,
348
351
  },
349
352
  {
350
353
  name: 'tableRow',
351
354
  node: fg('platform_editor_adf_with_localid')
352
- ? tableRowWithLocalId
355
+ ? tableRowWithNestedTableWithLocalId
353
356
  : tableRowWithNestedTable,
354
357
  },
355
358
  {
356
359
  name: 'tableCell',
357
360
  node: fg('platform_editor_adf_with_localid')
358
- ? tableCellWithLocalId
361
+ ? tableCellWithNestedTableWithLocalId
359
362
  : tableCellWithNestedTable,
360
363
  },
361
364
  ]
@@ -373,9 +376,18 @@ const tablePlugin: TablePlugin = ({ config: options, api }) => {
373
376
  isChromelessEditor,
374
377
  }),
375
378
  },
376
- { name: 'tableHeader', node: tableHeader },
377
- { name: 'tableRow', node: tableRow },
378
- { name: 'tableCell', node: tableCell },
379
+ {
380
+ name: 'tableHeader',
381
+ node: fg('platform_editor_adf_with_localid') ? tableHeaderWithLocalId : tableHeader,
382
+ },
383
+ {
384
+ name: 'tableRow',
385
+ node: fg('platform_editor_adf_with_localid') ? tableRowWithLocalId : tableRow,
386
+ },
387
+ {
388
+ name: 'tableCell',
389
+ node: fg('platform_editor_adf_with_localid') ? tableCellWithLocalId : tableCell,
390
+ },
379
391
  ];
380
392
  },
381
393