@atlaskit/editor-plugin-analytics 11.0.15 → 12.0.0
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/analyticsPlugin/package.json +1 -8
- package/analyticsPluginType/package.json +1 -8
- package/attach-payload-into-transaction/package.json +1 -8
- package/package.json +10 -18
- package/dist/types-ts4.5/analyticsPlugin.d.ts +0 -7
- package/dist/types-ts4.5/analyticsPluginType.d.ts +0 -29
- package/dist/types-ts4.5/entry-points/analyticsPlugin.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/analyticsPluginType.d.ts +0 -1
- package/dist/types-ts4.5/entry-points/attach-payload-into-transaction.d.ts +0 -1
- package/dist/types-ts4.5/index.d.ts +0 -3
- package/dist/types-ts4.5/pm-plugins/analytics-api/attach-payload-into-transaction.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/analytics-api/editor-state-context.d.ts +0 -8
- package/dist/types-ts4.5/pm-plugins/analytics-api/map-attributes.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/consts.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/pm-plugins/undo-redo-input-source.d.ts +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-analytics
|
|
2
2
|
|
|
3
|
+
## 12.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
|
|
8
|
+
Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
|
|
9
|
+
|
|
10
|
+
Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
|
|
11
|
+
|
|
12
|
+
Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
|
|
13
|
+
|
|
14
|
+
```diff
|
|
15
|
+
- "typesVersions": {
|
|
16
|
+
- ">=4.5 <4.9": {
|
|
17
|
+
- "*": [
|
|
18
|
+
- "dist/types-ts4.5/*",
|
|
19
|
+
- "dist/types-ts4.5/index.d.ts"
|
|
20
|
+
- ]
|
|
21
|
+
- }
|
|
22
|
+
- },
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
29
|
+
## 11.0.16
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
|
|
3
35
|
## 11.0.15
|
|
4
36
|
|
|
5
37
|
### 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": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Analytics plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,29 +16,21 @@
|
|
|
16
16
|
"module": "dist/esm/index.js",
|
|
17
17
|
"module:es2019": "dist/es2019/index.js",
|
|
18
18
|
"types": "dist/types/index.d.ts",
|
|
19
|
-
"typesVersions": {
|
|
20
|
-
">=4.5 <4.9": {
|
|
21
|
-
"*": [
|
|
22
|
-
"dist/types-ts4.5/*",
|
|
23
|
-
"dist/types-ts4.5/index.d.ts"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
19
|
"sideEffects": false,
|
|
28
20
|
"atlaskit:src": "src/index.ts",
|
|
29
21
|
"dependencies": {
|
|
30
|
-
"@atlaskit/adf-schema": "^
|
|
31
|
-
"@atlaskit/analytics-listeners": "^
|
|
32
|
-
"@atlaskit/analytics-next": "^
|
|
33
|
-
"@atlaskit/editor-plugin-feature-flags": "^
|
|
34
|
-
"@atlaskit/editor-prosemirror": "^
|
|
35
|
-
"@atlaskit/editor-tables": "^
|
|
36
|
-
"@atlaskit/platform-feature-flags": "^
|
|
37
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
22
|
+
"@atlaskit/adf-schema": "^55.0.0",
|
|
23
|
+
"@atlaskit/analytics-listeners": "^11.0.0",
|
|
24
|
+
"@atlaskit/analytics-next": "^12.0.0",
|
|
25
|
+
"@atlaskit/editor-plugin-feature-flags": "^11.0.0",
|
|
26
|
+
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
27
|
+
"@atlaskit/editor-tables": "^3.0.0",
|
|
28
|
+
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
29
|
+
"@atlaskit/tmp-editor-statsig": "^104.0.0",
|
|
38
30
|
"@babel/runtime": "^7.0.0"
|
|
39
31
|
},
|
|
40
32
|
"peerDependencies": {
|
|
41
|
-
"@atlaskit/editor-common": "^
|
|
33
|
+
"@atlaskit/editor-common": "^116.0.0",
|
|
42
34
|
"react": "^18.2.0"
|
|
43
35
|
},
|
|
44
36
|
"techstack": {
|
|
@@ -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,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,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;
|