@powerhousedao/connect 1.0.13-staging.0 → 1.0.14-dev.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.
Files changed (27) hide show
  1. package/dist/assets/{app-VTmg2dno.js → app-B5ZMuJIv.js} +132 -115
  2. package/dist/assets/{app-PiC0Ta1H.css → app-d-RO8igP.css} +50 -69
  3. package/dist/assets/{app-loader-BC7bkM5Z.js → app-loader-DRIyi8JF.js} +202 -202
  4. package/dist/assets/{ccip-DhoJkgzT.js → ccip-Hk6T0zg7.js} +3 -3
  5. package/dist/assets/{content-DvbK8cAk.js → content-CRtUHDQR.js} +3 -3
  6. package/dist/assets/external-packages-nwfrlbiu.js +4 -0
  7. package/dist/assets/{index-BiP3Yfka.js → index-Cjvf2ZDY.js} +60 -60
  8. package/dist/assets/{index-B1FhncNK.js → index-DyhjYb_3.js} +3 -3
  9. package/dist/assets/{index-y0tRgxVh.js → index-ePkd9kxF.js} +3 -3
  10. package/dist/assets/{main.C1pDrTOz.js → main.0BtqBt0E.js} +1 -1
  11. package/dist/external-packages.js +0 -4
  12. package/dist/index.html +1 -1
  13. package/dist/modules/@powerhousedao/reactor-browser/{chunk-SJYGEYNL.js → chunk-HJFVYPII.js} +1 -1
  14. package/dist/modules/@powerhousedao/reactor-browser/{chunk-2GQV5NL6.js → chunk-IME4ZUL6.js} +7 -7
  15. package/dist/modules/@powerhousedao/reactor-browser/{chunk-T5LUZMLP.js → chunk-MLHWWUYZ.js} +1 -1
  16. package/dist/modules/@powerhousedao/reactor-browser/{chunk-JBIHRE7L.js → chunk-QGLDHTUZ.js} +1 -1
  17. package/dist/modules/@powerhousedao/reactor-browser/{chunk-JCLMFPZP.js → chunk-SJR6F726.js} +1 -1
  18. package/dist/modules/@powerhousedao/reactor-browser/context/index.js +2 -2
  19. package/dist/modules/@powerhousedao/reactor-browser/context/read-mode.js +2 -2
  20. package/dist/modules/@powerhousedao/reactor-browser/hooks/index.js +3 -3
  21. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActions.js +2 -2
  22. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes.js +3 -3
  23. package/dist/modules/@powerhousedao/reactor-browser/index.js +5 -5
  24. package/dist/modules/@powerhousedao/reactor-browser/reactor.js +2 -2
  25. package/dist/vite-envs.sh +1 -1
  26. package/nginx.conf +7 -0
  27. package/package.json +9 -9
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-DhoJkgzT.js","assets/main.C1pDrTOz.js","assets/app-loader-BC7bkM5Z.js","assets/app-loader-Br74gdhw.css","assets/index-B1FhncNK.js","assets/style-Ce3V83BE.css","assets/index-BiP3Yfka.js","assets/content-DvbK8cAk.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-Hk6T0zg7.js","assets/main.0BtqBt0E.js","assets/app-loader-DRIyi8JF.js","assets/app-loader-Br74gdhw.css","assets/index-DyhjYb_3.js","assets/style-Ce3V83BE.css","assets/index-Cjvf2ZDY.js","assets/content-CRtUHDQR.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.C1pDrTOz.js";
22
+ import { _ as __vitePreload } from "./main.0BtqBt0E.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-BC7bkM5Z.js";
24
+ import { az as createAction, aA as createReducer, aB as isDocumentAction, aC as ReorderStateExamplesInputSchema, aD as DeleteStateExampleInputSchema, aE as UpdateStateExampleInputSchema, aF as AddStateExampleInputSchema, aG as SetInitialStateInputSchema, aH as SetStateSchemaInputSchema, aI as ReorderModuleOperationsInputSchema, aJ as DeleteOperationInputSchema, aK as MoveOperationInputSchema, aL as SetOperationReducerInputSchema, aM as SetOperationTemplateInputSchema, aN as SetOperationDescriptionInputSchema, aO as SetOperationSchemaInputSchema, aP as SetOperationScopeInputSchema, aQ as SetOperationNameInputSchema, aR as AddOperationInputSchema, aS as ReorderOperationExamplesInputSchema, aT as DeleteOperationExampleInputSchema, aU as UpdateOperationExampleInputSchema, aV as AddOperationExampleInputSchema, aW as ReorderOperationErrorsInputSchema, aX as DeleteOperationErrorInputSchema, aY as SetOperationErrorTemplateInputSchema, aZ as SetOperationErrorDescriptionInputSchema, a_ as SetOperationErrorNameInputSchema, a$ as SetOperationErrorCodeInputSchema, b0 as AddOperationErrorInputSchema, b1 as ReorderModulesInputSchema, b2 as DeleteModuleInputSchema, b3 as SetModuleDescriptionInputSchema, b4 as SetModuleNameInputSchema, b5 as AddModuleInputSchema, b6 as ReorderChangeLogItemsInputSchema, b7 as DeleteChangeLogItemInputSchema, b8 as UpdateChangeLogItemInputSchema, b9 as AddChangeLogItemInputSchema, ba as SetAuthorWebsiteInputSchema, bb as SetAuthorNameInputSchema, bc as SetModelDescriptionInputSchema, bd as SetModelExtensionInputSchema, be as SetModelIdInputSchema, bf as SetModelNameInputSchema, bg as baseCreateExtendedState, bh as baseCreateDocument, bi as baseSaveToFile, bj as baseSaveToFileHandle, bk as baseLoadFromFile, bl as baseLoadFromInput, P as pascalCase, I as Icon, a as getDefaultExportFromCjs, bm as LOCAL, bn as commonjsGlobal, bo as PUBLIC, bp as SWITCHBOARD, bq as locationInfoByLocation, br as sharingTypeOptions, bs as objectType, bt as recordType, bu as stringType, bv as capitalCase, bw as CLOUD, bx as createZip, l as logger$1, by as LZString, bz as buildSignedOperation, bA as getI18n, bB as getDefaults, c as connectConfig, bC as hashDocumentStateForScope, bD as setErrorHandler, o as driveDocumentModelModule, bE as createBrowserDocumentDriveServer, ay as hashKey$1, bF as childLogger, bG as reducer$8, bH as isDocumentDrive, bI as generateAddNodeAction, bJ as isFileNode, bK as uploadDocumentOperations, bL as updateFile, bM as addFolder, bN as isFolderNode, bO as deleteNode, bP as updateNode, F as FILE, bQ as moveNode, bR as generateNodesCopy, bS as copyNode, bT as createState$1, bU as setDriveName, bV as setAvailableOffline, bW as setSharingType, bX as SynchronizationUnitNotFoundError, bY as removeTrigger, bZ as generateUUID, b_ as PullResponderTransmitter, b$ as addTrigger, c0 as ReadDriveNotFoundError, c1 as openUrl, c2 as getNodeOptions, j as DRIVE, m as FOLDER, c3 as requestPublicDrive, c4 as serviceWorkerManager, c5 as packageJson, c6 as t$1, c7 as gql, c8 as request } from "./app-loader-DRIyi8JF.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";
@@ -20574,7 +20574,7 @@ async function call(client2, args) {
20574
20574
  } catch (err) {
20575
20575
  const data2 = getRevertErrorData(err);
20576
20576
  const { offchainLookup, offchainLookupSignature } = await __vitePreload(async () => {
20577
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-DhoJkgzT.js");
20577
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-Hk6T0zg7.js");
20578
20578
  return { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 };
20579
20579
  }, true ? __vite__mapDeps([0,1,2,3]) : void 0);
20580
20580
  if (client2.ccipRead !== false && (data2 == null ? void 0 : data2.slice(0, 10)) === offchainLookupSignature && to)
@@ -33676,7 +33676,7 @@ function ConnectConfirmationModal(props) {
33676
33676
  }, onOpenChange, overlayProps: {
33677
33677
  ...overlayProps,
33678
33678
  className: overlayProps == null ? void 0 : overlayProps.className
33679
- }, ...restProps, children: jsxs("div", { ...mergeClassNameProps(containerProps, "w-[400px] p-6 text-slate-300"), children: [jsx$1("div", { ...mergeClassNameProps(headerProps, "border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800"), children: header }), jsxs("div", { ...mergeClassNameProps(bodyProps, "my-6 rounded-md bg-slate-50 p-4 text-center text-slate-200"), children: [body, children] }), jsxs("div", { ...mergeClassNameProps(buttonContainerProps, "mt-8 flex justify-between gap-3"), children: [jsx$1("button", { onClick: onCancel, ...mergeClassNameProps(cancelButtonProps, twMerge(buttonStyles$3, "flex-1 bg-slate-50 text-slate-800")), children: cancelLabel }), jsx$1("button", { onClick: onContinue, ...mergeClassNameProps(continueButtonProps, twMerge(buttonStyles$3, "flex-1 bg-gray-800 text-gray-50")), children: continueLabel })] })] }) });
33679
+ }, ...restProps, children: jsxs("div", { ...mergeClassNameProps(containerProps, "w-[400px] p-6 text-slate-300"), children: [jsx$1("div", { ...mergeClassNameProps(headerProps, "border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800"), children: header }), jsxs("div", { ...mergeClassNameProps(bodyProps, "my-6 rounded-md bg-slate-50 p-4 text-center"), children: [body, children] }), jsxs("div", { ...mergeClassNameProps(buttonContainerProps, "mt-8 flex justify-between gap-3"), children: [jsx$1("button", { onClick: onCancel, ...mergeClassNameProps(cancelButtonProps, twMerge(buttonStyles$3, "flex-1 bg-slate-50 text-slate-800")), children: cancelLabel }), jsx$1("button", { onClick: onContinue, ...mergeClassNameProps(continueButtonProps, twMerge(buttonStyles$3, "flex-1 bg-gray-800 text-gray-50")), children: continueLabel })] })] }) });
33680
33680
  }
