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.
Files changed (64) hide show
  1. package/dist/cjs/{index-BTSzTkSZ.js → index-BtdDZbi5.js} +11 -4
  2. package/dist/cjs/index-BtdDZbi5.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +2 -3
  4. package/dist/cjs/loader.cjs.js.map +1 -1
  5. package/dist/cjs/ocr-file-uploader.cjs.entry.js +1 -1
  6. package/dist/cjs/voice-input-module.cjs.entry.js +14 -4
  7. package/dist/cjs/voice-input-module.cjs.entry.js.map +1 -1
  8. package/dist/cjs/voice-input-module.cjs.js +2 -3
  9. package/dist/cjs/voice-input-module.cjs.js.map +1 -1
  10. package/dist/cjs/voice-input-module.entry.cjs.js.map +1 -1
  11. package/dist/collection/components/voice-input-module/voice-input-module.js +13 -3
  12. package/dist/collection/components/voice-input-module/voice-input-module.js.map +1 -1
  13. package/dist/components/voice-input-module.js +13 -3
  14. package/dist/components/voice-input-module.js.map +1 -1
  15. package/dist/esm/{index-jmc2yzBp.js → index-a7QWC-5I.js} +11 -5
  16. package/dist/esm/index-a7QWC-5I.js.map +1 -0
  17. package/dist/esm/loader.js +2 -3
  18. package/dist/esm/loader.js.map +1 -1
  19. package/dist/esm/ocr-file-uploader.entry.js +1 -1
  20. package/dist/esm/voice-input-module.entry.js +14 -4
  21. package/dist/esm/voice-input-module.entry.js.map +1 -1
  22. package/dist/esm/voice-input-module.js +2 -3
  23. package/dist/esm/voice-input-module.js.map +1 -1
  24. package/dist/voice-input-module/loader.esm.js.map +1 -1
  25. package/dist/voice-input-module/{p-b3bf4feb.entry.js → p-334644ec.entry.js} +3 -3
  26. package/dist/voice-input-module/{p-b3bf4feb.entry.js.map → p-334644ec.entry.js.map} +1 -1
  27. package/dist/voice-input-module/p-a7QWC-5I.js +3 -0
  28. package/dist/voice-input-module/p-a7QWC-5I.js.map +1 -0
  29. package/dist/voice-input-module/{p-a5eeaf1c.entry.js → p-ba3d83d1.entry.js} +2 -2
  30. package/dist/voice-input-module/voice-input-module.css +6 -0
  31. package/dist/voice-input-module/voice-input-module.entry.esm.js.map +1 -1
  32. package/dist/voice-input-module/voice-input-module.esm.js +1 -1
  33. package/dist/voice-input-module/voice-input-module.esm.js.map +1 -1
  34. package/package.json +1 -1
  35. package/www/build/loader.esm.js.map +1 -1
  36. package/www/build/{p-b3bf4feb.entry.js → p-334644ec.entry.js} +3 -3
  37. package/www/build/{p-b3bf4feb.entry.js.map → p-334644ec.entry.js.map} +1 -1
  38. package/www/build/p-6cd2a3a1.css +6 -0
  39. package/www/build/p-a7QWC-5I.js +3 -0
  40. package/www/build/p-a7QWC-5I.js.map +1 -0
  41. package/www/build/{p-a5eeaf1c.entry.js → p-ba3d83d1.entry.js} +2 -2
  42. package/www/build/p-dfdcd9a6.js +2 -0
  43. package/www/build/voice-input-module.css +6 -0
  44. package/www/build/voice-input-module.entry.esm.js.map +1 -1
  45. package/www/build/voice-input-module.esm.js +1 -1
  46. package/www/build/voice-input-module.esm.js.map +1 -1
  47. package/www/index.html +1 -1
  48. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  49. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  50. package/dist/cjs/index-BTSzTkSZ.js.map +0 -1
  51. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  52. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  53. package/dist/esm/index-jmc2yzBp.js.map +0 -1
  54. package/dist/voice-input-module/p-DQuL1Twl.js +0 -2
  55. package/dist/voice-input-module/p-DQuL1Twl.js.map +0 -1
  56. package/dist/voice-input-module/p-jmc2yzBp.js +0 -3
  57. package/dist/voice-input-module/p-jmc2yzBp.js.map +0 -1
  58. package/www/build/p-3aeb495d.js +0 -2
  59. package/www/build/p-DQuL1Twl.js +0 -2
  60. package/www/build/p-DQuL1Twl.js.map +0 -1
  61. package/www/build/p-jmc2yzBp.js +0 -3
  62. package/www/build/p-jmc2yzBp.js.map +0 -1
  63. /package/dist/voice-input-module/{p-a5eeaf1c.entry.js.map → p-ba3d83d1.entry.js.map} +0 -0
  64. /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-jmc2yzBp.js';
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
- this.initializeServices();
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
- const c = this.parsedTheme.container || {};
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
- const s = this.parsedTheme.statusText || {};
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'