@seams/wallet 0.15.2 → 0.15.6

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 (58) hide show
  1. package/README.md +36 -16
  2. package/dist/.build-inputs.sha256 +1 -1
  3. package/dist/esm/SeamsWeb/walletIframe/host/auth-menu/domain.js +13 -1
  4. package/dist/esm/SeamsWeb/walletIframe/host/ui/auth-menu/AuthMenuSurface.js +8 -7
  5. package/dist/esm/react/components/AccountMenuButton/AuthenticationMethodRow.js +1 -1
  6. package/dist/esm/react/components/AccountMenuButton/MenuItem.js +2 -11
  7. package/dist/esm/react/components/AccountMenuButton/ProfileDropdown.css +30 -4
  8. package/dist/esm/react/components/AccountMenuButton/Web3AuthProfileButton.css +4 -39
  9. package/dist/esm/react/components/AccountMenuButton/icons/HoverArrowIcon.css +45 -0
  10. package/dist/esm/react/components/AccountMenuButton/icons/HoverArrowIcon.js +3 -2
  11. package/dist/esm/react/styles/styles.css +80 -43
  12. package/dist/esm/react/styles.css +1 -0
  13. package/dist/esm/sdk/{host-z-JJRWQe.js → host-DfWylEiw.js} +1 -1
  14. package/dist/esm/sdk/registration-yoF0o52H.js +1 -0
  15. package/dist/esm/sdk/runtime-auth--i_j8PP7.js +1 -0
  16. package/dist/{public/sdk/runtime-device-link-Dq8g_UNb.js → esm/sdk/runtime-device-link-fpvaxYyR.js} +1 -1
  17. package/dist/esm/sdk/{runtime-ecdsa-tempo-AGjT7Xpa.js → runtime-ecdsa-tempo-AE5QTaXu.js} +1 -1
  18. package/dist/esm/sdk/{runtime-email-otp-BpBOuSsT.js → runtime-email-otp-Dl03QI-O.js} +1 -1
  19. package/dist/esm/sdk/{runtime-export-CBsacCPY.js → runtime-export-F9s12UcT.js} +1 -1
  20. package/dist/esm/sdk/{runtime-near-J3hKjC7G.js → runtime-near-Bjrz1KYf.js} +1 -1
  21. package/dist/esm/sdk/{runtime-preferences-CVt5sLvm.js → runtime-preferences-oLRSEqmz.js} +1 -1
  22. package/dist/esm/sdk/{runtime-recovery-BzewdcoT.js → runtime-recovery-DBBKvIIg.js} +1 -1
  23. package/dist/esm/sdk/{shared-BywEqTsd.js → shared-D893jckQ.js} +1 -1
  24. package/dist/esm/sdk/wallet-iframe-host-ecdsa.js +1 -1
  25. package/dist/esm/sdk/wallet-iframe-host-full.js +1 -1
  26. package/dist/esm/sdk/wallet-iframe-host-near.js +1 -1
  27. package/dist/esm/sdk/wallet-iframe-host-runtime.js +1 -1
  28. package/dist/public/headers.manifest.json +1 -1
  29. package/dist/public/sdk/{host-z-JJRWQe.js → host-DfWylEiw.js} +1 -1
  30. package/dist/public/sdk/registration-yoF0o52H.js +1 -0
  31. package/dist/public/sdk/runtime-auth--i_j8PP7.js +1 -0
  32. package/dist/{esm/sdk/runtime-device-link-Dq8g_UNb.js → public/sdk/runtime-device-link-fpvaxYyR.js} +1 -1
  33. package/dist/public/sdk/{runtime-ecdsa-tempo-AGjT7Xpa.js → runtime-ecdsa-tempo-AE5QTaXu.js} +1 -1
  34. package/dist/public/sdk/{runtime-email-otp-BpBOuSsT.js → runtime-email-otp-Dl03QI-O.js} +1 -1
  35. package/dist/public/sdk/{runtime-export-CBsacCPY.js → runtime-export-F9s12UcT.js} +1 -1
  36. package/dist/public/sdk/{runtime-near-J3hKjC7G.js → runtime-near-Bjrz1KYf.js} +1 -1
  37. package/dist/public/sdk/{runtime-preferences-CVt5sLvm.js → runtime-preferences-oLRSEqmz.js} +1 -1
  38. package/dist/public/sdk/{runtime-recovery-BzewdcoT.js → runtime-recovery-DBBKvIIg.js} +1 -1
  39. package/dist/public/sdk/{shared-BywEqTsd.js → shared-D893jckQ.js} +1 -1
  40. package/dist/public/sdk/wallet-iframe-host-ecdsa.js +1 -1
  41. package/dist/public/sdk/wallet-iframe-host-full.js +1 -1
  42. package/dist/public/sdk/wallet-iframe-host-near.js +1 -1
  43. package/dist/public/sdk/wallet-iframe-host-runtime.js +1 -1
  44. package/dist/public/sdk/workers/email-otp.worker.js +7 -1
  45. package/dist/public/sdk/workers/passkey-mpc-export.worker.js +7 -1
  46. package/dist/public/sdk/workers/wallet-custody-ceremony.worker.js +2 -0
  47. package/dist/public/wallet-assets.manifest.json +26 -26
  48. package/dist/public/wallet-service/index.html +4 -4
  49. package/dist/types/wallet/src/SeamsWeb/walletIframe/host/auth-menu/domain.d.ts +15 -2
  50. package/dist/types/wallet/src/react/components/AccountMenuButton/icons/HoverArrowIcon.d.ts +3 -2
  51. package/dist/workers/email-otp.worker.js +7 -1
  52. package/dist/workers/passkey-mpc-export.worker.js +7 -1
  53. package/dist/workers/wallet-custody-ceremony.worker.js +2 -0
  54. package/package.json +1 -1
  55. package/dist/esm/sdk/registration-DEGZR8kA.js +0 -1
  56. package/dist/esm/sdk/runtime-auth-ZcxkQ-XF.js +0 -1
  57. package/dist/public/sdk/registration-DEGZR8kA.js +0 -1
  58. package/dist/public/sdk/runtime-auth-ZcxkQ-XF.js +0 -1
