@powerhousedao/connect 1.0.5-dev.0 → 1.0.6-dev.1

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 (23) hide show
  1. package/dist/assets/{app-D5aQi0aY.js → app-DzySetAh.js} +69 -69
  2. package/dist/assets/{app-loader-D5SWSIlq.js → app-loader-CZ0aVaYP.js} +167 -117
  3. package/dist/assets/{ccip-BmvACOxw.js → ccip-D8BqOMUI.js} +3 -3
  4. package/dist/assets/{content-CjM3gin6.js → content-BNXKwoH4.js} +3 -3
  5. package/dist/assets/{index-D60iiT4f.js → index-CHXlqTiX.js} +4 -4
  6. package/dist/assets/{index-DIYv2p_P.js → index-CWckxksG.js} +3 -3
  7. package/dist/assets/{index-d_545vU_.js → index-qnOU-Q3F.js} +3 -3
  8. package/dist/assets/{main.DnroXr_4.js → main.BQPIoivi.js} +1 -1
  9. package/dist/index.html +1 -1
  10. package/dist/modules/@powerhousedao/reactor-browser/{chunk-YSOX63EM.js → chunk-3C54663M.js} +1 -1
  11. package/dist/modules/@powerhousedao/reactor-browser/{chunk-ZWFCVUBU.js → chunk-5QJXNK35.js} +1 -1
  12. package/dist/modules/@powerhousedao/reactor-browser/{chunk-F6NNSREE.js → chunk-ISDEPHKP.js} +1 -1
  13. package/dist/modules/@powerhousedao/reactor-browser/{chunk-64UP3MVE.js → chunk-SQ5HIKYV.js} +154 -100
  14. package/dist/modules/@powerhousedao/reactor-browser/{chunk-UWJGRLW3.js → chunk-XV42KZK3.js} +1 -1
  15. package/dist/modules/@powerhousedao/reactor-browser/context/index.js +2 -2
  16. package/dist/modules/@powerhousedao/reactor-browser/context/read-mode.js +2 -2
  17. package/dist/modules/@powerhousedao/reactor-browser/hooks/index.js +3 -3
  18. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActions.js +2 -2
  19. package/dist/modules/@powerhousedao/reactor-browser/hooks/useDriveActionsWithUiNodes.js +3 -3
  20. package/dist/modules/@powerhousedao/reactor-browser/index.js +5 -5
  21. package/dist/modules/@powerhousedao/reactor-browser/reactor.js +2 -2
  22. package/dist/vite-envs.sh +1 -1
  23. package/package.json +6 -6
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-BmvACOxw.js","assets/main.DnroXr_4.js","assets/app-loader-D5SWSIlq.js","assets/app-loader-DGByWxSG.css","assets/index-d_545vU_.js","assets/style-Ce3V83BE.css","assets/index-D60iiT4f.js","assets/content-CjM3gin6.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-D8BqOMUI.js","assets/main.BQPIoivi.js","assets/app-loader-CZ0aVaYP.js","assets/app-loader-DGByWxSG.css","assets/index-qnOU-Q3F.js","assets/style-Ce3V83BE.css","assets/index-CHXlqTiX.js","assets/content-BNXKwoH4.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.DnroXr_4.js";
22
+ import { _ as __vitePreload } from "./main.BQPIoivi.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-D5SWSIlq.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 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-CZ0aVaYP.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-BmvACOxw.js");
20577
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-D8BqOMUI.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)
@@ -33823,6 +33823,66 @@ function About$1(props) {
33823
33823
  const { packageJson: packageJson2, phCliVersion } = props;
33824
33824
  return jsxs("div", { className: "bg-white p-3", children: [jsx$1("h2", { className: "font-semibold", children: "About" }), jsx$1("p", { className: "text-sm font-normal text-gray-600", children: "Connect is the hub for your most important documents and processes translated into software. Easily capture data in a structured way with Connect." }), jsx$1("div", { className: "my-4", children: jsx$1(DependencyVersions, { packageJson: packageJson2, phCliVersion }) })] });
33825
33825
  }
