@rhinestone/deposit-modal 0.0.0-dev-20260903121921 → 0.0.0-dev-20260904121530

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 {
2
2
  DepositModalInner,
3
3
  getReownDependencies
4
- } from "./chunk-Y2BTIJTM.mjs";
4
+ } from "./chunk-CDA32WXP.mjs";
5
5
  import {
6
6
  followSystemAppearance,
7
7
  isUnsupportedChainSwitchError,
@@ -10,8 +10,8 @@ import {
10
10
  resolveThemeMode,
11
11
  rpcUrlFor,
12
12
  useStableRpcUrls
13
- } from "./chunk-XCJI72KO.mjs";
14
- import "./chunk-AIVLOYKS.mjs";
13
+ } from "./chunk-KLEQVOFY.mjs";
14
+ import "./chunk-5C2AONCF.mjs";
15
15
  import "./chunk-FTWKAJGN.mjs";
16
16
  import {
17
17
  SUPPORTED_CHAIN_IDS,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk752QB4H7cjs = require('./chunk-752QB4H7.cjs');
4
+ var _chunkQPTTOY2Vcjs = require('./chunk-QPTTOY2V.cjs');
5
5
 
6
6
 
7
7
 
@@ -10,8 +10,8 @@ var _chunk752QB4H7cjs = require('./chunk-752QB4H7.cjs');
10
10
 
11
11
 
12
12
 
13
- var _chunkKAQ6DCDXcjs = require('./chunk-KAQ6DCDX.cjs');
14
- require('./chunk-VPAVSAPT.cjs');
13
+ var _chunkGD46HVRWcjs = require('./chunk-GD46HVRW.cjs');
14
+ require('./chunk-DXKYZYL6.cjs');
15
15
  require('./chunk-LVCD6RHF.cjs');
16
16
 
17
17
 
@@ -44,7 +44,7 @@ var {
44
44
  unichain,
45
45
  katana,
46
46
  hyperEvm
47
- } = _chunk752QB4H7cjs.getReownDependencies.call(void 0, )[1];
47
+ } = _chunkQPTTOY2Vcjs.getReownDependencies.call(void 0, )[1];
48
48
  var APPKIT_NETWORK_BY_ID = {
49
49
  [mainnet.id]: mainnet,
50
50
  [optimism.id]: optimism,
@@ -76,7 +76,7 @@ function getAppKitNetwork(chainId) {
76
76
 
77
77
  // src/core/reown-theme.ts
78
78
  function mapTheme(theme) {
79
- const themeMode = _chunkKAQ6DCDXcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
79
+ const themeMode = _chunkGD46HVRWcjs.resolveThemeMode.call(void 0, _optionalChain([theme, 'optionalAccess', _ => _.mode])) === "light" ? "light" : "dark";
80
80
  const themeVariables = {
81
81
  "--apkt-accent": _optionalChain([theme, 'optionalAccess', _2 => _2.ctaColor])
82
82
  };
@@ -93,7 +93,7 @@ function setAppKitTheme(appKit, theme) {
93
93
 
94
94
  // src/core/reown.tsx
95
95
  var _jsxruntime = require('react/jsx-runtime');
96
- var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunk752QB4H7cjs.getReownDependencies.call(void 0, );
96
+ var [appKitReact, appKitNetworks, wagmiAdapter, solanaAdapter] = _chunkQPTTOY2Vcjs.getReownDependencies.call(void 0, );
97
97
  var {
98
98
  createAppKit,
99
99
  useAppKit,
@@ -109,14 +109,14 @@ function buildTransports(rpcUrls, networks = EVM_NETWORKS) {
109
109
  const transports = {};
110
110
  for (const network of networks) {
111
111
  const id = Number(network.id);
112
- transports[id] = _viem.http.call(void 0, _chunkKAQ6DCDXcjs.rpcUrlFor.call(void 0, rpcUrls, id));
112
+ transports[id] = _viem.http.call(void 0, _chunkGD46HVRWcjs.rpcUrlFor.call(void 0, rpcUrls, id));
113
113
  }
114
114
  return transports;
115
115
  }
116
116
  function getEvmRpcFingerprint(rpcUrls, networks) {
117
117
  return networks.map((network) => {
118
118
  const id = Number(network.id);
119
- return `${id}=${_nullishCoalesce(_chunkKAQ6DCDXcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
119
+ return `${id}=${_nullishCoalesce(_chunkGD46HVRWcjs.rpcUrlFor.call(void 0, rpcUrls, id), () => ( ""))}`;
120
120
  }).join("|");
121
121
  }
122
122
  var cachedAdapter = null;
@@ -187,7 +187,7 @@ function ReownWalletProvider({
187
187
  backendUrl,
188
188
  children
189
189
  }) {
190
- const rpcUrls = _chunkKAQ6DCDXcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
190
+ const rpcUrls = _chunkGD46HVRWcjs.useStableRpcUrls.call(void 0, rpcUrlsProp);
191
191
  const [queryClient] = _react.useState.call(void 0, () => new (0, _reactquery.QueryClient)());
192
192
  const overrides = _react.useMemo.call(void 0, () => {
193
193
  if (!rpcUrls) return void 0;
@@ -199,14 +199,14 @@ function ReownWalletProvider({
199
199
  return out;
200
200
  }, [rpcUrls]);
201
201
  const [state, setState] = _react.useState.call(void 0, () => {
202
- const primed = _chunkKAQ6DCDXcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
202
+ const primed = _chunkGD46HVRWcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
203
203
  return { ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) };
204
204
  });
205
205
  _react.useEffect.call(void 0, () => {
206
206
  let active = true;
207
- const primed = _chunkKAQ6DCDXcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
207
+ const primed = _chunkGD46HVRWcjs.peekRuntimeChains.call(void 0, backendUrl, overrides);
208
208
  setState({ ready: primed !== null, chains: _nullishCoalesce(primed, () => ( [])) });
209
- _chunkKAQ6DCDXcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
209
+ _chunkGD46HVRWcjs.primeRuntimeChains.call(void 0, backendUrl, overrides).then((chains) => {
210
210
  if (active) setState({ ready: true, chains });
211
211
  });
212
212
  return () => {
@@ -215,7 +215,7 @@ function ReownWalletProvider({
215
215
  }, [backendUrl, overrides]);
216
216
  _react.useEffect.call(void 0, () => {
217
217
  setAppKitTheme(appKitReact.modal, theme);
218
- return _chunkKAQ6DCDXcjs.followSystemAppearance.call(void 0,
218
+ return _chunkGD46HVRWcjs.followSystemAppearance.call(void 0,
219
219
  _optionalChain([theme, 'optionalAccess', _7 => _7.mode]),
220
220
  () => setAppKitTheme(appKitReact.modal, theme)
221
221
  );
@@ -279,7 +279,7 @@ function useReownWalletSession() {
279
279
  await switchChainAsync({ chainId });
280
280
  }
281
281
  } catch (err) {
282
- if (_chunkKAQ6DCDXcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
282
+ if (_chunkGD46HVRWcjs.isUnsupportedChainSwitchError.call(void 0, err)) {
283
283
  throw new Error(
284
284
  `Switch to ${chainDisplayName(chainId)} in your wallet to continue`
285
285
  );
@@ -292,7 +292,7 @@ function useReownWalletSession() {
292
292
 
293
293
  // src/DepositModalReown.tsx
294
294
 
295
- var [appKitReact2, , , , solanaAdapterReact] = _chunk752QB4H7cjs.getReownDependencies.call(void 0, );
295
+ var [appKitReact2, , , , solanaAdapterReact] = _chunkQPTTOY2Vcjs.getReownDependencies.call(void 0, );
296
296
  var { useAppKitProvider } = appKitReact2;
297
297
  var { useAppKitConnection } = solanaAdapterReact;
298
298
  function DepositModalWithReown(props) {
@@ -314,7 +314,7 @@ function DepositModalWithReown(props) {
314
314
  reown.disconnect();
315
315
  }, [reown.disconnect]);
316
316
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
317
- _chunk752QB4H7cjs.DepositModalInner,
317
+ _chunkQPTTOY2Vcjs.DepositModalInner,
318
318
  {
319
319
  ...props,
320
320
  walletSession: reownWithSolana,
@@ -0,0 +1,11 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkY57VXU3Mcjs = require('./chunk-Y57VXU3M.cjs');
5
+ require('./chunk-GD46HVRW.cjs');
6
+ require('./chunk-DXKYZYL6.cjs');
7
+ require('./chunk-OY5N3E6L.cjs');
8
+
9
+
10
+
11
+ exports.WithdrawModal = _chunkY57VXU3Mcjs.WithdrawModal; exports.buildWithdrawAnalyticsSessionProperties = _chunkY57VXU3Mcjs.buildWithdrawAnalyticsSessionProperties;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WithdrawModal,
3
3
  buildWithdrawAnalyticsSessionProperties
4
- } from "./chunk-Y7ZPE2QY.mjs";
5
- import "./chunk-XCJI72KO.mjs";
6
- import "./chunk-AIVLOYKS.mjs";
4
+ } from "./chunk-BCHDJM6P.mjs";
5
+ import "./chunk-KLEQVOFY.mjs";
6
+ import "./chunk-5C2AONCF.mjs";
7
7
  import "./chunk-EAGMY3QE.mjs";
8
8
  export {
9
9
  WithdrawModal,
@@ -1,5 +1,5 @@
1
1
  // src/core/version.ts
2
- var MODAL_VERSION = "0.0.0-dev-20260903121921";
2
+ var MODAL_VERSION = "0.0.0-dev-20260904121530";
3
3
  var SERVICE_HEADERS = {
4
4
  "Content-Type": "application/json",
5
5
  "x-deposit-modal-version": MODAL_VERSION
@@ -44,7 +44,7 @@ import {
44
44
  useTokenPrices,
45
45
  useWithdrawAnalyticsEmitter,
46
46
  warnRemovedProps
47
- } from "./chunk-XCJI72KO.mjs";
47
+ } from "./chunk-KLEQVOFY.mjs";
48
48
  import {
49
49
  NATIVE_TOKEN_ADDRESS,
50
50
  getChainIcon,
@@ -49,6 +49,7 @@ import {
49
49
  debugLog,
50
50
  failureMessageForEvent,
51
51
  fetchTokenPriceUsd,
52
+ formatExpectedDuration,
52
53
  formatQuotedReceive,
53
54
  formatReceiveEstimate,
54
55
  formatTokenAmount,
@@ -86,7 +87,7 @@ import {
86
87
  useRpcUrls,
87
88
  useStableRpcUrls,
88
89
  warnRemovedProps
89
- } from "./chunk-XCJI72KO.mjs";
90
+ } from "./chunk-KLEQVOFY.mjs";
90
91
  import {
91
92
  MULTICALL3_ADDRESS,
92
93
  POLYMARKET_COLLATERAL_OFFRAMP_ADDRESS,
@@ -1722,7 +1723,8 @@ function ConfirmStep({
1722
1723
  if (estimate !== void 0) return estimate;
1723
1724
  return targetSymbol;
1724
1725
  })();
1725
- const estimatedTimeDisplay = quote && Number.isFinite(quote.estimatedFillTimeSeconds) ? quote.estimatedFillTimeSeconds < 60 ? "< 1 min" : `~${Math.round(quote.estimatedFillTimeSeconds / 60)} min` : estimatedTime;
1726
+ const servedExpectedSeconds = quote?.timing?.expectedSeconds ?? (quote && Number.isFinite(quote.estimatedFillTimeSeconds) ? quote.estimatedFillTimeSeconds : void 0);
1727
+ const estimatedTimeDisplay = servedExpectedSeconds !== void 0 ? formatExpectedDuration(servedExpectedSeconds) : estimatedTime;
1726
1728
  useEffect4(() => {
1727
1729
  if (chainMismatch && switchChain && !hasAttemptedSwitch.current) {
1728
1730
  hasAttemptedSwitch.current = true;
@@ -2095,7 +2097,8 @@ function QrReviewStep({
2095
2097
  });
2096
2098
  return estimate ?? targetSymbol;
2097
2099
  })();
2098
- const estimatedTime = quote.value && Number.isFinite(quote.value.estimatedFillTimeSeconds) ? quote.value.estimatedFillTimeSeconds < 60 ? "< 1 min" : `~${Math.round(quote.value.estimatedFillTimeSeconds / 60)} min` : quote.state === "loading" ? "\u2026" : "\u2014";
2100
+ const expectedSeconds = quote.value?.timing?.expectedSeconds ?? (quote.value && Number.isFinite(quote.value.estimatedFillTimeSeconds) ? quote.value.estimatedFillTimeSeconds : void 0);
2101
+ const estimatedTime = expectedSeconds !== void 0 ? formatExpectedDuration(expectedSeconds) : quote.state === "loading" ? "\u2026" : "\u2014";
2099
2102
  const { display: quotedFee, struck } = quoteFeeRow(quote.value?.fees);
2100
2103
  const feeDisplay = quote.state === "unavailable" ? "\u2014" : quotedFee;
2101
2104
  return /* @__PURE__ */ jsxs9("div", { className: "rs-screen", children: [
@@ -9643,7 +9646,7 @@ function DepositFlow({
9643
9646
  import { jsx as jsx29, jsxs as jsxs24 } from "react/jsx-runtime";
9644
9647
  var ReownDepositInner = lazy2(async () => {
9645
9648
  await loadReownDependencies();
9646
- const module = await import("./DepositModalReown-GNDZYMRV.mjs");
9649
+ const module = await import("./DepositModalReown-T2T64DJ2.mjs");
9647
9650
  return { default: module.DepositModalReown };
9648
9651
  });
9649
9652
  function buildDepositAnalyticsSessionProperties({
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }// src/core/version.ts
2
- var MODAL_VERSION = "0.0.0-dev-20260903121921";
2
+ var MODAL_VERSION = "0.0.0-dev-20260904121530";
3
3
  var SERVICE_HEADERS = {
4
4
  "Content-Type": "application/json",
5
5
  "x-deposit-modal-version": MODAL_VERSION