@olares/lares-mobile 0.15.18 → 0.15.19

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 (2) hide show
  1. package/package.json +2 -2
  2. package/src/App.vue +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olares/lares-mobile",
3
- "version": "0.15.18",
3
+ "version": "0.15.19",
4
4
  "description": "Lares chat component for LarePass",
5
5
  "type": "module",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "vue": "^3.2.0"
29
29
  },
30
30
  "dependencies": {
31
- "@olares/lares-core": "0.15.18",
31
+ "@olares/lares-core": "0.15.19",
32
32
  "markdown-it": "^14.3.0"
33
33
  }
34
34
  }
package/src/App.vue CHANGED
@@ -115,6 +115,7 @@
115
115
  <script>
116
116
  import { modelState, modelStateLabel } from "@olares/lares-core/router/model-state";
117
117
  import { matchVoiceShortcut } from "@olares/lares-core/voice/shortcuts";
118
+ import { markRaw } from "vue";
118
119
  import { subscribeVoiceSettings } from "@olares/lares-core/larepass/settings";
119
120
  import { createVoicePanel } from "@olares/lares-core/voice/panel";
120
121
  import { mergeVoiceTranscript, subscribeVoiceHistory } from "@olares/lares-core/voice/projection";
@@ -578,7 +579,7 @@ export default {
578
579
  },
579
580
  });
580
581
  this.voiceSettingsUnsub = subscribeVoiceSettings((value) => {
581
- this.voiceDefaultMode = value.config.mobileMode; this.voiceSettings = value;
582
+ this.voiceDefaultMode = value.config.mobileMode; this.voiceSettings = markRaw(value);
582
583
  const next = value.config.speak === true;
583
584
  if (this.voiceSpeak && !next) this.reader?.stop();
584
585
  this.voiceSpeak = next;
@@ -1008,7 +1009,7 @@ export default {
1008
1009
  try {
1009
1010
  await this.runtime.start({ workspaces: this.chatDevice === "desktop" });
1010
1011
  if (gen !== this.hostGen) return;
1011
- void this.runtime.settings.voice(false, { diagnostics: false }).then(value => { if (gen === this.hostGen) { this.voiceSettings = value; this.voiceDefaultMode = value.config.mobileMode; } }).catch(() => {});
1012
+ void this.runtime.settings.voice(false, { diagnostics: false }).then(value => { if (gen === this.hostGen) { this.voiceSettings = markRaw(value); this.voiceDefaultMode = value.config.mobileMode; } }).catch(() => {});
1012
1013
  if (this.chatDevice !== "desktop") await this.runtime.refreshWorkspaces();
1013
1014
  await this.loadComposerMeta();
1014
1015
  } finally {
@@ -1280,7 +1281,7 @@ export default {
1280
1281
  async openDictation(preset) {
1281
1282
  if (document.hidden || navigator.onLine === false) return;
1282
1283
  if (!this.voiceSettings) {
1283
- try { this.voiceSettings = await this.runtime.settings.voice(false, { diagnostics: false }); }
1284
+ try { this.voiceSettings = markRaw(await this.runtime.settings.voice(false, { diagnostics: false })); }
1284
1285
  catch { return; }
1285
1286
  }
1286
1287
  if (!laresVoiceAvailability(this.voiceSettings).dictation) return;