@atlaskit/editor-plugin-toolbar 4.0.0 → 4.0.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,19 @@
1
1
  # @atlaskit/editor-plugin-toolbar
2
2
 
3
+ ## 4.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`496cc8412a7dc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/496cc8412a7dc) -
14
+ ED-29616 Experience tracking tests and docs
15
+ - Updated dependencies
16
+
3
17
  ## 4.0.0
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, e) {
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: (view, e) => {
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, e) {
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": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "Toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,17 +36,17 @@
36
36
  "@atlaskit/editor-plugin-user-intent": "^5.0.0",
37
37
  "@atlaskit/editor-plugin-user-preferences": "^5.0.0",
38
38
  "@atlaskit/editor-prosemirror": "^7.2.0",
39
- "@atlaskit/editor-toolbar": "^0.18.0",
39
+ "@atlaskit/editor-toolbar": "^0.19.0",
40
40
  "@atlaskit/editor-toolbar-model": "^0.2.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
42
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
43
- "@atlaskit/tmp-editor-statsig": "^16.3.0",
43
+ "@atlaskit/tmp-editor-statsig": "^16.11.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "bind-event-listener": "^3.0.0",
46
46
  "react-intl-next": "npm:react-intl@^5.18.1"
47
47
  },
48
48
  "peerDependencies": {
49
- "@atlaskit/editor-common": "^111.0.0",
49
+ "@atlaskit/editor-common": "^111.7.0",
50
50
  "react": "^18.2.0"
51
51
  },
52
52
  "platform-feature-flags": {