@powerhousedao/reactor-browser 6.0.0-dev.252 → 6.0.0-dev.254

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  import { CSSProperties, ReactNode } from "react";
2
2
  import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+ import * as _renown_sdk0 from "@renown/sdk";
3
4
  import { IRenown, LoginStatus, User } from "@renown/sdk";
4
5
 
5
6
  //#region src/renown/use-renown-auth.d.ts
@@ -146,12 +147,12 @@ declare function UserIcon({
146
147
  * Initialize ConnectCrypto
147
148
  * @returns ConnectCrypto instance
148
149
  */
149
- declare function initConnectCrypto(): Promise<any>;
150
+ declare function initConnectCrypto(): Promise<_renown_sdk0.RenownCrypto>;
150
151
  /**
151
152
  * Initialize RenownCrypto
152
153
  * @returns RenownCrypto instance
153
154
  */
154
- declare function initRenownCrypto(): Promise<any>;
155
+ declare function initRenownCrypto(): Promise<_renown_sdk0.RenownCrypto>;
155
156
  //#endregion
156
157
  //#region src/renown/constants.d.ts
157
158
  declare const RENOWN_URL = "https://www.renown.id";
@@ -339,4 +340,4 @@ declare function Renown({
339
340
  }: RenownProps): null;
340
341
  //#endregion
341
342
  export { logout as A, RenownUserButtonMenuItem as C, RenownAuthButton as D, RenownLoginButtonProps as E, RenownAuth as M, RenownAuthStatus as N, RenownAuthButtonProps as O, useRenownAuth as P, RenownUserButton as S, RenownLoginButton as T, CopyIcon as _, CREDENTIAL_SCHEMA_EIP712_TYPE as a, SpinnerIcon as b, DOMAIN_TYPE as c, RENOWN_NETWORK_ID as d, RENOWN_URL as f, ChevronDownIcon as g, initRenownCrypto as h, useRenownInit as i, openRenown as j, login as k, ISSUER_TYPE as l, initConnectCrypto as m, RenownProps as n, CREDENTIAL_SUBJECT_TYPE as o, VERIFIABLE_CREDENTIAL_EIP712_TYPE as p, RenownInitOptions as r, CREDENTIAL_TYPES as s, Renown as t, RENOWN_CHAIN_ID as u, DisconnectIcon as v, RenownUserButtonProps as w, UserIcon as x, RenownLogo as y };
342
- //# sourceMappingURL=index-0ZaJb3C2.d.ts.map
343
+ //# sourceMappingURL=index-DgwLcoI3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DgwLcoI3.d.ts","names":[],"sources":["../src/renown/use-renown-auth.ts","../src/renown/utils.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/use-renown-init.ts","../src/renown/renown-init.tsx"],"mappings":"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"}
package/dist/index.d.ts CHANGED
@@ -1,18 +1,21 @@
1
- import { a as getAnalyticsStore, i as createAnalyticsStore, n as IPowerhouseAnalytics, r as CreateStoreOptions } from "./types-BahFxPxn.js";
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
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-Bmw8cTjQ.js";
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-0ZaJb3C2.js";
5
- import { DocumentModelModule as DocumentModelModule$1, EditorModule, PHDocument as PHDocument$1, PHDocumentController } from "document-model";
6
- import { Action, DocumentAction, DocumentModelModule as DocumentModelModule$2, DocumentModelPHState, DocumentOperations, ISigner, Operation, PHBaseState, PHDocument as PHDocument$2, PHDocumentHeader, SubgraphModule } from "@powerhousedao/shared/document-model";
7
- import { DocumentDriveAction as DocumentDriveAction$1, DocumentDriveDocument, DriveInput, FileNode, FolderNode, Node as Node$1, SharingType } from "@powerhousedao/shared/document-drive";
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
+ import * as document_model0 from "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
+ import * as _powerhousedao_shared_document_drive0 from "@powerhousedao/shared/document-drive";
9
+ import { DocumentDriveAction, DocumentDriveDocument, DriveInput, FileNode, FolderNode, Node, SharingType } from "@powerhousedao/shared/document-drive";
10
+ import * as _powerhousedao_reactor0 from "@powerhousedao/reactor";
8
11
  import { ChannelScheme, ConnectionState, ConnectionStateSnapshot, ConnectionStateSnapshot as ConnectionStateSnapshot$1, Database, Database as Database$1, DocumentChangeType, DocumentIntegrityService, GqlRequestChannel, IChannel, IDocumentModelLoader, IDocumentModelLoader as IDocumentModelLoader$1, IDocumentModelRegistry, IProcessor, IProcessorHostModule, IQueue, IReactorClient, IRelationalDb, ISyncManager, InMemoryQueue, IntervalPollTimer, Job, JwtHandler, KeyframeValidationIssue, OperationWithContext, ParsedDriveUrl, PollBehavior, PollBehavior as PollBehavior$1, ProcessorApp, ProcessorFactory, ProcessorFactoryBuilder, ProcessorFilter, ProcessorRecord, REACTOR_SCHEMA, ReactorBuilder, ReactorClientBuilder, ReactorClientModule, RebuildResult, RelationalDbProcessor, Remote, SignerConfig, SnapshotValidationIssue, SyncOperation, SyncOperationStatus, ValidationResult, driveCollectionId, driveIdFromUrl, parseDriveUrl } from "@powerhousedao/reactor";
9
12
  import { DragEventHandler, ReactNode } from "react";
10
13
  import { Kysely } from "kysely";
11
14
  import { IRenown, LoginStatus, User } from "@renown/sdk";
12
15
  import * as _powerhousedao_reactor_browser0 from "@powerhousedao/reactor-browser";
13
16
  import { AddPHGlobalEventHandler as AddPHGlobalEventHandler$1, BrowserReactorClientModule as BrowserReactorClientModule$1, DocumentDispatch as DocumentDispatch$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, SetPHGlobalValue as SetPHGlobalValue$1, UsePHGlobalValue as UsePHGlobalValue$1 } from "@powerhousedao/reactor-browser";
14
- import { DocumentModelLib as DocumentModelLib$1, Node as Node$2, RegistryPackageSource } from "@powerhousedao/shared";
15
- import { PackageInfo as PackageInfo$1 } from "@powerhousedao/shared/registry";
17
+ import { DocumentModelLib as DocumentModelLib$1, Node as Node$1, RegistryPackageSource } from "@powerhousedao/shared";
18
+ import { PackageInfo } from "@powerhousedao/shared/registry";
16
19
 
17
20
  //#region src/actions/dispatch.d.ts
18
21
  /**
@@ -22,7 +25,7 @@ import { PackageInfo as PackageInfo$1 } from "@powerhousedao/shared/registry";
22
25
  * @param onErrors - Callback invoked with any errors that occurred during action execution.
23
26
  * @returns The updated document, or undefined if the dispatch failed.
24
27
  */
25
- declare function dispatchActions<TDocument = PHDocument$2, TAction = Action>(actionOrActions: TAction[] | TAction | undefined, document: TDocument | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$2) => void): Promise<PHDocument$2 | 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>;
26
29
  /**
27
30
  * Dispatches actions to a document.
28
31
  * @param actionOrActions - The action or actions to dispatch.
@@ -30,38 +33,38 @@ declare function dispatchActions<TDocument = PHDocument$2, TAction = Action>(act
30
33
  * @param onErrors - Callback invoked with any errors that occurred during action execution.
31
34
  * @returns The updated document, or undefined if the dispatch failed.
32
35
  */
33
- declare function dispatchActions(actionOrActions: Action[] | Action | undefined, documentId: string, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$2) => void): Promise<PHDocument$2 | undefined>;
36
+ declare function dispatchActions(actionOrActions: Action[] | Action | undefined, documentId: string, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void): Promise<PHDocument$1 | undefined>;
34
37
  //#endregion
