@powerhousedao/reactor-browser 6.4.0-next.3 → 6.4.0-next.4

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 (43) hide show
  1. package/dist/{attachment-service-0E5S0hZ6.d.ts → attachment-service-DdLM0Yf5.d.ts} +40 -9
  2. package/dist/attachment-service-DdLM0Yf5.d.ts.map +1 -0
  3. package/dist/auth-Ryem1MiX.d.ts +53 -0
  4. package/dist/auth-Ryem1MiX.d.ts.map +1 -0
  5. package/dist/{client-BFnMV-EO.js → client-DMCO2IaR.js} +3 -2
  6. package/dist/client-DMCO2IaR.js.map +1 -0
  7. package/dist/{document-model-modules-DCC6DjOP.js → document-model-modules-CHo9NZhj.js} +37 -5
  8. package/dist/document-model-modules-CHo9NZhj.js.map +1 -0
  9. package/dist/{document-operations-BUbpyfSf.js → document-operations-Dj0fTOHE.js} +113 -14
  10. package/dist/document-operations-Dj0fTOHE.js.map +1 -0
  11. package/dist/{global-DfeQC3Fg.d.ts → global-DMTXzdRf.d.ts} +28 -2
  12. package/dist/{global-DfeQC3Fg.d.ts.map → global-DMTXzdRf.d.ts.map} +1 -1
  13. package/dist/{index-BlCYgfht.d.ts → index-C5bsy9EC.d.ts} +127 -4
  14. package/dist/index-C5bsy9EC.d.ts.map +1 -0
  15. package/dist/index.d.ts +13 -5
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +7 -6
  18. package/dist/index.js.map +1 -1
  19. package/dist/local-sign-in-D2zVzXgm.js +12 -0
  20. package/dist/local-sign-in-D2zVzXgm.js.map +1 -0
  21. package/dist/{renown-BlvHEYjM.js → renown-BwJ9oWxt.js} +414 -64
  22. package/dist/renown-BwJ9oWxt.js.map +1 -0
  23. package/dist/src/ai/index.d.ts +1 -1
  24. package/dist/src/ai/index.js +2 -2
  25. package/dist/src/graphql-client/entry.d.ts +4 -4
  26. package/dist/src/graphql-client/entry.js +3 -3
  27. package/dist/src/renown/index.d.ts +2 -2
  28. package/dist/src/renown/index.js +2 -2
  29. package/dist/src/rpc/index.d.ts +17 -11
  30. package/dist/src/rpc/index.d.ts.map +1 -1
  31. package/dist/src/rpc/index.js +4 -3
  32. package/dist/src/rpc/index.js.map +1 -1
  33. package/dist/{switchboard-directory-CwT34q4g.js → switchboard-directory-7KPHB5Tz.js} +2 -2
  34. package/dist/{switchboard-directory-CwT34q4g.js.map → switchboard-directory-7KPHB5Tz.js.map} +1 -1
  35. package/package.json +11 -11
  36. package/dist/attachment-service-0E5S0hZ6.d.ts.map +0 -1
  37. package/dist/auth-DRbzRdeC.d.ts +0 -32
  38. package/dist/auth-DRbzRdeC.d.ts.map +0 -1
  39. package/dist/client-BFnMV-EO.js.map +0 -1
  40. package/dist/document-model-modules-DCC6DjOP.js.map +0 -1
  41. package/dist/document-operations-BUbpyfSf.js.map +0 -1
  42. package/dist/index-BlCYgfht.d.ts.map +0 -1
  43. package/dist/renown-BlvHEYjM.js.map +0 -1
@@ -1,13 +1,14 @@
1
1
  import { c as getPHStore, f as usePHStore, t as makePHEventFunctions } from "./make-ph-event-functions-B5GU5xcR.js";
2
2
  import { A as DocumentModelNotFoundError, D as queueActions, O as queueOperations, P as UnsupportedDocumentTypeError, b as DOCUMENT_CHANGE_TYPE, f as DocumentCache, h as IDLE_OPERATIONS_ENTRY, i as setDocumentCache, k as uploadOperations, o as useDocumentCache, r as addDocumentCacheEventHandler, v as isOperationCache } from "./dispatch-Cylwl2Dk.js";
