@classic-homes/maps-core 0.3.0 → 0.4.1

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.
@@ -145,6 +145,12 @@ interface MapErrorEventParams {
145
145
  source?: string;
146
146
  /** Original error object */
147
147
  error?: Error;
148
+ /**
149
+ * True when the error replaced the map with the error panel (it happened
150
+ * before the map first loaded). False for failures after load — a missing
151
+ * tile or sprite — where the map stays up.
152
+ */
153
+ fatal?: boolean;
148
154
  }
149
155
 
150
156
  /**
@@ -145,6 +145,12 @@ interface MapErrorEventParams {
145
145
  source?: string;
146
146
  /** Original error object */
147
147
  error?: Error;
148
+ /**
149
+ * True when the error replaced the map with the error panel (it happened
150
+ * before the map first loaded). False for failures after load — a missing
151
+ * tile or sprite — where the map stays up.
152
+ */
153
+ fatal?: boolean;
148
154
  }
149
155
 
150
156
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/maps-core",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Core utilities and theme for Classic Theme maps",
5
5
  "keywords": [
6
6
  "maps",
@@ -49,9 +49,9 @@
49
49
  --primary-foreground: 0 0% 100%;
50
50
  --primary-hover: 357 71% 32%;
51
51
 
52
- --secondary: 72 11% 91%;
53
- --secondary-foreground: 0 0% 31%;
54
- --secondary-hover: 72 11% 82%;
52
+ --secondary: 71 10% 40%;
53
+ --secondary-foreground: 0 0% 100%;
54
+ --secondary-hover: 357 72% 39%;
55
55
 
56
56
  --muted: 72 11% 91%;
57
57
  --muted-foreground: 0 0% 48%;
@@ -107,7 +107,7 @@
107
107
 
108
108
  --secondary: 80 5% 32%;
109
109
  --secondary-foreground: 220 14% 96%;
110
- --secondary-hover: 87 6% 36%;
110
+ --secondary-hover: 357 72% 39%;
111
111
 
112
112
  --muted: 0 0% 30%;
113
113
  --muted-foreground: 218 11% 65%;
@@ -531,7 +531,7 @@
531
531
  background-color: hsl(var(--primary, 357 72% 39%));
532
532
  }
533
533
  .bg-secondary {
534
- background-color: hsl(var(--secondary, 72 11% 91%));
534
+ background-color: hsl(var(--secondary, 71 10% 40%));
535
535
  }
536
536
  .bg-success {
537
537
  background-color: hsl(var(--success, 160 84% 39%));
@@ -572,7 +572,7 @@
572
572
  color: hsl(var(--primary-foreground, 0 0% 100%));
573
573
  }
574
574
  .text-secondary-foreground {
575
- color: hsl(var(--secondary-foreground, 0 0% 31%));
575
+ color: hsl(var(--secondary-foreground, 0 0% 100%));
576
576
  }
577
577
  .text-success-foreground {
578
578
  color: hsl(var(--success-foreground, 0 0% 100%));
@@ -373,7 +373,7 @@
373
373
  background-color: hsl(var(--primary, 357 72% 39%));
374
374
  }
375
375
  .bg-secondary {
376
- background-color: hsl(var(--secondary, 72 11% 91%));
376
+ background-color: hsl(var(--secondary, 71 10% 40%));
377
377
  }
378
378
  .bg-success {
379
379
  background-color: hsl(var(--success, 160 84% 39%));
@@ -419,7 +419,7 @@
419
419
  color: hsl(var(--primary-foreground, 0 0% 100%));
420
420
  }
421
421
  .text-secondary-foreground {
422
- color: hsl(var(--secondary-foreground, 0 0% 31%));
422
+ color: hsl(var(--secondary-foreground, 0 0% 100%));
423
423
  }
424
424
  .text-success-foreground {
425
425
  color: hsl(var(--success-foreground, 0 0% 100%));