@powerhousedao/reactor-browser 6.2.2-dev.75 → 6.2.2-dev.77

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.
Files changed (60) hide show
  1. package/dist/{attachment-service-DTFJRf5j.d.ts → attachment-service-LwpgZ358.d.ts} +4 -4
  2. package/dist/{attachment-service-DTFJRf5j.d.ts.map → attachment-service-LwpgZ358.d.ts.map} +1 -1
  3. package/dist/{client-Zz_l9QzI.js → client-B8ezRmBB.js} +1 -1
  4. package/dist/{client-Zz_l9QzI.js.map → client-B8ezRmBB.js.map} +1 -1
  5. package/dist/{client-DjkEpwu_.d.ts → client-BIHN_UyR.d.ts} +2 -2
  6. package/dist/{client-DjkEpwu_.d.ts.map → client-BIHN_UyR.d.ts.map} +1 -1
  7. package/dist/{client-DB8gP4hz.js → client-D66jVnot.js} +1 -1
  8. package/dist/{client-DB8gP4hz.js.map → client-D66jVnot.js.map} +1 -1
  9. package/dist/document-model-modules-BB9s6a3m.js +377 -0
  10. package/dist/document-model-modules-BB9s6a3m.js.map +1 -0
  11. package/dist/{document-operations-B2lxu6qg.js → document-operations-I1cGIcPg.js} +15 -378
  12. package/dist/document-operations-I1cGIcPg.js.map +1 -0
  13. package/dist/{global-pg5gy2eZ.d.ts → global-1rvI8VdA.d.ts} +4 -4
  14. package/dist/{global-pg5gy2eZ.d.ts.map → global-1rvI8VdA.d.ts.map} +1 -1
  15. package/dist/{index-BV00np9e.d.ts → index-BE3wBHLP.d.ts} +3 -3
  16. package/dist/index-BE3wBHLP.d.ts.map +1 -0
  17. package/dist/{index-CxxxP14A.d.ts → index-BIVDXw3K.d.ts} +2 -2
  18. package/dist/{index-CxxxP14A.d.ts.map → index-BIVDXw3K.d.ts.map} +1 -1
  19. package/dist/index.d.ts +10 -9
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +12 -45
  22. package/dist/index.js.map +1 -1
  23. package/dist/{inspector-proxy-CaCFdEG4.d.ts → inspector-proxy-6h5VKAwt.d.ts} +1 -1
  24. package/dist/{inspector-proxy-CaCFdEG4.d.ts.map → inspector-proxy-6h5VKAwt.d.ts.map} +1 -1
  25. package/dist/{pglite-CntadC_p-BtEalg1H.d.ts → pglite-CntadC_p-9NDG14dS.d.ts} +1 -1
  26. package/dist/{pglite-CntadC_p-BtEalg1H.d.ts.map → pglite-CntadC_p-9NDG14dS.d.ts.map} +1 -1
  27. package/dist/{relational-C_0GdGVN.js → relational-D4sxGPz7.js} +1 -1
  28. package/dist/{relational-C_0GdGVN.js.map → relational-D4sxGPz7.js.map} +1 -1
  29. package/dist/{renown-6w_ImTvm.js → renown-BHxwP7xU.js} +1 -1
  30. package/dist/{renown-6w_ImTvm.js.map → renown-BHxwP7xU.js.map} +1 -1
  31. package/dist/{renown-DRnlawbP.js → renown-BIEv6bSI.js} +3 -3
  32. package/dist/renown-BIEv6bSI.js.map +1 -0
  33. package/dist/selected-document-CtRlEZyi.js +42 -0
  34. package/dist/selected-document-CtRlEZyi.js.map +1 -0
  35. package/dist/src/ai/index.d.ts +267 -0
  36. package/dist/src/ai/index.d.ts.map +1 -0
  37. package/dist/src/ai/index.js +951 -0
  38. package/dist/src/ai/index.js.map +1 -0
  39. package/dist/src/analytics/index.d.ts +1 -1
  40. package/dist/src/analytics/index.js +1 -1
  41. package/dist/src/graphql/client.d.ts +2 -2
  42. package/dist/src/graphql/client.js +1 -1
  43. package/dist/src/graphql-client/entry.d.ts +3 -3
  44. package/dist/src/graphql-client/entry.js +2 -1
  45. package/dist/src/relational/index.d.ts +1 -1
  46. package/dist/src/relational/index.js +1 -1
  47. package/dist/src/renown/index.d.ts +1 -1
  48. package/dist/src/renown/index.js +2 -2
  49. package/dist/src/rpc/index.d.ts +2 -2
  50. package/dist/src/rpc/index.js +1 -1
  51. package/dist/{store-DAJq6vSs.js → store-BJYcr_FL.js} +1 -1
  52. package/dist/{store-DAJq6vSs.js.map → store-BJYcr_FL.js.map} +1 -1
  53. package/dist/{types-wGaiXwjh.d.ts → types-6vDzbRRS.d.ts} +1 -1
  54. package/dist/{types-wGaiXwjh.d.ts.map → types-6vDzbRRS.d.ts.map} +1 -1
  55. package/dist/{types-4rfAFZQd.d.ts → types-Dcv1ZLoW.d.ts} +1 -1
  56. package/dist/{types-4rfAFZQd.d.ts.map → types-Dcv1ZLoW.d.ts.map} +1 -1
  57. package/package.json +19 -9
  58. package/dist/document-operations-B2lxu6qg.js.map +0 -1
  59. package/dist/index-BV00np9e.d.ts.map +0 -1
  60. package/dist/renown-DRnlawbP.js.map +0 -1
@@ -1,50 +1,18 @@
1
- import { S as uploadOperations, _ as isDuplicateManifestError, a as setDocumentCache, b as queueActions, g as DOCUMENT_CHANGE_TYPE, i as addDocumentCacheEventHandler, n as useDocumentsByIds, p as DocumentCache, r as useDispatch, v as isDuplicateModuleError, x as queueOperations } from "./document-by-id-BSZqTN66.js";
1
+ import { S as uploadOperations, a as setDocumentCache, b as queueActions, g as DOCUMENT_CHANGE_TYPE, i as addDocumentCacheEventHandler, p as DocumentCache, x as queueOperations } from "./document-by-id-BSZqTN66.js";
2
+ import { C as addResetSelectedNodeEventHandler, D as addDrivesEventHandler, G as UnsupportedDocumentTypeError, H as DocumentModelNotFoundError, T as addSetSelectedNodeOnPopStateEventHandler, _ as addSetSelectedDriveOnPopStateEventHandler, g as addSelectedDriveIdEventHandler, i as setVetraPackageManager, r as addVetraPackageManagerEventHandler, w as addSelectedNodeIdEventHandler, x as useSelectedDriveId } from "./document-model-modules-BB9s6a3m.js";
2
3
  import { t as makePHEventFunctions } from "./make-ph-event-functions-DBq3iWYn.js";
