@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.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { j as ChipiWalletData,
|
|
1
|
+
export { j as ChipiWalletData, H as ExternalSignerExecuteInput, a7 as PrivacyConfig, a8 as PrivacyKeys, ab as PrivacyLedgerEvent, a9 as PrivacyStep, ac as PrivateBalanceInput, R as RegisterSessionConfig, S as SessionState, n as SessionWallet, aa as ShieldHookInput, a1 as ThresholdSignState, l as UseChipiSessionConfig, m as UseChipiSessionReturn, h as UseChipiWalletConfig, U as UseChipiWalletObjectConfig, i as UseChipiWalletReturn, Z as UseGuardianRecoveryReturn, X as UseShhhSignerReturn, a0 as UseThresholdSignOptions, $ as UseThresholdSignReturn, s as UseTransferConfig, T as UseX402PaymentConfig, V as UseX402PaymentReturn, a5 as derivePrivacyAccount, a6 as netPrivateBalance, M as useAddSessionKeyToContract, t as useApprove, E as useCallAnyContract, k as useChipiSession, g as useChipiWallet, I as useChipiWalletObject, L as useCreateSessionKey, u as useCreateWallet, P as useExecuteWithSession, G as useExternalSignerExecute, O as useGetSessionData, D as useGetSku, B as useGetSkuList, A as useGetSkuPurchase, K as useGetTokenBalance, w as useGetTransaction, v as useGetTransactionList, x as useGetTransactionStatus, f as useGetWallet, Y as useGuardianRecovery, o as useMigrateWalletToPasskey, q as useMigrateWalletToShhh, a4 as usePrivateBalance, z as usePurchaseSku, J as useRecordSendTransaction, N as useRevokeSessionKey, W as useShhhSigner, a2 as useShield, F as useSignTypedData, y as useSyncOnChainTransfers, _ as useThresholdSign, r as useTransfer, a3 as useUnshield, p as useUpdateWalletEncryption, Q as useX402Payment } from './index-CUfzUBgv.mjs';
|
|
2
2
|
import '@chipi-stack/types';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import 'react';
|
package/dist/hooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { j as ChipiWalletData,
|
|
1
|
+
export { j as ChipiWalletData, H as ExternalSignerExecuteInput, a7 as PrivacyConfig, a8 as PrivacyKeys, ab as PrivacyLedgerEvent, a9 as PrivacyStep, ac as PrivateBalanceInput, R as RegisterSessionConfig, S as SessionState, n as SessionWallet, aa as ShieldHookInput, a1 as ThresholdSignState, l as UseChipiSessionConfig, m as UseChipiSessionReturn, h as UseChipiWalletConfig, U as UseChipiWalletObjectConfig, i as UseChipiWalletReturn, Z as UseGuardianRecoveryReturn, X as UseShhhSignerReturn, a0 as UseThresholdSignOptions, $ as UseThresholdSignReturn, s as UseTransferConfig, T as UseX402PaymentConfig, V as UseX402PaymentReturn, a5 as derivePrivacyAccount, a6 as netPrivateBalance, M as useAddSessionKeyToContract, t as useApprove, E as useCallAnyContract, k as useChipiSession, g as useChipiWallet, I as useChipiWalletObject, L as useCreateSessionKey, u as useCreateWallet, P as useExecuteWithSession, G as useExternalSignerExecute, O as useGetSessionData, D as useGetSku, B as useGetSkuList, A as useGetSkuPurchase, K as useGetTokenBalance, w as useGetTransaction, v as useGetTransactionList, x as useGetTransactionStatus, f as useGetWallet, Y as useGuardianRecovery, o as useMigrateWalletToPasskey, q as useMigrateWalletToShhh, a4 as usePrivateBalance, z as usePurchaseSku, J as useRecordSendTransaction, N as useRevokeSessionKey, W as useShhhSigner, a2 as useShield, F as useSignTypedData, y as useSyncOnChainTransfers, _ as useThresholdSign, r as useTransfer, a3 as useUnshield, p as useUpdateWalletEncryption, Q as useX402Payment } from './index-CUfzUBgv.js';
|
|
2
2
|
import '@chipi-stack/types';
|
|
3
3
|
import '@tanstack/react-query';
|
|
4
4
|
import 'react';
|
package/dist/hooks.js
CHANGED
|
@@ -1290,6 +1290,22 @@ function useSignTypedData() {
|
|
|
1290
1290
|
reset: mutation.reset
|
|
1291
1291
|
};
|
|
1292
1292
|
}
|
|
1293
|
+
function useExternalSignerExecute() {
|
|
1294
|
+
const { chipiSDK } = useChipiContext();
|
|
1295
|
+
const mutation = reactQuery.useMutation({
|
|
1296
|
+
mutationFn: async (input) => chipiSDK.executeWithExternalSigner(input)
|
|
1297
|
+
});
|
|
1298
|
+
return {
|
|
1299
|
+
execute: mutation.mutate,
|
|
1300
|
+
executeAsync: mutation.mutateAsync,
|
|
1301
|
+
data: mutation.data,
|
|
1302
|
+
isLoading: mutation.isPending,
|
|
1303
|
+
isError: mutation.isError,
|
|
1304
|
+
error: mutation.error,
|
|
1305
|
+
isSuccess: mutation.isSuccess,
|
|
1306
|
+
reset: mutation.reset
|
|
1307
|
+
};
|
|
1308
|
+
}
|
|
1293
1309
|
|
|
1294
1310
|
// ../node_modules/.pnpm/@starknet-io+types-js@0.9.2/node_modules/@starknet-io/types-js/dist/esm/index.js
|
|
1295
1311
|
var esm_exports = {};
|
|
@@ -20499,7 +20515,8 @@ function useChipiWalletObject(config3) {
|
|
|
20499
20515
|
return signTypedDataAsync({ encryptKey, wallet, typedData });
|
|
20500
20516
|
},
|
|
20501
20517
|
getDeploymentData: async () => {
|
|
20502
|
-
throw new Error("account_already_deployed");
|
|
20518
|
+
if (cfg.current.isDeployed === true) throw new Error("account_already_deployed");
|
|
20519
|
+
throw new Error("account_deployment_data_unavailable");
|
|
20503
20520
|
},
|
|
20504
20521
|
createSession: async (policy) => {
|
|
20505
20522
|
await createSession(policy);
|
|
@@ -21206,6 +21223,7 @@ exports.useChipiWalletObject = useChipiWalletObject;
|
|
|
21206
21223
|
exports.useCreateSessionKey = useCreateSessionKey;
|
|
21207
21224
|
exports.useCreateWallet = useCreateWallet;
|
|
21208
21225
|
exports.useExecuteWithSession = useExecuteWithSession;
|
|
21226
|
+
exports.useExternalSignerExecute = useExternalSignerExecute;
|
|
21209
21227
|
exports.useGetSessionData = useGetSessionData;
|
|
21210
21228
|
exports.useGetSku = useGetSku;
|
|
21211
21229
|
exports.useGetSkuList = useGetSkuList;
|