33681
33681
  const buttonStyles$2 = "min-h-[48px] min-w-[142px] text-base font-semibold py-3 px-6 rounded-xl outline-none active:opacity-75 hover:scale-105 transform transition-all";
33682
33682
  const CLOSE_ANIMATION_DURATION = 300;
@@ -33705,7 +33705,7 @@ const ConnectDeleteDriveModal = (props) => {
33705
33705
  return jsx$1(ConnectConfirmationModal, { bodyProps: { className: "p-0 bg-white my-0" }, containerProps: { className: "w-[450px]" }, continueButtonProps: {
33706
33706
  disabled: inputName !== driveName,
33707
33707
  className: inputName !== driveName ? "bg-red-600 hover:scale-100 cursor-not-allowed active:opacity-100" : "bg-red-900"
33708
- }, ...confirmationModalProps, children: jsxs("div", { children: [jsx$1("div", { className: "my-6 rounded-md bg-slate-50 p-4 text-center text-slate-200", children: body }), jsx$1("div", { children: jsx$1(FormInput, { hideErrors: true, icon: jsx$1(Icon, { name: "Lock" }), onChange: (e2) => setInputName(e2.target.value), placeholder: inputPlaceholder, value: inputName }) })] }) });
33708
+ }, ...confirmationModalProps, children: jsxs("div", { children: [jsx$1("div", { className: "my-6 rounded-md bg-slate-50 p-4 text-center", children: body }), jsx$1("div", { children: jsx$1(FormInput, { hideErrors: true, icon: jsx$1(Icon, { name: "Lock" }), onChange: (e2) => setInputName(e2.target.value), placeholder: inputPlaceholder, value: inputName }) })] }) });
33709
33709
  };
