@powerhousedao/reactor-browser 6.2.3-dev.77 → 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.
- package/dist/{attachment-service-D-CKdGUb.d.ts → attachment-service-C_8_poEv.d.ts} +80 -10
- package/dist/attachment-service-C_8_poEv.d.ts.map +1 -0
- package/dist/{client-Ca_CA8VC.d.ts → client-Cx43uuSO.d.ts} +2 -2
- package/dist/client-Cx43uuSO.d.ts.map +1 -0
- package/dist/{client-CI-3xGMZ.js → client-D_cBN8L-.js} +90 -2
- package/dist/client-D_cBN8L-.js.map +1 -0
- package/dist/{dispatch-qujH7vLW.js → dispatch-DLD1E-9L.js} +68 -2
- package/dist/dispatch-DLD1E-9L.js.map +1 -0
- package/dist/{document-by-id-D1wsYWhq.js → document-by-id-BGTnMWiG.js} +2 -2
- package/dist/{document-by-id-D1wsYWhq.js.map → document-by-id-BGTnMWiG.js.map} +1 -1
- package/dist/{document-model-modules-DmLQhKvh.js → document-model-modules-D_kT09sv.js} +254 -9
- package/dist/document-model-modules-D_kT09sv.js.map +1 -0
- package/dist/{document-operations-C4-irgHD.js → document-operations-BdCl99y6.js} +276 -37
- package/dist/document-operations-BdCl99y6.js.map +1 -0
- package/dist/{global-CgzlPBc3.d.ts → global-C4kaLEPb.d.ts} +140 -54
- package/dist/global-C4kaLEPb.d.ts.map +1 -0
- package/dist/{index-CrVfRJO1.d.ts → index-CROGY3XV.d.ts} +2 -2
- package/dist/{index-CrVfRJO1.d.ts.map → index-CROGY3XV.d.ts.map} +1 -1
- package/dist/index.d.ts +50 -36
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +205 -43
- package/dist/index.js.map +1 -1
- package/dist/src/ai/index.js +2 -2
- package/dist/src/analytics/index.js +1 -1
- package/dist/src/graphql/client.d.ts +2 -2
- package/dist/src/graphql/client.js +1 -1
- package/dist/src/graphql-client/entry.d.ts +4 -4
- package/dist/src/graphql-client/entry.js +4 -4
- package/dist/src/renown/index.d.ts +1 -1
- package/dist/{switchboard-0yDJ-f9X.js → switchboard-CqUq5pIZ.js} +10 -48
- package/dist/switchboard-CqUq5pIZ.js.map +1 -0
- package/dist/{types-DOY-eHEk.d.ts → types-Vb8q55oM.d.ts} +69 -2
- package/dist/types-Vb8q55oM.d.ts.map +1 -0
- package/package.json +9 -9
- package/dist/attachment-service-D-CKdGUb.d.ts.map +0 -1
- package/dist/client-CI-3xGMZ.js.map +0 -1
- package/dist/client-Ca_CA8VC.d.ts.map +0 -1
- package/dist/dispatch-qujH7vLW.js.map +0 -1
- package/dist/document-model-modules-DmLQhKvh.js.map +0 -1
- package/dist/document-operations-C4-irgHD.js.map +0 -1
- package/dist/global-CgzlPBc3.d.ts.map +0 -1
- package/dist/switchboard-0yDJ-f9X.js.map +0 -1
- package/dist/types-DOY-eHEk.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-
|
|
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$
|
|
5
|
+
import { DocumentDispatch as DocumentDispatch$2, DocumentModelModule, Operation, PHDocument } from "@powerhousedao/shared/document-model";
|
|
6
6
|
import { IDocumentModelLoader, IReactorClient, IReactorReadClient, IReactorWriteClient, InProcessReactorClientModule, InProcessReactorModule, ReactorClientModule, ReactorModule } from "@powerhousedao/reactor";
|
|
7
|
-
import { DocumentDriveDocument } from "@powerhousedao/shared/document-drive";
|
|
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
|
|
@@ -99,7 +100,7 @@ interface IOperationCache {
|
|
|
99
100
|
* {@link IReactorReadClient}, so the signatures can never drift from the
|
|
100
101
|
* reactor's own.
|
|
101
102
|
*/
|
|
102
|
-
interface IReactorBrowserReadClient extends Pick<IReactorReadClient, "get" | "getMany" | "find" | "getOperations" | "subscribe" | "waitForJob" | "getJobStatus"> {}
|
|
103
|
+
interface IReactorBrowserReadClient extends Pick<IReactorReadClient, "get" | "getMany" | "find" | "getOperations" | "subscribe" | "waitForJob" | "getJobStatus" | "drives"> {}
|
|
103
104
|
/**
|
|
104
105
|
* The writes the reactor-browser hooks make: a derived subset of
|
|
105
106
|
* {@link IReactorWriteClient}. Each resolves once its job is accepted and
|
|
@@ -123,27 +124,27 @@ interface IReactorBrowserWriteClient extends Pick<IReactorWriteClient, "execute"
|
|
|
123
124
|
* `executeAsync`/`executeBatch`, `createEmpty`, `rename` and the document
|
|
124
125
|
* model module getters.
|
|
125
126
|
*/
|
|
126
|
-
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"> {
|
|
127
128
|
readonly read: IReactorBrowserReadClient;
|
|
128
129
|
readonly write: IReactorBrowserWriteClient;
|
|
129
130
|
}
|
|
130
131
|
/** The client halves `window.ph.reactor` holds. */
|
|
131
|
-
type ReactorBrowserHalves = {
|
|
132
|
+
type ReactorBrowserHalves$1 = {
|
|
132
133
|
read: IReactorBrowserReadClient;
|
|
133
134
|
write: IReactorBrowserWriteClient;
|
|
134
135
|
};
|
|
135
136
|
//#endregion
|
|
136
137
|
//#region src/types/config.d.ts
|
|
137
|
-
type PHGlobalConfig = PHCommonGlobalConfig & PHAppConfig & PHDocumentEditorConfig & PHDrivesGlobalConfig & PHAnalyticsGlobalConfig & PHRelationalProcessorsGlobalConfig & PHProcessorsGlobalConfig & PHRenownGlobalConfig & PHSentryGlobalConfig;
|
|
138
|
-
type PHGlobalConfigKey = keyof PHGlobalConfig;
|
|
139
|
-
type PHGlobalConfigSetters = PHGlobalConfigSettersForKey<PHGlobalConfigKey>;
|
|
140
|
-
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>;
|
|
141
142
|
/**
|
|
142
143
|
* Editor configuration settings which are globally available to your custom apps.
|
|
143
144
|
*
|
|
144
145
|
* Setting these will override the defaults when your editor is mounted.
|
|
145
146
|
*/
|
|
146
|
-
type PHAppConfig = {
|
|
147
|
+
type PHAppConfig$1 = {
|
|
147
148
|
/** Allows you to specify the document types that are allowed to be added to the drive.
|
|
148
149
|
* An empty array means that any document type is allowed.
|
|
149
150
|
*/
|
|
@@ -151,16 +152,16 @@ type PHAppConfig = {
|
|
|
151
152
|
/** Whether drag and drop is enabled for the app. */
|
|
152
153
|
isDragAndDropEnabled?: boolean;
|
|
153
154
|
};
|
|
154
|
-
type PHAppConfigKey = keyof PHAppConfig;
|
|
155
|
-
type PHAppConfigSetters = PHGlobalConfigSettersForKey<PHAppConfigKey>;
|
|
156
|
-
type PHAppConfigHooks = PHGlobalConfigHooksForKey<PHAppConfigKey>;
|
|
157
|
-
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 = {
|
|
158
159
|
/** Whether external controls are enabled for the document editor. */
|
|
159
160
|
isExternalControlsEnabled?: boolean;
|
|
160
161
|
};
|
|
161
|
-
type PHDocumentEditorConfigKey = keyof PHDocumentEditorConfig;
|
|
162
|
-
type PHDocumentEditorConfigSetters = PHGlobalConfigSettersForKey<PHDocumentEditorConfigKey>;
|
|
163
|
-
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>;
|
|
164
165
|
type PHCommonGlobalConfig = {
|
|
165
166
|
basePath?: string;
|
|
166
167
|
routerBasename?: string;
|
|
@@ -223,13 +224,13 @@ type PHSentryGlobalConfig = {
|
|
|
223
224
|
sentryEnv?: string;
|
|
224
225
|
isSentryTracingEnabled?: boolean;
|
|
225
226
|
};
|
|
226
|
-
type PHGlobalConfigSettersForKey<T extends PHGlobalConfigKey> = { [K in T]: (value: PHGlobalConfig[K]) => void; };
|
|
227
|
-
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]; };
|
|
228
229
|
/** Helper type for ensuring keys are all present while still allowing them to be set */
|
|
229
|
-
type FullPHGlobalConfig = Record<PHGlobalConfigKey, PHGlobalConfig[PHGlobalConfigKey]>;
|
|
230
|
+
type FullPHGlobalConfig = Record<PHGlobalConfigKey$1, PHGlobalConfig$1[PHGlobalConfigKey$1]>;
|
|
230
231
|
//#endregion
|
|
231
232
|
//#region src/types/modals.d.ts
|
|
232
|
-
type PHModal = {
|
|
233
|
+
type PHModal$1 = {
|
|
233
234
|
type: "createDocument";
|
|
234
235
|
documentType: string;
|
|
235
236
|
documentModelVersion?: number;
|
|
@@ -430,16 +431,99 @@ declare function useDropNode(targetId: string | undefined): {
|
|
|
430
431
|
onDrop: DragEventHandler;
|
|
431
432
|
};
|
|
432
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
|
|
433
517
|
//#region src/types/global.d.ts
|
|
434
518
|
interface BrowserReactorModule extends InProcessReactorModule {
|
|
435
519
|
pg: PGlite;
|
|
436
520
|
}
|
|
437
|
-
interface BrowserReactorClientModule extends InProcessReactorClientModule {
|
|
521
|
+
interface BrowserReactorClientModule$1 extends InProcessReactorClientModule {
|
|
438
522
|
kind: "browser";
|
|
439
523
|
reactorModule: BrowserReactorModule | undefined;
|
|
440
524
|
}
|
|
441
525
|
type WorkerReactorModule = ReactorModule;
|
|
442
|
-
interface WorkerReactorClientModule extends ReactorClientModule {
|
|
526
|
+
interface WorkerReactorClientModule$1 extends ReactorClientModule {
|
|
443
527
|
kind: "worker";
|
|
444
528
|
reactorModule: WorkerReactorModule;
|
|
445
529
|
adminClient: IWorkerAdminClient;
|
|
@@ -459,56 +543,56 @@ type PHDriveTarget = {
|
|
|
459
543
|
nodeSlug?: string;
|
|
460
544
|
};
|
|
461
545
|
/** A settings tab by id; `true` opens the first one. */
|
|
462
|
-
type PHSettingsTarget = {
|
|
546
|
+
type PHSettingsTarget$1 = {
|
|
463
547
|
settings: string | true;
|
|
464
548
|
};
|
|
465
549
|
/** What the app shows; `undefined` targets home. */
|
|
466
|
-
type PHNavigationTarget = PHDriveTarget | PHSettingsTarget;
|
|
550
|
+
type PHNavigationTarget$1 = PHDriveTarget | PHSettingsTarget$1;
|
|
467
551
|
/** Query params to write; an `undefined` value removes the param. */
|
|
468
|
-
type PHSearchUpdate = Record<string, string | undefined>;
|
|
469
|
-
type PHNavigateOptions = {
|
|
552
|
+
type PHSearchUpdate$1 = Record<string, string | undefined>;
|
|
553
|
+
type PHNavigateOptions$1 = {
|
|
470
554
|
replace?: boolean;
|
|
471
555
|
/** The target's own query params; the host decides which others survive. */
|
|
472
|
-
search?: PHSearchUpdate;
|
|
556
|
+
search?: PHSearchUpdate$1;
|
|
473
557
|
};
|
|
474
558
|
/** Merges an object into the current query params; a function returns them all. */
|
|
475
|
-
type SearchParamsUpdate = PHSearchUpdate | ((prev: Record<string, string>) => PHSearchUpdate);
|
|
476
|
-
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?: {
|
|
477
561
|
replace?: boolean;
|
|
478
562
|
}) => void;
|
|
479
563
|
/** Host-owned navigation and URL state; without one, the browser history is used.
|
|
480
564
|
* Set once on the store; its hooks must not change between renders. */
|
|
481
|
-
type PHNavigation = {
|
|
565
|
+
type PHNavigation$1 = {
|
|
482
566
|
location(): {
|
|
483
567
|
pathname: string;
|
|
484
568
|
search: string;
|
|
485
569
|
};
|
|
486
|
-
open(target: PHNavigationTarget | undefined, options?: PHNavigateOptions): void;
|
|
570
|
+
open(target: PHNavigationTarget$1 | undefined, options?: PHNavigateOptions$1): void;
|
|
487
571
|
/** The public href that opens `target`, base path included. */
|
|
488
|
-
hrefFor?(target: PHNavigationTarget | undefined): string;
|
|
572
|
+
hrefFor?(target: PHNavigationTarget$1 | undefined): string;
|
|
489
573
|
/** Whether `target` is what the location shows now; search params aside. */
|
|
490
|
-
useIsCurrent?(target: PHNavigationTarget | undefined): boolean;
|
|
574
|
+
useIsCurrent?(target: PHNavigationTarget$1 | undefined): boolean;
|
|
491
575
|
/** Warms what `target` shows, e.g. on hover; optional. */
|
|
492
|
-
preload?(target: PHNavigationTarget | undefined): void;
|
|
576
|
+
preload?(target: PHNavigationTarget$1 | undefined): void;
|
|
493
577
|
/** Replaces the query params with what `update` returns, keeping the path. */
|
|
494
|
-
setSearch(update: (prev: Record<string, string>) => PHSearchUpdate, options?: {
|
|
578
|
+
setSearch(update: (prev: Record<string, string>) => PHSearchUpdate$1, options?: {
|
|
495
579
|
replace?: boolean;
|
|
496
580
|
}): void;
|
|
497
581
|
/** The current query params. */
|
|
498
582
|
useSearchParams(): Record<string, string>;
|
|
499
583
|
/** A stable setter for the query params. */
|
|
500
|
-
useSetSearchParams(): SetSearchParams;
|
|
584
|
+
useSetSearchParams(): SetSearchParams$1;
|
|
501
585
|
/** Returns to the entry from before the open document was opened, past any
|
|
502
586
|
* pushed inside it; false when this session didn't open it. */
|
|
503
587
|
closeOpened?(): boolean;
|
|
504
588
|
};
|
|
505
|
-
type PHGlobal = PHGlobalConfig & {
|
|
506
|
-
navigation?: PHNavigation;
|
|
589
|
+
type PHGlobal$1 = PHGlobalConfig$1 & {
|
|
590
|
+
navigation?: PHNavigation$1;
|
|
507
591
|
loading?: boolean;
|
|
508
|
-
reactorClientModule?: BrowserReactorClientModule | WorkerReactorClientModule;
|
|
509
|
-
reactorClient?: IReactorBrowserClient;
|
|
592
|
+
reactorClientModule?: BrowserReactorClientModule$1 | WorkerReactorClientModule$1;
|
|
593
|
+
reactorClient?: IReactorBrowserClient$1;
|
|
510
594
|
/** The client halves of `reactorClient`, set with it: reads and writes. */
|
|
511
|
-
reactor?: ReactorBrowserHalves;
|
|
595
|
+
reactor?: ReactorBrowserHalves$1;
|
|
512
596
|
/** Replaces `reactorClientModule.client` in full-client actions; Connect's router. */
|
|
513
597
|
fullReactorClient?: IReactorClient;
|
|
514
598
|
attachmentService?: IAttachmentService;
|
|
@@ -516,31 +600,33 @@ type PHGlobal = PHGlobalConfig & {
|
|
|
516
600
|
renown?: IRenown | LOADING;
|
|
517
601
|
vetraPackageManager?: IPackageManager;
|
|
518
602
|
drives?: DocumentDriveDocument[];
|
|
603
|
+
/** Per-drive node caches; see `hooks/drive-nodes.ts`. */
|
|
604
|
+
driveNodes?: DriveNodesCache;
|
|
519
605
|
documentCache?: IDocumentCache;
|
|
520
606
|
selectedDriveId?: string;
|
|
521
607
|
selectedNodeId?: string;
|
|
522
608
|
draggingNode?: DraggingNode;
|
|
523
|
-
modal?: PHModal;
|
|
609
|
+
modal?: PHModal$1;
|
|
524
610
|
selectedTimelineRevision?: string | number | null;
|
|
525
611
|
selectedTimelineItem?: TimelineItem | null;
|
|
526
612
|
packageDiscoveryService?: IPackageDiscoveryService;
|
|
527
613
|
features?: Map<string, boolean>;
|
|
528
614
|
toast?: PHToastFn;
|
|
529
615
|
};
|
|
530
|
-
type PHGlobalKey = keyof PHGlobal;
|
|
531
|
-
type PHGlobalValue = PHGlobal[PHGlobalKey];
|
|
532
|
-
type UsePHGlobalValue<TValue extends PHGlobalValue> = () => TValue | undefined;
|
|
533
|
-
type SetPHGlobalValue<TValue extends PHGlobalValue> = (value: TValue | undefined) => void;
|
|
534
|
-
type AddPHGlobalEventHandler = () => void;
|
|
535
|
-
type PHGlobalEventHandlerAdders = Record<PHGlobalKey, AddPHGlobalEventHandler>;
|
|
536
|
-
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; }>;
|
|
537
623
|
declare global {
|
|
538
624
|
interface Window {
|
|
539
|
-
ph?: PHGlobal;
|
|
625
|
+
ph?: PHGlobal$1;
|
|
540
626
|
}
|
|
541
627
|
interface WindowEventMap extends GraphQLClientWindowEvents {}
|
|
542
628
|
}
|
|
543
629
|
//#endregion
|
|
544
|
-
export {
|
|
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 };
|
|
545
631
|
export {};
|
|
546
|
-
//# sourceMappingURL=global-
|
|
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":"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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as LOADING } from "./global-
|
|
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-
|
|
271
|
+
//# sourceMappingURL=index-CROGY3XV.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
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;;EAEvC,OAAO;EACP;;iBAOc,sBAAsB;;;iBCxJtB,WAAW;iBAuHL,MACpB,6BACA,QAAQ,sBACP,QAAQ;iBAgCW,UAAM;;;;cChKf;;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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { a as getAnalyticsStore, i as createAnalyticsStore, n as IPowerhouseAnalytics, r as CreateStoreOptions } from "./types-520nWrB3.js";
|
|
2
|
-
import { $ as
|
|
3
|
-
import { $ as prepareSignedActions, $t as
|
|
2
|
+
import { $ as IPackagesListener, A as markLocalDriveWrite, At as PHGlobalConfigSetters, B as ensurePHStore, Bt as DocumentDispatch, C as DriveNodesEntry, Ct as PHDocumentEditorConfigKey, D as getDriveNode, Dt as PHGlobalConfigHooks, E as dropDriveNode, Et as PHGlobalConfig, F as useDriveNodesCache, Ft as PHSentryGlobalConfig, G as subscribePHStore, Gt as IDocumentTypeCache, H as getPHStore, Ht as DocumentsOfTypeEntry, I as PHStore, It as IReactorBrowserClient, J as addDraggingNodeEventHandler, Jt as PromiseState, K as usePHStore, Kt as IOperationCache, L as PHStoreProvider, Lt as IReactorBrowserReadClient, M as takeLocalDriveWrite, Mt as PHProcessorsGlobalConfig, N as useDriveNode, Nt as PHRelationalProcessorsGlobalConfig, O as invalidateDriveNodes, Ot as PHGlobalConfigHooksForKey, P as useDriveNodes, Pt as PHRenownGlobalConfig, Q as IPackageManager, R as bindPHStoreToWindow, Rt as IReactorBrowserWriteClient, S as DriveNodesCache, St as PHDocumentEditorConfigHooks, T as addDriveNodesEventHandler, Tt as PHDrivesGlobalConfig, U as getPHStoreSubscribe, Ut as FulfilledPromise, V as getActivePHStore, Vt as DocumentRefetchState, W as notifyPHStore, Wt as IDocumentCache, X as useDropNode, Xt as RejectedPromise, Y as useDragNode, Yt as PromiseWithState, Z as IPackageListerUnsubscribe, _ as SetPHGlobalValue, _t as PHAppConfigHooks, a as PHDriveTarget, at as TimelineDividerItem, b as WorkerReactorClientModule, bt as PHCommonGlobalConfig, c as PHGlobalKey, ct as DiscoveryEventListener, d as PHNavigation, dt as IPackageDiscoveryService, et as PackageManagerInstallResult, f as PHNavigationTarget, ft as PendingInstallation, g as SetEvent, gt as PHAppConfig, h as SearchParamsUpdate, ht as PHAnalyticsGlobalConfig, i as LOADING, it as TimelineBarItem, j as peekDriveNode, jt as PHGlobalConfigSettersForKey, k as loadDriveNodes, kt as PHGlobalConfigKey, l as PHGlobalValue, lt as FailedInstallation, m as PHSettingsTarget, mt as FullPHGlobalConfig, n as BrowserReactorClientModule, nt as PHToastOptions, o as PHGlobal, ot as TimelineItem, p as PHSearchUpdate, pt as PHModal, q as DraggingNode, qt as OperationsCacheEntry, r as BrowserReactorModule, rt as PHToastType, s as PHGlobalEventHandlerAdders, st as DiscoveryEvent, t as AddPHGlobalEventHandler, tt as PHToastFn, u as PHNavigateOptions, ut as FailedInstallationReason, v as SetSearchParams, vt as PHAppConfigKey, w as DriveNodesOptions, wt as PHDocumentEditorConfigSetters, x as WorkerReactorModule, xt as PHDocumentEditorConfig, y as UsePHGlobalValue, yt as PHAppConfigSetters, z as createPHStore, zt as ReactorBrowserHalves } from "./global-C4kaLEPb.js";
|
|
3
|
+
import { $ as prepareSignedActions, $t as MergeHandler, A as addDocumentCacheEventHandler, At as JobFailedError, B as DocumentChangesEventPayload, Bt as RevisionsListSelection, C as useModelRegistry, Ct as SubgraphSdkRegistry, D as useReactorHalves, Dt as BatchJobFailedError, E as useReactorClientModule, Et as subgraphUrlFromGraphqlUrl, F as useDocuments, Ft as BearerTokenProvider, G as createJobChangesSocket, Gt as ConflictInfo, H as IJobChangesSocket, Ht as phDocumentFromGetDocument, I as useGetDocument, It as ambientRenownTokenProvider, J as startDocumentChangesSubscription, Jt as GetDocumentResult, K as isAuthRefusalClose, Kt as ConflictStrategy, L as useGetDocumentAsync, Lt as makeAuthMiddleware, M as useDocument, Mt as GraphQLDriveNodeSource, N as useDocumentCache, Nt as GraphQLDriveReadClient, O as useSync, Ot as GraphQLOperationNotSupportedError, P as useDocumentSafe, Pt as toLegacyNode, Q as resolveDocumentModelModule, Qt as IRemoteController, R as useGetDocuments, Rt as GetDocumentQueryFields, S as useDatabase, St as SubgraphSdkFactory, T as useReactorClient, Tt as describeGraphQLDocument, U as JobChangesEventPayload, Ut as phDocumentFromMutation, V as DocumentChangesSubscriptionOptions, Vt as isoStringFromDateTime, W as JobChangesSocketOptions, Wt as revisionMapFromRevisionsList, X as StaticPackageManager, Xt as GetOperationsResult, Y as subscriptionsUrlFromGraphqlUrl, Yt as GetDocumentWithOperationsResult, Z as packageFromDocumentModels, Zt as IRemoteClient, _ as addReactorHalvesEventHandler, _n as readPromiseState, _t as createGraphQLDriveNodeSource, a as DocumentOperationsState, an as RemoteOperation, at as MutateDocumentWithOperationsDocument, b as setReactorClient, bt as viewFilterInputFromViewFilter, c as useDocumentModelModuleById, cn as TrackedAction, ct as ReactorOperationFieldsFragmentDoc, d as UseDispatchResult, dn as IDLE_DOCUMENTS_OF_TYPE_ENTRY, dt as ensurePHEventHandlers, en as PushResult, et as signStampedAction, f as createDispatch, fn as IDLE_OPERATIONS_ENTRY, ft as useSwitchboardClient, g as addReactorClientModuleEventHandler, gn as isOperationCache, gt as GraphQLReactorReadClient, h as addReactorClientEventHandler, hn as isDocumentTypeCache, ht as GraphQLReactorClientOptions, i as DocumentOperationsResult, in as RemoteDocumentData, it as GetDocumentAtConsistencyVariables, j as setDocumentCache, jt as DriveNodeQueries, k as useSyncList, kt as GraphQLWrongBackendError, l as useDocumentModelModules, ln as DocumentCache, lt as GraphQLReactorProvider, m as addFullReactorClientEventHandler, mn as addPromiseState, mt as GraphQLReactorClient, n as setAttachmentService, nn as RemoteControllerOptions, nt as GetDocumentAtConsistencyDocument, o as UseDocumentOperationsOptions, on as RemoteOperationResultPage, ot as MutateDocumentWithOperationsResult, p as useDispatch, pn as IDocumentCacheReader, pt as DriveIdCall, q as makeAuthConnectionParams, qt as DocumentChangeListener, r as useAttachmentService, rn as RemoteDocumentChangeEvent, rt as GetDocumentAtConsistencyResult, s as useDocumentOperations, sn as SyncStatus, st as MutateDocumentWithOperationsVariables, t as addAttachmentServiceEventHandler, tn as RemoteControllerGraphQLClient, tt as stampAction, u as DispatchFn, un as GET_MANY_CHUNK_SIZE, ut as GraphQLReactorProviderProps, v as getFullReactorClient, vn as IDLE_REFETCH_STATE, vt as findIsServableOverGraphQL, w as usePGlite, wt as TypedGraphQLDocument, x as setReactorClientModule, xt as GraphQLRequestOptions, y as setFullReactorClient, yt as isGraphQLReactorClient, z as ConnectionParams, zt as GetDocumentQueryResult } from "./attachment-service-C_8_poEv.js";
|
|
4
4
|
import { baseDocumentModels, baseDocumentModelsMap } from "./src/document-model.js";
|
|
5
5
|
import { t as PGlite } from "./pglite-CntadC_p-DTkdF8sr.js";
|
|
6
6
|
import { r as PGliteWithLive } from "./index-rtDmzViP.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as createClient } from "./client-
|
|
9
|
-
import { $ as useUser, A as RENOWN_RETURN_URL_STRIPPED_PARAMS, B as UserIcon, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as ChevronDownIcon, G as RenownLoginButtonProps, H as RenownUserButtonMenuItem, I as CopyIcon, J as addRenownEventHandler, K as RenownAuthButton, L as DisconnectIcon, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, N as initConnectCrypto, O as RENOWN_CHAIN_ID, P as initRenownCrypto, Q as useRenown, R as RenownLogo, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownUserButtonProps, V as RenownUserButton, W as RenownLoginButton, X as useDid, Y as setRenown, Z as useLoginStatus, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthResolution, b as RenownInitialUserProviderProps, c as Renown, ct as useRenownAuthAsync, d as useRenownInit, et as login, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthAsync, j as RENOWN_URL, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as openRenown, o as RenownProvider, ot as RenownAuthStatus, p as RenownSessionCookieState, q as RenownAuthButtonProps, r as useRenownLoginMethods, rt as RenownAuth, s as RenownProviderProps, st as useRenownAuth, t as useRenownWalletAdapter, tt as logout, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as SpinnerIcon } from "./index-
|
|
7
|
+
import { E as MutateDocumentMutation, O as PropagationMode, _ as CreateDocumentMutation, a as GraphQLDocumentEvents, c as ReactorGraphQLClient, d as DEFAULT_DRIVE_ID, f as DEFAULT_SWITCHBOARD_URL, g as ActionInput, h as graphqlEventsToSyncDrive, i as GraphQLDocumentEventOperationName, j as SdkFunctionWrapper, 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, v as DeleteDocumentMutation, w as GetDocumentWithOperationsQuery, x as FindDocumentsQuery, y as DeleteDocumentsMutation } from "./types-Vb8q55oM.js";
|
|
8
|
+
import { t as createClient } from "./client-Cx43uuSO.js";
|
|
9
|
+
import { $ as useUser, A as RENOWN_RETURN_URL_STRIPPED_PARAMS, B as UserIcon, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as ChevronDownIcon, G as RenownLoginButtonProps, H as RenownUserButtonMenuItem, I as CopyIcon, J as addRenownEventHandler, K as RenownAuthButton, L as DisconnectIcon, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, N as initConnectCrypto, O as RENOWN_CHAIN_ID, P as initRenownCrypto, Q as useRenown, R as RenownLogo, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownUserButtonProps, V as RenownUserButton, W as RenownLoginButton, X as useDid, Y as setRenown, Z as useLoginStatus, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthResolution, b as RenownInitialUserProviderProps, c as Renown, ct as useRenownAuthAsync, d as useRenownInit, et as login, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthAsync, j as RENOWN_URL, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as openRenown, o as RenownProvider, ot as RenownAuthStatus, p as RenownSessionCookieState, q as RenownAuthButtonProps, r as useRenownLoginMethods, rt as RenownAuth, s as RenownProviderProps, st as useRenownAuth, t as useRenownWalletAdapter, tt as logout, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as SpinnerIcon } from "./index-CROGY3XV.js";
|
|
10
10
|
import { QueryCallbackReturnType, RelationalDbOptions, RelationalDbWithLive, createProcessorQuery, useRelationalDb, useRelationalQuery, useRelationalQueryOptions } from "./src/relational/index.js";
|
|
11
11
|
import { DragEventHandler, MouseEvent, ReactNode } from "react";
|
|
12
12
|
import { DocumentModelLib, DocumentModelModule, EditorModule, PHDocument, PHDocumentController } from "document-model";
|
|
13
13
|
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, SubgraphModule, ValidationError } from "@powerhousedao/shared/document-model";
|
|
14
|
-
import { ActionCandidate, ChannelScheme, ConnectionState, ConnectionStateSnapshot, ConnectionStateSnapshot as ConnectionStateSnapshot$1, Database, DocumentChangeType, DocumentIntegrityService, DriveCollectionId, Evaluation, GqlRequestChannel, IChannel, IDocumentModelLoader, IDocumentModelRegistry, 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";
|
|
14
|
+
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";
|
|
15
15
|
import { DocumentDriveAction, DocumentDriveDocument, DriveInput, FileNode, FolderNode, Node, SharingType } from "@powerhousedao/shared/document-drive";
|
|
16
16
|
import { AttachmentDownloadInput, AttachmentHeader, AttachmentUploadResult, IAttachmentClient, PreprocessResult } from "@powerhousedao/reactor-attachments/client";
|
|
17
17
|
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";
|
|
@@ -283,6 +283,7 @@ export declare function reactorGraphqlMutateDocument(documentIdentifier: string,
|
|
|
283
283
|
export declare const commonGlobalEventHandlerFunctions: {
|
|
284
284
|
loading: () => void;
|
|
285
285
|
drives: () => void;
|
|
286
|
+
driveNodes: () => void;
|
|
286
287
|
selectedDriveId: () => void;
|
|
287
288
|
selectedNodeId: () => void;
|
|
288
289
|
documentCache: () => void;
|
|
@@ -707,7 +708,7 @@ export declare function useInitReactorGraphqlClient(switchboardUrl?: "http://loc
|
|
|
707
708
|
//#endregion
|
|
708
709
|
//#region src/hooks/items-in-selected-drive.d.ts
|
|
709
710
|
/** Returns the nodes in the selected drive. */
|
|
710
|
-
export declare function useNodesInSelectedDrive():
|
|
711
|
+
export declare function useNodesInSelectedDrive(): Node[] | undefined;
|
|
711
712
|
/** Returns the file nodes in the selected drive. */
|
|
712
713
|
export declare function useFileNodesInSelectedDrive(): FileNode[] | undefined;
|
|
713
714
|
/** Returns the folder nodes in the selected drive. */
|
|
@@ -897,34 +898,6 @@ export declare function useSearchParams(): Record<string, string>;
|
|
|
897
898
|
/** Sets query params: an object merges into them, a function returns them all. */
|
|
898
899
|
export declare function useSetSearchParams(): SetSearchParams$1;
|
|
899
900
|
//#endregion
|
|
900
|
-
//#region src/hooks/ph-store.d.ts
|
|
901
|
-
/** PH state of one app (or one server request); assigning a key notifies. */
|
|
902
|
-
export type PHStore = PHGlobal$1;
|
|
903
|
-
declare const ALL_KEYS: unique symbol;
|
|
904
|
-
export declare function createPHStore(initial?: PHGlobal$1): PHStore;
|
|
905
|
-
/** Subscribes to changes of `key`, or of every key when omitted. */
|
|
906
|
-
export declare function subscribePHStore(store: PHStore, listener: () => void, key?: PHGlobalKey$1 | typeof ALL_KEYS): () => void;
|
|
907
|
-
/** Notifies `key`'s listeners without a change, as re-setting a value does. */
|
|
908
|
-
export declare function notifyPHStore(store: PHStore, key: PHGlobalKey$1): void;
|
|
909
|
-
/** A subscribe for `key`, stable per store as useSyncExternalStore expects. */
|
|
910
|
-
export declare function getPHStoreSubscribe(store: PHStore, key?: PHGlobalKey$1): (listener: () => void) => () => void;
|
|
911
|
-
/** The store bound with {@link bindPHStoreToWindow}, if any. */
|
|
912
|
-
export declare function getActivePHStore(): PHGlobal$1 | undefined;
|
|
913
|
-
/** The app's state outside React: the bound store, else `window.ph`. */
|
|
914
|
-
export declare function getPHStore(): PHStore | undefined;
|
|
915
|
-
/** The bound store; otherwise binds `window.ph` if it is a store, else a new
|
|
916
|
-
* store that takes over a plain `window.ph`'s values. */
|
|
917
|
-
export declare function ensurePHStore(): PHStore;
|
|
918
|
-
/** Makes `store` the app's state and `window.ph`; values set on a plain
|
|
919
|
-
* `window.ph` carry over where `store` has none. */
|
|
920
|
-
export declare function bindPHStoreToWindow(store: PHStore): void;
|
|
921
|
-
/** Hooks below read from `store`; without a provider they read `window.ph`. */
|
|
922
|
-
export declare function PHStoreProvider(props: {
|
|
923
|
-
store: PHStore;
|
|
924
|
-
children: ReactNode;
|
|
925
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
926
|
-
export declare function usePHStore(): PHGlobal$1 | undefined;
|
|
927
|
-
//#endregion
|
|
928
901
|
//#region src/hooks/selected-drive.d.ts
|
|
929
902
|
/** Returns the selected drive id: the drive app's drive, else the app's selection. */
|
|
930
903
|
export declare function useSelectedDriveId(): string | undefined;
|
|
@@ -1346,6 +1319,32 @@ export type RefreshReactorDataConfig = {
|
|
|
1346
1319
|
};
|
|
1347
1320
|
export declare const refreshReactorData: (reactor: IReactorReadClient$1, immediate?: boolean) => Promise<void>;
|
|
1348
1321
|
export declare const refreshReactorDataClient: (reactor: IReactorReadClient$1 | undefined, immediate?: boolean) => Promise<void>;
|
|
1322
|
+
/**
|
|
1323
|
+
* Re-reads one drive and replaces it in the drives store. Only that drive
|
|
1324
|
+
* crosses the wire: the list used to be re-fetched whole on any drive change,
|
|
1325
|
+
* every drive's node tree included, which on a large mail drive was ten
|
|
1326
|
+
* megabytes per change. Without a store (before init) the whole list loads.
|
|
1327
|
+
*/
|
|
1328
|
+
export declare function refreshDrive(reactor: IReactorReadClient$1, driveId: string): Promise<void>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Brings the drives store in line with which drives exist: ids come from a
|
|
1331
|
+
* headers-only listing, a drive not held yet is loaded on its own, and a drive
|
|
1332
|
+
* no longer listed is dropped. Drives already held are kept as they are.
|
|
1333
|
+
*/
|
|
1334
|
+
export declare function refreshDriveMembership(reactor: IReactorReadClient$1): Promise<void>;
|
|
1335
|
+
export type DriveChangeHandlerOptions = {
|
|
1336
|
+
/** The least time between two re-reads of the same drive; default 10 s. */
|
|
1337
|
+
minIntervalMs?: number;
|
|
1338
|
+
onError?: (error: unknown) => void;
|
|
1339
|
+
};
|
|
1340
|
+
/**
|
|
1341
|
+
* Routes a drive-type document change to the smallest refresh: an update
|
|
1342
|
+
* re-reads that one drive and invalidates its node cache, at most once per
|
|
1343
|
+
* `minIntervalMs` while it keeps changing (at once after a write from this
|
|
1344
|
+
* tab, see `markLocalDriveWrite`); a creation or deletion refreshes the
|
|
1345
|
+
* membership and loads only what is new.
|
|
1346
|
+
*/
|
|
1347
|
+
export declare function createDriveChangeHandler(reactor: IReactorReadClient$1, options?: DriveChangeHandlerOptions): (event: DocumentChangeEvent) => void;
|
|
1349
1348
|
//#endregion
|
|
1350
1349
|
//#region src/routing/drive-arrivals.d.ts
|
|
1351
1350
|
/** Drives that may still arrive, e.g. while the first sync runs. */
|
|
@@ -1703,6 +1702,15 @@ export declare function isDocumentTypeSupported(documentType: string, supportedD
|
|
|
1703
1702
|
//#region src/utils/drives.d.ts
|
|
1704
1703
|
export type UISyncStatus = "INITIAL_SYNC" | "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR" | "SYNCING";
|
|
1705
1704
|
export declare function getDrives(reactor: IReactorReadClient$1): Promise<DocumentDriveDocument[]>;
|
|
1705
|
+
/**
|
|
1706
|
+
* The id of every drive, from a listing that carries headers only: a drive's
|
|
1707
|
+
* node tree can be megabytes (a mail drive with tens of thousands of files),
|
|
1708
|
+
* so membership is learned without it and a new drive is then loaded on its
|
|
1709
|
+
* own.
|
|
1710
|
+
*/
|
|
1711
|
+
export declare function listDriveIds(reactor: IReactorReadClient$1): Promise<string[]>;
|
|
1712
|
+
/** One drive in full, or undefined once it is gone. */
|
|
1713
|
+
export declare function getDrive(reactor: IReactorReadClient$1, driveId: string): Promise<DocumentDriveDocument | undefined>;
|
|
1706
1714
|
export declare function getSyncStatus(documentId: string, sharingType: SharingType): Promise<UISyncStatus | undefined>;
|
|
1707
1715
|
export declare function getSyncStatusSync(documentId: string, sharingType: SharingType): UISyncStatus | undefined;
|
|
1708
1716
|
/** A drive's display name: the header's (renames set it), else its creation name. */
|
|
@@ -1722,6 +1730,12 @@ export declare function sortNodesByName<T extends Node>(nodes: T[]): T[];
|
|
|
1722
1730
|
export declare function isFileNodeKind(node: Node | null | undefined): node is FileNode;
|
|
1723
1731
|
/** Returns whether a node is a folder. */
|
|
1724
1732
|
export declare function isFolderNodeKind(node: Node | null | undefined): node is FolderNode;
|
|
1733
|
+
/** Every node of a drive from `read.drives`, paged until the last page;
|
|
1734
|
+
* `parentFolder` narrows it as `listNodes` does (null: the root level). */
|
|
1735
|
+
export declare function listAllDriveNodes(reader: IDriveReadClient, driveId: string, options?: {
|
|
1736
|
+
parentFolder?: string | null;
|
|
1737
|
+
signal?: AbortSignal;
|
|
1738
|
+
}): Promise<Node[]>;
|
|
1725
1739
|
//#endregion
|
|
1726
1740
|
//#region src/utils/preload-editor.d.ts
|
|
1727
1741
|
export declare function preloadEditorModule(module: EditorModule): Promise<unknown> | undefined;
|
|
@@ -1837,6 +1851,6 @@ export declare function getUserPermissions(): {
|
|
|
1837
1851
|
//#region src/utils/validate-document.d.ts
|
|
1838
1852
|
export declare const validateDocument: (document: PHDocument$1) => ValidationError[];
|
|
1839
1853
|
//#endregion
|
|
1840
|
-
export { type AddPHGlobalEventHandler, 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_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, type Database, 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, type FailedInstallation, type FailedInstallationReason, type FileUploadProgress, type FileUploadProgressCallback, type FolderZipResult, type FulfilledPromise, type FullPHGlobalConfig, 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, GraphQLOperationNotSupportedError, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, 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, 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, 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, addFullReactorClientEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addReactorHalvesEventHandler, addRenownEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, createAnalyticsStore, createClient, createDispatch, createJobChangesSocket, createProcessorQuery, describeGraphQLDocument, driveIdFromUrl, ensurePHEventHandlers, findIsServableOverGraphQL, getAnalyticsStore, getFullReactorClient, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, initConnectCrypto, initRenownCrypto, isAuthRefusalClose, isDocumentTypeCache, isDriveAuthError, isGraphQLReactorClient, isOperationCache, isoStringFromDateTime, login, logout, makeAuthConnectionParams, makeAuthMiddleware, openRenown, packageFromDocumentModels, parseDriveUrl, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setAttachmentService, setDocumentCache, setFullReactorClient, setReactorClient, setReactorClientModule, setRenown, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, useAttachmentService, useDatabase, useDid, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useDragNode, useDropNode, useGetDocument, useGetDocumentAsync, useGetDocuments, useLoginStatus, useModelRegistry, usePGlite, useReactorClient, useReactorClientModule, useReactorHalves, useRelationalDb, useRelationalQuery, useRelationalQueryOptions, useRenown, useRenownAuth, useRenownAuthAsync, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownSessionCookie, useRenownSessionSynced, useRenownWalletAdapter, useSwitchboardClient, useSync, useSyncList, useUser, viewFilterInputFromViewFilter };
|
|
1854
|
+
export { type AddPHGlobalEventHandler, 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_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, type Database, 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, 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, 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, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, bindPHStoreToWindow, createAnalyticsStore, createClient, createDispatch, createGraphQLDriveNodeSource, createJobChangesSocket, createPHStore, createProcessorQuery, describeGraphQLDocument, driveIdFromUrl, dropDriveNode, ensurePHEventHandlers, ensurePHStore, findIsServableOverGraphQL, getActivePHStore, getAnalyticsStore, getDriveNode, getFullReactorClient, getPHStore, getPHStoreSubscribe, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, initConnectCrypto, initRenownCrypto, invalidateDriveNodes, isAuthRefusalClose, isDocumentTypeCache, isDriveAuthError, isGraphQLReactorClient, isOperationCache, isoStringFromDateTime, loadDriveNodes, login, logout, makeAuthConnectionParams, makeAuthMiddleware, markLocalDriveWrite, notifyPHStore, openRenown, packageFromDocumentModels, parseDriveUrl, peekDriveNode, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setAttachmentService, setDocumentCache, setFullReactorClient, setReactorClient, setReactorClientModule, setRenown, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscribePHStore, subscriptionsUrlFromGraphqlUrl, 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 };
|
|
1841
1855
|
export {};
|
|
1842
1856
|
//# sourceMappingURL=index.d.ts.map
|