@funkit/connect 11.0.0 → 11.2.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/CHANGELOG.md +71 -0
- package/dist/clients/chunk-2576N7PQ.js +44 -0
- package/dist/clients/{chunk-II5CZTBC.js → chunk-3P2C436B.js} +3 -1
- package/dist/clients/chunk-63XTVHO3.js +19 -0
- package/dist/clients/chunk-6QCAWEAT.js +53 -0
- package/dist/clients/{chunk-6CYZKITE.js → chunk-6T6URLBM.js} +1 -1
- package/dist/clients/{chunk-LT4EWLDA.js → chunk-BPDLF2R6.js} +1 -0
- package/dist/clients/{chunk-JD2J5K6S.js → chunk-C45VNQXY.js} +161 -18
- package/dist/clients/chunk-DGBIV3ZS.js +36 -0
- package/dist/clients/{chunk-MGQLVTSH.js → chunk-FM7SFGAV.js} +27 -21
- package/dist/clients/{chunk-6PIIYPQK.js → chunk-IYCZWLAF.js} +5 -327
- package/dist/clients/{chunk-BNMZM23Q.js → chunk-JFDRLSYM.js} +3 -3
- package/dist/clients/chunk-PENJ5JGH.js +331 -0
- package/dist/clients/chunk-QQEGNLGD.js +40 -0
- package/dist/clients/chunk-SU3YSNMB.js +306 -0
- package/dist/clients/chunk-TZGKB6WY.js +160 -0
- package/dist/clients/{chunk-2FSEE3AW.js → chunk-UK64SY6N.js} +2 -89
- package/dist/clients/chunk-VIAEAD75.js +61 -0
- package/dist/clients/{chunk-L2KSNS7H.js → chunk-WZRW6WUM.js} +1 -1
- package/dist/clients/{chunk-C4SHJFOV.js → chunk-XJTRLB7W.js} +9 -9
- package/dist/clients/{chunk-YFHTV7DT.js → chunk-Y7WLUPTX.js} +1 -1
- package/dist/clients/chunk-YUZ3B2Q3.js +15 -0
- package/dist/clients/{chunk-2YWQL3AO.js → chunk-Z7HTQFEO.js} +26 -3
- package/dist/clients/fanatics.js +2 -1
- package/dist/clients/internal/nado/consts.d.ts +6 -0
- package/dist/clients/internal/nado/consts.js +5 -3
- package/dist/clients/internal/nado/encoding.d.ts +5 -2
- package/dist/clients/internal/nado/encoding.js +1 -1
- package/dist/clients/internal/nado/errors.d.ts +14 -1
- package/dist/clients/internal/nado/errors.js +7 -3
- package/dist/clients/internal/nado/fetch.js +2 -2
- package/dist/clients/internal/nado/gateway.d.ts +19 -20
- package/dist/clients/internal/nado/gateway.js +4 -6
- package/dist/clients/internal/nado/hooks.d.ts +8 -2
- package/dist/clients/internal/nado/hooks.js +10 -10
- package/dist/clients/internal/nado/indexer.js +4 -4
- package/dist/clients/internal/nado/typedData.js +4 -37
- package/dist/clients/internal/nado/withdrawalCallback.d.ts +20 -0
- package/dist/clients/internal/nado/withdrawalCallback.js +20 -0
- package/dist/clients/internal/nado/withdrawalConfig.d.ts +8 -3
- package/dist/clients/internal/nado/withdrawalConfig.js +7 -3
- package/dist/clients/internal/nado/withdrawalErrors.d.ts +14 -0
- package/dist/clients/internal/nado/withdrawalErrors.js +11 -0
- package/dist/clients/internal/nado/withdrawalForm.css +43 -35
- package/dist/clients/internal/nado/withdrawalForm.d.ts +9 -7
- package/dist/clients/internal/nado/withdrawalForm.js +81 -98
- package/dist/clients/internal/nado/withdrawalStatus.d.ts +41 -0
- package/dist/clients/internal/nado/withdrawalStatus.js +231 -0
- package/dist/clients/internal/nado/withdrawalTypes.d.ts +21 -7
- package/dist/clients/lighter.css +61 -53
- package/dist/clients/lighter.js +8 -7
- package/dist/clients/mallard.js +4 -3
- package/dist/clients/nado.d.ts +67 -0
- package/dist/clients/nado.js +73 -0
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +103 -95
- package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +9 -6
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -2
- package/dist/clients/polymarket/index.css +103 -95
- package/dist/clients/polymarket/index.js +9 -6
- package/dist/clients/polymarket/polymarket.js +2 -1
- package/dist/components/Dialog/Dialog.d.ts +3 -1
- package/dist/components/Dialog/DialogContent.css.d.ts +6 -0
- package/dist/components/FunCheckbox/FunCheckbox.d.ts +3 -1
- package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -1
- package/dist/consts/customers.d.ts +1 -1
- package/dist/domains/nado.d.ts +11 -2
- package/dist/domains/quoteMode/types.d.ts +16 -0
- package/dist/domains/relay.d.ts +0 -3
- package/dist/hooks/track/analytics/events.d.ts +85 -0
- package/dist/hooks/track/analytics/mappers.d.ts +8 -0
- package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +37 -0
- package/dist/hooks/track/useTrack.d.ts +3 -2
- package/dist/hooks/useFunkitTranslation.d.ts +5 -0
- package/dist/hooks/useTokenAndChainDropdown.d.ts +4 -1
- package/dist/index.css +43 -35
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4414 -3570
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +5 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +13 -0
- package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +4 -3
- package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +9 -1
- package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +3 -1
- package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +4 -1
- package/dist/modals/CheckoutModal/SourceChange/useBottomBarCloseLabel.d.ts +7 -0
- package/dist/modals/WithdrawalModal/LockedReceiveDisplay.d.ts +22 -0
- package/dist/modals/WithdrawalModal/NadoWithdrawalSuccess.d.ts +20 -0
- package/dist/modals/WithdrawalModal/withdrawalFormHelpers.d.ts +18 -1
- package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +1 -1
- package/dist/providers/FunkitCheckoutContext/types.d.ts +4 -3
- package/dist/providers/FunkitStatsigProvider.d.ts +7 -0
- package/dist/providers/GeneralWalletProvider.d.ts +1 -0
- package/dist/utils/customer.d.ts +23 -230
- package/dist/utils/withdrawal.d.ts +11 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +33 -33
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -4
- package/dist/clients/chunk-SFDEST63.js +0 -18
- package/dist/clients/chunk-ZCCLJW6F.js +0 -99
- package/dist/wallets/walletConnectors/{chunk-W2LCLDPX.js → chunk-2VP2F6EK.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IULPZP2Q.js → chunk-4T6ZSRJF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-WAHGI5L7.js → chunk-6BW3HLBG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YO2K4MBH.js → chunk-CCQV2ZET.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TKB2OY6G.js → chunk-CPI4TD43.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OX37G4YT.js → chunk-F5XEEVG6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JPN6TWIT.js → chunk-HNRB7KJU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-WKNQMP4A.js → chunk-HTHAK6XB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GUQM4QSL.js → chunk-MIQTHJ6X.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4NV5BYRP.js → chunk-RB3HR4R2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SWFF3TWJ.js → chunk-RVOY537T.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KI5Y2BBF.js → chunk-STVVP43G.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OEEGYENV.js → chunk-UK7C2JXW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YQFGVZGR.js → chunk-VAPGUPHO.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XCNHV3HS.js → chunk-VTM6EECM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-NR2OGDHQ.js → chunk-X6CGV36L.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-AVDUNQUW.js → chunk-YEZM4CK4.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KCRO2AGO.js → chunk-ZNX4EMPB.js} +3 -3
|
@@ -16158,7 +16158,7 @@
|
|
|
16158
16158
|
flex: 0 0 auto;
|
|
16159
16159
|
}
|
|
16160
16160
|
|
|
16161
|
-
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#
|
|
16161
|
+
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VXS4_bOAy-91do0csEWA2ch2enHqAoeu-t9wUtMbYaWTJkOcnsYv77ws-xLGfG2raXBKL4kZT4kZTv_96W_9jDbr8l_34gpIArzVFkuU1IvIvL61MvvAhu84Rso-h8aWT9-hBHjc7Lh_vRTpJDdfex0rVhSFkOKkNaQoYbz8Fj58AHW31CRa0BVR3RhKJls6-EyqhQZy1YsPujAEs5WhAyFMq0OgpTgBVahWOLUqINDvcibM4NXEDSX2DiKPUl7MAKmaV47VL9_5wWmrfRK4vKBpioLlCWyKk4Gihw8yd5W4FKDVyozPcQex52nY5QA_X3j1FXDu56AtmHQw7hkLiFlMCbk1DTxR89TWQSj51ognpoUak2HM3gKyJ_iKLUxoKyjvLjPCqhhBUgJ3ExkOyu7QaEkn1UXjdP86RF1Tl3zYZUd9SAXdmn-IbF1RUfYnRFF1hlDt6_zLGruhnc9VSY5XoQL1z2mGGry9YINcBFXSXkDOaOUnNqBaIruG86FRI3M1jrJRCXamt14XqM_H3X9ILCQMxmR5_RNM0oIbngHNVTf4vDkV1-Q8DY8YgJQcS8gV5PwhsG1hDuBnTN2LmNfXtm3MIFjJ0VJm6MnTcO_N7Y8aBpeK_lLWRgIr1OuThKnxMCtdWNrGJGS5mCoVltLZqEVBZSie5e765WFbp9lycJvWB6EpaO2m0EXFSlhOcRM4b80B0gBXbKjK4Vp0xLbSZ1266rrnC_jmqbd_1Sm9dFOp0ab7WEzbooLBorwDx_x6tdE4IBdupC-LkD4jsH_F3Wk7xhyUofFTKt-OLtHF0WHCW2aW_-KRcGWVP4CWFa1kVLzqEKmsniVkEWasrn9EhCj9JKK5zXxmvF9EpdsUxCyp0Xzfh6WXrkOHN1VqbhBj4TLs7972L_uPVAAvKR5chOuraUC5A6Gx6vS5E4VvygZtv-fQ_dZanjzCZil8iEbMnWv-dp1N2Lux-7Q5sJvUHRotqBKTra6BKYsM8kut9VBKFCKhTVtXt7PzwYSEmi-3gGcROyi_tu7T8MJrZPXiJ7lO_u0LvrfS2Z_VIgF9CkBFERUJzcTebHXw-P5bWbPK_fHe1y_n1MyMtUadcrLc2i-TSaQfc-9LCbQ0eJAz0sQGMPuhhwugD1Aj68BvzyH4DFRhVXEAAA */
|
|
16162
16162
|
[data-rk] ._1pzt4231 {
|
|
16163
16163
|
max-height: 525px;
|
|
16164
16164
|
max-width: 100vw;
|
|
@@ -16214,24 +16214,27 @@
|
|
|
16214
16214
|
padding-right: 0;
|
|
16215
16215
|
padding-left: 0;
|
|
16216
16216
|
}
|
|
16217
|
-
[data-rk] .
|
|
16217
|
+
[data-rk] ._1pzt4236 {
|
|
16218
|
+
border-width: 0 !important;
|
|
16219
|
+
}
|
|
16220
|
+
[data-rk] ._1pzt4238 {
|
|
16218
16221
|
min-width: initial;
|
|
16219
16222
|
width: calc(100vw - 30px);
|
|
16220
16223
|
max-height: 80svh;
|
|
16221
16224
|
}
|
|
16222
|
-
[data-rk] .
|
|
16225
|
+
[data-rk] ._1pzt4238:has(#token-transfer-page) {
|
|
16223
16226
|
max-height: 80vh;
|
|
16224
16227
|
max-height: 95svh;
|
|
16225
16228
|
}
|
|
16226
|
-
[data-rk] .
|
|
16229
|
+
[data-rk] ._1pzt4238:has(#lightning-invoice-page) {
|
|
16227
16230
|
max-height: 80vh;
|
|
16228
16231
|
max-height: 95svh;
|
|
16229
16232
|
}
|
|
16230
|
-
[data-rk] .
|
|
16233
|
+
[data-rk] ._1pzt4238:has(#fiat-detail-page) {
|
|
16231
16234
|
max-height: 80vh;
|
|
16232
16235
|
max-height: 95svh;
|
|
16233
16236
|
}
|
|
16234
|
-
[data-rk] .
|
|
16237
|
+
[data-rk] ._1pzt423a {
|
|
16235
16238
|
min-width: initial;
|
|
16236
16239
|
width: 100vw;
|
|
16237
16240
|
padding-left: 20px;
|
|
@@ -16245,67 +16248,67 @@
|
|
|
16245
16248
|
overflow: hidden;
|
|
16246
16249
|
min-height: 0;
|
|
16247
16250
|
}
|
|
16248
|
-
[data-rk] .
|
|
16251
|
+
[data-rk] ._1pzt423a:has(#source-change-page) {
|
|
16249
16252
|
max-height: 80svh;
|
|
16250
16253
|
}
|
|
16251
|
-
[data-rk] .
|
|
16254
|
+
[data-rk] ._1pzt423a:has(#token-transfer-page) {
|
|
16252
16255
|
max-height: 80svh;
|
|
16253
16256
|
}
|
|
16254
|
-
[data-rk] .
|
|
16257
|
+
[data-rk] ._1pzt423a:has(#lightning-invoice-page) {
|
|
16255
16258
|
max-height: 80svh;
|
|
16256
16259
|
}
|
|
16257
|
-
[data-rk] .
|
|
16260
|
+
[data-rk] ._1pzt423a:has(#fiat-detail-page) {
|
|
16258
16261
|
max-height: 80svh;
|
|
16259
16262
|
}
|
|
16260
|
-
[data-rk] .
|
|
16263
|
+
[data-rk] ._1pzt423a:has(#confirmation-page) {
|
|
16261
16264
|
max-height: 80svh;
|
|
16262
16265
|
}
|
|
16263
|
-
[data-rk] .
|
|
16266
|
+
[data-rk] ._1pzt423a:has(#complete-page) {
|
|
16264
16267
|
max-height: 80svh;
|
|
16265
16268
|
}
|
|
16266
|
-
[data-rk] .
|
|
16269
|
+
[data-rk] ._1pzt423a:has(#withdrawal-complete-page) {
|
|
16267
16270
|
max-height: 80svh;
|
|
16268
16271
|
}
|
|
16269
|
-
[data-rk] .
|
|
16272
|
+
[data-rk] ._1pzt423a:has(#withdrawal-flow) {
|
|
16270
16273
|
max-height: 80svh;
|
|
16271
16274
|
}
|
|
16272
|
-
[data-rk] .
|
|
16275
|
+
[data-rk] ._1pzt423a:has(#connect-exchange) {
|
|
16273
16276
|
max-height: 80svh;
|
|
16274
16277
|
}
|
|
16275
|
-
[data-rk] .
|
|
16278
|
+
[data-rk] ._1pzt423b {
|
|
16276
16279
|
min-width: 380px;
|
|
16277
16280
|
width: 380px;
|
|
16278
16281
|
}
|
|
16279
|
-
[data-rk] .
|
|
16282
|
+
[data-rk] ._1pzt423d {
|
|
16280
16283
|
overflow-x: hidden;
|
|
16281
16284
|
overflow-y: auto;
|
|
16282
16285
|
scrollbar-gutter: stable;
|
|
16283
16286
|
scrollbar-width: unset;
|
|
16284
16287
|
}
|
|
16285
|
-
[data-rk] .
|
|
16288
|
+
[data-rk] ._1pzt423d::-webkit-scrollbar {
|
|
16286
16289
|
display: unset;
|
|
16287
16290
|
width: 6px;
|
|
16288
16291
|
background-color: var(--rk-colors-modalBackground);
|
|
16289
16292
|
}
|
|
16290
|
-
[data-rk] .
|
|
16293
|
+
[data-rk] ._1pzt423d::-webkit-scrollbar-thumb {
|
|
16291
16294
|
border-radius: var(--rk-radii-modal);
|
|
16292
16295
|
background-color: var(--rk-colors-tertiaryText);
|
|
16293
16296
|
}
|
|
16294
|
-
[data-rk] .
|
|
16297
|
+
[data-rk] ._1pzt423d::-webkit-scrollbar-track {
|
|
16295
16298
|
background-color: var(--rk-colors-modalBackground);
|
|
16296
16299
|
}
|
|
16297
|
-
[data-rk] .
|
|
16300
|
+
[data-rk] ._1pzt423e::-webkit-scrollbar-thumb {
|
|
16298
16301
|
background-color: var(--rk-colors-modalBackground);
|
|
16299
16302
|
}
|
|
16300
|
-
[data-rk] .
|
|
16303
|
+
[data-rk] ._1pzt423e::-webkit-scrollbar-thumb:hover {
|
|
16301
16304
|
background-color: var(--rk-colors-secondaryText);
|
|
16302
16305
|
}
|
|
16303
|
-
[data-rk] .
|
|
16306
|
+
[data-rk] ._1pzt423f {
|
|
16304
16307
|
display: flex;
|
|
16305
16308
|
flex-direction: column;
|
|
16306
16309
|
height: 100vh;
|
|
16307
16310
|
}
|
|
16308
|
-
[data-rk] .
|
|
16311
|
+
[data-rk] ._1pzt423g {
|
|
16309
16312
|
display: flex;
|
|
16310
16313
|
flex-direction: column;
|
|
16311
16314
|
scrollbar-gutter: unset;
|
|
@@ -16313,18 +16316,18 @@
|
|
|
16313
16316
|
overflow-y: hidden;
|
|
16314
16317
|
width: auto;
|
|
16315
16318
|
}
|
|
16316
|
-
[data-rk] .
|
|
16319
|
+
[data-rk] ._1pzt423h {
|
|
16317
16320
|
padding-left: 0;
|
|
16318
16321
|
padding-right: 0;
|
|
16319
16322
|
}
|
|
16320
|
-
[data-rk] .
|
|
16323
|
+
[data-rk] ._1pzt423a ._1pzt423d {
|
|
16321
16324
|
padding-left: 0;
|
|
16322
16325
|
padding-right: 0;
|
|
16323
16326
|
}
|
|
16324
|
-
[data-rk] .
|
|
16327
|
+
[data-rk] ._1pzt423a > div > div {
|
|
16325
16328
|
max-height: 80svh !important;
|
|
16326
16329
|
}
|
|
16327
|
-
[data-rk] .
|
|
16330
|
+
[data-rk] ._1pzt423a #checkout-dialog-content {
|
|
16328
16331
|
padding-left: 0 !important;
|
|
16329
16332
|
padding-right: 0 !important;
|
|
16330
16333
|
scrollbar-gutter: auto;
|
|
@@ -16332,19 +16335,19 @@
|
|
|
16332
16335
|
min-height: 0;
|
|
16333
16336
|
flex: 1 1 auto;
|
|
16334
16337
|
}
|
|
16335
|
-
[data-rk] .
|
|
16338
|
+
[data-rk] ._1pzt423a #checkout-modal-bottom-bar {
|
|
16336
16339
|
padding-left: 0;
|
|
16337
16340
|
padding-right: 0;
|
|
16338
16341
|
}
|
|
16339
|
-
[data-rk] .
|
|
16342
|
+
[data-rk] ._1pzt423i {
|
|
16340
16343
|
transition: opacity 0.2s ease-in-out;
|
|
16341
16344
|
}
|
|
16342
|
-
[data-rk] .
|
|
16345
|
+
[data-rk] ._1pzt423j {
|
|
16343
16346
|
transition: all 0.5s ease-in-out;
|
|
16344
16347
|
max-height: 250px;
|
|
16345
16348
|
overflow: hidden;
|
|
16346
16349
|
}
|
|
16347
|
-
[data-rk] .
|
|
16350
|
+
[data-rk] ._1pzt423k {
|
|
16348
16351
|
max-height: 0px;
|
|
16349
16352
|
transition: all 0.4s ease-out;
|
|
16350
16353
|
overflow: hidden;
|
|
@@ -16365,7 +16368,7 @@
|
|
|
16365
16368
|
min-width: 450px;
|
|
16366
16369
|
width: 450px;
|
|
16367
16370
|
}
|
|
16368
|
-
[data-rk] .
|
|
16371
|
+
[data-rk] ._1pzt423b {
|
|
16369
16372
|
min-width: 480px;
|
|
16370
16373
|
width: 480px;
|
|
16371
16374
|
}
|
|
@@ -16501,9 +16504,10 @@
|
|
|
16501
16504
|
animation-name: stgjxld;
|
|
16502
16505
|
}
|
|
16503
16506
|
|
|
16504
|
-
/* vanilla-extract-css-ns:src/modals/CheckoutModal/SwappedIframe/SwappedIframe.css.ts.vanilla.css?source=
|
|
16507
|
+
/* vanilla-extract-css-ns:src/modals/CheckoutModal/SwappedIframe/SwappedIframe.css.ts.vanilla.css?source=Lm94dGxjcDAgewogIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50OwogIHNjcm9sbGJhci1ndXR0ZXI6IGF1dG87CiAgc2Nyb2xsYmFyLXdpZHRoOiB0aGluOwogIHNjcm9sbGJhci1jb2xvcjogdmFyKC0tcmstY29sb3JzLXRlcnRpYXJ5VGV4dCkgdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7Cn0KLm94dGxjcDA6Oi13ZWJraXQtc2Nyb2xsYmFyIHsKICB3aWR0aDogNnB4OwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJrLWNvbG9ycy1tb2RhbEJhY2tncm91bmQpOwp9Ci5veHRsY3AwOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgYm9yZGVyLXJhZGl1czogdmFyKC0tcmstcmFkaWktbW9kYWwpOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJrLWNvbG9ycy10ZXJ0aWFyeVRleHQpOwp9Ci5veHRsY3AwOjotd2Via2l0LXNjcm9sbGJhci10cmFjayB7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7Cn0KLl8xcHp0NDIzMTpoYXMoLm94dGxjcDAgPiBpZnJhbWVbYXJpYS1oaWRkZW49J2ZhbHNlJ10pIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDsKICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDBzIGxpbmVhciAxMDBtczsKfQ */
|
|
16505
16508
|
[data-rk] .oxtlcp0 {
|
|
16506
|
-
|
|
16509
|
+
background-color: transparent;
|
|
16510
|
+
scrollbar-gutter: auto;
|
|
16507
16511
|
scrollbar-width: thin;
|
|
16508
16512
|
scrollbar-color: var(--rk-colors-tertiaryText) var(--rk-colors-modalBackground);
|
|
16509
16513
|
}
|
|
@@ -16518,6 +16522,10 @@
|
|
|
16518
16522
|
[data-rk] .oxtlcp0::-webkit-scrollbar-track {
|
|
16519
16523
|
background-color: var(--rk-colors-modalBackground);
|
|
16520
16524
|
}
|
|
16525
|
+
[data-rk] ._1pzt4231:has(.oxtlcp0 > iframe[aria-hidden=false]) {
|
|
16526
|
+
background-color: transparent;
|
|
16527
|
+
transition: background-color 0s linear 100ms;
|
|
16528
|
+
}
|
|
16521
16529
|
|
|
16522
16530
|
/* vanilla-extract-css-ns:src/components/FunInput/FunInput.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9VUzU7DMAy-7yl8QRpSU6X8TCgTF8aBB-CGOLipt0VrncpNgQ7x7qgdbGXTEGIIxDHJ5-_Hjhwva9JupOF5ABAEuXLBeTaAeQ7JuS4qsHXqrEpp6UiGOj6NQEegYz2KIDkeD14G8Yoj2eFgz9QDnBijHilduKB8HUhUVTpWaR2C5wh2QY75I6gTKFBmjg3o8QDgHYplSSjIlnZV70JT0iXXRUpy31Gowi8_KznrUCnaxUx8zZmyPvdiVtlKFOLQiqdeMpL3agBfh9wxbS4eXRbmBhKtj9rj1HNQUyxc3hhwPCdxHc9hbT8zpszR0tznGUnn_M3uA8pQKVms7FeqIus5Q2lu6Sn0KUa_mXejerjxi38wKABfonWhMaDj8775L-dH22pO2sO1qzDNKet3AX-3C3vi4E_Fsf9gqBuzh3_i7Ed2716yrd2mzdw_kKzx68WbbD3smcJ2rLqiiWcmGyi7WqNvWqq-wemfrJjp96fzCplzuQIZBwAA */
|
|
16523
16531
|
[data-rk] .zue0i60 {
|
|
@@ -16826,6 +16834,66 @@
|
|
|
16826
16834
|
overflow: hidden;
|
|
16827
16835
|
}
|
|
16828
16836
|
|
|
16837
|
+
/* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdown.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9WTwW7bMAyG73kKIqcEsAIb3YpBxi5r36IYBtqiYyGqKFB03HTouw92mjQZVmAodtmNBPX_Ij9Kmx9VjPn2kEv4uQDgPUkXeDQHCzgo1wuA3AqH0KCY0TvtLUSOVC9eFpuz1lozUrPzas6HZzvncwp4-IOkmuuJs1fP0YJQQPV7qi-asNB75yheC61tqGOh2aDlqBTVwnJZX_lhkzkMOvspJwvlFAXq9DUUv-1PcU_H5NOX9DTlDba7rfAQnYXgI6GYraDzFHWlDA2r8mMBe5SVMbIzLQeWbDhRvBdOjsf47WxxNxXXBahgzAmFoq6PvfqoJIb2FDWfEAFwwtbr4bW1WXWaKQSoPpePGdqh8a1p6NmTrMrNTQFlAeWmvC2gms2fjY-OnixUv8PDTkn-nt1x1n-KTzn9l-weHCqaDh0Z5fR1qTLQ8vvVczzf_770CPRN_baPd8Q3c_FDs1y62B7z6gHFo3E-YxPInZpY2376cvM9l7vz0avHMDFpB8ksE2g1GAKP5OrFyy9ESovqPQQAAA */
|
|
16838
|
+
[data-rk] ._1nns6ys0 {
|
|
16839
|
+
overflow-y: auto;
|
|
16840
|
+
scrollbar-width: none;
|
|
16841
|
+
}
|
|
16842
|
+
[data-rk] ._1nns6ys0::-webkit-scrollbar {
|
|
16843
|
+
display: none;
|
|
16844
|
+
}
|
|
16845
|
+
[data-rk] ._1nns6ys1 {
|
|
16846
|
+
position: relative;
|
|
16847
|
+
overflow: hidden;
|
|
16848
|
+
}
|
|
16849
|
+
[data-rk] ._1nns6ys1::before {
|
|
16850
|
+
content: "";
|
|
16851
|
+
position: absolute;
|
|
16852
|
+
top: 0;
|
|
16853
|
+
left: 0;
|
|
16854
|
+
right: 0;
|
|
16855
|
+
height: 48px;
|
|
16856
|
+
background:
|
|
16857
|
+
linear-gradient(
|
|
16858
|
+
to bottom,
|
|
16859
|
+
var(--rk-colors-openDropdownBackgroundColor),
|
|
16860
|
+
transparent);
|
|
16861
|
+
pointer-events: none;
|
|
16862
|
+
opacity: 0;
|
|
16863
|
+
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
16864
|
+
z-index: 1;
|
|
16865
|
+
}
|
|
16866
|
+
[data-rk] ._1nns6ys1::after {
|
|
16867
|
+
content: "";
|
|
16868
|
+
position: absolute;
|
|
16869
|
+
bottom: 0;
|
|
16870
|
+
left: 0;
|
|
16871
|
+
right: 0;
|
|
16872
|
+
height: 48px;
|
|
16873
|
+
background:
|
|
16874
|
+
linear-gradient(
|
|
16875
|
+
to top,
|
|
16876
|
+
var(--rk-colors-openDropdownBackgroundColor),
|
|
16877
|
+
transparent);
|
|
16878
|
+
pointer-events: none;
|
|
16879
|
+
opacity: 0;
|
|
16880
|
+
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
16881
|
+
z-index: 1;
|
|
16882
|
+
}
|
|
16883
|
+
[data-rk] ._1nns6ys1[data-fade-top=true]::before {
|
|
16884
|
+
opacity: 1;
|
|
16885
|
+
}
|
|
16886
|
+
[data-rk] ._1nns6ys1[data-fade-bottom=true]::after {
|
|
16887
|
+
opacity: 1;
|
|
16888
|
+
}
|
|
16889
|
+
[data-rk] ._1nns6ys3 {
|
|
16890
|
+
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
16891
|
+
}
|
|
16892
|
+
[data-rk] ._1nns6ys3:has([aria-disabled=true]):hover {
|
|
16893
|
+
background: initial;
|
|
16894
|
+
cursor: not-allowed;
|
|
16895
|
+
}
|
|
16896
|
+
|
|
16829
16897
|
/* vanilla-extract-css-ns:src/components/Icons/CaretDownIcon.css.ts.vanilla.css?source=QGtleWZyYW1lcyBfMWdqZGYxaTAgewogIDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlM2QoMSwwLDAsMGRlZyk7CiAgfQogIDEwMCUgewogICAgdHJhbnNmb3JtOiByb3RhdGUzZCgxLDAsMCwxODBkZWcpOwogIH0KfQpAa2V5ZnJhbWVzIF8xZ2pkZjFpMSB7CiAgMCUgewogICAgdHJhbnNmb3JtOiByb3RhdGUzZCgxLDAsMCwxODBkZWcpOwogIH0KICAxMDAlIHsKICAgIHRyYW5zZm9ybTogcm90YXRlM2QoMSwwLDAsMGRlZyk7CiAgfQp9Ci5fMWdqZGYxaTIgewogIGFuaW1hdGlvbjogXzFnamRmMWkwIDI1MG1zIGN1YmljLWJlemllcigwLjI5LCAtMC4wMSwgMCwgMSkgZm9yd2FyZHM7Cn0KLl8xZ2pkZjFpMyB7CiAgYW5pbWF0aW9uOiBfMWdqZGYxaTEgMjUwbXMgY3ViaWMtYmV6aWVyKDAuMjksIC0wLjAxLCAwLCAxKSBmb3J3YXJkczsKfQ */
|
|
16830
16898
|
@keyframes _1gjdf1i0 {
|
|
16831
16899
|
0% {
|
|
@@ -17439,66 +17507,6 @@
|
|
|
17439
17507
|
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
17440
17508
|
}
|
|
17441
17509
|
|
|
17442
|
-
/* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdown.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9WTwW7bMAyG73kKIqcEsAIb3YpBxi5r36IYBtqiYyGqKFB03HTouw92mjQZVmAodtmNBPX_Ij9Kmx9VjPn2kEv4uQDgPUkXeDQHCzgo1wuA3AqH0KCY0TvtLUSOVC9eFpuz1lozUrPzas6HZzvncwp4-IOkmuuJs1fP0YJQQPV7qi-asNB75yheC61tqGOh2aDlqBTVwnJZX_lhkzkMOvspJwvlFAXq9DUUv-1PcU_H5NOX9DTlDba7rfAQnYXgI6GYraDzFHWlDA2r8mMBe5SVMbIzLQeWbDhRvBdOjsf47WxxNxXXBahgzAmFoq6PvfqoJIb2FDWfEAFwwtbr4bW1WXWaKQSoPpePGdqh8a1p6NmTrMrNTQFlAeWmvC2gms2fjY-OnixUv8PDTkn-nt1x1n-KTzn9l-weHCqaDh0Z5fR1qTLQ8vvVczzf_770CPRN_baPd8Q3c_FDs1y62B7z6gHFo3E-YxPInZpY2376cvM9l7vz0avHMDFpB8ksE2g1GAKP5OrFyy9ESovqPQQAAA */
|
|
17443
|
-
[data-rk] ._1nns6ys0 {
|
|
17444
|
-
overflow-y: auto;
|
|
17445
|
-
scrollbar-width: none;
|
|
17446
|
-
}
|
|
17447
|
-
[data-rk] ._1nns6ys0::-webkit-scrollbar {
|
|
17448
|
-
display: none;
|
|
17449
|
-
}
|
|
17450
|
-
[data-rk] ._1nns6ys1 {
|
|
17451
|
-
position: relative;
|
|
17452
|
-
overflow: hidden;
|
|
17453
|
-
}
|
|
17454
|
-
[data-rk] ._1nns6ys1::before {
|
|
17455
|
-
content: "";
|
|
17456
|
-
position: absolute;
|
|
17457
|
-
top: 0;
|
|
17458
|
-
left: 0;
|
|
17459
|
-
right: 0;
|
|
17460
|
-
height: 48px;
|
|
17461
|
-
background:
|
|
17462
|
-
linear-gradient(
|
|
17463
|
-
to bottom,
|
|
17464
|
-
var(--rk-colors-openDropdownBackgroundColor),
|
|
17465
|
-
transparent);
|
|
17466
|
-
pointer-events: none;
|
|
17467
|
-
opacity: 0;
|
|
17468
|
-
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
17469
|
-
z-index: 1;
|
|
17470
|
-
}
|
|
17471
|
-
[data-rk] ._1nns6ys1::after {
|
|
17472
|
-
content: "";
|
|
17473
|
-
position: absolute;
|
|
17474
|
-
bottom: 0;
|
|
17475
|
-
left: 0;
|
|
17476
|
-
right: 0;
|
|
17477
|
-
height: 48px;
|
|
17478
|
-
background:
|
|
17479
|
-
linear-gradient(
|
|
17480
|
-
to top,
|
|
17481
|
-
var(--rk-colors-openDropdownBackgroundColor),
|
|
17482
|
-
transparent);
|
|
17483
|
-
pointer-events: none;
|
|
17484
|
-
opacity: 0;
|
|
17485
|
-
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
17486
|
-
z-index: 1;
|
|
17487
|
-
}
|
|
17488
|
-
[data-rk] ._1nns6ys1[data-fade-top=true]::before {
|
|
17489
|
-
opacity: 1;
|
|
17490
|
-
}
|
|
17491
|
-
[data-rk] ._1nns6ys1[data-fade-bottom=true]::after {
|
|
17492
|
-
opacity: 1;
|
|
17493
|
-
}
|
|
17494
|
-
[data-rk] ._1nns6ys3 {
|
|
17495
|
-
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
17496
|
-
}
|
|
17497
|
-
[data-rk] ._1nns6ys3:has([aria-disabled=true]):hover {
|
|
17498
|
-
background: initial;
|
|
17499
|
-
cursor: not-allowed;
|
|
17500
|
-
}
|
|
17501
|
-
|
|
17502
17510
|
/* src/components/Dropdown/BaseDropdownAnimation.css */
|
|
17503
17511
|
@keyframes funkit-dropdown-fade-in {
|
|
17504
17512
|
0% {
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
PolymarketDepositAccountDropdown
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-XJTRLB7W.js";
|
|
5
|
+
import "../chunk-BPDLF2R6.js";
|
|
6
6
|
import "../chunk-5MY7WMEJ.js";
|
|
7
7
|
import "../chunk-FNB7OPJI.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6QCAWEAT.js";
|
|
9
|
+
import "../chunk-UK64SY6N.js";
|
|
9
10
|
import "../chunk-LUHEVXPD.js";
|
|
11
|
+
import "../chunk-YUZ3B2Q3.js";
|
|
10
12
|
import "../chunk-UPZNKPYU.js";
|
|
11
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-C45VNQXY.js";
|
|
12
14
|
import {
|
|
13
15
|
POLYMARKET_PERPS_ROUTING_ID,
|
|
14
16
|
POLYMARKET_PREDICTIONS_ROUTING_ID,
|
|
15
17
|
createPolymarketDepositConfig,
|
|
16
18
|
createPredictionsGenerateActionParams
|
|
17
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-Y7WLUPTX.js";
|
|
18
20
|
import {
|
|
19
21
|
AMOUNT_PLACEHOLDER,
|
|
20
22
|
COLLATERAL_ONRAMP_ABI,
|
|
@@ -25,7 +27,8 @@ import {
|
|
|
25
27
|
VAULT_DEPOSITOR_POLYGON,
|
|
26
28
|
createPerpsGenerateActionParams,
|
|
27
29
|
createPolymarketWithdrawalConfig
|
|
28
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-IYCZWLAF.js";
|
|
31
|
+
import "../chunk-PENJ5JGH.js";
|
|
29
32
|
import "../chunk-AHYOV7AV.js";
|
|
30
33
|
export {
|
|
31
34
|
AMOUNT_PLACEHOLDER,
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
VAULT_DEPOSITOR_POLYGON,
|
|
10
10
|
createPerpsGenerateActionParams,
|
|
11
11
|
createPolymarketWithdrawalConfig
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-IYCZWLAF.js";
|
|
13
|
+
import "../chunk-PENJ5JGH.js";
|
|
13
14
|
import "../chunk-AHYOV7AV.js";
|
|
14
15
|
export {
|
|
15
16
|
AMOUNT_PLACEHOLDER,
|
|
@@ -29,11 +29,13 @@ interface DialogProps {
|
|
|
29
29
|
* and dark themes.
|
|
30
30
|
*/
|
|
31
31
|
backgroundOverlay?: string;
|
|
32
|
+
/** Hides the modal's own border, which reads as a stark line against the darker modalBackdrop behind Swapped's UI */
|
|
33
|
+
withoutBorder?: boolean;
|
|
32
34
|
}
|
|
33
35
|
/**
|
|
34
36
|
* Dialog components (title, content, bottom bar) must be rendered as direct children of Dialog for correct scrolling behavior
|
|
35
37
|
*/
|
|
36
|
-
export declare function Dialog({ children, onClose, onAnimationComplete, open, titleId, isHidden, isSmartCloseable, withoutSidePadding, withTransition, testId, isFanaticsBottomSheet, backgroundOverlay, }: DialogProps): React.ReactPortal | null;
|
|
38
|
+
export declare function Dialog({ children, onClose, onAnimationComplete, open, titleId, isHidden, isSmartCloseable, withoutSidePadding, withTransition, testId, isFanaticsBottomSheet, backgroundOverlay, withoutBorder, }: DialogProps): React.ReactPortal | null;
|
|
37
39
|
export declare namespace Dialog {
|
|
38
40
|
var Title: ({ title, titleMeta, hasCloseButton: hasCloseButtonProp, isCloseDisabled, onClose, hasBackButton: hasBackButtonProp, isBackDisabled, onBack, className, }: DialogTitleProps) => React.JSX.Element;
|
|
39
41
|
var Content: ({ children, fullHeight, className, id, paddingTop, withTopDivider, withBottomDivider, withoutBottomPadding, withoutSidePadding, extraContentTopPadding, withChildScrollArea, ...boxProps }: DialogContentProps) => React.JSX.Element;
|
|
@@ -13,6 +13,12 @@ export declare const dialogCompact: string;
|
|
|
13
13
|
export declare const dialogMedium: string;
|
|
14
14
|
export declare const dialogWide: string;
|
|
15
15
|
export declare const withoutSidePadding: string;
|
|
16
|
+
/**
|
|
17
|
+
* Hides the modal's own border when Swapped iframe content is active, since
|
|
18
|
+
* modalBorder is tuned for contrast against modalBackground, not the darker
|
|
19
|
+
* modalBackdrop it ends up against here.
|
|
20
|
+
*/
|
|
21
|
+
export declare const noBorder: string;
|
|
16
22
|
export declare const dialogMobile: string;
|
|
17
23
|
/**
|
|
18
24
|
* Fanatics-specific bottom sheet style for mobile
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type BoxProps } from '../Box/Box';
|
|
2
3
|
export interface FunCheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
3
4
|
label: React.ReactNode;
|
|
4
5
|
onChange?: (checked: boolean) => void;
|
|
6
|
+
borderColor?: BoxProps['borderColor'];
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* Controlled checkbox component.
|
|
8
10
|
*/
|
|
9
|
-
export declare const FunCheckbox: ({ label, onChange, ...props }: FunCheckboxProps) => React.JSX.Element;
|
|
11
|
+
export declare const FunCheckbox: ({ label, onChange, borderColor, ...props }: FunCheckboxProps) => React.JSX.Element;
|
|
@@ -11,8 +11,9 @@ interface PaymentFeesSummaryProps {
|
|
|
11
11
|
/** If set, displays a `-` instead of the values, the breakdown is not expandable */
|
|
12
12
|
valuesNotAvailable?: boolean;
|
|
13
13
|
isWithdrawal: boolean;
|
|
14
|
+
extraSourceChainGasUsd?: number;
|
|
14
15
|
}
|
|
15
|
-
export declare function PaymentFeesSummary({ isLoading, quote, fallbackFees, isWithdrawal, valuesNotAvailable, }: PaymentFeesSummaryProps): React.JSX.Element;
|
|
16
|
+
export declare function PaymentFeesSummary({ isLoading, quote, fallbackFees, isWithdrawal, valuesNotAvailable, extraSourceChainGasUsd, }: PaymentFeesSummaryProps): React.JSX.Element;
|
|
16
17
|
export interface FeeItem {
|
|
17
18
|
label: string;
|
|
18
19
|
value: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FunkitCheckoutConfig } from '../providers/FunkitCheckoutContext';
|
|
2
|
-
export declare function isPolymarketCustomer(apiKey: string):
|
|
2
|
+
export declare function isPolymarketCustomer(apiKey: string): boolean;
|
|
3
3
|
export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3EPcyBVg4a8az1rRWR9xB068chHoUN";
|
|
4
4
|
export declare function isBsxCustomer(apiKey: string): apiKey is "zN1zrkmLQn4oZtLUW9Qt02uuBI3Jvrgj8Ni40Gf1";
|
|
5
5
|
export declare function isEtherealCustomer(apiKey: string): apiKey is "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um";
|
package/dist/domains/nado.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { AssetClass } from '../providers/FunkitCheckoutContext';
|
|
2
|
+
/**
|
|
3
|
+
* Covers both sides of a flow — a `DynamicTargetAssetCandidate` to check in, a
|
|
4
|
+
* `SourceTokenOption` to withdraw out — since both carry the same field and the
|
|
5
|
+
* check is identical. Scoped by `assetClass === 'xstock'` (not a customer), so
|
|
6
|
+
* any config declaring an xStock is covered. Narrows, so callers can read the
|
|
7
|
+
* asset without a non-null assertion.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isXStockAsset<T extends {
|
|
10
|
+
assetClass?: AssetClass;
|
|
11
|
+
}>(asset: T | undefined): asset is T;
|
|
3
12
|
/**
|
|
4
13
|
* Strip the trailing display qualifier from a Nado ticker, e.g.
|
|
5
14
|
* "SPYx (Spot)" → "SPYx", to recover the symbol the xStocks API expects.
|
|
@@ -58,6 +58,20 @@ export interface QuoteDisplayAmounts {
|
|
|
58
58
|
/** Total fees in USD. '0' for ONE_TO_ONE */
|
|
59
59
|
feesUsd: string;
|
|
60
60
|
}
|
|
61
|
+
export interface PreQuoteAmountsParams {
|
|
62
|
+
/** The user-controlled token amount in the active quote mode. */
|
|
63
|
+
inputAmount: number;
|
|
64
|
+
/** USD value corresponding to the user's input. */
|
|
65
|
+
inputUsdAmount: number | null;
|
|
66
|
+
/** Source token unit price in USD, when available. */
|
|
67
|
+
sourceUnitPrice: number | null | undefined;
|
|
68
|
+
/** Target token unit price in USD. */
|
|
69
|
+
targetUnitPrice: number;
|
|
70
|
+
}
|
|
71
|
+
export interface PreQuoteAmounts {
|
|
72
|
+
sourceAmount: number | null;
|
|
73
|
+
targetAmount: number | null;
|
|
74
|
+
}
|
|
61
75
|
export interface MaxSendableParams {
|
|
62
76
|
/** Token balance as a Dnum */
|
|
63
77
|
tokenBalanceBaseUnit: Dnum;
|
|
@@ -108,6 +122,8 @@ export interface QuoteBuilder {
|
|
|
108
122
|
/** Target asset ticker (e.g. "USDC") — used for stablecoin display logic */
|
|
109
123
|
targetAssetTicker: string;
|
|
110
124
|
}): QuoteDisplayAmounts;
|
|
125
|
+
/** Resolve source and target amounts before a quote is available. */
|
|
126
|
+
getPreQuoteAmounts(params: PreQuoteAmountsParams): PreQuoteAmounts;
|
|
111
127
|
/** Whether the confirmation screen can show a dollar amount before the quote resolves */
|
|
112
128
|
hasKnownAmountBeforeQuote(config: {
|
|
113
129
|
targetAssetAmount?: number;
|
package/dist/domains/relay.d.ts
CHANGED
|
@@ -7,9 +7,6 @@ export type RelayQuoteMetadata = {
|
|
|
7
7
|
relayQuote: RelayQuote['metadata']['relayQuote'];
|
|
8
8
|
feeBreakdown?: FeeBreakdownV2;
|
|
9
9
|
};
|
|
10
|
-
export declare function extractRelayFeeInfo(quoteV2: {
|
|
11
|
-
[x: string]: unknown;
|
|
12
|
-
} | undefined): FeeBreakdownV2;
|
|
13
10
|
type RelayQuoteDetails = NonNullable<RelayExecute['details']>;
|
|
14
11
|
/** Checks if input and output are the same token on the same chain. */
|
|
15
12
|
export declare function isRelayQuoteSameChainAndAsset(details: RelayQuoteDetails): boolean;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { QuoteMode } from '../../../domains/quoteMode';
|
|
2
|
+
import type { AmountSelectionType } from '../../../modals/CheckoutModal/InputAmount/state';
|
|
3
|
+
/**
|
|
4
|
+
* Analytics v2 — the improved, explicit Statsig event scheme that will replace
|
|
5
|
+
* the `fc::`/`fw::` enums in `../CheckoutModalEvent.ts` / `../WithdrawModalEvent.ts`.
|
|
6
|
+
* Every property is explicitly assigned so each emitted payload is auditable.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum AnalyticsEvent {
|
|
9
|
+
DEPOSIT_ASSET_SELECTED = "fc_deposit_asset_selected",
|
|
10
|
+
DEPOSIT_AMOUNT_CONFIRMED = "fc_deposit_amount_confirmed"
|
|
11
|
+
}
|
|
12
|
+
export type AnalyticsFlow = 'deposit' | 'withdraw';
|
|
13
|
+
/** Envelope carried by every analytics-v2 event. */
|
|
14
|
+
export type CommonProperties = {
|
|
15
|
+
/**
|
|
16
|
+
* Short customer_id/customer_name are not readily available on the frontend,
|
|
17
|
+
* so pass the api_key in the meantime just like the existing events.
|
|
18
|
+
*/
|
|
19
|
+
api_key: string;
|
|
20
|
+
/**
|
|
21
|
+
* Primary key correlating all events in one checkout. Kept in the shared
|
|
22
|
+
* type even though it's assigned per event (not in a shared "common
|
|
23
|
+
* properties" object) — some events (e.g. a persisted succeeded/failed
|
|
24
|
+
* record) need to source it from historical context rather than the
|
|
25
|
+
* currently active checkout.
|
|
26
|
+
*/
|
|
27
|
+
checkout_id: string;
|
|
28
|
+
/** Human-readable connector name for the authenticated session wallet. */
|
|
29
|
+
connector_name: string | null;
|
|
30
|
+
flow: AnalyticsFlow;
|
|
31
|
+
user_id: string | null;
|
|
32
|
+
};
|
|
33
|
+
export type PaymentMethodProperties = {
|
|
34
|
+
/** Payment method as defined by the checkout domain. */
|
|
35
|
+
payment_method: string;
|
|
36
|
+
/** Checkout provider identity; null when not applicable or authoritative. */
|
|
37
|
+
provider: string | null;
|
|
38
|
+
};
|
|
39
|
+
/** Source/target/payment context shared by the deposit events. */
|
|
40
|
+
export type DepositAssetContextProperties = PaymentMethodProperties & {
|
|
41
|
+
source_chain: string | null;
|
|
42
|
+
source_asset: string | null;
|
|
43
|
+
source_asset_ticker: string | null;
|
|
44
|
+
target_chain: string;
|
|
45
|
+
target_asset: string;
|
|
46
|
+
target_asset_ticker: string | null;
|
|
47
|
+
};
|
|
48
|
+
/** Payload specific to {@link AnalyticsEvent.DEPOSIT_ASSET_SELECTED}. */
|
|
49
|
+
export type DepositAssetSelectedProperties = DepositAssetContextProperties & {
|
|
50
|
+
/** 0-based index of the chosen asset in the displayed list; `-1` if unresolved. */
|
|
51
|
+
asset_position: number;
|
|
52
|
+
/** Whether the chosen chain/token pair matches the flow's resolved default. */
|
|
53
|
+
is_default_token: boolean;
|
|
54
|
+
};
|
|
55
|
+
/** Payload specific to {@link AnalyticsEvent.DEPOSIT_AMOUNT_CONFIRMED}. */
|
|
56
|
+
export type DepositAmountConfirmedProperties = DepositAssetContextProperties & {
|
|
57
|
+
select_type: AmountSelectionType;
|
|
58
|
+
/**
|
|
59
|
+
* The quick option / recovery amount the user picked, formatted exactly as
|
|
60
|
+
* shown on its button (e.g. `"25%"`, `"$100"`). `null` when `select_type`
|
|
61
|
+
* is not `'preset'`.
|
|
62
|
+
*/
|
|
63
|
+
preset_amount: string | null;
|
|
64
|
+
trade_type: QuoteMode;
|
|
65
|
+
/**
|
|
66
|
+
* Source token amount the user pays — exact in EXACT_IN, estimated in
|
|
67
|
+
* EXACT_OUT. `null` when the estimate's unit price is unavailable.
|
|
68
|
+
*/
|
|
69
|
+
source_amount: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* Target token amount received — exact in EXACT_OUT, estimated in EXACT_IN.
|
|
72
|
+
* `null` when the estimate's unit price is unavailable.
|
|
73
|
+
*/
|
|
74
|
+
target_amount: string | null;
|
|
75
|
+
};
|
|
76
|
+
export type AnalyticsEventProperties = {
|
|
77
|
+
[AnalyticsEvent.DEPOSIT_ASSET_SELECTED]: DepositAssetSelectedProperties;
|
|
78
|
+
[AnalyticsEvent.DEPOSIT_AMOUNT_CONFIRMED]: DepositAmountConfirmedProperties;
|
|
79
|
+
};
|
|
80
|
+
type AnalyticsPropertyValue = string | number | boolean | null | undefined;
|
|
81
|
+
type AnalyticsEventShape<T extends AnalyticsEvent> = CommonProperties & AnalyticsEventProperties[T];
|
|
82
|
+
export type AnalyticsEventPayload<T extends AnalyticsEvent> = {
|
|
83
|
+
[K in keyof AnalyticsEventShape<T>]: AnalyticsEventShape<T>[K] extends AnalyticsPropertyValue ? AnalyticsEventShape<T>[K] : never;
|
|
84
|
+
};
|
|
85
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Round analytics amounts before Statsig stringifies event metadata. */
|
|
2
|
+
export declare function formatAnalyticsAmount(amount: number | null): string | null;
|
|
3
|
+
/**
|
|
4
|
+
* Explicit, non-recursive stringify for a flat analytics payload. Statsig
|
|
5
|
+
* event metadata must be Record<string, string>; values are stringified and
|
|
6
|
+
* null/undefined values (e.g. a not-applicable provider) are omitted.
|
|
7
|
+
*/
|
|
8
|
+
export declare function toStatsigMetadata(payload: Record<string, string | number | boolean | null | undefined>): Record<string, string>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { MeldServiceProvider } from '@funkit/api-base';
|
|
2
|
+
import { type PaymentMethodInfo } from '../../../domains/paymentMethods';
|
|
3
|
+
import type { QuoteMode } from '../../../domains/quoteMode';
|
|
4
|
+
import type { AmountSelectionType } from '../../../modals/CheckoutModal/InputAmount/state';
|
|
5
|
+
type AssetDescriptorArgs = {
|
|
6
|
+
chainId: string;
|
|
7
|
+
tokenAddress: string;
|
|
8
|
+
ticker: string | null;
|
|
9
|
+
};
|
|
10
|
+
export type TrackDepositAssetSelectedArgs = {
|
|
11
|
+
source: AssetDescriptorArgs;
|
|
12
|
+
target: AssetDescriptorArgs;
|
|
13
|
+
paymentMethodInfo: PaymentMethodInfo;
|
|
14
|
+
assetPosition: number;
|
|
15
|
+
isDefaultToken: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type TrackDepositAmountConfirmedArgs = {
|
|
18
|
+
/** Null for card/Meld deposits, which have no crypto source asset. */
|
|
19
|
+
source: AssetDescriptorArgs | null;
|
|
20
|
+
target: AssetDescriptorArgs;
|
|
21
|
+
paymentMethodInfo: PaymentMethodInfo;
|
|
22
|
+
/** Concrete Meld provider selected for card checkout. */
|
|
23
|
+
serviceProvider?: MeldServiceProvider;
|
|
24
|
+
selectType: AmountSelectionType;
|
|
25
|
+
presetAmount: string | null;
|
|
26
|
+
tradeType: QuoteMode;
|
|
27
|
+
sourceAmount: number | null;
|
|
28
|
+
targetAmount: number | null;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Gathers provider context and emits deposit-family analytics events.
|
|
32
|
+
*/
|
|
33
|
+
export declare function useDepositAnalytics(): {
|
|
34
|
+
trackDepositAssetSelected: (args: TrackDepositAssetSelectedArgs) => void;
|
|
35
|
+
trackDepositAmountConfirmed: (args: TrackDepositAmountConfirmedArgs) => void;
|
|
36
|
+
};
|
|
37
|
+
export {};
|