@nivaro/react 0.3.129 → 0.3.131

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.
@@ -10,7 +10,7 @@ import { noteReplayIdle as Me, createReplayIdleState as Ne, REPLAY_IDLE_RESTART_
10
10
  import { noteReplayEvent as Ue, createReplayCheckoutState as We } from "../shared/lib/replay-checkout.js";
11
11
  import { instrumentConsole as He, instrumentRequests as Ke, redactSecrets as $e } from "../shared/lib/replay-context.js";
12
12
  import { instrumentSocket as Be } from "../shared/lib/replay-socket.js";
13
- const ze = "nivaro-react@0.3.129", V = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, X = () => typeof navigator > "u" || navigator.onLine !== !1;
13
+ const ze = "nivaro-react@0.3.131", V = 1e4, Ye = 150, xe = 3e3, je = 600, Ge = (o) => `nvr_replay_resume${o ? `:${o}` : ""}`, X = () => typeof navigator > "u" || navigator.onLine !== !1;
14
14
  function Je(o) {
15
15
  return typeof o.url != "string" || typeof fetch != "function" ? null : (f, u) => {
16
16
  const l = typeof o.getToken == "function" ? o.getToken() : void 0, d = { "Content-Type": "application/json" };
package/dist/index.d.ts CHANGED
@@ -3726,7 +3726,8 @@ export declare interface ErrorAction {
3726
3726
  * reload reload the page (someone else's changes, maintenance over)
3727
3727
  * sign-in the app's sign-in page, coming back here afterwards
3728
3728
  * go-back one step back in the app's history, else home
3729
- * contact the Support page in a new tab, a new request already filled in
3729
+ * contact the Get help dialog on this page (SupportDialogHost), else the
3730
+ * Support page in a new tab, a new request already filled in
3730
3731
  * with what happened and the reference — the work on this page
3731
3732
  * stays where it is
3732
3733
  *
@@ -8637,7 +8638,8 @@ export declare function openClientChaosToolbar(): void;
8637
8638
 
8638
8639
  export declare function openDmWith(userId: string, displayName?: string): void;
8639
8640
 
8640
- /** Open Support with the request filled in, in a new tab; this page keeps its work. */
8641
+ /** Ask for help with the request filled in: a dialog on this page when the app has one, else
8642
+ * the Support page in a new tab; either way this page keeps its work. */
8641
8643
  export declare function openSupportForError(d: ErrorDescription, extra?: {
8642
8644
  action?: string;
8643
8645
  }): void;
@@ -12918,6 +12920,14 @@ export declare interface SupportCategory {
12918
12920
  legacy: boolean;
12919
12921
  }
12920
12922
 
12923
+ /**
12924
+ * Mount ONCE at the app root, inside NivaroProvider + QueryClientProvider: every error's
12925
+ * "Get help" / "Ask for access" (ErrorNotice, error toasts, runErrorAction 'contact') then opens
12926
+ * the Get help dialog over the current page, filled in with what happened, instead of the
12927
+ * Support page in a new tab.
12928
+ */
12929
+ export declare function SupportDialogHost(): JSX.Element | null;
12930
+
12921
12931
  /**
12922
12932
  * Raise a support request (#999). With a record it is a change request about
12923
12933
  * that record and offers the types meant for its collection; without one it is