@atlaskit/editor-plugin-rule 16.0.1 → 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 +24 -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 +6 -6
- package/report.api.md +0 -71
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
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
|
+
|
|
16
|
+
## 16.1.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
21
|
+
Remove stale API report artifacts from published Platform packages.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
|
|
3
27
|
## 16.0.1
|
|
4
28
|
|
|
5
29
|
### Patch 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.0
|
|
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",
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@atlaskit/adf-schema": "^57.2.0",
|
|
23
|
-
"@atlaskit/editor-plugin-analytics": "^16.
|
|
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
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
29
|
-
"@atlaskit/prosemirror-input-rules": "^4.
|
|
28
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
29
|
+
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
30
30
|
"@babel/runtime": "^7.0.0",
|
|
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
|
},
|
package/report.api.md
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/editor-plugin-rule"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
20
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
21
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
22
|
-
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
23
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
24
|
-
import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
25
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
26
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
27
|
-
|
|
28
|
-
// @public (undocumented)
|
|
29
|
-
const insertHorizontalRule: (
|
|
30
|
-
featureFlags: FeatureFlags,
|
|
31
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
|
|
32
|
-
) => (
|
|
33
|
-
inputMethod:
|
|
34
|
-
| INPUT_METHOD.FORMATTING
|
|
35
|
-
| INPUT_METHOD.INSERT_MENU
|
|
36
|
-
| INPUT_METHOD.QUICK_INSERT
|
|
37
|
-
| INPUT_METHOD.SHORTCUT
|
|
38
|
-
| INPUT_METHOD.TOOLBAR,
|
|
39
|
-
) => Command;
|
|
40
|
-
|
|
41
|
-
// @public (undocumented)
|
|
42
|
-
export type RulePlugin = NextEditorPlugin<
|
|
43
|
-
'rule',
|
|
44
|
-
{
|
|
45
|
-
pluginConfiguration: undefined;
|
|
46
|
-
dependencies: [OptionalPlugin<FeatureFlagsPlugin>, OptionalPlugin<AnalyticsPlugin>];
|
|
47
|
-
actions: {
|
|
48
|
-
insertHorizontalRule: ReturnType<typeof insertHorizontalRule>;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
>;
|
|
52
|
-
|
|
53
|
-
// @public (undocumented)
|
|
54
|
-
export const rulePlugin: RulePlugin;
|
|
55
|
-
|
|
56
|
-
// (No @packageDocumentation comment for this package)
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
<!--SECTION END: Main Entry Types-->
|
|
60
|
-
|
|
61
|
-
### Peer Dependencies
|
|
62
|
-
|
|
63
|
-
<!--SECTION START: Peer Dependencies-->
|
|
64
|
-
|
|
65
|
-
```json
|
|
66
|
-
{
|
|
67
|
-
"react": "^16.8.0"
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
<!--SECTION END: Peer Dependencies-->
|