@atlaskit/editor-plugin-metrics 27.0.3 → 27.0.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 +12 -0
- package/dist/cjs/pm-plugins/utils/analytics.js +5 -5
- package/dist/es2019/pm-plugins/utils/analytics.js +1 -1
- package/dist/esm/pm-plugins/utils/analytics.js +1 -1
- package/dist/types/metricsPluginType.d.ts +5 -3
- package/dist/types/pm-plugins/main.d.ts +2 -1
- package/dist/types/pm-plugins/utils/active-session-timer.d.ts +1 -1
- package/dist/types/pm-plugins/utils/analytics.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getAnalyticsPayload = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
-
var
|
|
10
|
+
var _enums = require("@atlaskit/editor-common/analytics/types/enums");
|
|
11
11
|
var _getNodeChanges = require("./get-node-changes");
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -43,9 +43,9 @@ var getAnalyticsPayload = exports.getAnalyticsPayload = function getAnalyticsPay
|
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
return {
|
|
46
|
-
action:
|
|
47
|
-
actionSubject:
|
|
48
|
-
actionSubjectId:
|
|
46
|
+
action: _enums.ACTION.ENDED,
|
|
47
|
+
actionSubject: _enums.ACTION_SUBJECT.ACTIVITY_SESSION,
|
|
48
|
+
actionSubjectId: _enums.ACTION_SUBJECT_ID.ACTIVITY,
|
|
49
49
|
attributes: {
|
|
50
50
|
efficiency: {
|
|
51
51
|
totalActiveTime: pluginState.activeSessionTime / 1000,
|
|
@@ -64,6 +64,6 @@ var getAnalyticsPayload = exports.getAnalyticsPayload = function getAnalyticsPay
|
|
|
64
64
|
contentSizeChanged: pluginState.contentSizeChanged,
|
|
65
65
|
toolbarDocking: toolbarDocking
|
|
66
66
|
},
|
|
67
|
-
eventType:
|
|
67
|
+
eventType: _enums.EVENT_TYPE.TRACK
|
|
68
68
|
};
|
|
69
69
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
2
2
|
import { getNodeChanges } from './get-node-changes';
|
|
3
3
|
export const getAnalyticsPayload = ({
|
|
4
4
|
currentContent,
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics/types/enums';
|
|
6
6
|
import { getNodeChanges } from './get-node-changes';
|
|
7
7
|
export var getAnalyticsPayload = function getAnalyticsPayload(_ref) {
|
|
8
8
|
var _pluginState$actionTy;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import type { EditorCommand
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
|
|
2
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
|
+
import type { UserPreferencesProvider } from '@atlaskit/editor-common/types/user-preferences';
|
|
4
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics/analyticsPluginType';
|
|
5
|
+
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences/user-preferences-plugin-type';
|
|
4
6
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
5
7
|
import type { MetricsState } from './pm-plugins/main';
|
|
6
8
|
type handleIntentToStartEditProps = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
3
|
+
import type { UserPreferencesProvider } from '@atlaskit/editor-common/types/user-preferences';
|
|
3
4
|
import type { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
4
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
5
6
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
1
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
|
|
2
2
|
import type { MetricsPlugin } from '../../metricsPluginType';
|
|
3
3
|
export declare class ActiveSessionTimer {
|
|
4
4
|
private timerId;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActiveSessionEventPayload } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import type { ActiveSessionEventPayload } from '@atlaskit/editor-common/analytics/types/activity-session-events';
|
|
2
2
|
import type { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { MetricsState } from '../main';
|
|
4
4
|
export declare const getAnalyticsPayload: ({ currentContent, pluginState, toolbarDocking, }: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-metrics",
|
|
3
|
-
"version": "27.0.
|
|
3
|
+
"version": "27.0.5",
|
|
4
4
|
"description": "Metrics plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@atlaskit/editor-plugin-analytics": "^26.0.0",
|
|
25
25
|
"@atlaskit/editor-plugin-user-preferences": "^24.0.0",
|
|
26
26
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
27
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
27
|
+
"@atlaskit/tmp-editor-statsig": "^232.0.0",
|
|
28
28
|
"@babel/runtime": "^7.0.0",
|
|
29
29
|
"bind-event-listener": "^3.0.0"
|
|
30
30
|
},
|