@chipi-stack/nextjs 12.7.0 → 13.0.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.
@@ -1 +1 @@
1
- export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateSkuTransaction, useCreateUser, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetSkuTransaction, useGetTokenBalance, useGetTransactionList, useGetUser, useGetWallet, useMigrateWalletToPasskey, useRecordSendTransaction, useRevokeSessionKey, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
1
+ export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateUser, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransactionList, useGetUser, useGetWallet, useMigrateWalletToPasskey, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
package/dist/cjs/hooks.js CHANGED
@@ -26,19 +26,18 @@ __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
- useCreateSkuTransaction: () => import_chipi_react.useCreateSkuTransaction,
30
29
  useCreateUser: () => import_chipi_react.useCreateUser,
31
30
  useCreateWallet: () => import_chipi_react.useCreateWallet,
32
31
  useExecuteWithSession: () => import_chipi_react.useExecuteWithSession,
33
32
  useGetSessionData: () => import_chipi_react.useGetSessionData,
34
33
  useGetSku: () => import_chipi_react.useGetSku,
35
34
  useGetSkuList: () => import_chipi_react.useGetSkuList,
36
- useGetSkuTransaction: () => import_chipi_react.useGetSkuTransaction,
37
35
  useGetTokenBalance: () => import_chipi_react.useGetTokenBalance,
38
36
  useGetTransactionList: () => import_chipi_react.useGetTransactionList,
39
37
  useGetUser: () => import_chipi_react.useGetUser,
40
38
  useGetWallet: () => import_chipi_react.useGetWallet,
41
39
  useMigrateWalletToPasskey: () => import_chipi_react.useMigrateWalletToPasskey,
40
+ usePurchaseSku: () => import_chipi_react.usePurchaseSku,
42
41
  useRecordSendTransaction: () => import_chipi_react.useRecordSendTransaction,
43
42
  useRevokeSessionKey: () => import_chipi_react.useRevokeSessionKey,
44
43
  useStakeVesuUsdc: () => import_chipi_react.useStakeVesuUsdc,
@@ -56,19 +55,18 @@ var import_chipi_react = require("@chipi-stack/chipi-react");
56
55
  useChipiSession,
57
56
  useChipiWallet,
58
57
  useCreateSessionKey,
59
- useCreateSkuTransaction,
60
58
  useCreateUser,
61
59
  useCreateWallet,
62
60
  useExecuteWithSession,
63
61
  useGetSessionData,
64
62
  useGetSku,
65
63
  useGetSkuList,
66
- useGetSkuTransaction,
67
64
  useGetTokenBalance,
68
65
  useGetTransactionList,
69
66
  useGetUser,
70
67
  useGetWallet,
71
68
  useMigrateWalletToPasskey,
69
+ usePurchaseSku,
72
70
  useRecordSendTransaction,
73
71
  useRevokeSessionKey,
74
72
  useStakeVesuUsdc,
@@ -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\n // SKU Transaction hooks\n useCreateSkuTransaction,\n useGetSkuTransaction,\n\n // Specialized transaction hooks\n useStakeVesuUsdc,\n useWithdrawVesuUsdc,\n useCallAnyContract,\n\n // Record send transaction hook\n useRecordSendTransaction,\n\n // Token balance hook\n useGetTokenBalance,\n\n // User hooks\n useGetUser,\n useCreateUser,\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBA+CO;","names":[]}
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\n // Specialized transaction hooks\n useStakeVesuUsdc,\n useWithdrawVesuUsdc,\n useCallAnyContract,\n\n // Record send transaction hook\n useRecordSendTransaction,\n\n // Token balance hook\n useGetTokenBalance,\n\n // User hooks\n useGetUser,\n useCreateUser,\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;AAAA;AAAA;AAAA;AAAA;AAMA,yBA4CO;","names":[]}
@@ -1,8 +1,9 @@
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, useCreateSkuTransaction, useCreateUser, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetSkuTransaction, useGetTokenBalance, useGetTransactionList, useGetUser, useGetWallet, useMigrateWalletToPasskey, useRecordSendTransaction, useRevokeSessionKey, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
3
+ export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateUser, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransactionList, useGetUser, useGetWallet, useMigrateWalletToPasskey, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } 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
+ export { Chain, ChainToken } from '@chipi-stack/types';
6
7
  export { createChipiServer, getChipiServer, resetChipiServer } from './server/createChipiServer.js';
