@powerhousedao/reactor-browser 6.2.3-dev.3 → 6.2.3-dev.31
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-CdwHrbDH.d.ts → attachment-service-CF8LWxyM.d.ts} +209 -64
- package/dist/attachment-service-CF8LWxyM.d.ts.map +1 -0
- package/dist/{client-DjK30EQ-.js → client-BiJAJ9dW.js} +1 -1
- package/dist/{client-DjK30EQ-.js.map → client-BiJAJ9dW.js.map} +1 -1
- package/dist/{client-BIHN_UyR.d.ts → client-CngU4mtn.d.ts} +3 -3
- package/dist/client-CngU4mtn.d.ts.map +1 -0
- package/dist/{client-D66jVnot.js → client-VV9M73s_.js} +126 -18
- package/dist/client-VV9M73s_.js.map +1 -0
- package/dist/{document-by-id-BSZqTN66.js → dispatch-BOQgTK9B.js} +375 -51
- package/dist/dispatch-BOQgTK9B.js.map +1 -0
- package/dist/document-by-id-Kuxk62l1.js +16 -0
- package/dist/document-by-id-Kuxk62l1.js.map +1 -0
- package/dist/{document-model-modules-DfQBNGc-.js → document-model-modules-Cv9KSduJ.js} +64 -97
- package/dist/document-model-modules-Cv9KSduJ.js.map +1 -0
- package/dist/{document-operations-Bgo6A6W2.js → document-operations-D16LsXDs.js} +202 -124
- package/dist/document-operations-D16LsXDs.js.map +1 -0
- package/dist/{global-BggszP4X.d.ts → global-yMvtFjK6.d.ts} +51 -14
- package/dist/global-yMvtFjK6.d.ts.map +1 -0
- package/dist/{index-CkJNhsQo.d.ts → index-UsPtg1Z3.d.ts} +21 -99
- package/dist/index-UsPtg1Z3.d.ts.map +1 -0
- package/dist/{index-BIVDXw3K.d.ts → index-rtDmzViP.d.ts} +3 -3
- package/dist/index-rtDmzViP.d.ts.map +1 -0
- package/dist/index.d.ts +413 -362
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +138 -43
- package/dist/index.js.map +1 -1
- package/dist/{inspector-proxy-6h5VKAwt.d.ts → inspector-proxy-B2qjCMEv.d.ts} +9 -4
- package/dist/inspector-proxy-B2qjCMEv.d.ts.map +1 -0
- package/dist/{make-ph-event-functions-DBq3iWYn.js → make-ph-event-functions-FzpvQtj6.js} +1 -1
- package/dist/{make-ph-event-functions-DBq3iWYn.js.map → make-ph-event-functions-FzpvQtj6.js.map} +1 -1
- package/dist/{pglite-CntadC_p-9NDG14dS.d.ts → pglite-CntadC_p-DTkdF8sr.d.ts} +11 -33
- package/dist/pglite-CntadC_p-DTkdF8sr.d.ts.map +1 -0
- package/dist/{relational-D4sxGPz7.js → relational-ChC_AWAK.js} +4 -3
- package/dist/{relational-D4sxGPz7.js.map → relational-ChC_AWAK.js.map} +1 -1
- package/dist/{renown-BIEv6bSI.js → renown-C9pYZRqf.js} +26 -12
- package/dist/renown-C9pYZRqf.js.map +1 -0
- package/dist/{renown-BHxwP7xU.js → renown-Def5iO8k.js} +2 -2
- package/dist/{renown-BHxwP7xU.js.map → renown-Def5iO8k.js.map} +1 -1
- package/dist/src/ai/index.d.ts +51 -62
- package/dist/src/ai/index.d.ts.map +1 -1
- package/dist/src/ai/index.js +5 -8
- package/dist/src/ai/index.js.map +1 -1
- package/dist/src/analytics/index.d.ts +36 -44
- package/dist/src/analytics/index.d.ts.map +1 -1
- package/dist/src/analytics/index.js +2 -2
- package/dist/src/analytics/index.js.map +1 -1
- package/dist/src/document-model.d.ts +3 -4
- package/dist/src/document-model.d.ts.map +1 -1
- package/dist/src/document-model.js.map +1 -1
- package/dist/src/graphql/client.d.ts +4 -3
- package/dist/src/graphql/client.js +1 -1
- package/dist/src/graphql-client/entry.d.ts +5 -4
- package/dist/src/graphql-client/entry.js +4 -4
- package/dist/src/relational/index.d.ts +8 -9
- package/dist/src/relational/index.d.ts.map +1 -1
- package/dist/src/relational/index.js +1 -1
- package/dist/src/renown/index.d.ts +3 -2
- package/dist/src/renown/index.js +3 -3
- package/dist/src/rpc/index.d.ts +40 -31
- package/dist/src/rpc/index.d.ts.map +1 -1
- package/dist/src/rpc/index.js +20 -5
- package/dist/src/rpc/index.js.map +1 -1
- package/dist/{store-BJYcr_FL.js → store-DInXcjal.js} +1 -1
- package/dist/{store-BJYcr_FL.js.map → store-DInXcjal.js.map} +1 -1
- package/dist/{switchboard-D4-_jwk-.js → switchboard-Nyr7CXcr.js} +59 -7
- package/dist/switchboard-Nyr7CXcr.js.map +1 -0
- package/dist/{types-6vDzbRRS.d.ts → types-520nWrB3.d.ts} +2 -2
- package/dist/types-520nWrB3.d.ts.map +1 -0
- package/dist/{types-Dcv1ZLoW.d.ts → types-B7-_l_wE.d.ts} +86 -16
- package/dist/types-B7-_l_wE.d.ts.map +1 -0
- package/package.json +15 -16
- package/dist/attachment-service-CdwHrbDH.d.ts.map +0 -1
- package/dist/client-BIHN_UyR.d.ts.map +0 -1
- package/dist/client-D66jVnot.js.map +0 -1
- package/dist/document-by-id-BSZqTN66.js.map +0 -1
- package/dist/document-model-modules-DfQBNGc-.js.map +0 -1
- package/dist/document-operations-Bgo6A6W2.js.map +0 -1
- package/dist/global-BggszP4X.d.ts.map +0 -1
- package/dist/index-BIVDXw3K.d.ts.map +0 -1
- package/dist/index-CkJNhsQo.d.ts.map +0 -1
- package/dist/inspector-proxy-6h5VKAwt.d.ts.map +0 -1
- package/dist/pglite-CntadC_p-9NDG14dS.d.ts.map +0 -1
- package/dist/renown-BIEv6bSI.js.map +0 -1
- package/dist/switchboard-D4-_jwk-.js.map +0 -1
- package/dist/types-6vDzbRRS.d.ts.map +0 -1
- package/dist/types-Dcv1ZLoW.d.ts.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import {
|
|
3
|
-
import { t as makePHEventFunctions } from "./make-ph-event-functions-
|
|
4
|
-
import {
|
|
5
|
-
import { f as addLoadingEventHandler, t as addRenownEventHandler } from "./renown-
|
|
1
|
+
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-BOQgTK9B.js";
|
|
2
|
+
import { B as makeAuthMiddleware, F as DocumentModelNotFoundError, R as UnsupportedDocumentTypeError, c as addSetSelectedDriveOnPopStateEventHandler, f as useSelectedDriveId, g as addSetSelectedNodeOnPopStateEventHandler, h as addSelectedNodeIdEventHandler, i as setVetraPackageManager, m as addResetSelectedNodeEventHandler, r as addVetraPackageManagerEventHandler, s as addSelectedDriveIdEventHandler, y as addDrivesEventHandler, z as ambientRenownTokenProvider } from "./document-model-modules-Cv9KSduJ.js";
|
|
3
|
+
import { t as makePHEventFunctions } from "./make-ph-event-functions-FzpvQtj6.js";
|
|
4
|
+
import { i as PhDocumentFieldsFragmentDoc, n as DocumentChangesDocument, t as createClient$1 } from "./client-VV9M73s_.js";
|
|
5
|
+
import { f as addLoadingEventHandler, t as addRenownEventHandler } from "./renown-Def5iO8k.js";
|
|
6
6
|
import { logger } from "document-model";
|
|
7
|
-
import { UnsupportedDocumentModelVersionError, assertAuthPreservedOnDuplicate, baseLoadFromInput, baseLoadFromInputVersioned, baseSaveToFileHandle, createPresignedHeader, createZip, deserializeSignature, documentModelDocumentType, generateId, hashDocumentStateForScope, normalizeDocumentModelVersion, replayDocumentVersioned, setName, setPreferredEditor, toTransportAction } from "@powerhousedao/shared/document-model";
|
|
8
7
|
import { addFolder, copyNode, generateNodesCopy, handleTargetNameCollisions, isFileNode, isFolderNode, moveNode, updateNode } from "@powerhousedao/shared/document-drive";
|
|
8
|
+
import { UnsupportedDocumentModelVersionError, actionSignerIdentity, actionSigningTarget, assertAuthPreservedOnDuplicate, baseLoadFromInput, baseLoadFromInputVersioned, baseSaveToFileHandle, createCopyHeader, createPresignedHeader, createZip, deserializeSignature, documentModelDocumentType, generateId, hasDerivedDocumentId, hashDocumentStateForScope, normalizeDocumentModelVersion, replayDocumentVersioned, setName, setPreferredEditor, signaturePolicyOf, toTransportAction, withSignaturePolicy } from "@powerhousedao/shared/document-model";
|
|
9
9
|
import { allPass, conditional, constant, forEachObj, funnel, isDefined, isNot, isStrictEqual, isString, isTruthy, once } from "remeda";
|
|
10
|
-
import { useCallback, useEffect,
|
|
10
|
+
import { useCallback, useEffect, useMemo, useState, useSyncExternalStore } from "react";
|
|
11
11
|
import { GraphQLClient } from "graphql-request";
|
|
12
12
|
import { gql } from "graphql-tag";
|
|
13
13
|
import { Kind, print } from "graphql";
|
|
@@ -39,9 +39,10 @@ function showCreateDocumentModal(documentType, documentModelVersion) {
|
|
|
39
39
|
}
|
|
40
40
|
/** Shows the delete node modal */
|
|
41
41
|
function showDeleteNodeModal(nodeOrId) {
|
|
42
|
+
const id = typeof nodeOrId === "string" ? nodeOrId : nodeOrId.id;
|
|
42
43
|
setPHModal({
|
|
43
44
|
type: "deleteItem",
|
|
44
|
-
id
|
|
45
|
+
id
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
48
|
//#endregion
|
|
@@ -76,7 +77,7 @@ function getUserPermissions() {
|
|
|
76
77
|
}
|
|
77
78
|
//#endregion
|
|
78
79
|
//#region src/actions/document.ts
|
|
79
|
-
const NON_DOMAIN_SCOPES = new Set(["auth", "document"]);
|
|
80
|
+
const NON_DOMAIN_SCOPES = /* @__PURE__ */ new Set(["auth", "document"]);
|
|
80
81
|
/** An unreadable drive cannot be shown to hold no duplicate, so reads throw. */
|
|
81
82
|
async function isDocumentInLocation(reactorClient, document, driveId, parentFolder) {
|
|
82
83
|
const drive = await reactorClient.get(driveId);
|
|
@@ -293,7 +294,7 @@ async function addDocument(driveId, name, documentType, parentFolder, document,
|
|
|
293
294
|
if (!module) throw new Error(`Document model not found for type: ${documentType} with version: ${documentModelVersion}`);
|
|
294
295
|
documentModelModule = module;
|
|
295
296
|
} else documentModelModule = await reactorClient.getDocumentModelModule(documentType);
|
|
296
|
-
const newDocument = document ?? documentModelModule.utils.createDocument();
|
|
297
|
+
const newDocument = document ?? withSignaturePolicy(documentModelModule.utils.createDocument(), await reactorClient.getCreateSignaturePolicy());
|
|
297
298
|
if (!document) newDocument.state.document.version = documentModelModule.version ?? 1;
|
|
298
299
|
newDocument.header.name = name;
|
|
299
300
|
if (preferredEditor) newDocument.header.meta = {
|
|
@@ -341,9 +342,24 @@ function isDocumentAlreadyExists(error) {
|
|
|
341
342
|
* fails leaves the drive untouched, so a retry has nothing to clean up.
|
|
342
343
|
*/
|
|
343
344
|
async function createImportedDocument(reactor, document, driveId, name, parentFolder) {
|
|
344
|
-
|
|
345
|
+
const v2Required = signaturePolicyOf(document.header) === "v2-required";
|
|
346
|
+
const keepsId = (!v2Required || hasDerivedDocumentId(document.header)) && !await reactor.isDocumentIdTaken(document.header.id);
|
|
347
|
+
let documentId = keepsId ? document.header.id : generateId();
|
|
345
348
|
for (let attempt = 1;; attempt++) {
|
|
346
|
-
|
|
349
|
+
let header;
|
|
350
|
+
if (!v2Required) header = createPresignedHeader(documentId, document.header.documentType);
|
|
351
|
+
else if (keepsId && attempt === 1) {
|
|
352
|
+
header = createPresignedHeader(documentId, document.header.documentType);
|
|
353
|
+
header.createdAtUtcIso = document.header.createdAtUtcIso;
|
|
354
|
+
header.sig = {
|
|
355
|
+
...header.sig,
|
|
356
|
+
nonce: document.header.sig.nonce
|
|
357
|
+
};
|
|
358
|
+
header.protocolVersions = { ...document.header.protocolVersions };
|
|
359
|
+
} else {
|
|
360
|
+
header = createCopyHeader(document.header);
|
|
361
|
+
documentId = header.id;
|
|
362
|
+
}
|
|
347
363
|
header.lastModifiedAtUtcIso = document.header.createdAtUtcIso;
|
|
348
364
|
header.meta = document.header.meta;
|
|
349
365
|
header.name = name || document.header.name;
|
|
@@ -609,7 +625,7 @@ async function _duplicateDocument(reactor, document, newId = generateId()) {
|
|
|
609
625
|
reducers,
|
|
610
626
|
upgradeManifest
|
|
611
627
|
};
|
|
612
|
-
const header =
|
|
628
|
+
const header = createCopyHeader(document.header, newId, await reactor.getCreateSignaturePolicy());
|
|
613
629
|
const duplicated = replayDocumentVersioned(document.initialState, document.operations, config, header);
|
|
614
630
|
assertAuthPreservedOnDuplicate(document.header.id, document.state.auth, duplicated.state.auth);
|
|
615
631
|
return duplicated;
|
|
@@ -646,11 +662,13 @@ async function copyNode$1(driveId, src, target) {
|
|
|
646
662
|
const duplicatedDocument = await _duplicateDocument(reactor, await reactor.get(fileNodeToCopy.srcId), fileNodeToCopy.targetId);
|
|
647
663
|
const resolvedName = resolvedNamesMap.get(fileNodeToCopy.targetId);
|
|
648
664
|
if (resolvedName) duplicatedDocument.header.name = resolvedName;
|
|
665
|
+
fileNodeToCopy.targetId = duplicatedDocument.header.id;
|
|
649
666
|
await reactor.drives.addFile(driveId, duplicatedDocument, target?.id);
|
|
650
667
|
} catch (e) {
|
|
651
668
|
logger.error(`Error copying document ${fileNodeToCopy.srcId}: ${String(e)}`);
|
|
652
669
|
}
|
|
653
|
-
|
|
670
|
+
const copyActions = copyNodesInput.map((copyNodeInput) => copyNode(copyNodeInput));
|
|
671
|
+
return await queueActions(drive, copyActions);
|
|
654
672
|
}
|
|
655
673
|
/**
|
|
656
674
|
* Upgrades a document to a newer document model version. Defaults to the
|
|
@@ -669,6 +687,7 @@ function screamingSnakeToCamel(s) {
|
|
|
669
687
|
}
|
|
670
688
|
/** Error thrown when a push conflict is detected with the "reject" strategy. */
|
|
671
689
|
var ConflictError = class extends Error {
|
|
690
|
+
conflict;
|
|
672
691
|
constructor(conflict) {
|
|
673
692
|
super("Push conflict: remote has new operations since last pull");
|
|
674
693
|
this.conflict = conflict;
|
|
@@ -941,43 +960,42 @@ function stampAction(action, document, revision = document.header.revision[actio
|
|
|
941
960
|
};
|
|
942
961
|
}
|
|
943
962
|
/**
|
|
944
|
-
* Signs a stamped action
|
|
945
|
-
*
|
|
946
|
-
*
|
|
947
|
-
*
|
|
963
|
+
* Signs a stamped action for `target`, keeping any signatures it already
|
|
964
|
+
* carries. The signer reads `context.prevOpHash`, so this runs after
|
|
965
|
+
* {@link stampAction}. A v2 tuple covers the signer's identity, so the context
|
|
966
|
+
* takes the signer's user and app even when the action named others.
|
|
948
967
|
*/
|
|
949
|
-
async function signStampedAction(action, signer, signal) {
|
|
950
|
-
|
|
951
|
-
const
|
|
952
|
-
const app = actionSigner?.app ?? signer.app;
|
|
953
|
-
if (!user || !app) throw new Error("cannot sign an action: the signer has no user or app identity");
|
|
954
|
-
const signature = await signer.signAction(action, signal);
|
|
968
|
+
async function signStampedAction(action, signer, target, signal) {
|
|
969
|
+
if (!signer.user || !signer.app) throw new Error("cannot sign an action: the signer has no user or app identity");
|
|
970
|
+
const signature = await signer.signAction(action, target, signal);
|
|
955
971
|
return {
|
|
956
972
|
...action,
|
|
957
973
|
context: {
|
|
958
974
|
...action.context,
|
|
959
975
|
signer: {
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
signatures: [...actionSigner?.signatures ?? [], signature]
|
|
976
|
+
...actionSignerIdentity(signer),
|
|
977
|
+
signatures: [...action.context?.signer?.signatures ?? [], signature]
|
|
963
978
|
}
|
|
964
979
|
}
|
|
965
980
|
};
|
|
966
981
|
}
|
|
982
|
+
/** The log a snapshot's action is written to; the snapshot names the branch read. */
|
|
983
|
+
function snapshotTarget(action, snapshot) {
|
|
984
|
+
return actionSigningTarget(action, snapshot.header.id, snapshot.header.branch || "main");
|
|
985
|
+
}
|
|
967
986
|
/**
|
|
968
987
|
* Actions a snapshot batch cannot predict the next state for.
|
|
969
988
|
*
|
|
970
|
-
* `UNDO
|
|
971
|
-
*
|
|
989
|
+
* `UNDO` and `REDO` rewrite history the light read path never fetched (and
|
|
990
|
+
* the reducer appends no operation for them); `NOOP` is only ever produced
|
|
972
991
|
* by an undo chain; the document-scope actions run through the reactor's
|
|
973
992
|
* document-action handler rather than a document-model reducer
|
|
974
993
|
* (`DOCUMENT_SCOPE_ACTIONS` in packages/reactor/src/executor/util.ts) and
|
|
975
994
|
* `UPGRADE_DOCUMENT` changes which reducer applies mid-batch.
|
|
976
995
|
*/
|
|
977
|
-
const unsupportedBatchActions = new Set([
|
|
996
|
+
const unsupportedBatchActions = /* @__PURE__ */ new Set([
|
|
978
997
|
"UNDO",
|
|
979
998
|
"REDO",
|
|
980
|
-
"PRUNE",
|
|
981
999
|
"NOOP",
|
|
982
1000
|
"CREATE_DOCUMENT",
|
|
983
1001
|
"DELETE_DOCUMENT",
|
|
@@ -1020,7 +1038,7 @@ const predictionProtocolVersion = 2;
|
|
|
1020
1038
|
*/
|
|
1021
1039
|
async function prepareSignedActions(actions, snapshot, signer, module, signal) {
|
|
1022
1040
|
if (actions.length === 0) return [];
|
|
1023
|
-
if (actions.length === 1) return [await signStampedAction(stampAction(actions[0], snapshot), signer, signal)];
|
|
1041
|
+
if (actions.length === 1) return [await signStampedAction(stampAction(actions[0], snapshot), signer, snapshotTarget(actions[0], snapshot), signal)];
|
|
1024
1042
|
const scope = sharedScope(actions);
|
|
1025
1043
|
assertSupportedBatch(actions);
|
|
1026
1044
|
if (!module) throw new Error(`cannot sign ${actions.length} actions: no document model module for ${snapshot.header.documentType} was supplied, so the batch state cannot be predicted`);
|
|
@@ -1035,7 +1053,8 @@ async function prepareSignedActions(actions, snapshot, signer, module, signal) {
|
|
|
1035
1053
|
const signed = [];
|
|
1036
1054
|
for (const [index, action] of actions.entries()) {
|
|
1037
1055
|
throwIfAborted(signal, index);
|
|
1038
|
-
const
|
|
1056
|
+
const stamped = stampAction(action, working, revision);
|
|
1057
|
+
const signedAction = await signStampedAction(stamped, signer, snapshotTarget(stamped, snapshot), signal);
|
|
1039
1058
|
signed.push(signedAction);
|
|
1040
1059
|
const before = scopeOperationCount(working, scope);
|
|
1041
1060
|
let next;
|
|
@@ -1285,6 +1304,30 @@ var SubgraphSdkRegistry = class {
|
|
|
1285
1304
|
//#endregion
|
|
1286
1305
|
//#region src/graphql-client/subscriptions.ts
|
|
1287
1306
|
/**
|
|
1307
|
+
* The 4403 close reasons a Switchboard refuses a handshake with.
|
|
1308
|
+
*
|
|
1309
|
+
* Mirrors `WS_AUTH_CLOSE_REASONS` in `@powerhousedao/reactor-api`
|
|
1310
|
+
* (`src/graphql/gateway/types.ts`). This package does not depend on that one,
|
|
1311
|
+
* so the strings are duplicated and are a wire contract: change them on both
|
|
1312
|
+
* sides or not at all.
|
|
1313
|
+
*/
|
|
1314
|
+
const authCloseReasons = ["authentication-required", "bearer-rejected"];
|
|
1315
|
+
/** graphql-ws's own `isLikeCloseEvent`, which it does not export. */
|
|
1316
|
+
function isLikeCloseEvent(value) {
|
|
1317
|
+
return typeof value === "object" && value !== null && "code" in value && "reason" in value;
|
|
1318
|
+
}
|
|
1319
|
+
/**
|
|
1320
|
+
* Whether a socket failure is the Switchboard refusing the credentials sent.
|
|
1321
|
+
*
|
|
1322
|
+
* Keyed on the close reason, not the code: both refusals close 4403, because
|
|
1323
|
+
* `connectionParams` is resolved per connect and a reconnect carrying a fresh
|
|
1324
|
+
* token genuinely succeeds. What the reason adds is that *this* attempt cannot
|
|
1325
|
+
* be fixed by repeating it.
|
|
1326
|
+
*/
|
|
1327
|
+
function isAuthRefusalClose(error) {
|
|
1328
|
+
return isLikeCloseEvent(error) && authCloseReasons.includes(error.reason);
|
|
1329
|
+
}
|
|
1330
|
+
/**
|
|
1288
1331
|
* Opens one `documentChanges` subscription and feeds every event to `onEvent`.
|
|
1289
1332
|
*
|
|
1290
1333
|
* The subscription is a firehose: no `search` argument, so the server sends
|
|
@@ -1297,7 +1340,8 @@ var SubgraphSdkRegistry = class {
|
|
|
1297
1340
|
function startDocumentChangesSubscription(options) {
|
|
1298
1341
|
const client = createClient({
|
|
1299
1342
|
url: options.wsUrl,
|
|
1300
|
-
connectionParams: options.connectionParams
|
|
1343
|
+
connectionParams: options.connectionParams,
|
|
1344
|
+
shouldRetry: (errOrCloseEvent) => isLikeCloseEvent(errOrCloseEvent) && !isAuthRefusalClose(errOrCloseEvent)
|
|
1301
1345
|
});
|
|
1302
1346
|
const unsubscribe = client.subscribe({
|
|
1303
1347
|
operationName: "DocumentChanges",
|
|
@@ -1380,6 +1424,8 @@ var GraphQLReactorClient = class {
|
|
|
1380
1424
|
realtimeStarted = false;
|
|
1381
1425
|
realtimeGeneration = 0;
|
|
1382
1426
|
realtimeErrorLogged = false;
|
|
1427
|
+
/** Whether the last socket died because the Switchboard refused its credentials. */
|
|
1428
|
+
realtimeRefusedCredentials = false;
|
|
1383
1429
|
constructor(options) {
|
|
1384
1430
|
this.tokenProvider = options.tokenProvider ?? ambientRenownTokenProvider;
|
|
1385
1431
|
this.documentModels = [...options.documentModels ?? []];
|
|
@@ -1419,7 +1465,6 @@ var GraphQLReactorClient = class {
|
|
|
1419
1465
|
results: page.items.map((item) => remoteOperationToLocal(item)),
|
|
1420
1466
|
options: effectivePaging,
|
|
1421
1467
|
nextCursor,
|
|
1422
|
-
totalCount: page.totalCount,
|
|
1423
1468
|
next: nextCursor ? () => this.getOperations(documentIdentifier, view, filter, {
|
|
1424
1469
|
cursor: nextCursor,
|
|
1425
1470
|
limit: effectivePaging.limit
|
|
@@ -1612,10 +1657,13 @@ var GraphQLReactorClient = class {
|
|
|
1612
1657
|
* Gives up on a failed socket so that a later subscriber can try again.
|
|
1613
1658
|
*
|
|
1614
1659
|
* `graphql-ws` retries on its own and only reports here once it has given up,
|
|
1615
|
-
* or once the
|
|
1616
|
-
*
|
|
1617
|
-
*
|
|
1618
|
-
*
|
|
1660
|
+
* or once the Switchboard refused the credentials the socket carried - which
|
|
1661
|
+
* `shouldRetry` declines to retry at all. Keeping the dead stop function
|
|
1662
|
+
* would make every later `subscribe` a no-op, so realtime would stay off for
|
|
1663
|
+
* the life of the page even after the user signs in.
|
|
1664
|
+
*
|
|
1665
|
+
* Why it died is recorded: a refusal is undone by a credential change and
|
|
1666
|
+
* nothing else, and {@link notifyCredentialsChanged} acts only on that.
|
|
1619
1667
|
*
|
|
1620
1668
|
* The generation stamp discards a report from a socket that has already been
|
|
1621
1669
|
* replaced or disposed.
|
|
@@ -1623,12 +1671,40 @@ var GraphQLReactorClient = class {
|
|
|
1623
1671
|
handleRealtimeFailure(generation, error) {
|
|
1624
1672
|
if (generation !== this.realtimeGeneration) return;
|
|
1625
1673
|
this.teardownRealtime();
|
|
1674
|
+
this.realtimeRefusedCredentials = isAuthRefusalClose(error);
|
|
1626
1675
|
this.logRealtimeError(error);
|
|
1627
1676
|
}
|
|
1677
|
+
/**
|
|
1678
|
+
* Reopens realtime after a sign-in, a sign-out or a token swap.
|
|
1679
|
+
*
|
|
1680
|
+
* Call it whenever the credentials this client authenticates with change.
|
|
1681
|
+
*
|
|
1682
|
+
* A live socket is replaced. `connectionParams` are resolved once, when the
|
|
1683
|
+
* socket opens, so a socket keeps presenting the credentials it was opened
|
|
1684
|
+
* with until something closes it - and a sign-out closes nothing. That left
|
|
1685
|
+
* a signed-out tab still receiving the previous identity's document changes,
|
|
1686
|
+
* on a shared machine, for as long as the socket happened to survive.
|
|
1687
|
+
*
|
|
1688
|
+
* A refused socket is reopened, for the same reason from the other side:
|
|
1689
|
+
* otherwise it stays closed until an unrelated component happens to
|
|
1690
|
+
* `subscribe`, so signing in leaves realtime off with nothing said - the
|
|
1691
|
+
* state `handleRealtimeFailure` resets to avoid.
|
|
1692
|
+
*
|
|
1693
|
+
* A socket that died for any other reason is left alone: a network failure
|
|
1694
|
+
* is not something a new token fixes, and reopening one here would turn a
|
|
1695
|
+
* credential change into a reconnect loop.
|
|
1696
|
+
*/
|
|
1697
|
+
notifyCredentialsChanged() {
|
|
1698
|
+
if (!this.realtimeStarted && !this.realtimeRefusedCredentials) return;
|
|
1699
|
+
this.teardownRealtime();
|
|
1700
|
+
if (this.listeners.length === 0) return;
|
|
1701
|
+
this.startRealtime();
|
|
1702
|
+
}
|
|
1628
1703
|
/** Closes the socket and lets a later subscriber open a new one. */
|
|
1629
1704
|
teardownRealtime() {
|
|
1630
1705
|
this.realtimeGeneration += 1;
|
|
1631
1706
|
this.realtimeStarted = false;
|
|
1707
|
+
this.realtimeRefusedCredentials = false;
|
|
1632
1708
|
this.stopRealtime?.();
|
|
1633
1709
|
this.stopRealtime = void 0;
|
|
1634
1710
|
}
|
|
@@ -1685,13 +1761,13 @@ function isGraphQLReactorClient(client) {
|
|
|
1685
1761
|
}
|
|
1686
1762
|
/** The schema's change types, mapped onto the reactor's. */
|
|
1687
1763
|
const documentChangeTypes = {
|
|
1688
|
-
[
|
|
1689
|
-
[
|
|
1690
|
-
[
|
|
1691
|
-
[
|
|
1692
|
-
[
|
|
1693
|
-
[
|
|
1694
|
-
[
|
|
1764
|
+
["CREATED"]: DOCUMENT_CHANGE_TYPE.Created,
|
|
1765
|
+
["DELETED"]: DOCUMENT_CHANGE_TYPE.Deleted,
|
|
1766
|
+
["UPDATED"]: DOCUMENT_CHANGE_TYPE.Updated,
|
|
1767
|
+
["PARENT_ADDED"]: DOCUMENT_CHANGE_TYPE.ParentAdded,
|
|
1768
|
+
["PARENT_REMOVED"]: DOCUMENT_CHANGE_TYPE.ParentRemoved,
|
|
1769
|
+
["CHILD_ADDED"]: DOCUMENT_CHANGE_TYPE.ChildAdded,
|
|
1770
|
+
["CHILD_REMOVED"]: DOCUMENT_CHANGE_TYPE.ChildRemoved
|
|
1695
1771
|
};
|
|
1696
1772
|
/**
|
|
1697
1773
|
* Decides whether an event reaches a subscriber.
|
|
@@ -1746,8 +1822,8 @@ function pagingInputFromPaging(paging) {
|
|
|
1746
1822
|
* `toReactorPropagationMode`.
|
|
1747
1823
|
*/
|
|
1748
1824
|
const propagationModeInputs = {
|
|
1749
|
-
cascade:
|
|
1750
|
-
none:
|
|
1825
|
+
cascade: "CASCADE",
|
|
1826
|
+
none: "ORPHAN"
|
|
1751
1827
|
};
|
|
1752
1828
|
function propagationModeInput(propagate) {
|
|
1753
1829
|
return propagate === void 0 ? void 0 : propagationModeInputs[propagate];
|
|
@@ -2457,89 +2533,91 @@ function useSwitchboardClient() {
|
|
|
2457
2533
|
}
|
|
2458
2534
|
//#endregion
|
|
2459
2535
|
//#region src/hooks/document-operations.ts
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
const
|
|
2469
|
-
const
|
|
2470
|
-
const
|
|
2471
|
-
globalOperations: [],
|
|
2472
|
-
localOperations: [],
|
|
2473
|
-
isLoading: !!documentId,
|
|
2474
|
-
error: void 0
|
|
2475
|
-
}));
|
|
2476
|
-
const fetchOperations = useCallback(async (retryCount = 0) => {
|
|
2477
|
-
const MAX_RETRIES = 5;
|
|
2478
|
-
const RETRY_DELAY_MS = 500;
|
|
2479
|
-
if (!documentId || !reactorClient) {
|
|
2480
|
-
setState({
|
|
2481
|
-
globalOperations: [],
|
|
2482
|
-
localOperations: [],
|
|
2483
|
-
isLoading: false,
|
|
2484
|
-
error: void 0
|
|
2485
|
-
});
|
|
2486
|
-
return;
|
|
2487
|
-
}
|
|
2488
|
-
setState((prev) => ({
|
|
2489
|
-
...prev,
|
|
2490
|
-
isLoading: true,
|
|
2491
|
-
error: void 0
|
|
2492
|
-
}));
|
|
2493
|
-
let globalOps = [];
|
|
2494
|
-
let localOps = [];
|
|
2495
|
-
let fetchError;
|
|
2496
|
-
try {
|
|
2497
|
-
globalOps = (await reactorClient.getOperations(documentId, { scopes: ["global"] })).results;
|
|
2498
|
-
} catch (err) {
|
|
2499
|
-
fetchError = err instanceof Error ? err : new Error(String(err));
|
|
2500
|
-
}
|
|
2501
|
-
if (!fetchError) try {
|
|
2502
|
-
localOps = (await reactorClient.getOperations(documentId, { scopes: ["local"] })).results;
|
|
2503
|
-
} catch (err) {
|
|
2504
|
-
fetchError = err instanceof Error ? err : new Error(String(err));
|
|
2505
|
-
}
|
|
2506
|
-
if (!fetchError && globalOps.length === 0 && localOps.length === 0 && retryCount < MAX_RETRIES) {
|
|
2507
|
-
await new Promise((resolve) => setTimeout(resolve, RETRY_DELAY_MS));
|
|
2508
|
-
return fetchOperations(retryCount + 1);
|
|
2509
|
-
}
|
|
2510
|
-
setState({
|
|
2511
|
-
globalOperations: globalOps,
|
|
2512
|
-
localOperations: localOps,
|
|
2513
|
-
isLoading: false,
|
|
2514
|
-
error: fetchError
|
|
2515
|
-
});
|
|
2516
|
-
hasFetchedRef.current = true;
|
|
2517
|
-
}, [documentId, reactorClient]);
|
|
2536
|
+
const DEFAULT_LIMIT = 100;
|
|
2537
|
+
function toError(reason) {
|
|
2538
|
+
return reason instanceof Error ? reason : new Error(String(reason));
|
|
2539
|
+
}
|
|
2540
|
+
const EMPTY_OPERATIONS = [];
|
|
2541
|
+
function useScopeOperations(documentId, scope, options = {}) {
|
|
2542
|
+
const { limit = DEFAULT_LIMIT, enabled = true } = options;
|
|
2543
|
+
const documentCache = useDocumentCache();
|
|
2544
|
+
const cache = documentCache && isOperationCache(documentCache) ? documentCache : void 0;
|
|
2545
|
+
const activeId = enabled && cache && documentId ? documentId : void 0;
|
|
2546
|
+
const entry = useSyncExternalStore((onChange) => activeId && cache ? cache.subscribeOperations(activeId, onChange) : () => {}, () => activeId && cache ? cache.getOperationsState(activeId, scope) : IDLE_OPERATIONS_ENTRY);
|
|
2518
2547
|
useEffect(() => {
|
|
2519
|
-
if (
|
|
2520
|
-
else if (!documentId) {
|
|
2521
|
-
setState({
|
|
2522
|
-
globalOperations: [],
|
|
2523
|
-
localOperations: [],
|
|
2524
|
-
isLoading: false,
|
|
2525
|
-
error: void 0
|
|
2526
|
-
});
|
|
2527
|
-
hasFetchedRef.current = false;
|
|
2528
|
-
}
|
|
2548
|
+
if (activeId && cache && entry.status === "idle") cache.loadOperations(activeId, scope, limit);
|
|
2529
2549
|
}, [
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2550
|
+
activeId,
|
|
2551
|
+
cache,
|
|
2552
|
+
scope,
|
|
2553
|
+
limit,
|
|
2554
|
+
entry.status
|
|
2555
|
+
]);
|
|
2556
|
+
const fetchNextPage = useCallback(() => {
|
|
2557
|
+
if (activeId && cache) cache.loadMoreOperations(activeId, scope);
|
|
2558
|
+
}, [
|
|
2559
|
+
activeId,
|
|
2560
|
+
cache,
|
|
2561
|
+
scope
|
|
2533
2562
|
]);
|
|
2534
2563
|
const refetch = useCallback(() => {
|
|
2535
|
-
|
|
2536
|
-
}, [
|
|
2564
|
+
if (activeId && cache) cache.invalidateOperations(activeId);
|
|
2565
|
+
}, [activeId, cache]);
|
|
2566
|
+
const error = useMemo(() => entry.status === "error" ? toError(entry.error) : void 0, [entry.status, entry.error]);
|
|
2537
2567
|
return {
|
|
2538
|
-
|
|
2568
|
+
operations: entry.operations,
|
|
2569
|
+
isLoading: entry.status === "pending" || !!activeId && entry.status === "idle",
|
|
2570
|
+
error,
|
|
2571
|
+
hasNextPage: entry.hasNextPage,
|
|
2572
|
+
fetchNextPage,
|
|
2539
2573
|
refetch
|
|
2540
2574
|
};
|
|
2541
2575
|
}
|
|
2576
|
+
/** Keeps paging `result` to completion while `enabled` is true. */
|
|
2577
|
+
function useLoadAllPages(result, enabled) {
|
|
2578
|
+
useEffect(() => {
|
|
2579
|
+
if (!enabled || !result.hasNextPage || result.isLoading) return;
|
|
2580
|
+
const handle = window.setTimeout(result.fetchNextPage, 0);
|
|
2581
|
+
return () => window.clearTimeout(handle);
|
|
2582
|
+
}, [
|
|
2583
|
+
enabled,
|
|
2584
|
+
result.hasNextPage,
|
|
2585
|
+
result.isLoading,
|
|
2586
|
+
result.fetchNextPage
|
|
2587
|
+
]);
|
|
2588
|
+
}
|
|
2589
|
+
function useDocumentOperations(documentId, scope, options = {}) {
|
|
2590
|
+
const legacy = scope === void 0;
|
|
2591
|
+
const primary = useScopeOperations(documentId, legacy ? "global" : scope, legacy ? {} : options);
|
|
2592
|
+
const local = useScopeOperations(documentId, "local", { enabled: legacy });
|
|
2593
|
+
useLoadAllPages(primary, legacy);
|
|
2594
|
+
useLoadAllPages(local, legacy);
|
|
2595
|
+
const globalOperations = useMemo(() => legacy ? [...primary.operations] : EMPTY_OPERATIONS, [legacy, primary.operations]);
|
|
2596
|
+
const localOperations = useMemo(() => legacy ? [...local.operations] : EMPTY_OPERATIONS, [legacy, local.operations]);
|
|
2597
|
+
const refetch = useCallback(() => {
|
|
2598
|
+
primary.refetch();
|
|
2599
|
+
local.refetch();
|
|
2600
|
+
}, [primary.refetch, local.refetch]);
|
|
2601
|
+
const error = primary.error ?? local.error;
|
|
2602
|
+
const legacyResult = useMemo(() => ({
|
|
2603
|
+
globalOperations,
|
|
2604
|
+
localOperations,
|
|
2605
|
+
isLoading: !error && (primary.isLoading || local.isLoading || primary.hasNextPage || local.hasNextPage),
|
|
2606
|
+
error,
|
|
2607
|
+
refetch
|
|
2608
|
+
}), [
|
|
2609
|
+
globalOperations,
|
|
2610
|
+
localOperations,
|
|
2611
|
+
error,
|
|
2612
|
+
primary.isLoading,
|
|
2613
|
+
local.isLoading,
|
|
2614
|
+
primary.hasNextPage,
|
|
2615
|
+
local.hasNextPage,
|
|
2616
|
+
refetch
|
|
2617
|
+
]);
|
|
2618
|
+
return legacy ? legacyResult : primary;
|
|
2619
|
+
}
|
|
2542
2620
|
//#endregion
|
|
2543
|
-
export { addDefaultDrivesUrlEventHandler as $, useIsAddLocalDrivesEnabled as $n,
|
|
2621
|
+
export { addDefaultDrivesUrlEventHandler as $, useIsAddLocalDrivesEnabled as $n, isAuthRefusalClose as $r, setEnabledEditors as $t, useReactorClientModule as A, fetchDocumentOperations as Ai, setRenownUrl as An, useSentryRelease as Ar, addRenownAdaptersEventHandler as At, useDragNode as B, addModalEventHandler as Bi, setWarnOutdatedApp as Bn, phAppConfigHooks as Br, addSwitchboardUrlEventHandler as Bt, addReactorClientModuleEventHandler as C, addDocument as Ci, setIsRelationalProcessorsEnabled as Cn, useRenownChainId as Cr, addIsExternalRelationalProcessorsEnabledEventHandler as Ct, useModelRegistry as D, deleteNode as Di, setRenownAdapters as Dn, useRouterBasename as Dr, addIsSentryTracingEnabledEventHandler as Dt, useDatabase as E, copyNode$1 as Ei, setLogLevel as En, useRequiresHardRefresh as Er, addIsRelationalProcessorsEnabledEventHandler as Et, usePackageDiscoveryService as F, renameNode as Fi, setSentryRelease as Fn, useWarnOutdatedApp as Fr, addRouterBasenameEventHandler as Ft, useFeatures as G, showPHModal as Gi, useDefaultDrivesUrl as Gn, setIsDragAndDropEnabled as Gr, phGlobalConfigSetters as Gt, useDropTarget as H, setPHModal as Hi, useAnalyticsDatabaseName as Hn, phDocumentEditorConfigHooks as Hr, addVersionEventHandler as Ht, addGraphQLReactorClientEventHandler as I, setPreferredEditorOnNode as Ii, setStudioMode as In, addAllowedDocumentTypesEventHandler as Ir, addSentryDsnEventHandler as It, useAttachmentService as J, useEnabledEditors as Jn, useIsDragAndDropEnabled as Jr, setBasePath as Jt, addAttachmentServiceEventHandler as K, usePHModal as Ki, useDisabledEditors as Kn, setIsExternalControlsEnabled as Kr, setAllowList as Kt, setGraphQLReactorClient as L, upgradeDocument as Li, setSwitchboardUrl as Ln, addIsDragAndDropEnabledEventHandler as Lr, addSentryEnvEventHandler as Lt, useSyncList as M, loadFile as Mi, setRouterBasename as Mn, useSwitchboardUrl as Mr, addRenownNetworkIdEventHandler as Mt, addPackageDiscoveryServiceEventHandler as N, moveNode$1 as Ni, setSentryDsn as Nn, useVersion as Nr, addRenownUrlEventHandler as Nt, usePGlite as O, exportFile as Oi, setRenownChainId as On, useSentryDsn as Or, addLocalDrivesEnabledEventHandler as Ot, setPackageDiscoveryService as P, renameDriveNode as Pi, setSentryEnv as Pn, useVersionCheckInterval as Pr, addRequiresHardRefreshEventHandler as Pt, addCliVersionEventHandler as Q, useIsAddDriveEnabled as Qn, viewFilterInputFromViewFilter as Qr, setDrivesPreserveStrategy as Qt, useGraphQLReactorClient as R, getUserPermissions as Ri, setVersion as Rn, addIsExternalControlsEnabledEventHandler as Rr, addSentryReleaseEventHandler as Rt, addReactorClientEventHandler as S, screamingSnakeToCamel as Si, setIsPublicDrivesEnabled as Sn, useRenownAdapters as Sr, addIsExternalProcessorsEnabledEventHandler as St, setReactorClientModule as T, addFolder$1 as Ti, setLocalDrivesEnabled as Tn, useRenownUrl as Tr, addIsPublicDrivesEnabledEventHandler as Tt, addFeaturesEventHandler as U, showCreateDocumentModal as Ui, useBasePath as Un, phDocumentEditorConfigSetters as Ur, addWarnOutdatedAppEventHandler as Ut, useDropNode as V, closePHModal as Vi, useAllowList as Vn, phAppConfigSetters as Vr, addVersionCheckIntervalEventHandler as Vt, setFeatures as W, showDeleteNodeModal as Wi, useCliVersion as Wn, setAllowedDocumentTypes as Wr, phGlobalConfigHooks as Wt, addAnalyticsDatabaseNameEventHandler as X, useGaTrackingId as Xn, GraphQLReactorClient as Xr, setDefaultDrivesUrl as Xt, addAllowListEventHandler as Y, useFileUploadOperationsChunkSize as Yn, useIsExternalControlsEnabled as Yr, setCliVersion as Yt, addBasePathEventHandler as Z, useIsAddCloudDrivesEnabled as Zn, isGraphQLReactorClient as Zr, setDisabledEditors as Zt, addRevisionHistoryVisibleEventHandler as _, ConflictError as _i, setIsEditorReadModeEnabled as _n, useIsPublicDrivesEnabled as _r, addIsDocumentModelSelectionSettingsEnabledEventHandler as _t, addPHEventHandlers as a, subgraphUrlFromGraphqlUrl as ai, setIsAddPublicDrivesEnabled as an, useIsDeleteCloudDrivesEnabled as ar, addIsAddCloudDrivesEnabledEventHandler as at, showRevisionHistory as b, extractRevisionMap as bi, setIsExternalRelationalProcessorsEnabled as bn, useLocalDrivesEnabled as br, addIsEditorReadModeEnabledEventHandler as bt, addToastEventHandler as c, resolveDocumentModelModule as ci, setIsAnalyticsExternalProcessorsEnabled as cn, useIsDiffAnalyticsEnabled as cr, addIsAddPublicDrivesEnabledEventHandler as ct, addSelectedTimelineRevisionEventHandler as d, stampAction as di, setIsDeleteLocalDrivesEnabled as dn, useIsEditorDebugModeEnabled as dr, addIsAnalyticsExternalProcessorsEnabledEventHandler as dt, makeAuthConnectionParams as ei, setFileUploadOperationsChunkSize as en, useIsAddPublicDrivesEnabled as er, addDisabledEditorsEventHandler as et, setSelectedTimelineRevision as f, MutateDocumentWithOperationsDocument as fi, setIsDeletePublicDrivesEnabled as fn, useIsEditorReadModeEnabled as fr, addIsCloudDrivesEnabledEventHandler as ft, useSelectedTimelineItem as g, revisionMapFromRevisionsList as gi, setIsEditorDebugModeEnabled as gn, useIsLocalDrivesEnabled as gr, addIsDiffAnalyticsEnabledEventHandler as gt, setSelectedTimelineItem as h, phDocumentFromMutation as hi, setIsDriveAnalyticsEnabled as hn, useIsExternalRelationalProcessorsEnabled as hr, addIsDeletePublicDrivesEnabledEventHandler as ht, useSwitchboardClient as i, describeGraphQLDocument as ii, setIsAddLocalDrivesEnabled as in, useIsCloudDrivesEnabled as ir, addGaTrackingIdEventHandler as it, useSync as j, getDocumentExtension as ji, setRequiresHardRefresh as jn, useStudioMode as jr, addRenownChainIdEventHandler as jt, useReactorClient as k, extractInitialState as ki, setRenownNetworkId as kn, useSentryEnv as kr, addLogLevelEventHandler as kt, setPHToast as l, prepareSignedActions as li, setIsCloudDrivesEnabled as ln, useIsDocumentModelSelectionSettingsEnabled as lr, addIsAnalyticsDatabaseWorkerEnabledEventHandler as lt, addSelectedTimelineItemEventHandler as m, phDocumentFromGetDocument as mi, setIsDocumentModelSelectionSettingsEnabled as mn, useIsExternalProcessorsEnabled as mr, addIsDeleteLocalDrivesEnabledEventHandler as mt, GraphQLReactorProvider as n, subscriptionsUrlFromGraphqlUrl as ni, setIsAddCloudDrivesEnabled as nn, useIsAnalyticsEnabled as nr, addEnabledEditorsEventHandler as nt, callEventHandlerRegisterFunctions as o, StaticPackageManager as oi, setIsAnalyticsDatabaseWorkerEnabled as on, useIsDeleteLocalDrivesEnabled as or, addIsAddDriveEnabledEventHandler as ot, useSelectedTimelineRevision as p, ReactorOperationFieldsFragmentDoc as pi, setIsDiffAnalyticsEnabled as pn, useIsExternalPackagesEnabled as pr, addIsDeleteCloudDrivesEnabledEventHandler as pt, setAttachmentService as q, useDrivesPreserveStrategy as qn, useAllowedDocumentTypes as qr, setAnalyticsDatabaseName as qt, ensurePHEventHandlers as r, SubgraphSdkRegistry as ri, setIsAddDriveEnabled as rn, useIsAnalyticsExternalProcessorsEnabled as rr, addFileUploadOperationsChunkSizeEventHandler as rt, commonGlobalEventHandlerFunctions as s, packageFromDocumentModels as si, setIsAnalyticsEnabled as sn, useIsDeletePublicDrivesEnabled as sr, addIsAddLocalDrivesEnabledEventHandler as st, useDocumentOperations as t, startDocumentChangesSubscription as ti, setGaTrackingId as tn, useIsAnalyticsDatabaseWorkerEnabled as tr, addDrivesPreserveStrategyEventHandler as tt, usePHToast as u, signStampedAction as ui, setIsDeleteCloudDrivesEnabled as un, useIsDriveAnalyticsEnabled as ur, addIsAnalyticsEnabledEventHandler as ut, hideRevisionHistory as v, buildPulledDocument as vi, setIsExternalPackagesEnabled as vn, useIsRelationalProcessorsEnabled as vr, addIsDriveAnalyticsEnabledEventHandler as vt, setReactorClient as w, addFileWithProgress as wi, setIsSentryTracingEnabled as wn, useRenownNetworkId as wr, addIsLocalDrivesEnabledEventHandler as wt, useRevisionHistoryVisible as x, hasRevisionConflict as xi, setIsLocalDrivesEnabled as xn, useLogLevel as xr, addIsExternalPackagesEnabledEventHandler as xt, setRevisionHistoryVisible as y, convertRemoteOperations as yi, setIsExternalProcessorsEnabled as yn, useIsSentryTracingEnabled as yr, addIsEditorDebugModeEnabledEventHandler as yt, addDraggingNodeEventHandler as z, isDocumentTypeSupported as zi, setVersionCheckInterval as zn, isExternalControlsEnabledEventFunctions as zr, addStudioModeEventHandler as zt };
|
|
2544
2622
|
|
|
2545
|
-
//# sourceMappingURL=document-operations-
|
|
2623
|
+
//# sourceMappingURL=document-operations-D16LsXDs.js.map
|