@atlaskit/analytics-next 10.2.1 → 10.3.1
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 +14 -0
- package/dist/types/components/AnalyticsDecorator/index.d.ts +1 -1
- package/dist/types/components/AnalyticsDelegate/index.d.ts +1 -1
- package/dist/types/utils/withAnalytics.d.ts +2 -4
- package/dist/types-ts4.5/components/AnalyticsDecorator/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsDelegate/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/withAnalytics.d.ts +2 -4
- package/package.json +3 -3
- package/tsconfig.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/analytics-next
|
|
2
2
|
|
|
3
|
+
## 10.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 10.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
14
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
15
|
+
Update `React` from v16 to v18
|
|
16
|
+
|
|
3
17
|
## 10.2.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -41,6 +41,6 @@ export declare class AnalyticsDecorator extends Component<AnalyticsDecoratorProp
|
|
|
41
41
|
getDecoratedAnalyticsData: (name: string, srcData: AnalyticsData, isPrivate: boolean) => AnalyticsData;
|
|
42
42
|
onAnalyticsEvent: (name: string, srcData: AnalyticsData, isPrivate: boolean) => void;
|
|
43
43
|
getParentAnalyticsData: (name: string, isPrivate: boolean) => AnalyticsData;
|
|
44
|
-
render():
|
|
44
|
+
render(): React.ReactNode;
|
|
45
45
|
}
|
|
46
46
|
export default AnalyticsDecorator;
|
|
@@ -20,6 +20,6 @@ declare class AnalyticsDelegate extends Component<AnalyticsDelegateProps> {
|
|
|
20
20
|
};
|
|
21
21
|
getChildContext(): AnalyticsDelegateContext;
|
|
22
22
|
onAnalyticsEvent: (name: string, data: any, isPrivate: boolean) => void;
|
|
23
|
-
render():
|
|
23
|
+
render(): React.ReactNode;
|
|
24
24
|
}
|
|
25
25
|
export default AnalyticsDelegate;
|
|
@@ -47,12 +47,10 @@ declare const withAnalytics: (WrappedComponent: React.ComponentType<any>, map?:
|
|
|
47
47
|
privateAnalyticsEvent: (name: string, data?: AnalyticsData) => void;
|
|
48
48
|
getParentAnalyticsData: (name: string) => AnalyticsData;
|
|
49
49
|
render(): JSX.Element;
|
|
50
|
-
context:
|
|
50
|
+
context: unknown;
|
|
51
51
|
setState<K extends "evaluatedMap">(state: WithAnalyticsState | ((prevState: Readonly<WithAnalyticsState>, props: Readonly<WithAnalyticsProps>) => WithAnalyticsState | Pick<WithAnalyticsState, K> | null) | Pick<WithAnalyticsState, K> | null, callback?: (() => void) | undefined): void;
|
|
52
52
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
53
|
-
readonly props: Readonly<WithAnalyticsProps
|
|
54
|
-
children?: React.ReactNode;
|
|
55
|
-
}>;
|
|
53
|
+
readonly props: Readonly<WithAnalyticsProps>;
|
|
56
54
|
state: Readonly<WithAnalyticsState>;
|
|
57
55
|
refs: {
|
|
58
56
|
[key: string]: React.ReactInstance;
|
|
@@ -41,6 +41,6 @@ export declare class AnalyticsDecorator extends Component<AnalyticsDecoratorProp
|
|
|
41
41
|
getDecoratedAnalyticsData: (name: string, srcData: AnalyticsData, isPrivate: boolean) => AnalyticsData;
|
|
42
42
|
onAnalyticsEvent: (name: string, srcData: AnalyticsData, isPrivate: boolean) => void;
|
|
43
43
|
getParentAnalyticsData: (name: string, isPrivate: boolean) => AnalyticsData;
|
|
44
|
-
render():
|
|
44
|
+
render(): React.ReactNode;
|
|
45
45
|
}
|
|
46
46
|
export default AnalyticsDecorator;
|
|
@@ -20,6 +20,6 @@ declare class AnalyticsDelegate extends Component<AnalyticsDelegateProps> {
|
|
|
20
20
|
};
|
|
21
21
|
getChildContext(): AnalyticsDelegateContext;
|
|
22
22
|
onAnalyticsEvent: (name: string, data: any, isPrivate: boolean) => void;
|
|
23
|
-
render():
|
|
23
|
+
render(): React.ReactNode;
|
|
24
24
|
}
|
|
25
25
|
export default AnalyticsDelegate;
|
|
@@ -47,12 +47,10 @@ declare const withAnalytics: (WrappedComponent: React.ComponentType<any>, map?:
|
|
|
47
47
|
privateAnalyticsEvent: (name: string, data?: AnalyticsData) => void;
|
|
48
48
|
getParentAnalyticsData: (name: string) => AnalyticsData;
|
|
49
49
|
render(): JSX.Element;
|
|
50
|
-
context:
|
|
50
|
+
context: unknown;
|
|
51
51
|
setState<K extends "evaluatedMap">(state: WithAnalyticsState | ((prevState: Readonly<WithAnalyticsState>, props: Readonly<WithAnalyticsProps>) => WithAnalyticsState | Pick<WithAnalyticsState, K> | null) | Pick<WithAnalyticsState, K> | null, callback?: (() => void) | undefined): void;
|
|
52
52
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
53
|
-
readonly props: Readonly<WithAnalyticsProps
|
|
54
|
-
children?: React.ReactNode;
|
|
55
|
-
}>;
|
|
53
|
+
readonly props: Readonly<WithAnalyticsProps>;
|
|
56
54
|
state: Readonly<WithAnalyticsState>;
|
|
57
55
|
refs: {
|
|
58
56
|
[key: string]: React.ReactInstance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/analytics-next",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.3.1",
|
|
4
4
|
"description": "React components, HOCs and hooks to assist with tracking user activity with React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
54
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
54
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"prop-types": "^15.5.10",
|
|
57
57
|
"use-memo-one": "^1.1.1"
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@atlaskit/ssr": "*",
|
|
65
65
|
"@atlassian/feature-flags-test-utils": "*",
|
|
66
|
-
"@testing-library/react": "^
|
|
66
|
+
"@testing-library/react": "^13.4.0",
|
|
67
67
|
"storybook-addon-performance": "^0.17.3",
|
|
68
68
|
"typescript": "~5.4.2"
|
|
69
69
|
},
|