@powerhousedao/reactor-browser 6.2.3 → 6.3.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/{attachment-service-But1Xljo.d.ts → attachment-service-B-AmTrs2.d.ts} +605 -56
  2. package/dist/attachment-service-B-AmTrs2.d.ts.map +1 -0
  3. package/dist/auth-DRbzRdeC.d.ts +32 -0
  4. package/dist/auth-DRbzRdeC.d.ts.map +1 -0
  5. package/dist/{client-BiJAJ9dW.js → client-BFnMV-EO.js} +39 -22
  6. package/dist/client-BFnMV-EO.js.map +1 -0
  7. package/dist/{client-CngU4mtn.d.ts → client-BP0hXjqq.d.ts} +3 -2
  8. package/dist/client-BP0hXjqq.d.ts.map +1 -0
  9. package/dist/client-wwavHFfs.js +135 -0
  10. package/dist/client-wwavHFfs.js.map +1 -0
  11. package/dist/{dispatch-qRXS70fh.js → dispatch-Cylwl2Dk.js} +363 -44
  12. package/dist/dispatch-Cylwl2Dk.js.map +1 -0
  13. package/dist/{document-by-id-B_8DA4yZ.js → document-by-id-DdvqanGR.js} +2 -2
  14. package/dist/{document-by-id-B_8DA4yZ.js.map → document-by-id-DdvqanGR.js.map} +1 -1
  15. package/dist/document-model-modules-BG-61uke.js +710 -0
  16. package/dist/document-model-modules-BG-61uke.js.map +1 -0
  17. package/dist/{document-operations-Bt-1-ThH.js → document-operations-DRMMwmGZ.js} +2160 -181
  18. package/dist/document-operations-DRMMwmGZ.js.map +1 -0
  19. package/dist/global-iARBhxNI.d.ts +612 -0
  20. package/dist/global-iARBhxNI.d.ts.map +1 -0
  21. package/dist/{index-BABMK8cO.d.ts → index-CNS_9THu.d.ts} +14 -4
  22. package/dist/index-CNS_9THu.d.ts.map +1 -0
  23. package/dist/index.d.ts +560 -79
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +790 -317
  26. package/dist/index.js.map +1 -1
  27. package/dist/inspector-proxy-DODqs15F.d.ts +25 -0
  28. package/dist/inspector-proxy-DODqs15F.d.ts.map +1 -0
  29. package/dist/make-ph-event-functions-B5GU5xcR.js +180 -0
  30. package/dist/make-ph-event-functions-B5GU5xcR.js.map +1 -0
  31. package/dist/{relational-ChC_AWAK.js → relational-DZuyKp2y.js} +65 -5
  32. package/dist/relational-DZuyKp2y.js.map +1 -0
  33. package/dist/{renown-C9pYZRqf.js → renown-B3MUaiq7.js} +56 -25
  34. package/dist/renown-B3MUaiq7.js.map +1 -0
  35. package/dist/renown-CBoTdGrg.js +394 -0
  36. package/dist/renown-CBoTdGrg.js.map +1 -0
  37. package/dist/{client-VV9M73s_.js → schema-B5lftDPf.js} +295 -195
  38. package/dist/schema-B5lftDPf.js.map +1 -0
  39. package/dist/{types-B7-_l_wE.d.ts → schema-C6ECceaN.d.ts} +272 -82
  40. package/dist/schema-C6ECceaN.d.ts.map +1 -0
  41. package/dist/src/ai/index.d.ts +269 -24
  42. package/dist/src/ai/index.d.ts.map +1 -1
  43. package/dist/src/ai/index.js +1028 -168
  44. package/dist/src/ai/index.js.map +1 -1
  45. package/dist/src/analytics/index.js +3 -3
  46. package/dist/src/graphql/client.d.ts +2 -2
  47. package/dist/src/graphql/client.js +1 -1
  48. package/dist/src/graphql-client/entry.d.ts +6 -4
  49. package/dist/src/graphql-client/entry.js +4 -4
  50. package/dist/src/relational/index.d.ts +8 -1
  51. package/dist/src/relational/index.d.ts.map +1 -1
  52. package/dist/src/relational/index.js +1 -1
  53. package/dist/src/renown/index.d.ts +2 -2
  54. package/dist/src/renown/index.js +3 -3
  55. package/dist/src/rpc/index.d.ts +201 -144
  56. package/dist/src/rpc/index.d.ts.map +1 -1
  57. package/dist/src/rpc/index.js +562 -634
  58. package/dist/src/rpc/index.js.map +1 -1
  59. package/dist/switchboard-directory-vH6qtkh-.js +435 -0
  60. package/dist/switchboard-directory-vH6qtkh-.js.map +1 -0
  61. package/dist/switchboards-D-_JBUbF.d.ts +75 -0
  62. package/dist/switchboards-D-_JBUbF.d.ts.map +1 -0
  63. package/dist/types-BWx6FPO4.d.ts +63 -0
  64. package/dist/types-BWx6FPO4.d.ts.map +1 -0
  65. package/package.json +19 -17
  66. package/dist/attachment-service-But1Xljo.d.ts.map +0 -1
  67. package/dist/client-BiJAJ9dW.js.map +0 -1
  68. package/dist/client-CngU4mtn.d.ts.map +0 -1
  69. package/dist/client-VV9M73s_.js.map +0 -1
  70. package/dist/dispatch-qRXS70fh.js.map +0 -1
  71. package/dist/document-model-modules-D6I-UUXq.js +0 -386
  72. package/dist/document-model-modules-D6I-UUXq.js.map +0 -1
  73. package/dist/document-operations-Bt-1-ThH.js.map +0 -1
  74. package/dist/global-fql2bmb0.d.ts +0 -438
  75. package/dist/global-fql2bmb0.d.ts.map +0 -1
  76. package/dist/index-BABMK8cO.d.ts.map +0 -1
  77. package/dist/inspector-proxy-DCowaeeH.d.ts +0 -264
  78. package/dist/inspector-proxy-DCowaeeH.d.ts.map +0 -1
  79. package/dist/make-ph-event-functions-FzpvQtj6.js +0 -53
  80. package/dist/make-ph-event-functions-FzpvQtj6.js.map +0 -1
  81. package/dist/relational-ChC_AWAK.js.map +0 -1
  82. package/dist/renown-C9pYZRqf.js.map +0 -1
  83. package/dist/renown-Def5iO8k.js +0 -97
  84. package/dist/renown-Def5iO8k.js.map +0 -1
  85. package/dist/switchboard-CFyD_5_e.js +0 -323
  86. package/dist/switchboard-CFyD_5_e.js.map +0 -1
  87. package/dist/types-B7-_l_wE.d.ts.map +0 -1
