@powerhousedao/connect 1.0.18-staging.0 → 1.0.18-staging.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{app-loader-BMhhtmd_.js → app-loader-CdvqY3K1.js} +27 -19
- package/dist/assets/{app-pJllXwRA.js → app-yRMY-3GF.js} +9 -9
- package/dist/assets/{ccip-Ms00gIeT.js → ccip-Cy9LlCUm.js} +3 -3
- package/dist/assets/{content-DzACFqe5.js → content-BOeknRry.js} +3 -3
- package/dist/assets/{index-BOjX2F9Y.js → index--Ym8GkzB.js} +4 -4
- package/dist/assets/{index-oTDQumAW.js → index-BcowCCAB.js} +3 -3
- package/dist/assets/{index-DQ5i5beB.js → index-Cdh4BzLk.js} +3 -3
- package/dist/assets/{main.BBDo_vds.js → main.m37VWnwf.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +9 -9
|
@@ -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-yRMY-3GF.js","assets/main.m37VWnwf.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.m37VWnwf.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) {
|
|
@@ -11547,11 +11547,18 @@ class ConflictOperationError extends OperationError {
|
|
|
11547
11547
|
super("CONFLICT", newOperation, `Conflicting operation on index ${newOperation.index}`, { existingOperation, newOperation });
|
|
11548
11548
|
}
|
|
11549
11549
|
}
|
|
11550
|
-
class
|
|
11551
|
-
constructor(
|
|
11552
|
-
super(`
|
|
11553
|
-
__publicField(this, "
|
|
11554
|
-
this.
|
|
11550
|
+
class DocumentAlreadyExistsError extends Error {
|
|
11551
|
+
constructor(documentId) {
|
|
11552
|
+
super(`Document with id ${documentId} already exists`);
|
|
11553
|
+
__publicField(this, "documentId");
|
|
11554
|
+
this.documentId = documentId;
|
|
11555
|
+
}
|
|
11556
|
+
}
|
|
11557
|
+
class DocumentNotFoundError extends Error {
|
|
11558
|
+
constructor(documentId) {
|
|
11559
|
+
super(`Document with id ${documentId} not found`);
|
|
11560
|
+
__publicField(this, "documentId");
|
|
11561
|
+
this.documentId = documentId;
|
|
11555
11562
|
}
|
|
11556
11563
|
}
|
|
11557
11564
|
class SynchronizationUnitNotFoundError extends Error {
|
|
@@ -23371,7 +23378,7 @@ class BaseDocumentDriveServer {
|
|
|
23371
23378
|
}
|
|
23372
23379
|
const drives = await this.legacyStorage.getDrives();
|
|
23373
23380
|
if (drives.includes(id)) {
|
|
23374
|
-
throw new
|
|
23381
|
+
throw new DocumentAlreadyExistsError(id);
|
|
23375
23382
|
}
|
|
23376
23383
|
const document = createDocument({
|
|
23377
23384
|
state: input
|
|
@@ -24206,14 +24213,14 @@ class MemoryStorage {
|
|
|
24206
24213
|
get(documentId) {
|
|
24207
24214
|
const document = this.documents[documentId];
|
|
24208
24215
|
if (!document) {
|
|
24209
|
-
|
|
24216
|
+
return Promise.reject(new DocumentNotFoundError(documentId));
|
|
24210
24217
|
}
|
|
24211
24218
|
return Promise.resolve(document);
|
|
24212
24219
|
}
|
|
24213
24220
|
getBySlug(slug) {
|
|
24214
24221
|
const documentId = this.slugToDocumentId[slug];
|
|
24215
24222
|
if (!documentId) {
|
|
24216
|
-
|
|
24223
|
+
return Promise.reject(new DocumentNotFoundError(slug));
|
|
24217
24224
|
}
|
|
24218
24225
|
return this.get(documentId);
|
|
24219
24226
|
}
|
|
@@ -24241,23 +24248,24 @@ class MemoryStorage {
|
|
|
24241
24248
|
}
|
|
24242
24249
|
async addChild(parentId, childId) {
|
|
24243
24250
|
if (parentId === childId) {
|
|
24244
|
-
|
|
24251
|
+
return Promise.reject(new Error("Cannot associate a document with itself"));
|
|
24245
24252
|
}
|
|
24246
24253
|
const children = await this.getChildren(childId);
|
|
24247
24254
|
if (children.includes(parentId)) {
|
|
24248
|
-
|
|
24255
|
+
return Promise.reject(new Error("Cannot associate a document with its child"));
|
|
24249
24256
|
}
|
|
24250
24257
|
const manifest = this.getManifest(parentId);
|
|
24251
24258
|
manifest.documentIds.add(childId);
|
|
24252
24259
|
this.updateDriveManifest(parentId, manifest);
|
|
24260
|
+
return Promise.resolve();
|
|
24253
24261
|
}
|
|
24254
24262
|
async removeChild(parentId, childId) {
|
|
24255
24263
|
const manifest = this.getManifest(parentId);
|
|
24256
24264
|
if (manifest.documentIds.delete(childId)) {
|
|
24257
24265
|
this.updateDriveManifest(parentId, manifest);
|
|
24258
|
-
return true;
|
|
24266
|
+
return Promise.resolve(true);
|
|
24259
24267
|
}
|
|
24260
|
-
return false;
|
|
24268
|
+
return Promise.resolve(false);
|
|
24261
24269
|
}
|
|
24262
24270
|
async getChildren(parentId) {
|
|
24263
24271
|
const manifest = this.getManifest(parentId);
|
|
@@ -24274,7 +24282,7 @@ class MemoryStorage {
|
|
|
24274
24282
|
async addDocumentOperations(drive, id, operations, header) {
|
|
24275
24283
|
const document = await this.get(id);
|
|
24276
24284
|
if (!document) {
|
|
24277
|
-
|
|
24285
|
+
return Promise.reject(new DocumentNotFoundError(id));
|
|
24278
24286
|
}
|
|
24279
24287
|
const mergedOperations = mergeOperations(document.operations, operations);
|
|
24280
24288
|
this.documents[id] = {
|
|
@@ -25809,7 +25817,7 @@ const nodeOptionsMap = {
|
|
|
25809
25817
|
};
|
|
25810
25818
|
const name = "@powerhousedao/connect";
|
|
25811
25819
|
const productName = "Powerhouse-Connect";
|
|
25812
|
-
const version$1 = "1.0.18-staging.
|
|
25820
|
+
const version$1 = "1.0.18-staging.1";
|
|
25813
25821
|
const description = "Powerhouse Connect";
|
|
25814
25822
|
const main = "./dist/index.html";
|
|
25815
25823
|
const type = "module";
|
|
@@ -28633,7 +28641,7 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28633
28641
|
const db = await this.db;
|
|
28634
28642
|
const document = await db.getItem(this.buildDocumentKey(documentId));
|
|
28635
28643
|
if (!document) {
|
|
28636
|
-
|
|
28644
|
+
return Promise.reject(new DocumentNotFoundError(documentId));
|
|
28637
28645
|
}
|
|
28638
28646
|
return document;
|
|
28639
28647
|
}
|
|
@@ -28641,7 +28649,7 @@ const _BrowserStorage = class _BrowserStorage {
|
|
|
28641
28649
|
const slugManifest = await this.getSlugManifest();
|
|
28642
28650
|
const documentId = slugManifest.slugToId[slug];
|
|
28643
28651
|
if (!documentId) {
|
|
28644
|
-
|
|
28652
|
+
return Promise.reject(new DocumentNotFoundError(slug));
|
|
28645
28653
|
}
|
|
28646
28654
|
return this.get(documentId);
|
|
28647
28655
|
}
|
|
@@ -31433,7 +31441,7 @@ if (window.__VITE_ENVS.MODE === "development") {
|
|
|
31433
31441
|
} else {
|
|
31434
31442
|
serviceWorkerManager.registerServiceWorker(false);
|
|
31435
31443
|
}
|
|
31436
|
-
const App = lazy(() => __vitePreload(() => import("./app-
|
|
31444
|
+
const App = lazy(() => __vitePreload(() => import("./app-yRMY-3GF.js").then((n) => n.aY), true ? __vite__mapDeps([0,1,2]) : void 0));
|
|
31437
31445
|
const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
|
|
31438
31446
|
const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31439
31447
|
__proto__: null,
|
|
@@ -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-Cy9LlCUm.js","assets/main.m37VWnwf.js","assets/app-loader-CdvqY3K1.js","assets/app-loader-DiF8OhX3.css","assets/index-Cdh4BzLk.js","assets/style-Ce3V83BE.css","assets/index--Ym8GkzB.js","assets/content-BOeknRry.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, _subtleCrypto, _keyPair, _keyPairStorage, _did, _ConnectCrypto_instances, initCrypto_fn, initialize_fn, parseDid_fn, generateECDSAKeyPair_fn, exportKeyPair_fn, importKeyPair_fn, _sign, _verify, _DB_NAME, _STORE_NAME, _KEY, _db, _BrowserKeyStorage_instances, useStore_fn;
|
|
22
|
-
import { _ as __vitePreload } from "./main.
|
|
22
|
+
import { _ as __vitePreload } from "./main.m37VWnwf.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 getAugmentedNamespace, ak as setErrorHandler, al as driveDocumentModelModule, am as createBrowserDocumentDriveServer, an as hashKey$1, ao as childLogger, ap as reducer$8, aq as isDocumentDrive, ar as generateAddNodeAction, as as isFileNode, at as uploadDocumentOperations, au as updateFile, av as addFolder, aw as isFolderNode, ax as deleteNode, ay as updateNode, az as FILE$1, aA as moveNode, aB as generateNodesCopy, aC as copyNode, aD as createState$1, aE as setDriveName, aF as setAvailableOffline, aG as setSharingType, aH as SynchronizationUnitNotFoundError, aI as removeTrigger, aJ as generateUUID, aK as PullResponderTransmitter, aL as addTrigger, aM as ReadDriveNotFoundError, aN as openUrl, aO as getNodeOptions, aP as DRIVE$1, aQ as FOLDER, aR as requestPublicDrive, aS as serviceWorkerManager, aT as packageJson, aU as t$1, aV as gql, aW 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 getAugmentedNamespace, ak as setErrorHandler, al as driveDocumentModelModule, am as createBrowserDocumentDriveServer, an as hashKey$1, ao as childLogger, ap as reducer$8, aq as isDocumentDrive, ar as generateAddNodeAction, as as isFileNode, at as uploadDocumentOperations, au as updateFile, av as addFolder, aw as isFolderNode, ax as deleteNode, ay as updateNode, az as FILE$1, aA as moveNode, aB as generateNodesCopy, aC as copyNode, aD as createState$1, aE as setDriveName, aF as setAvailableOffline, aG as setSharingType, aH as SynchronizationUnitNotFoundError, aI as removeTrigger, aJ as generateUUID, aK as PullResponderTransmitter, aL as addTrigger, aM as ReadDriveNotFoundError, aN as openUrl, aO as getNodeOptions, aP as DRIVE$1, aQ as FOLDER, aR as requestPublicDrive, aS as serviceWorkerManager, aT as packageJson, aU as t$1, aV as gql, aW as request } from "./app-loader-CdvqY3K1.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 * as ReactDOM from "react-dom";
|
|
@@ -20568,7 +20568,7 @@ async function call(client2, args) {
|
|
|
20568
20568
|
} catch (err) {
|
|
20569
20569
|
const data2 = getRevertErrorData(err);
|
|
20570
20570
|
const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => {
|
|
20571
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
20571
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-Cy9LlCUm.js");
|
|
20572
20572
|
return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 };
|
|
20573
20573
|
}, true ? __vite__mapDeps([0,1,2,3]) : void 0);
|
|
20574
20574
|
if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
|
|
@@ -73811,7 +73811,7 @@ const useFilteredDocumentModels = () => {
|
|
|
73811
73811
|
return filteredDocumentModels;
|
|
73812
73812
|
};
|
|
73813
73813
|
async function loadBaseEditors() {
|
|
73814
|
-
const documentModelEditor = await __vitePreload(() => import("./index-
|
|
73814
|
+
const documentModelEditor = await __vitePreload(() => import("./index-Cdh4BzLk.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
|
|
73815
73815
|
await __vitePreload(() => Promise.resolve({}), true ? __vite__mapDeps([5]) : void 0);
|
|
73816
73816
|
const module = documentModelEditor.documentModelEditorModule;
|
|
73817
73817
|
return [module];
|
|
@@ -73962,11 +73962,11 @@ const connectCrypto = (async () => {
|
|
|
73962
73962
|
return window.connectCrypto;
|
|
73963
73963
|
}
|
|
73964
73964
|
const { ConnectCrypto: ConnectCrypto2 } = await __vitePreload(async () => {
|
|
73965
|
-
const { ConnectCrypto: ConnectCrypto3 } = await import("./index
|
|
73965
|
+
const { ConnectCrypto: ConnectCrypto3 } = await import("./index--Ym8GkzB.js");
|
|
73966
73966
|
return { ConnectCrypto: ConnectCrypto3 };
|
|
73967
73967
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
73968
73968
|
const { BrowserKeyStorage: BrowserKeyStorage2 } = await __vitePreload(async () => {
|
|
73969
|
-
const { BrowserKeyStorage: BrowserKeyStorage3 } = await import("./index
|
|
73969
|
+
const { BrowserKeyStorage: BrowserKeyStorage3 } = await import("./index--Ym8GkzB.js");
|
|
73970
73970
|
return { BrowserKeyStorage: BrowserKeyStorage3 };
|
|
73971
73971
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
73972
73972
|
const connectCrypto2 = new ConnectCrypto2(new BrowserKeyStorage2());
|
|
@@ -74015,7 +74015,7 @@ function useRenown() {
|
|
|
74015
74015
|
return;
|
|
74016
74016
|
}
|
|
74017
74017
|
const { initRenownBrowser } = await __vitePreload(async () => {
|
|
74018
|
-
const { initRenownBrowser: initRenownBrowser2 } = await import("./index
|
|
74018
|
+
const { initRenownBrowser: initRenownBrowser2 } = await import("./index--Ym8GkzB.js");
|
|
74019
74019
|
return { initRenownBrowser: initRenownBrowser2 };
|
|
74020
74020
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
74021
74021
|
const renownBrowser = initRenownBrowser(did2);
|
|
@@ -82899,7 +82899,7 @@ function Home() {
|
|
|
82899
82899
|
/* @__PURE__ */ jsx$1(HomeScreenAddDriveItem, { onClick: onAddDriveClick })
|
|
82900
82900
|
] });
|
|
82901
82901
|
}
|
|
82902
|
-
const Content = React__default.lazy(() => __vitePreload(() => import("./content-
|
|
82902
|
+
const Content = React__default.lazy(() => __vitePreload(() => import("./content-BOeknRry.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
|
|
82903
82903
|
async function createRouter(routes) {
|
|
82904
82904
|
var _a2;
|
|
82905
82905
|
const isPackaged = await ((_a2 = window.electronAPI) == null ? void 0 : _a2.isPackaged());
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aO as BaseError, aP as getUrl, aQ as stringify, aR as decodeErrorResult, aS as isAddressEqual, aT as call, aU as concat, aV as encodeAbiParameters, aW as HttpRequestError, aX as isHex } from "./app-
|
|
2
|
-
import "./main.
|
|
1
|
+
import { aO as BaseError, aP as getUrl, aQ as stringify, aR as decodeErrorResult, aS as isAddressEqual, aT as call, aU as concat, aV as encodeAbiParameters, aW as HttpRequestError, aX as isHex } from "./app-yRMY-3GF.js";
|
|
2
|
+
import "./main.m37VWnwf.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
|
-
import "./app-loader-
|
|
4
|
+
import "./app-loader-CdvqY3K1.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
class OffchainLookupError extends BaseError {
|
|
@@ -1,10 +1,10 @@
|
|
|
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, k as SYNCING, I as INITIAL_SYNC, l as ConnectDropdownMenu, u as useOnClickOutside, n as useEventListener, o as useCopyToClipboard, p as Select, q as ENSAvatar, P as Provider, v as Root3, T as Trigger, w as Portal, x as Content2, y as validateInitialState, z as validateStateSchemaName, A as validateModules, D as useDocumentDrives, F as useUiNodesContext, G as useDriveContext, H as FILE$1, J as useUnwrappedReactor, K as useConnectDid, L as useConnectCrypto, N as useTranslation, O as useModal, Q as useAtomValue, U as themeAtom, V as useUser, W as useUserPermissions$1, X as useUiNodes, Y as exportFile, Z as useGetDocumentModelModule, _ as addActionContext$1, $ as signOperation$1, a0 as useDocumentDriveServer, a1 as useHotkeys, a2 as useGetEditor, a3 as isSameDocument, a4 as useNavigate, a5 as ErrorBoundary, a6 as DriveLayout, a7 as DriveContextProvider, a8 as SearchBar, a9 as useAsyncReactor, aa as useFilteredDocumentModels, ab as useDriveEditor, ac as useDocumentDriveById, ad as useParams, ae as useDocumentDrives$1, af 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, k as SYNCING, I as INITIAL_SYNC, l as ConnectDropdownMenu, u as useOnClickOutside, n as useEventListener, o as useCopyToClipboard, p as Select, q as ENSAvatar, P as Provider, v as Root3, T as Trigger, w as Portal, x as Content2, y as validateInitialState, z as validateStateSchemaName, A as validateModules, D as useDocumentDrives, F as useUiNodesContext, G as useDriveContext, H as FILE$1, J as useUnwrappedReactor, K as useConnectDid, L as useConnectCrypto, N as useTranslation, O as useModal, Q as useAtomValue, U as themeAtom, V as useUser, W as useUserPermissions$1, X as useUiNodes, Y as exportFile, Z as useGetDocumentModelModule, _ as addActionContext$1, $ as signOperation$1, a0 as useDocumentDriveServer, a1 as useHotkeys, a2 as useGetEditor, a3 as isSameDocument, a4 as useNavigate, a5 as ErrorBoundary, a6 as DriveLayout, a7 as DriveContextProvider, a8 as SearchBar, a9 as useAsyncReactor, aa as useFilteredDocumentModels, ab as useDriveEditor, ac as useDocumentDriveById, ad as useParams, ae as useDocumentDrives$1, af as toast } from "./app-yRMY-3GF.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, aP as DRIVE, az as FILE, ae as buildSignedOperation, b7 as generateId$1, aw as isFolderNode, aB as generateNodesCopy, aC as copyNode, aA as moveNode, ay as updateNode, ax as deleteNode, ar as generateAddNodeAction, as as isFileNode, av as addFolder, b8 as undo, b9 as redo, ac as logger, ba as useDocumentDispatch$1, aQ as FOLDER, al 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, aP as DRIVE, az as FILE, ae as buildSignedOperation, b7 as generateId$1, aw as isFolderNode, aB as generateNodesCopy, aC as copyNode, aA as moveNode, ay as updateNode, ax as deleteNode, ar as generateAddNodeAction, as as isFileNode, av as addFolder, b8 as undo, b9 as redo, ac as logger, ba as useDocumentDispatch$1, aQ as FOLDER, al as driveDocumentModelModule } from "./app-loader-CdvqY3K1.js";
|
|
6
6
|
import { flushSync } from "react-dom";
|
|
7
|
-
import "./main.
|
|
7
|
+
import "./main.m37VWnwf.js";
|
|
8
8
|
const PaginationButton = ({ active = false, ...props }) => {
|
|
9
9
|
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");
|
|
10
10
|
return jsx(Button, { color: "light", size: "small", ...mergeClassNameProps(props, className), children: props.children });
|
|
@@ -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 { r as rawKeyInHexfromUncompressed, c as compressedKeyInHexfromRaw, e as encodeDIDfromHexString, a as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-
|
|
15
|
-
import { i, h, d, j, b, f, s } from "./app-
|
|
16
|
-
import { ah as connectConfig, ac as logger } from "./app-loader-
|
|
13
|
+
import { _ as __vitePreload } from "./main.m37VWnwf.js";
|
|
14
|
+
import { r as rawKeyInHexfromUncompressed, c as compressedKeyInHexfromRaw, e as encodeDIDfromHexString, a as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-yRMY-3GF.js";
|
|
15
|
+
import { i, h, d, j, b, f, s } from "./app-yRMY-3GF.js";
|
|
16
|
+
import { ah as connectConfig, ac as logger } from "./app-loader-CdvqY3K1.js";
|
|
17
17
|
import "react/jsx-runtime";
|
|
18
18
|
import "react";
|
|
19
19
|
import "react-dom";
|
|
@@ -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-CdvqY3K1.js","assets/main.m37VWnwf.js","assets/app-loader-DiF8OhX3.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as __vitePreload } from "./main.m37VWnwf.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-CdvqY3K1.js").then((n) => n.ca), 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, ag as clsx, ah as get, ai as set, aj as appendErrors, ak as useFormContext, al as Primitive, am as cva, an as FormProvider, ao as Controller, ap as Slot, aq as useForm, ar as Root2, as as List, at as Trigger, au as Content, av as setModelName, aw as setModelId, ax as setModelDescription, ay as setModelExtension, az as setAuthorName, aA as setAuthorWebsite, aB as setStateSchema, aC as setInitialState, aD as addModule, aE as setModuleName, aF as deleteModule, aG as addOperation, aH as setOperationName, aI as setOperationSchema, aJ as setOperationDescription, aK as deleteOperation, aL as addOperationError, aM as deleteOperationError, aN as setOperationErrorName } from "./app-
|
|
3
|
-
import { bb as inspect$1, bc as GraphQLError$1, bd as getNamedType, be as invariant$2, bf as isInputObjectType, bg as isScalarType, bh as isObjectType, bi as isInterfaceType, bj as isUnionType, bk as isEnumType, bl as print, bm as isPrintableAsBlockString, bn as Kind, bo as astFromValue$1, bp as DEFAULT_DEPRECATION_REASON, bq as isSpecifiedDirective, br as isSpecifiedScalarType, bs as isIntrospectionType, bt as z, bu as GraphQLScalarType, Z as pascalCase, bv as parse, bw as visit, bx as buildASTSchema, by as extendSchema, bz as getNullableType, bA as isListType, $ as getDefaultExportFromCjs, bB as snakeCase, bC as constantCase, bD as isAbstractType, bE as BREAK, bF as GraphQLInputObjectType, bG as GraphQLList, bH as GraphQLEnumType, bI as GraphQLObjectType, bJ as GraphQLInterfaceType, bK as SchemaMetaFieldDef, bL as TypeMetaFieldDef, bM as TypeNameMetaFieldDef, bN as isCompositeType, bO as isOutputType, bP as isInputType, bQ as GraphQLBoolean, bR as assertAbstractType, bS as doTypesOverlap, bT as DirectiveLocation, bU as specifiedRules$1, bV as NoUnusedFragmentsRule$1, bW as ExecutableDefinitionsRule$1, bX as validate$2, bY as validateSchema, bZ as GraphQLID, b_ as GraphQLString, b$ as GraphQLFloat, c0 as GraphQLInt, c1 as GraphQLDirective, c2 as GraphQLUnionType, c3 as isNonNullType, c4 as GraphQLNonNull, c5 as isNamedType, c6 as isLeafType, c7 as GraphQLSchema, c8 as buildSchema, c9 as sentenceCase, an as hashKey } from "./app-loader-
|
|
2
|
+
import { t as twMerge, ag as clsx, ah as get, ai as set, aj as appendErrors, ak as useFormContext, al as Primitive, am as cva, an as FormProvider, ao as Controller, ap as Slot, aq as useForm, ar as Root2, as as List, at as Trigger, au as Content, av as setModelName, aw as setModelId, ax as setModelDescription, ay as setModelExtension, az as setAuthorName, aA as setAuthorWebsite, aB as setStateSchema, aC as setInitialState, aD as addModule, aE as setModuleName, aF as deleteModule, aG as addOperation, aH as setOperationName, aI as setOperationSchema, aJ as setOperationDescription, aK as deleteOperation, aL as addOperationError, aM as deleteOperationError, aN as setOperationErrorName } from "./app-yRMY-3GF.js";
|
|
3
|
+
import { bb as inspect$1, bc as GraphQLError$1, bd as getNamedType, be as invariant$2, bf as isInputObjectType, bg as isScalarType, bh as isObjectType, bi as isInterfaceType, bj as isUnionType, bk as isEnumType, bl as print, bm as isPrintableAsBlockString, bn as Kind, bo as astFromValue$1, bp as DEFAULT_DEPRECATION_REASON, bq as isSpecifiedDirective, br as isSpecifiedScalarType, bs as isIntrospectionType, bt as z, bu as GraphQLScalarType, Z as pascalCase, bv as parse, bw as visit, bx as buildASTSchema, by as extendSchema, bz as getNullableType, bA as isListType, $ as getDefaultExportFromCjs, bB as snakeCase, bC as constantCase, bD as isAbstractType, bE as BREAK, bF as GraphQLInputObjectType, bG as GraphQLList, bH as GraphQLEnumType, bI as GraphQLObjectType, bJ as GraphQLInterfaceType, bK as SchemaMetaFieldDef, bL as TypeMetaFieldDef, bM as TypeNameMetaFieldDef, bN as isCompositeType, bO as isOutputType, bP as isInputType, bQ as GraphQLBoolean, bR as assertAbstractType, bS as doTypesOverlap, bT as DirectiveLocation, bU as specifiedRules$1, bV as NoUnusedFragmentsRule$1, bW as ExecutableDefinitionsRule$1, bX as validate$2, bY as validateSchema, bZ as GraphQLID, b_ as GraphQLString, b$ as GraphQLFloat, c0 as GraphQLInt, c1 as GraphQLDirective, c2 as GraphQLUnionType, c3 as isNonNullType, c4 as GraphQLNonNull, c5 as isNamedType, c6 as isLeafType, c7 as GraphQLSchema, c8 as buildSchema, c9 as sentenceCase, an as hashKey } from "./app-loader-CdvqY3K1.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.m37VWnwf.js";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
const versionInfo = Object.freeze({
|
|
9
9
|
major: 16,
|
|
@@ -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-BcowCCAB.js"), true ? [] : void 0);
|
|
103
103
|
export {
|
|
104
104
|
__vitePreload as _
|
|
105
105
|
};
|
package/dist/index.html
CHANGED
|
@@ -64,4 +64,4 @@
|
|
|
64
64
|
"react-dom": "https://esm.sh/react-dom",
|
|
65
65
|
"react-dom/": "https://esm.sh/react-dom/"
|
|
66
66
|
}
|
|
67
|
-
}</script><script type="module" crossorigin="" src="/assets/main.
|
|
67
|
+
}</script><script type="module" crossorigin="" src="/assets/main.m37VWnwf.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+ewogICJpbXBvcnRzIjogewogICAgInJlYWN0IjogImh0dHBzOi8vZXNtLnNoL3JlYWN0IiwKICAgICJyZWFjdC8iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QvIiwKICAgICJyZWFjdC1kb20iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QtZG9tIiwKICAgICJyZWFjdC1kb20vIjogImh0dHBzOi8vZXNtLnNoL3JlYWN0LWRvbS8iCiAgfQp9PC9zY3JpcHQ+
|
|
14
|
+
html=$(echo "PCFET0NUWVBFIGh0bWw+PGh0bWw+PGhlYWQ+PG1ldGEgY2hhcnNldD0iVVRGLTgiPjxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj48dGl0bGU+UG93ZXJob3VzZSBDb25uZWN0PC90aXRsZT48YmFzZSBocmVmPSIvIj48bGluayByZWw9Imljb24iIGhyZWY9Ii9pY29uLmljbyI+PCEtLSB2aXRlLWVudnMgc2NyaXB0IHBsYWNlaG9sZGVyIHhLc1BtTHMzMHN3S3NkSXNWeCAtLT48c2NyaXB0IHR5cGU9ImltcG9ydG1hcCI+ewogICJpbXBvcnRzIjogewogICAgInJlYWN0IjogImh0dHBzOi8vZXNtLnNoL3JlYWN0IiwKICAgICJyZWFjdC8iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QvIiwKICAgICJyZWFjdC1kb20iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QtZG9tIiwKICAgICJyZWFjdC1kb20vIjogImh0dHBzOi8vZXNtLnNoL3JlYWN0LWRvbS8iCiAgfQp9PC9zY3JpcHQ+PHNjcmlwdCB0eXBlPSJtb2R1bGUiIGNyb3Nzb3JpZ2luPSIiIHNyYz0iL2Fzc2V0cy9tYWluLm0zN1ZXbndmLmpzIj48L3NjcmlwdD48L2hlYWQ+PGJvZHk+PGRpdiBpZD0iYXBwIj48L2Rpdj48L2JvZHk+PC9odG1sPg==" | 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.18-staging.
|
|
4
|
+
"version": "1.0.18-staging.1",
|
|
5
5
|
"description": "Powerhouse Connect",
|
|
6
6
|
"main": "./dist/index.html",
|
|
7
7
|
"type": "module",
|
|
@@ -82,14 +82,14 @@
|
|
|
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.29-staging.
|
|
86
|
-
"@powerhousedao/
|
|
87
|
-
"@powerhousedao/
|
|
88
|
-
"@powerhousedao/
|
|
89
|
-
"@powerhousedao/reactor-browser": "1.22.25-staging.
|
|
90
|
-
"@powerhousedao/scalars": "1.33.1-staging.
|
|
91
|
-
"document-drive": "1.29.9-staging.
|
|
92
|
-
"document-model": "2.28.1-staging.
|
|
85
|
+
"@powerhousedao/builder-tools": "0.9.29-staging.1",
|
|
86
|
+
"@powerhousedao/common": "1.10.33-staging.1",
|
|
87
|
+
"@powerhousedao/config": "1.27.0-staging.3",
|
|
88
|
+
"@powerhousedao/design-system": "1.39.17-staging.3",
|
|
89
|
+
"@powerhousedao/reactor-browser": "1.22.25-staging.3",
|
|
90
|
+
"@powerhousedao/scalars": "1.33.1-staging.3",
|
|
91
|
+
"document-drive": "1.29.9-staging.1",
|
|
92
|
+
"document-model": "2.28.1-staging.3"
|
|
93
93
|
},
|
|
94
94
|
"optionalDependencies": {
|
|
95
95
|
"@esbuild/linux-x64": "^0.21.4",
|