@@ -1 +1 @@
1
- import"./primitives-CqrjmIAH.js";import"./walletDbName-DtRewci9.js";import"./signingSessionSeal-DX41aXUL.js";import{t as e}from"./host-z-JJRWQe.js";import"./activeWalletSession-WdZkhtBB.js";import"./capabilityKinds-N8xo_IEh.js";import"./errors-DIWY1KR9.js";e({supportedRuntimeRouteKinds:new Set([`auth`,`ecdsa`,`email_otp`,`export`,`recovery`,`preferences`])});
1
+ import"./primitives-CqrjmIAH.js";import"./walletDbName-DtRewci9.js";import"./signingSessionSeal-DX41aXUL.js";import{t as e}from"./host-DfWylEiw.js";import"./activeWalletSession-WdZkhtBB.js";import"./capabilityKinds-N8xo_IEh.js";import"./errors-DIWY1KR9.js";e({supportedRuntimeRouteKinds:new Set([`auth`,`ecdsa`,`email_otp`,`export`,`recovery`,`preferences`])});
@@ -1 +1 @@
1
- import"./primitives-CqrjmIAH.js";import"./walletDbName-DtRewci9.js";import"./signingSessionSeal-DX41aXUL.js";import{t as e}from"./host-z-JJRWQe.js";import"./activeWalletSession-WdZkhtBB.js";import"./capabilityKinds-N8xo_IEh.js";import"./errors-DIWY1KR9.js";e();
1
+ import"./primitives-CqrjmIAH.js";import"./walletDbName-DtRewci9.js";import"./signingSessionSeal-DX41aXUL.js";import{t as e}from"./host-DfWylEiw.js";import"./activeWalletSession-WdZkhtBB.js";import"./capabilityKinds-N8xo_IEh.js";import"./errors-DIWY1KR9.js";e();
@@ -1 +1 @@
1
- import"./primitives-CqrjmIAH.js";import"./walletDbName-DtRewci9.js";import"./signingSessionSeal-DX41aXUL.js";import{t as e}from"./host-z-JJRWQe.js";import"./activeWalletSession-WdZkhtBB.js";import"./capabilityKinds-N8xo_IEh.js";import"./errors-DIWY1KR9.js";e({supportedRuntimeRouteKinds:new Set([`auth`,`near`,`export`,`device_link`,`recovery`,`preferences`])});
1
+ import"./primitives-CqrjmIAH.js";import"./walletDbName-DtRewci9.js";import"./signingSessionSeal-DX41aXUL.js";import{t as e}from"./host-DfWylEiw.js";import"./activeWalletSession-WdZkhtBB.js";import"./capabilityKinds-N8xo_IEh.js";import"./errors-DIWY1KR9.js";e({supportedRuntimeRouteKinds:new Set([`auth`,`near`,`export`,`device_link`,`recovery`,`preferences`])});
@@ -1 +1 @@
1
- import"./primitives-CqrjmIAH.js";import"./walletDbName-DtRewci9.js";import"./signingSessionSeal-DX41aXUL.js";import{t as e}from"./host-z-JJRWQe.js";import"./activeWalletSession-WdZkhtBB.js";import"./capabilityKinds-N8xo_IEh.js";import"./errors-DIWY1KR9.js";export{e as initWalletIFrame};
1
+ import"./primitives-CqrjmIAH.js";import"./walletDbName-DtRewci9.js";import"./signingSessionSeal-DX41aXUL.js";import{t as e}from"./host-DfWylEiw.js";import"./activeWalletSession-WdZkhtBB.js";import"./capabilityKinds-N8xo_IEh.js";import"./errors-DIWY1KR9.js";export{e as initWalletIFrame};
@@ -3708,11 +3708,17 @@ function openVerifiedCustodyCacheActiveClient(input) {
3708
3708
  input.ownedFactorSecret.fill(0);
3709
3709
  }
