@sensiblestats/widget-embed 0.111.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,17 @@
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
+
9
+ ## 0.112.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Brand colours now come in a light and a dark group. `colors: { light, dark }` replaces the flat `accent`, `cta`, `surface` and `ink` config keys (breaking). Each group takes `accent`, `cta`, `surface` and `ink`. The dark theme reads only `colors.dark`; a dark colour left out shows the built-in dark colour, never the light one. On the script tag, `data-accent`, `data-cta`, `data-surface` and `data-ink` fill the light group and `data-accent-dark`, `data-cta-dark`, `data-surface-dark` and `data-ink-dark` fill the dark group; the mobile fragment uses `accentDark`, `ctaDark`, `surfaceDark` and `inkDark`. Blank values are ignored. Brand colours no longer lock the theme: the visitor's theme choice always wins and Settings always shows the theme row.
14
+
3
15
  ## 0.111.0
4
16
 
5
17
  ### Minor Changes