33710
33710
  function ConnectDeleteItemModal(props) {
33711
33711
  const { onDelete, deleteLabel, ...restProps } = props;
@@ -33775,7 +33775,7 @@ function ReadRequiredModal(props) {
33775
33775
  }, onOpenChange, overlayProps: {
33776
33776
  ...overlayProps,
33777
33777
  className: overlayProps == null ? void 0 : overlayProps.className
33778
- }, ...restProps, children: jsxs("div", { ...mergeClassNameProps(containerProps, "w-[500px] p-6 text-slate-300"), children: [jsx$1("div", { ...mergeClassNameProps(headerProps, "border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800"), children: header }), jsxs("div", { ref: contentRef, ...mergeClassNameProps(bodyProps, "my-6 max-h-[245px] overflow-scroll rounded-md bg-slate-50 p-4 text-center text-slate-200"), children: [body, children] }), jsx$1("div", { ...mergeClassNameProps(buttonContainerProps, "mt-8 flex justify-between gap-3"), children: jsx$1("button", { disabled: disableClose, onClick: onContinue, ...mergeClassNameProps(continueButtonProps, twMerge(buttonStyles$1, "flex-1 bg-gray-800 text-gray-50", disableClose && "cursor-not-allowed bg-gray-300 hover:scale-100")), children: closeLabel }) })] }) });
33778
+ }, ...restProps, children: jsxs("div", { ...mergeClassNameProps(containerProps, "w-[500px] p-6 text-slate-300"), children: [jsx$1("div", { ...mergeClassNameProps(headerProps, "border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800"), children: header }), jsxs("div", { ref: contentRef, ...mergeClassNameProps(bodyProps, "my-6 max-h-[245px] overflow-scroll rounded-md bg-slate-50 p-4 text-center"), children: [body, children] }), jsx$1("div", { ...mergeClassNameProps(buttonContainerProps, "mt-8 flex justify-between gap-3"), children: jsx$1("button", { disabled: disableClose, onClick: onContinue, ...mergeClassNameProps(continueButtonProps, twMerge(buttonStyles$1, "flex-1 bg-gray-800 text-gray-50", disableClose && "cursor-not-allowed bg-gray-300 hover:scale-100")), children: closeLabel }) })] }) });
33779
33779
  }
