@daimo/pay 1.0.2 → 1.0.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/build/index.d.ts CHANGED
@@ -188,6 +188,8 @@ type PayButtonCommonProps = PayButtonPaymentProps & {
188
188
  onPaymentCompleted?: (event: PaymentCompletedEvent) => void;
189
189
  /** Called when destination call reverts and funds are refunded */
190
190
  onPaymentBounced?: (event: PaymentBouncedEvent) => void;
191
+ /** Automatically close the modal after a successful payment. */
192
+ closeOnSuccess?: boolean;
191
193
  };
192
194
  type DaimoPayButtonProps = PayButtonCommonProps & {
193
195
  /** Light mode, dark mode, or auto. */
@@ -196,14 +198,10 @@ type DaimoPayButtonProps = PayButtonCommonProps & {
196
198
  theme?: Theme;
197
199
  /** Custom theme. See docs for options. */
198
200
  customTheme?: CustomTheme;
199
- /** Automatically close the modal after a successful payment. */
200
- closeOnSuccess?: boolean;
201
201
  /** Disable interaction. */
202
202
  disabled?: boolean;
203
203
  };
204
204
  type DaimoPayButtonCustomProps = PayButtonCommonProps & {
205
- /** Automatically close the modal after a successful payment. */
206
- closeOnSuccess?: boolean;
207
205
  /** Custom renderer */
208
206
  children: (renderProps: {
209
207
  show: () => void;
@@ -1,5 +1,5 @@
1
1
  var name = "@daimo/pay";
2
- var version = "1.0.2";
2
+ var version = "1.0.4";
3
3
  var author = "Daimo";
4
4
  var homepage = "https://pay.daimo.com";
5
5
  var license = "BSD-2-Clause license";
@@ -38,7 +38,7 @@ var keywords = [
38
38
  "crypto"
39
39
  ];
40
40
  var dependencies = {
41
- "@daimo/common": "0.3.15",
41
+ "@daimo/common": "0.3.16",
42
42
  "@daimo/contract": "0.3.15",
43
43
  "@solana/wallet-adapter-base": "^0.9.23",
44
44
  "@solana/wallet-adapter-react": "^0.15.35",
@@ -58,8 +58,8 @@ var dependencies = {
58
58
  };
59
59
  var peerDependencies = {
60
60
  "@tanstack/react-query": ">=5.0.0",
61
- react: "17.x || 18.x",
62
- "react-dom": "17.x || 18.x",
61
+ react: "17.x || 18.x || 19.x",
62
+ "react-dom": "17.x || 18.x || 19.x",
63
63
  viem: "2.x",
64
64
  wagmi: "2.x"
65
65
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@daimo/pay",
3
3
  "private": false,
4
- "version": "1.0.2",
4
+ "version": "1.0.4",
5
5
  "author": "Daimo",
6
6
  "homepage": "https://pay.daimo.com",
7
7
  "license": "BSD-2-Clause license",
@@ -40,7 +40,7 @@
40
40
  "crypto"
41
41
  ],
42
42
  "dependencies": {
43
- "@daimo/common": "0.3.15",
43
+ "@daimo/common": "0.3.16",
44
44
  "@daimo/contract": "0.3.15",
45
45
  "@solana/wallet-adapter-base": "^0.9.23",
46
46
  "@solana/wallet-adapter-react": "^0.15.35",
@@ -60,8 +60,8 @@
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@tanstack/react-query": ">=5.0.0",
63
- "react": "17.x || 18.x",
64
- "react-dom": "17.x || 18.x",
63
+ "react": "17.x || 18.x || 19.x",
64
+ "react-dom": "17.x || 18.x || 19.x",
65
65
  "viem": "2.x",
66
66
  "wagmi": "2.x"
67
67
  },