@adiakys/feeling-lucky 0.2.0 → 0.3.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/README.md +53 -1
- package/dist/config/types.d.ts +5 -0
- package/dist/{de-B56NsnDF.js → de-CmzpGbNK.js} +11 -1
- package/dist/developer/panel.d.ts +1 -0
- package/dist/developer/settings.d.ts +1 -0
- package/dist/{es-9iWwCe8s.js → es-k_kS6Fn2.js} +11 -1
- package/dist/feeling-lucky.iife.js +395 -243
- package/dist/feeling-lucky.js +17 -41
- package/dist/{fr-Y2BcCS3U.js → fr-GuCZB1l4.js} +11 -1
- package/dist/games/cards/table.d.ts +3 -1
- package/dist/{i18n-it2FlmVZ.js → i18n-Cid8bj2R.js} +15 -5
- package/dist/icons-DTaPp44c.js +863 -0
- package/dist/{it-CNSOLgaT.js → it-BNztlqHd.js} +11 -1
- package/dist/locales/de/cards.d.ts +7 -0
- package/dist/locales/de/developer.d.ts +3 -0
- package/dist/locales/en/cards.d.ts +7 -0
- package/dist/locales/en/developer.d.ts +3 -0
- package/dist/locales/es/cards.d.ts +7 -0
- package/dist/locales/es/developer.d.ts +3 -0
- package/dist/locales/fr/cards.d.ts +7 -0
- package/dist/locales/fr/developer.d.ts +3 -0
- package/dist/locales/it/cards.d.ts +7 -0
- package/dist/locales/it/developer.d.ts +3 -0
- package/dist/mount-CMm0qSYk.js +6257 -0
- package/dist/multiplayer/blackjack.d.ts +35 -0
- package/dist/multiplayer/client.d.ts +55 -0
- package/dist/multiplayer/holdem.d.ts +21 -0
- package/dist/multiplayer/index.d.ts +2 -0
- package/dist/multiplayer/seats.d.ts +16 -0
- package/dist/multiplayer/shared.d.ts +33 -0
- package/dist/multiplayer-CN0t0j_F.js +502 -0
- package/dist/{panel-tWJMt9kl.js → panel-BVgq3Cm5.js} +158 -145
- package/dist/resolve-Dc48n2Jo.js +28 -0
- package/dist/room/room.d.ts +7 -1
- package/dist/runtime/context.d.ts +2 -1
- package/package.json +2 -2
- package/dist/mount-CBUkAcVV.js +0 -7109
package/dist/room/room.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropertyValues } from 'lit';
|
|
2
|
-
import type { Dealer, Messages, Player, Prize, Win } from '../config/types';
|
|
2
|
+
import type { Dealer, Messages, Multiplayer, Player, Prize, Win } from '../config/types';
|
|
3
3
|
import { type RoomContext } from '../runtime/context';
|
|
4
4
|
import { LuckyElement } from '../runtime/element';
|
|
5
5
|
import '../games';
|
|
@@ -12,6 +12,10 @@ declare module '../engine/rig' {
|
|
|
12
12
|
context: Record<string, never>;
|
|
13
13
|
value: string;
|
|
14
14
|
};
|
|
15
|
+
multiplayer: {
|
|
16
|
+
context: Record<string, never>;
|
|
17
|
+
value: boolean;
|
|
18
|
+
};
|
|
15
19
|
}
|
|
16
20
|
}
|
|
17
21
|
export interface RoomConfig {
|
|
@@ -21,6 +25,7 @@ export interface RoomConfig {
|
|
|
21
25
|
dealers?: Dealer[];
|
|
22
26
|
locale?: string;
|
|
23
27
|
messages: Record<string, Messages>;
|
|
28
|
+
multiplayer?: Multiplayer;
|
|
24
29
|
onWin?: (win: Win) => void;
|
|
25
30
|
onClaim?: (win: Win) => Promise<void>;
|
|
26
31
|
developer: {
|
|
@@ -56,6 +61,7 @@ export declare class Room extends LuckyElement {
|
|
|
56
61
|
private get theme();
|
|
57
62
|
protected willUpdate(changed: PropertyValues<this>): void;
|
|
58
63
|
private get dealers();
|
|
64
|
+
private get shared();
|
|
59
65
|
private locale;
|
|
60
66
|
private context;
|
|
61
67
|
private go;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TemplateResult } from 'lit';
|
|
2
|
-
import type { Dealer, GameId, Player, Prize, Tier } from '../config/types';
|
|
2
|
+
import type { Dealer, GameId, Multiplayer, Player, Prize, Tier } from '../config/types';
|
|
3
3
|
import type { Award, Board } from '../engine/awards';
|
|
4
4
|
import type { Outcome } from '../engine/outcome';
|
|
5
5
|
import type { Translate } from './i18n';
|
|
@@ -15,6 +15,7 @@ export interface RoomContext {
|
|
|
15
15
|
prizeIds: string[];
|
|
16
16
|
board: Board;
|
|
17
17
|
player: Player | null;
|
|
18
|
+
multiplayer?: Multiplayer;
|
|
18
19
|
dealers: Dealer[];
|
|
19
20
|
locale: string;
|
|
20
21
|
locales: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adiakys/feeling-lucky",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "A casino room for any web app: classic casino games that award the prizes you configure.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"casino",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
|
-
"dev": "vite
|
|
36
|
+
"dev": "vite --config vite.demo.config.ts",
|
|
37
37
|
"build": "vite build && tsc -p tsconfig.build.json",
|
|
38
38
|
"test": "vitest run",
|
|
39
39
|
"test:e2e": "playwright test",
|