@powerhousedao/connect 1.0.23-staging.1 → 1.1.0

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.
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-XbQMrTCQ.js","assets/main.B_-fy86f.js","assets/app-loader-B9WMnDgs.js","assets/app-loader-3ipafc56.css","assets/index-DZDjpeBO.js","assets/style-0ej1afQi.css","assets/index-C3q-1asu.js","assets/content-B39UDenT.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-CWiYf37C.js","assets/main.BcxEuVs0.js","assets/app-loader-BsJCIY3v.js","assets/app-loader-3ipafc56.css","assets/index-DFoYtrS6.js","assets/style-0ej1afQi.css","assets/index-n2OSuQ3g.js","assets/content-DrqtiFBt.js"])))=>i.map(i=>d[i]);
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -19,9 +19,9 @@ var __privateWrapper = (obj, member, setter, getter) => ({
19
19
  }
20
20
  });
21
21
  var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _client, _retryer, _defaultOptions, _abortSignalConsumed, _Query_instances, dispatch_fn, _d, _queries, _e2, _observers, _mutationCache, _retryer2, _Mutation_instances, dispatch_fn2, _f, _mutations, _scopes, _mutationId, _g, _queryCache, _mutationCache2, _defaultOptions2, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _client2, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _currentThenable, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _QueryObserver_instances, executeFetch_fn, updateStaleTimeout_fn, computeRefetchInterval_fn, updateRefetchInterval_fn, updateTimers_fn, clearStaleTimeout_fn, clearRefetchInterval_fn, updateQuery_fn, notify_fn, _i, _subtleCrypto, _keyPair, _keyPairStorage, _did, _ConnectCrypto_instances, initCrypto_fn, initialize_fn, parseDid_fn, generateECDSAKeyPair_fn, exportKeyPair_fn, importKeyPair_fn, _sign, _verify, _DB_NAME, _STORE_NAME, _KEY, _db, _BrowserKeyStorage_instances, useStore_fn;
22
- import { _ as __vitePreload } from "./main.B_-fy86f.js";
22
+ import { _ as __vitePreload } from "./main.BcxEuVs0.js";
23
23
  import { jsx as jsx$1, Fragment, jsxs } from "react/jsx-runtime";