7
8
  import './app-router/server/ChipiProvider.js';
8
9
  import 'react/jsx-runtime';
package/dist/cjs/index.js CHANGED
@@ -29,6 +29,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
30
  var index_exports = {};
31
31
  __export(index_exports, {
32
+ Chain: () => import_types.Chain,
33
+ ChainToken: () => import_types.ChainToken,
32
34
  ChipiClientProvider: () => import_ChipiProvider.ChipiProvider,
33
35
  ChipiProvider: () => ChipiProvider,
34
36
  createWalletPasskey: () => import_chipi_passkey.createWalletPasskey,
@@ -45,10 +47,13 @@ var ComponentsModule = __toESM(require("#components"));
45
47
  var import_ChipiProvider = require("./app-router/client/ChipiProvider");
46
48
  __reExport(index_exports, require("./hooks"), module.exports);
47
49
  var import_chipi_passkey = require("@chipi-stack/chipi-passkey");
50
+ var import_types = require("@chipi-stack/types");
48
51
  __reExport(index_exports, require("./server"), module.exports);
49
52
  const ChipiProvider = ComponentsModule.ChipiProvider;
50
53
  // Annotate the CommonJS export names for ESM import in node:
51
54
  0 && (module.exports = {
55
+ Chain,
56
+ ChainToken,
52
57
  ChipiClientProvider,
53
58
  ChipiProvider,
54
59
  createWalletPasskey,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * Main exports for @chipi-stack/nextjs\n *\n * Client-side components and hooks are exported from this main entry point.\n * Server-side utilities are exported from '@chipi-stack/nextjs/server'.\n */\n\n/**\n * Conditionally export ChipiProvider that exhibits different behavior\n * when used in /app vs /pages router.\n * We define the runtime and type values explicitly,\n * because TS will not recognize the subpath import unless the HOST\n * application sets moduleResolution to 'NodeNext'.\n */\n// @ts-ignore\nimport * as ComponentsModule from \"#components\";\n// LEAVE THE TS IGNORE!!! IMPORTANT NEXTJS BUG\n\nimport type { ServerComponentsServerModuleTypes } from \"./components.server\";\n\nexport const ChipiProvider =\n ComponentsModule.ChipiProvider as ServerComponentsServerModuleTypes[\"ChipiProvider\"];\n\n// Individual providers (for advanced use cases)\nexport { ChipiProvider as ChipiClientProvider } from \"./app-router/client/ChipiProvider\";\n\n// Client-side hooks - these are safe to import because they're marked 'use client'\nexport * from \"./hooks\";\n\n// Re-export passkey utilities (non-hook exports only)\nexport {\n createWalletPasskey,\n getWalletEncryptKey,\n hasWalletPasskey,\n isWebAuthnSupported,\n isWebAuthnPRFSupported,\n verifyWalletPasskey,\n getStoredCredential,\n removeStoredCredential,\n type CreateWalletPasskeyResult,\n type WalletCredentialMetadata,\n type UsePasskeySetupResult,\n type UsePasskeyAuthResult,\n type UsePasskeyStatusResult,\n type PasskeyStatus,\n} from \"@chipi-stack/chipi-passkey\";\n\n// Re-export types\nexport type * from \"@chipi-stack/types\";\n\nexport * from \"./server\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,uBAAkC;AASlC,2BAAqD;AAGrD,0BAAc,oBA3Bd;AA8BA,2BAeO;AAKP,0BAAc,qBAlDd;AAoBO,MAAM,gBACX,iBAAiB;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * Main exports for @chipi-stack/nextjs\n *\n * Client-side components and hooks are exported from this main entry point.\n * Server-side utilities are exported from '@chipi-stack/nextjs/server'.\n */\n\n/**\n * Conditionally export ChipiProvider that exhibits different behavior\n * when used in /app vs /pages router.\n * We define the runtime and type values explicitly,\n * because TS will not recognize the subpath import unless the HOST\n * application sets moduleResolution to 'NodeNext'.\n */\n// @ts-ignore\nimport * as ComponentsModule from \"#components\";\n// LEAVE THE TS IGNORE!!! IMPORTANT NEXTJS BUG\n\nimport type { ServerComponentsServerModuleTypes } from \"./components.server\";\n\nexport const ChipiProvider =\n ComponentsModule.ChipiProvider as ServerComponentsServerModuleTypes[\"ChipiProvider\"];\n\n// Individual providers (for advanced use cases)\nexport { ChipiProvider as ChipiClientProvider } from \"./app-router/client/ChipiProvider\";\n\n// Client-side hooks - these are safe to import because they're marked 'use client'\nexport * from \"./hooks\";\n\n// Re-export passkey utilities (non-hook exports only)\nexport {\n createWalletPasskey,\n getWalletEncryptKey,\n hasWalletPasskey,\n isWebAuthnSupported,\n isWebAuthnPRFSupported,\n verifyWalletPasskey,\n getStoredCredential,\n removeStoredCredential,\n type CreateWalletPasskeyResult,\n type WalletCredentialMetadata,\n type UsePasskeySetupResult,\n type UsePasskeyAuthResult,\n type UsePasskeyStatusResult,\n type PasskeyStatus,\n} from \"@chipi-stack/chipi-passkey\";\n\n// Re-export types\nexport type * from \"@chipi-stack/types\";\n\n// Re-export enums and constants (these need to be exported as values, not just types)\nexport { Chain, ChainToken } from \"@chipi-stack/types\";\n\nexport * from \"./server\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAeA,uBAAkC;AASlC,2BAAqD;AAGrD,0BAAc,oBA3Bd;AA8BA,2BAeO;AAMP,mBAAkC;AAElC,0BAAc,qBArDd;AAoBO,MAAM,gBACX,iBAAiB;","names":[]}
package/dist/esm/hooks.js CHANGED
@@ -10,8 +10,7 @@ import {
10
10
  useGetTransactionList,
11
11
  useGetSkuList,
12
12
  useGetSku,
13
- useCreateSkuTransaction,
14
- useGetSkuTransaction,
13
+ usePurchaseSku,
15
14
  useStakeVesuUsdc,
16
15
  useWithdrawVesuUsdc,
17
16
  useCallAnyContract,
@@ -34,19 +33,18 @@ export {
34
33
  useChipiSession,
35
34
  useChipiWallet,
36
35
  useCreateSessionKey,
37
- useCreateSkuTransaction,
38
36
  useCreateUser,
39
37
  useCreateWallet,
40
38
  useExecuteWithSession,
41
39
  useGetSessionData,
42
40
  useGetSku,
43
41
  useGetSkuList,
44
- useGetSkuTransaction,
45
42
  useGetTokenBalance,
46
43
  useGetTransactionList,
47
44
  useGetUser,
48
45
  useGetWallet,
49
46
  useMigrateWalletToPasskey,
47
+ usePurchaseSku,
50
48
  useRecordSendTransaction,
51
49
  useRevokeSessionKey,
52
50
  useStakeVesuUsdc,
@@ -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\n // SKU Transaction hooks\n useCreateSkuTransaction,\n useGetSkuTransaction,\n\n // Specialized transaction hooks\n useStakeVesuUsdc,\n useWithdrawVesuUsdc,\n useCallAnyContract,\n\n // Record send transaction hook\n useRecordSendTransaction,\n\n // Token balance hook\n useGetTokenBalance,\n\n // User hooks\n useGetUser,\n useCreateUser,\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,EAGA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,OACK;","names":[]}
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\n // Specialized transaction hooks\n useStakeVesuUsdc,\n useWithdrawVesuUsdc,\n useCallAnyContract,\n\n // Record send transaction hook\n useRecordSendTransaction,\n\n // Token balance hook\n useGetTokenBalance,\n\n // User hooks\n useGetUser,\n useCreateUser,\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,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,OACK;","names":[]}
package/dist/esm/index.js CHANGED
@@ -12,8 +12,11 @@ import {
12
12
  getStoredCredential,
13
13
  removeStoredCredential
14
14
  } from "@chipi-stack/chipi-passkey";
15
+ import { Chain, ChainToken } from "@chipi-stack/types";
15
16
  export * from "./server";
16
17
  export {
18
+ Chain,
19
+ ChainToken,
17
20
  ChipiProvider2 as ChipiClientProvider,
18
21
  ChipiProvider,
19
22
  createWalletPasskey,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * Main exports for @chipi-stack/nextjs\n *\n * Client-side components and hooks are exported from this main entry point.\n * Server-side utilities are exported from '@chipi-stack/nextjs/server'.\n */\n\n/**\n * Conditionally export ChipiProvider that exhibits different behavior\n * when used in /app vs /pages router.\n * We define the runtime and type values explicitly,\n * because TS will not recognize the subpath import unless the HOST\n * application sets moduleResolution to 'NodeNext'.\n */\n// @ts-ignore\nimport * as ComponentsModule from \"#components\";\n// LEAVE THE TS IGNORE!!! IMPORTANT NEXTJS BUG\n\nimport type { ServerComponentsServerModuleTypes } from \"./components.server\";\n\nexport const ChipiProvider =\n ComponentsModule.ChipiProvider as ServerComponentsServerModuleTypes[\"ChipiProvider\"];\n\n// Individual providers (for advanced use cases)\nexport { ChipiProvider as ChipiClientProvider } from \"./app-router/client/ChipiProvider\";\n\n// Client-side hooks - these are safe to import because they're marked 'use client'\nexport * from \"./hooks\";\n\n// Re-export passkey utilities (non-hook exports only)\nexport {\n createWalletPasskey,\n getWalletEncryptKey,\n hasWalletPasskey,\n isWebAuthnSupported,\n isWebAuthnPRFSupported,\n verifyWalletPasskey,\n getStoredCredential,\n removeStoredCredential,\n type CreateWalletPasskeyResult,\n type WalletCredentialMetadata,\n type UsePasskeySetupResult,\n type UsePasskeyAuthResult,\n type UsePasskeyStatusResult,\n type PasskeyStatus,\n} from \"@chipi-stack/chipi-passkey\";\n\n// Re-export types\nexport type * from \"@chipi-stack/types\";\n\nexport * from \"./server\";\n"],"mappings":"AAeA,YAAY,sBAAsB;AAK3B,MAAM,gBACX,iBAAiB;AAGnB,SAA0B,iBAAjBA,sBAA4C;AAGrD,cAAc;AAGd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AAKP,cAAc;","names":["ChipiProvider"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * Main exports for @chipi-stack/nextjs\n *\n * Client-side components and hooks are exported from this main entry point.\n * Server-side utilities are exported from '@chipi-stack/nextjs/server'.\n */\n\n/**\n * Conditionally export ChipiProvider that exhibits different behavior\n * when used in /app vs /pages router.\n * We define the runtime and type values explicitly,\n * because TS will not recognize the subpath import unless the HOST\n * application sets moduleResolution to 'NodeNext'.\n */\n// @ts-ignore\nimport * as ComponentsModule from \"#components\";\n// LEAVE THE TS IGNORE!!! IMPORTANT NEXTJS BUG\n\nimport type { ServerComponentsServerModuleTypes } from \"./components.server\";\n\nexport const ChipiProvider =\n ComponentsModule.ChipiProvider as ServerComponentsServerModuleTypes[\"ChipiProvider\"];\n\n// Individual providers (for advanced use cases)\nexport { ChipiProvider as ChipiClientProvider } from \"./app-router/client/ChipiProvider\";\n\n// Client-side hooks - these are safe to import because they're marked 'use client'\nexport * from \"./hooks\";\n\n// Re-export passkey utilities (non-hook exports only)\nexport {\n createWalletPasskey,\n getWalletEncryptKey,\n hasWalletPasskey,\n isWebAuthnSupported,\n isWebAuthnPRFSupported,\n verifyWalletPasskey,\n getStoredCredential,\n removeStoredCredential,\n type CreateWalletPasskeyResult,\n type WalletCredentialMetadata,\n type UsePasskeySetupResult,\n type UsePasskeyAuthResult,\n type UsePasskeyStatusResult,\n type PasskeyStatus,\n} from \"@chipi-stack/chipi-passkey\";\n\n// Re-export types\nexport type * from \"@chipi-stack/types\";\n\n// Re-export enums and constants (these need to be exported as values, not just types)\nexport { Chain, ChainToken } from \"@chipi-stack/types\";\n\nexport * from \"./server\";\n"],"mappings":"AAeA,YAAY,sBAAsB;AAK3B,MAAM,gBACX,iBAAiB;AAGnB,SAA0B,iBAAjBA,sBAA4C;AAGrD,cAAc;AAGd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;AAMP,SAAS,OAAO,kBAAkB;AAElC,cAAc;","names":["ChipiProvider"]}
package/dist/hooks.d.mts CHANGED
@@ -1 +1 @@
1
- export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateSkuTransaction, useCreateUser, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetSkuTransaction, useGetTokenBalance, useGetTransactionList, useGetUser, useGetWallet, useMigrateWalletToPasskey, useRecordSendTransaction, useRevokeSessionKey, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
1
+ export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateUser, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransactionList, useGetUser, useGetWallet, useMigrateWalletToPasskey, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
package/dist/index.d.mts CHANGED
@@ -1,8 +1,9 @@
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, useCreateSkuTransaction, useCreateUser, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetSkuTransaction, useGetTokenBalance, useGetTransactionList, useGetUser, useGetWallet, useMigrateWalletToPasskey, useRecordSendTransaction, useRevokeSessionKey, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } from '@chipi-stack/chipi-react';
3
+ export { ChipiWalletData, SessionState, SessionWallet, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletReturn, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useCreateSessionKey, useCreateUser, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransactionList, useGetUser, useGetWallet, useMigrateWalletToPasskey, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useStakeVesuUsdc, useTransfer, useWithdrawVesuUsdc } 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
+ export { Chain, ChainToken } from '@chipi-stack/types';
6
7
  export { createChipiServer, getChipiServer, resetChipiServer } from './server/createChipiServer.mjs';
7
8
  import './app-router/server/ChipiProvider.mjs';
8
9
  import 'react/jsx-runtime';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chipi-stack/nextjs",
3
- "version": "12.7.0",
3
+ "version": "13.0.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/backend": "^12.8.0",
78
- "@chipi-stack/shared": "^12.7.0",
79
- "@chipi-stack/types": "^12.8.0",
80
- "@chipi-stack/chipi-react": "^12.8.0",
81
- "@chipi-stack/chipi-passkey": "^0.1.0"
77
+ "@chipi-stack/backend": "^13.0.0",
78
+ "@chipi-stack/chipi-passkey": "^1.0.0",
79
+ "@chipi-stack/shared": "^13.0.0",
80
+ "@chipi-stack/chipi-react": "^13.0.0",
81
+ "@chipi-stack/types": "^13.0.0"
82
82
  },
83
83
  "peerDependencies": {
84
84
  "next": ">=13.0.0",