@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.
- package/build/package.json.js +2 -2
- package/build/src/world.js +1 -0
- package/build/src/world.js.map +1 -1
- package/build/world.d.ts +8 -1
- package/package.json +2 -2
package/build/package.json.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@daimo/pay";
|
|
2
|
-
var version = "1.18.
|
|
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.
|
|
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",
|
package/build/src/world.js
CHANGED
package/build/src/world.js.map
CHANGED
|
@@ -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.
|
|
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.
|
|
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",
|