@embarkai/ui-kit 0.4.22 → 0.4.24

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.
Files changed (34) hide show
  1. package/dist/{auth-S7VX73GX.js → auth-KSSZW2NZ.js} +3 -3
  2. package/dist/auth-WPQMCF4N.cjs +115 -0
  3. package/dist/{chunk-Q7PR2UUH.js → chunk-47XANJVP.js} +59 -46
  4. package/dist/{chunk-IKKT5JDT.js → chunk-6QTXBMNL.js} +6 -6
  5. package/dist/{chunk-KLC3OOWX.cjs → chunk-DW3342W5.cjs} +172 -159
  6. package/dist/{chunk-7H5TZZQT.cjs → chunk-IBH4PFA3.cjs} +8 -7
  7. package/dist/{chunk-FVUBVOOZ.cjs → chunk-O3DVVB7K.cjs} +26 -26
  8. package/dist/{chunk-ISXWRCDC.js → chunk-PIZB3BDS.js} +8 -7
  9. package/dist/{clients-EQIRT5QY.js → clients-DH5SX5FS.js} +4 -4
  10. package/dist/clients-IO5M2UJG.cjs +78 -0
  11. package/dist/{hyperbridge-OU2MDJ5Q.js → hyperbridge-6CO7NULG.js} +4 -6
  12. package/dist/{hyperbridge-5ORI5ZDZ.cjs → hyperbridge-OPUF7VNS.cjs} +107 -109
  13. package/dist/iframe/index.html +1 -1
  14. package/dist/iframe/main.js +24 -24
  15. package/dist/{iframe-manager-GCUMMQVH.js → iframe-manager-LJUXSMW2.js} +2 -2
  16. package/dist/iframe-manager-QMSGWWFA.cjs +14 -0
  17. package/dist/index.cjs +4 -4
  18. package/dist/index.js +3 -3
  19. package/dist/passkey-AS5MMN6X.cjs +19 -0
  20. package/dist/{passkey-QGOQHMP2.js → passkey-FG3L2F7K.js} +3 -3
  21. package/dist/{passkey-UQ4D7IBC.js → passkey-R5DNDC3P.js} +3 -3
  22. package/dist/passkey-UX6CJ6LS.cjs +13 -0
  23. package/dist/{profile-MN3MGEEE.js → profile-U27AANIS.js} +4 -4
  24. package/dist/profile-X2IOH3GP.cjs +14 -0
  25. package/dist/vaultClient-K7QTKKLN.cjs +50 -0
  26. package/dist/{vaultClient-RB5J5M5Z.js → vaultClient-NB6LJPRV.js} +4 -4
  27. package/package.json +5 -6
  28. package/dist/auth-JTFILPX3.cjs +0 -115
  29. package/dist/clients-JG222VOC.cjs +0 -78
  30. package/dist/iframe-manager-KOR4O7PU.cjs +0 -14
  31. package/dist/passkey-NE5N2Q2W.cjs +0 -13
  32. package/dist/passkey-PFNFI7AP.cjs +0 -19
  33. package/dist/profile-OCWTUVLR.cjs +0 -14
  34. package/dist/vaultClient-2DRJXCTL.cjs +0 -50
@@ -53,8 +53,8 @@ import {
53
53
  verifyEmailLinkCode,
54
54
  verifyToken,
55
55
  walletLogin
56
- } from "./chunk-IKKT5JDT.js";
57
- import "./chunk-ISXWRCDC.js";
56
+ } from "./chunk-6QTXBMNL.js";
57
+ import "./chunk-PIZB3BDS.js";
58
58
  import "./chunk-DBFKMKYT.js";
