@funkit/connect 5.0.9 → 5.0.10
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 +6 -0
- package/dist/consts/funkit.d.ts +1 -0
- package/dist/index.js +140 -171
- package/dist/wallets/walletConnectors/index.js +42 -42
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/consts/funkit.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const RESERVED_GROUP_NAME = "funkit-web2";
|
|
|
11
11
|
export declare const DEFAULT_FUNWALLET_INDEX = 0;
|
|
12
12
|
export declare const FUN_WORKER_EOA_ADDR = "0x1881ad6e231a14A8Be0f9AE6f9EFd8f3CFb09919";
|
|
13
13
|
export declare const FUN_ORG_NAME = "Fun.xyz";
|
|
14
|
+
export declare const FUN_TERMS_URL = "https://fun.xyz/terms";
|
|
14
15
|
export declare const FROM_PROGRESS_CHECKOUT_STATES: CheckoutState[];
|
|
15
16
|
export declare const TO_PROGRESS_CHECKOUT_STATES: CheckoutState[];
|
|
16
17
|
export declare const IN_PROGRESS_CHECKOUT_STATES: CheckoutState[];
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
darkTheme
|
|
4
|
-
} from "./chunk-W45X55GI.js";
|
|
5
2
|
import {
|
|
6
3
|
lightTheme
|
|
7
4
|
} from "./chunk-N7ULOOYE.js";
|
|
5
|
+
import {
|
|
6
|
+
darkTheme
|
|
7
|
+
} from "./chunk-W45X55GI.js";
|
|
8
8
|
import {
|
|
9
9
|
systemFontStack
|
|
10
10
|
} from "./chunk-2T4ZDGAO.js";
|
|
@@ -395,7 +395,7 @@ function Avatar({ address, imageUrl, loading, size }) {
|
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
// src/components/ConnectButton/ConnectButton.tsx
|
|
398
|
-
import
|
|
398
|
+
import React218, { useEffect as useEffect46, useState as useState66 } from "react";
|
|
399
399
|
|
|
400
400
|
// src/css/touchableStyles.css.ts
|
|
401
401
|
var active = { shrink: "_7rkubb8", shrinkSm: "_7rkubb9" };
|
|
@@ -499,7 +499,7 @@ import PrivyJS, {
|
|
|
499
499
|
getUserEmbeddedWallet,
|
|
500
500
|
LocalStorage
|
|
501
501
|
} from "@privy-io/js-sdk-core";
|
|
502
|
-
import
|
|
502
|
+
import React215, {
|
|
503
503
|
createContext as createContext18,
|
|
504
504
|
useCallback as useCallback42,
|
|
505
505
|
useContext as useContext18,
|
|
@@ -534,6 +534,7 @@ var RESERVED_GROUP_NAME = "funkit-web2";
|
|
|
534
534
|
var DEFAULT_FUNWALLET_INDEX = 0;
|
|
535
535
|
var FUN_WORKER_EOA_ADDR = "0x1881ad6e231a14A8Be0f9AE6f9EFd8f3CFb09919";
|
|
536
536
|
var FUN_ORG_NAME = "Fun.xyz";
|
|
537
|
+
var FUN_TERMS_URL = "https://fun.xyz/terms";
|
|
537
538
|
var FROM_PROGRESS_CHECKOUT_STATES = [
|
|
538
539
|
CheckoutState.FROM_UNFUNDED,
|
|
539
540
|
CheckoutState.FROM_FUNDED,
|
|
@@ -1021,7 +1022,7 @@ var useFunkitConnectChainsById = () => groupChainsById(useFunkitConnectChains())
|
|
|
1021
1022
|
var useInitialChainId = () => useContext4(FunkitConnectChainContext).initialChainId;
|
|
1022
1023
|
|
|
1023
1024
|
// src/providers/ModalContext.tsx
|
|
1024
|
-
import
|
|
1025
|
+
import React214, {
|
|
1025
1026
|
createContext as createContext17,
|
|
1026
1027
|
useCallback as useCallback41,
|
|
1027
1028
|
useContext as useContext17,
|
|
@@ -11780,7 +11781,7 @@ function ChainModal({ onClose, open }) {
|
|
|
11780
11781
|
}
|
|
11781
11782
|
|
|
11782
11783
|
// src/modals/CheckoutModal/FunCheckoutModal.tsx
|
|
11783
|
-
import
|
|
11784
|
+
import React212 from "react";
|
|
11784
11785
|
|
|
11785
11786
|
// src/components/DydxSwitchModalTab/DydxSwitchModalTab.tsx
|
|
11786
11787
|
import React130, { useCallback as useCallback23 } from "react";
|
|
@@ -14668,14 +14669,14 @@ var DisclaimerText = ({
|
|
|
14668
14669
|
finalConvertedAssetName
|
|
14669
14670
|
);
|
|
14670
14671
|
const showCardDisclaimer = isCardPayment && cardDisclaimer;
|
|
14671
|
-
return showDydxDisclaimer ? /* @__PURE__ */ React153.createElement(Text, { size: "10", weight: "regular" }, showCardDisclaimer && `${cardDisclaimer} `, "By clicking on ", continueText, ", you agree to ", FUN_ORG_NAME, "'s", " ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href:
|
|
14672
|
+
return showDydxDisclaimer ? /* @__PURE__ */ React153.createElement(Text, { size: "10", weight: "regular" }, showCardDisclaimer && `${cardDisclaimer} `, "By clicking on ", continueText, ", you agree to ", FUN_ORG_NAME, "'s", " ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href: FUN_TERMS_URL, inline: true, text: "terms" }), " and this site's ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href: "https://dydx.trade/terms", inline: true, text: "terms" }), " and ", /* @__PURE__ */ React153.createElement(
|
|
14672
14673
|
FunLinkButton,
|
|
14673
14674
|
{
|
|
14674
14675
|
href: "https://dydx.trade/privacy",
|
|
14675
14676
|
inline: true,
|
|
14676
14677
|
text: "privacy policy"
|
|
14677
14678
|
}
|
|
14678
|
-
), ".") : /* @__PURE__ */ React153.createElement(Text, { size: "10", weight: "regular" }, isVertex && vertexText ? `${vertexText} ` : showCardDisclaimer && `${cardDisclaimer} `, "By clicking on ", continueText, ", you agree to our", " ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href:
|
|
14679
|
+
), ".") : /* @__PURE__ */ React153.createElement(Text, { size: "10", weight: "regular" }, isVertex && vertexText ? `${vertexText} ` : showCardDisclaimer && `${cardDisclaimer} `, "By clicking on ", continueText, ", you agree to our", " ", /* @__PURE__ */ React153.createElement(FunLinkButton, { href: FUN_TERMS_URL, inline: true, text: "terms" }), ".");
|
|
14679
14680
|
};
|
|
14680
14681
|
function useCardDisclaimer(checkoutItem, finalConvertedAssetName) {
|
|
14681
14682
|
const cardDisclaimer = useMemo22(() => {
|
|
@@ -21689,7 +21690,7 @@ function SourceChange({
|
|
|
21689
21690
|
// src/modals/CheckoutModal/TransferToken/TransferToken.tsx
|
|
21690
21691
|
import { FlagKey as FlagKey22 } from "@funkit/utils";
|
|
21691
21692
|
import { motion as motion8, useAnimationControls as useAnimationControls3 } from "motion/react";
|
|
21692
|
-
import
|
|
21693
|
+
import React211, { useRef as useRef19, useState as useState60 } from "react";
|
|
21693
21694
|
import { polygon as polygon6 } from "viem/chains";
|
|
21694
21695
|
|
|
21695
21696
|
// src/components/CopyAddress/CopyInputDisplayedAddress.tsx
|
|
@@ -21929,7 +21930,7 @@ import {
|
|
|
21929
21930
|
formatSecondsToReadableForm as formatSecondsToReadableForm4
|
|
21930
21931
|
} from "@funkit/utils";
|
|
21931
21932
|
import { motion as motion7, useAnimationControls as useAnimationControls2 } from "motion/react";
|
|
21932
|
-
import
|
|
21933
|
+
import React210 from "react";
|
|
21933
21934
|
import { useState as useState59 } from "react";
|
|
21934
21935
|
|
|
21935
21936
|
// src/components/Icons/New/DollarIcon.tsx
|
|
@@ -21980,9 +21981,9 @@ var FileIcon = () => {
|
|
|
21980
21981
|
);
|
|
21981
21982
|
};
|
|
21982
21983
|
|
|
21983
|
-
// src/components/Icons/New/
|
|
21984
|
+
// src/components/Icons/New/SpeedometerIcon.tsx
|
|
21984
21985
|
import React209 from "react";
|
|
21985
|
-
var
|
|
21986
|
+
var SpeedometerIcon = () => {
|
|
21986
21987
|
return /* @__PURE__ */ React209.createElement(
|
|
21987
21988
|
"svg",
|
|
21988
21989
|
{
|
|
@@ -21993,30 +21994,6 @@ var MessageIcon = () => {
|
|
|
21993
21994
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21994
21995
|
},
|
|
21995
21996
|
/* @__PURE__ */ React209.createElement(
|
|
21996
|
-
"path",
|
|
21997
|
-
{
|
|
21998
|
-
fillRule: "evenodd",
|
|
21999
|
-
clipRule: "evenodd",
|
|
22000
|
-
d: "M1 6C1 3.23858 3.23858 1 6 1C8.76142 1 11 3.23858 11 6C11 8.76142 8.76142 11 6 11C5.33584 11 4.70075 10.8702 4.11961 10.6342C4.06711 10.6129 4.03681 10.6006 4.01443 10.5922C4.01179 10.5912 4.00949 10.5904 4.00752 10.5897L4.00515 10.59C3.98669 10.5925 3.96154 10.5966 3.91352 10.6046L2.12024 10.9035C2.03993 10.9169 1.95006 10.9319 1.87202 10.9378C1.78693 10.9443 1.65156 10.9465 1.5085 10.8851C1.33165 10.8093 1.19072 10.6684 1.11486 10.4915C1.0535 10.3484 1.05574 10.2131 1.06216 10.128C1.06805 10.0499 1.08306 9.96009 1.09647 9.87978C1.09728 9.87496 1.09808 9.87017 1.09887 9.86542L1.39536 8.08648C1.40336 8.03846 1.4075 8.01331 1.41 7.99485L1.41032 7.99247C1.4096 7.99051 1.40876 7.98821 1.40776 7.98557C1.39936 7.96319 1.3871 7.93289 1.36578 7.88039C1.12976 7.29925 1 6.66416 1 6Z",
|
|
22001
|
-
fill: "currentColor"
|
|
22002
|
-
}
|
|
22003
|
-
)
|
|
22004
|
-
);
|
|
22005
|
-
};
|
|
22006
|
-
|
|
22007
|
-
// src/components/Icons/New/SpeedometerIcon.tsx
|
|
22008
|
-
import React210 from "react";
|
|
22009
|
-
var SpeedometerIcon = () => {
|
|
22010
|
-
return /* @__PURE__ */ React210.createElement(
|
|
22011
|
-
"svg",
|
|
22012
|
-
{
|
|
22013
|
-
width: "12",
|
|
22014
|
-
height: "12",
|
|
22015
|
-
viewBox: "0 0 12 12",
|
|
22016
|
-
fill: "none",
|
|
22017
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
22018
|
-
},
|
|
22019
|
-
/* @__PURE__ */ React210.createElement(
|
|
22020
21997
|
"path",
|
|
22021
21998
|
{
|
|
22022
21999
|
fillRule: "evenodd",
|
|
@@ -22056,7 +22033,7 @@ var TransferTokenDetails = ({
|
|
|
22056
22033
|
}
|
|
22057
22034
|
};
|
|
22058
22035
|
const gasFees = void 0;
|
|
22059
|
-
return /* @__PURE__ */
|
|
22036
|
+
return /* @__PURE__ */ React210.createElement(
|
|
22060
22037
|
Box,
|
|
22061
22038
|
{
|
|
22062
22039
|
marginBottom: "1",
|
|
@@ -22065,7 +22042,7 @@ var TransferTokenDetails = ({
|
|
|
22065
22042
|
display: "flex",
|
|
22066
22043
|
flexDirection: "column"
|
|
22067
22044
|
},
|
|
22068
|
-
/* @__PURE__ */
|
|
22045
|
+
/* @__PURE__ */ React210.createElement(
|
|
22069
22046
|
Box,
|
|
22070
22047
|
{
|
|
22071
22048
|
as: "button",
|
|
@@ -22081,17 +22058,17 @@ var TransferTokenDetails = ({
|
|
|
22081
22058
|
disabled,
|
|
22082
22059
|
onClick: handleExpandToggle
|
|
22083
22060
|
},
|
|
22084
|
-
/* @__PURE__ */
|
|
22061
|
+
/* @__PURE__ */ React210.createElement(
|
|
22085
22062
|
TransferTokenDetail,
|
|
22086
22063
|
{
|
|
22087
22064
|
text: "Minimum deposit:",
|
|
22088
22065
|
value: minAmount ? `$${minAmount}` : "no minimum",
|
|
22089
|
-
icon: /* @__PURE__ */
|
|
22066
|
+
icon: /* @__PURE__ */ React210.createElement(InfoIcon, { filled: true })
|
|
22090
22067
|
}
|
|
22091
22068
|
),
|
|
22092
|
-
/* @__PURE__ */
|
|
22069
|
+
/* @__PURE__ */ React210.createElement(AnimatedCaretDownIcon, { expanded: isDisplayed })
|
|
22093
22070
|
),
|
|
22094
|
-
/* @__PURE__ */
|
|
22071
|
+
/* @__PURE__ */ React210.createElement(
|
|
22095
22072
|
motion7.div,
|
|
22096
22073
|
{
|
|
22097
22074
|
initial: "collapsed",
|
|
@@ -22102,7 +22079,7 @@ var TransferTokenDetails = ({
|
|
|
22102
22079
|
expanded: { height: "auto", opacity: 1 }
|
|
22103
22080
|
}
|
|
22104
22081
|
},
|
|
22105
|
-
/* @__PURE__ */
|
|
22082
|
+
/* @__PURE__ */ React210.createElement(
|
|
22106
22083
|
Box,
|
|
22107
22084
|
{
|
|
22108
22085
|
paddingX: "12",
|
|
@@ -22111,7 +22088,7 @@ var TransferTokenDetails = ({
|
|
|
22111
22088
|
gap: "6",
|
|
22112
22089
|
paddingBottom: "8"
|
|
22113
22090
|
},
|
|
22114
|
-
/* @__PURE__ */
|
|
22091
|
+
/* @__PURE__ */ React210.createElement(
|
|
22115
22092
|
TransferTokenDetail,
|
|
22116
22093
|
{
|
|
22117
22094
|
paddingY: "0",
|
|
@@ -22119,30 +22096,30 @@ var TransferTokenDetails = ({
|
|
|
22119
22096
|
text: `${priceImpact.label}:`,
|
|
22120
22097
|
isApproximate: true,
|
|
22121
22098
|
value: `${formatNumberAndStringify(priceImpact.value, void 0, { minimumFractionDigits: 2, maximumFractionDigits: 2 })}%`,
|
|
22122
|
-
icon: /* @__PURE__ */
|
|
22099
|
+
icon: /* @__PURE__ */ React210.createElement(DollarIcon, null)
|
|
22123
22100
|
}
|
|
22124
22101
|
),
|
|
22125
|
-
gasFees && /* @__PURE__ */
|
|
22102
|
+
gasFees && /* @__PURE__ */ React210.createElement(
|
|
22126
22103
|
TransferTokenDetail,
|
|
22127
22104
|
{
|
|
22128
22105
|
text: "Estimated gas:",
|
|
22129
22106
|
isApproximate: true,
|
|
22130
22107
|
value: `$${gasFees}`,
|
|
22131
|
-
icon: /* @__PURE__ */
|
|
22108
|
+
icon: /* @__PURE__ */ React210.createElement(DollarIcon, null)
|
|
22132
22109
|
}
|
|
22133
22110
|
),
|
|
22134
|
-
/* @__PURE__ */
|
|
22111
|
+
/* @__PURE__ */ React210.createElement(
|
|
22135
22112
|
TransferTokenDetail,
|
|
22136
22113
|
{
|
|
22137
22114
|
text: "Estimated processing time:",
|
|
22138
22115
|
value: formatSecondsToReadableForm4(timeEstimation, true),
|
|
22139
|
-
icon: /* @__PURE__ */
|
|
22116
|
+
icon: /* @__PURE__ */ React210.createElement(SpeedometerIcon, null)
|
|
22140
22117
|
}
|
|
22141
22118
|
),
|
|
22142
|
-
/* @__PURE__ */
|
|
22119
|
+
/* @__PURE__ */ React210.createElement(
|
|
22143
22120
|
TransferTokenDetail,
|
|
22144
22121
|
{
|
|
22145
|
-
text: /* @__PURE__ */
|
|
22122
|
+
text: /* @__PURE__ */ React210.createElement(React210.Fragment, null, "Have questions?", " ", /* @__PURE__ */ React210.createElement(
|
|
22146
22123
|
FunLinkButton,
|
|
22147
22124
|
{
|
|
22148
22125
|
inline: true,
|
|
@@ -22151,22 +22128,7 @@ var TransferTokenDetails = ({
|
|
|
22151
22128
|
textProps: { size: "12", weight: "regular" }
|
|
22152
22129
|
}
|
|
22153
22130
|
)),
|
|
22154
|
-
icon: /* @__PURE__ */
|
|
22155
|
-
}
|
|
22156
|
-
),
|
|
22157
|
-
/* @__PURE__ */ React211.createElement(
|
|
22158
|
-
TransferTokenDetail,
|
|
22159
|
-
{
|
|
22160
|
-
text: /* @__PURE__ */ React211.createElement(React211.Fragment, null, /* @__PURE__ */ React211.createElement(
|
|
22161
|
-
FunLinkButton,
|
|
22162
|
-
{
|
|
22163
|
-
inline: true,
|
|
22164
|
-
text: "Terms & conditions",
|
|
22165
|
-
href: "https://fun.xyz/terms",
|
|
22166
|
-
textProps: { size: "12", weight: "regular" }
|
|
22167
|
-
}
|
|
22168
|
-
), " ", "apply"),
|
|
22169
|
-
icon: /* @__PURE__ */ React211.createElement(MessageIcon, null)
|
|
22131
|
+
icon: /* @__PURE__ */ React210.createElement(FileIcon, null)
|
|
22170
22132
|
}
|
|
22171
22133
|
)
|
|
22172
22134
|
)
|
|
@@ -22181,7 +22143,7 @@ var TransferTokenDetail = ({
|
|
|
22181
22143
|
...boxProps
|
|
22182
22144
|
}) => {
|
|
22183
22145
|
const valueLabel = value && (isApproximate ? ` ~${value}` : ` ${value}`);
|
|
22184
|
-
return /* @__PURE__ */
|
|
22146
|
+
return /* @__PURE__ */ React210.createElement(Box, { display: "flex", gap: "6", alignItems: "center", paddingY: "2", ...boxProps }, /* @__PURE__ */ React210.createElement(
|
|
22185
22147
|
Box,
|
|
22186
22148
|
{
|
|
22187
22149
|
color: "secondaryText",
|
|
@@ -22190,7 +22152,7 @@ var TransferTokenDetail = ({
|
|
|
22190
22152
|
justifyContent: "center"
|
|
22191
22153
|
},
|
|
22192
22154
|
icon
|
|
22193
|
-
), /* @__PURE__ */
|
|
22155
|
+
), /* @__PURE__ */ React210.createElement(Text, { size: "12" }, text, value && /* @__PURE__ */ React210.createElement(Text, { size: "12", weight: "medium", display: "inline" }, valueLabel)));
|
|
22194
22156
|
};
|
|
22195
22157
|
|
|
22196
22158
|
// src/hooks/useTokenTransfer.ts
|
|
@@ -22313,7 +22275,7 @@ function TransferToken({
|
|
|
22313
22275
|
const isLoadingDepositAddress = depositAddress === void 0;
|
|
22314
22276
|
return (
|
|
22315
22277
|
// This ID is used in the DialogContent css to set the height of the modal
|
|
22316
|
-
/* @__PURE__ */
|
|
22278
|
+
/* @__PURE__ */ React211.createElement(Box, { id: "token-transfer-page" }, /* @__PURE__ */ React211.createElement(
|
|
22317
22279
|
Box,
|
|
22318
22280
|
{
|
|
22319
22281
|
display: "flex",
|
|
@@ -22322,17 +22284,17 @@ function TransferToken({
|
|
|
22322
22284
|
justifyContent: "center",
|
|
22323
22285
|
gap: "18"
|
|
22324
22286
|
},
|
|
22325
|
-
/* @__PURE__ */
|
|
22287
|
+
/* @__PURE__ */ React211.createElement(Box, { display: "flex", flexDirection: "column", width: "full" }, /* @__PURE__ */ React211.createElement(
|
|
22326
22288
|
SourcePaymentMethodItem,
|
|
22327
22289
|
{
|
|
22328
22290
|
type: "token_transfer" /* TOKEN_TRANSFER */,
|
|
22329
22291
|
keyText: textCustomizations.transferTokens,
|
|
22330
22292
|
disclaimerText: "No limit",
|
|
22331
|
-
keyIcon: /* @__PURE__ */
|
|
22293
|
+
keyIcon: /* @__PURE__ */ React211.createElement(LightningBoltIcon, null),
|
|
22332
22294
|
onClick: () => onNext({})
|
|
22333
22295
|
}
|
|
22334
22296
|
)),
|
|
22335
|
-
/* @__PURE__ */
|
|
22297
|
+
/* @__PURE__ */ React211.createElement(Box, { width: "full", display: "flex", gap: "12" }, /* @__PURE__ */ React211.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React211.createElement(Text, { size: "12", weight: "medium" }, "Token"), /* @__PURE__ */ React211.createElement(
|
|
22336
22298
|
TokenDropdown_default,
|
|
22337
22299
|
{
|
|
22338
22300
|
defaultSelectedToken,
|
|
@@ -22356,7 +22318,7 @@ function TransferToken({
|
|
|
22356
22318
|
}
|
|
22357
22319
|
}
|
|
22358
22320
|
}
|
|
22359
|
-
)), /* @__PURE__ */
|
|
22321
|
+
)), /* @__PURE__ */ React211.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React211.createElement(Text, { size: "12", weight: "medium" }, "Chain"), /* @__PURE__ */ React211.createElement(
|
|
22360
22322
|
ChainDropdown,
|
|
22361
22323
|
{
|
|
22362
22324
|
selectedToken,
|
|
@@ -22374,7 +22336,7 @@ function TransferToken({
|
|
|
22374
22336
|
}
|
|
22375
22337
|
}
|
|
22376
22338
|
))),
|
|
22377
|
-
/* @__PURE__ */
|
|
22339
|
+
/* @__PURE__ */ React211.createElement(
|
|
22378
22340
|
Box,
|
|
22379
22341
|
{
|
|
22380
22342
|
display: "flex",
|
|
@@ -22382,7 +22344,7 @@ function TransferToken({
|
|
|
22382
22344
|
justifyContent: "center",
|
|
22383
22345
|
padding: "20"
|
|
22384
22346
|
},
|
|
22385
|
-
isLoadingDepositAddress ? /* @__PURE__ */
|
|
22347
|
+
isLoadingDepositAddress ? /* @__PURE__ */ React211.createElement(QRCodeSkeletonLoader_default, { diagonalDimension: 12 }) : /* @__PURE__ */ React211.createElement(
|
|
22386
22348
|
motion8.div,
|
|
22387
22349
|
{
|
|
22388
22350
|
onHoverStart: toggleQrHover,
|
|
@@ -22402,7 +22364,7 @@ function TransferToken({
|
|
|
22402
22364
|
},
|
|
22403
22365
|
animate: controls
|
|
22404
22366
|
},
|
|
22405
|
-
/* @__PURE__ */
|
|
22367
|
+
/* @__PURE__ */ React211.createElement(
|
|
22406
22368
|
QRCode,
|
|
22407
22369
|
{
|
|
22408
22370
|
withShadow: true,
|
|
@@ -22417,26 +22379,33 @@ function TransferToken({
|
|
|
22417
22379
|
)
|
|
22418
22380
|
)
|
|
22419
22381
|
),
|
|
22420
|
-
/* @__PURE__ */
|
|
22382
|
+
/* @__PURE__ */ React211.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "12" }, /* @__PURE__ */ React211.createElement(Box, { width: "full", display: "flex", flexDirection: "column", gap: "4" }, /* @__PURE__ */ React211.createElement(
|
|
22421
22383
|
Box,
|
|
22422
22384
|
{
|
|
22423
22385
|
display: "flex",
|
|
22424
22386
|
alignItems: "center",
|
|
22425
|
-
|
|
22387
|
+
justifyContent: "space-between",
|
|
22426
22388
|
ref: disclaimerTextWrapperRef
|
|
22427
22389
|
},
|
|
22428
|
-
/* @__PURE__ */
|
|
22429
|
-
/* @__PURE__ */ React212.createElement(
|
|
22390
|
+
/* @__PURE__ */ React211.createElement(Box, { display: "flex", alignItems: "center", gap: "4" }, /* @__PURE__ */ React211.createElement(Text, { size: "12", weight: "medium" }, "Your deposit address"), /* @__PURE__ */ React211.createElement(
|
|
22430
22391
|
FunTooltip,
|
|
22431
22392
|
{
|
|
22432
22393
|
content: `Send any accepted token to this address and it will auto
|
|
22433
|
-
|
|
22394
|
+
swap to ${targetAssetTicker} in your account.`,
|
|
22434
22395
|
wrapperElementRef: disclaimerTextWrapperRef,
|
|
22435
22396
|
enableDynamicPositioning: true
|
|
22436
22397
|
},
|
|
22437
|
-
/* @__PURE__ */
|
|
22398
|
+
/* @__PURE__ */ React211.createElement(Box, { color: { base: "tertiaryText", hover: "primaryText" } }, /* @__PURE__ */ React211.createElement(InfoIcon, null))
|
|
22399
|
+
)),
|
|
22400
|
+
/* @__PURE__ */ React211.createElement(
|
|
22401
|
+
FunLinkButton,
|
|
22402
|
+
{
|
|
22403
|
+
text: "Terms apply",
|
|
22404
|
+
href: FUN_TERMS_URL,
|
|
22405
|
+
textProps: { size: "12", weight: "regular" }
|
|
22406
|
+
}
|
|
22438
22407
|
)
|
|
22439
|
-
), isLoadingDepositAddress ? /* @__PURE__ */
|
|
22408
|
+
), isLoadingDepositAddress ? /* @__PURE__ */ React211.createElement(FunSkeletonBlock, { height: "66", width: "full" }) : /* @__PURE__ */ React211.createElement(CopyInputDisplayedAddress, { address: depositAddress })), /* @__PURE__ */ React211.createElement(FunInfoBanner, null), /* @__PURE__ */ React211.createElement(
|
|
22440
22409
|
TransferTokenDetails,
|
|
22441
22410
|
{
|
|
22442
22411
|
disabled: isLoadingDepositAddress,
|
|
@@ -22580,7 +22549,7 @@ function useTitleConfig(checkoutItem, state) {
|
|
|
22580
22549
|
// src/modals/CheckoutModal/FunCheckoutModal.tsx
|
|
22581
22550
|
function FunCheckoutModalStepComponent(props) {
|
|
22582
22551
|
const { Component: Component2 } = CheckoutModalSteps[props.modalState.step];
|
|
22583
|
-
return /* @__PURE__ */
|
|
22552
|
+
return /* @__PURE__ */ React212.createElement(Component2, { ...props });
|
|
22584
22553
|
}
|
|
22585
22554
|
function FunCheckoutModalInner({
|
|
22586
22555
|
checkoutItem,
|
|
@@ -22625,7 +22594,7 @@ function FunCheckoutModalInner({
|
|
|
22625
22594
|
depositAddress: checkoutItem.depositAddress ?? void 0,
|
|
22626
22595
|
isCheckoutDetailView: modalState.step === "checkout_complete" /* CHECKOUT_COMPLETE */,
|
|
22627
22596
|
paddingTop: 0,
|
|
22628
|
-
topbar: /* @__PURE__ */
|
|
22597
|
+
topbar: /* @__PURE__ */ React212.createElement(
|
|
22629
22598
|
Dialog.Title,
|
|
22630
22599
|
{
|
|
22631
22600
|
hasBackButton: hasBack && !isBlocked,
|
|
@@ -22639,7 +22608,7 @@ function FunCheckoutModalInner({
|
|
|
22639
22608
|
),
|
|
22640
22609
|
withTopDivider: checkoutConfig.modalTitleMeta ? "always" : "scroll"
|
|
22641
22610
|
});
|
|
22642
|
-
return /* @__PURE__ */
|
|
22611
|
+
return /* @__PURE__ */ React212.createElement(
|
|
22643
22612
|
Dialog,
|
|
22644
22613
|
{
|
|
22645
22614
|
open,
|
|
@@ -22648,7 +22617,7 @@ function FunCheckoutModalInner({
|
|
|
22648
22617
|
isHidden: modalState.isSoftHidden
|
|
22649
22618
|
},
|
|
22650
22619
|
topbar,
|
|
22651
|
-
/* @__PURE__ */
|
|
22620
|
+
/* @__PURE__ */ React212.createElement(
|
|
22652
22621
|
Dialog.Content,
|
|
22653
22622
|
{
|
|
22654
22623
|
fullHeight: showFullHeight,
|
|
@@ -22658,22 +22627,22 @@ function FunCheckoutModalInner({
|
|
|
22658
22627
|
withTopDivider,
|
|
22659
22628
|
withBottomDivider: modalState.step === "transfer_token" /* TRANSFER_TOKEN */ ? "never" : "scroll"
|
|
22660
22629
|
},
|
|
22661
|
-
isBlocked ? /* @__PURE__ */
|
|
22630
|
+
isBlocked ? /* @__PURE__ */ React212.createElement(
|
|
22662
22631
|
FunCheckoutBlocked,
|
|
22663
22632
|
{
|
|
22664
22633
|
reason: isUserGeoblocked ? "geoblock" : "security"
|
|
22665
22634
|
}
|
|
22666
|
-
) : /* @__PURE__ */
|
|
22635
|
+
) : /* @__PURE__ */ React212.createElement(React212.Fragment, null, /* @__PURE__ */ React212.createElement(
|
|
22667
22636
|
DydxSwitchTab,
|
|
22668
22637
|
{
|
|
22669
22638
|
checkoutItem,
|
|
22670
22639
|
showSwitch: showDydxSwitch,
|
|
22671
22640
|
onClose: onCloseWrapper
|
|
22672
22641
|
}
|
|
22673
|
-
), /* @__PURE__ */
|
|
22642
|
+
), /* @__PURE__ */ React212.createElement(FunCheckoutModalStepComponent, { ...modalProps }))
|
|
22674
22643
|
),
|
|
22675
|
-
/* @__PURE__ */
|
|
22676
|
-
!isBlocked && /* @__PURE__ */
|
|
22644
|
+
/* @__PURE__ */ React212.createElement(Dialog.BottomSection, { id: CHECKOUT_MODAL_BOTTOM_BAR_ID }),
|
|
22645
|
+
!isBlocked && /* @__PURE__ */ React212.createElement(
|
|
22677
22646
|
CheckoutNotifications,
|
|
22678
22647
|
{
|
|
22679
22648
|
onHelp: handleCheckoutHelp,
|
|
@@ -22687,7 +22656,7 @@ function FunCheckoutModal({ onClose, open }) {
|
|
|
22687
22656
|
if (!checkoutItem) {
|
|
22688
22657
|
return null;
|
|
22689
22658
|
}
|
|
22690
|
-
return /* @__PURE__ */
|
|
22659
|
+
return /* @__PURE__ */ React212.createElement(
|
|
22691
22660
|
FunCheckoutModalInner,
|
|
22692
22661
|
{
|
|
22693
22662
|
checkoutItem,
|
|
@@ -22698,7 +22667,7 @@ function FunCheckoutModal({ onClose, open }) {
|
|
|
22698
22667
|
}
|
|
22699
22668
|
|
|
22700
22669
|
// src/modals/ConnectModal/ConnectModal.tsx
|
|
22701
|
-
import
|
|
22670
|
+
import React213 from "react";
|
|
22702
22671
|
import { useAccount as useAccount9 } from "wagmi";
|
|
22703
22672
|
var TITLE_ID2 = "rk_connect_title";
|
|
22704
22673
|
function ConnectModal({
|
|
@@ -22709,12 +22678,12 @@ function ConnectModal({
|
|
|
22709
22678
|
const connectionStatus = useConnectionStatus();
|
|
22710
22679
|
const { disconnect } = useFunkitDisconnect();
|
|
22711
22680
|
const { isConnecting } = useAccount9();
|
|
22712
|
-
const onConnectModalCancel =
|
|
22681
|
+
const onConnectModalCancel = React213.useCallback(() => {
|
|
22713
22682
|
if (isConnecting) disconnect();
|
|
22714
22683
|
onClose();
|
|
22715
22684
|
}, [onClose, disconnect, isConnecting]);
|
|
22716
22685
|
if (connectionStatus === "disconnected" || connectionStatus === "loading") {
|
|
22717
|
-
return /* @__PURE__ */
|
|
22686
|
+
return /* @__PURE__ */ React213.createElement(
|
|
22718
22687
|
Dialog,
|
|
22719
22688
|
{
|
|
22720
22689
|
onClose: onConnectModalCancel,
|
|
@@ -22722,7 +22691,7 @@ function ConnectModal({
|
|
|
22722
22691
|
titleId: TITLE_ID2,
|
|
22723
22692
|
isSmartCloseable: true
|
|
22724
22693
|
},
|
|
22725
|
-
/* @__PURE__ */
|
|
22694
|
+
/* @__PURE__ */ React213.createElement(
|
|
22726
22695
|
FunConnectOptions,
|
|
22727
22696
|
{
|
|
22728
22697
|
onClose: onConnectModalCancel,
|
|
@@ -22813,7 +22782,7 @@ function ModalProvider({ children }) {
|
|
|
22813
22782
|
useEffect43(() => {
|
|
22814
22783
|
if (isUnauthenticated) closeModals();
|
|
22815
22784
|
}, [isUnauthenticated]);
|
|
22816
|
-
return /* @__PURE__ */
|
|
22785
|
+
return /* @__PURE__ */ React214.createElement(
|
|
22817
22786
|
ModalContext.Provider,
|
|
22818
22787
|
{
|
|
22819
22788
|
value: useMemo38(
|
|
@@ -22851,7 +22820,7 @@ function ModalProvider({ children }) {
|
|
|
22851
22820
|
)
|
|
22852
22821
|
},
|
|
22853
22822
|
children,
|
|
22854
|
-
/* @__PURE__ */
|
|
22823
|
+
/* @__PURE__ */ React214.createElement(
|
|
22855
22824
|
ConnectModal,
|
|
22856
22825
|
{
|
|
22857
22826
|
onClose: closeConnectModal,
|
|
@@ -22859,7 +22828,7 @@ function ModalProvider({ children }) {
|
|
|
22859
22828
|
walletsOnly: !!walletsOnly
|
|
22860
22829
|
}
|
|
22861
22830
|
),
|
|
22862
|
-
/* @__PURE__ */
|
|
22831
|
+
/* @__PURE__ */ React214.createElement(
|
|
22863
22832
|
AccountModal,
|
|
22864
22833
|
{
|
|
22865
22834
|
onClose: closeAccountModal,
|
|
@@ -22867,8 +22836,8 @@ function ModalProvider({ children }) {
|
|
|
22867
22836
|
defaultTab: accountModalTab
|
|
22868
22837
|
}
|
|
22869
22838
|
),
|
|
22870
|
-
/* @__PURE__ */
|
|
22871
|
-
/* @__PURE__ */
|
|
22839
|
+
/* @__PURE__ */ React214.createElement(ChainModal, { onClose: closeChainModal, open: chainModalOpen }),
|
|
22840
|
+
/* @__PURE__ */ React214.createElement(
|
|
22872
22841
|
FunCheckoutModal,
|
|
22873
22842
|
{
|
|
22874
22843
|
onClose: closeFunCheckoutModal,
|
|
@@ -23603,7 +23572,7 @@ var FunkitWeb2Provider = ({
|
|
|
23603
23572
|
handleFunkitWeb2Logout,
|
|
23604
23573
|
web2UserInfo
|
|
23605
23574
|
};
|
|
23606
|
-
return /* @__PURE__ */
|
|
23575
|
+
return /* @__PURE__ */ React215.createElement(FunkitWeb2Context.Provider, { value: contextValue }, privyIframeUrl ? /* @__PURE__ */ React215.createElement(
|
|
23607
23576
|
"iframe",
|
|
23608
23577
|
{
|
|
23609
23578
|
id: PRIVY_IFRAME_ID,
|
|
@@ -23636,7 +23605,7 @@ function useConnectionStatus() {
|
|
|
23636
23605
|
}
|
|
23637
23606
|
|
|
23638
23607
|
// src/providers/ShowBalanceContext.tsx
|
|
23639
|
-
import
|
|
23608
|
+
import React216, {
|
|
23640
23609
|
createContext as createContext19,
|
|
23641
23610
|
useContext as useContext19,
|
|
23642
23611
|
useState as useState64
|
|
@@ -23647,13 +23616,13 @@ var ShowBalanceContext = createContext19({
|
|
|
23647
23616
|
});
|
|
23648
23617
|
function ShowBalanceProvider({ children }) {
|
|
23649
23618
|
const [showBalance, setShowBalance] = useState64();
|
|
23650
|
-
return /* @__PURE__ */
|
|
23619
|
+
return /* @__PURE__ */ React216.createElement(ShowBalanceContext.Provider, { value: { showBalance, setShowBalance } }, children);
|
|
23651
23620
|
}
|
|
23652
23621
|
var useShowBalance = () => useContext19(ShowBalanceContext);
|
|
23653
23622
|
|
|
23654
23623
|
// src/components/ConnectButton/ConnectButtonRenderer.tsx
|
|
23655
23624
|
import { formatCurrencyAndStringify as formatCurrencyAndStringify11, isMobile as isMobile14, noop as noop8 } from "@funkit/utils";
|
|
23656
|
-
import
|
|
23625
|
+
import React217 from "react";
|
|
23657
23626
|
import { useAccount as useAccount12, useBalance, useConfig as useConfig6 } from "wagmi";
|
|
23658
23627
|
|
|
23659
23628
|
// src/hooks/useIsMounted.ts
|
|
@@ -23744,7 +23713,7 @@ function ConnectButtonRenderer({
|
|
|
23744
23713
|
const { openChainModal } = useChainModal();
|
|
23745
23714
|
const { openAccountModal } = useAccountModal();
|
|
23746
23715
|
const { accountModalOpen, chainModalOpen, connectModalOpen } = useModalState();
|
|
23747
|
-
return /* @__PURE__ */
|
|
23716
|
+
return /* @__PURE__ */ React217.createElement(React217.Fragment, null, children({
|
|
23748
23717
|
account: address ? {
|
|
23749
23718
|
address,
|
|
23750
23719
|
balanceDecimals: balanceData?.decimals,
|
|
@@ -23800,7 +23769,7 @@ function ChainSelectorButton({
|
|
|
23800
23769
|
openChainModal,
|
|
23801
23770
|
chain
|
|
23802
23771
|
}) {
|
|
23803
|
-
return /* @__PURE__ */
|
|
23772
|
+
return /* @__PURE__ */ React218.createElement(
|
|
23804
23773
|
Box,
|
|
23805
23774
|
{
|
|
23806
23775
|
alignItems: "center",
|
|
@@ -23828,7 +23797,7 @@ function ChainSelectorButton({
|
|
|
23828
23797
|
type: "button",
|
|
23829
23798
|
...connectButtonStyles
|
|
23830
23799
|
},
|
|
23831
|
-
unsupportedChain ? /* @__PURE__ */
|
|
23800
|
+
unsupportedChain ? /* @__PURE__ */ React218.createElement(Box, { alignItems: "center", display: "flex", height: "24", paddingX: "4" }, "Wrong network") : /* @__PURE__ */ React218.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, chain.hasIcon ? /* @__PURE__ */ React218.createElement(
|
|
23832
23801
|
Box,
|
|
23833
23802
|
{
|
|
23834
23803
|
display: mapResponsiveValue(
|
|
@@ -23838,7 +23807,7 @@ function ChainSelectorButton({
|
|
|
23838
23807
|
height: "12",
|
|
23839
23808
|
width: "12"
|
|
23840
23809
|
},
|
|
23841
|
-
/* @__PURE__ */
|
|
23810
|
+
/* @__PURE__ */ React218.createElement(
|
|
23842
23811
|
AsyncImage,
|
|
23843
23812
|
{
|
|
23844
23813
|
alt: chain.name ?? "Chain icon",
|
|
@@ -23849,7 +23818,7 @@ function ChainSelectorButton({
|
|
|
23849
23818
|
src: chain.iconUrl
|
|
23850
23819
|
}
|
|
23851
23820
|
)
|
|
23852
|
-
) : null, /* @__PURE__ */
|
|
23821
|
+
) : null, /* @__PURE__ */ React218.createElement(
|
|
23853
23822
|
Box,
|
|
23854
23823
|
{
|
|
23855
23824
|
display: mapResponsiveValue(chainStatus, (value) => {
|
|
@@ -23869,7 +23838,7 @@ function AccountButton({
|
|
|
23869
23838
|
showBalance,
|
|
23870
23839
|
accountStatus
|
|
23871
23840
|
}) {
|
|
23872
|
-
return /* @__PURE__ */
|
|
23841
|
+
return /* @__PURE__ */ React218.createElement(
|
|
23873
23842
|
Box,
|
|
23874
23843
|
{
|
|
23875
23844
|
alignItems: "center",
|
|
@@ -23889,7 +23858,7 @@ function AccountButton({
|
|
|
23889
23858
|
gap: "16",
|
|
23890
23859
|
...connectButtonStyles
|
|
23891
23860
|
},
|
|
23892
|
-
account.displayBalance && /* @__PURE__ */
|
|
23861
|
+
account.displayBalance && /* @__PURE__ */ React218.createElement(
|
|
23893
23862
|
Box,
|
|
23894
23863
|
{
|
|
23895
23864
|
display: mapResponsiveValue(
|
|
@@ -23899,7 +23868,7 @@ function AccountButton({
|
|
|
23899
23868
|
},
|
|
23900
23869
|
account.displayBalance
|
|
23901
23870
|
),
|
|
23902
|
-
/* @__PURE__ */
|
|
23871
|
+
/* @__PURE__ */ React218.createElement(Box, { alignItems: "center", display: "flex", gap: "6" }, /* @__PURE__ */ React218.createElement(
|
|
23903
23872
|
Box,
|
|
23904
23873
|
{
|
|
23905
23874
|
display: mapResponsiveValue(
|
|
@@ -23907,7 +23876,7 @@ function AccountButton({
|
|
|
23907
23876
|
(value) => value === "full" || value === "avatar" ? "block" : "none"
|
|
23908
23877
|
)
|
|
23909
23878
|
},
|
|
23910
|
-
/* @__PURE__ */
|
|
23879
|
+
/* @__PURE__ */ React218.createElement(
|
|
23911
23880
|
Avatar,
|
|
23912
23881
|
{
|
|
23913
23882
|
address: account.address,
|
|
@@ -23916,7 +23885,7 @@ function AccountButton({
|
|
|
23916
23885
|
size: 12
|
|
23917
23886
|
}
|
|
23918
23887
|
)
|
|
23919
|
-
), /* @__PURE__ */
|
|
23888
|
+
), /* @__PURE__ */ React218.createElement(
|
|
23920
23889
|
Box,
|
|
23921
23890
|
{
|
|
23922
23891
|
display: mapResponsiveValue(
|
|
@@ -23947,7 +23916,7 @@ function ConnectButton({
|
|
|
23947
23916
|
setShowBalance(showBalance);
|
|
23948
23917
|
if (!ready) setReady(true);
|
|
23949
23918
|
}, [showBalance, setShowBalance, ready]);
|
|
23950
|
-
return ready ? /* @__PURE__ */
|
|
23919
|
+
return ready ? /* @__PURE__ */ React218.createElement(ConnectButtonRenderer, null, ({
|
|
23951
23920
|
account,
|
|
23952
23921
|
chain,
|
|
23953
23922
|
mounted,
|
|
@@ -23957,7 +23926,7 @@ function ConnectButton({
|
|
|
23957
23926
|
}) => {
|
|
23958
23927
|
const ready2 = mounted && connectionStatus !== "loading";
|
|
23959
23928
|
const unsupportedChain = chain?.unsupported ?? false;
|
|
23960
|
-
return /* @__PURE__ */
|
|
23929
|
+
return /* @__PURE__ */ React218.createElement(
|
|
23961
23930
|
Box,
|
|
23962
23931
|
{
|
|
23963
23932
|
display: "flex",
|
|
@@ -23973,7 +23942,7 @@ function ConnectButton({
|
|
|
23973
23942
|
},
|
|
23974
23943
|
ready2 && account && connectionStatus === "connected" ? (
|
|
23975
23944
|
// Logged in: Chain Button & Account Button
|
|
23976
|
-
/* @__PURE__ */
|
|
23945
|
+
/* @__PURE__ */ React218.createElement(React218.Fragment, null, showChainSelector && chain && (chains.length > 1 || unsupportedChain) && /* @__PURE__ */ React218.createElement(
|
|
23977
23946
|
ChainSelectorButton,
|
|
23978
23947
|
{
|
|
23979
23948
|
unsupportedChain,
|
|
@@ -23981,7 +23950,7 @@ function ConnectButton({
|
|
|
23981
23950
|
openChainModal,
|
|
23982
23951
|
chain
|
|
23983
23952
|
}
|
|
23984
|
-
), !unsupportedChain && /* @__PURE__ */
|
|
23953
|
+
), !unsupportedChain && /* @__PURE__ */ React218.createElement(
|
|
23985
23954
|
AccountButton,
|
|
23986
23955
|
{
|
|
23987
23956
|
openAccountModal,
|
|
@@ -23992,7 +23961,7 @@ function ConnectButton({
|
|
|
23992
23961
|
))
|
|
23993
23962
|
) : (
|
|
23994
23963
|
// Not logged in: Connect Button
|
|
23995
|
-
/* @__PURE__ */
|
|
23964
|
+
/* @__PURE__ */ React218.createElement(
|
|
23996
23965
|
Box,
|
|
23997
23966
|
{
|
|
23998
23967
|
as: "button",
|
|
@@ -24010,19 +23979,19 @@ function ConnectButton({
|
|
|
24010
23979
|
type: "button",
|
|
24011
23980
|
...connectButtonStyles
|
|
24012
23981
|
},
|
|
24013
|
-
/* @__PURE__ */
|
|
23982
|
+
/* @__PURE__ */ React218.createElement(Box, { display: "flex", gap: "8", alignItems: "center" }, mounted && label, suffixIcon)
|
|
24014
23983
|
)
|
|
24015
23984
|
)
|
|
24016
23985
|
);
|
|
24017
|
-
}) : /* @__PURE__ */
|
|
23986
|
+
}) : /* @__PURE__ */ React218.createElement(React218.Fragment, null);
|
|
24018
23987
|
}
|
|
24019
23988
|
ConnectButton.__defaultProps = defaultProps;
|
|
24020
23989
|
ConnectButton.Custom = ConnectButtonRenderer;
|
|
24021
23990
|
|
|
24022
23991
|
// src/components/Icons/FunkitPaymentsIconLine.tsx
|
|
24023
|
-
import
|
|
23992
|
+
import React219 from "react";
|
|
24024
23993
|
function MetaMaskPaymentIcon({ size = 16 }) {
|
|
24025
|
-
return /* @__PURE__ */
|
|
23994
|
+
return /* @__PURE__ */ React219.createElement(
|
|
24026
23995
|
"svg",
|
|
24027
23996
|
{
|
|
24028
23997
|
width: size,
|
|
@@ -24031,7 +24000,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24031
24000
|
fill: "none",
|
|
24032
24001
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24033
24002
|
},
|
|
24034
|
-
/* @__PURE__ */
|
|
24003
|
+
/* @__PURE__ */ React219.createElement(
|
|
24035
24004
|
"path",
|
|
24036
24005
|
{
|
|
24037
24006
|
d: "M24.0891 3.1199L15.3446 9.61456L16.9617 5.7828L24.0891 3.1199Z",
|
|
@@ -24042,7 +24011,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24042
24011
|
strokeLinejoin: "round"
|
|
24043
24012
|
}
|
|
24044
24013
|
),
|
|
24045
|
-
/* @__PURE__ */
|
|
24014
|
+
/* @__PURE__ */ React219.createElement(
|
|
24046
24015
|
"path",
|
|
24047
24016
|
{
|
|
24048
24017
|
d: "M3.90207 3.1199L12.5763 9.67608L11.0383 5.7828L3.90207 3.1199Z",
|
|
@@ -24053,7 +24022,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24053
24022
|
strokeLinejoin: "round"
|
|
24054
24023
|
}
|
|
24055
24024
|
),
|
|
24056
|
-
/* @__PURE__ */
|
|
24025
|
+
/* @__PURE__ */ React219.createElement(
|
|
24057
24026
|
"path",
|
|
24058
24027
|
{
|
|
24059
24028
|
d: "M20.9429 18.1745L18.6139 21.7426L23.597 23.1136L25.0295 18.2536L20.9429 18.1745Z",
|
|
@@ -24064,7 +24033,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24064
24033
|
strokeLinejoin: "round"
|
|
24065
24034
|
}
|
|
24066
24035
|
),
|
|
24067
|
-
/* @__PURE__ */
|
|
24036
|
+
/* @__PURE__ */ React219.createElement(
|
|
24068
24037
|
"path",
|
|
24069
24038
|
{
|
|
24070
24039
|
d: "M2.97929 18.2536L4.40301 23.1136L9.38607 21.7426L7.05713 18.1745L2.97929 18.2536Z",
|
|
@@ -24075,7 +24044,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24075
24044
|
strokeLinejoin: "round"
|
|
24076
24045
|
}
|
|
24077
24046
|
),
|
|
24078
|
-
/* @__PURE__ */
|
|
24047
|
+
/* @__PURE__ */ React219.createElement(
|
|
24079
24048
|
"path",
|
|
24080
24049
|
{
|
|
24081
24050
|
d: "M9.10483 12.1456L7.71626 14.2461L12.6642 14.4658L12.4884 9.14877L9.10483 12.1456Z",
|
|
@@ -24086,7 +24055,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24086
24055
|
strokeLinejoin: "round"
|
|
24087
24056
|
}
|
|
24088
24057
|
),
|
|
24089
|
-
/* @__PURE__ */
|
|
24058
|
+
/* @__PURE__ */ React219.createElement(
|
|
24090
24059
|
"path",
|
|
24091
24060
|
{
|
|
24092
24061
|
d: "M18.8864 12.1456L15.4589 9.08725L15.3446 14.4658L20.2837 14.2461L18.8864 12.1456Z",
|
|
@@ -24097,7 +24066,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24097
24066
|
strokeLinejoin: "round"
|
|
24098
24067
|
}
|
|
24099
24068
|
),
|
|
24100
|
-
/* @__PURE__ */
|
|
24069
|
+
/* @__PURE__ */ React219.createElement(
|
|
24101
24070
|
"path",
|
|
24102
24071
|
{
|
|
24103
24072
|
d: "M9.38606 21.7426L12.3566 20.2925L9.79033 18.2888L9.38606 21.7426Z",
|
|
@@ -24108,7 +24077,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24108
24077
|
strokeLinejoin: "round"
|
|
24109
24078
|
}
|
|
24110
24079
|
),
|
|
24111
|
-
/* @__PURE__ */
|
|
24080
|
+
/* @__PURE__ */ React219.createElement(
|
|
24112
24081
|
"path",
|
|
24113
24082
|
{
|
|
24114
24083
|
d: "M15.6347 20.2925L18.6139 21.7426L18.2009 18.2888L15.6347 20.2925Z",
|
|
@@ -24119,7 +24088,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24119
24088
|
strokeLinejoin: "round"
|
|
24120
24089
|
}
|
|
24121
24090
|
),
|
|
24122
|
-
/* @__PURE__ */
|
|
24091
|
+
/* @__PURE__ */ React219.createElement(
|
|
24123
24092
|
"path",
|
|
24124
24093
|
{
|
|
24125
24094
|
d: "M18.6139 21.7426L15.6347 20.2925L15.8719 22.2348L15.8456 23.0521L18.6139 21.7426Z",
|
|
@@ -24130,7 +24099,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24130
24099
|
strokeLinejoin: "round"
|
|
24131
24100
|
}
|
|
24132
24101
|
),
|
|
24133
|
-
/* @__PURE__ */
|
|
24102
|
+
/* @__PURE__ */ React219.createElement(
|
|
24134
24103
|
"path",
|
|
24135
24104
|
{
|
|
24136
24105
|
d: "M9.38606 21.7426L12.1544 23.0521L12.1368 22.2348L12.3566 20.2925L9.38606 21.7426Z",
|
|
@@ -24141,7 +24110,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24141
24110
|
strokeLinejoin: "round"
|
|
24142
24111
|
}
|
|
24143
24112
|
),
|
|
24144
|
-
/* @__PURE__ */
|
|
24113
|
+
/* @__PURE__ */ React219.createElement(
|
|
24145
24114
|
"path",
|
|
24146
24115
|
{
|
|
24147
24116
|
d: "M12.1984 17.0056L9.72002 16.2762L11.4689 15.4765L12.1984 17.0056Z",
|
|
@@ -24152,7 +24121,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24152
24121
|
strokeLinejoin: "round"
|
|
24153
24122
|
}
|
|
24154
24123
|
),
|
|
24155
|
-
/* @__PURE__ */
|
|
24124
|
+
/* @__PURE__ */ React219.createElement(
|
|
24156
24125
|
"path",
|
|
24157
24126
|
{
|
|
24158
24127
|
d: "M15.7928 17.0056L16.5223 15.4765L18.28 16.2762L15.7928 17.0056Z",
|
|
@@ -24163,7 +24132,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24163
24132
|
strokeLinejoin: "round"
|
|
24164
24133
|
}
|
|
24165
24134
|
),
|
|
24166
|
-
/* @__PURE__ */
|
|
24135
|
+
/* @__PURE__ */ React219.createElement(
|
|
24167
24136
|
"path",
|
|
24168
24137
|
{
|
|
24169
24138
|
d: "M9.38606 21.7426L9.80791 18.1745L7.05712 18.2536L9.38606 21.7426Z",
|
|
@@ -24174,7 +24143,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24174
24143
|
strokeLinejoin: "round"
|
|
24175
24144
|
}
|
|
24176
24145
|
),
|
|
24177
|
-
/* @__PURE__ */
|
|
24146
|
+
/* @__PURE__ */ React219.createElement(
|
|
24178
24147
|
"path",
|
|
24179
24148
|
{
|
|
24180
24149
|
d: "M18.1921 18.1745L18.6139 21.7426L20.9429 18.2536L18.1921 18.1745Z",
|
|
@@ -24185,7 +24154,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24185
24154
|
strokeLinejoin: "round"
|
|
24186
24155
|
}
|
|
24187
24156
|
),
|
|
24188
|
-
/* @__PURE__ */
|
|
24157
|
+
/* @__PURE__ */ React219.createElement(
|
|
24189
24158
|
"path",
|
|
24190
24159
|
{
|
|
24191
24160
|
d: "M20.2837 14.2461L15.3446 14.4658L15.8016 17.0057L16.5311 15.4765L18.2888 16.2762L20.2837 14.2461Z",
|
|
@@ -24196,7 +24165,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24196
24165
|
strokeLinejoin: "round"
|
|
24197
24166
|
}
|
|
24198
24167
|
),
|
|
24199
|
-
/* @__PURE__ */
|
|
24168
|
+
/* @__PURE__ */ React219.createElement(
|
|
24200
24169
|
"path",
|
|
24201
24170
|
{
|
|
24202
24171
|
d: "M9.72002 16.2762L11.4777 15.4765L12.1984 17.0057L12.6642 14.4658L7.71626 14.2461L9.72002 16.2762Z",
|
|
@@ -24207,7 +24176,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24207
24176
|
strokeLinejoin: "round"
|
|
24208
24177
|
}
|
|
24209
24178
|
),
|
|
24210
|
-
/* @__PURE__ */
|
|
24179
|
+
/* @__PURE__ */ React219.createElement(
|
|
24211
24180
|
"path",
|
|
24212
24181
|
{
|
|
24213
24182
|
d: "M7.71626 14.2461L9.79033 18.2888L9.72002 16.2762L7.71626 14.2461Z",
|
|
@@ -24218,7 +24187,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24218
24187
|
strokeLinejoin: "round"
|
|
24219
24188
|
}
|
|
24220
24189
|
),
|
|
24221
|
-
/* @__PURE__ */
|
|
24190
|
+
/* @__PURE__ */ React219.createElement(
|
|
24222
24191
|
"path",
|
|
24223
24192
|
{
|
|
24224
24193
|
d: "M18.2888 16.2762L18.2009 18.2888L20.2837 14.2461L18.2888 16.2762Z",
|
|
@@ -24229,7 +24198,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24229
24198
|
strokeLinejoin: "round"
|
|
24230
24199
|
}
|
|
24231
24200
|
),
|
|
24232
|
-
/* @__PURE__ */
|
|
24201
|
+
/* @__PURE__ */ React219.createElement(
|
|
24233
24202
|
"path",
|
|
24234
24203
|
{
|
|
24235
24204
|
d: "M12.6642 14.4658L12.1984 17.0057L12.7784 20.0025L12.9102 16.0565L12.6642 14.4658Z",
|
|
@@ -24240,7 +24209,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24240
24209
|
strokeLinejoin: "round"
|
|
24241
24210
|
}
|
|
24242
24211
|
),
|
|
24243
|
-
/* @__PURE__ */
|
|
24212
|
+
/* @__PURE__ */ React219.createElement(
|
|
24244
24213
|
"path",
|
|
24245
24214
|
{
|
|
24246
24215
|
d: "M15.3446 14.4658L15.1073 16.0477L15.2128 20.0025L15.8016 17.0057L15.3446 14.4658Z",
|
|
@@ -24251,7 +24220,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24251
24220
|
strokeLinejoin: "round"
|
|
24252
24221
|
}
|
|
24253
24222
|
),
|
|
24254
|
-
/* @__PURE__ */
|
|
24223
|
+
/* @__PURE__ */ React219.createElement(
|
|
24255
24224
|
"path",
|
|
24256
24225
|
{
|
|
24257
24226
|
d: "M15.8016 17.0056L15.2128 20.0025L15.6347 20.2925L18.2009 18.2888L18.2888 16.2762L15.8016 17.0056Z",
|
|
@@ -24262,7 +24231,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24262
24231
|
strokeLinejoin: "round"
|
|
24263
24232
|
}
|
|
24264
24233
|
),
|
|
24265
|
-
/* @__PURE__ */
|
|
24234
|
+
/* @__PURE__ */ React219.createElement(
|
|
24266
24235
|
"path",
|
|
24267
24236
|
{
|
|
24268
24237
|
d: "M9.72002 16.2762L9.79033 18.2888L12.3566 20.2925L12.7784 20.0025L12.1984 17.0056L9.72002 16.2762Z",
|
|
@@ -24273,7 +24242,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24273
24242
|
strokeLinejoin: "round"
|
|
24274
24243
|
}
|
|
24275
24244
|
),
|
|
24276
|
-
/* @__PURE__ */
|
|
24245
|
+
/* @__PURE__ */ React219.createElement(
|
|
24277
24246
|
"path",
|
|
24278
24247
|
{
|
|
24279
24248
|
d: "M15.8456 23.0521L15.8719 22.2348L15.6522 22.0414H12.339L12.1368 22.2348L12.1544 23.0521L9.38606 21.7426L10.3528 22.5336L12.3126 23.8958H15.6786L17.6472 22.5336L18.6139 21.7426L15.8456 23.0521Z",
|
|
@@ -24284,7 +24253,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24284
24253
|
strokeLinejoin: "round"
|
|
24285
24254
|
}
|
|
24286
24255
|
),
|
|
24287
|
-
/* @__PURE__ */
|
|
24256
|
+
/* @__PURE__ */ React219.createElement(
|
|
24288
24257
|
"path",
|
|
24289
24258
|
{
|
|
24290
24259
|
d: "M15.6347 20.2925L15.2128 20.0025H12.7784L12.3566 20.2925L12.1368 22.2348L12.339 22.0414H15.6522L15.8719 22.2348L15.6347 20.2925Z",
|
|
@@ -24295,7 +24264,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24295
24264
|
strokeLinejoin: "round"
|
|
24296
24265
|
}
|
|
24297
24266
|
),
|
|
24298
|
-
/* @__PURE__ */
|
|
24267
|
+
/* @__PURE__ */ React219.createElement(
|
|
24299
24268
|
"path",
|
|
24300
24269
|
{
|
|
24301
24270
|
d: "M24.4583 10.0364L25.2053 6.45072L24.0891 3.1199L15.6347 9.39485L18.8864 12.1456L23.4827 13.4903L24.5022 12.3038L24.0628 11.9874L24.7658 11.3459L24.221 10.924L24.924 10.3879L24.4583 10.0364Z",
|
|
@@ -24306,7 +24275,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24306
24275
|
strokeLinejoin: "round"
|
|
24307
24276
|
}
|
|
24308
24277
|
),
|
|
24309
|
-
/* @__PURE__ */
|
|
24278
|
+
/* @__PURE__ */ React219.createElement(
|
|
24310
24279
|
"path",
|
|
24311
24280
|
{
|
|
24312
24281
|
d: "M2.79472 6.45072L3.54174 10.0364L3.06717 10.3879L3.77024 10.924L3.23415 11.3459L3.93722 11.9874L3.4978 12.3038L4.50847 13.4903L9.10483 12.1456L12.3566 9.39485L3.90207 3.1199L2.79472 6.45072Z",
|
|
@@ -24317,7 +24286,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24317
24286
|
strokeLinejoin: "round"
|
|
24318
24287
|
}
|
|
24319
24288
|
),
|
|
24320
|
-
/* @__PURE__ */
|
|
24289
|
+
/* @__PURE__ */ React219.createElement(
|
|
24321
24290
|
"path",
|
|
24322
24291
|
{
|
|
24323
24292
|
d: "M23.4827 13.4903L18.8864 12.1456L20.2837 14.2461L18.2009 18.2888L20.9429 18.2536H25.0295L23.4827 13.4903Z",
|
|
@@ -24328,7 +24297,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24328
24297
|
strokeLinejoin: "round"
|
|
24329
24298
|
}
|
|
24330
24299
|
),
|
|
24331
|
-
/* @__PURE__ */
|
|
24300
|
+
/* @__PURE__ */ React219.createElement(
|
|
24332
24301
|
"path",
|
|
24333
24302
|
{
|
|
24334
24303
|
d: "M9.10484 12.1456L4.50848 13.4903L2.97929 18.2536H7.05713L9.79033 18.2888L7.71626 14.2461L9.10484 12.1456Z",
|
|
@@ -24339,7 +24308,7 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24339
24308
|
strokeLinejoin: "round"
|
|
24340
24309
|
}
|
|
24341
24310
|
),
|
|
24342
|
-
/* @__PURE__ */
|
|
24311
|
+
/* @__PURE__ */ React219.createElement(
|
|
24343
24312
|
"path",
|
|
24344
24313
|
{
|
|
24345
24314
|
d: "M15.3446 14.4658L15.6347 9.39485L16.9705 5.7828H11.0383L12.3566 9.39485L12.6642 14.4658L12.7696 16.0653L12.7784 20.0025H15.2128L15.2304 16.0653L15.3446 14.4658Z",
|
|
@@ -24353,14 +24322,14 @@ function MetaMaskPaymentIcon({ size = 16 }) {
|
|
|
24353
24322
|
);
|
|
24354
24323
|
}
|
|
24355
24324
|
function MastercardPaymentIcon({ size = 16 }) {
|
|
24356
|
-
return /* @__PURE__ */
|
|
24325
|
+
return /* @__PURE__ */ React219.createElement(
|
|
24357
24326
|
"svg",
|
|
24358
24327
|
{
|
|
24359
24328
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24360
24329
|
height: size,
|
|
24361
24330
|
viewBox: "0 0 152.407 108"
|
|
24362
24331
|
},
|
|
24363
|
-
/* @__PURE__ */
|
|
24332
|
+
/* @__PURE__ */ React219.createElement("g", null, /* @__PURE__ */ React219.createElement("rect", { width: "152.407", height: "108", fill: "transparent" }), /* @__PURE__ */ React219.createElement("g", null, /* @__PURE__ */ React219.createElement(
|
|
24364
24333
|
"rect",
|
|
24365
24334
|
{
|
|
24366
24335
|
x: "60.4117",
|
|
@@ -24369,21 +24338,21 @@ function MastercardPaymentIcon({ size = 16 }) {
|
|
|
24369
24338
|
height: "56.6064",
|
|
24370
24339
|
fill: "#ff5f00"
|
|
24371
24340
|
}
|
|
24372
|
-
), /* @__PURE__ */
|
|
24341
|
+
), /* @__PURE__ */ React219.createElement(
|
|
24373
24342
|
"path",
|
|
24374
24343
|
{
|
|
24375
24344
|
d: "M382.20839,306a35.9375,35.9375,0,0,1,13.7499-28.3032,36,36,0,1,0,0,56.6064A35.938,35.938,0,0,1,382.20839,306Z",
|
|
24376
24345
|
transform: "translate(-319.79649 -252)",
|
|
24377
24346
|
fill: "#eb001b"
|
|
24378
24347
|
}
|
|
24379
|
-
), /* @__PURE__ */
|
|
24348
|
+
), /* @__PURE__ */ React219.createElement(
|
|
24380
24349
|
"path",
|
|
24381
24350
|
{
|
|
24382
24351
|
d: "M454.20349,306a35.99867,35.99867,0,0,1-58.2452,28.3032,36.00518,36.00518,0,0,0,0-56.6064A35.99867,35.99867,0,0,1,454.20349,306Z",
|
|
24383
24352
|
transform: "translate(-319.79649 -252)",
|
|
24384
24353
|
fill: "#f79e1b"
|
|
24385
24354
|
}
|
|
24386
|
-
), /* @__PURE__ */
|
|
24355
|
+
), /* @__PURE__ */ React219.createElement(
|
|
24387
24356
|
"path",
|
|
24388
24357
|
{
|
|
24389
24358
|
d: "M450.76889,328.3077v-1.1589h.4673v-.2361h-1.1901v.2361h.4675v1.1589Zm2.3105,0v-1.3973h-.3648l-.41959.9611-.41971-.9611h-.365v1.3973h.2576v-1.054l.3935.9087h.2671l.39351-.911v1.0563Z",
|
|
@@ -24397,7 +24366,7 @@ function FunkitPaymentsIconLine({
|
|
|
24397
24366
|
size = 16,
|
|
24398
24367
|
gap = "2"
|
|
24399
24368
|
}) {
|
|
24400
|
-
return /* @__PURE__ */
|
|
24369
|
+
return /* @__PURE__ */ React219.createElement(
|
|
24401
24370
|
Box,
|
|
24402
24371
|
{
|
|
24403
24372
|
display: "flex",
|
|
@@ -24406,9 +24375,9 @@ function FunkitPaymentsIconLine({
|
|
|
24406
24375
|
alignItems: "center",
|
|
24407
24376
|
justifyContent: "center"
|
|
24408
24377
|
},
|
|
24409
|
-
/* @__PURE__ */
|
|
24410
|
-
/* @__PURE__ */
|
|
24411
|
-
/* @__PURE__ */
|
|
24378
|
+
/* @__PURE__ */ React219.createElement(MetaMaskPaymentIcon, { size }),
|
|
24379
|
+
/* @__PURE__ */ React219.createElement(MastercardPaymentIcon, { size }),
|
|
24380
|
+
/* @__PURE__ */ React219.createElement(CoinbaseIcon, { size })
|
|
24412
24381
|
);
|
|
24413
24382
|
}
|
|
24414
24383
|
|
|
@@ -24467,7 +24436,7 @@ var useUpdateActiveFunkitCheckout = () => {
|
|
|
24467
24436
|
|
|
24468
24437
|
// src/providers/FunkitProvider.tsx
|
|
24469
24438
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
24470
|
-
import
|
|
24439
|
+
import React220, { createContext as createContext20, useContext as useContext20 } from "react";
|
|
24471
24440
|
import { WagmiProvider, useAccountEffect as useAccountEffect3 } from "wagmi";
|
|
24472
24441
|
|
|
24473
24442
|
// src/utils/funkitProvider.ts
|
|
@@ -24551,7 +24520,7 @@ function setFunkitConnectVersion({ version }) {
|
|
|
24551
24520
|
localStorage.setItem(storageKey5, version);
|
|
24552
24521
|
}
|
|
24553
24522
|
function getCurrentSdkVersion() {
|
|
24554
|
-
return "5.0.
|
|
24523
|
+
return "5.0.10";
|
|
24555
24524
|
}
|
|
24556
24525
|
function useFingerprint() {
|
|
24557
24526
|
const fingerprint = useCallback44(() => {
|
|
@@ -24602,7 +24571,7 @@ function FunkitProvider(props) {
|
|
|
24602
24571
|
!!props.debug,
|
|
24603
24572
|
getCurrentSdkVersion()
|
|
24604
24573
|
);
|
|
24605
|
-
const MainChild = /* @__PURE__ */
|
|
24574
|
+
const MainChild = /* @__PURE__ */ React220.createElement(FunkitThemeProvider, { theme: props.theme }, /* @__PURE__ */ React220.createElement(
|
|
24606
24575
|
FunkitProviderInner,
|
|
24607
24576
|
{
|
|
24608
24577
|
avatar: props.avatar,
|
|
@@ -24615,7 +24584,7 @@ function FunkitProvider(props) {
|
|
|
24615
24584
|
},
|
|
24616
24585
|
props.children
|
|
24617
24586
|
));
|
|
24618
|
-
return finalWagmiConfig && finalQueryClient ? /* @__PURE__ */
|
|
24587
|
+
return finalWagmiConfig && finalQueryClient ? /* @__PURE__ */ React220.createElement(WagmiProvider, { config: finalWagmiConfig }, /* @__PURE__ */ React220.createElement(QueryClientProvider, { client: finalQueryClient }, MainChild)) : MainChild;
|
|
24619
24588
|
}
|
|
24620
24589
|
function FunkitProviderInner({
|
|
24621
24590
|
avatar,
|
|
@@ -24635,7 +24604,7 @@ function FunkitProviderInner({
|
|
|
24635
24604
|
const avatarContext = avatar ?? defaultAvatar;
|
|
24636
24605
|
const isSandboxMode = !!sandbox;
|
|
24637
24606
|
const modalSizeFinal = modalSize || ModalSizeOptions.COMPACT;
|
|
24638
|
-
return /* @__PURE__ */
|
|
24607
|
+
return /* @__PURE__ */ React220.createElement(FunkitConfigContext.Provider, { value: funkitConfig }, /* @__PURE__ */ React220.createElement(FunkitConnectChainProvider, { initialChain }, /* @__PURE__ */ React220.createElement(ModalSizeProvider, { modalSize: modalSizeFinal }, /* @__PURE__ */ React220.createElement(FunkitWeb2Provider, null, /* @__PURE__ */ React220.createElement(GeneralWalletProvider, null, /* @__PURE__ */ React220.createElement(FunkitFlagsProvider, null, /* @__PURE__ */ React220.createElement(FunkitCheckoutHistoryProvider, null, /* @__PURE__ */ React220.createElement(FunkitCheckoutProvider, null, /* @__PURE__ */ React220.createElement(FunkitQuoteProvider, null, /* @__PURE__ */ React220.createElement(FunkitSandboxContext.Provider, { value: isSandboxMode }, /* @__PURE__ */ React220.createElement(FunkitMeshProvider, null, /* @__PURE__ */ React220.createElement(AvatarContext.Provider, { value: avatarContext }, /* @__PURE__ */ React220.createElement(ThemeIdContext2.Provider, { value: id }, /* @__PURE__ */ React220.createElement(ShowBalanceProvider, null, /* @__PURE__ */ React220.createElement(FunkitMoonpayProvider, { debug: !!debug }, /* @__PURE__ */ React220.createElement(UserPresenceProvider, null, /* @__PURE__ */ React220.createElement(ModalProvider, null, activeTheme ? /* @__PURE__ */ React220.createElement(
|
|
24639
24608
|
"div",
|
|
24640
24609
|
{
|
|
24641
24610
|
...createThemeRootProps2(id),
|
|
@@ -24644,7 +24613,7 @@ function FunkitProviderInner({
|
|
|
24644
24613
|
height: "100%"
|
|
24645
24614
|
}
|
|
24646
24615
|
},
|
|
24647
|
-
/* @__PURE__ */
|
|
24616
|
+
/* @__PURE__ */ React220.createElement(
|
|
24648
24617
|
"style",
|
|
24649
24618
|
{
|
|
24650
24619
|
dangerouslySetInnerHTML: {
|
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
trustWallet
|
|
4
|
+
} from "./chunk-ISIBREBO.js";
|
|
2
5
|
import {
|
|
3
6
|
zealWallet
|
|
4
7
|
} from "./chunk-JROWU5BP.js";
|
|
5
|
-
import {
|
|
6
|
-
xdefiWallet
|
|
7
|
-
} from "./chunk-NO7XMBB5.js";
|
|
8
8
|
import {
|
|
9
9
|
zerionWallet
|
|
10
10
|
} from "./chunk-AXWP3GD4.js";
|
|
11
|
+
import {
|
|
12
|
+
subWallet
|
|
13
|
+
} from "./chunk-AD2KIJB6.js";
|
|
11
14
|
import {
|
|
12
15
|
tahoWallet
|
|
13
16
|
} from "./chunk-6P2EMPZI.js";
|
|
14
|
-
import {
|
|
15
|
-
safepalWallet
|
|
16
|
-
} from "./chunk-MSFKSQBY.js";
|
|
17
17
|
import {
|
|
18
18
|
talismanWallet
|
|
19
19
|
} from "./chunk-ABFSXBE6.js";
|
|
20
20
|
import {
|
|
21
21
|
tokenPocketWallet
|
|
22
22
|
} from "./chunk-IDKVN5CF.js";
|
|
23
|
-
import {
|
|
24
|
-
trustWallet
|
|
25
|
-
} from "./chunk-ISIBREBO.js";
|
|
26
|
-
import {
|
|
27
|
-
uniswapWallet
|
|
28
|
-
} from "./chunk-LH7BMNFZ.js";
|
|
29
23
|
import {
|
|
30
24
|
tokenaryWallet
|
|
31
25
|
} from "./chunk-SLOIIJGP.js";
|
|
@@ -33,17 +27,23 @@ import {
|
|
|
33
27
|
walletConnectWallet
|
|
34
28
|
} from "./chunk-NP5QGWNL.js";
|
|
35
29
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
30
|
+
uniswapWallet
|
|
31
|
+
} from "./chunk-LH7BMNFZ.js";
|
|
32
|
+
import {
|
|
33
|
+
xdefiWallet
|
|
34
|
+
} from "./chunk-NO7XMBB5.js";
|
|
35
|
+
import {
|
|
36
|
+
phantomWallet
|
|
37
|
+
} from "./chunk-ZSVTX6EK.js";
|
|
38
|
+
import {
|
|
39
|
+
rainbowWallet
|
|
40
|
+
} from "./chunk-2UCNRD7H.js";
|
|
38
41
|
import {
|
|
39
42
|
rabbyWallet
|
|
40
43
|
} from "./chunk-BVX4XGNP.js";
|
|
41
44
|
import {
|
|
42
45
|
ramperWallet
|
|
43
46
|
} from "./chunk-PIUNLQJG.js";
|
|
44
|
-
import {
|
|
45
|
-
rainbowWallet
|
|
46
|
-
} from "./chunk-2UCNRD7H.js";
|
|
47
47
|
import {
|
|
48
48
|
roninWallet
|
|
49
49
|
} from "./chunk-63YLN6R5.js";
|
|
@@ -54,47 +54,44 @@ import {
|
|
|
54
54
|
safeheronWallet
|
|
55
55
|
} from "./chunk-R6RWZRFF.js";
|
|
56
56
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
safepalWallet
|
|
58
|
+
} from "./chunk-MSFKSQBY.js";
|
|
59
59
|
import {
|
|
60
60
|
metaMaskWallet
|
|
61
61
|
} from "./chunk-G73C6P5P.js";
|
|
62
|
-
import {
|
|
63
|
-
mewWallet
|
|
64
|
-
} from "./chunk-V57WLZEE.js";
|
|
65
62
|
import {
|
|
66
63
|
ledgerWallet
|
|
67
64
|
} from "./chunk-BRBKM4PW.js";
|
|
68
65
|
import {
|
|
69
|
-
|
|
70
|
-
} from "./chunk-
|
|
66
|
+
mewWallet
|
|
67
|
+
} from "./chunk-V57WLZEE.js";
|
|
71
68
|
import {
|
|
72
69
|
oktoWallet
|
|
73
70
|
} from "./chunk-ADIXAKUL.js";
|
|
74
71
|
import {
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
72
|
+
oneKeyWallet
|
|
73
|
+
} from "./chunk-4AD7VI2P.js";
|
|
74
|
+
import {
|
|
75
|
+
okxWallet
|
|
76
|
+
} from "./chunk-4WEHDI4Y.js";
|
|
77
77
|
import {
|
|
78
78
|
oneInchWallet
|
|
79
79
|
} from "./chunk-OESTDX6I.js";
|
|
80
80
|
import {
|
|
81
81
|
omniWallet
|
|
82
82
|
} from "./chunk-7CUY5G6R.js";
|
|
83
|
+
import {
|
|
84
|
+
foxWallet
|
|
85
|
+
} from "./chunk-LMZMXEXL.js";
|
|
83
86
|
import {
|
|
84
87
|
frameWallet
|
|
85
88
|
} from "./chunk-ZMYVTWDF.js";
|
|
86
|
-
import {
|
|
87
|
-
enkryptWallet
|
|
88
|
-
} from "./chunk-SJTXS4ZW.js";
|
|
89
89
|
import {
|
|
90
90
|
frontierWallet
|
|
91
91
|
} from "./chunk-3S2U24BJ.js";
|
|
92
92
|
import {
|
|
93
93
|
gateWallet
|
|
94
94
|
} from "./chunk-GSOYKKIS.js";
|
|
95
|
-
import {
|
|
96
|
-
kresusWallet
|
|
97
|
-
} from "./chunk-MJXPRJZT.js";
|
|
98
95
|
import {
|
|
99
96
|
imTokenWallet
|
|
100
97
|
} from "./chunk-COZ7MIQS.js";
|
|
@@ -102,38 +99,41 @@ import {
|
|
|
102
99
|
injectedWallet
|
|
103
100
|
} from "./chunk-VCVVV2K7.js";
|
|
104
101
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
kresusWallet
|
|
103
|
+
} from "./chunk-MJXPRJZT.js";
|
|
107
104
|
import {
|
|
108
105
|
clvWallet
|
|
109
106
|
} from "./chunk-KR6JBW5E.js";
|
|
107
|
+
import {
|
|
108
|
+
bybitWallet
|
|
109
|
+
} from "./chunk-6ONTSPEY.js";
|
|
110
110
|
import {
|
|
111
111
|
coin98Wallet
|
|
112
112
|
} from "./chunk-DTRYS3MO.js";
|
|
113
113
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
114
|
+
coinbaseWallet
|
|
115
|
+
} from "./chunk-H4IRCEZN.js";
|
|
116
116
|
import {
|
|
117
117
|
coreWallet
|
|
118
118
|
} from "./chunk-HBA36GW3.js";
|
|
119
119
|
import {
|
|
120
120
|
dawnWallet
|
|
121
121
|
} from "./chunk-LN7OD5EC.js";
|
|
122
|
-
import {
|
|
123
|
-
foxWallet
|
|
124
|
-
} from "./chunk-LMZMXEXL.js";
|
|
125
122
|
import {
|
|
126
123
|
desigWallet
|
|
127
124
|
} from "./chunk-CTU6JCOK.js";
|
|
125
|
+
import {
|
|
126
|
+
enkryptWallet
|
|
127
|
+
} from "./chunk-SJTXS4ZW.js";
|
|
128
|
+
import {
|
|
129
|
+
argentWallet
|
|
130
|
+
} from "./chunk-WSQ2YJO2.js";
|
|
128
131
|
import {
|
|
129
132
|
bifrostWallet
|
|
130
133
|
} from "./chunk-W6N74MS3.js";
|
|
131
134
|
import {
|
|
132
135
|
bitgetWallet
|
|
133
136
|
} from "./chunk-A5APNTGL.js";
|
|
134
|
-
import {
|
|
135
|
-
argentWallet
|
|
136
|
-
} from "./chunk-WSQ2YJO2.js";
|
|
137
137
|
import {
|
|
138
138
|
bitskiWallet
|
|
139
139
|
} from "./chunk-P74YPRF6.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funkit/connect",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.10",
|
|
4
4
|
"description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -90,10 +90,10 @@
|
|
|
90
90
|
"react-virtuoso": "4.10.1",
|
|
91
91
|
"ua-parser-js": "^1.0.37",
|
|
92
92
|
"uuid": "^9.0.1",
|
|
93
|
-
"@funkit/core": "2.3.11",
|
|
94
93
|
"@funkit/api-base": "1.5.9",
|
|
95
|
-
"@funkit/utils": "1.0.9",
|
|
96
94
|
"@funkit/chains": "0.1.3",
|
|
95
|
+
"@funkit/utils": "1.0.9",
|
|
96
|
+
"@funkit/core": "2.3.11",
|
|
97
97
|
"@funkit/wagmi-tools": "3.0.33"
|
|
98
98
|
},
|
|
99
99
|
"repository": {
|