@atlaskit/analytics-next 10.3.1 → 11.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 +14 -0
- package/dist/types/components/AnalyticsContext/LegacyAnalyticsContext.d.ts +1 -1
- package/dist/types/components/AnalyticsErrorBoundary.d.ts +1 -1
- package/dist/types/components/AnalyticsListener/LegacyAnalyticsListener.d.ts +1 -1
- package/dist/types/utils/withAnalytics.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsContext/LegacyAnalyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/components/AnalyticsListener/LegacyAnalyticsListener.d.ts +1 -1
- package/dist/types-ts4.5/utils/withAnalytics.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/analytics-next
|
|
2
2
|
|
|
3
|
+
## 11.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
8
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
9
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
10
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
11
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
12
|
+
React 17 may come via non-major semver releases.
|
|
13
|
+
|
|
14
|
+
Please refer this community post for more details:
|
|
15
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
16
|
+
|
|
3
17
|
## 10.3.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -25,6 +25,6 @@ declare class AnalyticsContext extends Component<Props, AnalyticsReactContextInt
|
|
|
25
25
|
};
|
|
26
26
|
getAnalyticsContext: () => any[];
|
|
27
27
|
getAnalyticsEventHandlers: () => any;
|
|
28
|
-
render(): JSX.Element;
|
|
28
|
+
render(): React.JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
export default AnalyticsContext;
|
|
@@ -20,6 +20,6 @@ type AnalyticsErrorBoundaryState = {
|
|
|
20
20
|
export default class AnalyticsErrorBoundary extends Component<AnalyticsErrorBoundaryProps, AnalyticsErrorBoundaryState> {
|
|
21
21
|
constructor(props: AnalyticsErrorBoundaryProps);
|
|
22
22
|
componentDidCatch(error: Error, info: AnalyticsErrorBoundaryErrorInfo): void;
|
|
23
|
-
render(): JSX.Element | null;
|
|
23
|
+
render(): React.JSX.Element | null;
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -46,7 +46,7 @@ declare const withAnalytics: (WrappedComponent: React.ComponentType<any>, map?:
|
|
|
46
46
|
fireAnalyticsEvent: (name: string, data?: AnalyticsData) => void;
|
|
47
47
|
privateAnalyticsEvent: (name: string, data?: AnalyticsData) => void;
|
|
48
48
|
getParentAnalyticsData: (name: string) => AnalyticsData;
|
|
49
|
-
render(): JSX.Element;
|
|
49
|
+
render(): React.JSX.Element;
|
|
50
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;
|
|
@@ -25,6 +25,6 @@ declare class AnalyticsContext extends Component<Props, AnalyticsReactContextInt
|
|
|
25
25
|
};
|
|
26
26
|
getAnalyticsContext: () => any[];
|
|
27
27
|
getAnalyticsEventHandlers: () => any;
|
|
28
|
-
render(): JSX.Element;
|
|
28
|
+
render(): React.JSX.Element;
|
|
29
29
|
}
|
|
30
30
|
export default AnalyticsContext;
|
|
@@ -20,6 +20,6 @@ type AnalyticsErrorBoundaryState = {
|
|
|
20
20
|
export default class AnalyticsErrorBoundary extends Component<AnalyticsErrorBoundaryProps, AnalyticsErrorBoundaryState> {
|
|
21
21
|
constructor(props: AnalyticsErrorBoundaryProps);
|
|
22
22
|
componentDidCatch(error: Error, info: AnalyticsErrorBoundaryErrorInfo): void;
|
|
23
|
-
render(): JSX.Element | null;
|
|
23
|
+
render(): React.JSX.Element | null;
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -46,7 +46,7 @@ declare const withAnalytics: (WrappedComponent: React.ComponentType<any>, map?:
|
|
|
46
46
|
fireAnalyticsEvent: (name: string, data?: AnalyticsData) => void;
|
|
47
47
|
privateAnalyticsEvent: (name: string, data?: AnalyticsData) => void;
|
|
48
48
|
getParentAnalyticsData: (name: string) => AnalyticsData;
|
|
49
|
-
render(): JSX.Element;
|
|
49
|
+
render(): React.JSX.Element;
|
|
50
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/analytics-next",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
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,14 +51,14 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
54
|
-
"@atlaskit/platform-feature-flags": "^1.
|
|
54
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"prop-types": "^15.5.10",
|
|
57
57
|
"use-memo-one": "^1.1.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"react": "^
|
|
61
|
-
"react-dom": "^
|
|
60
|
+
"react": "^18.2.0",
|
|
61
|
+
"react-dom": "^18.2.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@atlaskit/ssr": "*",
|