@nivaro/react 0.1.294 → 0.1.296

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.ts CHANGED
@@ -1711,6 +1711,29 @@ export declare function fiscalQuarterOf(d: Date, startMonth?: number): number;
1711
1711
 
1712
1712
  export declare function fiscalYearOf(d: Date, startMonth?: number): number;
1713
1713
 
1714
+ /** The window event a host's socket layer dispatches on `client:force-refresh`. */
1715
+ export declare const FORCE_RELOAD_EVENT = "nvr:force-refresh";
1716
+
1717
+ /**
1718
+ * Remote client reload: an admin pushed `POST /realtime/force-refresh` (to
1719
+ * everyone, to one app, or to named people) and this tab was told. Shows a
1720
+ * countdown, then reloads — the "Reload now" button skips the wait.
1721
+ *
1722
+ * The socket listener lives in each host (admin `lib/socket.ts`, efp-new
1723
+ * `lib/socket.ts`): it turns the socket event into the `nvr:force-refresh`
1724
+ * window event, so this component needs no client and mounts anywhere near
1725
+ * the app root. Mount it once per host.
1726
+ *
1727
+ * A second push while a countdown is running restarts the clock with the
1728
+ * newer duration — the later instruction wins.
1729
+ */
1730
+ export declare function ForceReloadBanner(): JSX.Element | null;
1731
+
1732
+ export declare interface ForceReloadDetail {
1733
+ seconds?: number;
1734
+ message?: string;
1735
+ }
1736
+
1714
1737
  export declare function formatDate(date: string | Date, opts?: Intl.DateTimeFormatOptions): string;
1715
1738
 
1716
1739
  export declare function formatDateTime(date: string | Date): string;