59
59
  export {
60
60
  JwtTokenManager,
@@ -112,4 +112,4 @@ export {
112
112
  verifyToken,
113
113
  walletLogin
114
114
  };
115
- //# sourceMappingURL=auth-S7VX73GX.js.map
115
+ //# sourceMappingURL=auth-KSSZW2NZ.js.map
@@ -0,0 +1,115 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+ var _chunkO3DVVB7Kcjs = require('./chunk-O3DVVB7K.cjs');
57
+ require('./chunk-IBH4PFA3.cjs');
58
+ require('./chunk-DACL62OU.cjs');
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+ exports.JwtTokenManager = _chunkO3DVVB7Kcjs.JwtTokenManager; exports.authenticateWithPasskey = _chunkO3DVVB7Kcjs.authenticateWithPasskey; exports.authenticatedFetch = _chunkO3DVVB7Kcjs.authenticatedFetch; exports.beginPasskeyAuthentication = _chunkO3DVVB7Kcjs.beginPasskeyAuthentication; exports.beginPasskeyLinking = _chunkO3DVVB7Kcjs.beginPasskeyLinking; exports.beginPasskeyRegistration = _chunkO3DVVB7Kcjs.beginPasskeyRegistration; exports.checkKeyshareStatus = _chunkO3DVVB7Kcjs.checkKeyshareStatus; exports.checkKeyshareStatusWithSync = _chunkO3DVVB7Kcjs.checkKeyshareStatusWithSync; exports.clearLocalKeyshare = _chunkO3DVVB7Kcjs.clearLocalKeyshare; exports.completePasskeyAuthentication = _chunkO3DVVB7Kcjs.completePasskeyAuthentication; exports.completePasskeyLinking = _chunkO3DVVB7Kcjs.completePasskeyLinking; exports.completePasskeyRegistration = _chunkO3DVVB7Kcjs.completePasskeyRegistration; exports.configureJwtModule = _chunkO3DVVB7Kcjs.configureJwtModule; exports.createInitialAuthState = _chunkO3DVVB7Kcjs.createInitialAuthState; exports.createJwtTokenManager = _chunkO3DVVB7Kcjs.createJwtTokenManager; exports.createLoginMessage = _chunkO3DVVB7Kcjs.createLoginMessage; exports.createPasskeyHelpers = _chunkO3DVVB7Kcjs.createPasskeyHelpers; exports.createSignatureMessage = _chunkO3DVVB7Kcjs.createSignatureMessage; exports.deriveDemoPrivateKey = _chunkO3DVVB7Kcjs.deriveDemoPrivateKey; exports.ensureKeyshare = _chunkO3DVVB7Kcjs.ensureKeyshare; exports.ensureValidToken = _chunkO3DVVB7Kcjs.ensureValidToken; exports.fetchProjectName = _chunkO3DVVB7Kcjs.fetchProjectName; exports.formatDate = _chunkO3DVVB7Kcjs.formatDate; exports.getKeyshareInfo = _chunkO3DVVB7Kcjs.getKeyshareInfo; exports.getLinkedProviders = _chunkO3DVVB7Kcjs.getLinkedProviders; exports.getProviderDisplayInfo = _chunkO3DVVB7Kcjs.getProviderDisplayInfo; exports.getTssUrl = _chunkO3DVVB7Kcjs.getTssUrl; exports.getValidTokens = _chunkO3DVVB7Kcjs.getValidTokens; exports.hasAvailablePasskeys = _chunkO3DVVB7Kcjs.hasAvailablePasskeys; exports.hideTelegramWidget = _chunkO3DVVB7Kcjs.hideTelegramWidget; exports.initTelegramWidget = _chunkO3DVVB7Kcjs.initTelegramWidget; exports.isWebAuthnSupported = _chunkO3DVVB7Kcjs.isWebAuthnSupported; exports.jwtTokenManager = _chunkO3DVVB7Kcjs.jwtTokenManager; exports.linkPasskeyWithWebAuthn = _chunkO3DVVB7Kcjs.linkPasskeyWithWebAuthn; exports.linkTelegram = _chunkO3DVVB7Kcjs.linkTelegram; exports.linkWallet = _chunkO3DVVB7Kcjs.linkWallet; exports.linkX = _chunkO3DVVB7Kcjs.linkX; exports.loginWithEmail = _chunkO3DVVB7Kcjs.loginWithEmail; exports.loginWithTelegram = _chunkO3DVVB7Kcjs.loginWithTelegram; exports.loginWithUserId = _chunkO3DVVB7Kcjs.loginWithUserId; exports.loginWithX = _chunkO3DVVB7Kcjs.loginWithX; exports.logout = _chunkO3DVVB7Kcjs.logout; exports.mountTelegramLoginWidget = _chunkO3DVVB7Kcjs.mountTelegramLoginWidget; exports.registerPasskey = _chunkO3DVVB7Kcjs.registerPasskey; exports.resetWebAuthnFlags = _chunkO3DVVB7Kcjs.resetWebAuthnFlags; exports.sendEmailLinkCode = _chunkO3DVVB7Kcjs.sendEmailLinkCode; exports.showTelegramWidget = _chunkO3DVVB7Kcjs.showTelegramWidget; exports.syncKeyshareStatus = _chunkO3DVVB7Kcjs.syncKeyshareStatus; exports.unlinkProvider = _chunkO3DVVB7Kcjs.unlinkProvider; exports.unlinkWallet = _chunkO3DVVB7Kcjs.unlinkWallet; exports.unlinkX = _chunkO3DVVB7Kcjs.unlinkX; exports.verifyEmailLinkCode = _chunkO3DVVB7Kcjs.verifyEmailLinkCode; exports.verifyToken = _chunkO3DVVB7Kcjs.verifyToken; exports.walletLogin = _chunkO3DVVB7Kcjs.walletLogin;
115
+ //# sourceMappingURL=auth-WPQMCF4N.cjs.map
@@ -23,7 +23,7 @@ import {
23
23
  unlinkProvider,
24
24
  verifyEmailLinkCode,
25
25
  walletLogin
26
- } from "./chunk-IKKT5JDT.js";
26
+ } from "./chunk-6QTXBMNL.js";
27
27
  import {
28
28
  DEFAULT_PROVIDER_CONFIG,
29
29
  DiscordIcon,
@@ -37,7 +37,7 @@ import {
37
37
  getServiceUrls,
38
38
  init_assets,
39
39
  init_initial
40
- } from "./chunk-ISXWRCDC.js";
40
+ } from "./chunk-PIZB3BDS.js";
41
41
 
