@powerhousedao/reactor-browser 6.0.0-dev.213 → 6.0.0-dev.215

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/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { a as getAnalyticsStore, i as createAnalyticsStore, n as IPowerhouseAnalytics, r as CreateStoreOptions } from "./types-BmR60pPN.js";
2
2
  import { a as RelationalDbWithLive, c as PGlite, i as useRelationalQueryOptions, n as QueryCallbackReturnType, o as useRelationalDb, r as useRelationalQuery, s as PGliteWithLive, t as createProcessorQuery } from "./index-Ce4S7Kk1.js";
3
- import { a as PropagationMode, i as PhDocumentFieldsFragment, n as ReactorGraphQLClient, r as GetDocumentOperationsQuery, t as createClient } from "./client-K2ycBgUP.js";
3
+ import { C as PhDocumentFieldsFragment, S as MutateDocumentMutation, T as Scalars, _ as DeleteDocumentMutation, a as GraphQLDocumentEventOperationName, b as GetDocumentOperationsQuery, c as GraphQLDocumentsEvents, d as DEFAULT_DRIVE_ID, f as DEFAULT_SWITCHBOARD_URL, g as CreateDocumentMutation, h as graphqlEventsToSyncDrive, i as GraphQLClientWindowEvents, l as ReactorGraphQLClient, m as graphqlDocumentsEvents, n as GraphQLClientDocumentEvent, o as GraphQLDocumentEvents, p as graphqlDocumentEvents, r as GraphQLClientDocumentsEvent, s as GraphQLDocumentEventsOperationName, t as createClient, u as TStateSchemaZodObject, v as DeleteDocumentsMutation, w as PropagationMode, x as GetDocumentWithOperationsQuery, y as FindDocumentsQuery } from "./client-DhQo2Vi9.js";
4
4
  import { A as logout, C as RenownUserButtonMenuItem, D as RenownAuthButton, E as RenownLoginButtonProps, M as RenownAuth, N as RenownAuthStatus, O as RenownAuthButtonProps, P as useRenownAuth, S as RenownUserButton, T as RenownLoginButton, _ as CopyIcon, a as CREDENTIAL_SCHEMA_EIP712_TYPE, b as SpinnerIcon, c as DOMAIN_TYPE, d as RENOWN_NETWORK_ID, f as RENOWN_URL, g as ChevronDownIcon, h as initRenownCrypto, i as useRenownInit, j as openRenown, k as login, l as ISSUER_TYPE, m as initConnectCrypto, n as RenownProps, o as CREDENTIAL_SUBJECT_TYPE, p as VERIFIABLE_CREDENTIAL_EIP712_TYPE, r as RenownInitOptions, s as CREDENTIAL_TYPES, t as Renown, u as RENOWN_CHAIN_ID, v as DisconnectIcon, w as RenownUserButtonProps, x as UserIcon, y as RenownLogo } from "./index-DgwLcoI3.js";
5
5
  import * as document_model0 from "document-model";
6
- import { DocumentModelLib, DocumentModelModule, EditorModule, PHDocumentController } from "document-model";
7
- import { Action, DocumentAction, DocumentModelModule as DocumentModelModule$1, DocumentModelPHState, DocumentOperations, ISigner, Operation, PHBaseState, PHDocument, PHDocumentHeader, SubgraphModule, ValidationError } from "@powerhousedao/shared/document-model";
6
+ import { DocumentModelLib, DocumentModelModule, EditorModule, PHDocument, PHDocumentController } from "document-model";
7
+ import { Action, DocumentAction, DocumentModelModule as DocumentModelModule$1, DocumentModelPHState, DocumentOperations, ISigner, Operation, PHBaseState, PHDocument as PHDocument$1, PHDocumentHeader, SubgraphModule, ValidationError } from "@powerhousedao/shared/document-model";
8
8
  import * as _powerhousedao_shared_document_drive0 from "@powerhousedao/shared/document-drive";
9
9
  import { DocumentDriveAction, DocumentDriveDocument, DriveInput, FileNode, FolderNode, Node, SharingType } from "@powerhousedao/shared/document-drive";
10
10
  import * as _powerhousedao_reactor0 from "@powerhousedao/reactor";
@@ -25,7 +25,7 @@ import { PackageInfo } from "@powerhousedao/shared/registry";
25
25
  * @param onErrors - Callback invoked with any errors that occurred during action execution.
26
26
  * @returns The updated document, or undefined if the dispatch failed.
27
27
  */
28
- declare function dispatchActions<TDocument = PHDocument, TAction = Action>(actionOrActions: TAction[] | TAction | undefined, document: TDocument | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument) => void): Promise<PHDocument | undefined>;
28
+ declare function dispatchActions<TDocument = PHDocument$1, TAction = Action>(actionOrActions: TAction[] | TAction | undefined, document: TDocument | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void): Promise<PHDocument$1 | undefined>;
29
29
  /**
30
30
  * Dispatches actions to a document.
31
31
  * @param actionOrActions - The action or actions to dispatch.
@@ -33,11 +33,11 @@ declare function dispatchActions<TDocument = PHDocument, TAction = Action>(actio
33
33
  * @param onErrors - Callback invoked with any errors that occurred during action execution.
34
34
  * @returns The updated document, or undefined if the dispatch failed.
35
35
  */
36
- declare function dispatchActions(actionOrActions: Action[] | Action | undefined, documentId: string, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument) => void): Promise<PHDocument | undefined>;
36
+ declare function dispatchActions(actionOrActions: Action[] | Action | undefined, documentId: string, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void): Promise<PHDocument$1 | undefined>;
37
37
  //#endregion
38
38
  //#region src/actions/document.d.ts
