@atlaskit/editor-plugin-table 12.2.3 → 12.2.5
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 +14 -0
- package/dist/cjs/tablePlugin.js +6 -6
- package/dist/es2019/tablePlugin.js +7 -7
- package/dist/esm/tablePlugin.js +7 -7
- package/package.json +5 -5
- package/src/tablePlugin.tsx +18 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 12.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 12.2.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`57b19274b9fdd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/57b19274b9fdd) -
|
|
14
|
+
EDITOR-1373 Bump adf-schema version
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 12.2.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/tablePlugin.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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') ?
|
|
257
|
+
node: fg('platform_editor_adf_with_localid') ? tableHeaderWithNestedTableWithLocalId : tableHeaderWithNestedTable
|
|
258
258
|
}, {
|
|
259
259
|
name: 'tableRow',
|
|
260
|
-
node: fg('platform_editor_adf_with_localid') ?
|
|
260
|
+
node: fg('platform_editor_adf_with_localid') ? tableRowWithNestedTableWithLocalId : tableRowWithNestedTable
|
|
261
261
|
}, {
|
|
262
262
|
name: 'tableCell',
|
|
263
|
-
node: fg('platform_editor_adf_with_localid') ?
|
|
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() {
|
package/dist/esm/tablePlugin.js
CHANGED
|
@@ -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') ?
|
|
260
|
+
node: fg('platform_editor_adf_with_localid') ? tableHeaderWithNestedTableWithLocalId : tableHeaderWithNestedTable
|
|
261
261
|
}, {
|
|
262
262
|
name: 'tableRow',
|
|
263
|
-
node: fg('platform_editor_adf_with_localid') ?
|
|
263
|
+
node: fg('platform_editor_adf_with_localid') ? tableRowWithNestedTableWithLocalId : tableRowWithNestedTable
|
|
264
264
|
}, {
|
|
265
265
|
name: 'tableCell',
|
|
266
|
-
node: fg('platform_editor_adf_with_localid') ?
|
|
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
|
+
"version": "12.2.5",
|
|
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.
|
|
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,17 +37,17 @@
|
|
|
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.
|
|
40
|
+
"@atlaskit/editor-plugin-extension": "6.1.11",
|
|
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.
|
|
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",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
50
|
-
"@atlaskit/icon": "^
|
|
50
|
+
"@atlaskit/icon": "^28.0.0",
|
|
51
51
|
"@atlaskit/menu": "^8.3.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
package/src/tablePlugin.tsx
CHANGED
|
@@ -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
|
-
?
|
|
349
|
+
? tableHeaderWithNestedTableWithLocalId
|
|
347
350
|
: tableHeaderWithNestedTable,
|
|
348
351
|
},
|
|
349
352
|
{
|
|
350
353
|
name: 'tableRow',
|
|
351
354
|
node: fg('platform_editor_adf_with_localid')
|
|
352
|
-
?
|
|
355
|
+
? tableRowWithNestedTableWithLocalId
|
|
353
356
|
: tableRowWithNestedTable,
|
|
354
357
|
},
|
|
355
358
|
{
|
|
356
359
|
name: 'tableCell',
|
|
357
360
|
node: fg('platform_editor_adf_with_localid')
|
|
358
|
-
?
|
|
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
|
-
{
|
|
377
|
-
|
|
378
|
-
|
|
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
|
|