@powerhousedao/reactor-browser 6.2.3-dev.5 → 6.2.3-dev.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{attachment-service-D3EhiAJ7.d.ts → attachment-service-B-nLR114.d.ts} +299 -60
- package/dist/attachment-service-B-nLR114.d.ts.map +1 -0
- package/dist/{client-BIHN_UyR.d.ts → client-C-tRLfRN.d.ts} +3 -3
- package/dist/client-C-tRLfRN.d.ts.map +1 -0
- package/dist/{client-D66jVnot.js → client-CZyHv02L.js} +197 -32
- package/dist/client-CZyHv02L.js.map +1 -0
- package/dist/{client-DjK30EQ-.js → client-Cq5avLW5.js} +35 -22
- package/dist/client-Cq5avLW5.js.map +1 -0
- package/dist/{document-by-id-B4FIzG1w.js → dispatch-C1VVTn5S.js} +393 -54
- package/dist/dispatch-C1VVTn5S.js.map +1 -0
- package/dist/document-by-id-BRDkvmpn.js +16 -0
- package/dist/document-by-id-BRDkvmpn.js.map +1 -0
- package/dist/{document-model-modules-bTP87nyr.js → document-model-modules-Gsh1Xr7j.js} +60 -68
- package/dist/document-model-modules-Gsh1Xr7j.js.map +1 -0
- package/dist/{document-operations-WeE6wIDt.js → document-operations-CpzMebZ3.js} +595 -126
- package/dist/document-operations-CpzMebZ3.js.map +1 -0
- package/dist/{global-OuINvEGT.d.ts → global-BvawOKrQ.d.ts} +57 -13
- package/dist/global-BvawOKrQ.d.ts.map +1 -0
- package/dist/{index-B33TKEqp.d.ts → index-Cjf5TGen.d.ts} +19 -98
- package/dist/index-Cjf5TGen.d.ts.map +1 -0
- package/dist/{index-BIVDXw3K.d.ts → index-rtDmzViP.d.ts} +3 -3
- package/dist/index-rtDmzViP.d.ts.map +1 -0
- package/dist/index.d.ts +395 -371
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +114 -39
- package/dist/index.js.map +1 -1
- package/dist/inspector-proxy-DKOjxSGE.d.ts +32 -0
- package/dist/inspector-proxy-DKOjxSGE.d.ts.map +1 -0
- package/dist/{make-ph-event-functions-DBq3iWYn.js → make-ph-event-functions-CdsvEl5t.js} +4 -2
- package/dist/{make-ph-event-functions-DBq3iWYn.js.map → make-ph-event-functions-CdsvEl5t.js.map} +1 -1
- package/dist/{pglite-CntadC_p-9NDG14dS.d.ts → pglite-CntadC_p-DTkdF8sr.d.ts} +11 -33
- package/dist/pglite-CntadC_p-DTkdF8sr.d.ts.map +1 -0
- package/dist/{relational-D1RB45sA.js → relational-DxHuX41f.js} +66 -5
- package/dist/relational-DxHuX41f.js.map +1 -0
- package/dist/{renown-rqK8sokh.js → renown-CPAeJt5L.js} +7 -8
- package/dist/{renown-rqK8sokh.js.map → renown-CPAeJt5L.js.map} +1 -1
- package/dist/{renown-BHxwP7xU.js → renown-D05wkobG.js} +2 -2
- package/dist/{renown-BHxwP7xU.js.map → renown-D05wkobG.js.map} +1 -1
- package/dist/src/ai/index.d.ts +51 -62
- package/dist/src/ai/index.d.ts.map +1 -1
- package/dist/src/ai/index.js +5 -8
- package/dist/src/ai/index.js.map +1 -1
- package/dist/src/analytics/index.d.ts +36 -44
- package/dist/src/analytics/index.d.ts.map +1 -1
- package/dist/src/analytics/index.js +2 -2
- package/dist/src/analytics/index.js.map +1 -1
- package/dist/src/document-model.d.ts +3 -4
- package/dist/src/document-model.d.ts.map +1 -1
- package/dist/src/document-model.js.map +1 -1
- package/dist/src/graphql/client.d.ts +4 -3
- package/dist/src/graphql/client.js +1 -1
- package/dist/src/graphql-client/entry.d.ts +5 -4
- package/dist/src/graphql-client/entry.js +4 -4
- package/dist/src/relational/index.d.ts +15 -9
- package/dist/src/relational/index.d.ts.map +1 -1
- package/dist/src/relational/index.js +1 -1
- package/dist/src/renown/index.d.ts +3 -2
- package/dist/src/renown/index.js +2 -2
- package/dist/src/rpc/index.d.ts +94 -110
- package/dist/src/rpc/index.d.ts.map +1 -1
- package/dist/src/rpc/index.js +264 -607
- package/dist/src/rpc/index.js.map +1 -1
- package/dist/{store-BJYcr_FL.js → store-DInXcjal.js} +1 -1
- package/dist/{store-BJYcr_FL.js.map → store-DInXcjal.js.map} +1 -1
- package/dist/{switchboard-CaXQ4-5Q.js → switchboard-3vHbIV5W.js} +58 -6
- package/dist/switchboard-3vHbIV5W.js.map +1 -0
- package/dist/{types-6vDzbRRS.d.ts → types-520nWrB3.d.ts} +2 -2
- package/dist/types-520nWrB3.d.ts.map +1 -0
- package/dist/{types-Dcv1ZLoW.d.ts → types-D0ugg0E1.d.ts} +224 -17
- package/dist/types-D0ugg0E1.d.ts.map +1 -0
- package/package.json +19 -20
- package/dist/attachment-service-D3EhiAJ7.d.ts.map +0 -1
- package/dist/client-BIHN_UyR.d.ts.map +0 -1
- package/dist/client-D66jVnot.js.map +0 -1
- package/dist/client-DjK30EQ-.js.map +0 -1
- package/dist/document-by-id-B4FIzG1w.js.map +0 -1
- package/dist/document-model-modules-bTP87nyr.js.map +0 -1
- package/dist/document-operations-WeE6wIDt.js.map +0 -1
- package/dist/global-OuINvEGT.d.ts.map +0 -1
- package/dist/index-B33TKEqp.d.ts.map +0 -1
- package/dist/index-BIVDXw3K.d.ts.map +0 -1
- package/dist/inspector-proxy-6h5VKAwt.d.ts +0 -257
- package/dist/inspector-proxy-6h5VKAwt.d.ts.map +0 -1
- package/dist/pglite-CntadC_p-9NDG14dS.d.ts.map +0 -1
- package/dist/relational-D1RB45sA.js.map +0 -1
- package/dist/switchboard-CaXQ4-5Q.js.map +0 -1
- package/dist/types-6vDzbRRS.d.ts.map +0 -1
- package/dist/types-Dcv1ZLoW.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
import { a as getAnalyticsStore, i as createAnalyticsStore, n as IPowerhouseAnalytics, r as CreateStoreOptions } from "./types-
|
|
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
|
|
3
|
-
import { $ as
|
|
1
|
+
import { a as getAnalyticsStore, i as createAnalyticsStore, n as IPowerhouseAnalytics, r as CreateStoreOptions } from "./types-520nWrB3.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 DocumentRefetchState, b as IPackagesListener, c as PHGlobalValue, ct as IOperationCache, d as UsePHGlobalValue, dt as PromiseWithState, et as PHRelationalProcessorsGlobalConfig, f as WorkerReactorClientModule, ft as RejectedPromise, g as useDragNode, h as addDraggingNodeEventHandler, i as LOADING, it as DocumentDispatch, j as FailedInstallationReason, k as DiscoveryEventListener, l as SetEvent, lt as OperationsCacheEntry, m as DraggingNode, n as BrowserReactorClientModule, nt as PHSentryGlobalConfig, o as PHGlobalEventHandlerAdders, ot as FulfilledPromise, p as WorkerReactorModule, q as PHGlobalConfig, r as BrowserReactorModule, rt as IReactorBrowserClient, s as PHGlobalKey, st as IDocumentCache, t as AddPHGlobalEventHandler, tt as PHRenownGlobalConfig, u as SetPHGlobalValue, ut as PromiseState, v as IPackageListerUnsubscribe, w as PHToastType, x as PackageManagerInstallResult, y as IPackageManager, z as PHAppConfigKey } from "./global-BvawOKrQ.js";
|
|
3
|
+
import { $ as useSwitchboardClient, A as useGetDocument, At as IRemoteController, B as StaticPackageManager, Bt as TrackedAction, C as useSyncList, Ct as ConflictInfo, D as useDocumentCache, Dt as GetDocumentWithOperationsResult, E as useDocument, Et as GetDocumentResult, F as DocumentChangesSubscriptionOptions, Ft as RemoteDocumentChangeEvent, G as stampAction, Gt as readPromiseState, H as resolveDocumentModelModule, Ht as IDLE_OPERATIONS_ENTRY, I as isAuthRefusalClose, It as RemoteDocumentData, J as MutateDocumentWithOperationsVariables, K as MutateDocumentWithOperationsDocument, Kt as IDLE_REFETCH_STATE, L as makeAuthConnectionParams, Lt as RemoteOperation, M as useGetDocuments, Mt as PushResult, N as ConnectionParams, Nt as RemoteControllerGraphQLClient, O as useDocumentSafe, Ot as GetOperationsResult, P as DocumentChangesEventPayload, Pt as RemoteControllerOptions, Q as ensurePHEventHandlers, R as startDocumentChangesSubscription, Rt as RemoteOperationResultPage, S as useSync, St as revisionMapFromRevisionsList, T as setDocumentCache, Tt as DocumentChangeListener, U as prepareSignedActions, Ut as addPromiseState, V as packageFromDocumentModels, Vt as DocumentCache, W as signStampedAction, Wt as isOperationCache, X as GraphQLReactorProvider, Y as ReactorOperationFieldsFragmentDoc, Z as GraphQLReactorProviderProps, _ as useDatabase, _t as GetDocumentQueryResult, a as DocumentOperationsState, at as GraphQLRequestOptions, b as useReactorClient, bt as phDocumentFromGetDocument, c as useDocumentModelModuleById, ct as TypedGraphQLDocument, d as UseDispatchResult, dt as BatchJobFailedError, et as GraphQLReactorClient, f as useDispatch, ft as GraphQLOperationNotSupportedError, g as setReactorClientModule, gt as GetDocumentQueryFields, h as setReactorClient, ht as makeAuthMiddleware, i as DocumentOperationsResult, it as viewFilterInputFromViewFilter, j as useGetDocumentAsync, jt as MergeHandler, k as useDocuments, kt as IRemoteClient, l as useDocumentModelModules, lt as describeGraphQLDocument, m as addReactorClientModuleEventHandler, mt as ambientRenownTokenProvider, n as setAttachmentService, nt as findIsServableOverGraphQL, o as UseDocumentOperationsOptions, ot as SubgraphSdkFactory, p as addReactorClientEventHandler, pt as BearerTokenProvider, q as MutateDocumentWithOperationsResult, r as useAttachmentService, rt as isGraphQLReactorClient, s as useDocumentOperations, st as SubgraphSdkRegistry, t as addAttachmentServiceEventHandler, tt as GraphQLReactorClientOptions, u as DispatchFn, ut as subgraphUrlFromGraphqlUrl, v as useModelRegistry, vt as RevisionsListSelection, w as addDocumentCacheEventHandler, wt as ConflictStrategy, x as useReactorClientModule, xt as phDocumentFromMutation, y as usePGlite, yt as isoStringFromDateTime, z as subscriptionsUrlFromGraphqlUrl, zt as SyncStatus } from "./attachment-service-B-nLR114.js";
|
|
4
4
|
import { baseDocumentModels, baseDocumentModelsMap } from "./src/document-model.js";
|
|
5
|
-
import { t as PGlite } from "./pglite-CntadC_p-
|
|
6
|
-
import { r as PGliteWithLive } from "./index-
|
|
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-
|
|
8
|
-
import { t as createClient } from "./client-
|
|
9
|
-
import { $ as useUser, A as RENOWN_RETURN_URL_STRIPPED_PARAMS, B as UserIcon, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as ChevronDownIcon, G as RenownLoginButtonProps, H as RenownUserButtonMenuItem, I as CopyIcon, J as addRenownEventHandler, K as RenownAuthButton, L as DisconnectIcon, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, N as initConnectCrypto, O as RENOWN_CHAIN_ID, P as initRenownCrypto, Q as useRenown, R as RenownLogo, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownUserButtonProps, V as RenownUserButton, W as RenownLoginButton, X as useDid, Y as setRenown, Z as useLoginStatus, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthResolution, b as RenownInitialUserProviderProps, c as Renown, ct as useRenownAuthAsync, d as useRenownInit, et as login, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthAsync, j as RENOWN_URL, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as openRenown, o as RenownProvider, ot as RenownAuthStatus, p as RenownSessionCookieState, q as RenownAuthButtonProps, r as useRenownLoginMethods, rt as RenownAuth, s as RenownProviderProps, st as useRenownAuth, t as useRenownWalletAdapter, tt as logout, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as SpinnerIcon } from "./index-
|
|
10
|
-
import { QueryCallbackReturnType, RelationalDbWithLive, createProcessorQuery, useRelationalDb, useRelationalQuery, useRelationalQueryOptions } from "./src/relational/index.js";
|
|
11
|
-
import * as document_model0 from "document-model";
|
|
5
|
+
import { t as PGlite } from "./pglite-CntadC_p-DTkdF8sr.js";
|
|
6
|
+
import { r as PGliteWithLive } from "./index-rtDmzViP.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-D0ugg0E1.js";
|
|
8
|
+
import { t as createClient } from "./client-C-tRLfRN.js";
|
|
9
|
+
import { $ as useUser, A as RENOWN_RETURN_URL_STRIPPED_PARAMS, B as UserIcon, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as ChevronDownIcon, G as RenownLoginButtonProps, H as RenownUserButtonMenuItem, I as CopyIcon, J as addRenownEventHandler, K as RenownAuthButton, L as DisconnectIcon, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, N as initConnectCrypto, O as RENOWN_CHAIN_ID, P as initRenownCrypto, Q as useRenown, R as RenownLogo, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownUserButtonProps, V as RenownUserButton, W as RenownLoginButton, X as useDid, Y as setRenown, Z as useLoginStatus, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthResolution, b as RenownInitialUserProviderProps, c as Renown, ct as useRenownAuthAsync, d as useRenownInit, et as login, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthAsync, j as RENOWN_URL, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as openRenown, o as RenownProvider, ot as RenownAuthStatus, p as RenownSessionCookieState, q as RenownAuthButtonProps, r as useRenownLoginMethods, rt as RenownAuth, s as RenownProviderProps, st as useRenownAuth, t as useRenownWalletAdapter, tt as logout, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as SpinnerIcon } from "./index-Cjf5TGen.js";
|
|
10
|
+
import { QueryCallbackReturnType, RelationalDbOptions, RelationalDbWithLive, createProcessorQuery, useRelationalDb, useRelationalQuery, useRelationalQueryOptions } from "./src/relational/index.js";
|
|
12
11
|
import { DocumentModelLib, DocumentModelModule, EditorModule, PHDocument, PHDocumentController } from "document-model";
|
|
13
|
-
import {
|
|
14
|
-
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";
|
|
15
|
-
import * as _powerhousedao_shared_document_drive0 from "@powerhousedao/shared/document-drive";
|
|
12
|
+
import { ActionCandidate, ChannelScheme, ConnectionState, ConnectionStateSnapshot, ConnectionStateSnapshot as ConnectionStateSnapshot$1, Database, DocumentChangeType, DocumentIntegrityService, DriveCollectionId, Evaluation, GqlRequestChannel, IChannel, IDocumentModelLoader, IDocumentModelRegistry, IPeerAgreement, 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, RemotePeer, SignerConfig, SnapshotValidationIssue, SyncHold, SyncOperation, SyncOperationStatus, ValidationResult, driveIdFromUrl, isDriveAuthError, parseDriveUrl } from "@powerhousedao/reactor";
|
|
16
13
|
import { DocumentDriveAction, DocumentDriveDocument, DriveInput, FileNode, FolderNode, Node, SharingType } from "@powerhousedao/shared/document-drive";
|
|
14
|
+
import { Action as Action$1, AuthSubject, DocumentOperations, Operation as Operation$1, PHBaseState, PHDocument as PHDocument$1, PHDocumentHeader, SubgraphModule, ValidationError } from "@powerhousedao/shared/document-model";
|
|
17
15
|
import { DragEventHandler } from "react";
|
|
18
16
|
import { AttachmentDownloadInput, AttachmentHeader, AttachmentUploadResult, IAttachmentClient, PreprocessResult } from "@powerhousedao/reactor-attachments/client";
|
|
19
|
-
import * as _powerhousedao_reactor_browser0 from "@powerhousedao/reactor-browser";
|
|
20
17
|
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
18
|
import { Node as Node$1 } from "@powerhousedao/shared";
|
|
23
19
|
import { PackageInfo, PackagePage } from "@powerhousedao/shared/registry";
|
|
24
|
-
|
|
25
20
|
//#region src/actions/dispatch.d.ts
|
|
26
21
|
/**
|
|
27
22
|
* Dispatches actions to a document.
|
|
28
23
|
* @param actionOrActions - The action or actions to dispatch.
|
|
29
24
|
* @param document - The document to dispatch actions to.
|
|
30
|
-
* @param onErrors - Callback invoked with any errors that occurred during action execution
|
|
25
|
+
* @param onErrors - Callback invoked with any errors that occurred during action execution,
|
|
26
|
+
* or with why nothing was dispatched.
|
|
31
27
|
* @returns The updated document, or undefined if the dispatch failed.
|
|
32
28
|
*/
|
|
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>;
|
|
29
|
+
export 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>;
|
|
34
30
|
/**
|
|
35
31
|
* Dispatches actions to a document.
|
|
36
32
|
* @param actionOrActions - The action or actions to dispatch.
|
|
@@ -38,7 +34,7 @@ declare function dispatchActions<TDocument = PHDocument$1, TAction = Action$1>(a
|
|
|
38
34
|
* @param onErrors - Callback invoked with any errors that occurred during action execution.
|
|
39
35
|
* @returns The updated document, or undefined if the dispatch failed.
|
|
40
36
|
*/
|
|
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>;
|
|
37
|
+
export declare function dispatchActions(actionOrActions: Action$1[] | Action$1 | undefined, documentId: string, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void): Promise<PHDocument$1 | undefined>;
|
|
42
38
|
//#endregion
|
|
43
39
|
//#region src/actions/drive-info.d.ts
|
|
44
40
|
/**
|
|
@@ -75,18 +71,18 @@ type DriveInfo = {
|
|
|
75
71
|
* `isDriveAuthError` can tell a refusal from an unreachable host and the
|
|
76
72
|
* caller can prompt for a login instead of reporting a network fault.
|
|
77
73
|
*/
|
|
78
|
-
declare function fetchDriveInfo(url: string): Promise<DriveInfo>;
|
|
74
|
+
export declare function fetchDriveInfo(url: string): Promise<DriveInfo>;
|
|
79
75
|
//#endregion
|
|
80
76
|
//#region src/actions/document.d.ts
|
|
81
|
-
declare function getDocumentExtension(document: PHDocument$1): Promise<string>;
|
|
82
|
-
declare function exportFile(document: PHDocument$1, suggestedName?: string): Promise<void | FileSystemFileHandle>;
|
|
77
|
+
export declare function getDocumentExtension(document: PHDocument$1): Promise<string>;
|
|
78
|
+
export declare function exportFile(document: PHDocument$1, suggestedName?: string): Promise<void | FileSystemFileHandle>;
|
|
83
79
|
/**
|
|
84
80
|
* Loads a document file and replays it with version-aware reducers from the registry.
|
|
85
81
|
* Falls back to single-version legacy replay when no upgrade manifest is registered for
|
|
86
82
|
* the document type.
|
|
87
83
|
*/
|
|
88
|
-
declare function loadFile(path: string | File): Promise<PHDocument$1<PHBaseState>>;
|
|
89
|
-
declare function addDocument(driveId: string, name: string, documentType: string, parentFolder?: string, document?: PHDocument$1, id?: string, preferredEditor?: string, documentModelVersion?: number): Promise<{
|
|
84
|
+
export declare function loadFile(path: string | File): Promise<PHDocument$1<PHBaseState>>;
|
|
85
|
+
export declare function addDocument(driveId: string, name: string, documentType: string, parentFolder?: string, document?: PHDocument$1, id?: string, preferredEditor?: string, documentModelVersion?: number): Promise<{
|
|
90
86
|
id: string;
|
|
91
87
|
name: string;
|
|
92
88
|
documentType: string;
|
|
@@ -101,16 +97,16 @@ type AddedFileNode = {
|
|
|
101
97
|
parentFolder: string | null;
|
|
102
98
|
kind: "file";
|
|
103
99
|
};
|
|
104
|
-
declare function addFileWithProgress(file: string | File, driveId: string, name?: string, parentFolder?: string, onProgress?: FileUploadProgressCallback$1, documentTypes?: string[], resolveConflict?: ConflictResolution$1): Promise<AddedFileNode | undefined>;
|
|
105
|
-
declare function addFolder(driveId: string, name: string, parentFolder?: string): Promise<Node>;
|
|
106
|
-
declare function deleteNode(driveId: string, nodeId: string): Promise<void>;
|
|
107
|
-
declare function renameDriveNode(driveId: string, nodeId: string, name: string): Promise<Node | undefined>;
|
|
108
|
-
declare function setPreferredEditorOnNode(nodeId: string, preferredEditor: string | null): Promise<PHDocument$1>;
|
|
100
|
+
export declare function addFileWithProgress(file: string | File, driveId: string, name?: string, parentFolder?: string, onProgress?: FileUploadProgressCallback$1, documentTypes?: string[], resolveConflict?: ConflictResolution$1): Promise<AddedFileNode | undefined>;
|
|
101
|
+
export declare function addFolder(driveId: string, name: string, parentFolder?: string): Promise<Node>;
|
|
102
|
+
export declare function deleteNode(driveId: string, nodeId: string): Promise<void>;
|
|
103
|
+
export declare function renameDriveNode(driveId: string, nodeId: string, name: string): Promise<Node | undefined>;
|
|
104
|
+
export declare function setPreferredEditorOnNode(nodeId: string, preferredEditor: string | null): Promise<PHDocument$1>;
|
|
109
105
|
/**
|
|
110
106
|
* Upgrades a document to a newer document model version. Defaults to the
|
|
111
107
|
* latest registered version for the document's type.
|
|
112
108
|
*/
|
|
113
|
-
declare function upgradeDocument(documentId: string, toVersion?: number): Promise<PHDocument$1>;
|
|
109
|
+
export declare function upgradeDocument(documentId: string, toVersion?: number): Promise<PHDocument$1>;
|
|
114
110
|
//#endregion
|
|
115
111
|
//#region src/actions/bulk-archive.d.ts
|
|
116
112
|
type BulkImportJob = {
|
|
@@ -125,7 +121,7 @@ type BulkImportJob = {
|
|
|
125
121
|
* and each leaf becomes one job targeting its recreated folder. Throws
|
|
126
122
|
* without touching the drive when no leaf is a document zip.
|
|
127
123
|
*/
|
|
128
|
-
declare function expandBulkArchive(file: File, driveId: string, targetParent: Node | undefined): Promise<BulkImportJob[]>;
|
|
124
|
+
export declare function expandBulkArchive(file: File, driveId: string, targetParent: Node | undefined): Promise<BulkImportJob[]>;
|
|
129
125
|
//#endregion
|
|
130
126
|
//#region src/actions/folder-zip.d.ts
|
|
131
127
|
type FolderZipResult = {
|
|
@@ -144,13 +140,13 @@ type FolderZipResult = {
|
|
|
144
140
|
* `fetchDocument` must return the document WITH its full operations and
|
|
145
141
|
* initialState (see downloadFolderZip).
|
|
146
142
|
*/
|
|
147
|
-
declare function buildFolderZip(drive: DocumentDriveDocument, folderNode: FolderNode | undefined, fetchDocument: (id: string) => Promise<PHDocument$1>, onProgress?: (done: number, total: number) => void): Promise<FolderZipResult>;
|
|
143
|
+
export declare function buildFolderZip(drive: DocumentDriveDocument, folderNode: FolderNode | undefined, fetchDocument: (id: string) => Promise<PHDocument$1>, onProgress?: (done: number, total: number) => void): Promise<FolderZipResult>;
|
|
148
144
|
/**
|
|
149
145
|
* Export a folder (or whole drive) to disk: fetches every document with its
|
|
150
146
|
* full operation history, builds the archive, and saves it via
|
|
151
147
|
* showSaveFilePicker (fallback: blob download), mirroring exportFile.
|
|
152
148
|
*/
|
|
153
|
-
declare function downloadFolderZip(drive: DocumentDriveDocument, folderNode?: FolderNode, onProgress?: (done: number, total: number) => void): Promise<FolderZipResult>;
|
|
149
|
+
export declare function downloadFolderZip(drive: DocumentDriveDocument, folderNode?: FolderNode, onProgress?: (done: number, total: number) => void): Promise<FolderZipResult>;
|
|
154
150
|
//#endregion
|
|
155
151
|
//#region src/actions/drive.d.ts
|
|
156
152
|
type AddRemoteDriveOptions = {
|
|
@@ -161,7 +157,8 @@ type AddRemoteDriveOptions = {
|
|
|
161
157
|
* `addRemoteDrive` returns as soon as the remote is registered with
|
|
162
158
|
* the sync manager, before initial backfill delivers the drive.
|
|
163
159
|
*/
|
|
164
|
-
awaitInitialSync?: boolean;
|
|
160
|
+
awaitInitialSync?: boolean;
|
|
161
|
+
/** Timeout for the initial-sync wait. Defaults to 30s. */
|
|
165
162
|
initialSyncTimeoutMs?: number;
|
|
166
163
|
signal?: AbortSignal;
|
|
167
164
|
};
|
|
@@ -170,42 +167,42 @@ type AddRemoteDriveOptions = {
|
|
|
170
167
|
* reactor client. Subscribes to Created events filtered by id and
|
|
171
168
|
* short-circuits if the document already exists.
|
|
172
169
|
*/
|
|
173
|
-
declare function waitForDocumentReady(reactorClient: IReactorClient$1, documentId: string, options?: {
|
|
170
|
+
export declare function waitForDocumentReady(reactorClient: IReactorClient$1, documentId: string, options?: {
|
|
174
171
|
timeoutMs?: number;
|
|
175
172
|
signal?: AbortSignal;
|
|
176
173
|
}): Promise<void>;
|
|
177
|
-
declare function addDrive(input: DriveInput, preferredEditor?: string): Promise<DocumentDriveDocument>;
|
|
178
|
-
declare function addRemoteDrive(url: string, driveId?: string, options?: AddRemoteDriveOptions): Promise<string>;
|
|
179
|
-
declare function deleteDrive(driveId: string): Promise<void>;
|
|
180
|
-
declare function renameDrive(driveId: string, name: string): Promise<PHDocument$1 | undefined>;
|
|
181
|
-
declare function setDriveAvailableOffline(driveId: string, availableOffline: boolean): Promise<PHDocument$1 | undefined>;
|
|
182
|
-
declare function setDriveSharingType(driveId: string, sharingType: SharingType): Promise<PHDocument$1 | undefined>;
|
|
183
|
-
declare function setDriveMetadata(driveId: string, metadata: {
|
|
174
|
+
export declare function addDrive(input: DriveInput, preferredEditor?: string): Promise<DocumentDriveDocument>;
|
|
175
|
+
export declare function addRemoteDrive(url: string, driveId?: string, options?: AddRemoteDriveOptions): Promise<string>;
|
|
176
|
+
export declare function deleteDrive(driveId: string): Promise<void>;
|
|
177
|
+
export declare function renameDrive(driveId: string, name: string): Promise<PHDocument$1 | undefined>;
|
|
178
|
+
export declare function setDriveAvailableOffline(driveId: string, availableOffline: boolean): Promise<PHDocument$1 | undefined>;
|
|
179
|
+
export declare function setDriveSharingType(driveId: string, sharingType: SharingType): Promise<PHDocument$1 | undefined>;
|
|
180
|
+
export declare function setDriveMetadata(driveId: string, metadata: {
|
|
184
181
|
name?: string | null;
|
|
185
182
|
icon?: string | null;
|
|
186
183
|
}): Promise<PHDocument$1 | undefined>;
|
|
187
184
|
//#endregion
|
|
188
185
|
//#region src/constants.d.ts
|
|
189
|
-
declare const DEFAULT_DRIVE_EDITOR_ID = "powerhouse/generic-drive-explorer";
|
|
190
|
-
declare const COMMON_PACKAGE_ID = "powerhouse/common";
|
|
186
|
+
export declare const DEFAULT_DRIVE_EDITOR_ID = "powerhouse/generic-drive-explorer";
|
|
187
|
+
export declare const COMMON_PACKAGE_ID = "powerhouse/common";
|
|
191
188
|
/** Document types that represent a "drive": a container of nodes. */
|
|
192
|
-
declare const DRIVE_DOCUMENT_TYPES: readonly ["powerhouse/document-drive", "powerhouse/reactor-drive"];
|
|
189
|
+
export declare const DRIVE_DOCUMENT_TYPES: readonly ["powerhouse/document-drive", "powerhouse/reactor-drive"];
|
|
193
190
|
//#endregion
|
|
194
191
|
//#region src/errors.d.ts
|
|
195
|
-
declare class UnsupportedDocumentTypeError extends Error {
|
|
192
|
+
export declare class UnsupportedDocumentTypeError extends Error {
|
|
196
193
|
constructor(documentType: string);
|
|
197
194
|
static isError(error: unknown): error is UnsupportedDocumentTypeError;
|
|
198
195
|
}
|
|
199
|
-
declare class DocumentModelNotFoundError extends Error {
|
|
196
|
+
export declare class DocumentModelNotFoundError extends Error {
|
|
200
197
|
readonly documentType: string;
|
|
201
198
|
readonly name = "DocumentModelNotFoundError";
|
|
202
199
|
constructor(documentType: string);
|
|
203
200
|
static isError(error: unknown): error is DocumentModelNotFoundError;
|
|
204
201
|
}
|
|
205
|
-
declare class DocumentTypeMismatchError extends Error {
|
|
202
|
+
export declare class DocumentTypeMismatchError extends Error {
|
|
206
203
|
constructor(documentId: string, expectedType: string, actualType: string);
|
|
207
204
|
}
|
|
208
|
-
declare class NoSelectedDocumentError extends Error {
|
|
205
|
+
export declare class NoSelectedDocumentError extends Error {
|
|
209
206
|
constructor();
|
|
210
207
|
}
|
|
211
208
|
//#endregion
|
|
@@ -223,32 +220,34 @@ declare global {
|
|
|
223
220
|
interface Window {
|
|
224
221
|
powerhouse?: PowerhouseGlobal;
|
|
225
222
|
}
|
|
226
|
-
}
|
|
223
|
+
}
|
|
227
224
|
//#endregion
|
|
228
225
|
//#region src/global/core.d.ts
|
|
229
|
-
declare function getGlobal<K extends keyof PowerhouseGlobal>(namespace: K): PowerhouseGlobal[K] | undefined;
|
|
230
|
-
declare function setGlobal<K extends keyof PowerhouseGlobal>(namespace: K, value: PowerhouseGlobal[K]): void;
|
|
231
|
-
declare function clearGlobal(namespace: keyof PowerhouseGlobal): void;
|
|
226
|
+
export declare function getGlobal<K extends keyof PowerhouseGlobal>(namespace: K): PowerhouseGlobal[K] | undefined;
|
|
227
|
+
export declare function setGlobal<K extends keyof PowerhouseGlobal>(namespace: K, value: PowerhouseGlobal[K]): void;
|
|
228
|
+
export declare function clearGlobal(namespace: keyof PowerhouseGlobal): void;
|
|
232
229
|
//#endregion
|
|
233
230
|
//#region src/graphql/adapters.d.ts
|
|
234
231
|
type QueryDocumentResult = NonNullable<GetDocumentWithOperationsQuery["document"]>["document"];
|
|
235
232
|
type FindDocumentsItems = NonNullable<FindDocumentsQuery["findDocuments"]>["items"];
|
|
236
|
-
declare function phDocumentFromQuery<TDocumentSchema extends TStateSchemaZodObject>(document: QueryDocumentResult, documentSchema?: TDocumentSchema): PHDocument;
|
|
237
|
-
declare function phDocumentsFromQuery<TDocumentSchema extends TStateSchemaZodObject>(items: FindDocumentsItems, documentSchema?: TDocumentSchema): PHDocument[];
|
|
238
|
-
declare function identifierFromMutateDocumentOperationVariables(variables: unknown): string;
|
|
233
|
+
export declare function phDocumentFromQuery<TDocumentSchema extends TStateSchemaZodObject>(document: QueryDocumentResult, documentSchema?: TDocumentSchema): PHDocument;
|
|
234
|
+
export declare function phDocumentsFromQuery<TDocumentSchema extends TStateSchemaZodObject>(items: FindDocumentsItems, documentSchema?: TDocumentSchema): PHDocument[];
|
|
235
|
+
export declare function identifierFromMutateDocumentOperationVariables(variables: unknown): string;
|
|
239
236
|
//#endregion
|
|
240
237
|
//#region src/graphql/fetchers.d.ts
|
|
241
|
-
declare function reactorGraphqlFetchDocument<TDocumentSchema extends TStateSchemaZodObject>(identifier: string, documentSchema?: TDocumentSchema): Promise<
|
|
242
|
-
declare function reactorGraphqlBatchFetchDocuments(identifiers: readonly string[]): Promise<(
|
|
238
|
+
export declare function reactorGraphqlFetchDocument<TDocumentSchema extends TStateSchemaZodObject>(identifier: string, documentSchema?: TDocumentSchema): Promise<import("document-model").PHDocument | undefined>;
|
|
239
|
+
export declare function reactorGraphqlBatchFetchDocuments(identifiers: readonly string[]): Promise<(import("document-model").PHDocument | undefined)[]>;
|
|
243
240
|
//#endregion
|
|
244
241
|
//#region src/graphql/graphql-client-document-cache.d.ts
|
|
245
|
-
declare class GraphQLClientDocumentCache implements IDocumentCache {
|
|
242
|
+
export declare class GraphQLClientDocumentCache implements IDocumentCache {
|
|
246
243
|
private fetcher;
|
|
247
244
|
private documents;
|
|
248
245
|
private batchPromises;
|
|
249
246
|
private listeners;
|
|
247
|
+
private refetcher;
|
|
250
248
|
constructor();
|
|
251
249
|
get(id: string, refetch?: boolean): Promise<PHDocument>;
|
|
250
|
+
getRefetchState(id: string): DocumentRefetchState;
|
|
252
251
|
getBatch(ids: string[]): Promise<PHDocument[]>;
|
|
253
252
|
private invalidateBatchesContaining;
|
|
254
253
|
subscribe(id: string | string[], callback: () => void): () => void;
|
|
@@ -259,13 +258,13 @@ declare class GraphQLClientDocumentCache implements IDocumentCache {
|
|
|
259
258
|
}
|
|
260
259
|
//#endregion
|
|
261
260
|
//#region src/graphql/mutators.d.ts
|
|
262
|
-
declare function reactorGraphqlCreateDocument<TDocument extends PHDocument>(document: TDocument, parentIdentifier?: "powerhouse"): Promise<CreateDocumentMutation>;
|
|
263
|
-
declare function reactorGraphqlDeleteDocument(identifier: string): Promise<DeleteDocumentMutation>;
|
|
264
|
-
declare function reactorGraphqlDeleteDocuments(identifiers: string[]): Promise<DeleteDocumentsMutation>;
|
|
265
|
-
declare function reactorGraphqlMutateDocument(documentIdentifier: string, ...actions: ReadonlyArray<ActionInput>): Promise<MutateDocumentMutation>;
|
|
261
|
+
export declare function reactorGraphqlCreateDocument<TDocument extends PHDocument>(document: TDocument, parentIdentifier?: "powerhouse"): Promise<CreateDocumentMutation>;
|
|
262
|
+
export declare function reactorGraphqlDeleteDocument(identifier: string): Promise<DeleteDocumentMutation>;
|
|
263
|
+
export declare function reactorGraphqlDeleteDocuments(identifiers: string[]): Promise<DeleteDocumentsMutation>;
|
|
264
|
+
export declare function reactorGraphqlMutateDocument(documentIdentifier: string, ...actions: ReadonlyArray<ActionInput>): Promise<MutateDocumentMutation>;
|
|
266
265
|
//#endregion
|
|
267
266
|
//#region src/hooks/add-ph-event-handlers.d.ts
|
|
268
|
-
declare const commonGlobalEventHandlerFunctions: {
|
|
267
|
+
export declare const commonGlobalEventHandlerFunctions: {
|
|
269
268
|
loading: () => void;
|
|
270
269
|
drives: () => void;
|
|
271
270
|
selectedDriveId: () => void;
|
|
@@ -274,230 +273,232 @@ declare const commonGlobalEventHandlerFunctions: {
|
|
|
274
273
|
reactorGraphQLClient: () => void;
|
|
275
274
|
draggingNode: () => void;
|
|
276
275
|
};
|
|
277
|
-
declare function addPHEventHandlers(): void;
|
|
278
|
-
declare function callEventHandlerRegisterFunctions(registerFunctions: Record<string, () => void>): void;
|
|
276
|
+
export declare function addPHEventHandlers(): void;
|
|
277
|
+
export declare function callEventHandlerRegisterFunctions(registerFunctions: Record<string, () => void>): void;
|
|
279
278
|
//#endregion
|
|
280
279
|
//#region src/hooks/allowed-document-model-modules.d.ts
|
|
281
|
-
declare function useAllowedDocumentModelModules():
|
|
280
|
+
export declare function useAllowedDocumentModelModules(): import("document-model").DocumentModelModule[] | undefined;
|
|
282
281
|
//#endregion
|
|
283
282
|
//#region src/hooks/child-nodes.d.ts
|
|
284
283
|
/** Returns the child nodes for the selected drive or folder. */
|
|
285
|
-
declare function useNodesInSelectedDriveOrFolder(): Node[];
|
|
284
|
+
export declare function useNodesInSelectedDriveOrFolder(): Node[];
|
|
286
285
|
//#endregion
|
|
287
286
|
//#region src/hooks/config/connect.d.ts
|
|
288
|
-
declare const useRouterBasename: () => string | undefined, setRouterBasename: (value: string | undefined) => void, addRouterBasenameEventHandler: () => void;
|
|
289
|
-
declare const useVersion: () => string | undefined, setVersion: (value: string | undefined) => void, addVersionEventHandler: () => void;
|
|
290
|
-
declare const useRequiresHardRefresh: () => boolean | undefined, setRequiresHardRefresh: (value: boolean | undefined) => void, addRequiresHardRefreshEventHandler: () => void;
|
|
291
|
-
declare const useWarnOutdatedApp: () => boolean | undefined, setWarnOutdatedApp: (value: boolean | undefined) => void, addWarnOutdatedAppEventHandler: () => void;
|
|
292
|
-
declare const useStudioMode: () => boolean | undefined, setStudioMode: (value: boolean | undefined) => void, addStudioModeEventHandler: () => void;
|
|
293
|
-
declare const useBasePath: () => string | undefined, setBasePath: (value: string | undefined) => void, addBasePathEventHandler: () => void;
|
|
294
|
-
declare const useVersionCheckInterval: () => number | undefined, setVersionCheckInterval: (value: number | undefined) => void, addVersionCheckIntervalEventHandler: () => void;
|
|
295
|
-
declare const useCliVersion: () => string | undefined, setCliVersion: (value: string | undefined) => void, addCliVersionEventHandler: () => void;
|
|
296
|
-
declare const useFileUploadOperationsChunkSize: () => number | undefined, setFileUploadOperationsChunkSize: (value: number | undefined) => void, addFileUploadOperationsChunkSizeEventHandler: () => void;
|
|
297
|
-
declare const useIsDocumentModelSelectionSettingsEnabled: () => boolean | undefined, setIsDocumentModelSelectionSettingsEnabled: (value: boolean | undefined) => void, addIsDocumentModelSelectionSettingsEnabledEventHandler: () => void;
|
|
298
|
-
declare const useGaTrackingId: () => string | undefined, setGaTrackingId: (value: string | undefined) => void, addGaTrackingIdEventHandler: () => void;
|
|
299
|
-
declare const useDefaultDrivesUrl: () => string | undefined, setDefaultDrivesUrl: (value: string | undefined) => void, addDefaultDrivesUrlEventHandler: () => void;
|
|
300
|
-
declare const useDrivesPreserveStrategy: () => string | undefined, setDrivesPreserveStrategy: (value: string | undefined) => void, addDrivesPreserveStrategyEventHandler: () => void;
|
|
301
|
-
declare const useIsLocalDrivesEnabled: () => boolean | undefined, setIsLocalDrivesEnabled: (value: boolean | undefined) => void, addIsLocalDrivesEnabledEventHandler: () => void;
|
|
302
|
-
declare const useIsAddDriveEnabled: () => boolean | undefined, setIsAddDriveEnabled: (value: boolean | undefined) => void, addIsAddDriveEnabledEventHandler: () => void;
|
|
303
|
-
declare const useIsPublicDrivesEnabled: () => boolean | undefined, setIsPublicDrivesEnabled: (value: boolean | undefined) => void, addIsPublicDrivesEnabledEventHandler: () => void;
|
|
304
|
-
declare const useIsAddPublicDrivesEnabled: () => boolean | undefined, setIsAddPublicDrivesEnabled: (value: boolean | undefined) => void, addIsAddPublicDrivesEnabledEventHandler: () => void;
|
|
305
|
-
declare const useIsDeletePublicDrivesEnabled: () => boolean | undefined, setIsDeletePublicDrivesEnabled: (value: boolean | undefined) => void, addIsDeletePublicDrivesEnabledEventHandler: () => void;
|
|
306
|
-
declare const useIsCloudDrivesEnabled: () => boolean | undefined, setIsCloudDrivesEnabled: (value: boolean | undefined) => void, addIsCloudDrivesEnabledEventHandler: () => void;
|
|
307
|
-
declare const useIsAddCloudDrivesEnabled: () => boolean | undefined, setIsAddCloudDrivesEnabled: (value: boolean | undefined) => void, addIsAddCloudDrivesEnabledEventHandler: () => void;
|
|
308
|
-
declare const useIsDeleteCloudDrivesEnabled: () => boolean | undefined, setIsDeleteCloudDrivesEnabled: (value: boolean | undefined) => void, addIsDeleteCloudDrivesEnabledEventHandler: () => void;
|
|
309
|
-
declare const useLocalDrivesEnabled: () => boolean | undefined, setLocalDrivesEnabled: (value: boolean | undefined) => void, addLocalDrivesEnabledEventHandler: () => void;
|
|
310
|
-
declare const useIsAddLocalDrivesEnabled: () => boolean | undefined, setIsAddLocalDrivesEnabled: (value: boolean | undefined) => void, addIsAddLocalDrivesEnabledEventHandler: () => void;
|
|
311
|
-
declare const useIsDeleteLocalDrivesEnabled: () => boolean | undefined, setIsDeleteLocalDrivesEnabled: (value: boolean | undefined) => void, addIsDeleteLocalDrivesEnabledEventHandler: () => void;
|
|
312
|
-
declare const useIsEditorDebugModeEnabled: () => boolean | undefined, setIsEditorDebugModeEnabled: (value: boolean | undefined) => void, addIsEditorDebugModeEnabledEventHandler: () => void;
|
|
313
|
-
declare const useIsEditorReadModeEnabled: () => boolean | undefined, setIsEditorReadModeEnabled: (value: boolean | undefined) => void, addIsEditorReadModeEnabledEventHandler: () => void;
|
|
314
|
-
declare const useIsAnalyticsDatabaseWorkerEnabled: () => boolean | undefined, setIsAnalyticsDatabaseWorkerEnabled: (value: boolean | undefined) => void, addIsAnalyticsDatabaseWorkerEnabledEventHandler: () => void;
|
|
315
|
-
declare const useIsDiffAnalyticsEnabled: () => boolean | undefined, setIsDiffAnalyticsEnabled: (value: boolean | undefined) => void, addIsDiffAnalyticsEnabledEventHandler: () => void;
|
|
316
|
-
declare const useIsDriveAnalyticsEnabled: () => boolean | undefined, setIsDriveAnalyticsEnabled: (value: boolean | undefined) => void, addIsDriveAnalyticsEnabledEventHandler: () => void;
|
|
317
|
-
declare const useRenownUrl: () => string | undefined, setRenownUrl: (value: string | undefined) => void, addRenownUrlEventHandler: () => void;
|
|
318
|
-
declare const useRenownNetworkId: () => string | undefined, setRenownNetworkId: (value: string | undefined) => void, addRenownNetworkIdEventHandler: () => void;
|
|
319
|
-
declare const useRenownChainId: () => number | undefined, setRenownChainId: (value: number | undefined) => void, addRenownChainIdEventHandler: () => void;
|
|
320
|
-
declare const useSwitchboardUrl: () => string | undefined, setSwitchboardUrl: (value: string | undefined) => void, addSwitchboardUrlEventHandler: () => void;
|
|
321
|
-
declare const useRenownAdapters: () =>
|
|
322
|
-
declare const useSentryRelease: () => string | undefined, setSentryRelease: (value: string | undefined) => void, addSentryReleaseEventHandler: () => void;
|
|
323
|
-
declare const useSentryDsn: () => string | undefined, setSentryDsn: (value: string | undefined) => void, addSentryDsnEventHandler: () => void;
|
|
324
|
-
declare const useSentryEnv: () => string | undefined, setSentryEnv: (value: string | undefined) => void, addSentryEnvEventHandler: () => void;
|
|
325
|
-
declare const useIsSentryTracingEnabled: () => boolean | undefined, setIsSentryTracingEnabled: (value: boolean | undefined) => void, addIsSentryTracingEnabledEventHandler: () => void;
|
|
326
|
-
declare const useIsExternalProcessorsEnabled: () => boolean | undefined, setIsExternalProcessorsEnabled: (value: boolean | undefined) => void, addIsExternalProcessorsEnabledEventHandler: () => void;
|
|
327
|
-
declare const useIsExternalPackagesEnabled: () => boolean | undefined, setIsExternalPackagesEnabled: (value: boolean | undefined) => void, addIsExternalPackagesEnabledEventHandler: () => void;
|
|
287
|
+
export declare const useRouterBasename: () => string | undefined, setRouterBasename: (value: string | undefined) => void, addRouterBasenameEventHandler: () => void;
|
|
288
|
+
export declare const useVersion: () => string | undefined, setVersion: (value: string | undefined) => void, addVersionEventHandler: () => void;
|
|
289
|
+
export declare const useRequiresHardRefresh: () => boolean | undefined, setRequiresHardRefresh: (value: boolean | undefined) => void, addRequiresHardRefreshEventHandler: () => void;
|
|
290
|
+
export declare const useWarnOutdatedApp: () => boolean | undefined, setWarnOutdatedApp: (value: boolean | undefined) => void, addWarnOutdatedAppEventHandler: () => void;
|
|
291
|
+
export declare const useStudioMode: () => boolean | undefined, setStudioMode: (value: boolean | undefined) => void, addStudioModeEventHandler: () => void;
|
|
292
|
+
export declare const useBasePath: () => string | undefined, setBasePath: (value: string | undefined) => void, addBasePathEventHandler: () => void;
|
|
293
|
+
export declare const useVersionCheckInterval: () => number | undefined, setVersionCheckInterval: (value: number | undefined) => void, addVersionCheckIntervalEventHandler: () => void;
|
|
294
|
+
export declare const useCliVersion: () => string | undefined, setCliVersion: (value: string | undefined) => void, addCliVersionEventHandler: () => void;
|
|
295
|
+
export declare const useFileUploadOperationsChunkSize: () => number | undefined, setFileUploadOperationsChunkSize: (value: number | undefined) => void, addFileUploadOperationsChunkSizeEventHandler: () => void;
|
|
296
|
+
export declare const useIsDocumentModelSelectionSettingsEnabled: () => boolean | undefined, setIsDocumentModelSelectionSettingsEnabled: (value: boolean | undefined) => void, addIsDocumentModelSelectionSettingsEnabledEventHandler: () => void;
|
|
297
|
+
export declare const useGaTrackingId: () => string | undefined, setGaTrackingId: (value: string | undefined) => void, addGaTrackingIdEventHandler: () => void;
|
|
298
|
+
export declare const useDefaultDrivesUrl: () => string | undefined, setDefaultDrivesUrl: (value: string | undefined) => void, addDefaultDrivesUrlEventHandler: () => void;
|
|
299
|
+
export declare const useDrivesPreserveStrategy: () => string | undefined, setDrivesPreserveStrategy: (value: string | undefined) => void, addDrivesPreserveStrategyEventHandler: () => void;
|
|
300
|
+
export declare const useIsLocalDrivesEnabled: () => boolean | undefined, setIsLocalDrivesEnabled: (value: boolean | undefined) => void, addIsLocalDrivesEnabledEventHandler: () => void;
|
|
301
|
+
export declare const useIsAddDriveEnabled: () => boolean | undefined, setIsAddDriveEnabled: (value: boolean | undefined) => void, addIsAddDriveEnabledEventHandler: () => void;
|
|
302
|
+
export declare const useIsPublicDrivesEnabled: () => boolean | undefined, setIsPublicDrivesEnabled: (value: boolean | undefined) => void, addIsPublicDrivesEnabledEventHandler: () => void;
|
|
303
|
+
export declare const useIsAddPublicDrivesEnabled: () => boolean | undefined, setIsAddPublicDrivesEnabled: (value: boolean | undefined) => void, addIsAddPublicDrivesEnabledEventHandler: () => void;
|
|
304
|
+
export declare const useIsDeletePublicDrivesEnabled: () => boolean | undefined, setIsDeletePublicDrivesEnabled: (value: boolean | undefined) => void, addIsDeletePublicDrivesEnabledEventHandler: () => void;
|
|
305
|
+
export declare const useIsCloudDrivesEnabled: () => boolean | undefined, setIsCloudDrivesEnabled: (value: boolean | undefined) => void, addIsCloudDrivesEnabledEventHandler: () => void;
|
|
306
|
+
export declare const useIsAddCloudDrivesEnabled: () => boolean | undefined, setIsAddCloudDrivesEnabled: (value: boolean | undefined) => void, addIsAddCloudDrivesEnabledEventHandler: () => void;
|
|
307
|
+
export declare const useIsDeleteCloudDrivesEnabled: () => boolean | undefined, setIsDeleteCloudDrivesEnabled: (value: boolean | undefined) => void, addIsDeleteCloudDrivesEnabledEventHandler: () => void;
|
|
308
|
+
export declare const useLocalDrivesEnabled: () => boolean | undefined, setLocalDrivesEnabled: (value: boolean | undefined) => void, addLocalDrivesEnabledEventHandler: () => void;
|
|
309
|
+
export declare const useIsAddLocalDrivesEnabled: () => boolean | undefined, setIsAddLocalDrivesEnabled: (value: boolean | undefined) => void, addIsAddLocalDrivesEnabledEventHandler: () => void;
|
|
310
|
+
export declare const useIsDeleteLocalDrivesEnabled: () => boolean | undefined, setIsDeleteLocalDrivesEnabled: (value: boolean | undefined) => void, addIsDeleteLocalDrivesEnabledEventHandler: () => void;
|
|
311
|
+
export declare const useIsEditorDebugModeEnabled: () => boolean | undefined, setIsEditorDebugModeEnabled: (value: boolean | undefined) => void, addIsEditorDebugModeEnabledEventHandler: () => void;
|
|
312
|
+
export declare const useIsEditorReadModeEnabled: () => boolean | undefined, setIsEditorReadModeEnabled: (value: boolean | undefined) => void, addIsEditorReadModeEnabledEventHandler: () => void;
|
|
313
|
+
export declare const useIsAnalyticsDatabaseWorkerEnabled: () => boolean | undefined, setIsAnalyticsDatabaseWorkerEnabled: (value: boolean | undefined) => void, addIsAnalyticsDatabaseWorkerEnabledEventHandler: () => void;
|
|
314
|
+
export declare const useIsDiffAnalyticsEnabled: () => boolean | undefined, setIsDiffAnalyticsEnabled: (value: boolean | undefined) => void, addIsDiffAnalyticsEnabledEventHandler: () => void;
|
|
315
|
+
export declare const useIsDriveAnalyticsEnabled: () => boolean | undefined, setIsDriveAnalyticsEnabled: (value: boolean | undefined) => void, addIsDriveAnalyticsEnabledEventHandler: () => void;
|
|
316
|
+
export declare const useRenownUrl: () => string | undefined, setRenownUrl: (value: string | undefined) => void, addRenownUrlEventHandler: () => void;
|
|
317
|
+
export declare const useRenownNetworkId: () => string | undefined, setRenownNetworkId: (value: string | undefined) => void, addRenownNetworkIdEventHandler: () => void;
|
|
318
|
+
export declare const useRenownChainId: () => number | undefined, setRenownChainId: (value: number | undefined) => void, addRenownChainIdEventHandler: () => void;
|
|
319
|
+
export declare const useSwitchboardUrl: () => string | undefined, setSwitchboardUrl: (value: string | undefined) => void, addSwitchboardUrlEventHandler: () => void;
|
|
320
|
+
export declare const useRenownAdapters: () => import("@powerhousedao/shared").PHConnectRenownAdapters | undefined, setRenownAdapters: (value: import("@powerhousedao/shared").PHConnectRenownAdapters | undefined) => void, addRenownAdaptersEventHandler: () => void;
|
|
321
|
+
export declare const useSentryRelease: () => string | undefined, setSentryRelease: (value: string | undefined) => void, addSentryReleaseEventHandler: () => void;
|
|
322
|
+
export declare const useSentryDsn: () => string | undefined, setSentryDsn: (value: string | undefined) => void, addSentryDsnEventHandler: () => void;
|
|
323
|
+
export declare const useSentryEnv: () => string | undefined, setSentryEnv: (value: string | undefined) => void, addSentryEnvEventHandler: () => void;
|
|
324
|
+
export declare const useIsSentryTracingEnabled: () => boolean | undefined, setIsSentryTracingEnabled: (value: boolean | undefined) => void, addIsSentryTracingEnabledEventHandler: () => void;
|
|
325
|
+
export declare const useIsExternalProcessorsEnabled: () => boolean | undefined, setIsExternalProcessorsEnabled: (value: boolean | undefined) => void, addIsExternalProcessorsEnabledEventHandler: () => void;
|
|
326
|
+
export declare const useIsExternalPackagesEnabled: () => boolean | undefined, setIsExternalPackagesEnabled: (value: boolean | undefined) => void, addIsExternalPackagesEnabledEventHandler: () => void;
|
|
328
327
|
/** Sets the enabled editors for Connect. */
|
|
329
|
-
declare const setEnabledEditors: (value: string[] | undefined) => void;
|
|
328
|
+
export declare const setEnabledEditors: (value: string[] | undefined) => void;
|
|
330
329
|
/** Gets the enabled editors for Connect. */
|
|
331
|
-
declare const useEnabledEditors: () => string[] | undefined;
|
|
330
|
+
export declare const useEnabledEditors: () => string[] | undefined;
|
|
332
331
|
/** Adds an event handler for when the enabled editors for Connect changes. */
|
|
333
|
-
declare const addEnabledEditorsEventHandler: () => void;
|
|
332
|
+
export declare const addEnabledEditorsEventHandler: () => void;
|
|
334
333
|
/** Sets the disabled editors for Connect. */
|
|
335
|
-
declare const setDisabledEditors: (value: string[] | undefined) => void;
|
|
334
|
+
export declare const setDisabledEditors: (value: string[] | undefined) => void;
|
|
336
335
|
/** Gets the disabled editors for Connect. */
|
|
337
|
-
declare const useDisabledEditors: () => string[] | undefined;
|
|
336
|
+
export declare const useDisabledEditors: () => string[] | undefined;
|
|
338
337
|
/** Adds an event handler for when the disabled editors for Connect changes. */
|
|
339
|
-
declare const addDisabledEditorsEventHandler: () => void;
|
|
338
|
+
export declare const addDisabledEditorsEventHandler: () => void;
|
|
340
339
|
/** Sets the isRelationalProcessorsEnabled for Connect. */
|
|
341
|
-
declare const setIsRelationalProcessorsEnabled: (value: boolean | undefined) => void;
|
|
340
|
+
export declare const setIsRelationalProcessorsEnabled: (value: boolean | undefined) => void;
|
|
342
341
|
/** Gets the isRelationalProcessorsEnabled for Connect. */
|
|
343
|
-
declare const useIsRelationalProcessorsEnabled: () => boolean | undefined;
|
|
342
|
+
export declare const useIsRelationalProcessorsEnabled: () => boolean | undefined;
|
|
344
343
|
/** Adds an event handler for when the isRelationalProcessorsEnabled for Connect changes. */
|
|
345
|
-
declare const addIsRelationalProcessorsEnabledEventHandler: () => void;
|
|
344
|
+
export declare const addIsRelationalProcessorsEnabledEventHandler: () => void;
|
|
346
345
|
/** Sets the isExternalRelationalProcessorsEnabled for Connect. */
|
|
347
|
-
declare const setIsExternalRelationalProcessorsEnabled: (value: boolean | undefined) => void;
|
|
346
|
+
export declare const setIsExternalRelationalProcessorsEnabled: (value: boolean | undefined) => void;
|
|
348
347
|
/** Gets the isExternalRelationalProcessorsEnabled for Connect. */
|
|
349
|
-
declare const useIsExternalRelationalProcessorsEnabled: () => boolean | undefined;
|
|
348
|
+
export declare const useIsExternalRelationalProcessorsEnabled: () => boolean | undefined;
|
|
350
349
|
/** Adds an event handler for when the isExternalRelationalProcessorsEnabled for Connect changes. */
|
|
351
|
-
declare const addIsExternalRelationalProcessorsEnabledEventHandler: () => void;
|
|
350
|
+
export declare const addIsExternalRelationalProcessorsEnabledEventHandler: () => void;
|
|
352
351
|
/** Sets the isAnalyticsEnabled for Connect. */
|
|
353
|
-
declare const setIsAnalyticsEnabled: (value: boolean | undefined) => void;
|
|
352
|
+
export declare const setIsAnalyticsEnabled: (value: boolean | undefined) => void;
|
|
354
353
|
/** Gets the isAnalyticsEnabled for Connect. */
|
|
355
|
-
declare const useIsAnalyticsEnabled: () => boolean | undefined;
|
|
354
|
+
export declare const useIsAnalyticsEnabled: () => boolean | undefined;
|
|
356
355
|
/** Adds an event handler for when the isAnalyticsEnabled for Connect changes. */
|
|
357
|
-
declare const addIsAnalyticsEnabledEventHandler: () => void;
|
|
356
|
+
export declare const addIsAnalyticsEnabledEventHandler: () => void;
|
|
358
357
|
/** Sets the isAnalyticsExternalProcessorsEnabled for Connect. */
|
|
359
|
-
declare const setIsAnalyticsExternalProcessorsEnabled: (value: boolean | undefined) => void;
|
|
358
|
+
export declare const setIsAnalyticsExternalProcessorsEnabled: (value: boolean | undefined) => void;
|
|
360
359
|
/** Gets the isAnalyticsExternalProcessorsEnabled for Connect. */
|
|
361
|
-
declare const useIsAnalyticsExternalProcessorsEnabled: () => boolean | undefined;
|
|
360
|
+
export declare const useIsAnalyticsExternalProcessorsEnabled: () => boolean | undefined;
|
|
362
361
|
/** Adds an event handler for when the isAnalyticsExternalProcessorsEnabled for Connect changes. */
|
|
363
|
-
declare const addIsAnalyticsExternalProcessorsEnabledEventHandler: () => void;
|
|
362
|
+
export declare const addIsAnalyticsExternalProcessorsEnabledEventHandler: () => void;
|
|
364
363
|
/** Sets the analytics database name for Connect. */
|
|
365
|
-
declare const setAnalyticsDatabaseName: (value: string | undefined) => void;
|
|
364
|
+
export declare const setAnalyticsDatabaseName: (value: string | undefined) => void;
|
|
366
365
|
/** Gets the analytics database name for Connect. */
|
|
367
|
-
declare const useAnalyticsDatabaseName: () => string | undefined;
|
|
366
|
+
export declare const useAnalyticsDatabaseName: () => string | undefined;
|
|
368
367
|
/** Adds an event handler for when the analytics database name for Connect changes. */
|
|
369
|
-
declare const addAnalyticsDatabaseNameEventHandler: () => void;
|
|
368
|
+
export declare const addAnalyticsDatabaseNameEventHandler: () => void;
|
|
370
369
|
/** Sets the log level for Connect. */
|
|
371
|
-
declare const setLogLevel: (value: "
|
|
370
|
+
export declare const setLogLevel: (value: "debug" | "error" | "info" | "warn" | undefined) => void;
|
|
372
371
|
/** Gets the log level for Connect. */
|
|
373
|
-
declare const useLogLevel: () => "
|
|
372
|
+
export declare const useLogLevel: () => "debug" | "error" | "info" | "warn" | undefined;
|
|
374
373
|
/** Adds an event handler for when the log level for Connect changes. */
|
|
375
|
-
declare const addLogLevelEventHandler: () => void;
|
|
374
|
+
export declare const addLogLevelEventHandler: () => void;
|
|
376
375
|
/** Sets the allow list for Connect. */
|
|
377
|
-
declare const setAllowList: (value: string[] | undefined) => void;
|
|
376
|
+
export declare const setAllowList: (value: string[] | undefined) => void;
|
|
378
377
|
/** Gets the allow list for Connect. */
|
|
379
|
-
declare const useAllowList: () => string[] | undefined;
|
|
378
|
+
export declare const useAllowList: () => string[] | undefined;
|
|
380
379
|
/** Adds an event handler for when the allow list for Connect changes. */
|
|
381
|
-
declare const addAllowListEventHandler: () => void;
|
|
382
|
-
declare const phGlobalConfigSetters: PHGlobalConfigSetters$1;
|
|
383
|
-
declare const phGlobalConfigHooks: PHGlobalConfigHooks$1;
|
|
380
|
+
export declare const addAllowListEventHandler: () => void;
|
|
381
|
+
export declare const phGlobalConfigSetters: PHGlobalConfigSetters$1;
|
|
382
|
+
export declare const phGlobalConfigHooks: PHGlobalConfigHooks$1;
|
|
384
383
|
//#endregion
|
|
385
384
|
//#region src/hooks/config/editor.d.ts
|
|
386
|
-
declare const isExternalControlsEnabledEventFunctions: {
|
|
385
|
+
export declare const isExternalControlsEnabledEventFunctions: {
|
|
387
386
|
useValue: () => boolean | undefined;
|
|
388
387
|
setValue: (value: boolean | undefined) => void;
|
|
389
388
|
addEventHandler: () => void;
|
|
389
|
+
subscribeToValue: (onStoreChange: () => void) => () => void;
|
|
390
|
+
getSnapshot: () => boolean | undefined;
|
|
390
391
|
};
|
|
391
392
|
/** Sets whether external controls are enabled for a given editor. */
|
|
392
|
-
declare const setIsExternalControlsEnabled: (value: boolean | undefined) => void;
|
|
393
|
+
export declare const setIsExternalControlsEnabled: (value: boolean | undefined) => void;
|
|
393
394
|
/** Gets whether external controls are enabled for a given editor. */
|
|
394
|
-
declare const useIsExternalControlsEnabled: () => boolean | undefined;
|
|
395
|
+
export declare const useIsExternalControlsEnabled: () => boolean | undefined;
|
|
395
396
|
/** Adds an event handler for when the external controls enabled state changes. */
|
|
396
|
-
declare const addIsExternalControlsEnabledEventHandler: () => void;
|
|
397
|
+
export declare const addIsExternalControlsEnabledEventHandler: () => void;
|
|
397
398
|
/** Sets whether drag and drop is enabled for a given app. */
|
|
398
|
-
declare const setIsDragAndDropEnabled: (value: boolean | undefined) => void;
|
|
399
|
+
export declare const setIsDragAndDropEnabled: (value: boolean | undefined) => void;
|
|
399
400
|
/** Gets whether drag and drop is enabled for a given app. */
|
|
400
|
-
declare const useIsDragAndDropEnabled: () => boolean | undefined;
|
|
401
|
+
export declare const useIsDragAndDropEnabled: () => boolean | undefined;
|
|
401
402
|
/** Adds an event handler for when the drag and drop enabled state changes. */
|
|
402
|
-
declare const addIsDragAndDropEnabledEventHandler: () => void;
|
|
403
|
+
export declare const addIsDragAndDropEnabledEventHandler: () => void;
|
|
403
404
|
/** Sets the allowed document types for a given app. */
|
|
404
|
-
declare const setAllowedDocumentTypes: (value: string[] | undefined) => void;
|
|
405
|
+
export declare const setAllowedDocumentTypes: (value: string[] | undefined) => void;
|
|
405
406
|
/** Defines the document types a drive supports.
|
|
406
407
|
*
|
|
407
408
|
* Defaults to all of the document types registered in the reactor.
|
|
408
409
|
*/
|
|
409
|
-
declare function useAllowedDocumentTypes(): string[] | undefined;
|
|
410
|
+
export declare function useAllowedDocumentTypes(): string[] | undefined;
|
|
410
411
|
/** Adds an event handler for when the allowed document types for a given app changes. */
|
|
411
|
-
declare const addAllowedDocumentTypesEventHandler: () => void;
|
|
412
|
-
declare const phAppConfigSetters: PHAppConfigSetters$1;
|
|
413
|
-
declare const phDocumentEditorConfigSetters: PHDocumentEditorConfigSetters$1;
|
|
414
|
-
declare const phAppConfigHooks: PHAppConfigHooks$1;
|
|
415
|
-
declare const phDocumentEditorConfigHooks: PHDocumentEditorConfigHooks$1;
|
|
412
|
+
export declare const addAllowedDocumentTypesEventHandler: () => void;
|
|
413
|
+
export declare const phAppConfigSetters: PHAppConfigSetters$1;
|
|
414
|
+
export declare const phDocumentEditorConfigSetters: PHDocumentEditorConfigSetters$1;
|
|
415
|
+
export declare const phAppConfigHooks: PHAppConfigHooks$1;
|
|
416
|
+
export declare const phDocumentEditorConfigHooks: PHDocumentEditorConfigHooks$1;
|
|
416
417
|
//#endregion
|
|
417
418
|
//#region src/hooks/config/set-config-by-key.d.ts
|
|
418
|
-
declare function setPHGlobalConfigByKey<TKey extends PHGlobalConfigKey$1>(key: TKey, value: PHGlobalConfig$1[TKey] | undefined): void;
|
|
419
|
-
declare function setPHAppConfigByKey<TKey extends PHAppConfigKey$1>(key: TKey, value: PHAppConfig$1[TKey] | undefined): void;
|
|
420
|
-
declare function setPHDocumentEditorConfigByKey<TKey extends PHDocumentEditorConfigKey$1>(key: TKey, value: PHDocumentEditorConfig$1[TKey] | undefined): void;
|
|
419
|
+
export declare function setPHGlobalConfigByKey<TKey extends PHGlobalConfigKey$1>(key: TKey, value: PHGlobalConfig$1[TKey] | undefined): void;
|
|
420
|
+
export declare function setPHAppConfigByKey<TKey extends PHAppConfigKey$1>(key: TKey, value: PHAppConfig$1[TKey] | undefined): void;
|
|
421
|
+
export declare function setPHDocumentEditorConfigByKey<TKey extends PHDocumentEditorConfigKey$1>(key: TKey, value: PHDocumentEditorConfig$1[TKey] | undefined): void;
|
|
421
422
|
//#endregion
|
|
422
423
|
//#region src/hooks/config/set-config-by-object.d.ts
|
|
423
|
-
declare function setDefaultPHGlobalConfig(config: PHGlobalConfig$1): void;
|
|
424
|
-
declare function useSetDefaultPHGlobalConfig(config: PHGlobalConfig$1): void;
|
|
425
|
-
declare function useResetPHGlobalConfig(defaultConfigForReset: PHGlobalConfig$1): () => void;
|
|
426
|
-
declare function setPHGlobalConfig(config: Partial<PHGlobalConfig$1>): void;
|
|
427
|
-
declare function useSetPHGlobalConfig(config: Partial<PHGlobalConfig$1>): void;
|
|
424
|
+
export declare function setDefaultPHGlobalConfig(config: PHGlobalConfig$1): void;
|
|
425
|
+
export declare function useSetDefaultPHGlobalConfig(config: PHGlobalConfig$1): void;
|
|
426
|
+
export declare function useResetPHGlobalConfig(defaultConfigForReset: PHGlobalConfig$1): () => void;
|
|
427
|
+
export declare function setPHGlobalConfig(config: Partial<PHGlobalConfig$1>): void;
|
|
428
|
+
export declare function useSetPHGlobalConfig(config: Partial<PHGlobalConfig$1>): void;
|
|
428
429
|
/** Sets the global drive config.
|
|
429
430
|
*
|
|
430
431
|
* Pass in a partial object of the global drive config to set.
|
|
431
432
|
*/
|
|
432
|
-
declare function setPHAppConfig(config: Partial<PHAppConfig$1>): void;
|
|
433
|
+
export declare function setPHAppConfig(config: Partial<PHAppConfig$1>): void;
|
|
433
434
|
/** Sets the global document config.
|
|
434
435
|
*
|
|
435
436
|
* Pass in a partial object of the global document config to set.
|
|
436
437
|
*/
|
|
437
|
-
declare function setPHDocumentEditorConfig(config: Partial<PHDocumentEditorConfig$1>): void;
|
|
438
|
+
export declare function setPHDocumentEditorConfig(config: Partial<PHDocumentEditorConfig$1>): void;
|
|
438
439
|
/** Wrapper hook for setting the global app config.
|
|
439
440
|
*
|
|
440
441
|
* Automatically sets the global app config when the component mounts.
|
|
441
442
|
*
|
|
442
443
|
* Pass in a partial object of the global app config to set.
|
|
443
444
|
*/
|
|
444
|
-
declare function useSetPHAppConfig(config: Partial<PHAppConfig$1>): void;
|
|
445
|
+
export declare function useSetPHAppConfig(config: Partial<PHAppConfig$1>): void;
|
|
445
446
|
/** Wrapper hook for setting the global document editor config.
|
|
446
447
|
*
|
|
447
448
|
* Automatically sets the global document editor config when the component mounts.
|
|
448
449
|
*
|
|
449
450
|
* Pass in a partial object of the global document editor config to set.
|
|
450
451
|
*/
|
|
451
|
-
declare function useSetPHDocumentEditorConfig(config: Partial<PHDocumentEditorConfig$1>): void;
|
|
452
|
+
export declare function useSetPHDocumentEditorConfig(config: Partial<PHDocumentEditorConfig$1>): void;
|
|
452
453
|
//#endregion
|
|
453
454
|
//#region src/hooks/config/use-value-by-key.d.ts
|
|
454
|
-
declare function usePHGlobalConfigByKey<TKey extends PHGlobalConfigKey$1>(key: TKey):
|
|
455
|
+
export declare function usePHGlobalConfigByKey<TKey extends PHGlobalConfigKey$1>(key: TKey): import("@powerhousedao/reactor-browser").PHGlobalConfig[TKey];
|
|
455
456
|
/** Gets the value of an item in the global drive config for a given key.
|
|
456
457
|
*
|
|
457
458
|
* Strongly typed, inferred from type definition for the key.
|
|
458
459
|
*/
|
|
459
|
-
declare function usePHAppConfigByKey<TKey extends PHAppConfigKey$1>(key: TKey):
|
|
460
|
+
export declare function usePHAppConfigByKey<TKey extends PHAppConfigKey$1>(key: TKey): import("@powerhousedao/reactor-browser").PHGlobalConfig[TKey];
|
|
460
461
|
/** Gets the value of an item in the global document config for a given key.
|
|
461
462
|
*
|
|
462
463
|
* Strongly typed, inferred from type definition for the key.
|
|
463
464
|
*/
|
|
464
|
-
declare function usePHDocumentEditorConfigByKey<TKey extends PHDocumentEditorConfigKey$1>(key: TKey):
|
|
465
|
+
export declare function usePHDocumentEditorConfigByKey<TKey extends PHDocumentEditorConfigKey$1>(key: TKey): import("@powerhousedao/reactor-browser").PHGlobalConfig[TKey];
|
|
465
466
|
//#endregion
|
|
466
467
|
//#region src/hooks/config/utils.d.ts
|
|
467
|
-
declare function callGlobalSetterForKey<TKey extends PHGlobalConfigKey$1>(key: TKey, value: PHGlobalConfig$1[TKey] | undefined): void;
|
|
468
|
+
export declare function callGlobalSetterForKey<TKey extends PHGlobalConfigKey$1>(key: TKey, value: PHGlobalConfig$1[TKey] | undefined): void;
|
|
468
469
|
//#endregion
|
|
469
470
|
//#region src/hooks/drives.d.ts
|
|
470
471
|
/** Returns all of the drives in the reactor */
|
|
471
|
-
declare const useDrives: UsePHGlobalValue<DocumentDriveDocument[]>;
|
|
472
|
+
export declare const useDrives: UsePHGlobalValue<DocumentDriveDocument[]>;
|
|
472
473
|
/** Sets the drives in the reactor */
|
|
473
|
-
declare const setDrives: SetPHGlobalValue<DocumentDriveDocument[]>;
|
|
474
|
+
export declare const setDrives: SetPHGlobalValue<DocumentDriveDocument[]>;
|
|
474
475
|
/** Adds an event handler for the drives */
|
|
475
|
-
declare const addDrivesEventHandler: () => void;
|
|
476
|
+
export declare const addDrivesEventHandler: () => void;
|
|
476
477
|
//#endregion
|
|
477
478
|
//#region src/hooks/loading.d.ts
|
|
478
|
-
declare const useLoading: () => boolean | undefined, setLoading: (value: boolean | undefined) => void, addLoadingEventHandler: () => void;
|
|
479
|
-
declare const loading: LOADING;
|
|
479
|
+
export declare const useLoading: () => boolean | undefined, setLoading: (value: boolean | undefined) => void, addLoadingEventHandler: () => void;
|
|
480
|
+
export declare const loading: LOADING;
|
|
480
481
|
//#endregion
|
|
481
482
|
//#region src/hooks/connection-state.d.ts
|
|
482
483
|
/**
|
|
483
484
|
* Returns a map of remote name to connection state snapshot for all remotes.
|
|
484
485
|
* Re-renders when any remote's connection state changes.
|
|
485
486
|
*/
|
|
486
|
-
declare function useConnectionStates(): ReadonlyMap<string, ConnectionStateSnapshot$1>;
|
|
487
|
+
export declare function useConnectionStates(): ReadonlyMap<string, ConnectionStateSnapshot$1>;
|
|
487
488
|
/**
|
|
488
489
|
* Returns the connection state snapshot for a specific remote by name.
|
|
489
490
|
*/
|
|
490
|
-
declare function useConnectionState(remoteName: string): ConnectionStateSnapshot$1 | undefined;
|
|
491
|
+
export declare function useConnectionState(remoteName: string): ConnectionStateSnapshot$1 | undefined;
|
|
491
492
|
//#endregion
|
|
492
493
|
//#region src/hooks/document-by-id.d.ts
|
|
493
494
|
/** Returns a document by id. */
|
|
494
|
-
declare function useDocumentById(id: string | null | undefined): UseDispatchResult<PHDocument$1, Action$1>;
|
|
495
|
+
export declare function useDocumentById(id: string | null | undefined): UseDispatchResult<PHDocument$1, Action$1>;
|
|
495
496
|
/** Returns documents by ids. */
|
|
496
|
-
declare function useDocumentsByIds(ids: string[] | null | undefined): PHDocument$1[];
|
|
497
|
+
export declare function useDocumentsByIds(ids: string[] | null | undefined): PHDocument$1[];
|
|
497
498
|
//#endregion
|
|
498
499
|
//#region src/hooks/document-of-type.d.ts
|
|
499
500
|
/** Returns a document of a specific type, throws an error if the found document has a different type */
|
|
500
|
-
declare function useDocumentOfType<TDocument extends PHDocument$1, TAction extends Action$1>(documentId: string | null | undefined, documentType: string | null | undefined): never[] | [TDocument, DocumentDispatch$1<TAction>];
|
|
501
|
+
export declare function useDocumentOfType<TDocument extends PHDocument$1, TAction extends Action$1>(documentId: string | null | undefined, documentType: string | null | undefined): never[] | [TDocument, DocumentDispatch$1<TAction>];
|
|
501
502
|
//#endregion
|
|
502
503
|
//#region src/hooks/document-types.d.ts
|
|
503
504
|
/** Returns the document types a app supports.
|
|
@@ -505,10 +506,10 @@ declare function useDocumentOfType<TDocument extends PHDocument$1, TAction exten
|
|
|
505
506
|
* If present, uses the `allowedDocumentTypes` config value.
|
|
506
507
|
* Otherwise, uses the supported document types from the reactor.
|
|
507
508
|
*/
|
|
508
|
-
declare function useDocumentTypes(): string[] | undefined;
|
|
509
|
+
export declare function useDocumentTypes(): string[] | undefined;
|
|
509
510
|
//#endregion
|
|
510
511
|
//#region src/hooks/document-version-status.d.ts
|
|
511
|
-
type DocumentVersionStatus = {
|
|
512
|
+
export type DocumentVersionStatus = {
|
|
512
513
|
kind: "current";
|
|
513
514
|
documentVersion: number;
|
|
514
515
|
} | {
|
|
@@ -525,47 +526,47 @@ type DocumentVersionStatus = {
|
|
|
525
526
|
* Classifies a document's model version against the installed module
|
|
526
527
|
* versions. Pure logic, extracted for testing.
|
|
527
528
|
*/
|
|
528
|
-
declare function getDocumentVersionStatus(documentVersion: number, availableVersions: number[], hasUpgradePath: (fromVersion: number, toVersion: number) => boolean): DocumentVersionStatus | undefined;
|
|
529
|
+
export declare function getDocumentVersionStatus(documentVersion: number, availableVersions: number[], hasUpgradePath: (fromVersion: number, toVersion: number) => boolean): DocumentVersionStatus | undefined;
|
|
529
530
|
/**
|
|
530
531
|
* Compares the given document's model version against the versions available
|
|
531
532
|
* from installed Vetra packages. Returns undefined while packages load or
|
|
532
533
|
* when the document type has no installed modules.
|
|
533
534
|
*/
|
|
534
|
-
declare function useDocumentVersionStatus(document: PHDocument$1 | undefined): DocumentVersionStatus | undefined;
|
|
535
|
+
export declare function useDocumentVersionStatus(document: PHDocument$1 | undefined): DocumentVersionStatus | undefined;
|
|
535
536
|
//#endregion
|
|
536
537
|
//#region src/hooks/download-document.d.ts
|
|
537
|
-
declare function useDownloadDocument(id: string | undefined): () => Promise<void>;
|
|
538
|
+
export declare function useDownloadDocument(id: string | undefined): () => Promise<void>;
|
|
538
539
|
//#endregion
|
|
539
540
|
//#region src/hooks/download-folder.d.ts
|
|
540
541
|
/**
|
|
541
542
|
* Downloads the selected drive's folder (or the whole drive when no folder
|
|
542
543
|
* is given) as a single zip archive mirroring the folder tree.
|
|
543
544
|
*/
|
|
544
|
-
declare function useDownloadFolder(folderNode?: FolderNode): () => Promise<void>;
|
|
545
|
+
export declare function useDownloadFolder(folderNode?: FolderNode): () => Promise<void>;
|
|
545
546
|
//#endregion
|
|
546
547
|
//#region src/hooks/drive-by-id.d.ts
|
|
547
|
-
declare function useDriveById(driveId: string | undefined | null): [DocumentDriveDocument, DocumentDispatch<DocumentDriveAction>];
|
|
548
|
+
export declare function useDriveById(driveId: string | undefined | null): [DocumentDriveDocument, DocumentDispatch<DocumentDriveAction>];
|
|
548
549
|
//#endregion
|
|
549
550
|
//#region src/hooks/editor-modules.d.ts
|
|
550
|
-
declare function useEditorModules(): EditorModule[] | undefined;
|
|
551
|
-
declare function useAppModules(): EditorModule[] | undefined;
|
|
552
|
-
declare function useFallbackEditorModule(documentType: string | null | undefined): EditorModule | undefined;
|
|
553
|
-
declare function useAppModuleById(id: string | null | undefined): EditorModule | undefined;
|
|
554
|
-
declare function useDefaultAppModule(): EditorModule | undefined;
|
|
555
|
-
declare function useEditorModuleById(id: string | null | undefined): EditorModule | undefined;
|
|
556
|
-
declare function useEditorModulesForDocumentType(documentType: string | null | undefined): EditorModule[] | undefined;
|
|
551
|
+
export declare function useEditorModules(): EditorModule[] | undefined;
|
|
552
|
+
export declare function useAppModules(): EditorModule[] | undefined;
|
|
553
|
+
export declare function useFallbackEditorModule(documentType: string | null | undefined): EditorModule | undefined;
|
|
554
|
+
export declare function useAppModuleById(id: string | null | undefined): EditorModule | undefined;
|
|
555
|
+
export declare function useDefaultAppModule(): EditorModule | undefined;
|
|
556
|
+
export declare function useEditorModuleById(id: string | null | undefined): EditorModule | undefined;
|
|
557
|
+
export declare function useEditorModulesForDocumentType(documentType: string | null | undefined): EditorModule[] | undefined;
|
|
557
558
|
//#endregion
|
|
558
559
|
//#region src/hooks/use-editor-preloader.d.ts
|
|
559
|
-
declare function useEditorPreloader(): void;
|
|
560
|
+
export declare function useEditorPreloader(): void;
|
|
560
561
|
//#endregion
|
|
561
562
|
//#region src/hooks/features.d.ts
|
|
562
|
-
declare const useFeatures: UsePHGlobalValue<Map<string, boolean>>;
|
|
563
|
-
declare const setFeatures: SetPHGlobalValue<Map<string, boolean>>;
|
|
564
|
-
declare const addFeaturesEventHandler: AddPHGlobalEventHandler;
|
|
563
|
+
export declare const useFeatures: UsePHGlobalValue<Map<string, boolean>>;
|
|
564
|
+
export declare const setFeatures: SetPHGlobalValue<Map<string, boolean>>;
|
|
565
|
+
export declare const addFeaturesEventHandler: AddPHGlobalEventHandler;
|
|
565
566
|
//#endregion
|
|
566
567
|
//#region src/hooks/file-drag-and-drop.d.ts
|
|
567
|
-
declare const EDITOR_FILE_DROP_OPT_OUT_ATTR = "data-accepts-files";
|
|
568
|
-
declare function useDropFile(handleAddFile: (file: File, parent: Node$1 | undefined) => Promise<void>): {
|
|
568
|
+
export declare const EDITOR_FILE_DROP_OPT_OUT_ATTR = "data-accepts-files";
|
|
569
|
+
export declare function useDropFile(handleAddFile: (file: File, parent: Node$1 | undefined) => Promise<void>): {
|
|
569
570
|
onDragEnter: DragEventHandler;
|
|
570
571
|
onDragOver: DragEventHandler;
|
|
571
572
|
onDragLeave: DragEventHandler;
|
|
@@ -574,65 +575,67 @@ declare function useDropFile(handleAddFile: (file: File, parent: Node$1 | undefi
|
|
|
574
575
|
};
|
|
575
576
|
//#endregion
|
|
576
577
|
//#region src/hooks/folder-by-id.d.ts
|
|
577
|
-
declare function useFolderById(id: string | null | undefined): FolderNode | undefined;
|
|
578
|
+
export declare function useFolderById(id: string | null | undefined): FolderNode | undefined;
|
|
578
579
|
//#endregion
|
|
579
580
|
//#region src/hooks/graphql-reactor-client.d.ts
|
|
580
|
-
declare const useGraphQLReactorClient: UsePHGlobalValue<ReactorGraphQLClient>;
|
|
581
|
-
declare const setGraphQLReactorClient: SetPHGlobalValue<ReactorGraphQLClient>;
|
|
582
|
-
declare const addGraphQLReactorClientEventHandler: () => void;
|
|
581
|
+
export declare const useGraphQLReactorClient: UsePHGlobalValue<ReactorGraphQLClient>;
|
|
582
|
+
export declare const setGraphQLReactorClient: SetPHGlobalValue<ReactorGraphQLClient>;
|
|
583
|
+
export declare const addGraphQLReactorClientEventHandler: () => void;
|
|
583
584
|
//#endregion
|
|
584
585
|
//#region src/hooks/init-graphql-reactor-client.d.ts
|
|
585
|
-
declare function useInitReactorGraphqlClient(switchboardUrl?: "http://localhost:4001/graphql", driveId?: "powerhouse"): boolean;
|
|
586
|
+
export declare function useInitReactorGraphqlClient(switchboardUrl?: "http://localhost:4001/graphql", driveId?: "powerhouse"): boolean;
|
|
586
587
|
//#endregion
|
|
587
588
|
//#region src/hooks/items-in-selected-drive.d.ts
|
|
588
589
|
/** Returns the nodes in the selected drive. */
|
|
589
|
-
declare function useNodesInSelectedDrive():
|
|
590
|
+
export declare function useNodesInSelectedDrive(): import("@powerhousedao/shared/document-drive").Node[] | undefined;
|
|
590
591
|
/** Returns the file nodes in the selected drive. */
|
|
591
|
-
declare function useFileNodesInSelectedDrive(): FileNode[] | undefined;
|
|
592
|
+
export declare function useFileNodesInSelectedDrive(): FileNode[] | undefined;
|
|
592
593
|
/** Returns the folder nodes in the selected drive. */
|
|
593
|
-
declare function useFolderNodesInSelectedDrive(): FolderNode[] | undefined;
|
|
594
|
+
export declare function useFolderNodesInSelectedDrive(): FolderNode[] | undefined;
|
|
594
595
|
/** Returns the documents in the selected drive. */
|
|
595
|
-
declare function useDocumentsInSelectedDrive(): PHDocument$1[] | undefined;
|
|
596
|
+
export declare function useDocumentsInSelectedDrive(): PHDocument$1[] | undefined;
|
|
596
597
|
/** Returns the document types supported by the selected drive, as defined by the document model documents present in the drive */
|
|
597
|
-
declare function useDocumentTypesInSelectedDrive(): string[] | undefined;
|
|
598
|
+
export declare function useDocumentTypesInSelectedDrive(): string[] | undefined;
|
|
598
599
|
//#endregion
|
|
599
600
|
//#region src/hooks/items-in-selected-folder.d.ts
|
|
600
601
|
/** Returns the nodes in the selected folder. */
|
|
601
|
-
declare function useNodesInSelectedFolder(): Node[] | undefined;
|
|
602
|
+
export declare function useNodesInSelectedFolder(): Node[] | undefined;
|
|
602
603
|
/** Returns the file nodes in the selected folder. */
|
|
603
|
-
declare function useFileNodesInSelectedFolder(): FileNode[] | undefined;
|
|
604
|
+
export declare function useFileNodesInSelectedFolder(): FileNode[] | undefined;
|
|
604
605
|
/** Returns the folder nodes in the selected folder. */
|
|
605
|
-
declare function useFolderNodesInSelectedFolder(): FolderNode[] | undefined;
|
|
606
|
+
export declare function useFolderNodesInSelectedFolder(): FolderNode[] | undefined;
|
|
606
607
|
/** Returns the documents in the selected folder. */
|
|
607
|
-
declare function useDocumentsInSelectedFolder(): PHDocument$1[] | undefined;
|
|
608
|
+
export declare function useDocumentsInSelectedFolder(): PHDocument$1[] | undefined;
|
|
608
609
|
//#endregion
|
|
609
610
|
//#region src/hooks/make-ph-event-functions.d.ts
|
|
610
|
-
declare function makePHEventFunctions<TKey extends PHGlobalKey$1>(key: TKey): {
|
|
611
|
+
export declare function makePHEventFunctions<TKey extends PHGlobalKey$1>(key: TKey): {
|
|
611
612
|
useValue: () => PHGlobal$1[TKey] | undefined;
|
|
612
613
|
setValue: (value: PHGlobal$1[TKey] | undefined) => void;
|
|
613
614
|
addEventHandler: () => void;
|
|
615
|
+
subscribeToValue: (onStoreChange: () => void) => () => void;
|
|
616
|
+
getSnapshot: () => PHGlobal$1[TKey] | undefined;
|
|
614
617
|
};
|
|
615
618
|
//#endregion
|
|
616
619
|
//#region src/hooks/modals.d.ts
|
|
617
620
|
/** Returns the current modal */
|
|
618
|
-
declare const usePHModal: () => PHModal$1 | undefined;
|
|
621
|
+
export declare const usePHModal: () => PHModal$1 | undefined;
|
|
619
622
|
/** Sets the current modal */
|
|
620
|
-
declare const setPHModal: (value: PHModal$1 | undefined) => void;
|
|
623
|
+
export declare const setPHModal: (value: PHModal$1 | undefined) => void;
|
|
621
624
|
/** Adds an event handler for the modal */
|
|
622
|
-
declare const addModalEventHandler: () => void;
|
|
625
|
+
export declare const addModalEventHandler: () => void;
|
|
623
626
|
/** Shows a modal */
|
|
624
|
-
declare function showPHModal(modal: PHModal$1): void;
|
|
627
|
+
export declare function showPHModal(modal: PHModal$1): void;
|
|
625
628
|
/** Closes the current modal */
|
|
626
|
-
declare function closePHModal(): void;
|
|
629
|
+
export declare function closePHModal(): void;
|
|
627
630
|
/** Shows the create document modal */
|
|
628
|
-
declare function showCreateDocumentModal(documentType: string, documentModelVersion?: number): void;
|
|
631
|
+
export declare function showCreateDocumentModal(documentType: string, documentModelVersion?: number): void;
|
|
629
632
|
/** Shows the delete node modal */
|
|
630
|
-
declare function showDeleteNodeModal(nodeOrId: Node | string): void;
|
|
633
|
+
export declare function showDeleteNodeModal(nodeOrId: Node | string): void;
|
|
631
634
|
//#endregion
|
|
632
635
|
//#region src/hooks/node-actions.d.ts
|
|
633
|
-
declare function useNodeActions(): {
|
|
636
|
+
export declare function useNodeActions(): {
|
|
634
637
|
onAddFile: (file: File, parent: Node | undefined) => Promise<AddedFileNode | undefined>;
|
|
635
|
-
onAddFolder: (name: string, parent: Node | undefined) => Promise<
|
|
638
|
+
onAddFolder: (name: string, parent: Node | undefined) => Promise<import("@powerhousedao/shared/document-drive").FolderNode | undefined>;
|
|
636
639
|
onRenameNode: (newName: string, node: Node) => Promise<Node | undefined>;
|
|
637
640
|
onCopyNode: (src: Node, target: Node | undefined) => Promise<void>;
|
|
638
641
|
onMoveNode: (src: Node, target: Node | undefined) => Promise<void>;
|
|
@@ -643,89 +646,89 @@ declare function useNodeActions(): {
|
|
|
643
646
|
//#endregion
|
|
644
647
|
//#region src/hooks/node-by-id.d.ts
|
|
645
648
|
/** Returns a node in the selected drive by id. */
|
|
646
|
-
declare function useNodeById(id: string | null | undefined): Node | undefined;
|
|
649
|
+
export declare function useNodeById(id: string | null | undefined): Node | undefined;
|
|
647
650
|
//#endregion
|
|
648
651
|
//#region src/hooks/node-path.d.ts
|
|
649
652
|
/** Returns the path to a node in the selected drive */
|
|
650
|
-
declare function useNodePathById(id: string | null | undefined): Node[];
|
|
653
|
+
export declare function useNodePathById(id: string | null | undefined): Node[];
|
|
651
654
|
/** Returns the path to the currently selected node in the selected drive. */
|
|
652
|
-
declare function useSelectedNodePath(): Node[];
|
|
655
|
+
export declare function useSelectedNodePath(): Node[];
|
|
653
656
|
//#endregion
|
|
654
657
|
//#region src/hooks/package-discovery.d.ts
|
|
655
|
-
declare const usePackageDiscoveryService: () => IPackageDiscoveryService | undefined;
|
|
656
|
-
declare const setPackageDiscoveryService: (value: IPackageDiscoveryService | undefined) => void;
|
|
657
|
-
declare const addPackageDiscoveryServiceEventHandler: () => void;
|
|
658
|
+
export declare const usePackageDiscoveryService: () => IPackageDiscoveryService | undefined;
|
|
659
|
+
export declare const setPackageDiscoveryService: (value: IPackageDiscoveryService | undefined) => void;
|
|
660
|
+
export declare const addPackageDiscoveryServiceEventHandler: () => void;
|
|
658
661
|
//#endregion
|
|
659
662
|
//#region src/hooks/parent-folder.d.ts
|
|
660
|
-
declare function useNodeParentFolderById(id: string | null | undefined): FolderNode | undefined;
|
|
661
|
-
declare function useParentFolderForSelectedNode(): FolderNode | undefined;
|
|
663
|
+
export declare function useNodeParentFolderById(id: string | null | undefined): FolderNode | undefined;
|
|
664
|
+
export declare function useParentFolderForSelectedNode(): FolderNode | undefined;
|
|
662
665
|
//#endregion
|
|
663
666
|
//#region src/hooks/revision-history.d.ts
|
|
664
667
|
/** Returns whether revision history is visible */
|
|
665
|
-
declare const useRevisionHistoryVisible: () => boolean | undefined;
|
|
668
|
+
export declare const useRevisionHistoryVisible: () => boolean | undefined;
|
|
666
669
|
/** Sets revision history visibility */
|
|
667
|
-
declare const setRevisionHistoryVisible: (value: boolean | undefined) => void;
|
|
670
|
+
export declare const setRevisionHistoryVisible: (value: boolean | undefined) => void;
|
|
668
671
|
/** Adds event handler for revision history visibility */
|
|
669
|
-
declare const addRevisionHistoryVisibleEventHandler: () => void;
|
|
672
|
+
export declare const addRevisionHistoryVisibleEventHandler: () => void;
|
|
670
673
|
/** Shows the revision history */
|
|
671
|
-
declare function showRevisionHistory(): void;
|
|
674
|
+
export declare function showRevisionHistory(): void;
|
|
672
675
|
/** Hides the revision history */
|
|
673
|
-
declare function hideRevisionHistory(): void;
|
|
676
|
+
export declare function hideRevisionHistory(): void;
|
|
674
677
|
//#endregion
|
|
675
678
|
//#region src/hooks/selected-document.d.ts
|
|
676
679
|
/** Returns the selected document id */
|
|
677
|
-
declare function useSelectedDocumentId(): string | undefined;
|
|
680
|
+
export declare function useSelectedDocumentId(): string | undefined;
|
|
678
681
|
/** Returns the selected document. */
|
|
679
|
-
declare function useSelectedDocument(): readonly [PHDocument$1, DispatchFn<Action$1>];
|
|
682
|
+
export declare function useSelectedDocument(): readonly [PHDocument$1, DispatchFn<Action$1>];
|
|
680
683
|
/** Returns the selected document. */
|
|
681
|
-
declare function useSelectedDocumentSafe(): UseDispatchResult<PHDocument$1, Action$1>;
|
|
684
|
+
export declare function useSelectedDocumentSafe(): UseDispatchResult<PHDocument$1, Action$1>;
|
|
682
685
|
/** Returns the selected document of a specific type, throws an error if the found document has a different type */
|
|
683
|
-
declare function useSelectedDocumentOfType(documentType: null | undefined): never[];
|
|
684
|
-
declare function useSelectedDocumentOfType<TDocument extends PHDocument$1, TAction extends Action$1>(documentType: string): [TDocument, DocumentDispatch$1<TAction>];
|
|
686
|
+
export declare function useSelectedDocumentOfType(documentType: null | undefined): never[];
|
|
687
|
+
export declare function useSelectedDocumentOfType<TDocument extends PHDocument$1, TAction extends Action$1>(documentType: string): [TDocument, DocumentDispatch$1<TAction>];
|
|
685
688
|
//#endregion
|
|
686
689
|
//#region src/hooks/selected-drive.d.ts
|
|
687
690
|
/** Returns the selected drive id */
|
|
688
|
-
declare const useSelectedDriveId: () => string | undefined;
|
|
691
|
+
export declare const useSelectedDriveId: () => string | undefined;
|
|
689
692
|
/** Sets the selected drive id */
|
|
690
|
-
declare const setSelectedDriveId: (value: string | undefined) => void;
|
|
693
|
+
export declare const setSelectedDriveId: (value: string | undefined) => void;
|
|
691
694
|
/** Adds an event handler for the selected drive id */
|
|
692
|
-
declare const addSelectedDriveIdEventHandler: () => void;
|
|
695
|
+
export declare const addSelectedDriveIdEventHandler: () => void;
|
|
693
696
|
/** Returns the selected drive */
|
|
694
|
-
declare function useSelectedDrive(): [DocumentDriveDocument, DocumentDispatch$1<DocumentDriveAction>];
|
|
697
|
+
export declare function useSelectedDrive(): [DocumentDriveDocument, DocumentDispatch$1<DocumentDriveAction>];
|
|
695
698
|
/** Returns the selected drive, or undefined if no drive is selected */
|
|
696
|
-
declare function useSelectedDriveSafe():
|
|
697
|
-
declare function setSelectedDrive(driveOrDriveSlug: string | DocumentDriveDocument | undefined): void;
|
|
698
|
-
declare function addSetSelectedDriveOnPopStateEventHandler(): void;
|
|
699
|
+
export declare function useSelectedDriveSafe(): [DocumentDriveDocument, DocumentDispatch$1<DocumentDriveAction>] | readonly [undefined, undefined];
|
|
700
|
+
export declare function setSelectedDrive(driveOrDriveSlug: string | DocumentDriveDocument | undefined): void;
|
|
701
|
+
export declare function addSetSelectedDriveOnPopStateEventHandler(): void;
|
|
699
702
|
//#endregion
|
|
700
703
|
//#region src/hooks/selected-folder.d.ts
|
|
701
704
|
/** Returns the selected folder. */
|
|
702
|
-
declare function useSelectedFolder(): FolderNode | undefined;
|
|
705
|
+
export declare function useSelectedFolder(): FolderNode | undefined;
|
|
703
706
|
//#endregion
|
|
704
707
|
//#region src/hooks/set-selected-node.d.ts
|
|
705
|
-
declare const addSelectedNodeIdEventHandler: () => void;
|
|
708
|
+
export declare const addSelectedNodeIdEventHandler: () => void;
|
|
706
709
|
/** Sets the selected node (file or folder). */
|
|
707
|
-
declare function setSelectedNode(nodeOrNodeSlug: Node | string | undefined): void;
|
|
708
|
-
declare function addResetSelectedNodeEventHandler(): void;
|
|
709
|
-
declare function addSetSelectedNodeOnPopStateEventHandler(): void;
|
|
710
|
+
export declare function setSelectedNode(nodeOrNodeSlug: Node | string | undefined): void;
|
|
711
|
+
export declare function addResetSelectedNodeEventHandler(): void;
|
|
712
|
+
export declare function addSetSelectedNodeOnPopStateEventHandler(): void;
|
|
710
713
|
//#endregion
|
|
711
714
|
//#region src/hooks/selected-node.d.ts
|
|
712
715
|
/** Returns the selected node. */
|
|
713
|
-
declare function useSelectedNode(): Node | undefined;
|
|
716
|
+
export declare function useSelectedNode(): Node | undefined;
|
|
714
717
|
//#endregion
|
|
715
718
|
//#region src/hooks/selected-timeline-item.d.ts
|
|
716
719
|
/** Returns the selected timeline item */
|
|
717
|
-
declare const useSelectedTimelineItem: () => TimelineItem | null | undefined;
|
|
720
|
+
export declare const useSelectedTimelineItem: () => TimelineItem | null | undefined;
|
|
718
721
|
/** Sets the selected timeline item */
|
|
719
|
-
declare const setSelectedTimelineItem: (value: TimelineItem | null | undefined) => void;
|
|
722
|
+
export declare const setSelectedTimelineItem: (value: TimelineItem | null | undefined) => void;
|
|
720
723
|
/** Adds event handler for selected timeline item */
|
|
721
|
-
declare const addSelectedTimelineItemEventHandler: () => void;
|
|
724
|
+
export declare const addSelectedTimelineItemEventHandler: () => void;
|
|
722
725
|
//#endregion
|
|
723
726
|
//#region src/hooks/subgraph-modules.d.ts
|
|
724
|
-
declare function useSubgraphModules(): SubgraphModule[] | undefined;
|
|
727
|
+
export declare function useSubgraphModules(): SubgraphModule[] | undefined;
|
|
725
728
|
//#endregion
|
|
726
729
|
//#region src/hooks/supported-document-types.d.ts
|
|
727
730
|
/** Returns the supported document types for the reactor (derived from the document model modules) */
|
|
728
|
-
declare function useSupportedDocumentTypesInReactor(): string[] | undefined;
|
|
731
|
+
export declare function useSupportedDocumentTypesInReactor(): string[] | undefined;
|
|
729
732
|
//#endregion
|
|
730
733
|
//#region src/hooks/theme.d.ts
|
|
731
734
|
type Theme = "light" | "dark";
|
|
@@ -752,8 +755,8 @@ declare global {
|
|
|
752
755
|
interface WindowEventMap extends ThemeWindowEvents {}
|
|
753
756
|
}
|
|
754
757
|
declare function setTheme(storedTheme: StoredTheme): void;
|
|
755
|
-
declare function initTheme(): void;
|
|
756
|
-
declare function useTheme(): {
|
|
758
|
+
export declare function initTheme(): void;
|
|
759
|
+
export declare function useTheme(): {
|
|
757
760
|
readonly theme: Theme;
|
|
758
761
|
readonly isSystem: boolean;
|
|
759
762
|
readonly setTheme: typeof setTheme;
|
|
@@ -761,19 +764,19 @@ declare function useTheme(): {
|
|
|
761
764
|
//#endregion
|
|
762
765
|
//#region src/hooks/timeline-revision.d.ts
|
|
763
766
|
/** Returns the selected timeline revision. */
|
|
764
|
-
declare const useSelectedTimelineRevision: () => string | number | null | undefined;
|
|
767
|
+
export declare const useSelectedTimelineRevision: () => string | number | null | undefined;
|
|
765
768
|
/** Sets the selected timeline revision. */
|
|
766
|
-
declare const setSelectedTimelineRevision: (value: string | number | null | undefined) => void;
|
|
769
|
+
export declare const setSelectedTimelineRevision: (value: string | number | null | undefined) => void;
|
|
767
770
|
/** Adds an event handler for the selected timeline revision. */
|
|
768
|
-
declare const addSelectedTimelineRevisionEventHandler: () => void;
|
|
771
|
+
export declare const addSelectedTimelineRevisionEventHandler: () => void;
|
|
769
772
|
//#endregion
|
|
770
773
|
//#region src/hooks/toast.d.ts
|
|
771
774
|
/** Returns the toast function */
|
|
772
|
-
declare const usePHToast: () => PHToastFn | undefined;
|
|
775
|
+
export declare const usePHToast: () => PHToastFn | undefined;
|
|
773
776
|
/** Sets the toast function */
|
|
774
|
-
declare const setPHToast: (value: PHToastFn | undefined) => void;
|
|
777
|
+
export declare const setPHToast: (value: PHToastFn | undefined) => void;
|
|
775
778
|
/** Adds an event handler for the toast */
|
|
776
|
-
declare const addToastEventHandler: () => void;
|
|
779
|
+
export declare const addToastEventHandler: () => void;
|
|
777
780
|
//#endregion
|
|
778
781
|
//#region src/hooks/use-can-execute.d.ts
|
|
779
782
|
/**
|
|
@@ -785,7 +788,7 @@ declare const addToastEventHandler: () => void;
|
|
|
785
788
|
* controls as it did before it asked, and let the submit path refuse. Reading it
|
|
786
789
|
* as a denial would disable every control wherever enforcement is off.
|
|
787
790
|
*/
|
|
788
|
-
type CanExecuteStatus = "idle" | "loading" | "ready" | "unsupported" | "error";
|
|
791
|
+
export type CanExecuteStatus = "idle" | "loading" | "ready" | "unsupported" | "error";
|
|
789
792
|
type InternalState = {
|
|
790
793
|
status: CanExecuteStatus;
|
|
791
794
|
evaluations?: Evaluation[];
|
|
@@ -796,7 +799,7 @@ type InternalState = {
|
|
|
796
799
|
error?: Error;
|
|
797
800
|
};
|
|
798
801
|
/** What `useCanExecute` returns; exported so consumers can name it. */
|
|
799
|
-
type CanExecuteState = InternalState & {
|
|
802
|
+
export type CanExecuteState = InternalState & {
|
|
800
803
|
refetch: () => void;
|
|
801
804
|
};
|
|
802
805
|
/**
|
|
@@ -833,10 +836,10 @@ type CanExecuteState = InternalState & {
|
|
|
833
836
|
* @param branch - Branch to evaluate against, defaulting to main
|
|
834
837
|
* @param subject - Optional subject to decide for instead of the client's signer
|
|
835
838
|
*/
|
|
836
|
-
declare function useCanExecute(documentId: string | null | undefined, candidates: ActionCandidate[], branch?: string, subject?: AuthSubject): CanExecuteState;
|
|
839
|
+
export declare function useCanExecute(documentId: string | null | undefined, candidates: ActionCandidate[], branch?: string, subject?: AuthSubject): CanExecuteState;
|
|
837
840
|
//#endregion
|
|
838
841
|
//#region src/hooks/use-drive-system-info.d.ts
|
|
839
|
-
type DriveSystemInfoState = {
|
|
842
|
+
export type DriveSystemInfoState = {
|
|
840
843
|
status: "local";
|
|
841
844
|
} | {
|
|
842
845
|
status: "loading";
|
|
@@ -850,17 +853,18 @@ type DriveSystemInfoState = {
|
|
|
850
853
|
gitUrl: string | null;
|
|
851
854
|
host: string;
|
|
852
855
|
};
|
|
853
|
-
declare function deriveSystemUrl(channelUrl: string): string | null;
|
|
854
|
-
declare function useDriveSystemInfo(drive: DocumentDriveDocument | undefined): DriveSystemInfoState;
|
|
856
|
+
export declare function deriveSystemUrl(channelUrl: string): string | null;
|
|
857
|
+
export declare function useDriveSystemInfo(drive: DocumentDriveDocument | undefined): DriveSystemInfoState;
|
|
855
858
|
//#endregion
|
|
856
859
|
//#region src/hooks/use-editor-file-drop.d.ts
|
|
857
|
-
type UseEditorFileDropOptions = {
|
|
860
|
+
export type UseEditorFileDropOptions = {
|
|
858
861
|
/** Lowercase file extensions including the dot (e.g. [".png", ".pdf"]).
|
|
859
862
|
* When omitted, all files are accepted. */
|
|
860
|
-
accept?: readonly string[];
|
|
863
|
+
accept?: readonly string[];
|
|
864
|
+
/** Called with the files that passed the extension filter. */
|
|
861
865
|
onFiles: (files: File[]) => void;
|
|
862
866
|
};
|
|
863
|
-
type UseEditorFileDropResult = {
|
|
867
|
+
export type UseEditorFileDropResult = {
|
|
864
868
|
/** Spread onto the editor's root element. Includes the opt-out attribute
|
|
865
869
|
* so the outer DropZone leaves file drops alone within this subtree. */
|
|
866
870
|
dragProps: {
|
|
@@ -868,10 +872,11 @@ type UseEditorFileDropResult = {
|
|
|
868
872
|
onDragOver: DragEventHandler<Element>;
|
|
869
873
|
onDragLeave: DragEventHandler<Element>;
|
|
870
874
|
onDrop: DragEventHandler<Element>;
|
|
871
|
-
} & Record<typeof EDITOR_FILE_DROP_OPT_OUT_ATTR, "">;
|
|
875
|
+
} & Record<typeof EDITOR_FILE_DROP_OPT_OUT_ATTR, "">;
|
|
876
|
+
/** True while a file drag is hovering anywhere inside the editor root. */
|
|
872
877
|
isDragOver: boolean;
|
|
873
878
|
};
|
|
874
|
-
declare function useEditorFileDrop(options: UseEditorFileDropOptions): UseEditorFileDropResult;
|
|
879
|
+
export declare function useEditorFileDrop(options: UseEditorFileDropOptions): UseEditorFileDropResult;
|
|
875
880
|
//#endregion
|
|
876
881
|
//#region src/hooks/use-get-switchboard-link.d.ts
|
|
877
882
|
/**
|
|
@@ -885,7 +890,7 @@ declare function useEditorFileDrop(options: UseEditorFileDropOptions): UseEditor
|
|
|
885
890
|
* @param document - The document to create a switchboard URL generator for
|
|
886
891
|
* @returns An async function that returns the switchboard URL, or null if not applicable
|
|
887
892
|
*/
|
|
888
|
-
declare function useGetSwitchboardLink(document: PHDocument$1 | undefined): (() => Promise<string>) | null;
|
|
893
|
+
export declare function useGetSwitchboardLink(document: PHDocument$1 | undefined): (() => Promise<string>) | null;
|
|
889
894
|
//#endregion
|
|
890
895
|
//#region src/types/upload.d.ts
|
|
891
896
|
type DocumentTypeIcon = "analytics-processor" | "relational-processor" | "codegen-processor" | "app" | "document-model" | "editor" | "package" | "subgraph";
|
|
@@ -905,16 +910,16 @@ type FileUploadProgressCallback = (progress: FileUploadProgress) => void;
|
|
|
905
910
|
type UseOnDropFile = (documentTypesOverride?: string[]) => (file: File, targetFolder?: Node, onProgress?: FileUploadProgressCallback, resolveConflict?: ConflictResolution) => Promise<FileNode | undefined>;
|
|
906
911
|
//#endregion
|
|
907
912
|
//#region src/hooks/use-on-drop-file.d.ts
|
|
908
|
-
declare const useOnDropFile: UseOnDropFile;
|
|
913
|
+
export declare const useOnDropFile: UseOnDropFile;
|
|
909
914
|
//#endregion
|
|
910
915
|
//#region src/hooks/user-permissions.d.ts
|
|
911
|
-
declare function useUserPermissions(): {
|
|
916
|
+
export declare function useUserPermissions(): {
|
|
912
917
|
isAllowedToCreateDocuments: boolean;
|
|
913
918
|
isAllowedToEditDocuments: boolean;
|
|
914
919
|
};
|
|
915
920
|
//#endregion
|
|
916
921
|
//#region src/hooks/vetra-packages.d.ts
|
|
917
|
-
declare const useVetraPackageManager: () => IPackageManager | undefined;
|
|
922
|
+
export declare const useVetraPackageManager: () => IPackageManager | undefined;
|
|
918
923
|
/**
|
|
919
924
|
* Returns all of the Vetra packages loaded by the Connect instance.
|
|
920
925
|
*
|
|
@@ -922,11 +927,18 @@ declare const useVetraPackageManager: () => IPackageManager | undefined;
|
|
|
922
927
|
* manager is registered: `useSyncExternalStore` loops when the snapshot
|
|
923
928
|
* changes on every read, which a fresh `[]` does.
|
|
924
929
|
*/
|
|
925
|
-
declare const useVetraPackages: () => DocumentModelLib[];
|
|
930
|
+
export declare const useVetraPackages: () => DocumentModelLib[];
|
|
926
931
|
/** Adds the Vetra package manager event handler */
|
|
927
|
-
declare const addVetraPackageManagerEventHandler: () => void;
|
|
932
|
+
export declare const addVetraPackageManagerEventHandler: () => void;
|
|
933
|
+
/**
|
|
934
|
+
* Non-react access to the Vetra package manager: calls `callback` once a
|
|
935
|
+
* manager is available - immediately when already set, otherwise when
|
|
936
|
+
* `setVetraPackageManager` publishes one. Returns an unsubscribe. The worker
|
|
937
|
+
* wiring uses this to forward package updates from plain boot code.
|
|
938
|
+
*/
|
|
939
|
+
export declare function onVetraPackageManager(callback: (packageManager: IPackageManager) => void): () => void;
|
|
928
940
|
/** Sets the Vetra package manager and registers its packages */
|
|
929
|
-
declare function setVetraPackageManager(packageManager: IPackageManager): void;
|
|
941
|
+
export declare function setVetraPackageManager(packageManager: IPackageManager): void;
|
|
930
942
|
//#endregion
|
|
931
943
|
//#region src/hooks/attachment-progress.d.ts
|
|
932
944
|
/**
|
|
@@ -941,7 +953,8 @@ declare function setVetraPackageManager(packageManager: IPackageManager): void;
|
|
|
941
953
|
* silently scaling by 100.
|
|
942
954
|
*/
|
|
943
955
|
type AttachmentProgressState = {
|
|
944
|
-
/** 0-100. Always 0 while `indeterminate`, since no position is known. */
|
|
956
|
+
/** 0-100. Always 0 while `indeterminate`, since no position is known. */
|
|
957
|
+
percent: number;
|
|
945
958
|
loaded: number;
|
|
946
959
|
total: number | undefined;
|
|
947
960
|
indeterminate: boolean;
|
|
@@ -949,7 +962,7 @@ type AttachmentProgressState = {
|
|
|
949
962
|
//#endregion
|
|
950
963
|
//#region src/hooks/use-attachments.d.ts
|
|
951
964
|
/** Returns an IAttachmentClient wrapping the current IAttachmentService, or undefined if none is set. */
|
|
952
|
-
declare function useAttachments(): IAttachmentClient | undefined;
|
|
965
|
+
export declare function useAttachments(): IAttachmentClient | undefined;
|
|
953
966
|
/**
|
|
954
967
|
* Upload lifecycle stage, derived from the client's own `AttachmentStage` plus
|
|
955
968
|
* an `idle` state the client has no reason to model.
|
|
@@ -959,10 +972,11 @@ declare function useAttachments(): IAttachmentClient | undefined;
|
|
|
959
972
|
* `UploadStatus` enum was a parallel vocabulary that had already drifted (it
|
|
960
973
|
* never gained `Reserving`).
|
|
961
974
|
*/
|
|
962
|
-
type AttachmentUploadStage = "idle" | "hashing" | "reserving" | "uploading" | "done" | "error";
|
|
963
|
-
type AttachmentDownloadStage = "idle" | "requesting-download-target" | "downloading" | "done" | "error";
|
|
964
|
-
type UseAttachmentPreviewInput = {
|
|
965
|
-
documentId: string;
|
|
975
|
+
export type AttachmentUploadStage = "idle" | "hashing" | "reserving" | "uploading" | "done" | "error";
|
|
976
|
+
export type AttachmentDownloadStage = "idle" | "requesting-download-target" | "downloading" | "done" | "error";
|
|
977
|
+
export type UseAttachmentPreviewInput = {
|
|
978
|
+
documentId: string;
|
|
979
|
+
/** Pass null/undefined to render nothing (the hook stays idle). */
|
|
966
980
|
ref: AttachmentDownloadInput["ref"] | null | undefined;
|
|
967
981
|
/**
|
|
968
982
|
* How many times a failed attempt is retried before the hook settles on
|
|
@@ -971,16 +985,19 @@ type UseAttachmentPreviewInput = {
|
|
|
971
985
|
* downloads and only learns the (document, ref) pair once the operation
|
|
972
986
|
* has synced and been projected. Defaults to 3.
|
|
973
987
|
*/
|
|
974
|
-
retries?: number;
|
|
988
|
+
retries?: number;
|
|
989
|
+
/** Fixed delay between attempts, in milliseconds. Defaults to 3000. */
|
|
975
990
|
retryDelayMs?: number;
|
|
976
991
|
};
|
|
977
|
-
type UseAttachmentPreviewReturn = {
|
|
978
|
-
/** Object URL ready for img/iframe/video src; undefined while loading or on error. */
|
|
992
|
+
export type UseAttachmentPreviewReturn = {
|
|
993
|
+
/** Object URL ready for img/iframe/video src; undefined while loading or on error. */
|
|
994
|
+
url: string | undefined;
|
|
979
995
|
header: AttachmentHeader | undefined;
|
|
980
996
|
loading: boolean;
|
|
981
997
|
error: Error | undefined;
|
|
982
998
|
stage: AttachmentDownloadStage;
|
|
983
|
-
progress: AttachmentProgressState;
|
|
999
|
+
progress: AttachmentProgressState;
|
|
1000
|
+
/** 1-based attempt currently in flight; 0 while idle. */
|
|
984
1001
|
attempt: number;
|
|
985
1002
|
maxAttempts: number;
|
|
986
1003
|
/**
|
|
@@ -999,15 +1016,11 @@ type UseAttachmentPreviewReturn = {
|
|
|
999
1016
|
* appears as soon as the server's reference index catches up. Progress resets
|
|
1000
1017
|
* per attempt; nothing resumes.
|
|
1001
1018
|
*/
|
|
1002
|
-
declare function useAttachmentPreview({
|
|
1003
|
-
|
|
1004
|
-
ref,
|
|
1005
|
-
retries,
|
|
1006
|
-
retryDelayMs
|
|
1007
|
-
}: UseAttachmentPreviewInput): UseAttachmentPreviewReturn;
|
|
1008
|
-
type UseAttachmentUploadReturn = {
|
|
1019
|
+
export declare function useAttachmentPreview({ documentId, ref, retries, retryDelayMs }: UseAttachmentPreviewInput): UseAttachmentPreviewReturn;
|
|
1020
|
+
export type UseAttachmentUploadReturn = {
|
|
1009
1021
|
preprocess: (file: Blob) => Promise<PreprocessResult>;
|
|
1010
|
-
upload: (results: PreprocessResult) => Promise<void>;
|
|
1022
|
+
upload: (results: PreprocessResult) => Promise<void>;
|
|
1023
|
+
/** Aborts the transfer in flight; the upload promise rejects. */
|
|
1011
1024
|
cancel: () => void;
|
|
1012
1025
|
/**
|
|
1013
1026
|
* Returns to idle, discarding the previous result and error. Aborts a
|
|
@@ -1028,11 +1041,11 @@ type UseAttachmentUploadReturn = {
|
|
|
1028
1041
|
* rather than reimplementing the flow, which is what makes progress, dedup
|
|
1029
1042
|
* reporting and cancellation identical to the non-React path.
|
|
1030
1043
|
*/
|
|
1031
|
-
declare function useAttachmentUpload(): UseAttachmentUploadReturn;
|
|
1044
|
+
export declare function useAttachmentUpload(): UseAttachmentUploadReturn;
|
|
1032
1045
|
//#endregion
|
|
1033
1046
|
//#region src/pglite/drop.d.ts
|
|
1034
|
-
declare function truncateAllTables(pg: PGlite, schema?: string): Promise<void>;
|
|
1035
|
-
declare function dropAllReactorStorage(pg: PGlite): Promise<void>;
|
|
1047
|
+
export declare function truncateAllTables(pg: PGlite, schema?: string): Promise<void>;
|
|
1048
|
+
export declare function dropAllReactorStorage(pg: PGlite): Promise<void>;
|
|
1036
1049
|
//#endregion
|
|
1037
1050
|
//#region src/pglite/usePGlite.d.ts
|
|
1038
1051
|
interface PGliteState {
|
|
@@ -1040,18 +1053,18 @@ interface PGliteState {
|
|
|
1040
1053
|
isLoading: boolean;
|
|
1041
1054
|
error: Error | null;
|
|
1042
1055
|
}
|
|
1043
|
-
declare function setPGliteDB(pglite: Partial<PGliteState>): void;
|
|
1056
|
+
export declare function setPGliteDB(pglite: Partial<PGliteState>): void;
|
|
1044
1057
|
//#endregion
|
|
1045
1058
|
//#region src/reactor.d.ts
|
|
1046
|
-
type ReactorDefaultDrivesConfig = {
|
|
1059
|
+
export type ReactorDefaultDrivesConfig = {
|
|
1047
1060
|
defaultDrivesUrl?: string[];
|
|
1048
1061
|
};
|
|
1049
|
-
type RefreshReactorDataConfig = {
|
|
1062
|
+
export type RefreshReactorDataConfig = {
|
|
1050
1063
|
debounceDelayMs?: number;
|
|
1051
1064
|
immediateThresholdMs?: number;
|
|
1052
1065
|
};
|
|
1053
|
-
declare const refreshReactorData: (reactor: IReactorClient$1, immediate?: boolean) => Promise<void>;
|
|
1054
|
-
declare const refreshReactorDataClient: (reactor: IReactorClient$1 | undefined, immediate?: boolean) => Promise<void>;
|
|
1066
|
+
export declare const refreshReactorData: (reactor: IReactorClient$1, immediate?: boolean) => Promise<void>;
|
|
1067
|
+
export declare const refreshReactorDataClient: (reactor: IReactorClient$1 | undefined, immediate?: boolean) => Promise<void>;
|
|
1055
1068
|
//#endregion
|
|
1056
1069
|
//#region src/registry/types.d.ts
|
|
1057
1070
|
interface PublishEvent {
|
|
@@ -1060,7 +1073,7 @@ interface PublishEvent {
|
|
|
1060
1073
|
}
|
|
1061
1074
|
//#endregion
|
|
1062
1075
|
//#region src/registry/client.d.ts
|
|
1063
|
-
declare class RegistryClient {
|
|
1076
|
+
export declare class RegistryClient {
|
|
1064
1077
|
readonly apiUrl: string;
|
|
1065
1078
|
constructor(cdnUrl: string);
|
|
1066
1079
|
getPackages(): Promise<PackageInfo[]>;
|
|
@@ -1070,39 +1083,37 @@ declare class RegistryClient {
|
|
|
1070
1083
|
}
|
|
1071
1084
|
//#endregion
|
|
1072
1085
|
//#region src/registry/fetchers.d.ts
|
|
1073
|
-
declare function trimTrailingSlash(url: string): string;
|
|
1074
|
-
declare function getPackages(registryUrl: string): Promise<PackageInfo[]>;
|
|
1086
|
+
export declare function trimTrailingSlash(url: string): string;
|
|
1087
|
+
export declare function getPackages(registryUrl: string): Promise<PackageInfo[]>;
|
|
1088
|
+
export declare function searchPackages(registryUrl: string, search: string): Promise<PackageInfo[]>;
|
|
1075
1089
|
/**
|
|
1076
|
-
*
|
|
1077
|
-
* paginated `GET /packages?limit=&offset=&search=` mode. Used by the Package
|
|
1090
|
+
* One page of the registry listing (trimmed items). Used by the Package
|
|
1078
1091
|
* Manager's Available tab for infinite scroll + server-side search.
|
|
1079
1092
|
*/
|
|
1080
|
-
declare function getPackagePage(registryUrl: string, params: {
|
|
1093
|
+
export declare function getPackagePage(registryUrl: string, params: {
|
|
1081
1094
|
limit: number;
|
|
1082
1095
|
offset: number;
|
|
1083
1096
|
search?: string;
|
|
1084
1097
|
}): Promise<PackagePage>;
|
|
1085
1098
|
/**
|
|
1086
|
-
*
|
|
1087
|
-
*
|
|
1088
|
-
* not just names). Used by the MissingPackageModal to offer installs without
|
|
1089
|
-
* loading the entire paginated listing.
|
|
1099
|
+
* Full package info for every package exposing a given document type. Used by
|
|
1100
|
+
* the MissingPackageModal to offer installs without loading the whole listing.
|
|
1090
1101
|
*/
|
|
1091
|
-
declare function getPackagesForDocumentType(registryUrl: string, documentType: string): Promise<PackageInfo[]>;
|
|
1092
|
-
declare function getPackagesByDocumentType(registryUrl: string, documentType: string): Promise<string[]>;
|
|
1102
|
+
export declare function getPackagesForDocumentType(registryUrl: string, documentType: string): Promise<PackageInfo[]>;
|
|
1103
|
+
export declare function getPackagesByDocumentType(registryUrl: string, documentType: string): Promise<string[]>;
|
|
1093
1104
|
/**
|
|
1094
1105
|
* Fetch full metadata (versions + dist-tags) for one package from the
|
|
1095
1106
|
* single-package endpoint. Returns null when the package no longer exists
|
|
1096
1107
|
* upstream.
|
|
1097
1108
|
*/
|
|
1098
|
-
declare function getPackageInfo(registryUrl: string, name: string): Promise<PackageInfo | null>;
|
|
1109
|
+
export declare function getPackageInfo(registryUrl: string, name: string): Promise<PackageInfo | null>;
|
|
1099
1110
|
//#endregion
|
|
1100
1111
|
//#region src/remote-controller/action-tracker.d.ts
|
|
1101
1112
|
/**
|
|
1102
1113
|
* Tracks pending actions with their operation context (prevOpHash, prevOpIndex).
|
|
1103
1114
|
* Actions are accumulated until flushed (on push).
|
|
1104
1115
|
*/
|
|
1105
|
-
declare class ActionTracker {
|
|
1116
|
+
export declare class ActionTracker {
|
|
1106
1117
|
private pending;
|
|
1107
1118
|
/** Track a new action with its operation context. */
|
|
1108
1119
|
track(action: Action$1, prevOpHash: string, prevOpIndex: number): void;
|
|
@@ -1117,7 +1128,7 @@ declare class ActionTracker {
|
|
|
1117
1128
|
}
|
|
1118
1129
|
//#endregion
|
|
1119
1130
|
//#region src/remote-controller/remote-client.d.ts
|
|
1120
|
-
declare class RemoteClient implements IRemoteClient {
|
|
1131
|
+
export declare class RemoteClient implements IRemoteClient {
|
|
1121
1132
|
private readonly client;
|
|
1122
1133
|
private readonly pageSize;
|
|
1123
1134
|
constructor(client: RemoteControllerGraphQLClient, pageSize?: number);
|
|
@@ -1174,19 +1185,21 @@ type InferState<C> = C extends PHDocumentController<infer S> ? S : never;
|
|
|
1174
1185
|
* Extract action methods from a controller type.
|
|
1175
1186
|
* These are the dynamically-added methods (not on the base PHDocumentController prototype).
|
|
1176
1187
|
*/
|
|
1177
|
-
type ActionMethodsOf<C, TRemote> = { [K in Exclude<keyof C, keyof PHDocumentController<any>>]: C[K] extends ((input: infer I) => unknown) ? (input: I) => TRemote & ActionMethodsOf<C, TRemote> : C[K] };
|
|
1188
|
+
type ActionMethodsOf<C, TRemote> = { [K in Exclude<keyof C, keyof PHDocumentController<any>>]: C[K] extends ((input: infer I) => unknown) ? (input: I) => TRemote & ActionMethodsOf<C, TRemote> : C[K]; };
|
|
1178
1189
|
/** The full return type: RemoteDocumentController + action methods. */
|
|
1179
1190
|
type RemoteDocumentControllerWith<C extends PHDocumentController<any>> = RemoteDocumentController<C> & ActionMethodsOf<C, RemoteDocumentController<C>>;
|
|
1180
1191
|
/**
|
|
1181
1192
|
* A controller that wraps a PHDocumentController with remote push/pull capabilities.
|
|
1182
1193
|
* Composes a local controller and adds GraphQL-based sync with a reactor server.
|
|
1183
1194
|
*/
|
|
1184
|
-
declare class RemoteDocumentController<TController extends PHDocumentController<any>> implements IRemoteController<InferState<TController>> {
|
|
1195
|
+
export declare class RemoteDocumentController<TController extends PHDocumentController<any>> implements IRemoteController<InferState<TController>> {
|
|
1185
1196
|
private inner;
|
|
1186
1197
|
private readonly remoteClient;
|
|
1187
1198
|
private readonly tracker;
|
|
1188
1199
|
private readonly options;
|
|
1189
1200
|
private documentId;
|
|
1201
|
+
/** The remote's id for the document; `documentId` may be a slug. */
|
|
1202
|
+
private canonicalDocumentId?;
|
|
1190
1203
|
private remoteRevision;
|
|
1191
1204
|
private hasPulled;
|
|
1192
1205
|
private pushScheduled;
|
|
@@ -1243,6 +1256,11 @@ declare class RemoteDocumentController<TController extends PHDocumentController<
|
|
|
1243
1256
|
private pullAndReplay;
|
|
1244
1257
|
/** Prepare actions for push, optionally signing them. */
|
|
1245
1258
|
private prepareActionsForPush;
|
|
1259
|
+
/**
|
|
1260
|
+
* The remote's id for `documentId`, which may be a slug. A signature binds
|
|
1261
|
+
* the id the remote verifies against, so a slug is never signed.
|
|
1262
|
+
*/
|
|
1263
|
+
private resolveCanonicalDocumentId;
|
|
1246
1264
|
/** Sign an action using the configured signer, preserving existing signatures. */
|
|
1247
1265
|
private signAction;
|
|
1248
1266
|
/**
|
|
@@ -1281,15 +1299,15 @@ declare class RemoteDocumentController<TController extends PHDocumentController<
|
|
|
1281
1299
|
//#endregion
|
|
1282
1300
|
//#region src/remote-controller/utils.d.ts
|
|
1283
1301
|
/** Error thrown when a push conflict is detected with the "reject" strategy. */
|
|
1284
|
-
declare class ConflictError extends Error {
|
|
1302
|
+
export declare class ConflictError extends Error {
|
|
1285
1303
|
readonly conflict: ConflictInfo;
|
|
1286
1304
|
constructor(conflict: ConflictInfo);
|
|
1287
1305
|
}
|
|
1288
1306
|
/** Convert remote operations to local DocumentOperations format. */
|
|
1289
|
-
declare function convertRemoteOperations(operationsByScope: Record<string, RemoteOperation[]>): DocumentOperations;
|
|
1307
|
+
export declare function convertRemoteOperations(operationsByScope: Record<string, RemoteOperation[]>): DocumentOperations;
|
|
1290
1308
|
//#endregion
|
|
1291
1309
|
//#region src/storage/base-storage.d.ts
|
|
1292
|
-
declare abstract class BaseStorage<V> implements Iterable<[string, V]> {
|
|
1310
|
+
export declare abstract class BaseStorage<V> implements Iterable<[string, V]> {
|
|
1293
1311
|
abstract get(key: string): V | undefined;
|
|
1294
1312
|
abstract set(key: string, value: V): void;
|
|
1295
1313
|
abstract delete(key: string): boolean;
|
|
@@ -1303,7 +1321,7 @@ declare abstract class BaseStorage<V> implements Iterable<[string, V]> {
|
|
|
1303
1321
|
}
|
|
1304
1322
|
//#endregion
|
|
1305
1323
|
//#region src/storage/local-storage.d.ts
|
|
1306
|
-
declare class BrowserLocalStorage<V> extends BaseStorage<V> {
|
|
1324
|
+
export declare class BrowserLocalStorage<V> extends BaseStorage<V> {
|
|
1307
1325
|
#private;
|
|
1308
1326
|
constructor(namespace: string);
|
|
1309
1327
|
get(key: string): V | undefined;
|
|
@@ -1318,7 +1336,7 @@ declare class BrowserLocalStorage<V> extends BaseStorage<V> {
|
|
|
1318
1336
|
}
|
|
1319
1337
|
//#endregion
|
|
1320
1338
|
//#region src/storage/types.d.ts
|
|
1321
|
-
interface IStorage<TValue> {
|
|
1339
|
+
export interface IStorage<TValue> {
|
|
1322
1340
|
get(key: string): TValue | undefined;
|
|
1323
1341
|
set(key: string, value: TValue): void;
|
|
1324
1342
|
delete(key: string): void;
|
|
@@ -1341,38 +1359,38 @@ type IReactorProcessorHostModule = IProcessorHostModule;
|
|
|
1341
1359
|
type ProcessorFactoryBuilder = ProcessorFactoryBuilder$1<IProcessorHostModule>;
|
|
1342
1360
|
//#endregion
|
|
1343
1361
|
//#region src/utils/documents.d.ts
|
|
1344
|
-
declare function isDocumentTypeSupported(documentType: string, supportedDocuments: string[] | null | undefined): boolean;
|
|
1362
|
+
export declare function isDocumentTypeSupported(documentType: string, supportedDocuments: string[] | null | undefined): boolean;
|
|
1345
1363
|
//#endregion
|
|
1346
1364
|
//#region src/utils/drives.d.ts
|
|
1347
|
-
type UISyncStatus = "INITIAL_SYNC" | "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR" | "SYNCING";
|
|
1348
|
-
declare function getDrives(reactor: IReactorClient$1): Promise<DocumentDriveDocument[]>;
|
|
1349
|
-
declare function getSyncStatus(documentId: string, sharingType: SharingType): Promise<UISyncStatus | undefined>;
|
|
1350
|
-
declare function getSyncStatusSync(documentId: string, sharingType: SharingType): UISyncStatus | undefined;
|
|
1365
|
+
export type UISyncStatus = "INITIAL_SYNC" | "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR" | "SYNCING";
|
|
1366
|
+
export declare function getDrives(reactor: IReactorClient$1): Promise<DocumentDriveDocument[]>;
|
|
1367
|
+
export declare function getSyncStatus(documentId: string, sharingType: SharingType): Promise<UISyncStatus | undefined>;
|
|
1368
|
+
export declare function getSyncStatusSync(documentId: string, sharingType: SharingType): UISyncStatus | undefined;
|
|
1351
1369
|
//#endregion
|
|
1352
1370
|
//#region src/utils/download-document.d.ts
|
|
1353
1371
|
declare function defaultHandleError(error: Error): void;
|
|
1354
|
-
declare function downloadDocument(document: PHDocument$1 | undefined, handleError?: typeof defaultHandleError): void;
|
|
1372
|
+
export declare function downloadDocument(document: PHDocument$1 | undefined, handleError?: typeof defaultHandleError): void;
|
|
1355
1373
|
//#endregion
|
|
1356
1374
|
//#region src/utils/get-revision-from-date.d.ts
|
|
1357
|
-
declare const getRevisionFromDate: (startDate?: Date, endDate?: Date, operations?: Operation$1[]) => number;
|
|
1375
|
+
export declare const getRevisionFromDate: (startDate?: Date, endDate?: Date, operations?: readonly Operation$1[]) => number;
|
|
1358
1376
|
//#endregion
|
|
1359
1377
|
//#region src/utils/nodes.d.ts
|
|
1360
1378
|
/** Sorts nodes by name. */
|
|
1361
|
-
declare function sortNodesByName<T extends Node>(nodes: T[]): T[];
|
|
1379
|
+
export declare function sortNodesByName<T extends Node>(nodes: T[]): T[];
|
|
1362
1380
|
/** Returns whether a node is a file. */
|
|
1363
|
-
declare function isFileNodeKind(node: Node | null | undefined): node is FileNode;
|
|
1381
|
+
export declare function isFileNodeKind(node: Node | null | undefined): node is FileNode;
|
|
1364
1382
|
/** Returns whether a node is a folder. */
|
|
1365
|
-
declare function isFolderNodeKind(node: Node | null | undefined): node is FolderNode;
|
|
1383
|
+
export declare function isFolderNodeKind(node: Node | null | undefined): node is FolderNode;
|
|
1366
1384
|
//#endregion
|
|
1367
1385
|
//#region src/utils/preload-editor.d.ts
|
|
1368
|
-
declare function preloadEditorModule(module: EditorModule): Promise<unknown> | undefined;
|
|
1369
|
-
declare function hasPreloadBandwidth(): boolean;
|
|
1386
|
+
export declare function preloadEditorModule(module: EditorModule): Promise<unknown> | undefined;
|
|
1387
|
+
export declare function hasPreloadBandwidth(): boolean;
|
|
1370
1388
|
//#endregion
|
|
1371
1389
|
//#region src/utils/switchboard.d.ts
|
|
1372
|
-
declare function getDriveIdBySlug(driveUrl: string, slug: string): Promise<string | undefined>;
|
|
1373
|
-
declare function getSlugFromDriveUrl(driveUrl: string): string | undefined;
|
|
1374
|
-
declare function getSwitchboardGatewayUrlFromDriveUrl(driveUrl: string): string;
|
|
1375
|
-
declare function getDocumentGraphqlQuery(): string;
|
|
1390
|
+
export declare function getDriveIdBySlug(driveUrl: string, slug: string): Promise<string | undefined>;
|
|
1391
|
+
export declare function getSlugFromDriveUrl(driveUrl: string): string | undefined;
|
|
1392
|
+
export declare function getSwitchboardGatewayUrlFromDriveUrl(driveUrl: string): string;
|
|
1393
|
+
export declare function getDocumentGraphqlQuery(): string;
|
|
1376
1394
|
/**
|
|
1377
1395
|
* The base URL of the switchboard that serves a drive's GraphQL channel.
|
|
1378
1396
|
*
|
|
@@ -1380,23 +1398,23 @@ declare function getDocumentGraphqlQuery(): string;
|
|
|
1380
1398
|
* suffix preserves any proxy prefix (e.g. `/api/reactor`). A URL that does
|
|
1381
1399
|
* not end with the suffix is unexpected — fall back to its origin.
|
|
1382
1400
|
*/
|
|
1383
|
-
declare function getSwitchboardBaseFromChannelUrl(channelUrl: string): string;
|
|
1401
|
+
export declare function getSwitchboardBaseFromChannelUrl(channelUrl: string): string;
|
|
1384
1402
|
/**
|
|
1385
1403
|
* Derives the subselection for the document's `global` state scope from the
|
|
1386
1404
|
* model's state SDL (e.g. `name total`), expanding object fields
|
|
1387
1405
|
* recursively. Throws when the schema is missing, unparseable, or has no
|
|
1388
1406
|
* root object type — the caller falls back to the generic document query.
|
|
1389
1407
|
*/
|
|
1390
|
-
declare function getDocumentStateSelection(model: DocumentModelModule): string;
|
|
1391
|
-
declare function buildDocumentSubgraphQuery(documentType: string, identifier: string, model?: DocumentModelModule, authToken?: string): string;
|
|
1392
|
-
declare function buildDocumentSubgraphUrl(channelUrl: string, documentType: string, identifier: string, model?: DocumentModelModule, authToken?: string): string;
|
|
1408
|
+
export declare function getDocumentStateSelection(model: DocumentModelModule): string;
|
|
1409
|
+
export declare function buildDocumentSubgraphQuery(documentType: string, identifier: string, model?: DocumentModelModule, authToken?: string): string;
|
|
1410
|
+
export declare function buildDocumentSubgraphUrl(channelUrl: string, documentType: string, identifier: string, model?: DocumentModelModule, authToken?: string): string;
|
|
1393
1411
|
//#endregion
|
|
1394
1412
|
//#region src/utils/upgrade-preview.d.ts
|
|
1395
|
-
type UpgradeStepInfo = {
|
|
1413
|
+
export type UpgradeStepInfo = {
|
|
1396
1414
|
toVersion: number;
|
|
1397
1415
|
description: string;
|
|
1398
1416
|
};
|
|
1399
|
-
type DocumentUpgradePreview = {
|
|
1417
|
+
export type DocumentUpgradePreview = {
|
|
1400
1418
|
fromVersion: number;
|
|
1401
1419
|
toVersion: number;
|
|
1402
1420
|
steps: UpgradeStepInfo[];
|
|
@@ -1411,7 +1429,7 @@ type DocumentUpgradePreview = {
|
|
|
1411
1429
|
* the `path[]` notation, e.g. `todos[].status`. Only key presence is
|
|
1412
1430
|
* compared — array length and primitive values are ignored.
|
|
1413
1431
|
*/
|
|
1414
|
-
declare function diffStateShapes(before: unknown, after: unknown): {
|
|
1432
|
+
export declare function diffStateShapes(before: unknown, after: unknown): {
|
|
1415
1433
|
added: string[];
|
|
1416
1434
|
removed: string[];
|
|
1417
1435
|
};
|
|
@@ -1426,45 +1444,51 @@ declare function diffStateShapes(before: unknown, after: unknown): {
|
|
|
1426
1444
|
* already at (or above) the latest registered version, or the upgrade path
|
|
1427
1445
|
* cannot be computed.
|
|
1428
1446
|
*/
|
|
1429
|
-
declare function getDocumentUpgradePreview(document: PHDocument$1, registry: IDocumentModelRegistry | undefined): DocumentUpgradePreview | undefined;
|
|
1447
|
+
export declare function getDocumentUpgradePreview(document: PHDocument$1, registry: IDocumentModelRegistry | undefined): DocumentUpgradePreview | undefined;
|
|
1430
1448
|
//#endregion
|
|
1431
1449
|
//#region src/utils/url.d.ts
|
|
1432
|
-
declare function resolveUrlPathname(path: string): string;
|
|
1450
|
+
export declare function resolveUrlPathname(path: string): string;
|
|
1433
1451
|
/** Returns the current path without the base path */
|
|
1434
|
-
declare function getPathWithoutBase(path: string): string;
|
|
1452
|
+
export declare function getPathWithoutBase(path: string): string;
|
|
1435
1453
|
/** Makes a URL component for a drive. */
|
|
1436
|
-
declare function makeDriveUrlComponent(drive: DocumentDriveDocument | undefined): string;
|
|
1437
|
-
/**
|
|
1438
|
-
|
|
1454
|
+
export declare function makeDriveUrlComponent(drive: DocumentDriveDocument | undefined): string;
|
|
1455
|
+
/**
|
|
1456
|
+
* Makes a URL component for a node: `<slugged name>-<id>`. The id is kept
|
|
1457
|
+
* verbatim, since a v2-required id is case-sensitive base64url.
|
|
1458
|
+
*/
|
|
1459
|
+
export declare function makeNodeSlug(node: Node | undefined): string;
|
|
1439
1460
|
/** Extracts the node slug from a path.
|
|
1440
1461
|
*
|
|
1441
1462
|
* The path is expected to be in the format `/d/<drive-slug>/<node-slug>`.
|
|
1442
1463
|
*/
|
|
1443
|
-
declare function extractNodeSlugFromPath(path: string): string | undefined;
|
|
1464
|
+
export declare function extractNodeSlugFromPath(path: string): string | undefined;
|
|
1444
1465
|
/** Finds a UUID in a string, used for extracting node ids from node slugs in the URL. */
|
|
1445
|
-
declare function findUuid(input: string | undefined): string | undefined;
|
|
1446
|
-
|
|
1447
|
-
declare function
|
|
1466
|
+
export declare function findUuid(input: string | undefined): string | undefined;
|
|
1467
|
+
/** The v2-required document id a slug ends with, if any. */
|
|
1468
|
+
export declare function findDerivedId(input: string | undefined): string | undefined;
|
|
1469
|
+
export declare function extractNodeIdFromSlug(nodeSlug: string | undefined): string | undefined;
|
|
1470
|
+
export declare function extractNodeIdFromPath(path: string): string | undefined;
|
|
1448
1471
|
/** Extracts the drive slug from a path.
|
|
1449
1472
|
* Used for extracting drive ids from drive slugs in the URL.
|
|
1450
1473
|
* Expects the path to be in the format `/d/<drive-slug>`.
|
|
1451
1474
|
*/
|
|
1452
|
-
declare function extractDriveSlugFromPath(path: string): string;
|
|
1453
|
-
declare function extractDriveIdFromSlug(driveSlug: string | undefined): string | undefined;
|
|
1454
|
-
declare function extractDriveIdFromPath(path: string): string | undefined;
|
|
1475
|
+
export declare function extractDriveSlugFromPath(path: string): string;
|
|
1476
|
+
export declare function extractDriveIdFromSlug(driveSlug: string | undefined): string | undefined;
|
|
1477
|
+
export declare function extractDriveIdFromPath(path: string): string | undefined;
|
|
1455
1478
|
/**
|
|
1456
1479
|
* Creates a URL string with the given pathname while preserving existing query parameters.
|
|
1457
1480
|
*/
|
|
1458
|
-
declare function createUrlWithPreservedParams(pathname: string): string;
|
|
1481
|
+
export declare function createUrlWithPreservedParams(pathname: string): string;
|
|
1459
1482
|
//#endregion
|
|
1460
1483
|
//#region src/utils/user.d.ts
|
|
1461
|
-
declare function getUserPermissions(): {
|
|
1484
|
+
export declare function getUserPermissions(): {
|
|
1462
1485
|
isAllowedToCreateDocuments: boolean;
|
|
1463
1486
|
isAllowedToEditDocuments: boolean;
|
|
1464
1487
|
};
|
|
1465
1488
|
//#endregion
|
|
1466
1489
|
//#region src/utils/validate-document.d.ts
|
|
1467
|
-
declare const validateDocument: (document: PHDocument$1) => ValidationError[];
|
|
1490
|
+
export declare const validateDocument: (document: PHDocument$1) => ValidationError[];
|
|
1468
1491
|
//#endregion
|
|
1469
|
-
export { ActionTracker, AddPHGlobalEventHandler, AttachmentDownloadStage, AttachmentUploadStage, BaseStorage, BearerTokenProvider, BrowserLocalStorage, BrowserReactorClientModule, BrowserReactorModule, type BulkImportJob, 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, type DriveInfo, DriveSystemInfoState, EDITOR_FILE_DROP_OPT_OUT_ATTR, FailedInstallation, FailedInstallationReason, FileUploadProgress, FileUploadProgressCallback, type FolderZipResult, 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_RETURN_URL_STRIPPED_PARAMS, 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, buildFolderZip, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, describeGraphQLDocument, diffStateShapes, dispatchActions, downloadDocument, downloadFolderZip, driveIdFromUrl, dropAllReactorStorage, ensurePHEventHandlers, expandBulkArchive, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, fetchDriveInfo, findUuid, getAnalyticsStore, getDocumentExtension, getDocumentGraphqlQuery, getDocumentStateSelection, getDocumentUpgradePreview, getDocumentVersionStatus, getDriveIdBySlug, getDrives, getGlobal, getPackageInfo, getPackagePage, getPackages, getPackagesByDocumentType, getPackagesForDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardBaseFromChannelUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hasPreloadBandwidth, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isAuthRefusalClose, 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, setPreferredEditorOnNode, 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, useDownloadFolder, 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 };
|
|
1492
|
+
export { type AddPHGlobalEventHandler, BatchJobFailedError, BearerTokenProvider, type BrowserReactorClientModule, type BrowserReactorModule, type BulkImportJob, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChannelScheme, ChevronDownIcon, type ConflictInfo, type ConflictResolution, type ConflictStrategy, ConnectionParams, type ConnectionState, type ConnectionStateSnapshot, CopyIcon, CreateStoreOptions, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, type Database, DisconnectIcon, type DiscoveryEvent, type DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, type DocumentDispatch, DocumentIntegrityService, DocumentOperationsResult, DocumentOperationsState, type DocumentRefetchState, type DocumentTypeIcon, DraggingNode, DriveCollectionId, type DriveInfo, type FailedInstallation, type FailedInstallationReason, type FileUploadProgress, type FileUploadProgressCallback, type FolderZipResult, type FulfilledPromise, type FullPHGlobalConfig, GetDocumentQueryFields, GetDocumentQueryResult, type GetDocumentResult, type GetDocumentWithOperationsResult, type GetOperationsResult, GqlRequestChannel, type GraphQLClientDocumentEvent, type GraphQLClientDocumentsEvent, type GraphQLClientWindowEvents, type GraphQLDocumentEventOperationName, type GraphQLDocumentEvents, type GraphQLDocumentEventsOperationName, type GraphQLDocumentsEvents, GraphQLOperationNotSupportedError, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLRequestOptions, type IChannel, IDLE_OPERATIONS_ENTRY, IDLE_REFETCH_STATE, type IDocumentCache, type IDocumentModelLoader, type IOperationCache, type IPackageDiscoveryService, type IPackageListerUnsubscribe, type IPackageManager, type IPackagesListener, type IPeerAgreement, type IProcessor, type IProcessorHostModule, type IProcessorHostModuleBase, type IQueue, type IReactorBrowserClient, type IReactorClient, type IReactorProcessorHostModule, type IRelationalDb, type IRemoteClient, type IRemoteController, ISSUER_TYPE, InMemoryQueue, IntervalPollTimer, type Job, type JwtHandler, type KeyframeValidationIssue, type LOADING, type MergeHandler, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, type NodeKind, type OperationWithContext, type OperationsCacheEntry, type PHAnalyticsGlobalConfig, type PHAppConfig, type PHAppConfigHooks, type PHAppConfigKey, type PHAppConfigSetters, type PHCommonGlobalConfig, type PHDocumentEditorConfig, type PHDocumentEditorConfigHooks, type PHDocumentEditorConfigKey, type PHDocumentEditorConfigSetters, type PHDrivesGlobalConfig, type PHGlobal, type PHGlobalConfig, type PHGlobalConfigHooks, type PHGlobalConfigHooksForKey, type PHGlobalConfigKey, type PHGlobalConfigSetters, type PHGlobalConfigSettersForKey, type PHGlobalEventHandlerAdders, type PHGlobalKey, type PHGlobalValue, type PHModal, type PHProcessorsGlobalConfig, type PHRelationalProcessorsGlobalConfig, type PHRenownGlobalConfig, type PHSentryGlobalConfig, type PHToastFn, type PHToastOptions, type PHToastType, type PackageManagerInstallResult, type ParsedDriveUrl, type PendingInstallation, PollBehavior, type ProcessorApp, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type PromiseState, type PromiseWithState, PropagationMode, type PublishEvent, type PushResult, QueryCallbackReturnType, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_RETURN_URL_STRIPPED_PARAMS, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, type ReactorFeatureFlags, type ReactorGraphQLClient, ReactorOperationFieldsFragmentDoc, type RebuildResult, type RejectedPromise, RelationalDbOptions, RelationalDbProcessor, RelationalDbWithLive, type Remote, type RemoteControllerGraphQLClient, type RemoteControllerOptions, type RemoteDocumentControllerWith, type RemoteDocumentData, type RemoteFilter, type RemoteMeta, type RemoteOperation, type RemoteOperationResultPage, type RemotePeer, Renown, RenownAuth, RenownAuthAsync, RenownAuthButton, type RenownAuthButtonProps, RenownAuthResolution, RenownAuthStatus, type RenownInitOptions, type RenownInitialAuth, RenownInitialUserProvider, type RenownInitialUserProviderProps, RenownLoginButton, type RenownLoginButtonProps, type RenownLoginMethod, RenownLogo, type RenownProps, RenownProvider, type RenownProviderProps, type RenownSessionCookieOptions, type RenownSessionCookieState, RenownUserButton, type RenownUserButtonMenuItem, type RenownUserButtonProps, RenownWalletProvider, type RenownWalletProviderProps, RevisionsListSelection, type RunDocumentOptions, type SdkFunctionWrapper, type SetEvent, type SetPHGlobalValue, type SignerConfig, type SnapshotValidationIssue, SpinnerIcon, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, type SyncHold, type SyncOperation, SyncOperationStatus, type SyncStatus, type TStateSchemaZodObject, type TimelineBarItem, type TimelineDividerItem, type TimelineItem, type TrackedAction, TypedGraphQLDocument, UseDispatchResult, UseDocumentOperationsOptions, type UseOnDropFile, type UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, type WorkerReactorClientModule, type WorkerReactorModule, addAttachmentServiceEventHandler, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRenownEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, createAnalyticsStore, createClient, createProcessorQuery, describeGraphQLDocument, driveIdFromUrl, ensurePHEventHandlers, findIsServableOverGraphQL, getAnalyticsStore, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, initConnectCrypto, initRenownCrypto, isAuthRefusalClose, isDriveAuthError, isGraphQLReactorClient, isOperationCache, isoStringFromDateTime, login, logout, makeAuthConnectionParams, makeAuthMiddleware, openRenown, packageFromDocumentModels, parseDriveUrl, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setAttachmentService, setDocumentCache, setReactorClient, setReactorClientModule, setRenown, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, useAttachmentService, useDatabase, useDid, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useDragNode, useDropNode, useGetDocument, useGetDocumentAsync, useGetDocuments, useLoginStatus, useModelRegistry, usePGlite, useReactorClient, useReactorClientModule, useRelationalDb, useRelationalQuery, useRelationalQueryOptions, useRenown, useRenownAuth, useRenownAuthAsync, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownSessionCookie, useRenownSessionSynced, useRenownWalletAdapter, useSwitchboardClient, useSync, useSyncList, useUser, viewFilterInputFromViewFilter };
|
|
1493
|
+
export {};
|
|
1470
1494
|
//# sourceMappingURL=index.d.ts.map
|