valtech-components 4.0.486 → 4.0.487

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.
@@ -117,7 +117,7 @@ export declare class ChessimalsGameComponent implements OnInit, OnDestroy {
117
117
  readonly botProfiles: ChessimalsBotProfile[];
118
118
  readonly challengeLadder: ChessimalsChallengeBot[];
119
119
  readonly animals: ChessimalsAnimalView[];
120
- readonly valtechComponentsVersion = "4.0.486";
120
+ readonly valtechComponentsVersion = "4.0.487";
121
121
  readonly screen: import("@angular/core").WritableSignal<"home" | "game">;
122
122
  readonly selectedBoardSize: import("@angular/core").WritableSignal<ChessimalsBoardSize>;
123
123
  readonly selectedLocalMode: import("@angular/core").WritableSignal<ChessimalsLocalMode>;
@@ -1,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export type ChristianityCardRenderType = 'leader' | 'character' | 'offering' | 'wisdom' | 'action' | 'tool' | 'place' | 'event';
3
- export type ChristianityCardRenderVariant = 'full' | 'table' | 'hand' | 'list' | 'back';
3
+ export type ChristianityCardRenderVariant = 'full' | 'baby' | 'table' | 'hand' | 'list' | 'back';
4
4
  export interface ChristianityCardRenderModel {
5
5
  id: string;
6
6
  name: string;
@@ -35,7 +35,7 @@ export declare class ChristianityCardComponent {
35
35
  protected readonly typeIconUrl: import("@angular/core").Signal<string>;
36
36
  protected readonly showTypeIcon: import("@angular/core").Signal<boolean>;
37
37
  protected readonly headerMetric: import("@angular/core").Signal<{
38
- kind: 'number' | 'pips';
38
+ kind: 'number' | 'pips' | 'cost-symbol';
39
39
  value: number;
40
40
  }>;
41
41
  protected readonly cardStatsText: import("@angular/core").Signal<string>;
@@ -8,7 +8,7 @@ interface ChristianityCardPreview {
8
8
  meta: string;
9
9
  body: string;
10
10
  cardId?: string;
11
- source?: 'hand' | 'board' | 'pile';
11
+ source?: 'hand' | 'board' | 'pile' | 'history';
12
12
  }
13
13
  interface ChristianityInfoPanel {
14
14
  title: string;
@@ -27,13 +27,24 @@ interface ChristianityPreviewTilt {
27
27
  shiftX: number;
28
28
  shiftY: number;
29
29
  }
30
+ interface ChristianityImpactEvent {
31
+ id: number;
32
+ text: string;
33
+ tone: 'damage' | 'heal' | 'resource';
34
+ seat: ChristianitySeat;
35
+ target: 'leader' | 'battle' | 'offerings';
36
+ }
30
37
  type ChristianityGalleryTypeFilter = 'all' | ChristianityCardType;
31
38
  type ChristianityScreen = 'splash' | 'home' | 'table';
32
39
  type ChristianityCatalogLoadState = 'loading' | 'ready' | 'fallback';
33
40
  export declare class ChristianityGameComponent {
34
41
  private i18n;
42
+ private readonly document;
43
+ private readonly destroyRef;
35
44
  private readonly bootStartedAt;
36
45
  private botTurnTimer;
46
+ private impactEventSequence;
47
+ private readonly impactTimers;
37
48
  protected readonly game: import("@angular/core").WritableSignal<ChristianityGameState>;
38
49
  protected readonly screen: import("@angular/core").WritableSignal<ChristianityScreen>;
39
50
  protected readonly catalogLoadState: import("@angular/core").WritableSignal<ChristianityCatalogLoadState>;
@@ -47,6 +58,7 @@ export declare class ChristianityGameComponent {
47
58
  protected readonly showHistory: import("@angular/core").WritableSignal<boolean>;
48
59
  protected readonly showGallery: import("@angular/core").WritableSignal<boolean>;
49
60
  protected readonly offeringsSeat: import("@angular/core").WritableSignal<ChristianitySeat>;
61
+ protected readonly impactEvents: import("@angular/core").WritableSignal<ChristianityImpactEvent[]>;
50
62
  protected readonly cardCatalog: import("@angular/core").WritableSignal<Record<string, ChristianityCardDefinition>>;
51
63
  protected readonly allCatalogCards: import("@angular/core").WritableSignal<ChristianityCardDefinition[]>;
52
64
  protected readonly catalogLoaded: import("@angular/core").WritableSignal<boolean>;
@@ -68,6 +80,8 @@ export declare class ChristianityGameComponent {
68
80
  value: ChristianityGalleryTypeFilter;
69
81
  label: string;
70
82
  }[]>;
83
+ protected readonly hasModalOverlay: import("@angular/core").Signal<boolean>;
84
+ protected readonly canNavigateHistoryPreview: import("@angular/core").Signal<boolean>;
71
85
  protected readonly splashStatusText: import("@angular/core").Signal<string>;
72
86
  protected readonly startFeaturedCards: import("@angular/core").Signal<ChristianityCardDefinition[]>;
73
87
  protected readonly futureModes: import("@angular/core").Signal<{
@@ -99,6 +113,7 @@ export declare class ChristianityGameComponent {
99
113
  protected startFeaturedCardTransform(index: number): string;
100
114
  protected cardTypeLabel(card: ChristianityCardDefinition): string;
101
115
  protected definitionToRenderCard(card: ChristianityCardDefinition, overrides?: Partial<ChristianityCardRenderModel>): ChristianityCardRenderModel;
116
+ protected hiddenCardRenderCard(): ChristianityCardRenderModel;
102
117
  private defaultCardBody;
103
118
  protected characterRenderCard(card: ChristianityCharacterInstance): ChristianityCardRenderModel;
104
119
  protected leaderRenderCard(player: ChristianityPlayerState): ChristianityCardRenderModel;
@@ -152,13 +167,17 @@ export declare class ChristianityGameComponent {
152
167
  protected closeInfo(): void;
153
168
  protected openOfferings(seat: ChristianitySeat): void;
154
169
  protected openHistory(): void;
170
+ protected closeHistory(): void;
155
171
  protected closeOfferings(): void;
156
172
  protected openGallery(): void;
157
173
  protected closeGallery(): void;
174
+ protected navigateHistoryPreview(direction: -1 | 1): void;
158
175
  protected setGallerySearch(event: Event): void;
159
176
  protected setGalleryType(event: Event): void;
160
177
  protected tiltPreview(event: PointerEvent): void;
161
178
  protected resetPreviewTilt(): void;
179
+ private pushImpactEvent;
180
+ private pushImpactEvents;
162
181
  private clearBotTurn;
163
182
  private scheduleBotTurnIfNeeded;
164
183
  private runTutorialBotTurn;
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.486";
5
+ export declare const VERSION = "4.0.487";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.486",
3
+ "version": "4.0.487",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"