@atlaskit/editor-plugin-table 28.0.2 → 28.0.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 +17 -0
- package/dist/cjs/nodeviews/TableComponent.js +1 -1
- package/dist/cjs/ui/quick-insert/TableQuickInsertMenuItem.js +5 -2
- package/dist/es2019/nodeviews/TableComponent.js +1 -1
- package/dist/es2019/ui/quick-insert/TableQuickInsertMenuItem.js +4 -2
- package/dist/esm/nodeviews/TableComponent.js +1 -1
- package/dist/esm/ui/quick-insert/TableQuickInsertMenuItem.js +4 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 28.0.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d82ea790b5c1c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d82ea790b5c1c) -
|
|
8
|
+
Update registered slash-command menu icons, including the Jira datasource WorkItems icon, when the
|
|
9
|
+
`platform_editor_slash_command` experiment is enabled.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 28.0.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [`3c376dcc27b56`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3c376dcc27b56) -
|
|
17
|
+
Clean up experiment `platform_editor_table_ref_optimisation`
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 28.0.2
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -801,7 +801,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
801
801
|
}, {
|
|
802
802
|
key: "dispatchTableRefUpdate",
|
|
803
803
|
value: function dispatchTableRefUpdate() {
|
|
804
|
-
if (this.table && this.table !== this.lastSetTableRef &&
|
|
804
|
+
if (this.table && this.table !== this.lastSetTableRef && this.props.tableActive && this.props.view) {
|
|
805
805
|
this.lastSetTableRef = this.table;
|
|
806
806
|
(0, _commands.setTableRef)(this.table)(this.props.view.state, this.props.view.dispatch);
|
|
807
807
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
@@ -7,10 +8,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
8
|
exports.TableQuickInsertMenuItem = void 0;
|
|
8
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _reactIntl = require("react-intl");
|
|
10
|
-
var _icons = require("@atlaskit/editor-common/icons");
|
|
11
11
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
|
|
14
|
+
var _grid = _interopRequireDefault(require("@atlaskit/icon/core/grid"));
|
|
14
15
|
var _insertTableFromQuickInsert = require("./insertTableFromQuickInsert");
|
|
15
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
17
|
var TableQuickInsertMenuItem = exports.TableQuickInsertMenuItem = function TableQuickInsertMenuItem(_ref) {
|
|
@@ -33,7 +34,9 @@ var TableQuickInsertMenuItem = exports.TableQuickInsertMenuItem = function Table
|
|
|
33
34
|
});
|
|
34
35
|
}, [api, isTableSelectorEnabled, options]);
|
|
35
36
|
return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
|
|
36
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
37
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_grid.default, {
|
|
38
|
+
label: ""
|
|
39
|
+
}),
|
|
37
40
|
onSelect: onSelect,
|
|
38
41
|
shortcut: (0, _keymaps.tooltip)(_keymaps.toggleTable),
|
|
39
42
|
title: formatMessage(_messages.toolbarInsertBlockMessages.table)
|
|
@@ -762,7 +762,7 @@ class TableComponent extends React.Component {
|
|
|
762
762
|
this.dispatchTableRefUpdate();
|
|
763
763
|
}
|
|
764
764
|
dispatchTableRefUpdate() {
|
|
765
|
-
if (this.table && this.table !== this.lastSetTableRef &&
|
|
765
|
+
if (this.table && this.table !== this.lastSetTableRef && this.props.tableActive && this.props.view) {
|
|
766
766
|
this.lastSetTableRef = this.table;
|
|
767
767
|
setTableRef(this.table)(this.props.view.state, this.props.view.dispatch);
|
|
768
768
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { IconTable } from '@atlaskit/editor-common/icons';
|
|
4
3
|
import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
5
4
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
5
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
6
|
+
import GridIcon from '@atlaskit/icon/core/grid';
|
|
7
7
|
import { insertTableFromQuickInsert } from './insertTableFromQuickInsert';
|
|
8
8
|
export const TableQuickInsertMenuItem = ({
|
|
9
9
|
api,
|
|
@@ -26,7 +26,9 @@ export const TableQuickInsertMenuItem = ({
|
|
|
26
26
|
state: editorView.state
|
|
27
27
|
}), [api, isTableSelectorEnabled, options]);
|
|
28
28
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
29
|
-
iconBefore: /*#__PURE__*/React.createElement(
|
|
29
|
+
iconBefore: /*#__PURE__*/React.createElement(GridIcon, {
|
|
30
|
+
label: ""
|
|
31
|
+
}),
|
|
30
32
|
onSelect: onSelect,
|
|
31
33
|
shortcut: tooltip(toggleTable),
|
|
32
34
|
title: formatMessage(messages.table)
|
|
@@ -795,7 +795,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
795
795
|
}, {
|
|
796
796
|
key: "dispatchTableRefUpdate",
|
|
797
797
|
value: function dispatchTableRefUpdate() {
|
|
798
|
-
if (this.table && this.table !== this.lastSetTableRef &&
|
|
798
|
+
if (this.table && this.table !== this.lastSetTableRef && this.props.tableActive && this.props.view) {
|
|
799
799
|
this.lastSetTableRef = this.table;
|
|
800
800
|
setTableRef(this.table)(this.props.view.state, this.props.view.dispatch);
|
|
801
801
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
|
-
import { IconTable } from '@atlaskit/editor-common/icons';
|
|
4
3
|
import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
5
4
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
6
5
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
6
|
+
import GridIcon from '@atlaskit/icon/core/grid';
|
|
7
7
|
import { insertTableFromQuickInsert } from './insertTableFromQuickInsert';
|
|
8
8
|
export var TableQuickInsertMenuItem = function TableQuickInsertMenuItem(_ref) {
|
|
9
9
|
var api = _ref.api,
|
|
@@ -25,7 +25,9 @@ export var TableQuickInsertMenuItem = function TableQuickInsertMenuItem(_ref) {
|
|
|
25
25
|
});
|
|
26
26
|
}, [api, isTableSelectorEnabled, options]);
|
|
27
27
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
28
|
-
iconBefore: /*#__PURE__*/React.createElement(
|
|
28
|
+
iconBefore: /*#__PURE__*/React.createElement(GridIcon, {
|
|
29
|
+
label: ""
|
|
30
|
+
}),
|
|
29
31
|
onSelect: onSelect,
|
|
30
32
|
shortcut: tooltip(toggleTable),
|
|
31
33
|
title: formatMessage(messages.table)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.4",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^16.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-content-insertion": "^16.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-editor-viewmode": "^18.0.0",
|
|
32
|
-
"@atlaskit/editor-plugin-extension": "19.0.
|
|
32
|
+
"@atlaskit/editor-plugin-extension": "19.0.2",
|
|
33
33
|
"@atlaskit/editor-plugin-guideline": "^16.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-interaction": "^27.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-limited-mode": "^13.0.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.1.0",
|
|
54
54
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.1.0",
|
|
55
55
|
"@atlaskit/primitives": "^22.4.0",
|
|
56
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
56
|
+
"@atlaskit/tmp-editor-statsig": "^162.0.0",
|
|
57
57
|
"@atlaskit/toggle": "^17.2.0",
|
|
58
58
|
"@atlaskit/tokens": "^16.8.0",
|
|
59
59
|
"@atlaskit/tooltip": "^24.2.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"uuid": "^3.1.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@atlaskit/editor-common": "^120.
|
|
71
|
+
"@atlaskit/editor-common": "^120.3.0",
|
|
72
72
|
"react": "^18.2.0 || ^19.2.0",
|
|
73
73
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
74
74
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|