3710
3710
  }
3711
+ var yaoClientInitialization = null;
3712
+ function resetYaoClientInitialization(error) {
3713
+ yaoClientInitialization = null;
3714
+ throw error;
3715
+ }
3711
3716
 
3712
3717
  class RouterAbEd25519YaoClientV1 {
3713
3718
  constructor() {}
3714
3719
  static async initializeBundled() {
3715
- await __wbg_init();
3720
+ yaoClientInitialization ??= __wbg_init().catch(resetYaoClientInitialization);
3721
+ await yaoClientInitialization;
3716
3722
  return new RouterAbEd25519YaoClientV1;
3717
3723
  }
3718
3724
  importLocalMaterial(input) {
@@ -3209,11 +3209,17 @@ function openVerifiedCustodyCacheActiveClient(input) {
3209
3209
  input.ownedFactorSecret.fill(0);
3210
3210
  }
3211
3211
  }
3212
+ var yaoClientInitialization = null;
3213
+ function resetYaoClientInitialization(error) {
3214
+ yaoClientInitialization = null;
3215
+ throw error;
3216
+ }
3212
3217
 
3213
3218
  class RouterAbEd25519YaoClientV1 {
3214
3219
  constructor() {}
3215
3220
  static async initializeBundled() {
3216
- await __wbg_init();
3221
+ yaoClientInitialization ??= __wbg_init().catch(resetYaoClientInitialization);
3222
+ await yaoClientInitialization;
3217
3223
  return new RouterAbEd25519YaoClientV1;
3218
3224
  }
3219
3225
  importLocalMaterial(input) {
@@ -3725,6 +3725,7 @@ async function initializeNearSignerWasm() {
3725
3725
  }
3726
3726
  return nearSignerInitPromise;
3727
3727
  }
3728
+ function ignoreNearSignerPrewarmFailure() {}
3728
3729
  async function initializeEd25519YaoClientWasm() {
3729
3730
  if (!ed25519YaoClientInitPromise) {
3730
3731
  ed25519YaoClientInitPromise = __wbg_init3({
@@ -3964,6 +3965,7 @@ function beginKeySetRun(request) {
3964
3965
  throw new Error("Too many wallet custody ceremonies are in flight");
3965
3966
  }
3966
3967
  if (request.payload.keySet === "near_ed25519_v1") {
3968
+ initializeNearSignerWasm().catch(ignoreNearSignerPrewarmFailure);
3967
3969
  const seedHeld = takeSeed(request.payload.custody);
3968
3970
  const prepared = seedHeld.prepare_near_ed25519(request.payload.protocolInputsJson);
3969
3971
  const yaoExecuteRequestJson = prepared.yao_execute_request_json();
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "packageName": "@seams/wallet",
4
- "packageVersion": "0.15.2",
4
+ "packageVersion": "0.15.6",
5
5
  "assetRoot": "dist/public",
6
6
  "sdkBasePath": "/sdk",
7
7
  "walletServicePath": "/wallet-service",
8
8
  "headersManifest": "headers.manifest.json",
9
9
  "versionSkewContract": {
10
10
  "kind": "wallet_iframe_protocol_handshake",
11
- "packageVersion": "0.15.2",
11
+ "packageVersion": "0.15.6",
12
12
  "protocolVersion": "16.0.0",
13
13
  "readyPayloadField": "protocolVersion",
14
14
  "failureMode": "typed_error",
@@ -970,8 +970,8 @@
970
970
  ]
971
971
  },
972
972
  {
973
- "route": "/sdk/host-z-JJRWQe.js",
974
- "sourceFile": "sdk/host-z-JJRWQe.js",
973
+ "route": "/sdk/host-DfWylEiw.js",
974
+ "sourceFile": "sdk/host-DfWylEiw.js",
975
975
  "owner": "wallet_sdk_asset",
976
976
  "routeClass": "javascript",
977
977
  "contentType": "text/javascript; charset=utf-8",
@@ -1594,8 +1594,8 @@
1594
1594
  ]
1595
1595
  },
1596
1596
  {
1597
- "route": "/sdk/registration-DEGZR8kA.js",
1598
- "sourceFile": "sdk/registration-DEGZR8kA.js",
1597
+ "route": "/sdk/registration-yoF0o52H.js",
1598
+ "sourceFile": "sdk/registration-yoF0o52H.js",
1599
1599
  "owner": "wallet_sdk_asset",
1600
1600
  "routeClass": "javascript",
1601
1601
  "contentType": "text/javascript; charset=utf-8",
@@ -1810,8 +1810,8 @@
1810
1810
  ]
1811
1811
  },
1812
1812
  {
1813
- "route": "/sdk/runtime-auth-ZcxkQ-XF.js",
1814
- "sourceFile": "sdk/runtime-auth-ZcxkQ-XF.js",
1813
+ "route": "/sdk/runtime-auth--i_j8PP7.js",
1814
+ "sourceFile": "sdk/runtime-auth--i_j8PP7.js",
1815
1815
  "owner": "wallet_sdk_asset",
1816
1816
  "routeClass": "javascript",
1817
1817
  "contentType": "text/javascript; charset=utf-8",
@@ -1834,8 +1834,8 @@
1834
1834
  ]
1835
1835
  },
1836
1836
  {
1837
- "route": "/sdk/runtime-device-link-Dq8g_UNb.js",
1838
- "sourceFile": "sdk/runtime-device-link-Dq8g_UNb.js",
1837
+ "route": "/sdk/runtime-device-link-fpvaxYyR.js",
1838
+ "sourceFile": "sdk/runtime-device-link-fpvaxYyR.js",
1839
1839
  "owner": "wallet_sdk_asset",
1840
1840
  "routeClass": "javascript",
1841
1841
  "contentType": "text/javascript; charset=utf-8",
@@ -1858,8 +1858,8 @@
1858
1858
  ]
1859
1859
  },
1860
1860
  {
1861
- "route": "/sdk/runtime-ecdsa-tempo-AGjT7Xpa.js",
1862
- "sourceFile": "sdk/runtime-ecdsa-tempo-AGjT7Xpa.js",
1861
+ "route": "/sdk/runtime-ecdsa-tempo-AE5QTaXu.js",
1862
+ "sourceFile": "sdk/runtime-ecdsa-tempo-AE5QTaXu.js",
1863
1863
  "owner": "wallet_sdk_asset",
1864
1864
  "routeClass": "javascript",
1865
1865
  "contentType": "text/javascript; charset=utf-8",
@@ -1882,8 +1882,8 @@
1882
1882
  ]
1883
1883
  },
1884
1884
  {
1885
- "route": "/sdk/runtime-email-otp-BpBOuSsT.js",
1886
- "sourceFile": "sdk/runtime-email-otp-BpBOuSsT.js",
1885
+ "route": "/sdk/runtime-email-otp-Dl03QI-O.js",
1886
+ "sourceFile": "sdk/runtime-email-otp-Dl03QI-O.js",
1887
1887
  "owner": "wallet_sdk_asset",
1888
1888
  "routeClass": "javascript",
1889
1889
  "contentType": "text/javascript; charset=utf-8",
@@ -1906,8 +1906,8 @@
1906
1906
  ]
1907
1907
  },
