@atlaskit/editor-plugin-table 26.0.6 → 26.0.8
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,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 26.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3a4c286fdb8c1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3a4c286fdb8c1) -
|
|
8
|
+
Add registry-backed Quick Insert search matching under the existing
|
|
9
|
+
`platform_editor_slash_command` experiment. Make native, provider, and extension registered Quick
|
|
10
|
+
Insert items searchable.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 26.0.7
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 26.0.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -7,6 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getTableQuickInsertComponents = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
11
|
+
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
|
+
var _createQuickInsertMatcher = require("@atlaskit/editor-common/quick-insert/create-quick-insert-matcher");
|
|
10
13
|
var _keys = require("@atlaskit/editor-common/quick-insert/keys");
|
|
11
14
|
var _rank = require("@atlaskit/editor-common/quick-insert/rank");
|
|
12
15
|
var _TableQuickInsertMenuItem = require("./TableQuickInsertMenuItem");
|
|
@@ -20,6 +23,15 @@ var getTableQuickInsertComponents = exports.getTableQuickInsertComponents = func
|
|
|
20
23
|
parents: [_objectSpread(_objectSpread({}, _keys.STRUCTURE_SECTION), {}, {
|
|
21
24
|
rank: _rank.STRUCTURE_SECTION_RANK[_keys.TABLE_MENU_ITEM.key]
|
|
22
25
|
})],
|
|
26
|
+
match: (0, _createQuickInsertMatcher.createQuickInsertMatcher)(function (_ref2) {
|
|
27
|
+
var formatMessage = _ref2.formatMessage;
|
|
28
|
+
return {
|
|
29
|
+
description: formatMessage(_messages.toolbarInsertBlockMessages.tableDescription),
|
|
30
|
+
keywords: ['cell', 'table'],
|
|
31
|
+
shortcut: (0, _keymaps.tooltip)(_keymaps.toggleTable),
|
|
32
|
+
title: formatMessage(_messages.toolbarInsertBlockMessages.table)
|
|
33
|
+
};
|
|
34
|
+
}),
|
|
23
35
|
component: function component() {
|
|
24
36
|
return /*#__PURE__*/_react.default.createElement(_TableQuickInsertMenuItem.TableQuickInsertMenuItem, {
|
|
25
37
|
api: api,
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
3
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
|
+
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
2
5
|
import { STRUCTURE_SECTION, TABLE_MENU_ITEM } from '@atlaskit/editor-common/quick-insert/keys';
|
|
3
6
|
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
4
7
|
import { TableQuickInsertMenuItem } from './TableQuickInsertMenuItem';
|
|
@@ -12,6 +15,14 @@ export const getTableQuickInsertComponents = ({
|
|
|
12
15
|
...STRUCTURE_SECTION,
|
|
13
16
|
rank: STRUCTURE_SECTION_RANK[TABLE_MENU_ITEM.key]
|
|
14
17
|
}],
|
|
18
|
+
match: createQuickInsertMatcher(({
|
|
19
|
+
formatMessage
|
|
20
|
+
}) => ({
|
|
21
|
+
description: formatMessage(messages.tableDescription),
|
|
22
|
+
keywords: ['cell', 'table'],
|
|
23
|
+
shortcut: tooltip(toggleTable),
|
|
24
|
+
title: formatMessage(messages.table)
|
|
25
|
+
})),
|
|
15
26
|
component: () => /*#__PURE__*/React.createElement(TableQuickInsertMenuItem, {
|
|
16
27
|
api: api,
|
|
17
28
|
isTableSelectorEnabled: isTableSelectorEnabled,
|
|
@@ -2,6 +2,9 @@ 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 from 'react';
|
|
5
|
+
import { toggleTable, tooltip } from '@atlaskit/editor-common/keymaps';
|
|
6
|
+
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
7
|
+
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
5
8
|
import { STRUCTURE_SECTION, TABLE_MENU_ITEM } from '@atlaskit/editor-common/quick-insert/keys';
|
|
6
9
|
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
7
10
|
import { TableQuickInsertMenuItem } from './TableQuickInsertMenuItem';
|
|
@@ -13,6 +16,15 @@ export var getTableQuickInsertComponents = function getTableQuickInsertComponent
|
|
|
13
16
|
parents: [_objectSpread(_objectSpread({}, STRUCTURE_SECTION), {}, {
|
|
14
17
|
rank: STRUCTURE_SECTION_RANK[TABLE_MENU_ITEM.key]
|
|
15
18
|
})],
|
|
19
|
+
match: createQuickInsertMatcher(function (_ref2) {
|
|
20
|
+
var formatMessage = _ref2.formatMessage;
|
|
21
|
+
return {
|
|
22
|
+
description: formatMessage(messages.tableDescription),
|
|
23
|
+
keywords: ['cell', 'table'],
|
|
24
|
+
shortcut: tooltip(toggleTable),
|
|
25
|
+
title: formatMessage(messages.table)
|
|
26
|
+
};
|
|
27
|
+
}),
|
|
16
28
|
component: function component() {
|
|
17
29
|
return /*#__PURE__*/React.createElement(TableQuickInsertMenuItem, {
|
|
18
30
|
api: api,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "26.0.
|
|
3
|
+
"version": "26.0.8",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^14.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-content-insertion": "^14.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-editor-viewmode": "^16.0.0",
|
|
32
|
-
"@atlaskit/editor-plugin-extension": "17.0
|
|
32
|
+
"@atlaskit/editor-plugin-extension": "17.1.0",
|
|
33
33
|
"@atlaskit/editor-plugin-guideline": "^14.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-interaction": "^25.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-limited-mode": "^11.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-selection": "^14.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-toolbar": "^11.0.0",
|
|
38
|
-
"@atlaskit/editor-plugin-ui-control-registry": "^8.
|
|
38
|
+
"@atlaskit/editor-plugin-ui-control-registry": "^8.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-user-intent": "^12.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-width": "^15.0.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
44
44
|
"@atlaskit/editor-toolbar": "^2.4.0",
|
|
45
|
-
"@atlaskit/editor-ui-control-model": "^2.
|
|
45
|
+
"@atlaskit/editor-ui-control-model": "^2.6.0",
|
|
46
46
|
"@atlaskit/icon": "^37.3.0",
|
|
47
47
|
"@atlaskit/icon-lab": "^7.5.0",
|
|
48
48
|
"@atlaskit/insm": "^1.2.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@atlaskit/tokens": "^16.6.0",
|
|
59
59
|
"@atlaskit/tooltip": "^24.0.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|
|
61
|
-
"@compiled/react": "^1.0.
|
|
61
|
+
"@compiled/react": "^1.0.2",
|
|
62
62
|
"@emotion/react": "^11.7.1",
|
|
63
63
|
"bind-event-listener": "^3.0.0",
|
|
64
64
|
"classnames": "^2.2.5",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"uuid": "^3.1.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@atlaskit/editor-common": "^118.
|
|
71
|
+
"@atlaskit/editor-common": "^118.10.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"
|