Repository navigation
Expand file tree
/
Copy pathreact.ts
More file actions
59 lines (52 loc) · 1.42 KB
/
Copy pathreact.ts
File metadata and controls
59 lines (52 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* @vowel.to/client/react - React-specific exports for Vowel voice agent
*
* React components and hooks for the Vowel voice agent library.
* This module provides React-specific functionality when React is available.
*/
// Import styles (will be auto-injected via JavaScript)
import './lib/vowel/styles/styles.css';
// React Components & Hooks
export {
VowelProvider,
useVowel,
useSyncContext,
VowelMicrophone,
VowelAgent,
FloatingMicButton,
Modal,
VowelSettingsModal,
} from "./lib/vowel/components/index.js";
export type {
VowelProviderProps,
VowelContextType,
VowelMicrophoneProps,
VowelAgentProps,
VowelPosition,
FloatingMicButtonProps,
FloatingMicButtonState,
ModalProps,
VowelSettingsModalProps,
} from "./lib/vowel/components/index.js";
// Floating Cursor (React Native Components)
export {
FloatingCursorProvider,
FloatingCursorRenderer,
useFloatingCursor,
useFloatingCursorOptional,
} from "./lib/vowel/components/index.js";
export type {
FloatingCursorContextType,
FloatingCursorProviderProps,
FloatingCursorRendererProps,
} from "./lib/vowel/components/index.js";
// Re-export core types that React components might need
export type {
VowelRoute,
VowelAction,
VowelVoiceConfig,
VowelActionParameter,
ActionHandler,
} from "./lib/vowel/types/index.js";
// Re-export version from version module for consistency
export { VOWEL_VERSION as VERSION } from "./lib/vowel/version.js";