@powerhousedao/reactor-browser 6.2.3-dev.76 → 6.2.3-dev.78

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 (43) hide show
  1. package/dist/{attachment-service-BsOmg2-v.d.ts → attachment-service-C_8_poEv.d.ts} +223 -12
  2. package/dist/attachment-service-C_8_poEv.d.ts.map +1 -0
  3. package/dist/{client-BnGewICj.d.ts → client-Cx43uuSO.d.ts} +2 -2
  4. package/dist/client-Cx43uuSO.d.ts.map +1 -0
  5. package/dist/{client-CXDpILj6.js → client-D_cBN8L-.js} +91 -3
  6. package/dist/client-D_cBN8L-.js.map +1 -0
  7. package/dist/{dispatch-BEI1Ai2b.js → dispatch-DLD1E-9L.js} +80 -8
  8. package/dist/dispatch-DLD1E-9L.js.map +1 -0
  9. package/dist/{document-by-id-bHT2FDHM.js → document-by-id-BGTnMWiG.js} +2 -2
  10. package/dist/{document-by-id-bHT2FDHM.js.map → document-by-id-BGTnMWiG.js.map} +1 -1
  11. package/dist/{document-model-modules-DAx3VAm3.js → document-model-modules-D_kT09sv.js} +254 -9
  12. package/dist/document-model-modules-D_kT09sv.js.map +1 -0
  13. package/dist/{document-operations-zQKFs_xu.js → document-operations-BdCl99y6.js} +777 -52
  14. package/dist/document-operations-BdCl99y6.js.map +1 -0
  15. package/dist/{global-DY0jZmcO.d.ts → global-C4kaLEPb.d.ts} +165 -53
  16. package/dist/global-C4kaLEPb.d.ts.map +1 -0
  17. package/dist/{index-DlZsXHpT.d.ts → index-CROGY3XV.d.ts} +2 -2
  18. package/dist/{index-DlZsXHpT.d.ts.map → index-CROGY3XV.d.ts.map} +1 -1
  19. package/dist/index.d.ts +55 -41
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +215 -53
  22. package/dist/index.js.map +1 -1
  23. package/dist/src/ai/index.js +2 -2
  24. package/dist/src/analytics/index.js +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 +4 -4
  28. package/dist/src/graphql-client/entry.js +4 -4
  29. package/dist/src/renown/index.d.ts +1 -1
  30. package/dist/{switchboard-G3aKXjNx.js → switchboard-CqUq5pIZ.js} +10 -48
  31. package/dist/switchboard-CqUq5pIZ.js.map +1 -0
  32. package/dist/{types-0Fh1tNjy.d.ts → types-Vb8q55oM.d.ts} +69 -2
  33. package/dist/types-Vb8q55oM.d.ts.map +1 -0
  34. package/package.json +9 -9
  35. package/dist/attachment-service-BsOmg2-v.d.ts.map +0 -1
  36. package/dist/client-BnGewICj.d.ts.map +0 -1
  37. package/dist/client-CXDpILj6.js.map +0 -1
  38. package/dist/dispatch-BEI1Ai2b.js.map +0 -1
  39. package/dist/document-model-modules-DAx3VAm3.js.map +0 -1
  40. package/dist/document-operations-zQKFs_xu.js.map +0 -1
  41. package/dist/global-DY0jZmcO.d.ts.map +0 -1
  42. package/dist/switchboard-G3aKXjNx.js.map +0 -1
  43. package/dist/types-0Fh1tNjy.d.ts.map +0 -1
@@ -1,13 +1,14 @@
1
1
  import { t as PGlite } from "./pglite-CntadC_p-DTkdF8sr.js";
2
- import { c as ReactorGraphQLClient, r as GraphQLClientWindowEvents } from "./types-0Fh1tNjy.js";
2
+ import { c as ReactorGraphQLClient, r as GraphQLClientWindowEvents } from "./types-Vb8q55oM.js";
3
3
  import { r as IWorkerAdminClient, t as IInspectorProxy } from "./inspector-proxy-DODqs15F.js";
4
4
  import { DragEventHandler, ReactNode } from "react";
