@chipi-stack/nextjs 14.15.1 → 14.17.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/README.md CHANGED
@@ -22,6 +22,32 @@ yarn add @chipi-stack/nextjs
22
22
 
23
23
  For detailed information, guides, and examples visit our [documentation](https://docs.chipipay.com).
24
24
 
25
+ ## Bramble and other Starknet wallets
26
+
27
+ Users who already have Bramble, Braavos or Ready can sign in with it ([Sign in with Starknet](https://docs.chipipay.com/sdk/guides/sign-in-with-starknet)) and make it a co-owner or a recovery guardian of their Chipi wallet ([Trusted wallets](https://docs.chipipay.com/sdk/guides/trusted-wallets)). Once Bramble is a co-owner, `useExternalSignerExecute` runs calls it approves with `wallet_signTypedData`:
28
+
29
+ ```tsx
30
+ import { useExternalSignerExecute } from "@chipi-stack/nextjs";
31
+
32
+ // Inside your component:
33
+ const { executeAsync } = useExternalSignerExecute();
34
+
35
+ // In a click handler (Bramble opens its panel only from a user gesture):
36
+ const bramble = (window as any).starknet_bramble;
37
+ const txHash = await executeAsync({
38
+ params: {
39
+ walletAddress: wallet.publicKey,
40
+ ownerIndex: brambleOwnerId,
41
+ calls,
42
+ signTypedData: async (typedData) =>
43
+ (await bramble.request({ type: "wallet_signTypedData", params: typedData })) as string[],
44
+ },
45
+ bearerToken: await getToken(),
46
+ });
47
+ ```
48
+
49
+ To offer Chipi as a wallet next to Bramble in your dApp, see [`@chipi-stack/starknet-connector`](https://www.npmjs.com/package/@chipi-stack/starknet-connector).
50
+
25
51
  ## Support
26
52
 
27
53
  You can get in touch with us in any of the following ways:
@@ -1 +1 @@
1
- export { ChipiApprovalRequest, ChipiInjector, ChipiInjectorProps, ChipiSessionPolicy, ChipiWalletData, ChipiWindowObjectDeps, DEFAULT_RECOVER_LABELS, InjectedChipiWallet, PrivacyConfig, PrivacyKeys, PrivacyLedgerEvent, PrivacyStep, PrivateBalanceInput, Recover, RecoverLabels, RecoverProps, RegisterSessionConfig, SessionState, SessionWallet, ShieldHookInput, ThresholdSignState, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletObjectConfig, UseChipiWalletReturn, UseGuardianRecoveryReturn, UseShhhSignerReturn, UseThresholdSignOptions, UseThresholdSignReturn, UseX402PaymentConfig, UseX402PaymentReturn, createChipiWindowObject, derivePrivacyAccount, injectChipiWallet, netPrivateBalance, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useChipiWalletObject, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransaction, useGetTransactionList, useGetTransactionStatus, useGetWallet, useGuardianRecovery, useMigrateWalletToPasskey, useMigrateWalletToShhh, usePrivateBalance, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useShhhSigner, useShield, useSignTypedData, useSyncOnChainTransfers, useThresholdSign, useTransfer, useUnshield, useUpdateWalletEncryption, useX402Payment, walletSupportsSessions } from '@chipi-stack/chipi-react';
1
+ export { ChipiApprovalRequest, ChipiInjector, ChipiInjectorProps, ChipiSessionPolicy, ChipiWalletData, ChipiWindowObjectDeps, DEFAULT_RECOVER_LABELS, InjectedChipiWallet, PrivacyConfig, PrivacyKeys, PrivacyLedgerEvent, PrivacyStep, PrivateBalanceInput, Recover, RecoverLabels, RecoverProps, RegisterSessionConfig, SessionState, SessionWallet, ShieldHookInput, ThresholdSignState, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletObjectConfig, UseChipiWalletReturn, UseGuardianRecoveryReturn, UseShhhSignerReturn, UseThresholdSignOptions, UseThresholdSignReturn, UseX402PaymentConfig, UseX402PaymentReturn, createChipiWindowObject, derivePrivacyAccount, injectChipiWallet, netPrivateBalance, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useChipiWalletObject, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useExternalSignerExecute, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransaction, useGetTransactionList, useGetTransactionStatus, useGetWallet, useGuardianRecovery, useMigrateWalletToPasskey, useMigrateWalletToShhh, usePrivateBalance, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useShhhSigner, useShield, useSignTypedData, useSyncOnChainTransfers, useThresholdSign, useTransfer, useUnshield, useUpdateWalletEncryption, useX402Payment, walletSupportsSessions } from '@chipi-stack/chipi-react';
package/dist/cjs/hooks.js CHANGED
@@ -36,6 +36,7 @@ __export(hooks_exports, {
36
36
  useCreateSessionKey: () => import_chipi_react.useCreateSessionKey,
37
37
  useCreateWallet: () => import_chipi_react.useCreateWallet,
38
38
  useExecuteWithSession: () => import_chipi_react.useExecuteWithSession,
39
+ useExternalSignerExecute: () => import_chipi_react.useExternalSignerExecute,
39
40
  useGetSessionData: () => import_chipi_react.useGetSessionData,
40
41
  useGetSku: () => import_chipi_react.useGetSku,
41
42
  useGetSkuList: () => import_chipi_react.useGetSkuList,
@@ -85,6 +86,7 @@ var import_chipi_react3 = require("@chipi-stack/chipi-react");
85
86
  useCreateSessionKey,
86
87
  useCreateWallet,
87
88
  useExecuteWithSession,
89
+ useExternalSignerExecute,
88
90
  useGetSessionData,
89
91
  useGetSku,
90
92
  useGetSkuList,
@@ -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 useUpdateWalletEncryption,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n useGetTransactionList,\n useGetTransaction,\n useGetTransactionStatus,\n useSyncOnChainTransfers,\n\n // SKU hooks\n useGetSkuList,\n useGetSku,\n usePurchaseSku,\n useCallAnyContract,\n\n // Sign typed data (wallet-api signature span; SHHH envelope-aware)\n useSignTypedData,\n\n // Compose a get-starknet StarknetWindowObject (session-first routing)\n useChipiWalletObject,\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 walletSupportsSessions,\n\n // dApp connection (get-starknet StarknetWindowObject)\n createChipiWindowObject,\n injectChipiWallet,\n ChipiInjector,\n\n // SHHH V8.4: migration, guardian recovery, threshold, low-level signer\n useMigrateWalletToShhh,\n useGuardianRecovery,\n useThresholdSign,\n useShhhSigner,\n\n // x402 buyer hook\n useX402Payment,\n} from \"@chipi-stack/chipi-react\";\n\n// SHHH V8.4 standalone recovery component (headless/controlled). Re-exported\n// so Next.js apps don't need a direct @chipi-stack/chipi-react dependency.\n// DEFAULT_RECOVER_LABELS is the developer-English copy; override per the\n// RecoverLabels type with localized, jargon-free strings for real users.\nexport { Recover, DEFAULT_RECOVER_LABELS } 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 RegisterSessionConfig,\n ChipiWindowObjectDeps,\n ChipiApprovalRequest,\n ChipiSessionPolicy,\n InjectedChipiWallet,\n ChipiInjectorProps,\n UseChipiWalletObjectConfig,\n // SHHH V8.4 surface types\n UseGuardianRecoveryReturn,\n UseThresholdSignOptions,\n UseThresholdSignReturn,\n ThresholdSignState,\n UseShhhSignerReturn,\n RecoverProps,\n RecoverLabels,\n UseX402PaymentConfig,\n UseX402PaymentReturn,\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\n// Privacy hooks (Modo privado engine) — see @chipi-stack/chipi-react usePrivacy.\nexport {\n useShield,\n useUnshield,\n usePrivateBalance,\n derivePrivacyAccount,\n netPrivateBalance,\n type PrivacyConfig,\n type PrivacyKeys,\n type PrivacyStep,\n type ShieldHookInput,\n type PrivacyLedgerEvent,\n type PrivateBalanceInput,\n} from \"@chipi-stack/chipi-react\";\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBA6DO;AAMP,IAAAA,sBAAgD;AAmChD,IAAAA,sBAYO;","names":["import_chipi_react"]}
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 useUpdateWalletEncryption,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n useGetTransactionList,\n useGetTransaction,\n useGetTransactionStatus,\n useSyncOnChainTransfers,\n\n // SKU hooks\n useGetSkuList,\n useGetSku,\n usePurchaseSku,\n useCallAnyContract,\n\n // Sign typed data (wallet-api signature span; SHHH envelope-aware)\n useSignTypedData,\n\n // Run calls signed by an external STARK_SNIP12 owner (Bramble, Braavos, Ready)\n useExternalSignerExecute,\n\n // Compose a get-starknet StarknetWindowObject (session-first routing)\n useChipiWalletObject,\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 walletSupportsSessions,\n\n // dApp connection (get-starknet StarknetWindowObject)\n createChipiWindowObject,\n injectChipiWallet,\n ChipiInjector,\n\n // SHHH V8.4: migration, guardian recovery, threshold, low-level signer\n useMigrateWalletToShhh,\n useGuardianRecovery,\n useThresholdSign,\n useShhhSigner,\n\n // x402 buyer hook\n useX402Payment,\n} from \"@chipi-stack/chipi-react\";\n\n// SHHH V8.4 standalone recovery component (headless/controlled). Re-exported\n// so Next.js apps don't need a direct @chipi-stack/chipi-react dependency.\n// DEFAULT_RECOVER_LABELS is the developer-English copy; override per the\n// RecoverLabels type with localized, jargon-free strings for real users.\nexport { Recover, DEFAULT_RECOVER_LABELS } 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 RegisterSessionConfig,\n ChipiWindowObjectDeps,\n ChipiApprovalRequest,\n ChipiSessionPolicy,\n InjectedChipiWallet,\n ChipiInjectorProps,\n UseChipiWalletObjectConfig,\n // SHHH V8.4 surface types\n UseGuardianRecoveryReturn,\n UseThresholdSignOptions,\n UseThresholdSignReturn,\n ThresholdSignState,\n UseShhhSignerReturn,\n RecoverProps,\n RecoverLabels,\n UseX402PaymentConfig,\n UseX402PaymentReturn,\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\n// Privacy hooks (Modo privado engine) — see @chipi-stack/chipi-react usePrivacy.\nexport {\n useShield,\n useUnshield,\n usePrivateBalance,\n derivePrivacyAccount,\n netPrivateBalance,\n type PrivacyConfig,\n type PrivacyKeys,\n type PrivacyStep,\n type ShieldHookInput,\n type PrivacyLedgerEvent,\n type PrivateBalanceInput,\n} from \"@chipi-stack/chipi-react\";\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBAgEO;AAMP,IAAAA,sBAAgD;AAmChD,IAAAA,sBAYO;","names":["import_chipi_react"]}
@@ -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 { ChipiApprovalRequest, ChipiInjector, ChipiInjectorProps, ChipiSessionPolicy, ChipiWalletData, ChipiWindowObjectDeps, DEFAULT_RECOVER_LABELS, InjectedChipiWallet, PrivacyConfig, PrivacyKeys, PrivacyLedgerEvent, PrivacyStep, PrivateBalanceInput, Recover, RecoverLabels, RecoverProps, RegisterSessionConfig, SessionState, SessionWallet, ShieldHookInput, ThresholdSignState, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletObjectConfig, UseChipiWalletReturn, UseGuardianRecoveryReturn, UseShhhSignerReturn, UseThresholdSignOptions, UseThresholdSignReturn, UseX402PaymentConfig, UseX402PaymentReturn, createChipiWindowObject, derivePrivacyAccount, injectChipiWallet, netPrivateBalance, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useChipiWalletObject, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransaction, useGetTransactionList, useGetTransactionStatus, useGetWallet, useGuardianRecovery, useMigrateWalletToPasskey, useMigrateWalletToShhh, usePrivateBalance, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useShhhSigner, useShield, useSignTypedData, useSyncOnChainTransfers, useThresholdSign, useTransfer, useUnshield, useUpdateWalletEncryption, useX402Payment, walletSupportsSessions } from '@chipi-stack/chipi-react';
3
+ export { ChipiApprovalRequest, ChipiInjector, ChipiInjectorProps, ChipiSessionPolicy, ChipiWalletData, ChipiWindowObjectDeps, DEFAULT_RECOVER_LABELS, InjectedChipiWallet, PrivacyConfig, PrivacyKeys, PrivacyLedgerEvent, PrivacyStep, PrivateBalanceInput, Recover, RecoverLabels, RecoverProps, RegisterSessionConfig, SessionState, SessionWallet, ShieldHookInput, ThresholdSignState, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletObjectConfig, UseChipiWalletReturn, UseGuardianRecoveryReturn, UseShhhSignerReturn, UseThresholdSignOptions, UseThresholdSignReturn, UseX402PaymentConfig, UseX402PaymentReturn, createChipiWindowObject, derivePrivacyAccount, injectChipiWallet, netPrivateBalance, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useChipiWalletObject, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useExternalSignerExecute, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransaction, useGetTransactionList, useGetTransactionStatus, useGetWallet, useGuardianRecovery, useMigrateWalletToPasskey, useMigrateWalletToShhh, usePrivateBalance, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useShhhSigner, useShield, useSignTypedData, useSyncOnChainTransfers, useThresholdSign, useTransfer, useUnshield, useUpdateWalletEncryption, useX402Payment, walletSupportsSessions } from '@chipi-stack/chipi-react';
4
4
  export { CreateWalletPasskeyResult, PasskeyStatus, PrfUnsupportedError, 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
@@ -17,6 +17,7 @@ import {
17
17
  usePurchaseSku,
18
18
  useCallAnyContract,
19
19
  useSignTypedData,
20
+ useExternalSignerExecute,
20
21
  useChipiWalletObject,
21
22
  useRecordSendTransaction,
22
23
  useGetTokenBalance,
@@ -62,6 +63,7 @@ export {
62
63
  useCreateSessionKey,
63
64
  useCreateWallet,
64
65
  useExecuteWithSession,
66
+ useExternalSignerExecute,
65
67
  useGetSessionData,
66
68
  useGetSku,
67
69
  useGetSkuList,
@@ -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 useUpdateWalletEncryption,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n useGetTransactionList,\n useGetTransaction,\n useGetTransactionStatus,\n useSyncOnChainTransfers,\n\n // SKU hooks\n useGetSkuList,\n useGetSku,\n usePurchaseSku,\n useCallAnyContract,\n\n // Sign typed data (wallet-api signature span; SHHH envelope-aware)\n useSignTypedData,\n\n // Compose a get-starknet StarknetWindowObject (session-first routing)\n useChipiWalletObject,\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 walletSupportsSessions,\n\n // dApp connection (get-starknet StarknetWindowObject)\n createChipiWindowObject,\n injectChipiWallet,\n ChipiInjector,\n\n // SHHH V8.4: migration, guardian recovery, threshold, low-level signer\n useMigrateWalletToShhh,\n useGuardianRecovery,\n useThresholdSign,\n useShhhSigner,\n\n // x402 buyer hook\n useX402Payment,\n} from \"@chipi-stack/chipi-react\";\n\n// SHHH V8.4 standalone recovery component (headless/controlled). Re-exported\n// so Next.js apps don't need a direct @chipi-stack/chipi-react dependency.\n// DEFAULT_RECOVER_LABELS is the developer-English copy; override per the\n// RecoverLabels type with localized, jargon-free strings for real users.\nexport { Recover, DEFAULT_RECOVER_LABELS } 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 RegisterSessionConfig,\n ChipiWindowObjectDeps,\n ChipiApprovalRequest,\n ChipiSessionPolicy,\n InjectedChipiWallet,\n ChipiInjectorProps,\n UseChipiWalletObjectConfig,\n // SHHH V8.4 surface types\n UseGuardianRecoveryReturn,\n UseThresholdSignOptions,\n UseThresholdSignReturn,\n ThresholdSignState,\n UseShhhSignerReturn,\n RecoverProps,\n RecoverLabels,\n UseX402PaymentConfig,\n UseX402PaymentReturn,\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\n// Privacy hooks (Modo privado engine) — see @chipi-stack/chipi-react usePrivacy.\nexport {\n useShield,\n useUnshield,\n usePrivateBalance,\n derivePrivacyAccount,\n netPrivateBalance,\n type PrivacyConfig,\n type PrivacyKeys,\n type PrivacyStep,\n type ShieldHookInput,\n type PrivacyLedgerEvent,\n type PrivateBalanceInput,\n} from \"@chipi-stack/chipi-react\";\n"],"mappings":";AAMA;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,OACK;AAMP,SAAS,SAAS,8BAA8B;AAmChD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;","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 useUpdateWalletEncryption,\n\n // Transaction hooks\n useApprove,\n useTransfer,\n useGetTransactionList,\n useGetTransaction,\n useGetTransactionStatus,\n useSyncOnChainTransfers,\n\n // SKU hooks\n useGetSkuList,\n useGetSku,\n usePurchaseSku,\n useCallAnyContract,\n\n // Sign typed data (wallet-api signature span; SHHH envelope-aware)\n useSignTypedData,\n\n // Run calls signed by an external STARK_SNIP12 owner (Bramble, Braavos, Ready)\n useExternalSignerExecute,\n\n // Compose a get-starknet StarknetWindowObject (session-first routing)\n useChipiWalletObject,\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 walletSupportsSessions,\n\n // dApp connection (get-starknet StarknetWindowObject)\n createChipiWindowObject,\n injectChipiWallet,\n ChipiInjector,\n\n // SHHH V8.4: migration, guardian recovery, threshold, low-level signer\n useMigrateWalletToShhh,\n useGuardianRecovery,\n useThresholdSign,\n useShhhSigner,\n\n // x402 buyer hook\n useX402Payment,\n} from \"@chipi-stack/chipi-react\";\n\n// SHHH V8.4 standalone recovery component (headless/controlled). Re-exported\n// so Next.js apps don't need a direct @chipi-stack/chipi-react dependency.\n// DEFAULT_RECOVER_LABELS is the developer-English copy; override per the\n// RecoverLabels type with localized, jargon-free strings for real users.\nexport { Recover, DEFAULT_RECOVER_LABELS } 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 RegisterSessionConfig,\n ChipiWindowObjectDeps,\n ChipiApprovalRequest,\n ChipiSessionPolicy,\n InjectedChipiWallet,\n ChipiInjectorProps,\n UseChipiWalletObjectConfig,\n // SHHH V8.4 surface types\n UseGuardianRecoveryReturn,\n UseThresholdSignOptions,\n UseThresholdSignReturn,\n ThresholdSignState,\n UseShhhSignerReturn,\n RecoverProps,\n RecoverLabels,\n UseX402PaymentConfig,\n UseX402PaymentReturn,\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\n// Privacy hooks (Modo privado engine) — see @chipi-stack/chipi-react usePrivacy.\nexport {\n useShield,\n useUnshield,\n usePrivateBalance,\n derivePrivacyAccount,\n netPrivateBalance,\n type PrivacyConfig,\n type PrivacyKeys,\n type PrivacyStep,\n type ShieldHookInput,\n type PrivacyLedgerEvent,\n type PrivateBalanceInput,\n} from \"@chipi-stack/chipi-react\";\n"],"mappings":";AAMA;AAAA,EAEE;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAGA;AAAA,OACK;AAMP,SAAS,SAAS,8BAA8B;AAmChD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAOK;","names":[]}
package/dist/hooks.d.mts CHANGED
@@ -1 +1 @@
1
- export { ChipiApprovalRequest, ChipiInjector, ChipiInjectorProps, ChipiSessionPolicy, ChipiWalletData, ChipiWindowObjectDeps, DEFAULT_RECOVER_LABELS, InjectedChipiWallet, PrivacyConfig, PrivacyKeys, PrivacyLedgerEvent, PrivacyStep, PrivateBalanceInput, Recover, RecoverLabels, RecoverProps, RegisterSessionConfig, SessionState, SessionWallet, ShieldHookInput, ThresholdSignState, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletObjectConfig, UseChipiWalletReturn, UseGuardianRecoveryReturn, UseShhhSignerReturn, UseThresholdSignOptions, UseThresholdSignReturn, UseX402PaymentConfig, UseX402PaymentReturn, createChipiWindowObject, derivePrivacyAccount, injectChipiWallet, netPrivateBalance, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useChipiWalletObject, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransaction, useGetTransactionList, useGetTransactionStatus, useGetWallet, useGuardianRecovery, useMigrateWalletToPasskey, useMigrateWalletToShhh, usePrivateBalance, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useShhhSigner, useShield, useSignTypedData, useSyncOnChainTransfers, useThresholdSign, useTransfer, useUnshield, useUpdateWalletEncryption, useX402Payment, walletSupportsSessions } from '@chipi-stack/chipi-react';
1
+ export { ChipiApprovalRequest, ChipiInjector, ChipiInjectorProps, ChipiSessionPolicy, ChipiWalletData, ChipiWindowObjectDeps, DEFAULT_RECOVER_LABELS, InjectedChipiWallet, PrivacyConfig, PrivacyKeys, PrivacyLedgerEvent, PrivacyStep, PrivateBalanceInput, Recover, RecoverLabels, RecoverProps, RegisterSessionConfig, SessionState, SessionWallet, ShieldHookInput, ThresholdSignState, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletObjectConfig, UseChipiWalletReturn, UseGuardianRecoveryReturn, UseShhhSignerReturn, UseThresholdSignOptions, UseThresholdSignReturn, UseX402PaymentConfig, UseX402PaymentReturn, createChipiWindowObject, derivePrivacyAccount, injectChipiWallet, netPrivateBalance, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useChipiWalletObject, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useExternalSignerExecute, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransaction, useGetTransactionList, useGetTransactionStatus, useGetWallet, useGuardianRecovery, useMigrateWalletToPasskey, useMigrateWalletToShhh, usePrivateBalance, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useShhhSigner, useShield, useSignTypedData, useSyncOnChainTransfers, useThresholdSign, useTransfer, useUnshield, useUpdateWalletEncryption, useX402Payment, walletSupportsSessions } 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 { ChipiApprovalRequest, ChipiInjector, ChipiInjectorProps, ChipiSessionPolicy, ChipiWalletData, ChipiWindowObjectDeps, DEFAULT_RECOVER_LABELS, InjectedChipiWallet, PrivacyConfig, PrivacyKeys, PrivacyLedgerEvent, PrivacyStep, PrivateBalanceInput, Recover, RecoverLabels, RecoverProps, RegisterSessionConfig, SessionState, SessionWallet, ShieldHookInput, ThresholdSignState, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletObjectConfig, UseChipiWalletReturn, UseGuardianRecoveryReturn, UseShhhSignerReturn, UseThresholdSignOptions, UseThresholdSignReturn, UseX402PaymentConfig, UseX402PaymentReturn, createChipiWindowObject, derivePrivacyAccount, injectChipiWallet, netPrivateBalance, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useChipiWalletObject, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransaction, useGetTransactionList, useGetTransactionStatus, useGetWallet, useGuardianRecovery, useMigrateWalletToPasskey, useMigrateWalletToShhh, usePrivateBalance, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useShhhSigner, useShield, useSignTypedData, useSyncOnChainTransfers, useThresholdSign, useTransfer, useUnshield, useUpdateWalletEncryption, useX402Payment, walletSupportsSessions } from '@chipi-stack/chipi-react';
3
+ export { ChipiApprovalRequest, ChipiInjector, ChipiInjectorProps, ChipiSessionPolicy, ChipiWalletData, ChipiWindowObjectDeps, DEFAULT_RECOVER_LABELS, InjectedChipiWallet, PrivacyConfig, PrivacyKeys, PrivacyLedgerEvent, PrivacyStep, PrivateBalanceInput, Recover, RecoverLabels, RecoverProps, RegisterSessionConfig, SessionState, SessionWallet, ShieldHookInput, ThresholdSignState, UseChipiSessionConfig, UseChipiSessionReturn, UseChipiWalletConfig, UseChipiWalletObjectConfig, UseChipiWalletReturn, UseGuardianRecoveryReturn, UseShhhSignerReturn, UseThresholdSignOptions, UseThresholdSignReturn, UseX402PaymentConfig, UseX402PaymentReturn, createChipiWindowObject, derivePrivacyAccount, injectChipiWallet, netPrivateBalance, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiContext, useChipiSession, useChipiWallet, useChipiWalletObject, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useExternalSignerExecute, useGetSessionData, useGetSku, useGetSkuList, useGetTokenBalance, useGetTransaction, useGetTransactionList, useGetTransactionStatus, useGetWallet, useGuardianRecovery, useMigrateWalletToPasskey, useMigrateWalletToShhh, usePrivateBalance, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useShhhSigner, useShield, useSignTypedData, useSyncOnChainTransfers, useThresholdSign, useTransfer, useUnshield, useUpdateWalletEncryption, useX402Payment, walletSupportsSessions } from '@chipi-stack/chipi-react';
4
4
  export { CreateWalletPasskeyResult, PasskeyStatus, PrfUnsupportedError, 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": "14.15.1",
3
+ "version": "14.17.0",
4
4
  "description": "Chipi SDK for Next.js applications with server-side support",
5
5
  "keywords": [
6
6
  "chipi",
@@ -91,11 +91,11 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "@tanstack/react-query": "^5.85.0",
94
- "@chipi-stack/backend": "^14.15.1",
94
+ "@chipi-stack/backend": "^14.17.0",
95
95
  "@chipi-stack/chipi-passkey": "^2.3.0",
96
- "@chipi-stack/chipi-react": "^14.15.1",
97
- "@chipi-stack/shared": "^14.15.1",
98
- "@chipi-stack/types": "^14.15.1"
96
+ "@chipi-stack/chipi-react": "^14.17.0",
97
+ "@chipi-stack/shared": "^14.17.0",
98
+ "@chipi-stack/types": "^14.17.0"
99
99
  },
100
100
  "peerDependencies": {
101
101
  "next": ">=13.0.0",