valtech-components 4.0.562 → 4.0.564

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.
Files changed (26) hide show
  1. package/esm2022/lib/components/organisms/mini-games/chessimals-challenge-progress.service.mjs +16 -2
  2. package/esm2022/lib/components/organisms/mini-games/chessimals-game.component.mjs +160 -55
  3. package/esm2022/lib/components/organisms/mini-games/christianity-card.component.mjs +9 -3
  4. package/esm2022/lib/components/organisms/mini-games/christianity-game.component.mjs +31 -12
  5. package/esm2022/lib/components/organisms/mini-games/mini-games.i18n.mjs +41 -7
  6. package/esm2022/lib/components/organisms/organization-view/organization-view.component.mjs +34 -29
  7. package/esm2022/lib/components/organisms/organization-view/types.mjs +1 -1
  8. package/esm2022/lib/version.mjs +2 -2
  9. package/fesm2022/valtech-components.mjs +286 -103
  10. package/fesm2022/valtech-components.mjs.map +1 -1
  11. package/lib/components/molecules/phone-display/phone-display.component.d.ts +1 -1
  12. package/lib/components/organisms/mini-games/chessimals-challenge-progress.service.d.ts +1 -1
  13. package/lib/components/organisms/mini-games/chessimals-game.component.d.ts +11 -1
  14. package/lib/components/organisms/organization-view/types.d.ts +5 -0
  15. package/lib/version.d.ts +1 -1
  16. package/package.json +1 -1
  17. package/src/lib/assets/games/chessimals/challenge-avatars/sprinter.png +0 -0
  18. package/src/lib/assets/games/chessimals/mode-icons/path-borderless.png +0 -0
  19. package/src/lib/assets/games/chessimals/mode-icons/path.jpg +0 -0
  20. package/src/lib/assets/games/chessimals/path/README.md +15 -0
  21. package/src/lib/assets/games/chessimals/path/favorite-power.png +0 -0
  22. package/src/lib/assets/games/chessimals/path/progress-map.png +0 -0
  23. package/src/lib/assets/games/chessimals/path/streak.png +0 -0
  24. package/src/lib/assets/games/chessimals/path/trophy.png +0 -0
  25. package/src/lib/assets/games/chessimals/rules/capture.jpg +0 -0
  26. package/src/lib/assets/games/chessimals/tutorial-solo-clean.png +0 -0
@@ -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>;
@@ -18,7 +18,7 @@ export declare class ChessimalsChallengeProgressService {
18
18
  completed: boolean;
19
19
  roundStats: ChessimalsChallengeRoundStats;
20
20
  }): Promise<void>;
21
- recordModeResult(mode: Exclude<ChessimalsStatsMode, 'challenge'>, won: boolean): Promise<void>;
21
+ recordModeResult(mode: Exclude<ChessimalsStatsMode, 'challenge'>, won: boolean, roundStats?: ChessimalsChallengeRoundStats): Promise<void>;
22
22
  emptyStats(): ChessimalsChallengeStats;
23
23
  private readStats;
24
24
  private normalizeStats;
@@ -59,6 +59,12 @@ interface ChessimalsProgressRingView {
59
59
  detail: string;
60
60
  progress: string;
61
61
  }
62
+ interface ChessimalsPathHighlightView {
63
+ title: string;
64
+ body: string;
65
+ value: string;
66
+ imageSrc: string;
67
+ }
62
68
  interface ChessimalsMoveScoreView {
63
69
  combo: number;
64
70
  label: string;
@@ -114,7 +120,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
114
120
  readonly botProfiles: ChessimalsBotProfile[];
115
121
  readonly challengeLadder: ChessimalsChallengeBot[];
116
122
  readonly animals: ChessimalsAnimalView[];
117
- readonly valtechComponentsVersion = "4.0.562";
123
+ readonly valtechComponentsVersion = "4.0.564";
118
124
  readonly screen: import("@angular/core").WritableSignal<"home" | "challenge" | "path" | "game">;
119
125
  readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
120
126
  readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
@@ -436,6 +442,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
436
442
  challengeMenuClearedRound(): number;
437
443
  private challengeMenuRun;
438
444
  challengeBotName(bot: ChessimalsChallengeBot): string;
445
+ challengeBotIntro(bot: ChessimalsChallengeBot): string;
439
446
  challengeBotDifficultyLabel(bot: ChessimalsChallengeBot): string;
440
447
  challengeBotStyleLine(bot: ChessimalsChallengeBot): string;
441
448
  challengeBotStatusLabel(bot: ChessimalsChallengeBot): string;
@@ -470,6 +477,8 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
470
477
  modeWinRateLabel(mode: ChessimalsStatsMode): string;
471
478
  modeStatsLine(mode: ChessimalsStatsMode): string;
472
479
  progressPowerStats(): ChessimalsProgressMetricView[];
480
+ pathHighlights(): ChessimalsPathHighlightView[];
481
+ favoritePowerLabel(): string;
473
482
  progressRings(): ChessimalsProgressRingView[];
474
483
  progressMetricPercent(value: string | number): string;
475
484
  private progressRing;
@@ -484,6 +493,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
484
493
  private scoreChessimalsMove;
485
494
  private colorFromPieceId;
486
495
  private createChallengeRoundStats;
496
+ private createPlayerRoundStats;
487
497
  private modeStatsResult;
488
498
  animalLabel(type: ChessimalsAnimalType): string;
489
499
  animalGlyph(type: ChessimalsAnimalType): string;
@@ -45,6 +45,11 @@ export interface OrganizationViewConfig {
45
45
  * exige además ser owner (gating RBAC interno vía `isOwner()`).
46
46
  */
47
47
  showDeleteOrg?: boolean;
48
+ /**
49
+ * Muestra la sección "Integraciones (API Keys)". Default `true`. El render real
50
+ * exige además permiso `api-keys:read`.
51
+ */
52
+ showApiKeys?: boolean;
48
53
  /**
49
54
  * Namespace i18n con el que la vista resuelve sus textos.
50
55
  * Default `'Settings.Organization'`.
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.562";
5
+ export declare const VERSION = "4.0.564";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.562",
3
+ "version": "4.0.564",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"
@@ -0,0 +1,15 @@
1
+ # Chessimals Path Assets
2
+
3
+ Small UI assets for the Chessimals "Mi camino" progress view.
4
+
5
+ - `progress-map.png`: adventure/progress map.
6
+ - `trophy.png`: victories and trophies.
7
+ - `streak.png`: win streaks or recent momentum.
8
+ - `favorite-power.png`: favorite animal power card.
9
+
10
+ Each asset is a transparent 512x512 PNG generated from the current Chessimals
11
+ retro game style. Keep labels in Angular/i18n, not inside the images.
12
+
13
+ Only the sweet pawn and the four Chessimals animals belong in this asset family:
14
+ lion, eagle, kangaroo, and bull. Do not introduce unrelated animals or mascot
15
+ characters here.