33826
+ function deepEqual$1(a2, b2, visited = /* @__PURE__ */ new Map()) {
33827
+ if (a2 === b2) {
33828
+ return true;
33829
+ }
33830
+ if (a2 === null || b2 === null || a2 === void 0 || b2 === void 0) {
33831
+ return false;
33832
+ }
33833
+ if (typeof a2 !== typeof b2) {
33834
+ return false;
33835
+ }
33836
+ if (Array.isArray(a2) && Array.isArray(b2)) {
33837
+ if (visited.get(a2) === b2) {
33838
+ return true;
33839
+ }
33840
+ visited.set(a2, b2);
33841
+ return a2.length === b2.length && a2.every((value, index2) => deepEqual$1(value, b2[index2], visited));
33842
+ }
33843
+ if (typeof a2 === "object" && typeof b2 === "object" && !Array.isArray(a2) && !Array.isArray(b2)) {
33844
+ if (visited.get(a2) === b2) {
33845
+ return true;
33846
+ }
33847
+ visited.set(a2, b2);
33848
+ const aKeys = Object.keys(a2);
33849
+ const bKeys = Object.keys(b2);
33850
+ return aKeys.length === bKeys.length && aKeys.every((key) => {
33851
+ return key in b2 && deepEqual$1(a2[key], b2[key], visited);
33852
+ });
33853
+ }
33854
+ return false;
33855
+ }
33856
+ const sharedValueTransformers = {
33857
+ trimOnBlur: (ifParam = true) => ({
33858
+ transformer: (value) => value == null ? void 0 : value.trim(),
33859
+ options: {
33860
+ trigger: "blur",
33861
+ if: ifParam
33862
+ }
33863
+ }),
33864
+ lowercaseOnChange: (ifParam = true) => ({
33865
+ transformer: (value) => value == null ? void 0 : value.toLowerCase(),
33866
+ options: {
33867
+ trigger: "change",
33868
+ if: ifParam
33869
+ }
33870
+ }),
33871
+ uppercaseOnChange: (ifParam = true) => ({
33872
+ transformer: (value) => value == null ? void 0 : value.toUpperCase(),
33873
+ options: {
33874
+ trigger: "change",
33875
+ if: ifParam
33876
+ }
33877
+ }),
33878
+ trimOnEnter: (ifParam = true) => ({
33879
+ transformer: (value) => value == null ? void 0 : value.trim(),
33880
+ options: {
33881
+ trigger: "keyDown",
33882
+ if: ifParam
33883
+ }
33884
+ })
33885
+ };
33826
33886
  const IdAutocompleteContext = createContext({});
33827
33887
  const useIdAutocompleteContext = () => useContext(IdAutocompleteContext);
33828
33888
  const IconRenderer = ({ customIcon, asPlaceholder }) => {
@@ -34631,36 +34691,6 @@ const FormDescription = ({ children, as, className }) => {
34631
34691
  const FormGroup = ({ children }) => {
34632
34692
  return jsx$1("div", { className: "flex flex-col gap-2", children });
34633
34693
  };
34634
- function deepEqual$1(a2, b2, visited = /* @__PURE__ */ new Map()) {
34635
- if (a2 === b2) {
34636
- return true;
34637
- }
34638
- if (a2 === null || b2 === null || a2 === void 0 || b2 === void 0) {
34639
- return false;
34640
- }
34641
- if (typeof a2 !== typeof b2) {
34642
- return false;
34643
- }
34644
- if (Array.isArray(a2) && Array.isArray(b2)) {
34645
- if (visited.get(a2) === b2) {
34646
- return true;
34647
- }
34648
- visited.set(a2, b2);
34649
- return a2.length === b2.length && a2.every((value, index2) => deepEqual$1(value, b2[index2], visited));
34650
- }
34651
- if (typeof a2 === "object" && typeof b2 === "object" && !Array.isArray(a2) && !Array.isArray(b2)) {
34652
- if (visited.get(a2) === b2) {
34653
- return true;
34654
- }
34655
- visited.set(a2, b2);
34656
- const aKeys = Object.keys(a2);
34657
- const bKeys = Object.keys(b2);
34658
- return aKeys.length === bKeys.length && aKeys.every((key) => {
34659
- return key in b2 && deepEqual$1(a2[key], b2[key], visited);
34660
- });
34661
- }
34662
- return false;
34663
- }
34664
34694
  function setNativeValue(element, value) {
34665
34695
  var _a2, _b2;
34666
34696
  const valueSetter = (_a2 = Object.getOwnPropertyDescriptor(element, "value")) == null ? void 0 : _a2.set;
@@ -34745,36 +34775,6 @@ function ValueTransformer({ transformers, children }) {
34745
34775
  }
34746
34776
  });
34747
34777
  }