42
42
  // src/internal/clients/base.ts
43
43
  init_initial();
@@ -1043,10 +1043,10 @@ function useAutoConnect() {
1043
1043
  } catch {
1044
1044
  }
1045
1045
  setStatus("checking key management setup...");
1046
- const { ensureKeyshare: ensureKeyshare2 } = await import("./auth-S7VX73GX.js");
1046
+ const { ensureKeyshare: ensureKeyshare2 } = await import("./auth-KSSZW2NZ.js");
1047
1047
  await ensureKeyshare2(userId, hasServerKeyshare, setStatus, isNewUser);
1048
1048
  setStatus("creating smart account...");
1049
- const { createAccountSession: createAccountSession2, getEntryPointDeposit: getEntryPointDeposit2 } = await import("./clients-EQIRT5QY.js");
1049
+ const { createAccountSession: createAccountSession2, getEntryPointDeposit: getEntryPointDeposit2 } = await import("./clients-DH5SX5FS.js");
1050
1050
  const sess = await createAccountSession2({
1051
1051
  mpcUserId: userId,
1052
1052
  mpcPin: void 0,
@@ -1089,7 +1089,7 @@ function useAutoConnect() {
1089
1089
  return;
1090
1090
  }
1091
1091
  try {
1092
- const { waitForIframe } = await import("./iframe-manager-GCUMMQVH.js");
1092
+ const { waitForIframe } = await import("./iframe-manager-LJUXSMW2.js");
1093
1093
  await waitForIframe();
1094
1094
  setIsIframeReady(true);
1095
1095
  } catch (iframeError) {
@@ -1100,15 +1100,15 @@ function useAutoConnect() {
1100
1100
  }
1101
1101
  return;
1102
1102
  }
1103
- const { ensureValidToken: ensureValidToken2 } = await import("./auth-S7VX73GX.js");
1103
+ const { ensureValidToken: ensureValidToken2 } = await import("./auth-KSSZW2NZ.js");
1104
1104
  const hasValid = await ensureValidToken2();
1105
1105
  console.log("[AUTOCONNECT] Step 1: Ensure access token is valid", hasValid);
1106
1106
  if (!hasValid) {
1107
1107
  setIsLoading(false);
1108
1108
  return;
1109
1109
  }
1110
- const { jwtTokenManager: jwtTokenManager3 } = await import("./auth-S7VX73GX.js");
1111
- const { verifyToken } = await import("./auth-S7VX73GX.js");
1110
+ const { jwtTokenManager: jwtTokenManager3 } = await import("./auth-KSSZW2NZ.js");
1111
+ const { verifyToken } = await import("./auth-KSSZW2NZ.js");
1112
1112
  const verify = await verifyToken();
1113
1113
  let userId = jwtTokenManager3.getUserId();
1114
1114
  if (!userId && verify?.userId) {
@@ -1128,7 +1128,7 @@ function useAutoConnect() {
1128
1128
  console.warn("[UI-KIT][AutoConnect] Error due onAccount callback:", error);
1129
1129
  }
1130
1130
  try {
1131
- const jwt = await import("./auth-S7VX73GX.js").then((m) => m.jwtTokenManager.getTokens());
1131
+ const jwt = await import("./auth-KSSZW2NZ.js").then((m) => m.jwtTokenManager.getTokens());
1132
1132
  const { session: sess, address: addr } = await createSessionWithKeyshare(
1133
1133
  userId,
1134
1134
  finalHasKeyshare,
@@ -1155,7 +1155,7 @@ function useAutoConnect() {
1155
1155
  }
1156
1156
  if (config.projectId) {
1157
1157
  try {
1158
- const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-GCUMMQVH.js");
1158
+ const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-LJUXSMW2.js");
1159
1159
  const iframeManager = getIframeManager2();
1160
1160
  await iframeManager.authenticate(userId);
1161
1161
  } catch (e) {
@@ -1163,7 +1163,7 @@ function useAutoConnect() {
1163
1163
  }
1164
1164
  }
1165
1165
  try {
1166
- const { checkServerBackupAvailability: checkServerBackupAvailability2, updateBackupStatus: updateBackupStatus2, getShareRecoveryStats: getShareRecoveryStats2 } = await import("./vaultClient-RB5J5M5Z.js");
1166
+ const { checkServerBackupAvailability: checkServerBackupAvailability2, updateBackupStatus: updateBackupStatus2, getShareRecoveryStats: getShareRecoveryStats2 } = await import("./vaultClient-NB6LJPRV.js");
1167
1167
  const result = await checkServerBackupAvailability2();
1168
1168
  if (result.hasBackup)
1169
1169
  updateBackupStatus2(userId, "server", {
@@ -3710,7 +3710,7 @@ async function normalizeSocialLoginResponse(rawLoginResponse, providerKey, userD
3710
3710
  const needsEnrichment = typeof normalized.hasKeyshare !== "boolean" || typeof normalized.isNewUser === "undefined";
3711
3711
  if (needsEnrichment) {
3712
3712
  try {
3713
- const { getUserProfile: getUserProfile2 } = await import("./profile-MN3MGEEE.js");
3713
+ const { getUserProfile: getUserProfile2 } = await import("./profile-U27AANIS.js");
3714
3714
  const profile = await getUserProfile2();
3715
3715
  if (typeof normalized.hasKeyshare !== "boolean" && typeof profile.hasKeyshare === "boolean") {
3716
3716
  normalized.hasKeyshare = profile.hasKeyshare;
@@ -3867,7 +3867,7 @@ function Social(props) {
3867
3867
  setIsLoading(true);
3868
3868
  setStep("loading");
3869
3869
  try {
3870
- const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-GCUMMQVH.js");
3870
+ const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-LJUXSMW2.js");
3871
3871
  const iframeManager = getIframeManager2();
3872
3872
  const finalizeSocialLogin = async (rawLoginResponse, providerKey, userData) => {
3873
3873
  let loginResponse2 = await normalizeSocialLoginResponse(rawLoginResponse, providerKey, userData);
@@ -4216,10 +4216,10 @@ function useAuthMenuHandlers() {
4216
4216
  } catch {
4217
4217
  }
4218
4218
  setStatus("checking key management setup...");
4219
- const { ensureKeyshare: ensureKeyshare2 } = await import("./auth-S7VX73GX.js");
4219
+ const { ensureKeyshare: ensureKeyshare2 } = await import("./auth-KSSZW2NZ.js");
4220
4220
  await ensureKeyshare2(userId, hasServerKeyshare, setStatus, isNewUser);
4221
4221
  setStatus("creating smart account...");
4222
- const { createAccountSession: createAccountSession2, getEntryPointDeposit: getEntryPointDeposit2 } = await import("./clients-EQIRT5QY.js");
4222
+ const { createAccountSession: createAccountSession2, getEntryPointDeposit: getEntryPointDeposit2 } = await import("./clients-DH5SX5FS.js");
4223
4223
  if (!activeChainId) {
4224
4224
  throw new Error("Active chain id is not set");
4225
4225
  }
@@ -4263,7 +4263,7 @@ function useAuthMenuHandlers() {
4263
4263
  if (!config.current?.projectId) {
4264
4264
  throw new Error("projectId is not configured. Cannot authenticate with iframe.");
4265
4265
  }
4266
- const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-GCUMMQVH.js");
4266
+ const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-LJUXSMW2.js");
4267
4267
  const iframeManager = getIframeManager2();
4268
4268
  await iframeManager.authenticate(userId, loginResponse.avatar, loginResponse.displayName);
4269
4269
  if (loginResponse.accessToken && loginResponse.refreshToken) {
@@ -4272,7 +4272,7 @@ function useAuthMenuHandlers() {
4272
4272
  console.warn("[ConnectWalletButton] Login response missing tokens; skipping jwtTokenManager.setTokens");
4273
4273
  }
4274
4274
  pendingLoginResponseRef.current = null;
4275
- const jwt = await import("./auth-S7VX73GX.js").then((m) => m.jwtTokenManager.getTokens());
4275
+ const jwt = await import("./auth-KSSZW2NZ.js").then((m) => m.jwtTokenManager.getTokens());
4276
4276
  const { session: sess, address: addr } = await createSessionWithKeyshare(
4277
4277
  userId,
4278
4278
  hasServerKeyshare,
@@ -4282,7 +4282,7 @@ function useAuthMenuHandlers() {
4282
4282
  setAlert(null);
4283
4283
  let hasKeyshareVaultBackup = false;
4284
4284
  try {
4285
- const { checkServerBackupAvailability: checkServerBackupAvailability2, updateBackupStatus: updateBackupStatus2, getShareRecoveryStats: getShareRecoveryStats2 } = await import("./vaultClient-RB5J5M5Z.js");
4285
+ const { checkServerBackupAvailability: checkServerBackupAvailability2, updateBackupStatus: updateBackupStatus2, getShareRecoveryStats: getShareRecoveryStats2 } = await import("./vaultClient-NB6LJPRV.js");
4286
4286
  const result = await checkServerBackupAvailability2();
4287
4287
  if (result.hasBackup) {
4288
4288
  updateBackupStatus2(userId, "server", { enabled: true, lastBackup: Date.now() });
@@ -4568,7 +4568,7 @@ function VerifyStep(props) {
4568
4568
  mutationFn: async (code) => {
4569
4569
  setIsLoading(true);
4570
4570
  setAlert(null);
4571
- const { loginWithEmail } = await import("./auth-S7VX73GX.js");
4571
+ const { loginWithEmail } = await import("./auth-KSSZW2NZ.js");
4572
4572
  const loginResponse = await loginWithEmail(email, code, { skipTokenSave: true });
4573
4573
  pendingLoginResponseRef.current = loginResponse;
4574
4574
  return loginResponse;
@@ -9432,10 +9432,10 @@ function useOnRestoreSuccess() {
9432
9432
  } catch {
9433
9433
  }
9434
9434
  setStatus("checking key management setup...");
9435
- const { ensureKeyshare: ensureKeyshare2 } = await import("./auth-S7VX73GX.js");
9435
+ const { ensureKeyshare: ensureKeyshare2 } = await import("./auth-KSSZW2NZ.js");
9436
9436
  await ensureKeyshare2(userId, hasServerKeyshare, setStatus, isNewUser);
9437
9437
  setStatus("creating smart account...");
9438
- const { createAccountSession: createAccountSession2, getEntryPointDeposit: getEntryPointDeposit2 } = await import("./clients-EQIRT5QY.js");
9438
+ const { createAccountSession: createAccountSession2, getEntryPointDeposit: getEntryPointDeposit2 } = await import("./clients-DH5SX5FS.js");
9439
9439
  if (!activeChainId) {
9440
9440
  throw new Error("Active chain id is not set");
9441
9441
  }
@@ -9466,7 +9466,7 @@ function useOnRestoreSuccess() {
9466
9466
  [setStatus, usePaymaster, activeChainId, publicClient]
9467
9467
  );
9468
9468
  const onRestoreSuccess = useCallback15(async () => {
9469
- const { verifyToken, jwtTokenManager: jwtTokenManager3 } = await import("./auth-S7VX73GX.js");
9469
+ const { verifyToken, jwtTokenManager: jwtTokenManager3 } = await import("./auth-KSSZW2NZ.js");
9470
9470
  const verify = await verifyToken();
9471
9471
  const hasServerKeyshare = verify?.hasKeyshare ?? jwtTokenManager3.getHasKeyshare() ?? false;
9472
9472
  if (recoveryUserId) {
@@ -9477,7 +9477,7 @@ function useOnRestoreSuccess() {
9477
9477
  setError(null);
9478
9478
  if (config.current?.projectId) {
9479
9479
  try {
9480
- const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-GCUMMQVH.js");
9480
+ const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-LJUXSMW2.js");
9481
9481
  const iframeManager = getIframeManager2();
9482
9482
  await iframeManager.authenticate(recoveryUserId);
9483
9483
  } catch (e) {
@@ -9485,7 +9485,7 @@ function useOnRestoreSuccess() {
9485
9485
  }
9486
9486
  }
9487
9487
  try {
9488
- const { updateBackupStatus: updateBackupStatus2 } = await import("./vaultClient-RB5J5M5Z.js");
9488
+ const { updateBackupStatus: updateBackupStatus2 } = await import("./vaultClient-NB6LJPRV.js");
9489
9489
  updateBackupStatus2(recoveryUserId, "server", { enabled: true, lastBackup: Date.now() });
9490
9490
  } catch (e) {
9491
9491
  console.warn("[UI-KIT] Failed to update backup status:", e);
@@ -9556,7 +9556,7 @@ function useCreateBackup() {
9556
9556
  if (!iframeManager) {
9557
9557
  throw new Error("Iframe manager not initialized");
9558
9558
  }
9559
- const jwt = await import("./auth-S7VX73GX.js").then((m) => m.jwtTokenManager.getTokens());
9559
+ const jwt = await import("./auth-KSSZW2NZ.js").then((m) => m.jwtTokenManager.getTokens());
9560
9560
  if (!usePasskey && !restorePassword) {
9561
9561
  throw new Error("Please provide a password for the backup");
9562
9562
  }
@@ -9633,8 +9633,8 @@ function useCreateBackup() {
9633
9633
  const { mutate: createPasskey, isPending: isPasskeyCreating } = useMutation9({
9634
9634
  mutationFn: async () => {
9635
9635
  setIsCreatingPasskey(true);
9636
- const { linkPasskeyWithWebAuthn: linkPasskeyWithWebAuthn2 } = await import("./passkey-UQ4D7IBC.js");
9637
- const { createPasskeyHelpers: createPasskeyHelpers2 } = await import("./passkey-QGOQHMP2.js");
9636
+ const { linkPasskeyWithWebAuthn: linkPasskeyWithWebAuthn2 } = await import("./passkey-R5DNDC3P.js");
9637
+ const { createPasskeyHelpers: createPasskeyHelpers2 } = await import("./passkey-FG3L2F7K.js");
9638
9638
  const { credentialId, rawId } = await linkPasskeyWithWebAuthn2();
9639
9639
  const helpers = createPasskeyHelpers2(passportUserId);
9640
9640
  helpers.setCredId(credentialId);
@@ -9727,7 +9727,7 @@ function useRestoreAccount() {
9727
9727
  setError(null);
9728
9728
  setSuccess(null);
9729
9729
  console.log("[KeyshareRestoreMenu] Starting server restore for userId:", recoveryUserId);
9730
- const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-GCUMMQVH.js");
9730
+ const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-LJUXSMW2.js");
9731
9731
  const iframeManager = getIframeManager2();
9732
9732
  if (!iframeManager) {
9733
9733
  throw new Error("Iframe manager not initialized");
@@ -9736,7 +9736,7 @@ function useRestoreAccount() {
9736
9736
  "[KeyshareRestoreMenu] Calling iframeManager.restoreFromServer with method:",
9737
9737
  usePasskey ? "passkey" : "password"
9738
9738
  );
9739
- const jwt = await import("./auth-S7VX73GX.js").then((m) => m.jwtTokenManager.getTokens());
9739
+ const jwt = await import("./auth-KSSZW2NZ.js").then((m) => m.jwtTokenManager.getTokens());
9740
9740
  const accessToken = jwt?.accessToken;
9741
9741
  if (!usePasskey && !restorePassword) {
9742
9742
  throw new Error("Please enter the backup password");
@@ -9768,7 +9768,7 @@ function useRestoreAccount() {
9768
9768
  }
9769
9769
  setError(null);
9770
9770
  setSuccess(null);
9771
- const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-GCUMMQVH.js");
9771
+ const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-LJUXSMW2.js");
9772
9772
  const iframeManager = getIframeManager2();
9773
9773
  if (!iframeManager) {
9774
9774
  throw new Error("Iframe manager not initialized");
@@ -10714,9 +10714,9 @@ var KeyshareRestoreMenu = () => {
10714
10714
  setMethod(null);
10715
10715
  setStatus("disconnecting");
10716
10716
  setIsLoading(true);
10717
- const { jwtTokenManager: jwtTokenManager3 } = await import("./auth-S7VX73GX.js");
10717
+ const { jwtTokenManager: jwtTokenManager3 } = await import("./auth-KSSZW2NZ.js");
10718
10718
  const userId = jwtTokenManager3.getUserId() || null;
10719
- const { logout: logout2 } = await import("./auth-S7VX73GX.js");
10719
+ const { logout: logout2 } = await import("./auth-KSSZW2NZ.js");
10720
10720
  await logout2();
10721
10721
  return { disconnectedUserId: userId };
10722
10722
  },
@@ -11858,7 +11858,7 @@ function useLinkSocial() {
11858
11858
  authConfig.token = accessToken;
11859
11859
  }
11860
11860
  const normalizedProvider = providerKey === "twitter" ? "x" : providerKey;
11861
- const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-GCUMMQVH.js");
11861
+ const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-LJUXSMW2.js");
11862
11862
  const iframeManager = getIframeManager2();
11863
11863
  const result = await iframeManager.openSocialAuthPopup(normalizedProvider, authConfig);
11864
11864
  if (!result.success) {
@@ -11935,7 +11935,7 @@ function useLinkTelegram() {
11935
11935
  if (!botUsername) {
11936
11936
  throw new Error("Telegram bot username not configured");
11937
11937
  }
11938
- const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-GCUMMQVH.js");
11938
+ const { getIframeManager: getIframeManager2 } = await import("./iframe-manager-LJUXSMW2.js");
11939
11939
  const iframeManager = getIframeManager2();
11940
11940
  const result = await iframeManager.openSocialAuthPopup("telegram", { botUsername });
11941
11941
  if (!result.success) {
@@ -14536,6 +14536,7 @@ async function createAccountSession(params) {
14536
14536
  // src/internal/clients/account/user-operations.ts
14537
14537
  import {
14538
14538
  createUserOperationWithDynamicFees,
14539
+ DUMMY_SIGNATURE,
14539
14540
  estimateUserOperationGas,
14540
14541
  sendUserOperationWithRetry
14541
14542
  } from "@embarkai/core/bundler";
@@ -14605,7 +14606,11 @@ function encodeBatchExecution(operations) {
14605
14606
  callData: encodeFunctionData({
14606
14607
  abi: executeBatchAbi,
14607
14608
  functionName: "executeBatch",
14608
- args: [operations.map((operation) => operation.to), operations.map((operation) => BigInt(operation.value)), operations.map((operation) => operation.data)]
14609
+ args: [
14610
+ operations.map((operation) => operation.to),
14611
+ operations.map((operation) => BigInt(operation.value)),
14612
+ operations.map((operation) => operation.data)
14613
+ ]
14609
14614
  }),
14610
14615
  signingMetadata: { operations }
14611
14616
  };
@@ -14669,7 +14674,10 @@ async function createUnsignedUserOperation(session, context, callData, feeType)
14669
14674
  }
14670
14675
  try {
14671
14676
  const gasEst = await estimateUserOperationGas(
14672
- { ...userOp, signature: `0x${"00".repeat(65)}` },
14677
+ {
14678
+ ...userOp,
14679
+ signature: DUMMY_SIGNATURE
14680
+ },
14673
14681
  { chainId: context.chainId, retryWithoutFactory: true }
14674
14682
  );
14675
14683
  console.log("[Account] Gas estimation from bundler:", {
@@ -14717,7 +14725,7 @@ async function signPreparedUserOperation(session, context, userOp, nonce, signin
14717
14725
  preVerificationGas: BigInt(userOp.preVerificationGas),
14718
14726
  gasFees: pack2x128(BigInt(userOp.maxPriorityFeePerGas), BigInt(userOp.maxFeePerGas)),
14719
14727
  paymasterAndData: buildPaymasterAndData(userOp),
14720
- signature: "0x"
14728
+ signature: DUMMY_SIGNATURE
14721
14729
  };
14722
14730
  const userOpHash = await context.chainPublicClient.readContract({
14723
14731
  address: context.entryPointAddress,
@@ -14763,7 +14771,13 @@ async function sendExecutionUserOperation(session, params, callData, signingMeta
14763
14771
  const context = resolveExecutionContext(params.chainId);
14764
14772
  const { nonce, userOp } = await createUnsignedUserOperation(session, context, callData, params.feeType ?? "standard");
14765
14773
  const signUserOp = async (nextNonce) => {
14766
- const { userOp: signedUserOp2 } = await signPreparedUserOperation(session, context, userOp, nextNonce, signingMetadata);
14774
+ const { userOp: signedUserOp2 } = await signPreparedUserOperation(
14775
+ session,
14776
+ context,
14777
+ userOp,
14778
+ nextNonce,
14779
+ signingMetadata
14780
+ );
14767
14781
  return signedUserOp2;
14768
14782
  };
14769
14783
  const signedUserOp = await signUserOp(nonce);
@@ -17600,7 +17614,7 @@ function SendMenu() {
17600
17614
 
17601
17615
  // src/internal/components/SendMenu/SendFlowSelector.tsx
17602
17616
  import { jsx as jsx107, jsxs as jsxs95 } from "react/jsx-runtime";
17603
- var LazyHyperlaneBridge = React14.lazy(() => import("./hyperbridge-OU2MDJ5Q.js"));
17617
+ var LazyHyperlaneBridge = React14.lazy(() => import("./hyperbridge-6CO7NULG.js"));
17604
17618
  var SELECTOR_FLOW = {
17605
17619
  send: /* @__PURE__ */ jsx107(SendMenu, {}),
17606
17620
  bridge: /* @__PURE__ */ jsx107(
@@ -18937,7 +18951,7 @@ function useSettingsNotifications() {
18937
18951
  // package.json
18938
18952
  var package_default = {
18939
18953
  name: "@embarkai/ui-kit",
18940
- version: "0.4.22",
18954
+ version: "0.4.24",
18941
18955
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
18942
18956
  type: "module",
18943
18957
  main: "./dist/index.cjs",
@@ -18990,10 +19004,12 @@ var package_default = {
18990
19004
  "@radix-ui/react-slot": ">=1.2.4",
18991
19005
  "@rainbow-me/rainbowkit": "^2.2.10",
18992
19006
  "@sentry/browser": "^10.22.0",
18993
- buffer: "^6.0.3",
18994
19007
  "class-variance-authority": "^0.7.0",
18995
19008
  clsx: "^2.1.1",
18996
19009
  dayjs: "^1.11.9",
19010
+ "@hyperlane-xyz/registry": "^25.1.0",
19011
+ "@hyperlane-xyz/sdk": "^35.0.1",
19012
+ "@hyperlane-xyz/utils": "^35.0.1",
18997
19013
  "dkls23-wasm": "^0.1.0",
18998
19014
  "framer-motion": "^12.23.24",
18999
19015
  "lodash-es": "^4.17.21",
@@ -19004,9 +19020,6 @@ var package_default = {
19004
19020
  zustand: "^5.0.8"
19005
19021
  },
19006
19022
  devDependencies: {
19007
- "@hyperlane-xyz/registry": "^25.1.0",
19008
- "@hyperlane-xyz/sdk": "^35.0.1",
19009
- "@hyperlane-xyz/utils": "^35.0.1",
19010
19023
  "@tailwindcss/typography": "^0.5.16",
19011
19024
  "@tanstack/react-query": "^5.90.2",
19012
19025
  "@types/lodash-es": "^4.17.12",
@@ -19057,7 +19070,7 @@ function Footer() {
19057
19070
  setStatus("disconnecting");
19058
19071
  setIsLoading(true);
19059
19072
  const userId = jwtTokenManager.getUserId() || null;
19060
- const { logout: logout2 } = await import("./auth-S7VX73GX.js");
19073
+ const { logout: logout2 } = await import("./auth-KSSZW2NZ.js");
19061
19074
  await logout2();
19062
19075
  return { disconnectedUserId: userId, disconnectAddress };
19063
19076
  },
@@ -20147,4 +20160,4 @@ export {
20147
20160
  useSmartAccountTransactions,
20148
20161
  USER_PROFILE_QUERY_KEY
20149
20162
  };
20150
- //# sourceMappingURL=chunk-Q7PR2UUH.js.map
20163
+ //# sourceMappingURL=chunk-47XANJVP.js.map
@@ -9,7 +9,7 @@ import {
9
9
  getServiceUrls,
10
10
  init_assets,
11
11
  init_initial
12
- } from "./chunk-ISXWRCDC.js";
12
+ } from "./chunk-PIZB3BDS.js";
13
13
  import {
14
14
  __export,
15
15
  __reExport
@@ -307,7 +307,7 @@ async function ensureDkgAndGetOwner(userId, _clientSeedHex) {
307
307
  };
308
308
  }
309
309
  await iframeManager.authenticate(userId);
310
- const { jwtTokenManager: jwtTokenManager3 } = await import("./auth-S7VX73GX.js");
310
+ const { jwtTokenManager: jwtTokenManager3 } = await import("./auth-KSSZW2NZ.js");
311
311
  let accessToken = jwtTokenManager3.getAccessToken();
312
312
  if (!accessToken) {
313
313
  console.warn("[iframe-mpc-client] No access token available for DKG, attempting cookie-based session");
@@ -339,7 +339,7 @@ async function signDigestWithMpc(userId, digest32, userOpDetails) {
339
339
  for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
340
340
  try {
341
341
  const iframeManager = getIframeManager();
342
- const { jwtTokenManager: jwtTokenManager3 } = await import("./auth-S7VX73GX.js");
342
+ const { jwtTokenManager: jwtTokenManager3 } = await import("./auth-KSSZW2NZ.js");
343
343
  const accessToken = jwtTokenManager3.getAccessToken();
344
344
  if (!accessToken) {
345
345
  throw new Error("No access token available for signing");
@@ -399,7 +399,7 @@ async function signTypedDataWithMpc(userId, digest32, typedData) {
399
399
  digest32
400
400
  });
401
401
  const iframeManager = getIframeManager();
402
- const { jwtTokenManager: jwtTokenManager3 } = await import("./auth-S7VX73GX.js");
402
+ const { jwtTokenManager: jwtTokenManager3 } = await import("./auth-KSSZW2NZ.js");
403
403
  const accessToken = jwtTokenManager3.getAccessToken();
404
404
  if (!accessToken) {
405
405
  console.error("[signTypedDataWithMpc] No access token available");
@@ -494,7 +494,7 @@ async function ensureKeyshare(userId, serverHasKeyshare, onProgress, isNewUser)
494
494
  if (status.needsRecovery) {
495
495
  console.log("[ensureKeyshare] Recovery needed, checking backups...");
496
496
  onProgress?.("Checking backup availability...");
497
- const { checkServerBackupAvailability, getBackupStatus } = await import("./vaultClient-RB5J5M5Z.js");
497
+ const { checkServerBackupAvailability, getBackupStatus } = await import("./vaultClient-NB6LJPRV.js");
498
498
  const localBackupStatus = getBackupStatus(userId);
499
499
  const serverBackupResult = await checkServerBackupAvailability();
500
500
  const hasLocalBackup = localBackupStatus.local.enabled && localBackupStatus.local.lastBackup;
@@ -1088,4 +1088,4 @@ export {
1088
1088
  loginWithTelegram,
1089
1089
  syncKeyshareStatus
1090
1090
  };
1091
- //# sourceMappingURL=chunk-IKKT5JDT.js.map
1091
+ //# sourceMappingURL=chunk-6QTXBMNL.js.map