valtech-components 4.0.466 → 4.0.468

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.
@@ -57,6 +57,16 @@ interface ChessimalsProgressMetricView {
57
57
  label: string;
58
58
  value: string | number;
59
59
  }
60
+ interface ChessimalsMoveScoreView {
61
+ combo: number;
62
+ label: string;
63
+ score: number;
64
+ }
65
+ interface ChessimalsGameScoreView {
66
+ bestCombo: number;
67
+ bestMove?: ChessimalsMoveScoreView;
68
+ score: number;
69
+ }
60
70
  export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
61
71
  private readonly i18n;
62
72
  private readonly audio;
@@ -85,6 +95,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
85
95
  private turnTimerInterval;
86
96
  private turnTimerKey;
87
97
  private turnTimerDeadline;
98
+ private turnTimerDuration;
88
99
  private turnTimerExpiredKey;
89
100
  private pendingOnlineGameId;
90
101
  private openingOnlineGameId;
@@ -99,7 +110,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
99
110
  readonly botProfiles: ChessimalsBotProfile[];
100
111
  readonly challengeLadder: ChessimalsChallengeBot[];
101
112
  readonly animals: ChessimalsAnimalView[];
102
- readonly valtechComponentsVersion = "4.0.466";
113
+ readonly valtechComponentsVersion = "4.0.468";
103
114
  readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
104
115
  readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
105
116
  readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
@@ -205,11 +216,13 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
205
216
  readonly capturesByColor: import("@angular/core").Signal<Record<ChessimalsPlayerColor, number>>;
206
217
  readonly resultCaptures: import("@angular/core").Signal<number>;
207
218
  readonly resultPowers: import("@angular/core").Signal<ChessimalsAnimalType[]>;
219
+ readonly resultScore: import("@angular/core").Signal<ChessimalsGameScoreView>;
208
220
  readonly resultStats: import("@angular/core").Signal<{
209
221
  label: string;
210
222
  value: string;
211
223
  }[]>;
212
224
  readonly resultPowersLabel: import("@angular/core").Signal<string>;
225
+ readonly resultBestMoveLabel: import("@angular/core").Signal<string>;
213
226
  readonly shouldShowBotReport: import("@angular/core").Signal<boolean>;
214
227
  readonly botReportTitle: import("@angular/core").Signal<string>;
215
228
  readonly botReportBody: import("@angular/core").Signal<string>;
@@ -322,6 +335,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
322
335
  playerLabel(color: ChessimalsPlayerColor): string;
323
336
  capturesScoreLabel(): string;
324
337
  turnTimerLabel(): string;
338
+ turnTimerProgress(): string;
325
339
  isTurnTimerLow(): boolean;
326
340
  turnStateLabel(): string;
327
341
  turnStateBody(): string;
@@ -389,6 +403,9 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
389
403
  challengeTensionMoment(): ChessimalsChallengeTensionView | undefined;
390
404
  challengeHasNewRecord(): boolean;
391
405
  totalChallengePowers(stats?: ChessimalsChallengeRoundStats): number;
406
+ private createGameScore;
407
+ private scoreChessimalsMove;
408
+ private colorFromPieceId;
392
409
  private createChallengeRoundStats;
393
410
  private modeStatsResult;
394
411
  animalLabel(type: ChessimalsAnimalType): string;
@@ -76,6 +76,9 @@ export interface ChessimalsChallengeRoundStats {
76
76
  promotions: number;
77
77
  captures: number;
78
78
  moves: number;
79
+ score: number;
80
+ bestMoveScore: number;
81
+ bestCombo: number;
79
82
  }
80
83
  export interface ChessimalsChallengeRoundResult {
81
84
  round: number;
@@ -115,6 +118,10 @@ export interface ChessimalsChallengeStats {
115
118
  powersUsed: Record<ChessimalsAnimalType, number>;
116
119
  powerCaptures: number;
117
120
  promotions: number;
121
+ totalScore: number;
122
+ bestRoundScore: number;
123
+ bestMoveScore: number;
124
+ bestCombo: number;
118
125
  modeStats: Record<ChessimalsStatsMode, ChessimalsModeStats>;
119
126
  updatedAt?: string;
120
127
  }
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.466";
5
+ export declare const VERSION = "4.0.468";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.466",
3
+ "version": "4.0.468",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"