@@ -1,438 +0,0 @@
1
- import { t as PGlite } from "./pglite-CntadC_p-DTkdF8sr.js";
2
- import { c as ReactorGraphQLClient, r as GraphQLClientWindowEvents } from "./types-B7-_l_wE.js";
3
- import { r as IWorkerAdminClient, t as IInspectorProxy } from "./inspector-proxy-DCowaeeH.js";
4
- import { IDocumentModelLoader, IReactorClient, InProcessReactorClientModule, InProcessReactorModule, ReactorClientModule, ReactorModule } from "@powerhousedao/reactor";
5
- import { DocumentDriveDocument } from "@powerhousedao/shared/document-drive";
6
- import { Action, DocumentAction, DocumentModelModule, Operation, PHDocument } from "@powerhousedao/shared/document-model";
7
- import { DragEventHandler, ReactNode } from "react";
8
- import { IRenown } from "@renown/sdk";
9
- import { IAttachmentService } from "@powerhousedao/reactor-attachments/client";
10
- import { PHConnectRenownAdapters } from "@powerhousedao/shared/clis";
11
- import { DocumentModelLib, RegistryPackageSource } from "@powerhousedao/shared";
12
- //#region src/types/documents.d.ts
13
- type DocumentDispatch<TAction extends Action> = (actionOrActions: TAction | TAction[] | DocumentAction | DocumentAction[] | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument) => void) => void;
14
- type PromiseWithState<T> = Promise<T> & PromiseState<T>;
15
- type FulfilledPromise<T> = Promise<T> & {
16
- status: "fulfilled";
17
- value: T;
18
- };
19
- type RejectedPromise<T> = Promise<T> & {
20
- status: "rejected";
21
- reason: unknown;
22
- };
23
- type PromiseState<T> = {
24
- status: "pending";
25
- } | {
26
- status: "fulfilled";
27
- value: T;
28
- } | {
29
- status: "rejected";
30
- reason: unknown;
31
- };
32
- /** A refetch of an already-loaded document. `error` is the last failure that kept the loaded document. */
33
- type DocumentRefetchState = {
34
- isRefetching: boolean;
35
- error: unknown;
36
- };
37
- interface IDocumentCache {
38
- get(id: string, refetch?: boolean): Promise<PHDocument>;
39
- getBatch(ids: string[], refetch?: boolean): Promise<PHDocument[]>;
40
- subscribe(id: string | string[], callback: () => void): () => void;
41
- /** Stable snapshot of the refetch of `id`. Optional: not every cache refetches in the background. */
42
- getRefetchState?(id: string): DocumentRefetchState;
43
- }
44
- /** Snapshot of one document scope's operations as the cache knows them. */
45
- type OperationsCacheEntry = {
46
- /** `idle` means nothing has been requested since the last invalidation. */
47
- status: "idle" | "pending" | "success" | "error";
48
- /** Every operation loaded so far, oldest first, across all loaded pages. */
49
- operations: readonly Operation[];
50
- /** The rejection reason of the last failed page; `undefined` otherwise. */
51
- error: unknown;
52
- /** Whether the last loaded page reported a further page. */
53
- hasNextPage: boolean;
54
- };
55
- /**
56
- * Operation history keyed by document id and scope. Pages are fetched
57
- * oldest first and appended. A document change event drops every scope of
58
- * that document so the next read starts from the first page again.
59
- */
60
- interface IOperationCache {
61
- /** Current snapshot; a shared idle entry when nothing is cached. */
62
- getOperationsState(documentId: string, scope: string): OperationsCacheEntry;
63
- /** Loads the first page. No-op unless the entry is idle. */
64
- loadOperations(documentId: string, scope: string, limit: number): void;
65
- /** Loads the page after the last one and appends it. No-op unless the entry is loaded and has a next page. */
66
- loadMoreOperations(documentId: string, scope: string): void;
67
- /** Drops every cached scope of the document, aborts in-flight requests, notifies listeners. */
68
- invalidateOperations(documentId: string): void;
69
- /** Subscribes to changes of any scope of the document. Returns the unsubscribe function. */
70
- subscribeOperations(documentId: string, callback: () => void): () => void;
71
- }
72
- //#endregion
73
- //#region src/types/reactor-browser-client.d.ts
74
- /**
75
- * Minimal client contract the reactor-browser hooks depend on.
76
- *
77
- * It is a derived subset of {@link IReactorClient}, so the member signatures
78
- * can never drift from the reactor's own. Two implementations satisfy it: the
79
- * full in-browser reactor client (automatically, since it implements
80
- * `IReactorClient`) and `GraphQLReactorClient`, which talks plain GraphQL to a
81
- * Switchboard without bundling a reactor.
82
- *
83
- * Deliberately excluded: `drives`, relationships, `find`, `resolveIdOrSlug`,
84
- * `executeAsync`/`executeBatch`, jobs, `createEmpty`, `rename` and the document
85
- * model module getters.
86
- */
87
- interface IReactorBrowserClient extends Pick<IReactorClient, "get" | "subscribe" | "execute" | "getOperations" | "create" | "deleteDocument"> {}
88
- //#endregion
89
- //#region src/types/config.d.ts
90
- type PHGlobalConfig = PHCommonGlobalConfig & PHAppConfig & PHDocumentEditorConfig & PHDrivesGlobalConfig & PHAnalyticsGlobalConfig & PHRelationalProcessorsGlobalConfig & PHProcessorsGlobalConfig & PHRenownGlobalConfig & PHSentryGlobalConfig;
91
- type PHGlobalConfigKey = keyof PHGlobalConfig;
92
- type PHGlobalConfigSetters = PHGlobalConfigSettersForKey<PHGlobalConfigKey>;
93
- type PHGlobalConfigHooks = PHGlobalConfigHooksForKey<PHGlobalConfigKey>;
94
- /**
95
- * Editor configuration settings which are globally available to your custom apps.
96
- *
97
- * Setting these will override the defaults when your editor is mounted.
98
- */
99
- type PHAppConfig = {
100
- /** Allows you to specify the document types that are allowed to be added to the drive.
101
- * An empty array means that any document type is allowed.
102
- */
103
- allowedDocumentTypes?: string[];
104
- /** Whether drag and drop is enabled for the app. */
105
- isDragAndDropEnabled?: boolean;
106
- };
107
- type PHAppConfigKey = keyof PHAppConfig;
108
- type PHAppConfigSetters = PHGlobalConfigSettersForKey<PHAppConfigKey>;
109
- type PHAppConfigHooks = PHGlobalConfigHooksForKey<PHAppConfigKey>;
110
- type PHDocumentEditorConfig = {
111
- /** Whether external controls are enabled for the document editor. */
112
- isExternalControlsEnabled?: boolean;
113
- };
114
- type PHDocumentEditorConfigKey = keyof PHDocumentEditorConfig;
115
- type PHDocumentEditorConfigSetters = PHGlobalConfigSettersForKey<PHDocumentEditorConfigKey>;
116
- type PHDocumentEditorConfigHooks = PHGlobalConfigHooksForKey<PHDocumentEditorConfigKey>;
117
- type PHCommonGlobalConfig = {
118
- basePath?: string;
119
- routerBasename?: string;
120
- version?: string;
121
- requiresHardRefresh?: boolean;
122
- warnOutdatedApp?: boolean;
123
- studioMode?: boolean;
124
- versionCheckInterval?: number;
125
- cliVersion?: string;
126
- fileUploadOperationsChunkSize?: number;
127
- gaTrackingId?: string;
128
- isDocumentModelSelectionSettingsEnabled?: boolean;
129
- isAddDriveEnabled?: boolean;
130
- isPublicDrivesEnabled?: boolean;
131
- isAddPublicDrivesEnabled?: boolean;
132
- isDeletePublicDrivesEnabled?: boolean;
133
- isCloudDrivesEnabled?: boolean;
134
- isAddCloudDrivesEnabled?: boolean;
135
- isDeleteCloudDrivesEnabled?: boolean;
136
- isLocalDrivesEnabled?: boolean;
137
- isAddLocalDrivesEnabled?: boolean;
138
- isDeleteLocalDrivesEnabled?: boolean;
139
- allowList?: string[];
140
- analyticsDatabaseName?: string;
141
- logLevel?: "debug" | "info" | "warn" | "error";
142
- isEditorDebugModeEnabled?: boolean;
143
- isEditorReadModeEnabled?: boolean;
144
- disabledEditors?: string[];
145
- enabledEditors?: string[];
146
- };
147
- type PHDrivesGlobalConfig = {
148
- defaultDrivesUrl?: string;
149
- drivesPreserveStrategy?: string;
150
- };
151
- type PHAnalyticsGlobalConfig = {
152
- isAnalyticsEnabled?: boolean;
153
- isAnalyticsDatabaseWorkerEnabled?: boolean;
154
- isDiffAnalyticsEnabled?: boolean;
155
- isDriveAnalyticsEnabled?: boolean;
156
- isAnalyticsExternalProcessorsEnabled?: boolean;
157
- };
158
- type PHRelationalProcessorsGlobalConfig = {
159
- isRelationalProcessorsEnabled?: boolean;
160
- isExternalRelationalProcessorsEnabled?: boolean;
161
- };
162
- type PHProcessorsGlobalConfig = {
163
- isExternalProcessorsEnabled?: boolean;
164
- isExternalPackagesEnabled?: boolean;
165
- };
166
- type PHRenownGlobalConfig = {
167
- renownUrl?: string;
168
- renownNetworkId?: string;
169
- renownChainId?: number;
170
- switchboardUrl?: string;
171
- renownAdapters?: PHConnectRenownAdapters;
172
- };
173
- type PHSentryGlobalConfig = {
174
- sentryRelease?: string;
175
- sentryDsn?: string;
176
- sentryEnv?: string;
177
- isSentryTracingEnabled?: boolean;
178
- };
179
- type PHGlobalConfigSettersForKey<T extends PHGlobalConfigKey> = { [K in T]: (value: PHGlobalConfig[K]) => void; };
180
- type PHGlobalConfigHooksForKey<TKey extends PHGlobalConfigKey> = { [K in TKey]: () => PHGlobalConfig[K]; };
181
- /** Helper type for ensuring keys are all present while still allowing them to be set */
182
- type FullPHGlobalConfig = Record<PHGlobalConfigKey, PHGlobalConfig[PHGlobalConfigKey]>;
183
- //#endregion
184
- //#region src/types/modals.d.ts
185
- type PHModal = {
186
- type: "createDocument";
187
- documentType: string;
188
- documentModelVersion?: number;
189
- } | {
190
- type: "deleteItem";
191
- id: string;
192
- } | {
193
- type: "addDrive";
194
- } | {
195
- type: "upgradeDrive";
196
- driveId: string;
197
- } | {
198
- type: "deleteDrive";
199
- driveId: string;
200
- } | {
201
- type: "driveSettings";
202
- driveId: string;
203
- } | {
204
- type: "settings";
205
- } | {
206
- type: "clearStorage";
207
- } | {
208
- type: "debugSettings";
209
- } | {
210
- type: "disclaimer";
211
- } | {
212
- type: "cookiesPolicy";
213
- } | {
214
- type: "downloadDocumentWithErrors";
215
- documentId: string;
216
- } | {
217
- type: "inspector";
218
- } | {
219
- type: "missingPackage";
220
- documentType: string;
221
- } | {
222
- type: "documentVersionUnsupported";
223
- documentType: string;
224
- requiredVersion: number;
225
- availableVersions: number[];
226
- } | {
227
- type: "confirmDocumentUpgrade";
228
- documentId: string;
229
- } | {
230
- type: "driveAuthRequired";
231
- } | {
232
- type: "openFileDocuments";
233
- } | {
234
- type: "login";
235
- };
236
- //#endregion
237
- //#region src/types/package-discovery.d.ts
238
- type PendingInstallation = {
239
- documentType: string;
240
- packageNames: string[];
241
- };
242
- type FailedInstallationReason = "no-registry" | "not-in-registry" | "registry-error" | "install-failed" | "dismissed" | "offline";
243
- type FailedInstallation = {
244
- documentType: string;
245
- reason: FailedInstallationReason;
246
- packageNames: string[];
247
- error: Error | null;
248
- };
249
- type DiscoveryEvent = {
250
- type: "type-discovered";
251
- documentType: string;
252
- packageNames: string[];
253
- } | {
254
- type: "installation-prompted";
255
- documentType: string;
256
- packageNames: string[];
257
- } | {
258
- type: "installation-approved";
259
- packageName: string;
260
- documentTypes: string[];
261
- } | {
262
- type: "installation-dismissed";
263
- packageName: string;
264
- documentTypes: string[];
265
- } | {
266
- type: "installation-failed";
267
- packageName: string;
268
- error: Error;
269
- } | {
270
- type: "registry-query-failed";
271
- documentType: string;
272
- error: Error;
273
- } | {
274
- type: "load-failed";
275
- documentType: string;
276
- reason: FailedInstallationReason;
277
- };
278
- type DiscoveryEventListener = (event: DiscoveryEvent) => void;
279
- interface IPackageDiscoveryService {
280
- load(documentType: string): Promise<DocumentModelModule<any>>;
281
- getPendingInstallations(): PendingInstallation[];
282
- subscribePending(listener: () => void): () => void;
283
- getFailedInstallations(): FailedInstallation[];
284
- subscribeFailed(listener: () => void): () => void;
285
- subscribeEvents(listener: DiscoveryEventListener): () => void;
286
- approveInstallation(packageName: string): Promise<void>;
287
- dismissInstallation(packageName: string): void;
288
- promptInstallation(documentType: string): void;
289
- retryInstallation(documentType: string): Promise<void>;
290
- }
291
- //#endregion
292
- //#region src/types/timeline.d.ts
293
- type TimelineBarItem = {
294
- id: string;
295
- type: "bar";
296
- addSize?: 0 | 1 | 2 | 3 | 4;
297
- delSize?: 0 | 1 | 2 | 3 | 4;
298
- timestampUtcMs?: string;
299
- additions?: number;
300
- deletions?: number;
301
- revision?: number;
302
- startDate?: Date;
303
- endDate?: Date;
304
- };
305
- type TimelineDividerItem = {
306
- id: string;
307
- type: "divider";
308
- timestampUtcMs?: string;
309
- title?: string;
310
- subtitle?: string;
311
- revision?: number;
312
- startDate?: Date;
313
- endDate?: Date;
314
- };
315
- type TimelineItem = TimelineBarItem | TimelineDividerItem;
316
- //#endregion
317
- //#region src/types/toast.d.ts
318
- type PHToastType = "default" | "success" | "error" | "warning" | "info" | "connect-success" | "connect-warning" | "connect-loading" | "connect-deleted";
319
- type PHToastOptions = {
320
- type?: PHToastType;
321
- autoClose?: number | false;
322
- containerId?: string;
323
- };
324
- type PHToastFn = (content: ReactNode | string, options?: PHToastOptions) => void;
325
- //#endregion
326
- //#region src/types/vetra.d.ts
327
- type IPackagesListener = (data: {
328
- packages: DocumentModelLib[];
329
- }) => void;
330
- type IPackageListerUnsubscribe = () => void;
331
- type PackageManagerInstallResult = {
332
- type: "success";
333
- package: DocumentModelLib;
334
- } | {
335
- type: "error";
336
- error: Error;
337
- };
338
- interface IPackageManager extends IDocumentModelLoader {
339
- registryUrl: string | null;
340
- packages: DocumentModelLib[];
341
- addPackage(packageName: string): Promise<PackageManagerInstallResult> | PackageManagerInstallResult;
342
- addPackages(packageNames: string[]): Promise<PackageManagerInstallResult[]> | PackageManagerInstallResult[];
343
- removePackage(name: string): void;
344
- updateLocalPackage(pkg: DocumentModelLib, version?: string): void;
345
- subscribe(handler: IPackagesListener): IPackageListerUnsubscribe;
346
- getPackageSource: (packageName: string) => RegistryPackageSource | null;
347
- getPackageVersion: (packageName: string) => string | undefined;
348
- getPackageSpec: (packageName: string) => string | undefined;
349
- /**
350
- * Registry-installed packages keyed by their storage name (the registry
351
- * spec, e.g. "@powerhousedao/clint-common"). Used by callers that need to
352
- * diff against an external source of truth such as the publish-reload
353
- * channel's `/__packages` SSE feed.
354
- */
355
- getRegistryPackages: () => {
356
- name: string;
357
- version: string | undefined;
358
- }[];
359
- addLocalPackage: (name: string, loadedPackage: DocumentModelLib, version?: string) => void;
360
- }
361
- //#endregion
362
- //#region src/hooks/node-drag-and-drop.d.ts
363
- type DraggingNode = {
364
- srcId: string;
365
- parentId: string | null | undefined;
366
- };
367
- declare const addDraggingNodeEventHandler: () => void;
368
- declare function useDragNode(args: {
369
- srcId: string | undefined;
370
- parentId: string | null | undefined;
371
- }): {
372
- isDragging: boolean;
373
- draggable: boolean;
374
- onDragStart: DragEventHandler;
375
- onDragEnd: DragEventHandler;
376
- };
377
- declare function useDropNode(targetId: string | undefined): {
378
- isDropTarget: boolean;
379
- onDragEnter: DragEventHandler;
380
- onDragOver: DragEventHandler;
381
- onDragLeave: DragEventHandler;
382
- onDrop: DragEventHandler;
383
- };
384
- //#endregion
385
- //#region src/types/global.d.ts
386
- interface BrowserReactorModule extends InProcessReactorModule {
387
- pg: PGlite;
388
- }
389
- interface BrowserReactorClientModule extends InProcessReactorClientModule {
390
- kind: "browser";
391
- reactorModule: BrowserReactorModule | undefined;
392
- }
393
- type WorkerReactorModule = ReactorModule;
394
- interface WorkerReactorClientModule extends ReactorClientModule {
395
- kind: "worker";
396
- reactorModule: WorkerReactorModule;
397
- adminClient: IWorkerAdminClient;
398
- inspector: IInspectorProxy;
399
- }
400
- type LOADING = null;
401
- type PHGlobal = PHGlobalConfig & {
402
- loading?: boolean;
403
- reactorClientModule?: BrowserReactorClientModule | WorkerReactorClientModule;
404
- reactorClient?: IReactorBrowserClient;
405
- attachmentService?: IAttachmentService;
406
- reactorGraphQLClient?: ReactorGraphQLClient | undefined;
407
- renown?: IRenown | LOADING;
408
- vetraPackageManager?: IPackageManager;
409
- drives?: DocumentDriveDocument[];
410
- documentCache?: IDocumentCache;
411
- selectedDriveId?: string;
412
- selectedNodeId?: string;
413
- draggingNode?: DraggingNode;
414
- modal?: PHModal;
415
- selectedTimelineRevision?: string | number | null;
416
- revisionHistoryVisible?: boolean;
417
- selectedTimelineItem?: TimelineItem | null;
418
- packageDiscoveryService?: IPackageDiscoveryService;
419
- features?: Map<string, boolean>;
420
- toast?: PHToastFn;
421
- };
422
- type PHGlobalKey = keyof PHGlobal;
423
- type PHGlobalValue = PHGlobal[PHGlobalKey];
424
- type UsePHGlobalValue<TValue extends PHGlobalValue> = () => TValue | undefined;
425
- type SetPHGlobalValue<TValue extends PHGlobalValue> = (value: TValue | undefined) => void;
426
- type AddPHGlobalEventHandler = () => void;
427
- type PHGlobalEventHandlerAdders = Record<PHGlobalKey, AddPHGlobalEventHandler>;
428
- type SetEvent<TKey extends PHGlobalKey> = CustomEvent<{ [key in TKey]: PHGlobal[TKey] | undefined; }>;
429
- declare global {
430
- interface Window {
431
- ph?: PHGlobal;
432
- }
433
- interface WindowEventMap extends GraphQLClientWindowEvents {}
434
- }
435
- //#endregion
436
- export { PHProcessorsGlobalConfig as $, FailedInstallation as A, PHAppConfigSetters as B, PHToastOptions as C, TimelineItem as D, TimelineDividerItem as E, FullPHGlobalConfig as F, PHDocumentEditorConfigSetters as G, PHDocumentEditorConfig as H, PHAnalyticsGlobalConfig as I, PHGlobalConfigHooks as J, PHDrivesGlobalConfig as K, PHAppConfig as L, IPackageDiscoveryService as M, PendingInstallation as N, DiscoveryEvent as O, PHModal as P, PHGlobalConfigSettersForKey as Q, PHAppConfigHooks as R, PHToastFn as S, TimelineBarItem as T, PHDocumentEditorConfigHooks as U, PHCommonGlobalConfig as V, PHDocumentEditorConfigKey as W, PHGlobalConfigKey as X, PHGlobalConfigHooksForKey as Y, PHGlobalConfigSetters as Z, useDropNode as _, PHGlobal as a, DocumentRefetchState as at, IPackagesListener as b, PHGlobalValue as c, IOperationCache as ct, UsePHGlobalValue as d, PromiseWithState as dt, PHRelationalProcessorsGlobalConfig as et, WorkerReactorClientModule as f, RejectedPromise as ft, useDragNode as g, addDraggingNodeEventHandler as h, LOADING as i, DocumentDispatch as it, FailedInstallationReason as j, DiscoveryEventListener as k, SetEvent as l, OperationsCacheEntry as lt, DraggingNode as m, BrowserReactorClientModule as n, PHSentryGlobalConfig as nt, PHGlobalEventHandlerAdders as o, FulfilledPromise as ot, WorkerReactorModule as p, PHGlobalConfig as q, BrowserReactorModule as r, IReactorBrowserClient as rt, PHGlobalKey as s, IDocumentCache as st, AddPHGlobalEventHandler as t, PHRenownGlobalConfig as tt, SetPHGlobalValue as u, PromiseState as ut, IPackageListerUnsubscribe as v, PHToastType as w, PackageManagerInstallResult as x, IPackageManager as y, PHAppConfigKey as z };
437
- export {};
438
- //# sourceMappingURL=global-fql2bmb0.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"global-fql2bmb0.d.ts","names":[],"sources":["../src/types/documents.ts","../src/types/reactor-browser-client.ts","../src/types/config.ts","../src/types/modals.ts","../src/types/package-discovery.ts","../src/types/timeline.ts","../src/types/toast.ts","../src/types/vetra.ts","../src/hooks/node-drag-and-drop.ts","../src/types/global.ts"],"mappings":";;;;;;;;;;;;KAOY,iBAAiB,gBAAgB,WAC3C,iBACI,UACA,YACA,iBACA,8BAEJ,YAAY,QAAQ,kBACpB,aAAa,QAAQ;KAGX,iBAAiB,KAAK,QAAQ,KAAK,aAAa;KAEhD,iBAAiB,KAAK,QAAQ;EACxC;EACA,OAAO;;KAGG,gBAAgB,KAAK,QAAQ;EACvC;EACA;;KAGU,aAAa;EAEnB;;EAEA;EAAqB,OAAO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A,eAAe;;KAKL,sBAAsB;UACjB,kCAAkC;EACjD;EACA,eAAe;EACf,aAAa;EACb,WAAW;;KAGD;KAEA,WAAW;EACrB;EACA,sBAAsB,6BAA6B;EACnD,gBAAgB;EAChB,oBAAoB;EACpB,uBAAuB;EACvB,SAAS,UAAU;EACnB,sBAAsB;EACtB,SAAS;EACT,gBAAgB;EAChB;EACA;EACA,eAAe;EACf,QAAQ;EACR;EACA;EACA,uBAAuB;EACvB,0BAA0B;EAC1B,WAAW;EACX,QAAQ;;KAGE,oBAAoB;KACpB,gBAAgB,SAAS;KAEzB,iBAAiB,eAAe,uBACxC;KAGQ,iBAAiB,eAAe,kBAC1C,OAAO;KAGG;KAEA,6BAA6B,OACvC,aACA;KAGU,SAAS,aAAa,eAAe,eAC9C,OAAO,OAAO,SAAS;QAGlB;YACI;IACR,KAAK;;YAEG,uBAAuB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-BABMK8cO.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.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,mBAAmB;UAEd;EACf,QAAQ;EACR,MAAM;EACN;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ,UAAU,eAAe,SAAS;EAC1C;EACA,OAAO;EACP,cAAc;EACd;;iBA+Bc,iBAAiB;KAuFrB;UAKK,wBAAwB;;EAEvC,OAAO;EACP;;iBAOc,sBAAsB;;;iBC1JtB,WAAW;iBAyHL,MACpB,6BACA,QAAQ,sBACP,QAAQ;iBA4BW,UAAM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