@wexio/messenger-widget-vue 1.2.1 → 1.2.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @wexio/messenger-widget-vue
2
2
 
3
+ ## 1.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 146aa5f: Make notification sounds far lighter, two changes:
8
+
9
+ 1. **Lazy loading.** The inbound/outbound `Audio` elements were built with `preload="auto"`, so both sound files were fetched on every page load the widget was embedded on, even for visitors who never opened the chat. They now use `preload="none"` (with `src` set after `preload`), so a sound downloads lazily on its first `play()`, which is always user-gesture triggered.
10
+
11
+ 2. **MP3 instead of WAV.** The 21 preset sounds were uncompressed WAV (~17MB total, individual files up to ~1.7MB). They are now 128kbps MP3 (~2MB total, ~16-52KB each). Preset ids resolve to `/sounds/wx-nt_*.mp3`; operator-uploaded custom sounds (full URLs) are unaffected.
12
+
13
+ Together this removes ~3.6MB from the host page's initial load and makes the lazy first-play near-instant. No API or behavior change.
14
+
15
+ ## 1.2.2
16
+
17
+ ### Patch Changes
18
+
19
+ - 948dbaf: Fix website page-view tracking reporting the PREVIOUS page's title after a SPA navigation. The host router changes the URL synchronously but updates `document.title` a tick later, so the title was read too early. Both capture paths (the iframe `loader.js` and the web-component provider) now wait for `<title>` to actually update (via a `MutationObserver`, with a short timeout fallback) before reporting, so the title matches the new URL.
20
+
3
21
  ## 1.2.1
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -210,6 +210,10 @@ The underlying widget runtime is a Web Component, so it works in any modern fram
210
210
 
211
211
  Give a ⭐️ if this package helped you!
212
212
 
213
+ ## Changelog
214
+
215
+ See the [Releases](https://github.com/wexiohub/messenger-widget-vue/releases) page for the full changelog.
216
+
213
217
  ## 📝 License
214
218
 
215
219
  This project is [MIT](./LICENSE) licensed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wexio/messenger-widget-vue",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Vue 3 component embed for the Wexio web messenger. Thin reactive wrapper around the <wexio-widget> web component — same WidgetShell runtime, same Shadow-DOM isolation.",
5
5
  "license": "MIT",
6
6
  "private": false,