@olares/lares-mobile 0.15.29 → 0.15.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olares/lares-mobile",
3
- "version": "0.15.29",
3
+ "version": "0.15.30",
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.29",
31
+ "@olares/lares-core": "0.15.30",
32
32
  "markdown-it": "^14.3.0"
33
33
  }
34
34
  }
@@ -175,7 +175,6 @@
175
175
  <script>
176
176
  import { messageFromCode } from "@olares/lares-core/i18n/t";
177
177
  import { voiceCallFailure, voicePlaybackChrome } from "@olares/lares-core/voice/presentation";
178
- import { readoutState } from "@olares/lares-core/voice/speech";
179
178
  import LaresVoiceInput from "./VoiceInput.vue";
180
179
  import {
181
180
  REFERENCE_DEBOUNCE_MS,
@@ -219,8 +218,6 @@ export default {
219
218
  ],
220
219
  data() {
221
220
  return {
222
- readout: null,
223
- readoutUnsub: null,
224
221
  inputMultiline: false,
225
222
  inputWidth: 0,
226
223
  inputResizeObserver: null,
@@ -260,7 +257,7 @@ export default {
260
257
  return this.voiceView?.inputActive ? voiceCallFailure(this.voiceView) : null;
261
258
  },
262
259
  playbackChrome() {
263
- return voicePlaybackChrome(this.voiceView, this.readout);
260
+ return voicePlaybackChrome(this.voiceView);
264
261
  },
265
262
  callFailureText() {
266
263
  return this.callFailure ? messageFromCode(this.t, this.callFailure.code, "error.voice_failed") : "";
@@ -279,8 +276,6 @@ export default {
279
276
  },
280
277
  },
281
278
  mounted() {
282
- this.readout = readoutState.getSnapshot();
283
- this.readoutUnsub = readoutState.subscribe(() => { this.readout = readoutState.getSnapshot(); });
284
279
  this.autosize();
285
280
  this.inputResizeObserver = new ResizeObserver(([entry]) => {
286
281
  const width = entry.contentRect.width;
@@ -291,15 +286,13 @@ export default {
291
286
  this.inputResizeObserver.observe(this.$refs.input);
292
287
  },
293
288
  beforeUnmount() {
294
- this.readoutUnsub?.();
295
289
  this.inputResizeObserver?.disconnect();
296
290
  window.clearTimeout(this.referenceTimer);
297
291
  window.removeEventListener("pointerdown", this.onTokenPointer, true);
298
292
  },
299
293
  methods: {
300
294
  stopPlayback() {
301
- if (this.playbackChrome?.stop === "readout") this.readout?.stop?.();
302
- else this.$emit("voice-action", { action: "stopPlayback" });
295
+ this.$emit("voice-action", { action: "stopPlayback" });
303
296
  },
304
297
  onInput(event) {
305
298
  const value = event.target.value;