@atlaskit/editor-plugin-block-menu 6.1.4 → 6.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 6.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.1.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`64fe39d800a84`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64fe39d800a84) -
14
+ Improve ExperienceCheckPopupMutation logic to be more performant
15
+ - Updated dependencies
16
+
3
17
  ## 6.1.4
4
18
 
5
19
  ### Patch Changes
@@ -33,13 +33,6 @@ var getBlockMenuExperiencesPlugin = exports.getBlockMenuExperiencesPlugin = func
33
33
  }
34
34
  return popupTargetEl;
35
35
  };
36
- var getEditorDom = function getEditorDom() {
37
- var _editorView2;
38
- if (((_editorView2 = editorView) === null || _editorView2 === void 0 ? void 0 : _editorView2.dom) instanceof HTMLElement) {
39
- return editorView.dom;
40
- }
41
- return null;
42
- };
43
36
  var blockMenuOpenExperience = new _experiences.Experience(_experiences.EXPERIENCE_ID.MENU_OPEN, {
44
37
  actionSubjectId: _analytics.ACTION_SUBJECT_ID.BLOCK_MENU,
45
38
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
@@ -48,7 +41,6 @@ var getBlockMenuExperiencesPlugin = exports.getBlockMenuExperiencesPlugin = func
48
41
  }), new _experiences.ExperienceCheckPopupMutation({
49
42
  nestedElementQuery: "[data-testid=\"".concat(_blockMenu.BLOCK_MENU_TEST_ID, "\"]"),
50
43
  getTarget: getPopupsTarget,
51
- getEditorDom: getEditorDom,
52
44
  type: 'editorContent'
53
45
  })]
54
46
  });
@@ -28,13 +28,6 @@ export const getBlockMenuExperiencesPlugin = ({
28
28
  }
29
29
  return popupTargetEl;
30
30
  };
31
- const getEditorDom = () => {
32
- var _editorView2;
33
- if (((_editorView2 = editorView) === null || _editorView2 === void 0 ? void 0 : _editorView2.dom) instanceof HTMLElement) {
34
- return editorView.dom;
35
- }
36
- return null;
37
- };
38
31
  const blockMenuOpenExperience = new Experience(EXPERIENCE_ID.MENU_OPEN, {
39
32
  actionSubjectId: ACTION_SUBJECT_ID.BLOCK_MENU,
40
33
  dispatchAnalyticsEvent,
@@ -43,7 +36,6 @@ export const getBlockMenuExperiencesPlugin = ({
43
36
  }), new ExperienceCheckPopupMutation({
44
37
  nestedElementQuery: `[data-testid="${BLOCK_MENU_TEST_ID}"]`,
45
38
  getTarget: getPopupsTarget,
46
- getEditorDom,
47
39
  type: 'editorContent'
48
40
  })]
49
41
  });
@@ -27,13 +27,6 @@ export var getBlockMenuExperiencesPlugin = function getBlockMenuExperiencesPlugi
27
27
  }
28
28
  return popupTargetEl;
29
29
  };
30
- var getEditorDom = function getEditorDom() {
31
- var _editorView2;
32
- if (((_editorView2 = editorView) === null || _editorView2 === void 0 ? void 0 : _editorView2.dom) instanceof HTMLElement) {
33
- return editorView.dom;
34
- }
35
- return null;
36
- };
37
30
  var blockMenuOpenExperience = new Experience(EXPERIENCE_ID.MENU_OPEN, {
38
31
  actionSubjectId: ACTION_SUBJECT_ID.BLOCK_MENU,
39
32
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
@@ -42,7 +35,6 @@ export var getBlockMenuExperiencesPlugin = function getBlockMenuExperiencesPlugi
42
35
  }), new ExperienceCheckPopupMutation({
43
36
  nestedElementQuery: "[data-testid=\"".concat(BLOCK_MENU_TEST_ID, "\"]"),
44
37
  getTarget: getPopupsTarget,
45
- getEditorDom: getEditorDom,
46
38
  type: 'editorContent'
47
39
  })]
48
40
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "6.1.4",
3
+ "version": "6.1.6",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,9 +30,9 @@
30
30
  "dependencies": {
31
31
  "@atlaskit/browser-apis": "^0.0.1",
32
32
  "@atlaskit/css": "^0.19.0",
33
- "@atlaskit/dropdown-menu": "^16.4.0",
33
+ "@atlaskit/dropdown-menu": "^16.5.0",
34
34
  "@atlaskit/editor-plugin-analytics": "^7.0.0",
35
- "@atlaskit/editor-plugin-block-controls": "^8.6.0",
35
+ "@atlaskit/editor-plugin-block-controls": "^8.7.0",
36
36
  "@atlaskit/editor-plugin-decorations": "^7.0.0",
37
37
  "@atlaskit/editor-plugin-selection": "^7.0.0",
38
38
  "@atlaskit/editor-plugin-user-intent": "^5.0.0",
@@ -46,7 +46,7 @@
46
46
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
47
47
  "@atlaskit/primitives": "^18.0.0",
48
48
  "@atlaskit/prosemirror-history": "^0.2.0",
49
- "@atlaskit/tmp-editor-statsig": "^31.0.0",
49
+ "@atlaskit/tmp-editor-statsig": "^32.0.0",
50
50
  "@atlaskit/tokens": "^11.0.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "bind-event-listener": "^3.0.0"