3
- import { a as PhDocumentFieldsFragmentDoc, n as DocumentChangeType, o as PropagationMode, r as DocumentChangesDocument, t as createClient$1 } from "./client-DB8gP4hz.js";
4
- import { f as addLoadingEventHandler, t as addRenownEventHandler } from "./renown-6w_ImTvm.js";
4
+ import { a as PhDocumentFieldsFragmentDoc, n as DocumentChangeType, o as PropagationMode, r as DocumentChangesDocument, t as createClient$1 } from "./client-D66jVnot.js";
5
+ import { f as addLoadingEventHandler, t as addRenownEventHandler } from "./renown-BHxwP7xU.js";
5
6
  import { logger } from "document-model";
6
- import { UnsupportedDocumentModelVersionError, assertAuthPreservedOnDuplicate, baseLoadFromInput, baseLoadFromInputVersioned, baseSaveToFileHandle, createPresignedHeader, createZip, deserializeSignature, documentModelDocumentType, generateId, hashDocumentStateForScope, normalizeDocumentModelVersion, replayDocumentVersioned, setName, toTransportAction } from "@powerhousedao/shared/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";
7
8
  import { addFolder, copyNode, generateNodesCopy, handleTargetNameCollisions, isFileNode, isFolderNode, moveNode, updateNode } from "@powerhousedao/shared/document-drive";
8
9
  import { allPass, conditional, constant, forEachObj, funnel, isDefined, isNot, isStrictEqual, isString, isTruthy, once } from "remeda";
9
- import { useCallback, useEffect, useRef, useState, useSyncExternalStore } from "react";
10
+ import { useCallback, useEffect, useRef, useState } from "react";
10
11
  import { GraphQLClient } from "graphql-request";
11
12
  import { gql } from "graphql-tag";
12
13
  import { Kind, print } from "graphql";
13
14
  import { createClient } from "graphql-ws/client";
14
- import slug from "slug";
15
15
  import { Fragment, jsx } from "react/jsx-runtime";
16
- //#region src/errors.ts
17
- var UnsupportedDocumentTypeError = class extends Error {
18
- constructor(documentType) {
19
- super(`Document type ${documentType} is not supported`);
20
- this.name = "UnsupportedDocumentTypeError";
21
- }
22
- static isError(error) {
23
- return Error.isError(error) && error.name === "UnsupportedDocumentTypeError";
24
- }
25
- };
26
- var DocumentModelNotFoundError = class extends Error {
27
- documentType;
28
- name = "DocumentModelNotFoundError";
29
- constructor(documentType) {
30
- super(`Document model module for type ${documentType} not found`);
31
- this.documentType = documentType;
32
- }
33
- static isError(error) {
34
- return Error.isError(error) && error.name === "DocumentModelNotFoundError";
35
- }
36
- };
37
- var DocumentTypeMismatchError = class extends Error {
38
- constructor(documentId, expectedType, actualType) {
39
- super(`Document ${documentId} is not of type ${expectedType}. Actual type: ${actualType}`);
40
- }
41
- };
42
- var NoSelectedDocumentError = class extends Error {
43
- constructor() {
44
- super("There is no selected document. Did you mean to call 'useSelectedDocumentSafe' instead?");
45
- }
46
- };
47
- //#endregion
48
16
  //#region src/hooks/modals.ts
49
17
  const modalEventFunctions = makePHEventFunctions("modal");
50
18
  /** Returns the current modal */
@@ -590,6 +558,13 @@ async function renameDriveNode(driveId, nodeId, name) {
590
558
  })]);
591
559
  return (await reactorClient.get(driveId)).state.global.nodes.find((n) => n.id === nodeId);
592
560
  }
