@atlaskit/editor-plugin-hyperlink 3.1.2 → 3.1.4
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 +15 -0
- package/dist/cjs/Toolbar.js +6 -2
- package/dist/es2019/Toolbar.js +6 -2
- package/dist/esm/Toolbar.js +6 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 3.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#152823](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/152823)
|
|
8
|
+
[`0ec705650807f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0ec705650807f) -
|
|
9
|
+
[ux] ED-25090: ED-25090: Migrated link toolbar and panel toolbar to use the new icons
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 3.1.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 3.1.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/dist/cjs/Toolbar.js
CHANGED
|
@@ -17,6 +17,8 @@ var _link2 = require("@atlaskit/editor-common/link");
|
|
|
17
17
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
18
18
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
19
19
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
20
|
+
var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broken"));
|
|
21
|
+
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
20
22
|
var _unlink = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/unlink"));
|
|
21
23
|
var _shortcut = _interopRequireDefault(require("@atlaskit/icon/glyph/shortcut"));
|
|
22
24
|
var _commands = require("./commands");
|
|
@@ -155,7 +157,8 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
155
157
|
href: isValidUrl ? link : undefined,
|
|
156
158
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
157
159
|
title: labelOpenLink,
|
|
158
|
-
icon:
|
|
160
|
+
icon: _linkExternal.default,
|
|
161
|
+
iconFallback: _shortcut.default,
|
|
159
162
|
className: 'hyperlink-open-link',
|
|
160
163
|
metadata: metadata,
|
|
161
164
|
tabIndex: null
|
|
@@ -169,7 +172,8 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
169
172
|
inputMethod: _analytics.INPUT_METHOD.FLOATING_TB
|
|
170
173
|
}),
|
|
171
174
|
title: labelUnlink,
|
|
172
|
-
icon:
|
|
175
|
+
icon: _linkBroken.default,
|
|
176
|
+
iconFallback: _unlink.default,
|
|
173
177
|
tabIndex: null
|
|
174
178
|
}, {
|
|
175
179
|
type: 'separator'
|
package/dist/es2019/Toolbar.js
CHANGED
|
@@ -7,6 +7,8 @@ import { HyperlinkAddToolbar } from '@atlaskit/editor-common/link';
|
|
|
7
7
|
import { linkMessages, linkToolbarMessages as linkToolbarCommonMessages } from '@atlaskit/editor-common/messages';
|
|
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
|
+
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
11
|
+
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
10
12
|
import UnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
|
|
11
13
|
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
12
14
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from './commands';
|
|
@@ -143,7 +145,8 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
143
145
|
href: isValidUrl ? link : undefined,
|
|
144
146
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
145
147
|
title: labelOpenLink,
|
|
146
|
-
icon:
|
|
148
|
+
icon: LinkExternalIcon,
|
|
149
|
+
iconFallback: OpenIcon,
|
|
147
150
|
className: 'hyperlink-open-link',
|
|
148
151
|
metadata: metadata,
|
|
149
152
|
tabIndex: null
|
|
@@ -157,7 +160,8 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
157
160
|
inputMethod: INPUT_METHOD.FLOATING_TB
|
|
158
161
|
}),
|
|
159
162
|
title: labelUnlink,
|
|
160
|
-
icon:
|
|
163
|
+
icon: LinkBrokenIcon,
|
|
164
|
+
iconFallback: UnlinkIcon,
|
|
161
165
|
tabIndex: null
|
|
162
166
|
}, {
|
|
163
167
|
type: 'separator'
|
package/dist/esm/Toolbar.js
CHANGED
|
@@ -11,6 +11,8 @@ import { HyperlinkAddToolbar } from '@atlaskit/editor-common/link';
|
|
|
11
11
|
import { linkMessages, linkToolbarMessages as linkToolbarCommonMessages } from '@atlaskit/editor-common/messages';
|
|
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
|
+
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
15
|
+
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
14
16
|
import UnlinkIcon from '@atlaskit/icon/glyph/editor/unlink';
|
|
15
17
|
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
16
18
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from './commands';
|
|
@@ -147,7 +149,8 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
147
149
|
href: isValidUrl ? link : undefined,
|
|
148
150
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
149
151
|
title: labelOpenLink,
|
|
150
|
-
icon:
|
|
152
|
+
icon: LinkExternalIcon,
|
|
153
|
+
iconFallback: OpenIcon,
|
|
151
154
|
className: 'hyperlink-open-link',
|
|
152
155
|
metadata: metadata,
|
|
153
156
|
tabIndex: null
|
|
@@ -161,7 +164,8 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
161
164
|
inputMethod: INPUT_METHOD.FLOATING_TB
|
|
162
165
|
}),
|
|
163
166
|
title: labelUnlink,
|
|
164
|
-
icon:
|
|
167
|
+
icon: LinkBrokenIcon,
|
|
168
|
+
iconFallback: UnlinkIcon,
|
|
165
169
|
tabIndex: null
|
|
166
170
|
}, {
|
|
167
171
|
type: 'separator'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
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
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
36
36
|
"@atlaskit/editor-common": "^93.5.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
38
|
-
"@atlaskit/editor-plugin-card": "4.3.
|
|
38
|
+
"@atlaskit/editor-plugin-card": "4.3.4",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
41
41
|
"@atlaskit/icon": "^22.22.0",
|