1908
1908
  {
1909
- "route": "/sdk/runtime-export-CBsacCPY.js",
1910
- "sourceFile": "sdk/runtime-export-CBsacCPY.js",
1909
+ "route": "/sdk/runtime-export-F9s12UcT.js",
1910
+ "sourceFile": "sdk/runtime-export-F9s12UcT.js",
1911
1911
  "owner": "wallet_sdk_asset",
1912
1912
  "routeClass": "javascript",
1913
1913
  "contentType": "text/javascript; charset=utf-8",
@@ -1930,8 +1930,8 @@
1930
1930
  ]
1931
1931
  },
1932
1932
  {
1933
- "route": "/sdk/runtime-near-J3hKjC7G.js",
1934
- "sourceFile": "sdk/runtime-near-J3hKjC7G.js",
1933
+ "route": "/sdk/runtime-near-Bjrz1KYf.js",
1934
+ "sourceFile": "sdk/runtime-near-Bjrz1KYf.js",
1935
1935
  "owner": "wallet_sdk_asset",
1936
1936
  "routeClass": "javascript",
1937
1937
  "contentType": "text/javascript; charset=utf-8",
@@ -1954,8 +1954,8 @@
1954
1954
  ]
1955
1955
  },
1956
1956
  {
1957
- "route": "/sdk/runtime-preferences-CVt5sLvm.js",
1958
- "sourceFile": "sdk/runtime-preferences-CVt5sLvm.js",
1957
+ "route": "/sdk/runtime-preferences-oLRSEqmz.js",
1958
+ "sourceFile": "sdk/runtime-preferences-oLRSEqmz.js",
1959
1959
  "owner": "wallet_sdk_asset",
1960
1960
  "routeClass": "javascript",
1961
1961
  "contentType": "text/javascript; charset=utf-8",
@@ -1978,8 +1978,8 @@
1978
1978
  ]
