@atlaskit/editor-plugin-analytics 0.3.2 → 0.3.4

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,37 @@
1
1
  # @atlaskit/editor-plugin-analytics
2
2
 
3
+ ## 0.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#56790](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/56790) [`ff577a7969d4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ff577a7969d4) - ED-21266: Updated @atlaskit/adf-schema to 34.0.1
8
+
9
+ ## 0.3.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646) [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make feature flags plugin optional in all plugins including:
14
+
15
+ - analytics
16
+ - base
17
+ - card
18
+ - code-block
19
+ - expand
20
+ - extension
21
+ - floating-toolbar
22
+ - hyperlink
23
+ - insert-block
24
+ - layout
25
+ - layout
26
+ - list
27
+ - media
28
+ - paste
29
+ - rule
30
+ - table
31
+ - tasks-and-decisions
32
+
33
+ We already treat it as optional in the plugins, so this is just ensuring that the plugin is not mandatory to be added to the preset.
34
+
3
35
  ## 0.3.2
4
36
 
5
37
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import type { AnalyticsEventPayload, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import type { NextEditorPlugin, PerformanceTracking } from '@atlaskit/editor-common/types';
3
+ import type { NextEditorPlugin, OptionalPlugin, PerformanceTracking } from '@atlaskit/editor-common/types';
4
4
  import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
5
5
  import type { CreateAttachPayloadIntoTransaction } from './analytics-api/attach-payload-into-transaction';
6
6
  export interface AnalyticsPluginOptions {
@@ -14,7 +14,7 @@ export type AnalyticsPlugin = NextEditorPlugin<'analytics', {
14
14
  attachAnalyticsEvent: CreateAttachPayloadIntoTransaction | null;
15
15
  performanceTracking: PerformanceTracking | undefined;
16
16
  };
17
- dependencies: [FeatureFlagsPlugin];
17
+ dependencies: [OptionalPlugin<FeatureFlagsPlugin>];
18
18
  actions: EditorAnalyticsAPI;
19
19
  }>;
20
20
  /**
@@ -1,6 +1,6 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import type { AnalyticsEventPayload, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
- import type { NextEditorPlugin, PerformanceTracking } from '@atlaskit/editor-common/types';
3
+ import type { NextEditorPlugin, OptionalPlugin, PerformanceTracking } from '@atlaskit/editor-common/types';
4
4
  import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
5
5
  import type { CreateAttachPayloadIntoTransaction } from './analytics-api/attach-payload-into-transaction';
6
6
  export interface AnalyticsPluginOptions {
@@ -15,7 +15,7 @@ export type AnalyticsPlugin = NextEditorPlugin<'analytics', {
15
15
  performanceTracking: PerformanceTracking | undefined;
16
16
  };
17
17
  dependencies: [
18
- FeatureFlagsPlugin
18
+ OptionalPlugin<FeatureFlagsPlugin>
19
19
  ];
20
20
  actions: EditorAnalyticsAPI;
21
21
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-analytics",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Analytics plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,10 +31,10 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/adf-schema": "^34.0.0",
34
+ "@atlaskit/adf-schema": "^34.0.1",
35
35
  "@atlaskit/analytics-listeners": "^8.6.0",
36
36
  "@atlaskit/analytics-next": "^9.0.0",
37
- "@atlaskit/editor-common": "^76.22.0",
37
+ "@atlaskit/editor-common": "^76.23.0",
38
38
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
39
39
  "@atlaskit/editor-prosemirror": "1.1.0",
40
40
  "@atlaskit/editor-tables": "^2.2.0",
package/report.api.md CHANGED
@@ -20,6 +20,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
20
20
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
21
21
  import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
22
22
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
23
+ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
23
24
  import type { PerformanceTracking } from '@atlaskit/editor-common/types';
24
25
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
25
26
 
@@ -33,7 +34,7 @@ export type AnalyticsPlugin = NextEditorPlugin<
33
34
  attachAnalyticsEvent: CreateAttachPayloadIntoTransaction | null;
34
35
  performanceTracking: PerformanceTracking | undefined;
35
36
  };
36
- dependencies: [FeatureFlagsPlugin];
37
+ dependencies: [OptionalPlugin<FeatureFlagsPlugin>];
37
38
  actions: EditorAnalyticsAPI;
38
39
  }
39
40
  >;
@@ -1,47 +0,0 @@
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 type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
9
- import type { 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 '@atlaskit/editor-prosemirror/state';
14
-
15
- // @public (undocumented)
16
- export type AnalyticsPlugin = NextEditorPlugin<'analytics', {
17
- pluginConfiguration: AnalyticsPluginOptions;
18
- sharedState: {
19
- createAnalyticsEvent: CreateUIAnalyticsEvent | null;
20
- attachAnalyticsEvent: CreateAttachPayloadIntoTransaction | null;
21
- performanceTracking: PerformanceTracking | undefined;
22
- };
23
- dependencies: [FeatureFlagsPlugin];
24
- actions: EditorAnalyticsAPI;
25
- }>;
26
-
27
- // @public
28
- export const analyticsPlugin: AnalyticsPlugin;
29
-
30
- // @public (undocumented)
31
- export interface AnalyticsPluginOptions {
32
- // (undocumented)
33
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
34
- // (undocumented)
35
- performanceTracking?: PerformanceTracking;
36
- }
37
-
38
- // @public (undocumented)
39
- export type CreateAttachPayloadIntoTransaction = (props: {
40
- payload: AnalyticsEventPayload;
41
- tr: Transaction;
42
- channel: string;
43
- }) => void;
44
-
45
- // (No @packageDocumentation comment for this package)
46
-
47
- ```