@powerhousedao/reactor-browser 6.2.3-dev.3 → 6.2.3-dev.30

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