@atlaskit/editor-plugin-hyperlink 3.2.27 → 3.2.28
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
|
@@ -28,7 +28,6 @@ function createLinkInputRule(regexp, editorAnalyticsApi) {
|
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
30
30
|
var link = match;
|
|
31
|
-
var url;
|
|
32
31
|
|
|
33
32
|
// Property 'url' does not exist on type 'RegExpExecArray', the type of `match`.
|
|
34
33
|
// This check is in case the match is not a Linkify match, which has a url property.
|
|
@@ -38,7 +37,7 @@ function createLinkInputRule(regexp, editorAnalyticsApi) {
|
|
|
38
37
|
if (!(0, _utils.shouldAutoLinkifyMatch)(link)) {
|
|
39
38
|
return null;
|
|
40
39
|
}
|
|
41
|
-
url = (0, _utils.normalizeUrl)(link.url);
|
|
40
|
+
var url = (0, _utils.normalizeUrl)(link.url);
|
|
42
41
|
|
|
43
42
|
// Not previously handled; don't create a link if the URL is empty.
|
|
44
43
|
// This will only happen if the `regexp` matches more links than the normalizeUrl validation;
|
|
@@ -21,7 +21,6 @@ export function createLinkInputRule(regexp, editorAnalyticsApi) {
|
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
const link = match;
|
|
24
|
-
let url;
|
|
25
24
|
|
|
26
25
|
// Property 'url' does not exist on type 'RegExpExecArray', the type of `match`.
|
|
27
26
|
// This check is in case the match is not a Linkify match, which has a url property.
|
|
@@ -31,7 +30,7 @@ export function createLinkInputRule(regexp, editorAnalyticsApi) {
|
|
|
31
30
|
if (!shouldAutoLinkifyMatch(link)) {
|
|
32
31
|
return null;
|
|
33
32
|
}
|
|
34
|
-
url = normalizeUrl(link.url);
|
|
33
|
+
const url = normalizeUrl(link.url);
|
|
35
34
|
|
|
36
35
|
// Not previously handled; don't create a link if the URL is empty.
|
|
37
36
|
// This will only happen if the `regexp` matches more links than the normalizeUrl validation;
|
|
@@ -124,7 +124,7 @@ export const getToolbarConfig = (options, pluginInjectionApi) => (state, intl, p
|
|
|
124
124
|
// TODO: ED-14403 investigate why these are not translating?
|
|
125
125
|
const labelUnlink = formatMessage(linkToolbarCommonMessages.unlink);
|
|
126
126
|
const editLink = formatMessage(linkToolbarCommonMessages.editLink);
|
|
127
|
-
|
|
127
|
+
const metadata = {
|
|
128
128
|
url: link,
|
|
129
129
|
title: ''
|
|
130
130
|
};
|
|
@@ -20,7 +20,6 @@ export function createLinkInputRule(regexp, editorAnalyticsApi) {
|
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
22
|
var link = match;
|
|
23
|
-
var url;
|
|
24
23
|
|
|
25
24
|
// Property 'url' does not exist on type 'RegExpExecArray', the type of `match`.
|
|
26
25
|
// This check is in case the match is not a Linkify match, which has a url property.
|
|
@@ -30,7 +29,7 @@ export function createLinkInputRule(regexp, editorAnalyticsApi) {
|
|
|
30
29
|
if (!shouldAutoLinkifyMatch(link)) {
|
|
31
30
|
return null;
|
|
32
31
|
}
|
|
33
|
-
url = normalizeUrl(link.url);
|
|
32
|
+
var url = normalizeUrl(link.url);
|
|
34
33
|
|
|
35
34
|
// Not previously handled; don't create a link if the URL is empty.
|
|
36
35
|
// This will only happen if the `regexp` matches more links than the normalizeUrl validation;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.28",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
35
|
"@atlaskit/analytics-next": "^10.2.0",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^98.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
38
|
-
"@atlaskit/editor-plugin-card": "4.5.
|
|
38
|
+
"@atlaskit/editor-plugin-card": "4.5.11",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
41
41
|
"@atlaskit/icon": "^23.1.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
43
43
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^2.31.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"uuid": "^3.1.0"
|
|
47
47
|
},
|