valtech-components 4.0.377 → 4.0.379

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,7 +8,8 @@ interface ChessimalsAnimalView {
8
8
  assetSrc: string;
9
9
  tone: number;
10
10
  }
11
- type ChessimalsConfirmAction = 'restart' | 'home' | 'resign';
11
+ type ChessimalsConfirmAction = 'restart' | 'mode' | 'games' | 'resign';
12
+ type ChessimalsRematchState = 'none' | 'requested' | 'incoming';
12
13
  interface ChessimalsMovingPieceView {
13
14
  color: ChessimalsPlayerColor;
14
15
  fromRow: number;
@@ -58,6 +59,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
58
59
  readonly onlineUid: import("@angular/core").WritableSignal<string>;
59
60
  readonly onlineHistory: import("@angular/core").WritableSignal<ChessimalsHistoryEntry[]>;
60
61
  readonly resumeSplashVisible: import("@angular/core").WritableSignal<boolean>;
62
+ readonly rematchLoading: import("@angular/core").WritableSignal<boolean>;
61
63
  readonly loggedInUser: import("@angular/core").Signal<import("valtech-components").AuthUser>;
62
64
  readonly localPlayerProfile: import("@angular/core").Signal<import("./types").MiniGamePlayerProfile>;
63
65
  readonly localPlayerAvatar: import("@angular/core").Signal<string>;
@@ -77,6 +79,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
77
79
  readonly boardOrientationColor: import("@angular/core").Signal<ChessimalsPlayerColor>;
78
80
  readonly onlineRole: import("@angular/core").Signal<"waiting" | "pending" | ChessimalsPlayerColor | "spectator">;
79
81
  readonly canPlayCurrentTurn: import("@angular/core").Signal<boolean>;
82
+ readonly rematchState: import("@angular/core").Signal<ChessimalsRematchState>;
80
83
  readonly currentTurnTitle: import("@angular/core").Signal<string>;
81
84
  readonly winTitle: import("@angular/core").Signal<string>;
82
85
  readonly winBody: import("@angular/core").Signal<string>;
@@ -96,10 +99,12 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
96
99
  joinOnlineGameByCode(): Promise<void>;
97
100
  openOnlineGame(gameId: string): Promise<void>;
98
101
  restartGame(): void;
99
- resetToHome(): void;
102
+ resetToModeSetup(): void;
103
+ resetToGamesMenu(): void;
100
104
  private resetFinishedLocalGameForNextVisit;
101
105
  requestRestartGame(): void;
102
- requestResetToHome(): void;
106
+ requestChangeMode(): void;
107
+ requestChangeGame(): void;
103
108
  requestResign(): void;
104
109
  closeConfirmModal(): void;
105
110
  confirmPendingAction(token?: string): void;
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.377";
5
+ export declare const VERSION = "4.0.379";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.377",
3
+ "version": "4.0.379",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"