@unifold/connect-react 0.1.80 → 0.1.81

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/README.md CHANGED
@@ -24,6 +24,11 @@ function App() {
24
24
  config={{
25
25
  modalTitle: 'Deposit Crypto',
26
26
  hideDepositTracker: false,
27
+ display: {
28
+ transferCrypto: {
29
+ exchangeRate: true,
30
+ },
31
+ },
27
32
  }}
28
33
  >
29
34
  <YourApp />
@@ -93,6 +98,8 @@ Wraps your application and provides the Unifold context.
93
98
  - `'dark'`: Force dark mode (default)
94
99
  - `'auto'`: Use system preference and respond to changes
95
100
  - `layout` (optional): Deposit menu layout and its options - `{ type, tabOrder }` (`type` defaults to `'tabs'`)
101
+ - `display` (optional): Surface-specific presentation toggles
102
+ - `display.transferCrypto.exchangeRate` (optional): Show exchange rate on Transfer Crypto screens (defaults to `false`)
96
103
  - `children` (required): Your React components
97
104
 
98
105
  ```tsx
@@ -522,6 +529,11 @@ const providerConfig: UnifoldConnectProviderConfig = {
522
529
  config: {
523
530
  modalTitle: 'Deposit',
524
531
  hideDepositTracker: false,
532
+ display: {
533
+ transferCrypto: {
534
+ exchangeRate: true,
535
+ },
536
+ },
525
537
  },
526
538
  };
527
539
 
package/dist/index.d.mts CHANGED
@@ -80,6 +80,18 @@ interface UnifoldConnectProviderConfig {
80
80
  */
81
81
  incidentBanner?: boolean;
82
82
  };
83
+ /**
84
+ * Display preferences for specific deposit surfaces.
85
+ */
86
+ display?: {
87
+ transferCrypto?: {
88
+ /**
89
+ * Show the reference exchange-rate row on Transfer Crypto screens.
90
+ * Defaults to false.
91
+ */
92
+ exchangeRate?: boolean;
93
+ };
94
+ };
83
95
  /**
84
96
  * Enable "Pay with Apple Pay" (headless Coinbase) option. Overrides
85
97
  * dashboard default. Resolves as flag ?? dashboard `apple_pay.enabled` ??
package/dist/index.d.ts CHANGED
@@ -80,6 +80,18 @@ interface UnifoldConnectProviderConfig {
80
80
  */
81
81
  incidentBanner?: boolean;
82
82
  };
83
+ /**
84
+ * Display preferences for specific deposit surfaces.
85
+ */
86
+ display?: {
87
+ transferCrypto?: {
88
+ /**
89
+ * Show the reference exchange-rate row on Transfer Crypto screens.
90
+ * Defaults to false.
91
+ */
92
+ exchangeRate?: boolean;
93
+ };
94
+ };
83
95
  /**
84
96
  * Enable "Pay with Apple Pay" (headless Coinbase) option. Overrides
85
97
  * dashboard default. Resolves as flag ?? dashboard `apple_pay.enabled` ??