@powerhousedao/reactor-browser 6.2.3-dev.95 → 6.2.3-dev.97

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.
Files changed (45) hide show
  1. package/dist/{attachment-service-10Qn5nIw.d.ts → attachment-service-DXfpfp98.d.ts} +4 -3
  2. package/dist/attachment-service-DXfpfp98.d.ts.map +1 -0
  3. package/dist/client-1n_ZUXeu.js +135 -0
  4. package/dist/client-1n_ZUXeu.js.map +1 -0
  5. package/dist/{client-C-NgSjoc.d.ts → client-BFk0MY6A.d.ts} +2 -2
  6. package/dist/client-BFk0MY6A.d.ts.map +1 -0
  7. package/dist/{document-model-modules-ChmfyIxT.js → document-model-modules-BG-61uke.js} +68 -2
  8. package/dist/document-model-modules-BG-61uke.js.map +1 -0
  9. package/dist/{document-operations-QtU34A52.js → document-operations-D5QXcJbV.js} +6 -61
  10. package/dist/document-operations-D5QXcJbV.js.map +1 -0
  11. package/dist/{global-bbfp3_1x.d.ts → global-DAAmZGCO.d.ts} +7 -44
  12. package/dist/global-DAAmZGCO.d.ts.map +1 -0
  13. package/dist/{index-Bfr_cWdi.d.ts → index-Bj1poVfa.d.ts} +2 -2
  14. package/dist/{index-Bfr_cWdi.d.ts.map → index-Bj1poVfa.d.ts.map} +1 -1
  15. package/dist/index.d.ts +78 -8
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +10 -187
  18. package/dist/index.js.map +1 -1
  19. package/dist/{client-BNMyQ_Z2.js → schema-D0G1oAo9.js} +2 -133
  20. package/dist/schema-D0G1oAo9.js.map +1 -0
  21. package/dist/src/ai/index.d.ts +41 -8
  22. package/dist/src/ai/index.d.ts.map +1 -1
  23. package/dist/src/ai/index.js +302 -6
  24. package/dist/src/ai/index.js.map +1 -1
  25. package/dist/src/graphql/client.d.ts +2 -2
  26. package/dist/src/graphql/client.js +1 -1
  27. package/dist/src/graphql-client/entry.d.ts +3 -2
  28. package/dist/src/graphql-client/entry.js +2 -2
  29. package/dist/src/renown/index.d.ts +1 -1
  30. package/dist/switchboard-directory-CWf5SRo7.js +435 -0
  31. package/dist/switchboard-directory-CWf5SRo7.js.map +1 -0
  32. package/dist/switchboards-D-_JBUbF.d.ts +75 -0
  33. package/dist/switchboards-D-_JBUbF.d.ts.map +1 -0
  34. package/dist/{types-CT44EMmw.d.ts → types-CyPDurGV.d.ts} +5 -1
  35. package/dist/types-CyPDurGV.d.ts.map +1 -0
  36. package/package.json +10 -10
  37. package/dist/attachment-service-10Qn5nIw.d.ts.map +0 -1
  38. package/dist/client-BNMyQ_Z2.js.map +0 -1
  39. package/dist/client-C-NgSjoc.d.ts.map +0 -1
  40. package/dist/document-model-modules-ChmfyIxT.js.map +0 -1
  41. package/dist/document-operations-QtU34A52.js.map +0 -1
  42. package/dist/global-bbfp3_1x.d.ts.map +0 -1
  43. package/dist/switchboard-B640iT1L.js +0 -321
  44. package/dist/switchboard-B640iT1L.js.map +0 -1
  45. package/dist/types-CT44EMmw.d.ts.map +0 -1
@@ -1,9 +1,10 @@
1
+ import { i as IReactorBrowserClient$1, s as ReactorBrowserHalves$1, t as SwitchboardDirectory$1 } from "./switchboards-D-_JBUbF.js";
1
2
  import { t as PGlite } from "./pglite-CntadC_p-DTkdF8sr.js";
2
- import { c as ReactorGraphQLClient, r as GraphQLClientWindowEvents } from "./types-CT44EMmw.js";
3
+ import { c as ReactorGraphQLClient, r as GraphQLClientWindowEvents } from "./types-CyPDurGV.js";
3
4
  import { r as IWorkerAdminClient, t as IInspectorProxy } from "./inspector-proxy-DODqs15F.js";
4
5
  import { DragEventHandler, ReactNode } from "react";
5
6
  import { DocumentDispatch as DocumentDispatch$2, DocumentModelModule, Operation, PHDocument, PhAiToolDescriptor } from "@powerhousedao/shared/document-model";
6
- import { IDocumentModelLoader, IReactorClient, IReactorReadClient, IReactorWriteClient, InProcessReactorClientModule, InProcessReactorModule, ReactorClientModule, ReactorModule } from "@powerhousedao/reactor";
7
+ import { IDocumentModelLoader, IReactorClient, InProcessReactorClientModule, InProcessReactorModule, ReactorClientModule, ReactorModule } from "@powerhousedao/reactor";
7
8
  import { DocumentDriveDocument, Node } from "@powerhousedao/shared/document-drive";
8
9
  import { IRenown } from "@renown/sdk";
9
10
  import { IAttachmentService } from "@powerhousedao/reactor-attachments/client";
@@ -94,46 +95,6 @@ interface IOperationCache {
94
95
  subscribeOperations(documentId: string, callback: () => void): () => void;
95
96
  }
96
97
  //#endregion
97
- //#region src/types/reactor-browser-client.d.ts
98
- /**
99
- * The reads the reactor-browser hooks make: a derived subset of
100
- * {@link IReactorReadClient}, so the signatures can never drift from the
101
- * reactor's own.
102
- */
103
- interface IReactorBrowserReadClient extends Pick<IReactorReadClient, "get" | "getMany" | "find" | "getOperations" | "subscribe" | "waitForJob" | "getJobStatus" | "drives"> {}
104
- /**
105
- * The writes the reactor-browser hooks make: a derived subset of
106
- * {@link IReactorWriteClient}. Each resolves once its job is accepted and
107
- * hands back a `WriteHandle`; a caller that needs the document reads it back
108
- * with `handle.document()`.
109
- */
110
- interface IReactorBrowserWriteClient extends Pick<IReactorWriteClient, "execute" | "create" | "deleteDocument"> {}
111
- /**
112
- * Minimal client contract the reactor-browser hooks depend on.
113
- *
114
- * It is a derived subset of {@link IReactorClient}, so the member signatures
115
- * can never drift from the reactor's own. Two implementations satisfy it: the
116
- * full in-browser reactor client (automatically, since it implements
117
- * `IReactorClient`) and `GraphQLReactorClient`, which talks plain GraphQL to a
118
- * Switchboard without bundling a reactor.
119
- *
120
- * `read` and `write` are the client halves the hooks use. The picked facade
121
- * methods are kept for callers that have not moved to the halves.
122
- *
123
- * Deliberately excluded: `drives`, relationships, `resolveIdOrSlug`,
124
- * `executeAsync`/`executeBatch`, `createEmpty`, `rename` and the document
125
- * model module getters.
126
- */
127
- interface IReactorBrowserClient$1 extends Pick<IReactorClient, "get" | "find" | "subscribe" | "execute" | "getOperations" | "newDocument" | "create" | "deleteDocument" | "undo" | "redo" | "undoRedoTargets" | "undoRedoAvailability"> {
128
- readonly read: IReactorBrowserReadClient;
129
- readonly write: IReactorBrowserWriteClient;
130
- }
131
- /** The client halves `window.ph.reactor` holds. */
132
- type ReactorBrowserHalves$1 = {
133
- read: IReactorBrowserReadClient;
134
- write: IReactorBrowserWriteClient;
135
- };
136
- //#endregion
137
98
  //#region src/types/config.d.ts
138
99
  type PHGlobalConfig$1 = PHCommonGlobalConfig & PHAppConfig$1 & PHDocumentEditorConfig$1 & PHDrivesGlobalConfig & PHAnalyticsGlobalConfig & PHRelationalProcessorsGlobalConfig & PHProcessorsGlobalConfig & PHRenownGlobalConfig & PHSentryGlobalConfig;
139
100
  type PHGlobalConfigKey$1 = keyof PHGlobalConfig$1;