3
- import { B as addFullReactorClientEventHandler, D as setSelectedNodeId, H as addReactorClientModuleEventHandler, K as setReactorClient, N as addDrivesEventHandler, S as addSelectedNodeIdEventHandler, U as addReactorHalvesEventHandler, V as addReactorClientEventHandler, W as getFullReactorClient, Z as useReactorClient, _t as ambientRenownTokenProvider, a as setVetraPackageManager, at as invalidateDriveNodes, c as addSwitchboardsEventHandler, d as addSelectedDriveIdEventHandler, h as setSelectedDriveId, ht as listAllDriveNodes, it as getDriveNode, nt as addDriveNodesEventHandler, p as selectDrive, r as addVetraPackageManagerEventHandler, rt as dropDriveNode, st as markLocalDriveWrite, v as useSelectedDriveId, vt as makeAuthMiddleware, x as addResetSelectedNodeEventHandler } from "./document-model-modules-DCC6DjOP.js";
3
+ import { B as addFullReactorClientEventHandler, D as setSelectedNodeId, H as addReactorClientModuleEventHandler, K as setReactorClient, N as addDrivesEventHandler, S as addSelectedNodeIdEventHandler, U as addReactorHalvesEventHandler, V as addReactorClientEventHandler, W as getFullReactorClient, Z as useReactorClient, _t as ambientRenownTokenProvider, a as setVetraPackageManager, at as invalidateDriveNodes, c as addSwitchboardsEventHandler, d as addSelectedDriveIdEventHandler, h as setSelectedDriveId, ht as listAllDriveNodes, it as getDriveNode, nt as addDriveNodesEventHandler, p as selectDrive, r as addVetraPackageManagerEventHandler, rt as dropDriveNode, st as markLocalDriveWrite, v as useSelectedDriveId, x as addResetSelectedNodeEventHandler, yt as makeAuthMiddleware } from "./document-model-modules-CHo9NZhj.js";
4
4
  import { A as openTargetWith, C as getCurrentPathname, E as hasHostNavigation, G as findDriveBySlug, H as extractNodeIdFromSlug, I as searchToRecord, L as setBrowserOpenSync, N as recordToSearch, U as extractNodeSlugFromPath, V as extractDriveSlugFromPath, f as addLoadingEventHandler, t as addRenownEventHandler, w as getPHNavigation, z as targetPathname } from "./renown-BXiV_I-t.js";
5
5
  import { a as JobChangesDocument, o as PhDocumentFieldsFragmentDoc, t as DocumentChangesDocument } from "./schema-B5lftDPf.js";
6
6
  import { t as createClient$1 } from "./client-wwavHFfs.js";
7
+ import { t as addLocalSignInEventHandler } from "./local-sign-in-D2zVzXgm.js";
7
8
  import { useCallback, useEffect, useMemo, useState, useSyncExternalStore } from "react";
8
9
  import { Fragment, jsx } from "react/jsx-runtime";
9
10
  import { logger } from "document-model";
