@skippr/live-agent-sdk 0.128.0 → 0.130.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 +322 -164
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +115 -115
- package/dist/types/capture/cursorController.d.ts +4 -0
- package/dist/types/components/DomCapture.d.ts +2 -0
- package/dist/types/context/LiveAgentContext.d.ts +0 -2
- package/dist/types/hooks/useAdoptionGoals.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { CursorTarget } from '../components/AgentCursor';
|
|
2
2
|
export type CursorOwner = 'guide' | 'act';
|
|
3
3
|
type CursorTargetListener = (target: CursorTarget | null) => void;
|
|
4
|
+
type CursorWaitingListener = (waiting: boolean) => void;
|
|
4
5
|
export declare function setCursorTarget(owner: CursorOwner, target: CursorTarget): void;
|
|
5
6
|
export declare function clearCursorTarget(owner: CursorOwner): void;
|
|
7
|
+
export declare function setCursorWaiting(waiting: boolean): void;
|
|
8
|
+
export declare function isCursorWaiting(): boolean;
|
|
9
|
+
export declare function subscribeCursorWaiting(listener: CursorWaitingListener): () => void;
|
|
6
10
|
export declare function getCursorTarget(): CursorTarget | null;
|
|
7
11
|
export declare function cursorTargetElapsedMs(): number;
|
|
8
12
|
export declare function subscribeCursorTarget(listener: CursorTargetListener): () => void;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { buildAccessibilityTree } from '../capture/a11yTree';
|
|
1
2
|
export declare const SNAPSHOT_EXCLUDE_SELECTORS: string[];
|
|
2
3
|
export declare function shouldIncludeInSnapshot(element: Element): boolean;
|
|
3
4
|
export declare function shouldIncludeInFirstFrame(element: Element): boolean;
|
|
5
|
+
export declare function buildDomSnapshotPayload(a11yTree: ReturnType<typeof buildAccessibilityTree>, actionRepaintCount: number | undefined): string;
|
|
4
6
|
interface DomCaptureProps {
|
|
5
7
|
pushOrTapMicMode?: boolean;
|
|
6
8
|
startMuted?: boolean;
|
|
@@ -97,7 +97,6 @@ export declare enum AdoptionMatchType {
|
|
|
97
97
|
}
|
|
98
98
|
export interface AdoptionGoalMatch {
|
|
99
99
|
goalId: string;
|
|
100
|
-
agentId: string;
|
|
101
100
|
displayMessage: string;
|
|
102
101
|
objective: string;
|
|
103
102
|
matchType: AdoptionMatchType;
|
|
@@ -206,7 +205,6 @@ export interface LiveAgentContextValue extends LiveAgentPublicValue {
|
|
|
206
205
|
adoptionGoals: AdoptionGoalMatch[];
|
|
207
206
|
hasResolvedAdoptionGoals: boolean;
|
|
208
207
|
startAdoptionSession: (goal: AdoptionGoalMatch) => void;
|
|
209
|
-
attendGoal: (goalId: string) => void;
|
|
210
208
|
setTextModeState: (enabled: boolean) => void;
|
|
211
209
|
launcherBottomPx: number;
|
|
212
210
|
setLauncherBottomPx: (px: number) => void;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AdoptionGoalMatch } from '../context/LiveAgentContext';
|
|
2
2
|
import type { AuthedFetch } from './useSession';
|
|
3
3
|
interface UseAdoptionGoalsParams {
|
|
4
4
|
enabled: boolean;
|
|
5
5
|
bearerToken: string | null;
|
|
6
6
|
authedFetch: AuthedFetch;
|
|
7
|
+
agentId?: string | undefined;
|
|
7
8
|
}
|
|
8
9
|
interface UseAdoptionGoalsResult {
|
|
9
10
|
goals: AdoptionGoalMatch[];
|
|
10
11
|
deepLinkedGoal: AdoptionGoalMatch | null;
|
|
11
12
|
hasTipSlug: boolean;
|
|
12
13
|
hasResolved: boolean;
|
|
13
|
-
attendGoal: (goalId: string) => void;
|
|
14
14
|
}
|
|
15
|
-
export declare function useAdoptionGoals({ enabled, bearerToken, authedFetch, }: UseAdoptionGoalsParams): UseAdoptionGoalsResult;
|
|
15
|
+
export declare function useAdoptionGoals({ enabled, bearerToken, authedFetch, agentId, }: UseAdoptionGoalsParams): UseAdoptionGoalsResult;
|
|
16
16
|
export {};
|