@@ -606,6 +567,8 @@ type PHGlobal$1 = PHGlobalConfig$1 & {
606
567
  /** Replaces `reactorClientModule.client` in full-client actions; Connect's router. */
607
568
  fullReactorClient?: IReactorClient;
608
569
  attachmentService?: IAttachmentService;
570
+ /** The switchboards the app reaches; see `resolveSwitchboard`. */
571
+ switchboards?: SwitchboardDirectory$1;
609
572
  reactorGraphQLClient?: ReactorGraphQLClient | undefined;
610
573
  renown?: IRenown | LOADING;
611
574
  vetraPackageManager?: IPackageManager;
@@ -644,6 +607,6 @@ declare global {
644
607
  interface WindowEventMap extends GraphQLClientWindowEvents {}
645
608
  }
646
609
  //#endregion
647
- export { IPackageManager as $, loadDriveNodes as A, PHGlobalConfigKey$1 as At, createPHStore as B, ReactorBrowserHalves$1 as Bt, DriveNodesCache as C, PHDocumentEditorConfigHooks$1 as Ct, dropDriveNode as D, PHGlobalConfig$1 as Dt, addDriveNodesEventHandler as E, PHDrivesGlobalConfig as Et, useDriveNodes as F, PHRenownGlobalConfig as Ft, notifyPHStore as G, IDocumentCache as Gt, getActivePHStore as H, DocumentRefetchState as Ht, useDriveNodesCache as I, PHSentryGlobalConfig as It, DraggingNode as J, OperationsCacheEntry as Jt, subscribePHStore as K, IDocumentTypeCache as Kt, PHStore as L, IReactorBrowserClient$1 as Lt, peekDriveNode as M, PHGlobalConfigSettersForKey as Mt, takeLocalDriveWrite as N, PHProcessorsGlobalConfig as Nt, getDriveNode as O, PHGlobalConfigHooks$1 as Ot, useDriveNode as P, PHRelationalProcessorsGlobalConfig as Pt, IPackageListerUnsubscribe as Q, PHStoreProvider as R, IReactorBrowserReadClient as Rt, WorkerReactorModule as S, PHDocumentEditorConfig$1 as St, DriveNodesOptions as T, PHDocumentEditorConfigSetters$1 as Tt, getPHStore as U, DocumentsOfTypeEntry as Ut, ensurePHStore as V, DocumentDispatch$2 as Vt, getPHStoreSubscribe as W, FulfilledPromise as Wt, useDragNode as X, PromiseWithState as Xt, addDraggingNodeEventHandler as Y, PromiseState as Yt, useDropNode as Z, RejectedPromise as Zt, SetEvent as _, PHAppConfig$1 as _t, LOADING as a, TimelineBarItem as at, UsePHGlobalValue$1 as b, PHAppConfigSetters$1 as bt, PHGlobalEventHandlerAdders as c, DiscoveryEvent as ct, PHNavigateOptions$1 as d, FailedInstallationReason as dt, IPackagesListener as et, PHNavigation$1 as f, IPackageDiscoveryService as ft, SearchParamsUpdate$1 as g, PHAnalyticsGlobalConfig as gt, PHSettingsTarget$1 as h, FullPHGlobalConfig as ht, BrowserReactorModule as i, PHToastType as it, markLocalDriveWrite as j, PHGlobalConfigSetters$1 as jt, invalidateDriveNodes as k, PHGlobalConfigHooksForKey as kt, PHGlobalKey$1 as l, DiscoveryEventListener as lt, PHSearchUpdate$1 as m, PHModal$1 as mt, BackendAuthState as n, PHToastFn as nt, PHDriveTarget as o, TimelineDividerItem as ot, PHNavigationTarget$1 as p, PendingInstallation as pt, usePHStore as q, IOperationCache as qt, BrowserReactorClientModule$1 as r, PHToastOptions as rt, PHGlobal$1 as s, TimelineItem as st, AddPHGlobalEventHandler$1 as t, PackageManagerInstallResult as tt, PHGlobalValue as u, FailedInstallation as ut, SetPHGlobalValue$1 as v, PHAppConfigHooks$1 as vt, DriveNodesEntry as w, PHDocumentEditorConfigKey$1 as wt, WorkerReactorClientModule$1 as x, PHCommonGlobalConfig as xt, SetSearchParams$1 as y, PHAppConfigKey$1 as yt, bindPHStoreToWindow as z, IReactorBrowserWriteClient as zt };
610
+ export { IPackageManager as $, loadDriveNodes as A, PHGlobalConfigKey$1 as At, createPHStore as B, FulfilledPromise as Bt, DriveNodesCache as C, PHDocumentEditorConfigHooks$1 as Ct, dropDriveNode as D, PHGlobalConfig$1 as Dt, addDriveNodesEventHandler as E, PHDrivesGlobalConfig as Et, useDriveNodes as F, PHRenownGlobalConfig as Ft, notifyPHStore as G, PromiseState as Gt, getActivePHStore as H, IDocumentTypeCache as Ht, useDriveNodesCache as I, PHSentryGlobalConfig as It, DraggingNode as J, subscribePHStore as K, PromiseWithState as Kt, PHStore as L, DocumentDispatch$2 as Lt, peekDriveNode as M, PHGlobalConfigSettersForKey as Mt, takeLocalDriveWrite as N, PHProcessorsGlobalConfig as Nt, getDriveNode as O, PHGlobalConfigHooks$1 as Ot, useDriveNode as P, PHRelationalProcessorsGlobalConfig as Pt, IPackageListerUnsubscribe as Q, PHStoreProvider as R, DocumentRefetchState as Rt, WorkerReactorModule as S, PHDocumentEditorConfig$1 as St, DriveNodesOptions as T, PHDocumentEditorConfigSetters$1 as Tt, getPHStore as U, IOperationCache as Ut, ensurePHStore as V, IDocumentCache as Vt, getPHStoreSubscribe as W, OperationsCacheEntry as Wt, useDragNode as X, addDraggingNodeEventHandler as Y, useDropNode as Z, SetEvent as _, PHAppConfig$1 as _t, LOADING as a, TimelineBarItem as at, UsePHGlobalValue$1 as b, PHAppConfigSetters$1 as bt, PHGlobalEventHandlerAdders as c, DiscoveryEvent as ct, PHNavigateOptions$1 as d, FailedInstallationReason as dt, IPackagesListener as et, PHNavigation$1 as f, IPackageDiscoveryService as ft, SearchParamsUpdate$1 as g, PHAnalyticsGlobalConfig as gt, PHSettingsTarget$1 as h, FullPHGlobalConfig as ht, BrowserReactorModule as i, PHToastType as it, markLocalDriveWrite as j, PHGlobalConfigSetters$1 as jt, invalidateDriveNodes as k, PHGlobalConfigHooksForKey as kt, PHGlobalKey$1 as l, DiscoveryEventListener as lt, PHSearchUpdate$1 as m, PHModal$1 as mt, BackendAuthState as n, PHToastFn as nt, PHDriveTarget as o, TimelineDividerItem as ot, PHNavigationTarget$1 as p, PendingInstallation as pt, usePHStore as q, RejectedPromise as qt, BrowserReactorClientModule$1 as r, PHToastOptions as rt, PHGlobal$1 as s, TimelineItem as st, AddPHGlobalEventHandler$1 as t, PackageManagerInstallResult as tt, PHGlobalValue as u, FailedInstallation as ut, SetPHGlobalValue$1 as v, PHAppConfigHooks$1 as vt, DriveNodesEntry as w, PHDocumentEditorConfigKey$1 as wt, WorkerReactorClientModule$1 as x, PHCommonGlobalConfig as xt, SetSearchParams$1 as y, PHAppConfigKey$1 as yt, bindPHStoreToWindow as z, DocumentsOfTypeEntry as zt };
648
611
  export {};
649
- //# sourceMappingURL=global-bbfp3_1x.d.ts.map
612
+ //# sourceMappingURL=global-DAAmZGCO.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-DAAmZGCO.d.ts","names":[],"sources":["../src/types/documents.ts","../src/types/config.ts","../src/types/modals.ts","../src/types/package-discovery.ts","../src/types/timeline.ts","../src/types/toast.ts","../src/types/vetra.ts","../src/hooks/node-drag-and-drop.ts","../src/hooks/ph-store.tsx","../src/hooks/drive-nodes.ts","../src/types/global.ts"],"mappings":";;;;;;;;;;;;;;;KAOY,iBAAiB,KAAK,QAAQ,KAAK,aAAa;KAEhD,iBAAiB,KAAK,QAAQ;EACxC;EACA,OAAO;;KAGG,gBAAgB,KAAK,QAAQ;EACvC;EACA;;KAGU,aAAa;EAEnB;;EAEA;EAAqB,OAAO;;EAC5B;EAAoB;;;KAGd;EACV;EACA;;UAGe;EACf,IAAI,YAAY,oBAAoB,QAAQ;EAC5C,SAAS,eAAe,oBAAoB,QAAQ;EACpD,UAAU,uBAAuB;;EAEjC,iBAAiB,aAAa;;;KAIpB;;EAEV;;EAEA,qBAAqB;;EAErB;;EAEA;;;KAIU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AW;EACrB,aAAa;EACb;EACA,sBAAsB,+BAA6B;EACnD,gBAAgB;;EAEhB,UAAU;;EAEV,oBAAoB;EACpB,oBAAoB;;EAEpB,eAAe;EACf,uBAAuB;EACvB,SAAS,UAAU;EACnB,sBAAsB;;EAEtB,gBAAgB,QAAQ;EACxB,SAAS;;;;;EAKT,cAAc;;EAEd,aAAa;EACb,gBAAgB;EAChB;EACA;EACA,eAAe;EACf,QAAQ;EACR;EACA,uBAAuB;EACvB,0BAA0B;EAC1B,WAAW;EACX,QAAQ;;KAGE,sBAAoB;KACpB,gBAAgB,WAAS;KAEzB,mBAAiB,eAAe,uBACxC;KAGQ,mBAAiB,eAAe,kBAC1C,OAAO;KAGG;KAEA,6BAA6B,OACvC,eACA;KAGU,SAAS,aAAa,iBAAe,eAC9C,OAAO,OAAO,WAAS;QAGlB;YACI;IACR,KAAK;;YAEG,uBAAuB"}
@@ -1,4 +1,4 @@
1
- import { a as LOADING } from "./global-bbfp3_1x.js";
1
+ import { a as LOADING } from "./global-DAAmZGCO.js";
2
2
  import { CSSProperties, ReactNode } from "react";
3
3
  import { CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, DOMAIN_TYPE, DelegationClaims, DelegationScope, IRenown, ISSUER_TYPE, LoginStatus, User, VERIFIABLE_CREDENTIAL_EIP712_TYPE, createDelegation, decodeDelegation } from "@renown/sdk";
4
4
  import { LoginMethod, WalletAdapterDescriptor, WalletController, WalletSession, WalletTheme } from "@renown/sdk/wallet";
@@ -278,4 +278,4 @@ declare function useRenownWalletAdapter<T extends WalletController = WalletContr
278
278
  //#endregion
279
279
  export { setRenown as $, DOMAIN_TYPE as A, CopyIcon as B, RenownInitialUserProvider as C, CREDENTIAL_SCHEMA_EIP712_TYPE as D, useRenownInitialUser as E, RENOWN_URL as F, RenownUserButton as G, RenownLogo as H, VERIFIABLE_CREDENTIAL_EIP712_TYPE as I, RenownLoginButton as J, RenownUserButtonMenuItem as K, initConnectCrypto as L, RENOWN_CHAIN_ID as M, RENOWN_NETWORK_ID as N, CREDENTIAL_SUBJECT_TYPE as O, RENOWN_RETURN_URL_STRIPPED_PARAMS as P, addRenownEventHandler as Q, initRenownCrypto as R, RenownInitialAuth as S, useRenownInitialAuth as T, SpinnerIcon as U, DisconnectIcon as V, UserIcon as W, RenownAuthButton as X, RenownLoginButtonProps as Y, RenownAuthButtonProps as Z, RenownSessionCookieState as _, useRenownWalletAdapter as a, desktopShell as at, RENOWN_INITIAL_ANONYMOUS as b, RenownWalletProvider as c, openRenown as ct, RenownProviderProps as d, RenownAuthResolution as dt, useDid as et, Renown as f, RenownAuthStatus as ft, RenownSessionCookieOptions as g, useRenownInit as h, decodeDelegation as i, DesktopShell as it, ISSUER_TYPE as j, CREDENTIAL_TYPES as k, RenownWalletProviderProps as l, RenownAuth as lt, RenownInitOptions as m, useRenownAuthAsync as mt, DelegationScope as n, useRenown as nt, RenownLoginMethod as o, login as ot, RenownProps as p, useRenownAuth as pt, RenownUserButtonProps as q, createDelegation as r, useUser as rt, useRenownLoginMethods as s, logout as st, DelegationClaims as t, useLoginStatus as tt, RenownProvider as u, RenownAuthAsync as ut, useRenownSessionCookie as v, RenownInitialUserProviderProps as w, RENOWN_INITIAL_UNKNOWN as x, useRenownSessionSynced as y, ChevronDownIcon as z };
280
280
  export {};
281
- //# sourceMappingURL=index-Bfr_cWdi.d.ts.map
281
+ //# sourceMappingURL=index-Bj1poVfa.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-Bfr_cWdi.d.ts","names":[],"sources":["../src/renown/use-renown-auth.ts","../src/renown/session.ts","../src/hooks/renown.ts","../src/renown/components/RenownAuthButton.tsx","../src/renown/components/RenownLoginButton.tsx","../src/renown/components/RenownUserButton.tsx","../src/renown/components/icons.tsx","../src/renown/crypto.ts","../src/renown/constants.ts","../src/renown/initial-user.tsx","../src/renown/use-renown-session.ts","../src/renown/use-renown-init.ts","../src/renown/renown-init.tsx","../src/renown/provider.tsx","../src/renown/wallet-provider.tsx","../src/renown/login-methods.ts","../src/renown/use-renown-wallet-adapter.ts"],"mappings":";;;;;KAoBY,mBAAmB;UAEd;EACf,QAAQ;EACR,MAAM;EACN;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ,UAAU,eAAe,SAAS;EAC1C;EACA,OAAO;EACP,cAAc;EACd;;iBA+Bc,iBAAiB;KAuFrB;UAKK,wBAAwB;;EAEvC,OAAO;EACP;;iBAOc,sBAAsB;;;;;;;;KCnJ1B;EACV,aAAa,qBAAqB;;;iBAIpB,gBAAgB;iBA0BhB,WAAW;iBAkIL,MACpB,6BACA,QAAQ,sBACP,QAAQ;iBAgCW,UAAM;;;;cC/Mf;;cAIA,iBAAiB,UAAU;;cAI3B,YAAY,OAAO,UAAU;;iBAI1B;;iBA2CA,WAAW;;iBA2CX,kBAAkB;;;UCvGjB;EACf;EACA;EACA,eAAe;EACf,cAAc;EACd,iBAAiB;EACjB,YAAY,MAAM,eAAe;;iBAGnB,mBACd,WACA,UACA,cACA,aACA,gBACA,YACC,oDAAqB,IAAA;;;UCfP;EACf;EACA;EACA,QAAQ;EACR;EACA;EACA,WAAW;;iBAsCG,oBACd,SAAS,aACT,OACA,WACA,SACA,YACC,qDAAsB,IAAA;;;UCzCR;EACf;EACA,OAAO;EACP;EACA,QAAQ;;UAGO;EACf;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA,WAAW;EACX,YAAY;;iBAiKE,mBACd,SAAS,aACT,UAAU,cACV,WAAW,eACX,QAAQ,YACR,cAAc,kBACd,OACA,WACA,SACA,UACA,aACC,oDAAqB,IAAA;;;UC1Md;EACR;EACA;EACA;EACA;EACA,QAAQ;EACR;;UAGQ,wBAAwB;EAChC;;iBAGc,aACd,OACA,QACA,SACA,OACA,aACC,8CAAe,IAAA;iBAwBF,WACd,MACA,SACC,wCAAS,IAAA;iBA2BI,iBACd,MACA,SACC,wCAAS,IAAA;iBAkCI,cAAc,MAAW,SAA0B,wCAAS,IAAA;iBAiE5D,kBACd,MACA,OACA,SACC,wCAAS,IAAA;iBAqBI,WAAW,MAAW,SAAqB,wCAAS,IAAA;;;;;;;;;iBClM9C,qBAAiB,8BAAA;;;;;iBAQjB,oBAAgB,8BAAA;;;cChBzB;cACA;cACA;cAUA;;;;KCJD;EACN;EAAwB,MAAM;;EAC9B;;EACA;;cAEO,wBAAwB;cACxB,0BAA0B;UAUtB;;EAEf,cAAc;;EAEd,cAAc;EACd,UAAU;;iBAGI,4BACd,aACA,aACA,YACC,6DAA8B,IAAA;;iBAejB,wBAAwB;iBAIxB,wBAAwB;;;UC7CvB;;EAEf;;EAEA;;EAEA;;UAGe;;EAEf;;iBAKc,uBACd,UAAS,6BACR;iBA4Ea;;;UCjGC;EACf;;EAEA;EACA;EACA;;EAEA;;EAEA;;;;;;;;;;;;;;;iBA4Cc,gBACd,SACA,WACA,KACA,gBACA,YACA,WACC,oBAAoB,QAAQ;;;UCjEd,oBAAoB;EACnC,WAAW;;;;;;;;;;;;;;;;;;iBAmBG,SAAS,YAAY,eAAe;;;UCJnC;EACf;;EAEA;EACA;EACA;;EAEA,WAAW;EACX,QAAQ;;EAER;;EAEA;;EAEA;IAAY,OAAO;;;EAEnB;EACA,WAAW;EACX,UAAU;;iBA0BI,iBACd,SACA,WACA,KACA,gBACA,UACA,OACA,YACA,SACA,SACA,iBACA,SACA,YACC,kDAAmB,IAAA;;;UCsBL;;EAEf,UAAU;;EAEV,QAAQ;EACR,UAAU;;;iBAII,uBACd,UAAU,gBACV,OACA,YACC,wDAAyB,IAAA;;;UCtGX;EACf,IAAI;EACJ;;;iBAWc,sBACd,SAAS,QAAQ,OAAO,wBACvB;;;;iBCXa,uBACd,UAAU,mBAAmB,kBAC7B,aAAa"}
1
+ {"version":3,"file":"index-Bj1poVfa.d.ts","names":[],"sources":["../src/renown/use-renown-auth.ts","../src/renown/session.ts","../src/hooks/renown.ts","../src/renown/components/RenownAuthButton.tsx","../src/renown/components/RenownLoginButton.tsx","../src/renown/components/RenownUserButton.tsx","../src/renown/components/icons.tsx","../src/renown/crypto.ts","../src/renown/constants.ts","../src/renown/initial-user.tsx","../src/renown/use-renown-session.ts","../src/renown/use-renown-init.ts","../src/renown/renown-init.tsx","../src/renown/provider.tsx","../src/renown/wallet-provider.tsx","../src/renown/login-methods.ts","../src/renown/use-renown-wallet-adapter.ts"],"mappings":";;;;;KAoBY,mBAAmB;UAEd;EACf,QAAQ;EACR,MAAM;EACN;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ,UAAU,eAAe,SAAS;EAC1C;EACA,OAAO;EACP,cAAc;EACd;;iBA+Bc,iBAAiB;KAuFrB;UAKK,wBAAwB;;EAEvC,OAAO;EACP;;iBAOc,sBAAsB;;;;;;;;KCnJ1B;EACV,aAAa,qBAAqB;;;iBAIpB,gBAAgB;iBA0BhB,WAAW;iBAkIL,MACpB,6BACA,QAAQ,sBACP,QAAQ;iBAgCW,UAAM;;;;cC/Mf;;cAIA,iBAAiB,UAAU;;cAI3B,YAAY,OAAO,UAAU;;iBAI1B;;iBA2CA,WAAW;;iBA2CX,kBAAkB;;;UCvGjB;EACf;EACA;EACA,eAAe;EACf,cAAc;EACd,iBAAiB;EACjB,YAAY,MAAM,eAAe;;iBAGnB,mBACd,WACA,UACA,cACA,aACA,gBACA,YACC,oDAAqB,IAAA;;;UCfP;EACf;EACA;EACA,QAAQ;EACR;EACA;EACA,WAAW;;iBAsCG,oBACd,SAAS,aACT,OACA,WACA,SACA,YACC,qDAAsB,IAAA;;;UCzCR;EACf;EACA,OAAO;EACP;EACA,QAAQ;;UAGO;EACf;EACA;EACA;EACA;EACA;EACA,QAAQ;EACR;EACA;EACA,WAAW;EACX,YAAY;;iBAiKE,mBACd,SAAS,aACT,UAAU,cACV,WAAW,eACX,QAAQ,YACR,cAAc,kBACd,OACA,WACA,SACA,UACA,aACC,oDAAqB,IAAA;;;UC1Md;EACR;EACA;EACA;EACA;EACA,QAAQ;EACR;;UAGQ,wBAAwB;EA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7B,aAAa"}
package/dist/index.d.ts CHANGED
@@ -1,22 +1,23 @@
1
- import { $ as createJobChangesSocket, $t as GetDocumentQueryFields, A as addDocumentCacheEventHandler, An as isDocumentTypeCache, At as GraphQLRequestOptions, B as DEFAULT_BREAKER, Bt as switchboardFetch, C as useModelRegistry, Cn as TrackedAction, Ct as GraphQLReactorClientOptions, D as useReactorHalves, Dn as IDLE_OPERATIONS_ENTRY, Dt as findIsServableOverGraphQL, E as useReactorClientModule, En as IDLE_DOCUMENTS_OF_TYPE_ENTRY, Et as createGraphQLDriveNodeSource, F as useDocuments, Ft as subgraphUrlFromGraphqlUrl, G as SwitchboardUnreachableError, Gt as GraphQLWrongBackendError, H as SwitchboardBackend, Ht as withStreamedBodies, I as useGetDocument, It as GraphQLFetch, J as DocumentChangesEventPayload, Jt as queriesUnknownField, K as createSwitchboardBackend, Kt as JobFailedError, L as useGetDocumentAsync, Lt as globalFetch, M as useDocument, Mn as readPromiseState, Mt as SubgraphSdkRegistry, N as useDocumentCache, Nn as IDLE_REFETCH_STATE, Nt as TypedGraphQLDocument, O as useSync, On as IDocumentCacheReader, Ot as isGraphQLReactorClient, P as useDocumentSafe, Pn as dispatchActions, Pt as describeGraphQLDocument, Q as JobChangesSocketOptions, Qt as toLegacyNode, R as useGetDocuments, Rt as isDeadlineError, S as useDatabase, Sn as SyncStatus, St as GraphQLReactorClient, T as useReactorClient, Tn as GET_MANY_CHUNK_SIZE, Tt as ambientRenownSigner, U as SwitchboardBackendDescriptor, Ut as BatchJobFailedError, V as DEFAULT_REQUEST_TIMEOUT_MS, Vt as withRequestDeadline, W as SwitchboardBreaker, Wt as GraphQLOperationNotSupportedError, X as IJobChangesSocket, Xt as GraphQLDriveNodeSource, Y as DocumentChangesSubscriptionOptions, Yt as DriveNodeQueries, Z as JobChangesEventPayload, Zt as GraphQLDriveReadClient, _ as addReactorHalvesEventHandler, _n as RemoteControllerOptions, _t as GraphQLReactorProvider, a as DocumentOperationsState, an as revisionMapFromRevisionsList, at as packageFromDocumentModels, b as setReactorClient, bn as RemoteOperation, bt as useSwitchboardClient, c as useDocumentModelModuleById, cn as DocumentChangeListener, ct as signStampedAction, d as UseDispatchResult, dn as GetOperationsResult, dt as GetDocumentAtConsistencyResult, en as GetDocumentQueryResult, et as isAuthRefusalClose, f as createDispatch, fn as IRemoteClient, ft as GetDocumentAtConsistencyVariables, g as addReactorClientModuleEventHandler, gn as RemoteControllerGraphQLClient, gt as ReactorOperationFieldsFragmentDoc, h as addReactorClientEventHandler, hn as PushResult, ht as MutateDocumentWithOperationsVariables, i as DocumentOperationsResult, in as phDocumentFromMutation, it as StaticPackageManager, j as setDocumentCache, jn as isOperationCache, jt as SubgraphSdkFactory, k as useSyncList, kn as addPromiseState, kt as viewFilterInputFromViewFilter, l as useDocumentModelModules, ln as GetDocumentResult, lt as stampAction, m as addFullReactorClientEventHandler, mn as MergeHandler, mt as MutateDocumentWithOperationsResult, n as setAttachmentService, nn as isoStringFromDateTime, nt as startDocumentChangesSubscription, o as UseDocumentOperationsOptions, on as ConflictInfo, ot as resolveDocumentModelModule, p as useDispatch, pn as IRemoteController, pt as MutateDocumentWithOperationsDocument, q as ConnectionParams, qt as queriesUnknownArgument, r as useAttachmentService, rn as phDocumentFromGetDocument, rt as subscriptionsUrlFromGraphqlUrl, s as useDocumentOperations, sn as ConflictStrategy, st as prepareSignedActions, t as addAttachmentServiceEventHandler, tn as RevisionsListSelection, tt as makeAuthConnectionParams, u as DispatchFn, un as GetDocumentWithOperationsResult, ut as GetDocumentAtConsistencyDocument, v as getFullReactorClient, vn as RemoteDocumentChangeEvent, vt as GraphQLReactorProviderProps, w as usePGlite, wn as DocumentCache, wt as GraphQLReactorReadClient, x as setReactorClientModule, xn as RemoteOperationResultPage, xt as DriveIdCall, y as setFullReactorClient, yn as RemoteDocumentData, yt as ensurePHEventHandlers, z as DEFAULT_BATCH_REQUEST_TIMEOUT_MS, zt as isNodeFetch } from "./attachment-service-10Qn5nIw.js";
1
+ import { $ as createJobChangesSocket, $t as GetDocumentQueryFields, A as addDocumentCacheEventHandler, An as isDocumentTypeCache, At as GraphQLRequestOptions, B as DEFAULT_BREAKER, Bt as switchboardFetch, C as useModelRegistry, Cn as TrackedAction, Ct as GraphQLReactorClientOptions, D as useReactorHalves, Dn as IDLE_OPERATIONS_ENTRY, Dt as findIsServableOverGraphQL, E as useReactorClientModule, En as IDLE_DOCUMENTS_OF_TYPE_ENTRY, Et as createGraphQLDriveNodeSource, F as useDocuments, Ft as subgraphUrlFromGraphqlUrl, G as SwitchboardUnreachableError, Gt as GraphQLWrongBackendError, H as SwitchboardBackend, Ht as withStreamedBodies, I as useGetDocument, It as GraphQLFetch, J as DocumentChangesEventPayload, Jt as queriesUnknownField, K as createSwitchboardBackend, Kt as JobFailedError, L as useGetDocumentAsync, Lt as globalFetch, M as useDocument, Mn as readPromiseState, Mt as SubgraphSdkRegistry, N as useDocumentCache, Nn as IDLE_REFETCH_STATE, Nt as TypedGraphQLDocument, O as useSync, On as IDocumentCacheReader, Ot as isGraphQLReactorClient, P as useDocumentSafe, Pn as dispatchActions, Pt as describeGraphQLDocument, Q as JobChangesSocketOptions, Qt as toLegacyNode, R as useGetDocuments, Rt as isDeadlineError, S as useDatabase, Sn as SyncStatus, St as GraphQLReactorClient, T as useReactorClient, Tn as GET_MANY_CHUNK_SIZE, Tt as ambientRenownSigner, U as SwitchboardBackendDescriptor, Ut as BatchJobFailedError, V as DEFAULT_REQUEST_TIMEOUT_MS, Vt as withRequestDeadline, W as SwitchboardBreaker, Wt as GraphQLOperationNotSupportedError, X as IJobChangesSocket, Xt as GraphQLDriveNodeSource, Y as DocumentChangesSubscriptionOptions, Yt as DriveNodeQueries, Z as JobChangesEventPayload, Zt as GraphQLDriveReadClient, _ as addReactorHalvesEventHandler, _n as RemoteControllerOptions, _t as GraphQLReactorProvider, a as DocumentOperationsState, an as revisionMapFromRevisionsList, at as packageFromDocumentModels, b as setReactorClient, bn as RemoteOperation, bt as useSwitchboardClient, c as useDocumentModelModuleById, cn as DocumentChangeListener, ct as signStampedAction, d as UseDispatchResult, dn as GetOperationsResult, dt as GetDocumentAtConsistencyResult, en as GetDocumentQueryResult, et as isAuthRefusalClose, f as createDispatch, fn as IRemoteClient, ft as GetDocumentAtConsistencyVariables, g as addReactorClientModuleEventHandler, gn as RemoteControllerGraphQLClient, gt as ReactorOperationFieldsFragmentDoc, h as addReactorClientEventHandler, hn as PushResult, ht as MutateDocumentWithOperationsVariables, i as DocumentOperationsResult, in as phDocumentFromMutation, it as StaticPackageManager, j as setDocumentCache, jn as isOperationCache, jt as SubgraphSdkFactory, k as useSyncList, kn as addPromiseState, kt as viewFilterInputFromViewFilter, l as useDocumentModelModules, ln as GetDocumentResult, lt as stampAction, m as addFullReactorClientEventHandler, mn as MergeHandler, mt as MutateDocumentWithOperationsResult, n as setAttachmentService, nn as isoStringFromDateTime, nt as startDocumentChangesSubscription, o as UseDocumentOperationsOptions, on as ConflictInfo, ot as resolveDocumentModelModule, p as useDispatch, pn as IRemoteController, pt as MutateDocumentWithOperationsDocument, q as ConnectionParams, qt as queriesUnknownArgument, r as useAttachmentService, rn as phDocumentFromGetDocument, rt as subscriptionsUrlFromGraphqlUrl, s as useDocumentOperations, sn as ConflictStrategy, st as prepareSignedActions, t as addAttachmentServiceEventHandler, tn as RevisionsListSelection, tt as makeAuthConnectionParams, u as DispatchFn, un as GetDocumentWithOperationsResult, ut as GetDocumentAtConsistencyDocument, v as getFullReactorClient, vn as RemoteDocumentChangeEvent, vt as GraphQLReactorProviderProps, w as usePGlite, wn as DocumentCache, wt as GraphQLReactorReadClient, x as setReactorClientModule, xn as RemoteOperationResultPage, xt as DriveIdCall, y as setFullReactorClient, yn as RemoteDocumentData, yt as ensurePHEventHandlers, z as DEFAULT_BATCH_REQUEST_TIMEOUT_MS, zt as isNodeFetch } from "./attachment-service-DXfpfp98.js";
2
2
  import { d as MutateDocumentMutation, h as PropagationMode, i as DeleteDocumentsMutation, l as GetDocumentWithOperationsQuery, n as CreateDocumentMutation, o as FindDocumentsQuery, r as DeleteDocumentMutation, t as ActionInput, v as SdkFunctionWrapper } from "./schema-Bn6L3QR1.js";
3
3
  import { n as ambientRenownTokenProvider, r as makeAuthMiddleware, t as BearerTokenProvider } from "./auth-DzIYxeEJ.js";
4
4
  import { a as getAnalyticsStore, i as createAnalyticsStore, n as IPowerhouseAnalytics, r as CreateStoreOptions } from "./types-520nWrB3.js";
5
- import { $ as IPackageManager, A as loadDriveNodes, At as PHGlobalConfigKey, B as createPHStore, Bt as ReactorBrowserHalves, C as DriveNodesCache, Ct as PHDocumentEditorConfigHooks, D as dropDriveNode, Dt as PHGlobalConfig, E as addDriveNodesEventHandler, Et as PHDrivesGlobalConfig, F as useDriveNodes, Ft as PHRenownGlobalConfig, G as notifyPHStore, Gt as IDocumentCache, H as getActivePHStore, Ht as DocumentRefetchState, I as useDriveNodesCache, It as PHSentryGlobalConfig, J as DraggingNode, Jt as OperationsCacheEntry, K as subscribePHStore, Kt as IDocumentTypeCache, L as PHStore, Lt as IReactorBrowserClient, M as peekDriveNode, Mt as PHGlobalConfigSettersForKey, N as takeLocalDriveWrite, Nt as PHProcessorsGlobalConfig, O as getDriveNode, Ot as PHGlobalConfigHooks, P as useDriveNode, Pt as PHRelationalProcessorsGlobalConfig, Q as IPackageListerUnsubscribe, R as PHStoreProvider, Rt as IReactorBrowserReadClient, S as WorkerReactorModule, St as PHDocumentEditorConfig, T as DriveNodesOptions, Tt as PHDocumentEditorConfigSetters, U as getPHStore, Ut as DocumentsOfTypeEntry, V as ensurePHStore, Vt as DocumentDispatch, W as getPHStoreSubscribe, Wt as FulfilledPromise, X as useDragNode, Xt as PromiseWithState, Y as addDraggingNodeEventHandler, Yt as PromiseState, Z as useDropNode, Zt as RejectedPromise, _ as SetEvent, _t as PHAppConfig, a as LOADING, at as TimelineBarItem, b as UsePHGlobalValue, bt as PHAppConfigSetters, c as PHGlobalEventHandlerAdders, ct as DiscoveryEvent, d as PHNavigateOptions, dt as FailedInstallationReason, et as IPackagesListener, f as PHNavigation, ft as IPackageDiscoveryService, g as SearchParamsUpdate, gt as PHAnalyticsGlobalConfig, h as PHSettingsTarget, ht as FullPHGlobalConfig, i as BrowserReactorModule, it as PHToastType, j as markLocalDriveWrite, jt as PHGlobalConfigSetters, k as invalidateDriveNodes, kt as PHGlobalConfigHooksForKey, l as PHGlobalKey, lt as DiscoveryEventListener, m as PHSearchUpdate, mt as PHModal, n as BackendAuthState, nt as PHToastFn, o as PHDriveTarget, ot as TimelineDividerItem, p as PHNavigationTarget, pt as PendingInstallation, q as usePHStore, qt as IOperationCache, r as BrowserReactorClientModule, rt as PHToastOptions, s as PHGlobal, st as TimelineItem, t as AddPHGlobalEventHandler, tt as PackageManagerInstallResult, u as PHGlobalValue, ut as FailedInstallation, v as SetPHGlobalValue, vt as PHAppConfigHooks, w as DriveNodesEntry, wt as PHDocumentEditorConfigKey, x as WorkerReactorClientModule, xt as PHCommonGlobalConfig, y as SetSearchParams, yt as PHAppConfigKey, z as bindPHStoreToWindow, zt as IReactorBrowserWriteClient } from "./global-bbfp3_1x.js";
5
+ import { $ as IPackageManager, A as loadDriveNodes, At as PHGlobalConfigKey, B as createPHStore, Bt as FulfilledPromise, C as DriveNodesCache, Ct as PHDocumentEditorConfigHooks, D as dropDriveNode, Dt as PHGlobalConfig, E as addDriveNodesEventHandler, Et as PHDrivesGlobalConfig, F as useDriveNodes, Ft as PHRenownGlobalConfig, G as notifyPHStore, Gt as PromiseState, H as getActivePHStore, Ht as IDocumentTypeCache, I as useDriveNodesCache, It as PHSentryGlobalConfig, J as DraggingNode, K as subscribePHStore, Kt as PromiseWithState, L as PHStore, Lt as DocumentDispatch, M as peekDriveNode, Mt as PHGlobalConfigSettersForKey, N as takeLocalDriveWrite, Nt as PHProcessorsGlobalConfig, O as getDriveNode, Ot as PHGlobalConfigHooks, P as useDriveNode, Pt as PHRelationalProcessorsGlobalConfig, Q as IPackageListerUnsubscribe, R as PHStoreProvider, Rt as DocumentRefetchState, S as WorkerReactorModule, St as PHDocumentEditorConfig, T as DriveNodesOptions, Tt as PHDocumentEditorConfigSetters, U as getPHStore, Ut as IOperationCache, V as ensurePHStore, Vt as IDocumentCache, W as getPHStoreSubscribe, Wt as OperationsCacheEntry, X as useDragNode, Y as addDraggingNodeEventHandler, Z as useDropNode, _ as SetEvent, _t as PHAppConfig, a as LOADING, at as TimelineBarItem, b as UsePHGlobalValue, bt as PHAppConfigSetters, c as PHGlobalEventHandlerAdders, ct as DiscoveryEvent, d as PHNavigateOptions, dt as FailedInstallationReason, et as IPackagesListener, f as PHNavigation, ft as IPackageDiscoveryService, g as SearchParamsUpdate, gt as PHAnalyticsGlobalConfig, h as PHSettingsTarget, ht as FullPHGlobalConfig, i as BrowserReactorModule, it as PHToastType, j as markLocalDriveWrite, jt as PHGlobalConfigSetters, k as invalidateDriveNodes, kt as PHGlobalConfigHooksForKey, l as PHGlobalKey, lt as DiscoveryEventListener, m as PHSearchUpdate, mt as PHModal, n as BackendAuthState, nt as PHToastFn, o as PHDriveTarget, ot as TimelineDividerItem, p as PHNavigationTarget, pt as PendingInstallation, q as usePHStore, qt as RejectedPromise, r as BrowserReactorClientModule, rt as PHToastOptions, s as PHGlobal, st as TimelineItem, t as AddPHGlobalEventHandler, tt as PackageManagerInstallResult, u as PHGlobalValue, ut as FailedInstallation, v as SetPHGlobalValue, vt as PHAppConfigHooks, w as DriveNodesEntry, wt as PHDocumentEditorConfigKey, x as WorkerReactorClientModule, xt as PHCommonGlobalConfig, y as SetSearchParams, yt as PHAppConfigKey, z as bindPHStoreToWindow, zt as DocumentsOfTypeEntry } from "./global-DAAmZGCO.js";
6
+ import { a as IReactorBrowserReadClient, i as IReactorBrowserClient, n as SwitchboardEntry, o as IReactorBrowserWriteClient, r as SwitchboardWorkflows, s as ReactorBrowserHalves, t as SwitchboardDirectory } from "./switchboards-D-_JBUbF.js";
6
7
  import { baseDocumentModels, baseDocumentModelsMap } from "./src/document-model.js";
7
8
  import { t as PGlite } from "./pglite-CntadC_p-DTkdF8sr.js";
8
9
  import { r as PGliteWithLive } from "./index-rtDmzViP.js";
9
- import { a as GraphQLDocumentEvents, c as ReactorGraphQLClient, d as DEFAULT_DRIVE_ID, f as DEFAULT_SWITCHBOARD_URL, h as graphqlEventsToSyncDrive, i as GraphQLDocumentEventOperationName, l as RunDocumentOptions, m as graphqlDocumentsEvents, n as GraphQLClientDocumentsEvent, o as GraphQLDocumentEventsOperationName, p as graphqlDocumentEvents, r as GraphQLClientWindowEvents, s as GraphQLDocumentsEvents, t as GraphQLClientDocumentEvent, u as TStateSchemaZodObject } from "./types-CT44EMmw.js";
10
- import { t as createClient } from "./client-C-NgSjoc.js";
11
- import { $ as setRenown, A as DOMAIN_TYPE, B as CopyIcon, C as RenownInitialUserProvider, D as CREDENTIAL_SCHEMA_EIP712_TYPE, E as useRenownInitialUser, F as RENOWN_URL, G as RenownUserButton, H as RenownLogo, I as VERIFIABLE_CREDENTIAL_EIP712_TYPE, J as RenownLoginButton, K as RenownUserButtonMenuItem, L as initConnectCrypto, M as RENOWN_CHAIN_ID, N as RENOWN_NETWORK_ID, O as CREDENTIAL_SUBJECT_TYPE, P as RENOWN_RETURN_URL_STRIPPED_PARAMS, Q as addRenownEventHandler, R as initRenownCrypto, S as RenownInitialAuth, T as useRenownInitialAuth, U as SpinnerIcon, V as DisconnectIcon, W as UserIcon, X as RenownAuthButton, Y as RenownLoginButtonProps, Z as RenownAuthButtonProps, _ as RenownSessionCookieState, a as useRenownWalletAdapter, at as desktopShell, b as RENOWN_INITIAL_ANONYMOUS, c as RenownWalletProvider, ct as openRenown, d as RenownProviderProps, dt as RenownAuthResolution, et as useDid, f as Renown, ft as RenownAuthStatus, g as RenownSessionCookieOptions, h as useRenownInit, i as decodeDelegation, it as DesktopShell, j as ISSUER_TYPE, k as CREDENTIAL_TYPES, l as RenownWalletProviderProps, lt as RenownAuth, m as RenownInitOptions, mt as useRenownAuthAsync, n as DelegationScope, nt as useRenown, o as RenownLoginMethod, ot as login, p as RenownProps, pt as useRenownAuth, q as RenownUserButtonProps, r as createDelegation, rt as useUser, s as useRenownLoginMethods, st as logout, t as DelegationClaims, tt as useLoginStatus, u as RenownProvider, ut as RenownAuthAsync, v as useRenownSessionCookie, w as RenownInitialUserProviderProps, x as RENOWN_INITIAL_UNKNOWN, y as useRenownSessionSynced, z as ChevronDownIcon } from "./index-Bfr_cWdi.js";
10
+ import { a as GraphQLDocumentEvents, c as ReactorGraphQLClient, d as DEFAULT_DRIVE_ID, f as DEFAULT_SWITCHBOARD_URL, h as graphqlEventsToSyncDrive, i as GraphQLDocumentEventOperationName, l as RunDocumentOptions, m as graphqlDocumentsEvents, n as GraphQLClientDocumentsEvent, o as GraphQLDocumentEventsOperationName, p as graphqlDocumentEvents, r as GraphQLClientWindowEvents, s as GraphQLDocumentsEvents, t as GraphQLClientDocumentEvent, u as TStateSchemaZodObject } from "./types-CyPDurGV.js";
11
+ import { t as createClient } from "./client-BFk0MY6A.js";
12
+ import { $ as setRenown, A as DOMAIN_TYPE, B as CopyIcon, C as RenownInitialUserProvider, D as CREDENTIAL_SCHEMA_EIP712_TYPE, E as useRenownInitialUser, F as RENOWN_URL, G as RenownUserButton, H as RenownLogo, I as VERIFIABLE_CREDENTIAL_EIP712_TYPE, J as RenownLoginButton, K as RenownUserButtonMenuItem, L as initConnectCrypto, M as RENOWN_CHAIN_ID, N as RENOWN_NETWORK_ID, O as CREDENTIAL_SUBJECT_TYPE, P as RENOWN_RETURN_URL_STRIPPED_PARAMS, Q as addRenownEventHandler, R as initRenownCrypto, S as RenownInitialAuth, T as useRenownInitialAuth, U as SpinnerIcon, V as DisconnectIcon, W as UserIcon, X as RenownAuthButton, Y as RenownLoginButtonProps, Z as RenownAuthButtonProps, _ as RenownSessionCookieState, a as useRenownWalletAdapter, at as desktopShell, b as RENOWN_INITIAL_ANONYMOUS, c as RenownWalletProvider, ct as openRenown, d as RenownProviderProps, dt as RenownAuthResolution, et as useDid, f as Renown, ft as RenownAuthStatus, g as RenownSessionCookieOptions, h as useRenownInit, i as decodeDelegation, it as DesktopShell, j as ISSUER_TYPE, k as CREDENTIAL_TYPES, l as RenownWalletProviderProps, lt as RenownAuth, m as RenownInitOptions, mt as useRenownAuthAsync, n as DelegationScope, nt as useRenown, o as RenownLoginMethod, ot as login, p as RenownProps, pt as useRenownAuth, q as RenownUserButtonProps, r as createDelegation, rt as useUser, s as useRenownLoginMethods, st as logout, t as DelegationClaims, tt as useLoginStatus, u as RenownProvider, ut as RenownAuthAsync, v as useRenownSessionCookie, w as RenownInitialUserProviderProps, x as RENOWN_INITIAL_UNKNOWN, y as useRenownSessionSynced, z as ChevronDownIcon } from "./index-Bj1poVfa.js";
12
13
  import { QueryCallbackReturnType, RelationalDbOptions, RelationalDbWithLive, createProcessorQuery, useRelationalDb, useRelationalQuery, useRelationalQueryOptions } from "./src/relational/index.js";
13
14
  import { DragEventHandler, MouseEvent, ReactNode } from "react";
14
15
  import { DocumentModelLib, DocumentModelModule, EditorModule, PHDocument, PHDocumentController } from "document-model";
15
16
  import { Action as Action$1, AuthSubject, DocumentDispatch as DocumentDispatch$1, DocumentModelModule as DocumentModelModule$1, DocumentOperations, Operation as Operation$1, PHBaseState, PHDocument as PHDocument$1, PHDocumentHeader, SignaturePolicy, SubgraphModule, ValidationError } from "@powerhousedao/shared/document-model";
16
- import { ActionCandidate, ChannelScheme, ConnectionState, ConnectionStateSnapshot, ConnectionStateSnapshot as ConnectionStateSnapshot$1, Database, DocumentChangeEvent, DocumentChangeType, DocumentIntegrityService, DriveCollectionId, Evaluation, GqlRequestChannel, IChannel, IDocumentModelLoader, IDocumentModelRegistry, IDriveReadClient, IPeerAgreement, IProcessor, IProcessorHostModuleBase, IQueue, IReactorClient, IReactorProcessorHostModuleBase, IReactorReadClient, IReactorReadClient as IReactorReadClient$1, IReactorWriteClient, IRelationalDb, InMemoryQueue, IntervalPollTimer, Job, JwtHandler, KeyframeValidationIssue, OperationWithContext, ParsedDriveUrl, PollBehavior, PollBehavior as PollBehavior$1, ProcessorApp, ProcessorFactory, ProcessorFactoryBuilder as ProcessorFactoryBuilder$1, ProcessorFilter, ProcessorRecord, REACTOR_SCHEMA, ReactorBuilder, ReactorClientBuilder, ReactorFeatureFlags, RebuildResult, RelationalDbProcessor, Remote, RemoteFilter, RemoteMeta, RemotePeer, SignerConfig, SnapshotValidationIssue, SyncHold, SyncOperation, SyncOperationStatus, ValidationResult, WriteHandle, WriteReceipt, driveIdFromUrl, isDriveAuthError, parseDriveUrl } from "@powerhousedao/reactor";
17
+ import { ActionCandidate, ChannelScheme, ConnectionState, ConnectionStateSnapshot, ConnectionStateSnapshot as ConnectionStateSnapshot$1, Database, DocumentChangeEvent, DocumentChangeType, DocumentIntegrityService, DriveCollectionId, Evaluation, GqlRequestChannel, IChannel, IDocumentModelLoader, IDocumentModelRegistry, IDriveReadClient, IPeerAgreement, IProcessor, IProcessorHostModuleBase, IQueue, IReactorClient, IReactorProcessorHostModuleBase, IReactorReadClient, IReactorReadClient as IReactorReadClient$1, IReactorWriteClient, IRelationalDb, ISyncManager, InMemoryQueue, IntervalPollTimer, Job, JwtHandler, KeyframeValidationIssue, OperationWithContext, ParsedDriveUrl, PollBehavior, PollBehavior as PollBehavior$1, ProcessorApp, ProcessorFactory, ProcessorFactoryBuilder as ProcessorFactoryBuilder$1, ProcessorFilter, ProcessorRecord, REACTOR_SCHEMA, ReactorBuilder, ReactorClientBuilder, ReactorFeatureFlags, RebuildResult, RelationalDbProcessor, Remote, RemoteFilter, RemoteMeta, RemotePeer, SignerConfig, SnapshotValidationIssue, SyncHold, SyncOperation, SyncOperationStatus, ValidationResult, WriteHandle, WriteReceipt, driveIdFromUrl, isDriveAuthError, parseDriveUrl } from "@powerhousedao/reactor";
17
18
  import { DocumentDriveAction, DocumentDriveDocument, DriveInput, FileNode, FolderNode, Node, SharingType } from "@powerhousedao/shared/document-drive";
18
19
  import { AttachmentDownloadInput, AttachmentHeader, AttachmentUploadResult, IAttachmentClient, PreprocessResult } from "@powerhousedao/reactor-attachments/client";
19
- import { ConflictResolution as ConflictResolution$1, DocumentDispatch as DocumentDispatch$2, FileUploadProgressCallback as FileUploadProgressCallback$1, PHAppConfig as PHAppConfig$1, PHAppConfigHooks as PHAppConfigHooks$1, PHAppConfigKey as PHAppConfigKey$1, PHAppConfigSetters as PHAppConfigSetters$1, PHDocumentEditorConfig as PHDocumentEditorConfig$1, PHDocumentEditorConfigHooks as PHDocumentEditorConfigHooks$1, PHDocumentEditorConfigKey as PHDocumentEditorConfigKey$1, PHDocumentEditorConfigSetters as PHDocumentEditorConfigSetters$1, PHGlobal as PHGlobal$1, PHGlobalConfig as PHGlobalConfig$1, PHGlobalConfigHooks as PHGlobalConfigHooks$1, PHGlobalConfigKey as PHGlobalConfigKey$1, PHGlobalConfigSetters as PHGlobalConfigSetters$1, PHGlobalKey as PHGlobalKey$1, PHModal as PHModal$1, PHNavigateOptions as PHNavigateOptions$1, PHNavigation as PHNavigation$1, PHNavigationTarget as PHNavigationTarget$1, PHSearchUpdate as PHSearchUpdate$1, PHSettingsTarget as PHSettingsTarget$1, SearchParamsUpdate as SearchParamsUpdate$1, SetSearchParams as SetSearchParams$1 } from "@powerhousedao/reactor-browser";
20
+ import { AddPHGlobalEventHandler as AddPHGlobalEventHandler$1, ConflictResolution as ConflictResolution$1, DocumentDispatch as DocumentDispatch$2, FileUploadProgressCallback as FileUploadProgressCallback$1, PHAppConfig as PHAppConfig$1, PHAppConfigHooks as PHAppConfigHooks$1, PHAppConfigKey as PHAppConfigKey$1, PHAppConfigSetters as PHAppConfigSetters$1, PHDocumentEditorConfig as PHDocumentEditorConfig$1, PHDocumentEditorConfigHooks as PHDocumentEditorConfigHooks$1, PHDocumentEditorConfigKey as PHDocumentEditorConfigKey$1, PHDocumentEditorConfigSetters as PHDocumentEditorConfigSetters$1, PHGlobal as PHGlobal$1, PHGlobalConfig as PHGlobalConfig$1, PHGlobalConfigHooks as PHGlobalConfigHooks$1, PHGlobalConfigKey as PHGlobalConfigKey$1, PHGlobalConfigSetters as PHGlobalConfigSetters$1, PHGlobalKey as PHGlobalKey$1, PHModal as PHModal$1, PHNavigateOptions as PHNavigateOptions$1, PHNavigation as PHNavigation$1, PHNavigationTarget as PHNavigationTarget$1, PHSearchUpdate as PHSearchUpdate$1, PHSettingsTarget as PHSettingsTarget$1, SearchParamsUpdate as SearchParamsUpdate$1, SetPHGlobalValue as SetPHGlobalValue$1, SetSearchParams as SetSearchParams$1, SwitchboardDirectory as SwitchboardDirectory$1, UsePHGlobalValue as UsePHGlobalValue$1 } from "@powerhousedao/reactor-browser";
20
21
  import { Node as Node$1 } from "@powerhousedao/shared";
21
22
  import { PackageInfo, PackagePage } from "@powerhousedao/shared/registry";
22
23
  //#region src/actions/drive-info.d.ts
@@ -1172,6 +1173,14 @@ export declare function onVetraPackageManager(callback: (packageManager: IPackag
1172
1173
  /** Sets the Vetra package manager and registers its packages */
1173
1174
  export declare function setVetraPackageManager(packageManager: IPackageManager): void;
1174
1175
  //#endregion
1176
+ //#region src/hooks/switchboards.d.ts
1177
+ /** The switchboards the app reaches, from the provided store. */
1178
+ export declare const useSwitchboards: UsePHGlobalValue$1<SwitchboardDirectory$1>;
1179
+ /** Sets the app's switchboard directory; the host does this at boot. */
1180
+ export declare const setSwitchboards: SetPHGlobalValue$1<SwitchboardDirectory$1>;
1181
+ /** Registers the switchboards window event handler */
1182
+ export declare const addSwitchboardsEventHandler: AddPHGlobalEventHandler$1;
1183
+ //#endregion
1175
1184
  //#region src/hooks/close-node.d.ts
1176
1185
  /** Leaves a node's view: back to the entry it was opened from, past entries
1177
1186
  * pushed inside it; else, e.g. after a deep link, to its parent in place. */
@@ -1804,6 +1813,67 @@ export declare function getDocumentStateSelection(model: DocumentModelModule): s
1804
1813
  export declare function buildDocumentSubgraphQuery(documentType: string, identifier: string, model?: DocumentModelModule, authToken?: string): string;
1805
1814
  export declare function buildDocumentSubgraphUrl(channelUrl: string, documentType: string, identifier: string, model?: DocumentModelModule, authToken?: string): string;
1806
1815
  //#endregion
1816
+ //#region src/utils/switchboard-directory.d.ts
1817
+ /** What a router says about its backends; structural, so hosts pass their own. */
1818
+ export interface SwitchboardRouter {
1819
+ readonly backends: readonly {
1820
+ readonly name: string;
1821
+ readonly facts: {
1822
+ readonly known: boolean;
1823
+ readonly reactor: {
1824
+ readonly workflows: boolean;
1825
+ };
1826
+ };
1827
+ }[];
1828
+ /** The name of the backend that serves `identifier`. */
1829
+ locate(identifier: string, signal?: AbortSignal): Promise<string>;
1830
+ }
1831
+ export interface SwitchboardDirectoryOptions {
1832
+ /**
1833
+ * The host's remote backends, as the served config lists them
1834
+ * (`instance.remoteBackends`): a name and one of the switchboard's drive
1835
+ * addresses, `<base>/d/<slug>`.
1836
+ */
1837
+ remoteBackends?: readonly {
1838
+ readonly name: string;
1839
+ readonly url: string;
1840
+ }[];
1841
+ /** The router over those backends, for their facts and for `locate`. */
1842
+ router?: SwitchboardRouter;
1843
+ /** The tab's sync manager, read on each call: every gql remote's switchboard. */
1844
+ syncManager?: () => Pick<ISyncManager, "list"> | undefined;
1845
+ /** What `${origin}` stands for; defaults to the page's origin. */
1846
+ origin?: string;
1847
+ }
1848
+ /**
1849
+ * Builds the directory from the host's remote backends and the tab's synced
1850
+ * drives. A backend's facts are read on each `list`, so a refresh shows.
1851
+ */
1852
+ export declare function createSwitchboardDirectory(options: SwitchboardDirectoryOptions): SwitchboardDirectory;
1853
+ export type SwitchboardLookupErrorCode = "NO_DIRECTORY" | "NO_SWITCHBOARD" | "UNKNOWN_SWITCHBOARD" | "AMBIGUOUS_SWITCHBOARD" | "NO_WORKFLOW_RUNTIME";
1854
+ /** Why no switchboard could be picked, with the ones there are. */
1855
+ export declare class SwitchboardLookupError extends Error {
1856
+ readonly code: SwitchboardLookupErrorCode;
1857
+ readonly switchboards: readonly SwitchboardEntry[];
1858
+ constructor(message: string, code: SwitchboardLookupErrorCode, switchboards?: readonly SwitchboardEntry[]);
1859
+ }
1860
+ export interface SwitchboardRequest {
1861
+ /** A name from the directory, or a URL on the switchboard (its base, GraphQL or any path under it). */
1862
+ switchboard?: string;
1863
+ /** The document or drive the call is about: its switchboard, when the directory can place it. */
1864
+ documentId?: string;
1865
+ /** What the switchboard must run. */
1866
+ need?: "workflows";
1867
+ signal?: AbortSignal;
1868
+ }
1869
+ /**
1870
+ * The switchboard a call goes to: the one named, else the one serving the
1871
+ * document, else the only one there is (or the only one running what `need`
1872
+ * asks for). Throws a {@link SwitchboardLookupError} that lists the
1873
+ * switchboards whenever it can't pick one; there is no default URL.
1874
+ */
1875
+ export declare function resolveSwitchboard(directory: SwitchboardDirectory | undefined, request?: SwitchboardRequest): Promise<SwitchboardEntry>;
1876
+ //#endregion
1807
1877
  //#region src/utils/upgrade-preview.d.ts
1808
1878
  export type UpgradeStepInfo = {
1809
1879
  toVersion: number;
@@ -1891,6 +1961,6 @@ export declare function getUserPermissions(): {
1891
1961
  //#region src/utils/validate-document.d.ts
1892
1962
  export declare const validateDocument: (document: PHDocument$1) => ValidationError[];
1893
1963
  //#endregion
1894
- export { type AddPHGlobalEventHandler, type BackendAuthState, BatchJobFailedError, BearerTokenProvider, type BrowserReactorClientModule, type BrowserReactorModule, type BulkImportJob, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChannelScheme, ChevronDownIcon, type ConflictInfo, type ConflictResolution, type ConflictStrategy, ConnectionParams, type ConnectionState, type ConnectionStateSnapshot, CopyIcon, CreateStoreOptions, DEFAULT_BATCH_REQUEST_TIMEOUT_MS, DEFAULT_BREAKER, DEFAULT_DRIVE_ID, DEFAULT_REQUEST_TIMEOUT_MS, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, type Database, type DelegationClaims, type DelegationScope, type DesktopShell, DisconnectIcon, type DiscoveryEvent, type DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, type DocumentDispatch, DocumentIntegrityService, DocumentOperationsResult, DocumentOperationsState, type DocumentRefetchState, type DocumentTypeIcon, type DocumentsOfTypeEntry, DraggingNode, DriveCollectionId, DriveIdCall, type DriveInfo, DriveNodeQueries, DriveNodesCache, DriveNodesEntry, DriveNodesOptions, type FailedInstallation, type FailedInstallationReason, type FileUploadProgress, type FileUploadProgressCallback, type FolderZipResult, type FulfilledPromise, type FullPHGlobalConfig, GET_MANY_CHUNK_SIZE, GetDocumentAtConsistencyDocument, GetDocumentAtConsistencyResult, GetDocumentAtConsistencyVariables, GetDocumentQueryFields, GetDocumentQueryResult, type GetDocumentResult, type GetDocumentWithOperationsResult, type GetOperationsResult, GqlRequestChannel, type GraphQLClientDocumentEvent, type GraphQLClientDocumentsEvent, type GraphQLClientWindowEvents, type GraphQLDocumentEventOperationName, type GraphQLDocumentEvents, type GraphQLDocumentEventsOperationName, type GraphQLDocumentsEvents, GraphQLDriveNodeSource, GraphQLDriveReadClient, GraphQLFetch, GraphQLOperationNotSupportedError, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLReactorReadClient, GraphQLRequestOptions, GraphQLWrongBackendError, type IChannel, IDLE_DOCUMENTS_OF_TYPE_ENTRY, IDLE_OPERATIONS_ENTRY, IDLE_REFETCH_STATE, type IDocumentCache, IDocumentCacheReader, type IDocumentModelLoader, type IDocumentTypeCache, IJobChangesSocket, type IOperationCache, type IPackageDiscoveryService, type IPackageListerUnsubscribe, type IPackageManager, type IPackagesListener, type IPeerAgreement, type IProcessor, type IProcessorHostModule, type IProcessorHostModuleBase, type IQueue, type IReactorBrowserClient, type IReactorBrowserReadClient, type IReactorBrowserWriteClient, type IReactorClient, type IReactorProcessorHostModule, type IReactorReadClient, type IReactorWriteClient, type IRelationalDb, type IRemoteClient, type IRemoteController, ISSUER_TYPE, InMemoryQueue, IntervalPollTimer, type Job, JobChangesEventPayload, JobChangesSocketOptions, JobFailedError, type JwtHandler, type KeyframeValidationIssue, type LOADING, type MergeHandler, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, type NodeKind, type OperationWithContext, type OperationsCacheEntry, type PHAnalyticsGlobalConfig, type PHAppConfig, type PHAppConfigHooks, type PHAppConfigKey, type PHAppConfigSetters, type PHCommonGlobalConfig, type PHDocumentEditorConfig, type PHDocumentEditorConfigHooks, type PHDocumentEditorConfigKey, type PHDocumentEditorConfigSetters, type PHDriveTarget, type PHDrivesGlobalConfig, type PHGlobal, type PHGlobalConfig, type PHGlobalConfigHooks, type PHGlobalConfigHooksForKey, type PHGlobalConfigKey, type PHGlobalConfigSetters, type PHGlobalConfigSettersForKey, type PHGlobalEventHandlerAdders, type PHGlobalKey, type PHGlobalValue, type PHModal, type PHNavigateOptions, type PHNavigation, type PHNavigationTarget, type PHProcessorsGlobalConfig, type PHRelationalProcessorsGlobalConfig, type PHRenownGlobalConfig, type PHSearchUpdate, type PHSentryGlobalConfig, type PHSettingsTarget, PHStore, PHStoreProvider, type PHToastFn, type PHToastOptions, type PHToastType, type PackageManagerInstallResult, type ParsedDriveUrl, type PendingInstallation, PollBehavior, type ProcessorApp, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type PromiseState, type PromiseWithState, PropagationMode, type PublishEvent, type PushResult, QueryCallbackReturnType, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_RETURN_URL_STRIPPED_PARAMS, RENOWN_URL, type ReactorBrowserHalves, ReactorBuilder, ReactorClientBuilder, type ReactorFeatureFlags, type ReactorGraphQLClient, ReactorOperationFieldsFragmentDoc, type RebuildResult, type RejectedPromise, RelationalDbOptions, RelationalDbProcessor, RelationalDbWithLive, type Remote, type RemoteControllerGraphQLClient, type RemoteControllerOptions, type RemoteDocumentControllerWith, type RemoteDocumentData, type RemoteFilter, type RemoteMeta, type RemoteOperation, type RemoteOperationResultPage, type RemotePeer, Renown, RenownAuth, RenownAuthAsync, RenownAuthButton, type RenownAuthButtonProps, RenownAuthResolution, RenownAuthStatus, type RenownInitOptions, type RenownInitialAuth, RenownInitialUserProvider, type RenownInitialUserProviderProps, RenownLoginButton, type RenownLoginButtonProps, type RenownLoginMethod, RenownLogo, type RenownProps, RenownProvider, type RenownProviderProps, type RenownSessionCookieOptions, type RenownSessionCookieState, RenownUserButton, type RenownUserButtonMenuItem, type RenownUserButtonProps, RenownWalletProvider, type RenownWalletProviderProps, RevisionsListSelection, type RunDocumentOptions, type SdkFunctionWrapper, type SearchParamsUpdate, type SetEvent, type SetPHGlobalValue, type SetSearchParams, type SignerConfig, type SnapshotValidationIssue, SpinnerIcon, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, SwitchboardBackend, SwitchboardBackendDescriptor, SwitchboardBreaker, SwitchboardUnreachableError, type SyncHold, type SyncOperation, SyncOperationStatus, type SyncStatus, type TStateSchemaZodObject, type TimelineBarItem, type TimelineDividerItem, type TimelineItem, type TrackedAction, TypedGraphQLDocument, UseDispatchResult, UseDocumentOperationsOptions, type UseOnDropFile, type UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, type WorkerReactorClientModule, type WorkerReactorModule, type WriteHandle, type WriteReceipt, addAttachmentServiceEventHandler, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDriveNodesEventHandler, addFullReactorClientEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addReactorHalvesEventHandler, addRenownEventHandler, ambientRenownSigner, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, bindPHStoreToWindow, createAnalyticsStore, createClient, createDelegation, createDispatch, createGraphQLDriveNodeSource, createJobChangesSocket, createPHStore, createProcessorQuery, createSwitchboardBackend, decodeDelegation, describeGraphQLDocument, desktopShell, dispatchActions, driveIdFromUrl, dropDriveNode, ensurePHEventHandlers, ensurePHStore, findIsServableOverGraphQL, getActivePHStore, getAnalyticsStore, getDriveNode, getFullReactorClient, getPHStore, getPHStoreSubscribe, globalFetch, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, initConnectCrypto, initRenownCrypto, invalidateDriveNodes, isAuthRefusalClose, isDeadlineError, isDocumentTypeCache, isDriveAuthError, isGraphQLReactorClient, isNodeFetch, isOperationCache, isoStringFromDateTime, loadDriveNodes, login, logout, makeAuthConnectionParams, makeAuthMiddleware, markLocalDriveWrite, notifyPHStore, openRenown, packageFromDocumentModels, parseDriveUrl, peekDriveNode, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, queriesUnknownArgument, queriesUnknownField, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setAttachmentService, setDocumentCache, setFullReactorClient, setReactorClient, setReactorClientModule, setRenown, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscribePHStore, subscriptionsUrlFromGraphqlUrl, switchboardFetch, takeLocalDriveWrite, toLegacyNode, useAttachmentService, useDatabase, useDid, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useDragNode, useDriveNode, useDriveNodes, useDriveNodesCache, useDropNode, useGetDocument, useGetDocumentAsync, useGetDocuments, useLoginStatus, useModelRegistry, usePGlite, usePHStore, useReactorClient, useReactorClientModule, useReactorHalves, useRelationalDb, useRelationalQuery, useRelationalQueryOptions, useRenown, useRenownAuth, useRenownAuthAsync, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownSessionCookie, useRenownSessionSynced, useRenownWalletAdapter, useSwitchboardClient, useSync, useSyncList, useUser, viewFilterInputFromViewFilter, withRequestDeadline, withStreamedBodies };
1964
+ export { type AddPHGlobalEventHandler, type BackendAuthState, BatchJobFailedError, BearerTokenProvider, type BrowserReactorClientModule, type BrowserReactorModule, type BulkImportJob, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChannelScheme, ChevronDownIcon, type ConflictInfo, type ConflictResolution, type ConflictStrategy, ConnectionParams, type ConnectionState, type ConnectionStateSnapshot, CopyIcon, CreateStoreOptions, DEFAULT_BATCH_REQUEST_TIMEOUT_MS, DEFAULT_BREAKER, DEFAULT_DRIVE_ID, DEFAULT_REQUEST_TIMEOUT_MS, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, type Database, type DelegationClaims, type DelegationScope, type DesktopShell, DisconnectIcon, type DiscoveryEvent, type DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, type DocumentDispatch, DocumentIntegrityService, DocumentOperationsResult, DocumentOperationsState, type DocumentRefetchState, type DocumentTypeIcon, type DocumentsOfTypeEntry, DraggingNode, DriveCollectionId, DriveIdCall, type DriveInfo, DriveNodeQueries, DriveNodesCache, DriveNodesEntry, DriveNodesOptions, type FailedInstallation, type FailedInstallationReason, type FileUploadProgress, type FileUploadProgressCallback, type FolderZipResult, type FulfilledPromise, type FullPHGlobalConfig, GET_MANY_CHUNK_SIZE, GetDocumentAtConsistencyDocument, GetDocumentAtConsistencyResult, GetDocumentAtConsistencyVariables, GetDocumentQueryFields, GetDocumentQueryResult, type GetDocumentResult, type GetDocumentWithOperationsResult, type GetOperationsResult, GqlRequestChannel, type GraphQLClientDocumentEvent, type GraphQLClientDocumentsEvent, type GraphQLClientWindowEvents, type GraphQLDocumentEventOperationName, type GraphQLDocumentEvents, type GraphQLDocumentEventsOperationName, type GraphQLDocumentsEvents, GraphQLDriveNodeSource, GraphQLDriveReadClient, GraphQLFetch, GraphQLOperationNotSupportedError, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLReactorReadClient, GraphQLRequestOptions, GraphQLWrongBackendError, type IChannel, IDLE_DOCUMENTS_OF_TYPE_ENTRY, IDLE_OPERATIONS_ENTRY, IDLE_REFETCH_STATE, type IDocumentCache, IDocumentCacheReader, type IDocumentModelLoader, type IDocumentTypeCache, IJobChangesSocket, type IOperationCache, type IPackageDiscoveryService, type IPackageListerUnsubscribe, type IPackageManager, type IPackagesListener, type IPeerAgreement, type IProcessor, type IProcessorHostModule, type IProcessorHostModuleBase, type IQueue, type IReactorBrowserClient, type IReactorBrowserReadClient, type IReactorBrowserWriteClient, type IReactorClient, type IReactorProcessorHostModule, type IReactorReadClient, type IReactorWriteClient, type IRelationalDb, type IRemoteClient, type IRemoteController, ISSUER_TYPE, InMemoryQueue, IntervalPollTimer, type Job, JobChangesEventPayload, JobChangesSocketOptions, JobFailedError, type JwtHandler, type KeyframeValidationIssue, type LOADING, type MergeHandler, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, type NodeKind, type OperationWithContext, type OperationsCacheEntry, type PHAnalyticsGlobalConfig, type PHAppConfig, type PHAppConfigHooks, type PHAppConfigKey, type PHAppConfigSetters, type PHCommonGlobalConfig, type PHDocumentEditorConfig, type PHDocumentEditorConfigHooks, type PHDocumentEditorConfigKey, type PHDocumentEditorConfigSetters, type PHDriveTarget, type PHDrivesGlobalConfig, type PHGlobal, type PHGlobalConfig, type PHGlobalConfigHooks, type PHGlobalConfigHooksForKey, type PHGlobalConfigKey, type PHGlobalConfigSetters, type PHGlobalConfigSettersForKey, type PHGlobalEventHandlerAdders, type PHGlobalKey, type PHGlobalValue, type PHModal, type PHNavigateOptions, type PHNavigation, type PHNavigationTarget, type PHProcessorsGlobalConfig, type PHRelationalProcessorsGlobalConfig, type PHRenownGlobalConfig, type PHSearchUpdate, type PHSentryGlobalConfig, type PHSettingsTarget, PHStore, PHStoreProvider, type PHToastFn, type PHToastOptions, type PHToastType, type PackageManagerInstallResult, type ParsedDriveUrl, type PendingInstallation, PollBehavior, type ProcessorApp, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type PromiseState, type PromiseWithState, PropagationMode, type PublishEvent, type PushResult, QueryCallbackReturnType, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_RETURN_URL_STRIPPED_PARAMS, RENOWN_URL, type ReactorBrowserHalves, ReactorBuilder, ReactorClientBuilder, type ReactorFeatureFlags, type ReactorGraphQLClient, ReactorOperationFieldsFragmentDoc, type RebuildResult, type RejectedPromise, RelationalDbOptions, RelationalDbProcessor, RelationalDbWithLive, type Remote, type RemoteControllerGraphQLClient, type RemoteControllerOptions, type RemoteDocumentControllerWith, type RemoteDocumentData, type RemoteFilter, type RemoteMeta, type RemoteOperation, type RemoteOperationResultPage, type RemotePeer, Renown, RenownAuth, RenownAuthAsync, RenownAuthButton, type RenownAuthButtonProps, RenownAuthResolution, RenownAuthStatus, type RenownInitOptions, type RenownInitialAuth, RenownInitialUserProvider, type RenownInitialUserProviderProps, RenownLoginButton, type RenownLoginButtonProps, type RenownLoginMethod, RenownLogo, type RenownProps, RenownProvider, type RenownProviderProps, type RenownSessionCookieOptions, type RenownSessionCookieState, RenownUserButton, type RenownUserButtonMenuItem, type RenownUserButtonProps, RenownWalletProvider, type RenownWalletProviderProps, RevisionsListSelection, type RunDocumentOptions, type SdkFunctionWrapper, type SearchParamsUpdate, type SetEvent, type SetPHGlobalValue, type SetSearchParams, type SignerConfig, type SnapshotValidationIssue, SpinnerIcon, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, SwitchboardBackend, SwitchboardBackendDescriptor, SwitchboardBreaker, type SwitchboardDirectory, type SwitchboardEntry, SwitchboardUnreachableError, type SwitchboardWorkflows, type SyncHold, type SyncOperation, SyncOperationStatus, type SyncStatus, type TStateSchemaZodObject, type TimelineBarItem, type TimelineDividerItem, type TimelineItem, type TrackedAction, TypedGraphQLDocument, UseDispatchResult, UseDocumentOperationsOptions, type UseOnDropFile, type UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, type WorkerReactorClientModule, type WorkerReactorModule, type WriteHandle, type WriteReceipt, addAttachmentServiceEventHandler, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDriveNodesEventHandler, addFullReactorClientEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addReactorHalvesEventHandler, addRenownEventHandler, ambientRenownSigner, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, bindPHStoreToWindow, createAnalyticsStore, createClient, createDelegation, createDispatch, createGraphQLDriveNodeSource, createJobChangesSocket, createPHStore, createProcessorQuery, createSwitchboardBackend, decodeDelegation, describeGraphQLDocument, desktopShell, dispatchActions, driveIdFromUrl, dropDriveNode, ensurePHEventHandlers, ensurePHStore, findIsServableOverGraphQL, getActivePHStore, getAnalyticsStore, getDriveNode, getFullReactorClient, getPHStore, getPHStoreSubscribe, globalFetch, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, initConnectCrypto, initRenownCrypto, invalidateDriveNodes, isAuthRefusalClose, isDeadlineError, isDocumentTypeCache, isDriveAuthError, isGraphQLReactorClient, isNodeFetch, isOperationCache, isoStringFromDateTime, loadDriveNodes, login, logout, makeAuthConnectionParams, makeAuthMiddleware, markLocalDriveWrite, notifyPHStore, openRenown, packageFromDocumentModels, parseDriveUrl, peekDriveNode, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, queriesUnknownArgument, queriesUnknownField, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setAttachmentService, setDocumentCache, setFullReactorClient, setReactorClient, setReactorClientModule, setRenown, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscribePHStore, subscriptionsUrlFromGraphqlUrl, switchboardFetch, takeLocalDriveWrite, toLegacyNode, useAttachmentService, useDatabase, useDid, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useDragNode, useDriveNode, useDriveNodes, useDriveNodesCache, useDropNode, useGetDocument, useGetDocumentAsync, useGetDocuments, useLoginStatus, useModelRegistry, usePGlite, usePHStore, useReactorClient, useReactorClientModule, useReactorHalves, useRelationalDb, useRelationalQuery, useRelationalQueryOptions, useRenown, useRenownAuth, useRenownAuthAsync, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownSessionCookie, useRenownSessionSynced, useRenownWalletAdapter, useSwitchboardClient, useSync, useSyncList, useUser, viewFilterInputFromViewFilter, withRequestDeadline, withStreamedBodies };
1895
1965
  export {};
1896
1966
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/actions/drive-info.ts","../src/actions/document.ts","../src/actions/bulk-archive.ts","../src/actions/folder-zip.ts","../src/actions/drive.ts","../src/constants.ts","../src/errors.ts","../src/global/types.ts","../src/global/core.ts","../src/graphql/adapters.ts","../src/graphql/fetchers.ts","../src/graphql/graphql-client-document-cache.ts","../src/graphql/mutators.ts","../src/hooks/add-ph-event-handlers.ts","../src/hooks/allowed-document-model-modules.ts","../src/hooks/child-nodes.ts","../src/hooks/config/connect.ts","../src/hooks/config/editor.ts","../src/hooks/config/set-config-by-key.ts","../src/hooks/config/set-config-by-object.ts","../src/hooks/config/use-value-by-key.ts","../src/hooks/config/utils.ts","../src/hooks/drives.ts","../src/hooks/loading.ts","../src/hooks/connection-state.ts","../src/hooks/document-by-id.ts","../src/hooks/link-props.ts","../src/hooks/document-link.ts","../src/hooks/documents-of-type.ts","../src/hooks/document-of-type.ts","../src/hooks/document-types.ts","../src/hooks/document-version-status.ts","../src/hooks/download-document.ts","../src/hooks/download-folder.ts","../src/hooks/drive-by-id.ts","../src/hooks/drive-context.tsx","../src/hooks/editor-context.tsx","../src/hooks/editor-modules.ts","../src/hooks/use-editor-preloader.ts","../src/hooks/features.ts","../src/hooks/file-drag-and-drop.ts","../src/hooks/folder-by-id.ts","../src/hooks/graphql-reactor-client.ts","../src/hooks/init-graphql-reactor-client.ts","../src/hooks/items-in-selected-drive.ts","../src/hooks/items-in-selected-folder.ts","../src/hooks/make-ph-event-functions.ts","../src/hooks/modals.ts","../src/hooks/node-actions.ts","../src/hooks/node-by-id.ts","../src/hooks/node-path.ts","../src/hooks/package-discovery.ts","../src/hooks/parent-folder.ts","../src/hooks/revision-history.ts","../src/hooks/selected-document.ts","../src/hooks/navigation.ts","../src/hooks/url-state.ts","../src/hooks/selected-drive.ts","../src/hooks/selected-folder.ts","../src/hooks/set-selected-node.ts","../src/hooks/sync-selection.ts","../src/hooks/selected-node.ts","../src/hooks/selected-timeline-item.ts","../src/hooks/subgraph-modules.ts","../src/hooks/supported-document-types.ts","../src/hooks/theme.ts","../src/hooks/timeline-revision.ts","../src/hooks/toast.ts","../src/hooks/use-can-execute.ts","../src/hooks/use-drive-system-info.ts","../src/hooks/use-editor-file-drop.ts","../src/hooks/use-get-switchboard-link.ts","../src/types/upload.ts","../src/hooks/use-on-drop-file.ts","../src/hooks/user-permissions.ts","../src/hooks/vetra-packages.ts","../src/hooks/close-node.ts","../src/hooks/attachment-progress.ts","../src/hooks/use-attachments.ts","../src/hooks/backend-auth.ts","../src/pglite/drop.ts","../src/pglite/usePGlite.ts","../src/reactor.ts","../src/routing/drive-arrivals.ts","../src/routing/resolve-drive-route.ts","../src/registry/types.ts","../src/registry/client.ts","../src/registry/fetchers.ts","../src/remote-controller/action-tracker.ts","../src/remote-controller/remote-client.ts","../src/remote-controller/remote-controller.ts","../src/remote-controller/utils.ts","../src/storage/base-storage.ts","../src/storage/local-storage.ts","../src/storage/types.ts","../src/types/reactor.ts","../src/types/processor-host-module.ts","../src/utils/documents.ts","../src/utils/drives.ts","../src/utils/download-document.ts","../src/utils/get-revision-from-date.ts","../src/utils/nodes.ts","../src/utils/preload-editor.ts","../src/utils/switchboard.ts","../src/utils/upgrade-preview.ts","../src/utils/url.ts","../src/utils/user.ts","../src/utils/validate-document.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAaY;EACV;EACA;EACA;EACA;EACA,MAAM;EACN;;;;;;;;;;;;;;;;;;;;;wBAsBoB,eACpB,aACA,gBAAe,sBACd,QAAQ;;;wBC+IW,qBACpB,UAAU,eACT;wBAyLmB,WAAW,UAAU,cAAY,yBAAsB,eAAA;;;;;;wBA4CvD,SAAS,eAAe,OAAI,QAAA,aAAA;wBA2C5B,YACpB,iBACA,cACA,sBACA,uBACA,WAAW,cACX,aACA,0BACA,gCAA6B;;;;;EA0DrB;;;KAKE;EACV;EACA;EACA;EACA;EACA;;wBA4GoB,oBACpB,eAAe,MACf,iBACA,eACA,uBACA,aAAa,8BACb,0BACA,kBAAkB,uBAAkB,QAAA;wBAsQhB,UACpB,iBACA,cACA,wBAAqB,QAAA;wBAgCD,WAAW,iBAAiB,iBAAc;wBAwD1C,gBACpB,iBACA,gBACA,eACC,QAAQ;wBA4BW,yBACpB,gBACA,iCAA8B,QAAA;;;;;wBAwPV,gBAAgB,oBAAoB,qBAAkB,QAAA;;;KC7vChE;EAAkB,MAAM;EAAM,QAAQ;;;;;;;;;;wBAU5B,kBACpB,MAAM,MACN,iBACA,cAAc,mBACb,QAAQ;;;KCHC;EACV,KAAK;EACL;EACA;EACA;;;;;;;;;;;;wBAmCoB,eACpB,OAAO,uBACP,YAAY,wBACZ,gBAAgB,eAAe,QAAQ,eACvC,cAAc,cAAc,yBAC3B,QAAQ;;;;;;wBAoFW,kBACpB,OAAO,uBACP,aAAa,YACb,cAAc,cAAc,yBAC3B,QAAQ;;;KC/GC;EACV,eAAe;;;;;;;EAOf;;EAEA;EACA,SAAS;;;;;;;wBAQW,qBACpB,eAAe,sBACf,oBACA;EAAY;EAAoB,SAAS;IACxC;wBA+DmB,SAAS,OAAO,YAAY,2BAAwB,QAAA;wBA2DpD,eACpB,aACA,kBACA,UAAU,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"sources":["../src/actions/drive-info.ts","../src/actions/document.ts","../src/actions/bulk-archive.ts","../src/actions/folder-zip.ts","../src/actions/drive.ts","../src/constants.ts","../src/errors.ts","../src/global/types.ts","../src/global/core.ts","../src/graphql/adapters.ts","../src/graphql/fetchers.ts","../src/graphql/graphql-client-document-cache.ts","../src/graphql/mutators.ts","../src/hooks/add-ph-event-handlers.ts","../src/hooks/allowed-document-model-modules.ts","../src/hooks/child-nodes.ts","../src/hooks/config/connect.ts","../src/hooks/config/editor.ts","../src/hooks/config/set-config-by-key.ts","../src/hooks/config/set-config-by-object.ts","../src/hooks/config/use-value-by-key.ts","../src/hooks/config/utils.ts","../src/hooks/drives.ts","../src/hooks/loading.ts","../src/hooks/connection-state.ts","../src/hooks/document-by-id.ts","../src/hooks/link-props.ts","../src/hooks/document-link.ts","../src/hooks/documents-of-type.ts","../src/hooks/document-of-type.ts","../src/hooks/document-types.ts","../src/hooks/document-version-status.ts","../src/hooks/download-document.ts","../src/hooks/download-folder.ts","../src/hooks/drive-by-id.ts","../src/hooks/drive-context.tsx","../src/hooks/editor-context.tsx","../src/hooks/editor-modules.ts","../src/hooks/use-editor-preloader.ts","../src/hooks/features.ts","../src/hooks/file-drag-and-drop.ts","../src/hooks/folder-by-id.ts","../src/hooks/graphql-reactor-client.ts","../src/hooks/init-graphql-reactor-client.ts","../src/hooks/items-in-selected-drive.ts","../src/hooks/items-in-selected-folder.ts","../src/hooks/make-ph-event-functions.ts","../src/hooks/modals.ts","../src/hooks/node-actions.ts","../src/hooks/node-by-id.ts","../src/hooks/node-path.ts","../src/hooks/package-discovery.ts","../src/hooks/parent-folder.ts","../src/hooks/revision-history.ts","../src/hooks/selected-document.ts","../src/hooks/navigation.ts","../src/hooks/url-state.ts","../src/hooks/selected-drive.ts","../src/hooks/selected-folder.ts","../src/hooks/set-selected-node.ts","../src/hooks/sync-selection.ts","../src/hooks/selected-node.ts","../src/hooks/selected-timeline-item.ts","../src/hooks/subgraph-modules.ts","../src/hooks/supported-document-types.ts","../src/hooks/theme.ts","../src/hooks/timeline-revision.ts","../src/hooks/toast.ts","../src/hooks/use-can-execute.ts","../src/hooks/use-drive-system-info.ts","../src/hooks/use-editor-file-drop.ts","../src/hooks/use-get-switchboard-link.ts","../src/types/upload.ts","../src/hooks/use-on-drop-file.ts","../src/hooks/user-permissions.ts","../src/hooks/vetra-packages.ts","../src/hooks/switchboards.ts","../src/hooks/close-node.ts","../src/hooks/attachment-progress.ts","../src/hooks/use-attachments.ts","../src/hooks/backend-auth.ts","../src/pglite/drop.ts","../src/pglite/usePGlite.ts","../src/reactor.ts","../src/routing/drive-arrivals.ts","../src/routing/resolve-drive-route.ts","../src/registry/types.ts","../src/registry/client.ts","../src/registry/fetchers.ts","../src/remote-controller/action-tracker.ts","../src/remote-controller/remote-client.ts","../src/remote-controller/remote-controller.ts","../src/remote-controller/utils.ts","../src/storage/base-storage.ts","../src/storage/local-storage.ts","../src/storage/types.ts","../src/types/reactor.ts","../src/types/processor-host-module.ts","../src/utils/documents.ts","../src/utils/drives.ts","../src/utils/download-document.ts","../src/utils/get-revision-from-date.ts","../src/utils/nodes.ts","../src/utils/preload-editor.ts","../src/utils/switchboard.ts","../src/utils/switchboard-directory.ts","../src/utils/upgrade-preview.ts","../src/utils/url.ts","../src/utils/user.ts","../src/utils/validate-document.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAaY;EACV;EACA;EACA;EACA;EACA,MAAM;EACN;;;;;;;;;;;;;;;;;;;;;wBAsBoB,eACpB,aACA,gBAAe,sBACd,QAAQ;;;wBC+IW,qBACpB,UAAU,eACT;wBAyLmB,WAAW,UAAU,cAAY,yBAAsB,eAAA;;;;;;wBA4CvD,SAAS,eAAe,OAAI,QAAA,aAAA;wBA2C5B,YACpB,iBACA,cACA,sBACA,uBACA,WAAW,cACX,aACA,0BACA,gCAA6B;;;;;EA0DrB;;;KAKE;EACV;EACA;EACA;EACA;EACA;;wBA4GoB,oBACpB,eAAe,MACf,iBACA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