@moon-x/react-sdk 0.10.0 → 0.11.0

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/README.md CHANGED
@@ -19,7 +19,7 @@ import "@moon-x/react-sdk/style.css";
19
19
  export default function App() {
20
20
  return (
21
21
  <MoonXProvider
22
- publishableKey={process.env.NEXT_PUBLIC_MOONKEY_PUBLISHABLE_KEY!}
22
+ publishableKey={process.env.NEXT_PUBLIC_MOONX_PUBLISHABLE_KEY!}
23
23
  config={{
24
24
  appearance: {
25
25
  accentColor: "#6366f1",
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { LoginWithEmailState, PasskeyStatusEntry, RegisterPasskeyResult, UseAddPasskeyResult, UseEphemeralSignerResult, UseLoginWithEmailCallbacks, UsePasskeyStatusResult, UseRemovePasskeyResult, useAddPasskey, useEphemeralSigner, useLoginWithEmail, usePasskeyStatus, useRegisterPasskey, useRemovePasskey, useUser } from '@moon-x/core/react';
2
- import { WalletListEntry, LogoutResponse, EmailOtpFlowState, AuthAppearance, SendEmailOtpResponse, PrefillConfig, WalletChainType, PasskeyEnrollConfig, SignMessageConfig, ExportKeyConfig, SignTransactionConfig, SendTransactionConfig, ChainConfigItem, Wallet, FlexibleTheme, DisplayMode, AppearanceModeTokens } from '@moon-x/core/types';
2
+ import { WalletListEntry, AuthAppearance, PrefillConfig, WalletChainType, PasskeyEnrollConfig, SignMessageConfig, ExportKeyConfig, SignTransactionConfig, SendTransactionConfig, ChainConfigItem, LogoutResponse, EmailOtpFlowState, SendEmailOtpResponse, Wallet, FlexibleTheme, DisplayMode, AppearanceModeTokens } from '@moon-x/core/types';
3
3
  export { AppearanceBackdrop, AppearanceBorderRadius, AppearanceCard, AppearanceColors, AppearanceComponents, AppearanceLogo, AppearanceModeTokens, AppearanceTypography, AuthAppearance, Chain, ChainConfigItem, ChainEntry, ComponentStyle, DisplayMode, EphemeralSigner, EphemeralSignerChain, EphemeralSignerScheme, EphemeralSignerWallet, EvmChainEntry, Factor, IdpProvider, ListEphemeralSignersResult, Network, ProvisionEphemeralSignerParams, ProvisionEphemeralSignerResult, PublicEthereumWallet, PublicWallet, RevokeEphemeralSignerParams, SolanaChainEntry, WalletConnectConfig, WalletListEntry } from '@moon-x/core/types';
4
4
  import React$1, { ReactNode } from 'react';
5
5
  export { e as ethereum } from './ethereum-lovLlqC2.mjs';
@@ -168,7 +168,7 @@ interface MoonXProviderProps$1 {
168
168
  children: React.ReactNode;
169
169
  onClose?: () => void;
170
170
  }
171
- interface MoonKeyInstance {
171
+ interface MoonXInstance {
172
172
  ready: boolean;
173
173
  isAuthenticated: boolean;
174
174
  user: any | null;
@@ -279,7 +279,7 @@ interface WalletConfig {
279
279
  }
280
280
  type WalletType = "solana" | "ethereum";
281
281
 
282
- declare const useMoonX: () => MoonKeyInstance;
282
+ declare const useMoonX: () => MoonXInstance;
283
283
 
284
284
  interface UseOAuthCompletionOptions {
285
285
  onSuccess?: (data: any) => void;
@@ -296,10 +296,10 @@ interface MoonXProviderProps {
296
296
  declare const MoonXProvider: React$1.FC<MoonXProviderProps>;
297
297
 
298
298
  /**
299
- * MoonKey Theme - matches CSS variables from styles.css:66-95
299
+ * MoonX Theme - matches CSS variables from styles.css:66-95
300
300
  * Only customizable properties are included (colors, border-radius, font-family)
301
301
  */
302
- interface MoonKeyTheme {
302
+ interface MoonXTheme {
303
303
  colors: {
304
304
  accent: string;
305
305
  accentForeground: string;
@@ -330,13 +330,13 @@ interface MoonKeyTheme {
330
330
  };
331
331
  fontFamily: string;
332
332
  }
333
- declare const lightTheme: MoonKeyTheme;
334
- declare const darkTheme: MoonKeyTheme;
333
+ declare const lightTheme: MoonXTheme;
334
+ declare const darkTheme: MoonXTheme;
335
335
  /**
336
- * Converts MoonKeyTheme to CSS custom properties
336
+ * Converts MoonXTheme to CSS custom properties
337
337
  * Maps ONLY to the 25 variables defined in styles.css:66-95
338
338
  */
339
- declare function themeToCSS(theme: MoonKeyTheme): React.CSSProperties;
339
+ declare function themeToCSS(theme: MoonXTheme): React.CSSProperties;
340
340
 
341
341
  /**
342
342
  * Decide whether a CSS color reads as "dark" from its perceived luminance.
@@ -357,7 +357,7 @@ declare function isColorDark(color: string): boolean | undefined;
357
357
  * - otherwise (omitted, or "auto" with no `matchMedia`) — inferred from the
358
358
  * background color's luminance.
359
359
  */
360
- declare function isDarkMode(theme?: Partial<MoonKeyTheme> | FlexibleTheme, displayMode?: DisplayMode, backgroundColor?: string): boolean;
360
+ declare function isDarkMode(theme?: Partial<MoonXTheme> | FlexibleTheme, displayMode?: DisplayMode, backgroundColor?: string): boolean;
361
361
 
362
362
  declare function isDarkAppearance(appearance: AuthAppearance | undefined): boolean;
363
363
  /** Return a shallow copy of `src` containing only defined, non-empty values. */
@@ -386,7 +386,7 @@ declare function resolveLogo(logo: AuthAppearance["logo"], isDark: boolean): {
386
386
  * Merge priority (lowest → highest): accent/background derivations →
387
387
  * `appearance.colors` + per-mode (`appearance.light` / `dark`).
388
388
  */
389
- declare function appearanceToTheme(appearance: AuthAppearance | undefined, isDark?: boolean): Partial<MoonKeyTheme>;
389
+ declare function appearanceToTheme(appearance: AuthAppearance | undefined, isDark?: boolean): Partial<MoonXTheme>;
390
390
  /**
391
391
  * Derives the newer `--moonx-*` CSS variables (warning/info/link/ring colors,
392
392
  * granular radii, typography scale, card and backdrop tokens) from an
@@ -441,4 +441,4 @@ declare const getReconnectionInfo: (error: any) => {
441
441
  walletAddress?: string;
442
442
  } | null;
443
443
 
444
- export { type AttachOAuthState, type BaseConnectedEthereumWallet, type BaseConnectedSolanaWallet, type ConnectWalletCallbacks, type ConnectWalletParams, type DetachOAuthResult, type DetachOAuthState, type MoonKeyInstance, type MoonKeyTheme, type MoonXConfig, MoonXProvider, type MoonXProviderProps$1 as MoonXProviderProps, type OAuthAttachResult, type OAuthProvider, type OAuthState, type OAuthUser, SessionExpiredError, SessionNotFoundError, type UseAttachOAuth, type UseAttachOAuthCallbacks, type UseConnectWallet, type UseDetachOAuth, type UseDetachOAuthCallbacks, type UseLoginWithOAuth, type UseLoginWithOAuthCallbacks, type WalletConfig, type WalletInstance, type WalletType, appearanceToComponentVars, appearanceToCssVars, appearanceToMoonxVars, appearanceToTheme, darkTheme, definedOnly, getReconnectionInfo, isColorDark, isDarkAppearance, isDarkMode, lightTheme, requiresReconnection, resolveAppearanceTokens, resolveFontUrls, resolveLogo, themeToCSS, useAttachOAuth, useConnectWallet, useDetachOAuth, useLoginWithOAuth, useMoonX, useOAuthCompletion };
444
+ export { type AttachOAuthState, type BaseConnectedEthereumWallet, type BaseConnectedSolanaWallet, type ConnectWalletCallbacks, type ConnectWalletParams, type DetachOAuthResult, type DetachOAuthState, type MoonXConfig, type MoonXInstance, MoonXProvider, type MoonXProviderProps$1 as MoonXProviderProps, type MoonXTheme, type OAuthAttachResult, type OAuthProvider, type OAuthState, type OAuthUser, SessionExpiredError, SessionNotFoundError, type UseAttachOAuth, type UseAttachOAuthCallbacks, type UseConnectWallet, type UseDetachOAuth, type UseDetachOAuthCallbacks, type UseLoginWithOAuth, type UseLoginWithOAuthCallbacks, type WalletConfig, type WalletInstance, type WalletType, appearanceToComponentVars, appearanceToCssVars, appearanceToMoonxVars, appearanceToTheme, darkTheme, definedOnly, getReconnectionInfo, isColorDark, isDarkAppearance, isDarkMode, lightTheme, requiresReconnection, resolveAppearanceTokens, resolveFontUrls, resolveLogo, themeToCSS, useAttachOAuth, useConnectWallet, useDetachOAuth, useLoginWithOAuth, useMoonX, useOAuthCompletion };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { LoginWithEmailState, PasskeyStatusEntry, RegisterPasskeyResult, UseAddPasskeyResult, UseEphemeralSignerResult, UseLoginWithEmailCallbacks, UsePasskeyStatusResult, UseRemovePasskeyResult, useAddPasskey, useEphemeralSigner, useLoginWithEmail, usePasskeyStatus, useRegisterPasskey, useRemovePasskey, useUser } from '@moon-x/core/react';
2
- import { WalletListEntry, LogoutResponse, EmailOtpFlowState, AuthAppearance, SendEmailOtpResponse, PrefillConfig, WalletChainType, PasskeyEnrollConfig, SignMessageConfig, ExportKeyConfig, SignTransactionConfig, SendTransactionConfig, ChainConfigItem, Wallet, FlexibleTheme, DisplayMode, AppearanceModeTokens } from '@moon-x/core/types';
2
+ import { WalletListEntry, AuthAppearance, PrefillConfig, WalletChainType, PasskeyEnrollConfig, SignMessageConfig, ExportKeyConfig, SignTransactionConfig, SendTransactionConfig, ChainConfigItem, LogoutResponse, EmailOtpFlowState, SendEmailOtpResponse, Wallet, FlexibleTheme, DisplayMode, AppearanceModeTokens } from '@moon-x/core/types';
3
3
  export { AppearanceBackdrop, AppearanceBorderRadius, AppearanceCard, AppearanceColors, AppearanceComponents, AppearanceLogo, AppearanceModeTokens, AppearanceTypography, AuthAppearance, Chain, ChainConfigItem, ChainEntry, ComponentStyle, DisplayMode, EphemeralSigner, EphemeralSignerChain, EphemeralSignerScheme, EphemeralSignerWallet, EvmChainEntry, Factor, IdpProvider, ListEphemeralSignersResult, Network, ProvisionEphemeralSignerParams, ProvisionEphemeralSignerResult, PublicEthereumWallet, PublicWallet, RevokeEphemeralSignerParams, SolanaChainEntry, WalletConnectConfig, WalletListEntry } from '@moon-x/core/types';
4
4
  import React$1, { ReactNode } from 'react';
5
5
  export { e as ethereum } from './ethereum-Eg3cJKce.js';
@@ -168,7 +168,7 @@ interface MoonXProviderProps$1 {
168
168
  children: React.ReactNode;
169
169
  onClose?: () => void;
170
170
  }
171
- interface MoonKeyInstance {
171
+ interface MoonXInstance {
172
172
  ready: boolean;
173
173
  isAuthenticated: boolean;
174
174
  user: any | null;
@@ -279,7 +279,7 @@ interface WalletConfig {
279
279
  }
280
280
  type WalletType = "solana" | "ethereum";
281
281
 
282
- declare const useMoonX: () => MoonKeyInstance;
282
+ declare const useMoonX: () => MoonXInstance;
283
283
 
284
284
  interface UseOAuthCompletionOptions {
285
285
  onSuccess?: (data: any) => void;
@@ -296,10 +296,10 @@ interface MoonXProviderProps {
296
296
  declare const MoonXProvider: React$1.FC<MoonXProviderProps>;
297
297
 
298
298
  /**
299
- * MoonKey Theme - matches CSS variables from styles.css:66-95
299
+ * MoonX Theme - matches CSS variables from styles.css:66-95
300
300
  * Only customizable properties are included (colors, border-radius, font-family)
301
301
  */
302
- interface MoonKeyTheme {
302
+ interface MoonXTheme {
303
303
  colors: {
304
304
  accent: string;
305
305
  accentForeground: string;
@@ -330,13 +330,13 @@ interface MoonKeyTheme {
330
330
  };
331
331
  fontFamily: string;
332
332
  }
333
- declare const lightTheme: MoonKeyTheme;
334
- declare const darkTheme: MoonKeyTheme;
333
+ declare const lightTheme: MoonXTheme;
334
+ declare const darkTheme: MoonXTheme;
335
335
  /**
336
- * Converts MoonKeyTheme to CSS custom properties
336
+ * Converts MoonXTheme to CSS custom properties
337
337
  * Maps ONLY to the 25 variables defined in styles.css:66-95
338
338
  */
339
- declare function themeToCSS(theme: MoonKeyTheme): React.CSSProperties;
339
+ declare function themeToCSS(theme: MoonXTheme): React.CSSProperties;
340
340
 
341
341
  /**
342
342
  * Decide whether a CSS color reads as "dark" from its perceived luminance.
@@ -357,7 +357,7 @@ declare function isColorDark(color: string): boolean | undefined;
357
357
  * - otherwise (omitted, or "auto" with no `matchMedia`) — inferred from the
358
358
  * background color's luminance.
359
359
  */
360
- declare function isDarkMode(theme?: Partial<MoonKeyTheme> | FlexibleTheme, displayMode?: DisplayMode, backgroundColor?: string): boolean;
360
+ declare function isDarkMode(theme?: Partial<MoonXTheme> | FlexibleTheme, displayMode?: DisplayMode, backgroundColor?: string): boolean;
361
361
 
362
362
  declare function isDarkAppearance(appearance: AuthAppearance | undefined): boolean;
363
363
  /** Return a shallow copy of `src` containing only defined, non-empty values. */
@@ -386,7 +386,7 @@ declare function resolveLogo(logo: AuthAppearance["logo"], isDark: boolean): {
386
386
  * Merge priority (lowest → highest): accent/background derivations →
387
387
  * `appearance.colors` + per-mode (`appearance.light` / `dark`).
388
388
  */
389
- declare function appearanceToTheme(appearance: AuthAppearance | undefined, isDark?: boolean): Partial<MoonKeyTheme>;
389
+ declare function appearanceToTheme(appearance: AuthAppearance | undefined, isDark?: boolean): Partial<MoonXTheme>;
390
390
  /**
391
391
  * Derives the newer `--moonx-*` CSS variables (warning/info/link/ring colors,
392
392
  * granular radii, typography scale, card and backdrop tokens) from an
@@ -441,4 +441,4 @@ declare const getReconnectionInfo: (error: any) => {
441
441
  walletAddress?: string;
442
442
  } | null;
443
443
 
444
- export { type AttachOAuthState, type BaseConnectedEthereumWallet, type BaseConnectedSolanaWallet, type ConnectWalletCallbacks, type ConnectWalletParams, type DetachOAuthResult, type DetachOAuthState, type MoonKeyInstance, type MoonKeyTheme, type MoonXConfig, MoonXProvider, type MoonXProviderProps$1 as MoonXProviderProps, type OAuthAttachResult, type OAuthProvider, type OAuthState, type OAuthUser, SessionExpiredError, SessionNotFoundError, type UseAttachOAuth, type UseAttachOAuthCallbacks, type UseConnectWallet, type UseDetachOAuth, type UseDetachOAuthCallbacks, type UseLoginWithOAuth, type UseLoginWithOAuthCallbacks, type WalletConfig, type WalletInstance, type WalletType, appearanceToComponentVars, appearanceToCssVars, appearanceToMoonxVars, appearanceToTheme, darkTheme, definedOnly, getReconnectionInfo, isColorDark, isDarkAppearance, isDarkMode, lightTheme, requiresReconnection, resolveAppearanceTokens, resolveFontUrls, resolveLogo, themeToCSS, useAttachOAuth, useConnectWallet, useDetachOAuth, useLoginWithOAuth, useMoonX, useOAuthCompletion };
444
+ export { type AttachOAuthState, type BaseConnectedEthereumWallet, type BaseConnectedSolanaWallet, type ConnectWalletCallbacks, type ConnectWalletParams, type DetachOAuthResult, type DetachOAuthState, type MoonXConfig, type MoonXInstance, MoonXProvider, type MoonXProviderProps$1 as MoonXProviderProps, type MoonXTheme, type OAuthAttachResult, type OAuthProvider, type OAuthState, type OAuthUser, SessionExpiredError, SessionNotFoundError, type UseAttachOAuth, type UseAttachOAuthCallbacks, type UseConnectWallet, type UseDetachOAuth, type UseDetachOAuthCallbacks, type UseLoginWithOAuth, type UseLoginWithOAuthCallbacks, type WalletConfig, type WalletInstance, type WalletType, appearanceToComponentVars, appearanceToCssVars, appearanceToMoonxVars, appearanceToTheme, darkTheme, definedOnly, getReconnectionInfo, isColorDark, isDarkAppearance, isDarkMode, lightTheme, requiresReconnection, resolveAppearanceTokens, resolveFontUrls, resolveLogo, themeToCSS, useAttachOAuth, useConnectWallet, useDetachOAuth, useLoginWithOAuth, useMoonX, useOAuthCompletion };
package/dist/index.js CHANGED
@@ -950,7 +950,7 @@ function useLoginWithOAuth() {
950
950
  initOAuth: initOAuth
951
951
  };
952
952
  }
953
- // src/hooks/use-moonkey.ts
953
+ // src/hooks/use-moonx.ts
954
954
  var useMoonX = function useMoonX() {
955
955
  var coreSDK = _chunkSPXMMQ7Zjs.useAuthSDK.call(void 0);
956
956
  return {
@@ -1253,7 +1253,7 @@ var buildUrl = function buildUrl(baseUrl, sdkConfig, enableCaptcha, captchaSitek
1253
1253
  }, enableCaptcha, captchaSitekey);
1254
1254
  };
1255
1255
  // src/lib/id-token-storage.ts
1256
- var ID_TOKEN_KEY = "moonkey:id_token";
1256
+ var ID_TOKEN_KEY = "moonx:id_token";
1257
1257
  var idTokenStorage = {
1258
1258
  /**
1259
1259
  * Store ID token in localStorage
@@ -7977,7 +7977,7 @@ var ExportKey = function ExportKey(param) {
7977
7977
  allow: "clipboard-write",
7978
7978
  style: {
7979
7979
  // Match the sibling content width (never-share warning, wallet
7980
- // box) — both sit inside `.moonkey-flow-content`'s 0.5rem inline
7980
+ // box) — both sit inside `.moonx-flow-content`'s 0.5rem inline
7981
7981
  // padding. A previous `calc(100% + 1rem)` + negative margins
7982
7982
  // full-bled the iframe into that padding, so the revealed key
7983
7983
  // rendered ~1rem wider than the warning above it.
@@ -23976,7 +23976,7 @@ var AuthProvider = function AuthProvider(param) {
23976
23976
  crossorigin: false
23977
23977
  },
23978
23978
  {
23979
- origin: _utils.getIframeOrigin.call(void 0, _utils.getMoonKeyApiUrl.call(void 0)),
23979
+ origin: _utils.getIframeOrigin.call(void 0, _utils.getMoonXApiUrl.call(void 0)),
23980
23980
  crossorigin: true
23981
23981
  }
23982
23982
  ].filter(function(t) {
@@ -24880,7 +24880,7 @@ var AuthProvider = function AuthProvider(param) {
24880
24880
  // src/wallets/walletconnect-client.ts
24881
24881
  var setWalletConnectClient = function setWalletConnectClient(client) {
24882
24882
  if (typeof window !== "undefined") {
24883
- window.__MOONKEY_WALLETCONNECT_CLIENT__ = client;
24883
+ window.__MOONX_WALLETCONNECT_CLIENT__ = client;
24884
24884
  }
24885
24885
  };
24886
24886
  // src/provider.tsx
@@ -24888,7 +24888,7 @@ var WalletConnectContext = _react3.createContext.call(void 0, {
24888
24888
  client: null,
24889
24889
  isInitializing: false
24890
24890
  });
24891
- var MoonKeyContext = _react3.createContext.call(void 0, null);
24891
+ var MoonXContext = _react3.createContext.call(void 0, null);
24892
24892
  var MoonXProvider = function MoonXProvider(param) {
24893
24893
  var publishableKey = param.publishableKey, embeddableId = param.embeddableId, config = param.config, children = param.children;
24894
24894
  if (_optionalChain([
package/dist/index.mjs CHANGED
@@ -821,7 +821,7 @@ function useLoginWithOAuth() {
821
821
  initOAuth: initOAuth
822
822
  };
823
823
  }
824
- // src/hooks/use-moonkey.ts
824
+ // src/hooks/use-moonx.ts
825
825
  var useMoonX = function useMoonX() {
826
826
  var coreSDK = useAuthSDK();
827
827
  return {
@@ -850,7 +850,7 @@ var useMoonX = function useMoonX() {
850
850
  };
851
851
  };
852
852
  // src/components/auth-provider.tsx
853
- import { getIframeOrigin as getIframeOrigin2, getIframeUrl as getIframeUrl3, getMoonKeyApiUrl, PostMessageClient as PostMessageClient10, PostMessageMethod as PostMessageMethod28, PostMessageType as PostMessageType29 } from "@moon-x/core/utils";
853
+ import { getIframeOrigin as getIframeOrigin2, getIframeUrl as getIframeUrl3, getMoonXApiUrl, PostMessageClient as PostMessageClient10, PostMessageMethod as PostMessageMethod28, PostMessageType as PostMessageType29 } from "@moon-x/core/utils";
854
854
  import { useCallback as useCallback11, useEffect as useEffect36, useMemo as useMemo4, useRef as useRef18, useState as useState52 } from "react";
855
855
  import { createPortal as createPortal2 } from "react-dom";
856
856
  // src/hooks/use-close-iframe.ts
@@ -1063,7 +1063,7 @@ var buildUrl = function buildUrl(baseUrl, sdkConfig, enableCaptcha, captchaSitek
1063
1063
  }, enableCaptcha, captchaSitekey);
1064
1064
  };
1065
1065
  // src/lib/id-token-storage.ts
1066
- var ID_TOKEN_KEY = "moonkey:id_token";
1066
+ var ID_TOKEN_KEY = "moonx:id_token";
1067
1067
  var idTokenStorage = {
1068
1068
  /**
1069
1069
  * Store ID token in localStorage
@@ -6284,7 +6284,7 @@ var ExportKey = function ExportKey(param) {
6284
6284
  allow: "clipboard-write",
6285
6285
  style: {
6286
6286
  // Match the sibling content width (never-share warning, wallet
6287
- // box) — both sit inside `.moonkey-flow-content`'s 0.5rem inline
6287
+ // box) — both sit inside `.moonx-flow-content`'s 0.5rem inline
6288
6288
  // padding. A previous `calc(100% + 1rem)` + negative margins
6289
6289
  // full-bled the iframe into that padding, so the revealed key
6290
6290
  // rendered ~1rem wider than the warning above it.
@@ -17838,7 +17838,7 @@ var AuthProvider = function AuthProvider(param) {
17838
17838
  crossorigin: false
17839
17839
  },
17840
17840
  {
17841
- origin: getIframeOrigin2(getMoonKeyApiUrl()),
17841
+ origin: getIframeOrigin2(getMoonXApiUrl()),
17842
17842
  crossorigin: true
17843
17843
  }
17844
17844
  ].filter(function(t) {
@@ -18609,7 +18609,7 @@ import { validateChainConfig } from "@moon-x/core/lib";
18609
18609
  // src/wallets/walletconnect-client.ts
18610
18610
  var setWalletConnectClient = function setWalletConnectClient(client) {
18611
18611
  if (typeof window !== "undefined") {
18612
- window.__MOONKEY_WALLETCONNECT_CLIENT__ = client;
18612
+ window.__MOONX_WALLETCONNECT_CLIENT__ = client;
18613
18613
  }
18614
18614
  };
18615
18615
  // src/provider.tsx
@@ -18618,7 +18618,7 @@ var WalletConnectContext = createContext({
18618
18618
  client: null,
18619
18619
  isInitializing: false
18620
18620
  });
18621
- var MoonKeyContext = createContext(null);
18621
+ var MoonXContext = createContext(null);
18622
18622
  var MoonXProvider = function MoonXProvider(param) {
18623
18623
  var publishableKey = param.publishableKey, embeddableId = param.embeddableId, config = param.config, children = param.children;
18624
18624
  var _config_walletConnect, _config_emailConfig, _config_emailConfig1, _config_emailConfig2, _config_emailConfig3, _config_emailConfig4;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moon-x/react-sdk",
3
- "version": "0.10.0",
4
- "description": "React authentication hooks and components for MoonKey",
3
+ "version": "0.11.0",
4
+ "description": "React authentication hooks and components for MoonX",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",
@@ -52,7 +52,7 @@
52
52
  "tweetnacl": "1.0.3",
53
53
  "viem": "^2.38.2",
54
54
  "wagmi": "^2.18.1",
55
- "@moon-x/core": "0.12.0"
55
+ "@moon-x/core": "0.13.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "tsup": "^8.0.0",