@wexio/messenger-widget-ember 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 +18 -0
- package/README.md +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @wexio/messenger-widget-ember
|
|
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
|
@@ -194,6 +194,10 @@ The underlying widget runtime is a Web Component, so it works in any modern fram
|
|
|
194
194
|
|
|
195
195
|
Give a ⭐️ if this package helped you!
|
|
196
196
|
|
|
197
|
+
## Changelog
|
|
198
|
+
|
|
199
|
+
See the [Releases](https://github.com/wexiohub/messenger-widget-ember/releases) page for the full changelog.
|
|
200
|
+
|
|
197
201
|
## 📝 License
|
|
198
202
|
|
|
199
203
|
This project is [MIT](./LICENSE) licensed.
|
package/package.json
CHANGED