10
- import { FLAGS_FOR_EVERY_VERSION, PEER_CAPABILITIES, UnsupportedDocumentModelVersionError, actionSignerIdentity, actionSigningTarget, actions, assertAuthPreservedOnDuplicate, baseLoadFromInput, baseLoadFromInputVersioned, baseSaveToFileHandle, capSelection, capabilitiesOf, createCopyHeader, createPresignedHeader, createZip, creationState, deserializeSignature, documentModelDocumentType, fitCreateBaseReducer, generateActionId, generateId, hasDerivedDocumentId, hashDocumentStateForScope, headNewDocument, isSignaturePolicy, localSupports, normalizeDocumentModelVersion, replayDocumentVersioned, resolveBaseReducerVersion, selectDocumentModelModule, serializeByKey, setName, setPreferredEditor, signaturePolicyOf, toTransportAction, undoCapabilitiesOf, undoNeedsTargets, undoRedoActions, undoRedoAvailabilityOf, withSignaturePolicy } from "@powerhousedao/shared/document-model";
11
+ import { FLAGS_FOR_EVERY_VERSION, PEER_CAPABILITIES, UnsupportedDocumentModelVersionError, actionSignerIdentity, actionSigningTarget, actions, assertAuthPreservedOnDuplicate, baseLoadFromInput, baseLoadFromInputVersioned, baseSaveToFileHandle, capSelection, capabilitiesOf, createCopyHeader, createPresignedHeader, createVersionsOf, createZip, creationActions, creationState, deserializeSignature, documentModelDocumentType, fitCreateBaseReducer, generateActionId, generateId, hasDerivedDocumentId, hashDocumentStateForScope, headNewDocument, isSignaturePolicy, localSupports, normalizeDocumentModelVersion, replayDocumentVersioned, resolveBaseReducerVersion, selectDocumentModelModule, serializeByKey, setName, setPreferredEditor, signaturePolicyOf, toTransportAction, undoCapabilitiesOf, undoNeedsTargets, undoRedoActions, undoRedoAvailabilityOf, withSignaturePolicy } from "@powerhousedao/shared/document-model";
11
12
  import { addFolder, copyNode, driveDocumentModelModule, generateNodesCopy, handleTargetNameCollisions, isFileNode, isFolderNode, moveNode, updateNode } from "@powerhousedao/shared/document-drive";
12
13
  import { allPass, conditional, constant, forEachObj, funnel, isDefined, isNot, isStrictEqual, isString, isTruthy, once } from "remeda";
13
14
  import { DRIVE_CHILD_RELATIONSHIP_TYPE } from "@powerhousedao/reactor-drive";
@@ -2250,10 +2251,11 @@ var GraphQLReactorClient = class {
2250
2251
  this.documentModels = () => copied;
2251
2252
  }
2252
2253
  const signer = options.signer;
2253
- this.resolveSigner = typeof signer === "function" ? signer : signer ? () => signer : ambientRenownSigner;
2254
+ const resolve = typeof signer === "function" ? signer : signer ? () => signer : ambientRenownSigner;
2255
+ this.resolveSigner = async () => resolve();
2254
2256
  this.driveIdFor = options.driveIdFor;
2255
2257
  this.subscriptionsUrl = options.realtime === false ? void 0 : options.subscriptionsUrl ?? subscriptionsUrlFromGraphqlUrl(options.url);
2256
- const middleware = withWrongBackendErrors(makeAuthMiddleware(this.tokenProvider));
2258
+ const middleware = withWrongBackendErrors(makeAuthMiddleware(this.tokenProvider, { url: options.url }));
2257
2259
  const fetch = options.requestTimeoutMs === void 0 ? options.fetch : withRequestDeadline(options.requestTimeoutMs, options.fetch);
2258
2260
  this.sdk = options.graphqlClient ?? createClient$1(new GraphQLClient(options.url, { fetch }), middleware);
2259
2261
  this.batchSdk = options.graphqlClient !== void 0 || options.batchRequestTimeoutMs === void 0 ? this.sdk : createClient$1(new GraphQLClient(options.url, { fetch: withRequestDeadline(options.batchRequestTimeoutMs, options.fetch) }), middleware);
@@ -2477,7 +2479,21 @@ var GraphQLReactorClient = class {
2477
2479
  limit
2478
2480
  }, signal));
2479
2481
  }
