@atlaskit/editor-plugin-toolbar 3.5.1 → 4.0.1
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/pm-plugins/experiences/selection-toolbar-open-experience.js +3 -1
- package/dist/es2019/pm-plugins/experiences/selection-toolbar-open-experience.js +3 -1
- package/dist/esm/pm-plugins/experiences/selection-toolbar-open-experience.js +3 -1
- package/dist/types/pm-plugins/experiences/selection-toolbar-open-experience.d.ts +2 -0
- package/dist/types-ts4.5/pm-plugins/experiences/selection-toolbar-open-experience.d.ts +2 -0
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar
|
|
2
2
|
|
|
3
|
+
## 4.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`496cc8412a7dc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/496cc8412a7dc) -
|
|
8
|
+
ED-29616 Experience tracking tests and docs
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 4.0.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 3.5.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -26,6 +26,8 @@ var ABORT_REASON = {
|
|
|
26
26
|
* Success: When the selection toolbar is added to the DOM within 1000ms of start
|
|
27
27
|
* Failure: When 1000ms passes without the selection toolbar being added to the DOM
|
|
28
28
|
* Abort: When selection transitions to empty or block menu is opened
|
|
29
|
+
*
|
|
30
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6262117789/Experience+tracking+Selection+toolbar+open
|
|
29
31
|
*/
|
|
30
32
|
var getSelectionToolbarOpenExperiencePlugin = exports.getSelectionToolbarOpenExperiencePlugin = function getSelectionToolbarOpenExperiencePlugin(_ref) {
|
|
31
33
|
var refs = _ref.refs,
|
|
@@ -118,7 +120,7 @@ var getSelectionToolbarOpenExperiencePlugin = exports.getSelectionToolbarOpenExp
|
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
122
|
},
|
|
121
|
-
dblclick: function dblclick(view
|
|
123
|
+
dblclick: function dblclick(view) {
|
|
122
124
|
if (isSelectionWithoutTextContent(view.state.selection) || isSelectionWithinCodeBlock(view.state.selection) || isSelectionToolbarWithinNode(getTarget())) {
|
|
123
125
|
return;
|
|
124
126
|
}
|
|
@@ -18,6 +18,8 @@ const ABORT_REASON = {
|
|
|
18
18
|
* Success: When the selection toolbar is added to the DOM within 1000ms of start
|
|
19
19
|
* Failure: When 1000ms passes without the selection toolbar being added to the DOM
|
|
20
20
|
* Abort: When selection transitions to empty or block menu is opened
|
|
21
|
+
*
|
|
22
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6262117789/Experience+tracking+Selection+toolbar+open
|
|
21
23
|
*/
|
|
22
24
|
export const getSelectionToolbarOpenExperiencePlugin = ({
|
|
23
25
|
refs,
|
|
@@ -108,7 +110,7 @@ export const getSelectionToolbarOpenExperiencePlugin = ({
|
|
|
108
110
|
});
|
|
109
111
|
}
|
|
110
112
|
},
|
|
111
|
-
dblclick:
|
|
113
|
+
dblclick: view => {
|
|
112
114
|
if (isSelectionWithoutTextContent(view.state.selection) || isSelectionWithinCodeBlock(view.state.selection) || isSelectionToolbarWithinNode(getTarget())) {
|
|
113
115
|
return;
|
|
114
116
|
}
|
|
@@ -19,6 +19,8 @@ var ABORT_REASON = {
|
|
|
19
19
|
* Success: When the selection toolbar is added to the DOM within 1000ms of start
|
|
20
20
|
* Failure: When 1000ms passes without the selection toolbar being added to the DOM
|
|
21
21
|
* Abort: When selection transitions to empty or block menu is opened
|
|
22
|
+
*
|
|
23
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6262117789/Experience+tracking+Selection+toolbar+open
|
|
22
24
|
*/
|
|
23
25
|
export var getSelectionToolbarOpenExperiencePlugin = function getSelectionToolbarOpenExperiencePlugin(_ref) {
|
|
24
26
|
var refs = _ref.refs,
|
|
@@ -111,7 +113,7 @@ export var getSelectionToolbarOpenExperiencePlugin = function getSelectionToolba
|
|
|
111
113
|
});
|
|
112
114
|
}
|
|
113
115
|
},
|
|
114
|
-
dblclick: function dblclick(view
|
|
116
|
+
dblclick: function dblclick(view) {
|
|
115
117
|
if (isSelectionWithoutTextContent(view.state.selection) || isSelectionWithinCodeBlock(view.state.selection) || isSelectionToolbarWithinNode(getTarget())) {
|
|
116
118
|
return;
|
|
117
119
|
}
|
|
@@ -13,6 +13,8 @@ type SelectionToolbarOpenExperienceOptions = {
|
|
|
13
13
|
* Success: When the selection toolbar is added to the DOM within 1000ms of start
|
|
14
14
|
* Failure: When 1000ms passes without the selection toolbar being added to the DOM
|
|
15
15
|
* Abort: When selection transitions to empty or block menu is opened
|
|
16
|
+
*
|
|
17
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6262117789/Experience+tracking+Selection+toolbar+open
|
|
16
18
|
*/
|
|
17
19
|
export declare const getSelectionToolbarOpenExperiencePlugin: ({ refs, dispatchAnalyticsEvent, }: SelectionToolbarOpenExperienceOptions) => SafePlugin<{}>;
|
|
18
20
|
export {};
|
|
@@ -13,6 +13,8 @@ type SelectionToolbarOpenExperienceOptions = {
|
|
|
13
13
|
* Success: When the selection toolbar is added to the DOM within 1000ms of start
|
|
14
14
|
* Failure: When 1000ms passes without the selection toolbar being added to the DOM
|
|
15
15
|
* Abort: When selection transitions to empty or block menu is opened
|
|
16
|
+
*
|
|
17
|
+
* @see https://hello.atlassian.net/wiki/spaces/EDITOR/pages/6262117789/Experience+tracking+Selection+toolbar+open
|
|
16
18
|
*/
|
|
17
19
|
export declare const getSelectionToolbarOpenExperiencePlugin: ({ refs, dispatchAnalyticsEvent, }: SelectionToolbarOpenExperienceOptions) => SafePlugin<{}>;
|
|
18
20
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"atlaskit:src": "src/index.ts",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/browser-apis": "^0.0.1",
|
|
32
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
33
|
-
"@atlaskit/editor-plugin-connectivity": "^
|
|
34
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
35
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
36
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
37
|
-
"@atlaskit/editor-plugin-user-preferences": "^
|
|
32
|
+
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-connectivity": "^7.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-selection": "^7.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-user-intent": "^5.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-user-preferences": "^5.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
39
39
|
"@atlaskit/editor-toolbar": "^0.18.0",
|
|
40
40
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^
|
|
49
|
+
"@atlaskit/editor-common": "^111.0.0",
|
|
50
50
|
"react": "^18.2.0"
|
|
51
51
|
},
|
|
52
52
|
"platform-feature-flags": {
|