@powerhousedao/connect 1.0.16-dev.1 → 1.0.16-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{app-mup06TxF.js → app-DhH3gUSI.js} +9 -9
- package/dist/assets/{app-loader-ByxyqGmZ.js → app-loader-Btk_wf_z.js} +107 -63
- package/dist/assets/{ccip-ASjKzegb.js → ccip-D9a0ttP2.js} +3 -3
- package/dist/assets/{content-DmxMPHbR.js → content-BlRqE_8w.js} +3 -3
- package/dist/assets/{index-B8rDFj5N.js → index-BuxuyYQU.js} +3 -3
- package/dist/assets/{index-10OwZr6e.js → index-D3bygFYe.js} +4 -4
- package/dist/assets/{index-Bf_-VrwW.js → index-Whh7mT2J.js} +3 -3
- package/dist/assets/{main.BooYX2Lr.js → main.C1DJvpcL.js} +1 -1
- package/dist/index.html +2 -34
- package/dist/vite-envs.sh +1 -1
- package/package.json +6 -6
- package/dist/modules/@powerhousedao/reactor-browser/chunk-2ESYSVXG.js +0 -48
- package/dist/modules/@powerhousedao/reactor-browser/chunk-2ONJ2PX4.js +0 -50
- package/dist/modules/@powerhousedao/reactor-browser/chunk-2X2M6BYG.js +0 -2542
- package/dist/modules/@powerhousedao/reactor-browser/chunk-7OQWVUC5.js +0 -43
- package/dist/modules/@powerhousedao/reactor-browser/chunk-7RTGQTV5.js +0 -14215
- package/dist/modules/@powerhousedao/reactor-browser/chunk-C7QRY43M.js +0 -786
- package/dist/modules/@powerhousedao/reactor-browser/chunk-CO2RVWYY.js +0 -67
- package/dist/modules/@powerhousedao/reactor-browser/chunk-DKDARAJS.js +0 -0
- package/dist/modules/@powerhousedao/reactor-browser/chunk-FQF4YAVC.js +0 -11917
- package/dist/modules/@powerhousedao/reactor-browser/chunk-GDP7BUIH.js +0 -45
- package/dist/modules/@powerhousedao/reactor-browser/chunk-IQTSFTNF.js +0 -48
- package/dist/modules/@powerhousedao/reactor-browser/chunk-J5TYPY7U.js +0 -36
- package/dist/modules/@powerhousedao/reactor-browser/chunk-LH2T6NLN.js +0 -0
- package/dist/modules/@powerhousedao/reactor-browser/chunk-LRNZZ3SR.js +0 -14
- package/dist/modules/@powerhousedao/reactor-browser/chunk-NHD6VUCD.js +0 -53
- package/dist/modules/@powerhousedao/reactor-browser/chunk-NPCM4GRM.js +0 -82
- package/dist/modules/@powerhousedao/reactor-browser/chunk-OHBF7Q5F.js +0 -0
- package/dist/modules/@powerhousedao/reactor-browser/chunk-OVGOA2P5.js +0 -11
- package/dist/modules/@powerhousedao/reactor-browser/chunk-P6NJ6IAQ.js +0 -12
- package/dist/modules/@powerhousedao/reactor-browser/chunk-REEGAZVT.js +0 -113
- package/dist/modules/@powerhousedao/reactor-browser/chunk-RGIB4DD4.js +0 -162
- package/dist/modules/@powerhousedao/reactor-browser/chunk-RUNTF5WD.js +0 -2477
- package/dist/modules/@powerhousedao/reactor-browser/chunk-TNPKLKIJ.js +0 -0
- package/dist/modules/@powerhousedao/reactor-browser/chunk-U34SEKEB.js +0 -250
- package/dist/modules/@powerhousedao/reactor-browser/chunk-U36SV333.js +0 -0
- package/dist/modules/@powerhousedao/reactor-browser/chunk-ULJSSMFA.js +0 -178
- package/dist/modules/@powerhousedao/reactor-browser/chunk-VT7IMWQB.js +0 -0
- package/dist/modules/@powerhousedao/reactor-browser/chunk-XBTEGV5M.js +0 -17
- package/dist/modules/@powerhousedao/reactor-browser/chunk-Y7NTRTMT.js +0 -25
- package/dist/modules/@powerhousedao/reactor-browser/chunk-YG67WAIS.js +0 -0
- package/dist/modules/@powerhousedao/reactor-browser/chunk-YWKVPJNL.js +0 -52
- package/dist/modules/@powerhousedao/reactor-browser/chunk-ZL5IPB6D.js +0 -0
- package/dist/modules/@powerhousedao/reactor-browser/context/index.js +0 -16
- package/dist/modules/@powerhousedao/reactor-browser/context/read-mode.js +0 -15
- package/dist/modules/@powerhousedao/reactor-browser/crypto/browser.js +0 -7
- package/dist/modules/@powerhousedao/reactor-browser/crypto/index.js +0 -7
- package/dist/modules/@powerhousedao/reactor-browser/document-model.js +0 -10
- package/dist/modules/@powerhousedao/reactor-browser/hooks/document-state.js +0 -96
- package/dist/modules/@powerhousedao/reactor-browser/hooks/index.js +0 -98
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useAddDebouncedOperations.js +0 -11
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useConnectCrypto.js +0 -12
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocument.js +0 -7
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentDispatch.js +0 -7
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentDrives.js +0 -13
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDocumentEditor.js +0 -20
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActions.js +0 -9
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes.js +0 -14
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveContext.js +0 -9
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useUiNodesContext.js +0 -46
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useUserPermissions.js +0 -7
- package/dist/modules/@powerhousedao/reactor-browser/index.js +0 -127
- package/dist/modules/@powerhousedao/reactor-browser/reactor.js +0 -11
- package/dist/modules/@powerhousedao/reactor-browser/renown/constants.js +0 -53
- package/dist/modules/@powerhousedao/reactor-browser/renown/types.js +0 -1
- package/dist/modules/@powerhousedao/reactor-browser/storage/index.js +0 -1
- package/dist/modules/@powerhousedao/reactor-browser/storage/types.js +0 -1
- package/dist/modules/@powerhousedao/reactor-browser/types/drive-editor.js +0 -1
- package/dist/modules/@powerhousedao/reactor-browser/types/index.js +0 -2
- package/dist/modules/@powerhousedao/reactor-browser/uiNodes/constants.js +0 -37
- package/dist/modules/@powerhousedao/reactor-browser/uiNodes/types.js +0 -1
- package/dist/modules/@powerhousedao/reactor-browser/utils/export-document.js +0 -8
- package/dist/modules/@powerhousedao/reactor-browser/utils/index.js +0 -9
- package/dist/modules/@powerhousedao/reactor-browser/utils/signature.js +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-D9a0ttP2.js","assets/main.C1DJvpcL.js","assets/app-loader-Btk_wf_z.js","assets/app-loader-DiF8OhX3.css","assets/index-BuxuyYQU.js","assets/style-Ce3V83BE.css","assets/index-D3bygFYe.js","assets/content-BlRqE_8w.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __typeError = (msg) => {
|
|
4
4
|
throw TypeError(msg);
|
|
@@ -19,9 +19,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e2, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _i;
|
|
22
|
-
import { _ as __vitePreload } from "./main.
|
|
22
|
+
import { _ as __vitePreload } from "./main.C1DJvpcL.js";
|
|
23
23
|
import { jsx as jsx$1, Fragment, jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { c as createAction, a as createReducer, i as isDocumentAction, R as ReorderStateExamplesInputSchema, D as DeleteStateExampleInputSchema, U as UpdateStateExampleInputSchema, A as AddStateExampleInputSchema, S as SetInitialStateInputSchema, b as SetStateSchemaInputSchema, d as ReorderModuleOperationsInputSchema, e as DeleteOperationInputSchema, M as MoveOperationInputSchema, f as SetOperationReducerInputSchema, g as SetOperationTemplateInputSchema, h as SetOperationDescriptionInputSchema, j as SetOperationSchemaInputSchema, k as SetOperationScopeInputSchema, l as SetOperationNameInputSchema, m as AddOperationInputSchema, n as ReorderOperationExamplesInputSchema, o as DeleteOperationExampleInputSchema, p as UpdateOperationExampleInputSchema, q as AddOperationExampleInputSchema, r as ReorderOperationErrorsInputSchema, s as DeleteOperationErrorInputSchema, t as SetOperationErrorTemplateInputSchema, u as SetOperationErrorDescriptionInputSchema, v as SetOperationErrorNameInputSchema, w as SetOperationErrorCodeInputSchema, x as AddOperationErrorInputSchema, y as ReorderModulesInputSchema, z as DeleteModuleInputSchema, B as SetModuleDescriptionInputSchema, C as SetModuleNameInputSchema, E as AddModuleInputSchema, F as ReorderChangeLogItemsInputSchema, G as DeleteChangeLogItemInputSchema, H as UpdateChangeLogItemInputSchema, I as AddChangeLogItemInputSchema, J as SetAuthorWebsiteInputSchema, K as SetAuthorNameInputSchema, L as SetModelDescriptionInputSchema, N as SetModelExtensionInputSchema, O as SetModelIdInputSchema, P as SetModelNameInputSchema, Q as baseCreateExtendedState, T as baseCreateDocument, V as baseSaveToFile, W as baseSaveToFileHandle, X as baseLoadFromFile, Y as baseLoadFromInput, Z as pascalCase, _ as Icon, $ as getDefaultExportFromCjs, a0 as LOCAL, a1 as commonjsGlobal, a2 as PUBLIC, a3 as SWITCHBOARD, a4 as locationInfoByLocation, a5 as sharingTypeOptions, a6 as objectType, a7 as recordType, a8 as stringType, a9 as capitalCase, aa as CLOUD, ab as createZip, ac as logger$1, ad as LZString, ae as buildSignedOperation, af as getI18n, ag as getDefaults, ah as connectConfig, ai as hashDocumentStateForScope, aj as setErrorHandler, ak as driveDocumentModelModule, al as createBrowserDocumentDriveServer, am as hashKey$1, an as childLogger, ao as reducer$8, ap as isDocumentDrive, aq as generateAddNodeAction, ar as isFileNode, as as uploadDocumentOperations, at as updateFile, au as addFolder, av as isFolderNode, aw as deleteNode, ax as updateNode, ay as FILE, az as moveNode, aA as generateNodesCopy, aB as copyNode, aC as createState$1, aD as setDriveName, aE as setAvailableOffline, aF as setSharingType, aG as SynchronizationUnitNotFoundError, aH as removeTrigger, aI as generateUUID, aJ as PullResponderTransmitter, aK as addTrigger, aL as ReadDriveNotFoundError, aM as openUrl, aN as getNodeOptions, aO as DRIVE, aP as FOLDER, aQ as requestPublicDrive, aR as serviceWorkerManager, aS as packageJson, aT as t$1, aU as gql, aV as request } from "./app-loader-
|
|
24
|
+
import { c as createAction, a as createReducer, i as isDocumentAction, R as ReorderStateExamplesInputSchema, D as DeleteStateExampleInputSchema, U as UpdateStateExampleInputSchema, A as AddStateExampleInputSchema, S as SetInitialStateInputSchema, b as SetStateSchemaInputSchema, d as ReorderModuleOperationsInputSchema, e as DeleteOperationInputSchema, M as MoveOperationInputSchema, f as SetOperationReducerInputSchema, g as SetOperationTemplateInputSchema, h as SetOperationDescriptionInputSchema, j as SetOperationSchemaInputSchema, k as SetOperationScopeInputSchema, l as SetOperationNameInputSchema, m as AddOperationInputSchema, n as ReorderOperationExamplesInputSchema, o as DeleteOperationExampleInputSchema, p as UpdateOperationExampleInputSchema, q as AddOperationExampleInputSchema, r as ReorderOperationErrorsInputSchema, s as DeleteOperationErrorInputSchema, t as SetOperationErrorTemplateInputSchema, u as SetOperationErrorDescriptionInputSchema, v as SetOperationErrorNameInputSchema, w as SetOperationErrorCodeInputSchema, x as AddOperationErrorInputSchema, y as ReorderModulesInputSchema, z as DeleteModuleInputSchema, B as SetModuleDescriptionInputSchema, C as SetModuleNameInputSchema, E as AddModuleInputSchema, F as ReorderChangeLogItemsInputSchema, G as DeleteChangeLogItemInputSchema, H as UpdateChangeLogItemInputSchema, I as AddChangeLogItemInputSchema, J as SetAuthorWebsiteInputSchema, K as SetAuthorNameInputSchema, L as SetModelDescriptionInputSchema, N as SetModelExtensionInputSchema, O as SetModelIdInputSchema, P as SetModelNameInputSchema, Q as baseCreateExtendedState, T as baseCreateDocument, V as baseSaveToFile, W as baseSaveToFileHandle, X as baseLoadFromFile, Y as baseLoadFromInput, Z as pascalCase, _ as Icon, $ as getDefaultExportFromCjs, a0 as LOCAL, a1 as commonjsGlobal, a2 as PUBLIC, a3 as SWITCHBOARD, a4 as locationInfoByLocation, a5 as sharingTypeOptions, a6 as objectType, a7 as recordType, a8 as stringType, a9 as capitalCase, aa as CLOUD, ab as createZip, ac as logger$1, ad as LZString, ae as buildSignedOperation, af as getI18n, ag as getDefaults, ah as connectConfig, ai as hashDocumentStateForScope, aj as setErrorHandler, ak as driveDocumentModelModule, al as createBrowserDocumentDriveServer, am as hashKey$1, an as childLogger, ao as reducer$8, ap as isDocumentDrive, aq as generateAddNodeAction, ar as isFileNode, as as uploadDocumentOperations, at as updateFile, au as addFolder, av as isFolderNode, aw as deleteNode, ax as updateNode, ay as FILE, az as moveNode, aA as generateNodesCopy, aB as copyNode, aC as createState$1, aD as setDriveName, aE as setAvailableOffline, aF as setSharingType, aG as SynchronizationUnitNotFoundError, aH as removeTrigger, aI as generateUUID, aJ as PullResponderTransmitter, aK as addTrigger, aL as ReadDriveNotFoundError, aM as openUrl, aN as getNodeOptions, aO as DRIVE, aP as FOLDER, aQ as requestPublicDrive, aR as serviceWorkerManager, aS as packageJson, aT as t$1, aU as gql, aV as request } from "./app-loader-Btk_wf_z.js";
|
|
25
25
|
import * as React from "react";
|
|
26
26
|
import React__default, { useLayoutEffect, useEffect, useState, forwardRef, useRef, useCallback, useContext, useMemo, createContext, Component, Fragment as Fragment$1, createElement, useSyncExternalStore, useId as useId$1, isValidElement, cloneElement, Children, useReducer, useDebugValue, Suspense } from "react";
|
|
27
27
|
import "@powerhousedao/reactor-browser";
|
|
@@ -20574,7 +20574,7 @@ async function call(client2, args) {
|
|
|
20574
20574
|
} catch (err) {
|
|
20575
20575
|
const data2 = getRevertErrorData(err);
|
|
20576
20576
|
const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => {
|
|
20577
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
20577
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-D9a0ttP2.js");
|
|
20578
20578
|
return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 };
|
|
20579
20579
|
}, true ? __vite__mapDeps([0,1,2,3]) : void 0);
|
|
20580
20580
|
if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
|
|
@@ -71667,7 +71667,7 @@ const useFilteredDocumentModels = () => {
|
|
|
71667
71667
|
return filteredDocumentModels;
|
|
71668
71668
|
};
|
|
71669
71669
|
async function loadBaseEditors() {
|
|
71670
|
-
const documentModelEditor = await __vitePreload(() => import("./index-
|
|
71670
|
+
const documentModelEditor = await __vitePreload(() => import("./index-BuxuyYQU.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
|
|
71671
71671
|
await __vitePreload(() => Promise.resolve({}), true ? __vite__mapDeps([5]) : void 0);
|
|
71672
71672
|
const module = documentModelEditor.documentModelEditorModule;
|
|
71673
71673
|
return [module];
|
|
@@ -71818,11 +71818,11 @@ const connectCrypto = (async () => {
|
|
|
71818
71818
|
return window.connectCrypto;
|
|
71819
71819
|
}
|
|
71820
71820
|
const { ConnectCrypto } = await __vitePreload(async () => {
|
|
71821
|
-
const { ConnectCrypto: ConnectCrypto2 } = await import("./index-
|
|
71821
|
+
const { ConnectCrypto: ConnectCrypto2 } = await import("./index-D3bygFYe.js");
|
|
71822
71822
|
return { ConnectCrypto: ConnectCrypto2 };
|
|
71823
71823
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
71824
71824
|
const { BrowserKeyStorage } = await __vitePreload(async () => {
|
|
71825
|
-
const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-
|
|
71825
|
+
const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-D3bygFYe.js");
|
|
71826
71826
|
return { BrowserKeyStorage: BrowserKeyStorage2 };
|
|
71827
71827
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
71828
71828
|
const connectCrypto2 = new ConnectCrypto(new BrowserKeyStorage());
|
|
@@ -71871,7 +71871,7 @@ function useRenown() {
|
|
|
71871
71871
|
return;
|
|
71872
71872
|
}
|
|
71873
71873
|
const { initRenownBrowser } = await __vitePreload(async () => {
|
|
71874
|
-
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-
|
|
71874
|
+
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-D3bygFYe.js");
|
|
71875
71875
|
return { initRenownBrowser: initRenownBrowser2 };
|
|
71876
71876
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
71877
71877
|
const renownBrowser = initRenownBrowser(did2);
|
|
@@ -80232,7 +80232,7 @@ function Home() {
|
|
|
80232
80232
|
/* @__PURE__ */ jsx$1(HomeScreenAddDriveItem, { onClick: onAddDriveClick })
|
|
80233
80233
|
] });
|
|
80234
80234
|
}
|
|
80235
|
-
const Content = React__default.lazy(() => __vitePreload(() => import("./content-
|
|
80235
|
+
const Content = React__default.lazy(() => __vitePreload(() => import("./content-BlRqE_8w.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
|
|
80236
80236
|
async function createRouter(routes) {
|
|
80237
80237
|
var _a2;
|
|
80238
80238
|
const isPackaged = await ((_a2 = window.electronAPI) == null ? void 0 : _a2.isPackaged());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-DhH3gUSI.js","assets/main.C1DJvpcL.js","assets/app-CDOWlDp2.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __typeError = (msg) => {
|
|
4
4
|
throw TypeError(msg);
|
|
@@ -11,7 +11,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
11
11
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
12
12
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
13
13
|
var _tags, _levelString, _errorHandler, _ConsoleLogger_instances, levelValue_get, _getDocumentModelModule, _drives, _ReadModeService_instances, parseGraphQLErrors_fn, fetchDrive_fn, _a, _ServiceWorkerManager_instances, handleServiceWorkerMessage_fn, handleServiceWorker_fn;
|
|
14
|
-
import { _ as __vitePreload } from "./main.
|
|
14
|
+
import { _ as __vitePreload } from "./main.C1DJvpcL.js";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
import { useState, useEffect, Suspense, lazy } from "react";
|
|
17
17
|
function _mergeNamespaces(n, m) {
|
|
@@ -23108,10 +23108,10 @@ class BaseDocumentDriveServer {
|
|
|
23108
23108
|
__publicField(this, "queueDelegate", {
|
|
23109
23109
|
exists: (documentId) => this.documentStorage.exists(documentId),
|
|
23110
23110
|
processOperationJob: async ({ driveId, documentId, operations, options }) => {
|
|
23111
|
-
return !documentId || driveId === documentId ? this.
|
|
23111
|
+
return !documentId || driveId === documentId ? this.processDriveOperations(driveId, operations, options) : this.processOperations(driveId, documentId, operations, options);
|
|
23112
23112
|
},
|
|
23113
23113
|
processActionJob: async ({ driveId, documentId, actions: actions2, options }) => {
|
|
23114
|
-
return documentId ? this.
|
|
23114
|
+
return documentId ? this.processActions(driveId, documentId, actions2, options) : this.processDriveActions(driveId, actions2, options);
|
|
23115
23115
|
},
|
|
23116
23116
|
processJob: async (job) => {
|
|
23117
23117
|
if (isOperationJob(job)) {
|
|
@@ -23287,7 +23287,7 @@ class BaseDocumentDriveServer {
|
|
|
23287
23287
|
return this.triggerMap.delete(driveId);
|
|
23288
23288
|
}
|
|
23289
23289
|
async _initializeDrive(driveId) {
|
|
23290
|
-
var _a2, _b, _c
|
|
23290
|
+
var _a2, _b, _c;
|
|
23291
23291
|
const drive = await this.getDrive(driveId);
|
|
23292
23292
|
this.logger.verbose(`[SYNC DEBUG] Initializing drive ${driveId} with slug "${drive.state.global.slug}"`);
|
|
23293
23293
|
await this.synchronizationManager.initializeDriveSyncStatus(driveId, drive);
|
|
@@ -23299,16 +23299,16 @@ class BaseDocumentDriveServer {
|
|
|
23299
23299
|
for (const zodListener of drive.state.local.listeners) {
|
|
23300
23300
|
if (((_a2 = zodListener.callInfo) == null ? void 0 : _a2.transmitterType) === "SwitchboardPush") {
|
|
23301
23301
|
this.logger.verbose(`[SYNC DEBUG] Setting up SwitchboardPush listener ${zodListener.listenerId} for drive ${driveId}`);
|
|
23302
|
-
const transmitter = new SwitchboardPushTransmitter(
|
|
23303
|
-
this.logger.verbose(`[SYNC DEBUG] Created SwitchboardPush transmitter with URL: ${
|
|
23302
|
+
const transmitter = new SwitchboardPushTransmitter(zodListener.callInfo.data ?? "");
|
|
23303
|
+
this.logger.verbose(`[SYNC DEBUG] Created SwitchboardPush transmitter with URL: ${zodListener.callInfo.data || "none"}`);
|
|
23304
23304
|
await this.listenerManager.setListener(driveId, {
|
|
23305
23305
|
block: zodListener.block,
|
|
23306
23306
|
driveId: drive.state.global.id,
|
|
23307
23307
|
filter: {
|
|
23308
|
-
branch:
|
|
23309
|
-
documentId:
|
|
23310
|
-
documentType:
|
|
23311
|
-
scope:
|
|
23308
|
+
branch: zodListener.filter.branch ?? [],
|
|
23309
|
+
documentId: zodListener.filter.documentId ?? [],
|
|
23310
|
+
documentType: zodListener.filter.documentType ?? [],
|
|
23311
|
+
scope: zodListener.filter.scope ?? []
|
|
23312
23312
|
},
|
|
23313
23313
|
listenerId: zodListener.listenerId,
|
|
23314
23314
|
callInfo: zodListener.callInfo,
|
|
@@ -23318,7 +23318,7 @@ class BaseDocumentDriveServer {
|
|
|
23318
23318
|
}).then(() => {
|
|
23319
23319
|
this.logger.verbose(`[SYNC DEBUG] Successfully set up listener ${zodListener.listenerId} for drive ${driveId}`);
|
|
23320
23320
|
});
|
|
23321
|
-
} else if (((
|
|
23321
|
+
} else if (((_b = zodListener.callInfo) == null ? void 0 : _b.transmitterType) === "PullResponder") {
|
|
23322
23322
|
this.logger.verbose(`[SYNC DEBUG] Setting up PullResponder listener ${zodListener.listenerId} for drive ${driveId}`);
|
|
23323
23323
|
const pullResponderListener = {
|
|
23324
23324
|
driveId,
|
|
@@ -23337,7 +23337,7 @@ class BaseDocumentDriveServer {
|
|
|
23337
23337
|
pullResponderListener.transmitter = pullResponder;
|
|
23338
23338
|
await this.listenerManager.setListener(driveId, pullResponderListener);
|
|
23339
23339
|
} else {
|
|
23340
|
-
this.logger.error(`Skipping listener ${zodListener.listenerId} with unsupported type ${((
|
|
23340
|
+
this.logger.error(`Skipping listener ${zodListener.listenerId} with unsupported type ${((_c = zodListener.callInfo) == null ? void 0 : _c.transmitterType) || "unknown"}`);
|
|
23341
23341
|
}
|
|
23342
23342
|
}
|
|
23343
23343
|
}
|
|
@@ -23458,7 +23458,7 @@ class BaseDocumentDriveServer {
|
|
|
23458
23458
|
} catch (e) {
|
|
23459
23459
|
this.logger.error("Error getting drive from cache", e);
|
|
23460
23460
|
}
|
|
23461
|
-
const driveStorage = await this.
|
|
23461
|
+
const driveStorage = await this.documentStorage.getBySlug(slug);
|
|
23462
23462
|
const document = this._buildDocument(driveStorage, options);
|
|
23463
23463
|
if (!isDocumentDrive(document)) {
|
|
23464
23464
|
throw new Error(`Document with slug ${slug} is not a Document Drive`);
|
|
@@ -23761,7 +23761,7 @@ class BaseDocumentDriveServer {
|
|
|
23761
23761
|
actions: actions2,
|
|
23762
23762
|
options
|
|
23763
23763
|
});
|
|
23764
|
-
return new Promise((resolve, reject) => {
|
|
23764
|
+
return await new Promise((resolve, reject) => {
|
|
23765
23765
|
const unsubscribe = this.queueManager.on("jobCompleted", (job, result) => {
|
|
23766
23766
|
if (job.jobId === jobId) {
|
|
23767
23767
|
unsubscribe();
|
|
@@ -23792,7 +23792,7 @@ class BaseDocumentDriveServer {
|
|
|
23792
23792
|
actions: actions2,
|
|
23793
23793
|
options
|
|
23794
23794
|
});
|
|
23795
|
-
return new Promise((resolve, reject) => {
|
|
23795
|
+
return await new Promise((resolve, reject) => {
|
|
23796
23796
|
const unsubscribe = this.queueManager.on("jobCompleted", (job, result) => {
|
|
23797
23797
|
if (job.jobId === jobId) {
|
|
23798
23798
|
unsubscribe();
|
|
@@ -23814,6 +23814,9 @@ class BaseDocumentDriveServer {
|
|
|
23814
23814
|
}
|
|
23815
23815
|
}
|
|
23816
23816
|
async addOperations(driveId, documentId, operations, options) {
|
|
23817
|
+
return this.queueOperations(driveId, documentId, operations, options);
|
|
23818
|
+
}
|
|
23819
|
+
async processOperations(driveId, documentId, operations, options) {
|
|
23817
23820
|
const result = await this.resultIfExistingOperations(driveId, documentId, operations);
|
|
23818
23821
|
if (result) {
|
|
23819
23822
|
return result;
|
|
@@ -23958,7 +23961,7 @@ class BaseDocumentDriveServer {
|
|
|
23958
23961
|
operations,
|
|
23959
23962
|
options
|
|
23960
23963
|
});
|
|
23961
|
-
return new Promise((resolve, reject) => {
|
|
23964
|
+
return await new Promise((resolve, reject) => {
|
|
23962
23965
|
const unsubscribe = this.queueManager.on("jobCompleted", (job, result2) => {
|
|
23963
23966
|
if (job.jobId === jobId) {
|
|
23964
23967
|
unsubscribe();
|
|
@@ -23980,6 +23983,9 @@ class BaseDocumentDriveServer {
|
|
|
23980
23983
|
}
|
|
23981
23984
|
}
|
|
23982
23985
|
async addDriveOperations(driveId, operations, options) {
|
|
23986
|
+
return this.queueDriveOperations(driveId, operations, options);
|
|
23987
|
+
}
|
|
23988
|
+
async processDriveOperations(driveId, operations, options) {
|
|
23983
23989
|
let document;
|
|
23984
23990
|
const operationsApplied = [];
|
|
23985
23991
|
const signals = [];
|
|
@@ -24078,18 +24084,23 @@ class BaseDocumentDriveServer {
|
|
|
24078
24084
|
return this.addActions(driveId, documentId, [action], options);
|
|
24079
24085
|
}
|
|
24080
24086
|
async addActions(driveId, documentId, actions2, options) {
|
|
24087
|
+
return this.queueActions(driveId, documentId, actions2, options);
|
|
24088
|
+
}
|
|
24089
|
+
async processActions(driveId, documentId, actions2, options) {
|
|
24081
24090
|
const document = await this.getDocument(driveId, documentId);
|
|
24082
24091
|
const operations = this._buildOperations(document, actions2);
|
|
24083
|
-
return this.
|
|
24092
|
+
return this.processOperations(driveId, documentId, operations, options);
|
|
24084
24093
|
}
|
|
24085
24094
|
async addDriveAction(driveId, action, options) {
|
|
24086
24095
|
return this.addDriveActions(driveId, [action], options);
|
|
24087
24096
|
}
|
|
24088
24097
|
async addDriveActions(driveId, actions2, options) {
|
|
24098
|
+
return this.queueDriveActions(driveId, actions2, options);
|
|
24099
|
+
}
|
|
24100
|
+
async processDriveActions(driveId, actions2, options) {
|
|
24089
24101
|
const document = await this.getDrive(driveId);
|
|
24090
24102
|
const operations = this._buildOperations(document, actions2);
|
|
24091
|
-
|
|
24092
|
-
return result;
|
|
24103
|
+
return this.processDriveOperations(driveId, operations, options);
|
|
24093
24104
|
}
|
|
24094
24105
|
async detachDrive(driveId) {
|
|
24095
24106
|
const documentDrive = await this.getDrive(driveId);
|
|
@@ -24168,8 +24179,10 @@ class MemoryStorage {
|
|
|
24168
24179
|
constructor() {
|
|
24169
24180
|
__publicField(this, "documents");
|
|
24170
24181
|
__publicField(this, "driveManifests");
|
|
24182
|
+
__publicField(this, "slugToDocumentId");
|
|
24171
24183
|
this.documents = {};
|
|
24172
24184
|
this.driveManifests = {};
|
|
24185
|
+
this.slugToDocumentId = {};
|
|
24173
24186
|
}
|
|
24174
24187
|
////////////////////////////////
|
|
24175
24188
|
// IDocumentStorage
|
|
@@ -24179,7 +24192,15 @@ class MemoryStorage {
|
|
|
24179
24192
|
}
|
|
24180
24193
|
// TODO: this should throw an error if the document already exists.
|
|
24181
24194
|
create(documentId, document) {
|
|
24195
|
+
var _a2;
|
|
24182
24196
|
this.documents[documentId] = document;
|
|
24197
|
+
const slug = (_a2 = document.initialState.state.global) == null ? void 0 : _a2.slug;
|
|
24198
|
+
if (slug) {
|
|
24199
|
+
if (this.slugToDocumentId[slug]) {
|
|
24200
|
+
throw new Error(`Document with slug ${slug} already exists`);
|
|
24201
|
+
}
|
|
24202
|
+
this.slugToDocumentId[slug] = documentId;
|
|
24203
|
+
}
|
|
24183
24204
|
return Promise.resolve();
|
|
24184
24205
|
}
|
|
24185
24206
|
get(documentId) {
|
|
@@ -24189,7 +24210,22 @@ class MemoryStorage {
|
|
|
24189
24210
|
}
|
|
24190
24211
|
return Promise.resolve(document);
|
|
24191
24212
|
}
|
|
24213
|
+
getBySlug(slug) {
|
|
24214
|
+
const documentId = this.slugToDocumentId[slug];
|
|
24215
|
+
if (!documentId) {
|
|
24216
|
+
throw new Error(`Document with slug ${slug} not found`);
|
|
24217
|
+
}
|
|
24218
|
+
return this.get(documentId);
|
|
24219
|
+
}
|
|
24192
24220
|
async delete(documentId) {
|
|
24221
|
+
var _a2;
|
|
24222
|
+
const document = this.documents[documentId];
|
|
24223
|
+
if (document) {
|
|
24224
|
+
const slug = (_a2 = document.initialState.state.global) == null ? void 0 : _a2.slug;
|
|
24225
|
+
if (slug && this.slugToDocumentId[slug] === documentId) {
|
|
24226
|
+
delete this.slugToDocumentId[slug];
|
|
24227
|
+
}
|
|
24228
|
+
}
|
|
24193
24229
|
const drives = await this.getDrives();
|
|
24194
24230
|
for (const driveId of drives) {
|
|
24195
24231
|
if (driveId === documentId)
|
|
@@ -24233,6 +24269,7 @@ class MemoryStorage {
|
|
|
24233
24269
|
async clearStorage() {
|
|
24234
24270
|
this.documents = {};
|
|
24235
24271
|
this.driveManifests = {};
|
|
24272
|
+
this.slugToDocumentId = {};
|
|
24236
24273
|
}
|
|
24237
24274
|
async addDocumentOperations(drive, id, operations, header) {
|
|
24238
24275
|
const document = await this.get(id);
|
|
@@ -24249,27 +24286,7 @@ class MemoryStorage {
|
|
|
24249
24286
|
async getDrives() {
|
|
24250
24287
|
return Object.keys(this.driveManifests);
|
|
24251
24288
|
}
|
|
24252
|
-
async getDriveBySlug(slug) {
|
|
24253
|
-
for (const driveId of Object.keys(this.driveManifests)) {
|
|
24254
|
-
const drive = this.documents[driveId];
|
|
24255
|
-
if (drive.initialState.state.global.slug === slug) {
|
|
24256
|
-
return drive;
|
|
24257
|
-
}
|
|
24258
|
-
}
|
|
24259
|
-
throw new Error(`Drive with slug ${slug} not found`);
|
|
24260
|
-
}
|
|
24261
24289
|
async createDrive(id, drive) {
|
|
24262
|
-
const slug = drive.initialState.state.global.slug;
|
|
24263
|
-
if (slug) {
|
|
24264
|
-
let existingDrive;
|
|
24265
|
-
try {
|
|
24266
|
-
existingDrive = await this.getDriveBySlug(slug);
|
|
24267
|
-
} catch {
|
|
24268
|
-
}
|
|
24269
|
-
if (existingDrive) {
|
|
24270
|
-
throw new Error(`Drive with slug ${slug} already exists`);
|
|
24271
|
-
}
|
|
24272
|
-
}
|
|
24273
24290
|
await this.create(id, drive);
|
|
24274
24291
|
this.updateDriveManifest(id, { documentIds: /* @__PURE__ */ new Set() });
|
|
24275
24292
|
}
|
|
@@ -24286,6 +24303,7 @@ class MemoryStorage {
|
|
|
24286
24303
|
const manifest = this.getManifest(id);
|
|
24287
24304
|
const drives = await this.getDrives();
|
|
24288
24305
|
await Promise.all([...manifest.documentIds].map((docId) => {
|
|
24306
|
+
var _a2;
|
|
24289
24307
|
for (const driveId of drives) {
|
|
24290
24308
|
if (driveId === id) {
|
|
24291
24309
|
continue;
|
|
@@ -24295,6 +24313,13 @@ class MemoryStorage {
|
|
|
24295
24313
|
return;
|
|
24296
24314
|
}
|
|
24297
24315
|
}
|
|
24316
|
+
const document = this.documents[docId];
|
|
24317
|
+
if (document) {
|
|
24318
|
+
const slug = (_a2 = document.initialState.state.global) == null ? void 0 : _a2.slug;
|
|
24319
|
+
if (slug && this.slugToDocumentId[slug] === docId) {
|
|
24320
|
+
delete this.slugToDocumentId[slug];
|
|
24321
|
+
}
|
|
24322
|
+
}
|
|
24298
24323
|
delete this.documents[docId];
|
|
24299
24324
|
}));
|
|
24300
24325
|
delete this.driveManifests[id];
|
|
@@ -25793,7 +25818,7 @@ const nodeOptionsMap = {
|
|
|
25793
25818
|
};
|
|
25794
25819
|
const name = "@powerhousedao/connect";
|
|
25795
25820
|
const productName = "Powerhouse-Connect";
|
|
25796
|
-
const version$1 = "1.0.16-dev.
|
|
25821
|
+
const version$1 = "1.0.16-dev.2";
|
|
25797
25822
|
const description = "Powerhouse Connect";
|
|
25798
25823
|
const main = "./dist/index.html";
|
|
25799
25824
|
const type = "module";
|
|
@@ -28600,8 +28625,18 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28600
28625
|
}
|
|
28601
28626
|
// TODO: this should throw an error if the document already exists.
|
|
28602
28627
|
async create(documentId, document) {
|
|
28628
|
+
var _a2;
|
|
28603
28629
|
const db = await this.db;
|
|
28604
28630
|
await db.setItem(this.buildDocumentKey(documentId), document);
|
|
28631
|
+
const slug = ((_a2 = document.initialState.state.global) == null ? void 0 : _a2.slug) ?? documentId;
|
|
28632
|
+
if (slug) {
|
|
28633
|
+
const slugManifest = await this.getSlugManifest();
|
|
28634
|
+
if (slugManifest.slugToId[slug]) {
|
|
28635
|
+
throw new Error(`Document with slug ${slug} already exists`);
|
|
28636
|
+
}
|
|
28637
|
+
slugManifest.slugToId[slug] = documentId;
|
|
28638
|
+
await this.updateSlugManifest(slugManifest);
|
|
28639
|
+
}
|
|
28605
28640
|
}
|
|
28606
28641
|
async get(documentId) {
|
|
28607
28642
|
const db = await this.db;
|
|
@@ -28611,12 +28646,32 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28611
28646
|
}
|
|
28612
28647
|
return document;
|
|
28613
28648
|
}
|
|
28649
|
+
async getBySlug(slug) {
|
|
28650
|
+
const slugManifest = await this.getSlugManifest();
|
|
28651
|
+
const documentId = slugManifest.slugToId[slug];
|
|
28652
|
+
if (!documentId) {
|
|
28653
|
+
throw new Error(`Document with slug ${slug} not found`);
|
|
28654
|
+
}
|
|
28655
|
+
return this.get(documentId);
|
|
28656
|
+
}
|
|
28614
28657
|
async delete(documentId) {
|
|
28658
|
+
var _a2;
|
|
28615
28659
|
const db = await this.db;
|
|
28616
28660
|
const document = await db.getItem(this.buildDocumentKey(documentId));
|
|
28617
28661
|
if (!document) {
|
|
28618
28662
|
return false;
|
|
28619
28663
|
}
|
|
28664
|
+
try {
|
|
28665
|
+
const slug = (_a2 = document.initialState.state.global) == null ? void 0 : _a2.slug;
|
|
28666
|
+
if (slug) {
|
|
28667
|
+
const slugManifest = await this.getSlugManifest();
|
|
28668
|
+
if (slugManifest.slugToId[slug] === documentId) {
|
|
28669
|
+
delete slugManifest.slugToId[slug];
|
|
28670
|
+
await this.updateSlugManifest(slugManifest);
|
|
28671
|
+
}
|
|
28672
|
+
}
|
|
28673
|
+
} catch (error) {
|
|
28674
|
+
}
|
|
28620
28675
|
const drives = await this.getDrives();
|
|
28621
28676
|
for (const driveId of drives) {
|
|
28622
28677
|
if (driveId === documentId)
|
|
@@ -28667,6 +28722,15 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28667
28722
|
const db = await this.db;
|
|
28668
28723
|
await db.setItem(this.buildManifestKey(driveId), manifest);
|
|
28669
28724
|
}
|
|
28725
|
+
async getSlugManifest() {
|
|
28726
|
+
const db = await this.db;
|
|
28727
|
+
const manifest = await db.getItem(_BrowserStorage.SLUG_MANIFEST_KEY);
|
|
28728
|
+
return manifest || { slugToId: {} };
|
|
28729
|
+
}
|
|
28730
|
+
async updateSlugManifest(manifest) {
|
|
28731
|
+
const db = await this.db;
|
|
28732
|
+
await db.setItem(_BrowserStorage.SLUG_MANIFEST_KEY, manifest);
|
|
28733
|
+
}
|
|
28670
28734
|
async clearStorage() {
|
|
28671
28735
|
return (await this.db).clear();
|
|
28672
28736
|
}
|
|
@@ -28688,28 +28752,7 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28688
28752
|
const keys = await db.keys();
|
|
28689
28753
|
return keys.filter((key) => key.startsWith(_BrowserStorage.MANIFEST_KEY)).map((key) => key.slice(_BrowserStorage.MANIFEST_KEY.length + _BrowserStorage.SEP.length));
|
|
28690
28754
|
}
|
|
28691
|
-
async getDriveBySlug(slug) {
|
|
28692
|
-
const drives = (await this.getDrives()).reverse();
|
|
28693
|
-
for (const drive of drives) {
|
|
28694
|
-
const driveData = await this.get(drive);
|
|
28695
|
-
if (driveData.initialState.state.global.slug === slug) {
|
|
28696
|
-
return driveData;
|
|
28697
|
-
}
|
|
28698
|
-
}
|
|
28699
|
-
throw new Error(`Drive with slug ${slug} not found`);
|
|
28700
|
-
}
|
|
28701
28755
|
async createDrive(id, drive) {
|
|
28702
|
-
const slug = drive.initialState.state.global.slug;
|
|
28703
|
-
if (slug) {
|
|
28704
|
-
let existingDrive;
|
|
28705
|
-
try {
|
|
28706
|
-
existingDrive = await this.getDriveBySlug(slug);
|
|
28707
|
-
} catch {
|
|
28708
|
-
}
|
|
28709
|
-
if (existingDrive) {
|
|
28710
|
-
throw new Error(`Drive with slug ${slug} already exists`);
|
|
28711
|
-
}
|
|
28712
|
-
}
|
|
28713
28756
|
await this.create(id, drive);
|
|
28714
28757
|
await this.updateDriveManifest(id, { documentIds: [] });
|
|
28715
28758
|
}
|
|
@@ -28795,6 +28838,7 @@ __publicField(_BrowserStorage, "DBName", "DOCUMENT_DRIVES");
|
|
|
28795
28838
|
__publicField(_BrowserStorage, "SEP", ":");
|
|
28796
28839
|
__publicField(_BrowserStorage, "DOCUMENT_KEY", "DOCUMENT");
|
|
28797
28840
|
__publicField(_BrowserStorage, "MANIFEST_KEY", "MANIFEST");
|
|
28841
|
+
__publicField(_BrowserStorage, "SLUG_MANIFEST_KEY", "SLUG_MANIFEST");
|
|
28798
28842
|
let BrowserStorage = _BrowserStorage;
|
|
28799
28843
|
const DEFAULT_DRIVES_URL = window.__VITE_ENVS.PH_CONNECT_DEFAULT_DRIVES_URL || void 0;
|
|
28800
28844
|
const defaultDrivesUrl = DEFAULT_DRIVES_URL ? DEFAULT_DRIVES_URL.split(",") : [];
|
|
@@ -31398,7 +31442,7 @@ if (window.__VITE_ENVS.MODE === "development") {
|
|
|
31398
31442
|
} else {
|
|
31399
31443
|
serviceWorkerManager.registerServiceWorker(false);
|
|
31400
31444
|
}
|
|
31401
|
-
const App = lazy(() => __vitePreload(() => import("./app-
|
|
31445
|
+
const App = lazy(() => __vitePreload(() => import("./app-DhH3gUSI.js").then((n) => n.aQ), true ? __vite__mapDeps([0,1,2]) : void 0));
|
|
31402
31446
|
const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
|
|
31403
31447
|
const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31404
31448
|
__proto__: null,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aG as BaseError, aH as getUrl, aI as stringify, aJ as decodeErrorResult, aK as isAddressEqual, aL as call, aM as concat, aN as encodeAbiParameters, aO as HttpRequestError, aP as isHex } from "./app-
|
|
2
|
-
import "./main.
|
|
1
|
+
import { aG as BaseError, aH as getUrl, aI as stringify, aJ as decodeErrorResult, aK as isAddressEqual, aL as call, aM as concat, aN as encodeAbiParameters, aO as HttpRequestError, aP as isHex } from "./app-DhH3gUSI.js";
|
|
2
|
+
import "./main.C1DJvpcL.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
|
-
import "./app-loader-
|
|
4
|
+
import "./app-loader-Btk_wf_z.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@powerhousedao/reactor-browser";
|
|
7
7
|
import "react-dom";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
|
-
import { t as twMerge, B as Button, m as mergeClassNameProps, E as ERROR, M as MISSING, C as CONFLICT, S as SUCCESS, h as SYNCING, I as INITIAL_SYNC, i as ConnectDropdownMenu, u as useOnClickOutside, j as useEventListener, k as useCopyToClipboard, l as Select, n as ENSAvatar, P as Provider, o as Root3, T as Trigger, p as Portal, q as Content2, v as validateInitialState, w as validateStateSchemaName, x as validateModules, y as useUnwrappedReactor, z as useConnectDid, A as useConnectCrypto, D as useTranslation, F as useModal, G as useAtomValue, H as themeAtom, J as useUser, K as useUserPermissions, L as useUiNodes, N as exportFile, O as useGetDocumentModelModule, Q as addActionContext, U as signOperation, V as useDocumentDriveServer, W as useHotkeys, X as useGetEditor, Y as isSameDocument, Z as useNavigate, _ as ErrorBoundary, $ as DriveLayout, a0 as SearchBar, a1 as useAsyncReactor, a2 as useFilteredDocumentModels, a3 as useDriveEditor, a4 as useDocumentDriveById, a5 as useParams, a6 as useDocumentDrives, a7 as toast } from "./app-
|
|
2
|
+
import { t as twMerge, B as Button, m as mergeClassNameProps, E as ERROR, M as MISSING, C as CONFLICT, S as SUCCESS, h as SYNCING, I as INITIAL_SYNC, i as ConnectDropdownMenu, u as useOnClickOutside, j as useEventListener, k as useCopyToClipboard, l as Select, n as ENSAvatar, P as Provider, o as Root3, T as Trigger, p as Portal, q as Content2, v as validateInitialState, w as validateStateSchemaName, x as validateModules, y as useUnwrappedReactor, z as useConnectDid, A as useConnectCrypto, D as useTranslation, F as useModal, G as useAtomValue, H as themeAtom, J as useUser, K as useUserPermissions, L as useUiNodes, N as exportFile, O as useGetDocumentModelModule, Q as addActionContext, U as signOperation, V as useDocumentDriveServer, W as useHotkeys, X as useGetEditor, Y as isSameDocument, Z as useNavigate, _ as ErrorBoundary, $ as DriveLayout, a0 as SearchBar, a1 as useAsyncReactor, a2 as useFilteredDocumentModels, a3 as useDriveEditor, a4 as useDocumentDriveById, a5 as useParams, a6 as useDocumentDrives, a7 as toast } from "./app-DhH3gUSI.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import React__default, { useState, useCallback, useMemo, useEffect, Fragment, useRef, useLayoutEffect, memo as memo$1, createElement, useSyncExternalStore, Suspense } from "react";
|
|
5
|
-
import { _ as Icon, aX as getDimensions, aY as READ, aZ as nodeOptionsMap, a_ as defaultFileOptions, a$ as DELETE, b0 as RENAME, b1 as WRITE, b2 as DUPLICATE, b3 as defaultFolderOptions, b4 as garbageCollect, b5 as sortOperations, b6 as UI_NODE, aO as DRIVE, ay as FILE, b7 as undo, b8 as redo, ac as logger, b9 as useDocumentDispatch, aP as FOLDER, ak as driveDocumentModelModule } from "./app-loader-
|
|
5
|
+
import { _ as Icon, aX as getDimensions, aY as READ, aZ as nodeOptionsMap, a_ as defaultFileOptions, a$ as DELETE, b0 as RENAME, b1 as WRITE, b2 as DUPLICATE, b3 as defaultFolderOptions, b4 as garbageCollect, b5 as sortOperations, b6 as UI_NODE, aO as DRIVE, ay as FILE, b7 as undo, b8 as redo, ac as logger, b9 as useDocumentDispatch, aP as FOLDER, ak as driveDocumentModelModule } from "./app-loader-Btk_wf_z.js";
|
|
6
6
|
import { useDocument, useDocumentEditorProps } from "@powerhousedao/reactor-browser";
|
|
7
7
|
import { useUiNodesContext, FILE as FILE$1 } from "@powerhousedao/reactor-browser/hooks/useUiNodesContext";
|
|
8
8
|
import { useDriveActionsWithUiNodes } from "@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes";
|
|
@@ -10,7 +10,7 @@ import { DriveContextProvider, useDriveContext } from "@powerhousedao/reactor-br
|
|
|
10
10
|
import "@powerhousedao/reactor-browser/uiNodes/constants";
|
|
11
11
|
import { makeDriveDocumentStateHook } from "@powerhousedao/reactor-browser/hooks/document-state";
|
|
12
12
|
import { flushSync } from "react-dom";
|
|
13
|
-
import "./main.
|
|
13
|
+
import "./main.C1DJvpcL.js";
|
|
14
14
|
const PaginationButton = ({ active = false, ...props }) => {
|
|
15
15
|
const className = twMerge("h-8 min-w-8 border border-solid border-gray-300 bg-white px-3 py-1 text-xs text-gray-900 hover:bg-gray-100", !active && "border-0");
|
|
16
16
|
return jsx(Button, { color: "light", size: "small", ...mergeClassNameProps(props, className), children: props.children });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { t as twMerge, a8 as clsx, a9 as get, aa as set, ab as appendErrors, ac as useFormContext, ad as Primitive, ae as cva, af as FormProvider, ag as Controller, ah as Slot, ai as useForm, aj as Root2, ak as List, al as Trigger, am as Content, an as setModelName, ao as setModelId, ap as setModelDescription, aq as setModelExtension, ar as setAuthorName, as as setAuthorWebsite, at as setStateSchema, au as setInitialState, av as addModule, aw as setModuleName, ax as deleteModule, ay as addOperation, az as setOperationName, aA as setOperationSchema, aB as setOperationDescription, aC as deleteOperation, aD as addOperationError, aE as deleteOperationError, aF as setOperationErrorName } from "./app-
|
|
3
|
-
import { ba as inspect$1, bb as GraphQLError$1, bc as getNamedType, bd as invariant$2, be as isInputObjectType, bf as isScalarType, bg as isObjectType, bh as isInterfaceType, bi as isUnionType, bj as isEnumType, bk as print, bl as isPrintableAsBlockString, bm as Kind, bn as astFromValue$1, bo as DEFAULT_DEPRECATION_REASON, bp as isSpecifiedDirective, bq as isSpecifiedScalarType, br as isIntrospectionType, bs as z, bt as GraphQLScalarType, Z as pascalCase, bu as parse, bv as visit, bw as buildASTSchema, bx as extendSchema, by as getNullableType, bz as isListType, $ as getDefaultExportFromCjs, bA as snakeCase, bB as constantCase, bC as isAbstractType, bD as BREAK, bE as GraphQLInputObjectType, bF as GraphQLList, bG as GraphQLEnumType, bH as GraphQLObjectType, bI as GraphQLInterfaceType, bJ as SchemaMetaFieldDef, bK as TypeMetaFieldDef, bL as TypeNameMetaFieldDef, bM as isCompositeType, bN as isOutputType, bO as isInputType, bP as GraphQLBoolean, bQ as assertAbstractType, bR as doTypesOverlap, bS as DirectiveLocation, bT as specifiedRules$1, bU as NoUnusedFragmentsRule$1, bV as ExecutableDefinitionsRule$1, bW as validate$2, bX as validateSchema, bY as GraphQLID, bZ as GraphQLString, b_ as GraphQLFloat, b$ as GraphQLInt, c0 as GraphQLDirective, c1 as GraphQLUnionType, c2 as isNonNullType, c3 as GraphQLNonNull, c4 as isNamedType, c5 as isLeafType, c6 as GraphQLSchema, c7 as buildSchema, c8 as sentenceCase, am as hashKey } from "./app-loader-
|
|
2
|
+
import { t as twMerge, a8 as clsx, a9 as get, aa as set, ab as appendErrors, ac as useFormContext, ad as Primitive, ae as cva, af as FormProvider, ag as Controller, ah as Slot, ai as useForm, aj as Root2, ak as List, al as Trigger, am as Content, an as setModelName, ao as setModelId, ap as setModelDescription, aq as setModelExtension, ar as setAuthorName, as as setAuthorWebsite, at as setStateSchema, au as setInitialState, av as addModule, aw as setModuleName, ax as deleteModule, ay as addOperation, az as setOperationName, aA as setOperationSchema, aB as setOperationDescription, aC as deleteOperation, aD as addOperationError, aE as deleteOperationError, aF as setOperationErrorName } from "./app-DhH3gUSI.js";
|
|
3
|
+
import { ba as inspect$1, bb as GraphQLError$1, bc as getNamedType, bd as invariant$2, be as isInputObjectType, bf as isScalarType, bg as isObjectType, bh as isInterfaceType, bi as isUnionType, bj as isEnumType, bk as print, bl as isPrintableAsBlockString, bm as Kind, bn as astFromValue$1, bo as DEFAULT_DEPRECATION_REASON, bp as isSpecifiedDirective, bq as isSpecifiedScalarType, br as isIntrospectionType, bs as z, bt as GraphQLScalarType, Z as pascalCase, bu as parse, bv as visit, bw as buildASTSchema, bx as extendSchema, by as getNullableType, bz as isListType, $ as getDefaultExportFromCjs, bA as snakeCase, bB as constantCase, bC as isAbstractType, bD as BREAK, bE as GraphQLInputObjectType, bF as GraphQLList, bG as GraphQLEnumType, bH as GraphQLObjectType, bI as GraphQLInterfaceType, bJ as SchemaMetaFieldDef, bK as TypeMetaFieldDef, bL as TypeNameMetaFieldDef, bM as isCompositeType, bN as isOutputType, bO as isInputType, bP as GraphQLBoolean, bQ as assertAbstractType, bR as doTypesOverlap, bS as DirectiveLocation, bT as specifiedRules$1, bU as NoUnusedFragmentsRule$1, bV as ExecutableDefinitionsRule$1, bW as validate$2, bX as validateSchema, bY as GraphQLID, bZ as GraphQLString, b_ as GraphQLFloat, b$ as GraphQLInt, c0 as GraphQLDirective, c1 as GraphQLUnionType, c2 as isNonNullType, c3 as GraphQLNonNull, c4 as isNamedType, c5 as isLeafType, c6 as GraphQLSchema, c7 as buildSchema, c8 as sentenceCase, am as hashKey } from "./app-loader-Btk_wf_z.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import React__default, { forwardRef, useRef, useCallback, useImperativeHandle, useEffect, useState, createContext, useContext, memo, useId, useMemo } from "react";
|
|
6
|
-
import "./main.
|
|
6
|
+
import "./main.C1DJvpcL.js";
|
|
7
7
|
import "@powerhousedao/reactor-browser";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "@powerhousedao/reactor-browser/hooks/useUiNodesContext";
|
|
@@ -10,10 +10,10 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
10
10
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
12
|
var _DB_NAME, _STORE_NAME, _KEY, _db, _BrowserKeyStorage_instances, useStore_fn, _subtleCrypto, _keyPair, _keyPairStorage, _did, _ConnectCrypto_instances, initCrypto_fn, initialize_fn, parseDid_fn, generateECDSAKeyPair_fn, exportKeyPair_fn, importKeyPair_fn, _sign, _verify, _store, _namespace, _BaseStorage_instances, buildKey_fn, _baseUrl, _store2, _connectId, _eventEmitter, _Renown_instances, updateUser_fn, getCredential_fn;
|
|
13
|
-
import { _ as __vitePreload } from "./main.
|
|
14
|
-
import { aW as getAugmentedNamespace, $ as getDefaultExportFromCjs, ah as connectConfig, ac as logger } from "./app-loader-
|
|
15
|
-
import { e as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-
|
|
16
|
-
import { d, c, b, f, a, r, s } from "./app-
|
|
13
|
+
import { _ as __vitePreload } from "./main.C1DJvpcL.js";
|
|
14
|
+
import { aW as getAugmentedNamespace, $ as getDefaultExportFromCjs, ah as connectConfig, ac as logger } from "./app-loader-Btk_wf_z.js";
|
|
15
|
+
import { e as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-DhH3gUSI.js";
|
|
16
|
+
import { d, c, b, f, a, r, s } from "./app-DhH3gUSI.js";
|
|
17
17
|
import "react/jsx-runtime";
|
|
18
18
|
import "react";
|
|
19
19
|
import "@powerhousedao/reactor-browser";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-loader-
|
|
2
|
-
import { _ as __vitePreload } from "./main.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-loader-Btk_wf_z.js","assets/main.C1DJvpcL.js","assets/app-loader-DiF8OhX3.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as __vitePreload } from "./main.C1DJvpcL.js";
|
|
3
3
|
import { createRoot } from "react-dom/client";
|
|
4
4
|
async function renderApp(element) {
|
|
5
|
-
const AppLoader = await __vitePreload(() => import("./app-loader-
|
|
5
|
+
const AppLoader = await __vitePreload(() => import("./app-loader-Btk_wf_z.js").then((n) => n.c9), true ? __vite__mapDeps([0,1,2]) : void 0);
|
|
6
6
|
createRoot(element).render(AppLoader.default);
|
|
7
7
|
}
|
|
8
8
|
const AppElement = document.getElementById("app");
|
|
@@ -99,7 +99,7 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
|
99
99
|
return baseModule().catch(handlePreloadError);
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
|
-
__vitePreload(() => import("./index-
|
|
102
|
+
__vitePreload(() => import("./index-Whh7mT2J.js"), true ? [] : void 0);
|
|
103
103
|
export {
|
|
104
104
|
__vitePreload as _
|
|
105
105
|
};
|
package/dist/index.html
CHANGED
|
@@ -62,38 +62,6 @@
|
|
|
62
62
|
"react": "https://esm.sh/react",
|
|
63
63
|
"react/": "https://esm.sh/react/",
|
|
64
64
|
"react-dom": "https://esm.sh/react-dom",
|
|
65
|
-
"react-dom/": "https://esm.sh/react-dom/"
|
|
66
|
-
"@powerhousedao/reactor-browser": "/modules/@powerhousedao/reactor-browser/index.js",
|
|
67
|
-
"@powerhousedao/reactor-browser/document-model": "/modules/@powerhousedao/reactor-browser/document-model.js",
|
|
68
|
-
"@powerhousedao/reactor-browser/index": "/modules/@powerhousedao/reactor-browser/index.js",
|
|
69
|
-
"@powerhousedao/reactor-browser/reactor": "/modules/@powerhousedao/reactor-browser/reactor.js",
|
|
70
|
-
"@powerhousedao/reactor-browser/context/index": "/modules/@powerhousedao/reactor-browser/context/index.js",
|
|
71
|
-
"@powerhousedao/reactor-browser/context/read-mode": "/modules/@powerhousedao/reactor-browser/context/read-mode.js",
|
|
72
|
-
"@powerhousedao/reactor-browser/crypto/browser": "/modules/@powerhousedao/reactor-browser/crypto/browser.js",
|
|
73
|
-
"@powerhousedao/reactor-browser/crypto/index": "/modules/@powerhousedao/reactor-browser/crypto/index.js",
|
|
74
|
-
"@powerhousedao/reactor-browser/hooks/document-state": "/modules/@powerhousedao/reactor-browser/hooks/document-state.js",
|
|
75
|
-
"@powerhousedao/reactor-browser/hooks/index": "/modules/@powerhousedao/reactor-browser/hooks/index.js",
|
|
76
|
-
"@powerhousedao/reactor-browser/hooks/useAddDebouncedOperations": "/modules/@powerhousedao/reactor-browser/hooks/useAddDebouncedOperations.js",
|
|
77
|
-
"@powerhousedao/reactor-browser/hooks/useConnectCrypto": "/modules/@powerhousedao/reactor-browser/hooks/useConnectCrypto.js",
|
|
78
|
-
"@powerhousedao/reactor-browser/hooks/useDocument": "/modules/@powerhousedao/reactor-browser/hooks/useDocument.js",
|
|
79
|
-
"@powerhousedao/reactor-browser/hooks/useDocumentDispatch": "/modules/@powerhousedao/reactor-browser/hooks/useDocumentDispatch.js",
|
|
80
|
-
"@powerhousedao/reactor-browser/hooks/useDocumentDrives": "/modules/@powerhousedao/reactor-browser/hooks/useDocumentDrives.js",
|
|
81
|
-
"@powerhousedao/reactor-browser/hooks/useDocumentEditor": "/modules/@powerhousedao/reactor-browser/hooks/useDocumentEditor.js",
|
|
82
|
-
"@powerhousedao/reactor-browser/hooks/useDriveActions": "/modules/@powerhousedao/reactor-browser/hooks/useDriveActions.js",
|
|
83
|
-
"@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes": "/modules/@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes.js",
|
|
84
|
-
"@powerhousedao/reactor-browser/hooks/useDriveContext": "/modules/@powerhousedao/reactor-browser/hooks/useDriveContext.js",
|
|
85
|
-
"@powerhousedao/reactor-browser/hooks/useUiNodesContext": "/modules/@powerhousedao/reactor-browser/hooks/useUiNodesContext.js",
|
|
86
|
-
"@powerhousedao/reactor-browser/hooks/useUserPermissions": "/modules/@powerhousedao/reactor-browser/hooks/useUserPermissions.js",
|
|
87
|
-
"@powerhousedao/reactor-browser/renown/constants": "/modules/@powerhousedao/reactor-browser/renown/constants.js",
|
|
88
|
-
"@powerhousedao/reactor-browser/renown/types": "/modules/@powerhousedao/reactor-browser/renown/types.js",
|
|
89
|
-
"@powerhousedao/reactor-browser/storage/index": "/modules/@powerhousedao/reactor-browser/storage/index.js",
|
|
90
|
-
"@powerhousedao/reactor-browser/storage/types": "/modules/@powerhousedao/reactor-browser/storage/types.js",
|
|
91
|
-
"@powerhousedao/reactor-browser/types/drive-editor": "/modules/@powerhousedao/reactor-browser/types/drive-editor.js",
|
|
92
|
-
"@powerhousedao/reactor-browser/types/index": "/modules/@powerhousedao/reactor-browser/types/index.js",
|
|
93
|
-
"@powerhousedao/reactor-browser/uiNodes/constants": "/modules/@powerhousedao/reactor-browser/uiNodes/constants.js",
|
|
94
|
-
"@powerhousedao/reactor-browser/uiNodes/types": "/modules/@powerhousedao/reactor-browser/uiNodes/types.js",
|
|
95
|
-
"@powerhousedao/reactor-browser/utils/export-document": "/modules/@powerhousedao/reactor-browser/utils/export-document.js",
|
|
96
|
-
"@powerhousedao/reactor-browser/utils/index": "/modules/@powerhousedao/reactor-browser/utils/index.js",
|
|
97
|
-
"@powerhousedao/reactor-browser/utils/signature": "/modules/@powerhousedao/reactor-browser/utils/signature.js"
|
|
65
|
+
"react-dom/": "https://esm.sh/react-dom/"
|
|
98
66
|
}
|
|
99
|
-
}</script><script type="module" crossorigin="" src="/assets/main.
|
|
67
|
+
}</script><script type="module" crossorigin="" src="/assets/main.C1DJvpcL.js"></script></head><body><div id="app"></div></body></html>
|
package/dist/vite-envs.sh
CHANGED
|
@@ -11,7 +11,7 @@ replaceAll() {
|
|
|
11
11
|
}'
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
html=$(echo "PCFET0NUWVBFIGh0bWw+PGh0bWw+PGhlYWQ+PG1ldGEgY2hhcnNldD0iVVRGLTgiPjxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj48dGl0bGU+UG93ZXJob3VzZSBDb25uZWN0PC90aXRsZT48YmFzZSBocmVmPSIvIj48bGluayByZWw9Imljb24iIGhyZWY9Ii9pY29uLmljbyI+PCEtLSB2aXRlLWVudnMgc2NyaXB0IHBsYWNlaG9sZGVyIHhLc1BtTHMzMHN3S3NkSXNWeCAtLT48c2NyaXB0IHR5cGU9ImltcG9ydG1hcCI+
|
|
14
|
+
html=$(echo "PCFET0NUWVBFIGh0bWw+PGh0bWw+PGhlYWQ+PG1ldGEgY2hhcnNldD0iVVRGLTgiPjxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj48dGl0bGU+UG93ZXJob3VzZSBDb25uZWN0PC90aXRsZT48YmFzZSBocmVmPSIvIj48bGluayByZWw9Imljb24iIGhyZWY9Ii9pY29uLmljbyI+PCEtLSB2aXRlLWVudnMgc2NyaXB0IHBsYWNlaG9sZGVyIHhLc1BtTHMzMHN3S3NkSXNWeCAtLT48c2NyaXB0IHR5cGU9ImltcG9ydG1hcCI+ewogICJpbXBvcnRzIjogewogICAgInJlYWN0IjogImh0dHBzOi8vZXNtLnNoL3JlYWN0IiwKICAgICJyZWFjdC8iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QvIiwKICAgICJyZWFjdC1kb20iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QtZG9tIiwKICAgICJyZWFjdC1kb20vIjogImh0dHBzOi8vZXNtLnNoL3JlYWN0LWRvbS8iCiAgfQp9PC9zY3JpcHQ+PHNjcmlwdCB0eXBlPSJtb2R1bGUiIGNyb3Nzb3JpZ2luPSIiIHNyYz0iL2Fzc2V0cy9tYWluLkMxREp2cGNMLmpzIj48L3NjcmlwdD48L2hlYWQ+PGJvZHk+PGRpdiBpZD0iYXBwIj48L2Rpdj48L2JvZHk+PC9odG1sPg==" | base64 -d)
|
|
15
15
|
|
|
16
16
|
BASE_URL_base64="eEFwV2RSclg5OWtQclZnZ0UiLyIK"
|
|
17
17
|
BASE_URL=$(echo "Lwo=" | base64 -d)
|