@visitorquery/react 0.0.6 → 0.0.7

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,7 @@
1
+ interface UseScriptOptions {
2
+ removeOnUnmount?: boolean;
3
+ [key: string]: any;
4
+ }
5
+ type ScriptStatus = "loading" | "ready" | "error" | "unknown";
6
+ export declare function useScript(src: string, options?: UseScriptOptions): ScriptStatus;
7
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,5 +1,12 @@
1
- export type TResponse = {
2
- is: boolean;
3
- confidence: number;
1
+ declare global {
2
+ interface Window {
3
+ VisitorQuery: any;
4
+ }
5
+ }
6
+ type Params = {
7
+ ApiKey: string;
8
+ SessionId: string;
9
+ Endpoint?: string;
4
10
  };
5
- export declare function useVisitorQuery(publicApiKey: string, endpoint?: string): TResponse;
11
+ export declare function useVisitorQuery(p: Params): void;
12
+ export {};
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.6",
2
+ "version": "0.0.7",
3
3
  "name": "@visitorquery/react",
4
4
  "module": "src/index.ts",
5
5
  "type": "module",