@atlaskit/editor-plugin-hyperlink 18.0.2 → 18.0.3

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,13 @@
1
1
  # @atlaskit/editor-plugin-hyperlink
2
2
 
3
+ ## 18.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`02f23e888be02`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/02f23e888be02) -
8
+ Use core icons for slash-menu items when platform_editor_slash_command is enabled.
9
+ - Updated dependencies
10
+
3
11
  ## 18.0.2
4
12
 
5
13
  ### 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
@@ -11,8 +12,8 @@ var _analytics = require("@atlaskit/editor-common/analytics");
11
12
  var _keymaps = require("@atlaskit/editor-common/keymaps");
12
13
  var _link = require("@atlaskit/editor-common/link");
13
14
  var _messages = require("@atlaskit/editor-common/messages");
14
- var _quickInsert = require("@atlaskit/editor-common/quick-insert");
15
15
  var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
16
+ var _link2 = _interopRequireDefault(require("@atlaskit/icon/core/link"));
16
17
  var _main = require("../../pm-plugins/main");
17
18
  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); }
18
19
  var HyperlinkQuickInsertMenuItem = exports.HyperlinkQuickInsertMenuItem = function HyperlinkQuickInsertMenuItem(_ref) {
@@ -39,7 +40,9 @@ var HyperlinkQuickInsertMenuItem = exports.HyperlinkQuickInsertMenuItem = functi
39
40
  return analyticsAttached !== false ? tr : false;
40
41
  }, [api]);
41
42
  return /*#__PURE__*/_react.default.createElement(_menuItem.QuickInsertMenuItem, {
42
- iconBefore: /*#__PURE__*/_react.default.createElement(_quickInsert.IconLink, null),
43
+ iconBefore: /*#__PURE__*/_react.default.createElement(_link2.default, {
44
+ label: ""
45
+ }),
43
46
  onSelect: onSelect,
44
47
  shortcut: (0, _keymaps.tooltip)(_keymaps.addLink),
45
48
  title: formatMessage(_messages.toolbarInsertBlockMessages.link)
@@ -4,8 +4,8 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
4
4
  import { addLink, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { LinkAction } from '@atlaskit/editor-common/link';
6
6
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
7
- import { IconLink } from '@atlaskit/editor-common/quick-insert';
8
7
  import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
8
+ import LinkIcon from '@atlaskit/icon/core/link';
9
9
  import { stateKey } from '../../pm-plugins/main';
10
10
  export const HyperlinkQuickInsertMenuItem = ({
11
11
  api
@@ -34,7 +34,9 @@ export const HyperlinkQuickInsertMenuItem = ({
34
34
  return analyticsAttached !== false ? tr : false;
35
35
  }, [api]);
36
36
  return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
37
- iconBefore: /*#__PURE__*/React.createElement(IconLink, null),
37
+ iconBefore: /*#__PURE__*/React.createElement(LinkIcon, {
38
+ label: ""
39
+ }),
38
40
  onSelect: onSelect,
39
41
  shortcut: tooltip(addLink),
40
42
  title: formatMessage(messages.link)
@@ -4,8 +4,8 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
4
4
  import { addLink, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { LinkAction } from '@atlaskit/editor-common/link';
6
6
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
7
- import { IconLink } from '@atlaskit/editor-common/quick-insert';
8
7
  import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
8
+ import LinkIcon from '@atlaskit/icon/core/link';
9
9
  import { stateKey } from '../../pm-plugins/main';
10
10
  export var HyperlinkQuickInsertMenuItem = function HyperlinkQuickInsertMenuItem(_ref) {
11
11
  var api = _ref.api;
@@ -31,7 +31,9 @@ export var HyperlinkQuickInsertMenuItem = function HyperlinkQuickInsertMenuItem(
31
31
  return analyticsAttached !== false ? tr : false;
32
32
  }, [api]);
33
33
  return /*#__PURE__*/React.createElement(QuickInsertMenuItem, {
34
- iconBefore: /*#__PURE__*/React.createElement(IconLink, null),
34
+ iconBefore: /*#__PURE__*/React.createElement(LinkIcon, {
35
+ label: ""
36
+ }),
35
37
  onSelect: onSelect,
36
38
  shortcut: tooltip(addLink),
37
39
  title: formatMessage(messages.link)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-hyperlink",
3
- "version": "18.0.2",
3
+ "version": "18.0.3",
4
4
  "description": "Hyperlink plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,8 +21,8 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^57.1.0",
25
- "@atlaskit/analytics-next": "^12.3.0",
24
+ "@atlaskit/adf-schema": "^57.2.0",
25
+ "@atlaskit/analytics-next": "^12.4.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^16.0.0",
27
27
  "@atlaskit/editor-plugin-card": "^22.0.0",
28
28
  "@atlaskit/editor-plugin-connectivity": "^16.0.0",
@@ -40,13 +40,13 @@
40
40
  "@atlaskit/platform-feature-experiments": "^0.3.0",
41
41
  "@atlaskit/platform-feature-flags": "^2.1.0",
42
42
  "@atlaskit/prosemirror-input-rules": "^4.0.0",
43
- "@atlaskit/tmp-editor-statsig": "^162.0.0",
43
+ "@atlaskit/tmp-editor-statsig": "^163.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "@emotion/react": "^11.7.1",
46
46
  "uuid": "^3.1.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^120.2.0",
49
+ "@atlaskit/editor-common": "^120.3.0",
50
50
  "react": "^18.2.0 || ^19.2.0",
51
51
  "react-dom": "^18.2.0 || ^19.2.0",
52
52
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"