33780
33780
  const REQUIRED_DEPENDENCIES = [
33781
33781
  "@powerhousedao/design-system",
@@ -35976,7 +35976,7 @@ function ConnectUpgradeDriveModal(props) {
35976
35976
  }, onOpenChange, overlayProps: {
35977
35977
  ...overlayProps,
35978
35978
  className: overlayProps == null ? void 0 : overlayProps.className
35979
- }, ...restProps, children: jsxs("div", { className: "w-[400px] p-6 text-slate-300", children: [jsx$1("div", { className: "border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800", children: header }), jsx$1("div", { className: "my-6 rounded-md bg-slate-50 p-4 text-center text-slate-200", children: body }), jsxs("div", { className: "mt-8 flex justify-between gap-3", children: [jsx$1("button", { className: twMerge(buttonStyles, "flex-1 bg-slate-50 text-slate-800"), onClick: () => onOpenChange == null ? void 0 : onOpenChange(false), children: cancelLabel }), jsx$1("button", { className: twMerge(buttonStyles, "flex-1 bg-gray-800 text-gray-50"), onClick: onContinue, children: continueLabel })] })] }) });
35979
+ }, ...restProps, children: jsxs("div", { className: "w-[400px] p-6 text-slate-300", children: [jsx$1("div", { className: "border-b border-slate-50 pb-2 text-2xl font-bold text-gray-800", children: header }), jsx$1("div", { className: "my-6 rounded-md bg-slate-50 p-4 text-center", children: body }), jsxs("div", { className: "mt-8 flex justify-between gap-3", children: [jsx$1("button", { className: twMerge(buttonStyles, "flex-1 bg-slate-50 text-slate-800"), onClick: () => onOpenChange == null ? void 0 : onOpenChange(false), children: cancelLabel }), jsx$1("button", { className: twMerge(buttonStyles, "flex-1 bg-gray-800 text-gray-50"), onClick: onContinue, children: continueLabel })] })] }) });
35980
35980
  }
