@unifold/ui-web 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.js CHANGED
@@ -60129,8 +60129,9 @@ function DepositModal({
60129
60129
  const effectiveInitialScreen = (0, import_react3.useMemo)(() => {
60130
60130
  const s = initialScreen ?? "main";
60131
60131
  if (s === "tracker" && hideDepositTracker) return "main";
60132
+ if (s === "cashapp" && !enableCashApp) return "main";
60132
60133
  return s;
60133
- }, [initialScreen, hideDepositTracker]);
60134
+ }, [initialScreen, hideDepositTracker, enableCashApp]);
60134
60135
  const [containerEl, setContainerEl] = (0, import_react3.useState)(null);
60135
60136
  const containerCallbackRef = (0, import_react3.useCallback)((el) => {
60136
60137
  setContainerEl(el);
@@ -63291,6 +63292,7 @@ function UnifoldProvider2({
63291
63292
  transferInputVariant: config?.transferInputVariant,
63292
63293
  enableConnectWallet: config?.enableConnectWallet,
63293
63294
  enablePayWithExchange: config?.enablePayWithExchange,
63295
+ enableCashApp: config?.enableCashApp,
63294
63296
  onDepositSuccess: handleDepositSuccess,
63295
63297
  onDepositError: handleDepositError,
63296
63298
  onEvent: depositConfig.onEvent,
package/dist/index.mjs CHANGED
@@ -60116,8 +60116,9 @@ function DepositModal({
60116
60116
  const effectiveInitialScreen = (0, import_react3.useMemo)(() => {
60117
60117
  const s = initialScreen ?? "main";
60118
60118
  if (s === "tracker" && hideDepositTracker) return "main";
60119
+ if (s === "cashapp" && !enableCashApp) return "main";
60119
60120
  return s;
60120
- }, [initialScreen, hideDepositTracker]);
60121
+ }, [initialScreen, hideDepositTracker, enableCashApp]);
60121
60122
  const [containerEl, setContainerEl] = (0, import_react3.useState)(null);
60122
60123
  const containerCallbackRef = (0, import_react3.useCallback)((el) => {
60123
60124
  setContainerEl(el);
@@ -63278,6 +63279,7 @@ function UnifoldProvider2({
63278
63279
  transferInputVariant: config?.transferInputVariant,
63279
63280
  enableConnectWallet: config?.enableConnectWallet,
63280
63281
  enablePayWithExchange: config?.enablePayWithExchange,
63282
+ enableCashApp: config?.enableCashApp,
63281
63283
  onDepositSuccess: handleDepositSuccess,
63282
63284
  onDepositError: handleDepositError,
63283
63285
  onEvent: depositConfig.onEvent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifold/ui-web",
3
- "version": "0.1.54",
3
+ "version": "0.1.55",
4
4
  "description": "Unifold UI Web - Framework-agnostic deposit widget",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -30,10 +30,10 @@
30
30
  "@types/react-dom": "^19.0.0",
31
31
  "tsup": "^8.0.0",
32
32
  "typescript": "^5.0.0",
33
- "@unifold/connect-react": "0.1.54",
34
- "@unifold/ui-react": "0.1.54",
35
- "@unifold/core": "0.1.54",
36
- "@unifold/react-provider": "0.1.54"
33
+ "@unifold/connect-react": "0.1.55",
34
+ "@unifold/core": "0.1.55",
35
+ "@unifold/ui-react": "0.1.55",
36
+ "@unifold/react-provider": "0.1.55"
37
37
  },
38
38
  "keywords": [
39
39
  "unifold",