@unifold/connect-react 0.1.54 → 0.1.55
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -32,6 +32,8 @@ interface UnifoldConnectProviderConfig {
|
|
|
32
32
|
enableConnectWallet?: boolean;
|
|
33
33
|
/** Enable "Pay with Exchange" option. Overrides dashboard default. Defaults to dashboard value or true. */
|
|
34
34
|
enablePayWithExchange?: boolean;
|
|
35
|
+
/** Enable "Pay with Cash App" option. Defaults to false. */
|
|
36
|
+
enableCashApp?: boolean;
|
|
35
37
|
/** Simple accent/primary color override (applies to both light and dark modes) */
|
|
36
38
|
accentColor?: string;
|
|
37
39
|
/** Full theme color customization per mode */
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ interface UnifoldConnectProviderConfig {
|
|
|
32
32
|
enableConnectWallet?: boolean;
|
|
33
33
|
/** Enable "Pay with Exchange" option. Overrides dashboard default. Defaults to dashboard value or true. */
|
|
34
34
|
enablePayWithExchange?: boolean;
|
|
35
|
+
/** Enable "Pay with Cash App" option. Defaults to false. */
|
|
36
|
+
enableCashApp?: boolean;
|
|
35
37
|
/** Simple accent/primary color override (applies to both light and dark modes) */
|
|
36
38
|
accentColor?: string;
|
|
37
39
|
/** Full theme color customization per mode */
|
package/dist/index.js
CHANGED
|
@@ -23493,8 +23493,9 @@ function DepositModal({
|
|
|
23493
23493
|
const effectiveInitialScreen = (0, import_react8.useMemo)(() => {
|
|
23494
23494
|
const s = initialScreen ?? "main";
|
|
23495
23495
|
if (s === "tracker" && hideDepositTracker) return "main";
|
|
23496
|
+
if (s === "cashapp" && !enableCashApp) return "main";
|
|
23496
23497
|
return s;
|
|
23497
|
-
}, [initialScreen, hideDepositTracker]);
|
|
23498
|
+
}, [initialScreen, hideDepositTracker, enableCashApp]);
|
|
23498
23499
|
const [containerEl, setContainerEl] = (0, import_react8.useState)(null);
|
|
23499
23500
|
const containerCallbackRef = (0, import_react8.useCallback)((el) => {
|
|
23500
23501
|
setContainerEl(el);
|
|
@@ -26658,6 +26659,7 @@ function UnifoldProvider2({
|
|
|
26658
26659
|
transferInputVariant: config?.transferInputVariant,
|
|
26659
26660
|
enableConnectWallet: config?.enableConnectWallet,
|
|
26660
26661
|
enablePayWithExchange: config?.enablePayWithExchange,
|
|
26662
|
+
enableCashApp: config?.enableCashApp,
|
|
26661
26663
|
onDepositSuccess: handleDepositSuccess,
|
|
26662
26664
|
onDepositError: handleDepositError,
|
|
26663
26665
|
onEvent: depositConfig.onEvent,
|
package/dist/index.mjs
CHANGED
|
@@ -23479,8 +23479,9 @@ function DepositModal({
|
|
|
23479
23479
|
const effectiveInitialScreen = useMemo92(() => {
|
|
23480
23480
|
const s = initialScreen ?? "main";
|
|
23481
23481
|
if (s === "tracker" && hideDepositTracker) return "main";
|
|
23482
|
+
if (s === "cashapp" && !enableCashApp) return "main";
|
|
23482
23483
|
return s;
|
|
23483
|
-
}, [initialScreen, hideDepositTracker]);
|
|
23484
|
+
}, [initialScreen, hideDepositTracker, enableCashApp]);
|
|
23484
23485
|
const [containerEl, setContainerEl] = useState29(null);
|
|
23485
23486
|
const containerCallbackRef = useCallback52((el) => {
|
|
23486
23487
|
setContainerEl(el);
|
|
@@ -26644,6 +26645,7 @@ function UnifoldProvider2({
|
|
|
26644
26645
|
transferInputVariant: config?.transferInputVariant,
|
|
26645
26646
|
enableConnectWallet: config?.enableConnectWallet,
|
|
26646
26647
|
enablePayWithExchange: config?.enablePayWithExchange,
|
|
26648
|
+
enableCashApp: config?.enableCashApp,
|
|
26647
26649
|
onDepositSuccess: handleDepositSuccess,
|
|
26648
26650
|
onDepositError: handleDepositError,
|
|
26649
26651
|
onEvent: depositConfig.onEvent,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifold/connect-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.55",
|
|
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",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@tanstack/react-query": "^5.90.11",
|
|
29
|
-
"@unifold/core": "0.1.
|
|
30
|
-
"@unifold/react-provider": "0.1.
|
|
31
|
-
"@unifold/ui-react": "0.1.
|
|
29
|
+
"@unifold/core": "0.1.55",
|
|
30
|
+
"@unifold/react-provider": "0.1.55",
|
|
31
|
+
"@unifold/ui-react": "0.1.55"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/react": "^19.0.0",
|