@moon-x/core 0.11.0 → 0.12.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.
@@ -6,7 +6,7 @@ var useMoonKeySDK = () => {
6
6
  const sdk = useContext(SDKContext);
7
7
  if (!sdk) {
8
8
  throw new Error(
9
- "MoonKey hook called outside a <MoonKeyProvider> \u2014 wrap your app in the provider from @moon-x/react-sdk (web) or @moon-x/react-native-sdk (RN)."
9
+ "MoonKey hook called outside a <MoonXProvider> \u2014 wrap your app in the provider from @moon-x/react-sdk (web) or @moon-x/react-native-sdk (RN)."
10
10
  );
11
11
  }
12
12
  return sdk;
@@ -695,7 +695,7 @@ function resolveEvmChain({
695
695
  };
696
696
  }
697
697
  throw new Error(
698
- "No chain configured. Set `chains` (and optionally `defaultChain`) in MoonKeyProvider config, or pass an `rpcUrl` together with the transaction's `chainId`."
698
+ "No chain configured. Set `chains` (and optionally `defaultChain`) in MoonXProvider config, or pass an `rpcUrl` together with the transaction's `chainId`."
699
699
  );
700
700
  }
701
701
  async function prepareEvmSignTransaction({
package/dist/lib/index.js CHANGED
@@ -789,7 +789,7 @@ function resolveEvmChain({
789
789
  };
790
790
  }
791
791
  throw new Error(
792
- "No chain configured. Set `chains` (and optionally `defaultChain`) in MoonKeyProvider config, or pass an `rpcUrl` together with the transaction's `chainId`."
792
+ "No chain configured. Set `chains` (and optionally `defaultChain`) in MoonXProvider config, or pass an `rpcUrl` together with the transaction's `chainId`."
793
793
  );
794
794
  }
795
795
  async function prepareEvmSignTransaction({
@@ -45,7 +45,7 @@ import {
45
45
  toB64url,
46
46
  validateChainConfig,
47
47
  verifyIdToken
48
- } from "../chunk-W6BYGZ2F.mjs";
48
+ } from "../chunk-L7GL3PFM.mjs";
49
49
  import "../chunk-GQKIA37O.mjs";
50
50
  export {
51
51
  DEFAULT_AUTH_URL,
@@ -38,7 +38,7 @@ var useMoonKeySDK = () => {
38
38
  const sdk = (0, import_react.useContext)(SDKContext);
39
39
  if (!sdk) {
40
40
  throw new Error(
41
- "MoonKey hook called outside a <MoonKeyProvider> \u2014 wrap your app in the provider from @moon-x/react-sdk (web) or @moon-x/react-native-sdk (RN)."
41
+ "MoonKey hook called outside a <MoonXProvider> \u2014 wrap your app in the provider from @moon-x/react-sdk (web) or @moon-x/react-native-sdk (RN)."
42
42
  );
43
43
  }
44
44
  return sdk;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useMoonKeySDK
3
- } from "../chunk-MOREUKOG.mjs";
3
+ } from "../chunk-BJKWC4MG.mjs";
4
4
 
5
5
  // src/react/ethereum.ts
6
6
  var useSignMessage = () => {
@@ -54,7 +54,7 @@ var useMoonKeySDK = () => {
54
54
  const sdk = (0, import_react.useContext)(SDKContext);
55
55
  if (!sdk) {
56
56
  throw new Error(
57
- "MoonKey hook called outside a <MoonKeyProvider> \u2014 wrap your app in the provider from @moon-x/react-sdk (web) or @moon-x/react-native-sdk (RN)."
57
+ "MoonKey hook called outside a <MoonXProvider> \u2014 wrap your app in the provider from @moon-x/react-sdk (web) or @moon-x/react-native-sdk (RN)."
58
58
  );
59
59
  }
60
60
  return sdk;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  formatPasskeyLabel,
3
3
  resolvePasskeyMetadata
4
- } from "../chunk-W6BYGZ2F.mjs";
4
+ } from "../chunk-L7GL3PFM.mjs";
5
5
  import "../chunk-GQKIA37O.mjs";
6
6
  import {
7
7
  SDKProvider,
8
8
  useMoonKeySDK
9
- } from "../chunk-MOREUKOG.mjs";
9
+ } from "../chunk-BJKWC4MG.mjs";
10
10
 
11
11
  // src/react/use-login-with-email.ts
12
12
  import { useCallback, useEffect, useRef, useState } from "react";
@@ -35,7 +35,7 @@ var useMoonKeySDK = () => {
35
35
  const sdk = (0, import_react.useContext)(SDKContext);
36
36
  if (!sdk) {
37
37
  throw new Error(
38
- "MoonKey hook called outside a <MoonKeyProvider> \u2014 wrap your app in the provider from @moon-x/react-sdk (web) or @moon-x/react-native-sdk (RN)."
38
+ "MoonKey hook called outside a <MoonXProvider> \u2014 wrap your app in the provider from @moon-x/react-sdk (web) or @moon-x/react-native-sdk (RN)."
39
39
  );
40
40
  }
41
41
  return sdk;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useMoonKeySDK
3
- } from "../chunk-MOREUKOG.mjs";
3
+ } from "../chunk-BJKWC4MG.mjs";
4
4
 
