@atlaskit/editor-plugin-hyperlink 1.1.0 → 1.1.2
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 +13 -0
- package/dist/cjs/pm-plugins/input-rule.js +0 -1
- package/dist/cjs/pm-plugins/keymap.js +0 -1
- package/dist/es2019/pm-plugins/input-rule.js +0 -1
- package/dist/es2019/pm-plugins/keymap.js +0 -1
- package/dist/esm/pm-plugins/input-rule.js +0 -1
- package/dist/esm/pm-plugins/keymap.js +0 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#80679](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80679) [`104eb9443b7e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/104eb9443b7e) - ED-22553 Updating adf-schema version to 35.6.0
|
|
8
|
+
|
|
9
|
+
## 1.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#78224](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/78224) [`6b4c9dd4ad34`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b4c9dd4ad34) - ED-22219: adf-schema updated to 35.5.2
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 1.1.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -37,7 +37,6 @@ function createLinkInputRule(regexp, editorAnalyticsApi) {
|
|
|
37
37
|
// The position referenced by 'start' is relative to the start of the document, findFilepaths deals with index in a node only.
|
|
38
38
|
start - (nodeBefore.text.length - link.text.length) // (start of link match) - (whole node text length - link length) gets start of text node, which is used as offset
|
|
39
39
|
);
|
|
40
|
-
|
|
41
40
|
if ((0, _utils.isLinkInMatches)(start, filepaths)) {
|
|
42
41
|
var _tr = state.tr;
|
|
43
42
|
return _tr;
|
|
@@ -56,7 +56,6 @@ var mayConvertLastWordToHyperlink = function mayConvertLastWordToHyperlink(edito
|
|
|
56
56
|
});
|
|
57
57
|
var filepaths = (0, _utils.findFilepaths)(nodeBefore.text, start - (nodeBefore.text.length - hyperlinkedText.length) // The position referenced by 'start' is relative to the start of the document, findFilepaths deals with index in a node only.
|
|
58
58
|
);
|
|
59
|
-
|
|
60
59
|
if ((0, _utils.isLinkInMatches)(start, filepaths)) {
|
|
61
60
|
return false;
|
|
62
61
|
}
|
|
@@ -29,7 +29,6 @@ export function createLinkInputRule(regexp, editorAnalyticsApi) {
|
|
|
29
29
|
// The position referenced by 'start' is relative to the start of the document, findFilepaths deals with index in a node only.
|
|
30
30
|
start - (nodeBefore.text.length - link.text.length) // (start of link match) - (whole node text length - link length) gets start of text node, which is used as offset
|
|
31
31
|
);
|
|
32
|
-
|
|
33
32
|
if (isLinkInMatches(start, filepaths)) {
|
|
34
33
|
const tr = state.tr;
|
|
35
34
|
return tr;
|
|
@@ -49,7 +49,6 @@ const mayConvertLastWordToHyperlink = editorAnalyticsApi => {
|
|
|
49
49
|
});
|
|
50
50
|
const filepaths = findFilepaths(nodeBefore.text, start - (nodeBefore.text.length - hyperlinkedText.length) // The position referenced by 'start' is relative to the start of the document, findFilepaths deals with index in a node only.
|
|
51
51
|
);
|
|
52
|
-
|
|
53
52
|
if (isLinkInMatches(start, filepaths)) {
|
|
54
53
|
return false;
|
|
55
54
|
}
|
|
@@ -28,7 +28,6 @@ export function createLinkInputRule(regexp, editorAnalyticsApi) {
|
|
|
28
28
|
// The position referenced by 'start' is relative to the start of the document, findFilepaths deals with index in a node only.
|
|
29
29
|
start - (nodeBefore.text.length - link.text.length) // (start of link match) - (whole node text length - link length) gets start of text node, which is used as offset
|
|
30
30
|
);
|
|
31
|
-
|
|
32
31
|
if (isLinkInMatches(start, filepaths)) {
|
|
33
32
|
var _tr = state.tr;
|
|
34
33
|
return _tr;
|
|
@@ -49,7 +49,6 @@ var mayConvertLastWordToHyperlink = function mayConvertLastWordToHyperlink(edito
|
|
|
49
49
|
});
|
|
50
50
|
var filepaths = findFilepaths(nodeBefore.text, start - (nodeBefore.text.length - hyperlinkedText.length) // The position referenced by 'start' is relative to the start of the document, findFilepaths deals with index in a node only.
|
|
51
51
|
);
|
|
52
|
-
|
|
53
52
|
if (isLinkInMatches(start, filepaths)) {
|
|
54
53
|
return false;
|
|
55
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
".": "./src/index.ts"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/adf-schema": "^35.
|
|
35
|
+
"@atlaskit/adf-schema": "^35.6.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
37
|
-
"@atlaskit/editor-common": "^78.
|
|
37
|
+
"@atlaskit/editor-common": "^78.12.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
40
40
|
"@atlaskit/icon": "^22.1.0",
|