1979
1979
  },
1980
1980
  {
1981
- "route": "/sdk/runtime-recovery-BzewdcoT.js",
1982
- "sourceFile": "sdk/runtime-recovery-BzewdcoT.js",
1981
+ "route": "/sdk/runtime-recovery-codes-GOytzExh.js",
1982
+ "sourceFile": "sdk/runtime-recovery-codes-GOytzExh.js",
1983
1983
  "owner": "wallet_sdk_asset",
1984
1984
  "routeClass": "javascript",
1985
1985
  "contentType": "text/javascript; charset=utf-8",
@@ -2002,8 +2002,8 @@
2002
2002
  ]
2003
2003
  },
2004
2004
  {
2005
- "route": "/sdk/runtime-recovery-codes-GOytzExh.js",
2006
- "sourceFile": "sdk/runtime-recovery-codes-GOytzExh.js",
2005
+ "route": "/sdk/runtime-recovery-DBBKvIIg.js",
2006
+ "sourceFile": "sdk/runtime-recovery-DBBKvIIg.js",
2007
2007
  "owner": "wallet_sdk_asset",
2008
2008
  "routeClass": "javascript",
2009
2009
  "contentType": "text/javascript; charset=utf-8",
@@ -2122,8 +2122,8 @@
2122
2122
  ]