5
5
  // src/react/solana.ts
6
6
  var useSignMessage = () => {
@@ -10,7 +10,7 @@ import {
10
10
  bs58ToBytes,
11
11
  serializeEthereumTransaction,
12
12
  toB64url
13
- } from "../chunk-W6BYGZ2F.mjs";
13
+ } from "../chunk-L7GL3PFM.mjs";
14
14
  import "../chunk-GQKIA37O.mjs";
15
15
 
16
16
  // src/sdk/interfaces.ts
@@ -804,7 +804,7 @@ interface AppearanceLogo {
804
804
  align?: "left" | "center";
805
805
  }
806
806
  /**
807
- * Full color palette. The original tokens emit `--moonkey-color-*` CSS
807
+ * Full color palette. The original tokens emit `--moonx-color-*` CSS
808
808
  * variables; the newer ones (warning/info/link/ring) emit `--moonx-color-*`.
809
809
  * Only explicitly-set tokens are emitted; unset tokens fall through to the
810
810
  * accent/background-derived defaults.
@@ -837,7 +837,7 @@ interface AppearanceColors {
837
837
  ring?: string;
838
838
  }
839
839
  /**
840
- * Border-radius scale. `sm`/`md`/`lg`/`full` emit `--moonkey-border-radius-*`;
840
+ * Border-radius scale. `sm`/`md`/`lg`/`full` emit `--moonx-border-radius-*`;
841
841
  * the granular `button`/`card`/`input` emit `--moonx-radius-*`.
842
842
  */
843
843
  interface AppearanceBorderRadius {
@@ -889,7 +889,7 @@ interface AppearanceBackdrop {
889
889
  * Per-component style override — themes an individual SDK surface (card,
890
890
  * button, input) independently of the global tokens. Each field maps to a
891
891
  * `--moonx-<component>-*` CSS variable applied on top of the global tokens, so
892
- * anything left unset falls through to the token / `--moonkey-*` defaults.
892
+ * anything left unset falls through to the token / `--moonx-*` defaults.
893
893
  */
894
894
  interface ComponentStyle {
895
895
  background?: string;
@@ -1136,7 +1136,7 @@ interface AuthProviderConfig {
1136
1136
  walletChainType?: WalletChainType;
1137
1137
  isDark?: boolean;
1138
1138
  /**
1139
- * Internal: the SDK's *resolved* `--moonkey-*` theme (palette + radius +
1139
+ * Internal: the SDK's *resolved* `--moonx-*` theme (palette + radius +
1140
1140
  * font), populated by AuthProvider from `appearance` and consumed by the
1141
1141
  * flows / ScopedContainer. Not a host input — theming is set via
1142
1142
  * `appearance`. Typed loosely since it also carries pre-resolved
@@ -804,7 +804,7 @@ interface AppearanceLogo {
804
804
  align?: "left" | "center";
805
805
  }
806
806
  /**
807
- * Full color palette. The original tokens emit `--moonkey-color-*` CSS
807
+ * Full color palette. The original tokens emit `--moonx-color-*` CSS
808
808
  * variables; the newer ones (warning/info/link/ring) emit `--moonx-color-*`.
809
809
  * Only explicitly-set tokens are emitted; unset tokens fall through to the
810
810
  * accent/background-derived defaults.
@@ -837,7 +837,7 @@ interface AppearanceColors {
837
837
  ring?: string;
838
838
  }
839
839
  /**
840
- * Border-radius scale. `sm`/`md`/`lg`/`full` emit `--moonkey-border-radius-*`;
840
+ * Border-radius scale. `sm`/`md`/`lg`/`full` emit `--moonx-border-radius-*`;
841
841
  * the granular `button`/`card`/`input` emit `--moonx-radius-*`.
842
842
  */
843
843
  interface AppearanceBorderRadius {
@@ -889,7 +889,7 @@ interface AppearanceBackdrop {
889
889
  * Per-component style override — themes an individual SDK surface (card,
890
890
  * button, input) independently of the global tokens. Each field maps to a
891
891
  * `--moonx-<component>-*` CSS variable applied on top of the global tokens, so
892
- * anything left unset falls through to the token / `--moonkey-*` defaults.
892
+ * anything left unset falls through to the token / `--moonx-*` defaults.
893
893
  */
894
894
  interface ComponentStyle {
895
895
  background?: string;
@@ -1136,7 +1136,7 @@ interface AuthProviderConfig {
1136
1136
  walletChainType?: WalletChainType;
1137
1137
  isDark?: boolean;
1138
1138
  /**
1139
- * Internal: the SDK's *resolved* `--moonkey-*` theme (palette + radius +
1139
+ * Internal: the SDK's *resolved* `--moonx-*` theme (palette + radius +
1140
1140
  * font), populated by AuthProvider from `appearance` and consumed by the
1141
1141
  * flows / ScopedContainer. Not a host input — theming is set via
1142
1142
  * `appearance`. Typed loosely since it also carries pre-resolved
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moon-x/core",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "license": "UNLICENSED",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",