@mysten/enoki 1.2.30 → 1.3.0
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/CHANGELOG.md +9 -0
- package/README.md +5 -1
- package/dist/client.d.mts +3 -0
- package/dist/client.mjs +3 -0
- package/dist/index.d.mts +2 -1
- package/package.json +9 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -51,8 +51,12 @@ function LoginButton() {
|
|
|
51
51
|
|
|
52
52
|
### Low-level client usage
|
|
53
53
|
|
|
54
|
+
Use the client-only entry point to call the Enoki API without loading wallet helpers or local
|
|
55
|
+
zkLogin cryptography. This is useful in environments that do not tree-shake unused exports, such as
|
|
56
|
+
React Native. The existing exports from `@mysten/enoki` remain available.
|
|
57
|
+
|
|
54
58
|
```ts
|
|
55
|
-
import { EnokiClient } from '@mysten/enoki';
|
|
59
|
+
import { EnokiClient } from '@mysten/enoki/client';
|
|
56
60
|
|
|
57
61
|
const client = new EnokiClient({
|
|
58
62
|
apiKey: 'your-enoki-api-key',
|
package/dist/client.mjs
ADDED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AuthProvider, EnokiNetwork } from "./EnokiClient/type.mjs";
|
|
2
2
|
import { EnokiClient, EnokiClientConfig, EnokiClientError } from "./EnokiClient/index.mjs";
|
|
3
|
+
import "./client.mjs";
|
|
3
4
|
import { Encryption, createDefaultEncryption } from "./encryption.mjs";
|
|
4
5
|
import { EnokiKeypair, EnokiPublicKey } from "./EnokiKeypair.mjs";
|
|
5
6
|
import { SyncStore, createInMemoryStorage, createLocalStorage, createSessionStorage } from "./stores.mjs";
|
|
@@ -10,4 +11,4 @@ import { registerEnokiWallets } from "./wallet/register.mjs";
|
|
|
10
11
|
import { enokiWalletsInitializer } from "./wallet/initializer.mjs";
|
|
11
12
|
import { getSession, getWalletMetadata, isEnokiWallet, isFacebookWallet, isGoogleWallet, isTwitchWallet } from "./wallet/utils.mjs";
|
|
12
13
|
import { isEnokiNetwork } from "./utils.mjs";
|
|
13
|
-
export {
|
|
14
|
+
export { AuthProvider, type Encryption, EnokiClient, EnokiClientConfig, EnokiClientError, EnokiFlow, type EnokiFlowConfig, EnokiKeypair, EnokiNetwork, EnokiPublicKey, type EnokiWallet, type RegisterEnokiWalletsOptions, type SyncStore, createDefaultEncryption, createInMemoryStorage, createLocalStorage, createSessionStorage, enokiWalletsInitializer, getSession, getWalletMetadata, isEnokiNetwork, isEnokiWallet, isFacebookWallet, isGoogleWallet, isTwitchWallet, registerEnokiWallets };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mysten/enoki",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "zkLogin authentication and sponsored transactions",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Mysten Labs <build@mystenlabs.com>",
|
|
@@ -13,6 +13,11 @@
|
|
|
13
13
|
"import": "./dist/index.mjs",
|
|
14
14
|
"default": "./dist/index.mjs"
|
|
15
15
|
},
|
|
16
|
+
"./client": {
|
|
17
|
+
"types": "./dist/client.d.mts",
|
|
18
|
+
"import": "./dist/client.mjs",
|
|
19
|
+
"default": "./dist/client.mjs"
|
|
20
|
+
},
|
|
16
21
|
"./react": {
|
|
17
22
|
"types": "./dist/react.d.mts",
|
|
18
23
|
"import": "./dist/react.mjs",
|
|
@@ -46,13 +51,13 @@
|
|
|
46
51
|
"idb-keyval": "^6.3.0",
|
|
47
52
|
"nanostores": "^1.4.2",
|
|
48
53
|
"@mysten/utils": "^0.4.1",
|
|
49
|
-
"@mysten/
|
|
50
|
-
"@mysten/
|
|
54
|
+
"@mysten/wallet-standard": "^0.21.34",
|
|
55
|
+
"@mysten/webcrypto-signer": "^0.2.34"
|
|
51
56
|
},
|
|
52
57
|
"peerDependencies": {
|
|
53
58
|
"@types/react": ">=17.0.0",
|
|
54
59
|
"react": ">=17.0.0",
|
|
55
|
-
"@mysten/sui": "^2.
|
|
60
|
+
"@mysten/sui": "^2.36.0"
|
|
56
61
|
},
|
|
57
62
|
"peerDependenciesMeta": {
|
|
58
63
|
"react": {
|