2123
2123
  },
2124
2124
  {
2125
- "route": "/sdk/shared-BywEqTsd.js",
2126
- "sourceFile": "sdk/shared-BywEqTsd.js",
2125
+ "route": "/sdk/shared-D893jckQ.js",
2126
+ "sourceFile": "sdk/shared-D893jckQ.js",
2127
2127
  "owner": "wallet_sdk_asset",
2128
2128
  "routeClass": "javascript",
2129
2129
  "contentType": "text/javascript; charset=utf-8",
@@ -5,14 +5,14 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <title>Web3Authn Wallet Service</title>
7
7
  <!-- Surface styles are external so strict CSP can keep style-src 'self' -->
8
- <link rel="stylesheet" href="/sdk/wallet-ui.css?v=0.15.2" />
8
+ <link rel="stylesheet" href="/sdk/wallet-ui.css?v=0.15.6" />
9
9
  <!-- Minimal shims some ESM bundles expect (externalized to enable strict CSP) -->
10
- <script src="/sdk/wallet-shims.js?v=0.15.2"></script>
10
+ <script src="/sdk/wallet-shims.js?v=0.15.6"></script>
11
11
  <!-- Hint the browser to fetch the host script earlier -->
12
- <link rel="modulepreload" href="/sdk/wallet-iframe-host-runtime.js?v=0.15.2" crossorigin>
12
+ <link rel="modulepreload" href="/sdk/wallet-iframe-host-runtime.js?v=0.15.6" crossorigin>
13
13
  </head>
14
14
  <body>
15
15
  <!-- sdkBasePath points to the SDK root (e.g. '/sdk'). Load the host directly. -->
16
- <script type="module" src="/sdk/wallet-iframe-host-runtime.js?v=0.15.2"></script>
16
+ <script type="module" src="/sdk/wallet-iframe-host-runtime.js?v=0.15.6"></script>
17
17
  </body>
18
18
  </html>
@@ -39,8 +39,9 @@ type AuthMenuSurfaceStatus = {
39
39
  readonly kind: 'busy';
40
40
  /** Names the wait, e.g. "Verifying your email code". */
41
41
  readonly headline: string;
42
- /** Optional illustration for a passkey credential prompt. */
43
- readonly illustration?: 'passkey';
42
+ /** Optional prompt outside the menu: the device's passkey prompt or
43
+ * Google's account chooser. The waiting view shows its ring and copy. */
44
+ readonly illustration?: keyof typeof AUTH_MENU_WAITING_PROMPTS;
44
45
  /** Optional secondary line, shown only when the host opts into progress. */
45
46
  readonly detail?: string;
46
47
  } | {
@@ -52,6 +53,18 @@ type AuthMenuSurfaceStatus = {
52
53
  /** The underlying error text. Reported to the host app, never rendered. */
53
54
  readonly detail?: string;
54
55
  };
56
+ /** A wait on a prompt outside the menu shares one look: the ring, then the
57
+ * headline, then what to do in that prompt. */
58
+ export declare const AUTH_MENU_WAITING_PROMPTS: {
59
+ readonly passkey: {
60
+ readonly label: "Passkey authentication";
61
+ readonly instruction: "Complete the prompt on your device.";
62
+ };
63
+ readonly google: {
64
+ readonly label: "Google sign-in";
65
+ readonly instruction: "Choose your Google account.";
66
+ };
67
+ };
55
68
  /** The waiting headline for the passkey ceremony itself. */
56
69
  export declare function passkeyCeremonyHeadline(mode: 'login' | 'register'): string;
57
70
  /**
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
- /** A chevron that grows a shaft on its parent's hover (">" to "->"). The
3
- * parent row owns the hover selectors in Web3AuthProfileButton.css. */
2
+ import './HoverArrowIcon.css';
3
+ /** A chevron that grows a shaft on its parent's hover (">" to "->"). Place it
4
+ * as a direct child of the row that triggers it (HoverArrowIcon.css). */
4
5
  export declare function HoverArrowIcon({ size }: {
5
6
  size?: number;
6
7
  }): React.JSX.Element;
@@ -3708,11 +3708,17 @@ function openVerifiedCustodyCacheActiveClient(input) {
3708
3708
  input.ownedFactorSecret.fill(0);
3709
3709
  }
3710
3710
  }
3711
+ var yaoClientInitialization = null;
3712
+ function resetYaoClientInitialization(error) {
3713
+ yaoClientInitialization = null;
3714
+ throw error;
3715
+ }
3711
3716
 
3712
3717
  class RouterAbEd25519YaoClientV1 {
3713
3718
  constructor() {}
3714
3719
  static async initializeBundled() {
3715
- await __wbg_init();
3720
+ yaoClientInitialization ??= __wbg_init().catch(resetYaoClientInitialization);
3721
+ await yaoClientInitialization;
3716
3722
  return new RouterAbEd25519YaoClientV1;
3717
3723
  }
3718
3724
  importLocalMaterial(input) {
@@ -3209,11 +3209,17 @@ function openVerifiedCustodyCacheActiveClient(input) {
3209
3209
  input.ownedFactorSecret.fill(0);
3210
3210
  }
3211
3211
  }
3212
+ var yaoClientInitialization = null;
3213
+ function resetYaoClientInitialization(error) {
3214
+ yaoClientInitialization = null;
3215
+ throw error;
3216
+ }
3212
3217
 
3213
3218
  class RouterAbEd25519YaoClientV1 {
3214
3219
  constructor() {}
3215
3220
  static async initializeBundled() {
3216
- await __wbg_init();
3221
+ yaoClientInitialization ??= __wbg_init().catch(resetYaoClientInitialization);
3222
+ await yaoClientInitialization;
3217
3223
  return new RouterAbEd25519YaoClientV1;
3218
3224
  }
3219
3225
  importLocalMaterial(input) {
@@ -3725,6 +3725,7 @@ async function initializeNearSignerWasm() {
3725
3725
  }
3726
3726
  return nearSignerInitPromise;
3727
3727
  }
3728
+ function ignoreNearSignerPrewarmFailure() {}
3728
3729
  async function initializeEd25519YaoClientWasm() {
3729
3730
  if (!ed25519YaoClientInitPromise) {
3730
3731
  ed25519YaoClientInitPromise = __wbg_init3({
@@ -3964,6 +3965,7 @@ function beginKeySetRun(request) {
3964
3965
  throw new Error("Too many wallet custody ceremonies are in flight");
3965
3966
  }
3966
3967
  if (request.payload.keySet === "near_ed25519_v1") {
3968
+ initializeNearSignerWasm().catch(ignoreNearSignerPrewarmFailure);
3967
3969
  const seedHeld = takeSeed(request.payload.custody);
3968
3970
  const prepared = seedHeld.prepare_near_ed25519(request.payload.protocolInputsJson);
3969
3971
  const yaoExecuteRequestJson = prepared.yao_execute_request_json();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seams/wallet",
3
- "version": "0.15.2",
3
+ "version": "0.15.6",
4
4
  "type": "module",
5
5
  "description": "Seams web and runtime TypeScript SDK for NEAR and EVM-family wallets",
6
6
  "main": "./dist/esm/index.js",