@atlaskit/editor-plugin-hyperlink 20.0.12 → 21.0.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,19 @@
1
1
  # @atlaskit/editor-plugin-hyperlink
2
2
 
3
+ ## 21.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 20.0.13
10
+
11
+ ### Patch Changes
12
+
13
+ - [`c1111df7c2aef`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c1111df7c2aef) -
14
+ Add light and dark hover previews for selected slash-command media, Whiteboard, and Profile
15
+ Picture items when `platform_editor_slash_command` is enabled.
16
+
3
17
  ## 20.0.12
4
18
 
5
19
  ### Patch Changes
@@ -16,6 +16,10 @@ var _menuItem = require("@atlaskit/editor-common/quick-insert/menu-item");
16
16
  var _link2 = _interopRequireDefault(require("@atlaskit/icon/core/link"));
17
17
  var _main = require("../../pm-plugins/main");
18
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); }
19
+ var previewImageUrls = {
20
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/k45g2t4lad0x76vcj2450e0rbu878341.png',
21
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/30kh88n77bw11v27ee721oi323c20cr6.png'
22
+ };
19
23
  var HyperlinkQuickInsertMenuItem = exports.HyperlinkQuickInsertMenuItem = function HyperlinkQuickInsertMenuItem(_ref) {
20
24
  var api = _ref.api;
21
25
  var _useIntl = (0, _reactIntl.useIntl)(),
@@ -44,6 +48,7 @@ var HyperlinkQuickInsertMenuItem = exports.HyperlinkQuickInsertMenuItem = functi
44
48
  label: ""
45
49
  }),
46
50
  onSelect: onSelect,
51
+ previewImageUrls: previewImageUrls,
47
52
  shortcut: (0, _keymaps.tooltip)(_keymaps.addLink),
48
53
  title: formatMessage(_messages.toolbarInsertBlockMessages.link)
49
54
  });
@@ -7,6 +7,10 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
7
7
  import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
8
8
  import LinkIcon from '@atlaskit/icon/core/link';
9
9
  import { stateKey } from '../../pm-plugins/main';
10
+ const previewImageUrls = {
11
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/k45g2t4lad0x76vcj2450e0rbu878341.png',
12
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/30kh88n77bw11v27ee721oi323c20cr6.png'
13
+ };
10
14
  export const HyperlinkQuickInsertMenuItem = ({
11
15
  api
12
16
  }) => {
@@ -38,6 +42,7 @@ export const HyperlinkQuickInsertMenuItem = ({
38
42
  label: ""
39
43
  }),
40
44
  onSelect: onSelect,
45
+ previewImageUrls: previewImageUrls,
41
46
  shortcut: tooltip(addLink),
42
47
  title: formatMessage(messages.link)
43
48
  });
@@ -7,6 +7,10 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
7
7
  import { QuickInsertMenuItem } from '@atlaskit/editor-common/quick-insert/menu-item';
8
8
  import LinkIcon from '@atlaskit/icon/core/link';
9
9
  import { stateKey } from '../../pm-plugins/main';
10
+ var previewImageUrls = {
11
+ dark: 'https://dam-cdn.atl.orangelogic.com/AssetLink/k45g2t4lad0x76vcj2450e0rbu878341.png',
12
+ light: 'https://dam-cdn.atl.orangelogic.com/AssetLink/30kh88n77bw11v27ee721oi323c20cr6.png'
13
+ };
10
14
  export var HyperlinkQuickInsertMenuItem = function HyperlinkQuickInsertMenuItem(_ref) {
11
15
  var api = _ref.api;
12
16
  var _useIntl = useIntl(),
@@ -35,6 +39,7 @@ export var HyperlinkQuickInsertMenuItem = function HyperlinkQuickInsertMenuItem(
35
39
  label: ""
36
40
  }),
37
41
  onSelect: onSelect,
42
+ previewImageUrls: previewImageUrls,
38
43
  shortcut: tooltip(addLink),
39
44
  title: formatMessage(messages.link)
40
45
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-hyperlink",
3
- "version": "20.0.12",
3
+ "version": "21.0.0",
4
4
  "description": "Hyperlink plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,16 +23,16 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^57.5.0",
25
25
  "@atlaskit/analytics-next": "^12.5.0",
26
- "@atlaskit/editor-plugin-analytics": "^18.0.0",
27
- "@atlaskit/editor-plugin-card": "^24.0.0",
28
- "@atlaskit/editor-plugin-connectivity": "^18.0.0",
29
- "@atlaskit/editor-plugin-editor-viewmode": "^20.0.0",
30
- "@atlaskit/editor-plugin-primary-toolbar": "^19.0.0",
31
- "@atlaskit/editor-plugin-selection-toolbar": "^19.0.0",
32
- "@atlaskit/editor-plugin-toolbar": "^15.0.0",
33
- "@atlaskit/editor-plugin-ui-control-registry": "^12.0.0",
34
- "@atlaskit/editor-plugin-user-intent": "^16.0.0",
35
- "@atlaskit/editor-prosemirror": "^8.0.0",
26
+ "@atlaskit/editor-plugin-analytics": "^19.0.0",
27
+ "@atlaskit/editor-plugin-card": "^25.0.0",
28
+ "@atlaskit/editor-plugin-connectivity": "^19.0.0",
29
+ "@atlaskit/editor-plugin-editor-viewmode": "^21.0.0",
30
+ "@atlaskit/editor-plugin-primary-toolbar": "^20.0.0",
31
+ "@atlaskit/editor-plugin-selection-toolbar": "^20.0.0",
32
+ "@atlaskit/editor-plugin-toolbar": "^16.0.0",
33
+ "@atlaskit/editor-plugin-ui-control-registry": "^13.0.0",
34
+ "@atlaskit/editor-plugin-user-intent": "^17.0.0",
35
+ "@atlaskit/editor-prosemirror": "^9.0.0",
36
36
  "@atlaskit/editor-toolbar": "^2.6.0",
37
37
  "@atlaskit/editor-toolbar-model": "^1.2.0",
38
38
  "@atlaskit/editor-ui-control-model": "^2.9.0",
@@ -46,7 +46,7 @@
46
46
  "uuid": "^11.1.1"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^122.11.0",
49
+ "@atlaskit/editor-common": "^123.0.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"