gesso-framework 0.4.2 → 0.5.1

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.
@@ -1,4 +1,4 @@
1
- import { N as InputCell, U as Component, a as ComponentType, i as ComponentProps, r as ComponentContext, t as ClassComponent } from "../FunctionComponent-CgwLKE5d.js";
1
+ import { a as ComponentType, i as ComponentProps, m as InputCell, r as ComponentContext, t as ClassComponent, w as Component } from "../FunctionComponent-fYMdePtH.js";
2
2
  import { Observable } from "rxjs";
3
3
  import { BoxProps, ButtonProps, ColumnProps, ComponentLikeElement, EditableTextProps, GridProps, PaintElementProps, RowProps, ScrollViewProps, StackProps, TextProps, UiChild, UiElement, UiNodeType } from "gesso-core";
4
4
  //#region src/jsx/jsx-runtime.d.ts
@@ -1,3 +1,4 @@
1
+ import { a as agentSurface, i as serveAgentPort } from "./remote-xxij8zXe.js";
1
2
  import { BehaviorSubject, Observable, Subject, Subscription, combineLatest, debounceTime, distinctUntilChanged, map, of, skip, tap, throttleTime } from "rxjs";
2
3
  //#region src/Input.ts
3
4
  /**
@@ -1864,6 +1865,10 @@ function serveChannels(channels, host) {
1864
1865
  for (const served of channels) byName.set(served.token.name, served);
1865
1866
  const provided = [];
1866
1867
  const stop = servePorts((key, port) => {
1868
+ if (key === "gesso:agent") {
1869
+ serveAgentPort(port, (confirm) => agentSurface(channels, { confirm }));
1870
+ return true;
1871
+ }
1867
1872
  const served = byName.get(key);
1868
1873
  if (served === void 0) return false;
1869
1874
  provided.push(provide(served.token, served.source, port));
@@ -2672,4 +2677,4 @@ function persisted(adapter, key, options) {
2672
2677
  //#endregion
2673
2678
  export { structurallyEqual as $, printPropValue as A, channel as B, captureConsole as C, formatNodePath as D, formatAge as E, applyPatch as F, mutate as G, viewKeys as H, applyPatches as I, select as J, Resource as K, diffProjection as L, provide as M, findUnplainPath as N, formatNodeReport as O, requirePlainData as P, equalityOf as Q, isChannelClientMessage as R, workerHandle as S, describeStream as T, debounced as U, defineChannel as V, throttled as W, computed as X, ComputedCell as Y, derive as Z, isHubMessage as _, undoable as a, isOutputTarget as at, portHandle as b, classifyStorageError as c, trackRead as ct, storageReadValue as d, InternalState as et, pick as f, APPLICATION_WORKER as g, serveChannels as h, OpfsStorage as i, into as it, ProvidedChannel as j, formatStream as k, storageErrorMessage as l, withBodyOf as lt, serve as m, persisted as n, InputCell as nt, UndoStack as o, output as ot, pickKeys as p, resource as q, IndexedDbStorage as r, input as rt, MemoryStorage as s, outputTargetOf as st, PersistedState as t, internalState as tt, storageReadFailure as u, isPortErrorMessage as v, isConsoleEntryMessage as w, servePorts as x, isPortHandshake as y, isChannelHostMessage as z };
2674
2679
 
2675
- //# sourceMappingURL=persisted-CsTPnjkc.js.map
2680
+ //# sourceMappingURL=persisted-pix1fS1D.js.map