@sensiblestats/widget-react 0.97.0 → 0.99.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,22 @@
1
1
  # @sensiblestats/widget-react
2
2
 
3
+ ## 0.99.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 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.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [5d0450f]
12
+ - @sensiblestats/widget-sdk@0.66.0
13
+
14
+ ## 0.98.0
15
+
16
+ ### Minor Changes
17
+
18
+ - Following tab opens with the pinned match header from Today data (or a skeleton) instead of a blank wait, and an open market shows a loading row; pinning a football match warms its default market.
19
+
3
20
  ## 0.97.0
4
21
 
5
22
  ### 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