5
- import { DocumentDispatch as DocumentDispatch$1, DocumentModelModule, Operation, PHDocument } from "@powerhousedao/shared/document-model";
6
- import { IDocumentModelLoader, IReactorClient, InProcessReactorClientModule, InProcessReactorModule, ReactorClientModule, ReactorModule } from "@powerhousedao/reactor";
7
- import { DocumentDriveDocument } from "@powerhousedao/shared/document-drive";
5
+ import { DocumentDispatch as DocumentDispatch$2, DocumentModelModule, Operation, PHDocument } from "@powerhousedao/shared/document-model";
6
+ import { IDocumentModelLoader, IReactorClient, IReactorReadClient, IReactorWriteClient, InProcessReactorClientModule, InProcessReactorModule, ReactorClientModule, ReactorModule } from "@powerhousedao/reactor";
7
+ import { DocumentDriveDocument, Node } from "@powerhousedao/shared/document-drive";
8
8
  import { IRenown } from "@renown/sdk";
9
9
  import { IAttachmentService } from "@powerhousedao/reactor-attachments/client";
10
10
  import { WorkerPackageSource } from "@powerhousedao/reactor/rpc";
11
+ import { PHGlobal, PHGlobalKey } from "@powerhousedao/reactor-browser";
11
12
  import { PHConnectRenownAdapters } from "@powerhousedao/shared/clis";
12
13
  import { DocumentModelLib, RegistryPackageSource } from "@powerhousedao/shared";
13
14
  //#region src/types/documents.d.ts
@@ -94,6 +95,19 @@ interface IOperationCache {
94
95
  }
95
96
  //#endregion
96
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"> {}
97
111
  /**
98
112
  * Minimal client contract the reactor-browser hooks depend on.
99
113
  *
@@ -103,23 +117,34 @@ interface IOperationCache {
103
117
  * `IReactorClient`) and `GraphQLReactorClient`, which talks plain GraphQL to a
104
118
  * Switchboard without bundling a reactor.
105
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
+ *
106
123
  * Deliberately excluded: `drives`, relationships, `resolveIdOrSlug`,
107
- * `executeAsync`/`executeBatch`, jobs, `createEmpty`, `rename` and the document
124
+ * `executeAsync`/`executeBatch`, `createEmpty`, `rename` and the document
108
125
  * model module getters.
109
126
  */
110
- interface IReactorBrowserClient extends Pick<IReactorClient, "get" | "find" | "subscribe" | "execute" | "getOperations" | "create" | "deleteDocument"> {}
127
+ interface IReactorBrowserClient$1 extends Pick<IReactorClient, "get" | "find" | "subscribe" | "execute" | "getOperations" | "create" | "deleteDocument"> {
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
+ };
111
136
  //#endregion
112
137
  //#region src/types/config.d.ts
113
- type PHGlobalConfig = PHCommonGlobalConfig & PHAppConfig & PHDocumentEditorConfig & PHDrivesGlobalConfig & PHAnalyticsGlobalConfig & PHRelationalProcessorsGlobalConfig & PHProcessorsGlobalConfig & PHRenownGlobalConfig & PHSentryGlobalConfig;
114
- type PHGlobalConfigKey = keyof PHGlobalConfig;
115
- type PHGlobalConfigSetters = PHGlobalConfigSettersForKey<PHGlobalConfigKey>;
116
- type PHGlobalConfigHooks = PHGlobalConfigHooksForKey<PHGlobalConfigKey>;
138
+ type PHGlobalConfig$1 = PHCommonGlobalConfig & PHAppConfig$1 & PHDocumentEditorConfig$1 & PHDrivesGlobalConfig & PHAnalyticsGlobalConfig & PHRelationalProcessorsGlobalConfig & PHProcessorsGlobalConfig & PHRenownGlobalConfig & PHSentryGlobalConfig;
139
+ type PHGlobalConfigKey$1 = keyof PHGlobalConfig$1;
140
+ type PHGlobalConfigSetters$1 = PHGlobalConfigSettersForKey<PHGlobalConfigKey$1>;
141
+ type PHGlobalConfigHooks$1 = PHGlobalConfigHooksForKey<PHGlobalConfigKey$1>;
117
142
  /**
118
143
  * Editor configuration settings which are globally available to your custom apps.
119
144
  *
120
145
  * Setting these will override the defaults when your editor is mounted.
121
146
  */
