@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.
@@ -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 {};
@@ -0,0 +1,6 @@
1
+ interface ConsentNoticeProps {
2
+ className?: string;
3
+ sessionStart?: boolean;
4
+ }
5
+ export declare function ConsentNotice({ className, sessionStart }: ConsentNoticeProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -1,6 +1,8 @@
1
1
  interface LoginFlowProps {
2
2
  requestOtp: (email: string) => Promise<boolean>;
3
- verifyOtp: (email: string, code: string) => Promise<void>;
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) => Promise<void>;
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) => Promise<void>;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skippr/live-agent-sdk",
3
- "version": "0.99.0",
3
+ "version": "0.100.0",
4
4
  "type": "module",
5
5
  "main": "dist/esm/lib-exports.js",
6
6
  "module": "dist/esm/lib-exports.js",