@magemetrics/ai 0.4.3 → 0.5.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/react/ai.js +8619 -8288
- package/dist/react/index.d.ts +9 -2
- package/dist/styles.css +1 -1
- package/dist/web-component/index.d.ts +9 -2
- package/dist/web-component/web-component.es.js +23191 -21973
- package/package.json +9 -7
|
@@ -77,6 +77,7 @@ declare interface ConversationContentProps {
|
|
|
77
77
|
style?: React.CSSProperties;
|
|
78
78
|
topBar?: React.ReactNode;
|
|
79
79
|
disableCanvas?: boolean;
|
|
80
|
+
enableSpeechToText?: boolean;
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
export { CreateFlowParam }
|
|
@@ -389,8 +390,6 @@ declare interface ManagedModalProps extends ModalProps {
|
|
|
389
390
|
}
|
|
390
391
|
|
|
391
392
|
declare interface ModalProps {
|
|
392
|
-
/** CSS display property for the wrapper element */
|
|
393
|
-
display?: string;
|
|
394
393
|
/** Control modal visibility and close behavior externally */
|
|
395
394
|
modal?: ControlledModalProps;
|
|
396
395
|
/** Configuration options for the start modal (chat launcher, recommendations, etc.) */
|
|
@@ -479,6 +478,8 @@ declare type StartOptions = DisplayControlProps & {
|
|
|
479
478
|
recommendationsLabel?: string;
|
|
480
479
|
/** Whether the chat launcher input should auto-focus on mount */
|
|
481
480
|
autoFocus?: boolean;
|
|
481
|
+
/** Whether speech-to-text controls should be shown */
|
|
482
|
+
enableSpeechToText?: boolean;
|
|
482
483
|
};
|
|
483
484
|
|
|
484
485
|
declare type TableFilters = Record<string, string | number>;
|
|
@@ -994,6 +995,12 @@ export declare const useRecentFlows: (limit?: number) => UseQueryResult< {
|
|
|
994
995
|
application_id?: number | null | undefined;
|
|
995
996
|
}[], Error>;
|
|
996
997
|
|
|
998
|
+
export declare const useSpeechToText: () => {
|
|
999
|
+
status: "idle" | "starting" | "recording";
|
|
1000
|
+
startRecording: (onTranscript: (text: string) => void) => Promise<void>;
|
|
1001
|
+
stopRecording: () => Promise<void>;
|
|
1002
|
+
};
|
|
1003
|
+
|
|
997
1004
|
declare type V1FrontendVisualization = z.output<typeof V1FrontendVisualizationSchema>;
|
|
998
1005
|
|
|
999
1006
|
declare const V1FrontendVisualizationSchema: z.ZodObject<{
|