@powerhousedao/connect 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  @import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";
2
2
 
3
- /*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */
4
- /*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */
3
+ /*! tailwindcss v4.1.5 | MIT License | https://tailwindcss.com */
4
+ /*! tailwindcss v4.1.5 | MIT License | https://tailwindcss.com */
5
5
  @layer properties {
6
6
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
7
7
  *, :before, :after, ::backdrop {
@@ -3062,7 +3062,7 @@
3062
3062
  }
3063
3063
 
3064
3064
  .transition {
3065
- transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
3065
+ transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, visibility, content-visibility, overlay, pointer-events;
3066
3066
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
3067
3067
  transition-duration: var(--tw-duration, var(--default-transition-duration));
3068
3068
  }
@@ -1,4 +1,4 @@
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]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-DJhQA-n0.js","assets/main.DXf9Xuwr.js","assets/app-D1OgCILX.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.BcxEuVs0.js";
14
+ import { _ as __vitePreload } from "./main.DXf9Xuwr.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) {
@@ -1893,13 +1893,14 @@ const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z
1893
1893
  const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
1894
1894
  const dateRegex = new RegExp(`^${dateRegexSource}$`);
1895
1895
  function timeRegexSource(args) {
1896
- let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
1896
+ let secondsRegexSource = `[0-5]\\d`;
1897
1897
  if (args.precision) {
1898
- regex = `${regex}\\.\\d{${args.precision}}`;
1898
+ secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
1899
1899
  } else if (args.precision == null) {
1900
- regex = `${regex}(\\.\\d+)?`;
1900
+ secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
1901
1901
  }
1902
- return regex;
1902
+ const secondsQuantifier = args.precision ? "+" : "?";
1903
+ return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
1903
1904
  }
1904
1905
  function timeRegex(args) {
1905
1906
  return new RegExp(`^${timeRegexSource(args)}$`);
@@ -7144,10 +7145,6 @@ function baseCreateDocument(initialState, createState2) {
7144
7145
  function hashDocumentStateForScope(document, scope = "global") {
7145
7146
  return hash(cjsModule(document.state[scope] || ""));
7146
7147
  }
7147
- const hashKey = (date, randomLimit = 1e3) => {
7148
- const random = Math.random() * randomLimit;
7149
- return hash(`${(/* @__PURE__ */ new Date()).toISOString()}${random}`);
7150
- };
7151
7148
  function getDocumentLastModified(document) {
7152
7149
  var _a2;
7153
7150
  const sortedOperations = sortOperations(Object.values(document.operations).flat());
@@ -14928,10 +14925,7 @@ function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
14928
14925
  }
14929
14926
  }
14930
14927
  } else {
14931
- node = Object.defineProperties(
14932
- {},
14933
- Object.getOwnPropertyDescriptors(node)
14934
- );
14928
+ node = { ...node };
14935
14929
  for (const [editKey, editValue] of edits) {
14936
14930
  node[editKey] = editValue;
14937
14931
  }
@@ -20271,7 +20265,7 @@ function VariablesInAllowedPositionRule(context) {
20271
20265
  },
20272
20266
  leave(operation) {
20273
20267
  const usages = context.getRecursiveVariableUsages(operation);
20274
- for (const { node, type: type2, defaultValue } of usages) {
20268
+ for (const { node, type: type2, defaultValue, parentType } of usages) {
20275
20269
  const varName = node.name.value;
20276
20270
  const varDef = varDefMap[varName];
20277
20271
  if (varDef && type2) {
@@ -20295,6 +20289,16 @@ function VariablesInAllowedPositionRule(context) {
20295
20289
  )
20296
20290
  );
20297
20291
  }
20292
+ if (isInputObjectType(parentType) && parentType.isOneOf && isNullableType(varType)) {
20293
+ context.reportError(
20294
+ new GraphQLError(
20295
+ `Variable "$${varName}" is of type "${varType}" but must be non-nullable to be used for OneOf Input Object "${parentType}".`,
20296
+ {
20297
+ nodes: [varDef, node]
20298
+ }
20299
+ )
20300
+ );
20301
+ }
20298
20302
  }
20299
20303
  }
20300
20304
  }
