@atlaskit/editor-plugin-metrics 27.0.4 → 27.0.7

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,23 @@
1
1
  # @atlaskit/editor-plugin-metrics
2
2
 
3
+ ## 27.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 27.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 27.0.5
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 27.0.4
4
22
 
5
23
  ### Patch Changes
@@ -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 _analytics = require("@atlaskit/editor-common/analytics");
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: _analytics.ACTION.ENDED,
47
- actionSubject: _analytics.ACTION_SUBJECT.ACTIVITY_SESSION,
48
- actionSubjectId: _analytics.ACTION_SUBJECT_ID.ACTIVITY,
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: _analytics.EVENT_TYPE.TRACK
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, NextEditorPlugin, OptionalPlugin, UserPreferencesProvider } from '@atlaskit/editor-common/types';
2
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
3
- import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
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 { UserPreferencesProvider, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
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.4",
3
+ "version": "27.0.7",
4
4
  "description": "Metrics plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,12 +24,12 @@
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": "^231.0.0",
27
+ "@atlaskit/tmp-editor-statsig": "^234.0.0",
28
28
  "@babel/runtime": "^7.0.0",
29
29
  "bind-event-listener": "^3.0.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "@atlaskit/editor-common": "^130.3.0",
32
+ "@atlaskit/editor-common": "^130.5.0",
33
33
  "react": "^18.2.0 || ^19.2.0",
34
34
  "react-dom": "^18.2.0 || ^19.2.0"
35
35
  },