@unifold/connect-react 0.1.2 → 0.1.4
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12 -2
- package/dist/index.mjs +12 -2
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -10875,6 +10875,7 @@ function TransferCryptoBase({
|
|
|
10875
10875
|
userId,
|
|
10876
10876
|
publishableKey,
|
|
10877
10877
|
recipientAddress,
|
|
10878
|
+
destinationChainType,
|
|
10878
10879
|
destinationChainId,
|
|
10879
10880
|
destinationTokenAddress,
|
|
10880
10881
|
copyButtonMode = "compact",
|
|
@@ -10961,6 +10962,7 @@ function TransferCryptoBase({
|
|
|
10961
10962
|
{
|
|
10962
10963
|
user_id: userId,
|
|
10963
10964
|
recipient_address: recipientAddress,
|
|
10965
|
+
destination_chain_type: destinationChainType,
|
|
10964
10966
|
destination_chain_id: destinationChainId,
|
|
10965
10967
|
destination_token_address: destinationTokenAddress
|
|
10966
10968
|
},
|
|
@@ -10979,6 +10981,7 @@ function TransferCryptoBase({
|
|
|
10979
10981
|
}, [
|
|
10980
10982
|
userId,
|
|
10981
10983
|
recipientAddress,
|
|
10984
|
+
destinationChainType,
|
|
10982
10985
|
destinationChainId,
|
|
10983
10986
|
destinationTokenAddress,
|
|
10984
10987
|
publishableKey
|
|
@@ -11420,8 +11423,9 @@ function TransferCryptoBase({
|
|
|
11420
11423
|
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
11421
11424
|
"a",
|
|
11422
11425
|
{
|
|
11423
|
-
href: "
|
|
11426
|
+
href: "https://unifold.io/terms",
|
|
11424
11427
|
className: "uf-text-muted-foreground uf-underline hover:uf-text-foreground uf-transition-colors",
|
|
11428
|
+
target: "_blank",
|
|
11425
11429
|
children: t.terms.termsApply
|
|
11426
11430
|
}
|
|
11427
11431
|
),
|
|
@@ -11703,6 +11707,7 @@ function BuyWithCard({
|
|
|
11703
11707
|
accentColor = "#0052FF",
|
|
11704
11708
|
destinationTokenSymbol,
|
|
11705
11709
|
recipientAddress,
|
|
11710
|
+
destinationChainType,
|
|
11706
11711
|
destinationChainId,
|
|
11707
11712
|
destinationTokenAddress,
|
|
11708
11713
|
themeClass = ""
|
|
@@ -11776,6 +11781,7 @@ function BuyWithCard({
|
|
|
11776
11781
|
{
|
|
11777
11782
|
user_id: userId,
|
|
11778
11783
|
recipient_address: recipientAddress,
|
|
11784
|
+
destination_chain_type: destinationChainType,
|
|
11779
11785
|
destination_chain_id: destinationChainId,
|
|
11780
11786
|
destination_token_address: destinationTokenAddress
|
|
11781
11787
|
},
|
|
@@ -11790,7 +11796,7 @@ function BuyWithCard({
|
|
|
11790
11796
|
}
|
|
11791
11797
|
}
|
|
11792
11798
|
fetchWallets();
|
|
11793
|
-
}, [userId, recipientAddress, destinationChainId, destinationTokenAddress, publishableKey]);
|
|
11799
|
+
}, [userId, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, publishableKey]);
|
|
11794
11800
|
(0, import_react11.useEffect)(() => {
|
|
11795
11801
|
async function fetchSupportedTokens() {
|
|
11796
11802
|
try {
|
|
@@ -12467,6 +12473,7 @@ function DepositModal({
|
|
|
12467
12473
|
modalTitle,
|
|
12468
12474
|
destinationTokenSymbol,
|
|
12469
12475
|
recipientAddress,
|
|
12476
|
+
destinationChainType,
|
|
12470
12477
|
destinationChainId,
|
|
12471
12478
|
destinationTokenAddress,
|
|
12472
12479
|
hideDepositTracker = false,
|
|
@@ -12577,6 +12584,7 @@ function DepositModal({
|
|
|
12577
12584
|
userId,
|
|
12578
12585
|
publishableKey,
|
|
12579
12586
|
recipientAddress,
|
|
12587
|
+
destinationChainType,
|
|
12580
12588
|
destinationChainId,
|
|
12581
12589
|
destinationTokenAddress,
|
|
12582
12590
|
onExecutionsChange: setDepositExecutions,
|
|
@@ -12604,6 +12612,7 @@ function DepositModal({
|
|
|
12604
12612
|
onViewChange: handleCardViewChange,
|
|
12605
12613
|
destinationTokenSymbol,
|
|
12606
12614
|
recipientAddress,
|
|
12615
|
+
destinationChainType,
|
|
12607
12616
|
destinationChainId,
|
|
12608
12617
|
destinationTokenAddress,
|
|
12609
12618
|
onDepositSuccess,
|
|
@@ -12733,6 +12742,7 @@ function UnifoldProvider2({
|
|
|
12733
12742
|
modalTitle: config?.modalTitle,
|
|
12734
12743
|
destinationTokenSymbol: depositConfig.destinationTokenSymbol,
|
|
12735
12744
|
recipientAddress: depositConfig.recipientAddress,
|
|
12745
|
+
destinationChainType: depositConfig.destinationChainType,
|
|
12736
12746
|
destinationChainId: depositConfig.destinationChainId,
|
|
12737
12747
|
destinationTokenAddress: depositConfig.destinationTokenAddress,
|
|
12738
12748
|
hideDepositTracker: config?.hideDepositTracker,
|
package/dist/index.mjs
CHANGED
|
@@ -10871,6 +10871,7 @@ function TransferCryptoBase({
|
|
|
10871
10871
|
userId,
|
|
10872
10872
|
publishableKey,
|
|
10873
10873
|
recipientAddress,
|
|
10874
|
+
destinationChainType,
|
|
10874
10875
|
destinationChainId,
|
|
10875
10876
|
destinationTokenAddress,
|
|
10876
10877
|
copyButtonMode = "compact",
|
|
@@ -10957,6 +10958,7 @@ function TransferCryptoBase({
|
|
|
10957
10958
|
{
|
|
10958
10959
|
user_id: userId,
|
|
10959
10960
|
recipient_address: recipientAddress,
|
|
10961
|
+
destination_chain_type: destinationChainType,
|
|
10960
10962
|
destination_chain_id: destinationChainId,
|
|
10961
10963
|
destination_token_address: destinationTokenAddress
|
|
10962
10964
|
},
|
|
@@ -10975,6 +10977,7 @@ function TransferCryptoBase({
|
|
|
10975
10977
|
}, [
|
|
10976
10978
|
userId,
|
|
10977
10979
|
recipientAddress,
|
|
10980
|
+
destinationChainType,
|
|
10978
10981
|
destinationChainId,
|
|
10979
10982
|
destinationTokenAddress,
|
|
10980
10983
|
publishableKey
|
|
@@ -11416,8 +11419,9 @@ function TransferCryptoBase({
|
|
|
11416
11419
|
/* @__PURE__ */ jsx112(
|
|
11417
11420
|
"a",
|
|
11418
11421
|
{
|
|
11419
|
-
href: "
|
|
11422
|
+
href: "https://unifold.io/terms",
|
|
11420
11423
|
className: "uf-text-muted-foreground uf-underline hover:uf-text-foreground uf-transition-colors",
|
|
11424
|
+
target: "_blank",
|
|
11421
11425
|
children: t.terms.termsApply
|
|
11422
11426
|
}
|
|
11423
11427
|
),
|
|
@@ -11699,6 +11703,7 @@ function BuyWithCard({
|
|
|
11699
11703
|
accentColor = "#0052FF",
|
|
11700
11704
|
destinationTokenSymbol,
|
|
11701
11705
|
recipientAddress,
|
|
11706
|
+
destinationChainType,
|
|
11702
11707
|
destinationChainId,
|
|
11703
11708
|
destinationTokenAddress,
|
|
11704
11709
|
themeClass = ""
|
|
@@ -11772,6 +11777,7 @@ function BuyWithCard({
|
|
|
11772
11777
|
{
|
|
11773
11778
|
user_id: userId,
|
|
11774
11779
|
recipient_address: recipientAddress,
|
|
11780
|
+
destination_chain_type: destinationChainType,
|
|
11775
11781
|
destination_chain_id: destinationChainId,
|
|
11776
11782
|
destination_token_address: destinationTokenAddress
|
|
11777
11783
|
},
|
|
@@ -11786,7 +11792,7 @@ function BuyWithCard({
|
|
|
11786
11792
|
}
|
|
11787
11793
|
}
|
|
11788
11794
|
fetchWallets();
|
|
11789
|
-
}, [userId, recipientAddress, destinationChainId, destinationTokenAddress, publishableKey]);
|
|
11795
|
+
}, [userId, recipientAddress, destinationChainType, destinationChainId, destinationTokenAddress, publishableKey]);
|
|
11790
11796
|
useEffect42(() => {
|
|
11791
11797
|
async function fetchSupportedTokens() {
|
|
11792
11798
|
try {
|
|
@@ -12463,6 +12469,7 @@ function DepositModal({
|
|
|
12463
12469
|
modalTitle,
|
|
12464
12470
|
destinationTokenSymbol,
|
|
12465
12471
|
recipientAddress,
|
|
12472
|
+
destinationChainType,
|
|
12466
12473
|
destinationChainId,
|
|
12467
12474
|
destinationTokenAddress,
|
|
12468
12475
|
hideDepositTracker = false,
|
|
@@ -12573,6 +12580,7 @@ function DepositModal({
|
|
|
12573
12580
|
userId,
|
|
12574
12581
|
publishableKey,
|
|
12575
12582
|
recipientAddress,
|
|
12583
|
+
destinationChainType,
|
|
12576
12584
|
destinationChainId,
|
|
12577
12585
|
destinationTokenAddress,
|
|
12578
12586
|
onExecutionsChange: setDepositExecutions,
|
|
@@ -12600,6 +12608,7 @@ function DepositModal({
|
|
|
12600
12608
|
onViewChange: handleCardViewChange,
|
|
12601
12609
|
destinationTokenSymbol,
|
|
12602
12610
|
recipientAddress,
|
|
12611
|
+
destinationChainType,
|
|
12603
12612
|
destinationChainId,
|
|
12604
12613
|
destinationTokenAddress,
|
|
12605
12614
|
onDepositSuccess,
|
|
@@ -12729,6 +12738,7 @@ function UnifoldProvider2({
|
|
|
12729
12738
|
modalTitle: config?.modalTitle,
|
|
12730
12739
|
destinationTokenSymbol: depositConfig.destinationTokenSymbol,
|
|
12731
12740
|
recipientAddress: depositConfig.recipientAddress,
|
|
12741
|
+
destinationChainType: depositConfig.destinationChainType,
|
|
12732
12742
|
destinationChainId: depositConfig.destinationChainId,
|
|
12733
12743
|
destinationTokenAddress: depositConfig.destinationTokenAddress,
|
|
12734
12744
|
hideDepositTracker: config?.hideDepositTracker,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifold/connect-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Unifold Connect React - Complete React SDK with UI components for crypto deposits",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@tanstack/react-query": "^5.62.15",
|
|
27
|
-
"@unifold/react-provider": "0.1.
|
|
28
|
-
"@unifold/ui-react": "0.1.
|
|
27
|
+
"@unifold/react-provider": "0.1.4",
|
|
28
|
+
"@unifold/ui-react": "0.1.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/react": "^18.2.0",
|