@embarkai/ui-kit 0.2.3 → 0.2.5

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.
package/dist/index.js CHANGED
@@ -7676,7 +7676,7 @@ async function linkPasskeyWithWebAuthn(optionsOverride) {
7676
7676
  const challenge = new Uint8Array(32);
7677
7677
  crypto.getRandomValues(challenge);
7678
7678
  publicKeyOptions = {
7679
- rp: { name: window.location.hostname || "Mbark Wallet" },
7679
+ rp: { name: window.location.hostname || "EmbarkAI Wallet" },
7680
7680
  user: {
7681
7681
  id: new TextEncoder().encode(userId),
7682
7682
  name: userId,
@@ -7691,7 +7691,7 @@ async function linkPasskeyWithWebAuthn(optionsOverride) {
7691
7691
  }
7692
7692
  try {
7693
7693
  const ts = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-");
7694
- const friendlyDisplay = `Mbark Wallet (${ts})`;
7694
+ const friendlyDisplay = `EmbarkAI Wallet (${ts})`;
7695
7695
  const friendlyName = `lumia-passport.${ts}`;
7696
7696
  const originalUser = publicKeyOptions.user;
7697
7697
  publicKeyOptions = {
@@ -7881,7 +7881,7 @@ var init_cloudStorage = __esm({
7881
7881
  return this.performUpload(metadata, content);
7882
7882
  }
7883
7883
  async uploadToAppFolder(fileName, content) {
7884
- const folderName = "Mbark Wallet Backups";
7884
+ const folderName = "EmbarkAI Wallet Backups";
7885
7885
  const folderId = await this.findOrCreateFolder(folderName);
7886
7886
  const metadata = {
7887
7887
  name: fileName,
@@ -15470,7 +15470,7 @@ var init_package = __esm({
15470
15470
  "package.json"() {
15471
15471
  package_default = {
15472
15472
  name: "@embarkai/ui-kit",
15473
- version: "0.2.3",
15473
+ version: "0.2.5",
15474
15474
  description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
15475
15475
  type: "module",
15476
15476
  main: "./dist/index.cjs",
@@ -15627,7 +15627,7 @@ function Footer() {
15627
15627
  onClick: () => address && window.open(`${getExplorerUrl()}/address/${address}`, "_blank"),
15628
15628
  children: [
15629
15629
  /* @__PURE__ */ jsx88(ChainIcon, { className: "flex-none w-6 h-6" }),
15630
- /* @__PURE__ */ jsx88("span", { className: "text-xs font-bold", children: chainConfig.name || "Mbark Wallet" })
15630
+ /* @__PURE__ */ jsx88("span", { className: "text-xs font-bold", children: chainConfig.name || "EmbarkAI Wallet" })
15631
15631
  ]
15632
15632
  }
15633
15633
  ),
@@ -15756,7 +15756,7 @@ function Header() {
15756
15756
  "text-[14px] leading-4 truncate max-w-[144px] font-medium",
15757
15757
  "text-ellipsis overflow-hidden whitespace-nowrap"
15758
15758
  ),
15759
- children: displayName || config.current?.ui?.title || "Mbark"
15759
+ children: displayName || config.current?.ui?.title || "EmbarkAI"
15760
15760
  }
15761
15761
  ),
15762
15762
  /* @__PURE__ */ jsx89(KYCStatus, {})
@@ -18937,7 +18937,7 @@ import {
18937
18937
  walletConnectWallet
18938
18938
  } from "@rainbow-me/rainbowkit/wallets";
18939
18939
  import { arbitrum, avalanche, base, bsc, mainnet, optimism, polygon, zora } from "wagmi/chains";
18940
- var getProjectId, WALLET_MAP, createRainbowConfig, rainbowConfig, rainbowTheme;
18940
+ var getProjectId, WALLET_MAP, createRainbowConfig, rainbowTheme;
18941
18941
  var init_rainbowkit = __esm({
18942
18942
  "src/config/rainbowkit.ts"() {
18943
18943
  getProjectId = (configProjectId) => {
@@ -18956,7 +18956,7 @@ var init_rainbowkit = __esm({
18956
18956
  createRainbowConfig = (options) => {
18957
18957
  const opts = typeof options === "string" ? { projectId: options } : options || {};
18958
18958
  const config = {
18959
- appName: "Mbark Wallet",
18959
+ appName: "EmbarkAI Wallet",
18960
18960
  projectId: getProjectId(opts.projectId),
18961
18961
  chains: [lumiaMainnetChain2, lumiaTestnetChain2, mainnet, polygon, bsc, arbitrum, optimism, avalanche, base, zora],
18962
18962
  ssr: false
@@ -18970,7 +18970,6 @@ var init_rainbowkit = __esm({
18970
18970
  }
18971
18971
  return getDefaultConfig(config);
18972
18972
  };
18973
- rainbowConfig = createRainbowConfig();
18974
18973
  rainbowTheme = {
18975
18974
  lightMode: {
18976
18975
  colors: {
@@ -19171,7 +19170,7 @@ import { Fragment as Fragment40, jsx as jsx94 } from "react/jsx-runtime";
19171
19170
  function RainbowKitProvider({ children }) {
19172
19171
  const config = useProviderConfig().config;
19173
19172
  const colorMode = useLayoutStore((st) => st.colorMode);
19174
- const rainbowConfig2 = useMemo9(
19173
+ const rainbowConfig = useMemo9(
19175
19174
  () => createRainbowConfig({
19176
19175
  projectId: config.current?.wallet?.walletConnectProjectId,
19177
19176
  allowedWallets: config.current?.wallet?.allowedWallets
@@ -19193,7 +19192,7 @@ function RainbowKitProvider({ children }) {
19193
19192
  };
19194
19193
  }, [colorMode]);
19195
19194
  if (!config.current?.wallet?.enabled) return /* @__PURE__ */ jsx94(Fragment40, { children });
19196
- return /* @__PURE__ */ jsx94(WagmiProvider, { config: rainbowConfig2, children: /* @__PURE__ */ jsx94(NativeRainbowKitProvider, { theme: customTheme, modalSize: "compact", showRecentTransactions: true, children }) });
19195
+ return /* @__PURE__ */ jsx94(WagmiProvider, { config: rainbowConfig, children: /* @__PURE__ */ jsx94(NativeRainbowKitProvider, { theme: customTheme, modalSize: "compact", showRecentTransactions: true, children }) });
19197
19196
  }
19198
19197
  var init_RainbowKitContext = __esm({
19199
19198
  "src/context/RainbowKitContext.tsx"() {
@@ -19281,9 +19280,6 @@ import { jsx as jsx96 } from "react/jsx-runtime";
19281
19280
  function Provider(props) {
19282
19281
  const { children, projectId, initialConfig = {}, callbacks } = props;
19283
19282
  const callbacksRef = useRef15(callbacks);
19284
- useEffect38(() => {
19285
- callbacksRef.current = callbacks;
19286
- }, [callbacks]);
19287
19283
  useEffect38(() => notifyNoProjetctId(projectId), [projectId]);
19288
19284
  const config = useRef15(merge3({}, DEFAULT_PROVIDER_CONFIG, { projectId }, initialConfig));
19289
19285
  const updateConfig = useCallback24((updates) => {