24
- import { c as createAction, a as createReducer, i as isDocumentAction, R as ReorderStateExamplesInputSchema, D as DeleteStateExampleInputSchema, U as UpdateStateExampleInputSchema, A as AddStateExampleInputSchema, S as SetInitialStateInputSchema, b as SetStateSchemaInputSchema, d as ReorderModuleOperationsInputSchema, e as DeleteOperationInputSchema, M as MoveOperationInputSchema, f as SetOperationReducerInputSchema, g as SetOperationTemplateInputSchema, h as SetOperationDescriptionInputSchema, j as SetOperationSchemaInputSchema, k as SetOperationScopeInputSchema, l as SetOperationNameInputSchema, m as AddOperationInputSchema, n as ReorderOperationExamplesInputSchema, o as DeleteOperationExampleInputSchema, p as UpdateOperationExampleInputSchema, q as AddOperationExampleInputSchema, r as ReorderOperationErrorsInputSchema, s as DeleteOperationErrorInputSchema, t as SetOperationErrorTemplateInputSchema, u as SetOperationErrorDescriptionInputSchema, v as SetOperationErrorNameInputSchema, w as SetOperationErrorCodeInputSchema, x as AddOperationErrorInputSchema, y as ReorderModulesInputSchema, z as DeleteModuleInputSchema, B as SetModuleDescriptionInputSchema, C as SetModuleNameInputSchema, E as AddModuleInputSchema, F as ReorderChangeLogItemsInputSchema, G as DeleteChangeLogItemInputSchema, H as UpdateChangeLogItemInputSchema, I as AddChangeLogItemInputSchema, J as SetAuthorWebsiteInputSchema, K as SetAuthorNameInputSchema, L as SetModelDescriptionInputSchema, N as SetModelExtensionInputSchema, O as SetModelIdInputSchema, P as SetModelNameInputSchema, Q as baseCreateExtendedState, T as baseCreateDocument, V as baseSaveToFile, W as baseSaveToFileHandle, X as baseLoadFromFile, Y as baseLoadFromInput, Z as pascalCase, _ as Icon, $ as getDefaultExportFromCjs, a0 as LOCAL, a1 as commonjsGlobal, a2 as PUBLIC, a3 as SWITCHBOARD, a4 as locationInfoByLocation, a5 as sharingTypeOptions, a6 as objectType, a7 as recordType, a8 as stringType, a9 as capitalCase, aa as CLOUD, ab as createZip, ac as logger$1, ad as LZString, ae as buildSignedOperation, af as getI18n, ag as getDefaults, ah as connectConfig, ai as hashDocumentStateForScope, aj as getAugmentedNamespace, ak as setErrorHandler, al as driveDocumentModelModule, am as createBrowserDocumentDriveServer, an as hashKey$1, ao as childLogger, ap as reducer$8, aq as isDocumentDrive, ar as generateAddNodeAction, as as isFileNode, at as uploadDocumentOperations, au as updateFile, av as addFolder, aw as isFolderNode, ax as deleteNode, ay as updateNode, az as FILE$1, aA as moveNode, aB as generateNodesCopy, aC as copyNode, aD as createState$1, aE as setDriveName, aF as setAvailableOffline, aG as setSharingType, aH as SynchronizationUnitNotFoundError, aI as removeTrigger, aJ as generateUUID, aK as PullResponderTransmitter, aL as addTrigger, aM as ReadDriveNotFoundError, aN as openUrl, aO as getNodeOptions, aP as DRIVE$1, aQ as FOLDER, aR as requestPublicDrive, aS as serviceWorkerManager, aT as packageJson, aU as t$1, aV as gql, aW as request } from "./app-loader-B9WMnDgs.js";
24
+ import { c as createAction, a as createReducer, i as isDocumentAction, R as ReorderStateExamplesInputSchema, D as DeleteStateExampleInputSchema, U as UpdateStateExampleInputSchema, A as AddStateExampleInputSchema, S as SetInitialStateInputSchema, b as SetStateSchemaInputSchema, d as ReorderModuleOperationsInputSchema, e as DeleteOperationInputSchema, M as MoveOperationInputSchema, f as SetOperationReducerInputSchema, g as SetOperationTemplateInputSchema, h as SetOperationDescriptionInputSchema, j as SetOperationSchemaInputSchema, k as SetOperationScopeInputSchema, l as SetOperationNameInputSchema, m as AddOperationInputSchema, n as ReorderOperationExamplesInputSchema, o as DeleteOperationExampleInputSchema, p as UpdateOperationExampleInputSchema, q as AddOperationExampleInputSchema, r as ReorderOperationErrorsInputSchema, s as DeleteOperationErrorInputSchema, t as SetOperationErrorTemplateInputSchema, u as SetOperationErrorDescriptionInputSchema, v as SetOperationErrorNameInputSchema, w as SetOperationErrorCodeInputSchema, x as AddOperationErrorInputSchema, y as ReorderModulesInputSchema, z as DeleteModuleInputSchema, B as SetModuleDescriptionInputSchema, C as SetModuleNameInputSchema, E as AddModuleInputSchema, F as ReorderChangeLogItemsInputSchema, G as DeleteChangeLogItemInputSchema, H as UpdateChangeLogItemInputSchema, I as AddChangeLogItemInputSchema, J as SetAuthorWebsiteInputSchema, K as SetAuthorNameInputSchema, L as SetModelDescriptionInputSchema, N as SetModelExtensionInputSchema, O as SetModelIdInputSchema, P as SetModelNameInputSchema, Q as baseCreateExtendedState, T as baseCreateDocument, V as baseSaveToFile, W as baseSaveToFileHandle, X as baseLoadFromFile, Y as baseLoadFromInput, Z as pascalCase, _ as Icon, $ as getDefaultExportFromCjs, a0 as LOCAL, a1 as commonjsGlobal, a2 as PUBLIC, a3 as SWITCHBOARD, a4 as locationInfoByLocation, a5 as sharingTypeOptions, a6 as objectType, a7 as recordType, a8 as stringType, a9 as capitalCase, aa as CLOUD, ab as createZip, ac as logger$1, ad as LZString, ae as buildSignedOperation, af as getI18n, ag as getDefaults, ah as connectConfig, ai as hashDocumentStateForScope, aj as getAugmentedNamespace, ak as setErrorHandler, al as driveDocumentModelModule, am as createBrowserDocumentDriveServer, an as hashKey$1, ao as childLogger, ap as reducer$8, aq as isDocumentDrive, ar as generateAddNodeAction, as as isFileNode, at as uploadDocumentOperations, au as updateFile, av as addFolder, aw as isFolderNode, ax as deleteNode, ay as updateNode, az as FILE$1, aA as moveNode, aB as generateNodesCopy, aC as copyNode, aD as createState$1, aE as setDriveName, aF as setAvailableOffline, aG as setSharingType, aH as SynchronizationUnitNotFoundError, aI as removeTrigger, aJ as generateUUID, aK as PullResponderTransmitter, aL as addTrigger, aM as ReadDriveNotFoundError, aN as openUrl, aO as getNodeOptions, aP as DRIVE$1, aQ as FOLDER, aR as requestPublicDrive, aS as serviceWorkerManager, aT as packageJson, aU as t$1, aV as gql, aW as request } from "./app-loader-BsJCIY3v.js";
25
25
  import * as React from "react";
26
26
  import React__default, { useLayoutEffect, useEffect, useState, forwardRef, useRef, useCallback, useContext, useMemo, createContext, Component, Fragment as Fragment$1, createElement, useSyncExternalStore, useId as useId$1, isValidElement, cloneElement, Children, useReducer, useDebugValue, Suspense } from "react";
27
27
  import * as ReactDOM from "react-dom";
@@ -21167,7 +21167,7 @@ async function call(client2, args) {
21167
21167
  } catch (err) {
21168
21168
  const data2 = getRevertErrorData(err);
21169
21169
  const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => {
21170
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-XbQMrTCQ.js");
21170
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-CWiYf37C.js");
21171
21171
  return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 };
21172
21172
  }, true ? __vite__mapDeps([0,1,2,3]) : void 0);
21173
21173
  if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
@@ -74658,7 +74658,7 @@ const useFilteredDocumentModels = () => {
74658
74658
  return filteredDocumentModels;
74659
74659
  };
