@atlaskit/editor-plugin-rule 16.0.0 → 16.0.1

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,12 @@
1
1
  # @atlaskit/editor-plugin-rule
2
2
 
3
+ ## 16.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9f8027e06f6f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f8027e06f6f6) -
8
+ Use updated slash-command menu icons when platform_editor_slash_command is enabled.
9
+
3
10
  ## 16.0.0
4
11
 
5
12
  ### 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(_assets.IconDivider, null),
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(IconDivider, null),
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(IconDivider, null),
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.0.0",
3
+ "version": "16.0.1",
4
4
  "description": "Rule plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -19,10 +19,11 @@
19
19
  "sideEffects": false,
20
20
  "atlaskit:src": "src/index.ts",
21
21
  "dependencies": {
22
- "@atlaskit/adf-schema": "^57.1.0",
22
+ "@atlaskit/adf-schema": "^57.2.0",
23
23
  "@atlaskit/editor-plugin-analytics": "^16.0.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
28
  "@atlaskit/platform-feature-flags": "^2.1.0",
28
29
  "@atlaskit/prosemirror-input-rules": "^4.0.0",
@@ -30,7 +31,7 @@
30
31
  "react-intl": "^7.0.0"
31
32
  },
32
33
  "peerDependencies": {
33
- "@atlaskit/editor-common": "^120.0.0",
34
+ "@atlaskit/editor-common": "^120.3.0",
34
35
  "react": "^18.2.0 || ^19.2.0",
35
36
  "react-dom": "^18.2.0 || ^19.2.0"
36
37
  },