@nivaro/react 0.3.146 → 0.3.148

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.146", 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.148", 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
@@ -5599,6 +5599,34 @@ export declare function HScrollProxy({ scrollerRef }: {
5599
5599
  scrollerRef: React_2.RefObject<HTMLDivElement | null>;
5600
5600
  }): React_2.JSX.Element | null;
5601
5601
 
5602
+ /** App switcher: the other apps this person uses through the Hub. Mount only when the server
5603
+ * lists the `hub_switcher` feature (GET /api/hub-switcher answers 404 otherwise). */
5604
+ export declare function HubSwitcher({ variant, className }: {
5605
+ variant?: 'rail' | 'header';
5606
+ className?: string;
5607
+ }): JSX.Element;
5608
+
5609
+ declare interface HubSwitcherApp {
5610
+ app_key: string;
5611
+ app_name: string;
5612
+ environment_key: string;
5613
+ url: string;
5614
+ signin_url: string;
5615
+ current: boolean;
5616
+ }
5617
+
5618
+ declare interface HubSwitcherData {
5619
+ apps: HubSwitcherApp[];
5620
+ unavailable: boolean;
5621
+ }
5622
+
5623
+ export declare function HubSwitcherView({ apps, unavailable, variant, defaultOpen, className }: HubSwitcherData & {
5624
+ variant?: 'rail' | 'header';
5625
+ defaultOpen?: boolean;
5626
+ /** Appended to the trigger button's classes (a host matching its own icon buttons). */
5627
+ className?: string;
5628
+ }): JSX.Element | null;
5629
+
5602
5630
  export declare function HuddleCallLayer(): ReactPortal | null;
5603
5631
 
5604
5632
  /** Hosts whose own bell toasts `notification:new` skip category `huddle` while this is mounted. */