@atlaskit/editor-plugin-analytics 0.3.2 → 0.3.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,5 +1,31 @@
1
1
  # @atlaskit/editor-plugin-analytics
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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:
8
+
9
+ - analytics
10
+ - base
11
+ - card
12
+ - code-block
13
+ - expand
14
+ - extension
15
+ - floating-toolbar
16
+ - hyperlink
17
+ - insert-block
18
+ - layout
19
+ - layout
20
+ - list
21
+ - media
22
+ - paste
23
+ - rule
24
+ - table
25
+ - tasks-and-decisions
26
+
27
+ 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.
28
+
3
29
  ## 0.3.2
4
30
 
5
31
  ### 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.3",
4
4
  "description": "Analytics plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-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
  >;
@@ -9,6 +9,7 @@ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
9
9
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
10
10
  import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
11
11
  import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
12
+ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
12
13
  import type { PerformanceTracking } from '@atlaskit/editor-common/types';
13
14
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
14
15
 
@@ -20,7 +21,7 @@ export type AnalyticsPlugin = NextEditorPlugin<'analytics', {
20
21
  attachAnalyticsEvent: CreateAttachPayloadIntoTransaction | null;
21
22
  performanceTracking: PerformanceTracking | undefined;
22
23
  };
23
- dependencies: [FeatureFlagsPlugin];
24
+ dependencies: [OptionalPlugin<FeatureFlagsPlugin>];
24
25
  actions: EditorAnalyticsAPI;
25
26
  }>;
26
27