@atlaskit/editor-plugin-hyperlink 4.3.0 → 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,14 @@
|
|
|
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
|
+
|
|
3
12
|
## 4.3.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -19,6 +19,7 @@ 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 _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
|
|
22
23
|
var _linkBrokenEditorUnlink = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-broken--editor-unlink"));
|
|
23
24
|
var _linkExternalShortcut = _interopRequireDefault(require("@atlaskit/icon/core/migration/link-external--shortcut"));
|
|
24
25
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
@@ -158,8 +159,9 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
158
159
|
type: 'button',
|
|
159
160
|
onClick: (0, _commands.editInsertedLink)(editorAnalyticsApi),
|
|
160
161
|
title: editLink,
|
|
161
|
-
showTitle: true,
|
|
162
|
-
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
|
|
163
165
|
}, {
|
|
164
166
|
type: 'separator'
|
|
165
167
|
}];
|
|
@@ -8,6 +8,7 @@ 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 EditIcon from '@atlaskit/icon/core/edit';
|
|
11
12
|
import LinkBrokenIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
12
13
|
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
13
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -142,8 +143,9 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
142
143
|
type: 'button',
|
|
143
144
|
onClick: editInsertedLink(editorAnalyticsApi),
|
|
144
145
|
title: editLink,
|
|
145
|
-
showTitle: true,
|
|
146
|
-
metadata: metadata
|
|
146
|
+
showTitle: editorExperiment('platform_editor_controls', 'variant1') ? false : true,
|
|
147
|
+
metadata: metadata,
|
|
148
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? EditIcon : undefined
|
|
147
149
|
}, {
|
|
148
150
|
type: 'separator'
|
|
149
151
|
}];
|
|
@@ -12,6 +12,7 @@ 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 EditIcon from '@atlaskit/icon/core/edit';
|
|
15
16
|
import LinkBrokenIcon from '@atlaskit/icon/core/migration/link-broken--editor-unlink';
|
|
16
17
|
import LinkExternalIcon from '@atlaskit/icon/core/migration/link-external--shortcut';
|
|
17
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -148,8 +149,9 @@ export var getToolbarConfig = function getToolbarConfig(options, pluginInjection
|
|
|
148
149
|
type: 'button',
|
|
149
150
|
onClick: editInsertedLink(editorAnalyticsApi),
|
|
150
151
|
title: editLink,
|
|
151
|
-
showTitle: true,
|
|
152
|
-
metadata: metadata
|
|
152
|
+
showTitle: editorExperiment('platform_editor_controls', 'variant1') ? false : true,
|
|
153
|
+
metadata: metadata,
|
|
154
|
+
icon: editorExperiment('platform_editor_controls', 'variant1') ? EditIcon : undefined
|
|
153
155
|
}, {
|
|
154
156
|
type: 'separator'
|
|
155
157
|
}];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "4.3.
|
|
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"
|