@atlaskit/editor-plugin-rule 16.0.0 → 16.1.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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-rule
|
|
2
2
|
|
|
3
|
+
## 16.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
8
|
+
Remove stale API report artifacts from published Platform packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 16.0.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`9f8027e06f6f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f8027e06f6f6) -
|
|
19
|
+
Use updated slash-command menu icons when platform_editor_slash_command is enabled.
|
|
20
|
+
|
|
3
21
|
## 16.0.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -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
|
|
@@ -8,9 +9,9 @@ exports.RuleQuickInsertMenuItem = void 0;
|
|
|
8
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
10
|
var _reactIntl = require("react-intl");
|
|
10
11
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
|
-
var _assets = require("@atlaskit/editor-common/assets");
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
|
|
14
|
+
var _dividerElement = _interopRequireDefault(require("@atlaskit/icon-lab/core/divider-element"));
|
|
14
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); }
|
|
15
16
|
var RuleQuickInsertMenuItem = exports.RuleQuickInsertMenuItem = function RuleQuickInsertMenuItem(_ref) {
|
|
16
17
|
var api = _ref.api;
|
|
@@ -34,7 +35,9 @@ var RuleQuickInsertMenuItem = exports.RuleQuickInsertMenuItem = function RuleQui
|
|
|
34
35
|
return tr;
|
|
35
36
|
}, [api]);
|
|
36
37
|
return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
|
|
37
|
-
iconBefore: /*#__PURE__*/_react.default.createElement(
|
|
38
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(_dividerElement.default, {
|
|
39
|
+
label: ""
|
|
40
|
+
}),
|
|
38
41
|
onSelect: onSelect,
|
|
39
42
|
shortcut: "---",
|
|
40
43
|
title: formatMessage(_messages.toolbarInsertBlockMessages.horizontalRule)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { IconDivider } from '@atlaskit/editor-common/assets';
|
|
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 DividerElementIcon from '@atlaskit/icon-lab/core/divider-element';
|
|
7
7
|
export const RuleQuickInsertMenuItem = ({
|
|
8
8
|
api
|
|
9
9
|
}) => {
|
|
@@ -29,7 +29,9 @@ 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(DividerElementIcon, {
|
|
33
|
+
label: ""
|
|
34
|
+
}),
|
|
33
35
|
onSelect: onSelect,
|
|
34
36
|
shortcut: "---",
|
|
35
37
|
title: formatMessage(messages.horizontalRule)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useCallback } from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { IconDivider } from '@atlaskit/editor-common/assets';
|
|
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 DividerElementIcon from '@atlaskit/icon-lab/core/divider-element';
|
|
7
7
|
export var RuleQuickInsertMenuItem = function RuleQuickInsertMenuItem(_ref) {
|
|
8
8
|
var api = _ref.api;
|
|
9
9
|
var _useIntl = useIntl(),
|
|
@@ -26,7 +26,9 @@ 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(DividerElementIcon, {
|
|
30
|
+
label: ""
|
|
31
|
+
}),
|
|
30
32
|
onSelect: onSelect,
|
|
31
33
|
shortcut: "---",
|
|
32
34
|
title: formatMessage(messages.horizontalRule)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-rule",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.1.0",
|
|
4
4
|
"description": "Rule plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,18 +19,19 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@atlaskit/adf-schema": "^57.
|
|
23
|
-
"@atlaskit/editor-plugin-analytics": "^16.
|
|
22
|
+
"@atlaskit/adf-schema": "^57.2.0",
|
|
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-lab": "^7.7.0",
|
|
26
27
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
27
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
28
|
-
"@atlaskit/prosemirror-input-rules": "^4.
|
|
28
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
29
|
+
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
29
30
|
"@babel/runtime": "^7.0.0",
|
|
30
31
|
"react-intl": "^7.0.0"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {
|
|
33
|
-
"@atlaskit/editor-common": "^120.
|
|
34
|
+
"@atlaskit/editor-common": "^120.9.0",
|
|
34
35
|
"react": "^18.2.0 || ^19.2.0",
|
|
35
36
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
36
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-->
|