@atlaskit/editor-plugin-hyperlink 2.6.0 → 2.6.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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-hyperlink
|
|
2
2
|
|
|
3
|
+
## 2.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#123180](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/123180)
|
|
8
|
+
[`14addfd71de93`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/14addfd71de93) -
|
|
9
|
+
Fix edit link modal disappear when hover over hyperlink in live page
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 2.6.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.6.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -324,10 +324,13 @@ var plugin = exports.plugin = function plugin(dispatch, intl, editorAppearance,
|
|
|
324
324
|
dom.onmouseenter = function () {
|
|
325
325
|
var _stateKey$getState2;
|
|
326
326
|
var _ref2 = (_stateKey$getState2 = stateKey.getState(view.state)) !== null && _stateKey$getState2 !== void 0 ? _stateKey$getState2 : {},
|
|
327
|
+
activeLinkMark = _ref2.activeLinkMark,
|
|
327
328
|
configureButtonTargetPos = _ref2.configureButtonTargetPos;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
if (!activeLinkMark) {
|
|
330
|
+
var nodePos = view.posAtDOM(dom, -1);
|
|
331
|
+
if (nodePos !== configureButtonTargetPos) {
|
|
332
|
+
setTargetElementPos(nodePos);
|
|
333
|
+
}
|
|
331
334
|
}
|
|
332
335
|
};
|
|
333
336
|
dom.onmouseleave = function () {
|
|
@@ -336,11 +336,14 @@ export const plugin = (dispatch, intl, editorAppearance, pluginInjectionApi, onC
|
|
|
336
336
|
dom.onmouseenter = () => {
|
|
337
337
|
var _stateKey$getState2;
|
|
338
338
|
const {
|
|
339
|
+
activeLinkMark,
|
|
339
340
|
configureButtonTargetPos
|
|
340
341
|
} = (_stateKey$getState2 = stateKey.getState(view.state)) !== null && _stateKey$getState2 !== void 0 ? _stateKey$getState2 : {};
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
342
|
+
if (!activeLinkMark) {
|
|
343
|
+
const nodePos = view.posAtDOM(dom, -1);
|
|
344
|
+
if (nodePos !== configureButtonTargetPos) {
|
|
345
|
+
setTargetElementPos(nodePos);
|
|
346
|
+
}
|
|
344
347
|
}
|
|
345
348
|
};
|
|
346
349
|
dom.onmouseleave = () => {
|
|
@@ -317,10 +317,13 @@ export var plugin = function plugin(dispatch, intl, editorAppearance, pluginInje
|
|
|
317
317
|
dom.onmouseenter = function () {
|
|
318
318
|
var _stateKey$getState2;
|
|
319
319
|
var _ref2 = (_stateKey$getState2 = stateKey.getState(view.state)) !== null && _stateKey$getState2 !== void 0 ? _stateKey$getState2 : {},
|
|
320
|
+
activeLinkMark = _ref2.activeLinkMark,
|
|
320
321
|
configureButtonTargetPos = _ref2.configureButtonTargetPos;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
322
|
+
if (!activeLinkMark) {
|
|
323
|
+
var nodePos = view.posAtDOM(dom, -1);
|
|
324
|
+
if (nodePos !== configureButtonTargetPos) {
|
|
325
|
+
setTargetElementPos(nodePos);
|
|
326
|
+
}
|
|
324
327
|
}
|
|
325
328
|
};
|
|
326
329
|
dom.onmouseleave = function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-hyperlink",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "Hyperlink plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^40.3.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
37
|
-
"@atlaskit/editor-common": "^
|
|
37
|
+
"@atlaskit/editor-common": "^87.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.6.0",
|
|
39
|
-
"@atlaskit/editor-plugin-card": "2.8.
|
|
39
|
+
"@atlaskit/editor-plugin-card": "2.8.2",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
42
42
|
"@atlaskit/icon": "^22.7.0",
|