@powerhousedao/reactor-browser 6.2.2-dev.7 → 6.2.2-dev.71
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/README.md +341 -0
- package/dist/attachment-service-DTFJRf5j.d.ts +1057 -0
- package/dist/attachment-service-DTFJRf5j.d.ts.map +1 -0
- package/dist/{client-_Gh2Uf0E.js → client-DB8gP4hz.js} +79 -13
- package/dist/client-DB8gP4hz.js.map +1 -0
- package/dist/client-DjkEpwu_.d.ts +14 -0
- package/dist/client-DjkEpwu_.d.ts.map +1 -0
- package/dist/{client-u13cr-Vg.js → client-Zz_l9QzI.js} +30 -3
- package/dist/client-Zz_l9QzI.js.map +1 -0
- package/dist/{document-by-id-dLYFX-xz.js → document-by-id-BSZqTN66.js} +81 -51
- package/dist/document-by-id-BSZqTN66.js.map +1 -0
- package/dist/document-operations-B2lxu6qg.js +2936 -0
- package/dist/document-operations-B2lxu6qg.js.map +1 -0
- package/dist/global-pg5gy2eZ.d.ts +400 -0
- package/dist/global-pg5gy2eZ.d.ts.map +1 -0
- package/dist/index-BV00np9e.d.ts +349 -0
- package/dist/index-BV00np9e.d.ts.map +1 -0
- package/dist/index-CxxxP14A.d.ts +144 -0
- package/dist/index-CxxxP14A.d.ts.map +1 -0
- package/dist/index.d.ts +312 -715
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +609 -1661
- package/dist/index.js.map +1 -1
- package/dist/{inspector-proxy-CvQDDxmT.d.ts → inspector-proxy-CaCFdEG4.d.ts} +4 -2
- package/dist/inspector-proxy-CaCFdEG4.d.ts.map +1 -0
- package/dist/{make-ph-event-functions-BHoLPif5.js → make-ph-event-functions-DBq3iWYn.js} +1 -1
- package/dist/{make-ph-event-functions-BHoLPif5.js.map → make-ph-event-functions-DBq3iWYn.js.map} +1 -1
- package/dist/{index-DS4W07Y8.d.ts → pglite-CntadC_p-BtEalg1H.d.ts} +2 -142
- package/dist/pglite-CntadC_p-BtEalg1H.d.ts.map +1 -0
- package/dist/{relational-Dj06-YkI.js → relational-C_0GdGVN.js} +2 -2
- package/dist/{relational-Dj06-YkI.js.map → relational-C_0GdGVN.js.map} +1 -1
- package/dist/renown-6w_ImTvm.js +97 -0
- package/dist/renown-6w_ImTvm.js.map +1 -0
- package/dist/{renown-D-1c_Bvx.js → renown-DRnlawbP.js} +523 -57
- package/dist/renown-DRnlawbP.js.map +1 -0
- package/dist/src/analytics/index.d.ts +1 -1
- package/dist/src/analytics/index.js +2 -1
- package/dist/src/analytics/index.js.map +1 -1
- package/dist/src/graphql/client.d.ts +3 -2
- package/dist/src/graphql/client.js +1 -1
- package/dist/src/graphql-client/entry.d.ts +4 -0
- package/dist/src/graphql-client/entry.js +3 -0
- package/dist/src/relational/index.d.ts +1 -1
- package/dist/src/relational/index.js +1 -1
- package/dist/src/renown/index.d.ts +2 -2
- package/dist/src/renown/index.js +3 -2
- package/dist/src/rpc/index.d.ts +6 -3
- package/dist/src/rpc/index.d.ts.map +1 -1
- package/dist/src/rpc/index.js +41 -10
- package/dist/src/rpc/index.js.map +1 -1
- package/dist/store-DAJq6vSs.js +37 -0
- package/dist/store-DAJq6vSs.js.map +1 -0
- package/dist/{client-09xv0Dq6.d.ts → types-4rfAFZQd.d.ts} +87 -19
- package/dist/types-4rfAFZQd.d.ts.map +1 -0
- package/dist/{types-CPV0Cnsy.d.ts → types-wGaiXwjh.d.ts} +1 -1
- package/dist/{types-CPV0Cnsy.d.ts.map → types-wGaiXwjh.d.ts.map} +1 -1
- package/package.json +16 -10
- package/dist/client-09xv0Dq6.d.ts.map +0 -1
- package/dist/client-_Gh2Uf0E.js.map +0 -1
- package/dist/client-u13cr-Vg.js.map +0 -1
- package/dist/document-by-id-dLYFX-xz.js.map +0 -1
- package/dist/index-D3bV5rcl.d.ts +0 -216
- package/dist/index-D3bV5rcl.d.ts.map +0 -1
- package/dist/index-DS4W07Y8.d.ts.map +0 -1
- package/dist/inspector-proxy-CvQDDxmT.d.ts.map +0 -1
- package/dist/renown-D-1c_Bvx.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { a as getAnalyticsStore, i as createAnalyticsStore, n as IPowerhouseAnalytics, r as CreateStoreOptions } from "./types-
|
|
1
|
+
import { a as getAnalyticsStore, i as createAnalyticsStore, n as IPowerhouseAnalytics, r as CreateStoreOptions } from "./types-wGaiXwjh.js";
|
|
2
|
+
import { $ as PHProcessorsGlobalConfig, A as FailedInstallation, B as PHAppConfigSetters, C as PHToastOptions, D as TimelineItem, E as TimelineDividerItem, F as FullPHGlobalConfig, G as PHDocumentEditorConfigSetters, H as PHDocumentEditorConfig, I as PHAnalyticsGlobalConfig, J as PHGlobalConfigHooks, K as PHDrivesGlobalConfig, L as PHAppConfig, M as IPackageDiscoveryService, N as PendingInstallation, O as DiscoveryEvent, P as PHModal, Q as PHGlobalConfigSettersForKey, R as PHAppConfigHooks, S as PHToastFn, T as TimelineBarItem, U as PHDocumentEditorConfigHooks, V as PHCommonGlobalConfig, W as PHDocumentEditorConfigKey, X as PHGlobalConfigKey, Y as PHGlobalConfigHooksForKey, Z as PHGlobalConfigSetters, _ as useDropNode, a as PHGlobal, at as FulfilledPromise, b as IPackagesListener, c as PHGlobalValue, ct as PromiseWithState, d as UsePHGlobalValue, et as PHRelationalProcessorsGlobalConfig, f as WorkerReactorClientModule, g as useDragNode, h as addDraggingNodeEventHandler, i as LOADING, it as DocumentDispatch, j as FailedInstallationReason, k as DiscoveryEventListener, l as SetEvent, lt as RejectedPromise, m as DraggingNode, n as BrowserReactorClientModule, nt as PHSentryGlobalConfig, o as PHGlobalEventHandlerAdders, ot as IDocumentCache, p as WorkerReactorModule, q as PHGlobalConfig, r as BrowserReactorModule, rt as IReactorBrowserClient, s as PHGlobalKey, st as PromiseState, t as AddPHGlobalEventHandler, tt as PHRenownGlobalConfig, u as SetPHGlobalValue, v as IPackageListerUnsubscribe, w as PHToastType, x as PackageManagerInstallResult, y as IPackageManager, z as PHAppConfigKey } from "./global-pg5gy2eZ.js";
|
|
3
|
+
import { $ as isGraphQLReactorClient, A as useGetDocuments, At as RemoteOperation, B as prepareSignedActions, C as setDocumentCache, Ct as IRemoteController, D as useDocuments, Dt as RemoteControllerOptions, E as useDocumentSafe, Et as RemoteControllerGraphQLClient, F as startDocumentChangesSubscription, Ft as addPromiseState, G as MutateDocumentWithOperationsVariables, H as stampAction, I as subscriptionsUrlFromGraphqlUrl, It as readPromiseState, J as GraphQLReactorProviderProps, K as ReactorOperationFieldsFragmentDoc, L as StaticPackageManager, M as DocumentChangesEventPayload, Mt as SyncStatus, N as DocumentChangesSubscriptionOptions, Nt as TrackedAction, O as useGetDocument, Ot as RemoteDocumentChangeEvent, P as makeAuthConnectionParams, Pt as DocumentCache, Q as GraphQLReactorClientOptions, R as packageFromDocumentModels, S as addDocumentCacheEventHandler, St as IRemoteClient, T as useDocumentCache, Tt as PushResult, U as MutateDocumentWithOperationsDocument, V as signStampedAction, W as MutateDocumentWithOperationsResult, X as useSwitchboardClient, Y as ensurePHEventHandlers, Z as GraphQLReactorClient, _ as usePGlite, _t as ConflictStrategy, a as useDocumentOperations, at as describeGraphQLDocument, b as useSync, bt as GetDocumentWithOperationsResult, c as DispatchFn, ct as ambientRenownTokenProvider, d as addReactorClientEventHandler, dt as GetDocumentQueryResult, et as viewFilterInputFromViewFilter, f as addReactorClientModuleEventHandler, ft as RevisionsListSelection, g as useModelRegistry, gt as ConflictInfo, h as useDatabase, ht as revisionMapFromRevisionsList, i as DocumentOperationsState, it as TypedGraphQLDocument, j as ConnectionParams, jt as RemoteOperationResultPage, k as useGetDocumentAsync, kt as RemoteDocumentData, l as UseDispatchResult, lt as makeAuthMiddleware, m as setReactorClientModule, mt as phDocumentFromMutation, n as setAttachmentService, nt as SubgraphSdkFactory, o as useDocumentModelModuleById, ot as subgraphUrlFromGraphqlUrl, p as setReactorClient, pt as phDocumentFromGetDocument, q as GraphQLReactorProvider, r as useAttachmentService, rt as SubgraphSdkRegistry, s as useDocumentModelModules, st as BearerTokenProvider, t as addAttachmentServiceEventHandler, tt as GraphQLRequestOptions, u as useDispatch, ut as GetDocumentQueryFields, v as useReactorClient, vt as DocumentChangeListener, w as useDocument, wt as MergeHandler, x as useSyncList, xt as GetOperationsResult, y as useReactorClientModule, yt as GetDocumentResult, z as resolveDocumentModelModule } from "./attachment-service-DTFJRf5j.js";
|
|
2
4
|
import { baseDocumentModels, baseDocumentModelsMap } from "./src/document-model.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { t as PGlite } from "./pglite-CntadC_p-BtEalg1H.js";
|
|
6
|
+
import { r as PGliteWithLive } from "./index-CxxxP14A.js";
|
|
7
|
+
import { D as PropagationMode, T as MutateDocumentMutation, _ as CreateDocumentMutation, a as GraphQLDocumentEvents, c as ReactorGraphQLClient, d as DEFAULT_DRIVE_ID, f as DEFAULT_SWITCHBOARD_URL, g as ActionInput, h as graphqlEventsToSyncDrive, i as GraphQLDocumentEventOperationName, k as SdkFunctionWrapper, l as RunDocumentOptions, m as graphqlDocumentsEvents, n as GraphQLClientDocumentsEvent, o as GraphQLDocumentEventsOperationName, p as graphqlDocumentEvents, r as GraphQLClientWindowEvents, s as GraphQLDocumentsEvents, t as GraphQLClientDocumentEvent, u as TStateSchemaZodObject, v as DeleteDocumentMutation, w as GetDocumentWithOperationsQuery, x as FindDocumentsQuery, y as DeleteDocumentsMutation } from "./types-4rfAFZQd.js";
|
|
8
|
+
import { t as createClient } from "./client-DjkEpwu_.js";
|
|
9
|
+
import { $ as login, A as RENOWN_URL, B as RenownUserButton, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as CopyIcon, G as RenownAuthButton, H as RenownUserButtonProps, I as DisconnectIcon, J as setRenown, K as RenownAuthButtonProps, L as RenownLogo, M as initConnectCrypto, N as initRenownCrypto, O as RENOWN_CHAIN_ID, P as ChevronDownIcon, Q as useUser, R as SpinnerIcon, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownLoginButton, V as RenownUserButtonMenuItem, W as RenownLoginButtonProps, X as useLoginStatus, Y as useDid, Z as useRenown, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthStatus, b as RenownInitialUserProviderProps, c as Renown, d as useRenownInit, et as logout, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthResolution, j as VERIFIABLE_CREDENTIAL_EIP712_TYPE, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as RenownAuth, o as RenownProvider, ot as useRenownAuth, p as RenownSessionCookieState, q as addRenownEventHandler, r as useRenownLoginMethods, rt as RenownAuthAsync, s as RenownProviderProps, st as useRenownAuthAsync, t as useRenownWalletAdapter, tt as openRenown, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as UserIcon } from "./index-BV00np9e.js";
|
|
7
10
|
import { QueryCallbackReturnType, RelationalDbWithLive, createProcessorQuery, useRelationalDb, useRelationalQuery, useRelationalQueryOptions } from "./src/relational/index.js";
|
|
8
11
|
import * as document_model0 from "document-model";
|
|
9
|
-
import { DocumentModelLib,
|
|
10
|
-
import { Action
|
|
12
|
+
import { DocumentModelLib, EditorModule, PHDocument, PHDocumentController } from "document-model";
|
|
13
|
+
import { Action as Action$1, AuthSubject, DocumentOperations, Operation as Operation$1, PHBaseState, PHDocument as PHDocument$1, PHDocumentHeader, SubgraphModule, ValidationError } from "@powerhousedao/shared/document-model";
|
|
11
14
|
import * as _powerhousedao_shared_document_drive0 from "@powerhousedao/shared/document-drive";
|
|
12
15
|
import { DocumentDriveAction, DocumentDriveDocument, DriveInput, FileNode, FolderNode, Node, SharingType } from "@powerhousedao/shared/document-drive";
|
|
13
|
-
import
|
|
14
|
-
import { ChannelScheme, ConnectionState, ConnectionStateSnapshot, ConnectionStateSnapshot as ConnectionStateSnapshot$1, Database,
|
|
15
|
-
import {
|
|
16
|
-
import { IRenown, LoginStatus, User } from "@renown/sdk";
|
|
17
|
-
import { IAttachmentClient, IAttachmentService, PreprocessResult } from "@powerhousedao/reactor-attachments/client";
|
|
18
|
-
import { Kysely } from "kysely";
|
|
16
|
+
import { DragEventHandler } from "react";
|
|
17
|
+
import { ActionCandidate, ChannelScheme, ConnectionState, ConnectionStateSnapshot, ConnectionStateSnapshot as ConnectionStateSnapshot$1, Database, DocumentChangeType, DocumentIntegrityService, DriveCollectionId, Evaluation, GqlRequestChannel, IChannel, IDocumentModelLoader, IDocumentModelRegistry, IProcessor, IProcessorHostModuleBase, IQueue, IReactorClient, IReactorClient as IReactorClient$1, IReactorProcessorHostModuleBase, IRelationalDb, InMemoryQueue, IntervalPollTimer, Job, JwtHandler, KeyframeValidationIssue, OperationWithContext, ParsedDriveUrl, PollBehavior, PollBehavior as PollBehavior$1, ProcessorApp, ProcessorFactory, ProcessorFactoryBuilder as ProcessorFactoryBuilder$1, ProcessorFilter, ProcessorRecord, REACTOR_SCHEMA, ReactorBuilder, ReactorClientBuilder, ReactorFeatureFlags, RebuildResult, RelationalDbProcessor, Remote, RemoteFilter, RemoteMeta, SignerConfig, SnapshotValidationIssue, SyncOperation, SyncOperationStatus, ValidationResult, driveIdFromUrl, isDriveAuthError, parseDriveUrl } from "@powerhousedao/reactor";
|
|
18
|
+
import { AttachmentDownloadInput, AttachmentHeader, AttachmentUploadResult, IAttachmentClient, PreprocessResult } from "@powerhousedao/reactor-attachments/client";
|
|
19
19
|
import * as _powerhousedao_reactor_browser0 from "@powerhousedao/reactor-browser";
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
20
|
+
import { ConflictResolution as ConflictResolution$1, DocumentDispatch as DocumentDispatch$1, FileUploadProgressCallback as FileUploadProgressCallback$1, IReactorBrowserClient as IReactorBrowserClient$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 } from "@powerhousedao/reactor-browser";
|
|
21
|
+
import * as _powerhousedao_shared0 from "@powerhousedao/shared";
|
|
22
|
+
import { Node as Node$1 } from "@powerhousedao/shared";
|
|
23
|
+
import { PackageInfo, PackagePage } from "@powerhousedao/shared/registry";
|
|
23
24
|
|
|
24
25
|
//#region src/actions/dispatch.d.ts
|
|
25
26
|
/**
|
|
@@ -29,7 +30,7 @@ import { PackageInfo } from "@powerhousedao/shared/registry";
|
|
|
29
30
|
* @param onErrors - Callback invoked with any errors that occurred during action execution.
|
|
30
31
|
* @returns The updated document, or undefined if the dispatch failed.
|
|
31
32
|
*/
|
|
32
|
-
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>;
|
|
33
|
+
declare function dispatchActions<TDocument = PHDocument$1, TAction = Action$1>(actionOrActions: TAction[] | TAction | undefined, document: TDocument | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void): Promise<PHDocument$1 | undefined>;
|
|
33
34
|
/**
|
|
34
35
|
* Dispatches actions to a document.
|
|
35
36
|
* @param actionOrActions - The action or actions to dispatch.
|
|
@@ -37,20 +38,40 @@ declare function dispatchActions<TDocument = PHDocument$1, TAction = Action>(act
|
|
|
37
38
|
* @param onErrors - Callback invoked with any errors that occurred during action execution.
|
|
38
39
|
* @returns The updated document, or undefined if the dispatch failed.
|
|
39
40
|
*/
|
|
40
|
-
declare function dispatchActions(actionOrActions: Action[] | Action | undefined, documentId: string, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void): Promise<PHDocument$1 | undefined>;
|
|
41
|
+
declare function dispatchActions(actionOrActions: Action$1[] | Action$1 | undefined, documentId: string, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void): Promise<PHDocument$1 | undefined>;
|
|
41
42
|
//#endregion
|
|
42
43
|
//#region src/actions/document.d.ts
|
|
43
44
|
declare function exportFile(document: PHDocument$1, suggestedName?: string): Promise<void | FileSystemFileHandle>;
|
|
44
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Loads a document file and replays it with version-aware reducers from the registry.
|
|
47
|
+
* Falls back to single-version legacy replay when no upgrade manifest is registered for
|
|
48
|
+
* the document type.
|
|
49
|
+
*/
|
|
50
|
+
declare function loadFile(path: string | File): Promise<PHDocument$1<PHBaseState>>;
|
|
51
|
+
declare function addDocument(driveId: string, name: string, documentType: string, parentFolder?: string, document?: PHDocument$1, id?: string, preferredEditor?: string, documentModelVersion?: number): Promise<{
|
|
45
52
|
id: string;
|
|
46
53
|
name: string;
|
|
47
54
|
documentType: string;
|
|
48
55
|
parentFolder: string | null;
|
|
49
56
|
kind: "file";
|
|
50
57
|
}>;
|
|
58
|
+
/** The file node shape {@link addDocument} reports for a created document. */
|
|
59
|
+
type AddedFileNode = {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
documentType: string;
|
|
63
|
+
parentFolder: string | null;
|
|
64
|
+
kind: "file";
|
|
65
|
+
};
|
|
66
|
+
declare function addFileWithProgress(file: string | File, driveId: string, name?: string, parentFolder?: string, onProgress?: FileUploadProgressCallback$1, documentTypes?: string[], resolveConflict?: ConflictResolution$1): Promise<AddedFileNode | undefined>;
|
|
51
67
|
declare function addFolder(driveId: string, name: string, parentFolder?: string): Promise<Node>;
|
|
52
68
|
declare function deleteNode(driveId: string, nodeId: string): Promise<void>;
|
|
53
69
|
declare function renameDriveNode(driveId: string, nodeId: string, name: string): Promise<Node | undefined>;
|
|
70
|
+
/**
|
|
71
|
+
* Upgrades a document to a newer document model version. Defaults to the
|
|
72
|
+
* latest registered version for the document's type.
|
|
73
|
+
*/
|
|
74
|
+
declare function upgradeDocument(documentId: string, toVersion?: number): Promise<PHDocument$1>;
|
|
54
75
|
//#endregion
|
|
55
76
|
//#region src/actions/drive.d.ts
|
|
56
77
|
type AddRemoteDriveOptions = {
|
|
@@ -91,59 +112,22 @@ declare const COMMON_PACKAGE_ID = "powerhouse/common";
|
|
|
91
112
|
/** Document types that represent a "drive": a container of nodes. */
|
|
92
113
|
declare const DRIVE_DOCUMENT_TYPES: readonly ["powerhouse/document-drive", "powerhouse/reactor-drive"];
|
|
93
114
|
//#endregion
|
|
94
|
-
//#region src/
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
status: "fulfilled";
|
|
99
|
-
value: T;
|
|
100
|
-
};
|
|
101
|
-
type RejectedPromise<T> = Promise<T> & {
|
|
102
|
-
status: "rejected";
|
|
103
|
-
reason: unknown;
|
|
104
|
-
};
|
|
105
|
-
type PromiseState<T> = {
|
|
106
|
-
status: "pending";
|
|
107
|
-
} | {
|
|
108
|
-
status: "fulfilled";
|
|
109
|
-
value: T;
|
|
110
|
-
} | {
|
|
111
|
-
status: "rejected";
|
|
112
|
-
reason: unknown;
|
|
113
|
-
};
|
|
114
|
-
interface IDocumentCache {
|
|
115
|
-
get(id: string, refetch?: boolean): Promise<PHDocument$1>;
|
|
116
|
-
getBatch(ids: string[], refetch?: boolean): Promise<PHDocument$1[]>;
|
|
117
|
-
subscribe(id: string | string[], callback: () => void): () => void;
|
|
115
|
+
//#region src/errors.d.ts
|
|
116
|
+
declare class UnsupportedDocumentTypeError extends Error {
|
|
117
|
+
constructor(documentType: string);
|
|
118
|
+
static isError(error: unknown): error is UnsupportedDocumentTypeError;
|
|
118
119
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
private client;
|
|
131
|
-
private documents;
|
|
132
|
-
private batchPromises;
|
|
133
|
-
private listeners;
|
|
134
|
-
private unsubscribe;
|
|
135
|
-
constructor(client: IReactorClient$1);
|
|
136
|
-
private handleDocumentChange;
|
|
137
|
-
private handleDocumentDeleted;
|
|
138
|
-
private handleDocumentUpdated;
|
|
139
|
-
private invalidateBatchesContaining;
|
|
140
|
-
get(id: string, refetch?: boolean): Promise<PHDocument$1>;
|
|
141
|
-
getBatch(ids: string[]): Promise<PHDocument$1[]>;
|
|
142
|
-
subscribe(id: string | string[], callback: () => void): () => void;
|
|
143
|
-
/**
|
|
144
|
-
* Disposes of the cache and unsubscribes from document change events.
|
|
145
|
-
*/
|
|
146
|
-
dispose(): void;
|
|
120
|
+
declare class DocumentModelNotFoundError extends Error {
|
|
121
|
+
readonly documentType: string;
|
|
122
|
+
readonly name = "DocumentModelNotFoundError";
|
|
123
|
+
constructor(documentType: string);
|
|
124
|
+
static isError(error: unknown): error is DocumentModelNotFoundError;
|
|
125
|
+
}
|
|
126
|
+
declare class DocumentTypeMismatchError extends Error {
|
|
127
|
+
constructor(documentId: string, expectedType: string, actualType: string);
|
|
128
|
+
}
|
|
129
|
+
declare class NoSelectedDocumentError extends Error {
|
|
130
|
+
constructor();
|
|
147
131
|
}
|
|
148
132
|
//#endregion
|
|
149
133
|
//#region src/global/types.d.ts
|
|
@@ -199,7 +183,7 @@ declare class GraphQLClientDocumentCache implements IDocumentCache {
|
|
|
199
183
|
declare function reactorGraphqlCreateDocument<TDocument extends PHDocument>(document: TDocument, parentIdentifier?: "powerhouse"): Promise<CreateDocumentMutation>;
|
|
200
184
|
declare function reactorGraphqlDeleteDocument(identifier: string): Promise<DeleteDocumentMutation>;
|
|
201
185
|
declare function reactorGraphqlDeleteDocuments(identifiers: string[]): Promise<DeleteDocumentsMutation>;
|
|
202
|
-
declare function reactorGraphqlMutateDocument(documentIdentifier: string, ...actions: ReadonlyArray<
|
|
186
|
+
declare function reactorGraphqlMutateDocument(documentIdentifier: string, ...actions: ReadonlyArray<ActionInput>): Promise<MutateDocumentMutation>;
|
|
203
187
|
//#endregion
|
|
204
188
|
//#region src/hooks/add-ph-event-handlers.d.ts
|
|
205
189
|
declare const commonGlobalEventHandlerFunctions: {
|
|
@@ -254,6 +238,8 @@ declare const useIsDriveAnalyticsEnabled: () => boolean | undefined, setIsDriveA
|
|
|
254
238
|
declare const useRenownUrl: () => string | undefined, setRenownUrl: (value: string | undefined) => void, addRenownUrlEventHandler: () => void;
|
|
255
239
|
declare const useRenownNetworkId: () => string | undefined, setRenownNetworkId: (value: string | undefined) => void, addRenownNetworkIdEventHandler: () => void;
|
|
256
240
|
declare const useRenownChainId: () => number | undefined, setRenownChainId: (value: number | undefined) => void, addRenownChainIdEventHandler: () => void;
|
|
241
|
+
declare const useSwitchboardUrl: () => string | undefined, setSwitchboardUrl: (value: string | undefined) => void, addSwitchboardUrlEventHandler: () => void;
|
|
242
|
+
declare const useRenownAdapters: () => _powerhousedao_shared0.PHConnectRenownAdapters | undefined, setRenownAdapters: (value: _powerhousedao_shared0.PHConnectRenownAdapters | undefined) => void, addRenownAdaptersEventHandler: () => void;
|
|
257
243
|
declare const useSentryRelease: () => string | undefined, setSentryRelease: (value: string | undefined) => void, addSentryReleaseEventHandler: () => void;
|
|
258
244
|
declare const useSentryDsn: () => string | undefined, setSentryDsn: (value: string | undefined) => void, addSentryDsnEventHandler: () => void;
|
|
259
245
|
declare const useSentryEnv: () => string | undefined, setSentryEnv: (value: string | undefined) => void, addSentryEnvEventHandler: () => void;
|
|
@@ -401,451 +387,6 @@ declare function usePHDocumentEditorConfigByKey<TKey extends PHDocumentEditorCon
|
|
|
401
387
|
//#region src/hooks/config/utils.d.ts
|
|
402
388
|
declare function callGlobalSetterForKey<TKey extends PHGlobalConfigKey$1>(key: TKey, value: PHGlobalConfig$1[TKey] | undefined): void;
|
|
403
389
|
//#endregion
|
|
404
|
-
//#region src/types/config.d.ts
|
|
405
|
-
type PHGlobalConfig = PHCommonGlobalConfig & PHAppConfig & PHDocumentEditorConfig & PHDrivesGlobalConfig & PHAnalyticsGlobalConfig & PHRelationalProcessorsGlobalConfig & PHProcessorsGlobalConfig & PHRenownGlobalConfig & PHSentryGlobalConfig;
|
|
406
|
-
type PHGlobalConfigKey = keyof PHGlobalConfig;
|
|
407
|
-
type PHGlobalConfigSetters = PHGlobalConfigSettersForKey<PHGlobalConfigKey>;
|
|
408
|
-
type PHGlobalConfigHooks = PHGlobalConfigHooksForKey<PHGlobalConfigKey>;
|
|
409
|
-
/**
|
|
410
|
-
* Editor configuration settings which are globally available to your custom apps.
|
|
411
|
-
*
|
|
412
|
-
* Setting these will override the defaults when your editor is mounted.
|
|
413
|
-
*/
|
|
414
|
-
type PHAppConfig = {
|
|
415
|
-
/** Allows you to specify the document types that are allowed to be added to the drive.
|
|
416
|
-
* An empty array means that any document type is allowed.
|
|
417
|
-
*/
|
|
418
|
-
allowedDocumentTypes?: string[]; /** Whether drag and drop is enabled for the app. */
|
|
419
|
-
isDragAndDropEnabled?: boolean;
|
|
420
|
-
};
|
|
421
|
-
type PHAppConfigKey = keyof PHAppConfig;
|
|
422
|
-
type PHAppConfigSetters = PHGlobalConfigSettersForKey<PHAppConfigKey>;
|
|
423
|
-
type PHAppConfigHooks = PHGlobalConfigHooksForKey<PHAppConfigKey>;
|
|
424
|
-
type PHDocumentEditorConfig = {
|
|
425
|
-
/** Whether external controls are enabled for the document editor. */isExternalControlsEnabled?: boolean;
|
|
426
|
-
};
|
|
427
|
-
type PHDocumentEditorConfigKey = keyof PHDocumentEditorConfig;
|
|
428
|
-
type PHDocumentEditorConfigSetters = PHGlobalConfigSettersForKey<PHDocumentEditorConfigKey>;
|
|
429
|
-
type PHDocumentEditorConfigHooks = PHGlobalConfigHooksForKey<PHDocumentEditorConfigKey>;
|
|
430
|
-
type PHCommonGlobalConfig = {
|
|
431
|
-
basePath?: string;
|
|
432
|
-
routerBasename?: string;
|
|
433
|
-
version?: string;
|
|
434
|
-
requiresHardRefresh?: boolean;
|
|
435
|
-
warnOutdatedApp?: boolean;
|
|
436
|
-
studioMode?: boolean;
|
|
437
|
-
versionCheckInterval?: number;
|
|
438
|
-
cliVersion?: string;
|
|
439
|
-
fileUploadOperationsChunkSize?: number;
|
|
440
|
-
gaTrackingId?: string;
|
|
441
|
-
isDocumentModelSelectionSettingsEnabled?: boolean;
|
|
442
|
-
isAddDriveEnabled?: boolean;
|
|
443
|
-
isPublicDrivesEnabled?: boolean;
|
|
444
|
-
isAddPublicDrivesEnabled?: boolean;
|
|
445
|
-
isDeletePublicDrivesEnabled?: boolean;
|
|
446
|
-
isCloudDrivesEnabled?: boolean;
|
|
447
|
-
isAddCloudDrivesEnabled?: boolean;
|
|
448
|
-
isDeleteCloudDrivesEnabled?: boolean;
|
|
449
|
-
isLocalDrivesEnabled?: boolean;
|
|
450
|
-
isAddLocalDrivesEnabled?: boolean;
|
|
451
|
-
isDeleteLocalDrivesEnabled?: boolean;
|
|
452
|
-
allowList?: string[];
|
|
453
|
-
analyticsDatabaseName?: string;
|
|
454
|
-
logLevel?: "debug" | "info" | "warn" | "error";
|
|
455
|
-
isEditorDebugModeEnabled?: boolean;
|
|
456
|
-
isEditorReadModeEnabled?: boolean;
|
|
457
|
-
disabledEditors?: string[];
|
|
458
|
-
enabledEditors?: string[];
|
|
459
|
-
};
|
|
460
|
-
type PHDrivesGlobalConfig = {
|
|
461
|
-
defaultDrivesUrl?: string;
|
|
462
|
-
drivesPreserveStrategy?: string;
|
|
463
|
-
};
|
|
464
|
-
type PHAnalyticsGlobalConfig = {
|
|
465
|
-
isAnalyticsEnabled?: boolean;
|
|
466
|
-
isAnalyticsDatabaseWorkerEnabled?: boolean;
|
|
467
|
-
isDiffAnalyticsEnabled?: boolean;
|
|
468
|
-
isDriveAnalyticsEnabled?: boolean;
|
|
469
|
-
isAnalyticsExternalProcessorsEnabled?: boolean;
|
|
470
|
-
};
|
|
471
|
-
type PHRelationalProcessorsGlobalConfig = {
|
|
472
|
-
isRelationalProcessorsEnabled?: boolean;
|
|
473
|
-
isExternalRelationalProcessorsEnabled?: boolean;
|
|
474
|
-
};
|
|
475
|
-
type PHProcessorsGlobalConfig = {
|
|
476
|
-
isExternalProcessorsEnabled?: boolean;
|
|
477
|
-
isExternalPackagesEnabled?: boolean;
|
|
478
|
-
};
|
|
479
|
-
type PHRenownGlobalConfig = {
|
|
480
|
-
renownUrl?: string;
|
|
481
|
-
renownNetworkId?: string;
|
|
482
|
-
renownChainId?: number;
|
|
483
|
-
};
|
|
484
|
-
type PHSentryGlobalConfig = {
|
|
485
|
-
sentryRelease?: string;
|
|
486
|
-
sentryDsn?: string;
|
|
487
|
-
sentryEnv?: string;
|
|
488
|
-
isSentryTracingEnabled?: boolean;
|
|
489
|
-
};
|
|
490
|
-
type PHGlobalConfigSettersForKey<T extends PHGlobalConfigKey> = { [K in T]: (value: PHGlobalConfig[K]) => void };
|
|
491
|
-
type PHGlobalConfigHooksForKey<TKey extends PHGlobalConfigKey> = { [K in TKey]: () => PHGlobalConfig[K] };
|
|
492
|
-
/** Helper type for ensuring keys are all present while still allowing them to be set */
|
|
493
|
-
type FullPHGlobalConfig = Record<PHGlobalConfigKey, PHGlobalConfig[PHGlobalConfigKey]>;
|
|
494
|
-
//#endregion
|
|
495
|
-
//#region src/types/modals.d.ts
|
|
496
|
-
type PHModal = {
|
|
497
|
-
type: "createDocument";
|
|
498
|
-
documentType: string;
|
|
499
|
-
} | {
|
|
500
|
-
type: "deleteItem";
|
|
501
|
-
id: string;
|
|
502
|
-
} | {
|
|
503
|
-
type: "addDrive";
|
|
504
|
-
} | {
|
|
505
|
-
type: "upgradeDrive";
|
|
506
|
-
driveId: string;
|
|
507
|
-
} | {
|
|
508
|
-
type: "deleteDrive";
|
|
509
|
-
driveId: string;
|
|
510
|
-
} | {
|
|
511
|
-
type: "driveSettings";
|
|
512
|
-
driveId: string;
|
|
513
|
-
} | {
|
|
514
|
-
type: "settings";
|
|
515
|
-
} | {
|
|
516
|
-
type: "clearStorage";
|
|
517
|
-
} | {
|
|
518
|
-
type: "debugSettings";
|
|
519
|
-
} | {
|
|
520
|
-
type: "disclaimer";
|
|
521
|
-
} | {
|
|
522
|
-
type: "cookiesPolicy";
|
|
523
|
-
} | {
|
|
524
|
-
type: "downloadDocumentWithErrors";
|
|
525
|
-
documentId: string;
|
|
526
|
-
} | {
|
|
527
|
-
type: "inspector";
|
|
528
|
-
} | {
|
|
529
|
-
type: "missingPackage";
|
|
530
|
-
documentType: string;
|
|
531
|
-
} | {
|
|
532
|
-
type: "driveAuthRequired";
|
|
533
|
-
};
|
|
534
|
-
//#endregion
|
|
535
|
-
//#region src/types/package-discovery.d.ts
|
|
536
|
-
type PendingInstallation = {
|
|
537
|
-
documentType: string;
|
|
538
|
-
packageNames: string[];
|
|
539
|
-
};
|
|
540
|
-
type FailedInstallationReason = "no-registry" | "not-in-registry" | "registry-error" | "install-failed" | "dismissed" | "offline";
|
|
541
|
-
type FailedInstallation = {
|
|
542
|
-
documentType: string;
|
|
543
|
-
reason: FailedInstallationReason;
|
|
544
|
-
packageNames: string[];
|
|
545
|
-
error: Error | null;
|
|
546
|
-
};
|
|
547
|
-
type DiscoveryEvent = {
|
|
548
|
-
type: "type-discovered";
|
|
549
|
-
documentType: string;
|
|
550
|
-
packageNames: string[];
|
|
551
|
-
} | {
|
|
552
|
-
type: "installation-prompted";
|
|
553
|
-
documentType: string;
|
|
554
|
-
packageNames: string[];
|
|
555
|
-
} | {
|
|
556
|
-
type: "installation-approved";
|
|
557
|
-
packageName: string;
|
|
558
|
-
documentTypes: string[];
|
|
559
|
-
} | {
|
|
560
|
-
type: "installation-dismissed";
|
|
561
|
-
packageName: string;
|
|
562
|
-
documentTypes: string[];
|
|
563
|
-
} | {
|
|
564
|
-
type: "installation-failed";
|
|
565
|
-
packageName: string;
|
|
566
|
-
error: Error;
|
|
567
|
-
} | {
|
|
568
|
-
type: "registry-query-failed";
|
|
569
|
-
documentType: string;
|
|
570
|
-
error: Error;
|
|
571
|
-
} | {
|
|
572
|
-
type: "load-failed";
|
|
573
|
-
documentType: string;
|
|
574
|
-
reason: FailedInstallationReason;
|
|
575
|
-
};
|
|
576
|
-
type DiscoveryEventListener = (event: DiscoveryEvent) => void;
|
|
577
|
-
interface IPackageDiscoveryService {
|
|
578
|
-
load(documentType: string): Promise<DocumentModelModule$1<any>>;
|
|
579
|
-
getPendingInstallations(): PendingInstallation[];
|
|
580
|
-
subscribePending(listener: () => void): () => void;
|
|
581
|
-
getFailedInstallations(): FailedInstallation[];
|
|
582
|
-
subscribeFailed(listener: () => void): () => void;
|
|
583
|
-
subscribeEvents(listener: DiscoveryEventListener): () => void;
|
|
584
|
-
approveInstallation(packageName: string): Promise<void>;
|
|
585
|
-
dismissInstallation(packageName: string): void;
|
|
586
|
-
promptInstallation(documentType: string): void;
|
|
587
|
-
retryInstallation(documentType: string): Promise<void>;
|
|
588
|
-
}
|
|
589
|
-
//#endregion
|
|
590
|
-
//#region src/types/timeline.d.ts
|
|
591
|
-
type TimelineBarItem = {
|
|
592
|
-
id: string;
|
|
593
|
-
type: "bar";
|
|
594
|
-
addSize?: 0 | 1 | 2 | 3 | 4;
|
|
595
|
-
delSize?: 0 | 1 | 2 | 3 | 4;
|
|
596
|
-
timestampUtcMs?: string;
|
|
597
|
-
additions?: number;
|
|
598
|
-
deletions?: number;
|
|
599
|
-
revision?: number;
|
|
600
|
-
startDate?: Date;
|
|
601
|
-
endDate?: Date;
|
|
602
|
-
};
|
|
603
|
-
type TimelineDividerItem = {
|
|
604
|
-
id: string;
|
|
605
|
-
type: "divider";
|
|
606
|
-
timestampUtcMs?: string;
|
|
607
|
-
title?: string;
|
|
608
|
-
subtitle?: string;
|
|
609
|
-
revision?: number;
|
|
610
|
-
startDate?: Date;
|
|
611
|
-
endDate?: Date;
|
|
612
|
-
};
|
|
613
|
-
type TimelineItem = TimelineBarItem | TimelineDividerItem;
|
|
614
|
-
//#endregion
|
|
615
|
-
//#region src/types/toast.d.ts
|
|
616
|
-
type PHToastType = "default" | "success" | "error" | "warning" | "info" | "connect-success" | "connect-warning" | "connect-loading" | "connect-deleted";
|
|
617
|
-
type PHToastOptions = {
|
|
618
|
-
type?: PHToastType;
|
|
619
|
-
autoClose?: number | false;
|
|
620
|
-
containerId?: string;
|
|
621
|
-
};
|
|
622
|
-
type PHToastFn = (content: ReactNode | string, options?: PHToastOptions) => void;
|
|
623
|
-
//#endregion
|
|
624
|
-
//#region src/types/vetra.d.ts
|
|
625
|
-
type IPackagesListener = (data: {
|
|
626
|
-
packages: DocumentModelLib$1[];
|
|
627
|
-
}) => void;
|
|
628
|
-
type IPackageListerUnsubscribe = () => void;
|
|
629
|
-
type PackageManagerInstallResult = {
|
|
630
|
-
type: "success";
|
|
631
|
-
package: DocumentModelLib$1;
|
|
632
|
-
} | {
|
|
633
|
-
type: "error";
|
|
634
|
-
error: Error;
|
|
635
|
-
};
|
|
636
|
-
interface IPackageManager extends IDocumentModelLoader$1 {
|
|
637
|
-
registryUrl: string | null;
|
|
638
|
-
packages: DocumentModelLib$1[];
|
|
639
|
-
addPackage(packageName: string): Promise<PackageManagerInstallResult> | PackageManagerInstallResult;
|
|
640
|
-
addPackages(packageNames: string[]): Promise<PackageManagerInstallResult[]> | PackageManagerInstallResult[];
|
|
641
|
-
removePackage(name: string): void;
|
|
642
|
-
updateLocalPackage(pkg: DocumentModelLib$1, version?: string): void;
|
|
643
|
-
subscribe(handler: IPackagesListener): IPackageListerUnsubscribe;
|
|
644
|
-
getPackageSource: (packageName: string) => RegistryPackageSource | null;
|
|
645
|
-
getPackageVersion: (packageName: string) => string | undefined;
|
|
646
|
-
/**
|
|
647
|
-
* Registry-installed packages keyed by their storage name (the registry
|
|
648
|
-
* spec, e.g. "@powerhousedao/clint-common"). Used by callers that need to
|
|
649
|
-
* diff against an external source of truth such as the publish-reload
|
|
650
|
-
* channel's `/__packages` SSE feed.
|
|
651
|
-
*/
|
|
652
|
-
getRegistryPackages: () => {
|
|
653
|
-
name: string;
|
|
654
|
-
version: string | undefined;
|
|
655
|
-
}[];
|
|
656
|
-
addLocalPackage: (name: string, loadedPackage: DocumentModelLib$1, version?: string) => void;
|
|
657
|
-
}
|
|
658
|
-
//#endregion
|
|
659
|
-
//#region src/hooks/node-drag-and-drop.d.ts
|
|
660
|
-
type DraggingNode = {
|
|
661
|
-
srcId: string;
|
|
662
|
-
parentId: string | null | undefined;
|
|
663
|
-
};
|
|
664
|
-
declare const addDraggingNodeEventHandler: () => void;
|
|
665
|
-
declare function useDragNode(args: {
|
|
666
|
-
srcId: string | undefined;
|
|
667
|
-
parentId: string | null | undefined;
|
|
668
|
-
}): {
|
|
669
|
-
isDragging: boolean;
|
|
670
|
-
draggable: boolean;
|
|
671
|
-
onDragStart: DragEventHandler;
|
|
672
|
-
onDragEnd: DragEventHandler;
|
|
673
|
-
};
|
|
674
|
-
declare function useDropNode(targetId: string | undefined): {
|
|
675
|
-
isDropTarget: boolean;
|
|
676
|
-
onDragEnter: DragEventHandler;
|
|
677
|
-
onDragOver: DragEventHandler;
|
|
678
|
-
onDragLeave: DragEventHandler;
|
|
679
|
-
onDrop: DragEventHandler;
|
|
680
|
-
};
|
|
681
|
-
//#endregion
|
|
682
|
-
//#region src/types/global.d.ts
|
|
683
|
-
interface BrowserReactorModule extends InProcessReactorModule {
|
|
684
|
-
pg: PGlite;
|
|
685
|
-
}
|
|
686
|
-
interface BrowserReactorClientModule extends InProcessReactorClientModule {
|
|
687
|
-
kind: "browser";
|
|
688
|
-
reactorModule: BrowserReactorModule | undefined;
|
|
689
|
-
}
|
|
690
|
-
type WorkerReactorModule = ReactorModule;
|
|
691
|
-
interface WorkerReactorClientModule extends ReactorClientModule {
|
|
692
|
-
kind: "worker";
|
|
693
|
-
reactorModule: WorkerReactorModule;
|
|
694
|
-
adminClient: IWorkerAdminClient;
|
|
695
|
-
inspector: IInspectorProxy;
|
|
696
|
-
}
|
|
697
|
-
type LOADING = null;
|
|
698
|
-
type PHGlobal = PHGlobalConfig & {
|
|
699
|
-
loading?: boolean;
|
|
700
|
-
reactorClientModule?: BrowserReactorClientModule | WorkerReactorClientModule;
|
|
701
|
-
reactorClient?: IReactorClient$1;
|
|
702
|
-
attachmentService?: IAttachmentService;
|
|
703
|
-
reactorGraphQLClient?: ReactorGraphQLClient | undefined;
|
|
704
|
-
renown?: IRenown | LOADING;
|
|
705
|
-
vetraPackageManager?: IPackageManager;
|
|
706
|
-
drives?: DocumentDriveDocument[];
|
|
707
|
-
documentCache?: IDocumentCache;
|
|
708
|
-
selectedDriveId?: string;
|
|
709
|
-
selectedNodeId?: string;
|
|
710
|
-
draggingNode?: DraggingNode;
|
|
711
|
-
modal?: PHModal;
|
|
712
|
-
selectedTimelineRevision?: string | number | null;
|
|
713
|
-
revisionHistoryVisible?: boolean;
|
|
714
|
-
selectedTimelineItem?: TimelineItem | null;
|
|
715
|
-
packageDiscoveryService?: IPackageDiscoveryService;
|
|
716
|
-
features?: Map<string, boolean>;
|
|
717
|
-
toast?: PHToastFn;
|
|
718
|
-
};
|
|
719
|
-
type PHGlobalKey = keyof PHGlobal;
|
|
720
|
-
type PHGlobalValue = PHGlobal[PHGlobalKey];
|
|
721
|
-
type UsePHGlobalValue<TValue extends PHGlobalValue> = () => TValue | undefined;
|
|
722
|
-
type SetPHGlobalValue<TValue extends PHGlobalValue> = (value: TValue | undefined) => void;
|
|
723
|
-
type AddPHGlobalEventHandler = () => void;
|
|
724
|
-
type PHGlobalEventHandlerAdders = Record<PHGlobalKey, AddPHGlobalEventHandler>;
|
|
725
|
-
type SetEvent<TKey extends PHGlobalKey> = CustomEvent<{ [key in TKey]: PHGlobal[TKey] | undefined }>;
|
|
726
|
-
declare global {
|
|
727
|
-
interface Window {
|
|
728
|
-
ph?: PHGlobal;
|
|
729
|
-
}
|
|
730
|
-
interface WindowEventMap extends GraphQLClientWindowEvents {}
|
|
731
|
-
} //# sourceMappingURL=global.d.ts.map
|
|
732
|
-
//#endregion
|
|
733
|
-
//#region src/hooks/document-cache.d.ts
|
|
734
|
-
/** Returns all documents in the reactor. */
|
|
735
|
-
declare const useDocumentCache: UsePHGlobalValue<IDocumentCache>;
|
|
736
|
-
/** Sets all of the documents in the reactor. */
|
|
737
|
-
declare const setDocumentCache: SetPHGlobalValue<IDocumentCache>;
|
|
738
|
-
/** Adds an event handler for all of the documents in the reactor. */
|
|
739
|
-
declare const addDocumentCacheEventHandler: () => void;
|
|
740
|
-
/**
|
|
741
|
-
* Retrieves a document from the reactor and subscribes to changes using React Suspense.
|
|
742
|
-
* This hook will suspend rendering while the document is loading.
|
|
743
|
-
* @param id - The document ID to retrieve, or null/undefined to skip retrieval
|
|
744
|
-
* @returns The document if found, or undefined if id is null/undefined
|
|
745
|
-
*/
|
|
746
|
-
declare function useDocument(id: string | null | undefined): PHDocument$1 | undefined;
|
|
747
|
-
/**
|
|
748
|
-
* Retrieves a document from the reactor and subscribes to changes without
|
|
749
|
-
* suspending or throwing. Use this when the ID might be stale (e.g., a
|
|
750
|
-
* previously selected node that has since been deleted) and the consumer
|
|
751
|
-
* wants to render a placeholder instead of crashing.
|
|
752
|
-
*
|
|
753
|
-
* Unlike {@link useGetDocumentAsync}, this hook subscribes to cache
|
|
754
|
-
* updates, so the returned state stays in sync with reactor changes.
|
|
755
|
-
*
|
|
756
|
-
* @param id - The document ID to retrieve, or null/undefined to skip retrieval
|
|
757
|
-
* @returns An object containing:
|
|
758
|
-
* - status: "initial" | "pending" | "success" | "error"
|
|
759
|
-
* - data: The document if successfully loaded
|
|
760
|
-
* - isPending: Whether the document is currently loading
|
|
761
|
-
* - error: Any error that occurred during loading (e.g., document not found)
|
|
762
|
-
* - reload: Function to force a refetch, or undefined when no id is supplied
|
|
763
|
-
*/
|
|
764
|
-
declare function useDocumentSafe(id: string | null | undefined): {
|
|
765
|
-
readonly status: "initial";
|
|
766
|
-
readonly isPending: false;
|
|
767
|
-
readonly error: undefined;
|
|
768
|
-
readonly data: undefined;
|
|
769
|
-
readonly reload: undefined;
|
|
770
|
-
} | {
|
|
771
|
-
readonly reload: () => Promise<PHDocument$1>;
|
|
772
|
-
readonly status: "pending";
|
|
773
|
-
readonly isPending: true;
|
|
774
|
-
readonly error: undefined;
|
|
775
|
-
readonly data: undefined;
|
|
776
|
-
} | {
|
|
777
|
-
readonly reload: () => Promise<PHDocument$1>;
|
|
778
|
-
readonly status: "success";
|
|
779
|
-
readonly isPending: false;
|
|
780
|
-
readonly error: undefined;
|
|
781
|
-
readonly data: PHDocument$1;
|
|
782
|
-
} | {
|
|
783
|
-
readonly reload: () => Promise<PHDocument$1>;
|
|
784
|
-
readonly status: "error";
|
|
785
|
-
readonly isPending: false;
|
|
786
|
-
readonly error: unknown;
|
|
787
|
-
readonly data: undefined;
|
|
788
|
-
};
|
|
789
|
-
/**
|
|
790
|
-
* Retrieves multiple documents from the reactor using React Suspense.
|
|
791
|
-
* This hook will suspend rendering while any of the documents are loading.
|
|
792
|
-
*
|
|
793
|
-
* Uses getBatch from the document cache which handles promise caching internally,
|
|
794
|
-
* ensuring stable references for useSyncExternalStore.
|
|
795
|
-
*
|
|
796
|
-
* @param ids - Array of document IDs to retrieve, or null/undefined to skip retrieval
|
|
797
|
-
* @returns An array of documents if found, or empty array if ids is null/undefined
|
|
798
|
-
*/
|
|
799
|
-
declare function useDocuments(ids: string[] | null | undefined): PHDocument$1[];
|
|
800
|
-
/**
|
|
801
|
-
* Returns a function to retrieve a document from the cache.
|
|
802
|
-
* The returned function fetches and returns a document by ID.
|
|
803
|
-
* @returns A function that takes a document ID and returns a Promise of the document
|
|
804
|
-
*/
|
|
805
|
-
declare function useGetDocument(): (id: string) => Promise<PHDocument$1>;
|
|
806
|
-
/**
|
|
807
|
-
* Returns a function to retrieve multiple documents from the cache.
|
|
808
|
-
* The returned function fetches and returns documents by their IDs.
|
|
809
|
-
* @returns A function that takes an array of document IDs and returns a Promise of the documents
|
|
810
|
-
*/
|
|
811
|
-
declare function useGetDocuments(): (ids: string[]) => Promise<PHDocument$1[]>;
|
|
812
|
-
/**
|
|
813
|
-
* Retrieves a document from the reactor without suspending rendering.
|
|
814
|
-
* Returns the current state of the document loading operation.
|
|
815
|
-
* @param id - The document ID to retrieve, or null/undefined to skip retrieval
|
|
816
|
-
* @returns An object containing:
|
|
817
|
-
* - status: "initial" | "pending" | "success" | "error"
|
|
818
|
-
* - data: The document if successfully loaded
|
|
819
|
-
* - isPending: Boolean indicating if the document is currently loading
|
|
820
|
-
* - error: Any error that occurred during loading
|
|
821
|
-
* - reload: Function to force reload the document from cache
|
|
822
|
-
*/
|
|
823
|
-
declare function useGetDocumentAsync(id: string | null | undefined): {
|
|
824
|
-
readonly status: "initial";
|
|
825
|
-
readonly data: undefined;
|
|
826
|
-
readonly isPending: false;
|
|
827
|
-
readonly error: undefined;
|
|
828
|
-
readonly reload: undefined;
|
|
829
|
-
} | {
|
|
830
|
-
readonly reload: () => Promise<PHDocument$1>;
|
|
831
|
-
readonly status: "pending";
|
|
832
|
-
readonly isPending: true;
|
|
833
|
-
readonly error: undefined;
|
|
834
|
-
readonly data: undefined;
|
|
835
|
-
} | {
|
|
836
|
-
readonly reload: () => Promise<PHDocument$1>;
|
|
837
|
-
readonly status: "success";
|
|
838
|
-
readonly isPending: false;
|
|
839
|
-
readonly error: undefined;
|
|
840
|
-
readonly data: PHDocument$1;
|
|
841
|
-
} | {
|
|
842
|
-
readonly reload: () => Promise<PHDocument$1>;
|
|
843
|
-
readonly status: "error";
|
|
844
|
-
readonly isPending: false;
|
|
845
|
-
readonly error: unknown;
|
|
846
|
-
readonly data: undefined;
|
|
847
|
-
};
|
|
848
|
-
//#endregion
|
|
849
390
|
//#region src/hooks/drives.d.ts
|
|
850
391
|
/** Returns all of the drives in the reactor */
|
|
851
392
|
declare const useDrives: UsePHGlobalValue<DocumentDriveDocument[]>;
|
|
@@ -858,25 +399,6 @@ declare const addDrivesEventHandler: () => void;
|
|
|
858
399
|
declare const useLoading: () => boolean | undefined, setLoading: (value: boolean | undefined) => void, addLoadingEventHandler: () => void;
|
|
859
400
|
declare const loading: LOADING;
|
|
860
401
|
//#endregion
|
|
861
|
-
//#region src/hooks/reactor.d.ts
|
|
862
|
-
/** Returns the reactor client module (in-process or worker-backed) */
|
|
863
|
-
declare const useReactorClientModule: UsePHGlobalValue$1<BrowserReactorClientModule$1 | WorkerReactorClientModule$1>;
|
|
864
|
-
/** Sets the reactor client module */
|
|
865
|
-
declare const setReactorClientModule: SetPHGlobalValue$1<BrowserReactorClientModule$1 | WorkerReactorClientModule$1>;
|
|
866
|
-
/** Adds an event handler for the reactor client module */
|
|
867
|
-
declare const addReactorClientModuleEventHandler: AddPHGlobalEventHandler$1;
|
|
868
|
-
/** Returns the reactor client */
|
|
869
|
-
declare const useReactorClient: UsePHGlobalValue$1<IReactorClient$1>;
|
|
870
|
-
/** Sets the reactor client */
|
|
871
|
-
declare const setReactorClient: SetPHGlobalValue$1<IReactorClient$1>;
|
|
872
|
-
/** Adds an event handler for the reactor client */
|
|
873
|
-
declare const addReactorClientEventHandler: AddPHGlobalEventHandler$1;
|
|
874
|
-
declare const useSync: () => ISyncManager | undefined;
|
|
875
|
-
declare const useSyncList: () => _powerhousedao_reactor0.Remote[];
|
|
876
|
-
declare const useModelRegistry: () => IDocumentModelRegistry | undefined;
|
|
877
|
-
declare const useDatabase: () => Kysely<Database$1> | undefined;
|
|
878
|
-
declare const usePGlite: () => PGlite | undefined;
|
|
879
|
-
//#endregion
|
|
880
402
|
//#region src/hooks/connection-state.d.ts
|
|
881
403
|
/**
|
|
882
404
|
* Returns a map of remote name to connection state snapshot for all remotes.
|
|
@@ -888,63 +410,15 @@ declare function useConnectionStates(): ReadonlyMap<string, ConnectionStateSnaps
|
|
|
888
410
|
*/
|
|
889
411
|
declare function useConnectionState(remoteName: string): ConnectionStateSnapshot$1 | undefined;
|
|
890
412
|
//#endregion
|
|
891
|
-
//#region src/hooks/renown.d.ts
|
|
892
|
-
/** Adds an event handler for the renown instance */
|
|
893
|
-
declare const addRenownEventHandler: () => void;
|
|
894
|
-
/** Returns the renown instance */
|
|
895
|
-
declare const useRenown: () => IRenown | LOADING | undefined;
|
|
896
|
-
/** Sets the renown instance */
|
|
897
|
-
declare const setRenown: (value: IRenown | LOADING | undefined) => void;
|
|
898
|
-
/** Returns the DID from the renown instance */
|
|
899
|
-
declare function useDid(): string | undefined;
|
|
900
|
-
/** Returns the current user from the renown instance, subscribing to user events */
|
|
901
|
-
declare function useUser(): User | undefined;
|
|
902
|
-
/** Returns the login status, subscribing to renown status events */
|
|
903
|
-
declare function useLoginStatus(): LoginStatus | "loading" | undefined;
|
|
904
|
-
//#endregion
|
|
905
|
-
//#region src/hooks/dispatch.d.ts
|
|
906
|
-
/**
|
|
907
|
-
* Returns a dispatch function for dispatching actions to a document.
|
|
908
|
-
* Used internally by other hooks to provide action dispatching capabilities.
|
|
909
|
-
* @param document - The document to dispatch actions to.
|
|
910
|
-
* @returns A tuple containing the document and a dispatch function.
|
|
911
|
-
*/
|
|
912
|
-
type DispatchFn<TAction> = (actionOrActions: TAction[] | TAction | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void) => void;
|
|
913
|
-
type UseDispatchResult<TDocument, TAction> = readonly [TDocument | undefined, DispatchFn<TAction>];
|
|
914
|
-
declare function useDispatch<TDocument = PHDocument$1, TAction = Action>(document: TDocument | undefined): UseDispatchResult<TDocument, TAction>;
|
|
915
|
-
//#endregion
|
|
916
413
|
//#region src/hooks/document-by-id.d.ts
|
|
917
414
|
/** Returns a document by id. */
|
|
918
|
-
declare function useDocumentById(id: string | null | undefined): UseDispatchResult<PHDocument$1, Action>;
|
|
415
|
+
declare function useDocumentById(id: string | null | undefined): UseDispatchResult<PHDocument$1, Action$1>;
|
|
919
416
|
/** Returns documents by ids. */
|
|
920
417
|
declare function useDocumentsByIds(ids: string[] | null | undefined): PHDocument$1[];
|
|
921
418
|
//#endregion
|
|
922
|
-
//#region src/hooks/document-model-modules.d.ts
|
|
923
|
-
declare function useDocumentModelModules(): DocumentModelModule[] | undefined;
|
|
924
|
-
declare function useDocumentModelModuleById(id: string | null | undefined): DocumentModelModule | undefined;
|
|
925
|
-
//#endregion
|
|
926
419
|
//#region src/hooks/document-of-type.d.ts
|
|
927
420
|
/** Returns a document of a specific type, throws an error if the found document has a different type */
|
|
928
|
-
declare function useDocumentOfType<TDocument extends PHDocument$1, TAction extends Action>(documentId: string | null | undefined, documentType: string | null | undefined): never[] | [TDocument, DocumentDispatch$1<TAction>];
|
|
929
|
-
//#endregion
|
|
930
|
-
//#region src/hooks/document-operations.d.ts
|
|
931
|
-
type InternalState = {
|
|
932
|
-
globalOperations: Operation[];
|
|
933
|
-
localOperations: Operation[];
|
|
934
|
-
isLoading: boolean;
|
|
935
|
-
error: Error | undefined;
|
|
936
|
-
};
|
|
937
|
-
type DocumentOperationsState = InternalState & {
|
|
938
|
-
refetch: () => void;
|
|
939
|
-
};
|
|
940
|
-
/**
|
|
941
|
-
* Hook to fetch document operations via the reactor client.
|
|
942
|
-
* Operations are no longer auto-populated on documents and must be fetched explicitly.
|
|
943
|
-
*
|
|
944
|
-
* @param documentId - The document ID to fetch operations for
|
|
945
|
-
* @returns Object containing globalOperations, localOperations, isLoading, and error
|
|
946
|
-
*/
|
|
947
|
-
declare function useDocumentOperations(documentId: string | null | undefined): DocumentOperationsState;
|
|
421
|
+
declare function useDocumentOfType<TDocument extends PHDocument$1, TAction extends Action$1>(documentId: string | null | undefined, documentType: string | null | undefined): never[] | [TDocument, DocumentDispatch$1<TAction>];
|
|
948
422
|
//#endregion
|
|
949
423
|
//#region src/hooks/document-types.d.ts
|
|
950
424
|
/** Returns the document types a app supports.
|
|
@@ -954,6 +428,32 @@ declare function useDocumentOperations(documentId: string | null | undefined): D
|
|
|
954
428
|
*/
|
|
955
429
|
declare function useDocumentTypes(): string[] | undefined;
|
|
956
430
|
//#endregion
|
|
431
|
+
//#region src/hooks/document-version-status.d.ts
|
|
432
|
+
type DocumentVersionStatus = {
|
|
433
|
+
kind: "current";
|
|
434
|
+
documentVersion: number;
|
|
435
|
+
} | {
|
|
436
|
+
kind: "upgrade-available";
|
|
437
|
+
documentVersion: number;
|
|
438
|
+
latestVersion: number;
|
|
439
|
+
canUpgrade: boolean;
|
|
440
|
+
} | {
|
|
441
|
+
kind: "unsupported";
|
|
442
|
+
documentVersion: number;
|
|
443
|
+
availableVersions: number[];
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* Classifies a document's model version against the installed module
|
|
447
|
+
* versions. Pure logic, extracted for testing.
|
|
448
|
+
*/
|
|
449
|
+
declare function getDocumentVersionStatus(documentVersion: number, availableVersions: number[], hasUpgradePath: (fromVersion: number, toVersion: number) => boolean): DocumentVersionStatus | undefined;
|
|
450
|
+
/**
|
|
451
|
+
* Compares the given document's model version against the versions available
|
|
452
|
+
* from installed Vetra packages. Returns undefined while packages load or
|
|
453
|
+
* when the document type has no installed modules.
|
|
454
|
+
*/
|
|
455
|
+
declare function useDocumentVersionStatus(document: PHDocument$1 | undefined): DocumentVersionStatus | undefined;
|
|
456
|
+
//#endregion
|
|
957
457
|
//#region src/hooks/download-document.d.ts
|
|
958
458
|
declare function useDownloadDocument(id: string | undefined): () => Promise<void>;
|
|
959
459
|
//#endregion
|
|
@@ -1039,13 +539,13 @@ declare function showPHModal(modal: PHModal$1): void;
|
|
|
1039
539
|
/** Closes the current modal */
|
|
1040
540
|
declare function closePHModal(): void;
|
|
1041
541
|
/** Shows the create document modal */
|
|
1042
|
-
declare function showCreateDocumentModal(documentType: string): void;
|
|
542
|
+
declare function showCreateDocumentModal(documentType: string, documentModelVersion?: number): void;
|
|
1043
543
|
/** Shows the delete node modal */
|
|
1044
544
|
declare function showDeleteNodeModal(nodeOrId: Node | string): void;
|
|
1045
545
|
//#endregion
|
|
1046
546
|
//#region src/hooks/node-actions.d.ts
|
|
1047
547
|
declare function useNodeActions(): {
|
|
1048
|
-
onAddFile: (file: File, parent: Node | undefined) => Promise<
|
|
548
|
+
onAddFile: (file: File, parent: Node | undefined) => Promise<AddedFileNode | undefined>;
|
|
1049
549
|
onAddFolder: (name: string, parent: Node | undefined) => Promise<_powerhousedao_shared_document_drive0.FolderNode | undefined>;
|
|
1050
550
|
onRenameNode: (newName: string, node: Node) => Promise<Node | undefined>;
|
|
1051
551
|
onCopyNode: (src: Node, target: Node | undefined) => Promise<void>;
|
|
@@ -1090,12 +590,12 @@ declare function hideRevisionHistory(): void;
|
|
|
1090
590
|
/** Returns the selected document id */
|
|
1091
591
|
declare function useSelectedDocumentId(): string | undefined;
|
|
1092
592
|
/** Returns the selected document. */
|
|
1093
|
-
declare function useSelectedDocument(): readonly [PHDocument$1, DispatchFn<Action>];
|
|
593
|
+
declare function useSelectedDocument(): readonly [PHDocument$1, DispatchFn<Action$1>];
|
|
1094
594
|
/** Returns the selected document. */
|
|
1095
|
-
declare function useSelectedDocumentSafe(): UseDispatchResult<PHDocument$1, Action>;
|
|
595
|
+
declare function useSelectedDocumentSafe(): UseDispatchResult<PHDocument$1, Action$1>;
|
|
1096
596
|
/** Returns the selected document of a specific type, throws an error if the found document has a different type */
|
|
1097
597
|
declare function useSelectedDocumentOfType(documentType: null | undefined): never[];
|
|
1098
|
-
declare function useSelectedDocumentOfType<TDocument extends PHDocument$1, TAction extends Action>(documentType: string): [TDocument, DocumentDispatch$1<TAction>];
|
|
598
|
+
declare function useSelectedDocumentOfType<TDocument extends PHDocument$1, TAction extends Action$1>(documentType: string): [TDocument, DocumentDispatch$1<TAction>];
|
|
1099
599
|
//#endregion
|
|
1100
600
|
//#region src/hooks/selected-drive.d.ts
|
|
1101
601
|
/** Returns the selected drive id */
|
|
@@ -1189,6 +689,66 @@ declare const setPHToast: (value: PHToastFn | undefined) => void;
|
|
|
1189
689
|
/** Adds an event handler for the toast */
|
|
1190
690
|
declare const addToastEventHandler: () => void;
|
|
1191
691
|
//#endregion
|
|
692
|
+
//#region src/hooks/use-can-execute.d.ts
|
|
693
|
+
/**
|
|
694
|
+
* Where an evaluation stands.
|
|
695
|
+
*
|
|
696
|
+
* `unsupported` is not a verdict. It says this deployment answers no
|
|
697
|
+
* authorization preflight -- because no reactor client module is set, or because
|
|
698
|
+
* the reactor's authEnforcement flag is off -- so a caller should render its
|
|
699
|
+
* controls as it did before it asked, and let the submit path refuse. Reading it
|
|
700
|
+
* as a denial would disable every control wherever enforcement is off.
|
|
701
|
+
*/
|
|
702
|
+
type CanExecuteStatus = "idle" | "loading" | "ready" | "unsupported" | "error";
|
|
703
|
+
type InternalState = {
|
|
704
|
+
status: CanExecuteStatus;
|
|
705
|
+
evaluations?: Evaluation[];
|
|
706
|
+
allAllowed?: boolean;
|
|
707
|
+
anyAllowed?: boolean;
|
|
708
|
+
allDenied?: boolean;
|
|
709
|
+
anyDenied?: boolean;
|
|
710
|
+
error?: Error;
|
|
711
|
+
};
|
|
712
|
+
/** What `useCanExecute` returns; exported so consumers can name it. */
|
|
713
|
+
type CanExecuteState = InternalState & {
|
|
714
|
+
refetch: () => void;
|
|
715
|
+
};
|
|
716
|
+
/**
|
|
717
|
+
* Predicts whether the current subject may execute each of a set of candidate
|
|
718
|
+
* operations on one document, so a UI can disable a control rather than offer an
|
|
719
|
+
* action that fails on submit.
|
|
720
|
+
*
|
|
721
|
+
* The answer is a prediction and not a promise: the submit path is the only
|
|
722
|
+
* authority, and this cannot reproduce the append condition real admission
|
|
723
|
+
* compiles. Treat an allow as "worth offering", never as "will succeed", and
|
|
724
|
+
* keep handling the submit's refusal.
|
|
725
|
+
*
|
|
726
|
+
* A candidate whose verdict depends on its input has to carry that input, since
|
|
727
|
+
* a conditional grant reads it. A candidate standing for a form the user has not
|
|
728
|
+
* filled in yet predicts the verdict an empty form earns.
|
|
729
|
+
*
|
|
730
|
+
* Deliberately reads the client off the reactor client module rather than
|
|
731
|
+
* through `useReactorClient`: the latter hands back the minimal browser client
|
|
732
|
+
* contract, which does not carry the preflight, and the plain-GraphQL setup that
|
|
733
|
+
* implements it sets no module at all. No module therefore reports
|
|
734
|
+
* `unsupported`.
|
|
735
|
+
*
|
|
736
|
+
* Re-evaluated when the document's revision moves, which covers a policy change
|
|
737
|
+
* written to the document being asked about. Two gaps are known and accepted:
|
|
738
|
+
*
|
|
739
|
+
* - A group membership change is a write to the *group* document, so it fires no
|
|
740
|
+
* change event for this one. A group-gated grant can therefore be stale here
|
|
741
|
+
* until something else re-evaluates.
|
|
742
|
+
* - A change event carries no scope, so any write to the document re-evaluates,
|
|
743
|
+
* including one that cannot affect a verdict.
|
|
744
|
+
*
|
|
745
|
+
* @param documentId - The document the candidates target, or null/undefined to stay idle
|
|
746
|
+
* @param candidates - Operations to predict a verdict for. Read by content, so an inline array is fine
|
|
747
|
+
* @param branch - Branch to evaluate against, defaulting to main
|
|
748
|
+
* @param subject - Optional subject to decide for instead of the client's signer
|
|
749
|
+
*/
|
|
750
|
+
declare function useCanExecute(documentId: string | null | undefined, candidates: ActionCandidate[], branch?: string, subject?: AuthSubject): CanExecuteState;
|
|
751
|
+
//#endregion
|
|
1192
752
|
//#region src/hooks/use-drive-system-info.d.ts
|
|
1193
753
|
type DriveSystemInfoState = {
|
|
1194
754
|
status: "local";
|
|
@@ -1276,33 +836,106 @@ declare const addVetraPackageManagerEventHandler: () => void;
|
|
|
1276
836
|
/** Sets the Vetra package manager and registers its packages */
|
|
1277
837
|
declare function setVetraPackageManager(packageManager: IPackageManager): void;
|
|
1278
838
|
//#endregion
|
|
1279
|
-
//#region src/hooks/attachment-
|
|
1280
|
-
/**
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
839
|
+
//#region src/hooks/attachment-progress.d.ts
|
|
840
|
+
/**
|
|
841
|
+
* Progress in both units. `percent` is the house unit (0-100, matching
|
|
842
|
+
* `FileUploadProgress.progress` and design-system's progress bar); the raw
|
|
843
|
+
* byte counts travel alongside so a caller can render "3.2 / 10 MB" without
|
|
844
|
+
* reversing the arithmetic.
|
|
845
|
+
*
|
|
846
|
+
* Nesting them in an object is deliberate: the hook used to return a bare
|
|
847
|
+
* 0..1 `progress` number, a third convention nobody noticed because nothing
|
|
848
|
+
* consumed it. Any future call site now fails to compile rather than
|
|
849
|
+
* silently scaling by 100.
|
|
850
|
+
*/
|
|
851
|
+
type AttachmentProgressState = {
|
|
852
|
+
/** 0-100. Always 0 while `indeterminate`, since no position is known. */percent: number;
|
|
853
|
+
loaded: number;
|
|
854
|
+
total: number | undefined;
|
|
855
|
+
indeterminate: boolean;
|
|
856
|
+
};
|
|
1286
857
|
//#endregion
|
|
1287
858
|
//#region src/hooks/use-attachments.d.ts
|
|
1288
859
|
/** Returns an IAttachmentClient wrapping the current IAttachmentService, or undefined if none is set. */
|
|
1289
860
|
declare function useAttachments(): IAttachmentClient | undefined;
|
|
1290
|
-
/**
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
861
|
+
/**
|
|
862
|
+
* Upload lifecycle stage, derived from the client's own `AttachmentStage` plus
|
|
863
|
+
* an `idle` state the client has no reason to model.
|
|
864
|
+
*
|
|
865
|
+
* The compile-time guard below is the point: a stage added upstream becomes a
|
|
866
|
+
* type error here rather than a string that silently never matches. The old
|
|
867
|
+
* `UploadStatus` enum was a parallel vocabulary that had already drifted (it
|
|
868
|
+
* never gained `Reserving`).
|
|
869
|
+
*/
|
|
870
|
+
type AttachmentUploadStage = "idle" | "hashing" | "reserving" | "uploading" | "done" | "error";
|
|
871
|
+
type AttachmentDownloadStage = "idle" | "requesting-download-target" | "downloading" | "done" | "error";
|
|
872
|
+
type UseAttachmentPreviewInput = {
|
|
873
|
+
documentId: string; /** Pass null/undefined to render nothing (the hook stays idle). */
|
|
874
|
+
ref: AttachmentDownloadInput["ref"] | null | undefined;
|
|
875
|
+
/**
|
|
876
|
+
* How many times a failed attempt is retried before the hook settles on
|
|
877
|
+
* error. Retrying matters because a freshly attached ref is not
|
|
878
|
+
* immediately downloadable: the server's reference index authorizes
|
|
879
|
+
* downloads and only learns the (document, ref) pair once the operation
|
|
880
|
+
* has synced and been projected. Defaults to 3.
|
|
881
|
+
*/
|
|
882
|
+
retries?: number; /** Fixed delay between attempts, in milliseconds. Defaults to 3000. */
|
|
883
|
+
retryDelayMs?: number;
|
|
884
|
+
};
|
|
885
|
+
type UseAttachmentPreviewReturn = {
|
|
886
|
+
/** Object URL ready for img/iframe/video src; undefined while loading or on error. */url: string | undefined;
|
|
887
|
+
header: AttachmentHeader | undefined;
|
|
888
|
+
loading: boolean;
|
|
889
|
+
error: Error | undefined;
|
|
890
|
+
stage: AttachmentDownloadStage;
|
|
891
|
+
progress: AttachmentProgressState; /** 1-based attempt currently in flight; 0 while idle. */
|
|
892
|
+
attempt: number;
|
|
893
|
+
maxAttempts: number;
|
|
894
|
+
/**
|
|
895
|
+
* The most recent failed attempt while the hook is still retrying. Exposed
|
|
896
|
+
* because the retry loop otherwise swallows it, leaving a preview requested
|
|
897
|
+
* right after attaching as an indefinite spinner with no explanation.
|
|
898
|
+
*/
|
|
899
|
+
lastError: Error | undefined;
|
|
900
|
+
};
|
|
901
|
+
/**
|
|
902
|
+
* Document-authorized inline preview of an attachment. Downloads the bytes
|
|
903
|
+
* through the normal authorized flow, exposes them as an object URL, and
|
|
904
|
+
* revokes it automatically on unmount and whenever documentId/ref change —
|
|
905
|
+
* editors never touch blobs or URL lifecycles. Failed attempts are retried
|
|
906
|
+
* (`retries` × `retryDelayMs`) so a preview requested right after attaching
|
|
907
|
+
* appears as soon as the server's reference index catches up. Progress resets
|
|
908
|
+
* per attempt; nothing resumes.
|
|
909
|
+
*/
|
|
910
|
+
declare function useAttachmentPreview({
|
|
911
|
+
documentId,
|
|
912
|
+
ref,
|
|
913
|
+
retries,
|
|
914
|
+
retryDelayMs
|
|
915
|
+
}: UseAttachmentPreviewInput): UseAttachmentPreviewReturn;
|
|
1298
916
|
type UseAttachmentUploadReturn = {
|
|
1299
917
|
preprocess: (file: Blob) => Promise<PreprocessResult>;
|
|
1300
|
-
upload: (results: PreprocessResult) => Promise<void>;
|
|
1301
|
-
|
|
1302
|
-
|
|
918
|
+
upload: (results: PreprocessResult) => Promise<void>; /** Aborts the transfer in flight; the upload promise rejects. */
|
|
919
|
+
cancel: () => void;
|
|
920
|
+
/**
|
|
921
|
+
* Returns to idle, discarding the previous result and error. Aborts a
|
|
922
|
+
* transfer still in flight, so the `upload` promise rejects.
|
|
923
|
+
*/
|
|
924
|
+
reset: () => void;
|
|
925
|
+
stage: AttachmentUploadStage;
|
|
926
|
+
progress: AttachmentProgressState;
|
|
927
|
+
result: AttachmentUploadResult | undefined;
|
|
1303
928
|
error: Error | undefined;
|
|
1304
929
|
};
|
|
1305
|
-
/**
|
|
930
|
+
/**
|
|
931
|
+
* Full attachment preprocess + upload lifecycle with byte-level progress.
|
|
932
|
+
*
|
|
933
|
+
* The two-call split is kept on purpose: the ref must reach the document
|
|
934
|
+
* before the bytes are committed, so callers preprocess, dispatch the
|
|
935
|
+
* operation, then upload. The second call routes through `client.upload`
|
|
936
|
+
* rather than reimplementing the flow, which is what makes progress, dedup
|
|
937
|
+
* reporting and cancellation identical to the non-React path.
|
|
938
|
+
*/
|
|
1306
939
|
declare function useAttachmentUpload(): UseAttachmentUploadReturn;
|
|
1307
940
|
//#endregion
|
|
1308
941
|
//#region src/pglite/drop.d.ts
|
|
@@ -1347,105 +980,24 @@ declare class RegistryClient {
|
|
|
1347
980
|
//#region src/registry/fetchers.d.ts
|
|
1348
981
|
declare function trimTrailingSlash(url: string): string;
|
|
1349
982
|
declare function getPackages(registryUrl: string): Promise<PackageInfo[]>;
|
|
1350
|
-
declare function getPackagesByDocumentType(registryUrl: string, documentType: string): Promise<string[]>;
|
|
1351
|
-
//#endregion
|
|
1352
|
-
//#region src/remote-controller/types.d.ts
|
|
1353
|
-
type RemoteControllerGraphQLClient = Pick<ReactorGraphQLClient, "GetDocument" | "GetDocumentWithOperations" | "GetDocumentOperations" | "MutateDocument" | "CreateDocument" | "CreateEmptyDocument" | "DeleteDocument" | "BatchGetDocumentOperations" | "BatchGetDocumentWithOperations">;
|
|
1354
|
-
type RemoteDocumentData = PhDocumentFieldsFragment;
|
|
1355
|
-
type RemoteOperation = GetDocumentOperationsQuery["documentOperations"]["items"][number];
|
|
1356
|
-
type RemoteOperationResultPage = GetDocumentOperationsQuery["documentOperations"];
|
|
1357
983
|
/**
|
|
1358
|
-
*
|
|
984
|
+
* Fetch one page of the registry listing (trimmed items). Backed by the
|
|
985
|
+
* paginated `GET /packages?limit=&offset=&search=` mode. Used by the Package
|
|
986
|
+
* Manager's Available tab for infinite scroll + server-side search.
|
|
1359
987
|
*/
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
branch?: string; /** Parent document identifier for creating new documents. */
|
|
1366
|
-
parentIdentifier?: string; /** Conflict resolution strategy when remote has new operations. Default: no check (current behavior). */
|
|
1367
|
-
onConflict?: ConflictStrategy; /** Called when a streaming-mode push fails. If not provided, errors are silently swallowed. */
|
|
1368
|
-
onPushError?: (error: unknown) => void; /** Number of operations to fetch per page. Defaults to 100. */
|
|
1369
|
-
operationsPageSize?: number;
|
|
1370
|
-
};
|
|
988
|
+
declare function getPackagePage(registryUrl: string, params: {
|
|
989
|
+
limit: number;
|
|
990
|
+
offset: number;
|
|
991
|
+
search?: string;
|
|
992
|
+
}): Promise<PackagePage>;
|
|
1371
993
|
/**
|
|
1372
|
-
*
|
|
994
|
+
* Fetch full package info for every package exposing a given document type,
|
|
995
|
+
* via the legacy `?documentType=` filter (returns full PackageInfo objects,
|
|
996
|
+
* not just names). Used by the MissingPackageModal to offer installs without
|
|
997
|
+
* loading the entire paginated listing.
|
|
1373
998
|
*/
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
actionCount: number; /** The actions that were sent to the server (after signing, if applicable). */
|
|
1377
|
-
operations: ReadonlyArray<Action>;
|
|
1378
|
-
};
|
|
1379
|
-
/**
|
|
1380
|
-
* Sync status of the controller.
|
|
1381
|
-
*/
|
|
1382
|
-
type SyncStatus = {
|
|
1383
|
-
pendingActionCount: number;
|
|
1384
|
-
connected: boolean;
|
|
1385
|
-
documentId: string;
|
|
1386
|
-
remoteRevision: Record<string, number>;
|
|
1387
|
-
};
|
|
1388
|
-
/**
|
|
1389
|
-
* A tracked action with operation context for signing.
|
|
1390
|
-
*/
|
|
1391
|
-
type TrackedAction = {
|
|
1392
|
-
action: Action;
|
|
1393
|
-
prevOpHash: string;
|
|
1394
|
-
prevOpIndex: number;
|
|
1395
|
-
};
|
|
1396
|
-
/** Information about a detected conflict. */
|
|
1397
|
-
type ConflictInfo = {
|
|
1398
|
-
/** Remote operations added since the last pull, grouped by scope. */remoteOperations: Record<string, RemoteOperation[]>; /** Local actions pending push. */
|
|
1399
|
-
localActions: TrackedAction[]; /** Remote revision at last pull. */
|
|
1400
|
-
knownRevision: Record<string, number>; /** Current remote revision. */
|
|
1401
|
-
currentRevision: Record<string, number>;
|
|
1402
|
-
};
|
|
1403
|
-
/** Custom merge handler receives conflict info and returns actions to push (or throws to abort). */
|
|
1404
|
-
type MergeHandler = (conflict: ConflictInfo) => Action[] | Promise<Action[]>;
|
|
1405
|
-
/** Conflict resolution strategy. */
|
|
1406
|
-
type ConflictStrategy = "reject" | "rebase" | MergeHandler;
|
|
1407
|
-
/** Event emitted when the document changes. */
|
|
1408
|
-
type RemoteDocumentChangeEvent = {
|
|
1409
|
-
source: "action" | "pull";
|
|
1410
|
-
document: PHDocument$1<PHBaseState>;
|
|
1411
|
-
};
|
|
1412
|
-
/** Listener for document change events. */
|
|
1413
|
-
type DocumentChangeListener = (event: RemoteDocumentChangeEvent) => void;
|
|
1414
|
-
/** Result of fetching operations. */
|
|
1415
|
-
type GetOperationsResult = {
|
|
1416
|
-
operationsByScope: Record<string, RemoteOperation[]>;
|
|
1417
|
-
};
|
|
1418
|
-
/** Result of fetching a document together with its operations. */
|
|
1419
|
-
type GetDocumentWithOperationsResult = {
|
|
1420
|
-
document: RemoteDocumentData;
|
|
1421
|
-
childIds: ReadonlyArray<string>;
|
|
1422
|
-
operations: GetOperationsResult;
|
|
1423
|
-
};
|
|
1424
|
-
interface IRemoteClient {
|
|
1425
|
-
getDocument(identifier: string, branch?: string): Promise<GetDocumentResult | null>;
|
|
1426
|
-
/** Fetch document metadata and operations in a single call. */
|
|
1427
|
-
getDocumentWithOperations(identifier: string, branch?: string, sinceRevision?: Record<string, number>, scopes?: string[]): Promise<GetDocumentWithOperationsResult | null>;
|
|
1428
|
-
getAllOperations(documentId: string, branch?: string, sinceRevision?: Record<string, number>, scopes?: string[]): Promise<GetOperationsResult>;
|
|
1429
|
-
pushActions(documentIdentifier: string, actions: ReadonlyArray<NonNullable<unknown>>, branch?: string): Promise<RemoteDocumentData>;
|
|
1430
|
-
createDocument(document: NonNullable<unknown>, parentIdentifier?: string): Promise<RemoteDocumentData>;
|
|
1431
|
-
createEmptyDocument(documentType: string, parentIdentifier?: string): Promise<RemoteDocumentData>;
|
|
1432
|
-
deleteDocument(identifier: string, propagate?: PropagationMode): Promise<boolean>;
|
|
1433
|
-
}
|
|
1434
|
-
type GetDocumentResult = {
|
|
1435
|
-
document: RemoteDocumentData;
|
|
1436
|
-
childIds: ReadonlyArray<string>;
|
|
1437
|
-
};
|
|
1438
|
-
interface IRemoteController<TState extends PHBaseState = PHBaseState> {
|
|
1439
|
-
readonly header: PHDocumentHeader;
|
|
1440
|
-
readonly state: TState;
|
|
1441
|
-
readonly operations: DocumentOperations;
|
|
1442
|
-
readonly document: PHDocument$1<TState>;
|
|
1443
|
-
readonly status: SyncStatus;
|
|
1444
|
-
onChange(listener: DocumentChangeListener): () => void;
|
|
1445
|
-
push(): Promise<PushResult>;
|
|
1446
|
-
pull(): Promise<RemoteDocumentData>;
|
|
1447
|
-
delete(propagate?: PropagationMode): Promise<boolean>;
|
|
1448
|
-
}
|
|
999
|
+
declare function getPackagesForDocumentType(registryUrl: string, documentType: string): Promise<PackageInfo[]>;
|
|
1000
|
+
declare function getPackagesByDocumentType(registryUrl: string, documentType: string): Promise<string[]>;
|
|
1449
1001
|
//#endregion
|
|
1450
1002
|
//#region src/remote-controller/action-tracker.d.ts
|
|
1451
1003
|
/**
|
|
@@ -1455,7 +1007,7 @@ interface IRemoteController<TState extends PHBaseState = PHBaseState> {
|
|
|
1455
1007
|
declare class ActionTracker {
|
|
1456
1008
|
private pending;
|
|
1457
1009
|
/** Track a new action with its operation context. */
|
|
1458
|
-
track(action: Action, prevOpHash: string, prevOpIndex: number): void;
|
|
1010
|
+
track(action: Action$1, prevOpHash: string, prevOpIndex: number): void;
|
|
1459
1011
|
/** Flush all pending actions and return them. Clears the internal queue. */
|
|
1460
1012
|
flush(): TrackedAction[];
|
|
1461
1013
|
/** Number of pending actions. */
|
|
@@ -1501,8 +1053,14 @@ declare class RemoteClient implements IRemoteClient {
|
|
|
1501
1053
|
private fetchOperationPages;
|
|
1502
1054
|
/** Fetch all pages of operations for a single scope (or all scopes if none specified). */
|
|
1503
1055
|
private fetchOperationsForScope;
|
|
1504
|
-
/**
|
|
1505
|
-
|
|
1056
|
+
/**
|
|
1057
|
+
* Push actions to an existing document via MutateDocument.
|
|
1058
|
+
*
|
|
1059
|
+
* Takes the wire shape rather than an in-process `Action`: a signature is a
|
|
1060
|
+
* tuple in one and a string in the other, so the caller projects before it
|
|
1061
|
+
* gets here.
|
|
1062
|
+
*/
|
|
1063
|
+
pushActions(documentIdentifier: string, actions: ReadonlyArray<ActionInput>, branch?: string): Promise<RemoteDocumentData>;
|
|
1506
1064
|
/** Create a new document on the remote. */
|
|
1507
1065
|
createDocument(document: NonNullable<unknown>, parentIdentifier?: string): Promise<RemoteDocumentData>;
|
|
1508
1066
|
/** Create an empty document of a given type on the remote. */
|
|
@@ -1673,14 +1231,16 @@ type NodeKind = "FOLDER" | "FILE";
|
|
|
1673
1231
|
//#endregion
|
|
1674
1232
|
//#region src/types/processor-host-module.d.ts
|
|
1675
1233
|
/**
|
|
1676
|
-
*
|
|
1677
|
-
*
|
|
1678
|
-
* reactor-attachments without creating a circular package reference.
|
|
1234
|
+
* Module hosts pass to processor factories: the reactor-level module plus the
|
|
1235
|
+
* attachment client, which shared and reactor cannot name.
|
|
1679
1236
|
*/
|
|
1680
|
-
interface
|
|
1681
|
-
client: IReactorClient$1;
|
|
1237
|
+
interface IProcessorHostModule extends IReactorProcessorHostModuleBase {
|
|
1682
1238
|
attachments: IAttachmentClient;
|
|
1683
1239
|
}
|
|
1240
|
+
/** @deprecated Use `IProcessorHostModule`. */
|
|
1241
|
+
type IReactorProcessorHostModule = IProcessorHostModule;
|
|
1242
|
+
/** Takes the host module and builds processor factories using its context. */
|
|
1243
|
+
type ProcessorFactoryBuilder = ProcessorFactoryBuilder$1<IProcessorHostModule>;
|
|
1684
1244
|
//#endregion
|
|
1685
1245
|
//#region src/utils/documents.d.ts
|
|
1686
1246
|
declare function isDocumentTypeSupported(documentType: string, supportedDocuments: string[] | null | undefined): boolean;
|
|
@@ -1696,7 +1256,7 @@ declare function defaultHandleError(error: Error): void;
|
|
|
1696
1256
|
declare function downloadDocument(document: PHDocument$1 | undefined, handleError?: typeof defaultHandleError): void;
|
|
1697
1257
|
//#endregion
|
|
1698
1258
|
//#region src/utils/get-revision-from-date.d.ts
|
|
1699
|
-
declare const getRevisionFromDate: (startDate?: Date, endDate?: Date, operations?: Operation[]) => number;
|
|
1259
|
+
declare const getRevisionFromDate: (startDate?: Date, endDate?: Date, operations?: Operation$1[]) => number;
|
|
1700
1260
|
//#endregion
|
|
1701
1261
|
//#region src/utils/nodes.d.ts
|
|
1702
1262
|
/** Sorts nodes by name. */
|
|
@@ -1718,6 +1278,43 @@ declare function getDocumentGraphqlQuery(): string;
|
|
|
1718
1278
|
declare function buildDocumentSubgraphQuery(identifier: string, authToken?: string): string;
|
|
1719
1279
|
declare function buildDocumentSubgraphUrl(driveUrl: string, identifier: string, authToken?: string): string;
|
|
1720
1280
|
//#endregion
|
|
1281
|
+
//#region src/utils/upgrade-preview.d.ts
|
|
1282
|
+
type UpgradeStepInfo = {
|
|
1283
|
+
toVersion: number;
|
|
1284
|
+
description: string;
|
|
1285
|
+
};
|
|
1286
|
+
type DocumentUpgradePreview = {
|
|
1287
|
+
fromVersion: number;
|
|
1288
|
+
toVersion: number;
|
|
1289
|
+
steps: UpgradeStepInfo[];
|
|
1290
|
+
addedFields: string[];
|
|
1291
|
+
removedFields: string[];
|
|
1292
|
+
};
|
|
1293
|
+
/**
|
|
1294
|
+
* Recursively diffs the structural shape of two values, returning dot-paths
|
|
1295
|
+
* of keys present in `after` but not `before` (added) and vice versa
|
|
1296
|
+
* (removed). Array fields are compared by the shape of a representative
|
|
1297
|
+
* element (the first element on each side, when both sides have one) using
|
|
1298
|
+
* the `path[]` notation, e.g. `todos[].status`. Only key presence is
|
|
1299
|
+
* compared — array length and primitive values are ignored.
|
|
1300
|
+
*/
|
|
1301
|
+
declare function diffStateShapes(before: unknown, after: unknown): {
|
|
1302
|
+
added: string[];
|
|
1303
|
+
removed: string[];
|
|
1304
|
+
};
|
|
1305
|
+
/**
|
|
1306
|
+
* Computes a dry-run preview of upgrading `document` to the latest
|
|
1307
|
+
* registered version of its document model: the version jump, the upgrade
|
|
1308
|
+
* steps that will run, and which state fields will be added or removed.
|
|
1309
|
+
* Applies the upgrade reducers against a deep clone of the document, so the
|
|
1310
|
+
* original is left untouched.
|
|
1311
|
+
*
|
|
1312
|
+
* Returns undefined when the registry is unavailable, the document is
|
|
1313
|
+
* already at (or above) the latest registered version, or the upgrade path
|
|
1314
|
+
* cannot be computed.
|
|
1315
|
+
*/
|
|
1316
|
+
declare function getDocumentUpgradePreview(document: PHDocument$1, registry: IDocumentModelRegistry | undefined): DocumentUpgradePreview | undefined;
|
|
1317
|
+
//#endregion
|
|
1721
1318
|
//#region src/utils/url.d.ts
|
|
1722
1319
|
declare function resolveUrlPathname(path: string): string;
|
|
1723
1320
|
/** Returns the current path without the base path */
|
|
@@ -1756,5 +1353,5 @@ declare function getUserPermissions(): {
|
|
|
1756
1353
|
//#region src/utils/validate-document.d.ts
|
|
1757
1354
|
declare const validateDocument: (document: PHDocument$1) => ValidationError[];
|
|
1758
1355
|
//#endregion
|
|
1759
|
-
export { ActionTracker, AddPHGlobalEventHandler, BaseStorage, BrowserLocalStorage, BrowserReactorClientModule, BrowserReactorModule, 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, DRIVE_DOCUMENT_TYPES, type Database, DisconnectIcon, DiscoveryEvent, DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentDispatch, DocumentIntegrityService, DocumentTypeIcon, DraggingNode, DriveCollectionId, DriveSystemInfoState, EDITOR_FILE_DROP_OPT_OUT_ATTR, 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 IReactorClient, IReactorProcessorHostModule, 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 RemoteFilter, type RemoteMeta, 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, UploadStatus, UseAttachmentUploadReturn, UseDispatchResult, UseEditorFileDropOptions, UseEditorFileDropResult, UseOnDropFile, UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, WorkerReactorClientModule, WorkerReactorModule, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, 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, 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, hasPreloadBandwidth, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isDocumentTypeSupported, isDriveAuthError, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, loading, login, logout, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, preloadEditorModule, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveUrlPathname, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setAttachmentService, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveMetadata, 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, setPGliteDB, 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, useAttachmentService, useAttachmentUpload, useAttachments, 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, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEditorPreloader, 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, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, waitForDocumentReady };
|
|
1356
|
+
export { ActionTracker, AddPHGlobalEventHandler, AttachmentDownloadStage, AttachmentUploadStage, BaseStorage, BearerTokenProvider, BrowserLocalStorage, BrowserReactorClientModule, BrowserReactorModule, COMMON_PACKAGE_ID, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, CanExecuteState, CanExecuteStatus, ChannelScheme, ChevronDownIcon, ConflictError, type ConflictInfo, ConflictResolution, type ConflictStrategy, ConnectionParams, type ConnectionState, type ConnectionStateSnapshot, CopyIcon, CreateStoreOptions, DEFAULT_DRIVE_EDITOR_ID, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, DRIVE_DOCUMENT_TYPES, type Database, DisconnectIcon, DiscoveryEvent, DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, DocumentDispatch, DocumentIntegrityService, DocumentModelNotFoundError, DocumentOperationsState, DocumentTypeIcon, DocumentTypeMismatchError, DocumentUpgradePreview, DocumentVersionStatus, DraggingNode, DriveCollectionId, DriveSystemInfoState, EDITOR_FILE_DROP_OPT_OUT_ATTR, FailedInstallation, FailedInstallationReason, FileUploadProgress, FileUploadProgressCallback, FulfilledPromise, FullPHGlobalConfig, GetDocumentQueryFields, GetDocumentQueryResult, type GetDocumentResult, type GetDocumentWithOperationsResult, type GetOperationsResult, GqlRequestChannel, GraphQLClientDocumentCache, GraphQLClientDocumentEvent, GraphQLClientDocumentsEvent, GraphQLClientWindowEvents, GraphQLDocumentEventOperationName, GraphQLDocumentEvents, GraphQLDocumentEventsOperationName, GraphQLDocumentsEvents, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLRequestOptions, type IChannel, IDocumentCache, type IDocumentModelLoader, IPackageDiscoveryService, IPackageListerUnsubscribe, IPackageManager, IPackagesListener, type IProcessor, IProcessorHostModule, type IProcessorHostModuleBase, type IQueue, IReactorBrowserClient, type IReactorClient, IReactorProcessorHostModule, type IRelationalDb, type IRemoteClient, type IRemoteController, ISSUER_TYPE, IStorage, InMemoryQueue, IntervalPollTimer, type Job, type JwtHandler, type KeyframeValidationIssue, LOADING, type MergeHandler, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, NoSelectedDocumentError, 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, ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, PromiseState, PromiseWithState, PropagationMode, PublishEvent, type PushResult, QueryCallbackReturnType, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, ReactorDefaultDrivesConfig, type ReactorFeatureFlags, ReactorGraphQLClient, ReactorOperationFieldsFragmentDoc, type RebuildResult, RefreshReactorDataConfig, RegistryClient, RejectedPromise, RelationalDbProcessor, RelationalDbWithLive, type Remote, RemoteClient, type RemoteControllerGraphQLClient, type RemoteControllerOptions, RemoteDocumentController, type RemoteDocumentControllerWith, type RemoteDocumentData, type RemoteFilter, type RemoteMeta, type RemoteOperation, type RemoteOperationResultPage, Renown, RenownAuth, RenownAuthAsync, RenownAuthButton, RenownAuthButtonProps, RenownAuthResolution, RenownAuthStatus, RenownInitOptions, RenownInitialAuth, RenownInitialUserProvider, RenownInitialUserProviderProps, RenownLoginButton, RenownLoginButtonProps, RenownLoginMethod, RenownLogo, RenownProps, RenownProvider, RenownProviderProps, RenownSessionCookieOptions, RenownSessionCookieState, RenownUserButton, RenownUserButtonMenuItem, RenownUserButtonProps, RenownWalletProvider, RenownWalletProviderProps, RevisionsListSelection, RunDocumentOptions, SdkFunctionWrapper, SetEvent, SetPHGlobalValue, type SignerConfig, type SnapshotValidationIssue, SpinnerIcon, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, type SyncOperation, SyncOperationStatus, type SyncStatus, TStateSchemaZodObject, TimelineBarItem, TimelineDividerItem, TimelineItem, type TrackedAction, TypedGraphQLDocument, UISyncStatus, UnsupportedDocumentTypeError, UpgradeStepInfo, UseAttachmentPreviewInput, UseAttachmentPreviewReturn, UseAttachmentUploadReturn, UseDispatchResult, UseEditorFileDropOptions, UseEditorFileDropResult, UseOnDropFile, UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, WorkerReactorClientModule, WorkerReactorModule, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFileWithProgress, 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, addRenownAdaptersEventHandler, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addSwitchboardUrlEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, describeGraphQLDocument, diffStateShapes, dispatchActions, downloadDocument, driveIdFromUrl, dropAllReactorStorage, ensurePHEventHandlers, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDocumentUpgradePreview, getDocumentVersionStatus, getDriveIdBySlug, getDrives, getGlobal, getPackagePage, getPackages, getPackagesByDocumentType, getPackagesForDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hasPreloadBandwidth, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isDocumentTypeSupported, isDriveAuthError, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, isGraphQLReactorClient, loadFile, loading, login, logout, makeAuthConnectionParams, makeAuthMiddleware, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, packageFromDocumentModels, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromGetDocument, phDocumentFromMutation, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, preloadEditorModule, prepareSignedActions, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveDocumentModelModule, resolveUrlPathname, revisionMapFromRevisionsList, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setAttachmentService, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveMetadata, 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, setPGliteDB, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownAdapters, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setSwitchboardUrl, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, signStampedAction, sortNodesByName, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, trimTrailingSlash, truncateAllTables, upgradeDocument, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useAttachmentPreview, useAttachmentService, useAttachmentUpload, useAttachments, useBasePath, useCanExecute, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocumentVersionStatus, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEditorPreloader, 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, useRenownAdapters, useRenownAuth, useRenownAuthAsync, useRenownChainId, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownNetworkId, useRenownSessionCookie, useRenownSessionSynced, useRenownUrl, useRenownWalletAdapter, 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, useSwitchboardClient, useSwitchboardUrl, useSync, useSyncList, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, viewFilterInputFromViewFilter, waitForDocumentReady };
|
|
1760
1357
|
//# sourceMappingURL=index.d.ts.map
|