@sensiblestats/widget-embed 0.6.1 → 0.7.1

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,39 @@
1
1
  # @sensiblestats/widget-embed
2
2
 
3
+ ## 0.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Rebuild the CDN embed bundle so it carries the widget-react add-to-slip CTA color change (embed inlines widget-react via `noExternal`, so a react-only style change still requires a new embed release).
8
+
9
+ ## 0.7.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Add to slip on betting insight cards.
14
+
15
+ The operator supplies an `onAddToSlip` callback; the widget hands it one selection
16
+ keyed by `matchOddsId` (the operator's own odds-row id) and maps the callback's
17
+ typed result to a localized (en/tr) toast. Two server fields drive it:
18
+ `odds.matchOddsId` and the per-operator gate `addToSlipEnabled` — the button
19
+ renders only when the gate is true, a handler is supplied, and the insight carries
20
+ a usable odds id. The widget never touches stake, balance, or bet placement.
21
+
22
+ - **widget-sdk:** add `SlipSelection`, `AddToSlipResult`, `AddToSlipRejectReason`,
23
+ and the `isAddToSlipResult` runtime guard; extend `BettingInsight` with
24
+ `addToSlipEnabled` and `odds.matchOddsId`.
25
+ - **widget-react:** add `AddToSlipButton` and `Toast`, the `slip.ts` result→toast
26
+ mapping (which honours `price_changed.accepted`), en/tr copy, `conversationId`
27
+ capture on `turn_complete`, and the `onAddToSlip` config entry. Malformed
28
+ results, throws, and a 10s timeout all fail closed to a retryable button.
29
+ - **widget-embed:** re-bundles widget-react, so it is republished. Add-to-slip is
30
+ not exposed to script-tag hosts, because a callback cannot be expressed in a
31
+ `data-*` attribute.
32
+
33
+ This shipped to master in `dd2da0e1` (#248) but never reached npm, because the
34
+ version was not bumped in the merged commit and the release workflow's
35
+ `--tolerate-republish` therefore skipped every package.
36
+
3
37
  ## 0.6.1
4
38
 
5
39
  ### Patch Changes