@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.
- package/dist/{chunk-MOREUKOG.mjs → chunk-BJKWC4MG.mjs} +1 -1
- package/dist/{chunk-W6BYGZ2F.mjs → chunk-L7GL3PFM.mjs} +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/index.mjs +1 -1
- package/dist/react/ethereum.js +1 -1
- package/dist/react/ethereum.mjs +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/index.mjs +2 -2
- package/dist/react/solana.js +1 -1
- package/dist/react/solana.mjs +1 -1
- package/dist/sdk/index.mjs +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/package.json +1 -1
|
@@ -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 <
|
|
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
|
|
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
|
|
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({
|
package/dist/lib/index.mjs
CHANGED
package/dist/react/ethereum.js
CHANGED
|
@@ -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 <
|
|
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;
|
package/dist/react/ethereum.mjs
CHANGED
package/dist/react/index.js
CHANGED
|
@@ -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 <
|
|
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;
|
package/dist/react/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatPasskeyLabel,
|
|
3
3
|
resolvePasskeyMetadata
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-L7GL3PFM.mjs";
|
|
5
5
|
import "../chunk-GQKIA37O.mjs";
|
|
6
6
|
import {
|
|
7
7
|
SDKProvider,
|
|
8
8
|
useMoonKeySDK
|
|
9
|
-
} from "../chunk-
|
|
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";
|
package/dist/react/solana.js
CHANGED
|
@@ -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 <
|
|
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;
|
package/dist/react/solana.mjs
CHANGED
package/dist/sdk/index.mjs
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -804,7 +804,7 @@ interface AppearanceLogo {
|
|
|
804
804
|
align?: "left" | "center";
|
|
805
805
|
}
|
|
806
806
|
/**
|
|
807
|
-
* Full color palette. The original tokens emit `--
|
|
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 `--
|
|
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 / `--
|
|
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* `--
|
|
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/dist/types/index.d.ts
CHANGED
|
@@ -804,7 +804,7 @@ interface AppearanceLogo {
|
|
|
804
804
|
align?: "left" | "center";
|
|
805
805
|
}
|
|
806
806
|
/**
|
|
807
|
-
* Full color palette. The original tokens emit `--
|
|
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 `--
|
|
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 / `--
|
|
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* `--
|
|
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
|