@atlaskit/editor-plugin-quick-insert 7.1.0 → 7.1.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 +12 -0
- package/dist/cjs/pm-plugins/experiences/quick-insert-open-experience.js +3 -2
- package/dist/es2019/pm-plugins/experiences/quick-insert-open-experience.js +4 -3
- package/dist/esm/pm-plugins/experiences/quick-insert-open-experience.js +4 -3
- package/dist/types/pm-plugins/experiences/quick-insert-open-experience.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/experiences/quick-insert-open-experience.d.ts +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.getQuickInsertOpenExperiencePlugin = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
+
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
9
10
|
var _experiences = require("@atlaskit/editor-common/experiences");
|
|
10
11
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
11
12
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
@@ -37,8 +38,8 @@ var getQuickInsertOpenExperiencePlugin = exports.getQuickInsertOpenExperiencePlu
|
|
|
37
38
|
}
|
|
38
39
|
return targetEl;
|
|
39
40
|
};
|
|
40
|
-
var experience = new _experiences.Experience(
|
|
41
|
-
actionSubjectId:
|
|
41
|
+
var experience = new _experiences.Experience(_experiences.EXPERIENCE_ID.MENU_OPEN, {
|
|
42
|
+
actionSubjectId: _analytics.ACTION_SUBJECT_ID.QUICK_INSERT,
|
|
42
43
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
43
44
|
checks: [new _experiences.ExperienceCheckTimeout({
|
|
44
45
|
durationMs: 500
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import { containsPopupWithNestedElement, Experience, EXPERIENCE_ID, ExperienceCheckDomMutation, ExperienceCheckTimeout, getPopupContainerFromEditorView } from '@atlaskit/editor-common/experiences';
|
|
2
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
const pluginKey = new PluginKey('quickInsertOpenExperience');
|
|
@@ -30,8 +31,8 @@ export const getQuickInsertOpenExperiencePlugin = ({
|
|
|
30
31
|
}
|
|
31
32
|
return targetEl;
|
|
32
33
|
};
|
|
33
|
-
const experience = new Experience(
|
|
34
|
-
actionSubjectId:
|
|
34
|
+
const experience = new Experience(EXPERIENCE_ID.MENU_OPEN, {
|
|
35
|
+
actionSubjectId: ACTION_SUBJECT_ID.QUICK_INSERT,
|
|
35
36
|
dispatchAnalyticsEvent,
|
|
36
37
|
checks: [new ExperienceCheckTimeout({
|
|
37
38
|
durationMs: 500
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import {
|
|
2
|
+
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
3
|
+
import { containsPopupWithNestedElement, Experience, EXPERIENCE_ID, ExperienceCheckDomMutation, ExperienceCheckTimeout, getPopupContainerFromEditorView } from '@atlaskit/editor-common/experiences';
|
|
3
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
6
|
var pluginKey = new PluginKey('quickInsertOpenExperience');
|
|
@@ -30,8 +31,8 @@ export var getQuickInsertOpenExperiencePlugin = function getQuickInsertOpenExper
|
|
|
30
31
|
}
|
|
31
32
|
return targetEl;
|
|
32
33
|
};
|
|
33
|
-
var experience = new Experience(
|
|
34
|
-
actionSubjectId:
|
|
34
|
+
var experience = new Experience(EXPERIENCE_ID.MENU_OPEN, {
|
|
35
|
+
actionSubjectId: ACTION_SUBJECT_ID.QUICK_INSERT,
|
|
35
36
|
dispatchAnalyticsEvent: dispatchAnalyticsEvent,
|
|
36
37
|
checks: [new ExperienceCheckTimeout({
|
|
37
38
|
durationMs: 500
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
type QuickInsertOpenExperienceOptions = {
|
|
4
4
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
type QuickInsertOpenExperienceOptions = {
|
|
4
4
|
dispatchAnalyticsEvent: DispatchAnalyticsEvent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-quick-insert",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"description": "Quick insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"@atlaskit/editor-plugin-metrics": "^8.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-type-ahead": "^7.0.0",
|
|
37
37
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
38
|
-
"@atlaskit/icon": "^
|
|
39
|
-
"@atlaskit/modal-dialog": "^14.
|
|
38
|
+
"@atlaskit/icon": "^30.0.0",
|
|
39
|
+
"@atlaskit/modal-dialog": "^14.10.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
41
|
"@atlaskit/theme": "^21.0.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
43
|
-
"@atlaskit/tokens": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^16.30.0",
|
|
43
|
+
"@atlaskit/tokens": "^10.1.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"@emotion/react": "^11.7.1"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@atlaskit/editor-common": "^111.
|
|
48
|
+
"@atlaskit/editor-common": "^111.8.0",
|
|
49
49
|
"react": "^18.2.0",
|
|
50
50
|
"react-dom": "^18.2.0",
|
|
51
51
|
"react-intl-next": "npm:react-intl@^5.18.1"
|