@skippr/live-agent-sdk 0.101.0 → 0.102.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 +80 -61
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +92 -92
- package/dist/types/components/ConsentBubble.d.ts +2 -1
- package/dist/types/components/ConsentNotice.d.ts +3 -2
- package/dist/types/context/LiveAgentContext.d.ts +12 -1
- package/dist/types/lib/constants.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
interface ConsentBubbleProps {
|
|
2
2
|
className?: string;
|
|
3
3
|
style?: React.CSSProperties;
|
|
4
|
+
leadIn: string;
|
|
4
5
|
onPointerEnter?: React.PointerEventHandler<HTMLDivElement>;
|
|
5
6
|
onPointerLeave?: React.PointerEventHandler<HTMLDivElement>;
|
|
6
7
|
}
|
|
7
|
-
export declare function ConsentBubble({ className, style, onPointerEnter, onPointerLeave, }: ConsentBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function ConsentBubble({ className, style, leadIn, onPointerEnter, onPointerLeave, }: ConsentBubbleProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
interface ConsentNoticeProps {
|
|
2
2
|
className?: string;
|
|
3
|
-
|
|
3
|
+
leadIn: string;
|
|
4
|
+
determiner?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare function ConsentNotice({ className,
|
|
6
|
+
export declare function ConsentNotice({ className, leadIn, determiner }: ConsentNoticeProps): import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { LauncherDropTarget } from '../hooks/useLauncherDrag';
|
|
2
2
|
import type { PhaseStatus } from '../hooks/usePhaseUpdates';
|
|
3
3
|
import type { AgentMode } from '../lib/agentMode';
|
|
4
|
-
import { type ActionPlanMode, type BuddyShape, CAPTURE_MODE, type CaptureMode, type ChatSurface, DEFAULT_CAPTURE_MODE, type LauncherMode, MIC_MODE, type MicMode } from '../lib/constants';
|
|
4
|
+
import { type ActionPlanMode, type BuddyShape, CAPTURE_MODE, type CaptureMode, type ChatSurface, DEFAULT_CAPTURE_MODE, type LauncherMode, MIC_MODE, type MicMode, type PENDING_START_KIND } from '../lib/constants';
|
|
5
5
|
import type { SessionStatus } from '../lib/sessionStatus';
|
|
6
6
|
import type { BarPos } from '../lib/voiceBar';
|
|
7
7
|
import type { Message } from '../types';
|
|
@@ -80,6 +80,13 @@ export interface AdoptionGoalMatch {
|
|
|
80
80
|
hashPattern: string | null;
|
|
81
81
|
priority: number;
|
|
82
82
|
}
|
|
83
|
+
export type PendingStart = {
|
|
84
|
+
kind: typeof PENDING_START_KIND.Goal;
|
|
85
|
+
goal: AdoptionGoalMatch;
|
|
86
|
+
} | {
|
|
87
|
+
kind: typeof PENDING_START_KIND.Module;
|
|
88
|
+
moduleId: string;
|
|
89
|
+
};
|
|
83
90
|
export interface LiveAgentPublicValue {
|
|
84
91
|
isConnected: boolean;
|
|
85
92
|
isStarting: boolean;
|
|
@@ -110,6 +117,7 @@ export interface LiveAgentPublicValue {
|
|
|
110
117
|
isMinimized: boolean;
|
|
111
118
|
expandPanel: () => void;
|
|
112
119
|
minimizePanel: () => void;
|
|
120
|
+
revealBar: () => void;
|
|
113
121
|
isAuthenticated: boolean;
|
|
114
122
|
isValidating: boolean;
|
|
115
123
|
authError: string;
|
|
@@ -135,6 +143,9 @@ export interface LiveAgentPublicValue {
|
|
|
135
143
|
export interface LiveAgentContextValue extends LiveAgentPublicValue {
|
|
136
144
|
defaultAgentId: string | null;
|
|
137
145
|
startDefaultSession: () => void;
|
|
146
|
+
startPrimarySession: () => void;
|
|
147
|
+
pendingStart: PendingStart | null;
|
|
148
|
+
previewStart: (pending: PendingStart) => void;
|
|
138
149
|
buddyActive: boolean;
|
|
139
150
|
buddyShape: BuddyShape;
|
|
140
151
|
pauseTimeoutSeconds: number | null;
|
|
@@ -98,6 +98,11 @@ export declare const NOTIFICATION_KIND: {
|
|
|
98
98
|
readonly Module: "module";
|
|
99
99
|
};
|
|
100
100
|
export type NotificationKind = (typeof NOTIFICATION_KIND)[keyof typeof NOTIFICATION_KIND];
|
|
101
|
+
export declare const PENDING_START_KIND: {
|
|
102
|
+
readonly Goal: "goal";
|
|
103
|
+
readonly Module: "module";
|
|
104
|
+
};
|
|
105
|
+
export type PendingStartKind = (typeof PENDING_START_KIND)[keyof typeof PENDING_START_KIND];
|
|
101
106
|
export declare const PLAN_ATTR = "skippr.action-plan";
|
|
102
107
|
export declare const LINK_CARD_ATTR = "skippr.link-card";
|
|
103
108
|
export declare const NAME_MAX_CHARS = 80;
|