34748
- const sharedValueTransformers = {
34749
- trimOnBlur: (ifParam = true) => ({
34750
- transformer: (value) => value == null ? void 0 : value.trim(),
34751
- options: {
34752
- trigger: "blur",
34753
- if: ifParam
34754
- }
34755
- }),
34756
- lowercaseOnChange: (ifParam = true) => ({
34757
- transformer: (value) => value == null ? void 0 : value.toLowerCase(),
34758
- options: {
34759
- trigger: "change",
34760
- if: ifParam
34761
- }
34762
- }),
34763
- uppercaseOnChange: (ifParam = true) => ({
34764
- transformer: (value) => value == null ? void 0 : value.toUpperCase(),
34765
- options: {
34766
- trigger: "change",
34767
- if: ifParam
34768
- }
34769
- }),
34770
- trimOnEnter: (ifParam = true) => ({
34771
- transformer: (value) => value == null ? void 0 : value.trim(),
34772
- options: {
34773
- trigger: "keyDown",
34774
- if: ifParam
34775
- }
34776
- })
34777
- };
34778
34778
  const withFieldValidation = (Component2, options2) => {
34779
34779
  return React__default.forwardRef(({ value, name, showErrorOnBlur, showErrorOnChange, validators: customValidators, ...props }, ref) => {
34780
34780
  var _a2;
@@ -71667,7 +71667,7 @@ const useFilteredDocumentModels = () => {
71667
71667
  return filteredDocumentModels;
71668
71668
  };
71669
71669
  async function loadBaseEditors() {
71670
- const documentModelEditor = await __vitePreload(() => import("./index-d_545vU_.js"), true ? __vite__mapDeps([4,2,1,3]) : void 0);
71670
+ const documentModelEditor = await __vitePreload(() => import("./index-qnOU-Q3F.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-D60iiT4f.js");
71821
+ const { ConnectCrypto: ConnectCrypto2 } = await import("./index-CHXlqTiX.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-D60iiT4f.js");
71825
+ const { BrowserKeyStorage: BrowserKeyStorage2 } = await import("./index-CHXlqTiX.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-D60iiT4f.js");
71874
+ const { initRenownBrowser: initRenownBrowser2 } = await import("./index-CHXlqTiX.js");
71875
71875
  return { initRenownBrowser: initRenownBrowser2 };
71876
71876
  }, true ? __vite__mapDeps([6,1,2,3]) : void 0);
71877
71877
  const renownBrowser = initRenownBrowser(did2);
@@ -80203,7 +80203,7 @@ function Home() {
80203
80203
  /* @__PURE__ */ jsx$1(HomeScreenAddDriveItem, { onClick: onAddDriveClick })
80204
80204
  ] });
80205
80205
  }
80206
- const Content = React__default.lazy(() => __vitePreload(() => import("./content-CjM3gin6.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
80206
+ const Content = React__default.lazy(() => __vitePreload(() => import("./content-BNXKwoH4.js"), true ? __vite__mapDeps([7,2,1,3]) : void 0));
80207
80207
  async function createRouter(routes) {
80208
80208
  var _a2;
80209
80209
  const isPackaged = await ((_a2 = window.electronAPI) == null ? void 0 : _a2.isPackaged());