@@ -20478,7 +20482,8 @@ class ValidationContext extends ASTValidationContext {
20478
20482
  newUsages.push({
20479
20483
  node: variable,
20480
20484
  type: typeInfo.getInputType(),
20481
- defaultValue: typeInfo.getDefaultValue()
20485
+ defaultValue: typeInfo.getDefaultValue(),
20486
+ parentType: typeInfo.getParentInputType()
20482
20487
  });
20483
20488
  }
20484
20489
  })
@@ -25829,7 +25834,7 @@ const nodeOptionsMap = {
25829
25834
  };
25830
25835
  const name = "@powerhousedao/connect";
25831
25836
  const productName = "Powerhouse-Connect";
25832
- const version$1 = "1.1.0";
25837
+ const version$1 = "1.1.2";
25833
25838
  const description = "Powerhouse Connect";
25834
25839
  const main = "./dist/index.html";
25835
25840
  const type = "module";
@@ -31451,7 +31456,7 @@ if (window.__VITE_ENVS.MODE === "development") {
31451
31456
  } else {
31452
31457
  serviceWorkerManager.registerServiceWorker(false);
31453
31458
  }
31454
- const App = lazy(() => __vitePreload(() => import("./app-SJyv410V.js").then((n) => n.a_), true ? __vite__mapDeps([0,1,2]) : void 0));
31459
+ const App = lazy(() => __vitePreload(() => import("./app-DJhQA-n0.js").then((n) => n.a_), true ? __vite__mapDeps([0,1,2]) : void 0));
31455
31460
  const AppLoader = /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(App, {}) });
31456
31461
  const appLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
31457
31462
  __proto__: null,
