@caisual/kit 0.8.0 → 0.12.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.
@@ -8,6 +8,10 @@ export interface ManifestStanza {
8
8
  };
9
9
  lobby: boolean;
10
10
  persistent?: boolean;
11
+ boards?: Record<string, {
12
+ source: 'client' | 'server';
13
+ day?: 'submit' | 'start';
14
+ }>;
11
15
  roles: Array<{
12
16
  id: string;
13
17
  min: number;
@@ -43,6 +47,7 @@ export interface AdattatoreStanza {
43
47
  chiudi(connessione: string, codice: number, motivo: string): void;
44
48
  connessioniAttive(): readonly string[];
45
49
  ora(): number;
50
+ giorno?(ora: number): string;
46
51
  misuraCpu(): number;
47
52
  rivediVoce(): void;
48
53
  programmaTick(intervalloMs: number | null): void;
@@ -95,6 +100,14 @@ export interface StatoPersistito {
95
100
  hostId: string | null;
96
101
  result: JsonValue | null;
97
102
  resultAt: number | null;
103
+ daily?: import('../daily.js').DailyContext;
104
+ rivincita?: {
105
+ keepSetup: boolean;
106
+ autoStart: boolean;
107
+ } | null;
108
+ prontiPrecedenti?: string[];
109
+ countdownRivincita?: boolean;
110
+ rivincitaFinoA?: number | null;
98
111
  countdownAt: number | null;
99
112
  timer: TimerPersistito[];
100
113
  prossimoTimerId: number;
@@ -0,0 +1,2 @@
1
+ export type Text = (key: string, values?: Record<string, string | number>) => string;
2
+ export declare function createTextLoader(fetcher: typeof fetch, language: string, pathname?: string): () => Promise<Text>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caisual/kit",
3
- "version": "0.8.0",
3
+ "version": "0.12.0",
4
4
  "description": "Client and server kit for Caisual games",
5
5
  "type": "module",
6
6
  "files": [