@moser-inc/moser-labs-react 6.6.0 → 6.6.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/dist/moser-labs-react.js
CHANGED
|
@@ -14,7 +14,7 @@ import { InputTextarea as Cg } from "primereact/inputtextarea";
|
|
|
14
14
|
import { Panel as wg } from "primereact/panel";
|
|
15
15
|
import { createHead as Eg, UnheadProvider as _g } from "@unhead/react/client";
|
|
16
16
|
import { PrimeReactProvider as Sg } from "primereact/api";
|
|
17
|
-
const kg = "6.6.
|
|
17
|
+
const kg = "6.6.1", Og = {
|
|
18
18
|
version: kg
|
|
19
19
|
}, sE = Og.version;
|
|
20
20
|
var Tg = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -8557,7 +8557,12 @@ const u4 = {
|
|
|
8557
8557
|
), r = De(() => {
|
|
8558
8558
|
e.page();
|
|
8559
8559
|
}, [e]);
|
|
8560
|
-
return {
|
|
8560
|
+
return {
|
|
8561
|
+
analytics: e,
|
|
8562
|
+
identifyUser: t,
|
|
8563
|
+
trackEntity: n,
|
|
8564
|
+
trackPageView: r
|
|
8565
|
+
};
|
|
8561
8566
|
};
|
|
8562
8567
|
var Ni = {}, Ef;
|
|
8563
8568
|
function f4() {
|
package/dist/package.json.d.ts
CHANGED
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
import { KeycloakUser } from '../lib/auth';
|
|
2
2
|
export declare const useAnalytics: () => {
|
|
3
|
+
readonly analytics: import('analytics').AnalyticsInstance;
|
|
3
4
|
readonly identifyUser: (user: KeycloakUser) => void;
|
|
4
5
|
readonly trackEntity: (eventName: string, entityName?: string, entityId?: string, payload?: Record<string, unknown>) => void;
|
|
5
6
|
readonly trackPageView: () => void;
|
|
6
|
-
readonly identify: (userId: string, traits?: any, options?: any, callback?: (...params: any[]) => any) => Promise<any>;
|
|
7
|
-
readonly track: (eventName: string, payload?: any, options?: any, callback?: (...params: any[]) => any) => Promise<any>;
|
|
8
|
-
readonly page: (data?: import('analytics').PageData, options?: any, callback?: (...params: any[]) => any) => Promise<any>;
|
|
9
|
-
readonly user: (key?: string) => string & any;
|
|
10
|
-
readonly reset: (callback?: (...params: any[]) => any) => Promise<any>;
|
|
11
|
-
readonly ready: (callback: (...params: any[]) => any) => import('analytics').DetachListeners;
|
|
12
|
-
readonly on: (name: string, callback: (...params: any[]) => any) => import('analytics').DetachListeners;
|
|
13
|
-
readonly once: (name: string, callback: (...params: any[]) => any) => import('analytics').DetachListeners;
|
|
14
|
-
readonly getState: (key?: string) => any;
|
|
15
|
-
readonly storage: {
|
|
16
|
-
getItem: (key: string, options?: any) => any;
|
|
17
|
-
setItem: (key: string, value: any, options?: any) => void;
|
|
18
|
-
removeItem: (key: string, options?: any) => void;
|
|
19
|
-
};
|
|
20
|
-
readonly plugins: {
|
|
21
|
-
enable: (plugins: string | string[], callback?: (...params: any[]) => any) => Promise<any>;
|
|
22
|
-
disable: (plugins: string | string[], callback?: (...params: any[]) => any) => Promise<any>;
|
|
23
|
-
};
|
|
24
7
|
};
|