reneco-advanced-input-module 0.0.4 → 0.0.6
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/types/components/voice-input-module/voice-input-module.d.ts +6 -0
- package/dist/types/components.d.ts +16 -0
- package/dist/types/services/llm.service.d.ts +2 -0
- package/dist/types/services/speech-to-text.service.d.ts +2 -0
- package/dist/types/types/service-providers.types.d.ts +4 -0
- package/dist/voice-input-module/index-Lt4F-TYq.js +4334 -0
- package/dist/voice-input-module/index-Lt4F-TYq.js.map +1 -0
- package/dist/voice-input-module/index.esm.js +12 -0
- package/dist/voice-input-module/index.esm.js.map +1 -1
- package/dist/voice-input-module/loader.esm.js.map +1 -1
- package/dist/voice-input-module/ocr-file-uploader.entry.esm.js.map +1 -0
- package/dist/voice-input-module/ocr-file-uploader.entry.js +121 -0
- package/dist/voice-input-module/ocr-file-uploader.entry.js.map +1 -0
- package/dist/voice-input-module/voice-input-module.entry.esm.js.map +1 -0
- package/dist/{esm/ocr-file-uploader_2.entry.js → voice-input-module/voice-input-module.entry.js} +317 -156
- package/dist/voice-input-module/voice-input-module.entry.js.map +1 -0
- package/dist/voice-input-module/voice-input-module.esm.js +49 -1
- package/dist/voice-input-module/voice-input-module.esm.js.map +1 -1
- package/package.json +3 -4
- package/readme.md +445 -1
- package/www/build/index-Lt4F-TYq.js +4334 -0
- package/www/build/index-Lt4F-TYq.js.map +1 -0
- package/www/build/index.esm.js +12 -0
- package/www/build/index.esm.js.map +1 -1
- package/www/build/loader.esm.js.map +1 -1
- package/www/build/ocr-file-uploader.entry.esm.js.map +1 -0
- package/www/build/ocr-file-uploader.entry.js +121 -0
- package/www/build/ocr-file-uploader.entry.js.map +1 -0
- package/www/build/voice-input-module.entry.esm.js.map +1 -0
- package/{dist/components/voice-input-module.js → www/build/voice-input-module.entry.js} +319 -131
- package/www/build/voice-input-module.entry.js.map +1 -0
- package/www/build/voice-input-module.esm.js +49 -1
- package/www/build/voice-input-module.esm.js.map +1 -1
- package/www/config.js +6 -0
- package/www/index.html +154 -11
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/index-BTSzTkSZ.js +0 -1494
- package/dist/cjs/index-BTSzTkSZ.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -5
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -16
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/ocr-file-uploader.voice-input-module.entry.cjs.js.map +0 -1
- package/dist/cjs/ocr-file-uploader_2.cjs.entry.js +0 -4486
- package/dist/cjs/ocr-file-uploader_2.cjs.entry.js.map +0 -1
- package/dist/cjs/voice-input-module.cjs.js +0 -28
- package/dist/cjs/voice-input-module.cjs.js.map +0 -1
- package/dist/collection/collection-manifest.json +0 -19
- package/dist/collection/components/voice-input-module/voice-input-module.css +0 -327
- package/dist/collection/components/voice-input-module/voice-input-module.js +0 -1021
- package/dist/collection/components/voice-input-module/voice-input-module.js.map +0 -1
- package/dist/collection/index.js +0 -12
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/services/audio-recorder.service.js +0 -66
- package/dist/collection/services/audio-recorder.service.js.map +0 -1
- package/dist/collection/services/llm.service.js +0 -193
- package/dist/collection/services/llm.service.js.map +0 -1
- package/dist/collection/services/speech-to-text.service.js +0 -60
- package/dist/collection/services/speech-to-text.service.js.map +0 -1
- package/dist/collection/types/form-schema.types.js +0 -2
- package/dist/collection/types/form-schema.types.js.map +0 -1
- package/dist/collection/types/service-providers.types.js +0 -2
- package/dist/collection/types/service-providers.types.js.map +0 -1
- package/dist/collection/utils/schema-converter.js +0 -422
- package/dist/collection/utils/schema-converter.js.map +0 -1
- package/dist/components/index.js +0 -4
- package/dist/components/index.js.map +0 -1
- package/dist/components/ocr-file-uploader.js +0 -9
- package/dist/components/ocr-file-uploader.js.map +0 -1
- package/dist/components/ocr-file-uploader2.js +0 -102
- package/dist/components/ocr-file-uploader2.js.map +0 -1
- package/dist/components/voice-input-module.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/index-jmc2yzBp.js +0 -1487
- package/dist/esm/index-jmc2yzBp.js.map +0 -1
- package/dist/esm/index.js +0 -4
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -14
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/ocr-file-uploader.voice-input-module.entry.js.map +0 -1
- package/dist/esm/ocr-file-uploader_2.entry.js.map +0 -1
- package/dist/esm/voice-input-module.js +0 -24
- package/dist/esm/voice-input-module.js.map +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/voice-input-module/ocr-file-uploader.voice-input-module.entry.esm.js.map +0 -1
- package/dist/voice-input-module/p-21d2e52b.entry.js +0 -3
- package/dist/voice-input-module/p-21d2e52b.entry.js.map +0 -1
- package/dist/voice-input-module/p-DQuL1Twl.js +0 -2
- package/dist/voice-input-module/p-DQuL1Twl.js.map +0 -1
- package/dist/voice-input-module/p-jmc2yzBp.js +0 -3
- package/dist/voice-input-module/p-jmc2yzBp.js.map +0 -1
- package/www/build/ocr-file-uploader.voice-input-module.entry.esm.js.map +0 -1
- package/www/build/p-21d2e52b.entry.js +0 -3
- package/www/build/p-21d2e52b.entry.js.map +0 -1
- package/www/build/p-DQuL1Twl.js +0 -2
- package/www/build/p-DQuL1Twl.js.map +0 -1
- package/www/build/p-b680b1be.js +0 -2
- package/www/build/p-jmc2yzBp.js +0 -3
- package/www/build/p-jmc2yzBp.js.map +0 -1
|
@@ -4,10 +4,12 @@ export declare class VoiceFormRecorder {
|
|
|
4
4
|
formJson: string;
|
|
5
5
|
serviceConfig: string;
|
|
6
6
|
apiKey: string;
|
|
7
|
+
apiProxyUrl: string;
|
|
7
8
|
context: 'track' | 'ng' | 'ecoll-veto' | 'ecoteka';
|
|
8
9
|
classificationRootUrl: string;
|
|
9
10
|
language: 'fr' | 'en';
|
|
10
11
|
inputTypes: string;
|
|
12
|
+
theme: string;
|
|
11
13
|
private get parsedInputTypes();
|
|
12
14
|
debug: boolean;
|
|
13
15
|
renderForm: boolean;
|
|
@@ -30,6 +32,7 @@ export declare class VoiceFormRecorder {
|
|
|
30
32
|
private llmService;
|
|
31
33
|
private parsedSchema;
|
|
32
34
|
private parsedConfig;
|
|
35
|
+
private parsedTheme;
|
|
33
36
|
constructor();
|
|
34
37
|
componentWillLoad(): void;
|
|
35
38
|
initializeServices(): void;
|
|
@@ -59,5 +62,8 @@ export declare class VoiceFormRecorder {
|
|
|
59
62
|
private renderFormFields;
|
|
60
63
|
private renderFormField;
|
|
61
64
|
private renderDebugPanel;
|
|
65
|
+
private getDefaultTheme;
|
|
66
|
+
private getContainerStyle;
|
|
67
|
+
private getStatusStyle;
|
|
62
68
|
render(): any;
|
|
63
69
|
}
|
|
@@ -10,6 +10,10 @@ export { FormSchema, FormSchemaFieldsOnly, FormSchemaFieldsOnlyExtended, VoiceFo
|
|
|
10
10
|
export namespace Components {
|
|
11
11
|
interface VoiceInputModule {
|
|
12
12
|
"apiKey": string;
|
|
13
|
+
/**
|
|
14
|
+
* @default 'http://localhost:8492'
|
|
15
|
+
*/
|
|
16
|
+
"apiProxyUrl": string;
|
|
13
17
|
/**
|
|
14
18
|
* @default 'http://localhost'
|
|
15
19
|
*/
|
|
@@ -50,6 +54,10 @@ export namespace Components {
|
|
|
50
54
|
* @default '{}'
|
|
51
55
|
*/
|
|
52
56
|
"serviceConfig": string;
|
|
57
|
+
/**
|
|
58
|
+
* @default ''
|
|
59
|
+
*/
|
|
60
|
+
"theme": string;
|
|
53
61
|
}
|
|
54
62
|
}
|
|
55
63
|
export interface VoiceInputModuleCustomEvent<T> extends CustomEvent<T> {
|
|
@@ -82,6 +90,10 @@ declare global {
|
|
|
82
90
|
declare namespace LocalJSX {
|
|
83
91
|
interface VoiceInputModule {
|
|
84
92
|
"apiKey"?: string;
|
|
93
|
+
/**
|
|
94
|
+
* @default 'http://localhost:8492'
|
|
95
|
+
*/
|
|
96
|
+
"apiProxyUrl"?: string;
|
|
85
97
|
/**
|
|
86
98
|
* @default 'http://localhost'
|
|
87
99
|
*/
|
|
@@ -120,6 +132,10 @@ declare namespace LocalJSX {
|
|
|
120
132
|
* @default '{}'
|
|
121
133
|
*/
|
|
122
134
|
"serviceConfig"?: string;
|
|
135
|
+
/**
|
|
136
|
+
* @default ''
|
|
137
|
+
*/
|
|
138
|
+
"theme"?: string;
|
|
123
139
|
}
|
|
124
140
|
interface IntrinsicElements {
|
|
125
141
|
"voice-input-module": VoiceInputModule;
|
|
@@ -3,6 +3,8 @@ export declare class OpenAILLMService implements LLMProvider {
|
|
|
3
3
|
private apiKey;
|
|
4
4
|
private model;
|
|
5
5
|
private baseUrl;
|
|
6
|
+
private useProxy;
|
|
7
|
+
private proxyUrl;
|
|
6
8
|
constructor(config: ServiceProviderConfig['llm']);
|
|
7
9
|
private getEnvironmentVariable;
|
|
8
10
|
private getOptimizeFieldsDescription;
|
|
@@ -2,6 +2,8 @@ import { SpeechToTextProvider, ServiceProviderConfig } from '../types/service-pr
|
|
|
2
2
|
export declare class WhisperSpeechToTextService implements SpeechToTextProvider {
|
|
3
3
|
private apiKey;
|
|
4
4
|
private baseUrl;
|
|
5
|
+
private useProxy;
|
|
6
|
+
private proxyUrl;
|
|
5
7
|
constructor(config: ServiceProviderConfig['speechToText']);
|
|
6
8
|
private getEnvironmentVariable;
|
|
7
9
|
transcribe(audioContent: File, lang?: string): Promise<string>;
|
|
@@ -10,11 +10,15 @@ export interface ServiceProviderConfig {
|
|
|
10
10
|
provider: 'whisper' | 'custom';
|
|
11
11
|
apiKey?: string;
|
|
12
12
|
baseUrl?: string;
|
|
13
|
+
useProxy?: boolean;
|
|
14
|
+
proxyUrl?: string;
|
|
13
15
|
};
|
|
14
16
|
llm?: {
|
|
15
17
|
provider: 'openai' | 'custom';
|
|
16
18
|
apiKey?: string;
|
|
17
19
|
model?: string;
|
|
18
20
|
baseUrl?: string;
|
|
21
|
+
useProxy?: boolean;
|
|
22
|
+
proxyUrl?: string;
|
|
19
23
|
};
|
|
20
24
|
}
|