122
- type PHAppConfig = {
147
+ type PHAppConfig$1 = {
123
148
  /** Allows you to specify the document types that are allowed to be added to the drive.
124
149
  * An empty array means that any document type is allowed.
125
150
  */
@@ -127,16 +152,16 @@ type PHAppConfig = {
127
152
  /** Whether drag and drop is enabled for the app. */
128
153
  isDragAndDropEnabled?: boolean;
129
154
  };
130
- type PHAppConfigKey = keyof PHAppConfig;
131
- type PHAppConfigSetters = PHGlobalConfigSettersForKey<PHAppConfigKey>;
132
- type PHAppConfigHooks = PHGlobalConfigHooksForKey<PHAppConfigKey>;
133
- type PHDocumentEditorConfig = {
155
+ type PHAppConfigKey$1 = keyof PHAppConfig$1;
156
+ type PHAppConfigSetters$1 = PHGlobalConfigSettersForKey<PHAppConfigKey$1>;
157
+ type PHAppConfigHooks$1 = PHGlobalConfigHooksForKey<PHAppConfigKey$1>;
158
+ type PHDocumentEditorConfig$1 = {
134
159
  /** Whether external controls are enabled for the document editor. */
135
160
  isExternalControlsEnabled?: boolean;
136
161
  };
137
- type PHDocumentEditorConfigKey = keyof PHDocumentEditorConfig;
138
- type PHDocumentEditorConfigSetters = PHGlobalConfigSettersForKey<PHDocumentEditorConfigKey>;
139
- type PHDocumentEditorConfigHooks = PHGlobalConfigHooksForKey<PHDocumentEditorConfigKey>;
162
+ type PHDocumentEditorConfigKey$1 = keyof PHDocumentEditorConfig$1;
163
+ type PHDocumentEditorConfigSetters$1 = PHGlobalConfigSettersForKey<PHDocumentEditorConfigKey$1>;
164
+ type PHDocumentEditorConfigHooks$1 = PHGlobalConfigHooksForKey<PHDocumentEditorConfigKey$1>;
140
165
  type PHCommonGlobalConfig = {
141
166
  basePath?: string;
142
167
  routerBasename?: string;
@@ -199,13 +224,13 @@ type PHSentryGlobalConfig = {
199
224
  sentryEnv?: string;
200
225
  isSentryTracingEnabled?: boolean;
201
226
  };
202
- type PHGlobalConfigSettersForKey<T extends PHGlobalConfigKey> = { [K in T]: (value: PHGlobalConfig[K]) => void; };
203
- type PHGlobalConfigHooksForKey<TKey extends PHGlobalConfigKey> = { [K in TKey]: () => PHGlobalConfig[K]; };
227
+ type PHGlobalConfigSettersForKey<T extends PHGlobalConfigKey$1> = { [K in T]: (value: PHGlobalConfig$1[K]) => void; };
228
+ type PHGlobalConfigHooksForKey<TKey extends PHGlobalConfigKey$1> = { [K in TKey]: () => PHGlobalConfig$1[K]; };
204
229
  /** Helper type for ensuring keys are all present while still allowing them to be set */
205
- type FullPHGlobalConfig = Record<PHGlobalConfigKey, PHGlobalConfig[PHGlobalConfigKey]>;
230
+ type FullPHGlobalConfig = Record<PHGlobalConfigKey$1, PHGlobalConfig$1[PHGlobalConfigKey$1]>;
206
231
  //#endregion
207
232
  //#region src/types/modals.d.ts
208
- type PHModal = {
233
+ type PHModal$1 = {
209
234
  type: "createDocument";
210
235
  documentType: string;
211
236
  documentModelVersion?: number;
@@ -406,16 +431,99 @@ declare function useDropNode(targetId: string | undefined): {
406
431
  onDrop: DragEventHandler;
407
432
  };
408
433
  //#endregion
434
+ //#region src/hooks/ph-store.d.ts
435
+ /** PH state of one app (or one server request); assigning a key notifies. */
436
+ type PHStore = PHGlobal;
437
+ declare const ALL_KEYS: unique symbol;
438
+ declare function createPHStore(initial?: PHGlobal): PHStore;
439
+ /** Subscribes to changes of `key`, or of every key when omitted. */
440
+ declare function subscribePHStore(store: PHStore, listener: () => void, key?: PHGlobalKey | typeof ALL_KEYS): () => void;
441
+ /** Notifies `key`'s listeners without a change, as re-setting a value does. */
442
+ declare function notifyPHStore(store: PHStore, key: PHGlobalKey): void;
443
+ /** A subscribe for `key`, stable per store as useSyncExternalStore expects. */
444
+ declare function getPHStoreSubscribe(store: PHStore, key?: PHGlobalKey): (listener: () => void) => () => void;
445
+ /** The store bound with {@link bindPHStoreToWindow}, if any. */
446
+ declare function getActivePHStore(): PHGlobal | undefined;
447
+ /** The app's state outside React: the bound store, else `window.ph`. */
448
+ declare function getPHStore(): PHStore | undefined;
449
+ /** The bound store; otherwise binds `window.ph` if it is a store, else a new
450
+ * store that takes over a plain `window.ph`'s values. */
451
+ declare function ensurePHStore(): PHStore;
452
+ /** Makes `store` the app's state and `window.ph`; values set on a plain
453
+ * `window.ph` carry over where `store` has none. */
454
+ declare function bindPHStoreToWindow(store: PHStore): void;
455
+ /** Hooks below read from `store`; without a provider they read `window.ph`. */
456
+ declare function PHStoreProvider(props: {
457
+ store: PHStore;
458
+ children: ReactNode;
459
+ }): import("react/jsx-runtime").JSX.Element;
460
+ declare function usePHStore(): PHGlobal | undefined;
461
+ //#endregion
462
+ //#region src/hooks/drive-nodes.d.ts
463
+ /** One drive's cached nodes, read through `read.drives`. */
464
+ type DriveNodesEntry = {
465
+ readonly byId: ReadonlyMap<string, Node>;
466
+ /** "all" once a full listing landed; "partial" holds single fetches or a
467
+ * listing being refreshed. */
468
+ readonly loaded: "none" | "partial" | "all";
469
+ /** The drive's nodes from the last full listing, kept while it refreshes. */
470
+ readonly nodes?: Node[];
471
+ readonly loading?: Promise<Node[]>;
472
+ /** The drive changed while `loading` was in flight: that listing may miss
473
+ * the change, so another one follows as soon as it lands. */
474
+ readonly stale?: true;
475
+ /** The last full listing failed; hooks do not retry until invalidated. */
476
+ readonly error?: unknown;
477
+ };
478
+ /** Node caches by drive id; replaced, never mutated, so hooks see changes. */
479
+ type DriveNodesCache = ReadonlyMap<string, DriveNodesEntry>;
480
+ type DriveNodesOptions = {
481
+ /** Skip the cache and read through `read.drives`. */
482
+ refresh?: boolean;
483
+ store?: PHStore;
484
+ };
485
+ /** Returns the per-drive node caches */
486
+ declare const useDriveNodesCache: () => DriveNodesCache | undefined;
487
+ /** Adds an event handler for the drive node cache */
488
+ declare const addDriveNodesEventHandler: () => void;
489
+ /** Loads every node of a drive into the cache, paging through
490
+ * `read.drives.listNodes`; served from the cache once loaded. */
491
+ declare function loadDriveNodes(driveId: string, options?: DriveNodesOptions): Promise<Node[]>;
492
+ /** A node from the cache, else read through `read.drives.getNode`;
493
+ * undefined when the drive does not hold it. */
494
+ declare function getDriveNode(driveId: string, nodeId: string, options?: DriveNodesOptions): Promise<Node | undefined>;
495
+ /** A node from the cache only, without reading; for synchronous callers. */
496
+ declare function peekDriveNode(driveId: string, nodeId: string, store?: PHStore | undefined): Node | undefined;
497
+ /** Drops a drive's cached nodes; while a hook shows them, they reload and
498
+ * the old nodes stay visible until the new listing lands. */
499
+ declare function invalidateDriveNodes(driveId: string, store?: PHStore | undefined): void;
500
+ /**
501
+ * Notes that this tab wrote to a drive, so the drive change handler re-reads
502
+ * it on the change that follows instead of waiting out its interval: the
503
+ * person who added, renamed or removed a node expects to see it, while a
504
+ * drive being filled by someone else can wait.
505
+ */
506
+ declare function markLocalDriveWrite(driveId: string): void;
507
+ /** Spends a drive's local-write mark; true when one was set. */
508
+ declare function takeLocalDriveWrite(driveId: string): boolean;
509
+ /** Takes a node out of a drive's cache after this tab removed it, so the
510
+ * listing drops it at once instead of after the next drive refresh. */
511
+ declare function dropDriveNode(driveId: string, nodeId: string, store?: PHStore | undefined): void;
512
+ /** Every node of a drive, loaded on first use; undefined until loaded. */
513
+ declare function useDriveNodes(driveId: string | null | undefined): Node[] | undefined;
514
+ /** One node of a drive, from the cache or read on its own. */
515
+ declare function useDriveNode(driveId: string | null | undefined, nodeId: string | null | undefined): Node | undefined;
516
+ //#endregion
409
517
  //#region src/types/global.d.ts
410
518
  interface BrowserReactorModule extends InProcessReactorModule {
411
519
  pg: PGlite;
412
520
  }
413
- interface BrowserReactorClientModule extends InProcessReactorClientModule {
521
+ interface BrowserReactorClientModule$1 extends InProcessReactorClientModule {
414
522
  kind: "browser";
415
523
  reactorModule: BrowserReactorModule | undefined;
416
524
  }
417
525
  type WorkerReactorModule = ReactorModule;
418
- interface WorkerReactorClientModule extends ReactorClientModule {
526
+ interface WorkerReactorClientModule$1 extends ReactorClientModule {
419
527
  kind: "worker";
420
528
  reactorModule: WorkerReactorModule;
421
529
  adminClient: IWorkerAdminClient;
@@ -435,54 +543,56 @@ type PHDriveTarget = {
435
543
  nodeSlug?: string;
436
544
  };
437
545
  /** A settings tab by id; `true` opens the first one. */
438
- type PHSettingsTarget = {
546
+ type PHSettingsTarget$1 = {
439
547
  settings: string | true;
440
548
  };
441
549
  /** What the app shows; `undefined` targets home. */
442
- type PHNavigationTarget = PHDriveTarget | PHSettingsTarget;
550
+ type PHNavigationTarget$1 = PHDriveTarget | PHSettingsTarget$1;
443
551
  /** Query params to write; an `undefined` value removes the param. */
444
- type PHSearchUpdate = Record<string, string | undefined>;
445
- type PHNavigateOptions = {
552
+ type PHSearchUpdate$1 = Record<string, string | undefined>;
553
+ type PHNavigateOptions$1 = {
446
554
  replace?: boolean;
447
555
  /** The target's own query params; the host decides which others survive. */
448
- search?: PHSearchUpdate;
556
+ search?: PHSearchUpdate$1;
449
557
  };
450
558
  /** Merges an object into the current query params; a function returns them all. */
451
- type SearchParamsUpdate = PHSearchUpdate | ((prev: Record<string, string>) => PHSearchUpdate);
452
- type SetSearchParams = (update: SearchParamsUpdate, options?: {
559
+ type SearchParamsUpdate$1 = PHSearchUpdate$1 | ((prev: Record<string, string>) => PHSearchUpdate$1);
560
+ type SetSearchParams$1 = (update: SearchParamsUpdate$1, options?: {
453
561
  replace?: boolean;
454
562
  }) => void;
455
563
  /** Host-owned navigation and URL state; without one, the browser history is used.
456
564
  * Set once on the store; its hooks must not change between renders. */
457
- type PHNavigation = {
565
+ type PHNavigation$1 = {
458
566
  location(): {
459
567
  pathname: string;
460
568
  search: string;
461
569
  };
462
- open(target: PHNavigationTarget | undefined, options?: PHNavigateOptions): void;
570
+ open(target: PHNavigationTarget$1 | undefined, options?: PHNavigateOptions$1): void;
463
571
  /** The public href that opens `target`, base path included. */
464
- hrefFor?(target: PHNavigationTarget | undefined): string;
572
+ hrefFor?(target: PHNavigationTarget$1 | undefined): string;
465
573
  /** Whether `target` is what the location shows now; search params aside. */
466
- useIsCurrent?(target: PHNavigationTarget | undefined): boolean;
574
+ useIsCurrent?(target: PHNavigationTarget$1 | undefined): boolean;
467
575
  /** Warms what `target` shows, e.g. on hover; optional. */
468
- preload?(target: PHNavigationTarget | undefined): void;
576
+ preload?(target: PHNavigationTarget$1 | undefined): void;
469
577
  /** Replaces the query params with what `update` returns, keeping the path. */
470
- setSearch(update: (prev: Record<string, string>) => PHSearchUpdate, options?: {
578
+ setSearch(update: (prev: Record<string, string>) => PHSearchUpdate$1, options?: {
471
579
  replace?: boolean;
472
580
  }): void;
473
581
  /** The current query params. */
474
582
  useSearchParams(): Record<string, string>;
475
583
  /** A stable setter for the query params. */
476
- useSetSearchParams(): SetSearchParams;
584
+ useSetSearchParams(): SetSearchParams$1;
477
585
  /** Returns to the entry from before the open document was opened, past any
478
586
  * pushed inside it; false when this session didn't open it. */
479
587
  closeOpened?(): boolean;
480
588
  };
481
- type PHGlobal = PHGlobalConfig & {
482
- navigation?: PHNavigation;
589
+ type PHGlobal$1 = PHGlobalConfig$1 & {
590
+ navigation?: PHNavigation$1;
483
591
  loading?: boolean;
484
- reactorClientModule?: BrowserReactorClientModule | WorkerReactorClientModule;
485
- reactorClient?: IReactorBrowserClient;
592
+ reactorClientModule?: BrowserReactorClientModule$1 | WorkerReactorClientModule$1;
593
+ reactorClient?: IReactorBrowserClient$1;
594
+ /** The client halves of `reactorClient`, set with it: reads and writes. */
595
+ reactor?: ReactorBrowserHalves$1;
486
596
  /** Replaces `reactorClientModule.client` in full-client actions; Connect's router. */
487
597
  fullReactorClient?: IReactorClient;
488
598
  attachmentService?: IAttachmentService;
@@ -490,31 +600,33 @@ type PHGlobal = PHGlobalConfig & {
490
600
  renown?: IRenown | LOADING;
491
601
  vetraPackageManager?: IPackageManager;
492
602
  drives?: DocumentDriveDocument[];
603
+ /** Per-drive node caches; see `hooks/drive-nodes.ts`. */
604
+ driveNodes?: DriveNodesCache;
493
605
  documentCache?: IDocumentCache;
494
606
  selectedDriveId?: string;
495
607
  selectedNodeId?: string;
496
608
  draggingNode?: DraggingNode;
497
- modal?: PHModal;
609
+ modal?: PHModal$1;
498
610
  selectedTimelineRevision?: string | number | null;
499
611
  selectedTimelineItem?: TimelineItem | null;
500
612
  packageDiscoveryService?: IPackageDiscoveryService;
501
613
  features?: Map<string, boolean>;
502
614
  toast?: PHToastFn;
503
615
  };
504
- type PHGlobalKey = keyof PHGlobal;
505
- type PHGlobalValue = PHGlobal[PHGlobalKey];
506
- type UsePHGlobalValue<TValue extends PHGlobalValue> = () => TValue | undefined;
507
- type SetPHGlobalValue<TValue extends PHGlobalValue> = (value: TValue | undefined) => void;
508
- type AddPHGlobalEventHandler = () => void;
509
- type PHGlobalEventHandlerAdders = Record<PHGlobalKey, AddPHGlobalEventHandler>;
510
- type SetEvent<TKey extends PHGlobalKey> = CustomEvent<{ [key in TKey]: PHGlobal[TKey] | undefined; }>;
616
+ type PHGlobalKey$1 = keyof PHGlobal$1;
617
+ type PHGlobalValue = PHGlobal$1[PHGlobalKey$1];
618
+ type UsePHGlobalValue$1<TValue extends PHGlobalValue> = () => TValue | undefined;
619
+ type SetPHGlobalValue$1<TValue extends PHGlobalValue> = (value: TValue | undefined) => void;
620
+ type AddPHGlobalEventHandler$1 = () => void;
621
+ type PHGlobalEventHandlerAdders = Record<PHGlobalKey$1, AddPHGlobalEventHandler$1>;
622
+ type SetEvent<TKey extends PHGlobalKey$1> = CustomEvent<{ [key in TKey]: PHGlobal$1[TKey] | undefined; }>;
511
623
  declare global {
512
624
  interface Window {
513
- ph?: PHGlobal;
625
+ ph?: PHGlobal$1;
514
626
  }
515
627
  interface WindowEventMap extends GraphQLClientWindowEvents {}
516
628
  }
517
629
  //#endregion
518
- export { PHDocumentEditorConfigSetters as $, PHToastFn as A, IPackageDiscoveryService as B, addDraggingNodeEventHandler as C, IPackageManager as D, IPackageListerUnsubscribe as E, TimelineItem as F, PHAppConfig as G, PHModal as H, DiscoveryEvent as I, PHAppConfigSetters as J, PHAppConfigHooks as K, DiscoveryEventListener as L, PHToastType as M, TimelineBarItem as N, IPackagesListener as O, TimelineDividerItem as P, PHDocumentEditorConfigKey as Q, FailedInstallation as R, DraggingNode as S, RejectedPromise as St, useDropNode as T, FullPHGlobalConfig as U, PendingInstallation as V, PHAnalyticsGlobalConfig as W, PHDocumentEditorConfig as X, PHCommonGlobalConfig as Y, PHDocumentEditorConfigHooks as Z, SetPHGlobalValue as _, IDocumentTypeCache as _t, PHDriveTarget as a, PHGlobalConfigSetters as at, WorkerReactorClientModule as b, PromiseState as bt, PHGlobalKey as c, PHRelationalProcessorsGlobalConfig as ct, PHNavigation as d, IReactorBrowserClient as dt, PHDrivesGlobalConfig as et, PHNavigationTarget as f, DocumentDispatch$1 as ft, SetEvent as g, IDocumentCache as gt, SearchParamsUpdate as h, FulfilledPromise as ht, LOADING as i, PHGlobalConfigKey as it, PHToastOptions as j, PackageManagerInstallResult as k, PHGlobalValue as l, PHRenownGlobalConfig as lt, PHSettingsTarget as m, DocumentsOfTypeEntry as mt, BrowserReactorClientModule as n, PHGlobalConfigHooks as nt, PHGlobal as o, PHGlobalConfigSettersForKey as ot, PHSearchUpdate as p, DocumentRefetchState as pt, PHAppConfigKey as q, BrowserReactorModule as r, PHGlobalConfigHooksForKey as rt, PHGlobalEventHandlerAdders as s, PHProcessorsGlobalConfig as st, AddPHGlobalEventHandler as t, PHGlobalConfig as tt, PHNavigateOptions as u, PHSentryGlobalConfig as ut, SetSearchParams as v, IOperationCache as vt, useDragNode as w, WorkerReactorModule as x, PromiseWithState as xt, UsePHGlobalValue as y, OperationsCacheEntry as yt, FailedInstallationReason as z };
630
+ export { IPackagesListener as $, markLocalDriveWrite as A, PHGlobalConfigSetters$1 as At, ensurePHStore as B, DocumentDispatch$2 as Bt, DriveNodesEntry as C, PHDocumentEditorConfigKey$1 as Ct, getDriveNode as D, PHGlobalConfigHooks$1 as Dt, dropDriveNode as E, PHGlobalConfig$1 as Et, useDriveNodesCache as F, PHSentryGlobalConfig as Ft, subscribePHStore as G, IDocumentTypeCache as Gt, getPHStore as H, DocumentsOfTypeEntry as Ht, PHStore as I, IReactorBrowserClient$1 as It, addDraggingNodeEventHandler as J, PromiseState as Jt, usePHStore as K, IOperationCache as Kt, PHStoreProvider as L, IReactorBrowserReadClient as Lt, takeLocalDriveWrite as M, PHProcessorsGlobalConfig as Mt, useDriveNode as N, PHRelationalProcessorsGlobalConfig as Nt, invalidateDriveNodes as O, PHGlobalConfigHooksForKey as Ot, useDriveNodes as P, PHRenownGlobalConfig as Pt, IPackageManager as Q, bindPHStoreToWindow as R, IReactorBrowserWriteClient as Rt, DriveNodesCache as S, PHDocumentEditorConfigHooks$1 as St, addDriveNodesEventHandler as T, PHDrivesGlobalConfig as Tt, getPHStoreSubscribe as U, FulfilledPromise as Ut, getActivePHStore as V, DocumentRefetchState as Vt, notifyPHStore as W, IDocumentCache as Wt, useDropNode as X, RejectedPromise as Xt, useDragNode as Y, PromiseWithState as Yt, IPackageListerUnsubscribe as Z, SetPHGlobalValue$1 as _, PHAppConfigHooks$1 as _t, PHDriveTarget as a, TimelineDividerItem as at, WorkerReactorClientModule$1 as b, PHCommonGlobalConfig as bt, PHGlobalKey$1 as c, DiscoveryEventListener as ct, PHNavigation$1 as d, IPackageDiscoveryService as dt, PackageManagerInstallResult as et, PHNavigationTarget$1 as f, PendingInstallation as ft, SetEvent as g, PHAppConfig$1 as gt, SearchParamsUpdate$1 as h, PHAnalyticsGlobalConfig as ht, LOADING as i, TimelineBarItem as it, peekDriveNode as j, PHGlobalConfigSettersForKey as jt, loadDriveNodes as k, PHGlobalConfigKey$1 as kt, PHGlobalValue as l, FailedInstallation as lt, PHSettingsTarget$1 as m, FullPHGlobalConfig as mt, BrowserReactorClientModule$1 as n, PHToastOptions as nt, PHGlobal$1 as o, TimelineItem as ot, PHSearchUpdate$1 as p, PHModal$1 as pt, DraggingNode as q, OperationsCacheEntry as qt, BrowserReactorModule as r, PHToastType as rt, PHGlobalEventHandlerAdders as s, DiscoveryEvent as st, AddPHGlobalEventHandler$1 as t, PHToastFn as tt, PHNavigateOptions$1 as u, FailedInstallationReason as ut, SetSearchParams$1 as v, PHAppConfigKey$1 as vt, DriveNodesOptions as w, PHDocumentEditorConfigSetters$1 as wt, WorkerReactorModule as x, PHDocumentEditorConfig$1 as xt, UsePHGlobalValue$1 as y, PHAppConfigSetters$1 as yt, createPHStore as z, ReactorBrowserHalves$1 as zt };
519
631
  export {};
520
- //# sourceMappingURL=global-DY0jZmcO.d.ts.map
632
+ //# sourceMappingURL=global-C4kaLEPb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"global-C4kaLEPb.d.ts","names":[],"sources":["../src/types/documents.ts","../src/types/reactor-browser-client.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;;EAEV;;EAEA;;EAEA;;EAEA;;;;UAKe;;EAEf,wBAAwB,cAAc,gBAAgB;;EAEtD,oBAAoB,cAAc,gBAAgB;;EAElD,wBAAwB,cAAc;;EAEtC,yBACE,cACA,eACA;;;;;;;UASa;;EAEf,mBAAmB,oBAAoB,gBAAgB;;EAEvD,eAAe,oBAAoB,eAAe;;EAElD,mBAAmB,oBAAoB;;EAEvC,qBAAqB;;EAErB,oBAAoB,oBAAoB;;;;;;;;;UCrFzB,kCAAkC,KACjD;;;;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AAe;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 { i as LOADING } from "./global-DY0jZmcO.js";
1
+ import { i as LOADING } from "./global-C4kaLEPb.js";
2
2
  import { CSSProperties, ReactNode } from "react";
3
3
  import { CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, DOMAIN_TYPE, IRenown, ISSUER_TYPE, LoginStatus, User, VERIFIABLE_CREDENTIAL_EIP712_TYPE } from "@renown/sdk";
4
4
  import { LoginMethod, WalletAdapterDescriptor, WalletController, WalletSession, WalletTheme } from "@renown/sdk/wallet";
@@ -268,4 +268,4 @@ declare function useRenownWalletAdapter<T extends WalletController = WalletContr
268
268
  //#endregion
269
269
  export { useUser as $, RENOWN_RETURN_URL_STRIPPED_PARAMS as A, UserIcon as B, CREDENTIAL_SCHEMA_EIP712_TYPE as C, ISSUER_TYPE as D, DOMAIN_TYPE as E, ChevronDownIcon as F, RenownLoginButtonProps as G, RenownUserButtonMenuItem as H, CopyIcon as I, addRenownEventHandler as J, RenownAuthButton as K, DisconnectIcon as L, VERIFIABLE_CREDENTIAL_EIP712_TYPE as M, initConnectCrypto as N, RENOWN_CHAIN_ID as O, initRenownCrypto as P, useRenown as Q, RenownLogo as R, useRenownInitialUser as S, CREDENTIAL_TYPES as T, RenownUserButtonProps as U, RenownUserButton as V, RenownLoginButton as W, useDid as X, setRenown as Y, useLoginStatus as Z, RENOWN_INITIAL_UNKNOWN as _, RenownWalletProviderProps as a, RenownAuthResolution as at, RenownInitialUserProviderProps as b, Renown as c, useRenownAuthAsync as ct, useRenownInit as d, login as et, RenownSessionCookieOptions as f, RENOWN_INITIAL_ANONYMOUS as g, useRenownSessionSynced as h, RenownWalletProvider as i, RenownAuthAsync as it, RENOWN_URL as j, RENOWN_NETWORK_ID as k, RenownProps as l, useRenownSessionCookie as m, RenownLoginMethod as n, openRenown as nt, RenownProvider as o, RenownAuthStatus as ot, RenownSessionCookieState as p, RenownAuthButtonProps as q, useRenownLoginMethods as r, RenownAuth as rt, RenownProviderProps as s, useRenownAuth as st, useRenownWalletAdapter as t, logout as tt, RenownInitOptions as u, RenownInitialAuth as v, CREDENTIAL_SUBJECT_TYPE as w, useRenownInitialAuth as x, RenownInitialUserProvider as y, SpinnerIcon as z };
270
270
  export {};
271
- //# sourceMappingURL=index-DlZsXHpT.d.ts.map
271
+ //# sourceMappingURL=index-CROGY3XV.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-DlZsXHpT.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;;;iBCxJtB,WAAW;iBAuHL,MACpB,6BACA,QAAQ,sBACP,QAAQ;iBAgC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;;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-CROGY3XV.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;;EA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