@atlaskit/editor-plugin-hyperlink 4.2.9 → 4.3.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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 4.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#128788](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128788)
|
|
8
|
+
[`83a4d1ba203b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/83a4d1ba203b0) -
|
|
9
|
+
[ux] update icons
|
|
10
|
+
|
|
3
11
|
## 4.2.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -19,10 +19,8 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
19
19
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
20
20
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
21
21
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var _unlink = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/unlink"));
|
|
25
|
-
var _shortcut = _interopRequireDefault(require("@atlaskit/icon/glyph/shortcut"));
|
|
22
|
+
var _linkBrokenEditorUnlink = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-broken--editor-unlink"));
|
|
23
|
+
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
26
24
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
27
25
|
var _commands = require("../../editor-commands/commands");
|
|
28
26
|
var _main = require("../../pm-plugins/main");
|
|
@@ -174,8 +172,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
174
172
|
href: isValidUrl ? link : undefined,
|
|
175
173
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
176
174
|
title: labelOpenLink,
|
|
177
|
-
icon:
|
|
178
|
-
iconFallback: _shortcut.default,
|
|
175
|
+
icon: _linkExternalShortcut.default,
|
|
179
176
|
className: 'hyperlink-open-link',
|
|
180
177
|
metadata: metadata,
|
|
181
178
|
tabIndex: null
|
|
@@ -189,8 +186,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
189
186
|
inputMethod: _analytics.INPUT_METHOD.FLOATING_TB
|
|
190
187
|
}),
|
|
191
188
|
title: labelUnlink,
|
|
192
|
-
icon:
|
|
193
|
-
iconFallback: _unlink.default,
|
|
189
|
+
icon: _linkBrokenEditorUnlink.default,
|
|
194
190
|
tabIndex: null
|
|
195
191
|
}, {
|
|
196
192
|
type: 'separator'
|
|
@@ -8,10 +8,8 @@ import { linkMessages, linkToolbarMessages as linkToolbarCommonMessages } from '
|
|
|
8
8
|
import { LINKPICKER_HEIGHT_IN_PX, RECENT_SEARCH_HEIGHT_IN_PX, RECENT_SEARCH_WIDTH_IN_PX } from '@atlaskit/editor-common/ui';
|
|
9
9
|
import { normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
10
10
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
11
|
-
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
12
|
-
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
13
|
-
import UnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
|
|
14
|
-
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
11
|
+
import LinkBrokenIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
12
|
+
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
15
13
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
14
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
17
15
|
import { stateKey } from '../../pm-plugins/main';
|
|
@@ -159,7 +157,6 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
159
157
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
160
158
|
title: labelOpenLink,
|
|
161
159
|
icon: LinkExternalIcon,
|
|
162
|
-
iconFallback: OpenIcon,
|
|
163
160
|
className: 'hyperlink-open-link',
|
|
164
161
|
metadata: metadata,
|
|
165
162
|
tabIndex: null
|
|
@@ -174,7 +171,6 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
174
171
|
}),
|
|
175
172
|
title: labelUnlink,
|
|
176
173
|
icon: LinkBrokenIcon,
|
|
177
|
-
iconFallback: UnlinkIcon,
|
|
178
174
|
tabIndex: null
|
|
179
175
|
}, {
|
|
180
176
|
type: 'separator'
|
|
@@ -12,10 +12,8 @@ import { linkMessages, linkToolbarMessages as linkToolbarCommonMessages } from '
|
|
|
12
12
|
import { LINKPICKER_HEIGHT_IN_PX, RECENT_SEARCH_HEIGHT_IN_PX, RECENT_SEARCH_WIDTH_IN_PX } from '@atlaskit/editor-common/ui';
|
|
13
13
|
import { normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
14
14
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
15
|
-
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
16
|
-
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
17
|
-
import UnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
|
|
18
|
-
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
15
|
+
import LinkBrokenIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
16
|
+
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
19
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
18
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
21
19
|
import { stateKey } from '../../pm-plugins/main';
|
|
@@ -165,7 +163,6 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
165
163
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
166
164
|
title: labelOpenLink,
|
|
167
165
|
icon: LinkExternalIcon,
|
|
168
|
-
iconFallback: OpenIcon,
|
|
169
166
|
className: 'hyperlink-open-link',
|
|
170
167
|
metadata: metadata,
|
|
171
168
|
tabIndex: null
|
|
@@ -180,7 +177,6 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
180
177
|
}),
|
|
181
178
|
title: labelUnlink,
|
|
182
179
|
icon: LinkBrokenIcon,
|
|
183
|
-
iconFallback: UnlinkIcon,
|
|
184
180
|
tabIndex: null
|
|
185
181
|
}, {
|
|
186
182
|
type: 'separator'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
38
|
-
"@atlaskit/editor-common": "^102.
|
|
38
|
+
"@atlaskit/editor-common": "^102.11.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
40
40
|
"@atlaskit/editor-plugin-card": "^5.3.0",
|
|
41
41
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|