@simple-parlay/components 2.3.0 → 2.3.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.
@@ -255,7 +255,14 @@ export interface TopPayoutEntry {
255
255
  export interface TopPayoutsResponse {
256
256
  top_payouts: TopPayoutEntry[];
257
257
  }
258
- export type DeviceContext = Record<string, string | number | boolean | null | undefined>;
258
+ type DeviceContextValue = string | number | boolean | null | undefined;
259
+ /** Where a bet was placed. `Source` (e.g. Platform.OS) fills the BLADE portal's Channel column. */
260
+ export interface DeviceContext {
261
+ Source?: DeviceContextValue;
262
+ UserAgent?: DeviceContextValue;
263
+ DeviceModelName?: DeviceContextValue;
264
+ DeviceOS?: DeviceContextValue;
265
+ }
259
266
  export type DeviceContextProp = DeviceContext | (() => DeviceContext | Promise<DeviceContext>);
260
267
  export interface PlaceEntryFlowProps {
261
268
  apiUrl: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simple-parlay/components",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "UI components, hooks, and utilities for React and React Native",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -81,7 +81,7 @@
81
81
  "@types/react": "^18.2.45",
82
82
  "@types/react-dom": "^18.2.18",
83
83
  "@vitejs/plugin-react": "^5.2.0",
84
- "happy-dom": "^20.6.1",
84
+ "happy-dom": "^21.0.4",
85
85
  "msw": "^2.12.10",
86
86
  "react": "^18.2.0",
87
87
  "react-dom": "^18.2.0",