@chipi-stack/chipi-react 14.16.0 → 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/dist/hooks.d.mts +1 -1
- package/dist/hooks.d.ts +1 -1
- package/dist/hooks.js +19 -1
- package/dist/hooks.js.map +1 -1
- package/dist/hooks.mjs +19 -2
- package/dist/hooks.mjs.map +1 -1
- package/dist/{index-Dbqp9oNS.d.mts → index-CUfzUBgv.d.mts} +34 -4
- package/dist/{index-Dbqp9oNS.d.ts → index-CUfzUBgv.d.ts} +34 -4
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +36 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/hooks.mjs
CHANGED
|
@@ -1268,6 +1268,22 @@ function useSignTypedData() {
|
|
|
1268
1268
|
reset: mutation.reset
|
|
1269
1269
|
};
|
|
1270
1270
|
}
|
|
1271
|
+
function useExternalSignerExecute() {
|
|
1272
|
+
const { chipiSDK } = useChipiContext();
|
|
1273
|
+
const mutation = useMutation({
|
|
1274
|
+
mutationFn: async (input) => chipiSDK.executeWithExternalSigner(input)
|
|
1275
|
+
});
|
|
1276
|
+
return {
|
|
1277
|
+
execute: mutation.mutate,
|
|
1278
|
+
executeAsync: mutation.mutateAsync,
|
|
1279
|
+
data: mutation.data,
|
|
1280
|
+
isLoading: mutation.isPending,
|
|
1281
|
+
isError: mutation.isError,
|
|
1282
|
+
error: mutation.error,
|
|
1283
|
+
isSuccess: mutation.isSuccess,
|
|
1284
|
+
reset: mutation.reset
|
|
1285
|
+
};
|
|
1286
|
+
}
|
|
1271
1287
|
|
|
1272
1288
|
// ../node_modules/.pnpm/@starknet-io+types-js@0.9.2/node_modules/@starknet-io/types-js/dist/esm/index.js
|
|
1273
1289
|
var esm_exports = {};
|
|
@@ -20477,7 +20493,8 @@ function useChipiWalletObject(config3) {
|
|
|
20477
20493
|
return signTypedDataAsync({ encryptKey, wallet, typedData });
|
|
20478
20494
|
},
|
|
20479
20495
|
getDeploymentData: async () => {
|
|
20480
|
-
throw new Error("account_already_deployed");
|
|
20496
|
+
if (cfg.current.isDeployed === true) throw new Error("account_already_deployed");
|
|
20497
|
+
throw new Error("account_deployment_data_unavailable");
|
|
20481
20498
|
},
|
|
20482
20499
|
createSession: async (policy) => {
|
|
20483
20500
|
await createSession(policy);
|
|
@@ -21173,6 +21190,6 @@ pako/dist/pako.esm.mjs:
|
|
|
21173
21190
|
(*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) *)
|
|
21174
21191
|
*/
|
|
21175
21192
|
|
|
21176
|
-
export { derivePrivacyAccount, netPrivateBalance, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiSession, useChipiWallet, useChipiWalletObject, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useGetSessionData, useGetSku, useGetSkuList, useGetSkuPurchase, useGetTokenBalance, useGetTransaction, useGetTransactionList, useGetTransactionStatus, useGetWallet, useGuardianRecovery, useMigrateWalletToPasskey, useMigrateWalletToShhh, usePrivateBalance, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useShhhSigner, useShield, useSignTypedData, useSyncOnChainTransfers, useThresholdSign, useTransfer, useUnshield, useUpdateWalletEncryption, useX402Payment };
|
|
21193
|
+
export { derivePrivacyAccount, netPrivateBalance, useAddSessionKeyToContract, useApprove, useCallAnyContract, useChipiSession, useChipiWallet, useChipiWalletObject, useCreateSessionKey, useCreateWallet, useExecuteWithSession, useExternalSignerExecute, useGetSessionData, useGetSku, useGetSkuList, useGetSkuPurchase, useGetTokenBalance, useGetTransaction, useGetTransactionList, useGetTransactionStatus, useGetWallet, useGuardianRecovery, useMigrateWalletToPasskey, useMigrateWalletToShhh, usePrivateBalance, usePurchaseSku, useRecordSendTransaction, useRevokeSessionKey, useShhhSigner, useShield, useSignTypedData, useSyncOnChainTransfers, useThresholdSign, useTransfer, useUnshield, useUpdateWalletEncryption, useX402Payment };
|
|
21177
21194
|
//# sourceMappingURL=hooks.mjs.map
|
|
21178
21195
|
//# sourceMappingURL=hooks.mjs.map
|