@atlaskit/analytics-next 9.2.3 → 9.3.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 +6 -0
- package/dist/cjs/hocs/withAnalyticsContext.js +1 -5
- package/dist/cjs/hocs/withAnalyticsEvents.js +1 -5
- package/dist/es2019/hocs/withAnalyticsContext.js +1 -5
- package/dist/es2019/hocs/withAnalyticsEvents.js +1 -5
- package/dist/esm/hocs/withAnalyticsContext.js +1 -5
- package/dist/esm/hocs/withAnalyticsEvents.js +1 -5
- package/dist/types/hocs/withAnalyticsContext.d.ts +1 -1
- package/dist/types/hocs/withAnalyticsEvents.d.ts +1 -1
- package/dist/types-ts4.5/hocs/withAnalyticsContext.d.ts +1 -1
- package/dist/types-ts4.5/hocs/withAnalyticsEvents.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/analytics-next
|
|
2
2
|
|
|
3
|
+
## 9.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#92779](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92779) [`3aa3cd8db606`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3aa3cd8db606) - Improve compatibility with React 18
|
|
8
|
+
|
|
3
9
|
## 9.2.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -30,11 +30,7 @@ var withAnalyticsContext = function withAnalyticsContext(defaultData) {
|
|
|
30
30
|
ref: ref
|
|
31
31
|
})));
|
|
32
32
|
});
|
|
33
|
-
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
WithAnalyticsContext.displayName = "WithAnalyticsContext(".concat(
|
|
36
|
-
// @ts-ignore disneyName doesn't exist on type
|
|
37
|
-
WrappedComponent.displayName || WrappedComponent.name, ")");
|
|
33
|
+
WithAnalyticsContext.displayName = "WithAnalyticsContext(".concat(WrappedComponent.displayName || WrappedComponent.name, ")");
|
|
38
34
|
return WithAnalyticsContext;
|
|
39
35
|
};
|
|
40
36
|
};
|
|
@@ -25,11 +25,7 @@ var withAnalyticsEvents = function withAnalyticsEvents() {
|
|
|
25
25
|
ref: ref
|
|
26
26
|
}));
|
|
27
27
|
});
|
|
28
|
-
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
WithAnalyticsEvents.displayName = "WithAnalyticsEvents(".concat(
|
|
31
|
-
// @ts-ignore disneyName doesn't exist on type
|
|
32
|
-
WrappedComponent.displayName || WrappedComponent.name, ")");
|
|
28
|
+
WithAnalyticsEvents.displayName = "WithAnalyticsEvents(".concat(WrappedComponent.displayName || WrappedComponent.name, ")");
|
|
33
29
|
return WithAnalyticsEvents;
|
|
34
30
|
};
|
|
35
31
|
};
|
|
@@ -16,11 +16,7 @@ const withAnalyticsContext = defaultData => WrappedComponent => {
|
|
|
16
16
|
ref: ref
|
|
17
17
|
})));
|
|
18
18
|
});
|
|
19
|
-
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
WithAnalyticsContext.displayName = `WithAnalyticsContext(${
|
|
22
|
-
// @ts-ignore disneyName doesn't exist on type
|
|
23
|
-
WrappedComponent.displayName || WrappedComponent.name})`;
|
|
19
|
+
WithAnalyticsContext.displayName = `WithAnalyticsContext(${WrappedComponent.displayName || WrappedComponent.name})`;
|
|
24
20
|
return WithAnalyticsContext;
|
|
25
21
|
};
|
|
26
22
|
export default withAnalyticsContext;
|
|
@@ -15,11 +15,7 @@ const withAnalyticsEvents = (createEventMap = {}) => WrappedComponent => {
|
|
|
15
15
|
ref: ref
|
|
16
16
|
}));
|
|
17
17
|
});
|
|
18
|
-
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
WithAnalyticsEvents.displayName = `WithAnalyticsEvents(${
|
|
21
|
-
// @ts-ignore disneyName doesn't exist on type
|
|
22
|
-
WrappedComponent.displayName || WrappedComponent.name})`;
|
|
18
|
+
WithAnalyticsEvents.displayName = `WithAnalyticsEvents(${WrappedComponent.displayName || WrappedComponent.name})`;
|
|
23
19
|
return WithAnalyticsEvents;
|
|
24
20
|
};
|
|
25
21
|
export default withAnalyticsEvents;
|
|
@@ -20,11 +20,7 @@ var withAnalyticsContext = function withAnalyticsContext(defaultData) {
|
|
|
20
20
|
ref: ref
|
|
21
21
|
})));
|
|
22
22
|
});
|
|
23
|
-
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
WithAnalyticsContext.displayName = "WithAnalyticsContext(".concat(
|
|
26
|
-
// @ts-ignore disneyName doesn't exist on type
|
|
27
|
-
WrappedComponent.displayName || WrappedComponent.name, ")");
|
|
23
|
+
WithAnalyticsContext.displayName = "WithAnalyticsContext(".concat(WrappedComponent.displayName || WrappedComponent.name, ")");
|
|
28
24
|
return WithAnalyticsContext;
|
|
29
25
|
};
|
|
30
26
|
};
|
|
@@ -15,11 +15,7 @@ var withAnalyticsEvents = function withAnalyticsEvents() {
|
|
|
15
15
|
ref: ref
|
|
16
16
|
}));
|
|
17
17
|
});
|
|
18
|
-
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
WithAnalyticsEvents.displayName = "WithAnalyticsEvents(".concat(
|
|
21
|
-
// @ts-ignore disneyName doesn't exist on type
|
|
22
|
-
WrappedComponent.displayName || WrappedComponent.name, ")");
|
|
18
|
+
WithAnalyticsEvents.displayName = "WithAnalyticsEvents(".concat(WrappedComponent.displayName || WrappedComponent.name, ")");
|
|
23
19
|
return WithAnalyticsEvents;
|
|
24
20
|
};
|
|
25
21
|
};
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
export interface WithContextProps {
|
|
3
3
|
analyticsContext?: Record<string, any>;
|
|
4
4
|
}
|
|
5
|
-
declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: React.
|
|
5
|
+
declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: React.ComponentType<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & WithContextProps>> & React.RefAttributes<any>>;
|
|
6
6
|
export default withAnalyticsContext;
|
|
@@ -8,5 +8,5 @@ export interface WithAnalyticsEventsProps {
|
|
|
8
8
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
9
9
|
ref?: React.Ref<any>;
|
|
10
10
|
}
|
|
11
|
-
declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: React.
|
|
11
|
+
declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: React.ComponentType<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof WithAnalyticsEventsProps>>> & React.RefAttributes<any>>;
|
|
12
12
|
export default withAnalyticsEvents;
|
|
@@ -2,5 +2,5 @@ import React from 'react';
|
|
|
2
2
|
export interface WithContextProps {
|
|
3
3
|
analyticsContext?: Record<string, any>;
|
|
4
4
|
}
|
|
5
|
-
declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: React.
|
|
5
|
+
declare const withAnalyticsContext: (defaultData?: any) => <Props, Component>(WrappedComponent: React.ComponentType<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Props & WithContextProps>> & React.RefAttributes<any>>;
|
|
6
6
|
export default withAnalyticsContext;
|
|
@@ -8,5 +8,5 @@ export interface WithAnalyticsEventsProps {
|
|
|
8
8
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
9
9
|
ref?: React.Ref<any>;
|
|
10
10
|
}
|
|
11
|
-
declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: React.
|
|
11
|
+
declare const withAnalyticsEvents: (createEventMap?: CreateEventMap) => <Props extends WithAnalyticsEventsProps, Component>(WrappedComponent: React.ComponentType<Props> & Component) => React.ForwardRefExoticComponent<React.PropsWithoutRef<JSX.LibraryManagedAttributes<Component, Omit<Props, keyof WithAnalyticsEventsProps>>> & React.RefAttributes<any>>;
|
|
12
12
|
export default withAnalyticsEvents;
|
package/package.json
CHANGED