@@ -31487,7 +31492,7 @@ export {
31487
31492
  pascalCase as Z,
31488
31493
  Icon as _,
31489
31494
  createReducer as a,
31490
- DELETE as a$,
31495
+ RENAME as a$,
31491
31496
  LOCAL as a0,
31492
31497
  commonjsGlobal as a1,
31493
31498
  PUBLIC as a2,
@@ -31507,24 +31512,24 @@ export {
31507
31512
  setSharingType as aG,
31508
31513
  SynchronizationUnitNotFoundError as aH,
31509
31514
  removeTrigger as aI,
31510
- generateUUID as aJ,
31511
- PullResponderTransmitter as aK,
31512
- addTrigger as aL,
31513
- ReadDriveNotFoundError as aM,
31514
- openUrl as aN,
31515
- getNodeOptions as aO,
31516
- DRIVE as aP,
31517
- FOLDER as aQ,
31518
- requestPublicDrive as aR,
31519
- serviceWorkerManager as aS,
31520
- packageJson as aT,
31521
- t as aU,
31522
- gql as aV,
31523
- request as aW,
31524
- getDimensions as aX,
31525
- READ as aY,
31526
- nodeOptionsMap as aZ,
31527
- defaultFileOptions as a_,
31515
+ PullResponderTransmitter as aJ,
31516
+ addTrigger as aK,
31517
+ ReadDriveNotFoundError as aL,
31518
+ openUrl as aM,
31519
+ getNodeOptions as aN,
31520
+ DRIVE as aO,
31521
+ FOLDER as aP,
31522
+ requestPublicDrive as aQ,
31523
+ serviceWorkerManager as aR,
31524
+ packageJson as aS,
31525
+ t as aT,
31526
+ gql as aU,
31527
+ request as aV,
31528
+ getDimensions as aW,
31529
+ READ as aX,
31530
+ nodeOptionsMap as aY,
31531
+ defaultFileOptions as aZ,
31532
+ DELETE as a_,
31528
31533
  CLOUD as aa,
31529
31534
  createZip as ab,
31530
31535
  logger$1 as ac,
@@ -31538,7 +31543,7 @@ export {
31538
31543
  setErrorHandler as ak,
31539
31544
  driveDocumentModelModule as al,
31540
31545
  createBrowserDocumentDriveServer as am,
31541
- hashKey as an,
31546
+ generateId as an,
31542
31547
  childLogger as ao,
31543
31548
  reducer as ap,
31544
31549
  isDocumentDrive as aq,
@@ -31552,82 +31557,80 @@ export {
31552
31557
  updateNode as ay,
31553
31558
  FILE as az,
31554
31559
  SetStateSchemaInputSchema as b,
31555
- TypeNameMetaFieldDef as b$,
31556
- RENAME as b0,
31557
- WRITE as b1,
31558
- DUPLICATE as b2,
31559
- defaultFolderOptions as b3,
31560
- garbageCollect as b4,
31561
- sortOperations as b5,
31562
- UI_NODE as b6,
31563
- generateId as b7,
31564
- undo as b8,
31565
- redo as b9,
31566
- GraphQLInt as bA,
31567
- GraphQLDirective as bB,
31568
- GraphQLObjectType as bC,
31569
- GraphQLInterfaceType as bD,
31570
- GraphQLUnionType as bE,
31571
- GraphQLInputObjectType as bF,
31572
- GraphQLEnumType as bG,
31573
- isListType as bH,
31574
- GraphQLList as bI,
31575
- isNonNullType as bJ,
31576
- GraphQLNonNull as bK,
31577
- isNamedType as bL,
31578
- getNullableType as bM,
31579
- isLeafType as bN,
31580
- GraphQLSchema as bO,
31581
- buildSchema as bP,
31582
- buildASTSchema as bQ,
31583
- parse as bR,
31584
- validate as bS,
31585
- visit as bT,
31586
- extendSchema as bU,
31587
- snakeCase as bV,
31588
- constantCase as bW,
31589
- isAbstractType as bX,
31590
- BREAK as bY,
31591
- SchemaMetaFieldDef as bZ,
31592
- TypeMetaFieldDef as b_,
31593
- useDocumentDispatch as ba,
31594
- inspect as bb,
31595
- GraphQLError as bc,
31596
- getNamedType as bd,
31597
- invariant as be,
31598
- isInputObjectType as bf,
31599
- isScalarType as bg,
31600
- isObjectType as bh,
31601
- isInterfaceType as bi,
31602
- isUnionType as bj,
31603
- isEnumType as bk,
31604
- print as bl,
31605
- isPrintableAsBlockString as bm,
31606
- Kind as bn,
31607
- astFromValue as bo,
31608
- DEFAULT_DEPRECATION_REASON as bp,
31609
- isSpecifiedDirective as bq,
31610
- isSpecifiedScalarType as br,
31611
- isIntrospectionType as bs,
31612
- z as bt,
31613
- GraphQLScalarType as bu,
31614
- specifiedRules as bv,
31615
- GraphQLID as bw,
31616
- GraphQLBoolean as bx,
31617
- GraphQLString as by,
31618
- GraphQLFloat as bz,
31560
+ isOutputType as b$,
31561
+ WRITE as b0,
31562
+ DUPLICATE as b1,
31563
+ defaultFolderOptions as b2,
31564
+ garbageCollect as b3,
31565
+ sortOperations as b4,
31566
+ UI_NODE as b5,
31567
+ undo as b6,
31568
+ redo as b7,
31569
+ useDocumentDispatch as b8,
31570
+ inspect as b9,
31571
+ GraphQLObjectType as bA,
31572
+ GraphQLInterfaceType as bB,
31573
+ GraphQLUnionType as bC,
31574
+ GraphQLInputObjectType as bD,
31575
+ GraphQLEnumType as bE,
31576
+ isListType as bF,
31577
+ GraphQLList as bG,
31578
+ isNonNullType as bH,
31579
+ GraphQLNonNull as bI,
31580
+ isNamedType as bJ,
31581
+ getNullableType as bK,
31582
+ isLeafType as bL,
31583
+ GraphQLSchema as bM,
31584
+ buildSchema as bN,
31585
+ buildASTSchema as bO,
31586
+ parse as bP,
31587
+ validate as bQ,
31588
+ visit as bR,
31589
+ extendSchema as bS,
31590
+ snakeCase as bT,
31591
+ constantCase as bU,
31592
+ isAbstractType as bV,
31593
+ BREAK as bW,
31594
+ SchemaMetaFieldDef as bX,
31595
+ TypeMetaFieldDef as bY,
31596
+ TypeNameMetaFieldDef as bZ,
31597
+ isCompositeType as b_,
31598
+ GraphQLError as ba,
31599
+ getNamedType as bb,
31600
+ invariant as bc,
31601
+ isInputObjectType as bd,
31602
+ isScalarType as be,
31603
+ isObjectType as bf,
31604
+ isInterfaceType as bg,
31605
+ isUnionType as bh,
31606
+ isEnumType as bi,
31607
+ print as bj,
31608
+ isPrintableAsBlockString as bk,
31609
+ Kind as bl,
31610
+ astFromValue as bm,
31611
+ DEFAULT_DEPRECATION_REASON as bn,
31612
+ isSpecifiedDirective as bo,
31613
+ isSpecifiedScalarType as bp,
31614
+ isIntrospectionType as bq,
31615
+ z as br,
31616
+ GraphQLScalarType as bs,
31617
+ specifiedRules as bt,
31618
+ GraphQLID as bu,
31619
+ GraphQLBoolean as bv,
31620
+ GraphQLString as bw,
31621
+ GraphQLFloat as bx,
31622
+ GraphQLInt as by,
31623
+ GraphQLDirective as bz,
31619
31624
  createAction as c,
31620
- isCompositeType as c0,
31621
- isOutputType as c1,
31622
- isInputType as c2,
31623
- assertAbstractType as c3,
31624
- doTypesOverlap as c4,
31625
- DirectiveLocation as c5,
31626
- NoUnusedFragmentsRule as c6,
31627
- ExecutableDefinitionsRule as c7,
31628
- validateSchema as c8,
31629
- sentenceCase as c9,
31630
- appLoader as ca,
31625
+ isInputType as c0,
31626
+ assertAbstractType as c1,
31627
+ doTypesOverlap as c2,
31628
+ DirectiveLocation as c3,
31629
+ NoUnusedFragmentsRule as c4,
31630
+ ExecutableDefinitionsRule as c5,
31631
+ validateSchema as c6,
31632
+ sentenceCase as c7,
31633
+ appLoader as c8,
31631
31634
  ReorderModuleOperationsInputSchema as d,
31632
31635
  DeleteOperationInputSchema as e,
31633
31636
  SetOperationReducerInputSchema as f,
@@ -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-SJyv410V.js";
2
- import "./main.BcxEuVs0.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-DJhQA-n0.js";
2
+ import "./main.DXf9Xuwr.js";
3
3
  import "react/jsx-runtime";
4
- import "./app-loader-BsJCIY3v.js";
4
+ import "./app-loader-_ujGNJEV.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-SJyv410V.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-DJhQA-n0.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-BsJCIY3v.js";
5
+ import { _ as Icon, aW as getDimensions, aX as READ, aY as nodeOptionsMap, aZ as defaultFileOptions, a_ as DELETE, a$ as RENAME, b0 as WRITE, b1 as DUPLICATE, b2 as defaultFolderOptions, b3 as garbageCollect, b4 as sortOperations, b5 as UI_NODE, aO as DRIVE, az as FILE, ae as buildSignedOperation, an 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, b6 as undo, b7 as redo, ac as logger, b8 as useDocumentDispatch$1, aP as FOLDER, al as driveDocumentModelModule } from "./app-loader-_ujGNJEV.js";
6
6
  import { flushSync } from "react-dom";
7
- import "./main.BcxEuVs0.js";
7
+ import "./main.DXf9Xuwr.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 });
@@ -1874,7 +1874,7 @@ function notUndefined(value, msg) {
1874
1874
  return value;
1875
1875
  }
1876
1876
  }
1877
- const approxEqual = (a, b) => Math.abs(a - b) < 1;
1877
+ const approxEqual = (a, b) => Math.abs(a - b) <= 1;
1878
1878
  const debounce = (targetWindow, fn, ms) => {
1879
1879
  let timeoutId;
1880
1880
  return function(...args) {
@@ -1882,6 +1882,10 @@ const debounce = (targetWindow, fn, ms) => {
1882
1882
  timeoutId = targetWindow.setTimeout(() => fn.apply(this, args), ms);
1883
1883
  };
1884
1884
  };
1885
+ const getRect = (element) => {
1886
+ const { offsetWidth, offsetHeight } = element;
1887
+ return { width: offsetWidth, height: offsetHeight };
1888
+ };
1885
1889
  const defaultKeyExtractor = (index) => index;
1886
1890
  const defaultRangeExtractor = (range) => {
1887
1891
  const start = Math.max(range.startIndex - range.overscan, 0);
@@ -1905,7 +1909,7 @@ const observeElementRect = (instance, cb) => {
1905
1909
  const { width, height } = rect;
1906
1910
  cb({ width: Math.round(width), height: Math.round(height) });
1907
1911
  };
1908
- handler(element.getBoundingClientRect());
1912
+ handler(getRect(element));
1909
1913
  if (!targetWindow.ResizeObserver) {
1910
1914
  return () => {
1911
1915
  };
@@ -1920,7 +1924,7 @@ const observeElementRect = (instance, cb) => {
1920
1924
  return;
1921
1925
  }
1922
1926
  }
1923
- handler(element.getBoundingClientRect());
1927
+ handler(getRect(element));
1924
1928
  };
1925
1929
  instance.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(run) : run();
1926
1930
  });
@@ -1981,9 +1985,7 @@ const measureElement = (element, entry, instance) => {
1981
1985
  return size;
1982
1986
  }
1983
1987
  }
1984
- return Math.round(
1985
- element.getBoundingClientRect()[instance.options.horizontal ? "width" : "height"]
1986
- );
1988
+ return element[instance.options.horizontal ? "offsetWidth" : "offsetHeight"];
1987
1989
  };
