@moontra/moonui-pro 2.37.10 → 2.37.12
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/cdn/index.global.js +85 -85
- package/dist/cdn/index.global.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2187,11 +2187,12 @@ function MoonUIAuthProvider({ children }) {
|
|
|
2187
2187
|
lastFetchTime = now;
|
|
2188
2188
|
const isProduction = false;
|
|
2189
2189
|
const isDevelopment = true;
|
|
2190
|
+
const isLocalhost = typeof window !== "undefined" ? window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname.startsWith("192.168.") || window.location.hostname.startsWith("10.") : false;
|
|
2190
2191
|
if (isDevelopment) {
|
|
2191
2192
|
let response;
|
|
2192
2193
|
const authServerUrl = typeof window !== "undefined" ? process.env.NEXT_PUBLIC_MOONUI_AUTH_SERVER || "http://localhost:7878" : "http://localhost:7878";
|
|
2193
2194
|
try {
|
|
2194
|
-
console.log("[MoonUI Auth]
|
|
2195
|
+
console.log("[MoonUI Auth] Development mode - checking CLI auth server at:", authServerUrl);
|
|
2195
2196
|
response = await fetch(`${authServerUrl}/validate`, {
|
|
2196
2197
|
method: "GET",
|
|
2197
2198
|
headers: {
|
|
@@ -2226,7 +2227,7 @@ function MoonUIAuthProvider({ children }) {
|
|
|
2226
2227
|
console.log('[MoonUI Auth] Auth server not available in development. Run "moonui dev" to enable Pro features.');
|
|
2227
2228
|
}
|
|
2228
2229
|
}
|
|
2229
|
-
if (isProduction
|
|
2230
|
+
if (isProduction) ;
|
|
2230
2231
|
const freeState = {
|
|
2231
2232
|
isLoading: false,
|
|
2232
2233
|
hasProAccess: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.37.
|
|
3
|
+
"version": "2.37.12",
|
|
4
4
|
"description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.mjs",
|