39
- declare function exportFile(document: PHDocument, suggestedName?: string): Promise<void | FileSystemFileHandle>;
40
- declare function addDocument(driveId: string, name: string, documentType: string, parentFolder?: string, document?: PHDocument, id?: string, preferredEditor?: string): Promise<{
39
+ declare function exportFile(document: PHDocument$1, suggestedName?: string): Promise<void | FileSystemFileHandle>;
40
+ declare function addDocument(driveId: string, name: string, documentType: string, parentFolder?: string, document?: PHDocument$1, id?: string, preferredEditor?: string): Promise<{
41
41
  id: string;
42
42
  name: string;
43
43
  documentType: string;
@@ -52,16 +52,16 @@ declare function renameDriveNode(driveId: string, nodeId: string, name: string):
52
52
  declare function addDrive(input: DriveInput, preferredEditor?: string): Promise<DocumentDriveDocument>;
53
53
  declare function addRemoteDrive(url: string, driveId?: string): Promise<string>;
54
54
  declare function deleteDrive(driveId: string): Promise<void>;
55
- declare function renameDrive(driveId: string, name: string): Promise<PHDocument | undefined>;
56
- declare function setDriveAvailableOffline(driveId: string, availableOffline: boolean): Promise<PHDocument | undefined>;
57
- declare function setDriveSharingType(driveId: string, sharingType: SharingType): Promise<PHDocument | undefined>;
55
+ declare function renameDrive(driveId: string, name: string): Promise<PHDocument$1 | undefined>;
56
+ declare function setDriveAvailableOffline(driveId: string, availableOffline: boolean): Promise<PHDocument$1 | undefined>;
57
+ declare function setDriveSharingType(driveId: string, sharingType: SharingType): Promise<PHDocument$1 | undefined>;
58
58
  //#endregion
59
59
  //#region src/constants.d.ts
60
60
  declare const DEFAULT_DRIVE_EDITOR_ID = "powerhouse/generic-drive-explorer";
61
61
  declare const COMMON_PACKAGE_ID = "powerhouse/common";
62
62
  //#endregion
63
63
  //#region src/types/documents.d.ts
64
- type DocumentDispatch<TAction extends Action> = (actionOrActions: TAction | TAction[] | DocumentAction | DocumentAction[] | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument) => void) => void;
64
+ type DocumentDispatch<TAction extends Action> = (actionOrActions: TAction | TAction[] | DocumentAction | DocumentAction[] | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void) => void;
65
65
  type PromiseWithState<T> = Promise<T> & PromiseState<T>;
66
66
  type FulfilledPromise<T> = Promise<T> & {
67
67
  status: "fulfilled";
@@ -81,8 +81,8 @@ type PromiseState<T> = {
81
81
  reason: unknown;
82
82
  };
83
83
  interface IDocumentCache {
84
- get(id: string, refetch?: boolean): Promise<PHDocument>;
85
- getBatch(ids: string[], refetch?: boolean): Promise<PHDocument[]>;
84
+ get(id: string, refetch?: boolean): Promise<PHDocument$1>;
85
+ getBatch(ids: string[], refetch?: boolean): Promise<PHDocument$1[]>;
86
86
  subscribe(id: string | string[], callback: () => void): () => void;
87
87
  }
88
88
  //#endregion
@@ -106,8 +106,8 @@ declare class DocumentCache implements IDocumentCache {
106
106
  private handleDocumentDeleted;
107
107
  private handleDocumentUpdated;
108
108
  private invalidateBatchesContaining;
109
- get(id: string, refetch?: boolean): Promise<PHDocument>;
110
- getBatch(ids: string[]): Promise<PHDocument[]>;
109
+ get(id: string, refetch?: boolean): Promise<PHDocument$1>;
110
+ getBatch(ids: string[]): Promise<PHDocument$1[]>;
111
111
  subscribe(id: string | string[], callback: () => void): () => void;
112
112
  /**
113
113
  * Disposes of the cache and unsubscribes from document change events.
@@ -140,8 +140,51 @@ declare function getGlobal<K extends keyof PowerhouseGlobal>(namespace: K): Powe
140
140
  declare function setGlobal<K extends keyof PowerhouseGlobal>(namespace: K, value: PowerhouseGlobal[K]): void;
141
141
  declare function clearGlobal(namespace: keyof PowerhouseGlobal): void;
142
142
  //#endregion
143
+ //#region src/graphql/adapters.d.ts
144
+ type QueryDocumentResult = NonNullable<GetDocumentWithOperationsQuery["document"]>["document"];
145
+ type FindDocumentsItems = NonNullable<FindDocumentsQuery["findDocuments"]>["items"];
146
+ declare function phDocumentFromQuery<TDocumentSchema extends TStateSchemaZodObject>(document: QueryDocumentResult, documentSchema?: TDocumentSchema): PHDocument;
147
+ declare function phDocumentsFromQuery<TDocumentSchema extends TStateSchemaZodObject>(items: FindDocumentsItems, documentSchema?: TDocumentSchema): PHDocument[];
148
+ declare function identifierFromMutateDocumentOperationVariables(variables: unknown): string;
149
+ //#endregion
150
+ //#region src/graphql/fetchers.d.ts
151
+ declare function reactorGraphqlFetchDocument<TDocumentSchema extends TStateSchemaZodObject>(identifier: string, documentSchema?: TDocumentSchema): Promise<document_model0.PHDocument | undefined>;
152
+ declare function reactorGraphqlBatchFetchDocuments(identifiers: readonly string[]): Promise<(document_model0.PHDocument | undefined)[]>;
153
+ //#endregion
154
+ //#region src/graphql/graphql-client-document-cache.d.ts
155
+ declare class GraphQLClientDocumentCache implements IDocumentCache {
156
+ private fetcher;
157
+ private documents;
158
+ private batchPromises;
159
+ private listeners;
160
+ constructor();
161
+ get(id: string, refetch?: boolean): Promise<PHDocument>;
162
+ getBatch(ids: string[]): Promise<PHDocument[]>;
163
+ private invalidateBatchesContaining;
164
+ subscribe(id: string | string[], callback: () => void): () => void;
165
+ private notify;
166
+ private handleDocumentMutated;
167
+ private handleDocumentDeleted;
168
+ private handleDocumentsDeleted;
169
+ }
170
+ //#endregion
171
+ //#region src/graphql/mutators.d.ts
172
+ declare function reactorGraphqlCreateDocument<TDocument extends PHDocument>(document: TDocument, parentIdentifier?: "powerhouse"): Promise<CreateDocumentMutation>;
173
+ declare function reactorGraphqlDeleteDocument(identifier: string): Promise<DeleteDocumentMutation>;
174
+ declare function reactorGraphqlDeleteDocuments(identifiers: string[]): Promise<DeleteDocumentsMutation>;
175
+ declare function reactorGraphqlMutateDocument(documentIdentifier: string, ...actions: ReadonlyArray<Scalars["JSONObject"]["input"]>): Promise<MutateDocumentMutation>;
176
+ //#endregion
143
177
  //#region src/hooks/add-ph-event-handlers.d.ts
178
+ declare const commonGlobalEventHandlerFunctions: {
179
+ loading: () => void;
180
+ drives: () => void;
181
+ selectedDriveId: () => void;
182
+ selectedNodeId: () => void;
183
+ documentCache: () => void;
184
+ reactorGraphQLClient: () => void;
185
+ };
144
186
  declare function addPHEventHandlers(): void;
187
+ declare function callEventHandlerRegisterFunctions(registerFunctions: Record<string, () => void>): void;
145
188
  //#endregion
146
189
  //#region src/hooks/allowed-document-model-modules.d.ts
147
190
  declare function useAllowedDocumentModelModules(): document_model0.DocumentModelModule[] | undefined;
@@ -459,40 +502,6 @@ type PHModal = {
459
502
  documentType: string;
460
503
  };
461
504
  //#endregion
462
- //#region src/types/timeline.d.ts
463
- type TimelineBarItem = {
464
- id: string;
465
- type: "bar";
466
- addSize?: 0 | 1 | 2 | 3 | 4;
467
- delSize?: 0 | 1 | 2 | 3 | 4;
468
- timestampUtcMs?: string;
469
- additions?: number;
470
- deletions?: number;
471
- revision?: number;
472
- startDate?: Date;
473
- endDate?: Date;
474
- };
475
- type TimelineDividerItem = {
476
- id: string;
477
- type: "divider";
478
- timestampUtcMs?: string;
479
- title?: string;
480
- subtitle?: string;
481
- revision?: number;
482
- startDate?: Date;
483
- endDate?: Date;
484
- };
485
- type TimelineItem = TimelineBarItem | TimelineDividerItem;
486
- //#endregion
487
- //#region src/types/toast.d.ts
488
- type PHToastType = "default" | "success" | "error" | "warning" | "info" | "connect-success" | "connect-warning" | "connect-loading" | "connect-deleted";
489
- type PHToastOptions = {
490
- type?: PHToastType;
491
- autoClose?: number | false;
492
- containerId?: string;
493
- };
494
- type PHToastFn = (content: ReactNode | string, options?: PHToastOptions) => void;
495
- //#endregion
496
505
  //#region src/types/package-discovery.d.ts
497
506
  type PendingInstallation = {
498
507
  documentType: string;
@@ -534,6 +543,40 @@ interface IPackageDiscoveryService {
534
543
  promptInstallation(documentType: string): void;
535
544
  }
536
545
  //#endregion
546
+ //#region src/types/timeline.d.ts
547
+ type TimelineBarItem = {
548
+ id: string;
549
+ type: "bar";
550
+ addSize?: 0 | 1 | 2 | 3 | 4;
551
+ delSize?: 0 | 1 | 2 | 3 | 4;
552
+ timestampUtcMs?: string;
553
+ additions?: number;
554
+ deletions?: number;
555
+ revision?: number;
556
+ startDate?: Date;
557
+ endDate?: Date;
558
+ };
559
+ type TimelineDividerItem = {
560
+ id: string;
561
+ type: "divider";
562
+ timestampUtcMs?: string;
563
+ title?: string;
564
+ subtitle?: string;
565
+ revision?: number;
566
+ startDate?: Date;
567
+ endDate?: Date;
568
+ };
569
+ type TimelineItem = TimelineBarItem | TimelineDividerItem;
570
+ //#endregion
571
+ //#region src/types/toast.d.ts
572
+ type PHToastType = "default" | "success" | "error" | "warning" | "info" | "connect-success" | "connect-warning" | "connect-loading" | "connect-deleted";
573
+ type PHToastOptions = {
574
+ type?: PHToastType;
575
+ autoClose?: number | false;
576
+ containerId?: string;
577
+ };
578
+ type PHToastFn = (content: ReactNode | string, options?: PHToastOptions) => void;
579
+ //#endregion
537
580
  //#region src/types/vetra.d.ts
538
581
  type IPackagesListener = (data: {
539
582
  packages: DocumentModelLib$1[];
@@ -568,6 +611,7 @@ type PHGlobal = PHGlobalConfig & {
568
611
  loading?: boolean;
569
612
  reactorClientModule?: BrowserReactorClientModule;
570
613
  reactorClient?: IReactorClient;
614
+ reactorGraphQLClient?: ReactorGraphQLClient | undefined;
571
615
  renown?: IRenown | LOADING;
572
616
  vetraPackageManager?: IPackageManager;
573
617
  drives?: DocumentDriveDocument[];
@@ -593,6 +637,7 @@ declare global {
593
637
  interface Window {
594
638
  ph?: PHGlobal;
595
639
  }
640
+ interface WindowEventMap extends GraphQLClientWindowEvents {}
596
641
  } //# sourceMappingURL=global.d.ts.map
597
642
  //#endregion
598
643
  //#region src/hooks/document-cache.d.ts
@@ -608,7 +653,7 @@ declare const addDocumentCacheEventHandler: () => void;
608
653
  * @param id - The document ID to retrieve, or null/undefined to skip retrieval
609
654
  * @returns The document if found, or undefined if id is null/undefined
610
655
  */
611
- declare function useDocument(id: string | null | undefined): PHDocument | undefined;
656
+ declare function useDocument(id: string | null | undefined): PHDocument$1 | undefined;
612
657
  /**
613
658
  * Retrieves multiple documents from the reactor using React Suspense.
614
659
  * This hook will suspend rendering while any of the documents are loading.
@@ -619,19 +664,19 @@ declare function useDocument(id: string | null | undefined): PHDocument | undefi
619
664
  * @param ids - Array of document IDs to retrieve, or null/undefined to skip retrieval
620
665
  * @returns An array of documents if found, or empty array if ids is null/undefined
621
666
  */
622
- declare function useDocuments(ids: string[] | null | undefined): PHDocument[];
667
+ declare function useDocuments(ids: string[] | null | undefined): PHDocument$1[];
623
668
  /**
624
669
  * Returns a function to retrieve a document from the cache.
625
670
  * The returned function fetches and returns a document by ID.
626
671
  * @returns A function that takes a document ID and returns a Promise of the document
627
672
  */
628
- declare function useGetDocument(): (id: string) => Promise<PHDocument>;
673
+ declare function useGetDocument(): (id: string) => Promise<PHDocument$1>;
629
674
  /**
630
675
  * Returns a function to retrieve multiple documents from the cache.
631
676
  * The returned function fetches and returns documents by their IDs.
632
677
  * @returns A function that takes an array of document IDs and returns a Promise of the documents
633
678
  */
634
- declare function useGetDocuments(): (ids: string[]) => Promise<PHDocument[]>;
679
+ declare function useGetDocuments(): (ids: string[]) => Promise<PHDocument$1[]>;
635
680
  /**
636
681
  * Retrieves a document from the reactor without suspending rendering.
637
682
  * Returns the current state of the document loading operation.
@@ -650,19 +695,19 @@ declare function useGetDocumentAsync(id: string | null | undefined): {
650
695
  readonly error: undefined;
651
696
  readonly reload: undefined;
652
697
  } | {
653
- readonly reload: () => Promise<PHDocument>;
698
+ readonly reload: () => Promise<PHDocument$1>;
654
699
  readonly status: "pending";
655
700
  readonly isPending: true;
656
701
  readonly error: undefined;
657
702
  readonly data: undefined;
658
703
  } | {
659
- readonly reload: () => Promise<PHDocument>;
704
+ readonly reload: () => Promise<PHDocument$1>;
660
705
  readonly status: "success";
661
706
  readonly isPending: false;
662
707
  readonly error: undefined;
663
- readonly data: PHDocument;
708
+ readonly data: PHDocument$1;
664
709
  } | {
665
- readonly reload: () => Promise<PHDocument>;
710
+ readonly reload: () => Promise<PHDocument$1>;
666
711
  readonly status: "error";
667
712
  readonly isPending: false;
668
713
  readonly error: unknown;
@@ -732,15 +777,15 @@ declare function useLoginStatus(): LoginStatus | "loading" | undefined;
732
777
  * @param document - The document to dispatch actions to.
733
778
  * @returns A tuple containing the document and a dispatch function.
734
779
  */
735
- type DispatchFn<TAction> = (actionOrActions: TAction[] | TAction | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument) => void) => void;
780
+ type DispatchFn<TAction> = (actionOrActions: TAction[] | TAction | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void) => void;
736
781
  type UseDispatchResult<TDocument, TAction> = readonly [TDocument | undefined, DispatchFn<TAction>];
737
- declare function useDispatch<TDocument = PHDocument, TAction = Action>(document: TDocument | undefined): UseDispatchResult<TDocument, TAction>;
782
+ declare function useDispatch<TDocument = PHDocument$1, TAction = Action>(document: TDocument | undefined): UseDispatchResult<TDocument, TAction>;
738
783
  //#endregion
739
784
  //#region src/hooks/document-by-id.d.ts
740
785
  /** Returns a document by id. */
741
- declare function useDocumentById(id: string | null | undefined): UseDispatchResult<PHDocument, Action>;
786
+ declare function useDocumentById(id: string | null | undefined): UseDispatchResult<PHDocument$1, Action>;
742
787
  /** Returns documents by ids. */
743
- declare function useDocumentsByIds(ids: string[] | null | undefined): PHDocument[];
788
+ declare function useDocumentsByIds(ids: string[] | null | undefined): PHDocument$1[];
744
789
  //#endregion
745
790
  //#region src/hooks/document-model-modules.d.ts
746
791
  declare function useDocumentModelModules(): DocumentModelModule[] | undefined;
@@ -748,7 +793,7 @@ declare function useDocumentModelModuleById(id: string | null | undefined): Docu
748
793
  //#endregion
749
794
  //#region src/hooks/document-of-type.d.ts
750
795
  /** Returns a document of a specific type, throws an error if the found document has a different type */
751
- declare function useDocumentOfType<TDocument extends PHDocument, TAction extends Action>(documentId: string | null | undefined, documentType: string | null | undefined): never[] | [TDocument, DocumentDispatch$1<TAction>];
796
+ declare function useDocumentOfType<TDocument extends PHDocument$1, TAction extends Action>(documentId: string | null | undefined, documentType: string | null | undefined): never[] | [TDocument, DocumentDispatch$1<TAction>];
752
797
  //#endregion
753
798
  //#region src/hooks/document-operations.d.ts
754
799
  type InternalState = {
@@ -797,6 +842,14 @@ declare const addFeaturesEventHandler: AddPHGlobalEventHandler;
797
842
  //#region src/hooks/folder-by-id.d.ts
798
843
  declare function useFolderById(id: string | null | undefined): FolderNode | undefined;
799
844
  //#endregion
845
+ //#region src/hooks/graphql-reactor-client.d.ts
846
+ declare const useGraphQLReactorClient: UsePHGlobalValue<ReactorGraphQLClient>;
847
+ declare const setGraphQLReactorClient: SetPHGlobalValue<ReactorGraphQLClient>;
848
+ declare const addGraphQLReactorClientEventHandler: () => void;
849
+ //#endregion
850
+ //#region src/hooks/init-graphql-reactor-client.d.ts
851
+ declare function useInitReactorGraphqlClient(switchboardUrl?: "http://localhost:4001/graphql", driveId?: "powerhouse"): boolean;
852
+ //#endregion
800
853
  //#region src/hooks/items-in-selected-drive.d.ts
801
854
  /** Returns the nodes in the selected drive. */
802
855
  declare function useNodesInSelectedDrive(): _powerhousedao_shared_document_drive0.Node[] | undefined;
@@ -805,7 +858,7 @@ declare function useFileNodesInSelectedDrive(): FileNode[] | undefined;
805
858
  /** Returns the folder nodes in the selected drive. */
806
859
  declare function useFolderNodesInSelectedDrive(): FolderNode[] | undefined;
807
860
  /** Returns the documents in the selected drive. */
808
- declare function useDocumentsInSelectedDrive(): PHDocument[] | undefined;
861
+ declare function useDocumentsInSelectedDrive(): PHDocument$1[] | undefined;
809
862
  /** Returns the document types supported by the selected drive, as defined by the document model documents present in the drive */
810
863
  declare function useDocumentTypesInSelectedDrive(): string[] | undefined;
811
864
  //#endregion
@@ -817,7 +870,7 @@ declare function useFileNodesInSelectedFolder(): FileNode[] | undefined;
817
870
  /** Returns the folder nodes in the selected folder. */
818
871
  declare function useFolderNodesInSelectedFolder(): FolderNode[] | undefined;
819
872
  /** Returns the documents in the selected folder. */
820
- declare function useDocumentsInSelectedFolder(): PHDocument[] | undefined;
873
+ declare function useDocumentsInSelectedFolder(): PHDocument$1[] | undefined;
821
874
  //#endregion
822
875
  //#region src/hooks/make-ph-event-functions.d.ts
823
876
  declare function makePHEventFunctions<TKey extends PHGlobalKey$1>(key: TKey): {
@@ -854,11 +907,6 @@ declare function useNodeActions(): {
854
907
  onRenameDriveNodes: (newName: string, nodeId: string) => Promise<void>;
855
908
  };
856
909
  //#endregion
857
- //#region src/hooks/package-discovery.d.ts
858
- declare const usePackageDiscoveryService: () => IPackageDiscoveryService | undefined;
859
- declare const setPackageDiscoveryService: (value: IPackageDiscoveryService | undefined) => void;
860
- declare const addPackageDiscoveryServiceEventHandler: () => void;
861
- //#endregion
862
910
  //#region src/hooks/node-by-id.d.ts
863
911
  /** Returns a node in the selected drive by id. */
864
912
  declare function useNodeById(id: string | null | undefined): Node | undefined;
@@ -869,6 +917,11 @@ declare function useNodePathById(id: string | null | undefined): Node[];
869
917
  /** Returns the path to the currently selected node in the selected drive. */
870
918
  declare function useSelectedNodePath(): Node[];
871
919
  //#endregion
920
+ //#region src/hooks/package-discovery.d.ts
921
+ declare const usePackageDiscoveryService: () => IPackageDiscoveryService | undefined;
922
+ declare const setPackageDiscoveryService: (value: IPackageDiscoveryService | undefined) => void;
923
+ declare const addPackageDiscoveryServiceEventHandler: () => void;
924
+ //#endregion
872
925
  //#region src/hooks/parent-folder.d.ts
873
926
  declare function useNodeParentFolderById(id: string | null | undefined): FolderNode | undefined;
874
927
  declare function useParentFolderForSelectedNode(): FolderNode | undefined;
@@ -889,16 +942,18 @@ declare function hideRevisionHistory(): void;
889
942
  /** Returns the selected document id */
890
943
  declare function useSelectedDocumentId(): string | undefined;
891
944
  /** Returns the selected document. */
892
- declare function useSelectedDocument(): readonly [PHDocument, DispatchFn<Action>];
945
+ declare function useSelectedDocument(): readonly [PHDocument$1, DispatchFn<Action>];
893
946
  /** Returns the selected document. */
894
- declare function useSelectedDocumentSafe(): UseDispatchResult<PHDocument, Action>;
947
+ declare function useSelectedDocumentSafe(): UseDispatchResult<PHDocument$1, Action>;
895
948
  /** Returns the selected document of a specific type, throws an error if the found document has a different type */
896
949
  declare function useSelectedDocumentOfType(documentType: null | undefined): never[];
897
- declare function useSelectedDocumentOfType<TDocument extends PHDocument, TAction extends Action>(documentType: string): [TDocument, DocumentDispatch$1<TAction>];
950
+ declare function useSelectedDocumentOfType<TDocument extends PHDocument$1, TAction extends Action>(documentType: string): [TDocument, DocumentDispatch$1<TAction>];
898
951
  //#endregion
899
952
  //#region src/hooks/selected-drive.d.ts
900
953
  /** Returns the selected drive id */
901
954
  declare const useSelectedDriveId: () => string | undefined;
955
+ /** Sets the selected drive id */
956
+ declare const setSelectedDriveId: (value: string | undefined) => void;
902
957
  /** Adds an event handler for the selected drive id */
903
958
  declare const addSelectedDriveIdEventHandler: () => void;
904
959
  /** Returns the selected drive */
@@ -952,6 +1007,23 @@ declare const setPHToast: (value: PHToastFn | undefined) => void;
952
1007
  /** Adds an event handler for the toast */
953
1008
  declare const addToastEventHandler: () => void;
954
1009
  //#endregion
1010
+ //#region src/hooks/use-drive-system-info.d.ts
1011
+ type DriveSystemInfoState = {
1012
+ status: "local";
1013
+ } | {
1014
+ status: "loading";
1015
+ } | {
1016
+ status: "error";
1017
+ message: string;
1018
+ } | {
1019
+ status: "ready";
1020
+ version: string;
1021
+ gitHash: string;
1022
+ host: string;
1023
+ };
1024
+ declare function deriveSystemUrl(channelUrl: string): string | null;
1025
+ declare function useDriveSystemInfo(drive: DocumentDriveDocument | undefined): DriveSystemInfoState;
1026
+ //#endregion
955
1027
  //#region src/hooks/use-get-switchboard-link.d.ts
956
1028
  /**
957
1029
  * Hook that returns a function to generate a document's switchboard URL.
@@ -964,7 +1036,7 @@ declare const addToastEventHandler: () => void;
964
1036
  * @param document - The document to create a switchboard URL generator for
965
1037
  * @returns An async function that returns the switchboard URL, or null if not applicable
966
1038
  */
967
- declare function useGetSwitchboardLink(document: PHDocument | undefined): (() => Promise<string>) | null;
1039
+ declare function useGetSwitchboardLink(document: PHDocument$1 | undefined): (() => Promise<string>) | null;
968
1040
  //#endregion
969
1041
  //#region src/types/upload.d.ts
970
1042
  type DocumentTypeIcon = "analytics-processor" | "relational-processor" | "codegen-processor" | "app" | "document-model" | "editor" | "package" | "subgraph";
@@ -1094,7 +1166,7 @@ type ConflictStrategy = "reject" | "rebase" | MergeHandler;
1094
1166
  /** Event emitted when the document changes. */
1095
1167
  type RemoteDocumentChangeEvent = {
1096
1168
  source: "action" | "pull";
1097
- document: PHDocument<PHBaseState>;
1169
+ document: PHDocument$1<PHBaseState>;
1098
1170
  };
1099
1171
  /** Listener for document change events. */
1100
1172
  type DocumentChangeListener = (event: RemoteDocumentChangeEvent) => void;
@@ -1126,7 +1198,7 @@ interface IRemoteController<TState extends PHBaseState = PHBaseState> {
1126
1198
  readonly header: PHDocumentHeader;
1127
1199
  readonly state: TState;
1128
1200
  readonly operations: DocumentOperations;
1129
- readonly document: PHDocument<TState>;
1201
+ readonly document: PHDocument$1<TState>;
1130
1202
  readonly status: SyncStatus;
1131
1203
  onChange(listener: DocumentChangeListener): () => void;
1132
1204
  push(): Promise<PushResult>;
@@ -1227,7 +1299,7 @@ declare class RemoteDocumentController<TController extends PHDocumentController<
1227
1299
  get header(): PHDocumentHeader;
1228
1300
  get state(): InferState<TController>;
1229
1301
  get operations(): DocumentOperations;
1230
- get document(): PHDocument<InferState<TController>>;
1302
+ get document(): PHDocument$1<InferState<TController>>;
1231
1303
  get status(): SyncStatus;
1232
1304
  /** Register a listener for document changes. Returns an unsubscribe function. */
1233
1305
  onChange(listener: DocumentChangeListener): () => void;
@@ -1241,7 +1313,7 @@ declare class RemoteDocumentController<TController extends PHDocumentController<
1241
1313
  /**
1242
1314
  * Pull an existing document from remote and create a controller for it.
1243
1315
  */
1244
- static pull<C extends PHDocumentController<any>>(ControllerClass: new (doc?: PHDocument<any>) => C, options: RemoteControllerOptions): Promise<RemoteDocumentControllerWith<C>>;
1316
+ static pull<C extends PHDocumentController<any>>(ControllerClass: new (doc?: PHDocument$1<any>) => C, options: RemoteControllerOptions): Promise<RemoteDocumentControllerWith<C>>;
1245
1317
  /**
1246
1318
  * Wrap an existing controller instance with remote capabilities.
1247
1319
  * Pending local actions on the inner controller are NOT tracked
@@ -1368,7 +1440,7 @@ declare function getSyncStatus(documentId: string, sharingType: SharingType): Pr
1368
1440
  declare function getSyncStatusSync(documentId: string, sharingType: SharingType): UISyncStatus | undefined;
1369
1441
  //#endregion
1370
1442
  //#region src/utils/export-document.d.ts
1371
- declare const exportDocument: (document?: PHDocument) => Promise<void | FileSystemFileHandle> | undefined;
1443
+ declare const exportDocument: (document?: PHDocument$1) => Promise<void | FileSystemFileHandle> | undefined;
1372
1444
  //#endregion
1373
1445
  //#region src/utils/get-revision-from-date.d.ts
1374
1446
  declare const getRevisionFromDate: (startDate?: Date, endDate?: Date, operations?: Operation[]) => number;
@@ -1386,8 +1458,8 @@ declare function getDriveIdBySlug(driveUrl: string, slug: string): Promise<strin
1386
1458
  declare function getSlugFromDriveUrl(driveUrl: string): string | undefined;
1387
1459
  declare function getSwitchboardGatewayUrlFromDriveUrl(driveUrl: string): string;
1388
1460
  declare function getDocumentGraphqlQuery(): string;
1389
- declare function buildDocumentSubgraphQuery(driveUrl: string, documentId: string, authToken?: string): string;
1390
- declare function buildDocumentSubgraphUrl(driveUrl: string, documentId: string, authToken?: string): string;
1461
+ declare function buildDocumentSubgraphQuery(identifier: string, authToken?: string): string;
1462
+ declare function buildDocumentSubgraphUrl(driveUrl: string, identifier: string, authToken?: string): string;
1391
1463
  //#endregion
1392
1464
  //#region src/utils/url.d.ts
1393
1465
  declare function resolveUrlPathname(path: string): string;
@@ -1425,7 +1497,7 @@ declare function getUserPermissions(): {
1425
1497
  };
1426
1498
  //#endregion
1427
1499
  //#region src/utils/validate-document.d.ts
1428
- declare const validateDocument: (document: PHDocument) => ValidationError[];
1500
+ declare const validateDocument: (document: PHDocument$1) => ValidationError[];
1429
1501
  //#endregion
1430
- export { ActionTracker, AddPHGlobalEventHandler, BaseStorage, BrowserLocalStorage, BrowserReactorClientModule, COMMON_PACKAGE_ID, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChannelScheme, ChevronDownIcon, ConflictError, type ConflictInfo, ConflictResolution, type ConflictStrategy, type ConnectionState, type ConnectionStateSnapshot, CopyIcon, CreateStoreOptions, DEFAULT_DRIVE_EDITOR_ID, DOMAIN_TYPE, type Database, DisconnectIcon, DiscoveryEvent, DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentDispatch, DocumentIntegrityService, DocumentTypeIcon, FileUploadProgress, FileUploadProgressCallback, FulfilledPromise, FullPHGlobalConfig, type GetDocumentResult, type GetDocumentWithOperationsResult, type GetOperationsResult, GqlRequestChannel, type IChannel, IDocumentCache, type IDocumentModelLoader, IPackageDiscoveryService, IPackageListerUnsubscribe, IPackageManager, IPackagesListener, type IProcessor, type IProcessorHostModule, type IQueue, type IRelationalDb, type IRemoteClient, type IRemoteController, ISSUER_TYPE, IStorage, InMemoryQueue, IntervalPollTimer, type Job, type JwtHandler, type KeyframeValidationIssue, LOADING, type MergeHandler, NodeKind, type OperationWithContext, PHAnalyticsGlobalConfig, PHAppConfig, PHAppConfigHooks, PHAppConfigKey, PHAppConfigSetters, PHCommonGlobalConfig, PHDocumentEditorConfig, PHDocumentEditorConfigHooks, PHDocumentEditorConfigKey, PHDocumentEditorConfigSetters, PHDrivesGlobalConfig, PHGlobal, PHGlobalConfig, PHGlobalConfigHooks, PHGlobalConfigHooksForKey, PHGlobalConfigKey, PHGlobalConfigSetters, PHGlobalConfigSettersForKey, PHGlobalEventHandlerAdders, PHGlobalKey, PHGlobalValue, PHModal, PHProcessorsGlobalConfig, PHRelationalProcessorsGlobalConfig, PHRenownGlobalConfig, PHSentryGlobalConfig, PHToastFn, PHToastOptions, PHToastType, PackageManagerInstallResult, type ParsedDriveUrl, PendingInstallation, type ProcessorApp, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, PromiseState, PromiseWithState, PropagationMode, PublishEvent, type PushResult, QueryCallbackReturnType, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, ReactorDefaultDrivesConfig, ReactorGraphQLClient, type RebuildResult, RefreshReactorDataConfig, RegistryClient, RejectedPromise, RelationalDbProcessor, RelationalDbWithLive, type Remote, RemoteClient, type RemoteControllerGraphQLClient, type RemoteControllerOptions, RemoteDocumentController, type RemoteDocumentControllerWith, type RemoteDocumentData, type RemoteOperation, type RemoteOperationResultPage, Renown, RenownAuth, RenownAuthButton, RenownAuthButtonProps, RenownAuthStatus, RenownInitOptions, RenownLoginButton, RenownLoginButtonProps, RenownLogo, RenownProps, RenownUserButton, RenownUserButtonMenuItem, RenownUserButtonProps, SetEvent, SetPHGlobalValue, type SignerConfig, type SnapshotValidationIssue, SpinnerIcon, type SyncOperation, SyncOperationStatus, type SyncStatus, TimelineBarItem, TimelineDividerItem, TimelineItem, type TrackedAction, UISyncStatus, UseDispatchResult, UseOnDropFile, UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFolder, addGaTrackingIdEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callGlobalSetterForKey, clearGlobal, closePHModal, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, dispatchActions, driveCollectionId, driveIdFromUrl, dropAllReactorStorage, exportDocument, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDriveIdBySlug, getDrives, getGlobal, getPackages, getPackagesByDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, hideRevisionHistory, initConnectCrypto, initRenownCrypto, isDocumentTypeSupported, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, loading, login, logout, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phGlobalConfigHooks, phGlobalConfigSetters, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveUrlPathname, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveSharingType, setDrives, setDrivesPreserveStrategy, setEnabledEditors, setFeatures, setFileUploadOperationsChunkSize, setGaTrackingId, setGlobal, setIsAddCloudDrivesEnabled, setIsAddDriveEnabled, setIsAddLocalDrivesEnabled, setIsAddPublicDrivesEnabled, setIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsEnabled, setIsAnalyticsExternalProcessorsEnabled, setIsCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, setIsDeleteLocalDrivesEnabled, setIsDeletePublicDrivesEnabled, setIsDiffAnalyticsEnabled, setIsDocumentModelSelectionSettingsEnabled, setIsDragAndDropEnabled, setIsDriveAnalyticsEnabled, setIsEditorDebugModeEnabled, setIsEditorReadModeEnabled, setIsExternalControlsEnabled, setIsExternalPackagesEnabled, setIsExternalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, setIsLocalDrivesEnabled, setIsPublicDrivesEnabled, setIsRelationalProcessorsEnabled, setIsSentryTracingEnabled, setLoading, setLocalDrivesEnabled, setLogLevel, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, sortNodesByName, truncateAllTables, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useBasePath, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDriveById, useDrives, useDrivesPreserveStrategy, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEnabledEditors, useFallbackEditorModule, useFeatures, useFileNodesInSelectedDrive, useFileNodesInSelectedFolder, useFileUploadOperationsChunkSize, useFolderById, useFolderNodesInSelectedDrive, useFolderNodesInSelectedFolder, useGaTrackingId, useGetDocument, useGetDocumentAsync, useGetDocuments, useGetSwitchboardLink, useIsAddCloudDrivesEnabled, useIsAddDriveEnabled, useIsAddLocalDrivesEnabled, useIsAddPublicDrivesEnabled, useIsAnalyticsDatabaseWorkerEnabled, useIsAnalyticsEnabled, useIsAnalyticsExternalProcessorsEnabled, useIsCloudDrivesEnabled, useIsDeleteCloudDrivesEnabled, useIsDeleteLocalDrivesEnabled, useIsDeletePublicDrivesEnabled, useIsDiffAnalyticsEnabled, useIsDocumentModelSelectionSettingsEnabled, useIsDragAndDropEnabled, useIsDriveAnalyticsEnabled, useIsEditorDebugModeEnabled, useIsEditorReadModeEnabled, useIsExternalControlsEnabled, useIsExternalPackagesEnabled, useIsExternalProcessorsEnabled, useIsExternalRelationalProcessorsEnabled, useIsLocalDrivesEnabled, useIsPublicDrivesEnabled, useIsRelationalProcessorsEnabled, useIsSentryTracingEnabled, useLoading, useLocalDrivesEnabled, useLogLevel, useLoginStatus, useModelRegistry, useNodeActions, useNodeById, useNodeParentFolderById, useNodePathById, useNodesInSelectedDrive, useNodesInSelectedDriveOrFolder, useNodesInSelectedFolder, useOnDropFile, usePGlite, usePHAppConfigByKey, usePHDocumentEditorConfigByKey, usePHGlobalConfigByKey, usePHModal, usePHToast, usePackageDiscoveryService, useParentFolderForSelectedNode, useReactorClient, useReactorClientModule, useRelationalDb, useRelationalQuery, useRelationalQueryOptions, useRenown, useRenownAuth, useRenownChainId, useRenownInit, useRenownNetworkId, useRenownUrl, useRequiresHardRefresh, useResetPHGlobalConfig, useRevisionHistoryVisible, useRouterBasename, useSelectedDocument, useSelectedDocumentId, useSelectedDocumentOfType, useSelectedDocumentSafe, useSelectedDrive, useSelectedDriveId, useSelectedDriveSafe, useSelectedFolder, useSelectedNode, useSelectedNodePath, useSelectedTimelineItem, useSelectedTimelineRevision, useSentryDsn, useSentryEnv, useSentryRelease, useSetDefaultPHGlobalConfig, useSetPHAppConfig, useSetPHDocumentEditorConfig, useSetPHGlobalConfig, useStudioMode, useSubgraphModules, useSupportedDocumentTypesInReactor, useSync, useSyncList, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument };
1502
+ export { ActionTracker, AddPHGlobalEventHandler, BaseStorage, BrowserLocalStorage, BrowserReactorClientModule, COMMON_PACKAGE_ID, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChannelScheme, ChevronDownIcon, ConflictError, type ConflictInfo, ConflictResolution, type ConflictStrategy, type ConnectionState, type ConnectionStateSnapshot, CopyIcon, CreateStoreOptions, DEFAULT_DRIVE_EDITOR_ID, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, type Database, DisconnectIcon, DiscoveryEvent, DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentDispatch, DocumentIntegrityService, DocumentTypeIcon, DriveSystemInfoState, FileUploadProgress, FileUploadProgressCallback, FulfilledPromise, FullPHGlobalConfig, type GetDocumentResult, type GetDocumentWithOperationsResult, type GetOperationsResult, GqlRequestChannel, GraphQLClientDocumentCache, GraphQLClientDocumentEvent, GraphQLClientDocumentsEvent, GraphQLClientWindowEvents, GraphQLDocumentEventOperationName, GraphQLDocumentEvents, GraphQLDocumentEventsOperationName, GraphQLDocumentsEvents, type IChannel, IDocumentCache, type IDocumentModelLoader, IPackageDiscoveryService, IPackageListerUnsubscribe, IPackageManager, IPackagesListener, type IProcessor, type IProcessorHostModule, type IQueue, type IRelationalDb, type IRemoteClient, type IRemoteController, ISSUER_TYPE, IStorage, InMemoryQueue, IntervalPollTimer, type Job, type JwtHandler, type KeyframeValidationIssue, LOADING, type MergeHandler, NodeKind, type OperationWithContext, PHAnalyticsGlobalConfig, PHAppConfig, PHAppConfigHooks, PHAppConfigKey, PHAppConfigSetters, PHCommonGlobalConfig, PHDocumentEditorConfig, PHDocumentEditorConfigHooks, PHDocumentEditorConfigKey, PHDocumentEditorConfigSetters, PHDrivesGlobalConfig, PHGlobal, PHGlobalConfig, PHGlobalConfigHooks, PHGlobalConfigHooksForKey, PHGlobalConfigKey, PHGlobalConfigSetters, PHGlobalConfigSettersForKey, PHGlobalEventHandlerAdders, PHGlobalKey, PHGlobalValue, PHModal, PHProcessorsGlobalConfig, PHRelationalProcessorsGlobalConfig, PHRenownGlobalConfig, PHSentryGlobalConfig, PHToastFn, PHToastOptions, PHToastType, PackageManagerInstallResult, type ParsedDriveUrl, PendingInstallation, type ProcessorApp, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, PromiseState, PromiseWithState, PropagationMode, PublishEvent, type PushResult, QueryCallbackReturnType, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, ReactorDefaultDrivesConfig, ReactorGraphQLClient, type RebuildResult, RefreshReactorDataConfig, RegistryClient, RejectedPromise, RelationalDbProcessor, RelationalDbWithLive, type Remote, RemoteClient, type RemoteControllerGraphQLClient, type RemoteControllerOptions, RemoteDocumentController, type RemoteDocumentControllerWith, type RemoteDocumentData, type RemoteOperation, type RemoteOperationResultPage, Renown, RenownAuth, RenownAuthButton, RenownAuthButtonProps, RenownAuthStatus, RenownInitOptions, RenownLoginButton, RenownLoginButtonProps, RenownLogo, RenownProps, RenownUserButton, RenownUserButtonMenuItem, RenownUserButtonProps, SetEvent, SetPHGlobalValue, type SignerConfig, type SnapshotValidationIssue, SpinnerIcon, type SyncOperation, SyncOperationStatus, type SyncStatus, TStateSchemaZodObject, TimelineBarItem, TimelineDividerItem, TimelineItem, type TrackedAction, UISyncStatus, UseDispatchResult, UseOnDropFile, UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFolder, addGaTrackingIdEventHandler, addGraphQLReactorClientEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, dispatchActions, driveCollectionId, driveIdFromUrl, dropAllReactorStorage, exportDocument, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDriveIdBySlug, getDrives, getGlobal, getPackages, getPackagesByDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, isDocumentTypeSupported, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, loading, login, logout, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveUrlPathname, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveSharingType, setDrives, setDrivesPreserveStrategy, setEnabledEditors, setFeatures, setFileUploadOperationsChunkSize, setGaTrackingId, setGlobal, setGraphQLReactorClient, setIsAddCloudDrivesEnabled, setIsAddDriveEnabled, setIsAddLocalDrivesEnabled, setIsAddPublicDrivesEnabled, setIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsEnabled, setIsAnalyticsExternalProcessorsEnabled, setIsCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, setIsDeleteLocalDrivesEnabled, setIsDeletePublicDrivesEnabled, setIsDiffAnalyticsEnabled, setIsDocumentModelSelectionSettingsEnabled, setIsDragAndDropEnabled, setIsDriveAnalyticsEnabled, setIsEditorDebugModeEnabled, setIsEditorReadModeEnabled, setIsExternalControlsEnabled, setIsExternalPackagesEnabled, setIsExternalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, setIsLocalDrivesEnabled, setIsPublicDrivesEnabled, setIsRelationalProcessorsEnabled, setIsSentryTracingEnabled, setLoading, setLocalDrivesEnabled, setLogLevel, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, sortNodesByName, truncateAllTables, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useBasePath, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEnabledEditors, useFallbackEditorModule, useFeatures, useFileNodesInSelectedDrive, useFileNodesInSelectedFolder, useFileUploadOperationsChunkSize, useFolderById, useFolderNodesInSelectedDrive, useFolderNodesInSelectedFolder, useGaTrackingId, useGetDocument, useGetDocumentAsync, useGetDocuments, useGetSwitchboardLink, useGraphQLReactorClient, useInitReactorGraphqlClient, useIsAddCloudDrivesEnabled, useIsAddDriveEnabled, useIsAddLocalDrivesEnabled, useIsAddPublicDrivesEnabled, useIsAnalyticsDatabaseWorkerEnabled, useIsAnalyticsEnabled, useIsAnalyticsExternalProcessorsEnabled, useIsCloudDrivesEnabled, useIsDeleteCloudDrivesEnabled, useIsDeleteLocalDrivesEnabled, useIsDeletePublicDrivesEnabled, useIsDiffAnalyticsEnabled, useIsDocumentModelSelectionSettingsEnabled, useIsDragAndDropEnabled, useIsDriveAnalyticsEnabled, useIsEditorDebugModeEnabled, useIsEditorReadModeEnabled, useIsExternalControlsEnabled, useIsExternalPackagesEnabled, useIsExternalProcessorsEnabled, useIsExternalRelationalProcessorsEnabled, useIsLocalDrivesEnabled, useIsPublicDrivesEnabled, useIsRelationalProcessorsEnabled, useIsSentryTracingEnabled, useLoading, useLocalDrivesEnabled, useLogLevel, useLoginStatus, useModelRegistry, useNodeActions, useNodeById, useNodeParentFolderById, useNodePathById, useNodesInSelectedDrive, useNodesInSelectedDriveOrFolder, useNodesInSelectedFolder, useOnDropFile, usePGlite, usePHAppConfigByKey, usePHDocumentEditorConfigByKey, usePHGlobalConfigByKey, usePHModal, usePHToast, usePackageDiscoveryService, useParentFolderForSelectedNode, useReactorClient, useReactorClientModule, useRelationalDb, useRelationalQuery, useRelationalQueryOptions, useRenown, useRenownAuth, useRenownChainId, useRenownInit, useRenownNetworkId, useRenownUrl, useRequiresHardRefresh, useResetPHGlobalConfig, useRevisionHistoryVisible, useRouterBasename, useSelectedDocument, useSelectedDocumentId, useSelectedDocumentOfType, useSelectedDocumentSafe, useSelectedDrive, useSelectedDriveId, useSelectedDriveSafe, useSelectedFolder, useSelectedNode, useSelectedNodePath, useSelectedTimelineItem, useSelectedTimelineRevision, useSentryDsn, useSentryEnv, useSentryRelease, useSetDefaultPHGlobalConfig, useSetPHAppConfig, useSetPHDocumentEditorConfig, useSetPHGlobalConfig, useStudioMode, useSubgraphModules, useSupportedDocumentTypesInReactor, useSync, useSyncList, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument };
1431
1503
  //# sourceMappingURL=index.d.ts.map