@dataemergencia/emergency 0.1.0 → 0.2.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.
package/dist/index.d.cts CHANGED
@@ -82,6 +82,20 @@ interface EmergencyTheme {
82
82
  readonly muted?: string;
83
83
  readonly radius?: string;
84
84
  }
85
+ interface EmergencyFontFamilyFlags {
86
+ /** Loads the Google Sans family. Defaults to `true`. */
87
+ readonly googleSans?: boolean;
88
+ /** Loads the Montserrat family. Defaults to `true`. */
89
+ readonly montserrat?: boolean;
90
+ /** Loads the Poppins family. Defaults to `true`. */
91
+ readonly poppins?: boolean;
92
+ }
93
+ interface EmergencyFontLoading {
94
+ /** Master switch for the runtime font request. Defaults to `true`. */
95
+ readonly load?: boolean;
96
+ /** Per-family switches. Every family defaults to `true`. */
97
+ readonly fonts?: EmergencyFontFamilyFlags;
98
+ }
85
99
  interface EmergencyGeolocation {
86
100
  readonly latitude: number;
87
101
  readonly longitude: number;
@@ -96,6 +110,12 @@ interface EmergencyConfig {
96
110
  readonly fallback?: EmergencyFallback;
97
111
  /** Optional theme values mapped to `--de-emergency-*` CSS variables. */
98
112
  readonly theme?: EmergencyTheme;
113
+ /**
114
+ * Optional runtime loading of the panel's Google Fonts. The client injects
115
+ * the stylesheet once, before the first paint. Defaults to loading every
116
+ * family.
117
+ */
118
+ readonly fontLoading?: EmergencyFontLoading;
99
119
  /** BCP 47 locale used for dates and numbers. Defaults to `es`. */
100
120
  readonly locale?: string;
101
121
  /** Geolocation timeout in milliseconds. Defaults to 8000. */
@@ -284,7 +304,6 @@ interface ActivateRequest {
284
304
  }
285
305
  interface RefreshResponse {
286
306
  readonly emergency: EmergencyPayload;
287
- readonly responders: readonly ResponderPayload[];
288
307
  }
289
308
  interface AbortResponse extends EmergencyResultPayload {
290
309
  readonly deleted: boolean;
@@ -409,5 +428,5 @@ export declare class EmergencyClientError extends Error {
409
428
  readonly error: EmergencyError;
410
429
  constructor(error: EmergencyError);
411
430
  }
412
- export type { AbortResponse, AbortResult, ActivateRequest, BffClient, BffClientOptions, ConfigResponse, CsrfStrategy, CurrentResponse, EmergencyClient, EmergencyClientState, EmergencyConfig, EmergencyController, EmergencyControllerDeps, EmergencyError, EmergencyErrorCode, EmergencyEventEmitter, EmergencyEventMap, EmergencyEventName, EmergencyFailure, EmergencyFallback, EmergencyGeolocation, EmergencyMountOptions, EmergencyOperation, EmergencyPhase, EmergencyPhaseName, EmergencyResultPayload, EmergencySnapshot, EmergencyStore, EmergencyTheme, EmergencyTrigger, FailurePayload, Message, MessageKind, PanelCloseReason, PanelOpenReason, RealtimeStatus, RefreshResponse, Responder, ResponderPayload, ResponderStatus, SessionResponse, SimulationResult };
431
+ export type { AbortResponse, AbortResult, ActivateRequest, BffClient, BffClientOptions, ConfigResponse, CsrfStrategy, CurrentResponse, EmergencyClient, EmergencyClientState, EmergencyConfig, EmergencyController, EmergencyControllerDeps, EmergencyError, EmergencyErrorCode, EmergencyEventEmitter, EmergencyEventMap, EmergencyEventName, EmergencyFailure, EmergencyFallback, EmergencyFontFamilyFlags, EmergencyFontLoading, EmergencyGeolocation, EmergencyMountOptions, EmergencyOperation, EmergencyPhase, EmergencyPhaseName, EmergencyResultPayload, EmergencySnapshot, EmergencyStore, EmergencyTheme, EmergencyTrigger, FailurePayload, Message, MessageKind, PanelCloseReason, PanelOpenReason, RealtimeStatus, RefreshResponse, Responder, ResponderPayload, ResponderStatus, SessionResponse, SimulationResult };
413
432
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -82,6 +82,20 @@ interface EmergencyTheme {
82
82
  readonly muted?: string;
83
83
  readonly radius?: string;
84
84
  }
85
+ interface EmergencyFontFamilyFlags {
86
+ /** Loads the Google Sans family. Defaults to `true`. */
87
+ readonly googleSans?: boolean;
88
+ /** Loads the Montserrat family. Defaults to `true`. */
89
+ readonly montserrat?: boolean;
90
+ /** Loads the Poppins family. Defaults to `true`. */
91
+ readonly poppins?: boolean;
92
+ }
93
+ interface EmergencyFontLoading {
94
+ /** Master switch for the runtime font request. Defaults to `true`. */
95
+ readonly load?: boolean;
96
+ /** Per-family switches. Every family defaults to `true`. */
97
+ readonly fonts?: EmergencyFontFamilyFlags;
98
+ }
85
99
  interface EmergencyGeolocation {
86
100
  readonly latitude: number;
87
101
  readonly longitude: number;
@@ -96,6 +110,12 @@ interface EmergencyConfig {
96
110
  readonly fallback?: EmergencyFallback;
97
111
  /** Optional theme values mapped to `--de-emergency-*` CSS variables. */
98
112
  readonly theme?: EmergencyTheme;
113
+ /**
114
+ * Optional runtime loading of the panel's Google Fonts. The client injects
115
+ * the stylesheet once, before the first paint. Defaults to loading every
116
+ * family.
117
+ */
118
+ readonly fontLoading?: EmergencyFontLoading;
99
119
  /** BCP 47 locale used for dates and numbers. Defaults to `es`. */
100
120
  readonly locale?: string;
101
121
  /** Geolocation timeout in milliseconds. Defaults to 8000. */
@@ -284,7 +304,6 @@ interface ActivateRequest {
284
304
  }
285
305
  interface RefreshResponse {
286
306
  readonly emergency: EmergencyPayload;
287
- readonly responders: readonly ResponderPayload[];
288
307
  }
289
308
  interface AbortResponse extends EmergencyResultPayload {
290
309
  readonly deleted: boolean;
@@ -409,5 +428,5 @@ export declare class EmergencyClientError extends Error {
409
428
  readonly error: EmergencyError;
410
429
  constructor(error: EmergencyError);
411
430
  }
412
- export type { AbortResponse, AbortResult, ActivateRequest, BffClient, BffClientOptions, ConfigResponse, CsrfStrategy, CurrentResponse, EmergencyClient, EmergencyClientState, EmergencyConfig, EmergencyController, EmergencyControllerDeps, EmergencyError, EmergencyErrorCode, EmergencyEventEmitter, EmergencyEventMap, EmergencyEventName, EmergencyFailure, EmergencyFallback, EmergencyGeolocation, EmergencyMountOptions, EmergencyOperation, EmergencyPhase, EmergencyPhaseName, EmergencyResultPayload, EmergencySnapshot, EmergencyStore, EmergencyTheme, EmergencyTrigger, FailurePayload, Message, MessageKind, PanelCloseReason, PanelOpenReason, RealtimeStatus, RefreshResponse, Responder, ResponderPayload, ResponderStatus, SessionResponse, SimulationResult };
431
+ export type { AbortResponse, AbortResult, ActivateRequest, BffClient, BffClientOptions, ConfigResponse, CsrfStrategy, CurrentResponse, EmergencyClient, EmergencyClientState, EmergencyConfig, EmergencyController, EmergencyControllerDeps, EmergencyError, EmergencyErrorCode, EmergencyEventEmitter, EmergencyEventMap, EmergencyEventName, EmergencyFailure, EmergencyFallback, EmergencyFontFamilyFlags, EmergencyFontLoading, EmergencyGeolocation, EmergencyMountOptions, EmergencyOperation, EmergencyPhase, EmergencyPhaseName, EmergencyResultPayload, EmergencySnapshot, EmergencyStore, EmergencyTheme, EmergencyTrigger, FailurePayload, Message, MessageKind, PanelCloseReason, PanelOpenReason, RealtimeStatus, RefreshResponse, Responder, ResponderPayload, ResponderStatus, SessionResponse, SimulationResult };
413
432
  //# sourceMappingURL=index.d.ts.map