valtech-components 4.0.523 → 4.0.524

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.
@@ -30,7 +30,7 @@ export declare class MediaObjectComponent {
30
30
  /** Emitted when the inline link is clicked */
31
31
  onLinkClick: EventEmitter<string>;
32
32
  /** Merged configuration with defaults */
33
- config: import("@angular/core").Signal<MediaObjectMetadata & Required<Pick<MediaObjectMetadata, "circle" | "rounded" | "mediaWidth" | "reversed" | "align">>>;
33
+ config: import("@angular/core").Signal<MediaObjectMetadata & Required<Pick<MediaObjectMetadata, "rounded" | "circle" | "mediaWidth" | "reversed" | "align">>>;
34
34
  getColor(): string;
35
35
  handleLinkClick(event: MouseEvent): void;
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<MediaObjectComponent, never>;
@@ -6,7 +6,7 @@ export declare class PhoneDisplayComponent {
6
6
  props: PhoneDisplayMetadata;
7
7
  onClick: EventEmitter<string>;
8
8
  protected rawPhone: import("@angular/core").Signal<string>;
9
- protected mode: import("@angular/core").Signal<"button" | "text" | "link">;
9
+ protected mode: import("@angular/core").Signal<"button" | "link" | "text">;
10
10
  protected formatted: import("@angular/core").Signal<string>;
11
11
  protected href: import("@angular/core").Signal<string>;
12
12
  protected ariaLabel: import("@angular/core").Signal<string>;
@@ -32,7 +32,11 @@ export declare class ChessimalsChallengeProgressService {
32
32
  private runsPath;
33
33
  private readLocalActiveRun;
34
34
  private writeLocalActiveRun;
35
+ private clearLocalActiveRun;
35
36
  private localActiveRunKey;
37
+ private newestActiveRun;
38
+ private runProgressScore;
39
+ private runTime;
36
40
  private withoutUndefined;
37
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ChessimalsChallengeProgressService, never>;
38
42
  static ɵprov: i0.ɵɵInjectableDeclaration<ChessimalsChallengeProgressService>;
@@ -114,7 +114,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
114
114
  readonly botProfiles: ChessimalsBotProfile[];
115
115
  readonly challengeLadder: ChessimalsChallengeBot[];
116
116
  readonly animals: ChessimalsAnimalView[];
117
- readonly valtechComponentsVersion = "4.0.523";
117
+ readonly valtechComponentsVersion = "4.0.524";
118
118
  readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
119
119
  readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
120
120
  readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
@@ -178,6 +178,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
178
178
  readonly selectedBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
179
179
  readonly gameBotProfile: import("@angular/core").Signal<ChessimalsBotProfile>;
180
180
  readonly activeChallengeBot: import("@angular/core").Signal<ChessimalsChallengeBot>;
181
+ readonly resumableChallengeRun: import("@angular/core").Signal<ChessimalsChallengeRun>;
181
182
  set onlineGameId(value: string | null | undefined);
182
183
  miniGamesRoute: string;
183
184
  projectionMode: boolean;
@@ -255,12 +256,16 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
255
256
  private shortUserId;
256
257
  private rangeValueToNumber;
257
258
  startChallenge(): void;
259
+ requestNewChallenge(): void;
258
260
  openChallengeView(): void;
259
261
  backToHome(): void;
260
262
  private createNewChallengeRun;
263
+ private resetChallengeSessionState;
261
264
  resumeChallenge(run?: ChessimalsChallengeRun): void;
262
265
  continueChallenge(): void;
263
266
  private startChallengeRound;
267
+ private enterChallengeRound;
268
+ private isResumableChallengeRun;
264
269
  startGame(): void;
265
270
  private handleChallengeRoundFinished;
266
271
  private abandonChallengeIfNeeded;
@@ -272,6 +277,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
272
277
  restartGame(): void;
273
278
  exitTutorial(): void;
274
279
  resetToModeSetup(): void;
280
+ private returnChallengeToMenu;
275
281
  resetToGamesMenu(): void;
276
282
  private resetFinishedLocalGameForNextVisit;
277
283
  requestRestartGame(): void;
@@ -306,6 +312,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
306
312
  private isPromotionMove;
307
313
  private animateMove;
308
314
  private applyAnimatedMove;
315
+ private activeGameForRun;
316
+ private persistActiveChallengeGame;
317
+ private cloneChallengeGame;
309
318
  private playPowerUnlockSound;
310
319
  private queueBotTurnIfNeeded;
311
320
  private playBotTurn;
@@ -402,6 +411,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
402
411
  challengeOpeningBot(): ChessimalsChallengeBot;
403
412
  challengeMenuBot(): ChessimalsChallengeBot;
404
413
  challengeMenuRoundLabel(): string;
414
+ challengeMenuLivesLabel(): string;
415
+ challengeMenuClearedRound(): number;
416
+ private challengeMenuRun;
405
417
  challengeBotName(bot: ChessimalsChallengeBot): string;
406
418
  challengeBotDifficultyLabel(bot: ChessimalsChallengeBot): string;
407
419
  challengeBotStyleLine(bot: ChessimalsChallengeBot): string;
@@ -429,6 +441,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
429
441
  challengeRivalVoiceLabel(): string;
430
442
  challengeRivalVoiceTitle(): string;
431
443
  challengeRivalVoiceBody(): string;
444
+ private challengeVoiceText;
432
445
  challengeNextRivalLabel(): string;
433
446
  challengeContinueLabel(): string;
434
447
  challengeNextRivalHint(): string;
@@ -58,7 +58,7 @@ export declare class MemoryGameComponent implements OnDestroy {
58
58
  readonly playerName: import("@angular/core").Signal<string>;
59
59
  readonly activePlayerAvatar: import("@angular/core").Signal<string>;
60
60
  readonly activePlayerColor: import("@angular/core").Signal<string>;
61
- readonly timeLabel: import("@angular/core").Signal<"timeLeft" | "time">;
61
+ readonly timeLabel: import("@angular/core").Signal<"time" | "timeLeft">;
62
62
  readonly formattedTime: import("@angular/core").Signal<string>;
63
63
  readonly resultMedal: import("@angular/core").Signal<MemoryMedal>;
64
64
  readonly resultSeconds: import("@angular/core").Signal<number>;
@@ -108,6 +108,7 @@ export interface ChessimalsChallengeRun {
108
108
  currentStreak: number;
109
109
  botLadder: string[];
110
110
  roundResults: ChessimalsChallengeRoundResult[];
111
+ activeGame?: ChessimalsGameState;
111
112
  startedAt: string;
112
113
  lastEventAt?: string;
113
114
  updatedAt: string;
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.523";
5
+ export declare const VERSION = "4.0.524";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.523",
3
+ "version": "4.0.524",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"