@nivaro/react 0.3.82 → 0.3.84

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.
@@ -9,7 +9,7 @@ import { noteReplayEvent as _e, createReplayCheckoutState as De } from "../share
9
9
  import { emitReplayTap as Te, setReplayRecorderMode as N, registerReplayCapture as qe, clipEndOffset as Le, withClipKind as Pe } from "../shared/lib/replay-capture.js";
10
10
  import { instrumentConsole as Ne, instrumentRequests as Fe, redactSecrets as Me } from "../shared/lib/replay-context.js";
11
11
  import { instrumentSocket as Oe } from "../shared/lib/replay-socket.js";
12
- const Ue = "nivaro-react@0.3.82", j = 1e4, We = 150, He = 3e3, Ke = 600, $e = (n) => `nvr_replay_resume${n ? `:${n}` : ""}`, G = () => typeof navigator > "u" || navigator.onLine !== !1;
12
+ const Ue = "nivaro-react@0.3.84", j = 1e4, We = 150, He = 3e3, Ke = 600, $e = (n) => `nvr_replay_resume${n ? `:${n}` : ""}`, G = () => typeof navigator > "u" || navigator.onLine !== !1;
13
13
  function Be(n) {
14
14
  return typeof n.url != "string" || typeof fetch != "function" ? null : (f, a) => {
15
15
  const u = typeof n.getToken == "function" ? n.getToken() : void 0, d = { "Content-Type": "application/json" };
package/dist/index.d.ts CHANGED
@@ -1178,6 +1178,15 @@ export declare function BulkActionButtons({ targets, enabledKeys, tone, disabled
1178
1178
  }) => void;
1179
1179
  }): JSX.Element;
1180
1180
 
