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,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BtdDZbi5.js');
|
|
4
4
|
|
|
5
5
|
const TRANSCRIPTION_MODELS = {
|
|
6
6
|
openai: ['gpt-4o-transcribe', 'gpt-4o-mini-transcribe', 'whisper-1'],
|
|
@@ -4401,9 +4401,17 @@ const VoiceFormRecorder = class {
|
|
|
4401
4401
|
this.audioRecorder = new AudioRecorderService();
|
|
4402
4402
|
}
|
|
4403
4403
|
componentWillLoad() {
|
|
4404
|
-
|
|
4404
|
+
// Parse theme only so the skeleton can be styled correctly on first render.
|
|
4405
|
+
// Full initialization runs in componentDidLoad() to give the skeleton time to paint.
|
|
4406
|
+
try {
|
|
4407
|
+
this.parsedTheme = this.theme ? JSON.parse(this.theme) : this.getDefaultTheme();
|
|
4408
|
+
}
|
|
4409
|
+
catch (_a) {
|
|
4410
|
+
this.parsedTheme = this.getDefaultTheme();
|
|
4411
|
+
}
|
|
4405
4412
|
}
|
|
4406
4413
|
componentDidLoad() {
|
|
4414
|
+
this.initializeServices();
|
|
4407
4415
|
this.isInitializing = false;
|
|
4408
4416
|
}
|
|
4409
4417
|
initializeServices() {
|
|
@@ -5215,7 +5223,8 @@ const VoiceFormRecorder = class {
|
|
|
5215
5223
|
};
|
|
5216
5224
|
}
|
|
5217
5225
|
getContainerStyle() {
|
|
5218
|
-
|
|
5226
|
+
var _a;
|
|
5227
|
+
const c = ((_a = this.parsedTheme) === null || _a === void 0 ? void 0 : _a.container) || {};
|
|
5219
5228
|
return {
|
|
5220
5229
|
width: c.width || 'auto',
|
|
5221
5230
|
height: c.height || 'auto',
|
|
@@ -5227,7 +5236,8 @@ const VoiceFormRecorder = class {
|
|
|
5227
5236
|
};
|
|
5228
5237
|
}
|
|
5229
5238
|
getStatusStyle() {
|
|
5230
|
-
|
|
5239
|
+
var _a;
|
|
5240
|
+
const s = ((_a = this.parsedTheme) === null || _a === void 0 ? void 0 : _a.statusText) || {};
|
|
5231
5241
|
return {
|
|
5232
5242
|
color: s.color || '#1e293b',
|
|
5233
5243
|
fontSize: s.fontSize || '14px'
|