74660
74660
  async function loadBaseEditors() {
74661
- const documentModelEditor = await __vitePreload(() => import("./index-DZDjpeBO.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
74661
+ const documentModelEditor = await __vitePreload(() => import("./index-DFoYtrS6.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
74662
74662
  await __vitePreload(() => Promise.resolve({}), true ? __vite__mapDeps([5]) : void 0);
74663
74663
  const module = documentModelEditor.documentModelEditorModule;
74664
74664
  return [module];
@@ -74809,11 +74809,11 @@ const connectCrypto = (async () => {
74809
74809
  return window.connectCrypto;
74810
74810
  }
74811
74811
  const { ConnectCrypto: ConnectCrypto2 } = await __vitePreload(async () => {
74812
- const { ConnectCrypto: ConnectCrypto3 } = await import("./index-C3q-1asu.js");
74812
+ const { ConnectCrypto: ConnectCrypto3 } = await import("./index-n2OSuQ3g.js");
74813
74813
  return { ConnectCrypto: ConnectCrypto3 };
74814
74814
  }, true ? __vite__mapDeps([6,1,2,3]) : void 0);
74815
74815
  const { BrowserKeyStorage: BrowserKeyStorage2 } = await __vitePreload(async () => {
74816
- const { BrowserKeyStorage: BrowserKeyStorage3 } = await import("./index-C3q-1asu.js");
74816
+ const { BrowserKeyStorage: BrowserKeyStorage3 } = await import("./index-n2OSuQ3g.js");
74817
74817
  return { BrowserKeyStorage: BrowserKeyStorage3 };
74818
74818
  }, true ? __vite__mapDeps([6,1,2,3]) : void 0);
74819
74819
  const connectCrypto2 = new ConnectCrypto2(new BrowserKeyStorage2());
@@ -74862,7 +74862,7 @@ function useRenown() {
74862
74862
  return;
74863
74863
  }
74864
74864
  const { initRenownBrowser } = await __vitePreload(async () => {
74865
- const { initRenownBrowser: initRenownBrowser2 } = await import("./index-C3q-1asu.js");
74865
+ const { initRenownBrowser: initRenownBrowser2 } = await import("./index-n2OSuQ3g.js");
74866
74866
  return { initRenownBrowser: initRenownBrowser2 };
74867
74867
  }, true ? __vite__mapDeps([6,1,2,3]) : void 0);
74868
74868
  const renownBrowser = initRenownBrowser(did2);
@@ -83746,7 +83746,7 @@ function Home() {
83746
83746
  /* @__PURE__ */ jsx$1(HomeScreenAddDriveItem, { onClick: onAddDriveClick })
83747
83747
  ] });
83748
83748
  }
83749
- const Content = React__default.lazy(() => __vitePreload(() => import("./content-B39UDenT.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
83749
+ const Content = React__default.lazy(() => __vitePreload(() => import("./content-DrqtiFBt.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
83750
83750
  async function createRouter(routes) {
83751
83751
  var _a2;
83752
83752
  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-L-nqsJL1.js","assets/main.B_-fy86f.js","assets/app-Dtx0nq4m.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-SJyv410V.js","assets/main.BcxEuVs0.js","assets/app-Dtx0nq4m.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.B_-fy86f.js";
14
+ import { _ as __vitePreload } from "./main.BcxEuVs0.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) {
@@ -24343,8 +24343,7 @@ class MemoryStorage {
24343
24343
  }
24344
24344
  delete this.documents[docId];
24345
24345
  }));
24346
- delete this.driveManifests[id];
24347
- delete this.documents[id];
24346
+ await this.delete(id);
24348
24347
  }
24349
24348
  async getSynchronizationUnitsRevision(units) {
24350
24349
  const results = await Promise.allSettled(units.map(async (unit) => {
@@ -25830,7 +25829,7 @@ const nodeOptionsMap = {
25830
25829
  };
25831
25830
  const name = "@powerhousedao/connect";
25832
25831
  const productName = "Powerhouse-Connect";
25833
- const version$1 = "1.0.23-staging.1";
25832
+ const version$1 = "1.1.0";
25834
25833
  const description = "Powerhouse Connect";
25835
25834
  const main = "./dist/index.html";
25836
25835
  const type = "module";
@@ -28771,9 +28770,7 @@ const _BrowserStorage = class _BrowserStorage {
28771
28770
  async deleteDrive(id) {
28772
28771
  const documents = await this.getChildren(id);
28773
28772
  await Promise.all(documents.map((doc) => this.delete(doc)));
28774
- const db = await this.db;
28775
- await db.removeItem(this.buildManifestKey(id));
28776
- return db.removeItem(this.buildDocumentKey(id));
28773
+ await this.delete(id);
28777
28774
  }
28778
28775
  async addDriveOperations(id, operations, header) {
28779
28776
  const drive = await this.get(id);
@@ -31454,7 +31451,7 @@ if (window.__VITE_ENVS.MODE === "development") {
31454
31451
  } else {
31455
31452
  serviceWorkerManager.registerServiceWorker(false);
31456
31453
  }
31457
- const App = lazy(() => __vitePreload(() => import("./app-L-nqsJL1.js").then((n) => n.a_), true ? __vite__mapDeps([0,1,2]) : void 0));
31454
+ const App = lazy(() => __vitePreload(() => import("./app-SJyv410V.js").then((n) => n.a_), true ? __vite__mapDeps([0,1,2]) : void 0));
31458
31455
  const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
31459
31456
  const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31460
31457
  __proto__: null,
@@ -1,7 +1,7 @@
1
- import { aO as BaseError, aP as getUrl, aQ as stringify, aR as decodeErrorResult, aS as isAddressEqual, aT as localBatchGatewayUrl, aU as localBatchGatewayRequest, aV as call, aW as concat, aX as encodeAbiParameters, aY as HttpRequestError, aZ as isHex } from "./app-L-nqsJL1.js";
2
- import "./main.B_-fy86f.js";
1
+ import { aO as BaseError, aP as getUrl, aQ as stringify, aR as decodeErrorResult, aS as isAddressEqual, aT as localBatchGatewayUrl, aU as localBatchGatewayRequest, aV as call, aW as concat, aX as encodeAbiParameters, aY as HttpRequestError, aZ as isHex } from "./app-SJyv410V.js";
2
+ import "./main.BcxEuVs0.js";
3
3
  import "react/jsx-runtime";
4
- import "./app-loader-B9WMnDgs.js";
4
+ import "./app-loader-BsJCIY3v.js";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  class OffchainLookupError extends BaseError {
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
2
- import { t as twMerge, B as Button, m as mergeClassNameProps, E as ERROR, M as MISSING, C as CONFLICT, S as SUCCESS, k as SYNCING, I as INITIAL_SYNC, l as ConnectDropdownMenu, u as useOnClickOutside, n as useEventListener, o as useCopyToClipboard, p as Select, q as ENSAvatar, P as Provider, v as Root3, T as Trigger, w as Portal, x as Content2, y as validateInitialState, z as validateStateSchemaName, A as validateModules, D as useDocumentDrives, F as useUiNodesContext, G as useDriveContext, H as FILE$1, J as useUnwrappedReactor, K as useConnectDid, L as useConnectCrypto, N as useTranslation, O as useModal, Q as useAtomValue, U as themeAtom, V as useUser, W as useUserPermissions$1, X as useUiNodes, Y as exportFile, Z as useGetDocumentModelModule, _ as addActionContext$1, $ as signOperation$1, a0 as useDocumentDriveServer, a1 as useHotkeys, a2 as useGetEditor, a3 as isSameDocument, a4 as useNavigate, a5 as ErrorBoundary, a6 as DriveLayout, a7 as DriveContextProvider, a8 as SearchBar, a9 as useAsyncReactor, aa as useFilteredDocumentModels, ab as useDriveEditor, ac as useDocumentDriveById, ad as useParams, ae as useDocumentDrives$1, af as toast } from "./app-L-nqsJL1.js";
2
+ import { t as twMerge, B as Button, m as mergeClassNameProps, E as ERROR, M as MISSING, C as CONFLICT, S as SUCCESS, k as SYNCING, I as INITIAL_SYNC, l as ConnectDropdownMenu, u as useOnClickOutside, n as useEventListener, o as useCopyToClipboard, p as Select, q as ENSAvatar, P as Provider, v as Root3, T as Trigger, w as Portal, x as Content2, y as validateInitialState, z as validateStateSchemaName, A as validateModules, D as useDocumentDrives, F as useUiNodesContext, G as useDriveContext, H as FILE$1, J as useUnwrappedReactor, K as useConnectDid, L as useConnectCrypto, N as useTranslation, O as useModal, Q as useAtomValue, U as themeAtom, V as useUser, W as useUserPermissions$1, X as useUiNodes, Y as exportFile, Z as useGetDocumentModelModule, _ as addActionContext$1, $ as signOperation$1, a0 as useDocumentDriveServer, a1 as useHotkeys, a2 as useGetEditor, a3 as isSameDocument, a4 as useNavigate, a5 as ErrorBoundary, a6 as DriveLayout, a7 as DriveContextProvider, a8 as SearchBar, a9 as useAsyncReactor, aa as useFilteredDocumentModels, ab as useDriveEditor, ac as useDocumentDriveById, ad as useParams, ae as useDocumentDrives$1, af as toast } from "./app-SJyv410V.js";
3
3
  import * as React from "react";
4
4
  import React__default, { useState, useCallback, useMemo, useEffect, Fragment, useRef, useLayoutEffect, memo as memo$1, createElement, useSyncExternalStore, Suspense } from "react";
5
- import { _ as Icon, aX as getDimensions, aY as READ, aZ as nodeOptionsMap, a_ as defaultFileOptions, a$ as DELETE, b0 as RENAME, b1 as WRITE, b2 as DUPLICATE, b3 as defaultFolderOptions, b4 as garbageCollect, b5 as sortOperations, b6 as UI_NODE, aP as DRIVE, az as FILE, ae as buildSignedOperation, b7 as generateId$1, aw as isFolderNode, aB as generateNodesCopy, aC as copyNode, aA as moveNode, ay as updateNode, ax as deleteNode, ar as generateAddNodeAction, as as isFileNode, av as addFolder, b8 as undo, b9 as redo, ac as logger, ba as useDocumentDispatch$1, aQ as FOLDER, al as driveDocumentModelModule } from "./app-loader-B9WMnDgs.js";
5
+ import { _ as Icon, aX as getDimensions, aY as READ, aZ as nodeOptionsMap, a_ as defaultFileOptions, a$ as DELETE, b0 as RENAME, b1 as WRITE, b2 as DUPLICATE, b3 as defaultFolderOptions, b4 as garbageCollect, b5 as sortOperations, b6 as UI_NODE, aP as DRIVE, az as FILE, ae as buildSignedOperation, b7 as generateId$1, aw as isFolderNode, aB as generateNodesCopy, aC as copyNode, aA as moveNode, ay as updateNode, ax as deleteNode, ar as generateAddNodeAction, as as isFileNode, av as addFolder, b8 as undo, b9 as redo, ac as logger, ba as useDocumentDispatch$1, aQ as FOLDER, al as driveDocumentModelModule } from "./app-loader-BsJCIY3v.js";
6
6
  import { flushSync } from "react-dom";
7
- import "./main.B_-fy86f.js";
7
+ import "./main.BcxEuVs0.js";
8
8
  const PaginationButton = ({ active = false, ...props }) => {
9
9
  const className = twMerge("h-8 min-w-8 border border-solid border-gray-300 bg-white px-3 py-1 text-xs text-gray-900 hover:bg-gray-100", !active && "border-0");
10
10
  return jsx(Button, { color: "light", size: "small", ...mergeClassNameProps(props, className), children: props.children });
@@ -1,8 +1,8 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-loader-B9WMnDgs.js","assets/main.B_-fy86f.js","assets/app-loader-3ipafc56.css"])))=>i.map(i=>d[i]);
2
- import { _ as __vitePreload } from "./main.B_-fy86f.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-loader-BsJCIY3v.js","assets/main.BcxEuVs0.js","assets/app-loader-3ipafc56.css"])))=>i.map(i=>d[i]);
2
+ import { _ as __vitePreload } from "./main.BcxEuVs0.js";
3
3
  import { createRoot } from "react-dom/client";
4
4
  async function renderApp(element) {
5
- const AppLoader = await __vitePreload(() => import("./app-loader-B9WMnDgs.js").then((n) => n.ca), true ? __vite__mapDeps([0,1,2]) : void 0);
5
+ const AppLoader = await __vitePreload(() => import("./app-loader-BsJCIY3v.js").then((n) => n.ca), true ? __vite__mapDeps([0,1,2]) : void 0);
6
6
  createRoot(element).render(AppLoader.default);
7
7
  }
8
8
  const AppElement = document.getElementById("app");
@@ -1,10 +1,10 @@
1
1
  var _a2, _b;
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { t as twMerge, ag as clsx, ah as get, ai as set, aj as appendErrors, ak as useFormContext, al as Primitive, am as cva, an as FormProvider, ao as Controller, ap as Slot, aq as useForm, ar as Root2, as as List, at as Trigger, au as Content, av as setModelName, aw as setModelId, ax as setModelDescription, ay as setModelExtension, az as setAuthorName, aA as setAuthorWebsite, aB as setStateSchema, aC as setInitialState, aD as addModule, aE as setModuleName, aF as deleteModule, aG as addOperation, aH as setOperationName, aI as setOperationSchema, aJ as setOperationDescription, aK as deleteOperation, aL as addOperationError, aM as deleteOperationError, aN as setOperationErrorName } from "./app-L-nqsJL1.js";
4
- import { bb as inspect$1, bc as GraphQLError$1, bd as getNamedType, be as invariant$2, bf as isInputObjectType, bg as isScalarType, bh as isObjectType, bi as isInterfaceType, bj as isUnionType, bk as isEnumType, bl as print, bm as isPrintableAsBlockString, bn as Kind, bo as astFromValue$1, bp as DEFAULT_DEPRECATION_REASON, bq as isSpecifiedDirective, br as isSpecifiedScalarType, bs as isIntrospectionType, bt as z, bu as GraphQLScalarType, bv as specifiedRules$1, bw as GraphQLID, bx as GraphQLBoolean, by as GraphQLString, bz as GraphQLFloat, bA as GraphQLInt, bB as GraphQLDirective, bC as GraphQLObjectType, bD as GraphQLInterfaceType, bE as GraphQLUnionType, bF as GraphQLInputObjectType, bG as GraphQLEnumType, bH as isListType, bI as GraphQLList, bJ as isNonNullType, bK as GraphQLNonNull, bL as isNamedType, bM as getNullableType, bN as isLeafType, bO as GraphQLSchema, bP as buildSchema, bQ as buildASTSchema, bR as parse, bS as validate$2, Z as pascalCase, bT as visit, bU as extendSchema, $ as getDefaultExportFromCjs, bV as snakeCase, bW as constantCase, bX as isAbstractType, bY as BREAK, bZ as SchemaMetaFieldDef, b_ as TypeMetaFieldDef, b$ as TypeNameMetaFieldDef, c0 as isCompositeType, c1 as isOutputType, c2 as isInputType, c3 as assertAbstractType, c4 as doTypesOverlap, c5 as DirectiveLocation, c6 as NoUnusedFragmentsRule$1, c7 as ExecutableDefinitionsRule$1, c8 as validateSchema, c9 as sentenceCase, an as hashKey } from "./app-loader-B9WMnDgs.js";
3
+ import { t as twMerge, ag as clsx, ah as get, ai as set, aj as appendErrors, ak as useFormContext, al as Primitive, am as cva, an as FormProvider, ao as Controller, ap as Slot, aq as useForm, ar as Root2, as as List, at as Trigger, au as Content, av as setModelName, aw as setModelId, ax as setModelDescription, ay as setModelExtension, az as setAuthorName, aA as setAuthorWebsite, aB as setStateSchema, aC as setInitialState, aD as addModule, aE as setModuleName, aF as deleteModule, aG as addOperation, aH as setOperationName, aI as setOperationSchema, aJ as setOperationDescription, aK as deleteOperation, aL as addOperationError, aM as deleteOperationError, aN as setOperationErrorName } from "./app-SJyv410V.js";
4
+ import { bb as inspect$1, bc as GraphQLError$1, bd as getNamedType, be as invariant$2, bf as isInputObjectType, bg as isScalarType, bh as isObjectType, bi as isInterfaceType, bj as isUnionType, bk as isEnumType, bl as print, bm as isPrintableAsBlockString, bn as Kind, bo as astFromValue$1, bp as DEFAULT_DEPRECATION_REASON, bq as isSpecifiedDirective, br as isSpecifiedScalarType, bs as isIntrospectionType, bt as z, bu as GraphQLScalarType, bv as specifiedRules$1, bw as GraphQLID, bx as GraphQLBoolean, by as GraphQLString, bz as GraphQLFloat, bA as GraphQLInt, bB as GraphQLDirective, bC as GraphQLObjectType, bD as GraphQLInterfaceType, bE as GraphQLUnionType, bF as GraphQLInputObjectType, bG as GraphQLEnumType, bH as isListType, bI as GraphQLList, bJ as isNonNullType, bK as GraphQLNonNull, bL as isNamedType, bM as getNullableType, bN as isLeafType, bO as GraphQLSchema, bP as buildSchema, bQ as buildASTSchema, bR as parse, bS as validate$2, Z as pascalCase, bT as visit, bU as extendSchema, $ as getDefaultExportFromCjs, bV as snakeCase, bW as constantCase, bX as isAbstractType, bY as BREAK, bZ as SchemaMetaFieldDef, b_ as TypeMetaFieldDef, b$ as TypeNameMetaFieldDef, c0 as isCompositeType, c1 as isOutputType, c2 as isInputType, c3 as assertAbstractType, c4 as doTypesOverlap, c5 as DirectiveLocation, c6 as NoUnusedFragmentsRule$1, c7 as ExecutableDefinitionsRule$1, c8 as validateSchema, c9 as sentenceCase, an as hashKey } from "./app-loader-BsJCIY3v.js";
5
5
  import * as React from "react";
6
6
  import React__default, { useState, useEffect, createContext, useContext, forwardRef, useRef, useCallback, useImperativeHandle, useId, memo, useMemo } from "react";
7
- import "./main.B_-fy86f.js";
7
+ import "./main.BcxEuVs0.js";
8
8
  import "react-dom";
9
9
  const versionInfo = Object.freeze({
10
10
  major: 16,
@@ -2119,76 +2119,69 @@ function handleModelNameChange(params) {
2119
2119
  }
2120
2120
  updateModelSchemaNames(params);
2121
2121
  }
2122
- const r = (t2, r2, o2) => {
2123
- if (t2 && "reportValidity" in t2) {
2124
- const s2 = get(o2, r2);
2125
- t2.setCustomValidity(s2 && s2.message || ""), t2.reportValidity();
2126
- }
2127
- }, o = (e, t2) => {
2128
- for (const o2 in t2.fields) {
2129
- const s2 = t2.fields[o2];
2130
- s2 && s2.ref && "reportValidity" in s2.ref ? r(s2.ref, o2, e) : s2 && s2.refs && s2.refs.forEach((t3) => r(t3, o2, e));
2131
- }
2132
- }, s$1 = (r2, s2) => {
2133
- s2.shouldUseNativeValidation && o(r2, s2);
2134
- const n2 = {};
2135
- for (const o2 in r2) {
2136
- const f = get(s2.fields, o2), c = Object.assign(r2[o2] || {}, { ref: f && f.ref });
2137
- if (i$1(s2.names || Object.keys(r2), o2)) {
2138
- const r3 = Object.assign({}, get(n2, o2));
2139
- set(r3, "root", c), set(n2, o2, r3);
2140
- } else set(n2, o2, c);
2141
- }
2142
- return n2;
2143
- }, i$1 = (e, t2) => {
2144
- const r2 = n$1(t2);
2145
- return e.some((e2) => n$1(e2).match(`^${r2}\\.\\d+`));
2146
- };
2147
- function n$1(e) {
2148
- return e.replace(/\]|\[/g, "");
2149
- }
2150
- function n(r2, e) {
2122
+ const s = (e, s2, o2) => {
2123
+ if (e && "reportValidity" in e) {
2124
+ const r2 = get(o2, s2);
2125
+ e.setCustomValidity(r2 && r2.message || ""), e.reportValidity();
2126
+ }
2127
+ }, o = (t2, e) => {
2128
+ for (const o2 in e.fields) {
2129
+ const r2 = e.fields[o2];
2130
+ r2 && r2.ref && "reportValidity" in r2.ref ? s(r2.ref, o2, t2) : r2.refs && r2.refs.forEach((e2) => s(e2, o2, t2));
2131
+ }
2132
+ }, r = (s2, r2) => {
2133
+ r2.shouldUseNativeValidation && o(s2, r2);
2134
+ const f = {};
2135
+ for (const o2 in s2) {
2136
+ const n2 = get(r2.fields, o2), a = Object.assign(s2[o2] || {}, { ref: n2 && n2.ref });
2137
+ if (i$1(r2.names || Object.keys(s2), o2)) {
2138
+ const s3 = Object.assign({}, get(f, o2));
2139
+ set(s3, "root", a), set(f, o2, s3);
2140
+ } else set(f, o2, a);
2141
+ }
2142
+ return f;
2143
+ }, i$1 = (t2, e) => t2.some((t3) => t3.startsWith(e + "."));
2144
+ var n = function(r2, e) {
2151
2145
  for (var n2 = {}; r2.length; ) {
2152
- var s2 = r2[0], t2 = s2.code, i = s2.message, a = s2.path.join(".");
2153
- if (!n2[a]) if ("unionErrors" in s2) {
2154
- var u = s2.unionErrors[0].errors[0];
2146
+ var t2 = r2[0], s2 = t2.code, i = t2.message, a = t2.path.join(".");
2147
+ if (!n2[a]) if ("unionErrors" in t2) {
2148
+ var u = t2.unionErrors[0].errors[0];
2155
2149
  n2[a] = { message: u.message, type: u.code };
2156
- } else n2[a] = { message: i, type: t2 };
2157
- if ("unionErrors" in s2 && s2.unionErrors.forEach(function(e2) {
2150
+ } else n2[a] = { message: i, type: s2 };
2151
+ if ("unionErrors" in t2 && t2.unionErrors.forEach(function(e2) {
2158
2152
  return e2.errors.forEach(function(e3) {
2159
2153
  return r2.push(e3);
2160
2154
  });
2161
2155
  }), e) {
2162
- var c = n2[a].types, f = c && c[s2.code];
2163
- n2[a] = appendErrors(a, e, n2, t2, f ? [].concat(f, s2.message) : s2.message);
2156
+ var c = n2[a].types, f = c && c[t2.code];
2157
+ n2[a] = appendErrors(a, e, n2, s2, f ? [].concat(f, t2.message) : t2.message);
2164
2158
  }
2165
2159
  r2.shift();
2166
2160
  }
2167
2161
  return n2;
2168
- }
2169
- function s(o$1, s2, t2) {
2170
- return void 0 === t2 && (t2 = {}), function(i, a, u) {
2162
+ }, t$2 = function(o$1, t2, s2) {
2163
+ return void 0 === s2 && (s2 = {}), function(i, a, u) {
2171
2164
  try {
2172
2165
  return Promise.resolve(function(e, n2) {
2173
2166
  try {
2174
- var a2 = Promise.resolve(o$1["sync" === t2.mode ? "parse" : "parseAsync"](i, s2)).then(function(e2) {
2175
- return u.shouldUseNativeValidation && o({}, u), { errors: {}, values: t2.raw ? Object.assign({}, i) : e2 };
2167
+ var a2 = Promise.resolve(o$1["sync" === s2.mode ? "parse" : "parseAsync"](i, t2)).then(function(e2) {
2168
+ return u.shouldUseNativeValidation && o({}, u), { errors: {}, values: s2.raw ? i : e2 };
2176
2169
  });
2177
2170
  } catch (r2) {
2178
2171
  return n2(r2);
2179
2172
  }
2180
2173
  return a2 && a2.then ? a2.then(void 0, n2) : a2;
2181
- }(0, function(r2) {
2182
- if (function(r3) {
2183
- return Array.isArray(null == r3 ? void 0 : r3.errors);
2184
- }(r2)) return { values: {}, errors: s$1(n(r2.errors, !u.shouldUseNativeValidation && "all" === u.criteriaMode), u) };
2185
- throw r2;
2174
+ }(0, function(r$1) {
2175
+ if (function(r2) {
2176
+ return Array.isArray(null == r2 ? void 0 : r2.errors);
2177
+ }(r$1)) return { values: {}, errors: r(n(r$1.errors, !u.shouldUseNativeValidation && "all" === u.criteriaMode), u) };
2178
+ throw r$1;
2186
2179
  }));
2187
2180
  } catch (r2) {
2188
2181
  return Promise.reject(r2);
2189
2182
  }
2190
2183
  };
2191
- }
2184
+ };
2192
2185
  var validator$1 = { exports: {} };
2193
2186
  var toDate = { exports: {} };
2194
2187
  var assertString = { exports: {} };
@@ -9166,7 +9159,7 @@ const TextField = forwardRef(({ name: name2, value, onSubmit, label, placeholder
9166
9159
  [name2]: createNameSchema({ required, allowEmpty, unique })
9167
9160
  });
9168
9161
  const form = useForm({
9169
- resolver: s(fieldSchema),
9162
+ resolver: t$2(fieldSchema),
9170
9163
  defaultValues: {
9171
9164
  [name2]: value ?? ""
9172
9165
  }
@@ -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.B_-fy86f.js";
14
- import { r as rawKeyInHexfromUncompressed, c as compressedKeyInHexfromRaw, e as encodeDIDfromHexString, a as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-L-nqsJL1.js";
15
- import { i, h, d, j, b, f, s } from "./app-L-nqsJL1.js";
16
- import { ah as connectConfig, ac as logger } from "./app-loader-B9WMnDgs.js";
13
+ import { _ as __vitePreload } from "./main.BcxEuVs0.js";
14
+ import { r as rawKeyInHexfromUncompressed, c as compressedKeyInHexfromRaw, e as encodeDIDfromHexString, a as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-SJyv410V.js";
15
+ import { i, h, d, j, b, f, s } from "./app-SJyv410V.js";
16
+ import { ah as connectConfig, ac as logger } from "./app-loader-BsJCIY3v.js";
17
17
  import "react/jsx-runtime";
18
18
  import "react";
19
19
  import "react-dom";
@@ -109,7 +109,7 @@ const __vitePreload = function preload(baseModule, deps, importerUrl) {
109
109
  return baseModule().catch(handlePreloadError);
110
110
  });
111
111
  };
112
- __vitePreload(() => import("./index-CCHuBMLB.js"), true ? [] : void 0);
112
+ __vitePreload(() => import("./index-CS0mQFrd.js"), true ? [] : void 0);
113
113
  export {
114
114
  __vitePreload as _
115
115
  };
package/dist/index.html CHANGED
@@ -64,4 +64,4 @@
64
64
  "react-dom": "https://esm.sh/react-dom",
65
65
  "react-dom/": "https://esm.sh/react-dom/"
66
66
  }
67
- }</script><script type="module" crossorigin="" src="/assets/main.B_-fy86f.js"></script></head><body><div id="app"></div></body></html>
67
+ }</script><script type="module" crossorigin="" src="/assets/main.BcxEuVs0.js"></script></head><body><div id="app"></div></body></html>
package/dist/vite-envs.sh CHANGED
@@ -11,7 +11,7 @@ replaceAll() {
11
11
  }'
12
12
  }
13
13
 
14
- html=$(echo "PCFET0NUWVBFIGh0bWw+PGh0bWw+PGhlYWQ+PG1ldGEgY2hhcnNldD0iVVRGLTgiPjxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj48dGl0bGU+UG93ZXJob3VzZSBDb25uZWN0PC90aXRsZT48YmFzZSBocmVmPSIvIj48bGluayByZWw9Imljb24iIGhyZWY9Ii9pY29uLmljbyI+PCEtLSB2aXRlLWVudnMgc2NyaXB0IHBsYWNlaG9sZGVyIHhLc1BtTHMzMHN3S3NkSXNWeCAtLT48c2NyaXB0IHR5cGU9ImltcG9ydG1hcCI+ewogICJpbXBvcnRzIjogewogICAgInJlYWN0IjogImh0dHBzOi8vZXNtLnNoL3JlYWN0IiwKICAgICJyZWFjdC8iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QvIiwKICAgICJyZWFjdC1kb20iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QtZG9tIiwKICAgICJyZWFjdC1kb20vIjogImh0dHBzOi8vZXNtLnNoL3JlYWN0LWRvbS8iCiAgfQp9PC9zY3JpcHQ+PHNjcmlwdCB0eXBlPSJtb2R1bGUiIGNyb3Nzb3JpZ2luPSIiIHNyYz0iL2Fzc2V0cy9tYWluLkJfLWZ5ODZmLmpzIj48L3NjcmlwdD48L2hlYWQ+PGJvZHk+PGRpdiBpZD0iYXBwIj48L2Rpdj48L2JvZHk+PC9odG1sPg==" | base64 -d)
14
+ html=$(echo "PCFET0NUWVBFIGh0bWw+PGh0bWw+PGhlYWQ+PG1ldGEgY2hhcnNldD0iVVRGLTgiPjxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj48dGl0bGU+UG93ZXJob3VzZSBDb25uZWN0PC90aXRsZT48YmFzZSBocmVmPSIvIj48bGluayByZWw9Imljb24iIGhyZWY9Ii9pY29uLmljbyI+PCEtLSB2aXRlLWVudnMgc2NyaXB0IHBsYWNlaG9sZGVyIHhLc1BtTHMzMHN3S3NkSXNWeCAtLT48c2NyaXB0IHR5cGU9ImltcG9ydG1hcCI+ewogICJpbXBvcnRzIjogewogICAgInJlYWN0IjogImh0dHBzOi8vZXNtLnNoL3JlYWN0IiwKICAgICJyZWFjdC8iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QvIiwKICAgICJyZWFjdC1kb20iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QtZG9tIiwKICAgICJyZWFjdC1kb20vIjogImh0dHBzOi8vZXNtLnNoL3JlYWN0LWRvbS8iCiAgfQp9PC9zY3JpcHQ+PHNjcmlwdCB0eXBlPSJtb2R1bGUiIGNyb3Nzb3JpZ2luPSIiIHNyYz0iL2Fzc2V0cy9tYWluLkJjeEV1VnMwLmpzIj48L3NjcmlwdD48L2hlYWQ+PGJvZHk+PGRpdiBpZD0iYXBwIj48L2Rpdj48L2JvZHk+PC9odG1sPg==" | base64 -d)
15
15
 
16
16
  BASE_URL_base64="eEFwV2RSclg5OWtQclZnZ0UiLyIK"
17
17
  BASE_URL=$(echo "Lwo=" | base64 -d)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@powerhousedao/connect",
3
3
  "productName": "Powerhouse-Connect",
4
- "version": "1.0.23-staging.1",
4
+ "version": "1.1.0",
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.3.0",
83
83
  "vite-tsconfig-paths": "^5.1.4",
84
84
  "xvfb-maybe": "^0.2.1",
85
- "@powerhousedao/builder-tools": "0.9.34-staging.0",
86
- "@powerhousedao/config": "1.27.0-staging.3",
87
- "@powerhousedao/common": "1.10.39-staging.0",
88
- "@powerhousedao/design-system": "1.39.22-staging.0",
89
- "@powerhousedao/reactor-browser": "1.22.29-staging.2",
90
- "@powerhousedao/scalars": "1.33.1-staging.4",
91
- "document-model": "2.28.1-staging.4",
92
- "document-drive": "1.29.13-staging.0"
85
+ "@powerhousedao/builder-tools": "0.10.0",
86
+ "@powerhousedao/common": "1.11.0",
87
+ "@powerhousedao/config": "1.28.0",
88
+ "@powerhousedao/design-system": "1.40.0",
89
+ "@powerhousedao/reactor-browser": "1.23.0",
90
+ "document-drive": "1.30.0",
91
+ "document-model": "3.0.0",
92
+ "@powerhousedao/scalars": "2.0.0"
93
93
  },
94
94
  "optionalDependencies": {
95
95
  "@esbuild/linux-x64": "^0.21.4",