@atlaskit/editor-plugin-hyperlink 8.1.14 → 8.1.15
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 +8 -0
- package/dist/cjs/hyperlinkPlugin.js +2 -2
- package/dist/cjs/ui/toolbar/Toolbar.js +4 -4
- package/dist/es2019/hyperlinkPlugin.js +1 -1
- package/dist/es2019/ui/toolbar/Toolbar.js +2 -2
- package/dist/esm/hyperlinkPlugin.js +1 -1
- package/dist/esm/ui/toolbar/Toolbar.js +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 8.1.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`90abe9b926a6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90abe9b926a6f) -
|
|
8
|
+
Icon entrypoint migration
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 8.1.14
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -15,7 +15,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
15
15
|
var _preset = require("@atlaskit/editor-common/preset");
|
|
16
16
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
17
17
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
18
|
-
var
|
|
18
|
+
var _link2 = _interopRequireDefault(require("@atlaskit/icon/core/link"));
|
|
19
19
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
21
|
var _commands = require("./editor-commands/commands");
|
|
@@ -201,7 +201,7 @@ var hyperlinkPlugin = exports.hyperlinkPlugin = function hyperlinkPlugin(_ref) {
|
|
|
201
201
|
type: 'button',
|
|
202
202
|
disabled: !isEnabled,
|
|
203
203
|
testId: "".concat(selectionToolbarLinkButtonTestId),
|
|
204
|
-
icon:
|
|
204
|
+
icon: _link2.default,
|
|
205
205
|
title: title,
|
|
206
206
|
tooltipContent: (0, _keymaps.tooltip)(_keymaps.addLink, title),
|
|
207
207
|
showTitle: false,
|
|
@@ -23,8 +23,8 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
23
23
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
24
24
|
var _utils2 = require("@atlaskit/editor-prosemirror/utils");
|
|
25
25
|
var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var _linkBroken = _interopRequireDefault(require("@atlaskit/icon/core/link-broken"));
|
|
27
|
+
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
28
28
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
29
29
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
30
30
|
var _commands = require("../../editor-commands/commands");
|
|
@@ -197,7 +197,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
197
197
|
href: isValidUrl ? link : undefined,
|
|
198
198
|
onClick: visitHyperlink(editorAnalyticsApi),
|
|
199
199
|
title: labelOpenLink,
|
|
200
|
-
icon:
|
|
200
|
+
icon: _linkExternal.default,
|
|
201
201
|
className: 'hyperlink-open-link',
|
|
202
202
|
metadata: metadata,
|
|
203
203
|
tabIndex: null
|
|
@@ -210,7 +210,7 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(opti
|
|
|
210
210
|
inputMethod: _analytics.INPUT_METHOD.FLOATING_TB
|
|
211
211
|
}),
|
|
212
212
|
title: labelUnlink,
|
|
213
|
-
icon:
|
|
213
|
+
icon: _linkBroken.default,
|
|
214
214
|
tabIndex: null
|
|
215
215
|
};
|
|
216
216
|
var items = [].concat((0, _toConsumableArray2.default)(startingToolbarItems), (0, _toConsumableArray2.default)(areAnyNewToolbarFlagsEnabled ? [unlinkButton, {
|
|
@@ -7,7 +7,7 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
7
7
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
8
8
|
import { IconLink } from '@atlaskit/editor-common/quick-insert';
|
|
9
9
|
import { canLinkBeCreatedInRange } from '@atlaskit/editor-common/utils';
|
|
10
|
-
import LinkIcon from '@atlaskit/icon/core/
|
|
10
|
+
import LinkIcon from '@atlaskit/icon/core/link';
|
|
11
11
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
13
13
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
@@ -12,8 +12,8 @@ import { normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
|
12
12
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
14
14
|
import EditIcon from '@atlaskit/icon/core/edit';
|
|
15
|
-
import LinkBrokenIcon from '@atlaskit/icon/core/
|
|
16
|
-
import LinkExternalIcon from '@atlaskit/icon/core/
|
|
15
|
+
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
16
|
+
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
17
17
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
19
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
|
@@ -10,7 +10,7 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
|
|
|
10
10
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
11
11
|
import { IconLink } from '@atlaskit/editor-common/quick-insert';
|
|
12
12
|
import { canLinkBeCreatedInRange } from '@atlaskit/editor-common/utils';
|
|
13
|
-
import LinkIcon from '@atlaskit/icon/core/
|
|
13
|
+
import LinkIcon from '@atlaskit/icon/core/link';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
16
16
|
import { hideLinkToolbarSetMeta, insertLinkWithAnalytics, removeLinkEditorCommand, showLinkToolbar as _showLinkToolbar, updateLink, updateLinkEditorCommand } from './editor-commands/commands';
|
|
@@ -16,8 +16,8 @@ import { normalizeUrl } from '@atlaskit/editor-common/utils';
|
|
|
16
16
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
17
17
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
18
18
|
import EditIcon from '@atlaskit/icon/core/edit';
|
|
19
|
-
import LinkBrokenIcon from '@atlaskit/icon/core/
|
|
20
|
-
import LinkExternalIcon from '@atlaskit/icon/core/
|
|
19
|
+
import LinkBrokenIcon from '@atlaskit/icon/core/link-broken';
|
|
20
|
+
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
23
23
|
import { editInsertedLink, insertLinkWithAnalytics, onClickAwayCallback, onEscapeCallback, removeLink, updateLink } from '../../editor-commands/commands';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.15",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.5.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.5.0",
|
|
33
33
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
34
34
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
35
35
|
"@atlaskit/editor-plugin-card": "^11.5.0",
|
|
@@ -39,25 +39,25 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-selection-toolbar": "^7.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-toolbar": "^3.4.0",
|
|
41
41
|
"@atlaskit/editor-plugin-user-intent": "^4.0.0",
|
|
42
|
-
"@atlaskit/editor-prosemirror": "7.
|
|
42
|
+
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
43
43
|
"@atlaskit/editor-toolbar": "^0.18.0",
|
|
44
44
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
45
|
-
"@atlaskit/icon": "^29.
|
|
45
|
+
"@atlaskit/icon": "^29.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^15.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^15.12.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|
|
50
50
|
"@emotion/react": "^11.7.1",
|
|
51
51
|
"uuid": "^3.1.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@atlaskit/editor-common": "^110.
|
|
54
|
+
"@atlaskit/editor-common": "^110.44.0",
|
|
55
55
|
"react": "^18.2.0",
|
|
56
56
|
"react-dom": "^18.2.0",
|
|
57
57
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@testing-library/react": "^
|
|
60
|
+
"@testing-library/react": "^16.3.0",
|
|
61
61
|
"raf-stub": "^2.0.1",
|
|
62
62
|
"wait-for-expect": "^1.2.0"
|
|
63
63
|
},
|