@atlaskit/editor-plugin-analytics 11.0.15 → 11.0.16

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,11 @@
1
1
  # @atlaskit/editor-plugin-analytics
2
2
 
3
+ ## 11.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 11.0.15
4
10
 
5
11
  ### Patch Changes
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/analyticsPlugin.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/analyticsPlugin.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/analyticsPlugin.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/analyticsPlugin.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/analyticsPlugin.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/analyticsPluginType.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/analyticsPluginType.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/analyticsPluginType.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/analyticsPluginType.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/analyticsPluginType.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/attach-payload-into-transaction.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/attach-payload-into-transaction.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/attach-payload-into-transaction.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/attach-payload-into-transaction.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/attach-payload-into-transaction.d.ts"
15
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-analytics",
3
- "version": "11.0.15",
3
+ "version": "11.0.16",
4
4
  "description": "Analytics plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/editor-prosemirror": "^7.3.0",
35
35
  "@atlaskit/editor-tables": "^2.10.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/tmp-editor-statsig": "^102.0.0",
37
+ "@atlaskit/tmp-editor-statsig": "^103.0.0",
38
38
  "@babel/runtime": "^7.0.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -1,7 +0,0 @@
1
- import type { AnalyticsPlugin } from './analyticsPluginType';
2
- /**
3
- * Analytics plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
4
- * from `@atlaskit/editor-core`.
5
- */
6
- declare const analyticsPlugin: AnalyticsPlugin;
7
- export { analyticsPlugin };
@@ -1,29 +0,0 @@
1
- import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import type { NextEditorPlugin, OptionalPlugin, PerformanceTracking } from '@atlaskit/editor-common/types';
4
- import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
5
- import type { CreateAttachPayloadIntoTransaction } from './pm-plugins/analytics-api/attach-payload-into-transaction';
6
- export interface AnalyticsPluginOptions {
7
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
8
- performanceTracking?: PerformanceTracking;
9
- }
10
- export type AnalyticsPlugin = NextEditorPlugin<'analytics', {
11
- actions: EditorAnalyticsAPI;
12
- dependencies: [
13
- OptionalPlugin<FeatureFlagsPlugin>
14
- ];
15
- pluginConfiguration: AnalyticsPluginOptions;
16
- sharedState: {
17
- /**
18
- * **Warning:** Do not use this directly. Use the `analyticsPlugin.actions`
19
- * instead, as it will properly queue all events.
20
- */
21
- attachAnalyticsEvent: CreateAttachPayloadIntoTransaction | null;
22
- /**
23
- * **Warning:** Do not use this directly. Use the `analyticsPlugin.actions`
24
- * instead, as it will properly queue all events.
25
- */
26
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
27
- performanceTracking: PerformanceTracking | undefined;
28
- };
29
- }>;
@@ -1 +0,0 @@
1
- export { analyticsPlugin } from '../analyticsPlugin';
@@ -1 +0,0 @@
1
- export type { AnalyticsPlugin, AnalyticsPluginOptions } from '../analyticsPluginType';
@@ -1 +0,0 @@
1
- export type { CreateAttachPayloadIntoTransaction } from '../pm-plugins/analytics-api/attach-payload-into-transaction';
@@ -1,3 +0,0 @@
1
- export { analyticsPlugin } from './analyticsPlugin';
2
- export type { AnalyticsPlugin, AnalyticsPluginOptions } from './analyticsPluginType';
3
- export type { CreateAttachPayloadIntoTransaction } from './pm-plugins/analytics-api/attach-payload-into-transaction';
@@ -1,8 +0,0 @@
1
- import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
2
- import type { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
3
- export type CreateAttachPayloadIntoTransaction = (props: {
4
- channel: string;
5
- payload: AnalyticsEventPayload;
6
- tr: Transaction;
7
- }) => void;
8
- export declare const createAttachPayloadIntoTransaction: (selection: Selection) => CreateAttachPayloadIntoTransaction;
@@ -1,8 +0,0 @@
1
- import type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
2
- import { SELECTION_POSITION, SELECTION_TYPE, type BaseEventPayload } from '@atlaskit/editor-common/analytics';
3
- import type { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
4
- export declare function getSelectionType(selection: Selection): {
5
- position?: SELECTION_POSITION;
6
- type: SELECTION_TYPE;
7
- };
8
- export declare function getStateContext<Payload extends BaseEventPayload = AnalyticsEventPayload>(selection: Selection, payload: Payload, tr?: Transaction): Payload;
@@ -1,2 +0,0 @@
1
- import { type AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
2
- export declare function mapActionSubjectIdToAttributes(payload: AnalyticsEventPayload): AnalyticsEventPayload;
@@ -1,2 +0,0 @@
1
- import { FabricChannel } from '@atlaskit/analytics-listeners/types';
2
- export declare const editorAnalyticsChannel: FabricChannel.editor;
@@ -1,2 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- export declare const analyticsPluginKey: PluginKey;
@@ -1,3 +0,0 @@
1
- import type { AnalyticsPayload } from '@atlaskit/adf-schema/steps';
2
- import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
- export declare const generateUndoRedoInputSoucePayload: (tr: Readonly<Transaction>) => <T extends AnalyticsPayload>(payload: T) => T;