@powerhousedao/reactor-browser 6.2.2-dev.60 → 6.2.2-dev.62
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/README.md +61 -3
- package/dist/{document-operations-C6nce9dH.js → document-operations-DQfMZpj8.js} +2 -2
- package/dist/{document-operations-C6nce9dH.js.map → document-operations-DQfMZpj8.js.map} +1 -1
- package/dist/{index-DjloxNSR.d.ts → index-BV00np9e.d.ts} +8 -4
- package/dist/index-BV00np9e.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/{renown-BZabzj4l.js → renown-6w_ImTvm.js} +36 -7
- package/dist/renown-6w_ImTvm.js.map +1 -0
- package/dist/{renown-C7a1ygsj.js → renown-DRnlawbP.js} +64 -12
- package/dist/renown-DRnlawbP.js.map +1 -0
- package/dist/src/graphql-client/entry.js +1 -1
- package/dist/src/renown/index.d.ts +2 -2
- package/dist/src/renown/index.js +3 -3
- package/package.json +9 -9
- package/dist/index-DjloxNSR.d.ts.map +0 -1
- package/dist/renown-BZabzj4l.js.map +0 -1
- package/dist/renown-C7a1ygsj.js.map +0 -1
|
@@ -3,7 +3,7 @@ import { CSSProperties, ReactNode } from "react";
|
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
import * as _renown_sdk0 from "@renown/sdk";
|
|
5
5
|
import { CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, DOMAIN_TYPE, IRenown, ISSUER_TYPE, LoginStatus, User, VERIFIABLE_CREDENTIAL_EIP712_TYPE } from "@renown/sdk";
|
|
6
|
-
import { LoginMethod, WalletAdapterDescriptor, WalletSession, WalletTheme } from "@renown/sdk/wallet";
|
|
6
|
+
import { LoginMethod, WalletAdapterDescriptor, WalletController, WalletSession, WalletTheme } from "@renown/sdk/wallet";
|
|
7
7
|
|
|
8
8
|
//#region src/renown/use-renown-auth.d.ts
|
|
9
9
|
type RenownAuthStatus = LoginStatus | "loading";
|
|
@@ -326,7 +326,7 @@ interface RenownWalletProviderProps {
|
|
|
326
326
|
theme?: WalletTheme;
|
|
327
327
|
children: ReactNode;
|
|
328
328
|
}
|
|
329
|
-
/** Drop-in provider for Renown in-page wallet sign-in: registers the login activator, lazy-mounts the configured adapters on first
|
|
329
|
+
/** Drop-in provider for Renown in-page wallet sign-in: registers the login activator, lazy-mounts the configured adapters on first demand (login, logout, {@link useRenownWalletAdapter}, or an OAuth redirect return — not on a restored session), and merges their controllers for {@link useRenownAuth}. Full walkthrough + examples: the `@powerhousedao/reactor-browser` README ("Renown in-page sign-in") and the Academy Renown authentication guide. Pair with {@link useRenownLoginMethods} to build the login UI. */
|
|
330
330
|
declare function RenownWalletProvider({
|
|
331
331
|
adapters: adaptersConfig,
|
|
332
332
|
theme,
|
|
@@ -341,5 +341,9 @@ interface RenownLoginMethod {
|
|
|
341
341
|
/** The login methods the mounted {@link RenownWalletProvider}'s adapters offer, for building a login UI. Reads each descriptor's eager metadata only — no wallet libraries load. Buttons follow the provider's descriptor array order, deduped; empty when no provider is mounted (redirect-only). Wire each to `useRenownAuth().login(undefined, id)`. Labels are overridable. See the reactor-browser README + Academy Renown auth guide. */
|
|
342
342
|
declare function useRenownLoginMethods(labels?: Partial<Record<LoginMethod, string>>): RenownLoginMethod[];
|
|
343
343
|
//#endregion
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
//#region src/renown/use-renown-wallet-adapter.d.ts
|
|
345
|
+
/** The controller of one adapter mounted by {@link RenownWalletProvider}, by its `meta.id`, typed as that adapter's own surface — e.g. `useRenownWalletAdapter<PrivyWalletController>("privy")` for headless email OTP. Rendering it activates the wallet tree (the adapter's library loads then), so call it from the sign-in screen, not the app shell. `undefined` until the adapter is mounted, or forever when no provider offers that id. */
|
|
346
|
+
declare function useRenownWalletAdapter<T extends WalletController = WalletController>(id: string): T | undefined;
|
|
347
|
+
//#endregion
|
|
348
|
+
export { login as $, RENOWN_URL as A, RenownUserButton as B, CREDENTIAL_SCHEMA_EIP712_TYPE as C, ISSUER_TYPE as D, DOMAIN_TYPE as E, CopyIcon as F, RenownAuthButton as G, RenownUserButtonProps as H, DisconnectIcon as I, setRenown as J, RenownAuthButtonProps as K, RenownLogo as L, initConnectCrypto as M, initRenownCrypto as N, RENOWN_CHAIN_ID as O, ChevronDownIcon as P, useUser as Q, SpinnerIcon as R, useRenownInitialUser as S, CREDENTIAL_TYPES as T, RenownLoginButton as U, RenownUserButtonMenuItem as V, RenownLoginButtonProps as W, useLoginStatus as X, useDid as Y, useRenown as Z, RENOWN_INITIAL_UNKNOWN as _, RenownWalletProviderProps as a, RenownAuthStatus as at, RenownInitialUserProviderProps as b, Renown as c, useRenownInit as d, logout as et, RenownSessionCookieOptions as f, RENOWN_INITIAL_ANONYMOUS as g, useRenownSessionSynced as h, RenownWalletProvider as i, RenownAuthResolution as it, VERIFIABLE_CREDENTIAL_EIP712_TYPE as j, RENOWN_NETWORK_ID as k, RenownProps as l, useRenownSessionCookie as m, RenownLoginMethod as n, RenownAuth as nt, RenownProvider as o, useRenownAuth as ot, RenownSessionCookieState as p, addRenownEventHandler as q, useRenownLoginMethods as r, RenownAuthAsync as rt, RenownProviderProps as s, useRenownAuthAsync as st, useRenownWalletAdapter as t, openRenown as tt, RenownInitOptions as u, RenownInitialAuth as v, CREDENTIAL_SUBJECT_TYPE as w, useRenownInitialAuth as x, RenownInitialUserProvider as y, UserIcon as z };
|
|
349
|
+
//# sourceMappingURL=index-BV00np9e.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BV00np9e.d.ts","names":[],"sources":["../src/renown/use-renown-auth.ts","../src/renown/session.ts","../src/hooks/renown.ts","../src/renown/components/RenownAuthButton.tsx","../src/renown/components/RenownLoginButton.tsx","../src/renown/components/RenownUserButton.tsx","../src/renown/components/icons.tsx","../src/renown/crypto.ts","../src/renown/constants.ts","../src/renown/initial-user.tsx","../src/renown/use-renown-session-cookie.ts","../src/renown/use-renown-init.ts","../src/renown/renown-init.tsx","../src/renown/provider.tsx","../src/renown/wallet-provider.tsx","../src/renown/login-methods.ts","../src/renown/use-renown-wallet-adapter.ts"],"mappings":";;;;;;;;KAoBY,gBAAA,GAAmB,WAAA;AAAA,UAEd,UAAA;EACf,MAAA,EAAQ,gBAAA;EACR,IAAA,EAAM,IAAA;EACN,OAAA;EACA,OAAA;EACA,SAAA;EACA,SAAA;EACA,WAAA;EACA,cAAA;EACA,KAAA,GAAQ,OAAA,GAAU,aAAA,EAAe,MAAA,GAAS,WAAA;EAC1C,OAAA;EACA,KAAA,EAAO,KAAA;EACP,MAAA,QAAc,OAAA;EACd,WAAA;AAAA;AAAA,iBA+Bc,aAAA,CAAA,GAAiB,UAAA;AAAA,KAuFrB,oBAAA;AAAA,UAKK,eAAA,SAAwB,UAAA;EA5HzB;EA8Hd,KAAA,EAAO,oBAAA;EACP,WAAA;AAAA;AAAA,iBAOc,kBAAA,CAAA,GAAsB,eAAA;;;iBC/JtB,UAAA,CAAW,UAAA;AAAA,iBAoGL,KAAA,CACpB,OAAA,sBACA,MAAA,EAAQ,OAAA,eACP,OAAA,CAAQ,IAAA;AAAA,iBA0BW,MAAA,CAAA,GAAM,OAAA;;;;cChIf,qBAAA;;cAIA,SAAA,QAAiB,OAAA,GAAU,OAAA;;cAI3B,SAAA,GAAY,KAAA,EAAO,OAAA,GAAU,OAAA;AFE1C;AAAA,iBEEgB,MAAA,CAAA;;iBA2CA,OAAA,CAAA,GAAW,IAAA;;iBA2CX,cAAA,CAAA,GAAkB,WAAA;;;UCvGjB,qBAAA;EACf,SAAA;EACA,QAAA;EACA,YAAA,GAAe,SAAA;EACf,WAAA,GAAc,SAAA;EACd,cAAA,GAAiB,SAAA;EACjB,QAAA,IAAY,IAAA,EAAM,UAAA,KAAe,SAAA;AAAA;AAAA,iBAGnB,gBAAA,CAAA;EACd,SAAA;EACA,QAAA;EACA,YAAA;EACA,WAAA;EACA,cAAA;EACA;AAAA,GACC,qBAAA,GAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UCfP,sBAAA;EACf,OAAA;EACA,QAAA;EACA,KAAA,GAAQ,aAAA;EACR,SAAA;EACA,OAAA;EACA,QAAA,GAAW,SAAA;AAAA;AAAA,iBAsCG,iBAAA,CAAA;EACd,OAAA,EAAS,WAAA;EACT,KAAA;EACA,SAAA;EACA,OAAA;EACA;AAAA,GACC,sBAAA,GAAsB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UCzCR,wBAAA;EACf,KAAA;EACA,IAAA,GAAO,SAAA;EACP,OAAA;EACA,KAAA,GAAQ,aAAA;AAAA;AAAA,UAGO,qBAAA;EACf,OAAA;EACA,QAAA;EACA,SAAA;EACA,MAAA;EACA,YAAA;EACA,KAAA,GAAQ,aAAA;EACR,SAAA;EACA,OAAA;EACA,QAAA,GAAW,SAAA;EACX,SAAA,GAAY,wBAAA;AAAA;AAAA,iBAiKE,gBAAA,CAAA;EACd,OAAA,EAAS,WAAA;EACT,QAAA,EAAU,YAAA;EACV,SAAA,EAAW,aAAA;EACX,MAAA,EAAQ,UAAA;EACR,YAAA,EAAc,gBAAA;EACd,KAAA;EACA,SAAA;EACA,OAAA;EACA,QAAA;EACA;AAAA,GACC,qBAAA,GAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UC1Md,SAAA;EACR,IAAA;EACA,KAAA;EACA,MAAA;EACA,KAAA;EACA,KAAA,GAAQ,aAAA;EACR,SAAA;AAAA;AAAA,UAGQ,eAAA,SAAwB,SAAA;EAChC,OAAA;AAAA;AAAA,iBAGc,UAAA,CAAA;EACd,KAAA;EACA,MAAA;EACA,OAAA;EACA,KAAA;EACA;AAAA,GACC,eAAA,GAAe,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAwBF,QAAA,CAAA;EACd,IAAA;EACA;AAAA,GACC,SAAA,GAAS,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBA2BI,cAAA,CAAA;EACd,IAAA;EACA;AAAA,GACC,SAAA,GAAS,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAkCI,WAAA,CAAA;EAAc,IAAA;EAAW;AAAA,GAA0B,SAAA,GAAS,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAiE5D,eAAA,CAAA;EACd,IAAA;EACA,KAAA;EACA;AAAA,GACC,SAAA,GAAS,kBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAqBI,QAAA,CAAA;EAAW,IAAA;EAAW;AAAA,GAAqB,SAAA,GAAS,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;;;;iBClM9C,iBAAA,CAAA,GAAiB,OAAA,CAAA,YAAA,CAAA,YAAA;;APYvC;;;iBOJsB,gBAAA,CAAA,GAAgB,OAAA,CAAA,YAAA,CAAA,YAAA;;;cChBzB,UAAA;AAAA,cACA,iBAAA;AAAA,cACA,eAAA;;;;KCMD,iBAAA;EACN,KAAA;EAAwB,IAAA,EAAM,IAAA;AAAA;EAC9B,KAAA;AAAA;EACA,KAAA;AAAA;AAAA,cAEO,sBAAA,EAAwB,iBAAA;AAAA,cACxB,wBAAA,EAA0B,iBAAA;AAAA,UAUtB,8BAAA;ETFU;ESIzB,WAAA,GAAc,iBAAA;ETHN;ESKR,WAAA,GAAc,IAAA;EACd,QAAA,EAAU,SAAA;AAAA;AAAA,iBAGI,yBAAA,CAAA;EACd,WAAA;EACA,WAAA;EACA;AAAA,GACC,8BAAA,GAA8B,kBAAA,CAAA,GAAA,CAAA,OAAA;;iBAejB,oBAAA,CAAA,GAAwB,iBAAA;AAAA,iBAIxB,oBAAA,CAAA,GAAwB,IAAA;;;UC7CvB,0BAAA;;EAEf,QAAA;;EAEA,SAAA;;EAEA,OAAA;AAAA;AAAA,UAGe,wBAAA;EVCW;EUC1B,MAAA;AAAA;AAAA,iBAKc,sBAAA,CACd,OAAA,GAAS,0BAAA,GACR,wBAAA;AAAA,iBA4Ea,sBAAA,CAAA;;;UCjGC,iBAAA;EACf,OAAA;;EAEA,SAAA;EACA,GAAA;EACA,cAAA;;EAEA,UAAA;EXM0B;EWJ1B,OAAA;AAAA;;AXMF;;;;;;;;;;;;iBWsCgB,aAAA,CAAA;EACd,OAAA;EACA,SAAA;EACA,GAAA;EACA,cAAA;EACA,UAAA;EACA;AAAA,GACC,iBAAA,GAAoB,OAAA,CAAQ,OAAA;;;UCjEd,WAAA,SAAoB,iBAAA;EACnC,OAAA,IAAW,KAAA;AAAA;;;;;AZiBb;;;;;AAEA;;;;;;;iBYAgB,MAAA,CAAA;EAAS,OAAA;EAAA,GAAY;AAAA,GAAe,WAAA;;;UCJnC,mBAAA;EACf,OAAA;;EAEA,SAAA;EACA,GAAA;EACA,cAAA;EbH0B;EaK1B,QAAA,GAAW,uBAAA;EACX,KAAA,GAAQ,WAAA;EbNgC;EaQxC,UAAA;EbNyB;EaQzB,OAAA;EbPQ;EaSR,OAAA;IAAY,IAAA,GAAO,IAAA;EAAA;EbCZ;EaCP,eAAA;EACA,OAAA,IAAW,KAAA;EACX,QAAA,EAAU,SAAA;AAAA;AAAA,iBA0BI,cAAA,CAAA;EACd,OAAA;EACA,SAAA;EACA,GAAA;EACA,cAAA;EACA,QAAA;EACA,KAAA;EACA,UAAA;EACA,OAAA;EACA,OAAA;EACA,eAAA;EACA,OAAA;EACA;AAAA,GACC,mBAAA,GAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UCsBL,yBAAA;;EAEf,QAAA,EAAU,uBAAA;;EAEV,KAAA,GAAQ,WAAA;EACR,QAAA,EAAU,SAAA;AAAA;;iBAII,oBAAA,CAAA;EACd,QAAA,EAAU,cAAA;EACV,KAAA;EACA;AAAA,GACC,yBAAA,GAAyB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;UCtGX,iBAAA;EACf,EAAA,EAAI,WAAA;EACJ,KAAA;AAAA;;iBAWc,qBAAA,CACd,MAAA,GAAS,OAAA,CAAQ,MAAA,CAAO,WAAA,aACvB,iBAAA;;;;iBCXa,sBAAA,WACJ,gBAAA,GAAmB,gBAAA,CAAA,CAC7B,EAAA,WAAa,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { t as PGlite } from "./pglite-CntadC_p-BtEalg1H.js";
|
|
|
6
6
|
import { r as PGliteWithLive } from "./index-CxxxP14A.js";
|
|
7
7
|
import { D as PropagationMode, T as MutateDocumentMutation, _ as CreateDocumentMutation, a as GraphQLDocumentEvents, c as ReactorGraphQLClient, d as DEFAULT_DRIVE_ID, f as DEFAULT_SWITCHBOARD_URL, g as ActionInput, h as graphqlEventsToSyncDrive, i as GraphQLDocumentEventOperationName, k as SdkFunctionWrapper, l as RunDocumentOptions, m as graphqlDocumentsEvents, n as GraphQLClientDocumentsEvent, o as GraphQLDocumentEventsOperationName, p as graphqlDocumentEvents, r as GraphQLClientWindowEvents, s as GraphQLDocumentsEvents, t as GraphQLClientDocumentEvent, u as TStateSchemaZodObject, v as DeleteDocumentMutation, w as GetDocumentWithOperationsQuery, x as FindDocumentsQuery, y as DeleteDocumentsMutation } from "./types-4rfAFZQd.js";
|
|
8
8
|
import { t as createClient } from "./client-DjkEpwu_.js";
|
|
9
|
-
import { $ as
|
|
9
|
+
import { $ as login, A as RENOWN_URL, B as RenownUserButton, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as CopyIcon, G as RenownAuthButton, H as RenownUserButtonProps, I as DisconnectIcon, J as setRenown, K as RenownAuthButtonProps, L as RenownLogo, M as initConnectCrypto, N as initRenownCrypto, O as RENOWN_CHAIN_ID, P as ChevronDownIcon, Q as useUser, R as SpinnerIcon, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownLoginButton, V as RenownUserButtonMenuItem, W as RenownLoginButtonProps, X as useLoginStatus, Y as useDid, Z as useRenown, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthStatus, b as RenownInitialUserProviderProps, c as Renown, d as useRenownInit, et as logout, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthResolution, j as VERIFIABLE_CREDENTIAL_EIP712_TYPE, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as RenownAuth, o as RenownProvider, ot as useRenownAuth, p as RenownSessionCookieState, q as addRenownEventHandler, r as useRenownLoginMethods, rt as RenownAuthAsync, s as RenownProviderProps, st as useRenownAuthAsync, t as useRenownWalletAdapter, tt as openRenown, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as UserIcon } from "./index-BV00np9e.js";
|
|
10
10
|
import { QueryCallbackReturnType, RelationalDbWithLive, createProcessorQuery, useRelationalDb, useRelationalQuery, useRelationalQueryOptions } from "./src/relational/index.js";
|
|
11
11
|
import * as document_model0 from "document-model";
|
|
12
12
|
import { DocumentModelLib, EditorModule, PHDocument, PHDocumentController } from "document-model";
|
|
@@ -1352,5 +1352,5 @@ declare function getUserPermissions(): {
|
|
|
1352
1352
|
//#region src/utils/validate-document.d.ts
|
|
1353
1353
|
declare const validateDocument: (document: PHDocument$1) => ValidationError[];
|
|
1354
1354
|
//#endregion
|
|
1355
|
-
export { ActionTracker, AddPHGlobalEventHandler, AttachmentDownloadStage, AttachmentUploadStage, BaseStorage, BearerTokenProvider, BrowserLocalStorage, BrowserReactorClientModule, BrowserReactorModule, COMMON_PACKAGE_ID, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, CanExecuteState, CanExecuteStatus, ChannelScheme, ChevronDownIcon, ConflictError, type ConflictInfo, ConflictResolution, type ConflictStrategy, ConnectionParams, type ConnectionState, type ConnectionStateSnapshot, CopyIcon, CreateStoreOptions, DEFAULT_DRIVE_EDITOR_ID, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, DRIVE_DOCUMENT_TYPES, type Database, DisconnectIcon, DiscoveryEvent, DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, DocumentDispatch, DocumentIntegrityService, DocumentModelNotFoundError, DocumentNotFoundError, DocumentOperationsState, DocumentTypeIcon, DocumentTypeMismatchError, DocumentUpgradePreview, DocumentVersionStatus, DraggingNode, DriveCollectionId, DriveSystemInfoState, EDITOR_FILE_DROP_OPT_OUT_ATTR, FailedInstallation, FailedInstallationReason, FileUploadProgress, FileUploadProgressCallback, FulfilledPromise, FullPHGlobalConfig, GetDocumentQueryFields, GetDocumentQueryResult, type GetDocumentResult, type GetDocumentWithOperationsResult, type GetOperationsResult, GqlRequestChannel, GraphQLClientDocumentCache, GraphQLClientDocumentEvent, GraphQLClientDocumentsEvent, GraphQLClientWindowEvents, GraphQLDocumentEventOperationName, GraphQLDocumentEvents, GraphQLDocumentEventsOperationName, GraphQLDocumentsEvents, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLRequestOptions, type IChannel, IDocumentCache, type IDocumentModelLoader, IPackageDiscoveryService, IPackageListerUnsubscribe, IPackageManager, IPackagesListener, type IProcessor, type IProcessorHostModule, type IQueue, IReactorBrowserClient, type IReactorClient, IReactorProcessorHostModule, type IRelationalDb, type IRemoteClient, type IRemoteController, ISSUER_TYPE, IStorage, InMemoryQueue, IntervalPollTimer, type Job, type JwtHandler, type KeyframeValidationIssue, LOADING, type MergeHandler, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, NoSelectedDocumentError, NodeKind, type OperationWithContext, PHAnalyticsGlobalConfig, PHAppConfig, PHAppConfigHooks, PHAppConfigKey, PHAppConfigSetters, PHCommonGlobalConfig, PHDocumentEditorConfig, PHDocumentEditorConfigHooks, PHDocumentEditorConfigKey, PHDocumentEditorConfigSetters, PHDrivesGlobalConfig, PHGlobal, PHGlobalConfig, PHGlobalConfigHooks, PHGlobalConfigHooksForKey, PHGlobalConfigKey, PHGlobalConfigSetters, PHGlobalConfigSettersForKey, PHGlobalEventHandlerAdders, PHGlobalKey, PHGlobalValue, PHModal, PHProcessorsGlobalConfig, PHRelationalProcessorsGlobalConfig, PHRenownGlobalConfig, PHSentryGlobalConfig, PHToastFn, PHToastOptions, PHToastType, PackageManagerInstallResult, type ParsedDriveUrl, PendingInstallation, PollBehavior, type ProcessorApp, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, PromiseState, PromiseWithState, PropagationMode, PublishEvent, type PushResult, QueryCallbackReturnType, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, ReactorDefaultDrivesConfig, type ReactorFeatureFlags, ReactorGraphQLClient, ReactorOperationFieldsFragmentDoc, type RebuildResult, RefreshReactorDataConfig, RegistryClient, RejectedPromise, RelationalDbProcessor, RelationalDbWithLive, type Remote, RemoteClient, type RemoteControllerGraphQLClient, type RemoteControllerOptions, RemoteDocumentController, type RemoteDocumentControllerWith, type RemoteDocumentData, type RemoteFilter, type RemoteMeta, type RemoteOperation, type RemoteOperationResultPage, Renown, RenownAuth, RenownAuthAsync, RenownAuthButton, RenownAuthButtonProps, RenownAuthResolution, RenownAuthStatus, RenownInitOptions, RenownInitialAuth, RenownInitialUserProvider, RenownInitialUserProviderProps, RenownLoginButton, RenownLoginButtonProps, RenownLoginMethod, RenownLogo, RenownProps, RenownProvider, RenownProviderProps, RenownSessionCookieOptions, RenownSessionCookieState, RenownUserButton, RenownUserButtonMenuItem, RenownUserButtonProps, RenownWalletProvider, RenownWalletProviderProps, RevisionsListSelection, RunDocumentOptions, SdkFunctionWrapper, SetEvent, SetPHGlobalValue, type SignerConfig, type SnapshotValidationIssue, SpinnerIcon, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, type SyncOperation, SyncOperationStatus, type SyncStatus, TStateSchemaZodObject, TimelineBarItem, TimelineDividerItem, TimelineItem, type TrackedAction, TypedGraphQLDocument, UISyncStatus, UnsupportedDocumentTypeError, UpgradeStepInfo, UseAttachmentPreviewInput, UseAttachmentPreviewReturn, UseAttachmentUploadReturn, UseDispatchResult, UseEditorFileDropOptions, UseEditorFileDropResult, UseOnDropFile, UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, WorkerReactorClientModule, WorkerReactorModule, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFileWithProgress, addFolder, addGaTrackingIdEventHandler, addGraphQLReactorClientEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownAdaptersEventHandler, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addSwitchboardUrlEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, describeGraphQLDocument, diffStateShapes, dispatchActions, downloadDocument, driveIdFromUrl, dropAllReactorStorage, ensurePHEventHandlers, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDocumentUpgradePreview, getDocumentVersionStatus, getDriveIdBySlug, getDrives, getGlobal, getPackagePage, getPackages, getPackagesByDocumentType, getPackagesForDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hasPreloadBandwidth, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isDocumentTypeSupported, isDriveAuthError, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, isGraphQLReactorClient, loadFile, loading, login, logout, makeAuthConnectionParams, makeAuthMiddleware, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, packageFromDocumentModels, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromGetDocument, phDocumentFromMutation, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, preloadEditorModule, prepareSignedActions, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveDocumentModelModule, resolveUrlPathname, revisionMapFromRevisionsList, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setAttachmentService, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveMetadata, setDriveSharingType, setDrives, setDrivesPreserveStrategy, setEnabledEditors, setFeatures, setFileUploadOperationsChunkSize, setGaTrackingId, setGlobal, setGraphQLReactorClient, setIsAddCloudDrivesEnabled, setIsAddDriveEnabled, setIsAddLocalDrivesEnabled, setIsAddPublicDrivesEnabled, setIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsEnabled, setIsAnalyticsExternalProcessorsEnabled, setIsCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, setIsDeleteLocalDrivesEnabled, setIsDeletePublicDrivesEnabled, setIsDiffAnalyticsEnabled, setIsDocumentModelSelectionSettingsEnabled, setIsDragAndDropEnabled, setIsDriveAnalyticsEnabled, setIsEditorDebugModeEnabled, setIsEditorReadModeEnabled, setIsExternalControlsEnabled, setIsExternalPackagesEnabled, setIsExternalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, setIsLocalDrivesEnabled, setIsPublicDrivesEnabled, setIsRelationalProcessorsEnabled, setIsSentryTracingEnabled, setLoading, setLocalDrivesEnabled, setLogLevel, setPGliteDB, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownAdapters, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setSwitchboardUrl, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, signStampedAction, sortNodesByName, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, trimTrailingSlash, truncateAllTables, upgradeDocument, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useAttachmentPreview, useAttachmentService, useAttachmentUpload, useAttachments, useBasePath, useCanExecute, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocumentVersionStatus, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEditorPreloader, useEnabledEditors, useFallbackEditorModule, useFeatures, useFileNodesInSelectedDrive, useFileNodesInSelectedFolder, useFileUploadOperationsChunkSize, useFolderById, useFolderNodesInSelectedDrive, useFolderNodesInSelectedFolder, useGaTrackingId, useGetDocument, useGetDocumentAsync, useGetDocuments, useGetSwitchboardLink, useGraphQLReactorClient, useInitReactorGraphqlClient, useIsAddCloudDrivesEnabled, useIsAddDriveEnabled, useIsAddLocalDrivesEnabled, useIsAddPublicDrivesEnabled, useIsAnalyticsDatabaseWorkerEnabled, useIsAnalyticsEnabled, useIsAnalyticsExternalProcessorsEnabled, useIsCloudDrivesEnabled, useIsDeleteCloudDrivesEnabled, useIsDeleteLocalDrivesEnabled, useIsDeletePublicDrivesEnabled, useIsDiffAnalyticsEnabled, useIsDocumentModelSelectionSettingsEnabled, useIsDragAndDropEnabled, useIsDriveAnalyticsEnabled, useIsEditorDebugModeEnabled, useIsEditorReadModeEnabled, useIsExternalControlsEnabled, useIsExternalPackagesEnabled, useIsExternalProcessorsEnabled, useIsExternalRelationalProcessorsEnabled, useIsLocalDrivesEnabled, useIsPublicDrivesEnabled, useIsRelationalProcessorsEnabled, useIsSentryTracingEnabled, useLoading, useLocalDrivesEnabled, useLogLevel, useLoginStatus, useModelRegistry, useNodeActions, useNodeById, useNodeParentFolderById, useNodePathById, useNodesInSelectedDrive, useNodesInSelectedDriveOrFolder, useNodesInSelectedFolder, useOnDropFile, usePGlite, usePHAppConfigByKey, usePHDocumentEditorConfigByKey, usePHGlobalConfigByKey, usePHModal, usePHToast, usePackageDiscoveryService, useParentFolderForSelectedNode, useReactorClient, useReactorClientModule, useRelationalDb, useRelationalQuery, useRelationalQueryOptions, useRenown, useRenownAdapters, useRenownAuth, useRenownAuthAsync, useRenownChainId, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownNetworkId, useRenownSessionCookie, useRenownSessionSynced, useRenownUrl, useRequiresHardRefresh, useResetPHGlobalConfig, useRevisionHistoryVisible, useRouterBasename, useSelectedDocument, useSelectedDocumentId, useSelectedDocumentOfType, useSelectedDocumentSafe, useSelectedDrive, useSelectedDriveId, useSelectedDriveSafe, useSelectedFolder, useSelectedNode, useSelectedNodePath, useSelectedTimelineItem, useSelectedTimelineRevision, useSentryDsn, useSentryEnv, useSentryRelease, useSetDefaultPHGlobalConfig, useSetPHAppConfig, useSetPHDocumentEditorConfig, useSetPHGlobalConfig, useStudioMode, useSubgraphModules, useSupportedDocumentTypesInReactor, useSwitchboardClient, useSwitchboardUrl, useSync, useSyncList, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, viewFilterInputFromViewFilter, waitForDocumentReady };
|
|
1355
|
+
export { ActionTracker, AddPHGlobalEventHandler, AttachmentDownloadStage, AttachmentUploadStage, BaseStorage, BearerTokenProvider, BrowserLocalStorage, BrowserReactorClientModule, BrowserReactorModule, COMMON_PACKAGE_ID, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, CanExecuteState, CanExecuteStatus, ChannelScheme, ChevronDownIcon, ConflictError, type ConflictInfo, ConflictResolution, type ConflictStrategy, ConnectionParams, type ConnectionState, type ConnectionStateSnapshot, CopyIcon, CreateStoreOptions, DEFAULT_DRIVE_EDITOR_ID, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, DRIVE_DOCUMENT_TYPES, type Database, DisconnectIcon, DiscoveryEvent, DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, DocumentDispatch, DocumentIntegrityService, DocumentModelNotFoundError, DocumentNotFoundError, DocumentOperationsState, DocumentTypeIcon, DocumentTypeMismatchError, DocumentUpgradePreview, DocumentVersionStatus, DraggingNode, DriveCollectionId, DriveSystemInfoState, EDITOR_FILE_DROP_OPT_OUT_ATTR, FailedInstallation, FailedInstallationReason, FileUploadProgress, FileUploadProgressCallback, FulfilledPromise, FullPHGlobalConfig, GetDocumentQueryFields, GetDocumentQueryResult, type GetDocumentResult, type GetDocumentWithOperationsResult, type GetOperationsResult, GqlRequestChannel, GraphQLClientDocumentCache, GraphQLClientDocumentEvent, GraphQLClientDocumentsEvent, GraphQLClientWindowEvents, GraphQLDocumentEventOperationName, GraphQLDocumentEvents, GraphQLDocumentEventsOperationName, GraphQLDocumentsEvents, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLRequestOptions, type IChannel, IDocumentCache, type IDocumentModelLoader, IPackageDiscoveryService, IPackageListerUnsubscribe, IPackageManager, IPackagesListener, type IProcessor, type IProcessorHostModule, type IQueue, IReactorBrowserClient, type IReactorClient, IReactorProcessorHostModule, type IRelationalDb, type IRemoteClient, type IRemoteController, ISSUER_TYPE, IStorage, InMemoryQueue, IntervalPollTimer, type Job, type JwtHandler, type KeyframeValidationIssue, LOADING, type MergeHandler, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, NoSelectedDocumentError, NodeKind, type OperationWithContext, PHAnalyticsGlobalConfig, PHAppConfig, PHAppConfigHooks, PHAppConfigKey, PHAppConfigSetters, PHCommonGlobalConfig, PHDocumentEditorConfig, PHDocumentEditorConfigHooks, PHDocumentEditorConfigKey, PHDocumentEditorConfigSetters, PHDrivesGlobalConfig, PHGlobal, PHGlobalConfig, PHGlobalConfigHooks, PHGlobalConfigHooksForKey, PHGlobalConfigKey, PHGlobalConfigSetters, PHGlobalConfigSettersForKey, PHGlobalEventHandlerAdders, PHGlobalKey, PHGlobalValue, PHModal, PHProcessorsGlobalConfig, PHRelationalProcessorsGlobalConfig, PHRenownGlobalConfig, PHSentryGlobalConfig, PHToastFn, PHToastOptions, PHToastType, PackageManagerInstallResult, type ParsedDriveUrl, PendingInstallation, PollBehavior, type ProcessorApp, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, PromiseState, PromiseWithState, PropagationMode, PublishEvent, type PushResult, QueryCallbackReturnType, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, ReactorDefaultDrivesConfig, type ReactorFeatureFlags, ReactorGraphQLClient, ReactorOperationFieldsFragmentDoc, type RebuildResult, RefreshReactorDataConfig, RegistryClient, RejectedPromise, RelationalDbProcessor, RelationalDbWithLive, type Remote, RemoteClient, type RemoteControllerGraphQLClient, type RemoteControllerOptions, RemoteDocumentController, type RemoteDocumentControllerWith, type RemoteDocumentData, type RemoteFilter, type RemoteMeta, type RemoteOperation, type RemoteOperationResultPage, Renown, RenownAuth, RenownAuthAsync, RenownAuthButton, RenownAuthButtonProps, RenownAuthResolution, RenownAuthStatus, RenownInitOptions, RenownInitialAuth, RenownInitialUserProvider, RenownInitialUserProviderProps, RenownLoginButton, RenownLoginButtonProps, RenownLoginMethod, RenownLogo, RenownProps, RenownProvider, RenownProviderProps, RenownSessionCookieOptions, RenownSessionCookieState, RenownUserButton, RenownUserButtonMenuItem, RenownUserButtonProps, RenownWalletProvider, RenownWalletProviderProps, RevisionsListSelection, RunDocumentOptions, SdkFunctionWrapper, SetEvent, SetPHGlobalValue, type SignerConfig, type SnapshotValidationIssue, SpinnerIcon, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, type SyncOperation, SyncOperationStatus, type SyncStatus, TStateSchemaZodObject, TimelineBarItem, TimelineDividerItem, TimelineItem, type TrackedAction, TypedGraphQLDocument, UISyncStatus, UnsupportedDocumentTypeError, UpgradeStepInfo, UseAttachmentPreviewInput, UseAttachmentPreviewReturn, UseAttachmentUploadReturn, UseDispatchResult, UseEditorFileDropOptions, UseEditorFileDropResult, UseOnDropFile, UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, WorkerReactorClientModule, WorkerReactorModule, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFileWithProgress, addFolder, addGaTrackingIdEventHandler, addGraphQLReactorClientEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownAdaptersEventHandler, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addSwitchboardUrlEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, describeGraphQLDocument, diffStateShapes, dispatchActions, downloadDocument, driveIdFromUrl, dropAllReactorStorage, ensurePHEventHandlers, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDocumentUpgradePreview, getDocumentVersionStatus, getDriveIdBySlug, getDrives, getGlobal, getPackagePage, getPackages, getPackagesByDocumentType, getPackagesForDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hasPreloadBandwidth, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isDocumentTypeSupported, isDriveAuthError, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, isGraphQLReactorClient, loadFile, loading, login, logout, makeAuthConnectionParams, makeAuthMiddleware, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, packageFromDocumentModels, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromGetDocument, phDocumentFromMutation, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, preloadEditorModule, prepareSignedActions, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveDocumentModelModule, resolveUrlPathname, revisionMapFromRevisionsList, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setAttachmentService, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveMetadata, setDriveSharingType, setDrives, setDrivesPreserveStrategy, setEnabledEditors, setFeatures, setFileUploadOperationsChunkSize, setGaTrackingId, setGlobal, setGraphQLReactorClient, setIsAddCloudDrivesEnabled, setIsAddDriveEnabled, setIsAddLocalDrivesEnabled, setIsAddPublicDrivesEnabled, setIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsEnabled, setIsAnalyticsExternalProcessorsEnabled, setIsCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, setIsDeleteLocalDrivesEnabled, setIsDeletePublicDrivesEnabled, setIsDiffAnalyticsEnabled, setIsDocumentModelSelectionSettingsEnabled, setIsDragAndDropEnabled, setIsDriveAnalyticsEnabled, setIsEditorDebugModeEnabled, setIsEditorReadModeEnabled, setIsExternalControlsEnabled, setIsExternalPackagesEnabled, setIsExternalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, setIsLocalDrivesEnabled, setIsPublicDrivesEnabled, setIsRelationalProcessorsEnabled, setIsSentryTracingEnabled, setLoading, setLocalDrivesEnabled, setLogLevel, setPGliteDB, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownAdapters, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setSwitchboardUrl, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, signStampedAction, sortNodesByName, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, trimTrailingSlash, truncateAllTables, upgradeDocument, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useAttachmentPreview, useAttachmentService, useAttachmentUpload, useAttachments, useBasePath, useCanExecute, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocumentVersionStatus, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEditorPreloader, useEnabledEditors, useFallbackEditorModule, useFeatures, useFileNodesInSelectedDrive, useFileNodesInSelectedFolder, useFileUploadOperationsChunkSize, useFolderById, useFolderNodesInSelectedDrive, useFolderNodesInSelectedFolder, useGaTrackingId, useGetDocument, useGetDocumentAsync, useGetDocuments, useGetSwitchboardLink, useGraphQLReactorClient, useInitReactorGraphqlClient, useIsAddCloudDrivesEnabled, useIsAddDriveEnabled, useIsAddLocalDrivesEnabled, useIsAddPublicDrivesEnabled, useIsAnalyticsDatabaseWorkerEnabled, useIsAnalyticsEnabled, useIsAnalyticsExternalProcessorsEnabled, useIsCloudDrivesEnabled, useIsDeleteCloudDrivesEnabled, useIsDeleteLocalDrivesEnabled, useIsDeletePublicDrivesEnabled, useIsDiffAnalyticsEnabled, useIsDocumentModelSelectionSettingsEnabled, useIsDragAndDropEnabled, useIsDriveAnalyticsEnabled, useIsEditorDebugModeEnabled, useIsEditorReadModeEnabled, useIsExternalControlsEnabled, useIsExternalPackagesEnabled, useIsExternalProcessorsEnabled, useIsExternalRelationalProcessorsEnabled, useIsLocalDrivesEnabled, useIsPublicDrivesEnabled, useIsRelationalProcessorsEnabled, useIsSentryTracingEnabled, useLoading, useLocalDrivesEnabled, useLogLevel, useLoginStatus, useModelRegistry, useNodeActions, useNodeById, useNodeParentFolderById, useNodePathById, useNodesInSelectedDrive, useNodesInSelectedDriveOrFolder, useNodesInSelectedFolder, useOnDropFile, usePGlite, usePHAppConfigByKey, usePHDocumentEditorConfigByKey, usePHGlobalConfigByKey, usePHModal, usePHToast, usePackageDiscoveryService, useParentFolderForSelectedNode, useReactorClient, useReactorClientModule, useRelationalDb, useRelationalQuery, useRelationalQueryOptions, useRenown, useRenownAdapters, useRenownAuth, useRenownAuthAsync, useRenownChainId, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownNetworkId, useRenownSessionCookie, useRenownSessionSynced, useRenownUrl, useRenownWalletAdapter, useRequiresHardRefresh, useResetPHGlobalConfig, useRevisionHistoryVisible, useRouterBasename, useSelectedDocument, useSelectedDocumentId, useSelectedDocumentOfType, useSelectedDocumentSafe, useSelectedDrive, useSelectedDriveId, useSelectedDriveSafe, useSelectedFolder, useSelectedNode, useSelectedNodePath, useSelectedTimelineItem, useSelectedTimelineRevision, useSentryDsn, useSentryEnv, useSentryRelease, useSetDefaultPHGlobalConfig, useSetPHAppConfig, useSetPHDocumentEditorConfig, useSetPHGlobalConfig, useStudioMode, useSubgraphModules, useSupportedDocumentTypesInReactor, useSwitchboardClient, useSwitchboardUrl, useSync, useSyncList, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, viewFilterInputFromViewFilter, waitForDocumentReady };
|
|
1356
1356
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as setDocumentCache, c as useDocumentSafe, d as useGetDocumentAsync, f as useGetDocuments, h as readPromiseState, i as addDocumentCacheEventHandler, l as useDocuments, m as addPromiseState, n as useDocumentsByIds, o as useDocument, p as DocumentCache, r as useDispatch, s as useDocumentCache, t as useDocumentById, u as useGetDocument, y as dispatchActions } from "./document-by-id-BSZqTN66.js";
|
|
2
|
-
import { $ as useGraphQLReactorClient, $i as ReactorOperationFieldsFragmentDoc, $n as setIsDeletePublicDrivesEnabled, $r as useIsEditorReadModeEnabled, $t as addIsCloudDrivesEnabledEventHandler, A as isFolderNodeKind, Aa as showPHModal, Ai as phDocumentEditorConfigSetters, An as addWarnOutdatedAppEventHandler, Ar as useBasePath, At as addFeaturesEventHandler, B as setReactorClientModule, Bi as makeAuthConnectionParams, Bn as setEnabledEditors, Br as useIsAddLocalDrivesEnabled, Bt as addDefaultDrivesUrlEventHandler, C as useSelectedNode, Ca as getUserPermissions, Ci as addAllowedDocumentTypesEventHandler, Cn as addSentryDsnEventHandler, Cr as setStudioMode, Ct as extractNodeIdFromSlug, D as useFolderNodesInSelectedDrive, Da as setPHModal, Di as phAppConfigHooks, Dn as addSwitchboardUrlEventHandler, Dr as setWarnOutdatedApp, Dt as makeDriveUrlComponent, E as useFileNodesInSelectedDrive, Ea as closePHModal, Ei as isExternalControlsEnabledEventFunctions, En as addStudioModeEventHandler, Er as setVersionCheckInterval, Et as getPathWithoutBase, F as showRevisionHistory, Fa as NoSelectedDocumentError, Fi as useIsDragAndDropEnabled, Fn as setBasePath, Fr as useEnabledEditors, Ft as useAttachmentService, G as useReactorClientModule, Gi as subgraphUrlFromGraphqlUrl, Gn as setIsAddLocalDrivesEnabled, Gr as useIsCloudDrivesEnabled, Gt as addGaTrackingIdEventHandler, H as useModelRegistry, Hi as subscriptionsUrlFromGraphqlUrl, Hn as setGaTrackingId, Hr as useIsAnalyticsDatabaseWorkerEnabled, Ht as addDrivesPreserveStrategyEventHandler, I as useRevisionHistoryVisible, Ia as UnsupportedDocumentTypeError, Ii as useIsExternalControlsEnabled, In as setCliVersion, Ir as useFileUploadOperationsChunkSize, It as addAllowListEventHandler, J as addPackageDiscoveryServiceEventHandler, Ji as resolveDocumentModelModule, Jn as setIsAnalyticsEnabled, Jr as useIsDeletePublicDrivesEnabled, Jt as addIsAddLocalDrivesEnabledEventHandler, K as useSync, Ki as StaticPackageManager, Kn as setIsAddPublicDrivesEnabled, Kr as useIsDeleteCloudDrivesEnabled, Kt as addIsAddCloudDrivesEnabledEventHandler, L as addReactorClientEventHandler, Li as GraphQLReactorClient, Ln as setDefaultDrivesUrl, Lr as useGaTrackingId, Lt as addAnalyticsDatabaseNameEventHandler, M as addRevisionHistoryVisibleEventHandler, Ma as DocumentModelNotFoundError, Mi as setIsDragAndDropEnabled, Mn as phGlobalConfigSetters, Mr as useDefaultDrivesUrl, Mt as useFeatures, N as hideRevisionHistory, Na as DocumentNotFoundError, Ni as setIsExternalControlsEnabled, Nn as setAllowList, Nr as useDisabledEditors, Nt as addAttachmentServiceEventHandler, O as useNodesInSelectedDrive, Oa as showCreateDocumentModal, Oi as phAppConfigSetters, On as addVersionCheckIntervalEventHandler, Or as useAllowList, Ot as makeNodeSlug, P as setRevisionHistoryVisible, Pa as DocumentTypeMismatchError, Pi as useAllowedDocumentTypes, Pn as setAnalyticsDatabaseName, Pr as useDrivesPreserveStrategy, Pt as setAttachmentService, Q as setGraphQLReactorClient, Qi as MutateDocumentWithOperationsDocument, Qn as setIsDeleteLocalDrivesEnabled, Qr as useIsEditorDebugModeEnabled, Qt as addIsAnalyticsExternalProcessorsEnabledEventHandler, R as addReactorClientModuleEventHandler, Ri as isGraphQLReactorClient, Rn as setDisabledEditors, Rr as useIsAddCloudDrivesEnabled, Rt as addBasePathEventHandler, S as useSelectedTimelineItem, Sa as upgradeDocument, Si as useWarnOutdatedApp, Sn as addRouterBasenameEventHandler, Sr as setSentryRelease, St as extractNodeIdFromPath, T as useDocumentsInSelectedDrive, Ta as addModalEventHandler, Ti as addIsExternalControlsEnabledEventHandler, Tn as addSentryReleaseEventHandler, Tr as setVersion, Tt as findUuid, U as usePGlite, Ui as SubgraphSdkRegistry, Un as setIsAddCloudDrivesEnabled, Ur as useIsAnalyticsEnabled, Ut as addEnabledEditorsEventHandler, V as useDatabase, Vi as startDocumentChangesSubscription, Vn as setFileUploadOperationsChunkSize, Vr as useIsAddPublicDrivesEnabled, Vt as addDisabledEditorsEventHandler, W as useReactorClient, Wi as describeGraphQLDocument, Wn as setIsAddDriveEnabled, Wr as useIsAnalyticsExternalProcessorsEnabled, Wt as addFileUploadOperationsChunkSizeEventHandler, X as usePackageDiscoveryService, Xi as signStampedAction, Xn as setIsCloudDrivesEnabled, Xr as useIsDocumentModelSelectionSettingsEnabled, Xt as addIsAnalyticsDatabaseWorkerEnabledEventHandler, Y as setPackageDiscoveryService, Yi as prepareSignedActions, Yn as setIsAnalyticsExternalProcessorsEnabled, Yr as useIsDiffAnalyticsEnabled, Yt as addIsAddPublicDrivesEnabledEventHandler, Z as addGraphQLReactorClientEventHandler, Zi as stampAction, Zn as setIsDeleteCloudDrivesEnabled, Zr as useIsDriveAnalyticsEnabled, Zt as addIsAnalyticsEnabledEventHandler, _ as addSelectedTimelineRevisionEventHandler, _a as exportFile, _i as useSentryRelease, _n as addRenownAdaptersEventHandler, _r as setRenownUrl, _t as useDrives, a as ensurePHEventHandlers, aa as ConflictError, ai as useIsRelationalProcessorsEnabled, an as addIsDriveAnalyticsEnabledEventHandler, ar as setIsExternalPackagesEnabled, at as addSetSelectedDriveOnPopStateEventHandler, b as addSelectedTimelineItemEventHandler, ba as renameDriveNode, bi as useVersion, bn as addRenownUrlEventHandler, br as setSentryDsn, bt as extractDriveIdFromSlug, c as callEventHandlerRegisterFunctions, ca as extractRevisionMap, ci as useLogLevel, cn as addIsExternalPackagesEnabledEventHandler, cr as setIsLocalDrivesEnabled, ct as useSelectedDrive, d as setVetraPackageManager, da as addDocument, di as useRenownNetworkId, dn as addIsLocalDrivesEnabledEventHandler, dr as setIsSentryTracingEnabled, dt as addResetSelectedNodeEventHandler, ea as ambientRenownTokenProvider, ei as useIsExternalPackagesEnabled, en as addIsDeleteCloudDrivesEnabledEventHandler, er as setIsDiffAnalyticsEnabled, et as addDraggingNodeEventHandler, f as useVetraPackageManager, fa as addFile, fi as useRenownUrl, fn as addIsPublicDrivesEnabledEventHandler, fr as setLocalDrivesEnabled, ft as addSelectedNodeIdEventHandler, g as usePHToast, ga as deleteNode, gi as useSentryEnv, gn as addLogLevelEventHandler, gr as setRenownNetworkId, gt as setDrives, h as setPHToast, ha as copyNode$1, hi as useSentryDsn, hn as addLocalDrivesEnabledEventHandler, hr as setRenownChainId, ht as addDrivesEventHandler, i as GraphQLReactorProvider, ia as revisionMapFromRevisionsList, ii as useIsPublicDrivesEnabled, in as addIsDocumentModelSelectionSettingsEnabledEventHandler, ir as setIsEditorReadModeEnabled, it as addSelectedDriveIdEventHandler, j as sortNodesByName, ja as usePHModal, ji as setAllowedDocumentTypes, jn as phGlobalConfigHooks, jr as useCliVersion, jt as setFeatures, k as isFileNodeKind, ka as showDeleteNodeModal, ki as phDocumentEditorConfigHooks, kn as addVersionEventHandler, kr as useAnalyticsDatabaseName, kt as resolveUrlPathname, l as commonGlobalEventHandlerFunctions, la as hasRevisionConflict, li as useRenownAdapters, ln as addIsExternalProcessorsEnabledEventHandler, lr as setIsPublicDrivesEnabled, lt as useSelectedDriveId, m as addToastEventHandler, ma as addFolder, mi as useRouterBasename, mn as addIsSentryTracingEnabledEventHandler, mr as setRenownAdapters, mt as setSelectedNode, n as useDocumentModelModuleById, na as phDocumentFromGetDocument, ni as useIsExternalRelationalProcessorsEnabled, nn as addIsDeletePublicDrivesEnabledEventHandler, nr as setIsDriveAnalyticsEnabled, nt as useDropNode, o as useSwitchboardClient, oa as buildPulledDocument, oi as useIsSentryTracingEnabled, on as addIsEditorDebugModeEnabledEventHandler, or as setIsExternalProcessorsEnabled, ot as setSelectedDrive, p as useVetraPackages, pa as addFileWithProgress, pi as useRequiresHardRefresh, pn as addIsRelationalProcessorsEnabledEventHandler, pr as setLogLevel, pt as addSetSelectedNodeOnPopStateEventHandler, q as useSyncList, qi as packageFromDocumentModels, qn as setIsAnalyticsDatabaseWorkerEnabled, qr as useIsDeleteLocalDrivesEnabled, qt as addIsAddDriveEnabledEventHandler, r as useDocumentModelModules, ra as phDocumentFromMutation, ri as useIsLocalDrivesEnabled, rn as addIsDiffAnalyticsEnabledEventHandler, rr as setIsEditorDebugModeEnabled, rt as useDropTarget, s as addPHEventHandlers, sa as convertRemoteOperations, si as useLocalDrivesEnabled, sn as addIsEditorReadModeEnabledEventHandler, sr as setIsExternalRelationalProcessorsEnabled, st as setSelectedDriveId, t as useDocumentOperations, ta as makeAuthMiddleware, ti as useIsExternalProcessorsEnabled, tn as addIsDeleteLocalDrivesEnabledEventHandler, tr as setIsDocumentModelSelectionSettingsEnabled, tt as useDragNode, u as addVetraPackageManagerEventHandler, ua as screamingSnakeToCamel, ui as useRenownChainId, un as addIsExternalRelationalProcessorsEnabledEventHandler, ur as setIsRelationalProcessorsEnabled, ut as useSelectedDriveSafe, v as setSelectedTimelineRevision, va as loadFile, vi as useStudioMode, vn as addRenownChainIdEventHandler, vr as setRequiresHardRefresh, vt as createUrlWithPreservedParams, w as useDocumentTypesInSelectedDrive, wa as isDocumentTypeSupported, wi as addIsDragAndDropEnabledEventHandler, wn as addSentryEnvEventHandler, wr as setSwitchboardUrl, wt as extractNodeSlugFromPath, x as setSelectedTimelineItem, xa as renameNode, xi as useVersionCheckInterval, xn as addRequiresHardRefreshEventHandler, xr as setSentryEnv, xt as extractDriveSlugFromPath, y as useSelectedTimelineRevision, ya as moveNode$1, yi as useSwitchboardUrl, yn as addRenownNetworkIdEventHandler, yr as setRouterBasename, yt as extractDriveIdFromPath, z as setReactorClient, zi as viewFilterInputFromViewFilter, zn as setDrivesPreserveStrategy, zr as useIsAddDriveEnabled, zt as addCliVersionEventHandler } from "./document-operations-
|
|
2
|
+
import { $ as useGraphQLReactorClient, $i as ReactorOperationFieldsFragmentDoc, $n as setIsDeletePublicDrivesEnabled, $r as useIsEditorReadModeEnabled, $t as addIsCloudDrivesEnabledEventHandler, A as isFolderNodeKind, Aa as showPHModal, Ai as phDocumentEditorConfigSetters, An as addWarnOutdatedAppEventHandler, Ar as useBasePath, At as addFeaturesEventHandler, B as setReactorClientModule, Bi as makeAuthConnectionParams, Bn as setEnabledEditors, Br as useIsAddLocalDrivesEnabled, Bt as addDefaultDrivesUrlEventHandler, C as useSelectedNode, Ca as getUserPermissions, Ci as addAllowedDocumentTypesEventHandler, Cn as addSentryDsnEventHandler, Cr as setStudioMode, Ct as extractNodeIdFromSlug, D as useFolderNodesInSelectedDrive, Da as setPHModal, Di as phAppConfigHooks, Dn as addSwitchboardUrlEventHandler, Dr as setWarnOutdatedApp, Dt as makeDriveUrlComponent, E as useFileNodesInSelectedDrive, Ea as closePHModal, Ei as isExternalControlsEnabledEventFunctions, En as addStudioModeEventHandler, Er as setVersionCheckInterval, Et as getPathWithoutBase, F as showRevisionHistory, Fa as NoSelectedDocumentError, Fi as useIsDragAndDropEnabled, Fn as setBasePath, Fr as useEnabledEditors, Ft as useAttachmentService, G as useReactorClientModule, Gi as subgraphUrlFromGraphqlUrl, Gn as setIsAddLocalDrivesEnabled, Gr as useIsCloudDrivesEnabled, Gt as addGaTrackingIdEventHandler, H as useModelRegistry, Hi as subscriptionsUrlFromGraphqlUrl, Hn as setGaTrackingId, Hr as useIsAnalyticsDatabaseWorkerEnabled, Ht as addDrivesPreserveStrategyEventHandler, I as useRevisionHistoryVisible, Ia as UnsupportedDocumentTypeError, Ii as useIsExternalControlsEnabled, In as setCliVersion, Ir as useFileUploadOperationsChunkSize, It as addAllowListEventHandler, J as addPackageDiscoveryServiceEventHandler, Ji as resolveDocumentModelModule, Jn as setIsAnalyticsEnabled, Jr as useIsDeletePublicDrivesEnabled, Jt as addIsAddLocalDrivesEnabledEventHandler, K as useSync, Ki as StaticPackageManager, Kn as setIsAddPublicDrivesEnabled, Kr as useIsDeleteCloudDrivesEnabled, Kt as addIsAddCloudDrivesEnabledEventHandler, L as addReactorClientEventHandler, Li as GraphQLReactorClient, Ln as setDefaultDrivesUrl, Lr as useGaTrackingId, Lt as addAnalyticsDatabaseNameEventHandler, M as addRevisionHistoryVisibleEventHandler, Ma as DocumentModelNotFoundError, Mi as setIsDragAndDropEnabled, Mn as phGlobalConfigSetters, Mr as useDefaultDrivesUrl, Mt as useFeatures, N as hideRevisionHistory, Na as DocumentNotFoundError, Ni as setIsExternalControlsEnabled, Nn as setAllowList, Nr as useDisabledEditors, Nt as addAttachmentServiceEventHandler, O as useNodesInSelectedDrive, Oa as showCreateDocumentModal, Oi as phAppConfigSetters, On as addVersionCheckIntervalEventHandler, Or as useAllowList, Ot as makeNodeSlug, P as setRevisionHistoryVisible, Pa as DocumentTypeMismatchError, Pi as useAllowedDocumentTypes, Pn as setAnalyticsDatabaseName, Pr as useDrivesPreserveStrategy, Pt as setAttachmentService, Q as setGraphQLReactorClient, Qi as MutateDocumentWithOperationsDocument, Qn as setIsDeleteLocalDrivesEnabled, Qr as useIsEditorDebugModeEnabled, Qt as addIsAnalyticsExternalProcessorsEnabledEventHandler, R as addReactorClientModuleEventHandler, Ri as isGraphQLReactorClient, Rn as setDisabledEditors, Rr as useIsAddCloudDrivesEnabled, Rt as addBasePathEventHandler, S as useSelectedTimelineItem, Sa as upgradeDocument, Si as useWarnOutdatedApp, Sn as addRouterBasenameEventHandler, Sr as setSentryRelease, St as extractNodeIdFromPath, T as useDocumentsInSelectedDrive, Ta as addModalEventHandler, Ti as addIsExternalControlsEnabledEventHandler, Tn as addSentryReleaseEventHandler, Tr as setVersion, Tt as findUuid, U as usePGlite, Ui as SubgraphSdkRegistry, Un as setIsAddCloudDrivesEnabled, Ur as useIsAnalyticsEnabled, Ut as addEnabledEditorsEventHandler, V as useDatabase, Vi as startDocumentChangesSubscription, Vn as setFileUploadOperationsChunkSize, Vr as useIsAddPublicDrivesEnabled, Vt as addDisabledEditorsEventHandler, W as useReactorClient, Wi as describeGraphQLDocument, Wn as setIsAddDriveEnabled, Wr as useIsAnalyticsExternalProcessorsEnabled, Wt as addFileUploadOperationsChunkSizeEventHandler, X as usePackageDiscoveryService, Xi as signStampedAction, Xn as setIsCloudDrivesEnabled, Xr as useIsDocumentModelSelectionSettingsEnabled, Xt as addIsAnalyticsDatabaseWorkerEnabledEventHandler, Y as setPackageDiscoveryService, Yi as prepareSignedActions, Yn as setIsAnalyticsExternalProcessorsEnabled, Yr as useIsDiffAnalyticsEnabled, Yt as addIsAddPublicDrivesEnabledEventHandler, Z as addGraphQLReactorClientEventHandler, Zi as stampAction, Zn as setIsDeleteCloudDrivesEnabled, Zr as useIsDriveAnalyticsEnabled, Zt as addIsAnalyticsEnabledEventHandler, _ as addSelectedTimelineRevisionEventHandler, _a as exportFile, _i as useSentryRelease, _n as addRenownAdaptersEventHandler, _r as setRenownUrl, _t as useDrives, a as ensurePHEventHandlers, aa as ConflictError, ai as useIsRelationalProcessorsEnabled, an as addIsDriveAnalyticsEnabledEventHandler, ar as setIsExternalPackagesEnabled, at as addSetSelectedDriveOnPopStateEventHandler, b as addSelectedTimelineItemEventHandler, ba as renameDriveNode, bi as useVersion, bn as addRenownUrlEventHandler, br as setSentryDsn, bt as extractDriveIdFromSlug, c as callEventHandlerRegisterFunctions, ca as extractRevisionMap, ci as useLogLevel, cn as addIsExternalPackagesEnabledEventHandler, cr as setIsLocalDrivesEnabled, ct as useSelectedDrive, d as setVetraPackageManager, da as addDocument, di as useRenownNetworkId, dn as addIsLocalDrivesEnabledEventHandler, dr as setIsSentryTracingEnabled, dt as addResetSelectedNodeEventHandler, ea as ambientRenownTokenProvider, ei as useIsExternalPackagesEnabled, en as addIsDeleteCloudDrivesEnabledEventHandler, er as setIsDiffAnalyticsEnabled, et as addDraggingNodeEventHandler, f as useVetraPackageManager, fa as addFile, fi as useRenownUrl, fn as addIsPublicDrivesEnabledEventHandler, fr as setLocalDrivesEnabled, ft as addSelectedNodeIdEventHandler, g as usePHToast, ga as deleteNode, gi as useSentryEnv, gn as addLogLevelEventHandler, gr as setRenownNetworkId, gt as setDrives, h as setPHToast, ha as copyNode$1, hi as useSentryDsn, hn as addLocalDrivesEnabledEventHandler, hr as setRenownChainId, ht as addDrivesEventHandler, i as GraphQLReactorProvider, ia as revisionMapFromRevisionsList, ii as useIsPublicDrivesEnabled, in as addIsDocumentModelSelectionSettingsEnabledEventHandler, ir as setIsEditorReadModeEnabled, it as addSelectedDriveIdEventHandler, j as sortNodesByName, ja as usePHModal, ji as setAllowedDocumentTypes, jn as phGlobalConfigHooks, jr as useCliVersion, jt as setFeatures, k as isFileNodeKind, ka as showDeleteNodeModal, ki as phDocumentEditorConfigHooks, kn as addVersionEventHandler, kr as useAnalyticsDatabaseName, kt as resolveUrlPathname, l as commonGlobalEventHandlerFunctions, la as hasRevisionConflict, li as useRenownAdapters, ln as addIsExternalProcessorsEnabledEventHandler, lr as setIsPublicDrivesEnabled, lt as useSelectedDriveId, m as addToastEventHandler, ma as addFolder, mi as useRouterBasename, mn as addIsSentryTracingEnabledEventHandler, mr as setRenownAdapters, mt as setSelectedNode, n as useDocumentModelModuleById, na as phDocumentFromGetDocument, ni as useIsExternalRelationalProcessorsEnabled, nn as addIsDeletePublicDrivesEnabledEventHandler, nr as setIsDriveAnalyticsEnabled, nt as useDropNode, o as useSwitchboardClient, oa as buildPulledDocument, oi as useIsSentryTracingEnabled, on as addIsEditorDebugModeEnabledEventHandler, or as setIsExternalProcessorsEnabled, ot as setSelectedDrive, p as useVetraPackages, pa as addFileWithProgress, pi as useRequiresHardRefresh, pn as addIsRelationalProcessorsEnabledEventHandler, pr as setLogLevel, pt as addSetSelectedNodeOnPopStateEventHandler, q as useSyncList, qi as packageFromDocumentModels, qn as setIsAnalyticsDatabaseWorkerEnabled, qr as useIsDeleteLocalDrivesEnabled, qt as addIsAddDriveEnabledEventHandler, r as useDocumentModelModules, ra as phDocumentFromMutation, ri as useIsLocalDrivesEnabled, rn as addIsDiffAnalyticsEnabledEventHandler, rr as setIsEditorDebugModeEnabled, rt as useDropTarget, s as addPHEventHandlers, sa as convertRemoteOperations, si as useLocalDrivesEnabled, sn as addIsEditorReadModeEnabledEventHandler, sr as setIsExternalRelationalProcessorsEnabled, st as setSelectedDriveId, t as useDocumentOperations, ta as makeAuthMiddleware, ti as useIsExternalProcessorsEnabled, tn as addIsDeleteLocalDrivesEnabledEventHandler, tr as setIsDocumentModelSelectionSettingsEnabled, tt as useDragNode, u as addVetraPackageManagerEventHandler, ua as screamingSnakeToCamel, ui as useRenownChainId, un as addIsExternalRelationalProcessorsEnabledEventHandler, ur as setIsRelationalProcessorsEnabled, ut as useSelectedDriveSafe, v as setSelectedTimelineRevision, va as loadFile, vi as useStudioMode, vn as addRenownChainIdEventHandler, vr as setRequiresHardRefresh, vt as createUrlWithPreservedParams, w as useDocumentTypesInSelectedDrive, wa as isDocumentTypeSupported, wi as addIsDragAndDropEnabledEventHandler, wn as addSentryEnvEventHandler, wr as setSwitchboardUrl, wt as extractNodeSlugFromPath, x as setSelectedTimelineItem, xa as renameNode, xi as useVersionCheckInterval, xn as addRequiresHardRefreshEventHandler, xr as setSentryEnv, xt as extractDriveSlugFromPath, y as useSelectedTimelineRevision, ya as moveNode$1, yi as useSwitchboardUrl, yn as addRenownNetworkIdEventHandler, yr as setRouterBasename, yt as extractDriveIdFromPath, z as setReactorClient, zi as viewFilterInputFromViewFilter, zn as setDrivesPreserveStrategy, zr as useIsAddDriveEnabled, zt as addCliVersionEventHandler } from "./document-operations-DQfMZpj8.js";
|
|
3
3
|
import { t as makePHEventFunctions } from "./make-ph-event-functions-DBq3iWYn.js";
|
|
4
4
|
import { a as setGlobal, i as getGlobal, n as getAnalyticsStore, r as clearGlobal, t as createAnalyticsStore } from "./store-DAJq6vSs.js";
|
|
5
5
|
import { baseDocumentModels, baseDocumentModelsMap } from "./src/document-model.js";
|
|
6
6
|
import { i as GetDocumentWithOperationsDocument, o as PropagationMode, t as createClient } from "./client-DB8gP4hz.js";
|
|
7
|
-
import { a as useRenown, c as RENOWN_INITIAL_UNKNOWN, d as useRenownInitialUser, f as addLoadingEventHandler, h as useLoading, i as useLoginStatus, l as RenownInitialUserProvider, m as setLoading, n as setRenown, o as useUser, p as loading, r as useDid, s as RENOWN_INITIAL_ANONYMOUS, t as addRenownEventHandler, u as useRenownInitialAuth } from "./renown-
|
|
8
|
-
import { A as
|
|
7
|
+
import { a as useRenown, c as RENOWN_INITIAL_UNKNOWN, d as useRenownInitialUser, f as addLoadingEventHandler, h as useLoading, i as useLoginStatus, l as RenownInitialUserProvider, m as setLoading, n as setRenown, o as useUser, p as loading, r as useDid, s as RENOWN_INITIAL_ANONYMOUS, t as addRenownEventHandler, u as useRenownInitialAuth } from "./renown-6w_ImTvm.js";
|
|
8
|
+
import { A as RENOWN_CHAIN_ID, C as logout, D as CREDENTIAL_TYPES, E as CREDENTIAL_SUBJECT_TYPE, M as RENOWN_URL, N as VERIFIABLE_CREDENTIAL_EIP712_TYPE, O as DOMAIN_TYPE, S as login, T as CREDENTIAL_SCHEMA_EIP712_TYPE, _ as RenownLogo, a as Renown, b as useRenownAuth, c as useRenownSessionSynced, d as RenownAuthButton, f as RenownUserButton, g as DisconnectIcon, h as CopyIcon, i as RenownWalletProvider, j as RENOWN_NETWORK_ID, k as ISSUER_TYPE, l as initConnectCrypto, m as ChevronDownIcon, n as useRenownLoginMethods, o as useRenownInit, p as RenownLoginButton, r as RenownProvider, s as useRenownSessionCookie, t as useRenownWalletAdapter, u as initRenownCrypto, v as SpinnerIcon, w as openRenown, x as useRenownAuthAsync, y as UserIcon } from "./renown-DRnlawbP.js";
|
|
9
9
|
import { i as setPGliteDB, n as useRelationalQuery, r as useRelationalDb, t as createProcessorQuery } from "./relational-C_0GdGVN.js";
|
|
10
10
|
import { a as getPackagesForDocumentType, i as getPackagesByDocumentType, n as getPackagePage, o as trimTrailingSlash, r as getPackages, t as RegistryClient } from "./client-Zz_l9QzI.js";
|
|
11
11
|
import { toTransportAction, validateInitialState, validateModules, validateStateSchemaName } from "@powerhousedao/shared/document-model";
|
|
@@ -2808,6 +2808,6 @@ var BrowserLocalStorage = class extends BaseStorage {
|
|
|
2808
2808
|
}
|
|
2809
2809
|
};
|
|
2810
2810
|
//#endregion
|
|
2811
|
-
export { ActionTracker, BaseStorage, BrowserLocalStorage, COMMON_PACKAGE_ID, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChannelScheme, ChevronDownIcon, ConflictError, CopyIcon, DEFAULT_DRIVE_EDITOR_ID, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, DRIVE_DOCUMENT_TYPES, DisconnectIcon, DocumentCache, DocumentChangeType, DocumentIntegrityService, DocumentModelNotFoundError, DocumentNotFoundError, DocumentTypeMismatchError, DriveCollectionId, EDITOR_FILE_DROP_OPT_OUT_ATTR, GqlRequestChannel, GraphQLClientDocumentCache, GraphQLReactorClient, GraphQLReactorProvider, ISSUER_TYPE, InMemoryQueue, IntervalPollTimer, MutateDocumentWithOperationsDocument, NoSelectedDocumentError, PollBehavior, PropagationMode, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, ReactorOperationFieldsFragmentDoc, RegistryClient, RelationalDbProcessor, RemoteClient, RemoteDocumentController, Renown, RenownAuthButton, RenownInitialUserProvider, RenownLoginButton, RenownLogo, RenownProvider, RenownUserButton, RenownWalletProvider, SpinnerIcon, StaticPackageManager, SubgraphSdkRegistry, SyncOperationStatus, UnsupportedDocumentTypeError, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFileWithProgress, addFolder, addGaTrackingIdEventHandler, addGraphQLReactorClientEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownAdaptersEventHandler, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addSwitchboardUrlEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, describeGraphQLDocument, diffStateShapes, dispatchActions, downloadDocument, driveIdFromUrl, dropAllReactorStorage, ensurePHEventHandlers, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDocumentUpgradePreview, getDocumentVersionStatus, getDriveIdBySlug, getDrives, getGlobal, getPackagePage, getPackages, getPackagesByDocumentType, getPackagesForDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hasPreloadBandwidth, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isDocumentTypeSupported, isDriveAuthError, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, isGraphQLReactorClient, loadFile, loading, login, logout, makeAuthConnectionParams, makeAuthMiddleware, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, packageFromDocumentModels, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromGetDocument, phDocumentFromMutation, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, preloadEditorModule, prepareSignedActions, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveDocumentModelModule, resolveUrlPathname, revisionMapFromRevisionsList, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setAttachmentService, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveMetadata, setDriveSharingType, setDrives, setDrivesPreserveStrategy, setEnabledEditors, setFeatures, setFileUploadOperationsChunkSize, setGaTrackingId, setGlobal, setGraphQLReactorClient, setIsAddCloudDrivesEnabled, setIsAddDriveEnabled, setIsAddLocalDrivesEnabled, setIsAddPublicDrivesEnabled, setIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsEnabled, setIsAnalyticsExternalProcessorsEnabled, setIsCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, setIsDeleteLocalDrivesEnabled, setIsDeletePublicDrivesEnabled, setIsDiffAnalyticsEnabled, setIsDocumentModelSelectionSettingsEnabled, setIsDragAndDropEnabled, setIsDriveAnalyticsEnabled, setIsEditorDebugModeEnabled, setIsEditorReadModeEnabled, setIsExternalControlsEnabled, setIsExternalPackagesEnabled, setIsExternalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, setIsLocalDrivesEnabled, setIsPublicDrivesEnabled, setIsRelationalProcessorsEnabled, setIsSentryTracingEnabled, setLoading, setLocalDrivesEnabled, setLogLevel, setPGliteDB, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownAdapters, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setSwitchboardUrl, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, signStampedAction, sortNodesByName, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, trimTrailingSlash, truncateAllTables, upgradeDocument, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useAttachmentPreview, useAttachmentService, useAttachmentUpload, useAttachments, useBasePath, useCanExecute, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocumentVersionStatus, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEditorPreloader, useEnabledEditors, useFallbackEditorModule, useFeatures, useFileNodesInSelectedDrive, useFileNodesInSelectedFolder, useFileUploadOperationsChunkSize, useFolderById, useFolderNodesInSelectedDrive, useFolderNodesInSelectedFolder, useGaTrackingId, useGetDocument, useGetDocumentAsync, useGetDocuments, useGetSwitchboardLink, useGraphQLReactorClient, useInitReactorGraphqlClient, useIsAddCloudDrivesEnabled, useIsAddDriveEnabled, useIsAddLocalDrivesEnabled, useIsAddPublicDrivesEnabled, useIsAnalyticsDatabaseWorkerEnabled, useIsAnalyticsEnabled, useIsAnalyticsExternalProcessorsEnabled, useIsCloudDrivesEnabled, useIsDeleteCloudDrivesEnabled, useIsDeleteLocalDrivesEnabled, useIsDeletePublicDrivesEnabled, useIsDiffAnalyticsEnabled, useIsDocumentModelSelectionSettingsEnabled, useIsDragAndDropEnabled, useIsDriveAnalyticsEnabled, useIsEditorDebugModeEnabled, useIsEditorReadModeEnabled, useIsExternalControlsEnabled, useIsExternalPackagesEnabled, useIsExternalProcessorsEnabled, useIsExternalRelationalProcessorsEnabled, useIsLocalDrivesEnabled, useIsPublicDrivesEnabled, useIsRelationalProcessorsEnabled, useIsSentryTracingEnabled, useLoading, useLocalDrivesEnabled, useLogLevel, useLoginStatus, useModelRegistry, useNodeActions, useNodeById, useNodeParentFolderById, useNodePathById, useNodesInSelectedDrive, useNodesInSelectedDriveOrFolder, useNodesInSelectedFolder, useOnDropFile, usePGlite, usePHAppConfigByKey, usePHDocumentEditorConfigByKey, usePHGlobalConfigByKey, usePHModal, usePHToast, usePackageDiscoveryService, useParentFolderForSelectedNode, useReactorClient, useReactorClientModule, useRelationalDb, useRelationalQuery, useRenown, useRenownAdapters, useRenownAuth, useRenownAuthAsync, useRenownChainId, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownNetworkId, useRenownSessionCookie, useRenownSessionSynced, useRenownUrl, useRequiresHardRefresh, useResetPHGlobalConfig, useRevisionHistoryVisible, useRouterBasename, useSelectedDocument, useSelectedDocumentId, useSelectedDocumentOfType, useSelectedDocumentSafe, useSelectedDrive, useSelectedDriveId, useSelectedDriveSafe, useSelectedFolder, useSelectedNode, useSelectedNodePath, useSelectedTimelineItem, useSelectedTimelineRevision, useSentryDsn, useSentryEnv, useSentryRelease, useSetDefaultPHGlobalConfig, useSetPHAppConfig, useSetPHDocumentEditorConfig, useSetPHGlobalConfig, useStudioMode, useSubgraphModules, useSupportedDocumentTypesInReactor, useSwitchboardClient, useSwitchboardUrl, useSync, useSyncList, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, viewFilterInputFromViewFilter, waitForDocumentReady };
|
|
2811
|
+
export { ActionTracker, BaseStorage, BrowserLocalStorage, COMMON_PACKAGE_ID, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChannelScheme, ChevronDownIcon, ConflictError, CopyIcon, DEFAULT_DRIVE_EDITOR_ID, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, DRIVE_DOCUMENT_TYPES, DisconnectIcon, DocumentCache, DocumentChangeType, DocumentIntegrityService, DocumentModelNotFoundError, DocumentNotFoundError, DocumentTypeMismatchError, DriveCollectionId, EDITOR_FILE_DROP_OPT_OUT_ATTR, GqlRequestChannel, GraphQLClientDocumentCache, GraphQLReactorClient, GraphQLReactorProvider, ISSUER_TYPE, InMemoryQueue, IntervalPollTimer, MutateDocumentWithOperationsDocument, NoSelectedDocumentError, PollBehavior, PropagationMode, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, ReactorOperationFieldsFragmentDoc, RegistryClient, RelationalDbProcessor, RemoteClient, RemoteDocumentController, Renown, RenownAuthButton, RenownInitialUserProvider, RenownLoginButton, RenownLogo, RenownProvider, RenownUserButton, RenownWalletProvider, SpinnerIcon, StaticPackageManager, SubgraphSdkRegistry, SyncOperationStatus, UnsupportedDocumentTypeError, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFileWithProgress, addFolder, addGaTrackingIdEventHandler, addGraphQLReactorClientEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownAdaptersEventHandler, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addSwitchboardUrlEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, describeGraphQLDocument, diffStateShapes, dispatchActions, downloadDocument, driveIdFromUrl, dropAllReactorStorage, ensurePHEventHandlers, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, findUuid, getAnalyticsStore, getDocumentGraphqlQuery, getDocumentUpgradePreview, getDocumentVersionStatus, getDriveIdBySlug, getDrives, getGlobal, getPackagePage, getPackages, getPackagesByDocumentType, getPackagesForDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hasPreloadBandwidth, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isDocumentTypeSupported, isDriveAuthError, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, isGraphQLReactorClient, loadFile, loading, login, logout, makeAuthConnectionParams, makeAuthMiddleware, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, packageFromDocumentModels, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromGetDocument, phDocumentFromMutation, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, preloadEditorModule, prepareSignedActions, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveDocumentModelModule, resolveUrlPathname, revisionMapFromRevisionsList, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setAttachmentService, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveMetadata, setDriveSharingType, setDrives, setDrivesPreserveStrategy, setEnabledEditors, setFeatures, setFileUploadOperationsChunkSize, setGaTrackingId, setGlobal, setGraphQLReactorClient, setIsAddCloudDrivesEnabled, setIsAddDriveEnabled, setIsAddLocalDrivesEnabled, setIsAddPublicDrivesEnabled, setIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsEnabled, setIsAnalyticsExternalProcessorsEnabled, setIsCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, setIsDeleteLocalDrivesEnabled, setIsDeletePublicDrivesEnabled, setIsDiffAnalyticsEnabled, setIsDocumentModelSelectionSettingsEnabled, setIsDragAndDropEnabled, setIsDriveAnalyticsEnabled, setIsEditorDebugModeEnabled, setIsEditorReadModeEnabled, setIsExternalControlsEnabled, setIsExternalPackagesEnabled, setIsExternalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, setIsLocalDrivesEnabled, setIsPublicDrivesEnabled, setIsRelationalProcessorsEnabled, setIsSentryTracingEnabled, setLoading, setLocalDrivesEnabled, setLogLevel, setPGliteDB, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setReactorClient, setReactorClientModule, setRenown, setRenownAdapters, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setSwitchboardUrl, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, signStampedAction, sortNodesByName, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, trimTrailingSlash, truncateAllTables, upgradeDocument, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useAttachmentPreview, useAttachmentService, useAttachmentUpload, useAttachments, useBasePath, useCanExecute, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocumentVersionStatus, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEditorPreloader, useEnabledEditors, useFallbackEditorModule, useFeatures, useFileNodesInSelectedDrive, useFileNodesInSelectedFolder, useFileUploadOperationsChunkSize, useFolderById, useFolderNodesInSelectedDrive, useFolderNodesInSelectedFolder, useGaTrackingId, useGetDocument, useGetDocumentAsync, useGetDocuments, useGetSwitchboardLink, useGraphQLReactorClient, useInitReactorGraphqlClient, useIsAddCloudDrivesEnabled, useIsAddDriveEnabled, useIsAddLocalDrivesEnabled, useIsAddPublicDrivesEnabled, useIsAnalyticsDatabaseWorkerEnabled, useIsAnalyticsEnabled, useIsAnalyticsExternalProcessorsEnabled, useIsCloudDrivesEnabled, useIsDeleteCloudDrivesEnabled, useIsDeleteLocalDrivesEnabled, useIsDeletePublicDrivesEnabled, useIsDiffAnalyticsEnabled, useIsDocumentModelSelectionSettingsEnabled, useIsDragAndDropEnabled, useIsDriveAnalyticsEnabled, useIsEditorDebugModeEnabled, useIsEditorReadModeEnabled, useIsExternalControlsEnabled, useIsExternalPackagesEnabled, useIsExternalProcessorsEnabled, useIsExternalRelationalProcessorsEnabled, useIsLocalDrivesEnabled, useIsPublicDrivesEnabled, useIsRelationalProcessorsEnabled, useIsSentryTracingEnabled, useLoading, useLocalDrivesEnabled, useLogLevel, useLoginStatus, useModelRegistry, useNodeActions, useNodeById, useNodeParentFolderById, useNodePathById, useNodesInSelectedDrive, useNodesInSelectedDriveOrFolder, useNodesInSelectedFolder, useOnDropFile, usePGlite, usePHAppConfigByKey, usePHDocumentEditorConfigByKey, usePHGlobalConfigByKey, usePHModal, usePHToast, usePackageDiscoveryService, useParentFolderForSelectedNode, useReactorClient, useReactorClientModule, useRelationalDb, useRelationalQuery, useRenown, useRenownAdapters, useRenownAuth, useRenownAuthAsync, useRenownChainId, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownNetworkId, useRenownSessionCookie, useRenownSessionSynced, useRenownUrl, useRenownWalletAdapter, useRequiresHardRefresh, useResetPHGlobalConfig, useRevisionHistoryVisible, useRouterBasename, useSelectedDocument, useSelectedDocumentId, useSelectedDocumentOfType, useSelectedDocumentSafe, useSelectedDrive, useSelectedDriveId, useSelectedDriveSafe, useSelectedFolder, useSelectedNode, useSelectedNodePath, useSelectedTimelineItem, useSelectedTimelineRevision, useSentryDsn, useSentryEnv, useSentryRelease, useSetDefaultPHGlobalConfig, useSetPHAppConfig, useSetPHDocumentEditorConfig, useSetPHGlobalConfig, useStudioMode, useSubgraphModules, useSupportedDocumentTypesInReactor, useSwitchboardClient, useSwitchboardUrl, useSync, useSyncList, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, viewFilterInputFromViewFilter, waitForDocumentReady };
|
|
2812
2812
|
|
|
2813
2813
|
//# sourceMappingURL=index.js.map
|
|
@@ -40,19 +40,48 @@ const setRenown = renownEventFunctions.setValue;
|
|
|
40
40
|
function useDid() {
|
|
41
41
|
return useRenown()?.did;
|
|
42
42
|
}
|
|
43
|
+
function jsonEqual(a, b) {
|
|
44
|
+
if (a === b) return true;
|
|
45
|
+
if (typeof a !== "object" || typeof b !== "object" || !a || !b) return false;
|
|
46
|
+
if (Array.isArray(a) !== Array.isArray(b)) return false;
|
|
47
|
+
const ra = a;
|
|
48
|
+
const rb = b;
|
|
49
|
+
const keys = Object.keys(ra).filter((k) => ra[k] !== void 0);
|
|
50
|
+
if (keys.length !== Object.keys(rb).filter((k) => rb[k] !== void 0).length) return false;
|
|
51
|
+
return keys.every((k) => jsonEqual(ra[k], rb[k]));
|
|
52
|
+
}
|
|
53
|
+
function sameUser(a, b) {
|
|
54
|
+
return jsonEqual(a, b);
|
|
55
|
+
}
|
|
56
|
+
function resolveInstanceUser(instance, seed) {
|
|
57
|
+
const restored = instance.user;
|
|
58
|
+
if (restored) return sameUser(seed, restored) ? seed : restored;
|
|
59
|
+
return instance.status === "initial" ? void 0 : seed;
|
|
60
|
+
}
|
|
43
61
|
/** Returns the current user from the renown instance, subscribing to user events */
|
|
44
62
|
function useUser() {
|
|
45
63
|
const renown = useRenown();
|
|
46
64
|
const initialUser = useRenownInitialUser();
|
|
47
65
|
const instance = renown ? renown : void 0;
|
|
48
|
-
const [
|
|
66
|
+
const [tracked, setTracked] = useState(() => ({
|
|
67
|
+
instance,
|
|
68
|
+
user: instance ? resolveInstanceUser(instance, initialUser) : initialUser
|
|
69
|
+
}));
|
|
70
|
+
const current = tracked.instance === instance ? tracked : {
|
|
71
|
+
instance,
|
|
72
|
+
user: instance ? resolveInstanceUser(instance, tracked.user ?? initialUser) : tracked.user
|
|
73
|
+
};
|
|
74
|
+
useEffect(() => {
|
|
75
|
+
if (current !== tracked) setTracked(current);
|
|
76
|
+
}, [current, tracked]);
|
|
49
77
|
useEffect(() => {
|
|
50
|
-
if (instance)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
78
|
+
if (!instance) return;
|
|
79
|
+
return instance.on("user", (user) => setTracked((prev) => ({
|
|
80
|
+
instance,
|
|
81
|
+
user: sameUser(prev.user, user) ? prev.user : user
|
|
82
|
+
})));
|
|
54
83
|
}, [instance]);
|
|
55
|
-
return instance ? user : initialUser ?? user;
|
|
84
|
+
return instance ? current.user : initialUser ?? current.user;
|
|
56
85
|
}
|
|
57
86
|
/** Returns the login status, subscribing to renown status events */
|
|
58
87
|
function useLoginStatus() {
|
|
@@ -65,4 +94,4 @@ function useLoginStatus() {
|
|
|
65
94
|
//#endregion
|
|
66
95
|
export { useRenown as a, RENOWN_INITIAL_UNKNOWN as c, useRenownInitialUser as d, addLoadingEventHandler as f, useLoading as h, useLoginStatus as i, RenownInitialUserProvider as l, setLoading as m, setRenown as n, useUser as o, loading as p, useDid as r, RENOWN_INITIAL_ANONYMOUS as s, addRenownEventHandler as t, useRenownInitialAuth as u };
|
|
67
96
|
|
|
68
|
-
//# sourceMappingURL=renown-
|
|
97
|
+
//# sourceMappingURL=renown-6w_ImTvm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renown-6w_ImTvm.js","names":[],"sources":["../src/hooks/loading.ts","../src/renown/initial-user.tsx","../src/hooks/renown.ts"],"sourcesContent":["import type { LOADING } from \"../types/global.js\";\nimport { makePHEventFunctions } from \"./make-ph-event-functions.js\";\n\nexport const {\n useValue: useLoading,\n setValue: setLoading,\n addEventHandler: addLoadingEventHandler,\n} = makePHEventFunctions(\"loading\");\n\nexport const loading: LOADING = null;\n","\"use client\";\n\nimport type { User } from \"@renown/sdk\";\nimport { createContext, useContext, type ReactNode } from \"react\";\n\n/** Whether the first render already knows who (if anyone) is signed in. */\n// \"anonymous\" is load-bearing: it separates a signed-out visitor from an\n// unresolved one, which otherwise both have to render a spinner.\nexport type RenownInitialAuth =\n | { state: \"authenticated\"; user: User }\n | { state: \"anonymous\" }\n | { state: \"unknown\" };\n\nexport const RENOWN_INITIAL_UNKNOWN: RenownInitialAuth = { state: \"unknown\" };\nexport const RENOWN_INITIAL_ANONYMOUS: RenownInitialAuth = {\n state: \"anonymous\",\n};\n\n// Seeds the auth store's first render (server + hydration) from a session\n// cookie or localStorage, enabling authenticated SSR without a flash.\nconst RenownInitialUserContext = createContext<RenownInitialAuth>(\n RENOWN_INITIAL_UNKNOWN,\n);\n\nexport interface RenownInitialUserProviderProps {\n /** Resolved first-render auth (see `RenownProvider`). Takes precedence over `initialUser`. */\n initialAuth?: RenownInitialAuth;\n /** User resolved from a verified session cookie (see `verifyRenownSession`). */\n initialUser?: User;\n children: ReactNode;\n}\n\nexport function RenownInitialUserProvider({\n initialAuth,\n initialUser,\n children,\n}: RenownInitialUserProviderProps) {\n // `initialUser` alone cannot express \"anonymous\" — absence stays \"unknown\".\n const value =\n initialAuth ??\n (initialUser\n ? { state: \"authenticated\" as const, user: initialUser }\n : RENOWN_INITIAL_UNKNOWN);\n return (\n <RenownInitialUserContext.Provider value={value}>\n {children}\n </RenownInitialUserContext.Provider>\n );\n}\n\n/** First-render auth as a three-state value; use this to skip a spinner when anonymous. */\nexport function useRenownInitialAuth(): RenownInitialAuth {\n return useContext(RenownInitialUserContext);\n}\n\nexport function useRenownInitialUser(): User | undefined {\n const initial = useRenownInitialAuth();\n return initial.state === \"authenticated\" ? initial.user : undefined;\n}\n","import type { IRenown, LoginStatus, User } from \"@renown/sdk\";\nimport { useEffect, useState, useSyncExternalStore } from \"react\";\nimport { useRenownInitialUser } from \"../renown/initial-user.js\";\nimport type { LOADING } from \"../types/global.js\";\nimport { loading } from \"./loading.js\";\nimport { makePHEventFunctions } from \"./make-ph-event-functions.js\";\n\nconst renownEventFunctions = makePHEventFunctions(\"renown\");\n\n/** Adds an event handler for the renown instance */\nexport const addRenownEventHandler: () => void =\n renownEventFunctions.addEventHandler;\n\n/** Returns the renown instance */\nexport const useRenown: () => IRenown | LOADING | undefined =\n renownEventFunctions.useValue;\n\n/** Sets the renown instance */\nexport const setRenown: (value: IRenown | LOADING | undefined) => void =\n renownEventFunctions.setValue;\n\n/** Returns the DID from the renown instance */\nexport function useDid() {\n const renown = useRenown();\n return renown?.did;\n}\n\n// Order-insensitive structural equality for plain JSON (what a persisted user\n// is): the cookie and localStorage paths build the same user with different key\n// order, and both must keep one object identity for did-keyed consumers.\nfunction jsonEqual(a: unknown, b: unknown): boolean {\n if (a === b) return true;\n if (typeof a !== \"object\" || typeof b !== \"object\" || !a || !b) return false;\n if (Array.isArray(a) !== Array.isArray(b)) return false;\n const ra = a as Record<string, unknown>;\n const rb = b as Record<string, unknown>;\n const keys = Object.keys(ra).filter((k) => ra[k] !== undefined);\n if (keys.length !== Object.keys(rb).filter((k) => rb[k] !== undefined).length)\n return false;\n return keys.every((k) => jsonEqual(ra[k], rb[k]));\n}\n\nfunction sameUser(a: User | undefined, b: User | undefined): boolean {\n return jsonEqual(a, b);\n}\n\n// What the SDK says once it exists. Its `user` is a synchronous storage read,\n// so undefined with status \"initial\" means nothing was restored and a stale seed\n// (e.g. a cookie outliving localStorage) must go; during \"checking\"/\"authorized\"\n// the SDK owns a session it has not published yet, so the seed stands.\nfunction resolveInstanceUser(\n instance: IRenown,\n seed: User | undefined,\n): User | undefined {\n const restored = instance.user;\n if (restored) return sameUser(seed, restored) ? seed : restored;\n return instance.status === \"initial\" ? undefined : seed;\n}\n\ninterface TrackedUser {\n instance: IRenown | undefined;\n user: User | undefined;\n}\n\n/** Returns the current user from the renown instance, subscribing to user events */\nexport function useUser(): User | undefined {\n const renown = useRenown();\n // Seed (cookie on the server, localStorage once mounted) covers the first\n // paint; the SDK is authoritative after, so a logout/revoke clears it.\n const initialUser = useRenownInitialUser();\n const instance = renown ? renown : undefined;\n // Tagged with the instance it came from. On a swap the value for this render\n // is derived here (state alone would be one frame stale) and persisted after\n // commit; the derivation is pure, so re-renders before that agree.\n const [tracked, setTracked] = useState<TrackedUser>(() => ({\n instance,\n user: instance ? resolveInstanceUser(instance, initialUser) : initialUser,\n }));\n const current: TrackedUser =\n tracked.instance === instance\n ? tracked\n : {\n instance,\n user: instance\n ? resolveInstanceUser(instance, tracked.user ?? initialUser)\n : tracked.user,\n };\n\n useEffect(() => {\n if (current !== tracked) setTracked(current);\n }, [current, tracked]);\n\n useEffect(() => {\n if (!instance) return;\n return instance.on(\"user\", (user) =>\n setTracked((prev) => ({\n instance,\n user: sameUser(prev.user, user) ? prev.user : user,\n })),\n );\n }, [instance]);\n\n // Until the SDK exists the seed wins, which is what lands the post-mount\n // localStorage read.\n return instance ? current.user : (initialUser ?? current.user);\n}\n\n/** Returns the login status, subscribing to renown status events */\nexport function useLoginStatus(): LoginStatus | \"loading\" | undefined {\n const renown = useRenown();\n return useSyncExternalStore(\n (cb) => {\n if (!renown) {\n return () => {};\n }\n return renown.on(\"status\", cb);\n },\n () => (renown === loading ? \"loading\" : renown?.status),\n () => undefined,\n );\n}\n"],"mappings":";;;;AAGA,MAAa,EACX,UAAU,YACV,UAAU,YACV,iBAAiB,2BACf,qBAAqB,UAAU;AAEnC,MAAa,UAAmB;;;ACIhC,MAAa,yBAA4C,EAAE,OAAO,WAAW;AAC7E,MAAa,2BAA8C,EACzD,OAAO,aACR;AAID,MAAM,2BAA2B,cAC/B,uBACD;AAUD,SAAgB,0BAA0B,EACxC,aACA,aACA,YACiC;CAEjC,MAAM,QACJ,gBACC,cACG;EAAE,OAAO;EAA0B,MAAM;EAAa,GACtD;AACN,QACE,oBAAC,yBAAyB,UAA1B;EAA0C;EACvC;EACiC,CAAA;;;AAKxC,SAAgB,uBAA0C;AACxD,QAAO,WAAW,yBAAyB;;AAG7C,SAAgB,uBAAyC;CACvD,MAAM,UAAU,sBAAsB;AACtC,QAAO,QAAQ,UAAU,kBAAkB,QAAQ,OAAO,KAAA;;;;AClD5D,MAAM,uBAAuB,qBAAqB,SAAS;;AAG3D,MAAa,wBACX,qBAAqB;;AAGvB,MAAa,YACX,qBAAqB;;AAGvB,MAAa,YACX,qBAAqB;;AAGvB,SAAgB,SAAS;AAEvB,QADe,WAAW,EACX;;AAMjB,SAAS,UAAU,GAAY,GAAqB;AAClD,KAAI,MAAM,EAAG,QAAO;AACpB,KAAI,OAAO,MAAM,YAAY,OAAO,MAAM,YAAY,CAAC,KAAK,CAAC,EAAG,QAAO;AACvE,KAAI,MAAM,QAAQ,EAAE,KAAK,MAAM,QAAQ,EAAE,CAAE,QAAO;CAClD,MAAM,KAAK;CACX,MAAM,KAAK;CACX,MAAM,OAAO,OAAO,KAAK,GAAG,CAAC,QAAQ,MAAM,GAAG,OAAO,KAAA,EAAU;AAC/D,KAAI,KAAK,WAAW,OAAO,KAAK,GAAG,CAAC,QAAQ,MAAM,GAAG,OAAO,KAAA,EAAU,CAAC,OACrE,QAAO;AACT,QAAO,KAAK,OAAO,MAAM,UAAU,GAAG,IAAI,GAAG,GAAG,CAAC;;AAGnD,SAAS,SAAS,GAAqB,GAA8B;AACnE,QAAO,UAAU,GAAG,EAAE;;AAOxB,SAAS,oBACP,UACA,MACkB;CAClB,MAAM,WAAW,SAAS;AAC1B,KAAI,SAAU,QAAO,SAAS,MAAM,SAAS,GAAG,OAAO;AACvD,QAAO,SAAS,WAAW,YAAY,KAAA,IAAY;;;AASrD,SAAgB,UAA4B;CAC1C,MAAM,SAAS,WAAW;CAG1B,MAAM,cAAc,sBAAsB;CAC1C,MAAM,WAAW,SAAS,SAAS,KAAA;CAInC,MAAM,CAAC,SAAS,cAAc,gBAA6B;EACzD;EACA,MAAM,WAAW,oBAAoB,UAAU,YAAY,GAAG;EAC/D,EAAE;CACH,MAAM,UACJ,QAAQ,aAAa,WACjB,UACA;EACE;EACA,MAAM,WACF,oBAAoB,UAAU,QAAQ,QAAQ,YAAY,GAC1D,QAAQ;EACb;AAEP,iBAAgB;AACd,MAAI,YAAY,QAAS,YAAW,QAAQ;IAC3C,CAAC,SAAS,QAAQ,CAAC;AAEtB,iBAAgB;AACd,MAAI,CAAC,SAAU;AACf,SAAO,SAAS,GAAG,SAAS,SAC1B,YAAY,UAAU;GACpB;GACA,MAAM,SAAS,KAAK,MAAM,KAAK,GAAG,KAAK,OAAO;GAC/C,EAAE,CACJ;IACA,CAAC,SAAS,CAAC;AAId,QAAO,WAAW,QAAQ,OAAQ,eAAe,QAAQ;;;AAI3D,SAAgB,iBAAsD;CACpE,MAAM,SAAS,WAAW;AAC1B,QAAO,sBACJ,OAAO;AACN,MAAI,CAAC,OACH,cAAa;AAEf,SAAO,OAAO,GAAG,UAAU,GAAG;UAEzB,WAAA,OAAqB,YAAY,QAAQ,cAC1C,KAAA,EACP"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { a as useRenown, c as RENOWN_INITIAL_UNKNOWN, i as useLoginStatus, l as RenownInitialUserProvider, n as setRenown, o as useUser, s as RENOWN_INITIAL_ANONYMOUS, t as addRenownEventHandler, u as useRenownInitialAuth } from "./renown-
|
|
1
|
+
import { a as useRenown, c as RENOWN_INITIAL_UNKNOWN, i as useLoginStatus, l as RenownInitialUserProvider, n as setRenown, o as useUser, s as RENOWN_INITIAL_ANONYMOUS, t as addRenownEventHandler, u as useRenownInitialAuth } from "./renown-6w_ImTvm.js";
|
|
2
2
|
import { logger } from "document-model";
|
|
3
3
|
import { Children, cloneElement, createContext, forwardRef, isValidElement, useCallback, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { BrowserKeyStorage, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, DOMAIN_TYPE, ISSUER_TYPE, RenownBuilder, RenownCryptoBuilder, VERIFIABLE_CREDENTIAL_EIP712_TYPE, readPersistedUser } from "@renown/sdk";
|
|
5
|
+
import { BrowserKeyStorage, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, DOMAIN_TYPE, ISSUER_TYPE, MissingSwitchboardError, RenownBuilder, RenownCryptoBuilder, VERIFIABLE_CREDENTIAL_EIP712_TYPE, readPersistedUser } from "@renown/sdk";
|
|
6
6
|
import { LoginMethod, isWalletRedirectReturn, resolveAdapters } from "@renown/sdk/wallet";
|
|
7
7
|
//#region src/renown/wallet-registry.ts
|
|
8
8
|
let activeWalletController;
|
|
9
9
|
let controllerWaiters = [];
|
|
10
10
|
let walletActivator;
|
|
11
|
+
const activatorListeners = /* @__PURE__ */ new Set();
|
|
11
12
|
function setActiveWalletController(controller) {
|
|
12
13
|
activeWalletController = controller;
|
|
13
14
|
if (controller) {
|
|
@@ -25,7 +26,13 @@ function getActiveWalletController() {
|
|
|
25
26
|
return activeWalletController;
|
|
26
27
|
}
|
|
27
28
|
function setWalletActivator(activator) {
|
|
29
|
+
if (activator === walletActivator) return;
|
|
28
30
|
walletActivator = activator;
|
|
31
|
+
activatorListeners.forEach((listener) => listener());
|
|
32
|
+
}
|
|
33
|
+
function subscribeWalletActivator(listener) {
|
|
34
|
+
activatorListeners.add(listener);
|
|
35
|
+
return () => activatorListeners.delete(listener);
|
|
29
36
|
}
|
|
30
37
|
function getWalletActivator() {
|
|
31
38
|
return walletActivator;
|
|
@@ -65,6 +72,35 @@ function subscribeWalletDescriptors(listener) {
|
|
|
65
72
|
listeners.add(listener);
|
|
66
73
|
return () => listeners.delete(listener);
|
|
67
74
|
}
|
|
75
|
+
const NO_CONTROLLERS = Object.freeze({});
|
|
76
|
+
const CONTROLLER_STORE = Symbol.for("@powerhousedao/reactor-browser:renown-wallet-adapter-controllers");
|
|
77
|
+
function controllerStore() {
|
|
78
|
+
const host = globalThis;
|
|
79
|
+
return host[CONTROLLER_STORE] ??= {
|
|
80
|
+
controllers: NO_CONTROLLERS,
|
|
81
|
+
listeners: /* @__PURE__ */ new Set()
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function setWalletAdapterController(id, controller) {
|
|
85
|
+
const store = controllerStore();
|
|
86
|
+
if (store.controllers[id] === controller) return;
|
|
87
|
+
const next = { ...store.controllers };
|
|
88
|
+
if (controller) next[id] = controller;
|
|
89
|
+
else delete next[id];
|
|
90
|
+
store.controllers = Object.freeze(next);
|
|
91
|
+
store.listeners.forEach((listener) => listener());
|
|
92
|
+
}
|
|
93
|
+
function getWalletAdapterControllers() {
|
|
94
|
+
return controllerStore().controllers;
|
|
95
|
+
}
|
|
96
|
+
function getServerWalletAdapterControllers() {
|
|
97
|
+
return NO_CONTROLLERS;
|
|
98
|
+
}
|
|
99
|
+
function subscribeWalletAdapterControllers(listener) {
|
|
100
|
+
const { listeners } = controllerStore();
|
|
101
|
+
listeners.add(listener);
|
|
102
|
+
return () => listeners.delete(listener);
|
|
103
|
+
}
|
|
68
104
|
//#endregion
|
|
69
105
|
//#region src/renown/constants.ts
|
|
70
106
|
const RENOWN_URL = "https://www.renown.id";
|
|
@@ -157,7 +193,7 @@ async function login(userDid, renown) {
|
|
|
157
193
|
}
|
|
158
194
|
async function logout() {
|
|
159
195
|
try {
|
|
160
|
-
await getActiveWalletController()?.disconnect();
|
|
196
|
+
await (getActiveWalletController() ?? await getWalletActivator()?.())?.disconnect();
|
|
161
197
|
} catch (error) {
|
|
162
198
|
logger.error(error instanceof Error ? error.message : String(error));
|
|
163
199
|
}
|
|
@@ -227,7 +263,7 @@ function useRenownAuth() {
|
|
|
227
263
|
const err = e instanceof Error ? e : new Error(String(e));
|
|
228
264
|
if (isUserCancellation(err)) return;
|
|
229
265
|
setError(err);
|
|
230
|
-
if (
|
|
266
|
+
if (MissingSwitchboardError.is(err)) openRenown();
|
|
231
267
|
} finally {
|
|
232
268
|
setPending(false);
|
|
233
269
|
}
|
|
@@ -1175,10 +1211,9 @@ function AdapterControllerBridge(props) {
|
|
|
1175
1211
|
]);
|
|
1176
1212
|
return null;
|
|
1177
1213
|
}
|
|
1178
|
-
/** Drop-in provider for Renown in-page wallet sign-in: registers the login activator, lazy-mounts the configured adapters on first
|
|
1214
|
+
/** Drop-in provider for Renown in-page wallet sign-in: registers the login activator, lazy-mounts the configured adapters on first demand (login, logout, {@link useRenownWalletAdapter}, or an OAuth redirect return — not on a restored session), and merges their controllers for {@link useRenownAuth}. Full walkthrough + examples: the `@powerhousedao/reactor-browser` README ("Renown in-page sign-in") and the Academy Renown authentication guide. Pair with {@link useRenownLoginMethods} to build the login UI. */
|
|
1179
1215
|
function RenownWalletProvider({ adapters: adaptersConfig, theme, children }) {
|
|
1180
1216
|
const [descriptors] = useState(() => adaptersConfig);
|
|
1181
|
-
const user = useUser();
|
|
1182
1217
|
useEffect(() => {
|
|
1183
1218
|
if (typeof process !== "undefined" && true) return;
|
|
1184
1219
|
if (adaptersConfig === descriptors) return;
|
|
@@ -1189,16 +1224,14 @@ function RenownWalletProvider({ adapters: adaptersConfig, theme, children }) {
|
|
|
1189
1224
|
return () => setWalletDescriptors(void 0);
|
|
1190
1225
|
}, [descriptors]);
|
|
1191
1226
|
const metas = useMemo(() => descriptors?.map((descriptor) => descriptor.meta) ?? [], [descriptors]);
|
|
1192
|
-
const [
|
|
1193
|
-
if (user && !activated) setActivated(true);
|
|
1194
|
-
const active = activated;
|
|
1227
|
+
const [active, setActive] = useState(() => typeof window !== "undefined" && isWalletRedirectReturn(window.location.search, metas));
|
|
1195
1228
|
const [adapters, setAdapters] = useState(null);
|
|
1196
1229
|
const mountedRef = useRef(/* @__PURE__ */ new Map());
|
|
1197
1230
|
const { onSession } = useCompleteRedirectSignIn(metas);
|
|
1198
1231
|
useEffect(() => {
|
|
1199
1232
|
if (!descriptors) return;
|
|
1200
1233
|
setWalletActivator(() => {
|
|
1201
|
-
|
|
1234
|
+
setActive(true);
|
|
1202
1235
|
return whenWalletControllerReady();
|
|
1203
1236
|
});
|
|
1204
1237
|
return () => setWalletActivator(void 0);
|
|
@@ -1226,6 +1259,7 @@ function RenownWalletProvider({ adapters: adaptersConfig, theme, children }) {
|
|
|
1226
1259
|
controller
|
|
1227
1260
|
});
|
|
1228
1261
|
else mountedRef.current.delete(meta.id);
|
|
1262
|
+
setWalletAdapterController(meta.id, controller);
|
|
1229
1263
|
setActiveWalletController(mergeControllers(Array.from(mountedRef.current.values())));
|
|
1230
1264
|
}, []);
|
|
1231
1265
|
return /* @__PURE__ */ jsxs(Fragment, { children: [children, descriptors && active && adapters && adapters.length > 0 ? adapters.reduceRight((acc, adapter) => {
|
|
@@ -1322,6 +1356,24 @@ function useRenownLoginMethods(labels) {
|
|
|
1322
1356
|
}, [descriptors, labels]);
|
|
1323
1357
|
}
|
|
1324
1358
|
//#endregion
|
|
1325
|
-
|
|
1359
|
+
//#region src/renown/use-renown-wallet-adapter.ts
|
|
1360
|
+
/** The controller of one adapter mounted by {@link RenownWalletProvider}, by its `meta.id`, typed as that adapter's own surface — e.g. `useRenownWalletAdapter<PrivyWalletController>("privy")` for headless email OTP. Rendering it activates the wallet tree (the adapter's library loads then), so call it from the sign-in screen, not the app shell. `undefined` until the adapter is mounted, or forever when no provider offers that id. */
|
|
1361
|
+
function useRenownWalletAdapter(id) {
|
|
1362
|
+
const controller = useSyncExternalStore(subscribeWalletAdapterControllers, getWalletAdapterControllers, getServerWalletAdapterControllers)[id];
|
|
1363
|
+
const hasActivator = useSyncExternalStore(subscribeWalletActivator, getWalletActivator, () => void 0) !== void 0;
|
|
1364
|
+
useEffect(() => {
|
|
1365
|
+
if (controller || !hasActivator) return;
|
|
1366
|
+
const current = getWalletActivator();
|
|
1367
|
+
if (!current) return;
|
|
1368
|
+
current().catch((error) => logger.error(error instanceof Error ? error.message : String(error)));
|
|
1369
|
+
}, [
|
|
1370
|
+
controller,
|
|
1371
|
+
hasActivator,
|
|
1372
|
+
id
|
|
1373
|
+
]);
|
|
1374
|
+
return controller;
|
|
1375
|
+
}
|
|
1376
|
+
//#endregion
|
|
1377
|
+
export { RENOWN_CHAIN_ID as A, logout as C, CREDENTIAL_TYPES as D, CREDENTIAL_SUBJECT_TYPE as E, RENOWN_URL as M, VERIFIABLE_CREDENTIAL_EIP712_TYPE as N, DOMAIN_TYPE as O, login as S, CREDENTIAL_SCHEMA_EIP712_TYPE as T, RenownLogo as _, Renown as a, useRenownAuth as b, useRenownSessionSynced as c, RenownAuthButton as d, RenownUserButton as f, DisconnectIcon as g, CopyIcon as h, RenownWalletProvider as i, RENOWN_NETWORK_ID as j, ISSUER_TYPE as k, initConnectCrypto as l, ChevronDownIcon as m, useRenownLoginMethods as n, useRenownInit as o, RenownLoginButton as p, RenownProvider as r, useRenownSessionCookie as s, useRenownWalletAdapter as t, initRenownCrypto as u, SpinnerIcon as v, openRenown as w, useRenownAuthAsync as x, UserIcon as y };
|
|
1326
1378
|
|
|
1327
|
-
//# sourceMappingURL=renown-
|
|
1379
|
+
//# sourceMappingURL=renown-DRnlawbP.js.map
|