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.
Files changed (102) hide show
  1. package/dist/types/components/voice-input-module/voice-input-module.d.ts +6 -0
  2. package/dist/types/components.d.ts +16 -0
  3. package/dist/types/services/llm.service.d.ts +2 -0
  4. package/dist/types/services/speech-to-text.service.d.ts +2 -0
  5. package/dist/types/types/service-providers.types.d.ts +4 -0
  6. package/dist/voice-input-module/index-Lt4F-TYq.js +4334 -0
  7. package/dist/voice-input-module/index-Lt4F-TYq.js.map +1 -0
  8. package/dist/voice-input-module/index.esm.js +12 -0
  9. package/dist/voice-input-module/index.esm.js.map +1 -1
  10. package/dist/voice-input-module/loader.esm.js.map +1 -1
  11. package/dist/voice-input-module/ocr-file-uploader.entry.esm.js.map +1 -0
  12. package/dist/voice-input-module/ocr-file-uploader.entry.js +121 -0
  13. package/dist/voice-input-module/ocr-file-uploader.entry.js.map +1 -0
  14. package/dist/voice-input-module/voice-input-module.entry.esm.js.map +1 -0
  15. package/dist/{esm/ocr-file-uploader_2.entry.js → voice-input-module/voice-input-module.entry.js} +317 -156
  16. package/dist/voice-input-module/voice-input-module.entry.js.map +1 -0
  17. package/dist/voice-input-module/voice-input-module.esm.js +49 -1
  18. package/dist/voice-input-module/voice-input-module.esm.js.map +1 -1
  19. package/package.json +3 -4
  20. package/readme.md +445 -1
  21. package/www/build/index-Lt4F-TYq.js +4334 -0
  22. package/www/build/index-Lt4F-TYq.js.map +1 -0
  23. package/www/build/index.esm.js +12 -0
  24. package/www/build/index.esm.js.map +1 -1
  25. package/www/build/loader.esm.js.map +1 -1
  26. package/www/build/ocr-file-uploader.entry.esm.js.map +1 -0
  27. package/www/build/ocr-file-uploader.entry.js +121 -0
  28. package/www/build/ocr-file-uploader.entry.js.map +1 -0
  29. package/www/build/voice-input-module.entry.esm.js.map +1 -0
  30. package/{dist/components/voice-input-module.js → www/build/voice-input-module.entry.js} +319 -131
  31. package/www/build/voice-input-module.entry.js.map +1 -0
  32. package/www/build/voice-input-module.esm.js +49 -1
  33. package/www/build/voice-input-module.esm.js.map +1 -1
  34. package/www/config.js +6 -0
  35. package/www/index.html +154 -11
  36. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  37. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  38. package/dist/cjs/index-BTSzTkSZ.js +0 -1494
  39. package/dist/cjs/index-BTSzTkSZ.js.map +0 -1
  40. package/dist/cjs/index.cjs.js +0 -5
  41. package/dist/cjs/index.cjs.js.map +0 -1
  42. package/dist/cjs/loader.cjs.js +0 -16
  43. package/dist/cjs/loader.cjs.js.map +0 -1
  44. package/dist/cjs/ocr-file-uploader.voice-input-module.entry.cjs.js.map +0 -1
  45. package/dist/cjs/ocr-file-uploader_2.cjs.entry.js +0 -4486
  46. package/dist/cjs/ocr-file-uploader_2.cjs.entry.js.map +0 -1
  47. package/dist/cjs/voice-input-module.cjs.js +0 -28
  48. package/dist/cjs/voice-input-module.cjs.js.map +0 -1
  49. package/dist/collection/collection-manifest.json +0 -19
  50. package/dist/collection/components/voice-input-module/voice-input-module.css +0 -327
  51. package/dist/collection/components/voice-input-module/voice-input-module.js +0 -1021
  52. package/dist/collection/components/voice-input-module/voice-input-module.js.map +0 -1
  53. package/dist/collection/index.js +0 -12
  54. package/dist/collection/index.js.map +0 -1
  55. package/dist/collection/services/audio-recorder.service.js +0 -66
  56. package/dist/collection/services/audio-recorder.service.js.map +0 -1
  57. package/dist/collection/services/llm.service.js +0 -193
  58. package/dist/collection/services/llm.service.js.map +0 -1
  59. package/dist/collection/services/speech-to-text.service.js +0 -60
  60. package/dist/collection/services/speech-to-text.service.js.map +0 -1
  61. package/dist/collection/types/form-schema.types.js +0 -2
  62. package/dist/collection/types/form-schema.types.js.map +0 -1
  63. package/dist/collection/types/service-providers.types.js +0 -2
  64. package/dist/collection/types/service-providers.types.js.map +0 -1
  65. package/dist/collection/utils/schema-converter.js +0 -422
  66. package/dist/collection/utils/schema-converter.js.map +0 -1
  67. package/dist/components/index.js +0 -4
  68. package/dist/components/index.js.map +0 -1
  69. package/dist/components/ocr-file-uploader.js +0 -9
  70. package/dist/components/ocr-file-uploader.js.map +0 -1
  71. package/dist/components/ocr-file-uploader2.js +0 -102
  72. package/dist/components/ocr-file-uploader2.js.map +0 -1
  73. package/dist/components/voice-input-module.js.map +0 -1
  74. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  75. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  76. package/dist/esm/index-jmc2yzBp.js +0 -1487
  77. package/dist/esm/index-jmc2yzBp.js.map +0 -1
  78. package/dist/esm/index.js +0 -4
  79. package/dist/esm/index.js.map +0 -1
  80. package/dist/esm/loader.js +0 -14
  81. package/dist/esm/loader.js.map +0 -1
  82. package/dist/esm/ocr-file-uploader.voice-input-module.entry.js.map +0 -1
  83. package/dist/esm/ocr-file-uploader_2.entry.js.map +0 -1
  84. package/dist/esm/voice-input-module.js +0 -24
  85. package/dist/esm/voice-input-module.js.map +0 -1
  86. package/dist/index.cjs.js +0 -1
  87. package/dist/index.js +0 -1
  88. package/dist/voice-input-module/ocr-file-uploader.voice-input-module.entry.esm.js.map +0 -1
  89. package/dist/voice-input-module/p-21d2e52b.entry.js +0 -3
  90. package/dist/voice-input-module/p-21d2e52b.entry.js.map +0 -1
  91. package/dist/voice-input-module/p-DQuL1Twl.js +0 -2
  92. package/dist/voice-input-module/p-DQuL1Twl.js.map +0 -1
  93. package/dist/voice-input-module/p-jmc2yzBp.js +0 -3
  94. package/dist/voice-input-module/p-jmc2yzBp.js.map +0 -1
  95. package/www/build/ocr-file-uploader.voice-input-module.entry.esm.js.map +0 -1
  96. package/www/build/p-21d2e52b.entry.js +0 -3
  97. package/www/build/p-21d2e52b.entry.js.map +0 -1
  98. package/www/build/p-DQuL1Twl.js +0 -2
  99. package/www/build/p-DQuL1Twl.js.map +0 -1
  100. package/www/build/p-b680b1be.js +0 -2
  101. package/www/build/p-jmc2yzBp.js +0 -3
  102. 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
  }