@atlaskit/editor-plugin-hyperlink 4.2.9 → 4.3.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,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 4.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#130882](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130882)
|
|
8
|
+
[`df1c29f476539`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df1c29f476539) -
|
|
9
|
+
[ux] Adds a new i18n message and updates icons and tooltips on links, media and extensions.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 4.3.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- [#128788](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/128788)
|
|
17
|
+
[`83a4d1ba203b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/83a4d1ba203b0) -
|
|
18
|
+
[ux] update icons
|
|
19
|
+
|
|
3
20
|
## 4.2.9
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -19,10 +19,9 @@ 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
|
|
25
|
-
var _shortcut = _interopRequireDefault(require("@atlaskit/icon/glyph/shortcut"));
|
|
22
|
+
var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
|
|
23
|
+
var _linkBrokenEditorUnlink = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-broken--editor-unlink"));
|
|
24
|
+
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
26
25
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
27
26
|
var _commands = require("../../editor-commands/commands");
|
|
28
27
|
var _main = require("../../pm-plugins/main");
|
|
@@ -160,8 +159,9 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
160
159
|
type: 'button',
|
|
161
160
|
onClick: (0, _commands.editInsertedLink)(editorAnalyticsApi),
|
|
162
161
|
title: editLink,
|
|
163
|
-
showTitle: true,
|
|
164
|
-
metadata: metadata
|
|
162
|
+
showTitle: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? false : true,
|
|
163
|
+
metadata: metadata,
|
|
164
|
+
icon: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? _edit.default : undefined
|
|
165
165
|
}, {
|
|
166
166
|
type: 'separator'
|
|
167
167
|
}];
|
|
@@ -174,8 +174,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
174
174
|
href: isValidUrl ? link : undefined,
|
|
175
175
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
176
176
|
title: labelOpenLink,
|
|
177
|
-
icon:
|
|
178
|
-
iconFallback: _shortcut.default,
|
|
177
|
+
icon: _linkExternalShortcut.default,
|
|
179
178
|
className: 'hyperlink-open-link',
|
|
180
179
|
metadata: metadata,
|
|
181
180
|
tabIndex: null
|
|
@@ -189,8 +188,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
189
188
|
inputMethod: _analytics.INPUT_METHOD.FLOATING_TB
|
|
190
189
|
}),
|
|
191
190
|
title: labelUnlink,
|
|
192
|
-
icon:
|
|
193
|
-
iconFallback: _unlink.default,
|
|
191
|
+
icon: _linkBrokenEditorUnlink.default,
|
|
194
192
|
tabIndex: null
|
|
195
193
|
}, {
|
|
196
194
|
type: 'separator'
|
|
@@ -8,10 +8,9 @@ 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
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
11
|
+
import EditIcon from '@atlaskit/icon/core/edit';
|
|
12
|
+
import LinkBrokenIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
13
|
+
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
15
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
15
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
17
16
|
import { stateKey } from '../../pm-plugins/main';
|
|
@@ -144,8 +143,9 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
144
143
|
type: 'button',
|
|
145
144
|
onClick: editInsertedLink(editorAnalyticsApi),
|
|
146
145
|
title: editLink,
|
|
147
|
-
showTitle: true,
|
|
148
|
-
metadata: metadata
|
|
146
|
+
showTitle: editorExperiment('platform_editor_controls', 'variant1') ? false : true,
|
|
147
|
+
metadata: metadata,
|
|
148
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? EditIcon : undefined
|
|
149
149
|
}, {
|
|
150
150
|
type: 'separator'
|
|
151
151
|
}];
|
|
@@ -159,7 +159,6 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
159
159
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
160
160
|
title: labelOpenLink,
|
|
161
161
|
icon: LinkExternalIcon,
|
|
162
|
-
iconFallback: OpenIcon,
|
|
163
162
|
className: 'hyperlink-open-link',
|
|
164
163
|
metadata: metadata,
|
|
165
164
|
tabIndex: null
|
|
@@ -174,7 +173,6 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
174
173
|
}),
|
|
175
174
|
title: labelUnlink,
|
|
176
175
|
icon: LinkBrokenIcon,
|
|
177
|
-
iconFallback: UnlinkIcon,
|
|
178
176
|
tabIndex: null
|
|
179
177
|
}, {
|
|
180
178
|
type: 'separator'
|
|
@@ -12,10 +12,9 @@ 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
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import OpenIcon from '@atlaskit/icon/glyph/shortcut';
|
|
15
|
+
import EditIcon from '@atlaskit/icon/core/edit';
|
|
16
|
+
import LinkBrokenIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
17
|
+
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
19
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
19
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
21
20
|
import { stateKey } from '../../pm-plugins/main';
|
|
@@ -150,8 +149,9 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
150
149
|
type: 'button',
|
|
151
150
|
onClick: editInsertedLink(editorAnalyticsApi),
|
|
152
151
|
title: editLink,
|
|
153
|
-
showTitle: true,
|
|
154
|
-
metadata: metadata
|
|
152
|
+
showTitle: editorExperiment('platform_editor_controls', 'variant1') ? false : true,
|
|
153
|
+
metadata: metadata,
|
|
154
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? EditIcon : undefined
|
|
155
155
|
}, {
|
|
156
156
|
type: 'separator'
|
|
157
157
|
}];
|
|
@@ -165,7 +165,6 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
165
165
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
166
166
|
title: labelOpenLink,
|
|
167
167
|
icon: LinkExternalIcon,
|
|
168
|
-
iconFallback: OpenIcon,
|
|
169
168
|
className: 'hyperlink-open-link',
|
|
170
169
|
metadata: metadata,
|
|
171
170
|
tabIndex: null
|
|
@@ -180,7 +179,6 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
180
179
|
}),
|
|
181
180
|
title: labelUnlink,
|
|
182
181
|
icon: LinkBrokenIcon,
|
|
183
|
-
iconFallback: UnlinkIcon,
|
|
184
182
|
tabIndex: null
|
|
185
183
|
}, {
|
|
186
184
|
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.1",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,18 +35,18 @@
|
|
|
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.13.0",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
40
|
-
"@atlaskit/editor-plugin-card": "^5.
|
|
40
|
+
"@atlaskit/editor-plugin-card": "^5.4.0",
|
|
41
41
|
"@atlaskit/editor-plugin-connectivity": "^2.0.0",
|
|
42
42
|
"@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
|
|
43
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^3.
|
|
44
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^2.
|
|
43
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^3.1.0",
|
|
44
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^2.2.0",
|
|
45
45
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
46
46
|
"@atlaskit/icon": "^25.0.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^4.3.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
52
|
"uuid": "^3.1.0"
|