@embarkai/ui-kit 0.4.34 → 0.4.35

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.34</title>
18
+ <title>EmbarkAI Secure Wallet - iframe version 0.4.35</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.34";
6394
+ var IFRAME_VERSION = "0.4.35";
6395
6395
  var IframeWallet = class {
6396
6396
  constructor() {
6397
6397
  console.log("=".repeat(60));
package/dist/index.cjs CHANGED
@@ -19803,12 +19803,11 @@ function useHyperlaneRoutes() {
19803
19803
  (0, import_react63.useEffect)(() => {
19804
19804
  if (!!hyperRoute || !hyperlaneWarpRoutes.length) return;
19805
19805
  const warpRouteToAutoSelect = hyperlaneWarpRoutes.find((route) => route.routeId === hyperRoute);
19806
+ if (!warpRouteToAutoSelect) return;
19806
19807
  let originChainIndex = 0;
19807
19808
  let destinationChainIndex = 1;
19808
19809
  if (useBridgeStore.getState().bridgeSender === "embarkai-wallet") {
19809
- const foundIdx = warpRouteToAutoSelect.chainPair.findIndex(
19810
- (chain) => isOririnChainEmbarkSupported(chain.chainName)
19811
- );
19810
+ const foundIdx = warpRouteToAutoSelect.chainPair?.findIndex((chain) => isOririnChainEmbarkSupported(chain.chainName)) || -1;
19812
19811
  if (foundIdx !== -1) {
19813
19812
  originChainIndex = foundIdx;
19814
19813
  destinationChainIndex = foundIdx === 0 ? 1 : 0;
@@ -24107,7 +24106,7 @@ var init_package = __esm({
24107
24106
  "package.json"() {
24108
24107
  package_default = {
24109
24108
  name: "@embarkai/ui-kit",
24110
- version: "0.4.34",
24109
+ version: "0.4.35",
24111
24110
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
24112
24111
  type: "module",
24113
24112
  main: "./dist/index.cjs",
package/dist/index.js CHANGED
@@ -19721,12 +19721,11 @@ function useHyperlaneRoutes() {
19721
19721
  useEffect34(() => {
19722
19722
  if (!!hyperRoute || !hyperlaneWarpRoutes.length) return;
19723
19723
  const warpRouteToAutoSelect = hyperlaneWarpRoutes.find((route) => route.routeId === hyperRoute);
19724
+ if (!warpRouteToAutoSelect) return;
19724
19725
  let originChainIndex = 0;
19725
19726
  let destinationChainIndex = 1;
19726
19727
  if (useBridgeStore.getState().bridgeSender === "embarkai-wallet") {
19727
- const foundIdx = warpRouteToAutoSelect.chainPair.findIndex(
19728
- (chain) => isOririnChainEmbarkSupported(chain.chainName)
19729
- );
19728
+ const foundIdx = warpRouteToAutoSelect.chainPair?.findIndex((chain) => isOririnChainEmbarkSupported(chain.chainName)) || -1;
19730
19729
  if (foundIdx !== -1) {
19731
19730
  originChainIndex = foundIdx;
19732
19731
  destinationChainIndex = foundIdx === 0 ? 1 : 0;
@@ -24007,7 +24006,7 @@ var init_package = __esm({
24007
24006
  "package.json"() {
24008
24007
  package_default = {
24009
24008
  name: "@embarkai/ui-kit",
24010
- version: "0.4.34",
24009
+ version: "0.4.35",
24011
24010
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
24012
24011
  type: "module",
24013
24012
  main: "./dist/index.cjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embarkai/ui-kit",
3
- "version": "0.4.34",
3
+ "version": "0.4.35",
4
4
  "description": "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",