@atlaskit/editor-plugin-rule 16.1.0 → 16.2.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 +13 -0
- package/dist/cjs/ui/quick-insert/RuleQuickInsertMenuItem.js +2 -2
- package/dist/cjs/ui/quick-insert/getRuleQuickInsertComponents.js +3 -3
- package/dist/es2019/ui/quick-insert/RuleQuickInsertMenuItem.js +2 -2
- package/dist/es2019/ui/quick-insert/getRuleQuickInsertComponents.js +5 -5
- package/dist/esm/ui/quick-insert/RuleQuickInsertMenuItem.js +2 -2
- package/dist/esm/ui/quick-insert/getRuleQuickInsertComponents.js +5 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-rule
|
|
2
2
|
|
|
3
|
+
## 16.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`ec66928dbdbeb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ec66928dbdbeb) -
|
|
8
|
+
For the platform_editor_slash_command experiment, reorder Structure items, update slash-command
|
|
9
|
+
icons, move Jira work items to Data & Charts, and move Create Jira work item and Mention to
|
|
10
|
+
Structure. Use BlockSyncedIcon for the Synced block command.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 16.1.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -11,7 +11,7 @@ var _reactIntl = require("react-intl");
|
|
|
11
11
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
|
|
14
|
-
var
|
|
14
|
+
var _minus = _interopRequireDefault(require("@atlaskit/icon/core/minus"));
|
|
15
15
|
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
16
|
var RuleQuickInsertMenuItem = exports.RuleQuickInsertMenuItem = function RuleQuickInsertMenuItem(_ref) {
|
|
17
17
|
var api = _ref.api;
|
|
@@ -35,7 +35,7 @@ var RuleQuickInsertMenuItem = exports.RuleQuickInsertMenuItem = function RuleQui
|
|
|
35
35
|
return tr;
|
|
36
36
|
}, [api]);
|
|
37
37
|
return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
|
|
38
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
38
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_minus.default, {
|
|
39
39
|
label: ""
|
|
40
40
|
}),
|
|
41
41
|
onSelect: onSelect,
|
|
@@ -17,9 +17,9 @@ var getRuleQuickInsertComponents = exports.getRuleQuickInsertComponents = functi
|
|
|
17
17
|
key: _keys.RULE_MENU_ITEM.key,
|
|
18
18
|
type: _keys.RULE_MENU_ITEM.type,
|
|
19
19
|
parents: [{
|
|
20
|
-
key: _keys.
|
|
21
|
-
type: _keys.
|
|
22
|
-
rank: _rank.
|
|
20
|
+
key: _keys.STRUCTURE_SECTION.key,
|
|
21
|
+
type: _keys.STRUCTURE_SECTION.type,
|
|
22
|
+
rank: _rank.STRUCTURE_SECTION_RANK[_keys.RULE_MENU_ITEM.key]
|
|
23
23
|
}],
|
|
24
24
|
match: (0, _createQuickInsertMatcher.createQuickInsertMatcher)(function (_ref2) {
|
|
25
25
|
var formatMessage = _ref2.formatMessage;
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
6
|
-
import
|
|
6
|
+
import MinusIcon from '@atlaskit/icon/core/minus';
|
|
7
7
|
export const RuleQuickInsertMenuItem = ({
|
|
8
8
|
api
|
|
9
9
|
}) => {
|
|
@@ -29,7 +29,7 @@ export const RuleQuickInsertMenuItem = ({
|
|
|
29
29
|
return tr;
|
|
30
30
|
}, [api]);
|
|
31
31
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
32
|
-
iconBefore: /*#__PURE__*/React.createElement(
|
|
32
|
+
iconBefore: /*#__PURE__*/React.createElement(MinusIcon, {
|
|
33
33
|
label: ""
|
|
34
34
|
}),
|
|
35
35
|
onSelect: onSelect,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
4
|
-
import { RULE_MENU_ITEM,
|
|
5
|
-
import {
|
|
4
|
+
import { RULE_MENU_ITEM, STRUCTURE_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
|
|
5
|
+
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
6
6
|
import { RuleQuickInsertMenuItem } from './RuleQuickInsertMenuItem';
|
|
7
7
|
export const getRuleQuickInsertComponents = ({
|
|
8
8
|
api
|
|
@@ -10,9 +10,9 @@ export const getRuleQuickInsertComponents = ({
|
|
|
10
10
|
key: RULE_MENU_ITEM.key,
|
|
11
11
|
type: RULE_MENU_ITEM.type,
|
|
12
12
|
parents: [{
|
|
13
|
-
key:
|
|
14
|
-
type:
|
|
15
|
-
rank:
|
|
13
|
+
key: STRUCTURE_SECTION.key,
|
|
14
|
+
type: STRUCTURE_SECTION.type,
|
|
15
|
+
rank: STRUCTURE_SECTION_RANK[RULE_MENU_ITEM.key]
|
|
16
16
|
}],
|
|
17
17
|
match: createQuickInsertMatcher(({
|
|
18
18
|
formatMessage
|
|
@@ -3,7 +3,7 @@ import { useIntl } from 'react-intl';
|
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
|
|
6
|
-
import
|
|
6
|
+
import MinusIcon from '@atlaskit/icon/core/minus';
|
|
7
7
|
export var RuleQuickInsertMenuItem = function RuleQuickInsertMenuItem(_ref) {
|
|
8
8
|
var api = _ref.api;
|
|
9
9
|
var _useIntl = useIntl(),
|
|
@@ -26,7 +26,7 @@ export var RuleQuickInsertMenuItem = function RuleQuickInsertMenuItem(_ref) {
|
|
|
26
26
|
return tr;
|
|
27
27
|
}, [api]);
|
|
28
28
|
return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
|
|
29
|
-
iconBefore: /*#__PURE__*/React.createElement(
|
|
29
|
+
iconBefore: /*#__PURE__*/React.createElement(MinusIcon, {
|
|
30
30
|
label: ""
|
|
31
31
|
}),
|
|
32
32
|
onSelect: onSelect,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import { createQuickInsertMatcher } from '@atlaskit/editor-common/quick-insert/create-quick-insert-matcher';
|
|
4
|
-
import { RULE_MENU_ITEM,
|
|
5
|
-
import {
|
|
4
|
+
import { RULE_MENU_ITEM, STRUCTURE_SECTION } from '@atlaskit/editor-common/quick-insert/keys';
|
|
5
|
+
import { STRUCTURE_SECTION_RANK } from '@atlaskit/editor-common/quick-insert/rank';
|
|
6
6
|
import { RuleQuickInsertMenuItem } from './RuleQuickInsertMenuItem';
|
|
7
7
|
export var getRuleQuickInsertComponents = function getRuleQuickInsertComponents(_ref) {
|
|
8
8
|
var api = _ref.api;
|
|
@@ -10,9 +10,9 @@ export var getRuleQuickInsertComponents = function getRuleQuickInsertComponents(
|
|
|
10
10
|
key: RULE_MENU_ITEM.key,
|
|
11
11
|
type: RULE_MENU_ITEM.type,
|
|
12
12
|
parents: [{
|
|
13
|
-
key:
|
|
14
|
-
type:
|
|
15
|
-
rank:
|
|
13
|
+
key: STRUCTURE_SECTION.key,
|
|
14
|
+
type: STRUCTURE_SECTION.type,
|
|
15
|
+
rank: STRUCTURE_SECTION_RANK[RULE_MENU_ITEM.key]
|
|
16
16
|
}],
|
|
17
17
|
match: createQuickInsertMatcher(function (_ref2) {
|
|
18
18
|
var formatMessage = _ref2.formatMessage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-rule",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.2.0",
|
|
4
4
|
"description": "Rule plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
24
24
|
"@atlaskit/editor-plugin-ui-control-registry": "^10.0.0",
|
|
25
25
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
26
|
-
"@atlaskit/icon
|
|
26
|
+
"@atlaskit/icon": "^37.6.0",
|
|
27
27
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
28
28
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
29
29
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-intl": "^7.0.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@atlaskit/editor-common": "^120.
|
|
34
|
+
"@atlaskit/editor-common": "^120.10.0",
|
|
35
35
|
"react": "^18.2.0 || ^19.2.0",
|
|
36
36
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
37
37
|
},
|