@powerhousedao/reactor-browser 6.2.3-dev.61 → 6.2.3-dev.63
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-DG6UkyMv.d.ts → attachment-service-CQ3JygJd.d.ts} +3 -3
- package/dist/{attachment-service-DG6UkyMv.d.ts.map → attachment-service-CQ3JygJd.d.ts.map} +1 -1
- package/dist/{client-Cq5avLW5.js → client-Bwiji4R6.js} +6 -2
- package/dist/client-Bwiji4R6.js.map +1 -0
- package/dist/{dispatch-C1VVTn5S.js → dispatch-BmdzdTwb.js} +15 -11
- package/dist/dispatch-BmdzdTwb.js.map +1 -0
- package/dist/{document-by-id-BRDkvmpn.js → document-by-id-BqNuTx4S.js} +2 -2
- package/dist/{document-by-id-BRDkvmpn.js.map → document-by-id-BqNuTx4S.js.map} +1 -1
- package/dist/{document-model-modules-Gsh1Xr7j.js → document-model-modules-Wjh92XAb.js} +192 -157
- package/dist/document-model-modules-Wjh92XAb.js.map +1 -0
- package/dist/{document-operations-BSzcF0mu.js → document-operations--Z0AOyyy.js} +74 -27
- package/dist/document-operations--Z0AOyyy.js.map +1 -0
- package/dist/{global-BuSwbbY0.d.ts → global-CPJA8ePb.d.ts} +56 -4
- package/dist/global-CPJA8ePb.d.ts.map +1 -0
- package/dist/{index-ewIc3pEO.d.ts → index-DRCTps7m.d.ts} +2 -2
- package/dist/{index-ewIc3pEO.d.ts.map → index-DRCTps7m.d.ts.map} +1 -1
- package/dist/index.d.ts +244 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +305 -37
- package/dist/index.js.map +1 -1
- package/dist/make-ph-event-functions-C1JTfEw1.js +251 -0
- package/dist/make-ph-event-functions-C1JTfEw1.js.map +1 -0
- package/dist/navigation-B4fHR-Tm.js +315 -0
- package/dist/navigation-B4fHR-Tm.js.map +1 -0
- package/dist/{relational-DxHuX41f.js → relational-DZuyKp2y.js} +2 -2
- package/dist/{relational-DxHuX41f.js.map → relational-DZuyKp2y.js.map} +1 -1
- package/dist/{renown-D05wkobG.js → renown-CGQYQsvH.js} +2 -2
- package/dist/{renown-D05wkobG.js.map → renown-CGQYQsvH.js.map} +1 -1
- package/dist/{renown-CPAeJt5L.js → renown-DlkS61Dp.js} +28 -22
- package/dist/{renown-CPAeJt5L.js.map → renown-DlkS61Dp.js.map} +1 -1
- package/dist/src/ai/index.d.ts.map +1 -1
- package/dist/src/ai/index.js +3 -3
- package/dist/src/analytics/index.js +3 -3
- package/dist/src/graphql-client/entry.d.ts +2 -2
- package/dist/src/graphql-client/entry.js +3 -3
- package/dist/src/relational/index.js +1 -1
- package/dist/src/renown/index.d.ts +1 -1
- package/dist/src/renown/index.js +2 -2
- 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 +1 -3
- package/dist/src/rpc/index.js.map +1 -1
- package/dist/{switchboard-3vHbIV5W.js → switchboard-DAvOdf_g.js} +8 -6
- package/dist/switchboard-DAvOdf_g.js.map +1 -0
- package/package.json +10 -10
- package/dist/client-Cq5avLW5.js.map +0 -1
- package/dist/dispatch-C1VVTn5S.js.map +0 -1
- package/dist/document-model-modules-Gsh1Xr7j.js.map +0 -1
- package/dist/document-operations-BSzcF0mu.js.map +0 -1
- package/dist/global-BuSwbbY0.d.ts.map +0 -1
- package/dist/make-ph-event-functions-CdsvEl5t.js +0 -55
- package/dist/make-ph-event-functions-CdsvEl5t.js.map +0 -1
- package/dist/switchboard-3vHbIV5W.js.map +0 -1
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as makePHEventFunctions, u as getPHStore } from "./make-ph-event-functions-C1JTfEw1.js";
|
|
2
|
+
import { C as queueOperations, S as queueActions, a as useDocumentCache, d as DocumentCache, f as IDLE_OPERATIONS_ENTRY, g as DOCUMENT_CHANGE_TYPE, m as isOperationCache, n as addDocumentCacheEventHandler, r as setDocumentCache, w as uploadOperations } from "./dispatch-BmdzdTwb.js";
|
|
3
|
+
import { B as ambientRenownTokenProvider, E as setSelectedNodeId, I as DocumentModelNotFoundError, V as makeAuthMiddleware, a as setVetraPackageManager, c as addSelectedDriveIdEventHandler, f as setSelectedDriveId, h as useSelectedDriveId, j as addDrivesEventHandler, r as addVetraPackageManagerEventHandler, u as selectDrive, v as addResetSelectedNodeEventHandler, y as addSelectedNodeIdEventHandler, z as UnsupportedDocumentTypeError } from "./document-model-modules-Wjh92XAb.js";
|
|
4
|
+
import { A as extractNodeIdFromSlug, N as findDriveBySlug, O as extractDriveSlugFromPath, S as setBrowserOpenSync, c as getCurrentPathname, f as hasHostNavigation, h as openTarget, j as extractNodeSlugFromPath } from "./navigation-B4fHR-Tm.js";
|
|
4
5
|
import { i as PhDocumentFieldsFragmentDoc, n as DocumentChangesDocument, t as createClient$1 } from "./client-CXDpILj6.js";
|
|
5
|
-
import { f as addLoadingEventHandler, t as addRenownEventHandler } from "./renown-
|
|
6
|
+
import { f as addLoadingEventHandler, t as addRenownEventHandler } from "./renown-CGQYQsvH.js";
|
|
7
|
+
import { useCallback, useEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
8
|
+
import { Fragment, jsx } from "react/jsx-runtime";
|
|
6
9
|
import { logger } from "document-model";
|
|
7
10
|
import { addFolder, copyNode, generateNodesCopy, handleTargetNameCollisions, isFileNode, isFolderNode, moveNode, updateNode } from "@powerhousedao/shared/document-drive";
|
|
8
11
|
import { UnsupportedDocumentModelVersionError, actionSignerIdentity, actionSigningTarget, actions, assertAuthPreservedOnDuplicate, baseLoadFromInput, baseLoadFromInputVersioned, baseSaveToFileHandle, createCopyHeader, createPresignedHeader, createZip, deserializeSignature, documentModelDocumentType, generateId, hasDerivedDocumentId, hashDocumentStateForScope, isSignaturePolicy, normalizeDocumentModelVersion, replayDocumentVersioned, setName, setPreferredEditor, signaturePolicyOf, toTransportAction, withSignaturePolicy } from "@powerhousedao/shared/document-model";
|
|
9
12
|
import { allPass, conditional, constant, forEachObj, funnel, isDefined, isNot, isStrictEqual, isString, isTruthy, once } from "remeda";
|
|
10
|
-
import { useCallback, useEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
11
13
|
import { GraphQLClient } from "graphql-request";
|
|
12
14
|
import { gql } from "graphql-tag";
|
|
13
15
|
import { Kind, print } from "graphql";
|
|
14
16
|
import { createClient } from "graphql-ws/client";
|
|
15
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
16
17
|
//#region src/hooks/modals.ts
|
|
17
18
|
const modalEventFunctions = makePHEventFunctions("modal");
|
|
18
19
|
/** Returns the current modal */
|
|
@@ -21,8 +22,12 @@ const usePHModal = modalEventFunctions.useValue;
|
|
|
21
22
|
const setPHModal = modalEventFunctions.setValue;
|
|
22
23
|
/** Adds an event handler for the modal */
|
|
23
24
|
const addModalEventHandler = modalEventFunctions.addEventHandler;
|
|
24
|
-
/** Shows a modal */
|
|
25
|
+
/** Shows a modal; with an app-shell navigation, "settings" opens the settings page. */
|
|
25
26
|
function showPHModal(modal) {
|
|
27
|
+
if (modal.type === "settings" && hasHostNavigation()) {
|
|
28
|
+
openTarget({ settings: true });
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
26
31
|
setPHModal(modal);
|
|
27
32
|
}
|
|
28
33
|
/** Closes the current modal */
|
|
@@ -68,7 +73,7 @@ const setFullReactorClient = fullReactorClientEventFunctions.setValue;
|
|
|
68
73
|
const addFullReactorClientEventHandler = fullReactorClientEventFunctions.addEventHandler;
|
|
69
74
|
/** The client full-client actions use: the one set, else the module's. */
|
|
70
75
|
function getFullReactorClient() {
|
|
71
|
-
return
|
|
76
|
+
return getPHStore()?.fullReactorClient ?? getPHStore()?.reactorClientModule?.client;
|
|
72
77
|
}
|
|
73
78
|
const useSync = () => useReactorClientModule()?.reactorModule?.syncModule?.syncManager;
|
|
74
79
|
const useSyncList = () => {
|
|
@@ -102,8 +107,8 @@ function isDocumentTypeSupported(documentType, supportedDocuments) {
|
|
|
102
107
|
//#endregion
|
|
103
108
|
//#region src/utils/user.ts
|
|
104
109
|
function getUserPermissions() {
|
|
105
|
-
const user =
|
|
106
|
-
const allowList =
|
|
110
|
+
const user = getPHStore()?.renown?.user;
|
|
111
|
+
const allowList = getPHStore()?.allowList;
|
|
107
112
|
if (!allowList) return {
|
|
108
113
|
isAllowedToCreateDocuments: true,
|
|
109
114
|
isAllowedToEditDocuments: true
|
|
@@ -274,7 +279,7 @@ function boundary(upgrade, scope, ops) {
|
|
|
274
279
|
return ops.length;
|
|
275
280
|
}
|
|
276
281
|
async function exportFile(document, suggestedName) {
|
|
277
|
-
const reactorClient =
|
|
282
|
+
const reactorClient = getPHStore()?.reactorClient;
|
|
278
283
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
279
284
|
const operations = await fetchDocumentOperations(reactorClient, document);
|
|
280
285
|
const initialState = extractInitialState(operations["document"] ?? []);
|
|
@@ -310,7 +315,7 @@ async function loadFile(path) {
|
|
|
310
315
|
if (modulesForType.length === 0) throw new DocumentModelNotFoundError(documentType);
|
|
311
316
|
const reducers = {};
|
|
312
317
|
for (const module of modulesForType) reducers[module.version ?? 1] = module.reducer;
|
|
313
|
-
const registry =
|
|
318
|
+
const registry = getPHStore()?.reactorClientModule?.reactorModule?.documentModelRegistry;
|
|
314
319
|
let upgradeManifest;
|
|
315
320
|
if (registry) try {
|
|
316
321
|
upgradeManifest = registry.getUpgradeManifest(documentType);
|
|
@@ -460,7 +465,7 @@ async function addFileWithProgress(file, driveId, name, parentFolder, onProgress
|
|
|
460
465
|
});
|
|
461
466
|
return;
|
|
462
467
|
}
|
|
463
|
-
const discoveryService =
|
|
468
|
+
const discoveryService = getPHStore()?.packageDiscoveryService;
|
|
464
469
|
if (discoveryService && DocumentModelNotFoundError.isError(loadError)) {
|
|
465
470
|
retryAfterDiscovery(discoveryService, loadError.documentType, file, driveId, name, parentFolder, onProgress, documentTypes, resolveConflict).catch((retryError) => {
|
|
466
471
|
logger.error("Import retry after discovery failed: @error", retryError);
|
|
@@ -568,7 +573,7 @@ async function retryAfterDiscovery(discoveryService, documentType, file, driveId
|
|
|
568
573
|
async function addFolder$1(driveId, name, parentFolder) {
|
|
569
574
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
570
575
|
if (!isAllowedToCreateDocuments) throw new Error("User is not allowed to create folders");
|
|
571
|
-
const reactorClient =
|
|
576
|
+
const reactorClient = getPHStore()?.reactorClient;
|
|
572
577
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
573
578
|
await reactorClient.get(driveId);
|
|
574
579
|
const folderId = generateId();
|
|
@@ -590,7 +595,7 @@ async function deleteNode(driveId, nodeId) {
|
|
|
590
595
|
async function renameNode(driveId, nodeId, name) {
|
|
591
596
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
592
597
|
if (!isAllowedToCreateDocuments) throw new Error("User is not allowed to rename documents");
|
|
593
|
-
const reactorClient =
|
|
598
|
+
const reactorClient = getPHStore()?.reactorClient;
|
|
594
599
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
595
600
|
if ((await reactorClient.execute(nodeId, "main", [setName({ name })])).header.name !== name) throw new Error("There was an error renaming the node");
|
|
596
601
|
const node = (await reactorClient.execute(driveId, "main", [updateNode({
|
|
@@ -603,7 +608,7 @@ async function renameNode(driveId, nodeId, name) {
|
|
|
603
608
|
async function renameDriveNode(driveId, nodeId, name) {
|
|
604
609
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
605
610
|
if (!isAllowedToCreateDocuments) throw new Error("User is not allowed to rename documents");
|
|
606
|
-
const reactorClient =
|
|
611
|
+
const reactorClient = getPHStore()?.reactorClient;
|
|
607
612
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
608
613
|
if ((await reactorClient.execute(nodeId, "main", [setName({ name })])).header.name !== name) throw new Error("There was an error renaming the node");
|
|
609
614
|
await reactorClient.execute(driveId, "main", [updateNode({
|
|
@@ -615,7 +620,7 @@ async function renameDriveNode(driveId, nodeId, name) {
|
|
|
615
620
|
async function setPreferredEditorOnNode(nodeId, preferredEditor) {
|
|
616
621
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
617
622
|
if (!isAllowedToCreateDocuments) throw new Error("User is not allowed to modify documents");
|
|
618
|
-
const reactorClient =
|
|
623
|
+
const reactorClient = getPHStore()?.reactorClient;
|
|
619
624
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
620
625
|
return reactorClient.execute(nodeId, "main", [setPreferredEditor(preferredEditor)]);
|
|
621
626
|
}
|
|
@@ -624,7 +629,7 @@ async function moveNodeById(args) {
|
|
|
624
629
|
if (!driveId || !srcId) return;
|
|
625
630
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
626
631
|
if (!isAllowedToCreateDocuments) throw new Error("User is not allowed to move documents");
|
|
627
|
-
const reactorClient =
|
|
632
|
+
const reactorClient = getPHStore()?.reactorClient;
|
|
628
633
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
629
634
|
const targetParentFolder = conditional(targetId, [isNot(isDefined), constant(void 0)], [isStrictEqual(driveId), constant(void 0)], constant(targetId));
|
|
630
635
|
if (isStrictEqual(targetParentFolder, srcId)) return;
|
|
@@ -636,7 +641,7 @@ async function moveNodeById(args) {
|
|
|
636
641
|
async function moveNode$1(driveId, src, target) {
|
|
637
642
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
638
643
|
if (!isAllowedToCreateDocuments) throw new Error("User is not allowed to move documents");
|
|
639
|
-
const reactorClient =
|
|
644
|
+
const reactorClient = getPHStore()?.reactorClient;
|
|
640
645
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
641
646
|
return await reactorClient.execute(driveId, "main", [moveNode({
|
|
642
647
|
srcFolder: src.id,
|
|
@@ -654,7 +659,7 @@ async function _duplicateDocument(reactor, document, newId = generateId(), drive
|
|
|
654
659
|
const reducers = {};
|
|
655
660
|
for (const m of modulesForType) reducers[m.version ?? 1] = m.reducer;
|
|
656
661
|
if (Object.keys(reducers).length === 0) throw new Error(`Document model module not found for type: ${documentType}`);
|
|
657
|
-
const registry =
|
|
662
|
+
const registry = getPHStore()?.reactorClientModule?.reactorModule?.documentModelRegistry;
|
|
658
663
|
let upgradeManifest;
|
|
659
664
|
if (registry) try {
|
|
660
665
|
upgradeManifest = registry.getUpgradeManifest(documentType);
|
|
@@ -2508,7 +2513,7 @@ function isActionSigned(action) {
|
|
|
2508
2513
|
/** Resolves the signer of the logged-in user, if there is one. */
|
|
2509
2514
|
function resolveAmbientSigner() {
|
|
2510
2515
|
if (typeof window === "undefined") return;
|
|
2511
|
-
const renown =
|
|
2516
|
+
const renown = getPHStore()?.renown;
|
|
2512
2517
|
return renown?.user ? renown.signer : void 0;
|
|
2513
2518
|
}
|
|
2514
2519
|
/**
|
|
@@ -2946,6 +2951,47 @@ function hideRevisionHistory() {
|
|
|
2946
2951
|
setRevisionHistoryVisible(false);
|
|
2947
2952
|
}
|
|
2948
2953
|
//#endregion
|
|
2954
|
+
//#region src/hooks/sync-selection.ts
|
|
2955
|
+
/** Applies a path's selection without writing the URL; idempotent.
|
|
2956
|
+
* @deprecated Set the store's `navigation`; its route loaders write the selection. */
|
|
2957
|
+
function syncSelectionFromPath(pathname = getCurrentPathname()) {
|
|
2958
|
+
const drives = getPHStore()?.drives;
|
|
2959
|
+
if (!drives) return;
|
|
2960
|
+
const driveSlug = extractDriveSlugFromPath(pathname);
|
|
2961
|
+
const selectedDriveId = getPHStore()?.selectedDriveId;
|
|
2962
|
+
if (!driveSlug) {
|
|
2963
|
+
if (selectedDriveId) selectDrive(void 0);
|
|
2964
|
+
return;
|
|
2965
|
+
}
|
|
2966
|
+
const drive = findDriveBySlug(drives, driveSlug);
|
|
2967
|
+
const selectedIsUnlisted = !!selectedDriveId && !drives.some((d) => d.header.id === selectedDriveId);
|
|
2968
|
+
if (drive) {
|
|
2969
|
+
if (drive.header.id !== selectedDriveId) setSelectedDriveId(drive.header.id);
|
|
2970
|
+
} else if (!selectedIsUnlisted) {
|
|
2971
|
+
selectDrive(driveSlug);
|
|
2972
|
+
return;
|
|
2973
|
+
}
|
|
2974
|
+
const nodeId = extractNodeIdFromSlug(extractNodeSlugFromPath(pathname));
|
|
2975
|
+
if (nodeId !== getPHStore()?.selectedNodeId) setSelectedNodeId(nodeId);
|
|
2976
|
+
}
|
|
2977
|
+
setBrowserOpenSync(() => syncSelectionFromPath());
|
|
2978
|
+
function syncOnPopState() {
|
|
2979
|
+
if (hasHostNavigation()) return;
|
|
2980
|
+
syncSelectionFromPath(window.location.pathname);
|
|
2981
|
+
}
|
|
2982
|
+
let popStateHandlerAdded = false;
|
|
2983
|
+
/** Syncs the selection on back/forward when no host navigation is set.
|
|
2984
|
+
* @deprecated Set the store's `navigation`; its router handles back/forward. */
|
|
2985
|
+
function addSyncSelectionOnPopStateEventHandler() {
|
|
2986
|
+
if (popStateHandlerAdded) return;
|
|
2987
|
+
popStateHandlerAdded = true;
|
|
2988
|
+
window.addEventListener("popstate", syncOnPopState);
|
|
2989
|
+
}
|
|
2990
|
+
/** @deprecated Set the store's `navigation`; its router handles back/forward. */
|
|
2991
|
+
const addSetSelectedDriveOnPopStateEventHandler = addSyncSelectionOnPopStateEventHandler;
|
|
2992
|
+
/** @deprecated Set the store's `navigation`; its router handles back/forward. */
|
|
2993
|
+
const addSetSelectedNodeOnPopStateEventHandler = addSyncSelectionOnPopStateEventHandler;
|
|
2994
|
+
//#endregion
|
|
2949
2995
|
//#region src/hooks/selected-timeline-item.ts
|
|
2950
2996
|
const selectedTimelineItemEventFunctions = makePHEventFunctions("selectedTimelineItem");
|
|
2951
2997
|
/** Returns the selected timeline item */
|
|
@@ -2979,12 +3025,11 @@ const commonGlobalEventHandlerFunctions = {
|
|
|
2979
3025
|
drives: addDrivesEventHandler,
|
|
2980
3026
|
selectedDriveId: () => {
|
|
2981
3027
|
addSelectedDriveIdEventHandler();
|
|
2982
|
-
|
|
3028
|
+
addSyncSelectionOnPopStateEventHandler();
|
|
2983
3029
|
addResetSelectedNodeEventHandler();
|
|
2984
3030
|
},
|
|
2985
3031
|
selectedNodeId: () => {
|
|
2986
3032
|
addSelectedNodeIdEventHandler();
|
|
2987
|
-
addSetSelectedNodeOnPopStateEventHandler();
|
|
2988
3033
|
},
|
|
2989
3034
|
documentCache: addDocumentCacheEventHandler,
|
|
2990
3035
|
reactorGraphQLClient: addGraphQLReactorClientEventHandler,
|
|
@@ -3055,7 +3100,8 @@ const phGlobalEventHandlerRegisterFunctions = {
|
|
|
3055
3100
|
isSentryTracingEnabled: addIsSentryTracingEnabledEventHandler,
|
|
3056
3101
|
isExternalProcessorsEnabled: addIsExternalProcessorsEnabledEventHandler,
|
|
3057
3102
|
isExternalPackagesEnabled: addIsExternalPackagesEnabledEventHandler,
|
|
3058
|
-
toast: addToastEventHandler
|
|
3103
|
+
toast: addToastEventHandler,
|
|
3104
|
+
navigation: () => {}
|
|
3059
3105
|
};
|
|
3060
3106
|
function addPHEventHandlers() {
|
|
3061
3107
|
callEventHandlerRegisterFunctions(phGlobalEventHandlerRegisterFunctions);
|
|
@@ -3161,7 +3207,8 @@ function useScopeOperations(documentId, scope, options = {}) {
|
|
|
3161
3207
|
const documentCache = useDocumentCache();
|
|
3162
3208
|
const cache = documentCache && isOperationCache(documentCache) ? documentCache : void 0;
|
|
3163
3209
|
const activeId = enabled && cache && documentId ? documentId : void 0;
|
|
3164
|
-
const
|
|
3210
|
+
const getEntry = () => activeId && cache ? cache.getOperationsState(activeId, scope) : IDLE_OPERATIONS_ENTRY;
|
|
3211
|
+
const entry = useSyncExternalStore((onChange) => activeId && cache ? cache.subscribeOperations(activeId, onChange) : () => {}, getEntry, getEntry);
|
|
3165
3212
|
useEffect(() => {
|
|
3166
3213
|
if (activeId && cache && entry.status === "idle") cache.loadOperations(activeId, scope, limit);
|
|
3167
3214
|
}, [
|
|
@@ -3236,6 +3283,6 @@ function useDocumentOperations(documentId, scope, options = {}) {
|
|
|
3236
3283
|
return legacy ? legacyResult : primary;
|
|
3237
3284
|
}
|
|
3238
3285
|
//#endregion
|
|
3239
|
-
export {
|
|
3286
|
+
export { addIsAddDriveEnabledEventHandler as $, useSync as $i, useIsDeleteLocalDrivesEnabled as $n, subgraphUrlFromGraphqlUrl as $r, setIsAnalyticsDatabaseWorkerEnabled as $t, setGraphQLReactorClient as A, extractInitialState as Ai, setSwitchboardUrl as An, addIsDragAndDropEnabledEventHandler as Ar, addSentryEnvEventHandler as At, setAttachmentService as B, isDocumentTypeSupported as Bi, useDrivesPreserveStrategy as Bn, useAllowedDocumentTypes as Br, setAnalyticsDatabaseName as Bt, setRevisionHistoryVisible as C, DRIVE_DOCUMENT_TYPES as Ci, setRenownUrl as Cn, useSentryRelease as Cr, addRenownAdaptersEventHandler as Ct, setPackageDiscoveryService as D, copyNode$1 as Di, setSentryEnv as Dn, useVersionCheckInterval as Dr, addRequiresHardRefreshEventHandler as Dt, addPackageDiscoveryServiceEventHandler as E, addFolder$1 as Ei, setSentryDsn as En, useVersion as Er, addRenownUrlEventHandler as Et, useDropTarget as F, renameDriveNode as Fi, useAnalyticsDatabaseName as Fn, phDocumentEditorConfigHooks as Fr, addVersionEventHandler as Ft, addCliVersionEventHandler as G, setFullReactorClient as Gi, useIsAddDriveEnabled as Gn, isGraphQLReactorClient as Gr, setDrivesPreserveStrategy as Gt, addAllowListEventHandler as H, addReactorClientEventHandler as Hi, useFileUploadOperationsChunkSize as Hn, useIsExternalControlsEnabled as Hr, setCliVersion as Ht, addFeaturesEventHandler as I, renameNode as Ii, useBasePath as In, phDocumentEditorConfigSetters as Ir, addWarnOutdatedAppEventHandler as It, addDrivesPreserveStrategyEventHandler as J, useDatabase as Ji, useIsAnalyticsDatabaseWorkerEnabled as Jn, makeAuthConnectionParams as Jr, setGaTrackingId as Jt, addDefaultDrivesUrlEventHandler as K, setReactorClient as Ki, useIsAddLocalDrivesEnabled as Kn, viewFilterInputFromViewFilter as Kr, setEnabledEditors as Kt, setFeatures as L, setPreferredEditorOnNode as Li, useCliVersion as Ln, setAllowedDocumentTypes as Lr, phGlobalConfigHooks as Lt, addDraggingNodeEventHandler as M, getDocumentExtension as Mi, setVersionCheckInterval as Mn, isExternalControlsEnabledEventFunctions as Mr, addStudioModeEventHandler as Mt, useDragNode as N, loadFile as Ni, setWarnOutdatedApp as Nn, phAppConfigHooks as Nr, addSwitchboardUrlEventHandler as Nt, usePackageDiscoveryService as O, deleteNode as Oi, setSentryRelease as On, useWarnOutdatedApp as Or, addRouterBasenameEventHandler as Ot, useDropNode as P, moveNode$1 as Pi, useAllowList as Pn, phAppConfigSetters as Pr, addVersionCheckIntervalEventHandler as Pt, addIsAddCloudDrivesEnabledEventHandler as Q, useReactorClientModule as Qi, useIsDeleteCloudDrivesEnabled as Qn, describeGraphQLDocument as Qr, setIsAddPublicDrivesEnabled as Qt, useFeatures as R, upgradeDocument as Ri, useDefaultDrivesUrl as Rn, setIsDragAndDropEnabled as Rr, phGlobalConfigSetters as Rt, hideRevisionHistory as S, DEFAULT_DRIVE_EDITOR_ID as Si, setRenownNetworkId as Sn, useSentryEnv as Sr, addLogLevelEventHandler as St, useRevisionHistoryVisible as T, addFileWithProgress as Ti, setRouterBasename as Tn, useSwitchboardUrl as Tr, addRenownNetworkIdEventHandler as Tt, addAnalyticsDatabaseNameEventHandler as U, addReactorClientModuleEventHandler as Ui, useGaTrackingId as Un, GraphQLReactorClient as Ur, setDefaultDrivesUrl as Ut, useAttachmentService as V, addFullReactorClientEventHandler as Vi, useEnabledEditors as Vn, useIsDragAndDropEnabled as Vr, setBasePath as Vt, addBasePathEventHandler as W, getFullReactorClient as Wi, useIsAddCloudDrivesEnabled as Wn, findIsServableOverGraphQL as Wr, setDisabledEditors as Wt, addFileUploadOperationsChunkSizeEventHandler as X, usePGlite as Xi, useIsAnalyticsExternalProcessorsEnabled as Xn, subscriptionsUrlFromGraphqlUrl as Xr, setIsAddDriveEnabled as Xt, addEnabledEditorsEventHandler as Y, useModelRegistry as Yi, useIsAnalyticsEnabled as Yn, startDocumentChangesSubscription as Yr, setIsAddCloudDrivesEnabled as Yt, addGaTrackingIdEventHandler as Z, useReactorClient as Zi, useIsCloudDrivesEnabled as Zn, SubgraphSdkRegistry as Zr, setIsAddLocalDrivesEnabled as Zt, addSetSelectedDriveOnPopStateEventHandler as _, convertRemoteOperations as _i, setIsSentryTracingEnabled as _n, useRenownNetworkId as _r, addIsLocalDrivesEnabledEventHandler as _t, addPHEventHandlers as a, showDeleteNodeModal as aa, stampAction as ai, setIsDeletePublicDrivesEnabled as an, useIsEditorReadModeEnabled as ar, addIsCloudDrivesEnabledEventHandler as at, syncSelectionFromPath as b, screamingSnakeToCamel as bi, setRenownAdapters as bn, useRouterBasename as br, addIsSentryTracingEnabledEventHandler as bt, addToastEventHandler as c, BatchJobFailedError as ci, setIsDriveAnalyticsEnabled as cn, useIsExternalRelationalProcessorsEnabled as cr, addIsDeletePublicDrivesEnabledEventHandler as ct, addSelectedTimelineRevisionEventHandler as d, isoStringFromDateTime as di, setIsExternalPackagesEnabled as dn, useIsRelationalProcessorsEnabled as dr, addIsDriveAnalyticsEnabledEventHandler as dt, useSyncList as ea, StaticPackageManager as ei, setIsAnalyticsEnabled as en, useIsDeletePublicDrivesEnabled as er, addIsAddLocalDrivesEnabledEventHandler as et, setSelectedTimelineRevision as f, phDocumentFromGetDocument as fi, setIsExternalProcessorsEnabled as fn, useIsSentryTracingEnabled as fr, addIsEditorDebugModeEnabledEventHandler as ft, useSelectedTimelineItem as g, buildPulledDocument as gi, setIsRelationalProcessorsEnabled as gn, useRenownChainId as gr, addIsExternalRelationalProcessorsEnabledEventHandler as gt, setSelectedTimelineItem as h, ConflictError as hi, setIsPublicDrivesEnabled as hn, useRenownAdapters as hr, addIsExternalProcessorsEnabledEventHandler as ht, useSwitchboardClient as i, showCreateDocumentModal as ia, signStampedAction as ii, setIsDeleteLocalDrivesEnabled as in, useIsEditorDebugModeEnabled as ir, addIsAnalyticsExternalProcessorsEnabledEventHandler as it, useGraphQLReactorClient as j, fetchDocumentOperations as ji, setVersion as jn, addIsExternalControlsEnabledEventHandler as jr, addSentryReleaseEventHandler as jt, addGraphQLReactorClientEventHandler as k, exportFile as ki, setStudioMode as kn, addAllowedDocumentTypesEventHandler as kr, addSentryDsnEventHandler as kt, setPHToast as l, GraphQLOperationNotSupportedError as li, setIsEditorDebugModeEnabled as ln, useIsLocalDrivesEnabled as lr, addIsDiffAnalyticsEnabledEventHandler as lt, addSelectedTimelineItemEventHandler as m, revisionMapFromRevisionsList as mi, setIsLocalDrivesEnabled as mn, useLogLevel as mr, addIsExternalPackagesEnabledEventHandler as mt, GraphQLReactorProvider as n, closePHModal as na, resolveDocumentModelModule as ni, setIsCloudDrivesEnabled as nn, useIsDocumentModelSelectionSettingsEnabled as nr, addIsAnalyticsDatabaseWorkerEnabledEventHandler as nt, callEventHandlerRegisterFunctions as o, showPHModal as oa, MutateDocumentWithOperationsDocument as oi, setIsDiffAnalyticsEnabled as on, useIsExternalPackagesEnabled as or, addIsDeleteCloudDrivesEnabledEventHandler as ot, useSelectedTimelineRevision as p, phDocumentFromMutation as pi, setIsExternalRelationalProcessorsEnabled as pn, useLocalDrivesEnabled as pr, addIsEditorReadModeEnabledEventHandler as pt, addDisabledEditorsEventHandler as q, setReactorClientModule as qi, useIsAddPublicDrivesEnabled as qn, isAuthRefusalClose as qr, setFileUploadOperationsChunkSize as qt, ensurePHEventHandlers as r, setPHModal as ra, prepareSignedActions as ri, setIsDeleteCloudDrivesEnabled as rn, useIsDriveAnalyticsEnabled as rr, addIsAnalyticsEnabledEventHandler as rt, commonGlobalEventHandlerFunctions as s, usePHModal as sa, ReactorOperationFieldsFragmentDoc as si, setIsDocumentModelSelectionSettingsEnabled as sn, useIsExternalProcessorsEnabled as sr, addIsDeleteLocalDrivesEnabledEventHandler as st, useDocumentOperations as t, addModalEventHandler as ta, packageFromDocumentModels as ti, setIsAnalyticsExternalProcessorsEnabled as tn, useIsDiffAnalyticsEnabled as tr, addIsAddPublicDrivesEnabledEventHandler as tt, usePHToast as u, GraphQLWrongBackendError as ui, setIsEditorReadModeEnabled as un, useIsPublicDrivesEnabled as ur, addIsDocumentModelSelectionSettingsEnabledEventHandler as ut, addSetSelectedNodeOnPopStateEventHandler as v, extractRevisionMap as vi, setLocalDrivesEnabled as vn, useRenownUrl as vr, addIsPublicDrivesEnabledEventHandler as vt, showRevisionHistory as w, addDocument as wi, setRequiresHardRefresh as wn, useStudioMode as wr, addRenownChainIdEventHandler as wt, addRevisionHistoryVisibleEventHandler as x, COMMON_PACKAGE_ID as xi, setRenownChainId as xn, useSentryDsn as xr, addLocalDrivesEnabledEventHandler as xt, addSyncSelectionOnPopStateEventHandler as y, hasRevisionConflict as yi, setLogLevel as yn, useRequiresHardRefresh as yr, addIsRelationalProcessorsEnabledEventHandler as yt, addAttachmentServiceEventHandler as z, getUserPermissions as zi, useDisabledEditors as zn, setIsExternalControlsEnabled as zr, setAllowList as zt };
|
|
3240
3287
|
|
|
3241
|
-
//# sourceMappingURL=document-operations
|
|
3288
|
+
//# sourceMappingURL=document-operations--Z0AOyyy.js.map
|