@deepseek-ai/dsh-experimental-client-ui-voice-input 0.2.1-rc.4 → 0.2.2-alpha.2
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/README.i18n.yaml +2 -2
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/lib/client.js +749 -17
- package/lib/types/client/VoiceInput.d.ts +3 -1
- package/lib/types/client/VoiceSetupDialog.d.ts +3 -1
- package/lib/types/client/locales.d.ts +707 -0
- package/locale/de.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +19 -19
|
@@ -24,10 +24,12 @@ export interface VoiceInputInjected extends VoiceInputActions {
|
|
|
24
24
|
hooks: {
|
|
25
25
|
speechReadiness: HostObservable<SpeechReadiness>;
|
|
26
26
|
microphoneDevice: HostObservable<MicrophoneDevice>;
|
|
27
|
+
/** Whether the Plugins page navigation service is present; the setup dialog offers the details only while it is. */
|
|
28
|
+
pluginNavigation: HostObservable<boolean>;
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
31
|
/** Composer-owned expansion and draft actions; preferences stay in plugin settings. */
|
|
30
32
|
export type VoiceInputProps = Pick<PropsRuntime<'conversation.input.activity'>, 'sessionId' | 'inputActions' | 'locked' | 'onActiveChange'> & PropsLocale<typeof NS> & InjectFace<VoiceInputInjected>;
|
|
31
33
|
/** Render a compact microphone or an expanded capture, transcription, or retry row. */
|
|
32
|
-
export declare function VoiceInput({ sessionId, inputActions, locked, onActiveChange, createRecording, transcribe, openSettings, useSpeechReadiness, t }: VoiceInputProps): import("react").JSX.Element;
|
|
34
|
+
export declare function VoiceInput({ sessionId, inputActions, locked, onActiveChange, createRecording, transcribe, openSettings, useSpeechReadiness, usePluginNavigation, t }: VoiceInputProps): import("react").JSX.Element;
|
|
33
35
|
//# sourceMappingURL=VoiceInput.d.ts.map
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
2
2
|
import type { NS } from './locales.ts';
|
|
3
|
-
type VoiceSetupDialogProps = PropsLocale<typeof NS> & Pick<PropsRuntime<'plugins.bundle.activation'>, 'onDismiss'
|
|
3
|
+
type VoiceSetupDialogProps = PropsLocale<typeof NS> & Pick<PropsRuntime<'plugins.bundle.activation'>, 'onDismiss'> & {
|
|
4
4
|
open: boolean;
|
|
5
5
|
needsInstallation: boolean;
|
|
6
|
+
/** Open the plugin details; the details button is absent while it is undefined. */
|
|
7
|
+
onOpenDetails: PropsRuntime<'plugins.bundle.activation'>['onOpenDetails'] | undefined;
|
|
6
8
|
};
|
|
7
9
|
/**
|
|
8
10
|
* Guide activation or microphone clicks to the existing plugin details.
|