@omg-dev/app 0.6.42 → 0.6.44

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.
@@ -177,6 +177,32 @@ export interface OmgAppSurfaceProps {
177
177
  */
178
178
  onPlanLimit?: (detail: PlanLimitDetail) => void;
179
179
  errorSink?: OmgErrorSink;
180
+ /**
181
+ * Machines the viewer can switch this surface between, and which one it
182
+ * shows now. The surface draws its machine switcher (rail row on desktop,
183
+ * header icon on mobile) over this list and calls `onSelect` when a
184
+ * different one is chosen; the host then hands over a new `transport`.
185
+ * Omit it and no switcher is drawn.
186
+ */
187
+ machines?: HostMachines;
188
+ }
189
+
190
+ /** One machine in a host-supplied list. `local` is the box serving the page. */
191
+ export interface HostMachine {
192
+ id: string;
193
+ name: string;
194
+ kind: "cloud" | "connected" | "local";
195
+ online: boolean;
196
+ /** Short state for the second line, e.g. "Paused". Defaults from `online`. */
197
+ status?: string;
198
+ }
199
+
200
+ export interface HostMachines {
201
+ machines: HostMachine[];
202
+ /** The id the surface is currently pointed at. */
203
+ activeId: string;
204
+ /** The person chose another machine. The host switches and re-renders. */
205
+ onSelect: (id: string) => void;
180
206
  }
181
207
 
182
208
  export interface PlanLimitDetail {
package/dist-lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "@tanstack/react-router";
4
- import { ah as m, ai as o, aj as i } from "./embedded-CldzkKIh.js";
4
+ import { ah as m, ai as o, aj as i } from "./embedded-Bnp9Scvd.js";
5
5
  export {
6
6
  m as OmgAppSurface,
7
7
  o as OmgSettingsSurface,
@@ -1,4 +1,4 @@
1
- import { f as h } from "./embedded-CldzkKIh.js";
1
+ import { f as h } from "./embedded-Bnp9Scvd.js";
2
2
  /**
3
3
  * @license lucide-react v0.577.0 - ISC
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as s, Fragment as R } from "react/jsx-runtime";
2
- import { r as X, P as J, a as le, g as oe, h as ie, i as ce, X as K, A as P, R as Y, j as de, S as ue, k as Z, T as me, l as he, m as pe, C as fe, L as ge } from "./embedded-CldzkKIh.js";
2
+ import { r as X, P as J, a as le, g as oe, h as ie, i as ce, X as K, A as P, R as Y, j as de, S as ue, k as Z, T as me, l as he, m as pe, C as fe, L as ge } from "./embedded-Bnp9Scvd.js";
3
3
  import { cn as x } from "cnfast";
4
4
  import { useState as a, useRef as E, useEffect as C, useCallback as xe } from "react";
5
5
  function be(r) {
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, jsxs as a, Fragment as w } from "react/jsx-runtime";
2
- import { a as $, D as C, b as T, c as M, d as D, G as S, e as F, t as L, L as R } from "./embedded-CldzkKIh.js";
2
+ import { a as $, D as C, b as T, c as M, d as D, G as S, e as F, t as L, L as R } from "./embedded-Bnp9Scvd.js";
3
3
  import { useState as g, useCallback as j, useEffect as z } from "react";
4
4
  import "@base-ui/react/collapsible";
5
5
  import { cn as P } from "cnfast";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as r, Fragment as ce } from "react/jsx-runtime";
2
2
  import { useState as f, useEffect as v, useRef as ue, useContext as Le, useMemo as Me } from "react";
3
- import { f as _e, E as me, F as $e, H as L, I as fe, J as Se, N as Pe, O as Fe, B as je, L as he, Q as Ge, k as J, C as Ye, R as Be, T as Ke, U as Ue, v as pe, q as He, V as Ve, a as C, W as N, Y as D, w as z, Z as Q, _ as qe, $ as Je, a0 as Qe, a1 as Xe, a2 as Oe, n as We, a3 as Ze } from "./embedded-CldzkKIh.js";
3
+ import { f as _e, E as me, F as $e, H as L, I as fe, J as Se, N as Pe, O as Fe, B as je, L as he, Q as Ge, k as J, C as Ye, R as Be, T as Ke, U as Ue, v as pe, q as He, V as Ve, a as C, W as N, Y as D, w as z, Z as Q, _ as qe, $ as Je, a0 as Qe, a1 as Xe, a2 as Oe, n as We, a3 as Ze } from "./embedded-Bnp9Scvd.js";
4
4
  import { cn as M } from "cnfast";
5
5
  /**
6
6
  * @license lucide-react v0.577.0 - ISC
@@ -3,7 +3,7 @@ import { useMemo as We, useState as Ce, useEffect as xe, useRef as Ve } from "re
3
3
  import { r as He, t as T, o as Ue, u as be, y as L, A as Je, a as Qe } from "./chunk-YOKDWASO-B5AA2F8u.js";
4
4
  import { b as Xe, c as Ye, a as Ze, d as Ke } from "./engine-compile-D_stzVMa.js";
5
5
  import { cn as je } from "cnfast";
6
- import { ab as et, y as tt, ac as nt } from "./embedded-CldzkKIh.js";
6
+ import { ab as et, y as tt, ac as nt } from "./embedded-Bnp9Scvd.js";
7
7
  const d = (
8
8
  /** @type {const} */
9
9
  {