1988
1990
  const elementScroll = (offset, {
1989
1991
  adjustments = 0,
@@ -2415,9 +2417,7 @@ class Virtualizer {
2415
2417
  } else if (align === "end") {
2416
2418
  toOffset -= size;
2417
2419
  }
2418
- const scrollSizeProp = this.options.horizontal ? "scrollWidth" : "scrollHeight";
2419
- const scrollSize = this.scrollElement ? "document" in this.scrollElement ? this.scrollElement.document.documentElement[scrollSizeProp] : this.scrollElement[scrollSizeProp] : 0;
2420
- const maxOffset = scrollSize - size;
2420
+ const maxOffset = this.getTotalSize() - size;
2421
2421
  return Math.max(Math.min(maxOffset, toOffset), 0);
2422
2422
  };
2423
2423
  this.getOffsetForIndex = (index, align = "auto") => {
@@ -2484,7 +2484,8 @@ class Virtualizer {
2484
2484
  const [latestOffset] = notUndefined(
2485
2485
  this.getOffsetForIndex(index, align)
2486
2486
  );
2487
- if (!approxEqual(latestOffset, this.getScrollOffset())) {
2487
+ const currentScrollOffset = this.getScrollOffset();
2488
+ if (!approxEqual(latestOffset, currentScrollOffset)) {
2488
2489
  this.scrollToIndex(index, { align, behavior });
2489
2490
  }
2490
2491
  } else {
@@ -1,8 +1,8 @@
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";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/app-loader-_ujGNJEV.js","assets/main.DXf9Xuwr.js","assets/app-loader-4GyeoNTc.css"])))=>i.map(i=>d[i]);
2
+ import { _ as __vitePreload } from "./main.DXf9Xuwr.js";
3
3
  import { createRoot } from "react-dom/client";
