@powerhousedao/connect 1.0.0-dev.246 → 1.0.0-dev.247
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-BT03qzg4.js → app-Bjaniq_f.js} +9 -9
- package/dist/assets/{app-loader-Cp_C_kSQ.js → app-loader-CnDRDKWw.js} +206 -185
- package/dist/assets/{ccip-rCu2dOKk.js → ccip-BIN6bp0k.js} +3 -3
- package/dist/assets/{content-B1RXkSXz.js → content-CT8IEBqv.js} +3 -3
- package/dist/assets/{index-a5VEmfQw.js → index-BaBnabbX.js} +4 -4
- package/dist/assets/{index-DX2bXpNe.js → index-BeBd0Q5I.js} +3 -3
- package/dist/assets/{index-CJbQZ7hP.js → index-CWxXMTAJ.js} +3 -3
- package/dist/assets/{main.Hm4UID1Z.js → main.DonDJ7tf.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-XXFOSD4A.js → chunk-6MBHOHAA.js} +1 -1
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-YDERCA5J.js → chunk-IC6B3767.js} +1 -1
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-A4GIWVYS.js → chunk-N5UNGAA6.js} +94 -74
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-UP4DC4D2.js → chunk-OYYVE7RP.js} +1 -1
- package/dist/modules/@powerhousedao/reactor-browser/{chunk-PQ4UODLR.js → chunk-UDKYG6I4.js} +1 -1
- package/dist/modules/@powerhousedao/reactor-browser/context/index.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/context/read-mode.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/hooks/index.js +3 -3
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActions.js +2 -2
- package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes.js +3 -3
- package/dist/modules/@powerhousedao/reactor-browser/index.js +5 -5
- package/dist/modules/@powerhousedao/reactor-browser/reactor.js +2 -2
- package/dist/vite-envs.sh +1 -1
- package/package.json +7 -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-BIN6bp0k.js","assets/main.DonDJ7tf.js","assets/app-loader-CnDRDKWw.js","assets/app-loader-Bnp0H-wa.css","assets/index-BeBd0Q5I.js","assets/style-D4JhTt_m.css","assets/index-BaBnabbX.js","assets/content-CT8IEBqv.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __typeError = (msg) => {
|
|
4
4
|
throw TypeError(msg);
|
|
@@ -19,9 +19,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e2, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _i;
|
|
22
|
-
import { _ as __vitePreload } from "./main.
|
|
22
|
+
import { _ as __vitePreload } from "./main.DonDJ7tf.js";
|
|
23
23
|
import { jsx as jsx$1, Fragment, jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { c as createAction, a as createReducer, i as isDocumentAction, R as ReorderStateExamplesInputSchema, D as DeleteStateExampleInputSchema, U as UpdateStateExampleInputSchema, A as AddStateExampleInputSchema, S as SetInitialStateInputSchema, b as SetStateSchemaInputSchema, d as ReorderModuleOperationsInputSchema, e as DeleteOperationInputSchema, M as MoveOperationInputSchema, f as SetOperationReducerInputSchema, g as SetOperationTemplateInputSchema, h as SetOperationDescriptionInputSchema, j as SetOperationSchemaInputSchema, k as SetOperationScopeInputSchema, l as SetOperationNameInputSchema, m as AddOperationInputSchema, n as ReorderOperationExamplesInputSchema, o as DeleteOperationExampleInputSchema, p as UpdateOperationExampleInputSchema, q as AddOperationExampleInputSchema, r as ReorderOperationErrorsInputSchema, s as DeleteOperationErrorInputSchema, t as SetOperationErrorTemplateInputSchema, u as SetOperationErrorDescriptionInputSchema, v as SetOperationErrorNameInputSchema, w as SetOperationErrorCodeInputSchema, x as AddOperationErrorInputSchema, y as ReorderModulesInputSchema, z as DeleteModuleInputSchema, B as SetModuleDescriptionInputSchema, C as SetModuleNameInputSchema, E as AddModuleInputSchema, F as ReorderChangeLogItemsInputSchema, G as DeleteChangeLogItemInputSchema, H as UpdateChangeLogItemInputSchema, I as AddChangeLogItemInputSchema, J as SetAuthorWebsiteInputSchema, K as SetAuthorNameInputSchema, L as SetModelDescriptionInputSchema, N as SetModelExtensionInputSchema, O as SetModelIdInputSchema, P as SetModelNameInputSchema, Q as baseCreateExtendedState, T as baseCreateDocument, V as baseSaveToFile, W as baseSaveToFileHandle, X as baseLoadFromFile, Y as baseLoadFromInput, Z as pascalCase, _ as Icon, $ as getDefaultExportFromCjs, a0 as LOCAL, a1 as commonjsGlobal, a2 as PUBLIC, a3 as SWITCHBOARD, a4 as locationInfoByLocation, a5 as sharingTypeOptions, a6 as objectType, a7 as recordType, a8 as stringType, a9 as capitalCase, aa as CLOUD, ab as createZip, ac as logger$1, ad as LZString, ae as buildSignedOperation, af as getI18n, ag as getDefaults, ah as connectConfig, ai as hashDocumentStateForScope, aj as setErrorHandler, ak as driveDocumentModelModule, al as createBrowserDocumentDriveServer, am as hashKey$1, an as childLogger, ao as reducer$8, ap as isDocumentDrive, aq as generateAddNodeAction, ar as isFileNode, as as uploadDocumentOperations, at as updateFile, au as addFolder, av as isFolderNode, aw as deleteNode, ax as updateNode, ay as FILE, az as moveNode, aA as generateNodesCopy, aB as copyNode, aC as createState$1, aD as setDriveName, aE as setAvailableOffline, aF as setSharingType, aG as SynchronizationUnitNotFoundError, aH as removeTrigger, aI as generateUUID, aJ as PullResponderTransmitter, aK as addTrigger, aL as ReadDriveNotFoundError, aM as openUrl, aN as getNodeOptions, aO as DRIVE, aP as FOLDER, aQ as requestPublicDrive, aR as serviceWorkerManager, aS as packageJson, aT as t$1, aU as gql, aV as request } from "./app-loader-
|
|
24
|
+
import { c as createAction, a as createReducer, i as isDocumentAction, R as ReorderStateExamplesInputSchema, D as DeleteStateExampleInputSchema, U as UpdateStateExampleInputSchema, A as AddStateExampleInputSchema, S as SetInitialStateInputSchema, b as SetStateSchemaInputSchema, d as ReorderModuleOperationsInputSchema, e as DeleteOperationInputSchema, M as MoveOperationInputSchema, f as SetOperationReducerInputSchema, g as SetOperationTemplateInputSchema, h as SetOperationDescriptionInputSchema, j as SetOperationSchemaInputSchema, k as SetOperationScopeInputSchema, l as SetOperationNameInputSchema, m as AddOperationInputSchema, n as ReorderOperationExamplesInputSchema, o as DeleteOperationExampleInputSchema, p as UpdateOperationExampleInputSchema, q as AddOperationExampleInputSchema, r as ReorderOperationErrorsInputSchema, s as DeleteOperationErrorInputSchema, t as SetOperationErrorTemplateInputSchema, u as SetOperationErrorDescriptionInputSchema, v as SetOperationErrorNameInputSchema, w as SetOperationErrorCodeInputSchema, x as AddOperationErrorInputSchema, y as ReorderModulesInputSchema, z as DeleteModuleInputSchema, B as SetModuleDescriptionInputSchema, C as SetModuleNameInputSchema, E as AddModuleInputSchema, F as ReorderChangeLogItemsInputSchema, G as DeleteChangeLogItemInputSchema, H as UpdateChangeLogItemInputSchema, I as AddChangeLogItemInputSchema, J as SetAuthorWebsiteInputSchema, K as SetAuthorNameInputSchema, L as SetModelDescriptionInputSchema, N as SetModelExtensionInputSchema, O as SetModelIdInputSchema, P as SetModelNameInputSchema, Q as baseCreateExtendedState, T as baseCreateDocument, V as baseSaveToFile, W as baseSaveToFileHandle, X as baseLoadFromFile, Y as baseLoadFromInput, Z as pascalCase, _ as Icon, $ as getDefaultExportFromCjs, a0 as LOCAL, a1 as commonjsGlobal, a2 as PUBLIC, a3 as SWITCHBOARD, a4 as locationInfoByLocation, a5 as sharingTypeOptions, a6 as objectType, a7 as recordType, a8 as stringType, a9 as capitalCase, aa as CLOUD, ab as createZip, ac as logger$1, ad as LZString, ae as buildSignedOperation, af as getI18n, ag as getDefaults, ah as connectConfig, ai as hashDocumentStateForScope, aj as setErrorHandler, ak as driveDocumentModelModule, al as createBrowserDocumentDriveServer, am as hashKey$1, an as childLogger, ao as reducer$8, ap as isDocumentDrive, aq as generateAddNodeAction, ar as isFileNode, as as uploadDocumentOperations, at as updateFile, au as addFolder, av as isFolderNode, aw as deleteNode, ax as updateNode, ay as FILE, az as moveNode, aA as generateNodesCopy, aB as copyNode, aC as createState$1, aD as setDriveName, aE as setAvailableOffline, aF as setSharingType, aG as SynchronizationUnitNotFoundError, aH as removeTrigger, aI as generateUUID, aJ as PullResponderTransmitter, aK as addTrigger, aL as ReadDriveNotFoundError, aM as openUrl, aN as getNodeOptions, aO as DRIVE, aP as FOLDER, aQ as requestPublicDrive, aR as serviceWorkerManager, aS as packageJson, aT as t$1, aU as gql, aV as request } from "./app-loader-CnDRDKWw.js";
|
|
25
25
|
import * as React from "react";
|
|
26
26
|
import React__default, { useLayoutEffect, useEffect, useState, forwardRef, useRef, useCallback, useContext, useMemo, createContext, Component, Fragment as Fragment$1, createElement, useSyncExternalStore, useId as useId$1, isValidElement, cloneElement, Children, useReducer, useDebugValue, Suspense } from "react";
|
|
27
27
|
import "@powerhousedao/reactor-browser";
|
|
@@ -20571,7 +20571,7 @@ async function call(client2, args) {
|
|
|
20571
20571
|
} catch (err) {
|
|
20572
20572
|
const data2 = getRevertErrorData(err);
|
|
20573
20573
|
const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => {
|
|
20574
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
20574
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-BIN6bp0k.js");
|
|
20575
20575
|
return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 };
|
|
20576
20576
|
}, true ? __vite__mapDeps([0,1,2,3]) : void 0);
|
|
20577
20577
|
if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
|
|
@@ -70596,7 +70596,7 @@ const useFilteredDocumentModels = () => {
|
|
|
70596
70596
|
return filteredDocumentModels;
|
|
70597
70597
|
};
|
|
70598
70598
|
async function loadBaseEditors() {
|
|
70599
|
-
const documentModelEditor = await __vitePreload(() => import("./index-
|
|
70599
|
+
const documentModelEditor = await __vitePreload(() => import("./index-BeBd0Q5I.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
|
|
70600
70600
|
await __vitePreload(() => Promise.resolve({}), true ? __vite__mapDeps([5]) : void 0);
|
|
70601
70601
|
const module = documentModelEditor.documentModelEditorModule;
|
|
70602
70602
|
return [module];
|
|
@@ -70747,11 +70747,11 @@ const connectCrypto = (async () => {
|
|
|
70747
70747
|
return window.connectCrypto;
|
|
70748
70748
|
}
|
|
70749
70749
|
const { ConnectCrypto } = await __vitePreload(async () => {
|
|
70750
|
-
const { ConnectCrypto: ConnectCrypto2 } = await import("./index-
|
|
70750
|
+
const { ConnectCrypto: ConnectCrypto2 } = await import("./index-BaBnabbX.js");
|
|
70751
70751
|
return { ConnectCrypto: ConnectCrypto2 };
|
|
70752
70752
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
70753
70753
|
const { BrowserKeyStorage } = await __vitePreload(async () => {
|
|
70754
|
-
const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-
|
|
70754
|
+
const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-BaBnabbX.js");
|
|
70755
70755
|
return { BrowserKeyStorage: BrowserKeyStorage2 };
|
|
70756
70756
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
70757
70757
|
const connectCrypto2 = new ConnectCrypto(new BrowserKeyStorage());
|
|
@@ -70800,7 +70800,7 @@ function useRenown() {
|
|
|
70800
70800
|
return;
|
|
70801
70801
|
}
|
|
70802
70802
|
const { initRenownBrowser } = await __vitePreload(async () => {
|
|
70803
|
-
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-
|
|
70803
|
+
const { initRenownBrowser: initRenownBrowser2 } = await import("./index-BaBnabbX.js");
|
|
70804
70804
|
return { initRenownBrowser: initRenownBrowser2 };
|
|
70805
70805
|
}, true ? __vite__mapDeps([6,1,2,3]) : void 0);
|
|
70806
70806
|
const renownBrowser = initRenownBrowser(did2);
|
|
@@ -79121,7 +79121,7 @@ function Home() {
|
|
|
79121
79121
|
/* @__PURE__ */ jsx$1(HomeScreenAddDriveItem, { onClick: onAddDriveClick })
|
|
79122
79122
|
] });
|
|
79123
79123
|
}
|
|
79124
|
-
const Content = React__default.lazy(() => __vitePreload(() => import("./content-
|
|
79124
|
+
const Content = React__default.lazy(() => __vitePreload(() => import("./content-CT8IEBqv.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
|
|
79125
79125
|
async function createRouter(routes) {
|
|
79126
79126
|
var _a2;
|
|
79127
79127
|
const isPackaged = await ((_a2 = window.electronAPI) == null ? void 0 : _a2.isPackaged());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-Bjaniq_f.js","assets/main.DonDJ7tf.js","assets/app-D9QJBr8i.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.DonDJ7tf.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) {
|
|
@@ -22786,6 +22786,187 @@ __publicField(_PullResponderTransmitter, "staticLogger", childLogger([
|
|
|
22786
22786
|
"static"
|
|
22787
22787
|
]));
|
|
22788
22788
|
let PullResponderTransmitter = _PullResponderTransmitter;
|
|
22789
|
+
var defaults;
|
|
22790
|
+
var hasRequiredDefaults;
|
|
22791
|
+
function requireDefaults() {
|
|
22792
|
+
if (hasRequiredDefaults) return defaults;
|
|
22793
|
+
hasRequiredDefaults = 1;
|
|
22794
|
+
defaults = {
|
|
22795
|
+
space: "",
|
|
22796
|
+
cycles: false,
|
|
22797
|
+
replacer: (k, v) => v,
|
|
22798
|
+
stringify: JSON.stringify
|
|
22799
|
+
};
|
|
22800
|
+
return defaults;
|
|
22801
|
+
}
|
|
22802
|
+
var util;
|
|
22803
|
+
var hasRequiredUtil;
|
|
22804
|
+
function requireUtil() {
|
|
22805
|
+
if (hasRequiredUtil) return util;
|
|
22806
|
+
hasRequiredUtil = 1;
|
|
22807
|
+
util = {
|
|
22808
|
+
isArray: Array.isArray,
|
|
22809
|
+
assign: Object.assign,
|
|
22810
|
+
isObject: (v) => typeof v === "object",
|
|
22811
|
+
isFunction: (v) => typeof v === "function",
|
|
22812
|
+
isBoolean: (v) => typeof v === "boolean",
|
|
22813
|
+
isRegex: (v) => v instanceof RegExp,
|
|
22814
|
+
keys: Object.keys
|
|
22815
|
+
};
|
|
22816
|
+
return util;
|
|
22817
|
+
}
|
|
22818
|
+
var lib;
|
|
22819
|
+
var hasRequiredLib;
|
|
22820
|
+
function requireLib() {
|
|
22821
|
+
if (hasRequiredLib) return lib;
|
|
22822
|
+
hasRequiredLib = 1;
|
|
22823
|
+
const DEFAULTS = requireDefaults();
|
|
22824
|
+
const isFunction = requireUtil().isFunction;
|
|
22825
|
+
const isBoolean = requireUtil().isBoolean;
|
|
22826
|
+
const isObject = requireUtil().isObject;
|
|
22827
|
+
const isArray = requireUtil().isArray;
|
|
22828
|
+
const isRegex = requireUtil().isRegex;
|
|
22829
|
+
const assign = requireUtil().assign;
|
|
22830
|
+
const keys = requireUtil().keys;
|
|
22831
|
+
function serialize(obj) {
|
|
22832
|
+
if (obj === null || obj === void 0) return obj;
|
|
22833
|
+
if (isRegex(obj)) return obj.toString();
|
|
22834
|
+
return obj.toJSON ? obj.toJSON() : obj;
|
|
22835
|
+
}
|
|
22836
|
+
function stringifyDeterministic(obj, opts) {
|
|
22837
|
+
opts = opts || assign({}, DEFAULTS);
|
|
22838
|
+
if (isFunction(opts)) opts = { compare: opts };
|
|
22839
|
+
const space = opts.space || DEFAULTS.space;
|
|
22840
|
+
const cycles = isBoolean(opts.cycles) ? opts.cycles : DEFAULTS.cycles;
|
|
22841
|
+
const replacer = opts.replacer || DEFAULTS.replacer;
|
|
22842
|
+
const stringify2 = opts.stringify || DEFAULTS.stringify;
|
|
22843
|
+
const compare = opts.compare && /* @__PURE__ */ function(f) {
|
|
22844
|
+
return function(node) {
|
|
22845
|
+
return function(a, b) {
|
|
22846
|
+
const aobj = { key: a, value: node[a] };
|
|
22847
|
+
const bobj = { key: b, value: node[b] };
|
|
22848
|
+
return f(aobj, bobj);
|
|
22849
|
+
};
|
|
22850
|
+
};
|
|
22851
|
+
}(opts.compare);
|
|
22852
|
+
if (!cycles) stringify2(obj);
|
|
22853
|
+
const seen = [];
|
|
22854
|
+
return function _deterministic(parent, key, node, level) {
|
|
22855
|
+
const indent2 = space ? "\n" + new Array(level + 1).join(space) : "";
|
|
22856
|
+
const colonSeparator = space ? ": " : ":";
|
|
22857
|
+
node = serialize(node);
|
|
22858
|
+
node = replacer.call(parent, key, node);
|
|
22859
|
+
if (node === void 0) return;
|
|
22860
|
+
if (!isObject(node) || node === null) return stringify2(node);
|
|
22861
|
+
if (isArray(node)) {
|
|
22862
|
+
const out = [];
|
|
22863
|
+
for (let i = 0; i < node.length; i++) {
|
|
22864
|
+
const item = _deterministic(node, i, node[i], level + 1) || stringify2(null);
|
|
22865
|
+
out.push(indent2 + space + item);
|
|
22866
|
+
}
|
|
22867
|
+
return "[" + out.join(",") + indent2 + "]";
|
|
22868
|
+
} else {
|
|
22869
|
+
if (cycles) {
|
|
22870
|
+
if (seen.indexOf(node) !== -1) {
|
|
22871
|
+
return stringify2("[Circular]");
|
|
22872
|
+
} else {
|
|
22873
|
+
seen.push(node);
|
|
22874
|
+
}
|
|
22875
|
+
}
|
|
22876
|
+
const nodeKeys = keys(node).sort(compare && compare(node));
|
|
22877
|
+
const out = [];
|
|
22878
|
+
for (let i = 0; i < nodeKeys.length; i++) {
|
|
22879
|
+
const key2 = nodeKeys[i];
|
|
22880
|
+
const value = _deterministic(node, key2, node[key2], level + 1);
|
|
22881
|
+
if (!value) continue;
|
|
22882
|
+
const keyValue = stringify2(key2) + colonSeparator + value;
|
|
22883
|
+
out.push(indent2 + space + keyValue);
|
|
22884
|
+
}
|
|
22885
|
+
seen.splice(seen.indexOf(node), 1);
|
|
22886
|
+
return "{" + out.join(",") + indent2 + "}";
|
|
22887
|
+
}
|
|
22888
|
+
}({ "": obj }, "", obj, 0);
|
|
22889
|
+
}
|
|
22890
|
+
lib = stringifyDeterministic;
|
|
22891
|
+
return lib;
|
|
22892
|
+
}
|
|
22893
|
+
var libExports = requireLib();
|
|
22894
|
+
const stringify = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
|
|
22895
|
+
const SYNC_OPS_BATCH_LIMIT = 10;
|
|
22896
|
+
class SwitchboardPushTransmitter {
|
|
22897
|
+
constructor(targetURL) {
|
|
22898
|
+
__publicField(this, "targetURL");
|
|
22899
|
+
__publicField(this, "logger", childLogger([
|
|
22900
|
+
"SwitchboardPushTransmitter",
|
|
22901
|
+
Math.floor(Math.random() * 999).toString()
|
|
22902
|
+
]));
|
|
22903
|
+
this.targetURL = targetURL;
|
|
22904
|
+
}
|
|
22905
|
+
async transmit(strands, source) {
|
|
22906
|
+
var _a2;
|
|
22907
|
+
if (source.type === "trigger" && ((_a2 = source.trigger.data) == null ? void 0 : _a2.url) === this.targetURL) {
|
|
22908
|
+
this.logger.verbose(`Cutting trigger loop from ${this.targetURL}.`);
|
|
22909
|
+
return strands.map((strand) => {
|
|
22910
|
+
var _a3;
|
|
22911
|
+
return {
|
|
22912
|
+
driveId: strand.driveId,
|
|
22913
|
+
documentId: strand.documentId,
|
|
22914
|
+
scope: strand.scope,
|
|
22915
|
+
branch: strand.branch,
|
|
22916
|
+
status: "SUCCESS",
|
|
22917
|
+
revision: ((_a3 = strand.operations.at(-1)) == null ? void 0 : _a3.index) ?? -1
|
|
22918
|
+
};
|
|
22919
|
+
});
|
|
22920
|
+
}
|
|
22921
|
+
const culledStrands = [];
|
|
22922
|
+
let opsCounter = 0;
|
|
22923
|
+
for (let s = 0; opsCounter <= SYNC_OPS_BATCH_LIMIT && s < strands.length; s++) {
|
|
22924
|
+
const currentStrand = strands.at(s);
|
|
22925
|
+
if (!currentStrand) {
|
|
22926
|
+
break;
|
|
22927
|
+
}
|
|
22928
|
+
const newOps = Math.min(SYNC_OPS_BATCH_LIMIT - opsCounter, currentStrand.operations.length);
|
|
22929
|
+
culledStrands.push({
|
|
22930
|
+
...currentStrand,
|
|
22931
|
+
operations: currentStrand.operations.slice(0, newOps)
|
|
22932
|
+
});
|
|
22933
|
+
opsCounter += newOps;
|
|
22934
|
+
}
|
|
22935
|
+
this.logger.verbose(` Total update: [${strands.map((s) => s.operations.length).join(", ")}] operations`);
|
|
22936
|
+
this.logger.verbose(`Culled update: [${culledStrands.map((s) => s.operations.length).join(", ")}] operations`);
|
|
22937
|
+
try {
|
|
22938
|
+
const { pushUpdates } = await requestGraphql(this.targetURL, gql`
|
|
22939
|
+
mutation pushUpdates($strands: [InputStrandUpdate!]) {
|
|
22940
|
+
pushUpdates(strands: $strands) {
|
|
22941
|
+
driveId
|
|
22942
|
+
documentId
|
|
22943
|
+
scope
|
|
22944
|
+
branch
|
|
22945
|
+
status
|
|
22946
|
+
revision
|
|
22947
|
+
error
|
|
22948
|
+
}
|
|
22949
|
+
}
|
|
22950
|
+
`, {
|
|
22951
|
+
strands: culledStrands.map((strand) => ({
|
|
22952
|
+
...strand,
|
|
22953
|
+
operations: strand.operations.map((op) => ({
|
|
22954
|
+
...op,
|
|
22955
|
+
input: stringify(op.input)
|
|
22956
|
+
}))
|
|
22957
|
+
}))
|
|
22958
|
+
});
|
|
22959
|
+
if (!pushUpdates) {
|
|
22960
|
+
throw new Error("Couldn't update listener revision");
|
|
22961
|
+
}
|
|
22962
|
+
return pushUpdates;
|
|
22963
|
+
} catch (e) {
|
|
22964
|
+
this.logger.error(e);
|
|
22965
|
+
throw e;
|
|
22966
|
+
}
|
|
22967
|
+
return [];
|
|
22968
|
+
}
|
|
22969
|
+
}
|
|
22789
22970
|
var TransmitterType;
|
|
22790
22971
|
(function(TransmitterType2) {
|
|
22791
22972
|
TransmitterType2[TransmitterType2["Internal"] = 0] = "Internal";
|
|
@@ -23019,11 +23200,32 @@ class BaseDocumentDriveServer {
|
|
|
23019
23200
|
return this.triggerMap.delete(driveId);
|
|
23020
23201
|
}
|
|
23021
23202
|
async _initializeDrive(driveId) {
|
|
23203
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
23022
23204
|
const drive = await this.getDrive(driveId);
|
|
23023
23205
|
await this.synchronizationManager.initializeDriveSyncStatus(driveId, drive);
|
|
23024
23206
|
if (this.shouldSyncRemoteDrive(drive)) {
|
|
23025
23207
|
await this.startSyncRemoteDrive(driveId);
|
|
23026
23208
|
}
|
|
23209
|
+
for (const zodListener of drive.state.local.listeners) {
|
|
23210
|
+
if (((_a2 = zodListener.callInfo) == null ? void 0 : _a2.transmitterType) === "SwitchboardPush") {
|
|
23211
|
+
const transmitter = new SwitchboardPushTransmitter(((_b = zodListener.callInfo) == null ? void 0 : _b.data) ?? "");
|
|
23212
|
+
this.listenerManager.setListener(driveId, {
|
|
23213
|
+
block: zodListener.block,
|
|
23214
|
+
driveId: drive.state.global.id,
|
|
23215
|
+
filter: {
|
|
23216
|
+
branch: ((_c = zodListener.filter) == null ? void 0 : _c.branch) ?? [],
|
|
23217
|
+
documentId: ((_d = zodListener.filter) == null ? void 0 : _d.documentId) ?? [],
|
|
23218
|
+
documentType: ((_e = zodListener.filter) == null ? void 0 : _e.documentType) ?? [],
|
|
23219
|
+
scope: ((_f = zodListener.filter) == null ? void 0 : _f.scope) ?? []
|
|
23220
|
+
},
|
|
23221
|
+
listenerId: zodListener.listenerId,
|
|
23222
|
+
callInfo: zodListener.callInfo,
|
|
23223
|
+
system: zodListener.system,
|
|
23224
|
+
label: zodListener.label ?? "",
|
|
23225
|
+
transmitter
|
|
23226
|
+
});
|
|
23227
|
+
}
|
|
23228
|
+
}
|
|
23027
23229
|
}
|
|
23028
23230
|
// Delegate synchronization methods to synchronizationManager
|
|
23029
23231
|
getSynchronizationUnits(driveId, documentId, scope, branch, documentType2) {
|
|
@@ -24413,187 +24615,6 @@ const _ListenerManager = class _ListenerManager {
|
|
|
24413
24615
|
};
|
|
24414
24616
|
__publicField(_ListenerManager, "LISTENER_UPDATE_DELAY", 250);
|
|
24415
24617
|
let ListenerManager = _ListenerManager;
|
|
24416
|
-
var defaults;
|
|
24417
|
-
var hasRequiredDefaults;
|
|
24418
|
-
function requireDefaults() {
|
|
24419
|
-
if (hasRequiredDefaults) return defaults;
|
|
24420
|
-
hasRequiredDefaults = 1;
|
|
24421
|
-
defaults = {
|
|
24422
|
-
space: "",
|
|
24423
|
-
cycles: false,
|
|
24424
|
-
replacer: (k, v) => v,
|
|
24425
|
-
stringify: JSON.stringify
|
|
24426
|
-
};
|
|
24427
|
-
return defaults;
|
|
24428
|
-
}
|
|
24429
|
-
var util;
|
|
24430
|
-
var hasRequiredUtil;
|
|
24431
|
-
function requireUtil() {
|
|
24432
|
-
if (hasRequiredUtil) return util;
|
|
24433
|
-
hasRequiredUtil = 1;
|
|
24434
|
-
util = {
|
|
24435
|
-
isArray: Array.isArray,
|
|
24436
|
-
assign: Object.assign,
|
|
24437
|
-
isObject: (v) => typeof v === "object",
|
|
24438
|
-
isFunction: (v) => typeof v === "function",
|
|
24439
|
-
isBoolean: (v) => typeof v === "boolean",
|
|
24440
|
-
isRegex: (v) => v instanceof RegExp,
|
|
24441
|
-
keys: Object.keys
|
|
24442
|
-
};
|
|
24443
|
-
return util;
|
|
24444
|
-
}
|
|
24445
|
-
var lib;
|
|
24446
|
-
var hasRequiredLib;
|
|
24447
|
-
function requireLib() {
|
|
24448
|
-
if (hasRequiredLib) return lib;
|
|
24449
|
-
hasRequiredLib = 1;
|
|
24450
|
-
const DEFAULTS = requireDefaults();
|
|
24451
|
-
const isFunction = requireUtil().isFunction;
|
|
24452
|
-
const isBoolean = requireUtil().isBoolean;
|
|
24453
|
-
const isObject = requireUtil().isObject;
|
|
24454
|
-
const isArray = requireUtil().isArray;
|
|
24455
|
-
const isRegex = requireUtil().isRegex;
|
|
24456
|
-
const assign = requireUtil().assign;
|
|
24457
|
-
const keys = requireUtil().keys;
|
|
24458
|
-
function serialize(obj) {
|
|
24459
|
-
if (obj === null || obj === void 0) return obj;
|
|
24460
|
-
if (isRegex(obj)) return obj.toString();
|
|
24461
|
-
return obj.toJSON ? obj.toJSON() : obj;
|
|
24462
|
-
}
|
|
24463
|
-
function stringifyDeterministic(obj, opts) {
|
|
24464
|
-
opts = opts || assign({}, DEFAULTS);
|
|
24465
|
-
if (isFunction(opts)) opts = { compare: opts };
|
|
24466
|
-
const space = opts.space || DEFAULTS.space;
|
|
24467
|
-
const cycles = isBoolean(opts.cycles) ? opts.cycles : DEFAULTS.cycles;
|
|
24468
|
-
const replacer = opts.replacer || DEFAULTS.replacer;
|
|
24469
|
-
const stringify2 = opts.stringify || DEFAULTS.stringify;
|
|
24470
|
-
const compare = opts.compare && /* @__PURE__ */ function(f) {
|
|
24471
|
-
return function(node) {
|
|
24472
|
-
return function(a, b) {
|
|
24473
|
-
const aobj = { key: a, value: node[a] };
|
|
24474
|
-
const bobj = { key: b, value: node[b] };
|
|
24475
|
-
return f(aobj, bobj);
|
|
24476
|
-
};
|
|
24477
|
-
};
|
|
24478
|
-
}(opts.compare);
|
|
24479
|
-
if (!cycles) stringify2(obj);
|
|
24480
|
-
const seen = [];
|
|
24481
|
-
return function _deterministic(parent, key, node, level) {
|
|
24482
|
-
const indent2 = space ? "\n" + new Array(level + 1).join(space) : "";
|
|
24483
|
-
const colonSeparator = space ? ": " : ":";
|
|
24484
|
-
node = serialize(node);
|
|
24485
|
-
node = replacer.call(parent, key, node);
|
|
24486
|
-
if (node === void 0) return;
|
|
24487
|
-
if (!isObject(node) || node === null) return stringify2(node);
|
|
24488
|
-
if (isArray(node)) {
|
|
24489
|
-
const out = [];
|
|
24490
|
-
for (let i = 0; i < node.length; i++) {
|
|
24491
|
-
const item = _deterministic(node, i, node[i], level + 1) || stringify2(null);
|
|
24492
|
-
out.push(indent2 + space + item);
|
|
24493
|
-
}
|
|
24494
|
-
return "[" + out.join(",") + indent2 + "]";
|
|
24495
|
-
} else {
|
|
24496
|
-
if (cycles) {
|
|
24497
|
-
if (seen.indexOf(node) !== -1) {
|
|
24498
|
-
return stringify2("[Circular]");
|
|
24499
|
-
} else {
|
|
24500
|
-
seen.push(node);
|
|
24501
|
-
}
|
|
24502
|
-
}
|
|
24503
|
-
const nodeKeys = keys(node).sort(compare && compare(node));
|
|
24504
|
-
const out = [];
|
|
24505
|
-
for (let i = 0; i < nodeKeys.length; i++) {
|
|
24506
|
-
const key2 = nodeKeys[i];
|
|
24507
|
-
const value = _deterministic(node, key2, node[key2], level + 1);
|
|
24508
|
-
if (!value) continue;
|
|
24509
|
-
const keyValue = stringify2(key2) + colonSeparator + value;
|
|
24510
|
-
out.push(indent2 + space + keyValue);
|
|
24511
|
-
}
|
|
24512
|
-
seen.splice(seen.indexOf(node), 1);
|
|
24513
|
-
return "{" + out.join(",") + indent2 + "}";
|
|
24514
|
-
}
|
|
24515
|
-
}({ "": obj }, "", obj, 0);
|
|
24516
|
-
}
|
|
24517
|
-
lib = stringifyDeterministic;
|
|
24518
|
-
return lib;
|
|
24519
|
-
}
|
|
24520
|
-
var libExports = requireLib();
|
|
24521
|
-
const stringify = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
|
|
24522
|
-
const SYNC_OPS_BATCH_LIMIT = 10;
|
|
24523
|
-
class SwitchboardPushTransmitter {
|
|
24524
|
-
constructor(targetURL) {
|
|
24525
|
-
__publicField(this, "targetURL");
|
|
24526
|
-
__publicField(this, "logger", childLogger([
|
|
24527
|
-
"SwitchboardPushTransmitter",
|
|
24528
|
-
Math.floor(Math.random() * 999).toString()
|
|
24529
|
-
]));
|
|
24530
|
-
this.targetURL = targetURL;
|
|
24531
|
-
}
|
|
24532
|
-
async transmit(strands, source) {
|
|
24533
|
-
var _a2;
|
|
24534
|
-
if (source.type === "trigger" && ((_a2 = source.trigger.data) == null ? void 0 : _a2.url) === this.targetURL) {
|
|
24535
|
-
this.logger.verbose(`Cutting trigger loop from ${this.targetURL}.`);
|
|
24536
|
-
return strands.map((strand) => {
|
|
24537
|
-
var _a3;
|
|
24538
|
-
return {
|
|
24539
|
-
driveId: strand.driveId,
|
|
24540
|
-
documentId: strand.documentId,
|
|
24541
|
-
scope: strand.scope,
|
|
24542
|
-
branch: strand.branch,
|
|
24543
|
-
status: "SUCCESS",
|
|
24544
|
-
revision: ((_a3 = strand.operations.at(-1)) == null ? void 0 : _a3.index) ?? -1
|
|
24545
|
-
};
|
|
24546
|
-
});
|
|
24547
|
-
}
|
|
24548
|
-
const culledStrands = [];
|
|
24549
|
-
let opsCounter = 0;
|
|
24550
|
-
for (let s = 0; opsCounter <= SYNC_OPS_BATCH_LIMIT && s < strands.length; s++) {
|
|
24551
|
-
const currentStrand = strands.at(s);
|
|
24552
|
-
if (!currentStrand) {
|
|
24553
|
-
break;
|
|
24554
|
-
}
|
|
24555
|
-
const newOps = Math.min(SYNC_OPS_BATCH_LIMIT - opsCounter, currentStrand.operations.length);
|
|
24556
|
-
culledStrands.push({
|
|
24557
|
-
...currentStrand,
|
|
24558
|
-
operations: currentStrand.operations.slice(0, newOps)
|
|
24559
|
-
});
|
|
24560
|
-
opsCounter += newOps;
|
|
24561
|
-
}
|
|
24562
|
-
this.logger.verbose(` Total update: [${strands.map((s) => s.operations.length).join(", ")}] operations`);
|
|
24563
|
-
this.logger.verbose(`Culled update: [${culledStrands.map((s) => s.operations.length).join(", ")}] operations`);
|
|
24564
|
-
try {
|
|
24565
|
-
const { pushUpdates } = await requestGraphql(this.targetURL, gql`
|
|
24566
|
-
mutation pushUpdates($strands: [InputStrandUpdate!]) {
|
|
24567
|
-
pushUpdates(strands: $strands) {
|
|
24568
|
-
driveId
|
|
24569
|
-
documentId
|
|
24570
|
-
scope
|
|
24571
|
-
branch
|
|
24572
|
-
status
|
|
24573
|
-
revision
|
|
24574
|
-
error
|
|
24575
|
-
}
|
|
24576
|
-
}
|
|
24577
|
-
`, {
|
|
24578
|
-
strands: culledStrands.map((strand) => ({
|
|
24579
|
-
...strand,
|
|
24580
|
-
operations: strand.operations.map((op) => ({
|
|
24581
|
-
...op,
|
|
24582
|
-
input: stringify(op.input)
|
|
24583
|
-
}))
|
|
24584
|
-
}))
|
|
24585
|
-
});
|
|
24586
|
-
if (!pushUpdates) {
|
|
24587
|
-
throw new Error("Couldn't update listener revision");
|
|
24588
|
-
}
|
|
24589
|
-
return pushUpdates;
|
|
24590
|
-
} catch (e) {
|
|
24591
|
-
this.logger.error(e);
|
|
24592
|
-
throw e;
|
|
24593
|
-
}
|
|
24594
|
-
return [];
|
|
24595
|
-
}
|
|
24596
|
-
}
|
|
24597
24618
|
class TransmitterFactory {
|
|
24598
24619
|
constructor(listenerManager) {
|
|
24599
24620
|
__publicField(this, "listenerManager");
|
|
@@ -25595,7 +25616,7 @@ const nodeOptionsMap = {
|
|
|
25595
25616
|
};
|
|
25596
25617
|
const name = "@powerhousedao/connect";
|
|
25597
25618
|
const productName = "Powerhouse-Connect";
|
|
25598
|
-
const version$1 = "1.0.0-dev.
|
|
25619
|
+
const version$1 = "1.0.0-dev.247";
|
|
25599
25620
|
const description = "Powerhouse Connect";
|
|
25600
25621
|
const main = "./dist/index.html";
|
|
25601
25622
|
const type = "module";
|
|
@@ -31235,7 +31256,7 @@ if (window.__VITE_ENVS.MODE === "development") {
|
|
|
31235
31256
|
} else {
|
|
31236
31257
|
serviceWorkerManager.registerServiceWorker(false);
|
|
31237
31258
|
}
|
|
31238
|
-
const App = lazy(() => __vitePreload(() => import("./app-
|
|
31259
|
+
const App = lazy(() => __vitePreload(() => import("./app-Bjaniq_f.js").then((n) => n.aN), true ? __vite__mapDeps([0,1,2]) : void 0));
|
|
31239
31260
|
const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
|
|
31240
31261
|
const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
31241
31262
|
__proto__: null,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aD as BaseError, aE as getUrl, aF as stringify, aG as decodeErrorResult, aH as isAddressEqual, aI as call, aJ as concat, aK as encodeAbiParameters, aL as HttpRequestError, aM as isHex } from "./app-
|
|
2
|
-
import "./main.
|
|
1
|
+
import { aD as BaseError, aE as getUrl, aF as stringify, aG as decodeErrorResult, aH as isAddressEqual, aI as call, aJ as concat, aK as encodeAbiParameters, aL as HttpRequestError, aM as isHex } from "./app-Bjaniq_f.js";
|
|
2
|
+
import "./main.DonDJ7tf.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
|
-
import "./app-loader-
|
|
4
|
+
import "./app-loader-CnDRDKWw.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import "@powerhousedao/reactor-browser";
|
|
7
7
|
import "react-dom";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
|
-
import { t as twMerge, B as Button, m as mergeClassNameProps, E as ERROR, M as MISSING, C as CONFLICT, S as SUCCESS, h as SYNCING, I as INITIAL_SYNC, i as ConnectDropdownMenu, u as useOnClickOutside, j as useEventListener, k as useCopyToClipboard, l as Select, n as ENSAvatar, P as Provider, o as Root3, T as Trigger, p as Portal, q as Content2, v as validateInitialState, w as validateStateSchemaName, x as validateModules, y as useUnwrappedReactor, z as useConnectDid, A as useConnectCrypto, D as useTranslation, F as useModal, G as useAtomValue, H as themeAtom, J as useUser, K as useUserPermissions, L as useUiNodes, N as exportFile, O as useGetDocumentModelModule, Q as addActionContext, U as signOperation, V as useDocumentDriveServer, W as useHotkeys, X as useGetEditor, Y as isSameDocument, Z as useNavigate, _ as ErrorBoundary, $ as DriveLayout, a0 as SearchBar, a1 as useAsyncReactor, a2 as useFilteredDocumentModels, a3 as useDriveEditor, a4 as useDocumentDriveById } from "./app-
|
|
2
|
+
import { t as twMerge, B as Button, m as mergeClassNameProps, E as ERROR, M as MISSING, C as CONFLICT, S as SUCCESS, h as SYNCING, I as INITIAL_SYNC, i as ConnectDropdownMenu, u as useOnClickOutside, j as useEventListener, k as useCopyToClipboard, l as Select, n as ENSAvatar, P as Provider, o as Root3, T as Trigger, p as Portal, q as Content2, v as validateInitialState, w as validateStateSchemaName, x as validateModules, y as useUnwrappedReactor, z as useConnectDid, A as useConnectCrypto, D as useTranslation, F as useModal, G as useAtomValue, H as themeAtom, J as useUser, K as useUserPermissions, L as useUiNodes, N as exportFile, O as useGetDocumentModelModule, Q as addActionContext, U as signOperation, V as useDocumentDriveServer, W as useHotkeys, X as useGetEditor, Y as isSameDocument, Z as useNavigate, _ as ErrorBoundary, $ as DriveLayout, a0 as SearchBar, a1 as useAsyncReactor, a2 as useFilteredDocumentModels, a3 as useDriveEditor, a4 as useDocumentDriveById } from "./app-Bjaniq_f.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import React__default, { useState, useCallback, useMemo, useEffect, Fragment, useRef, useLayoutEffect, memo as memo$1, createElement, useSyncExternalStore, Suspense } from "react";
|
|
5
|
-
import { _ as Icon, aX as getDimensions, aY as READ, aZ as nodeOptionsMap, a_ as defaultFileOptions, a$ as DELETE, b0 as RENAME, b1 as WRITE, b2 as DUPLICATE, b3 as defaultFolderOptions, b4 as garbageCollect, b5 as sortOperations, b6 as UI_NODE, aO as DRIVE, ay as FILE, b7 as undo, b8 as redo, ac as logger, b9 as useDocumentDispatch, aP as FOLDER, ak as driveDocumentModelModule } from "./app-loader-
|
|
5
|
+
import { _ as Icon, aX as getDimensions, aY as READ, aZ as nodeOptionsMap, a_ as defaultFileOptions, a$ as DELETE, b0 as RENAME, b1 as WRITE, b2 as DUPLICATE, b3 as defaultFolderOptions, b4 as garbageCollect, b5 as sortOperations, b6 as UI_NODE, aO as DRIVE, ay as FILE, b7 as undo, b8 as redo, ac as logger, b9 as useDocumentDispatch, aP as FOLDER, ak as driveDocumentModelModule } from "./app-loader-CnDRDKWw.js";
|
|
6
6
|
import { useDocument, useDocumentEditorProps } from "@powerhousedao/reactor-browser";
|
|
7
7
|
import { useUiNodesContext, FILE as FILE$1 } from "@powerhousedao/reactor-browser/hooks/useUiNodesContext";
|
|
8
8
|
import { useDriveActionsWithUiNodes } from "@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes";
|
|
@@ -10,7 +10,7 @@ import { useDriveContext, DriveContextProvider } from "@powerhousedao/reactor-br
|
|
|
10
10
|
import "@powerhousedao/reactor-browser/uiNodes/constants";
|
|
11
11
|
import { makeDriveDocumentStateHook } from "@powerhousedao/reactor-browser/hooks/document-state";
|
|
12
12
|
import { flushSync } from "react-dom";
|
|
13
|
-
import "./main.
|
|
13
|
+
import "./main.DonDJ7tf.js";
|
|
14
14
|
const PaginationButton = ({ active = false, ...props }) => {
|
|
15
15
|
const className = twMerge("h-8 min-w-8 border border-solid border-gray-300 bg-white px-3 py-1 text-xs text-gray-900 hover:bg-gray-100", !active && "border-0");
|
|
16
16
|
return jsx(Button, { color: "light", size: "small", ...mergeClassNameProps(props, className), children: props.children });
|
|
@@ -10,10 +10,10 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
10
10
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
|
|
12
12
|
var _DB_NAME, _STORE_NAME, _KEY, _db, _BrowserKeyStorage_instances, useStore_fn, _subtleCrypto, _keyPair, _keyPairStorage, _did, _ConnectCrypto_instances, initCrypto_fn, initialize_fn, parseDid_fn, generateECDSAKeyPair_fn, exportKeyPair_fn, importKeyPair_fn, _sign, _verify, _store, _namespace, _BaseStorage_instances, buildKey_fn, _baseUrl, _store2, _connectId, _eventEmitter, _Renown_instances, updateUser_fn, getCredential_fn;
|
|
13
|
-
import { _ as __vitePreload } from "./main.
|
|
14
|
-
import { aW as getAugmentedNamespace, $ as getDefaultExportFromCjs, ah as connectConfig, ac as logger } from "./app-loader-
|
|
15
|
-
import { e as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-
|
|
16
|
-
import { d, c, b, f, a, r, s } from "./app-
|
|
13
|
+
import { _ as __vitePreload } from "./main.DonDJ7tf.js";
|
|
14
|
+
import { aW as getAugmentedNamespace, $ as getDefaultExportFromCjs, ah as connectConfig, ac as logger } from "./app-loader-CnDRDKWw.js";
|
|
15
|
+
import { e as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-Bjaniq_f.js";
|
|
16
|
+
import { d, c, b, f, a, r, s } from "./app-Bjaniq_f.js";
|
|
17
17
|
import "react/jsx-runtime";
|
|
18
18
|
import "react";
|
|
19
19
|
import "@powerhousedao/reactor-browser";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { t as twMerge, a5 as clsx, a6 as get, a7 as set, a8 as appendErrors, a9 as useFormContext, aa as Primitive, ab as cva, ac as FormProvider, ad as Controller, ae as Slot, af as useForm, ag as Root2, ah as List, ai as Trigger, aj as Content, ak as setModelName, al as setModelId, am as setModelDescription, an as setModelExtension, ao as setAuthorName, ap as setAuthorWebsite, aq as setStateSchema, ar as setInitialState, as as addModule, at as setModuleName, au as deleteModule, av as addOperation, aw as setOperationName, ax as setOperationSchema, ay as setOperationDescription, az as deleteOperation, aA as addOperationError, aB as deleteOperationError, aC as setOperationErrorName } from "./app-
|
|
3
|
-
import { ba as inspect$1, bb as GraphQLError$1, bc as getNamedType, bd as invariant$2, be as isInputObjectType, bf as isScalarType, bg as isObjectType, bh as isInterfaceType, bi as isUnionType, bj as isEnumType, bk as print, bl as isPrintableAsBlockString, bm as Kind, bn as astFromValue$1, bo as DEFAULT_DEPRECATION_REASON, bp as isSpecifiedDirective, bq as isSpecifiedScalarType, br as isIntrospectionType, bs as z, bt as GraphQLScalarType, Z as pascalCase, bu as parse, bv as visit, bw as buildASTSchema, bx as extendSchema, by as getNullableType, bz as isListType, $ as getDefaultExportFromCjs, bA as snakeCase, bB as constantCase, bC as isAbstractType, bD as BREAK, bE as GraphQLInputObjectType, bF as GraphQLList, bG as GraphQLEnumType, bH as GraphQLObjectType, bI as GraphQLInterfaceType, bJ as SchemaMetaFieldDef, bK as TypeMetaFieldDef, bL as TypeNameMetaFieldDef, bM as isCompositeType, bN as isOutputType, bO as isInputType, bP as GraphQLBoolean, bQ as assertAbstractType, bR as doTypesOverlap, bS as DirectiveLocation, bT as specifiedRules$1, bU as NoUnusedFragmentsRule$1, bV as ExecutableDefinitionsRule$1, bW as validate$2, bX as validateSchema, bY as GraphQLID, bZ as GraphQLString, b_ as GraphQLFloat, b$ as GraphQLInt, c0 as GraphQLDirective, c1 as GraphQLUnionType, c2 as isNonNullType, c3 as GraphQLNonNull, c4 as isNamedType, c5 as isLeafType, c6 as GraphQLSchema, c7 as buildSchema, c8 as sentenceCase, am as hashKey } from "./app-loader-
|
|
2
|
+
import { t as twMerge, a5 as clsx, a6 as get, a7 as set, a8 as appendErrors, a9 as useFormContext, aa as Primitive, ab as cva, ac as FormProvider, ad as Controller, ae as Slot, af as useForm, ag as Root2, ah as List, ai as Trigger, aj as Content, ak as setModelName, al as setModelId, am as setModelDescription, an as setModelExtension, ao as setAuthorName, ap as setAuthorWebsite, aq as setStateSchema, ar as setInitialState, as as addModule, at as setModuleName, au as deleteModule, av as addOperation, aw as setOperationName, ax as setOperationSchema, ay as setOperationDescription, az as deleteOperation, aA as addOperationError, aB as deleteOperationError, aC as setOperationErrorName } from "./app-Bjaniq_f.js";
|
|
3
|
+
import { ba as inspect$1, bb as GraphQLError$1, bc as getNamedType, bd as invariant$2, be as isInputObjectType, bf as isScalarType, bg as isObjectType, bh as isInterfaceType, bi as isUnionType, bj as isEnumType, bk as print, bl as isPrintableAsBlockString, bm as Kind, bn as astFromValue$1, bo as DEFAULT_DEPRECATION_REASON, bp as isSpecifiedDirective, bq as isSpecifiedScalarType, br as isIntrospectionType, bs as z, bt as GraphQLScalarType, Z as pascalCase, bu as parse, bv as visit, bw as buildASTSchema, bx as extendSchema, by as getNullableType, bz as isListType, $ as getDefaultExportFromCjs, bA as snakeCase, bB as constantCase, bC as isAbstractType, bD as BREAK, bE as GraphQLInputObjectType, bF as GraphQLList, bG as GraphQLEnumType, bH as GraphQLObjectType, bI as GraphQLInterfaceType, bJ as SchemaMetaFieldDef, bK as TypeMetaFieldDef, bL as TypeNameMetaFieldDef, bM as isCompositeType, bN as isOutputType, bO as isInputType, bP as GraphQLBoolean, bQ as assertAbstractType, bR as doTypesOverlap, bS as DirectiveLocation, bT as specifiedRules$1, bU as NoUnusedFragmentsRule$1, bV as ExecutableDefinitionsRule$1, bW as validate$2, bX as validateSchema, bY as GraphQLID, bZ as GraphQLString, b_ as GraphQLFloat, b$ as GraphQLInt, c0 as GraphQLDirective, c1 as GraphQLUnionType, c2 as isNonNullType, c3 as GraphQLNonNull, c4 as isNamedType, c5 as isLeafType, c6 as GraphQLSchema, c7 as buildSchema, c8 as sentenceCase, am as hashKey } from "./app-loader-CnDRDKWw.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.DonDJ7tf.js";
|
|
7
7
|
import "@powerhousedao/reactor-browser";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "@powerhousedao/reactor-browser/hooks/useUiNodesContext";
|
|
@@ -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-CnDRDKWw.js","assets/main.DonDJ7tf.js","assets/app-loader-Bnp0H-wa.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as __vitePreload } from "./main.DonDJ7tf.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-CnDRDKWw.js").then((n) => n.c9), true ? __vite__mapDeps([0,1,2]) : void 0);
|
|
6
6
|
createRoot(element).render(AppLoader.default);
|
|
7
7
|
}
|
|
8
8
|
const AppElement = document.getElementById("app");
|
|
@@ -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-CWxXMTAJ.js"), true ? [] : void 0);
|
|
103
103
|
export {
|
|
104
104
|
__vitePreload as _
|
|
105
105
|
};
|
package/dist/index.html
CHANGED
|
@@ -94,4 +94,4 @@
|
|
|
94
94
|
"@powerhousedao/reactor-browser/utils/index": "/modules/@powerhousedao/reactor-browser/utils/index.js",
|
|
95
95
|
"@powerhousedao/reactor-browser/utils/signature": "/modules/@powerhousedao/reactor-browser/utils/signature.js"
|
|
96
96
|
}
|
|
97
|
-
}</script><script type="module" crossorigin="" src="/assets/main.
|
|
97
|
+
}</script><script type="module" crossorigin="" src="/assets/main.DonDJ7tf.js"></script></head><body><div id="app"></div></body></html>
|
|
@@ -12163,6 +12163,80 @@ var PullResponderTransmitter = class _PullResponderTransmitter {
|
|
|
12163
12163
|
}
|
|
12164
12164
|
};
|
|
12165
12165
|
|
|
12166
|
+
// ../../packages/document-drive/dist/src/server/listener/transmitter/switchboard-push.js
|
|
12167
|
+
var import_json_stringify_deterministic = __toESM(require_lib(), 1);
|
|
12168
|
+
var SYNC_OPS_BATCH_LIMIT = 10;
|
|
12169
|
+
var SwitchboardPushTransmitter = class {
|
|
12170
|
+
targetURL;
|
|
12171
|
+
logger = childLogger([
|
|
12172
|
+
"SwitchboardPushTransmitter",
|
|
12173
|
+
Math.floor(Math.random() * 999).toString()
|
|
12174
|
+
]);
|
|
12175
|
+
constructor(targetURL) {
|
|
12176
|
+
this.targetURL = targetURL;
|
|
12177
|
+
}
|
|
12178
|
+
async transmit(strands, source) {
|
|
12179
|
+
if (source.type === "trigger" && source.trigger.data?.url === this.targetURL) {
|
|
12180
|
+
this.logger.verbose(`Cutting trigger loop from ${this.targetURL}.`);
|
|
12181
|
+
return strands.map((strand) => ({
|
|
12182
|
+
driveId: strand.driveId,
|
|
12183
|
+
documentId: strand.documentId,
|
|
12184
|
+
scope: strand.scope,
|
|
12185
|
+
branch: strand.branch,
|
|
12186
|
+
status: "SUCCESS",
|
|
12187
|
+
revision: strand.operations.at(-1)?.index ?? -1
|
|
12188
|
+
}));
|
|
12189
|
+
}
|
|
12190
|
+
const culledStrands = [];
|
|
12191
|
+
let opsCounter = 0;
|
|
12192
|
+
for (let s = 0; opsCounter <= SYNC_OPS_BATCH_LIMIT && s < strands.length; s++) {
|
|
12193
|
+
const currentStrand = strands.at(s);
|
|
12194
|
+
if (!currentStrand) {
|
|
12195
|
+
break;
|
|
12196
|
+
}
|
|
12197
|
+
const newOps = Math.min(SYNC_OPS_BATCH_LIMIT - opsCounter, currentStrand.operations.length);
|
|
12198
|
+
culledStrands.push({
|
|
12199
|
+
...currentStrand,
|
|
12200
|
+
operations: currentStrand.operations.slice(0, newOps)
|
|
12201
|
+
});
|
|
12202
|
+
opsCounter += newOps;
|
|
12203
|
+
}
|
|
12204
|
+
this.logger.verbose(` Total update: [${strands.map((s) => s.operations.length).join(", ")}] operations`);
|
|
12205
|
+
this.logger.verbose(`Culled update: [${culledStrands.map((s) => s.operations.length).join(", ")}] operations`);
|
|
12206
|
+
try {
|
|
12207
|
+
const { pushUpdates } = await requestGraphql(this.targetURL, gql`
|
|
12208
|
+
mutation pushUpdates($strands: [InputStrandUpdate!]) {
|
|
12209
|
+
pushUpdates(strands: $strands) {
|
|
12210
|
+
driveId
|
|
12211
|
+
documentId
|
|
12212
|
+
scope
|
|
12213
|
+
branch
|
|
12214
|
+
status
|
|
12215
|
+
revision
|
|
12216
|
+
error
|
|
12217
|
+
}
|
|
12218
|
+
}
|
|
12219
|
+
`, {
|
|
12220
|
+
strands: culledStrands.map((strand) => ({
|
|
12221
|
+
...strand,
|
|
12222
|
+
operations: strand.operations.map((op) => ({
|
|
12223
|
+
...op,
|
|
12224
|
+
input: (0, import_json_stringify_deterministic.default)(op.input)
|
|
12225
|
+
}))
|
|
12226
|
+
}))
|
|
12227
|
+
});
|
|
12228
|
+
if (!pushUpdates) {
|
|
12229
|
+
throw new Error("Couldn't update listener revision");
|
|
12230
|
+
}
|
|
12231
|
+
return pushUpdates;
|
|
12232
|
+
} catch (e) {
|
|
12233
|
+
this.logger.error(e);
|
|
12234
|
+
throw e;
|
|
12235
|
+
}
|
|
12236
|
+
return [];
|
|
12237
|
+
}
|
|
12238
|
+
};
|
|
12239
|
+
|
|
12166
12240
|
// ../../packages/document-drive/dist/src/server/types.js
|
|
12167
12241
|
var TransmitterType;
|
|
12168
12242
|
(function(TransmitterType2) {
|
|
@@ -12403,6 +12477,26 @@ var BaseDocumentDriveServer = class {
|
|
|
12403
12477
|
if (this.shouldSyncRemoteDrive(drive)) {
|
|
12404
12478
|
await this.startSyncRemoteDrive(driveId);
|
|
12405
12479
|
}
|
|
12480
|
+
for (const zodListener of drive.state.local.listeners) {
|
|
12481
|
+
if (zodListener.callInfo?.transmitterType === "SwitchboardPush") {
|
|
12482
|
+
const transmitter = new SwitchboardPushTransmitter(zodListener.callInfo?.data ?? "");
|
|
12483
|
+
this.listenerManager.setListener(driveId, {
|
|
12484
|
+
block: zodListener.block,
|
|
12485
|
+
driveId: drive.state.global.id,
|
|
12486
|
+
filter: {
|
|
12487
|
+
branch: zodListener.filter?.branch ?? [],
|
|
12488
|
+
documentId: zodListener.filter?.documentId ?? [],
|
|
12489
|
+
documentType: zodListener.filter?.documentType ?? [],
|
|
12490
|
+
scope: zodListener.filter?.scope ?? []
|
|
12491
|
+
},
|
|
12492
|
+
listenerId: zodListener.listenerId,
|
|
12493
|
+
callInfo: zodListener.callInfo,
|
|
12494
|
+
system: zodListener.system,
|
|
12495
|
+
label: zodListener.label ?? "",
|
|
12496
|
+
transmitter
|
|
12497
|
+
});
|
|
12498
|
+
}
|
|
12499
|
+
}
|
|
12406
12500
|
}
|
|
12407
12501
|
// Delegate synchronization methods to synchronizationManager
|
|
12408
12502
|
getSynchronizationUnits(driveId, documentId, scope, branch, documentType2) {
|
|
@@ -13583,80 +13677,6 @@ var ListenerManager = class _ListenerManager {
|
|
|
13583
13677
|
}
|
|
13584
13678
|
};
|
|
13585
13679
|
|
|
13586
|
-
// ../../packages/document-drive/dist/src/server/listener/transmitter/switchboard-push.js
|
|
13587
|
-
var import_json_stringify_deterministic = __toESM(require_lib(), 1);
|
|
13588
|
-
var SYNC_OPS_BATCH_LIMIT = 10;
|
|
13589
|
-
var SwitchboardPushTransmitter = class {
|
|
13590
|
-
targetURL;
|
|
13591
|
-
logger = childLogger([
|
|
13592
|
-
"SwitchboardPushTransmitter",
|
|
13593
|
-
Math.floor(Math.random() * 999).toString()
|
|
13594
|
-
]);
|
|
13595
|
-
constructor(targetURL) {
|
|
13596
|
-
this.targetURL = targetURL;
|
|
13597
|
-
}
|
|
13598
|
-
async transmit(strands, source) {
|
|
13599
|
-
if (source.type === "trigger" && source.trigger.data?.url === this.targetURL) {
|
|
13600
|
-
this.logger.verbose(`Cutting trigger loop from ${this.targetURL}.`);
|
|
13601
|
-
return strands.map((strand) => ({
|
|
13602
|
-
driveId: strand.driveId,
|
|
13603
|
-
documentId: strand.documentId,
|
|
13604
|
-
scope: strand.scope,
|
|
13605
|
-
branch: strand.branch,
|
|
13606
|
-
status: "SUCCESS",
|
|
13607
|
-
revision: strand.operations.at(-1)?.index ?? -1
|
|
13608
|
-
}));
|
|
13609
|
-
}
|
|
13610
|
-
const culledStrands = [];
|
|
13611
|
-
let opsCounter = 0;
|
|
13612
|
-
for (let s = 0; opsCounter <= SYNC_OPS_BATCH_LIMIT && s < strands.length; s++) {
|
|
13613
|
-
const currentStrand = strands.at(s);
|
|
13614
|
-
if (!currentStrand) {
|
|
13615
|
-
break;
|
|
13616
|
-
}
|
|
13617
|
-
const newOps = Math.min(SYNC_OPS_BATCH_LIMIT - opsCounter, currentStrand.operations.length);
|
|
13618
|
-
culledStrands.push({
|
|
13619
|
-
...currentStrand,
|
|
13620
|
-
operations: currentStrand.operations.slice(0, newOps)
|
|
13621
|
-
});
|
|
13622
|
-
opsCounter += newOps;
|
|
13623
|
-
}
|
|
13624
|
-
this.logger.verbose(` Total update: [${strands.map((s) => s.operations.length).join(", ")}] operations`);
|
|
13625
|
-
this.logger.verbose(`Culled update: [${culledStrands.map((s) => s.operations.length).join(", ")}] operations`);
|
|
13626
|
-
try {
|
|
13627
|
-
const { pushUpdates } = await requestGraphql(this.targetURL, gql`
|
|
13628
|
-
mutation pushUpdates($strands: [InputStrandUpdate!]) {
|
|
13629
|
-
pushUpdates(strands: $strands) {
|
|
13630
|
-
driveId
|
|
13631
|
-
documentId
|
|
13632
|
-
scope
|
|
13633
|
-
branch
|
|
13634
|
-
status
|
|
13635
|
-
revision
|
|
13636
|
-
error
|
|
13637
|
-
}
|
|
13638
|
-
}
|
|
13639
|
-
`, {
|
|
13640
|
-
strands: culledStrands.map((strand) => ({
|
|
13641
|
-
...strand,
|
|
13642
|
-
operations: strand.operations.map((op) => ({
|
|
13643
|
-
...op,
|
|
13644
|
-
input: (0, import_json_stringify_deterministic.default)(op.input)
|
|
13645
|
-
}))
|
|
13646
|
-
}))
|
|
13647
|
-
});
|
|
13648
|
-
if (!pushUpdates) {
|
|
13649
|
-
throw new Error("Couldn't update listener revision");
|
|
13650
|
-
}
|
|
13651
|
-
return pushUpdates;
|
|
13652
|
-
} catch (e) {
|
|
13653
|
-
this.logger.error(e);
|
|
13654
|
-
throw e;
|
|
13655
|
-
}
|
|
13656
|
-
return [];
|
|
13657
|
-
}
|
|
13658
|
-
};
|
|
13659
|
-
|
|
13660
13680
|
// ../../packages/document-drive/dist/src/server/listener/transmitter/factory.js
|
|
13661
13681
|
var TransmitterFactory = class {
|
|
13662
13682
|
listenerManager;
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
ReadModeContext,
|
|
4
4
|
ReadModeContextProvider,
|
|
5
5
|
useReadModeContext
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-OYYVE7RP.js";
|
|
7
7
|
import "../chunk-OVGOA2P5.js";
|
|
8
8
|
import "../chunk-P6NJ6IAQ.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-N5UNGAA6.js";
|
|
10
10
|
import "../chunk-FQF4YAVC.js";
|
|
11
11
|
import "../chunk-2ESYSVXG.js";
|
|
12
12
|
export {
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ReadModeContext,
|
|
3
3
|
ReadModeContextProvider,
|
|
4
4
|
useReadModeContext
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-OYYVE7RP.js";
|
|
6
6
|
import "../chunk-OVGOA2P5.js";
|
|
7
7
|
import "../chunk-P6NJ6IAQ.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-N5UNGAA6.js";
|
|
9
9
|
import "../chunk-FQF4YAVC.js";
|
|
10
10
|
import "../chunk-2ESYSVXG.js";
|
|
11
11
|
export {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-DKDARAJS.js";
|
|
2
2
|
import {
|
|
3
3
|
useDriveActionsWithUiNodes
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-IC6B3767.js";
|
|
5
5
|
import {
|
|
6
6
|
useDriveActions
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-UDKYG6I4.js";
|
|
8
8
|
import {
|
|
9
9
|
DriveContextProvider,
|
|
10
10
|
useDriveContext
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
useUserPermissions
|
|
58
58
|
} from "../chunk-OVGOA2P5.js";
|
|
59
59
|
import "../chunk-P6NJ6IAQ.js";
|
|
60
|
-
import "../chunk-
|
|
60
|
+
import "../chunk-N5UNGAA6.js";
|
|
61
61
|
import "../chunk-FQF4YAVC.js";
|
|
62
62
|
import "../chunk-YWKVPJNL.js";
|
|
63
63
|
import "../chunk-2X2M6BYG.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDriveActionsWithUiNodes
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-IC6B3767.js";
|
|
4
|
+
import "../chunk-UDKYG6I4.js";
|
|
5
5
|
import "../chunk-XBTEGV5M.js";
|
|
6
6
|
import "../chunk-RGIB4DD4.js";
|
|
7
7
|
import "../chunk-7OQWVUC5.js";
|
|
8
8
|
import "../chunk-ZL5IPB6D.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-N5UNGAA6.js";
|
|
10
10
|
import "../chunk-FQF4YAVC.js";
|
|
11
11
|
import "../chunk-2ESYSVXG.js";
|
|
12
12
|
export {
|
|
@@ -6,10 +6,10 @@ import "./chunk-LH2T6NLN.js";
|
|
|
6
6
|
import "./chunk-DKDARAJS.js";
|
|
7
7
|
import {
|
|
8
8
|
useDriveActionsWithUiNodes
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IC6B3767.js";
|
|
10
10
|
import {
|
|
11
11
|
useDriveActions
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UDKYG6I4.js";
|
|
13
13
|
import {
|
|
14
14
|
DriveContextProvider,
|
|
15
15
|
useDriveContext
|
|
@@ -65,18 +65,18 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
createBrowserDocumentDriveServer,
|
|
67
67
|
getReactorDefaultDrivesConfig
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-6MBHOHAA.js";
|
|
69
69
|
import "./chunk-U36SV333.js";
|
|
70
70
|
import {
|
|
71
71
|
ReadModeContext,
|
|
72
72
|
ReadModeContextProvider,
|
|
73
73
|
useReadModeContext
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-OYYVE7RP.js";
|
|
75
75
|
import {
|
|
76
76
|
useUserPermissions
|
|
77
77
|
} from "./chunk-OVGOA2P5.js";
|
|
78
78
|
import "./chunk-P6NJ6IAQ.js";
|
|
79
|
-
import "./chunk-
|
|
79
|
+
import "./chunk-N5UNGAA6.js";
|
|
80
80
|
import "./chunk-FQF4YAVC.js";
|
|
81
81
|
import "./chunk-YWKVPJNL.js";
|
|
82
82
|
import "./chunk-2X2M6BYG.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createBrowserDocumentDriveServer,
|
|
3
3
|
getReactorDefaultDrivesConfig
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-6MBHOHAA.js";
|
|
5
|
+
import "./chunk-N5UNGAA6.js";
|
|
6
6
|
import "./chunk-FQF4YAVC.js";
|
|
7
7
|
import "./chunk-2ESYSVXG.js";
|
|
8
8
|
export {
|
package/dist/vite-envs.sh
CHANGED
|
@@ -11,7 +11,7 @@ replaceAll() {
|
|
|
11
11
|
}'
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
html=$(echo "PCFET0NUWVBFIGh0bWw+PGh0bWw+PGhlYWQ+PG1ldGEgY2hhcnNldD0iVVRGLTgiPjxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj48dGl0bGU+UG93ZXJob3VzZSBDb25uZWN0PC90aXRsZT48YmFzZSBocmVmPSIvIj48bGluayByZWw9Imljb24iIGhyZWY9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lcmhvdXNlZGFvL3JlYWN0b3ItYnJvd3Nlci91dGlscy9zaWduYXR1cmUiOiAiL21vZHVsZXMvQHBvd2VyaG91c2VkYW8vcmVhY3Rvci1icm93c2VyL3V0aWxzL3NpZ25hdHVyZS5qcyIKICB9Cn08L3NjcmlwdD48c2NyaXB0IHR5cGU9Im1vZHVsZSIgY3Jvc3NvcmlnaW49IiIgc3JjPSIvYXNzZXRzL21haW4uRG9uREo3dGYuanMiPjwvc2NyaXB0PjwvaGVhZD48Ym9keT48ZGl2IGlkPSJhcHAiPjwvZGl2PjwvYm9keT48L2h0bWw+" | 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.0-dev.
|
|
4
|
+
"version": "1.0.0-dev.247",
|
|
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.
|
|
86
|
-
"@powerhousedao/common": "1.10.
|
|
85
|
+
"@powerhousedao/builder-tools": "0.9.6-dev.0",
|
|
86
|
+
"@powerhousedao/common": "1.10.8-dev.0",
|
|
87
87
|
"@powerhousedao/config": "1.26.0",
|
|
88
|
-
"@powerhousedao/design-system": "1.39.
|
|
89
|
-
"@powerhousedao/reactor-browser": "1.22.
|
|
88
|
+
"@powerhousedao/design-system": "1.39.3-dev.0",
|
|
89
|
+
"@powerhousedao/reactor-browser": "1.22.7-dev.0",
|
|
90
90
|
"@powerhousedao/scalars": "1.33.0",
|
|
91
|
-
"document-
|
|
92
|
-
"document-
|
|
91
|
+
"document-model": "2.28.0",
|
|
92
|
+
"document-drive": "1.29.0-dev.3"
|
|
93
93
|
},
|
|
94
94
|
"optionalDependencies": {
|
|
95
95
|
"@esbuild/linux-x64": "^0.21.4",
|