@skippr/live-agent-sdk 0.99.0 → 0.100.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/dist/esm/lib-exports.js +998 -801
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +122 -122
- package/dist/types/components/ConsentBubble.d.ts +8 -0
- package/dist/types/components/ConsentNotice.d.ts +6 -0
- package/dist/types/components/LoginFlow.d.ts +3 -1
- package/dist/types/context/LiveAgentContext.d.ts +3 -1
- package/dist/types/hooks/useAuth.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ConsentBubbleProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
style?: React.CSSProperties;
|
|
4
|
+
onPointerEnter?: React.PointerEventHandler<HTMLDivElement>;
|
|
5
|
+
onPointerLeave?: React.PointerEventHandler<HTMLDivElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare function ConsentBubble({ className, style, onPointerEnter, onPointerLeave, }: ConsentBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
interface LoginFlowProps {
|
|
2
2
|
requestOtp: (email: string) => Promise<boolean>;
|
|
3
|
-
verifyOtp: (email: string, code: string
|
|
3
|
+
verifyOtp: (email: string, code: string, options?: {
|
|
4
|
+
tcAccepted?: boolean;
|
|
5
|
+
}) => Promise<void>;
|
|
4
6
|
error: string;
|
|
5
7
|
isSubmitting: boolean;
|
|
6
8
|
}
|
|
@@ -114,7 +114,9 @@ export interface LiveAgentPublicValue {
|
|
|
114
114
|
isValidating: boolean;
|
|
115
115
|
authError: string;
|
|
116
116
|
requestOtp: (email: string) => Promise<boolean>;
|
|
117
|
-
verifyOtp: (email: string, code: string
|
|
117
|
+
verifyOtp: (email: string, code: string, options?: {
|
|
118
|
+
tcAccepted?: boolean;
|
|
119
|
+
}) => Promise<void>;
|
|
118
120
|
logoutAuth: () => Promise<void>;
|
|
119
121
|
isAuthSubmitting: boolean;
|
|
120
122
|
sidebarTab: SidebarTab;
|
|
@@ -7,7 +7,9 @@ export declare function useAuth({ appKey }: UseAuthParams): {
|
|
|
7
7
|
hasResolvedStoredToken: boolean;
|
|
8
8
|
authToken: string | null;
|
|
9
9
|
requestOtp: (email: string) => Promise<boolean>;
|
|
10
|
-
verifyOtp: (email: string, code: string
|
|
10
|
+
verifyOtp: (email: string, code: string, options?: {
|
|
11
|
+
tcAccepted?: boolean;
|
|
12
|
+
}) => Promise<void>;
|
|
11
13
|
logout: () => Promise<void>;
|
|
12
14
|
error: string;
|
|
13
15
|
isSubmitting: boolean;
|