1181
+ export declare function BulkRestrictedScopes({ userIds, dimension, onDone, onClose }: {
1182
+ userIds: string[];
1183
+ /** Scope dimension name; absent = the zone dimension (target `divisions`). */
1184
+ dimension?: string;
1185
+ /** After a successful Apply (the host clears its selection / refetches). */
1186
+ onDone?: () => void;
1187
+ onClose?: () => void;
1188
+ }): JSX.Element;
1189
+
1181
1190
  declare interface BulkRunResult {
1182
1191
  succeeded: number;
1183
1192
  failed: number;
@@ -1867,6 +1876,8 @@ export declare function clearFormSchemaCache(collection?: string): void;
1867
1876
  /** Sign-out: every entry on this browser goes, whoever's it was. */
1868
1877
  export declare function clearRecordOutbox(): Promise<void>;
1869
1878
 
1879
+ export declare function clearSignOutNote(): void;
1880
+
1870
1881
  /**
1871
1882
  * Browser chaos mode (#2840) — this tab's own requests fail or slow down for a set time, so a
1872
1883
  * tester can watch error boundaries, retry UI, autosave and the offline outbox do their job
@@ -7644,6 +7655,8 @@ export declare function parseMoneyInput(text: string): MoneyParse;
7644
7655
 
7645
7656
  export declare type ParseResult = ParseSuccess | ParseFailure;
7646
7657
 
7658
+ export declare function parseSignOutNote(v: unknown): SignOutNote | null;
7659
+
7647
7660
  declare interface ParseSuccess {
7648
7661
  ok: true;
7649
7662
  ast: ExprNode;
@@ -8953,6 +8966,8 @@ export declare function rankTeamForFilters(scopes: TeamScopeMap | undefined, fil
8953
8966
  /** The reaction palette — mirrored server-side; anything else is rejected. */
8954
8967
  export declare const REACTION_EMOJI: readonly ["👍", "✅", "👀", "🎉", "❤️", "😂"];
8955
8968
 
8969
+ export declare function readSignOutNote(): SignOutNote | null;
8970
+
8956
8971
  export declare interface ReadViewLayout {
8957
8972
  layout: {
8958
8973
  id: number;
@@ -10166,6 +10181,11 @@ export declare function runErrorAction(kind: ErrorActionKind, d: ErrorDescriptio
10166
10181
  * a foreign-app URL in a new tab). */
10167
10182
  export declare function runNotificationTarget(target: NotificationTarget, navigate: (path: string) => void): boolean;
10168
10183
 
10184
+ /** Two notes are the same sign-out (same moment, same text). */
10185
+ export declare function sameSignOutNote(a: SignOutNote | null, b: SignOutNote | null): boolean;
10186
+
10187
+ export declare function saveSignOutNote(note: SignOutNote): void;
10188
+
10169
10189
  declare type Scope = 'row' | 'group' | 'signal';
10170
10190
 
10171
10191
  declare interface ScopeDimensionLite {
@@ -10384,6 +10404,26 @@ declare interface SheetItem {
10384
10404
  */
10385
10405
  export declare function shouldUseWorkerSocket(url: string): boolean;
10386
10406
 
10407
+ /**
10408
+ * Sign-out note (2026-11-10, Rob): the message an administrator left when
10409
+ * signing a person out (api services/sign-out-note.ts). The person's open tabs
10410
+ * receive it on the socket (`session:signed-out-note`), keep it in
10411
+ * localStorage and show it on the sign-in page until they sign in again —
10412
+ * so someone away from their desk reads it when they come back.
10413
+ *
10414
+ * efp-new's socket layer writes the same key and shape (twin: efp-new
10415
+ * src/lib/sign-out-note.ts) so it works before it pins a package with this.
10416
+ */
10417
+ export declare const SIGN_OUT_NOTE_EVENT = "session:signed-out-note";
10418
+
10419
+ /** How long a browser keeps a note — the server keeps it as long (api sign-out-note.ts). */
10420
+ export declare const SIGN_OUT_NOTE_KEEP_MS: number;
10421
+
10422
+ export declare const SIGN_OUT_NOTE_KEY = "nvr:signout-note";
10423
+
10424
+ /** Window event: a note was just stored (the sign-in page shows it at once). */
10425
+ export declare const SIGN_OUT_NOTE_WINDOW_EVENT = "nvr:signed-out-note";
10426
+
10387
10427
  export declare function SignalCard({ signal, expanded, onToggle, onOpenRecord, onExplain, canExplain }: SignalCardProps): JSX.Element;
10388
10428
 
10389
10429
  export declare interface SignalCardProps {
@@ -10420,6 +10460,45 @@ declare interface SignalThreshold {
10420
10460
  max?: number;
10421
10461
  }
10422
10462
 
10463
+ export declare interface SignOutNote {
10464
+ /** The person signed out (upper-case id) — a shared browser shows it on the sign-in page
10465
+ * (anyone walking up sees why), but never carries it into someone else's sign-in. */
10466
+ user_id: string | null;
10467
+ message: string;
10468
+ by_name: string | null;
10469
+ /** ISO time of the sign-out. */
10470
+ at: string;
10471
+ }
10472
+
10473
+ /**
10474
+ * After the person signs in: the note a sign-out left for them, once. A tab
10475
+ * that showed it on the sign-in page already did its job (same note) — the
10476
+ * stored copy is cleared quietly; otherwise (no tab was open, another browser)
10477
+ * it is shown here until they dismiss it. Either way it is gone afterwards.
10478
+ *
10479
+ * Shared devices: only the server's answer for THIS signed-in person is ever
10480
+ * shown (GET /security/my/sign-out-note reads their own note). The browser's
10481
+ * copy — possibly someone else's sign-out — is only compared, then cleared on
10482
+ * every sign-in, so it never follows a different person into the app.
10483
+ */
10484
+ export declare function SignOutNoteAfterSignIn(): JSX.Element | null;
10485
+
10486
+ /**
10487
+ * The note an administrator left when signing this person out, on the sign-in
10488
+ * page (2026-11-10, Rob: "they can CLEARLY see and stays on the login page in
10489
+ * case they are away from computer"). A full-width, high-contrast band at the
10490
+ * top, the same in light and dark (amber with near-black text), readable from
10491
+ * across the room. It stays — through reloads — until they sign in again
10492
+ * (SignOutNoteAfterSignIn clears it).
10493
+ */
10494
+ export declare function SignOutNoteBanner(): JSX.Element | null;
10495
+
10496
+ /**
10497
+ * "Signed out by Rob Lee at 3:42 PM" — today's time alone, another day's
10498
+ * with its date ("on Nov 9 at 3:42 PM"); 12-hour, the viewer's own time zone.
10499
+ */
10500
+ export declare function signOutNoteHeading(note: SignOutNote, now?: Date): string;
10501
+
10423
10502
  declare type Size = {
10424
10503
  w: number;
10425
10504
  h: number;