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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BTSzTkSZ.js');
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
- this.initializeServices();
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
- const c = this.parsedTheme.container || {};
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
- const s = this.parsedTheme.statusText || {};
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'