2482
+ /**
2483
+ * Creates `document`, under `parentIdentifier` when given.
2484
+ *
2485
+ * With a signer the creation is built and signed here, as the in-process
2486
+ * client builds it, and submitted through `executeBatch`; the Switchboard
2487
+ * signs none of it. A create under a drive still runs the Switchboard's
2488
+ * `createDocument`, which files the document in the drive and signs that
2489
+ * itself, as does a create without a signer.
2490
+ */
2480
2491
  async create(document, parentIdentifier, signal) {
2492
+ const signer = await this.resolveSigner();
2493
+ if (signer) {
2494
+ const parent = parentIdentifier === void 0 ? void 0 : await this.parentOf(parentIdentifier, signal);
2495
+ if (!parent || !isDriveType(parent.documentType)) return this.createSigned(document, parentIdentifier, parent?.id, signer, signal);
2496
+ }
2481
2497
  const created = phDocumentFromGetDocument((await this.sdk.CreateDocument({
2482
2498
  document,
2483
2499
  parentIdOrSlug: parentIdentifier
@@ -2493,6 +2509,76 @@ var GraphQLReactorClient = class {
2493
2509
  return created;
2494
2510
  }
2495
2511
  /**
2512
+ * The signed creation of `document`: its CREATE_DOCUMENT and
2513
+ * UPGRADE_DOCUMENT, then the parent's ADD_RELATIONSHIP, one batch, as the
2514
+ * in-process client's `buildCreateJobs` makes it. The slug is checked as the
2515
+ * Switchboard's `createDocument` checks it.
2516
+ */
2517
+ async createSigned(document, parentIdentifier, parentId, signer, signal) {
2518
+ const documentId = document.header.id;
2519
+ const branch = document.header.branch || "main";
2520
+ await this.assertSlugAvailable(document.header.slug, documentId, signal);
2521
+ const protocolVersions = await createVersionsOf(document, (options) => this.getCreateProtocolVersions(options, signal), parentIdentifier);
2522
+ const jobs = [{
2523
+ key: "create",
2524
+ documentId,
2525
+ scope: "document",
2526
+ branch,
2527
+ actions: creationActions(document, protocolVersions),
2528
+ dependsOn: []
2529
+ }];
2530
+ if (parentId) jobs.push({
2531
+ key: "parent",
2532
+ documentId: parentId,
2533
+ scope: "document",
2534
+ branch: "main",
2535
+ actions: [addRelationshipAction(parentId, documentId, "child")],
2536
+ dependsOn: ["create"]
2537
+ });
2538
+ const { jobs: settled } = await this.executeBatchAs({ jobs }, signer, signal, isDrive(document) && parentIdentifier === void 0 ? documentId : void 0);
2539
+ return this.get(documentId, { branch }, signal, settled.create?.consistencyToken);
2540
+ }
2541
+ /** The id and type of the document a create names as its parent. */
2542
+ async parentOf(identifier, signal) {
2543
+ const parent = (await this.sdk.GetDocument({
2544
+ idOrSlug: identifier,
2545
+ view: {
2546
+ branch: "main",
2547
+ scopes: ["document"]
2548
+ }
2549
+ }, void 0, signal)).document?.document;
2550
+ if (!parent) throw new Error(`Failed to create document: no parent ${identifier}`);
2551
+ return {
2552
+ id: parent.id,
2553
+ documentType: parent.documentType
2554
+ };
2555
+ }
2556
+ /** Refuses a slug another document holds, as `createDocument` does. */
2557
+ async assertSlugAvailable(slug, documentId, signal) {
2558
+ if (!slug || slug === documentId) return;
2559
+ let served;
2560
+ try {
2561
+ served = await this.isServed(slug, { branch: "main" }, signal);
2562
+ } catch (error) {
2563
+ if (!(error instanceof GraphQLOperationNotSupportedError)) throw error;
2564
+ }
2565
+ if (served === false) return;
2566
+ let holder;
2567
+ try {
2568
+ holder = (await this.sdk.GetDocument({
2569
+ idOrSlug: slug,
2570
+ view: {
2571
+ branch: "main",
2572
+ scopes: ["document"]
2573
+ }
2574
+ }, void 0, signal)).document?.document.id;
2575
+ } catch (error) {
2576
+ if (answersNotFound(error)) return;
2577
+ throw error;
2578
+ }
2579
+ if (holder && holder !== documentId) throw new Error(`The slug "${slug}" is taken by document ${holder}; choose another.`);
2580
+ }
2581
+ /**
2496
2582
  * Pushes actions to the Switchboard and returns the updated document.
2497
2583
  *
2498
2584
  * The document is fetched first: the response is the baseline for the
@@ -2513,7 +2599,7 @@ var GraphQLReactorClient = class {
2513
2599
  const document = await this.get(documentIdentifier, { branch }, signal);
2514
2600
  const variables = {
2515
2601
  documentIdOrSlug: documentIdentifier,
2516
- actions: (await prepareActionsForPush(actions, document, this.documentModels(), this.resolveSigner(), signal)).map(toTransportAction),
2602
+ actions: (await prepareActionsForPush(actions, document, this.documentModels(), await this.resolveSigner(), signal)).map(toTransportAction),
2517
2603
  sinceRevision: sinceRevisionForActions(document, actions),
2518
2604
  scopes: scopesForActions(actions),
2519
2605
  branch
@@ -2641,7 +2727,10 @@ var GraphQLReactorClient = class {
2641
2727
  * settled, so {@link waitForJob} resolves from it without polling.
2642
2728
  */
2643
2729
  async executeBatch(request, signal) {
2644
- const signer = this.resolveSigner();
2730
+ return this.executeBatchAs(request, await this.resolveSigner(), signal);
2731
+ }
2732
+ /** {@link executeBatch} signed by `signer`; `proven` names its drive. */
2733
+ async executeBatchAs(request, signer, signal, proven) {
2645
2734
  const jobInputs = await Promise.all(request.jobs.map(async (job, index) => {
2646
2735
  const documentId = await this.batchWriteTarget(job, request.jobs.slice(0, index), signer, signal);
2647
2736
  const actions = await this.signBatchJobActions({
@@ -2660,7 +2749,7 @@ var GraphQLReactorClient = class {
2660
2749
  const result = await this.batchSdk.ExecuteBatch({ jobs: jobInputs }, this.driveIdHeaders({
2661
2750
  method: "executeBatch",
2662
2751
  jobs: jobInputs.map((job) => ({ documentId: job.documentIdOrSlug }))
2663
- }), signal);
2752
+ }, proven), signal);
2664
2753
  const jobs = {};
2665
2754
  for (const entry of result.executeBatch.jobs) jobs[entry.key] = jobInfoFromGql(entry.job);
2666
2755
  await this.announceBatch(request, jobs, signal);
@@ -3023,7 +3112,7 @@ var GraphQLReactorClient = class {
3023
3112
  }
3024
3113
  /** Signs `actions` against `document` and submits them through `executeAsync`. */
3025
3114
  async submitOnDocument(documentIdentifier, document, branch, actions, signal) {
3026
- const preparedActions = await prepareActionsForPush(actions, document, this.documentModels(), this.resolveSigner(), signal);
3115
+ const preparedActions = await prepareActionsForPush(actions, document, this.documentModels(), await this.resolveSigner(), signal);
3027
3116
  const handle = new GraphQLJobWriteHandle(jobInfoFromGql((await this.sdk.MutateDocumentAsync({
3028
3117
  documentIdOrSlug: documentIdentifier,
3029
3118
  actions: preparedActions.map(toTransportAction),
@@ -3568,7 +3657,10 @@ function driveIdHeaders(driveId) {
3568
3657
  return driveId === "" ? void 0 : { [DRIVE_ID_HEADER]: driveId };
3569
3658
  }
3570
3659
  function isDrive(document) {
3571
- return DRIVE_DOCUMENT_TYPES.includes(document.header.documentType);
3660
+ return isDriveType(document.header.documentType);
3661
+ }
3662
+ function isDriveType(documentType) {
3663
+ return DRIVE_DOCUMENT_TYPES.includes(documentType);
3572
3664
  }
3573
3665
  /**
3574
3666
  * Surfaces a 421 from the Switchboard's drive middleware, which graphql-request
@@ -3623,12 +3715,18 @@ function isActionSigned(action) {
3623
3715
  const signer = action.context?.signer;
3624
3716
  return Boolean(signer?.app?.key && signer.signatures.at(-1)?.[1]);
3625
3717
  }
3626
- /** Resolves the signer of the logged-in user, if there is one. */
3627
- /** The logged-in Renown user's signer, read per call; none when nobody is. */
3628
- function ambientRenownSigner() {
3718
+ /**
3719
+ * The logged-in Renown user's signer, read per call; none when nobody is.
3720
+ * Nobody logged in, the signer is asked to sign someone in first (hosted
3721
+ * Connect's browser pseudonym).
3722
+ */
3723
+ async function ambientRenownSigner() {
3629
3724
  if (typeof window === "undefined") return;
3630
3725
  const renown = getPHStore()?.renown;
3631
- return renown?.user ? renown.signer : void 0;
3726
+ if (!renown) return void 0;
3727
+ const signer = renown.signer;
3728
+ if (!renown.user && signer.ensureUser) await signer.ensureUser().catch(() => void 0);
3729
+ return renown.user ? renown.signer : void 0;
3632
3730
  }
3633
3731
  /**
3634
3732
  * The revision the pushed operations start from: the lowest head revision
@@ -4031,6 +4129,7 @@ const commonGlobalEventHandlerFunctions = {
4031
4129
  loading: addLoadingEventHandler,
4032
4130
  drives: addDrivesEventHandler,
4033
4131
  backendAuth: addBackendAuthEventHandler,
4132
+ localSignIn: addLocalSignInEventHandler,
4034
4133
  driveNodes: addDriveNodesEventHandler,
4035
4134
  selectedDriveId: () => {
4036
4135
  addSelectedDriveIdEventHandler();
@@ -4498,4 +4597,4 @@ function useDocumentOperations(documentId, scope, options = {}) {
4498
4597
  //#endregion
4499
4598
  export { setDefaultDrivesUrl as $, setPreferredEditorOnNode as $n, StaticPackageManager as $t, useDropNode as A, underSignaturePolicy as An, useAllowedDocumentTypes as At, addDefaultDrivesUrlEventHandler as B, addDocument as Bn, ambientRenownSigner as Bt, setPackageDiscoveryService as C, ConflictError as Cn, phAppConfigHooks as Ct, useGraphQLReactorClient as D, hasRevisionConflict as Dn, setAllowedDocumentTypes as Dt, setGraphQLReactorClient as E, extractRevisionMap as En, phDocumentEditorConfigSetters as Et, addAttachmentServiceEventHandler as F, GraphQLOperationNotSupportedError as Fn, isBackendAuthError as Ft, addRouterBasenameEventHandler as G, exportFile as Gn, createJobChangesSocket as Gt, addIsAddDriveEnabledEventHandler as H, addFolder$1 as Hn, findIsServableOverGraphQL as Ht, setAttachmentService as I, GraphQLWrongBackendError as In, recordBackendAuthError as It, addWarnOutdatedAppEventHandler as J, getDocumentExtension as Jn, startDocumentChangesSubscription as Jt, addStudioModeEventHandler as K, extractInitialState as Kn, isAuthRefusalClose as Kt, useAttachmentService as L, JobFailedError as Ln, setBackendAuth as Lt, addFeaturesEventHandler as M, DEFAULT_DRIVE_EDITOR_ID as Mn, useIsExternalControlsEnabled as Mt, setFeatures as N, DRIVE_DOCUMENT_TYPES as Nn, addBackendAuthEventHandler as Nt, addDraggingNodeEventHandler as O, screamingSnakeToCamel as On, setIsDragAndDropEnabled as Ot, useFeatures as P, BatchJobFailedError as Pn, backendAuthStatusOf as Pt, setBasePath as Q, renameNode as Qn, subgraphUrlFromGraphqlUrl as Qt, addAllowListEventHandler as R, queriesUnknownArgument as Rn, useBackendAuth as Rt, addPackageDiscoveryServiceEventHandler as S, revisionMapFromRevisionsList as Sn, isExternalControlsEnabledEventFunctions as St, addGraphQLReactorClientEventHandler as T, convertRemoteOperations as Tn, phDocumentEditorConfigHooks as Tt, addLogLevelEventHandler as U, copyNode$1 as Un, isGraphQLReactorClient as Ut, addDisabledEditorsEventHandler as V, addFileWithProgress as Vn, createGraphQLDriveNodeSource as Vt, addRenownUrlEventHandler as W, deleteNode as Wn, viewFilterInputFromViewFilter as Wt, phGlobalConfigSetters as X, moveNode$1 as Xn, SubgraphSdkRegistry as Xt, phGlobalConfigHooks as Y, loadFile as Yn, subscriptionsUrlFromGraphqlUrl as Yt, setAllowList as Z, renameDriveNode as Zn, describeGraphQLDocument as Zt, setSelectedTimelineRevision as _, GraphQLDriveReadClient as _n, isPlainClick as _r, useSwitchboardUrl as _t, SwitchboardUnreachableError as a, GetDocumentAtConsistencyDocument as an, closePHModal as ar, setStudioMode as at, setSelectedTimelineItem as b, phDocumentFromGetDocument as bn, useSearchParams as br, addIsDragAndDropEnabledEventHandler as bt, ensurePHEventHandlers as c, readCreateProtocolVersions as cn, modalHref as cr, useAllowList as ct, callEventHandlerRegisterFunctions as d, isDeadlineError as dn, showCreateDocumentModal as dr, useDisabledEditors as dt, packageFromDocumentModels as en, upgradeDocument as er, setDisabledEditors as et, commonGlobalEventHandlerFunctions as f, isNodeFetch as fn, showDeleteNodeModal as fr, useIsAddDriveEnabled as ft, addSelectedTimelineRevisionEventHandler as g, GraphQLDriveNodeSource as gn, withoutModalSearch as gr, useStudioMode as gt, usePHToast as h, withStreamedBodies as hn, usePHModal as hr, useRouterBasename as ht, DEFAULT_REQUEST_TIMEOUT_MS as i, stampAction as in, addModalEventHandler as ir, setRouterBasename as it, useDropTarget as j, COMMON_PACKAGE_ID as jn, useIsDragAndDropEnabled as jt, useDragNode as k, uncreatedDocument as kn, setIsExternalControlsEnabled as kt, useSwitchboardClient as l, readCreateSignaturePolicy as ln, modalSearch as lr, useBasePath as lt, setPHToast as m, withRequestDeadline as mn, useModalLinkProps as mr, useRenownUrl as mt, DEFAULT_BATCH_REQUEST_TIMEOUT_MS as n, prepareSignedActions as nn, isDocumentTypeSupported as nr, setLogLevel as nt, createSwitchboardBackend as o, MutateDocumentWithOperationsDocument as on, isRoutedModal as or, setSwitchboardUrl as ot, addToastEventHandler as p, switchboardFetch as pn, showPHModal as pr, useLogLevel as pt, addSwitchboardUrlEventHandler as q, fetchDocumentOperations as qn, makeAuthConnectionParams as qt, DEFAULT_BREAKER as r, signStampedAction as rn, MODAL_SEARCH_PARAM as rr, setRenownUrl as rt, GraphQLReactorProvider as s, ReactorOperationFieldsFragmentDoc as sn, modalFromSearch as sr, setWarnOutdatedApp as st, useDocumentOperations as t, resolveDocumentModelModule as tn, getUserPermissions as tr, setIsAddDriveEnabled as tt, addPHEventHandlers as u, globalFetch as un, setPHModal as ur, useDefaultDrivesUrl as ut, useSelectedTimelineRevision as v, toLegacyNode as vn, useLinkProps as vr, useWarnOutdatedApp as vt, usePackageDiscoveryService as w, buildPulledDocument as wn, phAppConfigSetters as wt, useSelectedTimelineItem as x, phDocumentFromMutation as xn, useSetSearchParams as xr, addIsExternalControlsEnabledEventHandler as xt, addSelectedTimelineItemEventHandler as y, isoStringFromDateTime as yn, usePHNavigation as yr, addAllowedDocumentTypesEventHandler as yt, addBasePathEventHandler as z, queriesUnknownField as zn, GraphQLReactorClient as zt };
4500
4599
 
4501
- //# sourceMappingURL=document-operations-BUbpyfSf.js.map
4600
+ //# sourceMappingURL=document-operations-Dj0fTOHE.js.map