@atlaskit/editor-plugin-metrics 4.0.4 → 4.0.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,20 @@
1
1
  # @atlaskit/editor-plugin-metrics
2
2
 
3
+ ## 4.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.0.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [#195649](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195649)
14
+ [`231bb33e06dfe`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/231bb33e06dfe) -
15
+ EDITOR-1131 Bump adf-schema version to 50.2.0
16
+ - Updated dependencies
17
+
3
18
  ## 4.0.4
4
19
 
5
20
  ### Patch Changes
@@ -4,5 +4,5 @@ import type { MetricsState } from '../main';
4
4
  export declare const getAnalyticsPayload: ({ currentContent, pluginState, toolbarDocking, }: {
5
5
  currentContent: Fragment;
6
6
  pluginState: MetricsState;
7
- toolbarDocking?: "top" | "none" | undefined;
7
+ toolbarDocking?: "top" | "none";
8
8
  }) => ActiveSessionEventPayload;
@@ -28,8 +28,8 @@ export declare const getNewPluginState: ({ now, intentToStartEditTime, shouldPer
28
28
  contentSizeChanged: number;
29
29
  intentToStartEditTime: number;
30
30
  shouldPersistActiveSession: boolean;
31
- lastSelection?: import("prosemirror-state").Selection | undefined;
32
- initialContent?: import("prosemirror-model").Fragment | undefined;
31
+ lastSelection?: import("prosemirror-state").Selection;
32
+ initialContent?: import("prosemirror-model").Fragment;
33
33
  repeatedActionCount: number;
34
34
  } | {
35
35
  totalActionCount: number;
@@ -51,6 +51,6 @@ export declare const getNewPluginState: ({ now, intentToStartEditTime, shouldPer
51
51
  contentSizeChanged: number;
52
52
  intentToStartEditTime: number;
53
53
  shouldPersistActiveSession: boolean;
54
- lastSelection?: import("prosemirror-state").Selection | undefined;
55
- initialContent?: import("prosemirror-model").Fragment | undefined;
54
+ lastSelection?: import("prosemirror-state").Selection;
55
+ initialContent?: import("prosemirror-model").Fragment;
56
56
  };
@@ -2,5 +2,5 @@ import { type Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { MetricsState } from '../main';
3
3
  export declare const getNodeChanges: ({ currentContent, pluginState, }: {
4
4
  currentContent: Fragment;
5
- pluginState?: MetricsState | undefined;
5
+ pluginState?: MetricsState;
6
6
  }) => Record<string, number>;
@@ -4,5 +4,5 @@ import type { MetricsState } from '../main';
4
4
  export declare const getAnalyticsPayload: ({ currentContent, pluginState, toolbarDocking, }: {
5
5
  currentContent: Fragment;
6
6
  pluginState: MetricsState;
7
- toolbarDocking?: "top" | "none" | undefined;
7
+ toolbarDocking?: "top" | "none";
8
8
  }) => ActiveSessionEventPayload;
@@ -28,8 +28,8 @@ export declare const getNewPluginState: ({ now, intentToStartEditTime, shouldPer
28
28
  contentSizeChanged: number;
29
29
  intentToStartEditTime: number;
30
30
  shouldPersistActiveSession: boolean;
31
- lastSelection?: import("prosemirror-state").Selection | undefined;
32
- initialContent?: import("prosemirror-model").Fragment | undefined;
31
+ lastSelection?: import("prosemirror-state").Selection;
32
+ initialContent?: import("prosemirror-model").Fragment;
33
33
  repeatedActionCount: number;
34
34
  } | {
35
35
  totalActionCount: number;
@@ -51,6 +51,6 @@ export declare const getNewPluginState: ({ now, intentToStartEditTime, shouldPer
51
51
  contentSizeChanged: number;
52
52
  intentToStartEditTime: number;
53
53
  shouldPersistActiveSession: boolean;
54
- lastSelection?: import("prosemirror-state").Selection | undefined;
55
- initialContent?: import("prosemirror-model").Fragment | undefined;
54
+ lastSelection?: import("prosemirror-state").Selection;
55
+ initialContent?: import("prosemirror-model").Fragment;
56
56
  };
@@ -2,5 +2,5 @@ import { type Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { MetricsState } from '../main';
3
3
  export declare const getNodeChanges: ({ currentContent, pluginState, }: {
4
4
  currentContent: Fragment;
5
- pluginState?: MetricsState | undefined;
5
+ pluginState?: MetricsState;
6
6
  }) => Record<string, number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-metrics",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "description": "Metrics plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,23 +31,20 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^50.0.1",
34
+ "@atlaskit/adf-schema": "^50.2.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
36
36
  "@atlaskit/editor-plugin-user-preferences": "^1.2.0",
37
37
  "@atlaskit/editor-prosemirror": "7.0.0",
38
38
  "@atlaskit/platform-feature-flags": "^1.1.0",
39
- "@atlaskit/tmp-editor-statsig": "^9.17.0",
39
+ "@atlaskit/tmp-editor-statsig": "^10.0.0",
40
40
  "@babel/runtime": "^7.0.0",
41
41
  "bind-event-listener": "^3.0.0"
42
42
  },
43
43
  "peerDependencies": {
44
- "@atlaskit/editor-common": "^107.12.0",
44
+ "@atlaskit/editor-common": "^107.25.0",
45
45
  "react": "^18.2.0",
46
46
  "react-dom": "^18.2.0"
47
47
  },
48
- "devDependencies": {
49
- "typescript": "~5.4.2"
50
- },
51
48
  "techstack": {
52
49
  "@atlassian/frontend": {
53
50
  "import-structure": [