@rhinestone/deposit-modal 0.20.1 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -17
- package/dist/{BankOnrampStep-4D24HVHV.mjs → BankOnrampStep-JTU7WS5R.mjs} +22 -12
- package/dist/{BankOnrampStep-3SNUX6V2.cjs → BankOnrampStep-QCPISCAQ.cjs} +34 -24
- package/dist/{DepositModalReown-SYQ2SCHC.mjs → DepositModalReown-FJBSF4VL.mjs} +5 -3
- package/dist/{DepositModalReown-7EHOJTFW.cjs → DepositModalReown-QJ6O2FWY.cjs} +18 -16
- package/dist/{WithdrawModal-LXDIT4UV.mjs → WithdrawModal-CB7RNEPI.mjs} +3 -3
- package/dist/WithdrawModal-E2BTWJV7.cjs +12 -0
- package/dist/{chunk-ZOJMB5TZ.mjs → chunk-2D3J53PX.mjs} +1 -1
- package/dist/{chunk-KXSU24RU.cjs → chunk-4O2UGFFT.cjs} +71 -62
- package/dist/{chunk-IPKT3FU6.mjs → chunk-7CHQA2OZ.mjs} +1 -1
- package/dist/chunk-ADEWTBSN.cjs +19 -0
- package/dist/{chunk-O5OW4S7L.cjs → chunk-AV3SA7TW.cjs} +3 -3
- package/dist/{chunk-FW7ZMXQS.mjs → chunk-B2LUWNFX.mjs} +179 -96
- package/dist/{chunk-PVFEZ3UG.cjs → chunk-CAIRS4LK.cjs} +449 -366
- package/dist/{chunk-LVMNNMOZ.cjs → chunk-CG3JKPUF.cjs} +2 -2
- package/dist/{chunk-JPX4MEHV.mjs → chunk-CXEQFRX4.mjs} +1 -1
- package/dist/chunk-PP4QE32S.mjs +19 -0
- package/dist/{chunk-YQCRXJIL.mjs → chunk-PZIKRYMO.mjs} +1 -1
- package/dist/{chunk-CIVFT5KR.cjs → chunk-U7NYYT4Q.cjs} +58 -58
- package/dist/{chunk-OZPMRTW3.mjs → chunk-UNXUOV3F.mjs} +39 -30
- package/dist/{chunk-D3R3O4CY.cjs → chunk-VQAV6ESI.cjs} +1 -1
- package/dist/{chunk-EJDBIWNH.mjs → chunk-WK2ELRL3.mjs} +5 -16
- package/dist/{chunk-IPHKBBUV.cjs → chunk-X425VJFY.cjs} +10 -21
- package/dist/compliance.cjs +4 -4
- package/dist/compliance.mjs +3 -3
- package/dist/constants.cjs +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/deposit.cjs +6 -4
- package/dist/deposit.d.cts +2 -2
- package/dist/deposit.d.ts +2 -2
- package/dist/deposit.mjs +5 -3
- package/dist/embed.cjs +16 -14
- package/dist/embed.d.cts +1 -1
- package/dist/embed.d.ts +1 -1
- package/dist/embed.mjs +6 -4
- package/dist/index.cjs +7 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +6 -4
- package/dist/onramp.cjs +5 -4
- package/dist/onramp.mjs +4 -3
- package/dist/server.cjs +12 -8
- package/dist/server.mjs +11 -7
- package/dist/{types-BEEMfNi2.d.cts → types-BrxDZNEr.d.cts} +20 -10
- package/dist/{types-DQDUqzsZ.d.ts → types-DCUB4DY8.d.ts} +20 -10
- package/dist/withdraw.cjs +4 -4
- package/dist/withdraw.d.cts +2 -2
- package/dist/withdraw.d.ts +2 -2
- package/dist/withdraw.mjs +3 -3
- package/package.json +3 -3
- package/dist/WithdrawModal-LLJLEYXZ.cjs +0 -12
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
ArrowUpRightIcon,
|
|
4
4
|
BankIcon,
|
|
5
5
|
BodyHeader,
|
|
6
|
+
CardIcon,
|
|
6
7
|
CheckIcon,
|
|
7
8
|
ChevronDownIcon,
|
|
8
9
|
ChevronLeftIcon,
|
|
@@ -45,7 +46,7 @@ import {
|
|
|
45
46
|
import {
|
|
46
47
|
MODAL_VERSION,
|
|
47
48
|
serviceHeaders
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-2D3J53PX.mjs";
|
|
49
50
|
|
|
50
51
|
// src/components/ui/Modal.tsx
|
|
51
52
|
import {
|
|
@@ -3925,7 +3926,7 @@ function PoweredBy() {
|
|
|
3925
3926
|
}
|
|
3926
3927
|
PoweredBy.displayName = "PoweredBy";
|
|
3927
3928
|
|
|
3928
|
-
// src/components/history/
|
|
3929
|
+
// src/components/history/OrderCard.tsx
|
|
3929
3930
|
import { useId, useState as useState3 } from "react";
|
|
3930
3931
|
|
|
3931
3932
|
// src/components/history/HistoryTransactionLink.tsx
|
|
@@ -4032,7 +4033,7 @@ var BANK_ONRAMP_COPY = {
|
|
|
4032
4033
|
}
|
|
4033
4034
|
};
|
|
4034
4035
|
|
|
4035
|
-
// src/components/history/
|
|
4036
|
+
// src/components/history/OrderCard.tsx
|
|
4036
4037
|
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
4037
4038
|
function bankSupportHref(value) {
|
|
4038
4039
|
if (!value) return void 0;
|
|
@@ -4043,7 +4044,7 @@ function bankSupportHref(value) {
|
|
|
4043
4044
|
return void 0;
|
|
4044
4045
|
}
|
|
4045
4046
|
}
|
|
4046
|
-
function
|
|
4047
|
+
function OrderCard({
|
|
4047
4048
|
order,
|
|
4048
4049
|
supportUrl,
|
|
4049
4050
|
children,
|
|
@@ -4055,7 +4056,12 @@ function BankOrderCard({
|
|
|
4055
4056
|
const subFee = [order.stages.conversion, order.stages.delivery].some(
|
|
4056
4057
|
(stage) => stage.status === "failed" && stage.reason === "sub_fee"
|
|
4057
4058
|
);
|
|
4058
|
-
const
|
|
4059
|
+
const exchange = order.rail.kind === "exchange";
|
|
4060
|
+
const bank = order.provider === "noah" || order.rail.kind === "fiat" && order.rail.method === "bank-transfer";
|
|
4061
|
+
const title = exchange ? "Exchange transfer" : bank ? "Bank transfer" : "Card payment";
|
|
4062
|
+
const Icon = exchange ? CoinsIcon : bank ? BankIcon : CardIcon;
|
|
4063
|
+
const noun = bank ? "bank transfer" : "payment";
|
|
4064
|
+
const support = order.provider === "noah" ? bankSupportHref(supportUrl) : void 0;
|
|
4059
4065
|
const { delivery } = order.stages;
|
|
4060
4066
|
const deliveryTxHash = "txHash" in delivery ? delivery.txHash : void 0;
|
|
4061
4067
|
const needsHelp = ["failed", "returned", "on_hold"].includes(view.progress);
|
|
@@ -4087,7 +4093,7 @@ function BankOrderCard({
|
|
|
4087
4093
|
month: "short",
|
|
4088
4094
|
year: "numeric"
|
|
4089
4095
|
});
|
|
4090
|
-
const description = subFee ? "The transfer was consumed by the provider\u2019s fees. No crypto was delivered." : label === "Failed" && deposit ? "Crypto arrived, but settlement to your destination could not be completed." : label === "Completed" ?
|
|
4096
|
+
const description = subFee ? "The transfer was consumed by the provider\u2019s fees. No crypto was delivered." : label === "Failed" && deposit ? "Crypto arrived, but settlement to your destination could not be completed." : label === "Completed" ? `Your ${noun} has completed and the crypto reached its destination.` : label === "Settled" ? `Your ${noun} has settled into crypto. Final delivery is being confirmed.` : label === "Settling" ? `Your ${noun} is being settled into crypto.` : label === "Detected" ? `Your ${noun} was detected and is awaiting settlement.` : order.provider === "noah" || label === "Under review" ? BANK_ONRAMP_COPY[view.progress].subtitle : label === "Returned" ? "The payment was refunded." : "The payment could not be completed. No crypto was delivered.";
|
|
4091
4097
|
return /* @__PURE__ */ jsxs6(
|
|
4092
4098
|
"div",
|
|
4093
4099
|
{
|
|
@@ -4102,9 +4108,9 @@ function BankOrderCard({
|
|
|
4102
4108
|
"aria-expanded": expanded,
|
|
4103
4109
|
"aria-controls": panelId,
|
|
4104
4110
|
children: /* @__PURE__ */ jsxs6("div", { className: "rs-history-card-row", children: [
|
|
4105
|
-
/* @__PURE__ */ jsx11("div", { className: "rs-history-card-icons", children: /* @__PURE__ */ jsx11("span", { className: "rs-history-card-token", children: /* @__PURE__ */ jsx11(
|
|
4111
|
+
/* @__PURE__ */ jsx11("div", { className: "rs-history-card-icons", children: /* @__PURE__ */ jsx11("span", { className: "rs-history-card-token", children: /* @__PURE__ */ jsx11(Icon, {}) }) }),
|
|
4106
4112
|
/* @__PURE__ */ jsxs6("div", { className: "rs-history-card-text", children: [
|
|
4107
|
-
/* @__PURE__ */ jsx11("span", { className: "rs-history-card-title", children:
|
|
4113
|
+
/* @__PURE__ */ jsx11("span", { className: "rs-history-card-title", children: title }),
|
|
4108
4114
|
/* @__PURE__ */ jsx11("time", { className: "rs-history-card-date", dateTime: order.createdAt, children: date })
|
|
4109
4115
|
] }),
|
|
4110
4116
|
/* @__PURE__ */ jsxs6("div", { className: "rs-history-card-side", children: [
|
|
@@ -4367,7 +4373,7 @@ function formatAmount(rawAmount, decimals) {
|
|
|
4367
4373
|
}
|
|
4368
4374
|
}
|
|
4369
4375
|
function DepositHistoryPanel({
|
|
4370
|
-
|
|
4376
|
+
orderHistory,
|
|
4371
4377
|
bankSupportUrl,
|
|
4372
4378
|
deposits,
|
|
4373
4379
|
isLoading,
|
|
@@ -4495,7 +4501,7 @@ function DepositHistoryPanel({
|
|
|
4495
4501
|
]
|
|
4496
4502
|
}
|
|
4497
4503
|
),
|
|
4498
|
-
(isLoading ||
|
|
4504
|
+
(isLoading || orderHistory?.loading) && deposits.length === 0 && !orderHistory?.orders.length && /* @__PURE__ */ jsxs7("div", { className: "rs-history-empty", children: [
|
|
4499
4505
|
/* @__PURE__ */ jsx13("span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ jsx13(HistoryIcon, {}) }),
|
|
4500
4506
|
/* @__PURE__ */ jsxs7("div", { className: "rs-history-empty-text", children: [
|
|
4501
4507
|
/* @__PURE__ */ jsx13(Spinner, { className: "rs-spinner--sm" }),
|
|
@@ -4509,18 +4515,18 @@ function DepositHistoryPanel({
|
|
|
4509
4515
|
/* @__PURE__ */ jsx13("span", { className: "rs-history-empty-hint", children: error })
|
|
4510
4516
|
] })
|
|
4511
4517
|
] }),
|
|
4512
|
-
|
|
4513
|
-
!isLoading && !error && !
|
|
4518
|
+
orderHistory?.error && /* @__PURE__ */ jsx13("p", { role: "status", children: orderHistory.error }),
|
|
4519
|
+
!isLoading && !error && !orderHistory?.loading && !orderHistory?.error && !orderHistory?.orders.length && visibleDeposits.length === 0 && /* @__PURE__ */ jsxs7("div", { className: "rs-history-empty", children: [
|
|
4514
4520
|
/* @__PURE__ */ jsx13("span", { className: "rs-history-empty-glyph", "aria-hidden": "true", children: /* @__PURE__ */ jsx13(HistoryIcon, {}) }),
|
|
4515
4521
|
/* @__PURE__ */ jsxs7("div", { className: "rs-history-empty-text", children: [
|
|
4516
4522
|
/* @__PURE__ */ jsx13("span", { className: "rs-history-empty-title", children: "No deposits yet" }),
|
|
4517
4523
|
/* @__PURE__ */ jsx13("span", { className: "rs-history-empty-hint", children: "Your deposit history will appear here" })
|
|
4518
4524
|
] })
|
|
4519
4525
|
] }),
|
|
4520
|
-
(visibleDeposits.length > 0 || Boolean(
|
|
4526
|
+
(visibleDeposits.length > 0 || Boolean(orderHistory?.orders.length)) && /* @__PURE__ */ jsxs7("div", { className: "rs-history-list", children: [
|
|
4521
4527
|
[
|
|
4522
4528
|
...visibleDeposits.filter(
|
|
4523
|
-
(deposit) => !
|
|
4529
|
+
(deposit) => !orderHistory?.orders.some(
|
|
4524
4530
|
(order) => order.stages.delivery.status === "completed" && order.stages.delivery.depositId === deposit.id
|
|
4525
4531
|
)
|
|
4526
4532
|
).map((deposit, i) => ({
|
|
@@ -4539,15 +4545,15 @@ function DepositHistoryPanel({
|
|
|
4539
4545
|
deposit.txHash || i
|
|
4540
4546
|
)
|
|
4541
4547
|
})),
|
|
4542
|
-
...(
|
|
4548
|
+
...(orderHistory?.orders ?? []).map((order) => {
|
|
4543
4549
|
const delivery = order.stages.delivery;
|
|
4544
4550
|
const linked = delivery.status === "completed" ? visibleDeposits.find(
|
|
4545
4551
|
(deposit) => deposit.id === delivery.depositId
|
|
4546
4552
|
) : void 0;
|
|
4547
4553
|
return {
|
|
4548
|
-
id: `
|
|
4554
|
+
id: `order:${order.id}`,
|
|
4549
4555
|
createdAt: order.createdAt,
|
|
4550
|
-
content: /* @__PURE__ */ jsx13(
|
|
4556
|
+
content: /* @__PURE__ */ jsx13(OrderCard, { order, deposit: linked, supportUrl: bankSupportUrl, children: linked && normalizeStatus(linked.status) === "failed" && /* @__PURE__ */ jsx13(
|
|
4551
4557
|
HistoryCard,
|
|
4552
4558
|
{
|
|
4553
4559
|
deposit: linked,
|
|
@@ -4561,14 +4567,14 @@ function DepositHistoryPanel({
|
|
|
4561
4567
|
};
|
|
4562
4568
|
})
|
|
4563
4569
|
].sort((a, b) => b.createdAt.localeCompare(a.createdAt)).map((entry) => /* @__PURE__ */ jsx13("div", { children: entry.content }, entry.id)),
|
|
4564
|
-
|
|
4570
|
+
orderHistory?.hasMore && /* @__PURE__ */ jsx13(
|
|
4565
4571
|
"button",
|
|
4566
4572
|
{
|
|
4567
4573
|
type: "button",
|
|
4568
4574
|
className: "rs-history-load-more",
|
|
4569
|
-
disabled:
|
|
4570
|
-
onClick:
|
|
4571
|
-
children: "Load older
|
|
4575
|
+
disabled: orderHistory.loading,
|
|
4576
|
+
onClick: orderHistory.loadMore,
|
|
4577
|
+
children: "Load older payments"
|
|
4572
4578
|
}
|
|
4573
4579
|
),
|
|
4574
4580
|
hasMore && /* @__PURE__ */ jsx13(
|
|
@@ -6063,7 +6069,7 @@ HistoryRecoveryFlow.displayName = "HistoryRecoveryFlow";
|
|
|
6063
6069
|
import { Fragment as Fragment4, jsx as jsx22, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
6064
6070
|
function HistoryOverlay({
|
|
6065
6071
|
controller,
|
|
6066
|
-
|
|
6072
|
+
orderHistory,
|
|
6067
6073
|
bankSupportUrl,
|
|
6068
6074
|
backLabel,
|
|
6069
6075
|
title,
|
|
@@ -6206,7 +6212,7 @@ function HistoryOverlay({
|
|
|
6206
6212
|
/* @__PURE__ */ jsx22(
|
|
6207
6213
|
DepositHistoryPanel,
|
|
6208
6214
|
{
|
|
6209
|
-
|
|
6215
|
+
orderHistory,
|
|
6210
6216
|
bankSupportUrl,
|
|
6211
6217
|
deposits: controller.deposits,
|
|
6212
6218
|
isLoading: controller.isLoading,
|
|
@@ -6630,6 +6636,7 @@ var MANAGED_ACCOUNT_REMOVALS = {
|
|
|
6630
6636
|
};
|
|
6631
6637
|
var REMOVED_PROPS = {
|
|
6632
6638
|
DepositModal: {
|
|
6639
|
+
bankOnramp: "renamed to `virtualAccountOnramp`; its session is the `getCustomerSession` prop.",
|
|
6633
6640
|
...MANAGED_ACCOUNT_REMOVALS,
|
|
6634
6641
|
dappImports: "renamed to `assetMigrations`.",
|
|
6635
6642
|
initialDappImport: "renamed to `initialAssetMigration`.",
|
|
@@ -6648,7 +6655,8 @@ var REMOVED_UI_CONFIG_KEYS = {
|
|
|
6648
6655
|
checkLiquidity: "removed \u2014 the modal no longer surfaces a liquidity cap. Route capacity is enforced when the deposit is processed.",
|
|
6649
6656
|
showHistoryButton: "removed \u2014 deposit history is always offered, from the modal's home screen. There is no way to hide it."
|
|
6650
6657
|
};
|
|
6651
|
-
var
|
|
6658
|
+
var REMOVED_VIRTUAL_ACCOUNT_KEYS = {
|
|
6659
|
+
getSession: "use the `getCustomerSession` prop.",
|
|
6652
6660
|
currency: "removed \u2014 the currency follows the residence the customer declares at verification: EUR inside SEPA, USD elsewhere."
|
|
6653
6661
|
};
|
|
6654
6662
|
var warned = /* @__PURE__ */ new Set();
|
|
@@ -6668,14 +6676,14 @@ function warnRemovedProps(component, props) {
|
|
|
6668
6676
|
warnOnce(component, key, table[key]);
|
|
6669
6677
|
}
|
|
6670
6678
|
}
|
|
6671
|
-
const
|
|
6672
|
-
if (
|
|
6673
|
-
for (const key of Object.keys(
|
|
6674
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
6679
|
+
const virtualAccountOnramp = props.virtualAccountOnramp;
|
|
6680
|
+
if (virtualAccountOnramp && typeof virtualAccountOnramp === "object") {
|
|
6681
|
+
for (const key of Object.keys(REMOVED_VIRTUAL_ACCOUNT_KEYS)) {
|
|
6682
|
+
if (Object.prototype.hasOwnProperty.call(virtualAccountOnramp, key)) {
|
|
6675
6683
|
warnOnce(
|
|
6676
6684
|
component,
|
|
6677
|
-
`
|
|
6678
|
-
|
|
6685
|
+
`virtualAccountOnramp.${key}`,
|
|
6686
|
+
REMOVED_VIRTUAL_ACCOUNT_KEYS[key]
|
|
6679
6687
|
);
|
|
6680
6688
|
}
|
|
6681
6689
|
}
|
|
@@ -8551,6 +8559,7 @@ export {
|
|
|
8551
8559
|
SOLANA_TOKENS,
|
|
8552
8560
|
resolveSolanaToken,
|
|
8553
8561
|
isNativeSol,
|
|
8562
|
+
hostedOrderState,
|
|
8554
8563
|
hostedOrderStateFromSwapped,
|
|
8555
8564
|
mergeHostedOrderState,
|
|
8556
8565
|
hasReached,
|
|
@@ -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.
|
|
2
|
+
var MODAL_VERSION = "0.21.0";
|
|
3
3
|
var SERVICE_HEADERS = {
|
|
4
4
|
"Content-Type": "application/json",
|
|
5
5
|
"x-deposit-modal-version": MODAL_VERSION
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
rampQuery,
|
|
3
|
+
rampResourceId
|
|
4
|
+
} from "./chunk-PP4QE32S.mjs";
|
|
1
5
|
import {
|
|
2
6
|
createBearerTransport
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
|
|
5
|
-
// src/core/ramp-utils.ts
|
|
6
|
-
function rampQuery(value) {
|
|
7
|
-
return new URLSearchParams(
|
|
8
|
-
Object.entries(value).filter(([, value2]) => value2 !== void 0).map(([key, value2]) => [key, String(value2)])
|
|
9
|
-
).toString();
|
|
10
|
-
}
|
|
11
|
-
function rampResourceId(value) {
|
|
12
|
-
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(
|
|
13
|
-
value
|
|
14
|
-
)) {
|
|
15
|
-
throw new Error("Invalid ramp resource ID");
|
|
16
|
-
}
|
|
17
|
-
return value;
|
|
18
|
-
}
|
|
7
|
+
} from "./chunk-PZIKRYMO.mjs";
|
|
19
8
|
|
|
20
9
|
// src/core/onramp-service.ts
|
|
21
10
|
var RAIL_TYPES = ["BankAch", "BankFedwire", "BankSwift", "BankSepa"];
|
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var _chunkLVMNNMOZcjs = require('./chunk-LVMNNMOZ.cjs');
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
).toString();
|
|
10
|
-
}
|
|
11
|
-
function rampResourceId(value) {
|
|
12
|
-
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(
|
|
13
|
-
value
|
|
14
|
-
)) {
|
|
15
|
-
throw new Error("Invalid ramp resource ID");
|
|
16
|
-
}
|
|
17
|
-
return value;
|
|
18
|
-
}
|
|
4
|
+
var _chunkADEWTBSNcjs = require('./chunk-ADEWTBSN.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkCG3JKPUFcjs = require('./chunk-CG3JKPUF.cjs');
|
|
19
8
|
|
|
20
9
|
// src/core/onramp-service.ts
|
|
21
10
|
var RAIL_TYPES = ["BankAch", "BankFedwire", "BankSwift", "BankSepa"];
|
|
@@ -76,23 +65,23 @@ function projectBankDetails(input) {
|
|
|
76
65
|
};
|
|
77
66
|
}
|
|
78
67
|
function createOnrampService(options) {
|
|
79
|
-
const request =
|
|
68
|
+
const request = _chunkCG3JKPUFcjs.createBearerTransport.call(void 0, options);
|
|
80
69
|
return {
|
|
81
70
|
// Named fields only, never a spread: this client is Noah's, whatever a
|
|
82
71
|
// caller passes.
|
|
83
72
|
getOptions: ({ currency } = {}) => request(
|
|
84
|
-
`/onramp/options?${rampQuery({ provider: "noah", currency })}`
|
|
73
|
+
`/onramp/options?${_chunkADEWTBSNcjs.rampQuery.call(void 0, { provider: "noah", currency })}`
|
|
85
74
|
),
|
|
86
75
|
createAccount: ({ currency, optionId }) => request("/onramp/accounts", {
|
|
87
76
|
provider: "noah",
|
|
88
77
|
currency,
|
|
89
78
|
optionId
|
|
90
79
|
}),
|
|
91
|
-
listAccounts: (page = {}) => request(`/onramp/accounts?${rampQuery(page)}`),
|
|
92
|
-
getAccount: (id) => request(`/onramp/accounts/${rampResourceId(id)}`),
|
|
80
|
+
listAccounts: (page = {}) => request(`/onramp/accounts?${_chunkADEWTBSNcjs.rampQuery.call(void 0, page)}`),
|
|
81
|
+
getAccount: (id) => request(`/onramp/accounts/${_chunkADEWTBSNcjs.rampResourceId.call(void 0, id)}`),
|
|
93
82
|
getAccountDetails: async (id) => {
|
|
94
83
|
const result = await request(
|
|
95
|
-
`/onramp/accounts/${rampResourceId(id)}/details`
|
|
84
|
+
`/onramp/accounts/${_chunkADEWTBSNcjs.rampResourceId.call(void 0, id)}/details`
|
|
96
85
|
);
|
|
97
86
|
const bankDetails = result ? projectBankDetails(result.bankDetails) : null;
|
|
98
87
|
if (!bankDetails) throw new Error("Invalid bank details response");
|
|
@@ -103,7 +92,7 @@ function createOnrampService(options) {
|
|
|
103
92
|
* `limit`, so another provider's orders can never crowd one out of a page.
|
|
104
93
|
*/
|
|
105
94
|
listOrders: ({ cursor, limit } = {}) => request(
|
|
106
|
-
`/onramp/orders?${rampQuery({ provider: "noah", cursor, limit })}`
|
|
95
|
+
`/onramp/orders?${_chunkADEWTBSNcjs.rampQuery.call(void 0, { provider: "noah", cursor, limit })}`
|
|
107
96
|
)
|
|
108
97
|
};
|
|
109
98
|
}
|
package/dist/compliance.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkAV3SA7TWcjs = require('./chunk-AV3SA7TW.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var _chunkCG3JKPUFcjs = require('./chunk-CG3JKPUF.cjs');
|
|
7
|
+
require('./chunk-VQAV6ESI.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
exports.ScopedRequestError =
|
|
11
|
+
exports.ScopedRequestError = _chunkCG3JKPUFcjs.ScopedRequestError; exports.getComplianceStatus = _chunkAV3SA7TWcjs.getComplianceStatus;
|
package/dist/compliance.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getComplianceStatus
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CXEQFRX4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ScopedRequestError
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-PZIKRYMO.mjs";
|
|
7
|
+
import "./chunk-2D3J53PX.mjs";
|
|
8
8
|
export {
|
|
9
9
|
ScopedRequestError,
|
|
10
10
|
getComplianceStatus
|
package/dist/constants.cjs
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
var _chunkFKJ6EJHHcjs = require('./chunk-FKJ6EJHH.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkVQAV6ESIcjs = require('./chunk-VQAV6ESI.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -31,4 +31,4 @@ var _chunkD3R3O4CYcjs = require('./chunk-D3R3O4CY.cjs');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
exports.HYPERCORE_CHAIN_ID = _chunkFKJ6EJHHcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkFKJ6EJHHcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkFKJ6EJHHcjs.HYPERCORE_USDC_ADDRESS; exports.MODAL_VERSION =
|
|
34
|
+
exports.HYPERCORE_CHAIN_ID = _chunkFKJ6EJHHcjs.HYPERCORE_CHAIN_ID; exports.HYPERCORE_SPOT_CAIP2 = _chunkFKJ6EJHHcjs.HYPERCORE_SPOT_CAIP2; exports.HYPERCORE_USDC_ADDRESS = _chunkFKJ6EJHHcjs.HYPERCORE_USDC_ADDRESS; exports.MODAL_VERSION = _chunkVQAV6ESIcjs.MODAL_VERSION; exports.NATIVE_TOKEN_ADDRESS = _chunkFKJ6EJHHcjs.NATIVE_TOKEN_ADDRESS; exports.SUPPORTED_CHAIN_IDS = _chunkFKJ6EJHHcjs.SUPPORTED_CHAIN_IDS; exports.getChainBadge = _chunkFKJ6EJHHcjs.getChainBadge; exports.getChainIcon = _chunkFKJ6EJHHcjs.getChainIcon; exports.getChainId = _chunkFKJ6EJHHcjs.getChainId; exports.getChainName = _chunkFKJ6EJHHcjs.getChainName; exports.getExplorerName = _chunkFKJ6EJHHcjs.getExplorerName; exports.getExplorerTxUrl = _chunkFKJ6EJHHcjs.getExplorerTxUrl; exports.getExplorerUrl = _chunkFKJ6EJHHcjs.getExplorerUrl; exports.getSupportedChainIds = _chunkFKJ6EJHHcjs.getSupportedChainIds;
|
package/dist/constants.d.cts
CHANGED
|
@@ -2,6 +2,6 @@ export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, g as getChainBadge
|
|
|
2
2
|
export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS } from './caip-nwFFL46o.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
|
|
5
|
-
declare const MODAL_VERSION = "0.
|
|
5
|
+
declare const MODAL_VERSION = "0.21.0";
|
|
6
6
|
|
|
7
7
|
export { MODAL_VERSION };
|
package/dist/constants.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export { N as NATIVE_TOKEN_ADDRESS, S as SUPPORTED_CHAIN_IDS, g as getChainBadge
|
|
|
2
2
|
export { H as HYPERCORE_CHAIN_ID, a as HYPERCORE_SPOT_CAIP2, b as HYPERCORE_USDC_ADDRESS } from './caip-nwFFL46o.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
|
|
5
|
-
declare const MODAL_VERSION = "0.
|
|
5
|
+
declare const MODAL_VERSION = "0.21.0";
|
|
6
6
|
|
|
7
7
|
export { MODAL_VERSION };
|
package/dist/constants.mjs
CHANGED
package/dist/deposit.cjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkCAIRS4LKcjs = require('./chunk-CAIRS4LK.cjs');
|
|
4
4
|
require('./chunk-FVJKUTHF.cjs');
|
|
5
|
-
require('./chunk-
|
|
5
|
+
require('./chunk-4O2UGFFT.cjs');
|
|
6
6
|
require('./chunk-G264OM23.cjs');
|
|
7
|
+
require('./chunk-ADEWTBSN.cjs');
|
|
8
|
+
require('./chunk-CG3JKPUF.cjs');
|
|
7
9
|
require('./chunk-FKJ6EJHH.cjs');
|
|
8
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-VQAV6ESI.cjs');
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
exports.DepositModal =
|
|
13
|
+
exports.DepositModal = _chunkCAIRS4LKcjs.DepositModal;
|
package/dist/deposit.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { P as DepositModalProps } from './types-
|
|
3
|
-
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption,
|
|
2
|
+
import { P as DepositModalProps } from './types-BrxDZNEr.cjs';
|
|
3
|
+
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, q as CustomerSessionRequest, D as DepositAnalyticsAbandonmentReason, r as DepositAnalyticsCloseSource, s as DepositAnalyticsCorrelator, t as DepositAnalyticsEvent, u as DepositAnalyticsEventPayload, v as DepositAnalyticsExchangeStep, w as DepositAnalyticsFailureReason, x as DepositAnalyticsFiatStep, y as DepositAnalyticsMigrationStep, z as DepositAnalyticsSessionProperties, B as DepositAnalyticsSharedStep, E as DepositAnalyticsStep, F as DepositAnalyticsTransferStep, G as DepositAnalyticsUiOutcome, H as DepositAnalyticsWalletStep, I as DepositAssetMigrationMethodIdentifiers, J as DepositCompleteEventData, K as DepositExchangeConnectMethodIdentifiers, L as DepositFailedEventData, M as DepositFiatOnrampMethodIdentifiers, N as DepositFundingMethod, Q as DepositModalTheme, R as DepositModalUIConfig, S as DepositSubmittedEventData, T as DepositTransferHandoffIdentifiers, U as DepositWalletIntegration, V as DepositWalletMethodIdentifiers, W as ErrorEventData, X as FiatMethodsConfig, Y as HistoryAnalyticsBadge, Z as HistoryClaimEntrySource, _ as HistoryStatus, a1 as PaymentConfig, a2 as RecoveryErrorCode, a3 as RpcUrlMap, a4 as SignRecovery, a5 as SignRecoveryPayload, a6 as VirtualAccountOnrampConfig } from './types-BrxDZNEr.cjs';
|
|
4
4
|
export { a as CustomerSession } from './bearer-transport-DZyeDG64.cjs';
|
|
5
5
|
export { R as RampCurrency } from './ramp-types-HYWd7CW0.cjs';
|
|
6
6
|
import './caip-nwFFL46o.cjs';
|
package/dist/deposit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { P as DepositModalProps } from './types-
|
|
3
|
-
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption,
|
|
2
|
+
import { P as DepositModalProps } from './types-DCUB4DY8.js';
|
|
3
|
+
export { A as AnalyticsEventEnvelope, a as AnalyticsIngestFailureEvent, b as AnalyticsIngestFailureReason, c as AnalyticsReasonFamily, d as AssetMigrationsConfig, e as AssetOption, f as ClaimAnalyticsAbandonmentReason, g as ClaimAnalyticsCloseSource, h as ClaimAnalyticsCorrelation, i as ClaimAnalyticsEntrySource, j as ClaimAnalyticsEvent, k as ClaimAnalyticsEventPayload, l as ClaimAnalyticsFailureReason, m as ClaimAnalyticsSessionProperties, n as ClaimAnalyticsStep, o as ClaimAnalyticsUiOutcome, p as ConnectedEventData, q as CustomerSessionRequest, D as DepositAnalyticsAbandonmentReason, r as DepositAnalyticsCloseSource, s as DepositAnalyticsCorrelator, t as DepositAnalyticsEvent, u as DepositAnalyticsEventPayload, v as DepositAnalyticsExchangeStep, w as DepositAnalyticsFailureReason, x as DepositAnalyticsFiatStep, y as DepositAnalyticsMigrationStep, z as DepositAnalyticsSessionProperties, B as DepositAnalyticsSharedStep, E as DepositAnalyticsStep, F as DepositAnalyticsTransferStep, G as DepositAnalyticsUiOutcome, H as DepositAnalyticsWalletStep, I as DepositAssetMigrationMethodIdentifiers, J as DepositCompleteEventData, K as DepositExchangeConnectMethodIdentifiers, L as DepositFailedEventData, M as DepositFiatOnrampMethodIdentifiers, N as DepositFundingMethod, Q as DepositModalTheme, R as DepositModalUIConfig, S as DepositSubmittedEventData, T as DepositTransferHandoffIdentifiers, U as DepositWalletIntegration, V as DepositWalletMethodIdentifiers, W as ErrorEventData, X as FiatMethodsConfig, Y as HistoryAnalyticsBadge, Z as HistoryClaimEntrySource, _ as HistoryStatus, a1 as PaymentConfig, a2 as RecoveryErrorCode, a3 as RpcUrlMap, a4 as SignRecovery, a5 as SignRecoveryPayload, a6 as VirtualAccountOnrampConfig } from './types-DCUB4DY8.js';
|
|
4
4
|
export { a as CustomerSession } from './bearer-transport-DZyeDG64.js';
|
|
5
5
|
export { R as RampCurrency } from './ramp-types-HYWd7CW0.js';
|
|
6
6
|
import './caip-nwFFL46o.js';
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B2LUWNFX.mjs";
|
|
4
4
|
import "./chunk-2FOPO4N5.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-UNXUOV3F.mjs";
|
|
6
6
|
import "./chunk-YY4ZOAH5.mjs";
|
|
7
|
+
import "./chunk-PP4QE32S.mjs";
|
|
8
|
+
import "./chunk-PZIKRYMO.mjs";
|
|
7
9
|
import "./chunk-E7IMWVMN.mjs";
|
|
8
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-2D3J53PX.mjs";
|
|
9
11
|
export {
|
|
10
12
|
DepositModal
|
|
11
13
|
};
|
package/dist/embed.cjs
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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
|
-
var
|
|
3
|
+
var _chunkCAIRS4LKcjs = require('./chunk-CAIRS4LK.cjs');
|
|
4
4
|
require('./chunk-FVJKUTHF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk4O2UGFFTcjs = require('./chunk-4O2UGFFT.cjs');
|
|
9
9
|
require('./chunk-G264OM23.cjs');
|
|
10
|
+
require('./chunk-ADEWTBSN.cjs');
|
|
11
|
+
require('./chunk-CG3JKPUF.cjs');
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
|
|
@@ -14,7 +16,7 @@ var _chunkFKJ6EJHHcjs = require('./chunk-FKJ6EJHH.cjs');
|
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
|
|
17
|
-
var
|
|
19
|
+
var _chunkVQAV6ESIcjs = require('./chunk-VQAV6ESI.cjs');
|
|
18
20
|
|
|
19
21
|
// src/embed.tsx
|
|
20
22
|
var _react = require('react');
|
|
@@ -692,7 +694,7 @@ function assertResultShape(method, result) {
|
|
|
692
694
|
`${method}: ${detail}`
|
|
693
695
|
)
|
|
694
696
|
);
|
|
695
|
-
throw SUBMITTING_WALLET_METHODS.includes(method) ?
|
|
697
|
+
throw SUBMITTING_WALLET_METHODS.includes(method) ? _chunk4O2UGFFTcjs.markSubmissionUncertain.call(void 0, error) : error;
|
|
696
698
|
};
|
|
697
699
|
switch (method) {
|
|
698
700
|
case "eth_sendTransaction":
|
|
@@ -744,7 +746,7 @@ function createBridgedWalletSession(options) {
|
|
|
744
746
|
);
|
|
745
747
|
} catch (error) {
|
|
746
748
|
if (submitting && isBridgeRequestError(error) && error.code === -32603) {
|
|
747
|
-
throw
|
|
749
|
+
throw _chunk4O2UGFFTcjs.markSubmissionUncertain.call(void 0,
|
|
748
750
|
new BridgeRequestError(
|
|
749
751
|
bridgeError(
|
|
750
752
|
BridgeErrorCode.SUBMISSION_UNCERTAIN,
|
|
@@ -755,7 +757,7 @@ function createBridgedWalletSession(options) {
|
|
|
755
757
|
);
|
|
756
758
|
}
|
|
757
759
|
if (submitting && isBridgeCode(error, BridgeErrorCode.SUBMISSION_UNCERTAIN)) {
|
|
758
|
-
throw
|
|
760
|
+
throw _chunk4O2UGFFTcjs.markSubmissionUncertain.call(void 0, error);
|
|
759
761
|
}
|
|
760
762
|
throw error;
|
|
761
763
|
}
|
|
@@ -874,7 +876,7 @@ async function connectToHost(options) {
|
|
|
874
876
|
});
|
|
875
877
|
const params = {
|
|
876
878
|
protocol: PROTOCOL_VERSION,
|
|
877
|
-
modalVersion:
|
|
879
|
+
modalVersion: _chunkVQAV6ESIcjs.MODAL_VERSION
|
|
878
880
|
};
|
|
879
881
|
let raw;
|
|
880
882
|
try {
|
|
@@ -960,12 +962,12 @@ async function requestHostTransfer(transport, params) {
|
|
|
960
962
|
);
|
|
961
963
|
} catch (error) {
|
|
962
964
|
if (error instanceof Error && isBridgeCode(error, BridgeErrorCode.SUBMISSION_UNCERTAIN)) {
|
|
963
|
-
throw
|
|
965
|
+
throw _chunk4O2UGFFTcjs.markSubmissionUncertain.call(void 0, error);
|
|
964
966
|
}
|
|
965
967
|
throw error;
|
|
966
968
|
}
|
|
967
969
|
if (!isTxHash(_optionalChain([result, 'optionalAccess', _25 => _25.txHash]))) {
|
|
968
|
-
throw
|
|
970
|
+
throw _chunk4O2UGFFTcjs.markSubmissionUncertain.call(void 0,
|
|
969
971
|
new Error(
|
|
970
972
|
"The app did not return a transaction hash. Check your activity before trying again."
|
|
971
973
|
)
|
|
@@ -1110,7 +1112,7 @@ var UNKNOWN_SCREEN = "unknown";
|
|
|
1110
1112
|
// src/embed.tsx
|
|
1111
1113
|
var _jsxruntime = require('react/jsx-runtime');
|
|
1112
1114
|
var WithdrawModal = _react.lazy.call(void 0,
|
|
1113
|
-
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModal-
|
|
1115
|
+
() => Promise.resolve().then(() => _interopRequireWildcard(require("./WithdrawModal-E2BTWJV7.cjs"))).then((m) => ({ default: m.WithdrawModal }))
|
|
1114
1116
|
);
|
|
1115
1117
|
function missingField(config, keys) {
|
|
1116
1118
|
const missing = keys.find(
|
|
@@ -1339,11 +1341,11 @@ function DepositEmbed({ target, onFatal }) {
|
|
|
1339
1341
|
_optionalChain([back, 'optionalCall', _33 => _33()]);
|
|
1340
1342
|
return { handled: Boolean(back) };
|
|
1341
1343
|
});
|
|
1342
|
-
|
|
1344
|
+
_chunkVQAV6ESIcjs.setEmbedHost.call(void 0, next.hello.host);
|
|
1343
1345
|
setSession(next);
|
|
1344
1346
|
setChannelScope(next.channelScope);
|
|
1345
1347
|
setConfig(sanitizeConfig(next.hello.config));
|
|
1346
|
-
void
|
|
1348
|
+
void _chunk4O2UGFFTcjs.primeRuntimeChains.call(void 0, next.hello.config.backendUrl).then((result) => {
|
|
1347
1349
|
chains = result;
|
|
1348
1350
|
});
|
|
1349
1351
|
} catch (error) {
|
|
@@ -1353,7 +1355,7 @@ function DepositEmbed({ target, onFatal }) {
|
|
|
1353
1355
|
return () => {
|
|
1354
1356
|
live = false;
|
|
1355
1357
|
_optionalChain([opened, 'optionalAccess', _36 => _36.close, 'call', _37 => _37()]);
|
|
1356
|
-
|
|
1358
|
+
_chunkVQAV6ESIcjs.setEmbedHost.call(void 0, null);
|
|
1357
1359
|
};
|
|
1358
1360
|
}, [target]);
|
|
1359
1361
|
const handleUiState = _react.useCallback.call(void 0,
|
|
@@ -1492,7 +1494,7 @@ function DepositEmbed({ target, onFatal }) {
|
|
|
1492
1494
|
) });
|
|
1493
1495
|
}
|
|
1494
1496
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1495
|
-
|
|
1497
|
+
_chunkCAIRS4LKcjs.DepositModalInner,
|
|
1496
1498
|
{
|
|
1497
1499
|
...toModalProps(ready, canOpenExternally, walletWithheld),
|
|
1498
1500
|
openExternally: canOpenExternally ? openExternally : void 0,
|
package/dist/embed.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { d as TargetChain } from './caip-nwFFL46o.cjs';
|
|
3
|
-
import { a0 as OutputTokenRule, X as FiatMethodsConfig, d as AssetMigrationsConfig, Q as DepositModalTheme, R as DepositModalUIConfig } from './types-
|
|
3
|
+
import { a0 as OutputTokenRule, X as FiatMethodsConfig, d as AssetMigrationsConfig, Q as DepositModalTheme, R as DepositModalUIConfig } from './types-BrxDZNEr.cjs';
|
|
4
4
|
import { WalletClient, PublicClient, Address } from 'viem';
|
|
5
5
|
import { Transaction, Connection } from '@solana/web3.js';
|
|
6
6
|
import './bearer-transport-DZyeDG64.cjs';
|
package/dist/embed.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { d as TargetChain } from './caip-nwFFL46o.js';
|
|
3
|
-
import { a0 as OutputTokenRule, X as FiatMethodsConfig, d as AssetMigrationsConfig, Q as DepositModalTheme, R as DepositModalUIConfig } from './types-
|
|
3
|
+
import { a0 as OutputTokenRule, X as FiatMethodsConfig, d as AssetMigrationsConfig, Q as DepositModalTheme, R as DepositModalUIConfig } from './types-DCUB4DY8.js';
|
|
4
4
|
import { WalletClient, PublicClient, Address } from 'viem';
|
|
5
5
|
import { Transaction, Connection } from '@solana/web3.js';
|
|
6
6
|
import './bearer-transport-DZyeDG64.js';
|
package/dist/embed.mjs
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DepositModalInner
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-B2LUWNFX.mjs";
|
|
4
4
|
import "./chunk-2FOPO4N5.mjs";
|
|
5
5
|
import {
|
|
6
6
|
markSubmissionUncertain,
|
|
7
7
|
primeRuntimeChains
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UNXUOV3F.mjs";
|
|
9
9
|
import "./chunk-YY4ZOAH5.mjs";
|
|
10
|
+
import "./chunk-PP4QE32S.mjs";
|
|
11
|
+
import "./chunk-PZIKRYMO.mjs";
|
|
10
12
|
import {
|
|
11
13
|
getChainName,
|
|
12
14
|
isTargetChain
|
|
@@ -14,7 +16,7 @@ import {
|
|
|
14
16
|
import {
|
|
15
17
|
MODAL_VERSION,
|
|
16
18
|
setEmbedHost
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2D3J53PX.mjs";
|
|
18
20
|
|
|
19
21
|
// src/embed.tsx
|
|
20
22
|
import { Suspense, lazy, useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1110,7 +1112,7 @@ var UNKNOWN_SCREEN = "unknown";
|
|
|
1110
1112
|
// src/embed.tsx
|
|
1111
1113
|
import { jsx } from "react/jsx-runtime";
|
|
1112
1114
|
var WithdrawModal = lazy(
|
|
1113
|
-
() => import("./WithdrawModal-
|
|
1115
|
+
() => import("./WithdrawModal-CB7RNEPI.mjs").then((m) => ({ default: m.WithdrawModal }))
|
|
1114
1116
|
);
|
|
1115
1117
|
function missingField(config, keys) {
|
|
1116
1118
|
const missing = keys.find(
|