@powerhousedao/connect 1.0.0-dev.226 → 1.0.0-dev.228
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-Dx9RAGb2.js → app-CQhZN-Ec.js} +46 -13
- package/dist/assets/{app-loader-UmUil9Cq.js → app-loader-DykYCv9Q.js} +567 -565
- package/dist/assets/{ccip-DuKCFXTI.js → ccip-Cx96FM_X.js} +3 -3
- package/dist/assets/{content-BNeFZhJK.js → content-B18Ti-EB.js} +3 -3
- package/dist/assets/{index-BPM49za2.js → index-Ba6Va6Gt.js} +3 -3
- package/dist/assets/{index-BVHPSgKi.js → index-DyYrVJC0.js} +3 -3
- package/dist/assets/{index-CUuLJlow.js → index-zi_DFjYh.js} +4 -4
- package/dist/assets/{main.BCAScifZ.js → main.D_dHa-Dm.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +8 -7
|
@@ -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-Cx96FM_X.js","assets/main.D_dHa-Dm.js","assets/app-loader-DykYCv9Q.js","assets/app-loader-9W65A3zy.css","assets/index-DyYrVJC0.js","assets/style-ICX7vBg_.css","assets/index-zi_DFjYh.js","assets/content-B18Ti-EB.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, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _client, _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.D_dHa-Dm.js";
|
|
23
23
|
import { jsxs, jsx as jsx$1, Fragment } 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 SWITCHBOARD, a3 as PUBLIC, a4 as locationInfoByLocation, a5 as sharingTypeOptions, a6 as objectType, a7 as stringType, a8 as recordType, a9 as capitalCase, aa as CLOUD, ab as createZip, ac as logger$1, ad as LZString, ae as buildSignedOperation, af as getDefaults, ag as getI18n, 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
|
|
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 SWITCHBOARD, a3 as PUBLIC, a4 as locationInfoByLocation, a5 as sharingTypeOptions, a6 as objectType, a7 as stringType, a8 as recordType, a9 as capitalCase, aa as CLOUD, ab as createZip, ac as logger$1, ad as LZString, ae as buildSignedOperation, af as getDefaults, ag as getI18n, 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-DykYCv9Q.js";
|
|
25
25
|
import * as React from "react";
|
|
26
26
|
import React__default, { forwardRef, useLayoutEffect, useEffect, useState, 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";
|
|
@@ -20206,7 +20206,7 @@ async function call(client2, args) {
|
|
|
20206
20206
|
} catch (err) {
|
|
20207
20207
|
const data2 = getRevertErrorData(err);
|
|
20208
20208
|
const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => {
|
|
20209
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
20209
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-Cx96FM_X.js");
|
|
20210
20210
|
return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 };
|
|
20211
20211
|
}, true ? __vite__mapDeps([0,1,2,3]) : void 0);
|
|
20212
20212
|
if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
|
|
@@ -68091,7 +68091,7 @@ const useFilteredDocumentModels = () => {
|
|
|
68091
68091
|
};
|
|
68092
68092
|
const LOCAL_DOCUMENT_EDITORS = window.__VITE_ENVS.LOCAL_DOCUMENT_EDITORS;
|
|
68093
68093
|
async function loadBaseEditors() {
|
|
68094
|
-
const documentModelEditor = await __vitePreload(() => import("./index-
|
|
68094
|
+
const documentModelEditor = await __vitePreload(() => import("./index-DyYrVJC0.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
|
|
68095
68095
|
await __vitePreload(() => Promise.resolve({}), true ? __vite__mapDeps([5]) : void 0);
|
|
68096
68096
|
const module = documentModelEditor.documentModelEditorModule;
|
|
68097
68097
|
return [module];
|
|
@@ -68257,11 +68257,11 @@ const connectCrypto = (async () => {
|
|
|
68257
68257
|
return window.connectCrypto;
|
|
68258
68258
|
}
|
|
68259
68259
|
const { ConnectCrypto } = await __vitePreload(async () => {
|
|
68260
|
-
const { ConnectCrypto: ConnectCrypto2 } = await import("./index-
|
|
68260
|
+
const { ConnectCrypto: ConnectCrypto2 } = await import("./index-zi_DFjYh.js");
|
|
68261
68261
|
return { ConnectCrypto: ConnectCrypto2 };
|
|
68262
68262
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
68263
68263
|
const { BrowserKeyStorage } = await __vitePreload(async () => {
|
|
68264
|
-
const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-
|
|
68264
|
+
const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-zi_DFjYh.js");
|
|
68265
68265
|
return { BrowserKeyStorage: BrowserKeyStorage2 };
|
|
68266
68266
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
68267
68267
|
const connectCrypto2 = new ConnectCrypto(new BrowserKeyStorage());
|
|
@@ -68310,7 +68310,7 @@ function useRenown() {
|
|
|
68310
68310
|
return;
|
|
68311
68311
|
}
|
|
68312
68312
|
const { initRenownBrowser } = await __vitePreload(async () => {
|
|
68313
|
-
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-
|
|
68313
|
+
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-zi_DFjYh.js");
|
|
68314
68314
|
return { initRenownBrowser: initRenownBrowser2 };
|
|
68315
68315
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
68316
68316
|
const renownBrowser = initRenownBrowser(did2);
|
|
@@ -69153,15 +69153,48 @@ function useDocumentDriveServer() {
|
|
|
69153
69153
|
);
|
|
69154
69154
|
const registerNewPullResponderTrigger = useCallback(
|
|
69155
69155
|
async (driveId, url, options2) => {
|
|
69156
|
+
var _a2, _b2, _c2, _d2;
|
|
69156
69157
|
if (!reactor) {
|
|
69157
69158
|
throw new Error("Reactor is not loaded");
|
|
69158
69159
|
}
|
|
69159
|
-
const
|
|
69160
|
+
const uuid = generateUUID();
|
|
69161
|
+
const listener = {
|
|
69160
69162
|
driveId,
|
|
69161
|
-
|
|
69162
|
-
|
|
69163
|
+
listenerId: uuid,
|
|
69164
|
+
block: false,
|
|
69165
|
+
filter: {
|
|
69166
|
+
branch: ((_a2 = options2.pullFilter) == null ? void 0 : _a2.branch) ?? [],
|
|
69167
|
+
documentId: ((_b2 = options2.pullFilter) == null ? void 0 : _b2.documentId) ?? [],
|
|
69168
|
+
documentType: ((_c2 = options2.pullFilter) == null ? void 0 : _c2.documentType) ?? [],
|
|
69169
|
+
scope: ((_d2 = options2.pullFilter) == null ? void 0 : _d2.scope) ?? []
|
|
69170
|
+
},
|
|
69171
|
+
system: false,
|
|
69172
|
+
label: `Pullresponder #${uuid}`,
|
|
69173
|
+
callInfo: {
|
|
69174
|
+
data: "",
|
|
69175
|
+
name: "PullResponder",
|
|
69176
|
+
transmitterType: "PullResponder"
|
|
69177
|
+
}
|
|
69178
|
+
};
|
|
69179
|
+
const listenerManager = reactor.listeners;
|
|
69180
|
+
listener.transmitter = new PullResponderTransmitter(
|
|
69181
|
+
listener,
|
|
69182
|
+
listenerManager
|
|
69163
69183
|
);
|
|
69164
|
-
|
|
69184
|
+
try {
|
|
69185
|
+
await listenerManager.setListener(driveId, listener);
|
|
69186
|
+
} catch (error) {
|
|
69187
|
+
throw new Error(`Listener couldn't be registered: ${error}`);
|
|
69188
|
+
}
|
|
69189
|
+
return {
|
|
69190
|
+
data: {
|
|
69191
|
+
interval: `${options2.pullInterval}` || "1000",
|
|
69192
|
+
listenerId: uuid,
|
|
69193
|
+
url
|
|
69194
|
+
},
|
|
69195
|
+
id: uuid,
|
|
69196
|
+
type: "PullResponder"
|
|
69197
|
+
};
|
|
69165
69198
|
},
|
|
69166
69199
|
[reactor]
|
|
69167
69200
|
);
|
|
@@ -76583,7 +76616,7 @@ function Home() {
|
|
|
76583
76616
|
/* @__PURE__ */ jsx$1(HomeScreenAddDriveItem, { onClick: onAddDriveClick })
|
|
76584
76617
|
] });
|
|
76585
76618
|
}
|
|
76586
|
-
const Content = React__default.lazy(() => __vitePreload(() => import("./content-
|
|
76619
|
+
const Content = React__default.lazy(() => __vitePreload(() => import("./content-B18Ti-EB.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
|
|
76587
76620
|
async function createRouter(routes) {
|
|
76588
76621
|
var _a2;
|
|
76589
76622
|
const isPackaged = await ((_a2 = window.electronAPI) == null ? void 0 : _a2.isPackaged());
|