@powerhousedao/reactor-browser 6.2.2-dev.41 → 6.2.2-dev.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{attachment-service-iRAJvtrC.d.ts → attachment-service-CUGe-Rda.d.ts} +3 -3
- package/dist/{attachment-service-iRAJvtrC.d.ts.map → attachment-service-CUGe-Rda.d.ts.map} +1 -1
- package/dist/{document-by-id-BPj6Gd7n.js → document-by-id-DWEQI7wn.js} +2 -2
- package/dist/document-by-id-DWEQI7wn.js.map +1 -0
- package/dist/{document-operations-DvhxGXqI.js → document-operations-D81QJKqH.js} +147 -46
- package/dist/document-operations-D81QJKqH.js.map +1 -0
- package/dist/{global-DscB9Uo3.d.ts → global-CjrUQWHf.d.ts} +11 -2
- package/dist/global-CjrUQWHf.d.ts.map +1 -0
- package/dist/{index-CxZDuIq9.d.ts → index-BM9TVt6u.d.ts} +2 -2
- package/dist/{index-CxZDuIq9.d.ts.map → index-BM9TVt6u.d.ts.map} +1 -1
- package/dist/index.d.ts +75 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +157 -5
- package/dist/index.js.map +1 -1
- package/dist/{relational-DJlbclWB.js → relational-C_0GdGVN.js} +2 -2
- package/dist/{relational-DJlbclWB.js.map → relational-C_0GdGVN.js.map} +1 -1
- package/dist/src/analytics/index.js +1 -1
- package/dist/src/graphql-client/entry.d.ts +2 -2
- package/dist/src/graphql-client/entry.js +2 -2
- package/dist/src/relational/index.js +1 -1
- package/dist/src/renown/index.d.ts +1 -1
- package/dist/src/rpc/index.d.ts +3 -1
- package/dist/src/rpc/index.d.ts.map +1 -1
- package/dist/src/rpc/index.js +19 -5
- package/dist/src/rpc/index.js.map +1 -1
- package/package.json +9 -9
- package/dist/document-by-id-BPj6Gd7n.js.map +0 -1
- package/dist/document-operations-DvhxGXqI.js.map +0 -1
- package/dist/global-DscB9Uo3.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { a as setDocumentCache, c as useDocumentSafe, d as useGetDocumentAsync, f as useGetDocuments, 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, y as dispatchActions } from "./document-by-id-
|
|
2
|
-
import { $ as addGraphQLReactorClientEventHandler, $i as makeAuthMiddleware, $n as setIsDeleteCloudDrivesEnabled, $r as useIsDriveAnalyticsEnabled, $t as addIsAnalyticsEnabledEventHandler, A as useNodesInSelectedDrive, Aa as
|
|
1
|
+
import { a as setDocumentCache, c as useDocumentSafe, d as useGetDocumentAsync, f as useGetDocuments, 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, y as dispatchActions } from "./document-by-id-DWEQI7wn.js";
|
|
2
|
+
import { $ as addGraphQLReactorClientEventHandler, $i as makeAuthMiddleware, $n as setIsDeleteCloudDrivesEnabled, $r as useIsDriveAnalyticsEnabled, $t as addIsAnalyticsEnabledEventHandler, A as useNodesInSelectedDrive, Aa as DocumentModelNotFoundError, Ai as phAppConfigSetters, An as addVersionCheckIntervalEventHandler, Ar as useAllowList, At as makeNodeSlug, B as addReactorClientModuleEventHandler, Bi as isGraphQLReactorClient, Bn as setDisabledEditors, Br as useIsAddCloudDrivesEnabled, Bt as addBasePathEventHandler, C as setSelectedTimelineItem, Ca as addModalEventHandler, Ci as useVersionCheckInterval, Cn as addRequiresHardRefreshEventHandler, Cr as setSentryEnv, Ct as extractDriveSlugFromPath, D as useDocumentsInSelectedDrive, Da as showDeleteNodeModal, Di as addIsExternalControlsEnabledEventHandler, Dn as addSentryReleaseEventHandler, Dr as setVersion, Dt as findUuid, E as useDocumentTypesInSelectedDrive, Ea as showCreateDocumentModal, Ei as addIsDragAndDropEnabledEventHandler, En as addSentryEnvEventHandler, Er as setSwitchboardUrl, Et as extractNodeSlugFromPath, F as hideRevisionHistory, Fi as setIsExternalControlsEnabled, Fn as setAllowList, Fr as useDisabledEditors, Ft as addAttachmentServiceEventHandler, G as usePGlite, Gi as SubgraphSdkRegistry, Gn as setIsAddCloudDrivesEnabled, Gr as useIsAnalyticsEnabled, Gt as addEnabledEditorsEventHandler, H as setReactorClientModule, Hi as makeAuthConnectionParams, Hn as setEnabledEditors, Hr as useIsAddLocalDrivesEnabled, Ht as addDefaultDrivesUrlEventHandler, I as setRevisionHistoryVisible, Ii as useAllowedDocumentTypes, In as setAnalyticsDatabaseName, Ir as useDrivesPreserveStrategy, It as setAttachmentService, J as useSync, Ji as signStampedAction, Jn as setIsAddPublicDrivesEnabled, Jr as useIsDeleteCloudDrivesEnabled, Jt as addIsAddCloudDrivesEnabledEventHandler, K as useReactorClient, Ki as describeGraphQLDocument, Kn as setIsAddDriveEnabled, Kr as useIsAnalyticsExternalProcessorsEnabled, Kt as addFileUploadOperationsChunkSizeEventHandler, L as showRevisionHistory, Li as useIsDragAndDropEnabled, Ln as setBasePath, Lr as useEnabledEditors, Lt as useAttachmentService, M as isFolderNodeKind, Ma as DocumentTypeMismatchError, Mi as phDocumentEditorConfigSetters, Mn as addWarnOutdatedAppEventHandler, Mr as useBasePath, Mt as addFeaturesEventHandler, N as sortNodesByName, Na as NoSelectedDocumentError, Ni as setAllowedDocumentTypes, Nn as phGlobalConfigHooks, Nr as useCliVersion, Nt as setFeatures, O as useFileNodesInSelectedDrive, Oa as showPHModal, Oi as isExternalControlsEnabledEventFunctions, On as addStudioModeEventHandler, Or as setVersionCheckInterval, Ot as getPathWithoutBase, P as addRevisionHistoryVisibleEventHandler, Pa as UnsupportedDocumentTypeError, Pi as setIsDragAndDropEnabled, Pn as phGlobalConfigSetters, Pr as useDefaultDrivesUrl, Pt as useFeatures, Q as usePackageDiscoveryService, Qi as ambientRenownTokenProvider, Qn as setIsCloudDrivesEnabled, Qr as useIsDocumentModelSelectionSettingsEnabled, Qt as addIsAnalyticsDatabaseWorkerEnabledEventHandler, R as useRevisionHistoryVisible, Ri as useIsExternalControlsEnabled, Rn as setCliVersion, Rr as useFileUploadOperationsChunkSize, Rt as addAllowListEventHandler, S as addSelectedTimelineItemEventHandler, Sa as isDocumentTypeSupported, Si as useVersion, Sn as addRenownUrlEventHandler, Sr as setSentryDsn, St as extractDriveIdFromSlug, T as useSelectedNode, Ta as setPHModal, Ti as addAllowedDocumentTypesEventHandler, Tn as addSentryDsnEventHandler, Tr as setStudioMode, Tt as extractNodeIdFromSlug, U as useDatabase, Ui as startDocumentChangesSubscription, Un as setFileUploadOperationsChunkSize, Ur as useIsAddPublicDrivesEnabled, Ut as addDisabledEditorsEventHandler, V as setReactorClient, Vi as viewFilterInputFromViewFilter, Vn as setDrivesPreserveStrategy, Vr as useIsAddDriveEnabled, Vt as addCliVersionEventHandler, W as useModelRegistry, Wi as subscriptionsUrlFromGraphqlUrl, Wn as setGaTrackingId, Wr as useIsAnalyticsDatabaseWorkerEnabled, Wt as addDrivesPreserveStrategyEventHandler, X as addPackageDiscoveryServiceEventHandler, Xi as MutateDocumentWithOperationsDocument, Xn as setIsAnalyticsEnabled, Xr as useIsDeletePublicDrivesEnabled, Xt as addIsAddLocalDrivesEnabledEventHandler, Y as useSyncList, Yi as stampAction, Yn as setIsAnalyticsDatabaseWorkerEnabled, Yr as useIsDeleteLocalDrivesEnabled, Yt as addIsAddDriveEnabledEventHandler, Z as setPackageDiscoveryService, Zi as ReactorOperationFieldsFragmentDoc, Zn as setIsAnalyticsExternalProcessorsEnabled, Zr as useIsDiffAnalyticsEnabled, Zt as addIsAddPublicDrivesEnabledEventHandler, _ as setPHToast, _a as moveNode$1, _i as useSentryDsn, _n as addLocalDrivesEnabledEventHandler, _r as setRenownChainId, _t as addDrivesEventHandler, a as ensurePHEventHandlers, aa as convertRemoteOperations, ai as useIsLocalDrivesEnabled, an as addIsDiffAnalyticsEnabledEventHandler, ar as setIsEditorDebugModeEnabled, at as useDropTarget, b as setSelectedTimelineRevision, ba as upgradeDocument, bi as useStudioMode, bn as addRenownChainIdEventHandler, br as setRequiresHardRefresh, bt as createUrlWithPreservedParams, c as packageFromDocumentModels, ca as screamingSnakeToCamel, ci as useIsSentryTracingEnabled, cn as addIsEditorDebugModeEnabledEventHandler, cr as setIsExternalProcessorsEnabled, ct as setSelectedDrive, d as commonGlobalEventHandlerFunctions, da as addFileWithProgress, di as useRenownAdapters, dn as addIsExternalProcessorsEnabledEventHandler, dr as setIsPublicDrivesEnabled, dt as useSelectedDriveId, ea as phDocumentFromGetDocument, ei as useIsEditorDebugModeEnabled, en as addIsAnalyticsExternalProcessorsEnabledEventHandler, er as setIsDeleteLocalDrivesEnabled, et as setGraphQLReactorClient, f as addVetraPackageManagerEventHandler, fa as addFolder, fi as useRenownChainId, fn as addIsExternalRelationalProcessorsEnabledEventHandler, fr as setIsRelationalProcessorsEnabled, ft as useSelectedDriveSafe, g as addToastEventHandler, ga as loadFile, gi as useRouterBasename, gn as addIsSentryTracingEnabledEventHandler, gr as setRenownAdapters, gt as setSelectedNode, h as useVetraPackages, ha as exportFile, hi as useRequiresHardRefresh, hn as addIsRelationalProcessorsEnabledEventHandler, hr as setLogLevel, ht as addSetSelectedNodeOnPopStateEventHandler, i as GraphQLReactorProvider, ia as buildPulledDocument, ii as useIsExternalRelationalProcessorsEnabled, in as addIsDeletePublicDrivesEnabledEventHandler, ir as setIsDriveAnalyticsEnabled, it as useDropNode, j as isFileNodeKind, ja as DocumentNotFoundError, ji as phDocumentEditorConfigHooks, jn as addVersionEventHandler, jr as useAnalyticsDatabaseName, jt as resolveUrlPathname, k as useFolderNodesInSelectedDrive, ka as usePHModal, ki as phAppConfigHooks, kn as addSwitchboardUrlEventHandler, kr as setWarnOutdatedApp, kt as makeDriveUrlComponent, l as addPHEventHandlers, la as addDocument, li as useLocalDrivesEnabled, ln as addIsEditorReadModeEnabledEventHandler, lr as setIsExternalRelationalProcessorsEnabled, lt as setSelectedDriveId, m as useVetraPackageManager, ma as deleteNode, mi as useRenownUrl, mn as addIsPublicDrivesEnabledEventHandler, mr as setLocalDrivesEnabled, mt as addSelectedNodeIdEventHandler, n as useDocumentModelModuleById, na as revisionMapFromRevisionsList, ni as useIsExternalPackagesEnabled, nn as addIsDeleteCloudDrivesEnabledEventHandler, nr as setIsDiffAnalyticsEnabled, nt as addDraggingNodeEventHandler, o as useSwitchboardClient, oa as extractRevisionMap, oi as useIsPublicDrivesEnabled, on as addIsDocumentModelSelectionSettingsEnabledEventHandler, or as setIsEditorReadModeEnabled, ot as addSelectedDriveIdEventHandler, p as setVetraPackageManager, pa as copyNode$1, pi as useRenownNetworkId, pn as addIsLocalDrivesEnabledEventHandler, pr as setIsSentryTracingEnabled, pt as addResetSelectedNodeEventHandler, q as useReactorClientModule, qi as subgraphUrlFromGraphqlUrl, qn as setIsAddLocalDrivesEnabled, qr as useIsCloudDrivesEnabled, qt as addGaTrackingIdEventHandler, r as useDocumentModelModules, ra as ConflictError, ri as useIsExternalProcessorsEnabled, rn as addIsDeleteLocalDrivesEnabledEventHandler, rr as setIsDocumentModelSelectionSettingsEnabled, rt as useDragNode, s as StaticPackageManager, sa as hasRevisionConflict, si as useIsRelationalProcessorsEnabled, sn as addIsDriveAnalyticsEnabledEventHandler, sr as setIsExternalPackagesEnabled, st as addSetSelectedDriveOnPopStateEventHandler, t as useDocumentOperations, ta as phDocumentFromMutation, ti as useIsEditorReadModeEnabled, tn as addIsCloudDrivesEnabledEventHandler, tr as setIsDeletePublicDrivesEnabled, tt as useGraphQLReactorClient, u as callEventHandlerRegisterFunctions, ua as addFile, ui as useLogLevel, un as addIsExternalPackagesEnabledEventHandler, ur as setIsLocalDrivesEnabled, ut as useSelectedDrive, v as usePHToast, va as renameDriveNode, vi as useSentryEnv, vn as addLogLevelEventHandler, vr as setRenownNetworkId, vt as setDrives, w as useSelectedTimelineItem, wa as closePHModal, wi as useWarnOutdatedApp, wn as addRouterBasenameEventHandler, wr as setSentryRelease, wt as extractNodeIdFromPath, x as useSelectedTimelineRevision, xa as getUserPermissions, xi as useSwitchboardUrl, xn as addRenownNetworkIdEventHandler, xr as setRouterBasename, xt as extractDriveIdFromPath, y as addSelectedTimelineRevisionEventHandler, ya as renameNode, yi as useSentryRelease, yn as addRenownAdaptersEventHandler, yr as setRenownUrl, yt as useDrives, z as addReactorClientEventHandler, zi as GraphQLReactorClient, zn as setDefaultDrivesUrl, zr as useGaTrackingId, zt as addAnalyticsDatabaseNameEventHandler } from "./document-operations-D81QJKqH.js";
|
|
3
3
|
import { t as makePHEventFunctions } from "./make-ph-event-functions-DBq3iWYn.js";
|
|
4
4
|
import { a as setGlobal, i as getGlobal, n as getAnalyticsStore, r as clearGlobal, t as createAnalyticsStore } from "./store-DAJq6vSs.js";
|
|
5
5
|
import { baseDocumentModels, baseDocumentModelsMap } from "./src/document-model.js";
|
|
6
6
|
import { i as GetDocumentWithOperationsDocument, o as PropagationMode, t as createClient } from "./client-s_ISz_Zs.js";
|
|
7
7
|
import { a as useRenown, c as RENOWN_INITIAL_UNKNOWN, d as useRenownInitialUser, f as addLoadingEventHandler, h as useLoading, i as useLoginStatus, l as RenownInitialUserProvider, m as setLoading, n as setRenown, o as useUser, p as loading, r as useDid, s as RENOWN_INITIAL_ANONYMOUS, t as addRenownEventHandler, u as useRenownInitialAuth } from "./renown-BZabzj4l.js";
|
|
8
8
|
import { A as RENOWN_NETWORK_ID, C as openRenown, D as DOMAIN_TYPE, E as CREDENTIAL_TYPES, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, O as ISSUER_TYPE, S as logout, T as CREDENTIAL_SUBJECT_TYPE, _ as SpinnerIcon, a as useRenownInit, b as useRenownAuthAsync, c as initConnectCrypto, d as RenownUserButton, f as RenownLoginButton, g as RenownLogo, h as DisconnectIcon, i as Renown, j as RENOWN_URL, k as RENOWN_CHAIN_ID, l as initRenownCrypto, m as CopyIcon, n as RenownProvider, o as useRenownSessionCookie, p as ChevronDownIcon, r as RenownWalletProvider, s as useRenownSessionSynced, t as useRenownLoginMethods, u as RenownAuthButton, v as UserIcon, w as CREDENTIAL_SCHEMA_EIP712_TYPE, x as login, y as useRenownAuth } from "./renown-C7a1ygsj.js";
|
|
9
|
-
import { i as setPGliteDB, n as useRelationalQuery, r as useRelationalDb, t as createProcessorQuery } from "./relational-
|
|
9
|
+
import { i as setPGliteDB, n as useRelationalQuery, r as useRelationalDb, t as createProcessorQuery } from "./relational-C_0GdGVN.js";
|
|
10
10
|
import { a as getPackagesForDocumentType, i as getPackagesByDocumentType, n as getPackagePage, o as trimTrailingSlash, r as getPackages, t as RegistryClient } from "./client-Zz_l9QzI.js";
|
|
11
11
|
import { validateInitialState, validateModules, validateStateSchemaName } from "@powerhousedao/shared/document-model";
|
|
12
12
|
import { DriveDocumentSchema, driveCreateDocument, isFileNode, setAvailableOffline, setDriveIcon, setDriveName, setSharingType } from "@powerhousedao/shared/document-drive";
|
|
13
13
|
import { allPass, filter, find, forEach, funnel, hasAtLeast, isArray, isDefined, isIncludedIn, isStrictEqual, isTruthy, last, map, mapToObj, once, pipe, prop, split, unique } from "remeda";
|
|
14
|
-
import { ChannelScheme, DocumentChangeType, DocumentChangeType as DocumentChangeType$1, DocumentIntegrityService, DriveCollectionId, DriveCollectionId as DriveCollectionId$1, 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";
|
|
15
14
|
import { useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
15
|
+
import { ChannelScheme, DocumentChangeType, DocumentChangeType as DocumentChangeType$1, DocumentIntegrityService, DriveCollectionId, DriveCollectionId as DriveCollectionId$1, 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";
|
|
16
16
|
import { z } from "zod";
|
|
17
17
|
import normalizeException from "normalize-exception";
|
|
18
18
|
import * as lzString from "lz-string";
|
|
@@ -649,6 +649,52 @@ function useDocumentTypes() {
|
|
|
649
649
|
return allowedDocumentTypes ?? supportedDocumentTypes;
|
|
650
650
|
}
|
|
651
651
|
//#endregion
|
|
652
|
+
//#region src/hooks/document-version-status.ts
|
|
653
|
+
/**
|
|
654
|
+
* Classifies a document's model version against the installed module
|
|
655
|
+
* versions. Pure logic, extracted for testing.
|
|
656
|
+
*/
|
|
657
|
+
function getDocumentVersionStatus(documentVersion, availableVersions, hasUpgradePath) {
|
|
658
|
+
if (availableVersions.length === 0) return;
|
|
659
|
+
const sorted = [...availableVersions].sort((a, b) => a - b);
|
|
660
|
+
const latestVersion = sorted[sorted.length - 1];
|
|
661
|
+
if (documentVersion > latestVersion) return {
|
|
662
|
+
kind: "unsupported",
|
|
663
|
+
documentVersion,
|
|
664
|
+
availableVersions: sorted
|
|
665
|
+
};
|
|
666
|
+
if (documentVersion === latestVersion) return {
|
|
667
|
+
kind: "current",
|
|
668
|
+
documentVersion
|
|
669
|
+
};
|
|
670
|
+
return {
|
|
671
|
+
kind: "upgrade-available",
|
|
672
|
+
documentVersion,
|
|
673
|
+
latestVersion,
|
|
674
|
+
canUpgrade: hasUpgradePath(documentVersion, latestVersion)
|
|
675
|
+
};
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Compares the given document's model version against the versions available
|
|
679
|
+
* from installed Vetra packages. Returns undefined while packages load or
|
|
680
|
+
* when the document type has no installed modules.
|
|
681
|
+
*/
|
|
682
|
+
function useDocumentVersionStatus(document) {
|
|
683
|
+
const modules = useDocumentModelModules();
|
|
684
|
+
const registry = useModelRegistry();
|
|
685
|
+
if (!document || !modules) return;
|
|
686
|
+
const documentType = document.header.documentType;
|
|
687
|
+
return getDocumentVersionStatus(document.state.document.version || 1, modules.filter((m) => m.documentModel.global.id === documentType).map((m) => m.version ?? 1), (fromVersion, toVersion) => {
|
|
688
|
+
if (!registry) return false;
|
|
689
|
+
try {
|
|
690
|
+
registry.computeUpgradePath(documentType, fromVersion, toVersion);
|
|
691
|
+
return true;
|
|
692
|
+
} catch {
|
|
693
|
+
return false;
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
//#endregion
|
|
652
698
|
//#region src/utils/validate-document.ts
|
|
653
699
|
const validateDocument = (document) => {
|
|
654
700
|
const errors = [];
|
|
@@ -1397,6 +1443,112 @@ function buildDocumentSubgraphUrl(driveUrl, identifier, authToken) {
|
|
|
1397
1443
|
return `${driveUrl}?explorerURLState=${buildDocumentSubgraphQuery(identifier, authToken)}`;
|
|
1398
1444
|
}
|
|
1399
1445
|
//#endregion
|
|
1446
|
+
//#region src/utils/upgrade-preview.ts
|
|
1447
|
+
const NON_DOMAIN_SCOPES = new Set(["auth", "document"]);
|
|
1448
|
+
function isPlainObject(value) {
|
|
1449
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1450
|
+
}
|
|
1451
|
+
function walkShapes(before, after, path, added, removed) {
|
|
1452
|
+
if (isPlainObject(before) && isPlainObject(after)) {
|
|
1453
|
+
const beforeKeys = Object.keys(before);
|
|
1454
|
+
const afterKeys = Object.keys(after);
|
|
1455
|
+
for (const key of afterKeys) {
|
|
1456
|
+
const childPath = path ? `${path}.${key}` : key;
|
|
1457
|
+
if (!beforeKeys.includes(key)) {
|
|
1458
|
+
added.push(childPath);
|
|
1459
|
+
continue;
|
|
1460
|
+
}
|
|
1461
|
+
walkShapes(before[key], after[key], childPath, added, removed);
|
|
1462
|
+
}
|
|
1463
|
+
for (const key of beforeKeys) if (!afterKeys.includes(key)) removed.push(path ? `${path}.${key}` : key);
|
|
1464
|
+
return;
|
|
1465
|
+
}
|
|
1466
|
+
if (Array.isArray(before) && Array.isArray(after)) {
|
|
1467
|
+
if (before.length > 0 && after.length > 0) walkShapes(before[0], after[0], `${path}[]`, added, removed);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* Recursively diffs the structural shape of two values, returning dot-paths
|
|
1472
|
+
* of keys present in `after` but not `before` (added) and vice versa
|
|
1473
|
+
* (removed). Array fields are compared by the shape of a representative
|
|
1474
|
+
* element (the first element on each side, when both sides have one) using
|
|
1475
|
+
* the `path[]` notation, e.g. `todos[].status`. Only key presence is
|
|
1476
|
+
* compared — array length and primitive values are ignored.
|
|
1477
|
+
*/
|
|
1478
|
+
function diffStateShapes(before, after) {
|
|
1479
|
+
const added = [];
|
|
1480
|
+
const removed = [];
|
|
1481
|
+
walkShapes(before, after, "", added, removed);
|
|
1482
|
+
return {
|
|
1483
|
+
added,
|
|
1484
|
+
removed
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
* Computes a dry-run preview of upgrading `document` to the latest
|
|
1489
|
+
* registered version of its document model: the version jump, the upgrade
|
|
1490
|
+
* steps that will run, and which state fields will be added or removed.
|
|
1491
|
+
* Applies the upgrade reducers against a deep clone of the document, so the
|
|
1492
|
+
* original is left untouched.
|
|
1493
|
+
*
|
|
1494
|
+
* Returns undefined when the registry is unavailable, the document is
|
|
1495
|
+
* already at (or above) the latest registered version, or the upgrade path
|
|
1496
|
+
* cannot be computed.
|
|
1497
|
+
*/
|
|
1498
|
+
function getDocumentUpgradePreview(document, registry) {
|
|
1499
|
+
if (!registry) return;
|
|
1500
|
+
const documentType = document.header.documentType;
|
|
1501
|
+
const fromVersion = document.state.document.version || 1;
|
|
1502
|
+
let latestVersion;
|
|
1503
|
+
try {
|
|
1504
|
+
latestVersion = registry.getLatestVersion(documentType);
|
|
1505
|
+
} catch {
|
|
1506
|
+
return;
|
|
1507
|
+
}
|
|
1508
|
+
if (fromVersion >= latestVersion) return;
|
|
1509
|
+
let transitions;
|
|
1510
|
+
try {
|
|
1511
|
+
transitions = registry.computeUpgradePath(documentType, fromVersion, latestVersion);
|
|
1512
|
+
} catch {
|
|
1513
|
+
return;
|
|
1514
|
+
}
|
|
1515
|
+
const stubAction = {
|
|
1516
|
+
id: "",
|
|
1517
|
+
type: "UPGRADE_DOCUMENT",
|
|
1518
|
+
scope: "document",
|
|
1519
|
+
timestampUtcMs: "",
|
|
1520
|
+
input: {
|
|
1521
|
+
documentId: document.header.id,
|
|
1522
|
+
model: documentType,
|
|
1523
|
+
fromVersion,
|
|
1524
|
+
toVersion: latestVersion
|
|
1525
|
+
}
|
|
1526
|
+
};
|
|
1527
|
+
let upgraded = structuredClone(document);
|
|
1528
|
+
for (const transition of transitions) upgraded = transition.upgradeReducer(upgraded, stubAction);
|
|
1529
|
+
const addedFields = [];
|
|
1530
|
+
const removedFields = [];
|
|
1531
|
+
const scopes = new Set([...Object.keys(document.state), ...Object.keys(upgraded.state)]);
|
|
1532
|
+
for (const scope of scopes) {
|
|
1533
|
+
if (NON_DOMAIN_SCOPES.has(scope)) continue;
|
|
1534
|
+
const beforeScope = document.state[scope];
|
|
1535
|
+
const afterScope = upgraded.state[scope];
|
|
1536
|
+
const { added, removed } = diffStateShapes(beforeScope, afterScope);
|
|
1537
|
+
for (const path of added) addedFields.push(`${scope}.${path}`);
|
|
1538
|
+
for (const path of removed) removedFields.push(`${scope}.${path}`);
|
|
1539
|
+
}
|
|
1540
|
+
return {
|
|
1541
|
+
fromVersion,
|
|
1542
|
+
toVersion: latestVersion,
|
|
1543
|
+
steps: transitions.map((transition) => ({
|
|
1544
|
+
toVersion: transition.toVersion,
|
|
1545
|
+
description: transition.description ?? ""
|
|
1546
|
+
})),
|
|
1547
|
+
addedFields,
|
|
1548
|
+
removedFields
|
|
1549
|
+
};
|
|
1550
|
+
}
|
|
1551
|
+
//#endregion
|
|
1400
1552
|
//#region src/hooks/use-get-switchboard-link.ts
|
|
1401
1553
|
/**
|
|
1402
1554
|
* Hook that returns a function to generate a document's switchboard URL.
|
|
@@ -2333,6 +2485,6 @@ var BrowserLocalStorage = class extends BaseStorage {
|
|
|
2333
2485
|
}
|
|
2334
2486
|
};
|
|
2335
2487
|
//#endregion
|
|
2336
|
-
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, DocumentModelNotFoundError, DocumentNotFoundError, DocumentTypeMismatchError, DriveCollectionId, EDITOR_FILE_DROP_OPT_OUT_ATTR, GqlRequestChannel, GraphQLClientDocumentCache, GraphQLReactorClient, GraphQLReactorProvider, ISSUER_TYPE, InMemoryQueue, IntervalPollTimer, MutateDocumentWithOperationsDocument, NoSelectedDocumentError, PollBehavior, PropagationMode, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, ReactorOperationFieldsFragmentDoc, RegistryClient, RelationalDbProcessor, RemoteClient, RemoteDocumentController, Renown, RenownAuthButton, RenownInitialUserProvider, RenownLoginButton, RenownLogo, RenownProvider, RenownUserButton, RenownWalletProvider, SpinnerIcon, StaticPackageManager, SubgraphSdkRegistry, SyncOperationStatus, UnsupportedDocumentTypeError, UploadStatus, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFileWithProgress, addFolder, addGaTrackingIdEventHandler, addGraphQLReactorClientEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownAdaptersEventHandler, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addSwitchboardUrlEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, describeGraphQLDocument, dispatchActions, downloadDocument, driveIdFromUrl, dropAllReactorStorage, ensurePHEventHandlers, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDriveIdBySlug, getDrives, getGlobal, getPackagePage, getPackages, getPackagesByDocumentType, getPackagesForDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hasPreloadBandwidth, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isDocumentTypeSupported, isDriveAuthError, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, isGraphQLReactorClient, loadFile, loading, login, logout, makeAuthConnectionParams, makeAuthMiddleware, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, packageFromDocumentModels, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromGetDocument, phDocumentFromMutation, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, preloadEditorModule, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveUrlPathname, revisionMapFromRevisionsList, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setAttachmentService, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveMetadata, setDriveSharingType, setDrives, setDrivesPreserveStrategy, setEnabledEditors, setFeatures, setFileUploadOperationsChunkSize, setGaTrackingId, setGlobal, setGraphQLReactorClient, setIsAddCloudDrivesEnabled, setIsAddDriveEnabled, setIsAddLocalDrivesEnabled, setIsAddPublicDrivesEnabled, setIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsEnabled, setIsAnalyticsExternalProcessorsEnabled, setIsCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, setIsDeleteLocalDrivesEnabled, setIsDeletePublicDrivesEnabled, setIsDiffAnalyticsEnabled, setIsDocumentModelSelectionSettingsEnabled, setIsDragAndDropEnabled, setIsDriveAnalyticsEnabled, setIsEditorDebugModeEnabled, setIsEditorReadModeEnabled, setIsExternalControlsEnabled, setIsExternalPackagesEnabled, setIsExternalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, setIsLocalDrivesEnabled, setIsPublicDrivesEnabled, setIsRelationalProcessorsEnabled, setIsSentryTracingEnabled, setLoading, setLocalDrivesEnabled, setLogLevel, setPGliteDB, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownAdapters, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setSwitchboardUrl, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, signStampedAction, sortNodesByName, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, trimTrailingSlash, truncateAllTables, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useAttachmentPreview, useAttachmentService, useAttachmentUpload, useAttachments, useBasePath, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEditorPreloader, useEnabledEditors, useFallbackEditorModule, useFeatures, useFileNodesInSelectedDrive, useFileNodesInSelectedFolder, useFileUploadOperationsChunkSize, useFolderById, useFolderNodesInSelectedDrive, useFolderNodesInSelectedFolder, useGaTrackingId, useGetDocument, useGetDocumentAsync, useGetDocuments, useGetSwitchboardLink, useGraphQLReactorClient, useInitReactorGraphqlClient, useIsAddCloudDrivesEnabled, useIsAddDriveEnabled, useIsAddLocalDrivesEnabled, useIsAddPublicDrivesEnabled, useIsAnalyticsDatabaseWorkerEnabled, useIsAnalyticsEnabled, useIsAnalyticsExternalProcessorsEnabled, useIsCloudDrivesEnabled, useIsDeleteCloudDrivesEnabled, useIsDeleteLocalDrivesEnabled, useIsDeletePublicDrivesEnabled, useIsDiffAnalyticsEnabled, useIsDocumentModelSelectionSettingsEnabled, useIsDragAndDropEnabled, useIsDriveAnalyticsEnabled, useIsEditorDebugModeEnabled, useIsEditorReadModeEnabled, useIsExternalControlsEnabled, useIsExternalPackagesEnabled, useIsExternalProcessorsEnabled, useIsExternalRelationalProcessorsEnabled, useIsLocalDrivesEnabled, useIsPublicDrivesEnabled, useIsRelationalProcessorsEnabled, useIsSentryTracingEnabled, useLoading, useLocalDrivesEnabled, useLogLevel, useLoginStatus, useModelRegistry, useNodeActions, useNodeById, useNodeParentFolderById, useNodePathById, useNodesInSelectedDrive, useNodesInSelectedDriveOrFolder, useNodesInSelectedFolder, useOnDropFile, usePGlite, usePHAppConfigByKey, usePHDocumentEditorConfigByKey, usePHGlobalConfigByKey, usePHModal, usePHToast, usePackageDiscoveryService, useParentFolderForSelectedNode, useReactorClient, useReactorClientModule, useRelationalDb, useRelationalQuery, useRenown, useRenownAdapters, useRenownAuth, useRenownAuthAsync, useRenownChainId, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownNetworkId, useRenownSessionCookie, useRenownSessionSynced, 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, useSwitchboardClient, useSwitchboardUrl, useSync, useSyncList, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, viewFilterInputFromViewFilter, waitForDocumentReady };
|
|
2488
|
+
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, DocumentModelNotFoundError, DocumentNotFoundError, DocumentTypeMismatchError, DriveCollectionId, EDITOR_FILE_DROP_OPT_OUT_ATTR, GqlRequestChannel, GraphQLClientDocumentCache, GraphQLReactorClient, GraphQLReactorProvider, ISSUER_TYPE, InMemoryQueue, IntervalPollTimer, MutateDocumentWithOperationsDocument, NoSelectedDocumentError, PollBehavior, PropagationMode, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, ReactorOperationFieldsFragmentDoc, RegistryClient, RelationalDbProcessor, RemoteClient, RemoteDocumentController, Renown, RenownAuthButton, RenownInitialUserProvider, RenownLoginButton, RenownLogo, RenownProvider, RenownUserButton, RenownWalletProvider, SpinnerIcon, StaticPackageManager, SubgraphSdkRegistry, SyncOperationStatus, UnsupportedDocumentTypeError, UploadStatus, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFileWithProgress, addFolder, addGaTrackingIdEventHandler, addGraphQLReactorClientEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownAdaptersEventHandler, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addSwitchboardUrlEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, describeGraphQLDocument, diffStateShapes, dispatchActions, downloadDocument, driveIdFromUrl, dropAllReactorStorage, ensurePHEventHandlers, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDocumentUpgradePreview, getDocumentVersionStatus, getDriveIdBySlug, getDrives, getGlobal, getPackagePage, getPackages, getPackagesByDocumentType, getPackagesForDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hasPreloadBandwidth, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isDocumentTypeSupported, isDriveAuthError, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, isGraphQLReactorClient, loadFile, loading, login, logout, makeAuthConnectionParams, makeAuthMiddleware, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, packageFromDocumentModels, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromGetDocument, phDocumentFromMutation, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, preloadEditorModule, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveUrlPathname, revisionMapFromRevisionsList, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setAttachmentService, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveMetadata, setDriveSharingType, setDrives, setDrivesPreserveStrategy, setEnabledEditors, setFeatures, setFileUploadOperationsChunkSize, setGaTrackingId, setGlobal, setGraphQLReactorClient, setIsAddCloudDrivesEnabled, setIsAddDriveEnabled, setIsAddLocalDrivesEnabled, setIsAddPublicDrivesEnabled, setIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsEnabled, setIsAnalyticsExternalProcessorsEnabled, setIsCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, setIsDeleteLocalDrivesEnabled, setIsDeletePublicDrivesEnabled, setIsDiffAnalyticsEnabled, setIsDocumentModelSelectionSettingsEnabled, setIsDragAndDropEnabled, setIsDriveAnalyticsEnabled, setIsEditorDebugModeEnabled, setIsEditorReadModeEnabled, setIsExternalControlsEnabled, setIsExternalPackagesEnabled, setIsExternalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, setIsLocalDrivesEnabled, setIsPublicDrivesEnabled, setIsRelationalProcessorsEnabled, setIsSentryTracingEnabled, setLoading, setLocalDrivesEnabled, setLogLevel, setPGliteDB, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownAdapters, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setSwitchboardUrl, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, signStampedAction, sortNodesByName, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, trimTrailingSlash, truncateAllTables, upgradeDocument, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useAttachmentPreview, useAttachmentService, useAttachmentUpload, useAttachments, useBasePath, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocumentVersionStatus, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEditorPreloader, useEnabledEditors, useFallbackEditorModule, useFeatures, useFileNodesInSelectedDrive, useFileNodesInSelectedFolder, useFileUploadOperationsChunkSize, useFolderById, useFolderNodesInSelectedDrive, useFolderNodesInSelectedFolder, useGaTrackingId, useGetDocument, useGetDocumentAsync, useGetDocuments, useGetSwitchboardLink, useGraphQLReactorClient, useInitReactorGraphqlClient, useIsAddCloudDrivesEnabled, useIsAddDriveEnabled, useIsAddLocalDrivesEnabled, useIsAddPublicDrivesEnabled, useIsAnalyticsDatabaseWorkerEnabled, useIsAnalyticsEnabled, useIsAnalyticsExternalProcessorsEnabled, useIsCloudDrivesEnabled, useIsDeleteCloudDrivesEnabled, useIsDeleteLocalDrivesEnabled, useIsDeletePublicDrivesEnabled, useIsDiffAnalyticsEnabled, useIsDocumentModelSelectionSettingsEnabled, useIsDragAndDropEnabled, useIsDriveAnalyticsEnabled, useIsEditorDebugModeEnabled, useIsEditorReadModeEnabled, useIsExternalControlsEnabled, useIsExternalPackagesEnabled, useIsExternalProcessorsEnabled, useIsExternalRelationalProcessorsEnabled, useIsLocalDrivesEnabled, useIsPublicDrivesEnabled, useIsRelationalProcessorsEnabled, useIsSentryTracingEnabled, useLoading, useLocalDrivesEnabled, useLogLevel, useLoginStatus, useModelRegistry, useNodeActions, useNodeById, useNodeParentFolderById, useNodePathById, useNodesInSelectedDrive, useNodesInSelectedDriveOrFolder, useNodesInSelectedFolder, useOnDropFile, usePGlite, usePHAppConfigByKey, usePHDocumentEditorConfigByKey, usePHGlobalConfigByKey, usePHModal, usePHToast, usePackageDiscoveryService, useParentFolderForSelectedNode, useReactorClient, useReactorClientModule, useRelationalDb, useRelationalQuery, useRenown, useRenownAdapters, useRenownAuth, useRenownAuthAsync, useRenownChainId, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownNetworkId, useRenownSessionCookie, useRenownSessionSynced, 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, useSwitchboardClient, useSwitchboardUrl, useSync, useSyncList, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, viewFilterInputFromViewFilter, waitForDocumentReady };
|
|
2337
2489
|
|
|
2338
2490
|
//# sourceMappingURL=index.js.map
|