@atlaskit/editor-plugin-analytics 0.3.1 → 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 +32 -0
- package/dist/types/plugin.d.ts +2 -2
- package/dist/types-ts4.5/plugin.d.ts +2 -2
- package/package.json +2 -2
- package/report.api.md +2 -1
- package/tmp/api-report-tmp.d.ts +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
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
|
+
|
|
29
|
+
## 0.3.2
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- [#43417](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43417) [`3f3c17f0273`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3f3c17f0273) - ED-20971 Upgrade adf-schema package to ^34.0.0
|
|
34
|
+
|
|
3
35
|
## 0.3.1
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -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.
|
|
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",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
".": "./src/index.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@atlaskit/adf-schema": "^
|
|
34
|
+
"@atlaskit/adf-schema": "^34.0.0",
|
|
35
35
|
"@atlaskit/analytics-listeners": "^8.6.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^9.0.0",
|
|
37
37
|
"@atlaskit/editor-common": "^76.22.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
|
>;
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -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
|
|