@embarkai/ui-kit 0.4.3 → 0.4.4

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.3</title>
18
+ <title>EmbarkAI Secure Wallet - iframe version 0.4.4</title>
19
19
 
20
20
  <!-- Styles will be injected by build process -->
21
21
  <style>
@@ -6262,7 +6262,7 @@ var SigningManager = class extends TokenRefreshApiClient {
6262
6262
  };
6263
6263
 
6264
6264
  // src/iframe/main.ts
6265
- var IFRAME_VERSION = "0.4.3";
6265
+ var IFRAME_VERSION = "0.4.4";
6266
6266
  var IframeWallet = class {
6267
6267
  constructor() {
6268
6268
  console.log("=".repeat(60));
package/dist/index.cjs CHANGED
@@ -13948,6 +13948,12 @@ var init_EmailNotConnectedWarning = __esm({
13948
13948
  });
13949
13949
 
13950
13950
  // src/internal/components/ManageWalletMenu/hooks/useLinkSocial.ts
13951
+ function normalizeSocialLinkError(message) {
13952
+ if (message === "X_ALREADY_LINKED") {
13953
+ return "This X account is already linked to another account";
13954
+ }
13955
+ return message;
13956
+ }
13951
13957
  function useLinkSocial() {
13952
13958
  const qc = (0, import_react_query32.useQueryClient)();
13953
13959
  const address = useSession((st) => st.address);
@@ -14007,7 +14013,7 @@ function useLinkSocial() {
14007
14013
  setPage("manage-wallet" /* MANAGE_WALLET */);
14008
14014
  } catch (e) {
14009
14015
  console.error(`[ManageWallet] Failed to link ${providerIdRaw}:`, e);
14010
- const message = e?.message || `Failed to link ${providerIdRaw}`;
14016
+ const message = normalizeSocialLinkError(e?.message || `Failed to link ${providerIdRaw}`);
14011
14017
  setAlert({ title: "Error", message });
14012
14018
  setProviderType(null);
14013
14019
  } finally {
@@ -19149,7 +19155,7 @@ var init_package = __esm({
19149
19155
  "package.json"() {
19150
19156
  package_default = {
19151
19157
  name: "@embarkai/ui-kit",
19152
- version: "0.4.3",
19158
+ version: "0.4.4",
19153
19159
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
19154
19160
  type: "module",
19155
19161
  main: "./dist/index.cjs",
package/dist/index.js CHANGED
@@ -13890,6 +13890,12 @@ var init_EmailNotConnectedWarning = __esm({
13890
13890
  // src/internal/components/ManageWalletMenu/hooks/useLinkSocial.ts
13891
13891
  import { useQueryClient as useQueryClient16 } from "@tanstack/react-query";
13892
13892
  import React6, { useEffect as useEffect31 } from "react";
13893
+ function normalizeSocialLinkError(message) {
13894
+ if (message === "X_ALREADY_LINKED") {
13895
+ return "This X account is already linked to another account";
13896
+ }
13897
+ return message;
13898
+ }
13893
13899
  function useLinkSocial() {
13894
13900
  const qc = useQueryClient16();
13895
13901
  const address = useSession((st) => st.address);
@@ -13949,7 +13955,7 @@ function useLinkSocial() {
13949
13955
  setPage("manage-wallet" /* MANAGE_WALLET */);
13950
13956
  } catch (e) {
13951
13957
  console.error(`[ManageWallet] Failed to link ${providerIdRaw}:`, e);
13952
- const message = e?.message || `Failed to link ${providerIdRaw}`;
13958
+ const message = normalizeSocialLinkError(e?.message || `Failed to link ${providerIdRaw}`);
13953
13959
  setAlert({ title: "Error", message });
13954
13960
  setProviderType(null);
13955
13961
  } finally {
@@ -19068,7 +19074,7 @@ var init_package = __esm({
19068
19074
  "package.json"() {
19069
19075
  package_default = {
19070
19076
  name: "@embarkai/ui-kit",
19071
- version: "0.4.3",
19077
+ version: "0.4.4",
19072
19078
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
19073
19079
  type: "module",
19074
19080
  main: "./dist/index.cjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embarkai/ui-kit",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",