35
38
  //#region src/actions/document.d.ts
36
- declare function exportFile(document: PHDocument$2, suggestedName?: string): Promise<void | FileSystemFileHandle>;
37
- declare function addDocument(driveId: string, name: string, documentType: string, parentFolder?: string, document?: PHDocument$2, id?: string, preferredEditor?: string): Promise<{
38
- id: any;
39
- name: any;
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
+ id: string;
42
+ name: string;
40
43
  documentType: string;
41
44
  parentFolder: string | null;
42
45
  kind: "file";
43
46
  }>;
44
- declare function addFolder(driveId: string, name: string, parentFolder?: string): Promise<any>;
47
+ declare function addFolder(driveId: string, name: string, parentFolder?: string): Promise<Node>;
45
48
  declare function deleteNode(driveId: string, nodeId: string): Promise<void>;
46
- declare function renameDriveNode(driveId: string, nodeId: string, name: string): Promise<Node$1 | undefined>;
49
+ declare function renameDriveNode(driveId: string, nodeId: string, name: string): Promise<Node | undefined>;
47
50
  //#endregion
48
51
  //#region src/actions/drive.d.ts
49
52
  type AddRemoteDriveOptions = {
50
53
  pollBehavior?: PollBehavior$1;
51
54
  };
52
- declare function addDrive(input: DriveInput, preferredEditor?: string): Promise<any>;
55
+ declare function addDrive(input: DriveInput, preferredEditor?: string): Promise<DocumentDriveDocument>;
53
56
  declare function addRemoteDrive(url: string, driveId?: string, options?: AddRemoteDriveOptions): Promise<string>;
54
57
  declare function deleteDrive(driveId: string): Promise<void>;
55
- declare function renameDrive(driveId: string, name: string): Promise<PHDocument$2 | undefined>;
56
- declare function setDriveAvailableOffline(driveId: string, availableOffline: boolean): Promise<PHDocument$2 | undefined>;
57
- declare function setDriveSharingType(driveId: string, sharingType: SharingType): Promise<PHDocument$2 | undefined>;
58
+ declare function renameDrive(driveId: string, name: string): Promise<PHDocument$1 | undefined>;
59
+ declare function setDriveAvailableOffline(driveId: string, availableOffline: boolean): Promise<PHDocument$1 | undefined>;
60
+ declare function setDriveSharingType(driveId: string, sharingType: SharingType): Promise<PHDocument$1 | undefined>;
58
61
  //#endregion
59
62
  //#region src/constants.d.ts
60
63
  declare const DEFAULT_DRIVE_EDITOR_ID = "powerhouse/generic-drive-explorer";
61
64
  declare const COMMON_PACKAGE_ID = "powerhouse/common";
62
65
  //#endregion
63
66
  //#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$2) => void) => void;
67
+ type DocumentDispatch<TAction extends Action> = (actionOrActions: TAction | TAction[] | DocumentAction | DocumentAction[] | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void) => void;
65
68
  type PromiseWithState<T> = Promise<T> & PromiseState<T>;
