@sensiblestats/widget-embed 0.112.0 → 0.113.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @sensiblestats/widget-embed
2
2
 
3
+ ## 0.113.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 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.
8
+
3
9
  ## 0.112.0
4
10
 
5
11
  ### Minor Changes