@powerhousedao/connect 1.0.10-dev.0 → 1.0.11-dev.0
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-CsiwsM42.js → app-CSB8ljfZ.js} +9 -9
- package/dist/assets/{app-loader-C7A2YjX4.js → app-loader-k9YqeUtT.js} +55 -81
- package/dist/assets/{ccip-BG1d6viz.js → ccip-CE4X4bM8.js} +3 -3
- package/dist/assets/{content-0UFgs2d1.js → content-DPhkZXQC.js} +3 -3
- package/dist/assets/{index-BMDqhr-9.js → index-COuqxA6R.js} +3 -3
- package/dist/assets/{index-CTEGX1We.js → index-CTQ6qYUS.js} +3 -3
- package/dist/assets/{index-yr0-SqYf.js → index-Dr18XVHc.js} +4 -4
- package/dist/assets/{main.BmcV9296.js → main.Biy01WIR.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-XV42KZK3.js → chunk-6GRZOLU5.js} +1 -1
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-5QJXNK35.js → chunk-HNBKSZYU.js} +1 -1
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-ISDEPHKP.js → chunk-HNTH6HAH.js} +7 -20
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-SQ5HIKYV.js → chunk-HYN4HC4N.js} +45 -60
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-3C54663M.js → chunk-ODF4NZBP.js} +1 -1
- package/dist/modules/@powerhousedao/reactor-browser/context/index.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/context/read-mode.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/hooks/index.js +3 -3
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActions.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes.js +3 -3
- package/dist/modules/@powerhousedao/reactor-browser/index.js +5 -5
- package/dist/modules/@powerhousedao/reactor-browser/reactor.js +2 -2
- package/dist/vite-envs.sh +1 -1
- package/package.json +6 -6
|
@@ -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-CE4X4bM8.js","assets/main.Biy01WIR.js","assets/app-loader-k9YqeUtT.js","assets/app-loader-pcztQTL4.css","assets/index-CTQ6qYUS.js","assets/style-Ce3V83BE.css","assets/index-Dr18XVHc.js","assets/content-DPhkZXQC.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.Biy01WIR.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-k9YqeUtT.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-CE4X4bM8.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-CTQ6qYUS.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-Dr18XVHc.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-Dr18XVHc.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-Dr18XVHc.js");
|
|
71875
71875
|
return { initRenownBrowser: initRenownBrowser2 };
|
|
71876
71876
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
71877
71877
|
const renownBrowser = initRenownBrowser(did2);
|
|
@@ -80201,7 +80201,7 @@ function Home() {
|
|
|
80201
80201
|
/* @__PURE__ */ jsx$1(HomeScreenAddDriveItem, { onClick: onAddDriveClick })
|
|
80202
80202
|
] });
|
|
80203
80203
|
}
|
|
80204
|
-
const Content = React__default.lazy(() => __vitePreload(() => import("./content-
|
|
80204
|
+
const Content = React__default.lazy(() => __vitePreload(() => import("./content-DPhkZXQC.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
|
|
80205
80205
|
async function createRouter(routes) {
|
|
80206
80206
|
var _a2;
|
|
80207
80207
|
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-CSB8ljfZ.js","assets/main.Biy01WIR.js","assets/app-BIIVKAZr.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.Biy01WIR.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) {
|
|
@@ -11554,13 +11554,6 @@ class DriveAlreadyExistsError extends Error {
|
|
|
11554
11554
|
this.driveId = driveId;
|
|
11555
11555
|
}
|
|
11556
11556
|
}
|
|
11557
|
-
class DriveNotFoundError extends Error {
|
|
11558
|
-
constructor(driveId) {
|
|
11559
|
-
super(`Drive with id ${driveId} not found`);
|
|
11560
|
-
__publicField(this, "driveId");
|
|
11561
|
-
this.driveId = driveId;
|
|
11562
|
-
}
|
|
11563
|
-
}
|
|
11564
11557
|
class SynchronizationUnitNotFoundError extends Error {
|
|
11565
11558
|
constructor(message, syncUnitId) {
|
|
11566
11559
|
super(message);
|
|
@@ -22368,9 +22361,7 @@ class DefaultDrivesManager {
|
|
|
22368
22361
|
try {
|
|
22369
22362
|
await this.server.deleteDrive(driveId);
|
|
22370
22363
|
} catch (error) {
|
|
22371
|
-
|
|
22372
|
-
logger$1.error(error);
|
|
22373
|
-
}
|
|
22364
|
+
logger$1.error(error);
|
|
22374
22365
|
}
|
|
22375
22366
|
}
|
|
22376
22367
|
async preserveDrivesById(driveIdsToPreserve, drives, removeStrategy = "detach") {
|
|
@@ -23088,7 +23079,7 @@ class BaseDocumentDriveServer {
|
|
|
23088
23079
|
__publicField(this, "logger", childLogger(["BaseDocumentDriveServer"]));
|
|
23089
23080
|
// external dependencies
|
|
23090
23081
|
__publicField(this, "documentModelModules");
|
|
23091
|
-
__publicField(this, "
|
|
23082
|
+
__publicField(this, "legacyStorage");
|
|
23092
23083
|
__publicField(this, "documentStorage");
|
|
23093
23084
|
__publicField(this, "cache");
|
|
23094
23085
|
__publicField(this, "queueManager");
|
|
@@ -23124,7 +23115,7 @@ class BaseDocumentDriveServer {
|
|
|
23124
23115
|
__publicField(this, "triggerMap", /* @__PURE__ */ new Map());
|
|
23125
23116
|
__publicField(this, "initializePromise");
|
|
23126
23117
|
this.documentModelModules = documentModelModules;
|
|
23127
|
-
this.
|
|
23118
|
+
this.legacyStorage = storage;
|
|
23128
23119
|
this.documentStorage = documentStorage;
|
|
23129
23120
|
this.cache = cache;
|
|
23130
23121
|
this.queueManager = queueManager;
|
|
@@ -23366,7 +23357,7 @@ class BaseDocumentDriveServer {
|
|
|
23366
23357
|
if (!id) {
|
|
23367
23358
|
throw new Error("Invalid Drive Id");
|
|
23368
23359
|
}
|
|
23369
|
-
const drives = await this.
|
|
23360
|
+
const drives = await this.legacyStorage.getDrives();
|
|
23370
23361
|
if (drives.includes(id)) {
|
|
23371
23362
|
throw new DriveAlreadyExistsError(id);
|
|
23372
23363
|
}
|
|
@@ -23376,7 +23367,7 @@ class BaseDocumentDriveServer {
|
|
|
23376
23367
|
document.meta = {
|
|
23377
23368
|
preferredEditor
|
|
23378
23369
|
};
|
|
23379
|
-
await this.
|
|
23370
|
+
await this.legacyStorage.createDrive(id, document);
|
|
23380
23371
|
if (input.global.slug) {
|
|
23381
23372
|
await this.cache.deleteDriveBySlug(input.global.slug);
|
|
23382
23373
|
}
|
|
@@ -23411,7 +23402,7 @@ class BaseDocumentDriveServer {
|
|
|
23411
23402
|
this.stopSyncRemoteDrive(driveId),
|
|
23412
23403
|
this.listenerManager.removeDrive(driveId),
|
|
23413
23404
|
this.cache.deleteDrive(driveId),
|
|
23414
|
-
this.
|
|
23405
|
+
this.legacyStorage.deleteDrive(driveId)
|
|
23415
23406
|
]);
|
|
23416
23407
|
result.forEach((r) => {
|
|
23417
23408
|
if (r.status === "rejected") {
|
|
@@ -23420,7 +23411,7 @@ class BaseDocumentDriveServer {
|
|
|
23420
23411
|
});
|
|
23421
23412
|
}
|
|
23422
23413
|
getDrives() {
|
|
23423
|
-
return this.
|
|
23414
|
+
return this.legacyStorage.getDrives();
|
|
23424
23415
|
}
|
|
23425
23416
|
async getDrive(driveId, options) {
|
|
23426
23417
|
let document;
|
|
@@ -23435,7 +23426,7 @@ class BaseDocumentDriveServer {
|
|
|
23435
23426
|
} catch (e) {
|
|
23436
23427
|
this.logger.error("Error getting drive from cache", e);
|
|
23437
23428
|
}
|
|
23438
|
-
const driveStorage = document ?? await this.
|
|
23429
|
+
const driveStorage = document ?? await this.documentStorage.get(driveId);
|
|
23439
23430
|
const result = this._buildDocument(driveStorage, options);
|
|
23440
23431
|
if (!isDocumentDrive(result)) {
|
|
23441
23432
|
throw new Error(`Document with id ${driveId} is not a Document Drive`);
|
|
@@ -23455,7 +23446,7 @@ class BaseDocumentDriveServer {
|
|
|
23455
23446
|
} catch (e) {
|
|
23456
23447
|
this.logger.error("Error getting drive from cache", e);
|
|
23457
23448
|
}
|
|
23458
|
-
const driveStorage = await this.
|
|
23449
|
+
const driveStorage = await this.legacyStorage.getDriveBySlug(slug);
|
|
23459
23450
|
const document = this._buildDocument(driveStorage, options);
|
|
23460
23451
|
if (!isDocumentDrive(document)) {
|
|
23461
23452
|
throw new Error(`Document with slug ${slug} is not a Document Drive`);
|
|
@@ -23474,7 +23465,7 @@ class BaseDocumentDriveServer {
|
|
|
23474
23465
|
} catch (e) {
|
|
23475
23466
|
this.logger.error("Error getting document from cache", e);
|
|
23476
23467
|
}
|
|
23477
|
-
const documentStorage = cachedDocument ?? await this.
|
|
23468
|
+
const documentStorage = cachedDocument ?? await this.documentStorage.get(documentId);
|
|
23478
23469
|
const document = this._buildDocument(documentStorage, options);
|
|
23479
23470
|
if (!(options == null ? void 0 : options.revisions)) {
|
|
23480
23471
|
this.cache.setDocument(documentId, document).catch(this.logger.error);
|
|
@@ -23482,7 +23473,7 @@ class BaseDocumentDriveServer {
|
|
|
23482
23473
|
return document;
|
|
23483
23474
|
}
|
|
23484
23475
|
getDocuments(driveId) {
|
|
23485
|
-
return this.
|
|
23476
|
+
return this.legacyStorage.getDocuments(driveId);
|
|
23486
23477
|
}
|
|
23487
23478
|
async createDocument(driveId, input) {
|
|
23488
23479
|
let state = void 0;
|
|
@@ -23505,7 +23496,7 @@ class BaseDocumentDriveServer {
|
|
|
23505
23496
|
clipboard: [],
|
|
23506
23497
|
state: state ?? document.state
|
|
23507
23498
|
};
|
|
23508
|
-
await this.
|
|
23499
|
+
await this.legacyStorage.createDocument(driveId, input.id, documentStorage);
|
|
23509
23500
|
for (const syncUnit of input.synchronizationUnits) {
|
|
23510
23501
|
this.synchronizationManager.updateSyncStatus(syncUnit.syncId, {
|
|
23511
23502
|
pull: this.triggerMap.get(driveId) ? "INITIAL_SYNC" : void 0,
|
|
@@ -23515,9 +23506,9 @@ class BaseDocumentDriveServer {
|
|
|
23515
23506
|
const operations = Object.values(document.operations).flat();
|
|
23516
23507
|
if (operations.length) {
|
|
23517
23508
|
if (isDocumentDrive(document)) {
|
|
23518
|
-
await this.
|
|
23509
|
+
await this.legacyStorage.addDriveOperations(driveId, operations, document);
|
|
23519
23510
|
} else {
|
|
23520
|
-
await this.
|
|
23511
|
+
await this.legacyStorage.addDocumentOperations(driveId, input.id, operations, document);
|
|
23521
23512
|
}
|
|
23522
23513
|
}
|
|
23523
23514
|
return document;
|
|
@@ -23535,7 +23526,7 @@ class BaseDocumentDriveServer {
|
|
|
23535
23526
|
this.logger.warn("Error deleting document", error);
|
|
23536
23527
|
}
|
|
23537
23528
|
await this.cache.deleteDocument(documentId);
|
|
23538
|
-
return this.
|
|
23529
|
+
return this.legacyStorage.deleteDocument(driveId, documentId);
|
|
23539
23530
|
}
|
|
23540
23531
|
async _processOperations(driveId, documentId, documentStorage, operations) {
|
|
23541
23532
|
const operationsApplied = [];
|
|
@@ -23587,7 +23578,7 @@ class BaseDocumentDriveServer {
|
|
|
23587
23578
|
for (const scope of Object.keys(documentOperations)) {
|
|
23588
23579
|
const lastRemainingOperation = documentOperations[scope].at(-1);
|
|
23589
23580
|
if (lastRemainingOperation && !lastRemainingOperation.resultingState) {
|
|
23590
|
-
lastRemainingOperation.resultingState = await (documentId ? (_b = (_a2 = this.
|
|
23581
|
+
lastRemainingOperation.resultingState = await (documentId ? (_b = (_a2 = this.legacyStorage).getOperationResultingState) == null ? void 0 : _b.call(_a2, driveId, documentId, lastRemainingOperation.index, lastRemainingOperation.scope, "main") : (_d = (_c = this.legacyStorage).getDriveOperationResultingState) == null ? void 0 : _d.call(_c, driveId, lastRemainingOperation.index, lastRemainingOperation.scope, "main"));
|
|
23591
23582
|
}
|
|
23592
23583
|
}
|
|
23593
23584
|
return {
|
|
@@ -23620,7 +23611,7 @@ class BaseDocumentDriveServer {
|
|
|
23620
23611
|
});
|
|
23621
23612
|
const lastRemainingOperation = documentOperations[scope].at(-1);
|
|
23622
23613
|
if (lastRemainingOperation && !lastRemainingOperation.resultingState) {
|
|
23623
|
-
lastRemainingOperation.resultingState = await (documentId ? (_b = (_a2 = this.
|
|
23614
|
+
lastRemainingOperation.resultingState = await (documentId ? (_b = (_a2 = this.legacyStorage).getOperationResultingState) == null ? void 0 : _b.call(_a2, driveId, documentId, lastRemainingOperation.index, lastRemainingOperation.scope, "main") : (_d = (_c = this.legacyStorage).getDriveOperationResultingState) == null ? void 0 : _d.call(_c, driveId, lastRemainingOperation.index, lastRemainingOperation.scope, "main"));
|
|
23624
23615
|
}
|
|
23625
23616
|
const operationSignals = [];
|
|
23626
23617
|
newDocument = documentModelModule.reducer(newDocument, operation, (signal) => {
|
|
@@ -23667,14 +23658,14 @@ class BaseDocumentDriveServer {
|
|
|
23667
23658
|
return this.addOperations(driveId, documentId, [operation], options);
|
|
23668
23659
|
}
|
|
23669
23660
|
async _addOperations(driveId, documentId, callback) {
|
|
23670
|
-
if (!this.
|
|
23671
|
-
const documentStorage = await this.
|
|
23661
|
+
if (!this.legacyStorage.addDocumentOperationsWithTransaction) {
|
|
23662
|
+
const documentStorage = await this.documentStorage.get(documentId);
|
|
23672
23663
|
const result = await callback(documentStorage);
|
|
23673
23664
|
if (result.operations.length > 0) {
|
|
23674
|
-
await this.
|
|
23665
|
+
await this.legacyStorage.addDocumentOperations(driveId, documentId, result.operations, result.header);
|
|
23675
23666
|
}
|
|
23676
23667
|
} else {
|
|
23677
|
-
await this.
|
|
23668
|
+
await this.legacyStorage.addDocumentOperationsWithTransaction(driveId, documentId, callback);
|
|
23678
23669
|
}
|
|
23679
23670
|
}
|
|
23680
23671
|
queueOperation(driveId, documentId, operation, options) {
|
|
@@ -23897,18 +23888,18 @@ class BaseDocumentDriveServer {
|
|
|
23897
23888
|
for (const drive of await this.getDrives()) {
|
|
23898
23889
|
await this.deleteDrive(drive);
|
|
23899
23890
|
}
|
|
23900
|
-
await ((_b = (_a2 = this.
|
|
23891
|
+
await ((_b = (_a2 = this.legacyStorage).clearStorage) == null ? void 0 : _b.call(_a2));
|
|
23901
23892
|
}
|
|
23902
23893
|
async _addDriveOperations(driveId, callback) {
|
|
23903
|
-
if (!this.
|
|
23904
|
-
const documentStorage = await this.
|
|
23894
|
+
if (!this.legacyStorage.addDriveOperationsWithTransaction) {
|
|
23895
|
+
const documentStorage = await this.documentStorage.get(driveId);
|
|
23905
23896
|
const result = await callback(documentStorage);
|
|
23906
23897
|
if (result.operations.length > 0) {
|
|
23907
|
-
await this.
|
|
23898
|
+
await this.legacyStorage.addDriveOperations(driveId, result.operations, result.header);
|
|
23908
23899
|
}
|
|
23909
23900
|
return result;
|
|
23910
23901
|
} else {
|
|
23911
|
-
return this.
|
|
23902
|
+
return this.legacyStorage.addDriveOperationsWithTransaction(driveId, callback);
|
|
23912
23903
|
}
|
|
23913
23904
|
}
|
|
23914
23905
|
queueDriveOperation(driveId, operation, options) {
|
|
@@ -24161,7 +24152,7 @@ class MemoryStorage {
|
|
|
24161
24152
|
// IDocumentStorage
|
|
24162
24153
|
////////////////////////////////
|
|
24163
24154
|
exists(documentId) {
|
|
24164
|
-
return Promise.resolve(!!this.documents[documentId]
|
|
24155
|
+
return Promise.resolve(!!this.documents[documentId]);
|
|
24165
24156
|
}
|
|
24166
24157
|
create(documentId, document) {
|
|
24167
24158
|
this.documents[documentId] = document;
|
|
@@ -24170,10 +24161,6 @@ class MemoryStorage {
|
|
|
24170
24161
|
get(documentId) {
|
|
24171
24162
|
const document = this.documents[documentId];
|
|
24172
24163
|
if (!document) {
|
|
24173
|
-
const drive = this.documents[`drive/${documentId}`];
|
|
24174
|
-
if (drive) {
|
|
24175
|
-
return Promise.resolve(drive);
|
|
24176
|
-
}
|
|
24177
24164
|
throw new Error(`Document with id ${documentId} not found`);
|
|
24178
24165
|
}
|
|
24179
24166
|
return Promise.resolve(document);
|
|
@@ -24226,9 +24213,6 @@ class MemoryStorage {
|
|
|
24226
24213
|
const manifest = this.getManifest(drive);
|
|
24227
24214
|
return Promise.resolve([...manifest.documentIds]);
|
|
24228
24215
|
}
|
|
24229
|
-
getDocument(driveId, id) {
|
|
24230
|
-
return this.get(id);
|
|
24231
|
-
}
|
|
24232
24216
|
async clearStorage() {
|
|
24233
24217
|
this.documents = {};
|
|
24234
24218
|
this.driveManifests = {};
|
|
@@ -24240,7 +24224,7 @@ class MemoryStorage {
|
|
|
24240
24224
|
this.updateDriveManifest(drive, manifest);
|
|
24241
24225
|
}
|
|
24242
24226
|
async addDocumentOperations(drive, id, operations, header) {
|
|
24243
|
-
const document = await this.
|
|
24227
|
+
const document = await this.get(id);
|
|
24244
24228
|
if (!document) {
|
|
24245
24229
|
throw new Error(`Document with id ${id} not found`);
|
|
24246
24230
|
}
|
|
@@ -24257,16 +24241,9 @@ class MemoryStorage {
|
|
|
24257
24241
|
async getDrives() {
|
|
24258
24242
|
return Object.keys(this.driveManifests);
|
|
24259
24243
|
}
|
|
24260
|
-
async getDrive(id) {
|
|
24261
|
-
const drive = this.documents[`drive/${id}`];
|
|
24262
|
-
if (!drive) {
|
|
24263
|
-
throw new DriveNotFoundError(id);
|
|
24264
|
-
}
|
|
24265
|
-
return drive;
|
|
24266
|
-
}
|
|
24267
24244
|
async getDriveBySlug(slug) {
|
|
24268
24245
|
for (const driveId of Object.keys(this.driveManifests)) {
|
|
24269
|
-
const drive = this.documents[
|
|
24246
|
+
const drive = this.documents[driveId];
|
|
24270
24247
|
if (drive.initialState.state.global.slug === slug) {
|
|
24271
24248
|
return drive;
|
|
24272
24249
|
}
|
|
@@ -24285,13 +24262,13 @@ class MemoryStorage {
|
|
|
24285
24262
|
throw new Error(`Drive with slug ${slug} already exists`);
|
|
24286
24263
|
}
|
|
24287
24264
|
}
|
|
24288
|
-
await this.create(
|
|
24265
|
+
await this.create(id, drive);
|
|
24289
24266
|
this.updateDriveManifest(id, { documentIds: /* @__PURE__ */ new Set() });
|
|
24290
24267
|
}
|
|
24291
24268
|
async addDriveOperations(id, operations, header) {
|
|
24292
|
-
const drive = await this.
|
|
24269
|
+
const drive = await this.get(id);
|
|
24293
24270
|
const mergedOperations = mergeOperations(drive.operations, operations);
|
|
24294
|
-
this.documents[
|
|
24271
|
+
this.documents[id] = {
|
|
24295
24272
|
...drive,
|
|
24296
24273
|
...header,
|
|
24297
24274
|
operations: mergedOperations
|
|
@@ -24789,14 +24766,16 @@ class TransmitterFactory {
|
|
|
24789
24766
|
}
|
|
24790
24767
|
}
|
|
24791
24768
|
class SynchronizationManager {
|
|
24792
|
-
constructor(storage, cache, documentModelModules, eventEmitter) {
|
|
24769
|
+
constructor(storage, documentStorage, cache, documentModelModules, eventEmitter) {
|
|
24793
24770
|
__publicField(this, "storage");
|
|
24771
|
+
__publicField(this, "documentStorage");
|
|
24794
24772
|
__publicField(this, "cache");
|
|
24795
24773
|
__publicField(this, "documentModelModules");
|
|
24796
24774
|
__publicField(this, "eventEmitter");
|
|
24797
24775
|
__publicField(this, "syncStatus", /* @__PURE__ */ new Map());
|
|
24798
24776
|
__publicField(this, "logger", childLogger(["SynchronizationManager"]));
|
|
24799
24777
|
this.storage = storage;
|
|
24778
|
+
this.documentStorage = documentStorage;
|
|
24800
24779
|
this.cache = cache;
|
|
24801
24780
|
this.documentModelModules = documentModelModules;
|
|
24802
24781
|
this.eventEmitter = eventEmitter;
|
|
@@ -24936,7 +24915,7 @@ class SynchronizationManager {
|
|
|
24936
24915
|
} catch (e) {
|
|
24937
24916
|
this.logger.error("Error getting drive from cache", e);
|
|
24938
24917
|
}
|
|
24939
|
-
const driveStorage = await this.
|
|
24918
|
+
const driveStorage = await this.documentStorage.get(driveId);
|
|
24940
24919
|
const result = this._buildDocument(driveStorage);
|
|
24941
24920
|
if (!isDocumentDrive(result)) {
|
|
24942
24921
|
throw new Error(`Document with id ${driveId} is not a Document Drive`);
|
|
@@ -24952,7 +24931,7 @@ class SynchronizationManager {
|
|
|
24952
24931
|
} catch (e) {
|
|
24953
24932
|
this.logger.error("Error getting document from cache", e);
|
|
24954
24933
|
}
|
|
24955
|
-
const documentStorage = await this.
|
|
24934
|
+
const documentStorage = await this.documentStorage.get(documentId);
|
|
24956
24935
|
return this._buildDocument(documentStorage);
|
|
24957
24936
|
}
|
|
24958
24937
|
_buildDocument(documentStorage) {
|
|
@@ -25113,7 +25092,14 @@ class ReactorBuilder {
|
|
|
25113
25092
|
this.eventEmitter = new DefaultEventEmitter();
|
|
25114
25093
|
}
|
|
25115
25094
|
if (!this.synchronizationManager) {
|
|
25116
|
-
this.synchronizationManager = new SynchronizationManager(
|
|
25095
|
+
this.synchronizationManager = new SynchronizationManager(
|
|
25096
|
+
this.storage,
|
|
25097
|
+
// as we refactor, we're secretly making all the IStorage implementations also implement IDocumentStorage
|
|
25098
|
+
this.storage,
|
|
25099
|
+
this.cache,
|
|
25100
|
+
this.documentModelModules,
|
|
25101
|
+
this.eventEmitter
|
|
25102
|
+
);
|
|
25117
25103
|
}
|
|
25118
25104
|
if (!this.listenerManager) {
|
|
25119
25105
|
const config = {
|
|
@@ -25790,7 +25776,7 @@ const nodeOptionsMap = {
|
|
|
25790
25776
|
};
|
|
25791
25777
|
const name = "@powerhousedao/connect";
|
|
25792
25778
|
const productName = "Powerhouse-Connect";
|
|
25793
|
-
const version$1 = "1.0.
|
|
25779
|
+
const version$1 = "1.0.11-dev.0";
|
|
25794
25780
|
const description = "Powerhouse Connect";
|
|
25795
25781
|
const main = "./dist/index.html";
|
|
25796
25782
|
const type = "module";
|
|
@@ -28670,9 +28656,6 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28670
28656
|
const manifest = await this.getManifest(drive);
|
|
28671
28657
|
return manifest.documentIds;
|
|
28672
28658
|
}
|
|
28673
|
-
async getDocument(driveId, id) {
|
|
28674
|
-
return this.get(id);
|
|
28675
|
-
}
|
|
28676
28659
|
async createDocument(drive, id, document) {
|
|
28677
28660
|
await this.create(id, document);
|
|
28678
28661
|
const manifest = await this.getManifest(drive);
|
|
@@ -28694,7 +28677,7 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28694
28677
|
return (await this.db).clear();
|
|
28695
28678
|
}
|
|
28696
28679
|
async addDocumentOperations(drive, id, operations, header) {
|
|
28697
|
-
const document = await this.
|
|
28680
|
+
const document = await this.get(id);
|
|
28698
28681
|
if (!document) {
|
|
28699
28682
|
throw new Error(`Document with id ${id} not found`);
|
|
28700
28683
|
}
|
|
@@ -28711,21 +28694,12 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28711
28694
|
const keys = await db.keys();
|
|
28712
28695
|
return keys.filter((key) => key.startsWith(_BrowserStorage.MANIFEST_KEY)).map((key) => key.slice(_BrowserStorage.MANIFEST_KEY.length + _BrowserStorage.SEP.length));
|
|
28713
28696
|
}
|
|
28714
|
-
async getDrive(id) {
|
|
28715
|
-
let drive;
|
|
28716
|
-
try {
|
|
28717
|
-
drive = await this.get(id);
|
|
28718
|
-
} catch {
|
|
28719
|
-
throw new DriveNotFoundError(id);
|
|
28720
|
-
}
|
|
28721
|
-
return drive;
|
|
28722
|
-
}
|
|
28723
28697
|
async getDriveBySlug(slug) {
|
|
28724
28698
|
const drives = (await this.getDrives()).reverse();
|
|
28725
28699
|
for (const drive of drives) {
|
|
28726
|
-
const driveData = await this.
|
|
28700
|
+
const driveData = await this.get(drive);
|
|
28727
28701
|
if (driveData.initialState.state.global.slug === slug) {
|
|
28728
|
-
return
|
|
28702
|
+
return driveData;
|
|
28729
28703
|
}
|
|
28730
28704
|
}
|
|
28731
28705
|
throw new Error(`Drive with slug ${slug} not found`);
|
|
@@ -28753,7 +28727,7 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28753
28727
|
return db.removeItem(this.buildDocumentKey(id));
|
|
28754
28728
|
}
|
|
28755
28729
|
async addDriveOperations(id, operations, header) {
|
|
28756
|
-
const drive = await this.
|
|
28730
|
+
const drive = await this.get(id);
|
|
28757
28731
|
const mergedOperations = mergeOperations(drive.operations, operations);
|
|
28758
28732
|
const db = await this.db;
|
|
28759
28733
|
await db.setItem(this.buildDocumentKey(id), {
|
|
@@ -28800,14 +28774,14 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28800
28774
|
}
|
|
28801
28775
|
}
|
|
28802
28776
|
async migrateDrive(driveId) {
|
|
28803
|
-
const drive = await this.
|
|
28777
|
+
const drive = await this.get(driveId);
|
|
28804
28778
|
const migratedDrive = migrateDocumentOperationSignatures(drive);
|
|
28805
28779
|
if (migratedDrive !== drive) {
|
|
28806
28780
|
return (await this.db).setItem(this.buildDocumentKey(driveId), migratedDrive);
|
|
28807
28781
|
}
|
|
28808
28782
|
}
|
|
28809
28783
|
async migrateDocument(drive, id) {
|
|
28810
|
-
const document = await this.
|
|
28784
|
+
const document = await this.get(id);
|
|
28811
28785
|
const migratedDocument = migrateDocumentOperationSignatures(document);
|
|
28812
28786
|
if (migratedDocument !== document) {
|
|
28813
28787
|
return (await this.db).setItem(this.buildDocumentKey(id), migratedDocument);
|
|
@@ -31430,7 +31404,7 @@ if (window.__VITE_ENVS.MODE === "development") {
|
|
|
31430
31404
|
} else {
|
|
31431
31405
|
serviceWorkerManager.registerServiceWorker(false);
|
|
31432
31406
|
}
|
|
31433
|
-
const App = lazy(() => __vitePreload(() => import("./app-
|
|
31407
|
+
const App = lazy(() => __vitePreload(() => import("./app-CSB8ljfZ.js").then((n) => n.aN), true ? __vite__mapDeps([0,1,2]) : void 0));
|
|
31434
31408
|
const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
|
|
31435
31409
|
const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31436
31410
|
__proto__: null,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aD as BaseError, aE as getUrl, aF as stringify, aG as decodeErrorResult, aH as isAddressEqual, aI as call, aJ as concat, aK as encodeAbiParameters, aL as HttpRequestError, aM as isHex } from "./app-
|
|
2
|
-
import "./main.
|
|
1
|
+
import { aD as BaseError, aE as getUrl, aF as stringify, aG as decodeErrorResult, aH as isAddressEqual, aI as call, aJ as concat, aK as encodeAbiParameters, aL as HttpRequestError, aM as isHex } from "./app-CSB8ljfZ.js";
|
|
2
|
+
import "./main.Biy01WIR.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
|
-
import "./app-loader-
|
|
4
|
+
import "./app-loader-k9YqeUtT.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 } 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 } from "./app-CSB8ljfZ.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-k9YqeUtT.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 { useDriveContext, DriveContextProvider } 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.Biy01WIR.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,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-k9YqeUtT.js","assets/main.Biy01WIR.js","assets/app-loader-pcztQTL4.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as __vitePreload } from "./main.Biy01WIR.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-k9YqeUtT.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");
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { t as twMerge, a5 as clsx, a6 as get, a7 as set, a8 as appendErrors, a9 as useFormContext, aa as Primitive, ab as cva, ac as FormProvider, ad as Controller, ae as Slot, af as useForm, ag as Root2, ah as List, ai as Trigger, aj as Content, ak as setModelName, al as setModelId, am as setModelDescription, an as setModelExtension, ao as setAuthorName, ap as setAuthorWebsite, aq as setStateSchema, ar as setInitialState, as as addModule, at as setModuleName, au as deleteModule, av as addOperation, aw as setOperationName, ax as setOperationSchema, ay as setOperationDescription, az as deleteOperation, aA as addOperationError, aB as deleteOperationError, aC 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, a5 as clsx, a6 as get, a7 as set, a8 as appendErrors, a9 as useFormContext, aa as Primitive, ab as cva, ac as FormProvider, ad as Controller, ae as Slot, af as useForm, ag as Root2, ah as List, ai as Trigger, aj as Content, ak as setModelName, al as setModelId, am as setModelDescription, an as setModelExtension, ao as setAuthorName, ap as setAuthorWebsite, aq as setStateSchema, ar as setInitialState, as as addModule, at as setModuleName, au as deleteModule, av as addOperation, aw as setOperationName, ax as setOperationSchema, ay as setOperationDescription, az as deleteOperation, aA as addOperationError, aB as deleteOperationError, aC as setOperationErrorName } from "./app-CSB8ljfZ.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-k9YqeUtT.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.Biy01WIR.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.Biy01WIR.js";
|
|
14
|
+
import { aW as getAugmentedNamespace, $ as getDefaultExportFromCjs, ah as connectConfig, ac as logger } from "./app-loader-k9YqeUtT.js";
|
|
15
|
+
import { e as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-CSB8ljfZ.js";
|
|
16
|
+
import { d, c, b, f, a, r, s } from "./app-CSB8ljfZ.js";
|
|
17
17
|
import "react/jsx-runtime";
|
|
18
18
|
import "react";
|
|
19
19
|
import "@powerhousedao/reactor-browser";
|
|
@@ -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-COuqxA6R.js"), true ? [] : void 0);
|
|
103
103
|
export {
|
|
104
104
|
__vitePreload as _
|
|
105
105
|
};
|
package/dist/index.html
CHANGED
|
@@ -94,4 +94,4 @@
|
|
|
94
94
|
"@powerhousedao/reactor-browser/utils/index": "/modules/@powerhousedao/reactor-browser/utils/index.js",
|
|
95
95
|
"@powerhousedao/reactor-browser/utils/signature": "/modules/@powerhousedao/reactor-browser/utils/signature.js"
|
|
96
96
|
}
|
|
97
|
-
}</script><script type="module" crossorigin="" src="/assets/main.
|
|
97
|
+
}</script><script type="module" crossorigin="" src="/assets/main.Biy01WIR.js"></script></head><body><div id="app"></div></body></html>
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BaseQueueManager,
|
|
3
|
-
DriveNotFoundError,
|
|
4
3
|
ReactorBuilder,
|
|
5
4
|
memory_default,
|
|
6
5
|
mergeOperations
|
|
7
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HYN4HC4N.js";
|
|
8
7
|
import {
|
|
9
8
|
__commonJS,
|
|
10
9
|
__require,
|
|
@@ -2295,9 +2294,6 @@ var BrowserStorage = class _BrowserStorage {
|
|
|
2295
2294
|
const manifest = await this.getManifest(drive);
|
|
2296
2295
|
return manifest.documentIds;
|
|
2297
2296
|
}
|
|
2298
|
-
async getDocument(driveId, id) {
|
|
2299
|
-
return this.get(id);
|
|
2300
|
-
}
|
|
2301
2297
|
async createDocument(drive, id, document) {
|
|
2302
2298
|
await this.create(id, document);
|
|
2303
2299
|
const manifest = await this.getManifest(drive);
|
|
@@ -2319,7 +2315,7 @@ var BrowserStorage = class _BrowserStorage {
|
|
|
2319
2315
|
return (await this.db).clear();
|
|
2320
2316
|
}
|
|
2321
2317
|
async addDocumentOperations(drive, id, operations, header) {
|
|
2322
|
-
const document = await this.
|
|
2318
|
+
const document = await this.get(id);
|
|
2323
2319
|
if (!document) {
|
|
2324
2320
|
throw new Error(`Document with id ${id} not found`);
|
|
2325
2321
|
}
|
|
@@ -2336,21 +2332,12 @@ var BrowserStorage = class _BrowserStorage {
|
|
|
2336
2332
|
const keys = await db.keys();
|
|
2337
2333
|
return keys.filter((key) => key.startsWith(_BrowserStorage.MANIFEST_KEY)).map((key) => key.slice(_BrowserStorage.MANIFEST_KEY.length + _BrowserStorage.SEP.length));
|
|
2338
2334
|
}
|
|
2339
|
-
async getDrive(id) {
|
|
2340
|
-
let drive;
|
|
2341
|
-
try {
|
|
2342
|
-
drive = await this.get(id);
|
|
2343
|
-
} catch {
|
|
2344
|
-
throw new DriveNotFoundError(id);
|
|
2345
|
-
}
|
|
2346
|
-
return drive;
|
|
2347
|
-
}
|
|
2348
2335
|
async getDriveBySlug(slug) {
|
|
2349
2336
|
const drives = (await this.getDrives()).reverse();
|
|
2350
2337
|
for (const drive of drives) {
|
|
2351
|
-
const driveData = await this.
|
|
2338
|
+
const driveData = await this.get(drive);
|
|
2352
2339
|
if (driveData.initialState.state.global.slug === slug) {
|
|
2353
|
-
return
|
|
2340
|
+
return driveData;
|
|
2354
2341
|
}
|
|
2355
2342
|
}
|
|
2356
2343
|
throw new Error(`Drive with slug ${slug} not found`);
|
|
@@ -2378,7 +2365,7 @@ var BrowserStorage = class _BrowserStorage {
|
|
|
2378
2365
|
return db.removeItem(this.buildDocumentKey(id));
|
|
2379
2366
|
}
|
|
2380
2367
|
async addDriveOperations(id, operations, header) {
|
|
2381
|
-
const drive = await this.
|
|
2368
|
+
const drive = await this.get(id);
|
|
2382
2369
|
const mergedOperations = mergeOperations(drive.operations, operations);
|
|
2383
2370
|
const db = await this.db;
|
|
2384
2371
|
await db.setItem(this.buildDocumentKey(id), {
|
|
@@ -2425,14 +2412,14 @@ var BrowserStorage = class _BrowserStorage {
|
|
|
2425
2412
|
}
|
|
2426
2413
|
}
|
|
2427
2414
|
async migrateDrive(driveId) {
|
|
2428
|
-
const drive = await this.
|
|
2415
|
+
const drive = await this.get(driveId);
|
|
2429
2416
|
const migratedDrive = migrateDocumentOperationSignatures(drive);
|
|
2430
2417
|
if (migratedDrive !== drive) {
|
|
2431
2418
|
return (await this.db).setItem(this.buildDocumentKey(driveId), migratedDrive);
|
|
2432
2419
|
}
|
|
2433
2420
|
}
|
|
2434
2421
|
async migrateDocument(drive, id) {
|
|
2435
|
-
const document = await this.
|
|
2422
|
+
const document = await this.get(id);
|
|
2436
2423
|
const migratedDocument = migrateDocumentOperationSignatures(document);
|
|
2437
2424
|
if (migratedDocument !== document) {
|
|
2438
2425
|
return (await this.db).setItem(this.buildDocumentKey(id), migratedDocument);
|
|
@@ -1271,13 +1271,6 @@ var DriveAlreadyExistsError = class extends Error {
|
|
|
1271
1271
|
this.driveId = driveId;
|
|
1272
1272
|
}
|
|
1273
1273
|
};
|
|
1274
|
-
var DriveNotFoundError = class extends Error {
|
|
1275
|
-
driveId;
|
|
1276
|
-
constructor(driveId) {
|
|
1277
|
-
super(`Drive with id ${driveId} not found`);
|
|
1278
|
-
this.driveId = driveId;
|
|
1279
|
-
}
|
|
1280
|
-
};
|
|
1281
1274
|
var SynchronizationUnitNotFoundError = class extends Error {
|
|
1282
1275
|
syncUnitId;
|
|
1283
1276
|
constructor(message, syncUnitId) {
|
|
@@ -1710,7 +1703,7 @@ var MemoryStorage = class {
|
|
|
1710
1703
|
// IDocumentStorage
|
|
1711
1704
|
////////////////////////////////
|
|
1712
1705
|
exists(documentId) {
|
|
1713
|
-
return Promise.resolve(!!this.documents[documentId]
|
|
1706
|
+
return Promise.resolve(!!this.documents[documentId]);
|
|
1714
1707
|
}
|
|
1715
1708
|
create(documentId, document) {
|
|
1716
1709
|
this.documents[documentId] = document;
|
|
@@ -1719,10 +1712,6 @@ var MemoryStorage = class {
|
|
|
1719
1712
|
get(documentId) {
|
|
1720
1713
|
const document = this.documents[documentId];
|
|
1721
1714
|
if (!document) {
|
|
1722
|
-
const drive = this.documents[`drive/${documentId}`];
|
|
1723
|
-
if (drive) {
|
|
1724
|
-
return Promise.resolve(drive);
|
|
1725
|
-
}
|
|
1726
1715
|
throw new Error(`Document with id ${documentId} not found`);
|
|
1727
1716
|
}
|
|
1728
1717
|
return Promise.resolve(document);
|
|
@@ -1775,9 +1764,6 @@ var MemoryStorage = class {
|
|
|
1775
1764
|
const manifest = this.getManifest(drive);
|
|
1776
1765
|
return Promise.resolve([...manifest.documentIds]);
|
|
1777
1766
|
}
|
|
1778
|
-
getDocument(driveId, id) {
|
|
1779
|
-
return this.get(id);
|
|
1780
|
-
}
|
|
1781
1767
|
async clearStorage() {
|
|
1782
1768
|
this.documents = {};
|
|
1783
1769
|
this.driveManifests = {};
|
|
@@ -1789,7 +1775,7 @@ var MemoryStorage = class {
|
|
|
1789
1775
|
this.updateDriveManifest(drive, manifest);
|
|
1790
1776
|
}
|
|
1791
1777
|
async addDocumentOperations(drive, id, operations, header) {
|
|
1792
|
-
const document = await this.
|
|
1778
|
+
const document = await this.get(id);
|
|
1793
1779
|
if (!document) {
|
|
1794
1780
|
throw new Error(`Document with id ${id} not found`);
|
|
1795
1781
|
}
|
|
@@ -1806,16 +1792,9 @@ var MemoryStorage = class {
|
|
|
1806
1792
|
async getDrives() {
|
|
1807
1793
|
return Object.keys(this.driveManifests);
|
|
1808
1794
|
}
|
|
1809
|
-
async getDrive(id) {
|
|
1810
|
-
const drive = this.documents[`drive/${id}`];
|
|
1811
|
-
if (!drive) {
|
|
1812
|
-
throw new DriveNotFoundError(id);
|
|
1813
|
-
}
|
|
1814
|
-
return drive;
|
|
1815
|
-
}
|
|
1816
1795
|
async getDriveBySlug(slug) {
|
|
1817
1796
|
for (const driveId of Object.keys(this.driveManifests)) {
|
|
1818
|
-
const drive = this.documents[
|
|
1797
|
+
const drive = this.documents[driveId];
|
|
1819
1798
|
if (drive.initialState.state.global.slug === slug) {
|
|
1820
1799
|
return drive;
|
|
1821
1800
|
}
|
|
@@ -1834,13 +1813,13 @@ var MemoryStorage = class {
|
|
|
1834
1813
|
throw new Error(`Drive with slug ${slug} already exists`);
|
|
1835
1814
|
}
|
|
1836
1815
|
}
|
|
1837
|
-
await this.create(
|
|
1816
|
+
await this.create(id, drive);
|
|
1838
1817
|
this.updateDriveManifest(id, { documentIds: /* @__PURE__ */ new Set() });
|
|
1839
1818
|
}
|
|
1840
1819
|
async addDriveOperations(id, operations, header) {
|
|
1841
|
-
const drive = await this.
|
|
1820
|
+
const drive = await this.get(id);
|
|
1842
1821
|
const mergedOperations = mergeOperations(drive.operations, operations);
|
|
1843
|
-
this.documents[
|
|
1822
|
+
this.documents[id] = {
|
|
1844
1823
|
...drive,
|
|
1845
1824
|
...header,
|
|
1846
1825
|
operations: mergedOperations
|
|
@@ -11745,9 +11724,7 @@ var DefaultDrivesManager = class {
|
|
|
11745
11724
|
try {
|
|
11746
11725
|
await this.server.deleteDrive(driveId);
|
|
11747
11726
|
} catch (error) {
|
|
11748
|
-
|
|
11749
|
-
logger.error(error);
|
|
11750
|
-
}
|
|
11727
|
+
logger.error(error);
|
|
11751
11728
|
}
|
|
11752
11729
|
}
|
|
11753
11730
|
async preserveDrivesById(driveIdsToPreserve, drives, removeStrategy = "detach") {
|
|
@@ -12363,7 +12340,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12363
12340
|
logger = childLogger(["BaseDocumentDriveServer"]);
|
|
12364
12341
|
// external dependencies
|
|
12365
12342
|
documentModelModules;
|
|
12366
|
-
|
|
12343
|
+
legacyStorage;
|
|
12367
12344
|
documentStorage;
|
|
12368
12345
|
cache;
|
|
12369
12346
|
queueManager;
|
|
@@ -12400,7 +12377,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12400
12377
|
initializePromise;
|
|
12401
12378
|
constructor(documentModelModules, storage, documentStorage, cache, queueManager, eventEmitter, synchronizationManager, listenerManager, options) {
|
|
12402
12379
|
this.documentModelModules = documentModelModules;
|
|
12403
|
-
this.
|
|
12380
|
+
this.legacyStorage = storage;
|
|
12404
12381
|
this.documentStorage = documentStorage;
|
|
12405
12382
|
this.cache = cache;
|
|
12406
12383
|
this.queueManager = queueManager;
|
|
@@ -12638,7 +12615,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12638
12615
|
if (!id) {
|
|
12639
12616
|
throw new Error("Invalid Drive Id");
|
|
12640
12617
|
}
|
|
12641
|
-
const drives = await this.
|
|
12618
|
+
const drives = await this.legacyStorage.getDrives();
|
|
12642
12619
|
if (drives.includes(id)) {
|
|
12643
12620
|
throw new DriveAlreadyExistsError(id);
|
|
12644
12621
|
}
|
|
@@ -12648,7 +12625,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12648
12625
|
document.meta = {
|
|
12649
12626
|
preferredEditor
|
|
12650
12627
|
};
|
|
12651
|
-
await this.
|
|
12628
|
+
await this.legacyStorage.createDrive(id, document);
|
|
12652
12629
|
if (input.global.slug) {
|
|
12653
12630
|
await this.cache.deleteDriveBySlug(input.global.slug);
|
|
12654
12631
|
}
|
|
@@ -12683,7 +12660,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12683
12660
|
this.stopSyncRemoteDrive(driveId),
|
|
12684
12661
|
this.listenerManager.removeDrive(driveId),
|
|
12685
12662
|
this.cache.deleteDrive(driveId),
|
|
12686
|
-
this.
|
|
12663
|
+
this.legacyStorage.deleteDrive(driveId)
|
|
12687
12664
|
]);
|
|
12688
12665
|
result.forEach((r) => {
|
|
12689
12666
|
if (r.status === "rejected") {
|
|
@@ -12692,7 +12669,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12692
12669
|
});
|
|
12693
12670
|
}
|
|
12694
12671
|
getDrives() {
|
|
12695
|
-
return this.
|
|
12672
|
+
return this.legacyStorage.getDrives();
|
|
12696
12673
|
}
|
|
12697
12674
|
async getDrive(driveId, options) {
|
|
12698
12675
|
let document;
|
|
@@ -12707,7 +12684,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12707
12684
|
} catch (e) {
|
|
12708
12685
|
this.logger.error("Error getting drive from cache", e);
|
|
12709
12686
|
}
|
|
12710
|
-
const driveStorage = document ?? await this.
|
|
12687
|
+
const driveStorage = document ?? await this.documentStorage.get(driveId);
|
|
12711
12688
|
const result = this._buildDocument(driveStorage, options);
|
|
12712
12689
|
if (!isDocumentDrive(result)) {
|
|
12713
12690
|
throw new Error(`Document with id ${driveId} is not a Document Drive`);
|
|
@@ -12727,7 +12704,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12727
12704
|
} catch (e) {
|
|
12728
12705
|
this.logger.error("Error getting drive from cache", e);
|
|
12729
12706
|
}
|
|
12730
|
-
const driveStorage = await this.
|
|
12707
|
+
const driveStorage = await this.legacyStorage.getDriveBySlug(slug);
|
|
12731
12708
|
const document = this._buildDocument(driveStorage, options);
|
|
12732
12709
|
if (!isDocumentDrive(document)) {
|
|
12733
12710
|
throw new Error(`Document with slug ${slug} is not a Document Drive`);
|
|
@@ -12746,7 +12723,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12746
12723
|
} catch (e) {
|
|
12747
12724
|
this.logger.error("Error getting document from cache", e);
|
|
12748
12725
|
}
|
|
12749
|
-
const documentStorage = cachedDocument ?? await this.
|
|
12726
|
+
const documentStorage = cachedDocument ?? await this.documentStorage.get(documentId);
|
|
12750
12727
|
const document = this._buildDocument(documentStorage, options);
|
|
12751
12728
|
if (!options?.revisions) {
|
|
12752
12729
|
this.cache.setDocument(documentId, document).catch(this.logger.error);
|
|
@@ -12754,7 +12731,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12754
12731
|
return document;
|
|
12755
12732
|
}
|
|
12756
12733
|
getDocuments(driveId) {
|
|
12757
|
-
return this.
|
|
12734
|
+
return this.legacyStorage.getDocuments(driveId);
|
|
12758
12735
|
}
|
|
12759
12736
|
async createDocument(driveId, input) {
|
|
12760
12737
|
let state = void 0;
|
|
@@ -12777,7 +12754,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12777
12754
|
clipboard: [],
|
|
12778
12755
|
state: state ?? document.state
|
|
12779
12756
|
};
|
|
12780
|
-
await this.
|
|
12757
|
+
await this.legacyStorage.createDocument(driveId, input.id, documentStorage);
|
|
12781
12758
|
for (const syncUnit of input.synchronizationUnits) {
|
|
12782
12759
|
this.synchronizationManager.updateSyncStatus(syncUnit.syncId, {
|
|
12783
12760
|
pull: this.triggerMap.get(driveId) ? "INITIAL_SYNC" : void 0,
|
|
@@ -12787,9 +12764,9 @@ var BaseDocumentDriveServer = class {
|
|
|
12787
12764
|
const operations = Object.values(document.operations).flat();
|
|
12788
12765
|
if (operations.length) {
|
|
12789
12766
|
if (isDocumentDrive(document)) {
|
|
12790
|
-
await this.
|
|
12767
|
+
await this.legacyStorage.addDriveOperations(driveId, operations, document);
|
|
12791
12768
|
} else {
|
|
12792
|
-
await this.
|
|
12769
|
+
await this.legacyStorage.addDocumentOperations(driveId, input.id, operations, document);
|
|
12793
12770
|
}
|
|
12794
12771
|
}
|
|
12795
12772
|
return document;
|
|
@@ -12807,7 +12784,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12807
12784
|
this.logger.warn("Error deleting document", error);
|
|
12808
12785
|
}
|
|
12809
12786
|
await this.cache.deleteDocument(documentId);
|
|
12810
|
-
return this.
|
|
12787
|
+
return this.legacyStorage.deleteDocument(driveId, documentId);
|
|
12811
12788
|
}
|
|
12812
12789
|
async _processOperations(driveId, documentId, documentStorage, operations) {
|
|
12813
12790
|
const operationsApplied = [];
|
|
@@ -12858,7 +12835,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12858
12835
|
for (const scope of Object.keys(documentOperations)) {
|
|
12859
12836
|
const lastRemainingOperation = documentOperations[scope].at(-1);
|
|
12860
12837
|
if (lastRemainingOperation && !lastRemainingOperation.resultingState) {
|
|
12861
|
-
lastRemainingOperation.resultingState = await (documentId ? this.
|
|
12838
|
+
lastRemainingOperation.resultingState = await (documentId ? this.legacyStorage.getOperationResultingState?.(driveId, documentId, lastRemainingOperation.index, lastRemainingOperation.scope, "main") : this.legacyStorage.getDriveOperationResultingState?.(driveId, lastRemainingOperation.index, lastRemainingOperation.scope, "main"));
|
|
12862
12839
|
}
|
|
12863
12840
|
}
|
|
12864
12841
|
return {
|
|
@@ -12890,7 +12867,7 @@ var BaseDocumentDriveServer = class {
|
|
|
12890
12867
|
});
|
|
12891
12868
|
const lastRemainingOperation = documentOperations[scope].at(-1);
|
|
12892
12869
|
if (lastRemainingOperation && !lastRemainingOperation.resultingState) {
|
|
12893
|
-
lastRemainingOperation.resultingState = await (documentId ? this.
|
|
12870
|
+
lastRemainingOperation.resultingState = await (documentId ? this.legacyStorage.getOperationResultingState?.(driveId, documentId, lastRemainingOperation.index, lastRemainingOperation.scope, "main") : this.legacyStorage.getDriveOperationResultingState?.(driveId, lastRemainingOperation.index, lastRemainingOperation.scope, "main"));
|
|
12894
12871
|
}
|
|
12895
12872
|
const operationSignals = [];
|
|
12896
12873
|
newDocument = documentModelModule.reducer(newDocument, operation, (signal) => {
|
|
@@ -12937,14 +12914,14 @@ var BaseDocumentDriveServer = class {
|
|
|
12937
12914
|
return this.addOperations(driveId, documentId, [operation], options);
|
|
12938
12915
|
}
|
|
12939
12916
|
async _addOperations(driveId, documentId, callback) {
|
|
12940
|
-
if (!this.
|
|
12941
|
-
const documentStorage = await this.
|
|
12917
|
+
if (!this.legacyStorage.addDocumentOperationsWithTransaction) {
|
|
12918
|
+
const documentStorage = await this.documentStorage.get(documentId);
|
|
12942
12919
|
const result = await callback(documentStorage);
|
|
12943
12920
|
if (result.operations.length > 0) {
|
|
12944
|
-
await this.
|
|
12921
|
+
await this.legacyStorage.addDocumentOperations(driveId, documentId, result.operations, result.header);
|
|
12945
12922
|
}
|
|
12946
12923
|
} else {
|
|
12947
|
-
await this.
|
|
12924
|
+
await this.legacyStorage.addDocumentOperationsWithTransaction(driveId, documentId, callback);
|
|
12948
12925
|
}
|
|
12949
12926
|
}
|
|
12950
12927
|
queueOperation(driveId, documentId, operation, options) {
|
|
@@ -13166,18 +13143,18 @@ var BaseDocumentDriveServer = class {
|
|
|
13166
13143
|
for (const drive of await this.getDrives()) {
|
|
13167
13144
|
await this.deleteDrive(drive);
|
|
13168
13145
|
}
|
|
13169
|
-
await this.
|
|
13146
|
+
await this.legacyStorage.clearStorage?.();
|
|
13170
13147
|
}
|
|
13171
13148
|
async _addDriveOperations(driveId, callback) {
|
|
13172
|
-
if (!this.
|
|
13173
|
-
const documentStorage = await this.
|
|
13149
|
+
if (!this.legacyStorage.addDriveOperationsWithTransaction) {
|
|
13150
|
+
const documentStorage = await this.documentStorage.get(driveId);
|
|
13174
13151
|
const result = await callback(documentStorage);
|
|
13175
13152
|
if (result.operations.length > 0) {
|
|
13176
|
-
await this.
|
|
13153
|
+
await this.legacyStorage.addDriveOperations(driveId, result.operations, result.header);
|
|
13177
13154
|
}
|
|
13178
13155
|
return result;
|
|
13179
13156
|
} else {
|
|
13180
|
-
return this.
|
|
13157
|
+
return this.legacyStorage.addDriveOperationsWithTransaction(driveId, callback);
|
|
13181
13158
|
}
|
|
13182
13159
|
}
|
|
13183
13160
|
queueDriveOperation(driveId, operation, options) {
|
|
@@ -13855,13 +13832,15 @@ var TransmitterFactory = class {
|
|
|
13855
13832
|
// ../../packages/document-drive/dist/src/server/sync-manager.js
|
|
13856
13833
|
var SynchronizationManager = class {
|
|
13857
13834
|
storage;
|
|
13835
|
+
documentStorage;
|
|
13858
13836
|
cache;
|
|
13859
13837
|
documentModelModules;
|
|
13860
13838
|
eventEmitter;
|
|
13861
13839
|
syncStatus = /* @__PURE__ */ new Map();
|
|
13862
13840
|
logger = childLogger(["SynchronizationManager"]);
|
|
13863
|
-
constructor(storage, cache, documentModelModules, eventEmitter) {
|
|
13841
|
+
constructor(storage, documentStorage, cache, documentModelModules, eventEmitter) {
|
|
13864
13842
|
this.storage = storage;
|
|
13843
|
+
this.documentStorage = documentStorage;
|
|
13865
13844
|
this.cache = cache;
|
|
13866
13845
|
this.documentModelModules = documentModelModules;
|
|
13867
13846
|
this.eventEmitter = eventEmitter;
|
|
@@ -14001,7 +13980,7 @@ var SynchronizationManager = class {
|
|
|
14001
13980
|
} catch (e) {
|
|
14002
13981
|
this.logger.error("Error getting drive from cache", e);
|
|
14003
13982
|
}
|
|
14004
|
-
const driveStorage = await this.
|
|
13983
|
+
const driveStorage = await this.documentStorage.get(driveId);
|
|
14005
13984
|
const result = this._buildDocument(driveStorage);
|
|
14006
13985
|
if (!isDocumentDrive(result)) {
|
|
14007
13986
|
throw new Error(`Document with id ${driveId} is not a Document Drive`);
|
|
@@ -14017,7 +13996,7 @@ var SynchronizationManager = class {
|
|
|
14017
13996
|
} catch (e) {
|
|
14018
13997
|
this.logger.error("Error getting document from cache", e);
|
|
14019
13998
|
}
|
|
14020
|
-
const documentStorage = await this.
|
|
13999
|
+
const documentStorage = await this.documentStorage.get(documentId);
|
|
14021
14000
|
return this._buildDocument(documentStorage);
|
|
14022
14001
|
}
|
|
14023
14002
|
_buildDocument(documentStorage) {
|
|
@@ -14179,7 +14158,14 @@ var ReactorBuilder = class {
|
|
|
14179
14158
|
this.eventEmitter = new DefaultEventEmitter();
|
|
14180
14159
|
}
|
|
14181
14160
|
if (!this.synchronizationManager) {
|
|
14182
|
-
this.synchronizationManager = new SynchronizationManager(
|
|
14161
|
+
this.synchronizationManager = new SynchronizationManager(
|
|
14162
|
+
this.storage,
|
|
14163
|
+
// as we refactor, we're secretly making all the IStorage implementations also implement IDocumentStorage
|
|
14164
|
+
this.storage,
|
|
14165
|
+
this.cache,
|
|
14166
|
+
this.documentModelModules,
|
|
14167
|
+
this.eventEmitter
|
|
14168
|
+
);
|
|
14183
14169
|
}
|
|
14184
14170
|
if (!this.listenerManager) {
|
|
14185
14171
|
const config = {
|
|
@@ -14217,7 +14203,6 @@ export {
|
|
|
14217
14203
|
isFolderNode,
|
|
14218
14204
|
generateNodesCopy,
|
|
14219
14205
|
generateAddNodeAction,
|
|
14220
|
-
DriveNotFoundError,
|
|
14221
14206
|
mergeOperations,
|
|
14222
14207
|
BaseQueueManager,
|
|
14223
14208
|
ReadDriveNotFoundError,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
ReadModeContext,
|
|
4
4
|
ReadModeContextProvider,
|
|
5
5
|
useReadModeContext
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-ODF4NZBP.js";
|
|
7
7
|
import "../chunk-OVGOA2P5.js";
|
|
8
8
|
import "../chunk-P6NJ6IAQ.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-HYN4HC4N.js";
|
|
10
10
|
import "../chunk-FQF4YAVC.js";
|
|
11
11
|
import "../chunk-2ESYSVXG.js";
|
|
12
12
|
export {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ReadModeContext,
|
|
3
3
|
ReadModeContextProvider,
|
|
4
4
|
useReadModeContext
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ODF4NZBP.js";
|
|
6
6
|
import "../chunk-OVGOA2P5.js";
|
|
7
7
|
import "../chunk-P6NJ6IAQ.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-HYN4HC4N.js";
|
|
9
9
|
import "../chunk-FQF4YAVC.js";
|
|
10
10
|
import "../chunk-2ESYSVXG.js";
|
|
11
11
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-DKDARAJS.js";
|
|
2
2
|
import {
|
|
3
3
|
useDriveActionsWithUiNodes
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-6GRZOLU5.js";
|
|
5
5
|
import {
|
|
6
6
|
useDriveActions
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-HNBKSZYU.js";
|
|
8
8
|
import {
|
|
9
9
|
DriveContextProvider,
|
|
10
10
|
useDriveContext
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
useUserPermissions
|
|
58
58
|
} from "../chunk-OVGOA2P5.js";
|
|
59
59
|
import "../chunk-P6NJ6IAQ.js";
|
|
60
|
-
import "../chunk-
|
|
60
|
+
import "../chunk-HYN4HC4N.js";
|
|
61
61
|
import "../chunk-FQF4YAVC.js";
|
|
62
62
|
import "../chunk-YWKVPJNL.js";
|
|
63
63
|
import "../chunk-2X2M6BYG.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDriveActionsWithUiNodes
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-6GRZOLU5.js";
|
|
4
|
+
import "../chunk-HNBKSZYU.js";
|
|
5
5
|
import "../chunk-XBTEGV5M.js";
|
|
6
6
|
import "../chunk-RGIB4DD4.js";
|
|
7
7
|
import "../chunk-7OQWVUC5.js";
|
|
8
8
|
import "../chunk-ZL5IPB6D.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-HYN4HC4N.js";
|
|
10
10
|
import "../chunk-FQF4YAVC.js";
|
|
11
11
|
import "../chunk-2ESYSVXG.js";
|
|
12
12
|
export {
|
|
@@ -6,10 +6,10 @@ import "./chunk-LH2T6NLN.js";
|
|
|
6
6
|
import "./chunk-DKDARAJS.js";
|
|
7
7
|
import {
|
|
8
8
|
useDriveActionsWithUiNodes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6GRZOLU5.js";
|
|
10
10
|
import {
|
|
11
11
|
useDriveActions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HNBKSZYU.js";
|
|
13
13
|
import {
|
|
14
14
|
DriveContextProvider,
|
|
15
15
|
useDriveContext
|
|
@@ -65,18 +65,18 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
createBrowserDocumentDriveServer,
|
|
67
67
|
getReactorDefaultDrivesConfig
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-HNTH6HAH.js";
|
|
69
69
|
import "./chunk-U36SV333.js";
|
|
70
70
|
import {
|
|
71
71
|
ReadModeContext,
|
|
72
72
|
ReadModeContextProvider,
|
|
73
73
|
useReadModeContext
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-ODF4NZBP.js";
|
|
75
75
|
import {
|
|
76
76
|
useUserPermissions
|
|
77
77
|
} from "./chunk-OVGOA2P5.js";
|
|
78
78
|
import "./chunk-P6NJ6IAQ.js";
|
|
79
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-HYN4HC4N.js";
|
|
80
80
|
import "./chunk-FQF4YAVC.js";
|
|
81
81
|
import "./chunk-YWKVPJNL.js";
|
|
82
82
|
import "./chunk-2X2M6BYG.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createBrowserDocumentDriveServer,
|
|
3
3
|
getReactorDefaultDrivesConfig
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-HNTH6HAH.js";
|
|
5
|
+
import "./chunk-HYN4HC4N.js";
|
|
6
6
|
import "./chunk-FQF4YAVC.js";
|
|
7
7
|
import "./chunk-2ESYSVXG.js";
|
|
8
8
|
export {
|
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+PG1ldGEgY2hhcnNldD0iVVRGLTgiPjxtZXRhIG5hbWU9InZ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21haW4uQml5MDFXSVIuanMiPjwvc2NyaXB0PjwvaGVhZD48Ym9keT48ZGl2IGlkPSJhcHAiPjwvZGl2PjwvYm9keT48L2h0bWw+" | base64 -d)
|
|
15
15
|
|
|
16
16
|
BASE_URL_base64="eEFwV2RSclg5OWtQclZnZ0UiLyIK"
|
|
17
17
|
BASE_URL=$(echo "Lwo=" | base64 -d)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/connect",
|
|
3
3
|
"productName": "Powerhouse-Connect",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11-dev.0",
|
|
5
5
|
"description": "Powerhouse Connect",
|
|
6
6
|
"main": "./dist/index.html",
|
|
7
7
|
"type": "module",
|
|
@@ -82,13 +82,13 @@
|
|
|
82
82
|
"vite-plugin-svgr": "^4.2.0",
|
|
83
83
|
"vite-tsconfig-paths": "^4.3.2",
|
|
84
84
|
"xvfb-maybe": "^0.2.1",
|
|
85
|
-
"@powerhousedao/builder-tools": "0.9.
|
|
86
|
-
"@powerhousedao/
|
|
85
|
+
"@powerhousedao/builder-tools": "0.9.22-dev.0",
|
|
86
|
+
"@powerhousedao/design-system": "1.39.14-dev.0",
|
|
87
|
+
"@powerhousedao/common": "1.10.23-dev.0",
|
|
88
|
+
"@powerhousedao/reactor-browser": "1.22.21-dev.0",
|
|
87
89
|
"@powerhousedao/config": "1.27.0-dev.1",
|
|
88
|
-
"@powerhousedao/design-system": "1.39.13-dev.1",
|
|
89
90
|
"@powerhousedao/scalars": "1.33.1-dev.0",
|
|
90
|
-
"
|
|
91
|
-
"document-drive": "1.29.8-dev.0",
|
|
91
|
+
"document-drive": "1.29.8-dev.1",
|
|
92
92
|
"document-model": "2.28.1-dev.0"
|
|
93
93
|
},
|
|
94
94
|
"optionalDependencies": {
|