@daimo/pay 1.18.2 → 1.18.3

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.
@@ -1,5 +1,5 @@
1
1
  var name = "@daimo/pay";
2
- var version = "1.18.2";
2
+ var version = "1.18.3";
3
3
  var author = "Daimo";
4
4
  var homepage = "https://pay.daimo.com";
5
5
  var license = "BSD-2-Clause license";
@@ -31,7 +31,7 @@ var scripts = {
31
31
  lint: "eslint 'src/**/*.{js,jsx,ts,tsx}' --max-warnings=0"
32
32
  };
33
33
  var dependencies = {
34
- "@daimo/pay-common": "1.18.2",
34
+ "@daimo/pay-common": "1.18.3",
35
35
  "@solana/wallet-adapter-base": "^0.9.23",
36
36
  "@solana/wallet-adapter-react": "^0.15.35",
37
37
  "@solana/web3.js": "^1.95.4",
@@ -1,3 +1,4 @@
1
1
  export { useWithdrawToWorld } from './world-mini-app/useWithdrawToWorld.js';
2
+ export { useWorldSignIn } from './world-mini-app/useWorldSignIn.js';
2
3
  export { WorldPayButton } from './world-mini-app/WorldPayButton.js';
3
4
  //# sourceMappingURL=world.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"world.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"world.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
package/build/world.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Address, Hex } from 'viem';
2
+ import { MiniKit } from '@worldcoin/minikit-js';
2
3
  import * as React from 'react';
3
4
  import { ReactElement } from 'react';
4
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
@@ -14,6 +15,12 @@ declare function useWithdrawToWorld(): {
14
15
  }) => Promise<Address | null>;
15
16
  };
16
17
 
18
+ declare function useWorldSignIn(): {
19
+ signInWithWorld: () => Promise<typeof MiniKit.user | null>;
20
+ worldUser: typeof MiniKit.user | null;
21
+ isLoadingSignIn: boolean;
22
+ };
23
+
17
24
  type WorldPayButtonPaymentProps = {
18
25
  /**
19
26
  * Your public app ID. Specify either (payId) or (appId + parameters).
@@ -99,5 +106,5 @@ declare namespace WorldPayButtonCustom {
99
106
  var displayName: string;
100
107
  }
101
108
 
102
- export { WorldPayButton, useWithdrawToWorld };
109
+ export { WorldPayButton, useWithdrawToWorld, useWorldSignIn };
103
110
  export type { WorldPayButtonCustomProps, WorldPayButtonProps };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@daimo/pay",
3
3
  "private": false,
4
- "version": "1.18.2",
4
+ "version": "1.18.3",
5
5
  "author": "Daimo",
6
6
  "homepage": "https://pay.daimo.com",
7
7
  "license": "BSD-2-Clause license",
@@ -33,7 +33,7 @@
33
33
  "lint": "eslint 'src/**/*.{js,jsx,ts,tsx}' --max-warnings=0"
34
34
  },
35
35
  "dependencies": {
36
- "@daimo/pay-common": "1.18.2",
36
+ "@daimo/pay-common": "1.18.3",
37
37
  "@solana/wallet-adapter-base": "^0.9.23",
38
38
  "@solana/wallet-adapter-react": "^0.15.35",
39
39
  "@solana/web3.js": "^1.95.4",