@sensiblestats/widget-react 0.72.0 → 0.72.2
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 +14 -0
- package/README.md +3 -4
- package/dist/index.cjs +7401 -7438
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +7431 -7468
- package/dist/index.js.map +1 -1
- package/dist/styles.css +7 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.72.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 77ecef1: Set the numbers: the numbers inside each sentence are now dropdowns instead of tap-to-cycle boxes, so it is clear they are a choice. Numbers with no picks today are marked "not today". Prices and totals with no picks cannot be chosen. A match count with no picks at the chosen total can be, and the row then says it is not available today.
|
|
8
|
+
|
|
9
|
+
## 0.72.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 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.
|
|
14
|
+
|
|
15
|
+
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.
|
|
16
|
+
|
|
3
17
|
## 0.72.0
|
|
4
18
|
|
|
5
19
|
### 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
|
|
80
|
-
|
|
81
|
-
|
|
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.
|