@embarkai/ui-kit 0.4.40 → 0.4.41

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.
@@ -15,7 +15,7 @@
15
15
  <meta http-equiv="X-Content-Type-Options" content="nosniff" />
16
16
  <meta http-equiv="Referrer-Policy" content="strict-origin-when-cross-origin" />
17
17
 
18
- <title>EmbarkAI Secure Wallet - iframe version 0.4.40</title>
18
+ <title>EmbarkAI Secure Wallet - iframe version 0.4.41</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -6391,7 +6391,7 @@ var SigningManager = class extends TokenRefreshApiClient {
6391
6391
  };
6392
6392
 
6393
6393
  // src/iframe/main.ts
6394
- var IFRAME_VERSION = "0.4.40";
6394
+ var IFRAME_VERSION = "0.4.41";
6395
6395
  var IframeWallet = class {
6396
6396
  constructor() {
6397
6397
  console.log("=".repeat(60));
package/dist/index.cjs CHANGED
@@ -19858,7 +19858,6 @@ async function executeWarpTransactions(txs, walletClient) {
19858
19858
  throw new Error("No public client available");
19859
19859
  }
19860
19860
  const hashes = [];
19861
- const errorsStack = [];
19862
19861
  for (const tx of txs) {
19863
19862
  if (tx.type !== "ethers-v5" /* EthersV5 */) {
19864
19863
  throw new Error(`Unsupported transaction provider: ${tx.type}`);
@@ -19884,7 +19883,6 @@ async function executeWarpTransactions(txs, walletClient) {
19884
19883
  value: valueBigInt.toString(),
19885
19884
  chainId: publicClient.chain.id
19886
19885
  }).catch((error) => {
19887
- errorsStack.push(error);
19888
19886
  throw error;
19889
19887
  });
19890
19888
  if (TARGET_TX_CATEGORIES.includes(tx.category)) {
@@ -19896,14 +19894,9 @@ async function executeWarpTransactions(txs, walletClient) {
19896
19894
  const embarkNonTransferReceipt = await waitForUserOperationReceipt(embarkOpHash, {
19897
19895
  chainId: publicClient.chain.id
19898
19896
  }).catch((error) => {
19899
- errorsStack.push(error);
19900
19897
  throw error;
19901
19898
  });
19902
- if (!embarkNonTransferReceipt.success) {
19903
- throw new Error(
19904
- `Approval transaction failed: ${embarkNonTransferReceipt?.receipt?.transactionHash || "unknown hash"}`
19905
- );
19906
- }
19899
+ console.log("[HYPERLANE] embarkai-wallet tx receipt:", tx.category, embarkNonTransferReceipt.receipt);
19907
19900
  }
19908
19901
  break;
19909
19902
  case "direct-wallet":
@@ -19914,7 +19907,6 @@ async function executeWarpTransactions(txs, walletClient) {
19914
19907
  data: populated.data,
19915
19908
  chain: walletClient.chain
19916
19909
  }).catch((error) => {
19917
- errorsStack.push(error);
19918
19910
  throw error;
19919
19911
  });
19920
19912
  if (TARGET_TX_CATEGORIES.includes(tx.category)) {
@@ -19926,24 +19918,15 @@ async function executeWarpTransactions(txs, walletClient) {
19926
19918
  const wagmiNonTransferReceipt = await (0, import_core5.waitForWagmiTransactionReceipt)(import_core5.wagmiConfig, {
19927
19919
  chainId: publicClient.chain.id,
19928
19920
  hash: walletOpHash,
19929
- pollingInterval: 4e3
19921
+ pollingInterval: 5e3
19930
19922
  }).catch((error) => {
19931
- errorsStack.push(error);
19932
19923
  throw error;
19933
19924
  });
19934
- if (!wagmiNonTransferReceipt.success) {
19935
- throw new Error(
19936
- `Approval transaction failed: ${wagmiNonTransferReceipt?.transactionHash || "unknown hash"}`
19937
- );
19938
- }
19925
+ console.log("[HYPERLANE] direct-wallet tx receipt:", tx.category, wagmiNonTransferReceipt);
19939
19926
  }
19940
19927
  break;
19941
19928
  }
19942
19929
  }
19943
- if (errorsStack.length > 0) {
19944
- console.error("[HYPERLANE] Errors occurred during transaction execution:");
19945
- console.table(errorsStack.map((e) => e.message));
19946
- }
19947
19930
  return hashes;
19948
19931
  }
19949
19932
  var import_core5, import_viem11, TARGET_TX_CATEGORIES;
@@ -24398,7 +24381,7 @@ var init_package = __esm({
24398
24381
  "package.json"() {
24399
24382
  package_default = {
24400
24383
  name: "@embarkai/ui-kit",
24401
- version: "0.4.40",
24384
+ version: "0.4.41",
24402
24385
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
24403
24386
  type: "module",
24404
24387
  main: "./dist/index.cjs",
package/dist/index.js CHANGED
@@ -19774,7 +19774,6 @@ async function executeWarpTransactions(txs, walletClient) {
19774
19774
  throw new Error("No public client available");
19775
19775
  }
19776
19776
  const hashes = [];
19777
- const errorsStack = [];
19778
19777
  for (const tx of txs) {
19779
19778
  if (tx.type !== "ethers-v5" /* EthersV5 */) {
19780
19779
  throw new Error(`Unsupported transaction provider: ${tx.type}`);
@@ -19800,7 +19799,6 @@ async function executeWarpTransactions(txs, walletClient) {
19800
19799
  value: valueBigInt.toString(),
19801
19800
  chainId: publicClient.chain.id
19802
19801
  }).catch((error) => {
19803
- errorsStack.push(error);
19804
19802
  throw error;
19805
19803
  });
19806
19804
  if (TARGET_TX_CATEGORIES.includes(tx.category)) {
@@ -19812,14 +19810,9 @@ async function executeWarpTransactions(txs, walletClient) {
19812
19810
  const embarkNonTransferReceipt = await waitForUserOperationReceipt(embarkOpHash, {
19813
19811
  chainId: publicClient.chain.id
19814
19812
  }).catch((error) => {
19815
- errorsStack.push(error);
19816
19813
  throw error;
19817
19814
  });
19818
- if (!embarkNonTransferReceipt.success) {
19819
- throw new Error(
19820
- `Approval transaction failed: ${embarkNonTransferReceipt?.receipt?.transactionHash || "unknown hash"}`
19821
- );
19822
- }
19815
+ console.log("[HYPERLANE] embarkai-wallet tx receipt:", tx.category, embarkNonTransferReceipt.receipt);
19823
19816
  }
19824
19817
  break;
19825
19818
  case "direct-wallet":
@@ -19830,7 +19823,6 @@ async function executeWarpTransactions(txs, walletClient) {
19830
19823
  data: populated.data,
19831
19824
  chain: walletClient.chain
19832
19825
  }).catch((error) => {
19833
- errorsStack.push(error);
19834
19826
  throw error;
19835
19827
  });
19836
19828
  if (TARGET_TX_CATEGORIES.includes(tx.category)) {
@@ -19842,24 +19834,15 @@ async function executeWarpTransactions(txs, walletClient) {
19842
19834
  const wagmiNonTransferReceipt = await waitForWagmiTransactionReceipt(wagmiConfig, {
19843
19835
  chainId: publicClient.chain.id,
19844
19836
  hash: walletOpHash,
19845
- pollingInterval: 4e3
19837
+ pollingInterval: 5e3
19846
19838
  }).catch((error) => {
19847
- errorsStack.push(error);
19848
19839
  throw error;
19849
19840
  });
19850
- if (!wagmiNonTransferReceipt.success) {
19851
- throw new Error(
19852
- `Approval transaction failed: ${wagmiNonTransferReceipt?.transactionHash || "unknown hash"}`
19853
- );
19854
- }
19841
+ console.log("[HYPERLANE] direct-wallet tx receipt:", tx.category, wagmiNonTransferReceipt);
19855
19842
  }
19856
19843
  break;
19857
19844
  }
19858
19845
  }
19859
- if (errorsStack.length > 0) {
19860
- console.error("[HYPERLANE] Errors occurred during transaction execution:");
19861
- console.table(errorsStack.map((e) => e.message));
19862
- }
19863
19846
  return hashes;
19864
19847
  }
19865
19848
  var TARGET_TX_CATEGORIES;
@@ -24296,7 +24279,7 @@ var init_package = __esm({
24296
24279
  "package.json"() {
24297
24280
  package_default = {
24298
24281
  name: "@embarkai/ui-kit",
24299
- version: "0.4.40",
24282
+ version: "0.4.41",
24300
24283
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
24301
24284
  type: "module",
24302
24285
  main: "./dist/index.cjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embarkai/ui-kit",
3
- "version": "0.4.40",
3
+ "version": "0.4.41",
4
4
  "description": "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",