@powerhousedao/reactor-browser 6.2.0-dev.8 → 6.2.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{client-CvgFU1Dv.js → client-_Gh2Uf0E.js} +1 -1
- package/dist/{client-CvgFU1Dv.js.map → client-_Gh2Uf0E.js.map} +1 -1
- package/dist/{document-by-id-BrIy0iHX.js → document-by-id-dLYFX-xz.js} +3 -3
- package/dist/{document-by-id-BrIy0iHX.js.map → document-by-id-dLYFX-xz.js.map} +1 -1
- package/dist/{index-Bz4MqX_j.d.ts → index-JRxZGs0B.d.ts} +1 -2
- package/dist/index-JRxZGs0B.d.ts.map +1 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +121 -66
- package/dist/index.js.map +1 -1
- package/dist/{make-ph-event-functions-DwiD1zH9.js → make-ph-event-functions-BHoLPif5.js} +2 -2
- package/dist/{make-ph-event-functions-DwiD1zH9.js.map → make-ph-event-functions-BHoLPif5.js.map} +1 -1
- package/dist/{renown-Dzmo1gJD.js → renown-D-1c_Bvx.js} +35 -48
- package/dist/renown-D-1c_Bvx.js.map +1 -0
- package/dist/src/analytics/index.d.ts +1 -1
- package/dist/src/analytics/index.js +2 -2
- package/dist/src/graphql/client.js +1 -1
- package/dist/src/renown/index.d.ts +1 -1
- package/dist/src/renown/index.js +1 -1
- package/package.json +27 -11
- package/dist/index-Bz4MqX_j.d.ts.map +0 -1
- package/dist/renown-Dzmo1gJD.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { C as queueOperations, S as queueActions, _ as getAnalyticsStore, a as setDocumentCache, b as setGlobal, c as useDocumentSafe, d as useGetDocumentAsync, f as useGetDocuments, g as createAnalyticsStore, h as readPromiseState, i as addDocumentCacheEventHandler, l as useDocuments, m as addPromiseState, n as useDocumentsByIds, o as useDocument, p as DocumentCache, r as useDispatch, s as useDocumentCache, t as useDocumentById, u as useGetDocument, v as clearGlobal, w as uploadOperations, x as dispatchActions, y as getGlobal } from "./document-by-id-
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
import { A as useLoginStatus, C as RENOWN_CHAIN_ID, D as addRenownEventHandler, E as VERIFIABLE_CREDENTIAL_EIP712_TYPE, F as setLoading, I as useLoading, M as useUser, N as addLoadingEventHandler, O as setRenown, P as loading, S as ISSUER_TYPE, T as RENOWN_URL, _ as openRenown, a as RenownAuthButton, b as CREDENTIAL_TYPES, c as ChevronDownIcon, d as RenownLogo, f as SpinnerIcon, g as logout, h as login, i as initRenownCrypto, j as useRenown, k as useDid, l as CopyIcon, m as useRenownAuth, n as useRenownInit, o as RenownUserButton, p as UserIcon, r as initConnectCrypto, s as RenownLoginButton, t as Renown, u as DisconnectIcon, v as CREDENTIAL_SCHEMA_EIP712_TYPE, w as RENOWN_NETWORK_ID, x as DOMAIN_TYPE, y as CREDENTIAL_SUBJECT_TYPE } from "./renown-
|
|
1
|
+
import { C as queueOperations, S as queueActions, _ as getAnalyticsStore, a as setDocumentCache, b as setGlobal, c as useDocumentSafe, d as useGetDocumentAsync, f as useGetDocuments, g as createAnalyticsStore, h as readPromiseState, i as addDocumentCacheEventHandler, l as useDocuments, m as addPromiseState, n as useDocumentsByIds, o as useDocument, p as DocumentCache, r as useDispatch, s as useDocumentCache, t as useDocumentById, u as useGetDocument, v as clearGlobal, w as uploadOperations, x as dispatchActions, y as getGlobal } from "./document-by-id-dLYFX-xz.js";
|
|
2
|
+
import { t as makePHEventFunctions } from "./make-ph-event-functions-BHoLPif5.js";
|
|
3
|
+
import { n as GetDocumentWithOperationsDocument, r as PropagationMode, t as createClient } from "./client-_Gh2Uf0E.js";
|
|
4
|
+
import { A as useLoginStatus, C as RENOWN_CHAIN_ID, D as addRenownEventHandler, E as VERIFIABLE_CREDENTIAL_EIP712_TYPE, F as setLoading, I as useLoading, M as useUser, N as addLoadingEventHandler, O as setRenown, P as loading, S as ISSUER_TYPE, T as RENOWN_URL, _ as openRenown, a as RenownAuthButton, b as CREDENTIAL_TYPES, c as ChevronDownIcon, d as RenownLogo, f as SpinnerIcon, g as logout, h as login, i as initRenownCrypto, j as useRenown, k as useDid, l as CopyIcon, m as useRenownAuth, n as useRenownInit, o as RenownUserButton, p as UserIcon, r as initConnectCrypto, s as RenownLoginButton, t as Renown, u as DisconnectIcon, v as CREDENTIAL_SCHEMA_EIP712_TYPE, w as RENOWN_NETWORK_ID, x as DOMAIN_TYPE, y as CREDENTIAL_SUBJECT_TYPE } from "./renown-D-1c_Bvx.js";
|
|
5
5
|
import { n as useRelationalQuery, r as useRelationalDb, t as createProcessorQuery } from "./relational-4_LVwp8p.js";
|
|
6
6
|
import { documentModelDocumentModelModule, logger } from "document-model";
|
|
7
|
-
import { baseLoadFromInput, baseSaveToFileHandle, createPresignedHeader, createZip, documentModelDocumentType, generateId,
|
|
7
|
+
import { baseLoadFromInput, baseLoadFromInputVersioned, baseSaveToFileHandle, createPresignedHeader, createZip, documentModelDocumentType, generateId, replayDocumentVersioned, setName, validateInitialState, validateModules, validateStateSchemaName } from "@powerhousedao/shared/document-model";
|
|
8
8
|
import { DriveDocumentSchema, addFolder as addFolder$1, copyNode, driveCreateDocument, driveDocumentModelModule, generateNodesCopy, handleTargetNameCollisions, isFileNode, isFolderNode, moveNode, setAvailableOffline, setDriveIcon, setDriveName, setSharingType, updateNode } from "@powerhousedao/shared/document-drive";
|
|
9
9
|
import { allPass, conditional, constant, filter, find, forEach, forEachObj, funnel, hasAtLeast, isArray, isDefined, isIncludedIn, isNot, isStrictEqual, isString, isTruthy, last, map, mapToObj, once, pipe, prop, split, unique } from "remeda";
|
|
10
|
-
import { ChannelScheme, DocumentChangeType, DocumentChangeType as DocumentChangeType$1, DocumentIntegrityService, DuplicateManifestError, DuplicateModuleError, GqlRequestChannel, InMemoryQueue, IntervalPollTimer, ModuleNotFoundError, PollBehavior, PropagationMode as PropagationMode$1, REACTOR_SCHEMA, REACTOR_SCHEMA as REACTOR_SCHEMA$1, ReactorBuilder, ReactorClientBuilder, RelationalDbProcessor, SyncOperationStatus, SyncStatus,
|
|
10
|
+
import { ChannelScheme, DocumentChangeType, DocumentChangeType as DocumentChangeType$1, DocumentIntegrityService, DriveCollectionId, DriveCollectionId as DriveCollectionId$1, DuplicateManifestError, DuplicateModuleError, GqlRequestChannel, InMemoryQueue, IntervalPollTimer, ModuleNotFoundError, PollBehavior, PropagationMode as PropagationMode$1, REACTOR_SCHEMA, REACTOR_SCHEMA as REACTOR_SCHEMA$1, ReactorBuilder, ReactorClientBuilder, RelationalDbProcessor, SyncOperationStatus, SyncStatus, driveIdFromUrl, isDriveAuthError, isDriveAuthError as isDriveAuthError$1, parseDriveUrl } from "@powerhousedao/reactor";
|
|
11
|
+
import { useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
11
12
|
import { reactorDriveDocumentModelModule } from "@powerhousedao/reactor-drive";
|
|
12
13
|
import { z } from "zod";
|
|
13
|
-
import { useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
14
14
|
import slug from "slug";
|
|
15
15
|
import normalizeException from "normalize-exception";
|
|
16
16
|
import * as lzString from "lz-string";
|
|
@@ -204,14 +204,30 @@ async function exportFile(document, suggestedName) {
|
|
|
204
204
|
if (!(e instanceof DOMException && e.name === "AbortError")) throw e;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Loads a document file and replays it with version-aware reducers from the registry.
|
|
209
|
+
* Falls back to single-version legacy replay when no upgrade manifest is registered for
|
|
210
|
+
* the document type.
|
|
211
|
+
*/
|
|
207
212
|
async function loadFile(path) {
|
|
208
213
|
const baseDocument = await baseLoadFromInput(path, (state) => state, { checkHashes: true });
|
|
209
214
|
const reactorClient = window.ph?.reactorClient;
|
|
210
215
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
216
|
+
const documentType = baseDocument.header.documentType;
|
|
211
217
|
const { results: documentModelModules } = await reactorClient.getDocumentModelModules();
|
|
212
|
-
const
|
|
213
|
-
if (
|
|
214
|
-
|
|
218
|
+
const modulesForType = documentModelModules.filter((module) => module.documentModel.global.id === documentType);
|
|
219
|
+
if (modulesForType.length === 0) throw new DocumentModelNotFoundError(documentType);
|
|
220
|
+
const reducers = {};
|
|
221
|
+
for (const module of modulesForType) reducers[module.version ?? 1] = module.reducer;
|
|
222
|
+
const registry = window.ph?.reactorClientModule?.reactorModule?.documentModelRegistry;
|
|
223
|
+
let upgradeManifest;
|
|
224
|
+
if (registry) try {
|
|
225
|
+
upgradeManifest = registry.getUpgradeManifest(documentType);
|
|
226
|
+
} catch {}
|
|
227
|
+
return baseLoadFromInputVersioned(path, {
|
|
228
|
+
reducers,
|
|
229
|
+
upgradeManifest
|
|
230
|
+
});
|
|
215
231
|
}
|
|
216
232
|
async function addDocument(driveId, name, documentType, parentFolder, document, id, preferredEditor) {
|
|
217
233
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
@@ -465,9 +481,28 @@ async function moveNode$1(driveId, src, target) {
|
|
|
465
481
|
targetParentFolder: target?.id
|
|
466
482
|
})]);
|
|
467
483
|
}
|
|
484
|
+
/**
|
|
485
|
+
* Duplicates a document under a new id using version-aware replay.
|
|
486
|
+
* Falls back gracefully when no upgrade manifest is registered for the document type.
|
|
487
|
+
*/
|
|
468
488
|
async function _duplicateDocument(reactor, document, newId = generateId()) {
|
|
469
|
-
const
|
|
470
|
-
|
|
489
|
+
const documentType = document.header.documentType;
|
|
490
|
+
const { results: allModules } = await reactor.getDocumentModelModules();
|
|
491
|
+
const modulesForType = allModules.filter((m) => m.documentModel.global.id === documentType);
|
|
492
|
+
const reducers = {};
|
|
493
|
+
for (const m of modulesForType) reducers[m.version ?? 1] = m.reducer;
|
|
494
|
+
if (Object.keys(reducers).length === 0) throw new Error(`Document model module not found for type: ${documentType}`);
|
|
495
|
+
const registry = window.ph?.reactorClientModule?.reactorModule?.documentModelRegistry;
|
|
496
|
+
let upgradeManifest;
|
|
497
|
+
if (registry) try {
|
|
498
|
+
upgradeManifest = registry.getUpgradeManifest(documentType);
|
|
499
|
+
} catch {}
|
|
500
|
+
const config = {
|
|
501
|
+
reducers,
|
|
502
|
+
upgradeManifest
|
|
503
|
+
};
|
|
504
|
+
const header = createPresignedHeader(newId, documentType);
|
|
505
|
+
return replayDocumentVersioned(document.initialState, document.operations, config, header);
|
|
471
506
|
}
|
|
472
507
|
async function copyNode$1(driveId, src, target) {
|
|
473
508
|
const reactor = window.ph?.reactorClient;
|
|
@@ -508,6 +543,37 @@ async function copyNode$1(driveId, src, target) {
|
|
|
508
543
|
return await queueActions(drive, copyNodesInput.map((copyNodeInput) => copyNode(copyNodeInput)));
|
|
509
544
|
}
|
|
510
545
|
//#endregion
|
|
546
|
+
//#region src/hooks/modals.ts
|
|
547
|
+
const modalEventFunctions = makePHEventFunctions("modal");
|
|
548
|
+
/** Returns the current modal */
|
|
549
|
+
const usePHModal = modalEventFunctions.useValue;
|
|
550
|
+
/** Sets the current modal */
|
|
551
|
+
const setPHModal = modalEventFunctions.setValue;
|
|
552
|
+
/** Adds an event handler for the modal */
|
|
553
|
+
const addModalEventHandler = modalEventFunctions.addEventHandler;
|
|
554
|
+
/** Shows a modal */
|
|
555
|
+
function showPHModal(modal) {
|
|
556
|
+
setPHModal(modal);
|
|
557
|
+
}
|
|
558
|
+
/** Closes the current modal */
|
|
559
|
+
function closePHModal() {
|
|
560
|
+
setPHModal(void 0);
|
|
561
|
+
}
|
|
562
|
+
/** Shows the create document modal */
|
|
563
|
+
function showCreateDocumentModal(documentType) {
|
|
564
|
+
setPHModal({
|
|
565
|
+
type: "createDocument",
|
|
566
|
+
documentType
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
/** Shows the delete node modal */
|
|
570
|
+
function showDeleteNodeModal(nodeOrId) {
|
|
571
|
+
setPHModal({
|
|
572
|
+
type: "deleteItem",
|
|
573
|
+
id: typeof nodeOrId === "string" ? nodeOrId : nodeOrId.id
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
//#endregion
|
|
511
577
|
//#region src/actions/drive.ts
|
|
512
578
|
const DEFAULT_INITIAL_SYNC_TIMEOUT_MS = 3e4;
|
|
513
579
|
const inFlightRemoteRegistrations = /* @__PURE__ */ new Map();
|
|
@@ -575,17 +641,22 @@ async function addRemoteDrive(url, driveId, options) {
|
|
|
575
641
|
if (!response.ok) throw new Error(`Failed to resolve drive info from ${url}`);
|
|
576
642
|
const driveInfo = await response.json();
|
|
577
643
|
const resolvedDriveId = driveId ?? driveInfo.id;
|
|
578
|
-
const collectionId =
|
|
579
|
-
const inFlight = inFlightRemoteRegistrations.get(collectionId);
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
644
|
+
const collectionId = DriveCollectionId$1.forDrive(resolvedDriveId);
|
|
645
|
+
const inFlight = inFlightRemoteRegistrations.get(collectionId.key);
|
|
646
|
+
try {
|
|
647
|
+
if (inFlight) await inFlight;
|
|
648
|
+
else if (!sync.list().find((remote) => remote.collectionId.equals(collectionId))) {
|
|
649
|
+
const remoteName = crypto.randomUUID();
|
|
650
|
+
const registration = sync.add(remoteName, collectionId, {
|
|
651
|
+
type: "gql",
|
|
652
|
+
parameters: { url: driveInfo.graphqlEndpoint }
|
|
653
|
+
}, void 0, options?.pollBehavior ? { pollBehavior: options.pollBehavior } : void 0).finally(() => inFlightRemoteRegistrations.delete(collectionId.key));
|
|
654
|
+
inFlightRemoteRegistrations.set(collectionId.key, registration);
|
|
655
|
+
await registration;
|
|
656
|
+
}
|
|
657
|
+
} catch (error) {
|
|
658
|
+
if (isDriveAuthError$1(error)) showPHModal({ type: "driveAuthRequired" });
|
|
659
|
+
throw error;
|
|
589
660
|
}
|
|
590
661
|
if (options?.awaitInitialSync) await waitForDocumentReady(reactorClient, resolvedDriveId, {
|
|
591
662
|
timeoutMs: options.initialSyncTimeoutMs,
|
|
@@ -600,8 +671,8 @@ async function deleteDrive(driveId) {
|
|
|
600
671
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
601
672
|
const sync = window.ph?.reactorClientModule?.reactorModule?.syncModule?.syncManager;
|
|
602
673
|
if (sync) {
|
|
603
|
-
const collectionId =
|
|
604
|
-
const remotes = sync.list().filter((remote) => remote.collectionId
|
|
674
|
+
const collectionId = DriveCollectionId$1.forDrive(driveId);
|
|
675
|
+
const remotes = sync.list().filter((remote) => remote.collectionId.equals(collectionId));
|
|
605
676
|
for (const remote of remotes) await sync.remove(remote.name);
|
|
606
677
|
}
|
|
607
678
|
await reactorClient.deleteDocument(driveId, PropagationMode$1.Cascade);
|
|
@@ -642,6 +713,8 @@ async function setDriveMetadata(driveId, metadata) {
|
|
|
642
713
|
//#region src/constants.ts
|
|
643
714
|
const DEFAULT_DRIVE_EDITOR_ID = "powerhouse/generic-drive-explorer";
|
|
644
715
|
const COMMON_PACKAGE_ID = "powerhouse/common";
|
|
716
|
+
/** Document types that represent a "drive": a container of nodes. */
|
|
717
|
+
const DRIVE_DOCUMENT_TYPES = ["powerhouse/document-drive", "powerhouse/reactor-drive"];
|
|
645
718
|
//#endregion
|
|
646
719
|
//#region src/document-model.ts
|
|
647
720
|
const baseDocumentModelsMap = {
|
|
@@ -1523,37 +1596,6 @@ const useGraphQLReactorClient = graphQLReactorClientEventFunctions.useValue;
|
|
|
1523
1596
|
const setGraphQLReactorClient = graphQLReactorClientEventFunctions.setValue;
|
|
1524
1597
|
const addGraphQLReactorClientEventHandler = graphQLReactorClientEventFunctions.addEventHandler;
|
|
1525
1598
|
//#endregion
|
|
1526
|
-
//#region src/hooks/modals.ts
|
|
1527
|
-
const modalEventFunctions = makePHEventFunctions("modal");
|
|
1528
|
-
/** Returns the current modal */
|
|
1529
|
-
const usePHModal = modalEventFunctions.useValue;
|
|
1530
|
-
/** Sets the current modal */
|
|
1531
|
-
const setPHModal = modalEventFunctions.setValue;
|
|
1532
|
-
/** Adds an event handler for the modal */
|
|
1533
|
-
const addModalEventHandler = modalEventFunctions.addEventHandler;
|
|
1534
|
-
/** Shows a modal */
|
|
1535
|
-
function showPHModal(modal) {
|
|
1536
|
-
setPHModal(modal);
|
|
1537
|
-
}
|
|
1538
|
-
/** Closes the current modal */
|
|
1539
|
-
function closePHModal() {
|
|
1540
|
-
setPHModal(void 0);
|
|
1541
|
-
}
|
|
1542
|
-
/** Shows the create document modal */
|
|
1543
|
-
function showCreateDocumentModal(documentType) {
|
|
1544
|
-
setPHModal({
|
|
1545
|
-
type: "createDocument",
|
|
1546
|
-
documentType
|
|
1547
|
-
});
|
|
1548
|
-
}
|
|
1549
|
-
/** Shows the delete node modal */
|
|
1550
|
-
function showDeleteNodeModal(nodeOrId) {
|
|
1551
|
-
setPHModal({
|
|
1552
|
-
type: "deleteItem",
|
|
1553
|
-
id: typeof nodeOrId === "string" ? nodeOrId : nodeOrId.id
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
//#endregion
|
|
1557
1599
|
//#region src/hooks/package-discovery.ts
|
|
1558
1600
|
const packageDiscoveryFunctions = makePHEventFunctions("packageDiscoveryService");
|
|
1559
1601
|
const usePackageDiscoveryService = packageDiscoveryFunctions.useValue;
|
|
@@ -2179,9 +2221,17 @@ function downloadDocument(document, handleError = defaultHandleError) {
|
|
|
2179
2221
|
//#endregion
|
|
2180
2222
|
//#region src/hooks/download-document.ts
|
|
2181
2223
|
function useDownloadDocument(id) {
|
|
2182
|
-
const
|
|
2224
|
+
const getDocument = useGetDocument();
|
|
2183
2225
|
const toast = usePHToast();
|
|
2184
|
-
return
|
|
2226
|
+
return async () => {
|
|
2227
|
+
if (!id) return;
|
|
2228
|
+
const handleError = (error) => toast?.(`Failed to export document: ${error.message}`);
|
|
2229
|
+
try {
|
|
2230
|
+
downloadDocument(await getDocument(id), handleError);
|
|
2231
|
+
} catch (error) {
|
|
2232
|
+
handleError(error);
|
|
2233
|
+
}
|
|
2234
|
+
};
|
|
2185
2235
|
}
|
|
2186
2236
|
//#endregion
|
|
2187
2237
|
//#region src/hooks/drive-by-id.ts
|
|
@@ -2193,11 +2243,16 @@ function useDriveById(driveId) {
|
|
|
2193
2243
|
}
|
|
2194
2244
|
//#endregion
|
|
2195
2245
|
//#region src/hooks/editor-modules.ts
|
|
2246
|
+
/** An editor is a drive "app" if it targets any supported drive document type. */
|
|
2247
|
+
function isDriveEditor(module) {
|
|
2248
|
+
const driveTypes = DRIVE_DOCUMENT_TYPES;
|
|
2249
|
+
return module.documentTypes.some((t) => driveTypes.includes(t));
|
|
2250
|
+
}
|
|
2196
2251
|
function useEditorModules() {
|
|
2197
|
-
return useVetraPackages().flatMap((pkg) => pkg.editors).filter((module) => !module
|
|
2252
|
+
return useVetraPackages().flatMap((pkg) => pkg.editors).filter((module) => !isDriveEditor(module));
|
|
2198
2253
|
}
|
|
2199
2254
|
function useAppModules() {
|
|
2200
|
-
return useVetraPackages().flatMap((pkg) => pkg.editors).filter(
|
|
2255
|
+
return useVetraPackages().flatMap((pkg) => pkg.editors).filter(isDriveEditor);
|
|
2201
2256
|
}
|
|
2202
2257
|
function useFallbackEditorModule(documentType) {
|
|
2203
2258
|
const editorModules = useEditorModules();
|
|
@@ -2610,7 +2665,7 @@ function useDriveSystemInfo(drive) {
|
|
|
2610
2665
|
const driveId = drive?.header.id;
|
|
2611
2666
|
const systemUrl = useMemo(() => {
|
|
2612
2667
|
if (!driveId) return null;
|
|
2613
|
-
const channelUrl = (remotes.find((r) => r.collectionId
|
|
2668
|
+
const channelUrl = (remotes.find((r) => r.collectionId.equals(DriveCollectionId$1.forDrive(driveId)))?.channel)?.config.url;
|
|
2614
2669
|
if (typeof channelUrl !== "string") return null;
|
|
2615
2670
|
return deriveSystemUrl(channelUrl);
|
|
2616
2671
|
}, [remotes, driveId]);
|
|
@@ -2719,7 +2774,7 @@ const syncStatusToUI = {
|
|
|
2719
2774
|
[SyncStatus.Error]: "ERROR"
|
|
2720
2775
|
};
|
|
2721
2776
|
async function getDrives(reactor) {
|
|
2722
|
-
return (await reactor.find({ type
|
|
2777
|
+
return (await Promise.all(DRIVE_DOCUMENT_TYPES.map((type) => reactor.find({ type })))).flatMap((r) => r.results);
|
|
2723
2778
|
}
|
|
2724
2779
|
function getSyncStatus(documentId, sharingType) {
|
|
2725
2780
|
return Promise.resolve(getSyncStatusSync(documentId, sharingType));
|
|
@@ -2811,12 +2866,12 @@ function useGetSwitchboardLink(document) {
|
|
|
2811
2866
|
const remotes = useSyncList();
|
|
2812
2867
|
const isRemoteDrive = useMemo(() => {
|
|
2813
2868
|
if (!isDefined(drive)) return false;
|
|
2814
|
-
return remotes.some((remote) => remote.collectionId
|
|
2869
|
+
return remotes.some((remote) => remote.collectionId.equals(DriveCollectionId$1.forDrive(drive.header.id)));
|
|
2815
2870
|
}, [remotes, drive]);
|
|
2816
2871
|
const remoteUrl = useMemo(() => {
|
|
2817
2872
|
if (!isDefined(drive)) return null;
|
|
2818
2873
|
try {
|
|
2819
|
-
const channelUrl = (remotes.find((remote) => remote.collectionId
|
|
2874
|
+
const channelUrl = (remotes.find((remote) => remote.collectionId.equals(DriveCollectionId$1.forDrive(drive.header.id)))?.channel)?.config.url;
|
|
2820
2875
|
if (typeof channelUrl === "string") return channelUrl;
|
|
2821
2876
|
return null;
|
|
2822
2877
|
} catch (error) {
|
|
@@ -2964,7 +3019,7 @@ async function _refreshReactorData(reactor) {
|
|
|
2964
3019
|
}
|
|
2965
3020
|
async function _refreshReactorDataClient(reactor) {
|
|
2966
3021
|
if (!reactor) return;
|
|
2967
|
-
setDrives(
|
|
3022
|
+
setDrives(await getDrives(reactor));
|
|
2968
3023
|
}
|
|
2969
3024
|
function createDebouncedRefreshReactorData(debounceDelayMs = DEFAULT_DEBOUNCE_DELAY_MS, immediateThresholdMs = DEFAULT_IMMEDIATE_THRESHOLD_MS) {
|
|
2970
3025
|
let timeout = null;
|
|
@@ -3793,6 +3848,6 @@ var BrowserLocalStorage = class extends BaseStorage {
|
|
|
3793
3848
|
}
|
|
3794
3849
|
};
|
|
3795
3850
|
//#endregion
|
|
3796
|
-
export { ActionTracker, BaseStorage, BrowserLocalStorage, COMMON_PACKAGE_ID, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChannelScheme, ChevronDownIcon, ConflictError, CopyIcon, DEFAULT_DRIVE_EDITOR_ID, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, DisconnectIcon, DocumentCache, DocumentChangeType, DocumentIntegrityService, EDITOR_FILE_DROP_OPT_OUT_ATTR, GqlRequestChannel, GraphQLClientDocumentCache, ISSUER_TYPE, InMemoryQueue, IntervalPollTimer, PollBehavior, PropagationMode, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, RegistryClient, RelationalDbProcessor, RemoteClient, RemoteDocumentController, Renown, RenownAuthButton, RenownLoginButton, RenownLogo, RenownUserButton, SpinnerIcon, SyncOperationStatus, UploadStatus, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFolder, addGaTrackingIdEventHandler, addGraphQLReactorClientEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, dispatchActions, downloadDocument, driveCollectionId, driveIdFromUrl, dropAllReactorStorage, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDriveIdBySlug, getDrives, getGlobal, getPackages, getPackagesByDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isDocumentTypeSupported, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, loading, login, logout, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveUrlPathname, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, 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, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, sortNodesByName, trimTrailingSlash, truncateAllTables, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useAttachmentService, useAttachmentUpload, useAttachments, useBasePath, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, 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, useRenown, useRenownAuth, useRenownChainId, useRenownInit, useRenownNetworkId, useRenownUrl, useRequiresHardRefresh, useResetPHGlobalConfig, useRevisionHistoryVisible, useRouterBasename, useSelectedDocument, useSelectedDocumentId, useSelectedDocumentOfType, useSelectedDocumentSafe, useSelectedDrive, useSelectedDriveId, useSelectedDriveSafe, useSelectedFolder, useSelectedNode, useSelectedNodePath, useSelectedTimelineItem, useSelectedTimelineRevision, useSentryDsn, useSentryEnv, useSentryRelease, useSetDefaultPHGlobalConfig, useSetPHAppConfig, useSetPHDocumentEditorConfig, useSetPHGlobalConfig, useStudioMode, useSubgraphModules, useSupportedDocumentTypesInReactor, useSync, useSyncList, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, waitForDocumentReady };
|
|
3851
|
+
export { ActionTracker, BaseStorage, BrowserLocalStorage, COMMON_PACKAGE_ID, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChannelScheme, ChevronDownIcon, ConflictError, CopyIcon, DEFAULT_DRIVE_EDITOR_ID, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, DRIVE_DOCUMENT_TYPES, DisconnectIcon, DocumentCache, DocumentChangeType, DocumentIntegrityService, DriveCollectionId, EDITOR_FILE_DROP_OPT_OUT_ATTR, GqlRequestChannel, GraphQLClientDocumentCache, ISSUER_TYPE, InMemoryQueue, IntervalPollTimer, PollBehavior, PropagationMode, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, RegistryClient, RelationalDbProcessor, RemoteClient, RemoteDocumentController, Renown, RenownAuthButton, RenownLoginButton, RenownLogo, RenownUserButton, SpinnerIcon, SyncOperationStatus, UploadStatus, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFolder, addGaTrackingIdEventHandler, addGraphQLReactorClientEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, dispatchActions, downloadDocument, driveIdFromUrl, dropAllReactorStorage, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDriveIdBySlug, getDrives, getGlobal, getPackages, getPackagesByDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isDocumentTypeSupported, isDriveAuthError, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, loading, login, logout, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveUrlPathname, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setAttachmentService, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveMetadata, setDriveSharingType, setDrives, setDrivesPreserveStrategy, setEnabledEditors, setFeatures, setFileUploadOperationsChunkSize, setGaTrackingId, setGlobal, setGraphQLReactorClient, setIsAddCloudDrivesEnabled, setIsAddDriveEnabled, setIsAddLocalDrivesEnabled, setIsAddPublicDrivesEnabled, setIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsEnabled, setIsAnalyticsExternalProcessorsEnabled, setIsCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, setIsDeleteLocalDrivesEnabled, setIsDeletePublicDrivesEnabled, setIsDiffAnalyticsEnabled, setIsDocumentModelSelectionSettingsEnabled, setIsDragAndDropEnabled, setIsDriveAnalyticsEnabled, setIsEditorDebugModeEnabled, setIsEditorReadModeEnabled, setIsExternalControlsEnabled, setIsExternalPackagesEnabled, setIsExternalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, setIsLocalDrivesEnabled, setIsPublicDrivesEnabled, setIsRelationalProcessorsEnabled, setIsSentryTracingEnabled, setLoading, setLocalDrivesEnabled, setLogLevel, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, sortNodesByName, trimTrailingSlash, truncateAllTables, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useAttachmentService, useAttachmentUpload, useAttachments, useBasePath, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, 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, useRenown, useRenownAuth, useRenownChainId, useRenownInit, useRenownNetworkId, useRenownUrl, useRequiresHardRefresh, useResetPHGlobalConfig, useRevisionHistoryVisible, useRouterBasename, useSelectedDocument, useSelectedDocumentId, useSelectedDocumentOfType, useSelectedDocumentSafe, useSelectedDrive, useSelectedDriveId, useSelectedDriveSafe, useSelectedFolder, useSelectedNode, useSelectedNodePath, useSelectedTimelineItem, useSelectedTimelineRevision, useSentryDsn, useSentryEnv, useSentryRelease, useSetDefaultPHGlobalConfig, useSetPHAppConfig, useSetPHDocumentEditorConfig, useSetPHGlobalConfig, useStudioMode, useSubgraphModules, useSupportedDocumentTypesInReactor, useSync, useSyncList, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, waitForDocumentReady };
|
|
3797
3852
|
|
|
3798
3853
|
//# sourceMappingURL=index.js.map
|