@skippr/live-agent-sdk 0.79.0 → 0.80.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 +683 -475
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +132 -132
- package/dist/types/components/AutoStartMedia.d.ts +2 -2
- package/dist/types/components/DomCapture.d.ts +2 -2
- package/dist/types/components/PushToTalkHint.d.ts +1 -0
- package/dist/types/components/PushToTalkMic.d.ts +8 -0
- package/dist/types/context/LiveAgentContext.d.ts +3 -3
- package/dist/types/context/VoiceTurnContext.d.ts +6 -0
- package/dist/types/hooks/useKeyboardPushToTalk.d.ts +8 -0
- package/dist/types/hooks/useVoiceTurn.d.ts +7 -0
- package/dist/types/lib/constants.d.ts +11 -1
- package/package.json +1 -1
- package/dist/types/context/TapToTalkContext.d.ts +0 -6
- package/dist/types/hooks/useTapToTalk.d.ts +0 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface AutoStartMediaProps {
|
|
2
2
|
pendingScreenStream: MediaStream | null;
|
|
3
|
-
|
|
3
|
+
pushOrTapMicMode?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare function AutoStartMedia({ pendingScreenStream,
|
|
5
|
+
export declare function AutoStartMedia({ pendingScreenStream, pushOrTapMicMode, }: AutoStartMediaProps): null;
|
|
6
6
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function PushToTalkHint(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface PushToTalkMicProps {
|
|
2
|
+
isCapturingSpeech: boolean;
|
|
3
|
+
showLabel: boolean;
|
|
4
|
+
onStart: () => void;
|
|
5
|
+
onCommit: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function PushToTalkMic({ isCapturingSpeech, showLabel, onStart, onCommit, }: PushToTalkMicProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
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 { CAPTURE_MODE, type CaptureMode, DEFAULT_CAPTURE_MODE } from '../lib/constants';
|
|
4
|
+
import { CAPTURE_MODE, type CaptureMode, DEFAULT_CAPTURE_MODE, MIC_MODE, type MicMode } from '../lib/constants';
|
|
5
5
|
import type { SessionStatus } from '../lib/sessionStatus';
|
|
6
6
|
import type { Message } from '../types';
|
|
7
7
|
export type SidebarTab = 'chat' | 'agenda';
|
|
8
|
-
export { CAPTURE_MODE, type CaptureMode, DEFAULT_CAPTURE_MODE };
|
|
8
|
+
export { CAPTURE_MODE, type CaptureMode, DEFAULT_CAPTURE_MODE, MIC_MODE, type MicMode };
|
|
9
9
|
export interface AgentControls {
|
|
10
10
|
highlight?: boolean;
|
|
11
11
|
actions?: boolean;
|
|
12
|
-
|
|
12
|
+
micMode?: MicMode;
|
|
13
13
|
}
|
|
14
14
|
export interface UiPreferences {
|
|
15
15
|
animateCursor?: boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type UseVoiceTurnValue } from '../hooks/useVoiceTurn';
|
|
3
|
+
export declare function VoiceTurnProvider({ children }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function useVoiceTurnContext(): UseVoiceTurnValue;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface UseKeyboardPushToTalkOptions {
|
|
2
|
+
enabled: boolean;
|
|
3
|
+
onStart: () => void;
|
|
4
|
+
onCommit: () => void;
|
|
5
|
+
onKeyUsed?: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function useKeyboardPushToTalk({ enabled, onStart, onCommit, onKeyUsed, }: UseKeyboardPushToTalkOptions): void;
|
|
8
|
+
export {};
|
|
@@ -15,7 +15,17 @@ export declare const PAGE_ACTIONS_TOPIC = "skippr.page-actions";
|
|
|
15
15
|
export declare const TEXT_MODE_TOPIC = "skippr.text-mode";
|
|
16
16
|
export declare const ACTION_CONTROL_TOPIC = "skippr.action-control";
|
|
17
17
|
export declare const SESSION_HOLD_TOPIC = "skippr.session-hold";
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const MIC_MODE_TURN_TOPIC = "skippr.mic-mode-turn";
|
|
19
|
+
export declare const MIC_MODE: {
|
|
20
|
+
readonly Live: "live";
|
|
21
|
+
readonly PushToTalk: "pushToTalk";
|
|
22
|
+
readonly TapToTalk: "tapToTalk";
|
|
23
|
+
};
|
|
24
|
+
export type MicMode = (typeof MIC_MODE)[keyof typeof MIC_MODE];
|
|
25
|
+
export declare const DEFAULT_MIC_MODE: MicMode;
|
|
26
|
+
export declare function isRequestResponseMicMode(micMode: MicMode | undefined): micMode is typeof MIC_MODE.PushToTalk | typeof MIC_MODE.TapToTalk;
|
|
27
|
+
export declare const PUSH_TO_TALK_KEY = "Backquote";
|
|
28
|
+
export declare const PUSH_TO_TALK_KEY_LABEL = "`";
|
|
19
29
|
export declare const IDLE_AUTO_PAUSE_MS: number;
|
|
20
30
|
export declare const PLAN_ATTR = "skippr.action-plan";
|
|
21
31
|
export declare const NAME_MAX_CHARS = 80;
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
import { type UseTapToTalkValue } from '../hooks/useTapToTalk';
|
|
3
|
-
export declare function TapToTalkProvider({ children }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare function useTapToTalkContext(): UseTapToTalkValue;
|