@atlaskit/editor-plugin-analytics 0.0.1 → 0.0.3

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 +1,15 @@
1
1
  # @atlaskit/editor-plugin-analytics
2
+
3
+ ## 0.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`73b5128036b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/73b5128036b) - [ED-17082] Mark package as a singleton one
8
+ - Updated dependencies
9
+
10
+ ## 0.0.2
11
+
12
+ ### Patch Changes
13
+
14
+ - [`f07a1e036a9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f07a1e036a9) - Refactoring editor-core to prepare for extracting card plugin.
15
+ - Updated dependencies
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-analytics",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-analytics",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-analytics",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-analytics",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Analytics plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -9,7 +9,8 @@
9
9
  },
10
10
  "atlassian": {
11
11
  "team": "Editor",
12
- "releaseModel": "scheduled"
12
+ "singleton": true,
13
+ "releaseModel": "continuous"
13
14
  },
14
15
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
15
16
  "main": "dist/cjs/index.js",
@@ -30,10 +31,10 @@
30
31
  ".": "./src/index.ts"
31
32
  },
32
33
  "dependencies": {
33
- "@atlaskit/adf-schema": "^25.5.0",
34
+ "@atlaskit/adf-schema": "^25.9.0",
34
35
  "@atlaskit/analytics-listeners": "^8.6.0",
35
36
  "@atlaskit/analytics-next": "^9.0.0",
36
- "@atlaskit/editor-common": "^74.1.0",
37
+ "@atlaskit/editor-common": "^74.9.0",
37
38
  "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
38
39
  "@atlaskit/editor-tables": "^2.2.0",
39
40
  "@babel/runtime": "^7.0.0",
@@ -44,12 +45,7 @@
44
45
  "react": "^16.8.0"
45
46
  },
46
47
  "devDependencies": {
47
- "@atlaskit/docs": "*",
48
- "@atlaskit/editor-core": "^183.1.0",
49
- "@atlaskit/editor-test-helpers": "^18.2.0",
50
- "@atlaskit/ssr": "*",
51
- "@atlaskit/visual-regression": "*",
52
- "@atlaskit/webdriver-runner": "*",
48
+ "@atlaskit/editor-test-helpers": "^18.7.0",
53
49
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
54
50
  "@testing-library/react": "^12.1.5",
55
51
  "react-dom": "^16.8.0",
@@ -0,0 +1,43 @@
1
+ ## API Report File for "@atlaskit/editor-plugin-analytics"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
8
+ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
9
+ import { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
10
+ import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
11
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
12
+ import type { PerformanceTracking } from '@atlaskit/editor-common/types';
13
+ import type { Transaction } from 'prosemirror-state';
14
+
15
+ // @public (undocumented)
16
+ export const analyticsPlugin: NextEditorPlugin<'analytics', {
17
+ pluginConfiguration: AnalyticsPluginOptions;
18
+ sharedState: {
19
+ createAnalyticsEvent: CreateUIAnalyticsEvent | null;
20
+ attachAnalyticsEvent: CreateAttachPayloadIntoTransaction | null;
21
+ };
22
+ dependencies: [typeof featureFlagsPlugin];
23
+ actions: EditorAnalyticsAPI;
24
+ }>;
25
+
26
+ // @public (undocumented)
27
+ export interface AnalyticsPluginOptions {
28
+ // (undocumented)
29
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
30
+ // (undocumented)
31
+ performanceTracking?: PerformanceTracking;
32
+ }
33
+
34
+ // @public (undocumented)
35
+ export type CreateAttachPayloadIntoTransaction = (props: {
36
+ payload: AnalyticsEventPayload;
37
+ tr: Transaction;
38
+ channel: string;
39
+ }) => void;
40
+
41
+ // (No @packageDocumentation comment for this package)
42
+
43
+ ```