@chipi-stack/nextjs 13.1.0 → 13.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/dist/cjs/hooks.d.ts +1 -1
- package/dist/cjs/hooks.js +2 -10
- package/dist/cjs/hooks.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/esm/hooks.js +1 -9
- package/dist/esm/hooks.js.map +1 -1
- package/dist/hooks.d.mts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +6 -6
package/dist/cjs/hooks.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey,
|
|
1
|
+
export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransactionList, useGetWallet, useMigrateWalletToPasskey, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useTransfer } from '@chipi-stack/chipi-react';
|
package/dist/cjs/hooks.js
CHANGED
|
@@ -26,7 +26,6 @@ __export(hooks_exports, {
|
|
|
26
26
|
useChipiSession: () => import_chipi_react.useChipiSession,
|
|
27
27
|
useChipiWallet: () => import_chipi_react.useChipiWallet,
|
|
28
28
|
useCreateSessionKey: () => import_chipi_react.useCreateSessionKey,
|
|
29
|
-
useCreateUser: () => import_chipi_react.useCreateUser,
|
|
30
29
|
useCreateWallet: () => import_chipi_react.useCreateWallet,
|
|
31
30
|
useExecuteWithSession: () => import_chipi_react.useExecuteWithSession,
|
|
32
31
|
useGetSessionData: () => import_chipi_react.useGetSessionData,
|
|
@@ -34,15 +33,12 @@ __export(hooks_exports, {
|
|
|
34
33
|
useGetSkuList: () => import_chipi_react.useGetSkuList,
|
|
35
34
|
useGetTokenBalance: () => import_chipi_react.useGetTokenBalance,
|
|
36
35
|
useGetTransactionList: () => import_chipi_react.useGetTransactionList,
|
|
37
|
-
useGetUser: () => import_chipi_react.useGetUser,
|
|
38
36
|
useGetWallet: () => import_chipi_react.useGetWallet,
|
|
39
37
|
useMigrateWalletToPasskey: () => import_chipi_react.useMigrateWalletToPasskey,
|
|
40
38
|
usePurchaseSku: () => import_chipi_react.usePurchaseSku,
|
|
41
39
|
useRecordSendTransaction: () => import_chipi_react.useRecordSendTransaction,
|
|
42
40
|
useRevokeSessionKey: () => import_chipi_react.useRevokeSessionKey,
|
|
43
|
-
|
|
44
|
-
useTransfer: () => import_chipi_react.useTransfer,
|
|
45
|
-
useWithdrawVesuUsdc: () => import_chipi_react.useWithdrawVesuUsdc
|
|
41
|
+
useTransfer: () => import_chipi_react.useTransfer
|
|
46
42
|
});
|
|
47
43
|
module.exports = __toCommonJS(hooks_exports);
|
|
48
44
|
var import_chipi_react = require("@chipi-stack/chipi-react");
|
|
@@ -55,7 +51,6 @@ var import_chipi_react = require("@chipi-stack/chipi-react");
|
|
|
55
51
|
useChipiSession,
|
|
56
52
|
useChipiWallet,
|
|
57
53
|
useCreateSessionKey,
|
|
58
|
-
useCreateUser,
|
|
59
54
|
useCreateWallet,
|
|
60
55
|
useExecuteWithSession,
|
|
61
56
|
useGetSessionData,
|
|
@@ -63,14 +58,11 @@ var import_chipi_react = require("@chipi-stack/chipi-react");
|
|
|
63
58
|
useGetSkuList,
|
|
64
59
|
useGetTokenBalance,
|
|
65
60
|
useGetTransactionList,
|
|
66
|
-
useGetUser,
|
|
67
61
|
useGetWallet,
|
|
68
62
|
useMigrateWalletToPasskey,
|
|
69
63
|
usePurchaseSku,
|
|
70
64
|
useRecordSendTransaction,
|
|
71
65
|
useRevokeSessionKey,
|
|
72
|
-
|
|
73
|
-
useTransfer,
|
|
74
|
-
useWithdrawVesuUsdc
|
|
66
|
+
useTransfer
|
|
75
67
|
});
|
|
76
68
|
//# sourceMappingURL=hooks.js.map
|
package/dist/cjs/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks.ts"],"sourcesContent":["\"use client\";\n\n// Client-side hooks for Next.js Chipi SDK\n// These are re-exported from @chipi-stack/chipi-react for convenience\n// This file is marked as 'use client' to ensure it only runs on the client\n\nexport {\n // Context hook\n useChipiContext,\n\n // Wallet hooks\n useCreateWallet,\n useGetWallet,\n useChipiWallet,\n useMigrateWalletToPasskey,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n useGetTransactionList,\n\n // SKU hooks\n useGetSkuList,\n useGetSku,\n usePurchaseSku,\n
|
|
1
|
+
{"version":3,"sources":["../../src/hooks.ts"],"sourcesContent":["\"use client\";\n\n// Client-side hooks for Next.js Chipi SDK\n// These are re-exported from @chipi-stack/chipi-react for convenience\n// This file is marked as 'use client' to ensure it only runs on the client\n\nexport {\n // Context hook\n useChipiContext,\n\n // Wallet hooks\n useCreateWallet,\n useGetWallet,\n useChipiWallet,\n useMigrateWalletToPasskey,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n useGetTransactionList,\n\n // SKU hooks\n useGetSkuList,\n useGetSku,\n usePurchaseSku,\n useCallAnyContract,\n\n // Record send transaction hook\n useRecordSendTransaction,\n\n // Token balance hook\n useGetTokenBalance,\n\n // Session hooks (CHIPI wallets only)\n useCreateSessionKey,\n useAddSessionKeyToContract,\n useRevokeSessionKey,\n useGetSessionData,\n useExecuteWithSession,\n\n // Unified session hook\n useChipiSession,\n} from \"@chipi-stack/chipi-react\";\n\n// Re-export hook types for convenience\nexport type {\n UseChipiWalletConfig,\n UseChipiWalletReturn,\n ChipiWalletData,\n UseChipiSessionConfig,\n UseChipiSessionReturn,\n SessionState,\n SessionWallet,\n} from \"@chipi-stack/chipi-react\";\n\n// Note: Passkey hooks (usePasskeySetup, usePasskeyAuth, usePasskeyStatus)\n// are available by importing from \"@chipi-stack/chipi-passkey/hooks\" directly\n// We don't re-export them here to avoid module resolution issues.\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBAoCO;","names":[]}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ServerComponentsServerModuleTypes } from './components.server.js';
|
|
2
2
|
export { ChipiProvider as ChipiClientProvider } from './app-router/client/ChipiProvider.js';
|
|
3
|
-
export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey,
|
|
3
|
+
export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransactionList, useGetWallet, useMigrateWalletToPasskey, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useTransfer } from '@chipi-stack/chipi-react';
|
|
4
4
|
export { CreateWalletPasskeyResult, PasskeyStatus, UsePasskeyAuthResult, UsePasskeySetupResult, UsePasskeyStatusResult, WalletCredentialMetadata, createWalletPasskey, getStoredCredential, getWalletEncryptKey, hasWalletPasskey, isWebAuthnPRFSupported, isWebAuthnSupported, removeStoredCredential, verifyWalletPasskey } from '@chipi-stack/chipi-passkey';
|
|
5
5
|
export * from '@chipi-stack/types';
|
|
6
6
|
export { Chain, ChainToken } from '@chipi-stack/types';
|
package/dist/esm/hooks.js
CHANGED
|
@@ -11,13 +11,9 @@ import {
|
|
|
11
11
|
useGetSkuList,
|
|
12
12
|
useGetSku,
|
|
13
13
|
usePurchaseSku,
|
|
14
|
-
useStakeVesuUsdc,
|
|
15
|
-
useWithdrawVesuUsdc,
|
|
16
14
|
useCallAnyContract,
|
|
17
15
|
useRecordSendTransaction,
|
|
18
16
|
useGetTokenBalance,
|
|
19
|
-
useGetUser,
|
|
20
|
-
useCreateUser,
|
|
21
17
|
useCreateSessionKey,
|
|
22
18
|
useAddSessionKeyToContract,
|
|
23
19
|
useRevokeSessionKey,
|
|
@@ -33,7 +29,6 @@ export {
|
|
|
33
29
|
useChipiSession,
|
|
34
30
|
useChipiWallet,
|
|
35
31
|
useCreateSessionKey,
|
|
36
|
-
useCreateUser,
|
|
37
32
|
useCreateWallet,
|
|
38
33
|
useExecuteWithSession,
|
|
39
34
|
useGetSessionData,
|
|
@@ -41,14 +36,11 @@ export {
|
|
|
41
36
|
useGetSkuList,
|
|
42
37
|
useGetTokenBalance,
|
|
43
38
|
useGetTransactionList,
|
|
44
|
-
useGetUser,
|
|
45
39
|
useGetWallet,
|
|
46
40
|
useMigrateWalletToPasskey,
|
|
47
41
|
usePurchaseSku,
|
|
48
42
|
useRecordSendTransaction,
|
|
49
43
|
useRevokeSessionKey,
|
|
50
|
-
|
|
51
|
-
useTransfer,
|
|
52
|
-
useWithdrawVesuUsdc
|
|
44
|
+
useTransfer
|
|
53
45
|
};
|
|
54
46
|
//# sourceMappingURL=hooks.js.map
|
package/dist/esm/hooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks.ts"],"sourcesContent":["\"use client\";\n\n// Client-side hooks for Next.js Chipi SDK\n// These are re-exported from @chipi-stack/chipi-react for convenience\n// This file is marked as 'use client' to ensure it only runs on the client\n\nexport {\n // Context hook\n useChipiContext,\n\n // Wallet hooks\n useCreateWallet,\n useGetWallet,\n useChipiWallet,\n useMigrateWalletToPasskey,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n useGetTransactionList,\n\n // SKU hooks\n useGetSkuList,\n useGetSku,\n usePurchaseSku,\n
|
|
1
|
+
{"version":3,"sources":["../../src/hooks.ts"],"sourcesContent":["\"use client\";\n\n// Client-side hooks for Next.js Chipi SDK\n// These are re-exported from @chipi-stack/chipi-react for convenience\n// This file is marked as 'use client' to ensure it only runs on the client\n\nexport {\n // Context hook\n useChipiContext,\n\n // Wallet hooks\n useCreateWallet,\n useGetWallet,\n useChipiWallet,\n useMigrateWalletToPasskey,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n useGetTransactionList,\n\n // SKU hooks\n useGetSkuList,\n useGetSku,\n usePurchaseSku,\n useCallAnyContract,\n\n // Record send transaction hook\n useRecordSendTransaction,\n\n // Token balance hook\n useGetTokenBalance,\n\n // Session hooks (CHIPI wallets only)\n useCreateSessionKey,\n useAddSessionKeyToContract,\n useRevokeSessionKey,\n useGetSessionData,\n useExecuteWithSession,\n\n // Unified session hook\n useChipiSession,\n} from \"@chipi-stack/chipi-react\";\n\n// Re-export hook types for convenience\nexport type {\n UseChipiWalletConfig,\n UseChipiWalletReturn,\n ChipiWalletData,\n UseChipiSessionConfig,\n UseChipiSessionReturn,\n SessionState,\n SessionWallet,\n} from \"@chipi-stack/chipi-react\";\n\n// Note: Passkey hooks (usePasskeySetup, usePasskeyAuth, usePasskeyStatus)\n// are available by importing from \"@chipi-stack/chipi-passkey/hooks\" directly\n// We don't re-export them here to avoid module resolution issues.\n"],"mappings":";AAMA;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,OACK;","names":[]}
|
package/dist/hooks.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey,
|
|
1
|
+
export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransactionList, useGetWallet, useMigrateWalletToPasskey, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useTransfer } from '@chipi-stack/chipi-react';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ServerComponentsServerModuleTypes } from './components.server.mjs';
|
|
2
2
|
export { ChipiProvider as ChipiClientProvider } from './app-router/client/ChipiProvider.mjs';
|
|
3
|
-
export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey,
|
|
3
|
+
export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransactionList, useGetWallet, useMigrateWalletToPasskey, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useTransfer } from '@chipi-stack/chipi-react';
|
|
4
4
|
export { CreateWalletPasskeyResult, PasskeyStatus, UsePasskeyAuthResult, UsePasskeySetupResult, UsePasskeyStatusResult, WalletCredentialMetadata, createWalletPasskey, getStoredCredential, getWalletEncryptKey, hasWalletPasskey, isWebAuthnPRFSupported, isWebAuthnSupported, removeStoredCredential, verifyWalletPasskey } from '@chipi-stack/chipi-passkey';
|
|
5
5
|
export * from '@chipi-stack/types';
|
|
6
6
|
export { Chain, ChainToken } from '@chipi-stack/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chipi-stack/nextjs",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.0",
|
|
4
4
|
"description": "Chipi SDK for Next.js applications with server-side support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chipi",
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@tanstack/react-query": "^5.85.0",
|
|
77
|
-
"@chipi-stack/
|
|
78
|
-
"@chipi-stack/chipi-
|
|
79
|
-
"@chipi-stack/
|
|
80
|
-
"@chipi-stack/
|
|
81
|
-
"@chipi-stack/
|
|
77
|
+
"@chipi-stack/types": "^13.3.0",
|
|
78
|
+
"@chipi-stack/chipi-react": "^13.3.0",
|
|
79
|
+
"@chipi-stack/chipi-passkey": "^1.3.0",
|
|
80
|
+
"@chipi-stack/shared": "^13.3.0",
|
|
81
|
+
"@chipi-stack/backend": "^13.3.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"next": ">=13.0.0",
|