@human.tech/waap-sdk 1.0.0 → 1.0.2
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 +3 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/index.module.js +1 -1
- package/dist/index.module.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/lib/WalletMessageManager.d.ts +1 -1
- package/dist/lib/provider/EthereumProvider.d.ts +3 -2
- package/dist/lib/provider/EthereumProviderExtension.d.ts +1 -1
- package/dist/lib/provider/requests.d.ts +1 -1
- package/dist/lib/provider/types.d.ts +2 -1
- package/dist/lib/provider/utils.d.ts +1 -1
- package/dist/ui/WaapComponent.d.ts +37 -0
- package/dist/ui/index.d.ts +4 -10
- package/package.json +7 -7
- package/src/global.d.ts +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@human.tech/waap-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "SDK for interacting with WaaP",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
},
|
|
28
28
|
"microbundle": {
|
|
29
29
|
"globals": {
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
30
|
+
"@human.tech/waap-constants": "silkConstants",
|
|
31
|
+
"@human.tech/waap-interface-core": "silkInterfaceCore",
|
|
32
32
|
"@reown/appkit-adapter-ethers": "appkitAdapterEthers",
|
|
33
33
|
"events": "EventEmitter"
|
|
34
34
|
},
|
|
35
35
|
"external": [
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
36
|
+
"@human.tech/waap-constants",
|
|
37
|
+
"@human.tech/waap-interface-core",
|
|
38
38
|
"@reown/appkit-adapter-ethers",
|
|
39
39
|
"events"
|
|
40
40
|
]
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"pino-pretty": "^10.2.0",
|
|
58
58
|
"zod": "^3.21.4",
|
|
59
59
|
"zod-validation-error": "^1.3.0",
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
60
|
+
"@human.tech/waap-constants": "0.0.1",
|
|
61
|
+
"@human.tech/waap-interface-core": "0.1.0"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "microbundle",
|
package/src/global.d.ts
CHANGED
|
@@ -6,4 +6,21 @@ declare global {
|
|
|
6
6
|
waap: SilkProvider | undefined // WaaP alias for backwards compatibility
|
|
7
7
|
ethereum: any
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
// TypeScript support for the <waap-wallet> custom element in JSX/TSX
|
|
11
|
+
namespace JSX {
|
|
12
|
+
interface IntrinsicElements {
|
|
13
|
+
'waap-wallet': React.DetailedHTMLProps<
|
|
14
|
+
React.HTMLAttributes<HTMLElement>,
|
|
15
|
+
HTMLElement
|
|
16
|
+
>
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Also support in HTMLElementTagNameMap for querySelector etc.
|
|
22
|
+
declare global {
|
|
23
|
+
interface HTMLElementTagNameMap {
|
|
24
|
+
'waap-wallet': HTMLElement
|
|
25
|
+
}
|
|
9
26
|
}
|