reneco-advanced-input-module 0.0.1-beta.2 → 0.0.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/dist/types/components/voice-input-module/voice-input-module.d.ts +4 -1
- package/dist/types/components.d.ts +4 -27
- 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/{components/ocr-file-uploader2.js → voice-input-module/ocr-file-uploader.entry.js} +13 -28
- 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/voice-input-module/voice-input-module.entry.js +4467 -0
- 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 +2 -2
- 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/{dist/collection/components/ocr-file-uploader/ocr-file-uploader.js → www/build/ocr-file-uploader.entry.js} +18 -65
- package/www/build/ocr-file-uploader.entry.js.map +1 -0
- package/www/build/voice-input-module.entry.esm.js.map +1 -0
- package/www/build/voice-input-module.entry.js +4467 -0
- 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/index.html +976 -227
- 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 -1340
- 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 -13
- package/dist/collection/components/ocr-file-uploader/ocr-file-uploader.css +0 -26
- package/dist/collection/components/ocr-file-uploader/ocr-file-uploader.js.map +0 -1
- package/dist/collection/components/voice-input-module/voice-input-module.css +0 -286
- package/dist/collection/components/voice-input-module/voice-input-module.js +0 -897
- 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.d.ts +0 -11
- 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.map +0 -1
- package/dist/components/voice-input-module.js +0 -1313
- 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 +0 -1337
- 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/types/components/ocr-file-uploader/ocr-file-uploader.d.ts +0 -8
- package/dist/voice-input-module/ocr-file-uploader.voice-input-module.entry.esm.js.map +0 -1
- package/dist/voice-input-module/p-52e59129.entry.js +0 -2
- package/dist/voice-input-module/p-52e59129.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-52e59129.entry.js +0 -2
- package/www/build/p-52e59129.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-jmc2yzBp.js +0 -3
- package/www/build/p-jmc2yzBp.js.map +0 -1
|
@@ -7,7 +7,8 @@ export declare class VoiceFormRecorder {
|
|
|
7
7
|
context: 'track' | 'ng' | 'ecoll-veto' | 'ecoteka';
|
|
8
8
|
classificationRootUrl: string;
|
|
9
9
|
language: 'fr' | 'en';
|
|
10
|
-
inputTypes:
|
|
10
|
+
inputTypes: string;
|
|
11
|
+
private get parsedInputTypes();
|
|
11
12
|
debug: boolean;
|
|
12
13
|
renderForm: boolean;
|
|
13
14
|
displayStatus: boolean;
|
|
@@ -46,6 +47,8 @@ export declare class VoiceFormRecorder {
|
|
|
46
47
|
convertXmlToJsonLegacy(xmlForm: string): Promise<FormSchema>;
|
|
47
48
|
convertJsonToXmlLegacy(jsonForm: FormSchema): Promise<string>;
|
|
48
49
|
private renderUploadButton;
|
|
50
|
+
private convertSchemaToOcrFormat;
|
|
51
|
+
private mapOcrFieldType;
|
|
49
52
|
private fileInputAudioRecord;
|
|
50
53
|
private triggerAudioRecordUpload;
|
|
51
54
|
private handleAudioRecordChange;
|
|
@@ -8,13 +8,6 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { FormSchema, FormSchemaFieldsOnly, FormSchemaFieldsOnlyExtended, VoiceFormRecorderResult } from "./types/form-schema.types";
|
|
9
9
|
export { FormSchema, FormSchemaFieldsOnly, FormSchemaFieldsOnlyExtended, VoiceFormRecorderResult } from "./types/form-schema.types";
|
|
10
10
|
export namespace Components {
|
|
11
|
-
interface OcrFileUploader {
|
|
12
|
-
/**
|
|
13
|
-
* @default false
|
|
14
|
-
*/
|
|
15
|
-
"batch": boolean;
|
|
16
|
-
"callback": Function;
|
|
17
|
-
}
|
|
18
11
|
interface VoiceInputModule {
|
|
19
12
|
"apiKey": string;
|
|
20
13
|
/**
|
|
@@ -42,9 +35,9 @@ export namespace Components {
|
|
|
42
35
|
*/
|
|
43
36
|
"formJson": string;
|
|
44
37
|
/**
|
|
45
|
-
* @default
|
|
38
|
+
* @default ''
|
|
46
39
|
*/
|
|
47
|
-
"inputTypes":
|
|
40
|
+
"inputTypes": string;
|
|
48
41
|
/**
|
|
49
42
|
* @default 'en'
|
|
50
43
|
*/
|
|
@@ -64,12 +57,6 @@ export interface VoiceInputModuleCustomEvent<T> extends CustomEvent<T> {
|
|
|
64
57
|
target: HTMLVoiceInputModuleElement;
|
|
65
58
|
}
|
|
66
59
|
declare global {
|
|
67
|
-
interface HTMLOcrFileUploaderElement extends Components.OcrFileUploader, HTMLStencilElement {
|
|
68
|
-
}
|
|
69
|
-
var HTMLOcrFileUploaderElement: {
|
|
70
|
-
prototype: HTMLOcrFileUploaderElement;
|
|
71
|
-
new (): HTMLOcrFileUploaderElement;
|
|
72
|
-
};
|
|
73
60
|
interface HTMLVoiceInputModuleElementEventMap {
|
|
74
61
|
"formFilled": VoiceFormRecorderResult;
|
|
75
62
|
"recordingStateChanged": { isRecording: boolean; state: string };
|
|
@@ -89,18 +76,10 @@ declare global {
|
|
|
89
76
|
new (): HTMLVoiceInputModuleElement;
|
|
90
77
|
};
|
|
91
78
|
interface HTMLElementTagNameMap {
|
|
92
|
-
"ocr-file-uploader": HTMLOcrFileUploaderElement;
|
|
93
79
|
"voice-input-module": HTMLVoiceInputModuleElement;
|
|
94
80
|
}
|
|
95
81
|
}
|
|
96
82
|
declare namespace LocalJSX {
|
|
97
|
-
interface OcrFileUploader {
|
|
98
|
-
/**
|
|
99
|
-
* @default false
|
|
100
|
-
*/
|
|
101
|
-
"batch"?: boolean;
|
|
102
|
-
"callback"?: Function;
|
|
103
|
-
}
|
|
104
83
|
interface VoiceInputModule {
|
|
105
84
|
"apiKey"?: string;
|
|
106
85
|
/**
|
|
@@ -124,9 +103,9 @@ declare namespace LocalJSX {
|
|
|
124
103
|
*/
|
|
125
104
|
"formJson"?: string;
|
|
126
105
|
/**
|
|
127
|
-
* @default
|
|
106
|
+
* @default ''
|
|
128
107
|
*/
|
|
129
|
-
"inputTypes"?:
|
|
108
|
+
"inputTypes"?: string;
|
|
130
109
|
/**
|
|
131
110
|
* @default 'en'
|
|
132
111
|
*/
|
|
@@ -143,7 +122,6 @@ declare namespace LocalJSX {
|
|
|
143
122
|
"serviceConfig"?: string;
|
|
144
123
|
}
|
|
145
124
|
interface IntrinsicElements {
|
|
146
|
-
"ocr-file-uploader": OcrFileUploader;
|
|
147
125
|
"voice-input-module": VoiceInputModule;
|
|
148
126
|
}
|
|
149
127
|
}
|
|
@@ -151,7 +129,6 @@ export { LocalJSX as JSX };
|
|
|
151
129
|
declare module "@stencil/core" {
|
|
152
130
|
export namespace JSX {
|
|
153
131
|
interface IntrinsicElements {
|
|
154
|
-
"ocr-file-uploader": LocalJSX.OcrFileUploader & JSXBase.HTMLAttributes<HTMLOcrFileUploaderElement>;
|
|
155
132
|
"voice-input-module": LocalJSX.VoiceInputModule & JSXBase.HTMLAttributes<HTMLVoiceInputModuleElement>;
|
|
156
133
|
}
|
|
157
134
|
}
|