@atlaskit/editor-plugin-block-menu 6.1.4 → 6.1.5
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 6.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`64fe39d800a84`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/64fe39d800a84) -
|
|
8
|
+
Improve ExperienceCheckPopupMutation logic to be more performant
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 6.1.4
|
|
4
12
|
|
|
5
13
|
### 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.
|
|
3
|
+
"version": "6.1.5",
|
|
4
4
|
"description": "BlockMenu plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.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.
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^31.2.0",
|
|
50
50
|
"@atlaskit/tokens": "^11.0.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"bind-event-listener": "^3.0.0"
|