@argent/x-shared 1.32.9 → 1.33.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.
@@ -0,0 +1,8 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+
3
+ interface AmplitudeContextProviderProps extends PropsWithChildren {
4
+ enabled: boolean;
5
+ initialize: () => Promise<void>;
6
+ }
7
+ declare const WebAmplitudeProvider: FC<AmplitudeContextProviderProps>;
8
+ export { WebAmplitudeProvider };
@@ -0,0 +1,2 @@
1
+ export * from './service';
2
+ export * from './WebAmplitudeProvider';
@@ -0,0 +1,8 @@
1
+ import { AmplitudeInstance } from './types';
2
+
3
+ interface AnalyticsServiceProps {
4
+ enabled: boolean;
5
+ appVersion: string;
6
+ }
7
+ export declare function WebAnalyticsServiceFactory<T extends new (...args: never[]) => AmplitudeInstance>(Base: T): new (props: AnalyticsServiceProps) => InstanceType<T> & AnalyticsServiceProps;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { AmplitudeReturn as _AmplitudeReturn, Event, EventOptions, Result } from '@amplitude/analytics-types';
2
+
3
+ export type AmplitudeReturn = _AmplitudeReturn<void | Result>;
4
+ export interface AmplitudeInstance {
5
+ isLoaded: boolean;
6
+ track(event: Event, options?: EventOptions): AmplitudeReturn;
7
+ }
@@ -0,0 +1,3 @@
1
+ import { AmplitudeReturn } from './types';
2
+
3
+ export declare function getVoidPromiseResult(): AmplitudeReturn;
@@ -0,0 +1 @@
1
+ export * from './WebAmplitude';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.32.9",
3
+ "version": "1.33.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"
@@ -38,6 +38,7 @@
38
38
  "format:fix": "prettier . --ignore-unknown --write"
39
39
  },
40
40
  "devDependencies": {
41
+ "@amplitude/analytics-types": "^2.7.0",
41
42
  "@commitlint/cli": "^19.0.0",
42
43
  "@commitlint/config-conventional": "^19.0.0",
43
44
  "@rollup/plugin-typescript": "^11.1.6",