66
69
  type FulfilledPromise<T> = Promise<T> & {
67
70
  status: "fulfilled";
@@ -81,8 +84,8 @@ type PromiseState<T> = {
81
84
  reason: unknown;
82
85
  };
83
86
  interface IDocumentCache {
84
- get(id: string, refetch?: boolean): Promise<PHDocument$2>;
85
- getBatch(ids: string[], refetch?: boolean): Promise<PHDocument$2[]>;
87
+ get(id: string, refetch?: boolean): Promise<PHDocument$1>;
88
+ getBatch(ids: string[], refetch?: boolean): Promise<PHDocument$1[]>;
86
89
  subscribe(id: string | string[], callback: () => void): () => void;
87
90
  }
88
91
  //#endregion
@@ -106,8 +109,8 @@ declare class DocumentCache implements IDocumentCache {
106
109
  private handleDocumentDeleted;
107
110
  private handleDocumentUpdated;
108
111
  private invalidateBatchesContaining;
109
- get(id: string, refetch?: boolean): Promise<PHDocument$2>;
110
- getBatch(ids: string[]): Promise<PHDocument$2[]>;
112
+ get(id: string, refetch?: boolean): Promise<PHDocument$1>;
113
+ getBatch(ids: string[]): Promise<PHDocument$1[]>;
111
114
  subscribe(id: string | string[], callback: () => void): () => void;
112
115
  /**
113
116
  * Disposes of the cache and unsubscribes from document change events.
@@ -116,8 +119,8 @@ declare class DocumentCache implements IDocumentCache {
116
119
  }
117
120
  //#endregion
118
121
  //#region src/document-model.d.ts
119
- declare const baseDocumentModelsMap: Record<string, DocumentModelModule$2<DocumentModelPHState>>;
120
- declare const baseDocumentModels: DocumentModelModule$2<DocumentModelPHState>[];
122
+ declare const baseDocumentModelsMap: Record<string, DocumentModelModule$1<DocumentModelPHState>>;
123
+ declare const baseDocumentModels: DocumentModelModule$1<DocumentModelPHState>[];
121
124
  //#endregion
122
125
  //#region src/global/types.d.ts
123
126
  interface PGliteState {
@@ -143,13 +146,13 @@ declare function clearGlobal(namespace: keyof PowerhouseGlobal): void;
143
146
  //#region src/graphql/adapters.d.ts
144
147
  type QueryDocumentResult = NonNullable<GetDocumentWithOperationsQuery["document"]>["document"];
145
148
  type FindDocumentsItems = NonNullable<FindDocumentsQuery["findDocuments"]>["items"];
146
- declare function phDocumentFromQuery<TDocumentSchema extends TStateSchemaZodObject>(document: QueryDocumentResult, documentSchema?: TDocumentSchema): PHDocument$1;
147
- declare function phDocumentsFromQuery<TDocumentSchema extends TStateSchemaZodObject>(items: FindDocumentsItems, documentSchema?: TDocumentSchema): any;
149
+ declare function phDocumentFromQuery<TDocumentSchema extends TStateSchemaZodObject>(document: QueryDocumentResult, documentSchema?: TDocumentSchema): PHDocument;
150
+ declare function phDocumentsFromQuery<TDocumentSchema extends TStateSchemaZodObject>(items: FindDocumentsItems, documentSchema?: TDocumentSchema): PHDocument[];
148
151
  declare function identifierFromMutateDocumentOperationVariables(variables: unknown): string;
149
152
  //#endregion
150
153
  //#region src/graphql/fetchers.d.ts
151
- declare function reactorGraphqlFetchDocument<TDocumentSchema extends TStateSchemaZodObject>(identifier: string, documentSchema?: TDocumentSchema): Promise<any>;
152
- declare function reactorGraphqlBatchFetchDocuments(identifiers: readonly string[]): Promise<any>;
154
+ declare function reactorGraphqlFetchDocument<TDocumentSchema extends TStateSchemaZodObject>(identifier: string, documentSchema?: TDocumentSchema): Promise<document_model0.PHDocument | undefined>;
155
+ declare function reactorGraphqlBatchFetchDocuments(identifiers: readonly string[]): Promise<(document_model0.PHDocument | undefined)[]>;
153
156
  //#endregion
154
157
  //#region src/graphql/graphql-client-document-cache.d.ts
155
158
  declare class GraphQLClientDocumentCache implements IDocumentCache {
@@ -158,8 +161,8 @@ declare class GraphQLClientDocumentCache implements IDocumentCache {
158
161
  private batchPromises;
159
162
  private listeners;
160
163
  constructor();
161
- get(id: string, refetch?: boolean): Promise<PHDocument$1>;
162
- getBatch(ids: string[]): Promise<PHDocument$1[]>;
164
+ get(id: string, refetch?: boolean): Promise<PHDocument>;
165
+ getBatch(ids: string[]): Promise<PHDocument[]>;
163
166
  private invalidateBatchesContaining;
164
167
  subscribe(id: string | string[], callback: () => void): () => void;
165
168
  private notify;
@@ -169,7 +172,7 @@ declare class GraphQLClientDocumentCache implements IDocumentCache {
169
172
  }
170
173
  //#endregion
171
174
  //#region src/graphql/mutators.d.ts
172
- declare function reactorGraphqlCreateDocument<TDocument extends PHDocument$1>(document: TDocument, parentIdentifier?: "powerhouse"): Promise<CreateDocumentMutation>;
175
+ declare function reactorGraphqlCreateDocument<TDocument extends PHDocument>(document: TDocument, parentIdentifier?: "powerhouse"): Promise<CreateDocumentMutation>;
173
176
  declare function reactorGraphqlDeleteDocument(identifier: string): Promise<DeleteDocumentMutation>;
174
177
  declare function reactorGraphqlDeleteDocuments(identifiers: string[]): Promise<DeleteDocumentsMutation>;
175
178
  declare function reactorGraphqlMutateDocument(documentIdentifier: string, ...actions: ReadonlyArray<Scalars["JSONObject"]["input"]>): Promise<MutateDocumentMutation>;
@@ -188,11 +191,11 @@ declare function addPHEventHandlers(): void;
188
191
  declare function callEventHandlerRegisterFunctions(registerFunctions: Record<string, () => void>): void;
189
192
  //#endregion
190
193
  //#region src/hooks/allowed-document-model-modules.d.ts
191
- declare function useAllowedDocumentModelModules(): DocumentModelModule[] | undefined;
194
+ declare function useAllowedDocumentModelModules(): document_model0.DocumentModelModule[] | undefined;
192
195
  //#endregion
193
196
  //#region src/hooks/child-nodes.d.ts
194
197
  /** Returns the child nodes for the selected drive or folder. */
195
- declare function useNodesInSelectedDriveOrFolder(): Node$1[];
198
+ declare function useNodesInSelectedDriveOrFolder(): Node[];
196
199
  //#endregion
197
200
  //#region src/hooks/config/connect.d.ts
198
201
  declare const useRouterBasename: () => string | undefined, setRouterBasename: (value: string | undefined) => void, addRouterBasenameEventHandler: () => void;
@@ -546,7 +549,7 @@ type DiscoveryEvent = {
546
549
  };
547
550
  type DiscoveryEventListener = (event: DiscoveryEvent) => void;
548
551
  interface IPackageDiscoveryService {
549
- load(documentType: string): Promise<DocumentModelModule$2<any>>;
552
+ load(documentType: string): Promise<DocumentModelModule$1<any>>;
550
553
  getPendingInstallations(): PendingInstallation[];
551
554
  subscribePending(listener: () => void): () => void;
552
555
  getFailedInstallations(): FailedInstallation[];
@@ -692,7 +695,7 @@ declare const addDocumentCacheEventHandler: () => void;
692
695
  * @param id - The document ID to retrieve, or null/undefined to skip retrieval
693
696
  * @returns The document if found, or undefined if id is null/undefined
694
697
  */
695
- declare function useDocument(id: string | null | undefined): any;
698
+ declare function useDocument(id: string | null | undefined): PHDocument$1 | undefined;
696
699
  /**
697
700
  * Retrieves a document from the reactor and subscribes to changes without
698
701
  * suspending or throwing. Use this when the ID might be stale (e.g., a
@@ -717,19 +720,19 @@ declare function useDocumentSafe(id: string | null | undefined): {
717
720
  readonly data: undefined;
718
721
  readonly reload: undefined;
719
722
  } | {
720
- readonly reload: () => Promise<PHDocument>;
723
+ readonly reload: () => Promise<PHDocument$1>;
721
724
  readonly status: "pending";
722
725
  readonly isPending: true;
723
726
  readonly error: undefined;
724
727
  readonly data: undefined;
725
728
  } | {
726
- readonly reload: () => Promise<PHDocument>;
729
+ readonly reload: () => Promise<PHDocument$1>;
727
730
  readonly status: "success";
728
731
  readonly isPending: false;
729
732
  readonly error: undefined;
730
- readonly data: PHDocument;
733
+ readonly data: PHDocument$1;
731
734
  } | {
732
- readonly reload: () => Promise<PHDocument>;
735
+ readonly reload: () => Promise<PHDocument$1>;
733
736
  readonly status: "error";
734
737
  readonly isPending: false;
735
738
  readonly error: unknown;
@@ -745,19 +748,19 @@ declare function useDocumentSafe(id: string | null | undefined): {
745
748
  * @param ids - Array of document IDs to retrieve, or null/undefined to skip retrieval
746
749
  * @returns An array of documents if found, or empty array if ids is null/undefined
747
750
  */
748
- declare function useDocuments(ids: string[] | null | undefined): PHDocument[];
751
+ declare function useDocuments(ids: string[] | null | undefined): PHDocument$1[];
749
752
  /**
750
753
  * Returns a function to retrieve a document from the cache.
751
754
  * The returned function fetches and returns a document by ID.
752
755
  * @returns A function that takes a document ID and returns a Promise of the document
753
756
  */
754
- declare function useGetDocument(): (id: string) => Promise<PHDocument>;
757
+ declare function useGetDocument(): (id: string) => Promise<PHDocument$1>;
755
758
  /**
756
759
  * Returns a function to retrieve multiple documents from the cache.
757
760
  * The returned function fetches and returns documents by their IDs.
758
761
  * @returns A function that takes an array of document IDs and returns a Promise of the documents
759
762
  */
760
- declare function useGetDocuments(): (ids: string[]) => Promise<PHDocument[]>;
763
+ declare function useGetDocuments(): (ids: string[]) => Promise<PHDocument$1[]>;
761
764
  /**
762
765
  * Retrieves a document from the reactor without suspending rendering.
763
766
  * Returns the current state of the document loading operation.
@@ -776,19 +779,19 @@ declare function useGetDocumentAsync(id: string | null | undefined): {
776
779
  readonly error: undefined;
777
780
  readonly reload: undefined;
778
781
  } | {
779
- readonly reload: () => Promise<PHDocument>;
782
+ readonly reload: () => Promise<PHDocument$1>;
780
783
  readonly status: "pending";
781
784
  readonly isPending: true;
782
785
  readonly error: undefined;
783
786
  readonly data: undefined;
784
787
  } | {
785
- readonly reload: () => Promise<PHDocument>;
788
+ readonly reload: () => Promise<PHDocument$1>;
786
789
  readonly status: "success";
787
790
  readonly isPending: false;
788
791
  readonly error: undefined;
789
- readonly data: PHDocument;
792
+ readonly data: PHDocument$1;
790
793
  } | {
791
- readonly reload: () => Promise<PHDocument>;
794
+ readonly reload: () => Promise<PHDocument$1>;
792
795
  readonly status: "error";
793
796
  readonly isPending: false;
794
797
  readonly error: unknown;
@@ -821,7 +824,7 @@ declare const setReactorClient: SetPHGlobalValue$1<IReactorClient>;
821
824
  /** Adds an event handler for the reactor client */
822
825
  declare const addReactorClientEventHandler: AddPHGlobalEventHandler$1;
823
826
  declare const useSync: () => ISyncManager | undefined;
824
- declare const useSyncList: () => any;
827
+ declare const useSyncList: () => _powerhousedao_reactor0.Remote[];
825
828
  declare const useModelRegistry: () => IDocumentModelRegistry | undefined;
826
829
  declare const useDatabase: () => Kysely<Database$1> | undefined;
827
830
  declare const usePGlite: () => PGlite | undefined;
@@ -845,7 +848,7 @@ declare const useRenown: () => IRenown | LOADING | undefined;
845
848
  /** Sets the renown instance */
846
849
  declare const setRenown: (value: IRenown | LOADING | undefined) => void;
847
850
  /** Returns the DID from the renown instance */
848
- declare function useDid(): any;
851
+ declare function useDid(): string | undefined;
849
852
  /** Returns the current user from the renown instance, subscribing to user events */
850
853
  declare function useUser(): User | undefined;
851
854
  /** Returns the login status, subscribing to renown status events */
@@ -858,23 +861,23 @@ declare function useLoginStatus(): LoginStatus | "loading" | undefined;
858
861
  * @param document - The document to dispatch actions to.
859
862
  * @returns A tuple containing the document and a dispatch function.
860
863
  */
861
- type DispatchFn<TAction> = (actionOrActions: TAction[] | TAction | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$2) => void) => void;
864
+ type DispatchFn<TAction> = (actionOrActions: TAction[] | TAction | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void) => void;
862
865
  type UseDispatchResult<TDocument, TAction> = readonly [TDocument | undefined, DispatchFn<TAction>];
863
- declare function useDispatch<TDocument = PHDocument$2, TAction = Action>(document: TDocument | undefined): UseDispatchResult<TDocument, TAction>;
866
+ declare function useDispatch<TDocument = PHDocument$1, TAction = Action>(document: TDocument | undefined): UseDispatchResult<TDocument, TAction>;
864
867
  //#endregion
865
868
  //#region src/hooks/document-by-id.d.ts
866
869
  /** Returns a document by id. */
867
- declare function useDocumentById(id: string | null | undefined): UseDispatchResult<PHDocument$2, Action>;
870
+ declare function useDocumentById(id: string | null | undefined): UseDispatchResult<PHDocument$1, Action>;
868
871
  /** Returns documents by ids. */
869
- declare function useDocumentsByIds(ids: string[] | null | undefined): PHDocument$2[];
872
+ declare function useDocumentsByIds(ids: string[] | null | undefined): PHDocument$1[];
870
873
  //#endregion
871
874
  //#region src/hooks/document-model-modules.d.ts
872
- declare function useDocumentModelModules(): DocumentModelModule$1[] | undefined;
873
- declare function useDocumentModelModuleById(id: string | null | undefined): DocumentModelModule$1 | undefined;
875
+ declare function useDocumentModelModules(): DocumentModelModule[] | undefined;
876
+ declare function useDocumentModelModuleById(id: string | null | undefined): DocumentModelModule | undefined;
874
877
  //#endregion
875
878
  //#region src/hooks/document-of-type.d.ts
876
879
  /** Returns a document of a specific type, throws an error if the found document has a different type */
877
- declare function useDocumentOfType<TDocument extends PHDocument$2, TAction extends Action>(documentId: string | null | undefined, documentType: string | null | undefined): never[] | [TDocument, DocumentDispatch$1<TAction>];
880
+ declare function useDocumentOfType<TDocument extends PHDocument$1, TAction extends Action>(documentId: string | null | undefined, documentType: string | null | undefined): never[] | [TDocument, DocumentDispatch$1<TAction>];
878
881
  //#endregion
879
882
  //#region src/hooks/document-operations.d.ts
880
883
  type InternalState = {
@@ -901,10 +904,10 @@ declare function useDocumentOperations(documentId: string | null | undefined): D
901
904
  * If present, uses the `allowedDocumentTypes` config value.
902
905
  * Otherwise, uses the supported document types from the reactor.
903
906
  */
904
- declare function useDocumentTypes(): any[] | undefined;
907
+ declare function useDocumentTypes(): string[] | undefined;
905
908
  //#endregion
906
909
  //#region src/hooks/file-drag-and-drop.d.ts
907
- declare function useDropFile(handleAddFile: (file: File, parent: Node$2 | undefined) => Promise<void>): {
910
+ declare function useDropFile(handleAddFile: (file: File, parent: Node$1 | undefined) => Promise<void>): {
908
911
  onDragEnter: DragEventHandler;
909
912
  onDragOver: DragEventHandler;
910
913
  onDragLeave: DragEventHandler;
@@ -916,7 +919,7 @@ declare function useDropFile(handleAddFile: (file: File, parent: Node$2 | undefi
916
919
  declare function useDownloadDocument(id: string | undefined): () => void;
917
920
  //#endregion
918
921
  //#region src/hooks/drive-by-id.d.ts
919
- declare function useDriveById(driveId: string | undefined | null): [DocumentDriveDocument, DocumentDispatch<DocumentDriveAction$1>];
922
+ declare function useDriveById(driveId: string | undefined | null): [DocumentDriveDocument, DocumentDispatch<DocumentDriveAction>];
920
923
  //#endregion
921
924
  //#region src/hooks/editor-modules.d.ts
922
925
  declare function useEditorModules(): EditorModule[] | undefined;
@@ -945,25 +948,25 @@ declare function useInitReactorGraphqlClient(switchboardUrl?: "http://localhost:
945
948
  //#endregion
946
949
  //#region src/hooks/items-in-selected-drive.d.ts
947
950
  /** Returns the nodes in the selected drive. */
948
- declare function useNodesInSelectedDrive(): any;
951
+ declare function useNodesInSelectedDrive(): _powerhousedao_shared_document_drive0.Node[] | undefined;
949
952
  /** Returns the file nodes in the selected drive. */
950
953
  declare function useFileNodesInSelectedDrive(): FileNode[] | undefined;
951
954
  /** Returns the folder nodes in the selected drive. */
952
955
  declare function useFolderNodesInSelectedDrive(): FolderNode[] | undefined;
953
956
  /** Returns the documents in the selected drive. */
954
- declare function useDocumentsInSelectedDrive(): PHDocument$2[] | undefined;
957
+ declare function useDocumentsInSelectedDrive(): PHDocument$1[] | undefined;
955
958
  /** Returns the document types supported by the selected drive, as defined by the document model documents present in the drive */
956
- declare function useDocumentTypesInSelectedDrive(): any[] | undefined;
959
+ declare function useDocumentTypesInSelectedDrive(): string[] | undefined;
957
960
  //#endregion
958
961
  //#region src/hooks/items-in-selected-folder.d.ts
959
962
  /** Returns the nodes in the selected folder. */
960
- declare function useNodesInSelectedFolder(): Node$1[] | undefined;
963
+ declare function useNodesInSelectedFolder(): Node[] | undefined;
961
964
  /** Returns the file nodes in the selected folder. */
962
965
  declare function useFileNodesInSelectedFolder(): FileNode[] | undefined;
963
966
  /** Returns the folder nodes in the selected folder. */
964
967
  declare function useFolderNodesInSelectedFolder(): FolderNode[] | undefined;
965
968
  /** Returns the documents in the selected folder. */
966
- declare function useDocumentsInSelectedFolder(): PHDocument$2[] | undefined;
969
+ declare function useDocumentsInSelectedFolder(): PHDocument$1[] | undefined;
967
970
  //#endregion
968
971
  //#region src/hooks/make-ph-event-functions.d.ts
969
972
  declare function makePHEventFunctions<TKey extends PHGlobalKey$1>(key: TKey): {
@@ -986,23 +989,23 @@ declare function closePHModal(): void;
986
989
  /** Shows the create document modal */
987
990
  declare function showCreateDocumentModal(documentType: string): void;
988
991
  /** Shows the delete node modal */
989
- declare function showDeleteNodeModal(nodeOrId: Node$1 | string): void;
992
+ declare function showDeleteNodeModal(nodeOrId: Node | string): void;
990
993
  //#endregion
991
994
  //#region src/hooks/node-actions.d.ts
992
995
  declare function useNodeActions(): {
993
- onAddFile: (file: File, parent: Node$1 | undefined) => Promise<void>;
994
- onAddFolder: (name: string, parent: Node$1 | undefined) => Promise<any>;
995
- onRenameNode: (newName: string, node: Node$1) => Promise<Node$1 | undefined>;
996
- onCopyNode: (src: Node$1, target: Node$1 | undefined) => Promise<void>;
997
- onMoveNode: (src: Node$1, target: Node$1 | undefined) => Promise<void>;
998
- onDuplicateNode: (src: Node$1) => Promise<void>;
996
+ onAddFile: (file: File, parent: Node | undefined) => Promise<void>;
997
+ onAddFolder: (name: string, parent: Node | undefined) => Promise<_powerhousedao_shared_document_drive0.FolderNode | undefined>;
998
+ onRenameNode: (newName: string, node: Node) => Promise<Node | undefined>;
999
+ onCopyNode: (src: Node, target: Node | undefined) => Promise<void>;
1000
+ onMoveNode: (src: Node, target: Node | undefined) => Promise<void>;
1001
+ onDuplicateNode: (src: Node) => Promise<void>;
999
1002
  onAddAndSelectNewFolder: (name: string) => Promise<void>;
1000
1003
  onRenameDriveNodes: (newName: string, nodeId: string) => Promise<void>;
1001
1004
  };
1002
1005
  //#endregion
1003
1006
  //#region src/hooks/node-by-id.d.ts
1004
1007
  /** Returns a node in the selected drive by id. */
1005
- declare function useNodeById(id: string | null | undefined): Node$1 | undefined;
1008
+ declare function useNodeById(id: string | null | undefined): Node | undefined;
1006
1009
  //#endregion
1007
1010
  //#region src/hooks/node-path.d.ts
1008
1011
  /** Returns the path to a node in the selected drive */
@@ -1017,7 +1020,7 @@ declare const addPackageDiscoveryServiceEventHandler: () => void;
1017
1020
  //#endregion
1018
1021
  //#region src/hooks/parent-folder.d.ts
1019
1022
  declare function useNodeParentFolderById(id: string | null | undefined): FolderNode | undefined;
1020
- declare function useParentFolderForSelectedNode(): any;
1023
+ declare function useParentFolderForSelectedNode(): FolderNode | undefined;
1021
1024
  //#endregion
1022
1025
  //#region src/hooks/revision-history.d.ts
1023
1026
  /** Returns whether revision history is visible */
@@ -1035,12 +1038,12 @@ declare function hideRevisionHistory(): void;
1035
1038
  /** Returns the selected document id */
1036
1039
  declare function useSelectedDocumentId(): string | undefined;
1037
1040
  /** Returns the selected document. */
1038
- declare function useSelectedDocument(): readonly [PHDocument$2, DispatchFn<Action>];
1041
+ declare function useSelectedDocument(): readonly [PHDocument$1, DispatchFn<Action>];
1039
1042
  /** Returns the selected document. */
1040
- declare function useSelectedDocumentSafe(): UseDispatchResult<PHDocument$2, Action>;
1043
+ declare function useSelectedDocumentSafe(): UseDispatchResult<PHDocument$1, Action>;
1041
1044
  /** Returns the selected document of a specific type, throws an error if the found document has a different type */
1042
1045
  declare function useSelectedDocumentOfType(documentType: null | undefined): never[];
1043
- declare function useSelectedDocumentOfType<TDocument extends PHDocument$2, TAction extends Action>(documentType: string): [TDocument, DocumentDispatch$1<TAction>];
1046
+ declare function useSelectedDocumentOfType<TDocument extends PHDocument$1, TAction extends Action>(documentType: string): [TDocument, DocumentDispatch$1<TAction>];
1044
1047
  //#endregion
1045
1048
  //#region src/hooks/selected-drive.d.ts
1046
1049
  /** Returns the selected drive id */
@@ -1050,7 +1053,7 @@ declare const setSelectedDriveId: (value: string | undefined) => void;
1050
1053
  /** Adds an event handler for the selected drive id */
1051
1054
  declare const addSelectedDriveIdEventHandler: () => void;
1052
1055
  /** Returns the selected drive */
1053
- declare function useSelectedDrive(): readonly [undefined, undefined] | [DocumentDriveDocument, DocumentDispatch$1<DocumentDriveAction>];
1056
+ declare function useSelectedDrive(): [DocumentDriveDocument, DocumentDispatch$1<DocumentDriveAction>];
1054
1057
  /** Returns the selected drive, or undefined if no drive is selected */
1055
1058
  declare function useSelectedDriveSafe(): readonly [undefined, undefined] | [DocumentDriveDocument, DocumentDispatch$1<DocumentDriveAction>];
1056
1059
  declare function setSelectedDrive(driveOrDriveSlug: string | DocumentDriveDocument | undefined): void;
@@ -1063,9 +1066,9 @@ declare function useSelectedFolder(): FolderNode | undefined;
1063
1066
  //#region src/hooks/selected-node.d.ts
1064
1067
  declare const addSelectedNodeIdEventHandler: () => void;
1065
1068
  /** Returns the selected node. */
1066
- declare function useSelectedNode(): Node$1 | undefined;
1069
+ declare function useSelectedNode(): Node | undefined;
1067
1070
  /** Sets the selected node (file or folder). */
1068
- declare function setSelectedNode(nodeOrNodeSlug: Node$1 | string | undefined): void;
1071
+ declare function setSelectedNode(nodeOrNodeSlug: Node | string | undefined): void;
1069
1072
  declare function addResetSelectedNodeEventHandler(): void;
1070
1073
  declare function addSetSelectedNodeOnPopStateEventHandler(): void;
1071
1074
  //#endregion
@@ -1082,7 +1085,7 @@ declare function useSubgraphModules(): SubgraphModule[] | undefined;
1082
1085
  //#endregion
1083
1086
  //#region src/hooks/supported-document-types.d.ts
1084
1087
  /** Returns the supported document types for the reactor (derived from the document model modules) */
1085
- declare function useSupportedDocumentTypesInReactor(): any[] | undefined;
1088
+ declare function useSupportedDocumentTypesInReactor(): string[] | undefined;
1086
1089
  //#endregion
1087
1090
  //#region src/hooks/timeline-revision.d.ts
1088
1091
  /** Returns the selected timeline revision. */
@@ -1130,7 +1133,7 @@ declare function useDriveSystemInfo(drive: DocumentDriveDocument | undefined): D
1130
1133
  * @param document - The document to create a switchboard URL generator for
1131
1134
  * @returns An async function that returns the switchboard URL, or null if not applicable
1132
1135
  */
1133
- declare function useGetSwitchboardLink(document: PHDocument$2 | undefined): (() => Promise<string>) | null;
1136
+ declare function useGetSwitchboardLink(document: PHDocument$1 | undefined): (() => Promise<string>) | null;
1134
1137
  //#endregion
1135
1138
  //#region src/types/upload.d.ts
1136
1139
  type DocumentTypeIcon = "analytics-processor" | "relational-processor" | "codegen-processor" | "app" | "document-model" | "editor" | "package" | "subgraph";
@@ -1192,9 +1195,9 @@ interface PublishEvent {
1192
1195
  declare class RegistryClient {
1193
1196
  readonly apiUrl: string;
1194
1197
  constructor(cdnUrl: string);
1195
- getPackages(): Promise<PackageInfo$1[]>;
1198
+ getPackages(): Promise<PackageInfo[]>;
1196
1199
  getPackagesByDocumentType(documentType: string): Promise<string[]>;
1197
- searchPackages(query: string): Promise<PackageInfo$1[]>;
1200
+ searchPackages(query: string): Promise<PackageInfo[]>;
1198
1201
  onPublish(callback: (event: PublishEvent) => void): () => void;
1199
1202
  }
1200
1203
  //#endregion
@@ -1261,7 +1264,7 @@ type ConflictStrategy = "reject" | "rebase" | MergeHandler;
1261
1264
  /** Event emitted when the document changes. */
1262
1265
  type RemoteDocumentChangeEvent = {
1263
1266
  source: "action" | "pull";
1264
- document: PHDocument$2<PHBaseState>;
1267
+ document: PHDocument$1<PHBaseState>;
1265
1268
  };
1266
1269
  /** Listener for document change events. */
1267
1270
  type DocumentChangeListener = (event: RemoteDocumentChangeEvent) => void;
@@ -1293,7 +1296,7 @@ interface IRemoteController<TState extends PHBaseState = PHBaseState> {
1293
1296
  readonly header: PHDocumentHeader;
1294
1297
  readonly state: TState;
1295
1298
  readonly operations: DocumentOperations;
1296
- readonly document: PHDocument$2<TState>;
1299
+ readonly document: PHDocument$1<TState>;
1297
1300
  readonly status: SyncStatus;
1298
1301
  onChange(listener: DocumentChangeListener): () => void;
1299
1302
  push(): Promise<PushResult>;
@@ -1394,7 +1397,7 @@ declare class RemoteDocumentController<TController extends PHDocumentController<
1394
1397
  get header(): PHDocumentHeader;
1395
1398
  get state(): InferState<TController>;
1396
1399
  get operations(): DocumentOperations;
1397
- get document(): PHDocument$2<InferState<TController>>;
1400
+ get document(): PHDocument$1<InferState<TController>>;
1398
1401
  get status(): SyncStatus;
1399
1402
  /** Register a listener for document changes. Returns an unsubscribe function. */
1400
1403
  onChange(listener: DocumentChangeListener): () => void;
@@ -1408,7 +1411,7 @@ declare class RemoteDocumentController<TController extends PHDocumentController<
1408
1411
  /**
1409
1412
  * Pull an existing document from remote and create a controller for it.
1410
1413
  */
1411
- static pull<C extends PHDocumentController<any>>(ControllerClass: new (doc?: PHDocument$2<any>) => C, options: RemoteControllerOptions): Promise<RemoteDocumentControllerWith<C>>;
1414
+ static pull<C extends PHDocumentController<any>>(ControllerClass: new (doc?: PHDocument$1<any>) => C, options: RemoteControllerOptions): Promise<RemoteDocumentControllerWith<C>>;
1412
1415
  /**
1413
1416
  * Wrap an existing controller instance with remote capabilities.
1414
1417
  * Pending local actions on the inner controller are NOT tracked
@@ -1536,18 +1539,18 @@ declare function getSyncStatusSync(documentId: string, sharingType: SharingType)
1536
1539
  //#endregion
1537
1540
  //#region src/utils/download-document.d.ts
1538
1541
  declare function defaultHandleError(error: Error): void;
1539
- declare function downloadDocument(document: PHDocument$2 | undefined, handleError?: typeof defaultHandleError): void;
1542
+ declare function downloadDocument(document: PHDocument$1 | undefined, handleError?: typeof defaultHandleError): void;
1540
1543
  //#endregion
1541
1544
  //#region src/utils/get-revision-from-date.d.ts
1542
- declare const getRevisionFromDate: (startDate?: Date, endDate?: Date, operations?: Operation[]) => any;
1545
+ declare const getRevisionFromDate: (startDate?: Date, endDate?: Date, operations?: Operation[]) => number;
1543
1546
  //#endregion
1544
1547
  //#region src/utils/nodes.d.ts
1545
1548
  /** Sorts nodes by name. */
1546
- declare function sortNodesByName<T extends Node$1>(nodes: T[]): T[];
1549
+ declare function sortNodesByName<T extends Node>(nodes: T[]): T[];
1547
1550
  /** Returns whether a node is a file. */
1548
- declare function isFileNodeKind(node: Node$1 | null | undefined): node is FileNode;
1551
+ declare function isFileNodeKind(node: Node | null | undefined): node is FileNode;
1549
1552
  /** Returns whether a node is a folder. */
1550
- declare function isFolderNodeKind(node: Node$1 | null | undefined): node is FolderNode;
1553
+ declare function isFolderNodeKind(node: Node | null | undefined): node is FolderNode;
1551
1554
  //#endregion
1552
1555
  //#region src/utils/switchboard.d.ts
1553
1556
  declare function getDriveIdBySlug(driveUrl: string, slug: string): Promise<string | undefined>;
@@ -1564,7 +1567,7 @@ declare function getPathWithoutBase(path: string): string;
1564
1567
  /** Makes a URL component for a drive. */
1565
1568
  declare function makeDriveUrlComponent(drive: DocumentDriveDocument | undefined): string;
1566
1569
  /** Makes a URL component for a node. */
1567
- declare function makeNodeSlug(node: Node$1 | undefined): string;
1570
+ declare function makeNodeSlug(node: Node | undefined): string;
1568
1571
  /** Extracts the node slug from a path.
1569
1572
  *
1570
1573
  * The path is expected to be in the format `/d/<drive-slug>/<node-slug>`.
@@ -1593,7 +1596,7 @@ declare function getUserPermissions(): {
1593
1596
  };
1594
1597
  //#endregion
1595
1598
  //#region src/utils/validate-document.d.ts
1596
- declare const validateDocument: (document: PHDocument$2) => any[];
1599
+ declare const validateDocument: (document: PHDocument$1) => ValidationError[];
1597
1600
  //#endregion
1598
1601
  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, DraggingNode, DriveSystemInfoState, FailedInstallation, FailedInstallationReason, 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, PollBehavior, 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, addDraggingNodeEventHandler, 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, downloadDocument, driveCollectionId, driveIdFromUrl, dropAllReactorStorage, 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, trimTrailingSlash, truncateAllTables, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useBasePath, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, 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 };
1599
1602
  //# sourceMappingURL=index.d.ts.map