@atlaskit/editor-plugin-selection-toolbar 1.1.8 → 1.1.9
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 +9 -0
- package/dist/cjs/plugin.js +9 -0
- package/dist/es2019/plugin.js +9 -0
- package/dist/esm/plugin.js +9 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#108898](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/108898)
|
|
8
|
+
[`eeaaf0ea11d9a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eeaaf0ea11d9a) -
|
|
9
|
+
[ED-23455] Fix the issue where selection floating toolbar does not appear when clicking drag
|
|
10
|
+
handle
|
|
11
|
+
|
|
3
12
|
## 1.1.8
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -57,9 +57,18 @@ var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selection
|
|
|
57
57
|
}));
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
|
+
var unbindEditorViewFocus = (0, _bindEventListener.bind)(_view.dom, {
|
|
61
|
+
type: 'focus',
|
|
62
|
+
listener: function listener() {
|
|
63
|
+
_view.dispatch(_view.state.tr.setMeta(_pluginKey.selectionToolbarPluginKey, {
|
|
64
|
+
selectionStable: true
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
});
|
|
60
68
|
return {
|
|
61
69
|
destroy: function destroy() {
|
|
62
70
|
unbind();
|
|
71
|
+
unbindEditorViewFocus();
|
|
63
72
|
}
|
|
64
73
|
};
|
|
65
74
|
},
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -49,9 +49,18 @@ export const selectionToolbarPlugin = options => {
|
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
|
+
const unbindEditorViewFocus = bind(view.dom, {
|
|
53
|
+
type: 'focus',
|
|
54
|
+
listener: () => {
|
|
55
|
+
view.dispatch(view.state.tr.setMeta(selectionToolbarPluginKey, {
|
|
56
|
+
selectionStable: true
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
52
60
|
return {
|
|
53
61
|
destroy() {
|
|
54
62
|
unbind();
|
|
63
|
+
unbindEditorViewFocus();
|
|
55
64
|
}
|
|
56
65
|
};
|
|
57
66
|
},
|
package/dist/esm/plugin.js
CHANGED
|
@@ -50,9 +50,18 @@ export var selectionToolbarPlugin = function selectionToolbarPlugin(options) {
|
|
|
50
50
|
}));
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
|
+
var unbindEditorViewFocus = bind(_view.dom, {
|
|
54
|
+
type: 'focus',
|
|
55
|
+
listener: function listener() {
|
|
56
|
+
_view.dispatch(_view.state.tr.setMeta(selectionToolbarPluginKey, {
|
|
57
|
+
selectionStable: true
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
});
|
|
53
61
|
return {
|
|
54
62
|
destroy: function destroy() {
|
|
55
63
|
unbind();
|
|
64
|
+
unbindEditorViewFocus();
|
|
56
65
|
}
|
|
57
66
|
};
|
|
58
67
|
},
|
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.9",
|
|
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": "^82.
|
|
36
|
+
"@atlaskit/editor-common": "^82.2.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",
|