@powerhousedao/reactor-browser 6.2.3-dev.77 → 6.2.3-dev.78
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-D-CKdGUb.d.ts → attachment-service-C_8_poEv.d.ts} +80 -10
- package/dist/attachment-service-C_8_poEv.d.ts.map +1 -0
- package/dist/{client-Ca_CA8VC.d.ts → client-Cx43uuSO.d.ts} +2 -2
- package/dist/client-Cx43uuSO.d.ts.map +1 -0
- package/dist/{client-CI-3xGMZ.js → client-D_cBN8L-.js} +90 -2
- package/dist/client-D_cBN8L-.js.map +1 -0
- package/dist/{dispatch-qujH7vLW.js → dispatch-DLD1E-9L.js} +68 -2
- package/dist/dispatch-DLD1E-9L.js.map +1 -0
- package/dist/{document-by-id-D1wsYWhq.js → document-by-id-BGTnMWiG.js} +2 -2
- package/dist/{document-by-id-D1wsYWhq.js.map → document-by-id-BGTnMWiG.js.map} +1 -1
- package/dist/{document-model-modules-DmLQhKvh.js → document-model-modules-D_kT09sv.js} +254 -9
- package/dist/document-model-modules-D_kT09sv.js.map +1 -0
- package/dist/{document-operations-C4-irgHD.js → document-operations-BdCl99y6.js} +276 -37
- package/dist/document-operations-BdCl99y6.js.map +1 -0
- package/dist/{global-CgzlPBc3.d.ts → global-C4kaLEPb.d.ts} +140 -54
- package/dist/global-C4kaLEPb.d.ts.map +1 -0
- package/dist/{index-CrVfRJO1.d.ts → index-CROGY3XV.d.ts} +2 -2
- package/dist/{index-CrVfRJO1.d.ts.map → index-CROGY3XV.d.ts.map} +1 -1
- package/dist/index.d.ts +50 -36
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +205 -43
- package/dist/index.js.map +1 -1
- package/dist/src/ai/index.js +2 -2
- package/dist/src/analytics/index.js +1 -1
- package/dist/src/graphql/client.d.ts +2 -2
- package/dist/src/graphql/client.js +1 -1
- package/dist/src/graphql-client/entry.d.ts +4 -4
- package/dist/src/graphql-client/entry.js +4 -4
- package/dist/src/renown/index.d.ts +1 -1
- package/dist/{switchboard-0yDJ-f9X.js → switchboard-CqUq5pIZ.js} +10 -48
- package/dist/switchboard-CqUq5pIZ.js.map +1 -0
- package/dist/{types-DOY-eHEk.d.ts → types-Vb8q55oM.d.ts} +69 -2
- package/dist/types-Vb8q55oM.d.ts.map +1 -0
- package/package.json +9 -9
- package/dist/attachment-service-D-CKdGUb.d.ts.map +0 -1
- package/dist/client-CI-3xGMZ.js.map +0 -1
- package/dist/client-Ca_CA8VC.d.ts.map +0 -1
- package/dist/dispatch-qujH7vLW.js.map +0 -1
- package/dist/document-model-modules-DmLQhKvh.js.map +0 -1
- package/dist/document-operations-C4-irgHD.js.map +0 -1
- package/dist/global-CgzlPBc3.d.ts.map +0 -1
- package/dist/switchboard-0yDJ-f9X.js.map +0 -1
- package/dist/types-DOY-eHEk.d.ts.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as getPHStore, f as usePHStore, t as makePHEventFunctions } from "./make-ph-event-functions-B5GU5xcR.js";
|
|
2
|
-
import { D as
|
|
3
|
-
import { A as addDrivesEventHandler, L as ambientRenownTokenProvider, R as
|
|
2
|
+
import { D as queueOperations, E as queueActions, N as UnsupportedDocumentTypeError, O as uploadOperations, b as DOCUMENT_CHANGE_TYPE, f as DocumentCache, h as IDLE_OPERATIONS_ENTRY, i as setDocumentCache, k as DocumentModelNotFoundError, o as useDocumentCache, r as addDocumentCacheEventHandler, v as isOperationCache } from "./dispatch-DLD1E-9L.js";
|
|
3
|
+
import { $ as makeAuthMiddleware, A as addDrivesEventHandler, B as invalidateDriveNodes, H as markLocalDriveWrite, L as addDriveNodesEventHandler, Q as ambientRenownTokenProvider, R as dropDriveNode, X as listAllDriveNodes, a as setVetraPackageManager, c as addSelectedDriveIdEventHandler, f as setSelectedDriveId, h as useSelectedDriveId, r as addVetraPackageManagerEventHandler, u as selectDrive, v as addResetSelectedNodeEventHandler, w as setSelectedNodeId, y as addSelectedNodeIdEventHandler, z as getDriveNode } from "./document-model-modules-D_kT09sv.js";
|
|
4
4
|
import { A as extractNodeIdFromSlug, N as findDriveBySlug, O as extractDriveSlugFromPath, S as setBrowserOpenSync, c as getCurrentPathname, d as hasHostNavigation, h as openTargetWith, j as extractNodeSlugFromPath, l as getPHNavigation, m as openTarget, v as recordToSearch, w as targetPathname, x as searchToRecord } from "./navigation-BqphkrOB.js";
|
|
5
|
-
import { a as PhDocumentFieldsFragmentDoc, i as JobChangesDocument, n as DocumentChangesDocument, t as createClient$1 } from "./client-
|
|
5
|
+
import { a as PhDocumentFieldsFragmentDoc, i as JobChangesDocument, n as DocumentChangesDocument, t as createClient$1 } from "./client-D_cBN8L-.js";
|
|
6
6
|
import { f as addLoadingEventHandler, t as addRenownEventHandler } from "./renown-BxkZYzbQ.js";
|
|
7
7
|
import { useCallback, useEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
8
8
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
@@ -10,9 +10,9 @@ import { logger } from "document-model";
|
|
|
10
10
|
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";
|
|
11
11
|
import { addFolder, copyNode, generateNodesCopy, handleTargetNameCollisions, isFileNode, isFolderNode, moveNode, updateNode } from "@powerhousedao/shared/document-drive";
|
|
12
12
|
import { allPass, conditional, constant, forEachObj, funnel, isDefined, isNot, isStrictEqual, isString, isTruthy, once } from "remeda";
|
|
13
|
-
import { GraphQLClient } from "graphql-request";
|
|
14
13
|
import { gql } from "graphql-tag";
|
|
15
14
|
import { Kind, print } from "graphql";
|
|
15
|
+
import { GraphQLClient } from "graphql-request";
|
|
16
16
|
import { createClient } from "graphql-ws/client";
|
|
17
17
|
//#region src/hooks/url-state.ts
|
|
18
18
|
/** The nearest store's navigation, else the bound store's, else the browser's.
|
|
@@ -283,16 +283,26 @@ function getUserPermissions() {
|
|
|
283
283
|
//#endregion
|
|
284
284
|
//#region src/actions/document.ts
|
|
285
285
|
const NON_DOMAIN_SCOPES = /* @__PURE__ */ new Set(["auth", "document"]);
|
|
286
|
+
/** Puts a node this tab just wrote into its drive's cache, so hooks show it
|
|
287
|
+
* before the drive change that follows the write is processed. Best effort:
|
|
288
|
+
* a client without a node reader is left to that change. */
|
|
289
|
+
async function rememberDriveNode(driveId, nodeId) {
|
|
290
|
+
try {
|
|
291
|
+
await getDriveNode(driveId, nodeId, { refresh: true });
|
|
292
|
+
} catch (error) {
|
|
293
|
+
logger.verbose("Caching the written node @id failed: @error", nodeId, error);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
286
296
|
/** An unreadable drive cannot be shown to hold no duplicate, so reads throw. */
|
|
287
297
|
async function isDocumentInLocation(reactorClient, document, driveId, parentFolder) {
|
|
288
|
-
const
|
|
289
|
-
const nodeById =
|
|
290
|
-
if (nodeById
|
|
298
|
+
const siblings = await listAllDriveNodes(reactorClient.drives, driveId, { parentFolder: parentFolder ?? null });
|
|
299
|
+
const nodeById = siblings.find((node) => node.id === document.header.id);
|
|
300
|
+
if (nodeById) return {
|
|
291
301
|
isDuplicate: true,
|
|
292
302
|
duplicateType: "id",
|
|
293
303
|
nodeId: nodeById.id
|
|
294
304
|
};
|
|
295
|
-
const nodeByNameAndType =
|
|
305
|
+
const nodeByNameAndType = siblings.find((node) => isFileNode(node) && node.name === document.header.name && node.documentType === document.header.documentType);
|
|
296
306
|
if (nodeByNameAndType) return {
|
|
297
307
|
isDuplicate: true,
|
|
298
308
|
duplicateType: "name",
|
|
@@ -506,6 +516,7 @@ async function addDocument(driveId, name, documentType, parentFolder, document,
|
|
|
506
516
|
...newDocument.header.meta,
|
|
507
517
|
preferredEditor
|
|
508
518
|
};
|
|
519
|
+
markLocalDriveWrite(driveId);
|
|
509
520
|
let newDoc;
|
|
510
521
|
try {
|
|
511
522
|
newDoc = await (await reactorClient.write.drives.addFile(driveId, newDocument, parentFolder)).document();
|
|
@@ -513,6 +524,8 @@ async function addDocument(driveId, name, documentType, parentFolder, document,
|
|
|
513
524
|
logger.error("Error adding document: @error", e);
|
|
514
525
|
throw new Error("There was an error adding document", { cause: e });
|
|
515
526
|
}
|
|
527
|
+
await rememberDriveNode(driveId, newDoc.header.id);
|
|
528
|
+
await getDriveNode(driveId, newDoc.header.id, { refresh: true }).catch(() => void 0);
|
|
516
529
|
return {
|
|
517
530
|
id: newDoc.header.id,
|
|
518
531
|
name: newDoc.header.name,
|
|
@@ -673,9 +686,11 @@ async function addFileWithProgress(file, driveId, name, parentFolder, onProgress
|
|
|
673
686
|
stage: "initializing",
|
|
674
687
|
progress: 10
|
|
675
688
|
});
|
|
689
|
+
markLocalDriveWrite(driveId);
|
|
676
690
|
const created = await createImportedDocument(reactor.write, document, driveId, name, parentFolder);
|
|
677
691
|
const documentId = created.documentId;
|
|
678
692
|
const fileNode = created.fileNode;
|
|
693
|
+
await rememberDriveNode(driveId, documentId);
|
|
679
694
|
onProgress?.({
|
|
680
695
|
stage: "initializing",
|
|
681
696
|
progress: 20
|
|
@@ -739,11 +754,13 @@ async function addFolder$1(driveId, name, parentFolder) {
|
|
|
739
754
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
740
755
|
await reactorClient.read.get(driveId);
|
|
741
756
|
const folderId = generateId();
|
|
742
|
-
|
|
757
|
+
markLocalDriveWrite(driveId);
|
|
758
|
+
await (await reactorClient.write.execute(driveId, "main", [addFolder({
|
|
743
759
|
id: folderId,
|
|
744
760
|
name,
|
|
745
761
|
parentFolder
|
|
746
|
-
})])).
|
|
762
|
+
})])).readable;
|
|
763
|
+
const node = await getDriveNode(driveId, folderId, { refresh: true });
|
|
747
764
|
if (!node || !isFolderNode(node)) throw new Error("There was an error adding folder");
|
|
748
765
|
return node;
|
|
749
766
|
}
|
|
@@ -752,7 +769,9 @@ async function deleteNode(driveId, nodeId) {
|
|
|
752
769
|
if (!isAllowedToCreateDocuments) throw new Error("User is not allowed to delete documents");
|
|
753
770
|
const reactorClient = getFullReactorClient();
|
|
754
771
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
772
|
+
markLocalDriveWrite(driveId);
|
|
755
773
|
await (await reactorClient.write.drives.removeNode(driveId, nodeId)).readable;
|
|
774
|
+
dropDriveNode(driveId, nodeId);
|
|
756
775
|
}
|
|
757
776
|
async function renameNode(driveId, nodeId, name) {
|
|
758
777
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
@@ -760,10 +779,12 @@ async function renameNode(driveId, nodeId, name) {
|
|
|
760
779
|
const reactorClient = getPHStore()?.reactorClient;
|
|
761
780
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
762
781
|
if ((await (await reactorClient.write.execute(nodeId, "main", [setName({ name })])).document()).header.name !== name) throw new Error("There was an error renaming the node");
|
|
763
|
-
|
|
782
|
+
markLocalDriveWrite(driveId);
|
|
783
|
+
await (await reactorClient.write.execute(driveId, "main", [updateNode({
|
|
764
784
|
id: nodeId,
|
|
765
785
|
name
|
|
766
|
-
})])).
|
|
786
|
+
})])).readable;
|
|
787
|
+
const node = await getDriveNode(driveId, nodeId, { refresh: true });
|
|
767
788
|
if (!node) throw new Error("There was an error renaming node in the drive");
|
|
768
789
|
return node;
|
|
769
790
|
}
|
|
@@ -773,10 +794,12 @@ async function renameDriveNode(driveId, nodeId, name) {
|
|
|
773
794
|
const reactorClient = getPHStore()?.reactorClient;
|
|
774
795
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
775
796
|
if ((await (await reactorClient.write.execute(nodeId, "main", [setName({ name })])).document()).header.name !== name) throw new Error("There was an error renaming the node");
|
|
776
|
-
|
|
797
|
+
markLocalDriveWrite(driveId);
|
|
798
|
+
await (await reactorClient.write.execute(driveId, "main", [updateNode({
|
|
777
799
|
id: nodeId,
|
|
778
800
|
name
|
|
779
|
-
})])).
|
|
801
|
+
})])).readable;
|
|
802
|
+
return getDriveNode(driveId, nodeId, { refresh: true });
|
|
780
803
|
}
|
|
781
804
|
async function setPreferredEditorOnNode(nodeId, preferredEditor) {
|
|
782
805
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
@@ -794,20 +817,26 @@ async function moveNodeById(args) {
|
|
|
794
817
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
795
818
|
const targetParentFolder = conditional(targetId, [isNot(isDefined), constant(void 0)], [isStrictEqual(driveId), constant(void 0)], constant(targetId));
|
|
796
819
|
if (isStrictEqual(targetParentFolder, srcId)) return;
|
|
797
|
-
|
|
820
|
+
markLocalDriveWrite(driveId);
|
|
821
|
+
const moved = await (await reactorClient.write.execute(driveId, "main", [moveNode({
|
|
798
822
|
srcFolder: srcId,
|
|
799
823
|
targetParentFolder
|
|
800
824
|
})])).document();
|
|
825
|
+
await rememberDriveNode(driveId, srcId);
|
|
826
|
+
return moved;
|
|
801
827
|
}
|
|
802
828
|
async function moveNode$1(driveId, src, target) {
|
|
803
829
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
804
830
|
if (!isAllowedToCreateDocuments) throw new Error("User is not allowed to move documents");
|
|
805
831
|
const reactorClient = getPHStore()?.reactorClient;
|
|
806
832
|
if (!reactorClient) throw new Error("ReactorClient not initialized");
|
|
807
|
-
|
|
833
|
+
markLocalDriveWrite(driveId);
|
|
834
|
+
const moved = await (await reactorClient.write.execute(driveId, "main", [moveNode({
|
|
808
835
|
srcFolder: src.id,
|
|
809
836
|
targetParentFolder: target?.id
|
|
810
837
|
})])).document();
|
|
838
|
+
await rememberDriveNode(driveId, src.id);
|
|
839
|
+
return moved;
|
|
811
840
|
}
|
|
812
841
|
/**
|
|
813
842
|
* Duplicates a document under a new id using version-aware replay.
|
|
@@ -847,17 +876,18 @@ async function copyNode$1(driveId, src, target) {
|
|
|
847
876
|
const { isAllowedToCreateDocuments } = getUserPermissions();
|
|
848
877
|
if (!isAllowedToCreateDocuments) throw new Error("User is not allowed to copy documents");
|
|
849
878
|
const drive = await reactor.read.get(driveId);
|
|
879
|
+
const driveNodes = await listAllDriveNodes(reactor.read.drives, driveId);
|
|
850
880
|
const copyNodesInput = generateNodesCopy({
|
|
851
881
|
srcId: src.id,
|
|
852
882
|
targetParentFolder: target?.id,
|
|
853
883
|
targetName: src.name
|
|
854
|
-
}, () => generateId(),
|
|
884
|
+
}, () => generateId(), driveNodes);
|
|
855
885
|
const resolvedNamesMap = /* @__PURE__ */ new Map();
|
|
856
886
|
for (const copyNodeInput of copyNodesInput) {
|
|
857
|
-
const node =
|
|
887
|
+
const node = driveNodes.find((n) => n.id === copyNodeInput.srcId);
|
|
858
888
|
if (node) {
|
|
859
889
|
const resolvedName = handleTargetNameCollisions({
|
|
860
|
-
nodes:
|
|
890
|
+
nodes: driveNodes,
|
|
861
891
|
srcName: copyNodeInput.targetName || node.name,
|
|
862
892
|
srcKind: isFileNode(node) ? "file" : "folder",
|
|
863
893
|
targetParentFolder: copyNodeInput.targetParentFolder || null
|
|
@@ -866,9 +896,10 @@ async function copyNode$1(driveId, src, target) {
|
|
|
866
896
|
}
|
|
867
897
|
}
|
|
868
898
|
const fileNodesToCopy = copyNodesInput.filter((copyNodeInput) => {
|
|
869
|
-
const node =
|
|
899
|
+
const node = driveNodes.find((node) => node.id === copyNodeInput.srcId);
|
|
870
900
|
return node !== void 0 && isFileNode(node);
|
|
871
901
|
});
|
|
902
|
+
markLocalDriveWrite(driveId);
|
|
872
903
|
for (const fileNodeToCopy of fileNodesToCopy) try {
|
|
873
904
|
const document = await reactor.read.get(fileNodeToCopy.srcId);
|
|
874
905
|
const duplicatedDocument = await _duplicateDocument(reactor.read, document, fileNodeToCopy.targetId, driveId);
|
|
@@ -880,7 +911,10 @@ async function copyNode$1(driveId, src, target) {
|
|
|
880
911
|
logger.error(`Error copying document ${fileNodeToCopy.srcId}: ${String(e)}`);
|
|
881
912
|
}
|
|
882
913
|
const copyActions = copyNodesInput.map((copyNodeInput) => copyNode(copyNodeInput));
|
|
883
|
-
|
|
914
|
+
markLocalDriveWrite(driveId);
|
|
915
|
+
const copied = await queueActions(drive, copyActions);
|
|
916
|
+
invalidateDriveNodes(driveId);
|
|
917
|
+
return copied;
|
|
884
918
|
}
|
|
885
919
|
/**
|
|
886
920
|
* Upgrades a document to a newer document model version. Defaults to the
|
|
@@ -1065,6 +1099,138 @@ function isoStringFromDateTime(value) {
|
|
|
1065
1099
|
return value instanceof Date ? value.toISOString() : value;
|
|
1066
1100
|
}
|
|
1067
1101
|
//#endregion
|
|
1102
|
+
//#region src/graphql-client/drive-nodes.ts
|
|
1103
|
+
/** Page size {@link GraphQLDriveNodeSource.listAll} reads a drive in. */
|
|
1104
|
+
const LIST_ALL_PAGE_LIMIT = 1e3;
|
|
1105
|
+
const DEFAULT_LIMIT$1 = 100;
|
|
1106
|
+
/**
|
|
1107
|
+
* The reactor subgraph's type-neutral node queries (`driveNodes`, `driveNode`,
|
|
1108
|
+
* `driveDescendants`) as an {@link IDriveNodeSource}, so a browser reads a
|
|
1109
|
+
* legacy drive and a reactor-drive alike. The Switchboard serves only the
|
|
1110
|
+
* nodes the caller may read. Drive ids must be canonical ids, not slugs.
|
|
1111
|
+
*/
|
|
1112
|
+
var GraphQLDriveNodeSource = class {
|
|
1113
|
+
queries;
|
|
1114
|
+
headersFor;
|
|
1115
|
+
constructor(queries, headersFor = () => void 0) {
|
|
1116
|
+
this.queries = queries;
|
|
1117
|
+
this.headersFor = headersFor;
|
|
1118
|
+
}
|
|
1119
|
+
async getNode(driveId, nodeId, signal) {
|
|
1120
|
+
const result = await this.queries.GetDriveNode({
|
|
1121
|
+
driveId,
|
|
1122
|
+
id: nodeId
|
|
1123
|
+
}, this.headersFor(driveId), signal);
|
|
1124
|
+
return result.driveNode ? toRecord(result.driveNode) : void 0;
|
|
1125
|
+
}
|
|
1126
|
+
async listChildren(driveId, parentFolder, paging, signal, kind) {
|
|
1127
|
+
const cursor = startCursor(paging?.cursor);
|
|
1128
|
+
const page = (await this.queries.GetDriveNodes({
|
|
1129
|
+
driveId,
|
|
1130
|
+
...parentFolder === void 0 ? {} : { parentFolder },
|
|
1131
|
+
paging: paging ? {
|
|
1132
|
+
cursor,
|
|
1133
|
+
limit: paging.limit
|
|
1134
|
+
} : void 0,
|
|
1135
|
+
kind: kind === void 0 ? void 0 : kind === "file" ? "FILE" : "FOLDER"
|
|
1136
|
+
}, this.headersFor(driveId), signal)).driveNodes;
|
|
1137
|
+
const nextCursor = page.hasMore ? page.nextCursor ?? void 0 : void 0;
|
|
1138
|
+
return {
|
|
1139
|
+
results: page.results.map(toRecord),
|
|
1140
|
+
options: {
|
|
1141
|
+
cursor,
|
|
1142
|
+
limit: paging?.limit ?? DEFAULT_LIMIT$1
|
|
1143
|
+
},
|
|
1144
|
+
...nextCursor !== void 0 ? { nextCursor } : {}
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
async getDescendants(driveId, root, signal) {
|
|
1148
|
+
return (await this.queries.GetDriveDescendants({
|
|
1149
|
+
driveId,
|
|
1150
|
+
root
|
|
1151
|
+
}, this.headersFor(driveId), signal)).driveDescendants.map(toRecord);
|
|
1152
|
+
}
|
|
1153
|
+
async listAll(driveId, signal) {
|
|
1154
|
+
const nodes = [];
|
|
1155
|
+
let cursor = "";
|
|
1156
|
+
for (;;) {
|
|
1157
|
+
const page = await this.listChildren(driveId, void 0, {
|
|
1158
|
+
cursor,
|
|
1159
|
+
limit: LIST_ALL_PAGE_LIMIT
|
|
1160
|
+
}, signal);
|
|
1161
|
+
nodes.push(...page.results);
|
|
1162
|
+
if (page.nextCursor === void 0 || page.nextCursor === cursor) return nodes;
|
|
1163
|
+
cursor = page.nextCursor;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
};
|
|
1167
|
+
/**
|
|
1168
|
+
* `read.drives` over a node source: the reactor's {@link IDriveReadClient},
|
|
1169
|
+
* answering in the legacy `Node` shape for every drive type.
|
|
1170
|
+
*/
|
|
1171
|
+
var GraphQLDriveReadClient = class {
|
|
1172
|
+
nodes;
|
|
1173
|
+
constructor(nodes) {
|
|
1174
|
+
this.nodes = nodes;
|
|
1175
|
+
}
|
|
1176
|
+
async getNode(driveIdentifier, nodeId, signal) {
|
|
1177
|
+
const record = await this.nodes.getNode(driveIdentifier, nodeId, signal);
|
|
1178
|
+
if (!record) throw new Error(`Node ${nodeId} not found in drive ${driveIdentifier}`);
|
|
1179
|
+
return toLegacyNode(record);
|
|
1180
|
+
}
|
|
1181
|
+
async listNodes(driveIdentifier, parentFolder, paging, signal) {
|
|
1182
|
+
const page = await this.nodes.listChildren(driveIdentifier, parentFolder, paging, signal);
|
|
1183
|
+
const nextCursor = page.nextCursor;
|
|
1184
|
+
return {
|
|
1185
|
+
results: page.results.map(toLegacyNode),
|
|
1186
|
+
options: page.options,
|
|
1187
|
+
...nextCursor !== void 0 ? {
|
|
1188
|
+
nextCursor,
|
|
1189
|
+
next: () => this.listNodes(driveIdentifier, parentFolder, {
|
|
1190
|
+
cursor: nextCursor,
|
|
1191
|
+
limit: page.options.limit
|
|
1192
|
+
}, signal)
|
|
1193
|
+
} : {}
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
};
|
|
1197
|
+
/** A node record in the legacy `Node` shape. */
|
|
1198
|
+
function toLegacyNode(node) {
|
|
1199
|
+
if (node.kind === "file") return {
|
|
1200
|
+
id: node.id,
|
|
1201
|
+
kind: "file",
|
|
1202
|
+
name: node.name,
|
|
1203
|
+
parentFolder: node.parentFolder,
|
|
1204
|
+
documentType: node.documentType ?? ""
|
|
1205
|
+
};
|
|
1206
|
+
return {
|
|
1207
|
+
id: node.id,
|
|
1208
|
+
kind: "folder",
|
|
1209
|
+
name: node.name,
|
|
1210
|
+
parentFolder: node.parentFolder
|
|
1211
|
+
};
|
|
1212
|
+
}
|
|
1213
|
+
function toRecord(node) {
|
|
1214
|
+
const base = {
|
|
1215
|
+
id: node.id,
|
|
1216
|
+
driveId: node.driveId,
|
|
1217
|
+
name: node.name,
|
|
1218
|
+
parentFolder: node.parentFolder ?? null
|
|
1219
|
+
};
|
|
1220
|
+
return "documentType" in node ? {
|
|
1221
|
+
...base,
|
|
1222
|
+
kind: "file",
|
|
1223
|
+
documentType: node.documentType
|
|
1224
|
+
} : {
|
|
1225
|
+
...base,
|
|
1226
|
+
kind: "folder"
|
|
1227
|
+
};
|
|
1228
|
+
}
|
|
1229
|
+
/** The offset-style "0" other listings start from means the first page here too. */
|
|
1230
|
+
function startCursor(cursor) {
|
|
1231
|
+
return cursor === void 0 || cursor === "0" ? "" : cursor;
|
|
1232
|
+
}
|
|
1233
|
+
//#endregion
|
|
1068
1234
|
//#region src/graphql-client/errors.ts
|
|
1069
1235
|
/** A call the Switchboard GraphQL surface cannot express. */
|
|
1070
1236
|
var GraphQLOperationNotSupportedError = class extends Error {
|
|
@@ -1930,6 +2096,7 @@ var GraphQLReactorClient = class {
|
|
|
1930
2096
|
jobRealtimeBroken = false;
|
|
1931
2097
|
/** Set once the Switchboard refused the `document` query's `consistency` argument. */
|
|
1932
2098
|
consistencyUnsupported = false;
|
|
2099
|
+
driveNodes;
|
|
1933
2100
|
/**
|
|
1934
2101
|
* The read half: the reads the hooks make. Every method is this client's
|
|
1935
2102
|
* own; nothing that writes is reachable from it.
|
|
@@ -1958,7 +2125,8 @@ var GraphQLReactorClient = class {
|
|
|
1958
2125
|
const middleware = withWrongBackendErrors(makeAuthMiddleware(this.tokenProvider));
|
|
1959
2126
|
this.sdk = options.graphqlClient ?? createClient$1(options.url, middleware);
|
|
1960
2127
|
this.subgraphs = new SubgraphSdkRegistry(options.url, middleware);
|
|
1961
|
-
this.
|
|
2128
|
+
this.driveNodes = new GraphQLDriveNodeSource(this.sdk, driveIdHeaders);
|
|
2129
|
+
this.read = new GraphQLReadHalf(this, this.driveNodes);
|
|
1962
2130
|
this.write = {
|
|
1963
2131
|
execute: (documentIdentifier, branch, actions, signal) => this.submitExecute(documentIdentifier, branch, actions, signal),
|
|
1964
2132
|
create: (document, parentIdentifier, signal) => this.submitCreate(document, parentIdentifier, signal),
|
|
@@ -1966,6 +2134,13 @@ var GraphQLReactorClient = class {
|
|
|
1966
2134
|
};
|
|
1967
2135
|
}
|
|
1968
2136
|
/**
|
|
2137
|
+
* The Switchboard's drive node queries as a node source, for every drive
|
|
2138
|
+
* type. `read.drives` answers from it.
|
|
2139
|
+
*/
|
|
2140
|
+
nodeSource() {
|
|
2141
|
+
return this.driveNodes;
|
|
2142
|
+
}
|
|
2143
|
+
/**
|
|
1969
2144
|
* Reads a document. With a consistency token that names any coordinate, the
|
|
1970
2145
|
* Switchboard waits until its read models hold them; one without the
|
|
1971
2146
|
* `document` query's `consistency` argument is read without it, which after
|
|
@@ -1980,9 +2155,60 @@ var GraphQLReactorClient = class {
|
|
|
1980
2155
|
if (!document) throw new Error(`Document not found: ${identifier}`);
|
|
1981
2156
|
return phDocumentFromGetDocument(document.document, view?.branch);
|
|
1982
2157
|
}
|
|
1983
|
-
/**
|
|
2158
|
+
/**
|
|
2159
|
+
* Reads documents by id, in the order given; throws if any is missing. Each
|
|
2160
|
+
* chunk of {@link GET_MANY_CHUNK_SIZE} ids is one request holding an aliased
|
|
2161
|
+
* `document` field per id, with the selection and arguments `get` sends.
|
|
2162
|
+
*/
|
|
1984
2163
|
async getMany(documentIds, view, signal, consistencyToken) {
|
|
1985
|
-
|
|
2164
|
+
const viewInput = viewFilterInputFromViewFilter(view);
|
|
2165
|
+
const token = consistencyToken && consistencyToken.coordinates.length > 0 ? consistencyToken : void 0;
|
|
2166
|
+
const chunks = [];
|
|
2167
|
+
for (let i = 0; i < documentIds.length; i += GET_MANY_CHUNK_SIZE) chunks.push(documentIds.slice(i, i + GET_MANY_CHUNK_SIZE));
|
|
2168
|
+
return (await Promise.all(chunks.map((chunk) => this.getDocumentChunk(chunk, viewInput, token, signal)))).flat().map((document) => phDocumentFromGetDocument(document, view?.branch));
|
|
2169
|
+
}
|
|
2170
|
+
/** One chunk of `getMany`, with the `consistency` argument while the Switchboard accepts it. */
|
|
2171
|
+
async getDocumentChunk(identifiers, view, token, signal) {
|
|
2172
|
+
if (token && !this.consistencyUnsupported) try {
|
|
2173
|
+
return await this.runGetDocuments(identifiers, view, consistencyInputFromToken(token), signal);
|
|
2174
|
+
} catch (error) {
|
|
2175
|
+
if (!refusesConsistencyArgument(error)) throw error;
|
|
2176
|
+
this.consistencyUnsupported = true;
|
|
2177
|
+
}
|
|
2178
|
+
return this.runGetDocuments(identifiers, view, void 0, signal);
|
|
2179
|
+
}
|
|
2180
|
+
async runGetDocuments(identifiers, view, consistency, signal) {
|
|
2181
|
+
const variables = { view };
|
|
2182
|
+
const definitions = ["$view: ViewFilterInput"];
|
|
2183
|
+
let consistencyArgument = "";
|
|
2184
|
+
if (consistency) {
|
|
2185
|
+
variables.consistency = consistency;
|
|
2186
|
+
definitions.push("$consistency: ConsistencyTokenInput");
|
|
2187
|
+
consistencyArgument = ", consistency: $consistency";
|
|
2188
|
+
}
|
|
2189
|
+
const fields = identifiers.map((identifier, i) => {
|
|
2190
|
+
variables[`id${i}`] = identifier;
|
|
2191
|
+
definitions.push(`$id${i}: String!`);
|
|
2192
|
+
return `d${i}: document(identifier: $id${i}, view: $view${consistencyArgument}) { document { ...PHDocumentFields } childIds }`;
|
|
2193
|
+
});
|
|
2194
|
+
const query = [
|
|
2195
|
+
`query GetDocuments(${definitions.join(", ")}) {`,
|
|
2196
|
+
...fields,
|
|
2197
|
+
"}",
|
|
2198
|
+
PH_DOCUMENT_FIELDS_SOURCE
|
|
2199
|
+
].join("\n");
|
|
2200
|
+
const data = await this.sdk.RunDocument({
|
|
2201
|
+
operationName: "GetDocuments",
|
|
2202
|
+
operationType: "query",
|
|
2203
|
+
document: query,
|
|
2204
|
+
variables,
|
|
2205
|
+
signal
|
|
2206
|
+
});
|
|
2207
|
+
return identifiers.map((identifier, i) => {
|
|
2208
|
+
const result = data[`d${i}`];
|
|
2209
|
+
if (!result) throw new Error(`Document not found: ${identifier}`);
|
|
2210
|
+
return result.document;
|
|
2211
|
+
});
|
|
1986
2212
|
}
|
|
1987
2213
|
/**
|
|
1988
2214
|
* Whether the Switchboard would serve the document to this client's caller,
|
|
@@ -2628,16 +2854,7 @@ var GraphQLReactorClient = class {
|
|
|
2628
2854
|
const variables = {
|
|
2629
2855
|
identifier,
|
|
2630
2856
|
view,
|
|
2631
|
-
consistency:
|
|
2632
|
-
version: token.version,
|
|
2633
|
-
createdAtUtcIso: token.createdAtUtcIso,
|
|
2634
|
-
coordinates: token.coordinates.map((coordinate) => ({
|
|
2635
|
-
documentId: coordinate.documentId,
|
|
2636
|
-
scope: coordinate.scope,
|
|
2637
|
-
branch: coordinate.branch,
|
|
2638
|
-
operationIndex: coordinate.operationIndex
|
|
2639
|
-
}))
|
|
2640
|
-
}
|
|
2857
|
+
consistency: consistencyInputFromToken(token)
|
|
2641
2858
|
};
|
|
2642
2859
|
try {
|
|
2643
2860
|
return await this.sdk.RunDocument({
|
|
@@ -2781,8 +2998,10 @@ var GraphQLReactorClient = class {
|
|
|
2781
2998
|
*/
|
|
2782
2999
|
var GraphQLReadHalf = class {
|
|
2783
3000
|
client;
|
|
2784
|
-
|
|
3001
|
+
drives;
|
|
3002
|
+
constructor(client, nodes) {
|
|
2785
3003
|
this.client = client;
|
|
3004
|
+
this.drives = new GraphQLDriveReadClient(nodes);
|
|
2786
3005
|
}
|
|
2787
3006
|
get(identifier, view, signal, consistencyToken) {
|
|
2788
3007
|
return this.client.get(identifier, view, signal, consistencyToken);
|
|
@@ -2838,6 +3057,21 @@ function sleepUntilWoken(ms, wakers, signal) {
|
|
|
2838
3057
|
* Whether a request failed because the Switchboard's `document` query has no
|
|
2839
3058
|
* `consistency` argument, or its schema no `ConsistencyTokenInput`.
|
|
2840
3059
|
*/
|
|
3060
|
+
/** The most ids one `getMany` request reads. */
|
|
3061
|
+
const GET_MANY_CHUNK_SIZE = 50;
|
|
3062
|
+
const PH_DOCUMENT_FIELDS_SOURCE = print(PhDocumentFieldsFragmentDoc);
|
|
3063
|
+
function consistencyInputFromToken(token) {
|
|
3064
|
+
return {
|
|
3065
|
+
version: token.version,
|
|
3066
|
+
createdAtUtcIso: token.createdAtUtcIso,
|
|
3067
|
+
coordinates: token.coordinates.map((coordinate) => ({
|
|
3068
|
+
documentId: coordinate.documentId,
|
|
3069
|
+
scope: coordinate.scope,
|
|
3070
|
+
branch: coordinate.branch,
|
|
3071
|
+
operationIndex: coordinate.operationIndex
|
|
3072
|
+
}))
|
|
3073
|
+
};
|
|
3074
|
+
}
|
|
2841
3075
|
function refusesConsistencyArgument(error) {
|
|
2842
3076
|
const errors = error?.response?.errors;
|
|
2843
3077
|
if (!Array.isArray(errors)) return false;
|
|
@@ -2846,6 +3080,10 @@ function refusesConsistencyArgument(error) {
|
|
|
2846
3080
|
return typeof message === "string" && (message.includes("\"consistency\"") || message.includes("\"ConsistencyTokenInput\""));
|
|
2847
3081
|
});
|
|
2848
3082
|
}
|
|
3083
|
+
/** {@link GraphQLReactorClient.nodeSource}, as a function. */
|
|
3084
|
+
function createGraphQLDriveNodeSource(client) {
|
|
3085
|
+
return client.nodeSource();
|
|
3086
|
+
}
|
|
2849
3087
|
/**
|
|
2850
3088
|
* Whether a value is a {@link GraphQLReactorClient}, including one built by
|
|
2851
3089
|
* another copy of this module.
|
|
@@ -3635,6 +3873,7 @@ const addToastEventHandler = toastEventFunctions.addEventHandler;
|
|
|
3635
3873
|
const commonGlobalEventHandlerFunctions = {
|
|
3636
3874
|
loading: addLoadingEventHandler,
|
|
3637
3875
|
drives: addDrivesEventHandler,
|
|
3876
|
+
driveNodes: addDriveNodesEventHandler,
|
|
3638
3877
|
selectedDriveId: () => {
|
|
3639
3878
|
addSelectedDriveIdEventHandler();
|
|
3640
3879
|
addSyncSelectionOnPopStateEventHandler();
|
|
@@ -3895,6 +4134,6 @@ function useDocumentOperations(documentId, scope, options = {}) {
|
|
|
3895
4134
|
return legacy ? legacyResult : primary;
|
|
3896
4135
|
}
|
|
3897
4136
|
//#endregion
|
|
3898
|
-
export { addIsAnalyticsExternalProcessorsEnabledEventHandler as $,
|
|
4137
|
+
export { addIsAnalyticsExternalProcessorsEnabledEventHandler as $, usePGlite as $i, useIsEditorDebugModeEnabled as $n, resolveDocumentModelModule as $r, setIsDeleteLocalDrivesEnabled as $t, useDropTarget as A, deleteNode as Ai, useAnalyticsDatabaseName as An, phDocumentEditorConfigHooks as Ar, addVersionEventHandler as At, addCliVersionEventHandler as B, upgradeDocument as Bi, useIsAddDriveEnabled as Bn, findIsServableOverGraphQL as Br, setDrivesPreserveStrategy as Bt, usePackageDiscoveryService as C, useSetSearchParams as Ca, COMMON_PACKAGE_ID as Ci, setSentryRelease as Cn, useWarnOutdatedApp as Cr, addRouterBasenameEventHandler as Ct, addDraggingNodeEventHandler as D, addFileWithProgress as Di, setVersionCheckInterval as Dn, isExternalControlsEnabledEventFunctions as Dr, addStudioModeEventHandler as Dt, useGraphQLReactorClient as E, addDocument as Ei, setVersion as En, addIsExternalControlsEnabledEventHandler as Er, addSentryReleaseEventHandler as Et, setAttachmentService as F, loadFile as Fi, useDrivesPreserveStrategy as Fn, useAllowedDocumentTypes as Fr, setAnalyticsDatabaseName as Ft, addFileUploadOperationsChunkSizeEventHandler as G, addReactorClientModuleEventHandler as Gi, useIsAnalyticsExternalProcessorsEnabled as Gn, makeAuthConnectionParams as Gr, setIsAddDriveEnabled as Gt, addDisabledEditorsEventHandler as H, isDocumentTypeSupported as Hi, useIsAddPublicDrivesEnabled as Hn, viewFilterInputFromViewFilter as Hr, setFileUploadOperationsChunkSize as Ht, useAttachmentService as I, moveNode$1 as Ii, useEnabledEditors as In, useIsDragAndDropEnabled as Ir, setBasePath as It, addIsAddDriveEnabledEventHandler as J, setFullReactorClient as Ji, useIsDeleteLocalDrivesEnabled as Jn, SubgraphSdkRegistry as Jr, setIsAnalyticsDatabaseWorkerEnabled as Jt, addGaTrackingIdEventHandler as K, addReactorHalvesEventHandler as Ki, useIsCloudDrivesEnabled as Kn, startDocumentChangesSubscription as Kr, setIsAddLocalDrivesEnabled as Kt, addAllowListEventHandler as L, renameDriveNode as Li, useFileUploadOperationsChunkSize as Ln, useIsExternalControlsEnabled as Lr, setCliVersion as Lt, setFeatures as M, extractInitialState as Mi, useCliVersion as Mn, setAllowedDocumentTypes as Mr, phGlobalConfigHooks as Mt, useFeatures as N, fetchDocumentOperations as Ni, useDefaultDrivesUrl as Nn, setIsDragAndDropEnabled as Nr, phGlobalConfigSetters as Nt, useDragNode as O, addFolder$1 as Oi, setWarnOutdatedApp as On, phAppConfigHooks as Or, addSwitchboardUrlEventHandler as Ot, addAttachmentServiceEventHandler as P, getDocumentExtension as Pi, useDisabledEditors as Pn, setIsExternalControlsEnabled as Pr, setAllowList as Pt, addIsAnalyticsEnabledEventHandler as Q, useModelRegistry as Qi, useIsDriveAnalyticsEnabled as Qn, packageFromDocumentModels as Qr, setIsDeleteCloudDrivesEnabled as Qt, addAnalyticsDatabaseNameEventHandler as R, renameNode as Ri, useGaTrackingId as Rn, GraphQLReactorClient as Rr, setDefaultDrivesUrl as Rt, setPackageDiscoveryService as S, useSearchParams as Sa, screamingSnakeToCamel as Si, setSentryEnv as Sn, useVersionCheckInterval as Sr, addRequiresHardRefreshEventHandler as St, setGraphQLReactorClient as T, DRIVE_DOCUMENT_TYPES as Ti, setSwitchboardUrl as Tn, addIsDragAndDropEnabledEventHandler as Tr, addSentryEnvEventHandler as Tt, addDrivesPreserveStrategyEventHandler as U, addFullReactorClientEventHandler as Ui, useIsAnalyticsDatabaseWorkerEnabled as Un, createJobChangesSocket as Ur, setGaTrackingId as Ut, addDefaultDrivesUrlEventHandler as V, getUserPermissions as Vi, useIsAddLocalDrivesEnabled as Vn, isGraphQLReactorClient as Vr, setEnabledEditors as Vt, addEnabledEditorsEventHandler as W, addReactorClientEventHandler as Wi, useIsAnalyticsEnabled as Wn, isAuthRefusalClose as Wr, setIsAddCloudDrivesEnabled as Wt, addIsAddPublicDrivesEnabledEventHandler as X, setReactorClientModule as Xi, useIsDiffAnalyticsEnabled as Xn, subgraphUrlFromGraphqlUrl as Xr, setIsAnalyticsExternalProcessorsEnabled as Xt, addIsAddLocalDrivesEnabledEventHandler as Y, setReactorClient as Yi, useIsDeletePublicDrivesEnabled as Yn, describeGraphQLDocument as Yr, setIsAnalyticsEnabled as Yt, addIsAnalyticsDatabaseWorkerEnabledEventHandler as Z, useDatabase as Zi, useIsDocumentModelSelectionSettingsEnabled as Zn, StaticPackageManager as Zr, setIsCloudDrivesEnabled as Zt, addSetSelectedDriveOnPopStateEventHandler as _, usePHModal as _a, ConflictError as _i, setRenownNetworkId as _n, useSentryEnv as _r, addLogLevelEventHandler as _t, addPHEventHandlers as a, MODAL_SEARCH_PARAM as aa, ReactorOperationFieldsFragmentDoc as ai, setIsEditorReadModeEnabled as an, useIsPublicDrivesEnabled as ar, addIsDocumentModelSelectionSettingsEnabledEventHandler as at, syncSelectionFromPath as b, useLinkProps as ba, extractRevisionMap as bi, setRouterBasename as bn, useSwitchboardUrl as br, addRenownNetworkIdEventHandler as bt, addToastEventHandler as c, isRoutedModal as ca, GraphQLWrongBackendError as ci, setIsExternalRelationalProcessorsEnabled as cn, useLocalDrivesEnabled as cr, addIsEditorReadModeEnabledEventHandler as ct, addSelectedTimelineRevisionEventHandler as d, modalSearch as da, GraphQLDriveReadClient as di, setIsRelationalProcessorsEnabled as dn, useRenownChainId as dr, addIsExternalRelationalProcessorsEnabledEventHandler as dt, useReactorClient as ea, prepareSignedActions as ei, setIsDeletePublicDrivesEnabled as en, useIsEditorReadModeEnabled as er, addIsCloudDrivesEnabledEventHandler as et, setSelectedTimelineRevision as f, setPHModal as fa, toLegacyNode as fi, setIsSentryTracingEnabled as fn, useRenownNetworkId as fr, addIsLocalDrivesEnabledEventHandler as ft, useSelectedTimelineItem as g, useModalLinkProps as ga, revisionMapFromRevisionsList as gi, setRenownChainId as gn, useSentryDsn as gr, addLocalDrivesEnabledEventHandler as gt, setSelectedTimelineItem as h, showPHModal as ha, phDocumentFromMutation as hi, setRenownAdapters as hn, useRouterBasename as hr, addIsSentryTracingEnabledEventHandler as ht, useSwitchboardClient as i, useSyncList as ia, MutateDocumentWithOperationsDocument as ii, setIsEditorDebugModeEnabled as in, useIsLocalDrivesEnabled as ir, addIsDiffAnalyticsEnabledEventHandler as it, addFeaturesEventHandler as j, exportFile as ji, useBasePath as jn, phDocumentEditorConfigSetters as jr, addWarnOutdatedAppEventHandler as jt, useDropNode as k, copyNode$1 as ki, useAllowList as kn, phAppConfigSetters as kr, addVersionCheckIntervalEventHandler as kt, setPHToast as l, modalFromSearch as la, JobFailedError as li, setIsLocalDrivesEnabled as ln, useLogLevel as lr, addIsExternalPackagesEnabledEventHandler as lt, addSelectedTimelineItemEventHandler as m, showDeleteNodeModal as ma, phDocumentFromGetDocument as mi, setLogLevel as mn, useRequiresHardRefresh as mr, addIsRelationalProcessorsEnabledEventHandler as mt, GraphQLReactorProvider as n, useReactorHalves as na, stampAction as ni, setIsDocumentModelSelectionSettingsEnabled as nn, useIsExternalProcessorsEnabled as nr, addIsDeleteLocalDrivesEnabledEventHandler as nt, callEventHandlerRegisterFunctions as o, addModalEventHandler as oa, BatchJobFailedError as oi, setIsExternalPackagesEnabled as on, useIsRelationalProcessorsEnabled as or, addIsDriveAnalyticsEnabledEventHandler as ot, useSelectedTimelineRevision as p, showCreateDocumentModal as pa, isoStringFromDateTime as pi, setLocalDrivesEnabled as pn, useRenownUrl as pr, addIsPublicDrivesEnabledEventHandler as pt, addIsAddCloudDrivesEnabledEventHandler as q, getFullReactorClient as qi, useIsDeleteCloudDrivesEnabled as qn, subscriptionsUrlFromGraphqlUrl as qr, setIsAddPublicDrivesEnabled as qt, ensurePHEventHandlers as r, useSync as ra, GetDocumentAtConsistencyDocument as ri, setIsDriveAnalyticsEnabled as rn, useIsExternalRelationalProcessorsEnabled as rr, addIsDeletePublicDrivesEnabledEventHandler as rt, commonGlobalEventHandlerFunctions as s, closePHModal as sa, GraphQLOperationNotSupportedError as si, setIsExternalProcessorsEnabled as sn, useIsSentryTracingEnabled as sr, addIsEditorDebugModeEnabledEventHandler as st, useDocumentOperations as t, useReactorClientModule as ta, signStampedAction as ti, setIsDiffAnalyticsEnabled as tn, useIsExternalPackagesEnabled as tr, addIsDeleteCloudDrivesEnabledEventHandler as tt, usePHToast as u, modalHref as ua, GraphQLDriveNodeSource as ui, setIsPublicDrivesEnabled as un, useRenownAdapters as ur, addIsExternalProcessorsEnabledEventHandler as ut, addSetSelectedNodeOnPopStateEventHandler as v, withoutModalSearch as va, buildPulledDocument as vi, setRenownUrl as vn, useSentryRelease as vr, addRenownAdaptersEventHandler as vt, addGraphQLReactorClientEventHandler as w, DEFAULT_DRIVE_EDITOR_ID as wi, setStudioMode as wn, addAllowedDocumentTypesEventHandler as wr, addSentryDsnEventHandler as wt, addPackageDiscoveryServiceEventHandler as x, usePHNavigation as xa, hasRevisionConflict as xi, setSentryDsn as xn, useVersion as xr, addRenownUrlEventHandler as xt, addSyncSelectionOnPopStateEventHandler as y, isPlainClick as ya, convertRemoteOperations as yi, setRequiresHardRefresh as yn, useStudioMode as yr, addRenownChainIdEventHandler as yt, addBasePathEventHandler as z, setPreferredEditorOnNode as zi, useIsAddCloudDrivesEnabled as zn, createGraphQLDriveNodeSource as zr, setDisabledEditors as zt };
|
|
3899
4138
|
|
|
3900
|
-
//# sourceMappingURL=document-operations-
|
|
4139
|
+
//# sourceMappingURL=document-operations-BdCl99y6.js.map
|