valtech-components 4.0.582 → 4.0.584

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.
@@ -89,6 +89,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
89
89
  private readonly audio;
90
90
  private readonly online;
91
91
  private readonly challengeProgress;
92
+ private readonly adventureProgress;
92
93
  private readonly router;
93
94
  private readonly toast;
94
95
  private readonly auth;
@@ -122,6 +123,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
122
123
  private lastOutcomeSoundKey;
123
124
  private lastChallengeHandledKey;
124
125
  private lastModeStatsHandledKey;
126
+ private lastAdventureHandledKey;
127
+ readonly adventureNodeId: import("@angular/core").WritableSignal<string>;
125
128
  private boardAnchor?;
126
129
  readonly boardSizes: ChessimalsBoardSize[];
127
130
  readonly localModes: ChessimalsLocalMode[];
@@ -130,7 +133,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
130
133
  readonly botProfiles: ChessimalsBotProfile[];
131
134
  readonly challengeLadder: ChessimalsChallengeBot[];
132
135
  readonly animals: ChessimalsAnimalView[];
133
- readonly valtechComponentsVersion = "4.0.582";
136
+ readonly valtechComponentsVersion = "4.0.584";
134
137
  readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
135
138
  readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
136
139
  readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
@@ -216,6 +219,12 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
216
219
  set onlineGameId(value: string | null | undefined);
217
220
  miniGamesRoute: string;
218
221
  projectionMode: boolean;
222
+ set adventureNode(params: {
223
+ nodeId: string;
224
+ profileId: ChessimalsBotProfileId;
225
+ difficulty: ChessimalsBotDifficulty;
226
+ boardSize: ChessimalsBoardSize;
227
+ } | undefined);
219
228
  readonly replayEntries: import("@angular/core").Signal<import("./types").ChessimalsMoveHistoryEntry[]>;
220
229
  readonly activeReviewIndex: import("@angular/core").Signal<number>;
221
230
  readonly hasReplayControls: import("@angular/core").Signal<boolean>;
@@ -287,6 +296,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
287
296
  constructor();
288
297
  ngOnDestroy(): void;
289
298
  ngOnInit(): void;
299
+ private startAdventureBattle;
300
+ private adventureStarsForGame;
290
301
  protected t(key: string): string;
291
302
  private shortUserId;
292
303
  private rangeValueToNumber;
@@ -336,6 +347,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
336
347
  openSettingsModal(): void;
337
348
  closeSettingsModal(): void;
338
349
  openPathView(): void;
350
+ openAdventureMode(): void;
339
351
  openAboutModal(): void;
340
352
  closeAboutModal(): void;
341
353
  handleAboutModalDismissed(): void;
@@ -543,6 +555,6 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
543
555
  private chessimalsGameRoute;
544
556
  private capitalize;
545
557
  static ɵfac: i0.ɵɵFactoryDeclaration<ChessimalsGameComponent, never>;
546
- static ɵcmp: i0.ɵɵComponentDeclaration<ChessimalsGameComponent, "val-chessimals-game", never, { "onlineGameId": { "alias": "onlineGameId"; "required": false; }; "miniGamesRoute": { "alias": "miniGamesRoute"; "required": false; }; "projectionMode": { "alias": "projectionMode"; "required": false; }; }, {}, never, never, true, never>;
558
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChessimalsGameComponent, "val-chessimals-game", never, { "onlineGameId": { "alias": "onlineGameId"; "required": false; }; "miniGamesRoute": { "alias": "miniGamesRoute"; "required": false; }; "projectionMode": { "alias": "projectionMode"; "required": false; }; "adventureNode": { "alias": "adventureNode"; "required": false; }; }, {}, never, never, true, never>;
547
559
  }
548
560
  export {};
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.582";
5
+ export declare const VERSION = "4.0.584";
@@ -39,6 +39,13 @@ export declare class BubbleBlitzGamePageComponent {
39
39
  static ɵcmp: i0.ɵɵComponentDeclaration<BubbleBlitzGamePageComponent, "val-bubble-blitz-game-page", never, {}, {}, never, never, true, never>;
40
40
  }
41
41
  export declare class ChessimalsGamePageComponent {
42
+ private readonly route;
43
+ get adventureParams(): {
44
+ nodeId: string;
45
+ profileId: import("valtech-components").ChessimalsBotProfileId;
46
+ difficulty: import("valtech-components").ChessimalsBotDifficulty;
47
+ boardSize: import("valtech-components").ChessimalsBoardSize;
48
+ };
42
49
  static ɵfac: i0.ɵɵFactoryDeclaration<ChessimalsGamePageComponent, never>;
43
50
  static ɵcmp: i0.ɵɵComponentDeclaration<ChessimalsGamePageComponent, "val-chessimals-game-page", never, {}, {}, never, never, true, never>;
44
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.582",
3
+ "version": "4.0.584",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"