@sensiblestats/widget-embed 0.112.0 → 0.114.0
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 +12 -0
- package/dist/embed.global.js +24 -24
- package/dist/embed.global.js.map +1 -1
- package/dist/mobile.global.js +24 -24
- package/dist/mobile.global.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @sensiblestats/widget-embed
|
|
2
2
|
|
|
3
|
+
## 0.114.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- The /m page tells the native wrapper how the widget looks. `ready` is unchanged. A new `labels` message (`launcher` and `dismiss`, localized; `launcher` is the fragment's `launcherLabel` when set) is posted once the strings are known and again when they change. A new `theme` message (`light` or `dark`) is posted when the rendered theme is known and whenever it changes, including the visitor's choice in settings and `auto` following the system appearance. Both come after `ready`, in no fixed order between them, and neither changes availability. The fragment accepts `launcherLabel`.
|
|
8
|
+
|
|
9
|
+
## 0.113.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- ebf1a14: Web parity with the mobile wrappers. widget-sdk exports `UnavailableReason`, `Teaser`, `TeaserPrice`, `PriceResult` and `observingFetch` (the mobile bridge types now come from it; `MobileTeaser`, `MobileTeaserPrice` and `MobilePriceResult` are removed from widget-react). widget-react adds `launcher: false` (hides the built-in launcher), `onTeaser(teaser | null)` and `onUnavailable(reason)` (`widget_disabled`, `auth_failed`) to `StatsWidgetConfig`, and `tapAsk`, `tapPrice` (resolves `PriceResult | null`), `tapCta`, `tapTeaser`, `dismissTeaser`, `teaserShown` to the `WidgetHost` from `createWidgetHost()`. A mounted `<StatsWidget>` now rebuilds its client, starts a fresh thread, and drops the previous visitor's pins and slip marks when `userContext.operatorUserId` or `anonymousUserId` changes. The teaser methods act only when the widget has `launcher: false`, and `onTeaser(null)` is delivered when the widget unmounts. widget-embed adds `data-launcher="false"`, the `sensiblestats:teaser` (`detail.teaser`) and `sensiblestats:unavailable` (`detail.reason`) window events, and the six teaser actions on the `init()` handle and the `window.SensibleStatsWidget` global.
|
|
14
|
+
|
|
3
15
|
## 0.112.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|