@powerhousedao/connect 2.5.0-dev.11 → 2.5.0-dev.13
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-kij0eeOs.js → app-CfLgnxyV.js} +50 -44
- package/dist/assets/{app-kij0eeOs.js.map → app-CfLgnxyV.js.map} +1 -1
- package/dist/assets/{app-loader-CBT9qGng.js → app-loader-Da3bAkvN.js} +5 -5
- package/dist/assets/{app-loader-CBT9qGng.js.map → app-loader-Da3bAkvN.js.map} +1 -1
- package/dist/assets/{ccip-Dc38zVb8.js → ccip-XyzcC2OO.js} +4 -4
- package/dist/assets/{ccip-Dc38zVb8.js.map → ccip-XyzcC2OO.js.map} +1 -1
- package/dist/assets/{content-DyATeqIX.js → content-moRQPp_g.js} +5 -5
- package/dist/assets/{content-DyATeqIX.js.map → content-moRQPp_g.js.map} +1 -1
- package/dist/assets/{index-D7xefQOP.js → index-47_dwZnB.js} +4 -4
- package/dist/assets/{index-D7xefQOP.js.map → index-47_dwZnB.js.map} +1 -1
- package/dist/assets/{index-ew2QCnI_.js → index-BX6L7YIm.js} +5 -5
- package/dist/assets/{index-ew2QCnI_.js.map → index-BX6L7YIm.js.map} +1 -1
- package/dist/assets/{index-BYxYTChI.js → index-C5pmKsbl.js} +4 -4
- package/dist/assets/{index-BYxYTChI.js.map → index-C5pmKsbl.js.map} +1 -1
- package/dist/assets/{index-DdwhI9qx.js → index-CS-ArJoi.js} +4 -4
- package/dist/assets/{index-DdwhI9qx.js.map → index-CS-ArJoi.js.map} +1 -1
- package/dist/assets/{index-CQcCYvYS.js → index-DpU1evrL.js} +4 -4
- package/dist/assets/{index-CQcCYvYS.js.map → index-DpU1evrL.js.map} +1 -1
- package/dist/assets/{main.B2eRkneO.js → main.DP5LHvly.js} +2 -2
- package/dist/assets/{main.B2eRkneO.js.map → main.DP5LHvly.js.map} +1 -1
- package/dist/assets/{nodefs-CTzE0-na.js → nodefs-DPnN6Ar0.js} +4 -4
- package/dist/assets/{nodefs-CTzE0-na.js.map → nodefs-DPnN6Ar0.js.map} +1 -1
- package/dist/assets/{opfs-ahp-B4PUjx60.js → opfs-ahp-CEfWDHTR.js} +4 -4
- package/dist/assets/{opfs-ahp-B4PUjx60.js.map → opfs-ahp-CEfWDHTR.js.map} +1 -1
- package/dist/assets/{reactor-analytics-32SdWcJ_.js → reactor-analytics-CC_4d7Yq.js} +7 -7
- package/dist/assets/{reactor-analytics-32SdWcJ_.js.map → reactor-analytics-CC_4d7Yq.js.map} +1 -1
- package/dist/assets/{router-6rJNkh2x.js → router-CjiZKsCh.js} +6 -6
- package/dist/assets/{router-6rJNkh2x.js.map → router-CjiZKsCh.js.map} +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/ccip-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-XyzcC2OO.js","assets/main.DP5LHvly.js","assets/app-loader-Da3bAkvN.js","assets/app-loader-CDW9U8zV.css","assets/index-BX6L7YIm.js","assets/index-CS-ArJoi.js","assets/style-C0GVbPTL.css","assets/nodefs-DPnN6Ar0.js","assets/opfs-ahp-CEfWDHTR.js","assets/router-CjiZKsCh.js","assets/reactor-analytics-CC_4d7Yq.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp2 = Object.defineProperty;
|
|
3
3
|
var __typeError = (msg) => {
|
|
4
4
|
throw TypeError(msg);
|
|
@@ -19,11 +19,11 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
var _InternalTransmitter_instances, buildInternalOperationUpdate_fn, _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, _bearerToken, _ConnectCrypto_instances, initCrypto_fn, initialize_fn, parseDid_fn, generateECDSAKeyPair_fn, exportKeyPair_fn, importKeyPair_fn, _sign, _verify, stringToBytes_fn;
|
|
22
|
-
import { _ as __vitePreload } from "./main.
|
|
22
|
+
import { _ as __vitePreload } from "./main.DP5LHvly.js";
|
|
23
23
|
import { jsx as jsx$1, Fragment, jsxs } from "react/jsx-runtime";
|
|
24
24
|
import * as React from "react";
|
|
25
25
|
import React__default, { useLayoutEffect, useEffect, useState, forwardRef, Suspense, useCallback, useContext, useRef, useMemo, createContext, Component, Fragment as Fragment$1, createElement, useReducer, useDebugValue, useId as useId$1, useSyncExternalStore, isValidElement, cloneElement, Children, lazy } from "react";
|
|
26
|
-
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 RunAsap, $ as logger$4, a0 as utils$4, a1 as getDefaultExportFromCjs, a2 as LOCAL, a3 as commonjsGlobal, a4 as PUBLIC, a5 as SWITCHBOARD, a6 as objectType, a7 as recordType, a8 as stringType, a9 as capitalCase, aa as CLOUD, ab as getAugmentedNamespace, ac as createZip, ad as buildSignedOperation, ae as getI18n, af as getDefaults, ag as connectConfig, ah as childLogger, ai as process, aj as setErrorHandler, ak as module, al as createBrowserDocumentDriveServer, am as createBrowserStorage, an as generateId, ao as ReadDriveNotFoundError, ap as hashDocumentStateForScope, aq as reducer$8, ar as isDocumentDrive, as as generateAddNodeAction, at as isFileNode, au as uploadDocumentOperations, av as updateFile, aw as addFolder, ax as isFolderNode, ay as deleteNode, az as updateNode, aA as moveNode, aB as generateNodesCopy, aC as copyNode, aD as setDriveName, aE as setAvailableOffline, aF as setSharingType, aG as SynchronizationUnitNotFoundError, aH as removeTrigger, aI as PullResponderTransmitter, aJ as addTrigger, aK as requestPublicDrive, aL as serviceWorkerManager, aM as packageJson, aN as t$1 } from "./app-loader-
|
|
26
|
+
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 RunAsap, $ as logger$4, a0 as utils$4, a1 as getDefaultExportFromCjs, a2 as LOCAL, a3 as commonjsGlobal, a4 as PUBLIC, a5 as SWITCHBOARD, a6 as objectType, a7 as recordType, a8 as stringType, a9 as capitalCase, aa as CLOUD, ab as getAugmentedNamespace, ac as createZip, ad as buildSignedOperation, ae as getI18n, af as getDefaults, ag as connectConfig, ah as childLogger, ai as process, aj as setErrorHandler, ak as module, al as createBrowserDocumentDriveServer, am as createBrowserStorage, an as generateId, ao as ReadDriveNotFoundError, ap as hashDocumentStateForScope, aq as reducer$8, ar as isDocumentDrive, as as generateAddNodeAction, at as isFileNode, au as uploadDocumentOperations, av as updateFile, aw as addFolder, ax as isFolderNode, ay as deleteNode, az as updateNode, aA as moveNode, aB as generateNodesCopy, aC as copyNode, aD as setDriveName, aE as setAvailableOffline, aF as setSharingType, aG as SynchronizationUnitNotFoundError, aH as removeTrigger, aI as PullResponderTransmitter, aJ as addTrigger, aK as requestPublicDrive, aL as serviceWorkerManager, aM as packageJson, aN as t$1 } from "./app-loader-Da3bAkvN.js";
|
|
27
27
|
import * as ReactDOM from "react-dom";
|
|
28
28
|
import ReactDOM__default, { createPortal } from "react-dom";
|
|
29
29
|
const setModelName = (input) => createAction("SET_MODEL_NAME", { ...input });
|
|
@@ -1464,43 +1464,49 @@ class InternalTransmitter {
|
|
|
1464
1464
|
__publicField(this, "drive");
|
|
1465
1465
|
__publicField(this, "processor");
|
|
1466
1466
|
__publicField(this, "taskQueueMethod");
|
|
1467
|
+
__publicField(this, "transmitQueue");
|
|
1467
1468
|
this.drive = drive;
|
|
1468
1469
|
this.processor = processor;
|
|
1469
1470
|
this.taskQueueMethod = taskQueueMethod === void 0 ? RunAsap.runAsap : taskQueueMethod;
|
|
1470
1471
|
}
|
|
1471
1472
|
async transmit(strands, _source) {
|
|
1472
1473
|
var _a2;
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
return {
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
return {
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1474
|
+
const task = async () => {
|
|
1475
|
+
var _a3;
|
|
1476
|
+
const updates = [];
|
|
1477
|
+
for (const strand of strands) {
|
|
1478
|
+
const operations = await __privateMethod(this, _InternalTransmitter_instances, buildInternalOperationUpdate_fn).call(this, strand);
|
|
1479
|
+
const state = ((_a3 = operations.at(-1)) == null ? void 0 : _a3.state) ?? {};
|
|
1480
|
+
updates.push({
|
|
1481
|
+
...strand,
|
|
1482
|
+
operations,
|
|
1483
|
+
state
|
|
1484
|
+
});
|
|
1485
|
+
}
|
|
1486
|
+
try {
|
|
1487
|
+
await this.processor.onStrands(updates);
|
|
1488
|
+
return strands.map(({ operations, ...s2 }) => {
|
|
1489
|
+
var _a4;
|
|
1490
|
+
return {
|
|
1491
|
+
...s2,
|
|
1492
|
+
status: "SUCCESS",
|
|
1493
|
+
revision: ((_a4 = operations.at(operations.length - 1)) == null ? void 0 : _a4.index) ?? -1
|
|
1494
|
+
};
|
|
1495
|
+
});
|
|
1496
|
+
} catch (error) {
|
|
1497
|
+
logger$4.error(error);
|
|
1498
|
+
return strands.map(({ operations, ...s2 }) => {
|
|
1499
|
+
var _a4;
|
|
1500
|
+
return {
|
|
1501
|
+
...s2,
|
|
1502
|
+
status: "ERROR",
|
|
1503
|
+
revision: (((_a4 = operations.at(0)) == null ? void 0 : _a4.index) ?? 0) - 1
|
|
1504
|
+
};
|
|
1505
|
+
});
|
|
1506
|
+
}
|
|
1507
|
+
};
|
|
1508
|
+
this.transmitQueue = ((_a2 = this.transmitQueue) == null ? void 0 : _a2.then(() => task())) ?? task();
|
|
1509
|
+
return this.transmitQueue;
|
|
1504
1510
|
}
|
|
1505
1511
|
async disconnect() {
|
|
1506
1512
|
await this.processor.onDisconnect();
|
|
@@ -23851,7 +23857,7 @@ async function call(client2, args2) {
|
|
|
23851
23857
|
} catch (err2) {
|
|
23852
23858
|
const data2 = getRevertErrorData(err2);
|
|
23853
23859
|
const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => {
|
|
23854
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
23860
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-XyzcC2OO.js");
|
|
23855
23861
|
return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 };
|
|
23856
23862
|
}, true ? __vite__mapDeps([0,1,2,3]) : void 0);
|
|
23857
23863
|
if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
|
|
@@ -57371,11 +57377,11 @@ function observe$1(effect, store = getDefaultStore()) {
|
|
|
57371
57377
|
let _connectCrypto;
|
|
57372
57378
|
async function initConnectCrypto() {
|
|
57373
57379
|
const { ConnectCrypto: ConnectCrypto2 } = await __vitePreload(async () => {
|
|
57374
|
-
const { ConnectCrypto: ConnectCrypto3 } = await import("./index-
|
|
57380
|
+
const { ConnectCrypto: ConnectCrypto3 } = await import("./index-BX6L7YIm.js");
|
|
57375
57381
|
return { ConnectCrypto: ConnectCrypto3 };
|
|
57376
57382
|
}, true ? __vite__mapDeps([4,2,1,3]) : void 0);
|
|
57377
57383
|
const { BrowserKeyStorage } = await __vitePreload(async () => {
|
|
57378
|
-
const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-
|
|
57384
|
+
const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-BX6L7YIm.js");
|
|
57379
57385
|
return { BrowserKeyStorage: BrowserKeyStorage2 };
|
|
57380
57386
|
}, true ? __vite__mapDeps([4,2,1,3]) : void 0);
|
|
57381
57387
|
const connectCrypto = new ConnectCrypto2(new BrowserKeyStorage());
|
|
@@ -57447,7 +57453,7 @@ function useRenown() {
|
|
|
57447
57453
|
return;
|
|
57448
57454
|
}
|
|
57449
57455
|
const { initRenownBrowser } = await __vitePreload(async () => {
|
|
57450
|
-
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-
|
|
57456
|
+
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-BX6L7YIm.js");
|
|
57451
57457
|
return { initRenownBrowser: initRenownBrowser2 };
|
|
57452
57458
|
}, true ? __vite__mapDeps([4,2,1,3]) : void 0);
|
|
57453
57459
|
const renownBrowser = initRenownBrowser(did2);
|
|
@@ -77198,7 +77204,7 @@ function useFileNodeDocument() {
|
|
|
77198
77204
|
);
|
|
77199
77205
|
}
|
|
77200
77206
|
async function loadBaseEditors() {
|
|
77201
|
-
const documentModelEditor = await __vitePreload(() => import("./index-
|
|
77207
|
+
const documentModelEditor = await __vitePreload(() => import("./index-CS-ArJoi.js"), true ? __vite__mapDeps([5,2,1,3]) : void 0);
|
|
77202
77208
|
await __vitePreload(() => Promise.resolve({}), true ? __vite__mapDeps([6]) : void 0);
|
|
77203
77209
|
const module2 = documentModelEditor.documentModelEditorModule;
|
|
77204
77210
|
return [module2];
|
|
@@ -119578,11 +119584,11 @@ function Fe(e2) {
|
|
|
119578
119584
|
async function Ae(e2, t2) {
|
|
119579
119585
|
let r2;
|
|
119580
119586
|
if (e2 && t2 === "nodefs") {
|
|
119581
|
-
let { NodeFS: a2 } = await __vitePreload(() => import("./nodefs-
|
|
119587
|
+
let { NodeFS: a2 } = await __vitePreload(() => import("./nodefs-DPnN6Ar0.js"), true ? __vite__mapDeps([7,1,2,3]) : void 0);
|
|
119582
119588
|
r2 = new a2(e2);
|
|
119583
119589
|
} else if (e2 && t2 === "idbfs") r2 = new ee(e2);
|
|
119584
119590
|
else if (e2 && t2 === "opfs-ahp") {
|
|
119585
|
-
let { OpfsAhpFS: a2 } = await __vitePreload(() => import("./opfs-ahp-
|
|
119591
|
+
let { OpfsAhpFS: a2 } = await __vitePreload(() => import("./opfs-ahp-CEfWDHTR.js"), true ? __vite__mapDeps([8,1,2,3]) : void 0);
|
|
119586
119592
|
r2 = new a2(e2);
|
|
119587
119593
|
} else r2 = new te();
|
|
119588
119594
|
return r2;
|
|
@@ -125494,7 +125500,7 @@ atomStore.sub(reactorAtom, () => {
|
|
|
125494
125500
|
return atomStore.get(processorManagerAtom);
|
|
125495
125501
|
});
|
|
125496
125502
|
const Router = React__default.lazy(async () => {
|
|
125497
|
-
const createRouterComponent = await __vitePreload(() => import("./router-
|
|
125503
|
+
const createRouterComponent = await __vitePreload(() => import("./router-CjiZKsCh.js").then((n2) => n2.r), true ? __vite__mapDeps([9,1,2,3]) : void 0);
|
|
125498
125504
|
const router = await createRouterComponent.default();
|
|
125499
125505
|
return { default: router };
|
|
125500
125506
|
});
|
|
@@ -125507,7 +125513,7 @@ const Preloader = () => {
|
|
|
125507
125513
|
return null;
|
|
125508
125514
|
};
|
|
125509
125515
|
const ReactorAnalyticsProvider = lazy(
|
|
125510
|
-
() => __vitePreload(() => import("./reactor-analytics-
|
|
125516
|
+
() => __vitePreload(() => import("./reactor-analytics-CC_4d7Yq.js"), true ? __vite__mapDeps([10,1,2,3]) : void 0)
|
|
125511
125517
|
);
|
|
125512
125518
|
const App = () => /* @__PURE__ */ jsx$1(React__default.StrictMode, { children: /* @__PURE__ */ jsx$1(Suspense, { fallback: /* @__PURE__ */ jsx$1(Fragment, {}), children: /* @__PURE__ */ jsxs(Provider$1, { store: atomStore, children: [
|
|
125513
125519
|
/* @__PURE__ */ jsx$1(Preloader, {}),
|
|
@@ -125708,4 +125714,4 @@ export {
|
|
|
125708
125714
|
useDocumentDrives as y,
|
|
125709
125715
|
useReadModeContext as z
|
|
125710
125716
|
};
|
|
125711
|
-
//# sourceMappingURL=app-
|
|
125717
|
+
//# sourceMappingURL=app-CfLgnxyV.js.map
|