35981
35981
  const Select = fixedForwardRef(function Select2(props, ref) {
35982
35982
  const { items, value, id, onChange: onChange2, containerClassName, menuClassName, itemClassName, absolutePositionMenu = false, borderRadius: borderRadius2 = "6px" } = props;
@@ -36400,7 +36400,7 @@ function getDefaultOptions(type) {
36400
36400
  }
36401
36401
  return { type };
36402
36402
  }
36403
- function toast(content, options2) {
36403
+ function toast$1(content, options2) {
36404
36404
  const { type = "default", ...restOptions } = options2 || {};
36405
36405
  const defaultOptions2 = getDefaultOptions(type);
36406
36406
  return B(content, { ...defaultOptions2, ...restOptions });
@@ -71540,7 +71540,7 @@ const RENOWN_URL = window.__VITE_ENVS.PH_CONNECT_RENOWN_URL || "https://www.reno
71540
71540
  const RENOWN_NETWORK_ID = window.__VITE_ENVS.PH_CONNECT_RENOWN_NETWORK_ID || "eip155";
71541
71541
  const RENOWN_CHAIN_ID = window.__VITE_ENVS.PH_CONNECT_RENOWN_CHAIN_ID || "1";
71542
71542
  function loadExternalPackages() {
71543
- return __vitePreload(() => import("../external-packages.js"), true ? [] : void 0).catch((e2) => console.error(e2)).then((module) => (module == null ? void 0 : module.default) ?? []);
71543
+ return __vitePreload(() => import("./external-packages-nwfrlbiu.js"), true ? [] : void 0).catch((e2) => console.error(e2)).then((module) => (module == null ? void 0 : module.default) ?? []);
71544
71544
  }
71545
71545
  const hmrAvailableAtom = atom(async () => {
71546
71546
  const module = await getHMRModule();
@@ -71667,7 +71667,7 @@ const useFilteredDocumentModels = () => {
71667
71667
  return filteredDocumentModels;
71668
71668
  };
71669
71669
  async function loadBaseEditors() {
71670
- const documentModelEditor = await __vitePreload(() => import("./index-B1FhncNK.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
71670
+ const documentModelEditor = await __vitePreload(() => import("./index-DyhjYb_3.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
71671
71671
  await __vitePreload(() => Promise.resolve({}), true ? __vite__mapDeps([5]) : void 0);
71672
71672
  const module = documentModelEditor.documentModelEditorModule;
71673
71673
  return [module];
@@ -71818,11 +71818,11 @@ const connectCrypto = (async () => {
71818
71818
  return window.connectCrypto;
71819
71819
  }
71820
71820
  const { ConnectCrypto } = await __vitePreload(async () => {
71821
- const { ConnectCrypto: ConnectCrypto2 } = await import("./index-BiP3Yfka.js");
71821
+ const { ConnectCrypto: ConnectCrypto2 } = await import("./index-Cjvf2ZDY.js");
71822
71822
  return { ConnectCrypto: ConnectCrypto2 };
71823
71823
  }, true ? __vite__mapDeps([6,1,2,3]) : void 0);
71824
71824
  const { BrowserKeyStorage } = await __vitePreload(async () => {
71825
- const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-BiP3Yfka.js");
71825
+ const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-Cjvf2ZDY.js");
71826
71826
  return { BrowserKeyStorage: BrowserKeyStorage2 };
71827
71827
  }, true ? __vite__mapDeps([6,1,2,3]) : void 0);
71828
71828
  const connectCrypto2 = new ConnectCrypto(new BrowserKeyStorage());
@@ -71871,7 +71871,7 @@ function useRenown() {
71871
71871
  return;
71872
71872
  }
71873
71873
  const { initRenownBrowser } = await __vitePreload(async () => {
71874
- const { initRenownBrowser: initRenownBrowser2 } = await import("./index-BiP3Yfka.js");
71874
+ const { initRenownBrowser: initRenownBrowser2 } = await import("./index-Cjvf2ZDY.js");
71875
71875
  return { initRenownBrowser: initRenownBrowser2 };
71876
71876
  }, true ? __vite__mapDeps([6,1,2,3]) : void 0);
71877
71877
  const renownBrowser = initRenownBrowser(did2);
@@ -73246,6 +73246,15 @@ const RootProvider = ({ children }) => {
73246
73246
  useInitSenty();
73247
73247
  return children;
73248
73248
  };
73249
+ const CONNECT_TOAST_CONTAINER_ID = "connect";
73250
+ function toast(content, options2) {
73251
+ const {
73252
+ type = "default",
73253
+ containerId = CONNECT_TOAST_CONTAINER_ID,
73254
+ ...restOptions
73255
+ } = options2 || {};
73256
+ return toast$1(content, { type, containerId, ...restOptions });
73257
+ }
73249
73258
  const useOpenSwitchboardLink = (driveId) => {
73250
73259
  const { isRemoteDrive, remoteUrl } = useDocumentDriveById(driveId);
73251
73260
  return async (uiNode) => {
@@ -79770,7 +79779,7 @@ async function forkAtlas(docId, reactorUrl) {
79770
79779
  ForkAtlas(docId: $docId)
79771
79780
  }
79772
79781
  `;
79773
- return await request(`${reactorUrl}fork`, document2, { docId });
79782
+ return await request(`${reactorUrl}graphql`, document2, { docId });
79774
79783
  }
79775
79784
  function AtlasImport() {
79776
79785
  const status = useRef("initial");
@@ -80222,7 +80231,7 @@ function Home() {
80222
80231
  /* @__PURE__ */ jsx$1(HomeScreenAddDriveItem, { onClick: onAddDriveClick })
80223
80232
  ] });
80224
80233
  }
80225
- const Content = React__default.lazy(() => __vitePreload(() => import("./content-DvbK8cAk.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
80234
+ const Content = React__default.lazy(() => __vitePreload(() => import("./content-CRtUHDQR.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
80226
80235
  async function createRouter(routes) {
80227
80236
  var _a2;
80228
80237
  const isPackaged = await ((_a2 = window.electronAPI) == null ? void 0 : _a2.isPackaged());
@@ -80296,120 +80305,128 @@ const Preloader = () => {
80296
80305
  };
80297
80306
  const App = () => /* @__PURE__ */ jsx$1(React__default.StrictMode, { children: /* @__PURE__ */ jsx$1(Suspense, { fallback: /* @__PURE__ */ jsx$1(Fragment, {}), children: /* @__PURE__ */ jsxs(Provider, { store: atomStore, children: [
80298
80307
  /* @__PURE__ */ jsx$1(Preloader, {}),
80299
- /* @__PURE__ */ jsx$1(WagmiContext, { children: /* @__PURE__ */ jsx$1(RootProvider, { children: /* @__PURE__ */ jsx$1(ReadModeContextProvider, { children: /* @__PURE__ */ jsxs(UiNodesContextProvider, { children: [
80300
- /* @__PURE__ */ jsx$1(ToastContainer, { position: "bottom-right" }),
80301
- /* @__PURE__ */ jsx$1(Router, {}),
80302
- /* @__PURE__ */ jsx$1(CookieBanner, {}),
80303
- /* @__PURE__ */ jsx$1(Analytics, {})
80304
- ] }) }) }) })
80308
+ /* @__PURE__ */ jsx$1(WagmiContext, { children: /* @__PURE__ */ jsx$1(RootProvider, { children: /* @__PURE__ */ jsxs(ReadModeContextProvider, { children: [
80309
+ /* @__PURE__ */ jsx$1(
80310
+ ToastContainer,
80311
+ {
80312
+ position: "bottom-right",
80313
+ containerId: "connect"
80314
+ }
80315
+ ),
80316
+ /* @__PURE__ */ jsxs(UiNodesContextProvider, { children: [
80317
+ /* @__PURE__ */ jsx$1(Router, {}),
80318
+ /* @__PURE__ */ jsx$1(CookieBanner, {}),
80319
+ /* @__PURE__ */ jsx$1(Analytics, {})
80320
+ ] })
80321
+ ] }) }) })
80305
80322
  ] }) }) });
80306
80323
  const app = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
80307
80324
  __proto__: null,
80308
80325
  default: App
80309
80326
  }, Symbol.toStringTag, { value: "Module" }));
80310
80327
  export {
80311
- DriveLayout as $,
80312
- useConnectCrypto as A,
80313
- Button$1 as B,
80328
+ exportFile as $,
80329
+ ENSAvatar as A,
80330
+ BaseError$4 as B,
80314
80331
  CONFLICT as C,
80315
- useTranslation as D,
80332
+ Root3 as D,
80316
80333
  ERROR as E,
80317
- useModal as F,
80318
- useAtomValue as G,
80319
- themeAtom as H,
80334
+ Portal as F,
80335
+ Content2 as G,
80336
+ HttpRequestError as H,
80320
80337
  INITIAL_SYNC as I,
80321
- useUser as J,
80322
- useUserPermissions as K,
80323
- useUiNodes as L,
80338
+ validateInitialState as J,
80339
+ validateStateSchemaName as K,
80340
+ validateModules as L,
80324
80341
  MISSING as M,
80325
- exportFile as N,
80326
- useGetDocumentModelModule as O,
80342
+ useUnwrappedReactor as N,
80343
+ useConnectDid as O,
80327
80344
  Provider$1 as P,
80328
- addActionContext as Q,
80345
+ useConnectCrypto as Q,
80329
80346
  RENOWN_URL as R,
80330
80347
  SUCCESS as S,
80331
80348
  Trigger$1 as T,
80332
- signOperation as U,
80333
- useDocumentDriveServer as V,
80334
- useHotkeys as W,
80335
- useGetEditor as X,
80336
- isSameDocument as Y,
80337
- useNavigate as Z,
80338
- ErrorBoundary as _,
80339
- getHMRModule as a,
80340
- SearchBar as a0,
80341
- useAsyncReactor as a1,
80342
- useFilteredDocumentModels as a2,
80343
- useDriveEditor as a3,
80344
- useDocumentDriveById as a4,
80345
- clsx as a5,
80346
- get as a6,
80347
- set as a7,
80348
- appendErrors as a8,
80349
- useFormContext as a9,
80350
- addOperationError as aA,
80351
- deleteOperationError as aB,
80352
- setOperationErrorName as aC,
80353
- BaseError$4 as aD,
80354
- getUrl as aE,
80355
- stringify$1 as aF,
80356
- decodeErrorResult as aG,
80357
- isAddressEqual as aH,
80358
- call as aI,
80359
- concat$1 as aJ,
80360
- encodeAbiParameters as aK,
80361
- HttpRequestError as aL,
80362
- isHex as aM,
80349
+ useTranslation as U,
80350
+ useModal as V,
80351
+ useAtomValue as W,
80352
+ themeAtom as X,
80353
+ useUser as Y,
80354
+ useUserPermissions as Z,
80355
+ useUiNodes as _,
80356
+ concat$1 as a,
80357
+ useGetDocumentModelModule as a0,
80358
+ addActionContext as a1,
80359
+ signOperation as a2,
80360
+ useDocumentDriveServer as a3,
80361
+ useHotkeys as a4,
80362
+ useGetEditor as a5,
80363
+ isSameDocument as a6,
80364
+ useNavigate as a7,
80365
+ ErrorBoundary as a8,
80366
+ DriveLayout as a9,
80367
+ setStateSchema as aA,
80368
+ setInitialState as aB,
80369
+ addModule as aC,
80370
+ setModuleName as aD,
80371
+ deleteModule as aE,
80372
+ addOperation as aF,
80373
+ setOperationName as aG,
80374
+ setOperationSchema as aH,
80375
+ setOperationDescription as aI,
80376
+ deleteOperation as aJ,
80377
+ addOperationError as aK,
80378
+ deleteOperationError as aL,
80379
+ setOperationErrorName as aM,
80363
80380
  app as aN,
80364
- Primitive as aa,
80365
- cva as ab,
80366
- FormProvider as ac,
80367
- Controller as ad,
80368
- Slot as ae,
80369
- useForm as af,
80370
- Root2 as ag,
80371
- List as ah,
80372
- Trigger as ai,
80373
- Content$2 as aj,
80374
- setModelName as ak,
80375
- setModelId as al,
80376
- setModelDescription as am,
80377
- setModelExtension as an,
80378
- setAuthorName as ao,
80379
- setAuthorWebsite as ap,
80380
- setStateSchema as aq,
80381
- setInitialState as ar,
80382
- addModule as as,
80383
- setModuleName as at,
80384
- deleteModule as au,
80385
- addOperation as av,
80386
- setOperationName as aw,
80387
- setOperationSchema as ax,
80388
- setOperationDescription as ay,
80389
- deleteOperation as az,
80390
- addExternalPackage as b,
80391
- RENOWN_NETWORK_ID as c,
80392
- RENOWN_CHAIN_ID as d,
80393
- eventsExports as e,
80394
- getChain as f,
80395
- getEnsInfo as g,
80396
- SYNCING as h,
80397
- ConnectDropdownMenu as i,
80398
- useEventListener as j,
80399
- useCopyToClipboard as k,
80400
- Select as l,
80401
- mergeClassNameProps as m,
80402
- ENSAvatar as n,
80403
- Root3 as o,
80404
- Portal as p,
80405
- Content2 as q,
80381
+ SearchBar as aa,
80382
+ useAsyncReactor as ab,
80383
+ useFilteredDocumentModels as ac,
80384
+ useDriveEditor as ad,
80385
+ useDocumentDriveById as ae,
80386
+ clsx as af,
80387
+ get as ag,
80388
+ set as ah,
80389
+ appendErrors as ai,
80390
+ useFormContext as aj,
80391
+ Primitive as ak,
80392
+ cva as al,
80393
+ FormProvider as am,
80394
+ Controller as an,
80395
+ Slot as ao,
80396
+ useForm as ap,
80397
+ Root2 as aq,
80398
+ List as ar,
80399
+ Trigger as as,
80400
+ Content$2 as at,
80401
+ setModelName as au,
80402
+ setModelId as av,
80403
+ setModelDescription as aw,
80404
+ setModelExtension as ax,
80405
+ setAuthorName as ay,
80406
+ setAuthorWebsite as az,
80407
+ isHex as b,
80408
+ call as c,
80409
+ decodeErrorResult as d,
80410
+ encodeAbiParameters as e,
80411
+ eventsExports as f,
80412
+ getUrl as g,
80413
+ getEnsInfo as h,
80414
+ isAddressEqual as i,
80415
+ getHMRModule as j,
80416
+ addExternalPackage as k,
80417
+ subscribeExternalPackages as l,
80418
+ RENOWN_NETWORK_ID as m,
80419
+ RENOWN_CHAIN_ID as n,
80420
+ getChain as o,
80421
+ Button$1 as p,
80422
+ mergeClassNameProps as q,
80406
80423
  removeExternalPackage as r,
80407
- subscribeExternalPackages as s,
80424
+ stringify$1 as s,
80408
80425
  twMerge as t,
80409
- useOnClickOutside as u,
80410
- validateInitialState as v,
80411
- validateStateSchemaName as w,
80412
- validateModules as x,
80413
- useUnwrappedReactor as y,
80414
- useConnectDid as z
80426
+ SYNCING as u,
80427
+ ConnectDropdownMenu as v,
80428
+ useOnClickOutside as w,
80429
+ useEventListener as x,
80430
+ useCopyToClipboard as y,
80431
+ Select as z
80415
80432
  };
@@ -396,9 +396,6 @@
396
396
  .text-gray-600 {
397
397
  color: var(--color-gray-600);
398
398
  }
399
- .filter {
400
- filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
401
- }
402
399
  }
403
400
  /*! tailwindcss v4.0.17 | MIT License | https://tailwindcss.com */
404
401
  :root {
@@ -5595,6 +5592,46 @@ input[type="number"] {
5595
5592
  inherits: false;
5596
5593
  initial-value: solid;
5597
5594
  }
5595
+ @property --tw-blur {
5596
+ syntax: "*";
5597
+ inherits: false;
5598
+ }
5599
+ @property --tw-brightness {
5600
+ syntax: "*";
5601
+ inherits: false;
5602
+ }
5603
+ @property --tw-contrast {
5604
+ syntax: "*";
5605
+ inherits: false;
5606
+ }
5607
+ @property --tw-grayscale {
5608
+ syntax: "*";
5609
+ inherits: false;
5610
+ }
5611
+ @property --tw-hue-rotate {
5612
+ syntax: "*";
5613
+ inherits: false;
5614
+ }
5615
+ @property --tw-invert {
5616
+ syntax: "*";
5617
+ inherits: false;
5618
+ }
5619
+ @property --tw-opacity {
5620
+ syntax: "*";
5621
+ inherits: false;
5622
+ }
5623
+ @property --tw-saturate {
5624
+ syntax: "*";
5625
+ inherits: false;
5626
+ }
5627
+ @property --tw-sepia {
5628
+ syntax: "*";
5629
+ inherits: false;
5630
+ }
5631
+ @property --tw-drop-shadow {
5632
+ syntax: "*";
5633
+ inherits: false;
5634
+ }
5598
5635
  @property --tw-duration {
5599
5636
  syntax: "*";
5600
5637
  inherits: false;
@@ -5716,59 +5753,6 @@ input[type="number"] {
5716
5753
  syntax: "*";
5717
5754
  inherits: false;
5718
5755
  }
5719
- @property --tw-blur {
5720
- syntax: "*";
5721
- inherits: false;
5722
- }
5723
- @property --tw-brightness {
5724
- syntax: "*";
5725
- inherits: false;
5726
- }
5727
- @property --tw-contrast {
5728
- syntax: "*";
5729
- inherits: false;
5730
- }
5731
- @property --tw-grayscale {
5732
- syntax: "*";
5733
- inherits: false;
5734
- }
5735
- @property --tw-hue-rotate {
5736
- syntax: "*";
5737
- inherits: false;
5738
- }
5739
- @property --tw-invert {
5740
- syntax: "*";
5741
- inherits: false;
5742
- }
5743
- @property --tw-opacity {
5744
- syntax: "*";
5745
- inherits: false;
5746
- }
5747
- @property --tw-saturate {
5748
- syntax: "*";
5749
- inherits: false;
5750
- }
5751
- @property --tw-sepia {
5752
- syntax: "*";
5753
- inherits: false;
5754
- }
5755
- @property --tw-drop-shadow {
5756
- syntax: "*";
5757
- inherits: false;
5758
- }
5759
- @property --tw-drop-shadow-color {
5760
- syntax: "*";
5761
- inherits: false;
5762
- }
5763
- @property --tw-drop-shadow-alpha {
5764
- syntax: "<percentage>";
5765
- inherits: false;
5766
- initial-value: 100%;
5767
- }
5768
- @property --tw-drop-shadow-size {
5769
- syntax: "*";
5770
- inherits: false;
5771
- }
5772
5756
  @keyframes spin {
5773
5757
  to {
5774
5758
  transform: rotate(360deg);
@@ -5789,19 +5773,6 @@ input[type="number"] {
5789
5773
  --tw-skew-y: skewY(0);
5790
5774
  --tw-border-style: solid;
5791
5775
  --tw-font-weight: initial;
5792
- --tw-blur: initial;
5793
- --tw-brightness: initial;
5794
- --tw-contrast: initial;
5795
- --tw-grayscale: initial;
5796
- --tw-hue-rotate: initial;
5797
- --tw-invert: initial;
5798
- --tw-opacity: initial;
5799
- --tw-saturate: initial;
5800
- --tw-sepia: initial;
5801
- --tw-drop-shadow: initial;
5802
- --tw-drop-shadow-color: initial;
5803
- --tw-drop-shadow-alpha: 100%;
5804
- --tw-drop-shadow-size: initial;
5805
5776
  --tw-translate-x: 0;
5806
5777
  --tw-translate-y: 0;
5807
5778
  --tw-translate-z: 0;
@@ -5826,6 +5797,16 @@ input[type="number"] {
5826
5797
  --tw-ring-offset-color: #fff;
5827
5798
  --tw-ring-offset-shadow: 0 0 #0000;
5828
5799
  --tw-outline-style: solid;
5800
+ --tw-blur: initial;
5801
+ --tw-brightness: initial;
5802
+ --tw-contrast: initial;
5803
+ --tw-grayscale: initial;
5804
+ --tw-hue-rotate: initial;
5805
+ --tw-invert: initial;
5806
+ --tw-opacity: initial;
5807
+ --tw-saturate: initial;
5808
+ --tw-sepia: initial;
5809
+ --tw-drop-shadow: initial;
5829
5810
  --tw-duration: initial;
5830
5811
  --tw-ease: initial;
5831
5812
  --tw-content: "";