@xyo-network/react-wallet-service 10.0.5 → 10.0.6
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/dist/browser/index.d.ts +1 -1
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.mjs +2 -26
- package/dist/browser/index.mjs.map +3 -3
- package/package.json +44 -5
- package/dist/browser/contexts/Context.d.ts +0 -14
- package/dist/browser/contexts/Context.d.ts.map +0 -1
- package/dist/browser/contexts/Provider.d.ts +0 -4
- package/dist/browser/contexts/Provider.d.ts.map +0 -1
- package/dist/browser/contexts/State.d.ts +0 -6
- package/dist/browser/contexts/State.d.ts.map +0 -1
- package/dist/browser/contexts/index.d.ts +0 -5
- package/dist/browser/contexts/index.d.ts.map +0 -1
- package/dist/browser/contexts/use.d.ts +0 -14
- package/dist/browser/contexts/use.d.ts.map +0 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '@xyo-network/react-sdk/wallet-service';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,uCAAuC,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
|
|
3
|
-
var WalletServiceContext = createContextEx();
|
|
4
|
-
|
|
5
|
-
// src/contexts/Provider.tsx
|
|
6
|
-
import { MetaMaskConnector } from "@xyo-network/sdk";
|
|
7
|
-
import { useMemo } from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
var WalletServiceProvider = ({ children }) => {
|
|
10
|
-
const value = useMemo(() => ({ metaMaskWallet: new MetaMaskConnector(), provided: true }), []);
|
|
11
|
-
return /* @__PURE__ */ jsx(WalletServiceContext, { value, children });
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
// src/contexts/use.ts
|
|
15
|
-
import { assertEx } from "@ariestools/sdk";
|
|
16
|
-
import { use } from "react";
|
|
17
|
-
var useWalletService = () => {
|
|
18
|
-
const context = use(WalletServiceContext);
|
|
19
|
-
assertEx(context.metaMaskWallet, () => "WalletServiceContext not initialized");
|
|
20
|
-
return context;
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
WalletServiceContext,
|
|
24
|
-
WalletServiceProvider,
|
|
25
|
-
useWalletService
|
|
26
|
-
};
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "@xyo-network/react-sdk/wallet-service";
|
|
27
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Compatibility shim: this package re-exports from @xyo-network/react-sdk.\nexport * from '@xyo-network/react-sdk/wallet-service'\n"],
|
|
5
|
+
"mappings": ";AACA,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-wallet-service",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.6",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
"dist",
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@xyo-network/react-sdk": "~10.0.6"
|
|
45
|
+
},
|
|
43
46
|
"devDependencies": {
|
|
44
47
|
"@ariestools/eth-address": "~8.0.2",
|
|
45
48
|
"@ariestools/pixel": "~8.0.2",
|
|
@@ -50,6 +53,8 @@
|
|
|
50
53
|
"@metamask/providers": "~22.1.1",
|
|
51
54
|
"@mui/icons-material": "~9.2.0",
|
|
52
55
|
"@mui/material": "~9.2.0",
|
|
56
|
+
"@mui/system": "~9.2.0",
|
|
57
|
+
"@mui/x-tree-view": "~9.8.0",
|
|
53
58
|
"@noble/post-quantum": "~0.6.1",
|
|
54
59
|
"@opentelemetry/api": "~1.9.1",
|
|
55
60
|
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
@@ -57,14 +62,26 @@
|
|
|
57
62
|
"@scure/base": "~2.2.0",
|
|
58
63
|
"@scure/bip39": "~2.2.0",
|
|
59
64
|
"@types/react": "~19.2.17",
|
|
60
|
-
"@xylabs/toolchain": "~8.6.
|
|
61
|
-
"@xylabs/tsconfig": "~8.6.
|
|
62
|
-
"@xylabs/tsconfig-dom": "~8.6.
|
|
63
|
-
"@xylabs/tsconfig-react": "~8.6.
|
|
65
|
+
"@xylabs/toolchain": "~8.6.8",
|
|
66
|
+
"@xylabs/tsconfig": "~8.6.8",
|
|
67
|
+
"@xylabs/tsconfig-dom": "~8.6.8",
|
|
68
|
+
"@xylabs/tsconfig-react": "~8.6.8",
|
|
69
|
+
"@xyo-network/advertising-payload-plugins": "~7.0.2",
|
|
70
|
+
"@xyo-network/archivist-storage": "~7.0.9",
|
|
71
|
+
"@xyo-network/diviner-address-history-model": "~7.0.9",
|
|
72
|
+
"@xyo-network/diviner-hash-lease": "~7.0.9",
|
|
73
|
+
"@xyo-network/diviner-huri": "~7.0.9",
|
|
74
|
+
"@xyo-network/diviner-schema-list": "~7.0.9",
|
|
75
|
+
"@xyo-network/diviner-schema-stats": "~7.0.9",
|
|
76
|
+
"@xyo-network/node-core-types": "~4.2.2",
|
|
64
77
|
"@xyo-network/sdk": "~7.0.9",
|
|
78
|
+
"@xyo-network/sdk-geo": "~3.0.3",
|
|
65
79
|
"@xyo-network/sdk-protocol": "~7.0.14",
|
|
80
|
+
"@xyo-network/typeof": "~5.3.30",
|
|
81
|
+
"@xyo-network/xns-record-payloadset-plugins": "~7.0.2",
|
|
66
82
|
"ajv": "~8.20.0",
|
|
67
83
|
"async-mutex": "~0.5.0",
|
|
84
|
+
"card-validator": "~10.0.4",
|
|
68
85
|
"clsx": "~2.1.1",
|
|
69
86
|
"debug": "~4.4.3",
|
|
70
87
|
"eslint": "~10.6.0",
|
|
@@ -72,14 +89,17 @@
|
|
|
72
89
|
"hash-wasm": "~4.12.0",
|
|
73
90
|
"idb": "~8.0.3",
|
|
74
91
|
"lru-cache": "~11.5.1",
|
|
92
|
+
"mapbox-gl": "~3.25.0",
|
|
75
93
|
"md5": "~2.3.0",
|
|
76
94
|
"numeral": "~2.0.6",
|
|
77
95
|
"observable-fns": "~0.6.1",
|
|
78
96
|
"query-string": "~9.4.1",
|
|
79
97
|
"react": "~19.2.7",
|
|
80
98
|
"react-dom": "~19.2.7",
|
|
99
|
+
"react-icons": "~5.7.0",
|
|
81
100
|
"react-router-dom": "~7.18.1",
|
|
82
101
|
"rollbar": "~3.1.0",
|
|
102
|
+
"store2": "~2.14.4",
|
|
83
103
|
"typescript": "~6.0.3",
|
|
84
104
|
"viem": "~2.54.3",
|
|
85
105
|
"webextension-polyfill": "~0.12.0",
|
|
@@ -96,30 +116,48 @@
|
|
|
96
116
|
"@metamask/providers": "^22.1.1",
|
|
97
117
|
"@mui/icons-material": "^9.2.0",
|
|
98
118
|
"@mui/material": "^9.2.0",
|
|
119
|
+
"@mui/system": "^9.2.0",
|
|
120
|
+
"@mui/x-tree-view": "^9.8.0",
|
|
99
121
|
"@noble/post-quantum": "^0.6.1",
|
|
100
122
|
"@opentelemetry/api": "^1.9.1",
|
|
101
123
|
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
102
124
|
"@react-spring/web": "^10.1.2",
|
|
103
125
|
"@scure/base": "^2.2.0",
|
|
104
126
|
"@scure/bip39": "^2.2.0",
|
|
127
|
+
"@types/react": "^19.2.17",
|
|
128
|
+
"@xyo-network/advertising-payload-plugins": "^7.0.2",
|
|
129
|
+
"@xyo-network/archivist-storage": "^7.0.9",
|
|
130
|
+
"@xyo-network/diviner-address-history-model": "^7.0.9",
|
|
131
|
+
"@xyo-network/diviner-hash-lease": "^7.0.9",
|
|
132
|
+
"@xyo-network/diviner-huri": "^7.0.9",
|
|
133
|
+
"@xyo-network/diviner-schema-list": "^7.0.9",
|
|
134
|
+
"@xyo-network/diviner-schema-stats": "^7.0.9",
|
|
135
|
+
"@xyo-network/node-core-types": "^4.2.2",
|
|
105
136
|
"@xyo-network/sdk": "^7.0.9",
|
|
137
|
+
"@xyo-network/sdk-geo": "^3.0.3",
|
|
106
138
|
"@xyo-network/sdk-protocol": "^7.0.14",
|
|
139
|
+
"@xyo-network/typeof": "^5.3.30",
|
|
140
|
+
"@xyo-network/xns-record-payloadset-plugins": "^7.0.2",
|
|
107
141
|
"ajv": "^8.20.0",
|
|
108
142
|
"async-mutex": "^0.5.0",
|
|
143
|
+
"card-validator": "^10.0.4",
|
|
109
144
|
"clsx": "^2.1.1",
|
|
110
145
|
"debug": "^4.4.3",
|
|
111
146
|
"ethers": "^6.17.0",
|
|
112
147
|
"hash-wasm": "^4.12.0",
|
|
113
148
|
"idb": "^8.0.3",
|
|
114
149
|
"lru-cache": "^11.5.1",
|
|
150
|
+
"mapbox-gl": "^3.25.0",
|
|
115
151
|
"md5": "^2.3.0",
|
|
116
152
|
"numeral": "^2.0.6",
|
|
117
153
|
"observable-fns": "^0.6.1",
|
|
118
154
|
"query-string": "^9.4.1",
|
|
119
155
|
"react": "^19.2.7",
|
|
120
156
|
"react-dom": "^19.2.7",
|
|
157
|
+
"react-icons": "^5.7.0",
|
|
121
158
|
"react-router-dom": "^7.18.1",
|
|
122
159
|
"rollbar": "^3.1.0",
|
|
160
|
+
"store2": "^2.14.4",
|
|
123
161
|
"viem": "^2.54.3",
|
|
124
162
|
"webextension-polyfill": "^0.12.0",
|
|
125
163
|
"zod": "^4.4.3",
|
|
@@ -128,5 +166,6 @@
|
|
|
128
166
|
"publishConfig": {
|
|
129
167
|
"access": "public"
|
|
130
168
|
},
|
|
169
|
+
"deprecated": "Use @xyo-network/react-sdk/wallet-service instead. Replace @xyo-network/react-wallet-service with @xyo-network/react-sdk/wallet-service. This package is a compatibility shim only and will not receive further updates.",
|
|
131
170
|
"docs": "dist/docs.json"
|
|
132
171
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const WalletServiceContext: import("react").Context<({
|
|
2
|
-
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
3
|
-
} & {
|
|
4
|
-
provided: true;
|
|
5
|
-
}) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").ProvidedContextExState<{
|
|
6
|
-
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
7
|
-
}>, never> & {
|
|
8
|
-
provided: false;
|
|
9
|
-
}) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").NotProvidedContextExState<{
|
|
10
|
-
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
11
|
-
}>, never> & {
|
|
12
|
-
provided: false;
|
|
13
|
-
})>;
|
|
14
|
-
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/contexts/Context.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;GAAwC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../src/contexts/Provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAkB,MAAM,OAAO,CAAA;AAKtC,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAG7D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../src/contexts/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEzD,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;IAC9C,cAAc,EAAE,iBAAiB,CAAA;CAClC,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contexts/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const useWalletService: () => ({
|
|
2
|
-
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
3
|
-
} & {
|
|
4
|
-
provided: true;
|
|
5
|
-
}) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").ProvidedContextExState<{
|
|
6
|
-
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
7
|
-
}>, never> & {
|
|
8
|
-
provided: false;
|
|
9
|
-
}) | (import("@ariestools/sdk-react/shared").FixedValues<import("@ariestools/sdk-react/shared").NotProvidedContextExState<{
|
|
10
|
-
metaMaskWallet: import("@xyo-network/sdk-protocol").MetaMaskConnector;
|
|
11
|
-
}>, never> & {
|
|
12
|
-
provided: false;
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../src/contexts/use.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAK5B,CAAA"}
|