reneco-advanced-input-module 0.0.24 → 0.0.25
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/cjs/{index-BTSzTkSZ.js → index-BtdDZbi5.js} +11 -4
- package/dist/cjs/index-BtdDZbi5.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -3
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/ocr-file-uploader.cjs.entry.js +1 -1
- package/dist/cjs/voice-input-module.cjs.entry.js +14 -4
- package/dist/cjs/voice-input-module.cjs.entry.js.map +1 -1
- package/dist/cjs/voice-input-module.cjs.js +2 -3
- package/dist/cjs/voice-input-module.cjs.js.map +1 -1
- package/dist/cjs/voice-input-module.entry.cjs.js.map +1 -1
- package/dist/collection/components/voice-input-module/voice-input-module.js +13 -3
- package/dist/collection/components/voice-input-module/voice-input-module.js.map +1 -1
- package/dist/components/voice-input-module.js +13 -3
- package/dist/components/voice-input-module.js.map +1 -1
- package/dist/esm/{index-jmc2yzBp.js → index-a7QWC-5I.js} +11 -5
- package/dist/esm/index-a7QWC-5I.js.map +1 -0
- package/dist/esm/loader.js +2 -3
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/ocr-file-uploader.entry.js +1 -1
- package/dist/esm/voice-input-module.entry.js +14 -4
- package/dist/esm/voice-input-module.entry.js.map +1 -1
- package/dist/esm/voice-input-module.js +2 -3
- package/dist/esm/voice-input-module.js.map +1 -1
- package/dist/voice-input-module/loader.esm.js.map +1 -1
- package/dist/voice-input-module/{p-b3bf4feb.entry.js → p-334644ec.entry.js} +3 -3
- package/dist/voice-input-module/{p-b3bf4feb.entry.js.map → p-334644ec.entry.js.map} +1 -1
- package/dist/voice-input-module/p-a7QWC-5I.js +3 -0
- package/dist/voice-input-module/p-a7QWC-5I.js.map +1 -0
- package/dist/voice-input-module/{p-a5eeaf1c.entry.js → p-ba3d83d1.entry.js} +2 -2
- package/dist/voice-input-module/voice-input-module.css +6 -0
- package/dist/voice-input-module/voice-input-module.entry.esm.js.map +1 -1
- package/dist/voice-input-module/voice-input-module.esm.js +1 -1
- package/dist/voice-input-module/voice-input-module.esm.js.map +1 -1
- package/package.json +1 -1
- package/www/build/loader.esm.js.map +1 -1
- package/www/build/{p-b3bf4feb.entry.js → p-334644ec.entry.js} +3 -3
- package/www/build/{p-b3bf4feb.entry.js.map → p-334644ec.entry.js.map} +1 -1
- package/www/build/p-6cd2a3a1.css +6 -0
- package/www/build/p-a7QWC-5I.js +3 -0
- package/www/build/p-a7QWC-5I.js.map +1 -0
- package/www/build/{p-a5eeaf1c.entry.js → p-ba3d83d1.entry.js} +2 -2
- package/www/build/p-dfdcd9a6.js +2 -0
- package/www/build/voice-input-module.css +6 -0
- package/www/build/voice-input-module.entry.esm.js.map +1 -1
- package/www/build/voice-input-module.esm.js +1 -1
- package/www/build/voice-input-module.esm.js.map +1 -1
- package/www/index.html +1 -1
- 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.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.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/p-3aeb495d.js +0 -2
- 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
- /package/dist/voice-input-module/{p-a5eeaf1c.entry.js.map → p-ba3d83d1.entry.js.map} +0 -0
- /package/www/build/{p-a5eeaf1c.entry.js.map → p-ba3d83d1.entry.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h as h$1 } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h as h$1 } from './index-a7QWC-5I.js';
|
|
2
2
|
|
|
3
3
|
const TRANSCRIPTION_MODELS = {
|
|
4
4
|
openai: ['gpt-4o-transcribe', 'gpt-4o-mini-transcribe', 'whisper-1'],
|
|
@@ -4399,9 +4399,17 @@ const VoiceFormRecorder = class {
|
|
|
4399
4399
|
this.audioRecorder = new AudioRecorderService();
|
|
4400
4400
|
}
|
|
4401
4401
|
componentWillLoad() {
|
|
4402
|
-
|
|
4402
|
+
// Parse theme only so the skeleton can be styled correctly on first render.
|
|
4403
|
+
// Full initialization runs in componentDidLoad() to give the skeleton time to paint.
|
|
4404
|
+
try {
|
|
4405
|
+
this.parsedTheme = this.theme ? JSON.parse(this.theme) : this.getDefaultTheme();
|
|
4406
|
+
}
|
|
4407
|
+
catch (_a) {
|
|
4408
|
+
this.parsedTheme = this.getDefaultTheme();
|
|
4409
|
+
}
|
|
4403
4410
|
}
|
|
4404
4411
|
componentDidLoad() {
|
|
4412
|
+
this.initializeServices();
|
|
4405
4413
|
this.isInitializing = false;
|
|
4406
4414
|
}
|
|
4407
4415
|
initializeServices() {
|
|
@@ -5213,7 +5221,8 @@ const VoiceFormRecorder = class {
|
|
|
5213
5221
|
};
|
|
5214
5222
|
}
|
|
5215
5223
|
getContainerStyle() {
|
|
5216
|
-
|
|
5224
|
+
var _a;
|
|
5225
|
+
const c = ((_a = this.parsedTheme) === null || _a === void 0 ? void 0 : _a.container) || {};
|
|
5217
5226
|
return {
|
|
5218
5227
|
width: c.width || 'auto',
|
|
5219
5228
|
height: c.height || 'auto',
|
|
@@ -5225,7 +5234,8 @@ const VoiceFormRecorder = class {
|
|
|
5225
5234
|
};
|
|
5226
5235
|
}
|
|
5227
5236
|
getStatusStyle() {
|
|
5228
|
-
|
|
5237
|
+
var _a;
|
|
5238
|
+
const s = ((_a = this.parsedTheme) === null || _a === void 0 ? void 0 : _a.statusText) || {};
|
|
5229
5239
|
return {
|
|
5230
5240
|
color: s.color || '#1e293b',
|
|
5231
5241
|
fontSize: s.fontSize || '14px'
|