@oddsmith/ui 1.0.6 → 1.0.8
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/README.md +7 -5
- package/dist/assets/config/data.js +2 -2
- package/dist/constants/default-data.d.ts +2 -2
- package/dist/container/os-leaderboard-casino.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/store/casino.store.d.ts +4 -4
- package/dist/types/data.d.ts +19 -17
- package/dist/types/host.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/public.d.ts +1 -1
- package/dist/utils/data-resolve.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# Casino Leaderboard Component
|
|
2
2
|
|
|
3
|
-
Deploy a fully brandable casino leaderboard, ready to match your brand.
|
|
3
|
+
Deploy a fully brandable casino leaderboard, ready to match your brand. Your data, our UI.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import { OsLeaderboardCasino } from '@oddsmith/ui/os-leaderboard-casino';
|
|
7
|
-
```
|
|
5
|
+
A frontend engineer mounts the leaderboard on your site in any frontend stack. There is no Oddsmith backend to connect. You push the data into the component.
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
Create as many custom leaderboards that you need.
|
|
8
|
+
|
|
9
|
+
**Time to a live board: 1 day**
|
|
10
|
+
|
|
11
|
+
Try it: [oddsmith.io](https://oddsmith.io)
|
|
10
12
|
|
|
11
13
|
[Integration docs](https://app.notion.com/p/Client-integration-3c9437e762d68075b87ff9fd358678dd)
|
|
@@ -3,8 +3,8 @@ export default {
|
|
|
3
3
|
hero: {
|
|
4
4
|
title: "Midnight Millions",
|
|
5
5
|
description: "Climb the board before the timer hits zero.",
|
|
6
|
-
startsAt: "2026-08-
|
|
7
|
-
endsAt: "2026-08-
|
|
6
|
+
startsAt: "2026-08-20T16:04:56.641Z",
|
|
7
|
+
endsAt: "2026-08-31T06:04:56.641Z",
|
|
8
8
|
prizePool: 128450
|
|
9
9
|
},
|
|
10
10
|
currency: "USD",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResolvedLeaderboardData } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* Hardcoded campaign used when the host omits `.data`, and as the mix
|
|
4
4
|
* fallback for omitted keys on a partial bag.
|
|
5
5
|
*
|
|
6
6
|
* Clocks are computed at call time so a mounted instance with no `.data` stays live.
|
|
7
7
|
*/
|
|
8
|
-
export declare function buildDefaultData(now?: number):
|
|
8
|
+
export declare function buildDefaultData(now?: number): ResolvedLeaderboardData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement, nothing, PropertyValues } from 'lit';
|
|
2
2
|
import { LitTemplate } from '../.shared/lib/lit/template.js';
|
|
3
|
-
import {
|
|
3
|
+
import { LeaderboardData, LeaderboardHostProps, LeaderboardLabels, LeaderboardTheme, SectionId } from '../types';
|
|
4
4
|
import { CasinoStore } from '../store';
|
|
5
5
|
import { OsLeaderboardCasinoHost } from './os-leaderboard-casino.host.js';
|
|
6
6
|
/**
|
|
@@ -21,7 +21,7 @@ export declare class OsLeaderboardCasino extends LitElement implements OsLeaderb
|
|
|
21
21
|
static styles: import('lit').CSSResult[];
|
|
22
22
|
labels: LeaderboardLabels | null;
|
|
23
23
|
theme: Partial<LeaderboardTheme> | null;
|
|
24
|
-
data:
|
|
24
|
+
data: LeaderboardData | null;
|
|
25
25
|
/**
|
|
26
26
|
* Oddsmith demo surfaces only. Rolls an expired countdown forward
|
|
27
27
|
* if the campaign was still live at hydrate. Operator embeds omit this.
|