561
+ async function setPreferredEditorOnNode(nodeId, preferredEditor) {
562
+ const { isAllowedToCreateDocuments } = getUserPermissions();
563
+ if (!isAllowedToCreateDocuments) throw new Error("User is not allowed to modify documents");
564
+ const reactorClient = window.ph?.reactorClient;
565
+ if (!reactorClient) throw new Error("ReactorClient not initialized");
566
+ return reactorClient.execute(nodeId, "main", [setPreferredEditor(preferredEditor)]);
567
+ }
593
568
  async function moveNodeById(args) {
594
569
  const { driveId, srcId, targetId } = args;
595
570
  if (!driveId || !srcId) return;
@@ -2128,214 +2103,6 @@ const useFeatures = featuresEventFunctions.useValue;
2128
2103
  const setFeatures = featuresEventFunctions.setValue;
2129
2104
  const addFeaturesEventHandler = featuresEventFunctions.addEventHandler;
2130
2105
  //#endregion
2131
- //#region src/utils/url.ts
2132
- function resolveUrlPathname(path) {
2133
- return new URL(path.replace(/^\/+/, ""), window.location.origin + (window.ph?.basePath ?? "/")).pathname;
2134
- }
2135
- /** Returns the current path without the base path */
2136
- function getPathWithoutBase(path) {
2137
- const basePath = window.ph?.basePath ?? "/";
2138
- return path.replace(basePath, basePath.endsWith("/") ? "/" : "");
2139
- }
2140
- /** Makes a URL component for a drive. */
2141
- function makeDriveUrlComponent(drive) {
2142
- if (!drive) return "";
2143
- return `/d/${slug(drive.header.slug)}`;
2144
- }
2145
- /** Makes a URL component for a node. */
2146
- function makeNodeSlug(node) {
2147
- if (!node) return "";
2148
- const nodeName = node.name;
2149
- if (!nodeName) return slug(node.id);
2150
- return slug(`${nodeName}-${node.id}`);
2151
- }
2152
- /** Extracts the node slug from a path.
2153
- *
2154
- * The path is expected to be in the format `/d/<drive-slug>/<node-slug>`.
2155
- */
2156
- function extractNodeSlugFromPath(path) {
2157
- const currentPath = getPathWithoutBase(path);
2158
- return /^\/d\/[^/]+\/([^/]+)$/.exec(currentPath)?.[1];
2159
- }
2160
- /** Finds a UUID in a string, used for extracting node ids from node slugs in the URL. */
2161
- function findUuid(input) {
2162
- if (!input) return void 0;
2163
- return /\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b/.exec(input)?.[0];
2164
- }
2165
- function extractNodeIdFromSlug(nodeSlug) {
2166
- return findUuid(nodeSlug);
2167
- }
2168
- function extractNodeIdFromPath(path) {
2169
- return extractNodeIdFromSlug(extractNodeSlugFromPath(path));
2170
- }
2171
- /** Extracts the drive slug from a path.
2172
- * Used for extracting drive ids from drive slugs in the URL.
2173
- * Expects the path to be in the format `/d/<drive-slug>`.
2174
- */
2175
- function extractDriveSlugFromPath(path) {
2176
- const currentPath = getPathWithoutBase(path);
2177
- return /^\/d\/([^/]+)/.exec(currentPath)?.[1] ?? "";
2178
- }
2179
- function extractDriveIdFromSlug(driveSlug) {
2180
- return findUuid(driveSlug);
2181
- }
2182
- function extractDriveIdFromPath(path) {
2183
- return extractDriveIdFromSlug(extractDriveSlugFromPath(path));
2184
- }
2185
- /**
2186
- * Creates a URL string with the given pathname while preserving existing query parameters.
2187
- */
2188
- function createUrlWithPreservedParams(pathname) {
2189
- const search = window.location.search;
2190
- return search ? `${pathname}${search}` : pathname;
2191
- }
2192
- //#endregion
2193
- //#region src/hooks/drives.ts
2194
- const drivesEventFunctions = makePHEventFunctions("drives");
2195
- /** Returns all of the drives in the reactor */
2196
- const useDrives = drivesEventFunctions.useValue;
2197
- /** Sets the drives in the reactor */
2198
- const setDrives = drivesEventFunctions.setValue;
2199
- /** Adds an event handler for the drives */
2200
- const addDrivesEventHandler = drivesEventFunctions.addEventHandler;
2201
- //#endregion
2202
- //#region src/hooks/set-selected-node.ts
2203
- const selectedNodeIdEventFunctions = makePHEventFunctions("selectedNodeId");
2204
- const useSelectedNodeId = selectedNodeIdEventFunctions.useValue;
2205
- const setSelectedNodeId = selectedNodeIdEventFunctions.setValue;
2206
- const addSelectedNodeIdEventHandler = selectedNodeIdEventFunctions.addEventHandler;
2207
- /** Sets the selected node (file or folder). */
2208
- function setSelectedNode(nodeOrNodeSlug) {
2209
- const nodeSlug = typeof nodeOrNodeSlug === "string" ? nodeOrNodeSlug : makeNodeSlug(nodeOrNodeSlug);
2210
- setSelectedNodeId(extractNodeIdFromSlug(nodeSlug));
2211
- const driveSlugFromPath = extractDriveSlugFromPath(window.location.pathname);
2212
- if (!driveSlugFromPath) return;
2213
- if (!nodeSlug) {
2214
- const pathname = resolveUrlPathname(`/d/${driveSlugFromPath}`);
2215
- if (pathname === window.location.pathname) return;
2216
- window.history.pushState(null, "", createUrlWithPreservedParams(pathname));
2217
- return;
2218
- }
2219
- const pathname = resolveUrlPathname(`/d/${driveSlugFromPath}/${nodeSlug}`);
2220
- if (pathname === window.location.pathname) return;
2221
- window.history.pushState(null, "", createUrlWithPreservedParams(pathname));
2222
- }
2223
- function addResetSelectedNodeEventHandler() {
2224
- window.addEventListener("ph:selectedDriveIdUpdated", () => {
2225
- setSelectedNodeId(void 0);
2226
- });
2227
- }
2228
- function addSetSelectedNodeOnPopStateEventHandler() {
2229
- window.addEventListener("popstate", () => {
2230
- const pathname = window.location.pathname;
2231
- const nodeSlug = extractNodeSlugFromPath(pathname);
2232
- if (extractNodeIdFromSlug(nodeSlug) !== window.ph?.selectedNodeId) setSelectedNode(nodeSlug);
2233
- });
2234
- }
2235
- //#endregion
2236
- //#region src/hooks/selected-drive.ts
2237
- const selectedDriveIdEventFunctions = makePHEventFunctions("selectedDriveId");
2238
- /** Returns the selected drive id */
2239
- const useSelectedDriveId = selectedDriveIdEventFunctions.useValue;
2240
- /** Sets the selected drive id */
2241
- const setSelectedDriveId = selectedDriveIdEventFunctions.setValue;
2242
- /** Adds an event handler for the selected drive id */
2243
- const addSelectedDriveIdEventHandler = selectedDriveIdEventFunctions.addEventHandler;
2244
- /** Returns the selected drive */
2245
- function useSelectedDrive() {
2246
- const drive = useSelectedDriveSafe();
2247
- if (!drive[0]) throw new Error("There is no drive selected. Did you mean to call 'useSelectedDriveSafe'?");
2248
- return drive;
2249
- }
2250
- /** Returns the selected drive, or undefined if no drive is selected */
2251
- function useSelectedDriveSafe() {
2252
- const selectedDriveId = useSelectedDriveId();
2253
- const selectedDrive = useDrives()?.find((drive) => drive.header.id === selectedDriveId);
2254
- const [drive, dispatch] = useDispatch(selectedDrive);
2255
- if (!selectedDrive) return [void 0, void 0];
2256
- return [drive, dispatch];
2257
- }
2258
- function setSelectedDrive(driveOrDriveSlug) {
2259
- const driveSlug = typeof driveOrDriveSlug === "string" ? driveOrDriveSlug : driveOrDriveSlug?.header.slug;
2260
- const drives = window.ph?.drives;
2261
- const driveId = (typeof driveOrDriveSlug === "object" && driveOrDriveSlug !== null ? driveOrDriveSlug : drives?.find((d) => d.header.slug === driveSlug))?.header.id;
2262
- if (!driveId && driveSlug && extractDriveSlugFromPath(window.location.pathname) === driveSlug) {
2263
- if (window.ph?.selectedDriveId) setSelectedDriveId(void 0);
2264
- deferDriveSelection(driveSlug);
2265
- return;
2266
- }
2267
- cancelPendingDriveSelection();
2268
- setSelectedDriveId(driveId);
2269
- if (!driveId) {
2270
- const pathname = resolveUrlPathname("/");
2271
- if (pathname === window.location.pathname) return;
2272
- window.history.pushState(null, "", createUrlWithPreservedParams(pathname));
2273
- return;
2274
- }
2275
- const pathname = resolveUrlPathname(`/d/${driveSlug}`);
2276
- if (pathname === window.location.pathname) return;
2277
- window.history.pushState(null, "", createUrlWithPreservedParams(pathname));
2278
- }
2279
- const DEFERRED_DRIVE_TICK_MS = 2e3;
2280
- const DEFERRED_DRIVE_MAX_WAIT_MS = 15e3;
2281
- function isInitialSyncInFlight() {
2282
- const remotes = window.ph?.reactorClientModule?.reactorModule?.syncModule?.syncManager?.list();
2283
- if (!remotes?.length) return false;
2284
- return remotes.some((remote) => {
2285
- try {
2286
- const snapshot = remote.channel.getConnectionState();
2287
- return snapshot.receivingPages || !snapshot.lastSuccessUtcMs && snapshot.state !== "error";
2288
- } catch {
2289
- return false;
2290
- }
2291
- });
2292
- }
2293
- let pendingHandler;
2294
- let pendingTimeout;
2295
- function cancelPendingDriveSelection() {
2296
- if (pendingHandler) {
2297
- window.removeEventListener("ph:drivesUpdated", pendingHandler);
2298
- pendingHandler = void 0;
2299
- }
2300
- if (pendingTimeout) {
2301
- clearTimeout(pendingTimeout);
2302
- pendingTimeout = void 0;
2303
- }
2304
- }
2305
- function deferDriveSelection(driveSlug) {
2306
- cancelPendingDriveSelection();
2307
- const nodeSlug = extractNodeSlugFromPath(window.location.pathname);
2308
- const handler = () => {
2309
- if (!window.ph?.drives?.find((d) => d.header.slug === driveSlug)) return;
2310
- cancelPendingDriveSelection();
2311
- setSelectedDrive(driveSlug);
2312
- setSelectedNode(nodeSlug);
2313
- };
2314
- pendingHandler = handler;
2315
- window.addEventListener("ph:drivesUpdated", handler);
2316
- const deadline = Date.now() + DEFERRED_DRIVE_MAX_WAIT_MS;
2317
- const scheduleTick = () => {
2318
- pendingTimeout = setTimeout(() => {
2319
- if (Date.now() < deadline && isInitialSyncInFlight()) {
2320
- scheduleTick();
2321
- return;
2322
- }
2323
- cancelPendingDriveSelection();
2324
- const pathname = resolveUrlPathname("/");
2325
- if (pathname === window.location.pathname) return;
2326
- window.history.pushState(null, "", createUrlWithPreservedParams(pathname));
2327
- }, DEFERRED_DRIVE_TICK_MS);
2328
- };
2329
- scheduleTick();
2330
- }
2331
- function addSetSelectedDriveOnPopStateEventHandler() {
2332
- window.addEventListener("popstate", () => {
2333
- const pathname = window.location.pathname;
2334
- const driveId = extractDriveIdFromPath(pathname);
2335
- if (driveId !== window.ph?.selectedDriveId) setSelectedDrive(driveId);
2336
- });
2337
- }
2338
- //#endregion
2339
2106
  //#region src/hooks/use-drop-target.ts
2340
2107
  function useDropTarget() {
2341
2108
  const [isDropTarget, setIsDropTarget] = useState(false);
@@ -2514,56 +2281,6 @@ function hideRevisionHistory() {
2514
2281
  setRevisionHistoryVisible(false);
2515
2282
  }
2516
2283
  //#endregion
2517
- //#region src/utils/nodes.ts
2518
- /** Sorts nodes by name. */
2519
- function sortNodesByName(nodes) {
2520
- return nodes.toSorted((a, b) => a.name.localeCompare(b.name));
2521
- }
2522
- /** Returns whether a node is a file. */
2523
- function isFileNodeKind(node) {
2524
- if (!node) return false;
2525
- return node.kind.toUpperCase() === "FILE";
2526
- }
2527
- /** Returns whether a node is a folder. */
2528
- function isFolderNodeKind(node) {
2529
- if (!node) return false;
2530
- return node.kind.toUpperCase() === "FOLDER";
2531
- }
2532
- //#endregion
2533
- //#region src/hooks/items-in-selected-drive.ts
2534
- /** Returns the nodes in the selected drive. */
2535
- function useNodesInSelectedDrive() {
2536
- const [selectedDrive] = useSelectedDriveSafe();
2537
- return selectedDrive?.state.global.nodes;
2538
- }
2539
- /** Returns the file nodes in the selected drive. */
2540
- function useFileNodesInSelectedDrive() {
2541
- return useNodesInSelectedDrive()?.filter((n) => isFileNodeKind(n));
2542
- }
2543
- /** Returns the folder nodes in the selected drive. */
2544
- function useFolderNodesInSelectedDrive() {
2545
- return useNodesInSelectedDrive()?.filter((n) => isFolderNodeKind(n));
2546
- }
2547
- /** Returns the documents in the selected drive. */
2548
- function useDocumentsInSelectedDrive() {
2549
- const fileNodeIds = useFileNodesInSelectedDrive()?.map((node) => node.id);
2550
- return useDocumentsByIds(fileNodeIds);
2551
- }
2552
- /** Returns the document types supported by the selected drive, as defined by the document model documents present in the drive */
2553
- function useDocumentTypesInSelectedDrive() {
2554
- return (useDocumentsInSelectedDrive()?.filter(isDocumentModelDocument))?.map((doc) => doc.state.global.id);
2555
- }
2556
- function isDocumentModelDocument(document) {
2557
- return document.header.documentType === "powerhouse/document-model";
2558
- }
2559
- //#endregion
2560
- //#region src/hooks/selected-node.ts
2561
- /** Returns the selected node. */
2562
- function useSelectedNode() {
2563
- const selectedNodeId = useSelectedNodeId();
2564
- return useNodesInSelectedDrive()?.find((n) => n.id === selectedNodeId);
2565
- }
2566
- //#endregion
2567
2284
  //#region src/hooks/selected-timeline-item.ts
2568
2285
  const selectedTimelineItemEventFunctions = makePHEventFunctions("selectedTimelineItem");
2569
2286
  /** Returns the selected timeline item */
@@ -2591,54 +2308,6 @@ const setPHToast = toastEventFunctions.setValue;
2591
2308
  /** Adds an event handler for the toast */
2592
2309
  const addToastEventHandler = toastEventFunctions.addEventHandler;
2593
2310
  //#endregion
2594
- //#region src/hooks/vetra-packages.ts
2595
- const vetraPackageManagerFunctions = makePHEventFunctions("vetraPackageManager");
2596
- const useVetraPackageManager = vetraPackageManagerFunctions.useValue;
2597
- /** Returns all of the Vetra packages loaded by the Connect instance */
2598
- const useVetraPackages = () => {
2599
- const packageManager = useVetraPackageManager();
2600
- return useSyncExternalStore((cb) => packageManager ? packageManager.subscribe(cb) : () => {}, () => packageManager?.packages ?? []);
2601
- };
2602
- /** Adds the Vetra package manager event handler */
2603
- const addVetraPackageManagerEventHandler = vetraPackageManagerFunctions.addEventHandler;
2604
- /** Sets the Vetra package manager and registers its packages */
2605
- function setVetraPackageManager(packageManager) {
2606
- vetraPackageManagerFunctions.setValue(packageManager);
2607
- updateReactorClientDocumentModels(packageManager.packages);
2608
- updateReactorClientUpgradeManifests(packageManager.packages);
2609
- packageManager.subscribe(({ packages }) => {
2610
- updateReactorClientDocumentModels(packages);
2611
- updateReactorClientUpgradeManifests(packages);
2612
- });
2613
- }
2614
- function updateReactorClientDocumentModels(packages) {
2615
- const documentModelModules = packages.flatMap((pkg) => pkg.documentModels).filter((module, index, modules) => modules.findIndex((m) => m.documentModel.global.id === module.documentModel.global.id && (m.version ?? 1) === (module.version ?? 1)) === index);
2616
- const registry = window.ph?.reactorClientModule?.reactorModule?.documentModelRegistry;
2617
- if (!registry || documentModelModules.length === 0) return;
2618
- const results = registry.registerModules(...documentModelModules);
2619
- const duplicateTypes = /* @__PURE__ */ new Set();
2620
- for (const result of results) if (result.status === "error") if (isDuplicateModuleError(result.error)) duplicateTypes.add(result.item.documentModel.global.id);
2621
- else console.error("Failed to register document model module:", result.error);
2622
- if (duplicateTypes.size > 0) {
2623
- registry.unregisterModules(...duplicateTypes);
2624
- registry.registerModules(...documentModelModules.filter((module) => duplicateTypes.has(module.documentModel.global.id)));
2625
- }
2626
- }
2627
- function updateReactorClientUpgradeManifests(packages) {
2628
- const upgradeManifests = packages.flatMap((pkg) => pkg.upgradeManifests).filter((u) => u !== void 0);
2629
- const registry = window.ph?.reactorClientModule?.reactorModule?.documentModelRegistry;
2630
- if (!registry || upgradeManifests.length === 0) return;
2631
- const results = registry.registerUpgradeManifests(...upgradeManifests);
2632
- const duplicates = [];
2633
- for (const result of results) if (result.status === "error") if (isDuplicateManifestError(result.error)) duplicates.push(result);
2634
- else console.error("Failed to register upgrade manifest:", result.error);
2635
- if (duplicates.length > 0) {
2636
- const duplicateTypes = duplicates.map((r) => r.item.documentType).filter((t) => !!t);
2637
- registry.unregisterUpgradeManifests(...duplicateTypes);
2638
- registry.registerUpgradeManifests(...duplicates.map((r) => r.item));
2639
- }
2640
- }
2641
- //#endregion
2642
2311
  //#region src/hooks/add-ph-event-handlers.ts
2643
2312
  const commonGlobalEventHandlerFunctions = {
2644
2313
  loading: addLoadingEventHandler,
@@ -2815,38 +2484,6 @@ function useSwitchboardClient() {
2815
2484
  return isGraphQLReactorClient(client) ? client : void 0;
2816
2485
  }
2817
2486
  //#endregion
2818
- //#region src/hooks/document-model-modules.ts
2819
- function useDocumentModelModules() {
2820
- return useVetraPackages().flatMap((pkg) => pkg.documentModels).filter((module, index, modules) => modules.findIndex((m) => m.documentModel.global.id === module.documentModel.global.id && m.version === module.version) === index);
2821
- }
2822
- /**
2823
- * Resolves a document model module by document type, mirroring the registry's
2824
- * semantics (`IDocumentModelRegistry.getModule`): with `version` omitted the
2825
- * LATEST version of the type wins (`version ?? 1` as each module's default),
2826
- * with `version` given only an exact match is returned. The reactor resolves
2827
- * modules the same way when a document is created, so metadata read through
2828
- * this hook and the version a creation actually uses cannot disagree.
2829
- */
2830
- function useDocumentModelModuleById(id, version) {
2831
- const documentModelModules = useDocumentModelModules();
2832
- if (!id || !documentModelModules) return void 0;
2833
- let latestModule;
2834
- let latestVersion = -1;
2835
- for (const module of documentModelModules) {
2836
- if (module.documentModel.global.id !== id) continue;
2837
- const moduleVersion = module.version ?? 1;
2838
- if (version !== void 0) {
2839
- if (moduleVersion === version) return module;
2840
- continue;
2841
- }
2842
- if (moduleVersion > latestVersion) {
2843
- latestVersion = moduleVersion;
2844
- latestModule = module;
2845
- }
2846
- }
2847
- return latestModule;
2848
- }
2849
- //#endregion
2850
2487
  //#region src/hooks/document-operations.ts
2851
2488
  /**
2852
2489
  * Hook to fetch document operations via the reactor client.
@@ -2931,6 +2568,6 @@ function useDocumentOperations(documentId) {
2931
2568
  };
2932
2569
  }
2933
2570
  //#endregion
2934
- export { useGraphQLReactorClient as $, ReactorOperationFieldsFragmentDoc as $i, setIsDeletePublicDrivesEnabled as $n, useIsEditorReadModeEnabled as $r, addIsCloudDrivesEnabledEventHandler as $t, isFolderNodeKind as A, usePHModal as Aa, phDocumentEditorConfigSetters as Ai, addWarnOutdatedAppEventHandler as An, useBasePath as Ar, addFeaturesEventHandler as At, setReactorClientModule as B, makeAuthConnectionParams as Bi, setEnabledEditors as Bn, useIsAddLocalDrivesEnabled as Br, addDefaultDrivesUrlEventHandler as Bt, useSelectedNode as C, isDocumentTypeSupported as Ca, addAllowedDocumentTypesEventHandler as Ci, addSentryDsnEventHandler as Cn, setStudioMode as Cr, extractNodeIdFromSlug as Ct, useFolderNodesInSelectedDrive as D, showCreateDocumentModal as Da, phAppConfigHooks as Di, addSwitchboardUrlEventHandler as Dn, setWarnOutdatedApp as Dr, makeDriveUrlComponent as Dt, useFileNodesInSelectedDrive as E, setPHModal as Ea, isExternalControlsEnabledEventFunctions as Ei, addStudioModeEventHandler as En, setVersionCheckInterval as Er, getPathWithoutBase as Et, showRevisionHistory as F, useIsDragAndDropEnabled as Fi, setBasePath as Fn, useEnabledEditors as Fr, useAttachmentService as Ft, useReactorClientModule as G, subgraphUrlFromGraphqlUrl as Gi, setIsAddLocalDrivesEnabled as Gn, useIsCloudDrivesEnabled as Gr, addGaTrackingIdEventHandler as Gt, useModelRegistry as H, subscriptionsUrlFromGraphqlUrl as Hi, setGaTrackingId as Hn, useIsAnalyticsDatabaseWorkerEnabled as Hr, addDrivesPreserveStrategyEventHandler as Ht, useRevisionHistoryVisible as I, useIsExternalControlsEnabled as Ii, setCliVersion as In, useFileUploadOperationsChunkSize as Ir, addAllowListEventHandler as It, addPackageDiscoveryServiceEventHandler as J, resolveDocumentModelModule as Ji, setIsAnalyticsEnabled as Jn, useIsDeletePublicDrivesEnabled as Jr, addIsAddLocalDrivesEnabledEventHandler as Jt, useSync as K, StaticPackageManager as Ki, setIsAddPublicDrivesEnabled as Kn, useIsDeleteCloudDrivesEnabled as Kr, addIsAddCloudDrivesEnabledEventHandler as Kt, addReactorClientEventHandler as L, GraphQLReactorClient as Li, setDefaultDrivesUrl as Ln, useGaTrackingId as Lr, addAnalyticsDatabaseNameEventHandler as Lt, addRevisionHistoryVisibleEventHandler as M, DocumentTypeMismatchError as Ma, setIsDragAndDropEnabled as Mi, phGlobalConfigSetters as Mn, useDefaultDrivesUrl as Mr, useFeatures as Mt, hideRevisionHistory as N, NoSelectedDocumentError as Na, setIsExternalControlsEnabled as Ni, setAllowList as Nn, useDisabledEditors as Nr, addAttachmentServiceEventHandler as Nt, useNodesInSelectedDrive as O, showDeleteNodeModal as Oa, phAppConfigSetters as Oi, addVersionCheckIntervalEventHandler as On, useAllowList as Or, makeNodeSlug as Ot, setRevisionHistoryVisible as P, UnsupportedDocumentTypeError as Pa, useAllowedDocumentTypes as Pi, setAnalyticsDatabaseName as Pn, useDrivesPreserveStrategy as Pr, setAttachmentService as Pt, setGraphQLReactorClient as Q, MutateDocumentWithOperationsDocument as Qi, setIsDeleteLocalDrivesEnabled as Qn, useIsEditorDebugModeEnabled as Qr, addIsAnalyticsExternalProcessorsEnabledEventHandler as Qt, addReactorClientModuleEventHandler as R, isGraphQLReactorClient as Ri, setDisabledEditors as Rn, useIsAddCloudDrivesEnabled as Rr, addBasePathEventHandler as Rt, useSelectedTimelineItem as S, getUserPermissions as Sa, useWarnOutdatedApp as Si, addRouterBasenameEventHandler as Sn, setSentryRelease as Sr, extractNodeIdFromPath as St, useDocumentsInSelectedDrive as T, closePHModal as Ta, addIsExternalControlsEnabledEventHandler as Ti, addSentryReleaseEventHandler as Tn, setVersion as Tr, findUuid as Tt, usePGlite as U, SubgraphSdkRegistry as Ui, setIsAddCloudDrivesEnabled as Un, useIsAnalyticsEnabled as Ur, addEnabledEditorsEventHandler as Ut, useDatabase as V, startDocumentChangesSubscription as Vi, setFileUploadOperationsChunkSize as Vn, useIsAddPublicDrivesEnabled as Vr, addDisabledEditorsEventHandler as Vt, useReactorClient as W, describeGraphQLDocument as Wi, setIsAddDriveEnabled as Wn, useIsAnalyticsExternalProcessorsEnabled as Wr, addFileUploadOperationsChunkSizeEventHandler as Wt, usePackageDiscoveryService as X, signStampedAction as Xi, setIsCloudDrivesEnabled as Xn, useIsDocumentModelSelectionSettingsEnabled as Xr, addIsAnalyticsDatabaseWorkerEnabledEventHandler as Xt, setPackageDiscoveryService as Y, prepareSignedActions as Yi, setIsAnalyticsExternalProcessorsEnabled as Yn, useIsDiffAnalyticsEnabled as Yr, addIsAddPublicDrivesEnabledEventHandler as Yt, addGraphQLReactorClientEventHandler as Z, stampAction as Zi, setIsDeleteCloudDrivesEnabled as Zn, useIsDriveAnalyticsEnabled as Zr, addIsAnalyticsEnabledEventHandler as Zt, addSelectedTimelineRevisionEventHandler as _, loadFile as _a, useSentryRelease as _i, addRenownAdaptersEventHandler as _n, setRenownUrl as _r, useDrives as _t, ensurePHEventHandlers as a, ConflictError as aa, useIsRelationalProcessorsEnabled as ai, addIsDriveAnalyticsEnabledEventHandler as an, setIsExternalPackagesEnabled as ar, addSetSelectedDriveOnPopStateEventHandler as at, addSelectedTimelineItemEventHandler as b, renameNode as ba, useVersion as bi, addRenownUrlEventHandler as bn, setSentryDsn as br, extractDriveIdFromSlug as bt, callEventHandlerRegisterFunctions as c, extractRevisionMap as ca, useLogLevel as ci, addIsExternalPackagesEnabledEventHandler as cn, setIsLocalDrivesEnabled as cr, useSelectedDrive as ct, setVetraPackageManager as d, addDocument as da, useRenownNetworkId as di, addIsLocalDrivesEnabledEventHandler as dn, setIsSentryTracingEnabled as dr, addResetSelectedNodeEventHandler as dt, ambientRenownTokenProvider as ea, useIsExternalPackagesEnabled as ei, addIsDeleteCloudDrivesEnabledEventHandler as en, setIsDiffAnalyticsEnabled as er, addDraggingNodeEventHandler as et, useVetraPackageManager as f, addFileWithProgress as fa, useRenownUrl as fi, addIsPublicDrivesEnabledEventHandler as fn, setLocalDrivesEnabled as fr, addSelectedNodeIdEventHandler as ft, usePHToast as g, exportFile as ga, useSentryEnv as gi, addLogLevelEventHandler as gn, setRenownNetworkId as gr, setDrives as gt, setPHToast as h, deleteNode as ha, useSentryDsn as hi, addLocalDrivesEnabledEventHandler as hn, setRenownChainId as hr, addDrivesEventHandler as ht, GraphQLReactorProvider as i, revisionMapFromRevisionsList as ia, useIsPublicDrivesEnabled as ii, addIsDocumentModelSelectionSettingsEnabledEventHandler as in, setIsEditorReadModeEnabled as ir, addSelectedDriveIdEventHandler as it, sortNodesByName as j, DocumentModelNotFoundError as ja, setAllowedDocumentTypes as ji, phGlobalConfigHooks as jn, useCliVersion as jr, setFeatures as jt, isFileNodeKind as k, showPHModal as ka, phDocumentEditorConfigHooks as ki, addVersionEventHandler as kn, useAnalyticsDatabaseName as kr, resolveUrlPathname as kt, commonGlobalEventHandlerFunctions as l, hasRevisionConflict as la, useRenownAdapters as li, addIsExternalProcessorsEnabledEventHandler as ln, setIsPublicDrivesEnabled as lr, useSelectedDriveId as lt, addToastEventHandler as m, copyNode$1 as ma, useRouterBasename as mi, addIsSentryTracingEnabledEventHandler as mn, setRenownAdapters as mr, setSelectedNode as mt, useDocumentModelModuleById as n, phDocumentFromGetDocument as na, useIsExternalRelationalProcessorsEnabled as ni, addIsDeletePublicDrivesEnabledEventHandler as nn, setIsDriveAnalyticsEnabled as nr, useDropNode as nt, useSwitchboardClient as o, buildPulledDocument as oa, useIsSentryTracingEnabled as oi, addIsEditorDebugModeEnabledEventHandler as on, setIsExternalProcessorsEnabled as or, setSelectedDrive as ot, useVetraPackages as p, addFolder$1 as pa, useRequiresHardRefresh as pi, addIsRelationalProcessorsEnabledEventHandler as pn, setLogLevel as pr, addSetSelectedNodeOnPopStateEventHandler as pt, useSyncList as q, packageFromDocumentModels as qi, setIsAnalyticsDatabaseWorkerEnabled as qn, useIsDeleteLocalDrivesEnabled as qr, addIsAddDriveEnabledEventHandler as qt, useDocumentModelModules as r, phDocumentFromMutation as ra, useIsLocalDrivesEnabled as ri, addIsDiffAnalyticsEnabledEventHandler as rn, setIsEditorDebugModeEnabled as rr, useDropTarget as rt, addPHEventHandlers as s, convertRemoteOperations as sa, useLocalDrivesEnabled as si, addIsEditorReadModeEnabledEventHandler as sn, setIsExternalRelationalProcessorsEnabled as sr, setSelectedDriveId as st, useDocumentOperations as t, makeAuthMiddleware as ta, useIsExternalProcessorsEnabled as ti, addIsDeleteLocalDrivesEnabledEventHandler as tn, setIsDocumentModelSelectionSettingsEnabled as tr, useDragNode as tt, addVetraPackageManagerEventHandler as u, screamingSnakeToCamel as ua, useRenownChainId as ui, addIsExternalRelationalProcessorsEnabledEventHandler as un, setIsRelationalProcessorsEnabled as ur, useSelectedDriveSafe as ut, setSelectedTimelineRevision as v, moveNode$1 as va, useStudioMode as vi, addRenownChainIdEventHandler as vn, setRequiresHardRefresh as vr, createUrlWithPreservedParams as vt, useDocumentTypesInSelectedDrive as w, addModalEventHandler as wa, addIsDragAndDropEnabledEventHandler as wi, addSentryEnvEventHandler as wn, setSwitchboardUrl as wr, extractNodeSlugFromPath as wt, setSelectedTimelineItem as x, upgradeDocument as xa, useVersionCheckInterval as xi, addRequiresHardRefreshEventHandler as xn, setSentryEnv as xr, extractDriveSlugFromPath as xt, useSelectedTimelineRevision as y, renameDriveNode as ya, useSwitchboardUrl as yi, addRenownNetworkIdEventHandler as yn, setRouterBasename as yr, extractDriveIdFromPath as yt, setReactorClient as z, viewFilterInputFromViewFilter as zi, setDrivesPreserveStrategy as zn, useIsAddDriveEnabled as zr, addCliVersionEventHandler as zt };
2571
+ export { addDefaultDrivesUrlEventHandler as $, useIsAddLocalDrivesEnabled as $n, makeAuthConnectionParams as $r, setEnabledEditors as $t, useReactorClientModule as A, loadFile as Ai, setRenownUrl as An, useSentryRelease as Ar, addRenownAdaptersEventHandler as At, useDragNode as B, setPHModal as Bi, setWarnOutdatedApp as Bn, phAppConfigHooks as Br, addSwitchboardUrlEventHandler as Bt, addReactorClientModuleEventHandler as C, screamingSnakeToCamel as Ci, setIsRelationalProcessorsEnabled as Cn, useRenownChainId as Cr, addIsExternalRelationalProcessorsEnabledEventHandler as Ct, useModelRegistry as D, copyNode$1 as Di, setRenownAdapters as Dn, useRouterBasename as Dr, addIsSentryTracingEnabledEventHandler as Dt, useDatabase as E, addFolder$1 as Ei, setLogLevel as En, useRequiresHardRefresh as Er, addIsRelationalProcessorsEnabledEventHandler as Et, usePackageDiscoveryService as F, upgradeDocument as Fi, setSentryRelease as Fn, useWarnOutdatedApp as Fr, addRouterBasenameEventHandler as Ft, useFeatures as G, useDefaultDrivesUrl as Gn, setIsDragAndDropEnabled as Gr, phGlobalConfigSetters as Gt, useDropTarget as H, showDeleteNodeModal as Hi, useAnalyticsDatabaseName as Hn, phDocumentEditorConfigHooks as Hr, addVersionEventHandler as Ht, addGraphQLReactorClientEventHandler as I, getUserPermissions 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, useDisabledEditors as Kn, setIsExternalControlsEnabled as Kr, setAllowList as Kt, setGraphQLReactorClient as L, isDocumentTypeSupported as Li, setSwitchboardUrl as Ln, addIsDragAndDropEnabledEventHandler as Lr, addSentryEnvEventHandler as Lt, useSyncList as M, renameDriveNode as Mi, setRouterBasename as Mn, useSwitchboardUrl as Mr, addRenownNetworkIdEventHandler as Mt, addPackageDiscoveryServiceEventHandler as N, renameNode as Ni, setSentryDsn as Nn, useVersion as Nr, addRenownUrlEventHandler as Nt, usePGlite as O, deleteNode as Oi, setRenownChainId as On, useSentryDsn as Or, addLocalDrivesEnabledEventHandler as Ot, setPackageDiscoveryService as P, setPreferredEditorOnNode 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, addModalEventHandler as Ri, setVersion as Rn, addIsExternalControlsEnabledEventHandler as Rr, addSentryReleaseEventHandler as Rt, addReactorClientEventHandler as S, hasRevisionConflict as Si, setIsPublicDrivesEnabled as Sn, useRenownAdapters as Sr, addIsExternalProcessorsEnabledEventHandler as St, setReactorClientModule as T, addFileWithProgress as Ti, setLocalDrivesEnabled as Tn, useRenownUrl as Tr, addIsPublicDrivesEnabledEventHandler as Tt, addFeaturesEventHandler as U, showPHModal as Ui, useBasePath as Un, phDocumentEditorConfigSetters as Ur, addWarnOutdatedAppEventHandler as Ut, useDropNode as V, showCreateDocumentModal as Vi, useAllowList as Vn, phAppConfigSetters as Vr, addVersionCheckIntervalEventHandler as Vt, setFeatures as W, usePHModal 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 _, revisionMapFromRevisionsList as _i, setIsEditorReadModeEnabled as _n, useIsPublicDrivesEnabled as _r, addIsDocumentModelSelectionSettingsEnabledEventHandler as _t, addPHEventHandlers as a, StaticPackageManager as ai, setIsAddPublicDrivesEnabled as an, useIsDeleteCloudDrivesEnabled as ar, addIsAddCloudDrivesEnabledEventHandler as at, showRevisionHistory as b, convertRemoteOperations as bi, setIsExternalRelationalProcessorsEnabled as bn, useLocalDrivesEnabled as br, addIsEditorReadModeEnabledEventHandler as bt, addToastEventHandler as c, prepareSignedActions as ci, setIsAnalyticsExternalProcessorsEnabled as cn, useIsDiffAnalyticsEnabled as cr, addIsAddPublicDrivesEnabledEventHandler as ct, addSelectedTimelineRevisionEventHandler as d, MutateDocumentWithOperationsDocument as di, setIsDeleteLocalDrivesEnabled as dn, useIsEditorDebugModeEnabled as dr, addIsAnalyticsExternalProcessorsEnabledEventHandler as dt, startDocumentChangesSubscription as ei, setFileUploadOperationsChunkSize as en, useIsAddPublicDrivesEnabled as er, addDisabledEditorsEventHandler as et, setSelectedTimelineRevision as f, ReactorOperationFieldsFragmentDoc as fi, setIsDeletePublicDrivesEnabled as fn, useIsEditorReadModeEnabled as fr, addIsCloudDrivesEnabledEventHandler as ft, useSelectedTimelineItem as g, phDocumentFromMutation as gi, setIsEditorDebugModeEnabled as gn, useIsLocalDrivesEnabled as gr, addIsDiffAnalyticsEnabledEventHandler as gt, setSelectedTimelineItem as h, phDocumentFromGetDocument as hi, setIsDriveAnalyticsEnabled as hn, useIsExternalRelationalProcessorsEnabled as hr, addIsDeletePublicDrivesEnabledEventHandler as ht, useSwitchboardClient as i, subgraphUrlFromGraphqlUrl as ii, setIsAddLocalDrivesEnabled as in, useIsCloudDrivesEnabled as ir, addGaTrackingIdEventHandler as it, useSync as j, moveNode$1 as ji, setRequiresHardRefresh as jn, useStudioMode as jr, addRenownChainIdEventHandler as jt, useReactorClient as k, exportFile as ki, setRenownNetworkId as kn, useSentryEnv as kr, addLogLevelEventHandler as kt, setPHToast as l, signStampedAction as li, setIsCloudDrivesEnabled as ln, useIsDocumentModelSelectionSettingsEnabled as lr, addIsAnalyticsDatabaseWorkerEnabledEventHandler as lt, addSelectedTimelineItemEventHandler as m, makeAuthMiddleware as mi, setIsDocumentModelSelectionSettingsEnabled as mn, useIsExternalProcessorsEnabled as mr, addIsDeleteLocalDrivesEnabledEventHandler as mt, GraphQLReactorProvider as n, SubgraphSdkRegistry as ni, setIsAddCloudDrivesEnabled as nn, useIsAnalyticsEnabled as nr, addEnabledEditorsEventHandler as nt, callEventHandlerRegisterFunctions as o, packageFromDocumentModels as oi, setIsAnalyticsDatabaseWorkerEnabled as on, useIsDeleteLocalDrivesEnabled as or, addIsAddDriveEnabledEventHandler as ot, useSelectedTimelineRevision as p, ambientRenownTokenProvider 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, describeGraphQLDocument as ri, setIsAddDriveEnabled as rn, useIsAnalyticsExternalProcessorsEnabled as rr, addFileUploadOperationsChunkSizeEventHandler as rt, commonGlobalEventHandlerFunctions as s, resolveDocumentModelModule as si, setIsAnalyticsEnabled as sn, useIsDeletePublicDrivesEnabled as sr, addIsAddLocalDrivesEnabledEventHandler as st, useDocumentOperations as t, subscriptionsUrlFromGraphqlUrl as ti, setGaTrackingId as tn, useIsAnalyticsDatabaseWorkerEnabled as tr, addDrivesPreserveStrategyEventHandler as tt, usePHToast as u, stampAction as ui, setIsDeleteCloudDrivesEnabled as un, useIsDriveAnalyticsEnabled as ur, addIsAnalyticsEnabledEventHandler as ut, hideRevisionHistory as v, ConflictError as vi, setIsExternalPackagesEnabled as vn, useIsRelationalProcessorsEnabled as vr, addIsDriveAnalyticsEnabledEventHandler as vt, setReactorClient as w, addDocument as wi, setIsSentryTracingEnabled as wn, useRenownNetworkId as wr, addIsLocalDrivesEnabledEventHandler as wt, useRevisionHistoryVisible as x, extractRevisionMap as xi, setIsLocalDrivesEnabled as xn, useLogLevel as xr, addIsExternalPackagesEnabledEventHandler as xt, setRevisionHistoryVisible as y, buildPulledDocument as yi, setIsExternalProcessorsEnabled as yn, useIsSentryTracingEnabled as yr, addIsEditorDebugModeEnabledEventHandler as yt, addDraggingNodeEventHandler as z, closePHModal as zi, setVersionCheckInterval as zn, isExternalControlsEnabledEventFunctions as zr, addStudioModeEventHandler as zt };
2935
2572
 
2936
- //# sourceMappingURL=document-operations-B2lxu6qg.js.map
2573
+ //# sourceMappingURL=document-operations-I1cGIcPg.js.map