@powerhousedao/connect 1.0.19-dev.0 → 1.0.19-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{app-CMvPXKGM.js → app-DgCWpRAi.js} +94 -86
- package/dist/assets/app-DgCWpRAi.js.map +1 -0
- package/dist/assets/{app-loader-CBJsoaTy.js → app-loader-BvmuBbHg.js} +184 -198
- package/dist/assets/app-loader-BvmuBbHg.js.map +1 -0
- package/dist/assets/{browser-C1XtII0d.js → browser-DDXfHleI.js} +4 -4
- package/dist/assets/{browser-C1XtII0d.js.map → browser-DDXfHleI.js.map} +1 -1
- package/dist/assets/{ccip-pghZxJM2.js → ccip-DpSDrBqK.js} +4 -4
- package/dist/assets/{ccip-pghZxJM2.js.map → ccip-DpSDrBqK.js.map} +1 -1
- package/dist/assets/{content-Ckphl3_k.js → content-BfmXiklP.js} +37 -10
- package/dist/assets/content-BfmXiklP.js.map +1 -0
- package/dist/assets/{index-CXW9Lig1.js → index-C6Izifpd.js} +5 -5
- package/dist/assets/{index-CXW9Lig1.js.map → index-C6Izifpd.js.map} +1 -1
- package/dist/assets/{index-Dgzoras6.js → index-CoRmasjt.js} +4 -4
- package/dist/assets/{index-Dgzoras6.js.map → index-CoRmasjt.js.map} +1 -1
- package/dist/assets/{index-BTynLKZO.js → index-CrRjMdvn.js} +4 -4
- package/dist/assets/{index-BTynLKZO.js.map → index-CrRjMdvn.js.map} +1 -1
- package/dist/assets/{main.yOd0NXUD.js → main.tB_v8aJ9.js} +2 -2
- package/dist/assets/{main.yOd0NXUD.js.map → main.tB_v8aJ9.js.map} +1 -1
- package/dist/assets/{reactor-analytics-8R1amkYi.js → reactor-analytics-CF6UOSpS.js} +4 -4
- package/dist/assets/{reactor-analytics-8R1amkYi.js.map → reactor-analytics-CF6UOSpS.js.map} +1 -1
- package/dist/assets/{router-vKaP_Iuh.js → router-CuTseNzw.js} +6 -6
- package/dist/assets/{router-vKaP_Iuh.js.map → router-CuTseNzw.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +7 -7
- package/dist/assets/app-CMvPXKGM.js.map +0 -1
- package/dist/assets/app-loader-CBJsoaTy.js.map +0 -1
- package/dist/assets/content-Ckphl3_k.js.map +0 -1
|
@@ -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-DpSDrBqK.js","assets/main.tB_v8aJ9.js","assets/app-loader-BvmuBbHg.js","assets/app-loader-B74nopv_.css","assets/index-CrRjMdvn.js","assets/style-Ce3V83BE.css","assets/index-C6Izifpd.js","assets/browser-DDXfHleI.js","assets/router-CuTseNzw.js","assets/reactor-analytics-CF6UOSpS.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 _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, _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.tB_v8aJ9.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 logger$1, $ as Icon, a0 as getDefaultExportFromCjs, a1 as LOCAL, a2 as commonjsGlobal, a3 as PUBLIC, a4 as SWITCHBOARD, a5 as locationInfoByLocation, a6 as sharingTypeOptions, a7 as objectType, a8 as recordType, a9 as stringType, aa as capitalCase, ab as CLOUD, ac as createZip, ad as LZString, ae as buildSignedOperation, af as getI18n, ag as getDefaults, ah as connectConfig, ai as hashDocumentStateForScope, aj as getAugmentedNamespace, ak as process, al as setErrorHandler, am as driveDocumentModelModule, an 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 logger$1, $ as Icon, a0 as getDefaultExportFromCjs, a1 as LOCAL, a2 as commonjsGlobal, a3 as PUBLIC, a4 as SWITCHBOARD, a5 as locationInfoByLocation, a6 as sharingTypeOptions, a7 as objectType, a8 as recordType, a9 as stringType, aa as capitalCase, ab as CLOUD, ac as createZip, ad as LZString, ae as buildSignedOperation, af as getI18n, ag as getDefaults, ah as connectConfig, ai as hashDocumentStateForScope, aj as getAugmentedNamespace, ak as process, al as setErrorHandler, am as driveDocumentModelModule, an as createBrowserStorage, ao as createBrowserDocumentDriveServer, ap as hashKey$1, aq as childLogger, ar as reducer$8, as as isDocumentDrive, at as generateAddNodeAction, au as isFileNode, av as uploadDocumentOperations, aw as updateFile, ax as addFolder, ay as isFolderNode, az as deleteNode, aA as updateNode, aB as FILE$1, aC as moveNode, aD as generateNodesCopy, aE as copyNode, aF as createState$1, aG as setDriveName, aH as setAvailableOffline, aI as setSharingType, aJ as SynchronizationUnitNotFoundError, aK as removeTrigger, aL as generateUUID, aM as PullResponderTransmitter, aN as addTrigger, aO as ReadDriveNotFoundError, aP as openUrl, aQ as getNodeOptions, aR as DRIVE$1, aS as FOLDER, aT as requestPublicDrive, aU as serviceWorkerManager, aV as packageJson, aW as t$1, aX as generateId } from "./app-loader-BvmuBbHg.js";
|
|
25
25
|
import * as React from "react";
|
|
26
26
|
import React__default, { useLayoutEffect, useEffect, useState, forwardRef, useCallback, useContext, useRef, useMemo, createContext, Component, Fragment as Fragment$1, createElement, useId as useId$1, useSyncExternalStore, isValidElement, cloneElement, Children, useReducer, useDebugValue, Suspense, lazy } from "react";
|
|
27
27
|
import * as ReactDOM from "react-dom";
|
|
@@ -1501,8 +1501,7 @@ class InternalTransmitter {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
1503
|
async disconnect() {
|
|
1504
|
-
|
|
1505
|
-
await ((_a2 = this.processor) == null ? void 0 : _a2.onDisconnect());
|
|
1504
|
+
await this.processor.onDisconnect();
|
|
1506
1505
|
}
|
|
1507
1506
|
}
|
|
1508
1507
|
_InternalTransmitter_instances = new WeakSet();
|
|
@@ -20581,7 +20580,7 @@ async function call(client2, args) {
|
|
|
20581
20580
|
} catch (err) {
|
|
20582
20581
|
const data2 = getRevertErrorData(err);
|
|
20583
20582
|
const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => {
|
|
20584
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
20583
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-DpSDrBqK.js");
|
|
20585
20584
|
return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 };
|
|
20586
20585
|
}, true ? __vite__mapDeps([0,1,2,3]) : void 0);
|
|
20587
20586
|
if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
|
|
@@ -72535,7 +72534,9 @@ const useDriveEditor = (editorId) => {
|
|
|
72535
72534
|
return (_a2 = pkg2.manifest.apps) == null ? void 0 : _a2.find((app2) => app2.driveEditor === editorId);
|
|
72536
72535
|
}
|
|
72537
72536
|
);
|
|
72538
|
-
return pkg == null ? void 0 : pkg.editors.find(
|
|
72537
|
+
return pkg == null ? void 0 : pkg.editors.find(
|
|
72538
|
+
(editor) => editor.config.id === editorId
|
|
72539
|
+
);
|
|
72539
72540
|
}, [externalPackages, editorId]);
|
|
72540
72541
|
};
|
|
72541
72542
|
const baseDocumentModels = [
|
|
@@ -72610,7 +72611,7 @@ const useFilteredDocumentModels = () => {
|
|
|
72610
72611
|
return filteredDocumentModels;
|
|
72611
72612
|
};
|
|
72612
72613
|
async function loadBaseEditors() {
|
|
72613
|
-
const documentModelEditor = await __vitePreload(() => import("./index-
|
|
72614
|
+
const documentModelEditor = await __vitePreload(() => import("./index-CrRjMdvn.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
|
|
72614
72615
|
await __vitePreload(() => Promise.resolve({}), true ? __vite__mapDeps([5]) : void 0);
|
|
72615
72616
|
const module = documentModelEditor.documentModelEditorModule;
|
|
72616
72617
|
return [module];
|
|
@@ -72669,16 +72670,18 @@ async function initReactor(reactor) {
|
|
|
72669
72670
|
}
|
|
72670
72671
|
async function createReactor() {
|
|
72671
72672
|
var _a2;
|
|
72673
|
+
const storage = atomStore.get(storageAtom);
|
|
72672
72674
|
const documentModels = await atomStore.get(documentModelsAtom);
|
|
72673
|
-
const server = ((_a2 = window.electronAPI) == null ? void 0 : _a2.documentDrive) ?? createBrowserDocumentDriveServer(
|
|
72674
|
-
documentModels,
|
|
72675
|
-
connectConfig.routerBasename
|
|
72676
|
-
);
|
|
72675
|
+
const server = ((_a2 = window.electronAPI) == null ? void 0 : _a2.documentDrive) ?? createBrowserDocumentDriveServer(documentModels, storage);
|
|
72677
72676
|
await initReactor(server);
|
|
72678
72677
|
return server;
|
|
72679
72678
|
}
|
|
72680
|
-
const
|
|
72679
|
+
const storageAtom = atom(createBrowserStorage(connectConfig.routerBasename));
|
|
72680
|
+
const reactorAtom = atomWithLazy(
|
|
72681
|
+
() => createReactor()
|
|
72682
|
+
);
|
|
72681
72683
|
const unwrappedReactor = unwrap(reactorAtom);
|
|
72684
|
+
const useDocumentAdminStorage = () => useAtomValue(storageAtom);
|
|
72682
72685
|
const useUnwrappedReactor = () => useAtomValue(unwrappedReactor);
|
|
72683
72686
|
const useAsyncReactor = () => useAtomValue(reactorAsyncAtom);
|
|
72684
72687
|
const reactorAsyncAtom = atom(void 0);
|
|
@@ -72761,11 +72764,11 @@ const connectCrypto = (async () => {
|
|
|
72761
72764
|
return window.connectCrypto;
|
|
72762
72765
|
}
|
|
72763
72766
|
const { ConnectCrypto: ConnectCrypto2 } = await __vitePreload(async () => {
|
|
72764
|
-
const { ConnectCrypto: ConnectCrypto3 } = await import("./index-
|
|
72767
|
+
const { ConnectCrypto: ConnectCrypto3 } = await import("./index-C6Izifpd.js");
|
|
72765
72768
|
return { ConnectCrypto: ConnectCrypto3 };
|
|
72766
72769
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
72767
72770
|
const { BrowserKeyStorage: BrowserKeyStorage2 } = await __vitePreload(async () => {
|
|
72768
|
-
const { BrowserKeyStorage: BrowserKeyStorage3 } = await import("./index-
|
|
72771
|
+
const { BrowserKeyStorage: BrowserKeyStorage3 } = await import("./index-C6Izifpd.js");
|
|
72769
72772
|
return { BrowserKeyStorage: BrowserKeyStorage3 };
|
|
72770
72773
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
72771
72774
|
const connectCrypto2 = new ConnectCrypto2(new BrowserKeyStorage2());
|
|
@@ -72814,7 +72817,7 @@ function useRenown() {
|
|
|
72814
72817
|
return;
|
|
72815
72818
|
}
|
|
72816
72819
|
const { initRenownBrowser } = await __vitePreload(async () => {
|
|
72817
|
-
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-
|
|
72820
|
+
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-C6Izifpd.js");
|
|
72818
72821
|
return { initRenownBrowser: initRenownBrowser2 };
|
|
72819
72822
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
72820
72823
|
const renownBrowser = initRenownBrowser(did2);
|
|
@@ -73123,6 +73126,7 @@ function useDocumentDriveServer() {
|
|
|
73123
73126
|
const connectDid = useConnectDid();
|
|
73124
73127
|
const { sign } = useConnectCrypto();
|
|
73125
73128
|
const reactor = useUnwrappedReactor();
|
|
73129
|
+
const storage = useDocumentAdminStorage();
|
|
73126
73130
|
const getDocumentModelModule2 = useGetDocumentModelModule();
|
|
73127
73131
|
const [documentDrives, refreshDocumentDrives, , documentDrivesStatus] = useDocumentDrives$1();
|
|
73128
73132
|
const openFile = useCallback(
|
|
@@ -73635,9 +73639,9 @@ function useDocumentDriveServer() {
|
|
|
73635
73639
|
if (!reactor) {
|
|
73636
73640
|
return;
|
|
73637
73641
|
}
|
|
73638
|
-
await
|
|
73642
|
+
await storage.clear();
|
|
73639
73643
|
await refreshDocumentDrives();
|
|
73640
|
-
}, [refreshDocumentDrives, reactor]);
|
|
73644
|
+
}, [refreshDocumentDrives, reactor, storage]);
|
|
73641
73645
|
const handleRemoveTrigger = useCallback(
|
|
73642
73646
|
async (driveId, triggerId) => {
|
|
73643
73647
|
const drive = await _addDriveOperation(
|
|
@@ -87690,6 +87694,31 @@ function useAnalyticsEngine() {
|
|
|
87690
87694
|
}
|
|
87691
87695
|
return context.engine;
|
|
87692
87696
|
}
|
|
87697
|
+
async function createAnalyticsStore() {
|
|
87698
|
+
const { BrowserAnalyticsStore } = await __vitePreload(async () => {
|
|
87699
|
+
const { BrowserAnalyticsStore: BrowserAnalyticsStore2 } = await import("./browser-DDXfHleI.js");
|
|
87700
|
+
return { BrowserAnalyticsStore: BrowserAnalyticsStore2 };
|
|
87701
|
+
}, true ? __vite__mapDeps([7,2,1,3]) : void 0);
|
|
87702
|
+
const store = new BrowserAnalyticsStore({
|
|
87703
|
+
databaseName: `${connectConfig.routerBasename}:analytics`
|
|
87704
|
+
});
|
|
87705
|
+
await store.init();
|
|
87706
|
+
return store;
|
|
87707
|
+
}
|
|
87708
|
+
const analyticsStoreAtom = atomWithLazy(createAnalyticsStore);
|
|
87709
|
+
const unwrappedAnalyticsStore = unwrap(analyticsStoreAtom);
|
|
87710
|
+
const useUnwrappedAnalyticsStore = () => useAtomValue(unwrappedAnalyticsStore);
|
|
87711
|
+
const analyticsAsyncAtom = atom(void 0);
|
|
87712
|
+
analyticsAsyncAtom.onMount = (setAtom) => {
|
|
87713
|
+
const baseOnMount = analyticsStoreAtom.onMount;
|
|
87714
|
+
analyticsStoreAtom.onMount = (setStoreAtom) => {
|
|
87715
|
+
setStoreAtom((storePromise) => {
|
|
87716
|
+
storePromise.then((store) => setAtom(store)).catch(console.error);
|
|
87717
|
+
return storePromise;
|
|
87718
|
+
});
|
|
87719
|
+
return baseOnMount == null ? void 0 : baseOnMount(setStoreAtom);
|
|
87720
|
+
};
|
|
87721
|
+
};
|
|
87693
87722
|
function diffDocumentStates(doc1, doc2) {
|
|
87694
87723
|
const changes = [];
|
|
87695
87724
|
const globalChanges = diffStateObjects(doc1, doc2, "state.global", "global");
|
|
@@ -87817,9 +87846,11 @@ function diffStateStrings(str1, str2, path, scope) {
|
|
|
87817
87846
|
return changes;
|
|
87818
87847
|
}
|
|
87819
87848
|
class DiffAnalyticsProcessor {
|
|
87820
|
-
constructor(analyticsStore) {
|
|
87849
|
+
constructor(analyticsStore, logger2 = childLogger(["processor", "diff-analytics"])) {
|
|
87821
87850
|
__publicField(this, "analyticsStore");
|
|
87851
|
+
__publicField(this, "logger");
|
|
87822
87852
|
this.analyticsStore = analyticsStore;
|
|
87853
|
+
this.logger = logger2;
|
|
87823
87854
|
}
|
|
87824
87855
|
async onStrands(strands) {
|
|
87825
87856
|
if (strands.length === 0) {
|
|
@@ -87842,7 +87873,9 @@ class DiffAnalyticsProcessor {
|
|
|
87842
87873
|
}
|
|
87843
87874
|
}
|
|
87844
87875
|
}
|
|
87845
|
-
|
|
87876
|
+
if (inputs.length) {
|
|
87877
|
+
await this.analyticsStore.addSeriesValues(inputs);
|
|
87878
|
+
}
|
|
87846
87879
|
}
|
|
87847
87880
|
async onDisconnect() {
|
|
87848
87881
|
}
|
|
@@ -87850,7 +87883,7 @@ class DiffAnalyticsProcessor {
|
|
|
87850
87883
|
try {
|
|
87851
87884
|
await this.analyticsStore.clearSeriesBySource(source, true);
|
|
87852
87885
|
} catch (e2) {
|
|
87853
|
-
|
|
87886
|
+
this.logger.error("Failed to clear source", e2);
|
|
87854
87887
|
}
|
|
87855
87888
|
}
|
|
87856
87889
|
generateInput(documentId, branch, scope, revision, type, value, source, timestamp, path) {
|
|
@@ -87954,31 +87987,6 @@ class ProcessorManager {
|
|
|
87954
87987
|
}
|
|
87955
87988
|
}
|
|
87956
87989
|
}
|
|
87957
|
-
async function createAnalyticsStore() {
|
|
87958
|
-
const { BrowserAnalyticsStore } = await __vitePreload(async () => {
|
|
87959
|
-
const { BrowserAnalyticsStore: BrowserAnalyticsStore2 } = await import("./browser-C1XtII0d.js");
|
|
87960
|
-
return { BrowserAnalyticsStore: BrowserAnalyticsStore2 };
|
|
87961
|
-
}, true ? __vite__mapDeps([7,2,1,3]) : void 0);
|
|
87962
|
-
const store = new BrowserAnalyticsStore({
|
|
87963
|
-
databaseName: `${connectConfig.routerBasename}:analytics`
|
|
87964
|
-
});
|
|
87965
|
-
await store.init();
|
|
87966
|
-
return store;
|
|
87967
|
-
}
|
|
87968
|
-
const analyticsStoreAtom = atomWithLazy(createAnalyticsStore);
|
|
87969
|
-
const unwrappedAnalyticsStore = unwrap(analyticsStoreAtom);
|
|
87970
|
-
const useUnwrappedAnalyticsStore = () => useAtomValue(unwrappedAnalyticsStore);
|
|
87971
|
-
const analyticsAsyncAtom = atom(void 0);
|
|
87972
|
-
analyticsAsyncAtom.onMount = (setAtom) => {
|
|
87973
|
-
const baseOnMount = analyticsStoreAtom.onMount;
|
|
87974
|
-
analyticsStoreAtom.onMount = (setStoreAtom) => {
|
|
87975
|
-
setStoreAtom((storePromise) => {
|
|
87976
|
-
storePromise.then((store) => setAtom(store)).catch(console.error);
|
|
87977
|
-
return storePromise;
|
|
87978
|
-
});
|
|
87979
|
-
return baseOnMount == null ? void 0 : baseOnMount(setStoreAtom);
|
|
87980
|
-
};
|
|
87981
|
-
};
|
|
87982
87990
|
async function createProcessorManager() {
|
|
87983
87991
|
const reactor = await atomStore.get(reactorAtom);
|
|
87984
87992
|
const analyticsStore = await atomStore.get(analyticsStoreAtom);
|
|
@@ -88002,7 +88010,7 @@ atomStore.sub(reactorAtom, () => {
|
|
|
88002
88010
|
return atomStore.get(processorManagerAtom);
|
|
88003
88011
|
});
|
|
88004
88012
|
const Router = React__default.lazy(async () => {
|
|
88005
|
-
const createRouterComponent = await __vitePreload(() => import("./router-
|
|
88013
|
+
const createRouterComponent = await __vitePreload(() => import("./router-CuTseNzw.js").then((n2) => n2.r), true ? __vite__mapDeps([8,1,2,3]) : void 0);
|
|
88006
88014
|
const router = await createRouterComponent.default();
|
|
88007
88015
|
return { default: router };
|
|
88008
88016
|
});
|
|
@@ -88014,7 +88022,7 @@ const Preloader = () => {
|
|
|
88014
88022
|
return null;
|
|
88015
88023
|
};
|
|
88016
88024
|
const ReactorAnalyticsProvider = lazy(
|
|
88017
|
-
() => __vitePreload(() => import("./reactor-analytics-
|
|
88025
|
+
() => __vitePreload(() => import("./reactor-analytics-CF6UOSpS.js"), true ? __vite__mapDeps([9,1,2,3]) : void 0)
|
|
88018
88026
|
);
|
|
88019
88027
|
const App = () => /* @__PURE__ */ jsx$1(React__default.StrictMode, { children: /* @__PURE__ */ jsx$1(Suspense, { fallback: /* @__PURE__ */ jsx$1(Fragment, {}), children: /* @__PURE__ */ jsxs(Provider, { store: atomStore, children: [
|
|
88020
88028
|
/* @__PURE__ */ jsx$1(Preloader, {}),
|
|
@@ -88078,24 +88086,24 @@ export {
|
|
|
88078
88086
|
encodeDIDfromHexString as a7,
|
|
88079
88087
|
RENOWN_URL as a8,
|
|
88080
88088
|
getEnsInfo as a9,
|
|
88081
|
-
|
|
88082
|
-
|
|
88083
|
-
|
|
88084
|
-
|
|
88085
|
-
|
|
88086
|
-
|
|
88087
|
-
|
|
88088
|
-
|
|
88089
|
-
|
|
88090
|
-
|
|
88091
|
-
|
|
88092
|
-
|
|
88093
|
-
|
|
88094
|
-
|
|
88095
|
-
|
|
88096
|
-
|
|
88097
|
-
|
|
88098
|
-
|
|
88089
|
+
setModelId as aA,
|
|
88090
|
+
setModelDescription as aB,
|
|
88091
|
+
setModelExtension as aC,
|
|
88092
|
+
setAuthorName as aD,
|
|
88093
|
+
setAuthorWebsite as aE,
|
|
88094
|
+
setStateSchema as aF,
|
|
88095
|
+
setInitialState as aG,
|
|
88096
|
+
addModule as aH,
|
|
88097
|
+
setModuleName as aI,
|
|
88098
|
+
deleteModule as aJ,
|
|
88099
|
+
addOperation as aK,
|
|
88100
|
+
setOperationName as aL,
|
|
88101
|
+
setOperationSchema as aM,
|
|
88102
|
+
setOperationDescription as aN,
|
|
88103
|
+
deleteOperation as aO,
|
|
88104
|
+
addOperationError as aP,
|
|
88105
|
+
deleteOperationError as aQ,
|
|
88106
|
+
setOperationErrorName as aR,
|
|
88099
88107
|
BaseError$3 as aS,
|
|
88100
88108
|
getUrl as aT,
|
|
88101
88109
|
stringify$1 as aU,
|
|
@@ -88112,25 +88120,25 @@ export {
|
|
|
88112
88120
|
RENOWN_NETWORK_ID as ae,
|
|
88113
88121
|
RENOWN_CHAIN_ID as af,
|
|
88114
88122
|
getChain as ag,
|
|
88115
|
-
|
|
88116
|
-
|
|
88117
|
-
|
|
88118
|
-
|
|
88119
|
-
|
|
88120
|
-
|
|
88121
|
-
|
|
88122
|
-
|
|
88123
|
-
|
|
88124
|
-
|
|
88125
|
-
|
|
88126
|
-
|
|
88127
|
-
|
|
88128
|
-
|
|
88129
|
-
|
|
88130
|
-
|
|
88131
|
-
|
|
88132
|
-
|
|
88133
|
-
|
|
88123
|
+
DateTime as ah,
|
|
88124
|
+
AnalyticsPath as ai,
|
|
88125
|
+
PassthroughAnalyticsProfiler as aj,
|
|
88126
|
+
clsx as ak,
|
|
88127
|
+
get as al,
|
|
88128
|
+
set as am,
|
|
88129
|
+
appendErrors as an,
|
|
88130
|
+
useFormContext as ao,
|
|
88131
|
+
Primitive as ap,
|
|
88132
|
+
cva as aq,
|
|
88133
|
+
FormProvider as ar,
|
|
88134
|
+
Controller as as,
|
|
88135
|
+
Slot as at,
|
|
88136
|
+
useForm as au,
|
|
88137
|
+
Root2 as av,
|
|
88138
|
+
List as aw,
|
|
88139
|
+
Trigger as ax,
|
|
88140
|
+
Content$1 as ay,
|
|
88141
|
+
setModelName as az,
|
|
88134
88142
|
PopoverContent as b,
|
|
88135
88143
|
mergeClassNameProps as b0,
|
|
88136
88144
|
MISSING as b1,
|
|
@@ -88200,4 +88208,4 @@ export {
|
|
|
88200
88208
|
useRoutesImpl as y,
|
|
88201
88209
|
mapRouteProperties as z
|
|
88202
88210
|
};
|
|
88203
|
-
//# sourceMappingURL=app-
|
|
88211
|
+
//# sourceMappingURL=app-DgCWpRAi.js.map
|