@atlaskit/editor-plugin-selection-toolbar 1.1.4 → 1.1.6
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 +14 -0
- package/dist/cjs/plugin.js +0 -10
- package/dist/es2019/plugin.js +0 -10
- package/dist/esm/plugin.js +0 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.1.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.1.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#99563](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99563)
|
|
14
|
+
[`3d4ddbef36b8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3d4ddbef36b8) -
|
|
15
|
+
[ux] [EDF-629] Revert floating toolbar click handler changes
|
|
16
|
+
|
|
3
17
|
## 1.1.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -57,19 +57,9 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
|
|
|
57
57
|
}));
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
-
var unbindMousedown = (0, _bindEventListener.bind)(_view.root, {
|
|
61
|
-
type: 'mousedown',
|
|
62
|
-
listener: function listener(event) {
|
|
63
|
-
// prevent default to avoid blur event on floating toolbar
|
|
64
|
-
if (event.target instanceof Element && event.target.closest('[data-testid="editor-floating-toolbar"]')) {
|
|
65
|
-
event.preventDefault();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
60
|
return {
|
|
70
61
|
destroy: function destroy() {
|
|
71
62
|
unbind();
|
|
72
|
-
unbindMousedown();
|
|
73
63
|
}
|
|
74
64
|
};
|
|
75
65
|
},
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -49,19 +49,9 @@ export const selectionToolbarPlugin = options => {
|
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
-
const unbindMousedown = bind(view.root, {
|
|
53
|
-
type: 'mousedown',
|
|
54
|
-
listener: event => {
|
|
55
|
-
// prevent default to avoid blur event on floating toolbar
|
|
56
|
-
if (event.target instanceof Element && event.target.closest('[data-testid="editor-floating-toolbar"]')) {
|
|
57
|
-
event.preventDefault();
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
52
|
return {
|
|
62
53
|
destroy() {
|
|
63
54
|
unbind();
|
|
64
|
-
unbindMousedown();
|
|
65
55
|
}
|
|
66
56
|
};
|
|
67
57
|
},
|
package/dist/esm/plugin.js
CHANGED
|
@@ -50,19 +50,9 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(options) {
|
|
|
50
50
|
}));
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
-
var unbindMousedown = bind(_view.root, {
|
|
54
|
-
type: 'mousedown',
|
|
55
|
-
listener: function listener(event) {
|
|
56
|
-
// prevent default to avoid blur event on floating toolbar
|
|
57
|
-
if (event.target instanceof Element && event.target.closest('[data-testid="editor-floating-toolbar"]')) {
|
|
58
|
-
event.preventDefault();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
53
|
return {
|
|
63
54
|
destroy: function destroy() {
|
|
64
55
|
unbind();
|
|
65
|
-
unbindMousedown();
|
|
66
56
|
}
|
|
67
57
|
};
|
|
68
58
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-toolbar",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
36
|
+
"@atlaskit/editor-common": "^80.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-editor-viewmode": "^1.1.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
39
39
|
"@babel/runtime": "^7.0.0",
|