@powerhousedao/reactor-browser 6.0.0-dev.100 → 6.0.0-dev.102

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.
@@ -59711,29 +59711,19 @@ var TimeoutManager = class {
59711
59711
  #provider = defaultTimeoutProvider;
59712
59712
  #providerCalled = false;
59713
59713
  setTimeoutProvider(provider) {
59714
- if (true) {
59715
- if (this.#providerCalled && provider !== this.#provider) {
59716
- console.error(`[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.`, { previous: this.#provider, provider });
59717
- }
59718
- }
59714
+ if (false) {}
59719
59715
  this.#provider = provider;
59720
- if (true) {
59721
- this.#providerCalled = false;
59722
- }
59716
+ if (false) {}
59723
59717
  }
59724
59718
  setTimeout(callback, delay) {
59725
- if (true) {
59726
- this.#providerCalled = true;
59727
- }
59719
+ if (false) {}
59728
59720
  return this.#provider.setTimeout(callback, delay);
59729
59721
  }
59730
59722
  clearTimeout(timeoutId) {
59731
59723
  this.#provider.clearTimeout(timeoutId);
59732
59724
  }
59733
59725
  setInterval(callback, delay) {
59734
- if (true) {
59735
- this.#providerCalled = true;
59736
- }
59726
+ if (false) {}
59737
59727
  return this.#provider.setInterval(callback, delay);
59738
59728
  }
59739
59729
  clearInterval(intervalId) {
@@ -59928,14 +59918,7 @@ function replaceData(prevData, data, options) {
59928
59918
  if (typeof options.structuralSharing === "function") {
59929
59919
  return options.structuralSharing(prevData, data);
59930
59920
  } else if (options.structuralSharing !== false) {
59931
- if (true) {
59932
- try {
59933
- return replaceEqualDeep(prevData, data);
59934
- } catch (error) {
59935
- console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`);
59936
- throw error;
59937
- }
59938
- }
59921
+ if (false) {}
59939
59922
  return replaceEqualDeep(prevData, data);
59940
59923
  }
59941
59924
  return data;
@@ -59950,11 +59933,7 @@ function addToStart(items, item, max = 0) {
59950
59933
  }
59951
59934
  var skipToken = /* @__PURE__ */ Symbol();
59952
59935
  function ensureQueryFn(options, fetchOptions) {
59953
- if (true) {
59954
- if (options.queryFn === skipToken) {
59955
- console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`);
59956
- }
59957
- }
59936
+ if (false) {}
59958
59937
  if (!options.queryFn && fetchOptions?.initialPromise) {
59959
59938
  return () => fetchOptions.initialPromise;
59960
59939
  }
@@ -60514,11 +60493,7 @@ var Query = class extends Removable {
60514
60493
  this.setOptions(observer.options);
60515
60494
  }
60516
60495
  }
60517
- if (true) {
60518
- if (!Array.isArray(this.options.queryKey)) {
60519
- console.error(`As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`);
60520
- }
60521
- }
60496
+ if (false) {}
60522
60497
  const abortController = new AbortController;
60523
60498
  const addSignalProperty = (object) => {
60524
60499
  Object.defineProperty(object, "signal", {
@@ -60594,9 +60569,7 @@ var Query = class extends Removable {
60594
60569
  try {
60595
60570
  const data = await this.#retryer.start();
60596
60571
  if (data === undefined) {
60597
- if (true) {
60598
- console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`);
60599
- }
60572
+ if (false) {}
60600
60573
  throw new Error(`${this.queryHash} data is undefined`);
60601
60574
  }
60602
60575
  this.setData(data);
@@ -62135,22 +62108,14 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
62135
62108
  // ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
62136
62109
  "use client";
62137
62110
  function useBaseQuery(options, Observer, queryClient) {
62138
- if (true) {
62139
- if (typeof options !== "object" || Array.isArray(options)) {
62140
- throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');
62141
- }
62142
- }
62111
+ if (false) {}
62143
62112
  const isRestoring = useIsRestoring();
62144
62113
  const errorResetBoundary = useQueryErrorResetBoundary();
62145
62114
  const client = useQueryClient(queryClient);
62146
62115
  const defaultedOptions = client.defaultQueryOptions(options);
62147
62116
  client.getDefaultOptions().queries?._experimental_beforeQuery?.(defaultedOptions);
62148
62117
  const query = client.getQueryCache().get(defaultedOptions.queryHash);
62149
- if (true) {
62150
- if (!defaultedOptions.queryFn) {
62151
- console.error(`[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`);
62152
- }
62153
- }
62118
+ if (false) {}
62154
62119
  defaultedOptions._optimisticResults = isRestoring ? "isRestoring" : "optimistic";
62155
62120
  ensureSuspenseTimers(defaultedOptions);
62156
62121
  ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary, query);
@@ -62198,11 +62163,7 @@ function useQuery(options, queryClient) {
62198
62163
  // ../../node_modules/.pnpm/@tanstack+react-query@5.90.21_react@19.2.4/node_modules/@tanstack/react-query/build/modern/useSuspenseQuery.js
62199
62164
  "use client";
62200
62165
  function useSuspenseQuery(options, queryClient) {
62201
- if (true) {
62202
- if (options.queryFn === skipToken) {
62203
- console.error("skipToken is not allowed for useSuspenseQuery");
62204
- }
62205
- }
62166
+ if (false) {}
62206
62167
  return useBaseQuery({
62207
62168
  ...options,
62208
62169
  enabled: true,
@@ -62257,7 +62218,7 @@ function clearGlobal(namespace) {
62257
62218
  }
62258
62219
 
62259
62220
  // src/analytics/context.tsx
62260
- import { jsxDEV } from "react/jsx-dev-runtime";
62221
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
62261
62222
  var logger = childLogger(["reactor-browser", "analytics", "provider"]);
62262
62223
  var defaultQueryClient = new QueryClient;
62263
62224
  var analyticsOptionsKey = ["analytics", "options"];
@@ -62367,15 +62328,15 @@ function AnalyticsProvider({
62367
62328
  queryClient = defaultQueryClient,
62368
62329
  ...props
62369
62330
  }) {
62370
- return /* @__PURE__ */ jsxDEV(QueryClientProvider, {
62331
+ return /* @__PURE__ */ jsxs(QueryClientProvider, {
62371
62332
  client: queryClient,
62372
62333
  children: [
62373
- /* @__PURE__ */ jsxDEV(CreateAnalyticsStore, {
62334
+ /* @__PURE__ */ jsx3(CreateAnalyticsStore, {
62374
62335
  ...props
62375
- }, undefined, false, undefined, this),
62336
+ }),
62376
62337
  children
62377
62338
  ]
62378
- }, undefined, true, undefined, this);
62339
+ });
62379
62340
  }
62380
62341
  function useAnalyticsEngine() {
62381
62342
  return useSuspenseQuery({
package/dist/src/index.js CHANGED
@@ -4942,7 +4942,7 @@ function getObjectTag(object) {
4942
4942
  }
4943
4943
 
4944
4944
  // ../../node_modules/.pnpm/graphql@16.12.0/node_modules/graphql/jsutils/instanceOf.mjs
4945
- var isProduction = globalThis.process && false;
4945
+ var isProduction = globalThis.process && true;
4946
4946
  var instanceOf = isProduction ? function instanceOf2(value, constructor) {
4947
4947
  return value instanceof constructor;
4948
4948
  } : function instanceOf3(value, constructor) {
@@ -31331,7 +31331,7 @@ class RemoteDocumentController {
31331
31331
  import { useCallback as useCallback6, useState as useState7 } from "react";
31332
31332
 
31333
31333
  // src/renown/components/icons.tsx
31334
- import { jsxDEV } from "react/jsx-dev-runtime";
31334
+ import { jsx, jsxs } from "react/jsx-runtime";
31335
31335
  function RenownLogo({
31336
31336
  width = 71,
31337
31337
  height = 19,
@@ -31339,7 +31339,7 @@ function RenownLogo({
31339
31339
  color = "currentColor",
31340
31340
  className
31341
31341
  }) {
31342
- return /* @__PURE__ */ jsxDEV("svg", {
31342
+ return /* @__PURE__ */ jsxs("svg", {
31343
31343
  width,
31344
31344
  height,
31345
31345
  viewBox: "0 0 71 19",
@@ -31347,40 +31347,40 @@ function RenownLogo({
31347
31347
  xmlns: "http://www.w3.org/2000/svg",
31348
31348
  className,
31349
31349
  children: [
31350
- /* @__PURE__ */ jsxDEV("path", {
31350
+ /* @__PURE__ */ jsx("path", {
31351
31351
  d: "M53.6211 18.4887V9.0342H56.435V10.8096H56.4923C56.7377 10.181 57.1085 9.70244 57.6047 9.37398C58.101 9.03986 58.6981 8.8728 59.3962 8.8728C60.4105 8.8728 61.2039 9.1871 61.7765 9.8157C62.3546 10.4443 62.6436 11.3164 62.6436 12.432V18.4887H59.7397V13.0776C59.7397 12.5283 59.6007 12.1007 59.3225 11.7949C59.0499 11.4835 58.6654 11.3277 58.1692 11.3277C57.6784 11.3277 57.2803 11.4976 56.9749 11.8374C56.6695 12.1772 56.5168 12.6161 56.5168 13.1541V18.4887H53.6211Z"
31352
- }, undefined, false, undefined, this),
31353
- /* @__PURE__ */ jsxDEV("path", {
31352
+ }),
31353
+ /* @__PURE__ */ jsx("path", {
31354
31354
  d: "M53.097 9.03394L50.7412 18.4884H47.6164L46.1522 12.075H46.0949L44.6389 18.4884H41.5632L39.1992 9.03394H42.1195L43.3056 15.7532H43.3628L44.7861 9.03394H47.551L48.9906 15.7532H49.0479L50.234 9.03394H53.097Z"
31355
- }, undefined, false, undefined, this),
31356
- /* @__PURE__ */ jsxDEV("path", {
31355
+ }),
31356
+ /* @__PURE__ */ jsx("path", {
31357
31357
  d: "M37.8661 17.3926C37.0427 18.2591 35.9084 18.6923 34.4632 18.6923C33.0181 18.6923 31.8838 18.2591 31.0604 17.3926C30.2369 16.5205 29.8252 15.3086 29.8252 13.7569C29.8252 12.2336 30.2424 11.033 31.0767 10.1552C31.9111 9.2718 33.0399 8.83008 34.4632 8.83008C35.892 8.83008 37.0208 9.26896 37.8497 10.1467C38.6841 11.0188 39.1013 12.2222 39.1013 13.7569C39.1013 15.3143 38.6896 16.5262 37.8661 17.3926ZM33.2117 15.7702C33.5116 16.2402 33.9288 16.4752 34.4632 16.4752C34.9977 16.4752 35.4148 16.2402 35.7148 15.7702C36.0147 15.2945 36.1647 14.6234 36.1647 13.7569C36.1647 12.9131 36.012 12.2506 35.7066 11.7692C35.4012 11.2878 34.9868 11.0472 34.4632 11.0472C33.9343 11.0472 33.5171 11.2878 33.2117 11.7692C32.9118 12.2449 32.7618 12.9075 32.7618 13.7569C32.7618 14.6234 32.9118 15.2945 33.2117 15.7702Z"
31358
- }, undefined, false, undefined, this),
31359
- /* @__PURE__ */ jsxDEV("path", {
31358
+ }),
31359
+ /* @__PURE__ */ jsx("path", {
31360
31360
  d: "M20.0088 18.4887V9.0342H22.8227V10.8096H22.88C23.1254 10.181 23.4962 9.70244 23.9924 9.37398C24.4887 9.03986 25.0858 8.8728 25.7838 8.8728C26.7982 8.8728 27.5916 9.1871 28.1642 9.8157C28.7423 10.4443 29.0313 11.3164 29.0313 12.432V18.4887H26.1274V13.0776C26.1274 12.5283 25.9883 12.1007 25.7102 11.7949C25.4376 11.4835 25.0531 11.3277 24.5569 11.3277C24.0661 11.3277 23.668 11.4976 23.3626 11.8374C23.0572 12.1772 22.9045 12.6161 22.9045 13.1541V18.4887H20.0088Z"
31361
- }, undefined, false, undefined, this),
31362
- /* @__PURE__ */ jsxDEV("path", {
31361
+ }),
31362
+ /* @__PURE__ */ jsx("path", {
31363
31363
  d: "M14.7486 10.9707C14.2851 10.9707 13.8952 11.1321 13.5789 11.4549C13.2626 11.7777 13.0854 12.1911 13.0472 12.6951H16.4337C16.4064 12.1741 16.2374 11.7579 15.9265 11.4464C15.6212 11.1293 15.2285 10.9707 14.7486 10.9707ZM16.4991 15.5153H19.1167C18.9749 16.4837 18.5141 17.2567 17.7343 17.8343C16.9599 18.4063 15.9838 18.6923 14.8059 18.6923C13.3662 18.6923 12.2374 18.2591 11.4194 17.3926C10.6014 16.5262 10.1924 15.3313 10.1924 13.8079C10.1924 12.2845 10.5987 11.0755 11.4112 10.1807C12.2237 9.28029 13.3226 8.83008 14.7077 8.83008C16.0656 8.83008 17.1481 9.26047 17.9552 10.1213C18.7677 10.9764 19.174 12.1231 19.174 13.5616V14.4195H13.0145V14.6064C13.0145 15.184 13.1835 15.6541 13.5216 16.0165C13.8597 16.3733 14.3015 16.5517 14.8468 16.5517C15.2503 16.5517 15.5993 16.461 15.8938 16.2798C16.1883 16.0929 16.3901 15.8381 16.4991 15.5153Z"
31364
- }, undefined, false, undefined, this),
31365
- /* @__PURE__ */ jsxDEV("path", {
31364
+ }),
31365
+ /* @__PURE__ */ jsx("path", {
31366
31366
  d: "M3.00205 8.58396V12.0667H4.7771C5.32789 12.0667 5.7587 11.911 6.06954 11.5995C6.38038 11.2881 6.5358 10.8662 6.5358 10.3338C6.5358 9.80718 6.37492 9.38528 6.05318 9.06815C5.73143 8.74535 5.30335 8.58396 4.76892 8.58396H3.00205ZM3.00205 14.1989V18.4886H0V6.23096H5.07158C6.53307 6.23096 7.65373 6.5849 8.43355 7.29278C9.21337 8.00066 9.60328 8.99453 9.60328 10.2744C9.60328 11.0446 9.42605 11.7439 9.07159 12.3725C8.71712 12.9955 8.2236 13.4514 7.59101 13.7402L9.94684 18.4886H6.5767L4.55624 14.1989H3.00205Z"
31367
- }, undefined, false, undefined, this),
31368
- /* @__PURE__ */ jsxDEV("path", {
31367
+ }),
31368
+ /* @__PURE__ */ jsx("path", {
31369
31369
  d: "M65.7255 0.211478C65.0841 2.46724 63.3737 4.2455 61.2041 4.90969C60.932 4.99366 60.932 5.39096 61.2041 5.47492C63.3725 6.13912 65.0841 7.91738 65.7255 10.1731C65.8056 10.4551 66.1932 10.4551 66.2745 10.1731C66.9159 7.91738 68.6263 6.13912 70.7959 5.47492C71.068 5.39096 71.068 4.99366 70.7959 4.90969C68.6276 4.2455 66.9159 2.46724 66.2745 0.211478C66.1944 -0.0704925 65.8068 -0.0704925 65.7255 0.211478Z",
31370
31370
  fill: hovered ? "#21FFB4" : color
31371
- }, undefined, false, undefined, this)
31371
+ })
31372
31372
  ]
31373
- }, undefined, true, undefined, this);
31373
+ });
31374
31374
  }
31375
31375
  function CopyIcon({ size = 14, color = "#9EA0A1" }) {
31376
- return /* @__PURE__ */ jsxDEV("svg", {
31376
+ return /* @__PURE__ */ jsxs("svg", {
31377
31377
  width: size,
31378
31378
  height: size,
31379
31379
  viewBox: "0 0 16 16",
31380
31380
  fill: "none",
31381
31381
  xmlns: "http://www.w3.org/2000/svg",
31382
31382
  children: [
31383
- /* @__PURE__ */ jsxDEV("rect", {
31383
+ /* @__PURE__ */ jsx("rect", {
31384
31384
  x: "5",
31385
31385
  y: "5",
31386
31386
  width: "9",
@@ -31388,49 +31388,49 @@ function CopyIcon({ size = 14, color = "#9EA0A1" }) {
31388
31388
  rx: "1",
31389
31389
  stroke: color,
31390
31390
  strokeWidth: "1.5"
31391
- }, undefined, false, undefined, this),
31392
- /* @__PURE__ */ jsxDEV("path", {
31391
+ }),
31392
+ /* @__PURE__ */ jsx("path", {
31393
31393
  d: "M11 5V3C11 2.44772 10.5523 2 10 2H3C2.44772 2 2 2.44772 2 3V10C2 10.5523 2.44772 11 3 11H5",
31394
31394
  stroke: color,
31395
31395
  strokeWidth: "1.5"
31396
- }, undefined, false, undefined, this)
31396
+ })
31397
31397
  ]
31398
- }, undefined, true, undefined, this);
31398
+ });
31399
31399
  }
31400
31400
  function DisconnectIcon({ size = 14, color = "#EA4335" }) {
31401
- return /* @__PURE__ */ jsxDEV("svg", {
31401
+ return /* @__PURE__ */ jsxs("svg", {
31402
31402
  width: size,
31403
31403
  height: size,
31404
31404
  viewBox: "0 0 16 16",
31405
31405
  fill: "none",
31406
31406
  xmlns: "http://www.w3.org/2000/svg",
31407
31407
  children: [
31408
- /* @__PURE__ */ jsxDEV("path", {
31408
+ /* @__PURE__ */ jsx("path", {
31409
31409
  d: "M6 14H3.33333C2.97971 14 2.64057 13.8595 2.39052 13.6095C2.14048 13.3594 2 13.0203 2 12.6667V3.33333C2 2.97971 2.14048 2.64057 2.39052 2.39052C2.64057 2.14048 2.97971 2 3.33333 2H6",
31410
31410
  stroke: color,
31411
31411
  strokeWidth: "1.5",
31412
31412
  strokeLinecap: "round",
31413
31413
  strokeLinejoin: "round"
31414
- }, undefined, false, undefined, this),
31415
- /* @__PURE__ */ jsxDEV("path", {
31414
+ }),
31415
+ /* @__PURE__ */ jsx("path", {
31416
31416
  d: "M10.6667 11.3333L14 8L10.6667 4.66667",
31417
31417
  stroke: color,
31418
31418
  strokeWidth: "1.5",
31419
31419
  strokeLinecap: "round",
31420
31420
  strokeLinejoin: "round"
31421
- }, undefined, false, undefined, this),
31422
- /* @__PURE__ */ jsxDEV("path", {
31421
+ }),
31422
+ /* @__PURE__ */ jsx("path", {
31423
31423
  d: "M14 8H6",
31424
31424
  stroke: color,
31425
31425
  strokeWidth: "1.5",
31426
31426
  strokeLinecap: "round",
31427
31427
  strokeLinejoin: "round"
31428
- }, undefined, false, undefined, this)
31428
+ })
31429
31429
  ]
31430
- }, undefined, true, undefined, this);
31430
+ });
31431
31431
  }
31432
31432
  function SpinnerIcon({ size = 14, color = "currentColor" }) {
31433
- return /* @__PURE__ */ jsxDEV("svg", {
31433
+ return /* @__PURE__ */ jsxs("svg", {
31434
31434
  width: size,
31435
31435
  height: size,
31436
31436
  viewBox: "0 0 16 16",
@@ -31438,111 +31438,111 @@ function SpinnerIcon({ size = 14, color = "currentColor" }) {
31438
31438
  xmlns: "http://www.w3.org/2000/svg",
31439
31439
  style: { animation: "spin 1s linear infinite" },
31440
31440
  children: [
31441
- /* @__PURE__ */ jsxDEV("style", {
31441
+ /* @__PURE__ */ jsx("style", {
31442
31442
  children: `@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }`
31443
- }, undefined, false, undefined, this),
31444
- /* @__PURE__ */ jsxDEV("path", {
31443
+ }),
31444
+ /* @__PURE__ */ jsx("path", {
31445
31445
  d: "M8 1V4",
31446
31446
  stroke: color,
31447
31447
  strokeWidth: "1.5",
31448
31448
  strokeLinecap: "round"
31449
- }, undefined, false, undefined, this),
31450
- /* @__PURE__ */ jsxDEV("path", {
31449
+ }),
31450
+ /* @__PURE__ */ jsx("path", {
31451
31451
  d: "M8 12V15",
31452
31452
  stroke: color,
31453
31453
  strokeWidth: "1.5",
31454
31454
  strokeLinecap: "round",
31455
31455
  opacity: "0.3"
31456
- }, undefined, false, undefined, this),
31457
- /* @__PURE__ */ jsxDEV("path", {
31456
+ }),
31457
+ /* @__PURE__ */ jsx("path", {
31458
31458
  d: "M3.05 3.05L5.17 5.17",
31459
31459
  stroke: color,
31460
31460
  strokeWidth: "1.5",
31461
31461
  strokeLinecap: "round",
31462
31462
  opacity: "0.9"
31463
- }, undefined, false, undefined, this),
31464
- /* @__PURE__ */ jsxDEV("path", {
31463
+ }),
31464
+ /* @__PURE__ */ jsx("path", {
31465
31465
  d: "M10.83 10.83L12.95 12.95",
31466
31466
  stroke: color,
31467
31467
  strokeWidth: "1.5",
31468
31468
  strokeLinecap: "round",
31469
31469
  opacity: "0.4"
31470
- }, undefined, false, undefined, this),
31471
- /* @__PURE__ */ jsxDEV("path", {
31470
+ }),
31471
+ /* @__PURE__ */ jsx("path", {
31472
31472
  d: "M1 8H4",
31473
31473
  stroke: color,
31474
31474
  strokeWidth: "1.5",
31475
31475
  strokeLinecap: "round",
31476
31476
  opacity: "0.8"
31477
- }, undefined, false, undefined, this),
31478
- /* @__PURE__ */ jsxDEV("path", {
31477
+ }),
31478
+ /* @__PURE__ */ jsx("path", {
31479
31479
  d: "M12 8H15",
31480
31480
  stroke: color,
31481
31481
  strokeWidth: "1.5",
31482
31482
  strokeLinecap: "round",
31483
31483
  opacity: "0.5"
31484
- }, undefined, false, undefined, this),
31485
- /* @__PURE__ */ jsxDEV("path", {
31484
+ }),
31485
+ /* @__PURE__ */ jsx("path", {
31486
31486
  d: "M3.05 12.95L5.17 10.83",
31487
31487
  stroke: color,
31488
31488
  strokeWidth: "1.5",
31489
31489
  strokeLinecap: "round",
31490
31490
  opacity: "0.7"
31491
- }, undefined, false, undefined, this),
31492
- /* @__PURE__ */ jsxDEV("path", {
31491
+ }),
31492
+ /* @__PURE__ */ jsx("path", {
31493
31493
  d: "M10.83 5.17L12.95 3.05",
31494
31494
  stroke: color,
31495
31495
  strokeWidth: "1.5",
31496
31496
  strokeLinecap: "round",
31497
31497
  opacity: "0.6"
31498
- }, undefined, false, undefined, this)
31498
+ })
31499
31499
  ]
31500
- }, undefined, true, undefined, this);
31500
+ });
31501
31501
  }
31502
31502
  function ChevronDownIcon({
31503
31503
  size = 14,
31504
31504
  color = "currentColor",
31505
31505
  style
31506
31506
  }) {
31507
- return /* @__PURE__ */ jsxDEV("svg", {
31507
+ return /* @__PURE__ */ jsx("svg", {
31508
31508
  width: size,
31509
31509
  height: size,
31510
31510
  viewBox: "0 0 16 16",
31511
31511
  fill: "none",
31512
31512
  xmlns: "http://www.w3.org/2000/svg",
31513
31513
  style,
31514
- children: /* @__PURE__ */ jsxDEV("path", {
31514
+ children: /* @__PURE__ */ jsx("path", {
31515
31515
  d: "M4 6L8 10L12 6",
31516
31516
  stroke: color,
31517
31517
  strokeWidth: "1.5",
31518
31518
  strokeLinecap: "round",
31519
31519
  strokeLinejoin: "round"
31520
- }, undefined, false, undefined, this)
31521
- }, undefined, false, undefined, this);
31520
+ })
31521
+ });
31522
31522
  }
31523
31523
  function UserIcon({ size = 24, color = "#6366f1" }) {
31524
- return /* @__PURE__ */ jsxDEV("svg", {
31524
+ return /* @__PURE__ */ jsxs("svg", {
31525
31525
  width: size,
31526
31526
  height: size,
31527
31527
  viewBox: "0 0 24 24",
31528
31528
  fill: "none",
31529
31529
  xmlns: "http://www.w3.org/2000/svg",
31530
31530
  children: [
31531
- /* @__PURE__ */ jsxDEV("circle", {
31531
+ /* @__PURE__ */ jsx("circle", {
31532
31532
  cx: "12",
31533
31533
  cy: "8",
31534
31534
  r: "4",
31535
31535
  stroke: color,
31536
31536
  strokeWidth: "2"
31537
- }, undefined, false, undefined, this),
31538
- /* @__PURE__ */ jsxDEV("path", {
31537
+ }),
31538
+ /* @__PURE__ */ jsx("path", {
31539
31539
  d: "M4 20C4 16.6863 7.58172 14 12 14C16.4183 14 20 16.6863 20 20",
31540
31540
  stroke: color,
31541
31541
  strokeWidth: "2",
31542
31542
  strokeLinecap: "round"
31543
- }, undefined, false, undefined, this)
31543
+ })
31544
31544
  ]
31545
- }, undefined, true, undefined, this);
31545
+ });
31546
31546
  }
31547
31547
 
31548
31548
  // src/renown/components/slot.tsx
@@ -31587,7 +31587,7 @@ var Slot = forwardRef(({ children, ...props }, ref) => {
31587
31587
  Slot.displayName = "Slot";
31588
31588
 
31589
31589
  // src/renown/components/RenownLoginButton.tsx
31590
- import { jsxDEV as jsxDEV2 } from "react/jsx-dev-runtime";
31590
+ import { jsx as jsx2 } from "react/jsx-runtime";
31591
31591
  var lightStyles = {
31592
31592
  trigger: {
31593
31593
  backgroundColor: "#ffffff",
@@ -31661,36 +31661,36 @@ function RenownLoginButton({
31661
31661
  cursor: isLoading ? "wait" : "pointer",
31662
31662
  ...style
31663
31663
  };
31664
- const triggerElement = asChild ? /* @__PURE__ */ jsxDEV2(Slot, {
31664
+ const triggerElement = asChild ? /* @__PURE__ */ jsx2(Slot, {
31665
31665
  onClick: handleClick,
31666
31666
  "data-renown-state": "login",
31667
31667
  ...isLoading ? { "data-loading": "" } : {},
31668
31668
  children
31669
- }, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV2("button", {
31669
+ }) : /* @__PURE__ */ jsx2("button", {
31670
31670
  type: "button",
31671
31671
  style: triggerStyle,
31672
31672
  "aria-label": "Log in with Renown",
31673
31673
  onClick: handleClick,
31674
31674
  "data-renown-state": "login",
31675
31675
  ...isLoading ? { "data-loading": "" } : {},
31676
- children: isLoading ? /* @__PURE__ */ jsxDEV2(SpinnerIcon, {
31676
+ children: isLoading ? /* @__PURE__ */ jsx2(SpinnerIcon, {
31677
31677
  size: 16
31678
- }, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV2("span", {
31678
+ }) : /* @__PURE__ */ jsx2("span", {
31679
31679
  children: "Log in"
31680
- }, undefined, false, undefined, this)
31681
- }, undefined, false, undefined, this);
31682
- return /* @__PURE__ */ jsxDEV2("div", {
31680
+ })
31681
+ });
31682
+ return /* @__PURE__ */ jsx2("div", {
31683
31683
  style: styles.wrapper,
31684
31684
  className,
31685
31685
  onMouseEnter: handleMouseEnter,
31686
31686
  onMouseLeave: handleMouseLeave,
31687
31687
  children: triggerElement
31688
- }, undefined, false, undefined, this);
31688
+ });
31689
31689
  }
31690
31690
 
31691
31691
  // src/renown/components/RenownUserButton.tsx
31692
31692
  import { useCallback as useCallback7, useEffect as useEffect7, useRef as useRef5, useState as useState8 } from "react";
31693
- import { jsxDEV as jsxDEV3 } from "react/jsx-dev-runtime";
31693
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
31694
31694
  var POPOVER_GAP = 4;
31695
31695
  var POPOVER_HEIGHT = 150;
31696
31696
  var styles2 = {
@@ -31916,10 +31916,10 @@ function RenownUserButton({
31916
31916
  console.error("Failed to copy address:", err);
31917
31917
  }
31918
31918
  }, [address]);
31919
- const triggerElement = asChild ? /* @__PURE__ */ jsxDEV3(Slot, {
31919
+ const triggerElement = asChild ? /* @__PURE__ */ jsx3(Slot, {
31920
31920
  "data-renown-state": "authenticated",
31921
31921
  children
31922
- }, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV3("button", {
31922
+ }) : /* @__PURE__ */ jsxs2("button", {
31923
31923
  type: "button",
31924
31924
  style: {
31925
31925
  ...styles2.trigger,
@@ -31929,31 +31929,31 @@ function RenownUserButton({
31929
31929
  "aria-label": "Open account menu",
31930
31930
  "data-renown-state": "authenticated",
31931
31931
  children: [
31932
- avatarUrl ? /* @__PURE__ */ jsxDEV3("img", {
31932
+ avatarUrl ? /* @__PURE__ */ jsx3("img", {
31933
31933
  src: avatarUrl,
31934
31934
  alt: "Avatar",
31935
31935
  style: styles2.avatar
31936
- }, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV3("div", {
31936
+ }) : /* @__PURE__ */ jsx3("div", {
31937
31937
  style: styles2.avatarPlaceholder,
31938
- children: /* @__PURE__ */ jsxDEV3("span", {
31938
+ children: /* @__PURE__ */ jsx3("span", {
31939
31939
  style: styles2.avatarInitial,
31940
31940
  children: (displayName || "U")[0].toUpperCase()
31941
- }, undefined, false, undefined, this)
31942
- }, undefined, false, undefined, this),
31943
- /* @__PURE__ */ jsxDEV3("span", {
31941
+ })
31942
+ }),
31943
+ /* @__PURE__ */ jsx3("span", {
31944
31944
  style: styles2.displayName,
31945
31945
  children: displayName
31946
- }, undefined, false, undefined, this),
31947
- /* @__PURE__ */ jsxDEV3(ChevronDownIcon, {
31946
+ }),
31947
+ /* @__PURE__ */ jsx3(ChevronDownIcon, {
31948
31948
  size: 14,
31949
31949
  style: {
31950
31950
  ...styles2.chevron,
31951
31951
  ...isOpen ? styles2.chevronOpen : {}
31952
31952
  }
31953
- }, undefined, false, undefined, this)
31953
+ })
31954
31954
  ]
31955
- }, undefined, true, undefined, this);
31956
- return /* @__PURE__ */ jsxDEV3("div", {
31955
+ });
31956
+ return /* @__PURE__ */ jsxs2("div", {
31957
31957
  ref: wrapperRef,
31958
31958
  style: styles2.wrapper,
31959
31959
  className,
@@ -31961,26 +31961,26 @@ function RenownUserButton({
31961
31961
  onMouseLeave: handleMouseLeave,
31962
31962
  children: [
31963
31963
  triggerElement,
31964
- isOpen && /* @__PURE__ */ jsxDEV3("div", {
31964
+ isOpen && /* @__PURE__ */ jsxs2("div", {
31965
31965
  style: {
31966
31966
  ...styles2.popoverBase,
31967
31967
  ...showAbove ? { bottom: `calc(100% + ${POPOVER_GAP}px)` } : { top: `calc(100% + ${POPOVER_GAP}px)` }
31968
31968
  },
31969
31969
  children: [
31970
- /* @__PURE__ */ jsxDEV3("div", {
31970
+ /* @__PURE__ */ jsxs2("div", {
31971
31971
  style: styles2.header,
31972
31972
  children: [
31973
- username && /* @__PURE__ */ jsxDEV3("div", {
31973
+ username && /* @__PURE__ */ jsx3("div", {
31974
31974
  style: styles2.headerUsername,
31975
31975
  children: username
31976
- }, undefined, false, undefined, this),
31977
- address && /* @__PURE__ */ jsxDEV3("div", {
31976
+ }),
31977
+ address && /* @__PURE__ */ jsx3("div", {
31978
31978
  style: styles2.addressRow,
31979
- children: /* @__PURE__ */ jsxDEV3("button", {
31979
+ children: /* @__PURE__ */ jsx3("button", {
31980
31980
  type: "button",
31981
31981
  onClick: () => void copyToClipboard(),
31982
31982
  style: styles2.addressButton,
31983
- children: /* @__PURE__ */ jsxDEV3("div", {
31983
+ children: /* @__PURE__ */ jsxs2("div", {
31984
31984
  style: {
31985
31985
  position: "relative",
31986
31986
  display: "flex",
@@ -31989,38 +31989,38 @@ function RenownUserButton({
31989
31989
  width: "100%"
31990
31990
  },
31991
31991
  children: [
31992
- /* @__PURE__ */ jsxDEV3("div", {
31992
+ /* @__PURE__ */ jsxs2("div", {
31993
31993
  style: {
31994
31994
  ...styles2.addressText,
31995
31995
  opacity: isCopied ? 0 : 1
31996
31996
  },
31997
31997
  children: [
31998
- /* @__PURE__ */ jsxDEV3("span", {
31998
+ /* @__PURE__ */ jsx3("span", {
31999
31999
  children: truncateAddress2(address)
32000
- }, undefined, false, undefined, this),
32001
- /* @__PURE__ */ jsxDEV3(CopyIcon, {
32000
+ }),
32001
+ /* @__PURE__ */ jsx3(CopyIcon, {
32002
32002
  size: 12,
32003
32003
  color: "#9ca3af"
32004
- }, undefined, false, undefined, this)
32004
+ })
32005
32005
  ]
32006
- }, undefined, true, undefined, this),
32007
- /* @__PURE__ */ jsxDEV3("div", {
32006
+ }),
32007
+ /* @__PURE__ */ jsx3("div", {
32008
32008
  style: {
32009
32009
  ...styles2.copiedText,
32010
32010
  opacity: isCopied ? 1 : 0
32011
32011
  },
32012
32012
  children: "Copied!"
32013
- }, undefined, false, undefined, this)
32013
+ })
32014
32014
  ]
32015
- }, undefined, true, undefined, this)
32016
- }, undefined, false, undefined, this)
32017
- }, undefined, false, undefined, this)
32015
+ })
32016
+ })
32017
+ })
32018
32018
  ]
32019
- }, undefined, true, undefined, this),
32020
- /* @__PURE__ */ jsxDEV3("div", {
32019
+ }),
32020
+ /* @__PURE__ */ jsxs2("div", {
32021
32021
  style: styles2.menuSection,
32022
32022
  children: [
32023
- profileId && /* @__PURE__ */ jsxDEV3("button", {
32023
+ profileId && /* @__PURE__ */ jsxs2("button", {
32024
32024
  type: "button",
32025
32025
  onClick: () => openRenown(profileId),
32026
32026
  onMouseEnter: () => setHoveredItem("profile"),
@@ -32030,14 +32030,14 @@ function RenownUserButton({
32030
32030
  ...hoveredItem === "profile" ? styles2.menuItemHover : {}
32031
32031
  },
32032
32032
  children: [
32033
- /* @__PURE__ */ jsxDEV3(UserIcon, {
32033
+ /* @__PURE__ */ jsx3(UserIcon, {
32034
32034
  size: 14,
32035
32035
  color: "#6b7280"
32036
- }, undefined, false, undefined, this),
32036
+ }),
32037
32037
  "View Profile"
32038
32038
  ]
32039
- }, undefined, true, undefined, this),
32040
- menuItems?.map((item) => /* @__PURE__ */ jsxDEV3("button", {
32039
+ }),
32040
+ menuItems?.map((item) => /* @__PURE__ */ jsxs2("button", {
32041
32041
  type: "button",
32042
32042
  onClick: item.onClick,
32043
32043
  onMouseEnter: () => setHoveredItem(item.label),
@@ -32051,15 +32051,15 @@ function RenownUserButton({
32051
32051
  item.icon,
32052
32052
  item.label
32053
32053
  ]
32054
- }, item.label, true, undefined, this))
32054
+ }, item.label))
32055
32055
  ]
32056
- }, undefined, true, undefined, this),
32057
- /* @__PURE__ */ jsxDEV3("hr", {
32056
+ }),
32057
+ /* @__PURE__ */ jsx3("hr", {
32058
32058
  style: styles2.separator
32059
- }, undefined, false, undefined, this),
32060
- /* @__PURE__ */ jsxDEV3("div", {
32059
+ }),
32060
+ /* @__PURE__ */ jsx3("div", {
32061
32061
  style: styles2.menuSection,
32062
- children: /* @__PURE__ */ jsxDEV3("button", {
32062
+ children: /* @__PURE__ */ jsxs2("button", {
32063
32063
  type: "button",
32064
32064
  onClick: onDisconnect,
32065
32065
  onMouseEnter: () => setHoveredItem("disconnect"),
@@ -32070,22 +32070,22 @@ function RenownUserButton({
32070
32070
  ...hoveredItem === "disconnect" ? styles2.menuItemHover : {}
32071
32071
  },
32072
32072
  children: [
32073
- /* @__PURE__ */ jsxDEV3(DisconnectIcon, {
32073
+ /* @__PURE__ */ jsx3(DisconnectIcon, {
32074
32074
  size: 14,
32075
32075
  color: "#dc2626"
32076
- }, undefined, false, undefined, this),
32076
+ }),
32077
32077
  "Log out"
32078
32078
  ]
32079
- }, undefined, true, undefined, this)
32080
- }, undefined, false, undefined, this)
32079
+ })
32080
+ })
32081
32081
  ]
32082
- }, undefined, true, undefined, this)
32082
+ })
32083
32083
  ]
32084
- }, undefined, true, undefined, this);
32084
+ });
32085
32085
  }
32086
32086
 
32087
32087
  // src/renown/components/RenownAuthButton.tsx
32088
- import { jsxDEV as jsxDEV4, Fragment } from "react/jsx-dev-runtime";
32088
+ import { jsx as jsx4, jsxs as jsxs3, Fragment } from "react/jsx-runtime";
32089
32089
  function RenownAuthButton({
32090
32090
  className = "",
32091
32091
  darkMode,
@@ -32096,21 +32096,21 @@ function RenownAuthButton({
32096
32096
  }) {
32097
32097
  const auth = useRenownAuth();
32098
32098
  if (children) {
32099
- return /* @__PURE__ */ jsxDEV4(Fragment, {
32099
+ return /* @__PURE__ */ jsx4(Fragment, {
32100
32100
  children: children(auth)
32101
- }, undefined, false, undefined, this);
32101
+ });
32102
32102
  }
32103
32103
  if (auth.status === "loading" || auth.status === "checking") {
32104
32104
  if (loadingContent) {
32105
- return /* @__PURE__ */ jsxDEV4("div", {
32105
+ return /* @__PURE__ */ jsx4("div", {
32106
32106
  className,
32107
32107
  children: loadingContent
32108
- }, undefined, false, undefined, this);
32108
+ });
32109
32109
  }
32110
- return /* @__PURE__ */ jsxDEV4("div", {
32110
+ return /* @__PURE__ */ jsxs3("div", {
32111
32111
  className,
32112
32112
  children: [
32113
- /* @__PURE__ */ jsxDEV4("div", {
32113
+ /* @__PURE__ */ jsxs3("div", {
32114
32114
  style: {
32115
32115
  display: "flex",
32116
32116
  alignItems: "center",
@@ -32121,54 +32121,54 @@ function RenownAuthButton({
32121
32121
  animation: "pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"
32122
32122
  },
32123
32123
  children: [
32124
- /* @__PURE__ */ jsxDEV4("div", {
32124
+ /* @__PURE__ */ jsx4("div", {
32125
32125
  style: {
32126
32126
  width: "28px",
32127
32127
  height: "28px",
32128
32128
  borderRadius: "50%",
32129
32129
  backgroundColor: "#e5e7eb"
32130
32130
  }
32131
- }, undefined, false, undefined, this),
32132
- /* @__PURE__ */ jsxDEV4("div", {
32131
+ }),
32132
+ /* @__PURE__ */ jsx4("div", {
32133
32133
  style: {
32134
32134
  width: "80px",
32135
32135
  height: "14px",
32136
32136
  borderRadius: "4px",
32137
32137
  backgroundColor: "#e5e7eb"
32138
32138
  }
32139
- }, undefined, false, undefined, this)
32139
+ })
32140
32140
  ]
32141
- }, undefined, true, undefined, this),
32142
- /* @__PURE__ */ jsxDEV4("style", {
32141
+ }),
32142
+ /* @__PURE__ */ jsx4("style", {
32143
32143
  children: `@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }`
32144
- }, undefined, false, undefined, this)
32144
+ })
32145
32145
  ]
32146
- }, undefined, true, undefined, this);
32146
+ });
32147
32147
  }
32148
32148
  if (auth.status === "authorized") {
32149
32149
  if (userContent) {
32150
- return /* @__PURE__ */ jsxDEV4("div", {
32150
+ return /* @__PURE__ */ jsx4("div", {
32151
32151
  className,
32152
32152
  children: userContent
32153
- }, undefined, false, undefined, this);
32153
+ });
32154
32154
  }
32155
- return /* @__PURE__ */ jsxDEV4("div", {
32155
+ return /* @__PURE__ */ jsx4("div", {
32156
32156
  className,
32157
- children: /* @__PURE__ */ jsxDEV4(RenownUserButton, {}, undefined, false, undefined, this)
32158
- }, undefined, false, undefined, this);
32157
+ children: /* @__PURE__ */ jsx4(RenownUserButton, {})
32158
+ });
32159
32159
  }
32160
32160
  if (loginContent) {
32161
- return /* @__PURE__ */ jsxDEV4("div", {
32161
+ return /* @__PURE__ */ jsx4("div", {
32162
32162
  className,
32163
32163
  children: loginContent
32164
- }, undefined, false, undefined, this);
32164
+ });
32165
32165
  }
32166
- return /* @__PURE__ */ jsxDEV4("div", {
32166
+ return /* @__PURE__ */ jsx4("div", {
32167
32167
  className,
32168
- children: /* @__PURE__ */ jsxDEV4(RenownLoginButton, {
32168
+ children: /* @__PURE__ */ jsx4(RenownLoginButton, {
32169
32169
  darkMode
32170
- }, undefined, false, undefined, this)
32171
- }, undefined, false, undefined, this);
32170
+ })
32171
+ });
32172
32172
  }
32173
32173
  // src/renown/use-renown-init.ts
32174
32174
  import { useRef as useRef6 } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerhousedao/reactor-browser",
3
- "version": "6.0.0-dev.100",
3
+ "version": "6.0.0-dev.102",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "repository": {
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@powerhousedao/reactor": "6.0.0-dev.100",
33
- "document-drive": "6.0.0-dev.100",
34
- "document-model": "6.0.0-dev.100"
32
+ "@powerhousedao/reactor": "6.0.0-dev.102",
33
+ "document-drive": "6.0.0-dev.102",
34
+ "document-model": "6.0.0-dev.102"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@graphql-codegen/cli": "6.1.1",
@@ -66,9 +66,9 @@
66
66
  "luxon": "^3.6.1",
67
67
  "lz-string": "^1.5.0",
68
68
  "slug": "^11.0.0",
69
- "@powerhousedao/analytics-engine-browser": "6.0.0-dev.100",
70
- "@powerhousedao/analytics-engine-core": "6.0.0-dev.100",
71
- "@renown/sdk": "6.0.0-dev.100"
69
+ "@powerhousedao/analytics-engine-browser": "6.0.0-dev.102",
70
+ "@powerhousedao/analytics-engine-core": "6.0.0-dev.102",
71
+ "@renown/sdk": "6.0.0-dev.102"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "react": ">=19.0.0",
@@ -78,7 +78,7 @@
78
78
  "scripts": {
79
79
  "tsc": "tsc",
80
80
  "lint": "eslint",
81
- "build:bundle": "bun run ./bundle.ts",
81
+ "build:bundle": "NODE_ENV=production bun run ./bundle.ts",
82
82
  "test:browser": "vitest --run",
83
83
  "install:playwright": "playwright install",
84
84
  "codegen": "graphql-codegen --config codegen.ts && prettier --write src/graphql/gen/*.ts && eslint --fix src/graphql/gen/*.ts --no-warn-ignored"