@sensiblestats/widget-react 0.98.0 → 0.100.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 +22 -0
- package/README.md +11 -0
- package/dist/index.cjs +2404 -1785
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2368 -1749
- package/dist/index.js.map +1 -1
- package/dist/styles.css +123 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @sensiblestats/widget-react
|
|
2
2
|
|
|
3
|
+
## 0.100.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- NFL cards: nfl_insight event, americanfootball market odds, sport map
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @sensiblestats/widget-sdk@0.67.0
|
|
13
|
+
|
|
14
|
+
## 0.99.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- 5d0450f: Add `config.page`. The greeting request carries the page the widget sits on, and a page change while mounted re-greets until the visitor has typed or tapped. Greeting tiles show `meta` in the hero's top row and draw `imageCodes` as text marks when there are no images.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [5d0450f]
|
|
23
|
+
- @sensiblestats/widget-sdk@0.66.0
|
|
24
|
+
|
|
3
25
|
## 0.98.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -38,6 +38,17 @@ Common `config` fields:
|
|
|
38
38
|
and personalization to your signed-in user.
|
|
39
39
|
- White-label branding — `logoUrl`, `headerTitle`, `accent`, `cta`, `surface`,
|
|
40
40
|
`ink`. Absent → the default SensibleStats look.
|
|
41
|
+
- `page` — the page the widget sits on, `{ sport, kind?, matchId?, competitionId? }`, so the
|
|
42
|
+
first greeting can lead with it. Football ids are bare (`'4820113'`); NBA ids are
|
|
43
|
+
`'nba:game:{id}'` or digits. `sport` is `'football'` or `'nba'`; the server answers any other
|
|
44
|
+
value with `unsupported_sport` and the visitor sees today's greeting, so check your spelling
|
|
45
|
+
rather than expecting a client-side error. The page rides on greeting requests only, never on a
|
|
46
|
+
typed or tapped turn. Omit it and the request is unchanged.
|
|
47
|
+
|
|
48
|
+
If `page` changes while the widget is mounted, it re-greets with the new page (after 300 ms,
|
|
49
|
+
so quick changes collapse), but only while the visitor has not typed or tapped anything. Once
|
|
50
|
+
the visitor has sent a message, a page change does nothing. The re-greet reads and writes no
|
|
51
|
+
stored conversation.
|
|
41
52
|
|
|
42
53
|
## Hooks: the slip and the match page
|
|
43
54
|
|