4
4
  async function renderApp(element) {
5
- const AppLoader = await __vitePreload(() => import("./app-loader-BsJCIY3v.js").then((n) => n.ca), true ? __vite__mapDeps([0,1,2]) : void 0);
5
+ const AppLoader = await __vitePreload(() => import("./app-loader-_ujGNJEV.js").then((n) => n.c8), 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,14 +1,14 @@
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-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";
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-DJhQA-n0.js";
4
+ import { b9 as inspect$1, ba as GraphQLError$1, bb as getNamedType, bc as invariant$2, bd as isInputObjectType, be as isScalarType, bf as isObjectType, bg as isInterfaceType, bh as isUnionType, bi as isEnumType, bj as print, bk as isPrintableAsBlockString, bl as Kind, bm as astFromValue$1, bn as DEFAULT_DEPRECATION_REASON, bo as isSpecifiedDirective, bp as isSpecifiedScalarType, bq as isIntrospectionType, br as z, bs as GraphQLScalarType, bt as specifiedRules$1, bu as GraphQLID, bv as GraphQLBoolean, bw as GraphQLString, bx as GraphQLFloat, by as GraphQLInt, bz as GraphQLDirective, bA as GraphQLObjectType, bB as GraphQLInterfaceType, bC as GraphQLUnionType, bD as GraphQLInputObjectType, bE as GraphQLEnumType, bF as isListType, bG as GraphQLList, bH as isNonNullType, bI as GraphQLNonNull, bJ as isNamedType, bK as getNullableType, bL as isLeafType, bM as GraphQLSchema, bN as buildSchema, bO as buildASTSchema, bP as parse, bQ as validate$2, Z as pascalCase, bR as visit, bS as extendSchema, $ as getDefaultExportFromCjs, bT as snakeCase, bU as constantCase, bV as isAbstractType, bW as BREAK, bX as SchemaMetaFieldDef, bY as TypeMetaFieldDef, bZ as TypeNameMetaFieldDef, b_ as isCompositeType, b$ as isOutputType, c0 as isInputType, c1 as assertAbstractType, c2 as doTypesOverlap, c3 as DirectiveLocation, c4 as NoUnusedFragmentsRule$1, c5 as ExecutableDefinitionsRule$1, c6 as validateSchema, c7 as sentenceCase, an as generateId } from "./app-loader-_ujGNJEV.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.BcxEuVs0.js";
7
+ import "./main.DXf9Xuwr.js";
8
8
  import "react-dom";
9
9
  const versionInfo = Object.freeze({
10
10
  major: 16,
11
- minor: 10,
11
+ minor: 11,
12
12
  patch: 0,
13
13
  preReleaseTag: null
14
14
  });
@@ -19770,7 +19770,7 @@ class EditorView {
19770
19770
  one change has been made in the current composition.
19771
19771
  */
19772
19772
  get composing() {
19773
- return this.inputState.composing > 0;
19773
+ return !!this.inputState && this.inputState.composing > 0;
19774
19774
  }
19775
19775
  /**
19776
19776
  Indicates whether the user is currently in composing state. Note
@@ -19779,7 +19779,7 @@ class EditorView {
19779
19779
  composition there.
19780
19780
  */
19781
19781
  get compositionStarted() {
19782
- return this.inputState.composing >= 0;
19782
+ return !!this.inputState && this.inputState.composing >= 0;
19783
19783
  }
19784
19784
  /**
19785
19785
  The document or shadow root that the view lives in.
@@ -37763,10 +37763,7 @@ function requireVisitor() {
37763
37763
  }
37764
37764
  }
37765
37765
  } else {
37766
- node = Object.defineProperties(
37767
- {},
37768
- Object.getOwnPropertyDescriptors(node)
37769
- );
37766
+ node = { ...node };
37770
37767
  for (const [editKey, editValue] of edits) {
37771
37768
  node[editKey] = editValue;
37772
37769
  }
@@ -43886,7 +43883,7 @@ function requireCoerceInputValue() {
43886
43883
  return [coerceInputValueImpl(inputValue, itemType, onError, path)];
43887
43884
  }
43888
43885
  if ((0, _definition.isInputObjectType)(type2)) {
43889
- if (!(0, _isObjectLike.isObjectLike)(inputValue)) {
43886
+ if (!(0, _isObjectLike.isObjectLike)(inputValue) || Array.isArray(inputValue)) {
43890
43887
  onError(
43891
43888
  (0, _Path.pathToArray)(path),
43892
43889
  inputValue,
@@ -45436,7 +45433,7 @@ function requireVariablesInAllowedPositionRule() {
45436
45433
  },
45437
45434
  leave(operation) {
45438
45435
  const usages = context.getRecursiveVariableUsages(operation);
45439
- for (const { node, type: type2, defaultValue } of usages) {
45436
+ for (const { node, type: type2, defaultValue, parentType } of usages) {
45440
45437
  const varName = node.name.value;
45441
45438
  const varDef = varDefMap[varName];
45442
45439
  if (varDef && type2) {
@@ -45460,6 +45457,16 @@ function requireVariablesInAllowedPositionRule() {
45460
45457
  )
45461
45458
  );
45462
45459
  }
45460
+ if ((0, _definition.isInputObjectType)(parentType) && parentType.isOneOf && (0, _definition.isNullableType)(varType)) {
45461
+ context.reportError(
45462
+ new _GraphQLError.GraphQLError(
45463
+ `Variable "$${varName}" is of type "${varType}" but must be non-nullable to be used for OneOf Input Object "${parentType}".`,
45464
+ {
45465
+ nodes: [varDef, node]
45466
+ }
45467
+ )
45468
+ );
45469
+ }
45463
45470
  }
45464
45471
  }
45465
45472
  }
@@ -45713,7 +45720,8 @@ function requireValidationContext() {
45713
45720
  newUsages.push({
45714
45721
  node: variable,
45715
45722
  type: typeInfo.getInputType(),
45716
- defaultValue: typeInfo.getDefaultValue()
45723
+ defaultValue: typeInfo.getDefaultValue(),
45724
+ parentType: typeInfo.getParentInputType()
45717
45725
  });
45718
45726
  }
45719
45727
  })
@@ -46426,7 +46434,7 @@ function DocumentModelEditor(props) {
46426
46434
  resolve(void 0);
46427
46435
  return;
46428
46436
  }
46429
- const id = hashKey();
46437
+ const id = generateId();
46430
46438
  dispatch(addModule({ id, name: name2 }));
46431
46439
  resolve(id);
46432
46440
  } catch (error) {
@@ -46450,7 +46458,7 @@ function DocumentModelEditor(props) {
46450
46458
  resolve(void 0);
46451
46459
  return;
46452
46460
  }
46453
- const id = hashKey();
46461
+ const id = generateId();
46454
46462
  dispatch(addOperation({ id, moduleId, name: name2 }));
46455
46463
  resolve(id);
46456
46464
  } catch (error) {
@@ -46489,7 +46497,7 @@ function DocumentModelEditor(props) {
46489
46497
  resolve(void 0);
46490
46498
  return;
46491
46499
  }
46492
- const id = hashKey();
46500
+ const id = generateId();
46493
46501
  dispatch(addOperationError({ id, operationId, errorName }));
46494
46502
  resolve(id);
46495
46503
  } catch (error) {
@@ -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.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";
13
+ import { _ as __vitePreload } from "./main.DXf9Xuwr.js";
14
+ import { r as rawKeyInHexfromUncompressed, c as compressedKeyInHexfromRaw, e as encodeDIDfromHexString, a as eventsExports, R as RENOWN_URL, g as getEnsInfo } from "./app-DJhQA-n0.js";
15
+ import { i, h, d, j, b, f, s } from "./app-DJhQA-n0.js";
16
+ import { ah as connectConfig, ac as logger } from "./app-loader-_ujGNJEV.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-CS0mQFrd.js"), true ? [] : void 0);
112
+ __vitePreload(() => import("./index-3G4_JsnT.js"), true ? [] : void 0);
113
113
  export {
114
114
  __vitePreload as _
115
115
  };
@@ -1,6 +1,6 @@
1
1
  @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
2
2
 
3
- /*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */
3
+ /*! tailwindcss v4.1.5 | MIT License | https://tailwindcss.com */
4
4
  @layer properties;
5
5
  :root {
6
6
  --toastify-color-light: #fff;
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.BcxEuVs0.js"></script></head><body><div id="app"></div></body></html>
67
+ }</script><script type="module" crossorigin="" src="/assets/main.DXf9Xuwr.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+PHNjcmlwdCB0eXBlPSJtb2R1bGUiIGNyb3Nzb3JpZ2luPSIiIHNyYz0iL2Fzc2V0cy9tYWluLkJjeEV1VnMwLmpzIj48L3NjcmlwdD48L2hlYWQ+PGJvZHk+PGRpdiBpZD0iYXBwIj48L2Rpdj48L2JvZHk+PC9odG1sPg==" | base64 -d)
14
+ html=$(echo "PCFET0NUWVBFIGh0bWw+PGh0bWw+PGhlYWQ+PG1ldGEgY2hhcnNldD0iVVRGLTgiPjxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsaW5pdGlhbC1zY2FsZT0xIj48dGl0bGU+UG93ZXJob3VzZSBDb25uZWN0PC90aXRsZT48YmFzZSBocmVmPSIvIj48bGluayByZWw9Imljb24iIGhyZWY9Ii9pY29uLmljbyI+PCEtLSB2aXRlLWVudnMgc2NyaXB0IHBsYWNlaG9sZGVyIHhLc1BtTHMzMHN3S3NkSXNWeCAtLT48c2NyaXB0IHR5cGU9ImltcG9ydG1hcCI+ewogICJpbXBvcnRzIjogewogICAgInJlYWN0IjogImh0dHBzOi8vZXNtLnNoL3JlYWN0IiwKICAgICJyZWFjdC8iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QvIiwKICAgICJyZWFjdC1kb20iOiAiaHR0cHM6Ly9lc20uc2gvcmVhY3QtZG9tIiwKICAgICJyZWFjdC1kb20vIjogImh0dHBzOi8vZXNtLnNoL3JlYWN0LWRvbS8iCiAgfQp9PC9zY3JpcHQ+PHNjcmlwdCB0eXBlPSJtb2R1bGUiIGNyb3Nzb3JpZ2luPSIiIHNyYz0iL2Fzc2V0cy9tYWluLkRYZjlYdXdyLmpzIj48L3NjcmlwdD48L2hlYWQ+PGJvZHk+PGRpdiBpZD0iYXBwIj48L2Rpdj48L2JvZHk+PC9odG1sPg==" | base64 -d)
15
15
 
16
16
  BASE_URL_base64="eEFwV2RSclg5OWtQclZnZ0UiLyIK"
17
17
  BASE_URL=$(echo "Lwo=" | base64 -d)