@sensiblestats/widget-react 0.72.0 → 0.72.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,13 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.72.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Presets: "Set the numbers" and "Build a combo" now open each row on a number that has picks. A row still starts on 1.50, 2.00, or a 3-match combo at about 5.0 when that cell exists; on a thin grid it opens on the nearest number that does, so Send is enabled instead of every row saying "Not available today." Taps, cycling and the stepper are unchanged.
8
+
9
+ Matches: the widget no longer opens a match from any surface. Team names on insight, odds and compact odds cards, Today rows and Following cards lose the chevron and are plain text, with no button role or tab stop. `onOpenMatch` stays in the config type so hosts still compile, but it is deprecated and never called.
10
+
3
11
  ## 0.72.0
4
12
 
5
13
  ### Minor Changes
package/README.md CHANGED
@@ -58,7 +58,6 @@ export const widgetHost = createWidgetHost()
58
58
  config={{
59
59
  ...config,
60
60
  onAddToSlip: (selection) => addToMySlip(selection),
61
- onOpenMatch: ({ matchId }) => router.push(`/match/${matchId}`),
62
61
  }}
63
62
  />
64
63
  ```
@@ -76,9 +75,9 @@ What each one does:
76
75
  `{ status: 'duplicate' }` or `{ status: 'rejected', reason }`. The widget shows "In slip" for an
77
76
  added or duplicate selection. Answer within 10 seconds. Without a `host`, an "In slip" button
78
77
  stays that way until the page reloads; with one, `slipRemoved` and `betPlaced` clear it.
79
- - `onOpenMatch`. Without it team names in the widget are plain text. With it they are buttons that
80
- call you with the match id. On a phone the panel closes after the tap, because it covers the
81
- page.
78
+ - `onOpenMatch` (deprecated). Ignored since 0.72.1: the widget no longer opens matches from any
79
+ surface, so team names are plain text and this is never called. It stays in the config type so
80
+ existing hosts still compile.
82
81
  - `slipRemoved`. Clears the widget's "In slip" mark for that selection. Call it whenever a leg
83
82
  leaves your slip for any reason, a "clear all" included. A leg the widget still believes is in
84
83
  the slip can be reported as bet later.