@moontra/moonui-pro 2.32.0 → 2.32.3

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.mjs CHANGED
@@ -2081,7 +2081,7 @@ async function getAuthToken() {
2081
2081
  return browserToken;
2082
2082
  }
2083
2083
  }
2084
- return process.env.NEXT_PUBLIC_MOONUI_AUTH_TOKEN || process.env.MOONUI_LICENSE_KEY || null;
2084
+ return process.env.NEXT_PUBLIC_MOONUI_AUTH_TOKEN || process.env.NEXT_PUBLIC_MOONUI_LICENSE_KEY || null;
2085
2085
  }
2086
2086
  async function validateLicense() {
2087
2087
  const token = await getAuthToken();
@@ -2136,12 +2136,14 @@ async function validateLicense() {
2136
2136
  });
2137
2137
  }
2138
2138
  } catch (error) {
2139
+ console.error("[MoonUI Pro] Network error during license validation:", error);
2139
2140
  if (typeof window !== "undefined") {
2140
2141
  const cached = localStorage.getItem(CACHE_KEY);
2141
2142
  if (cached) {
2142
2143
  const cacheData = JSON.parse(cached);
2143
2144
  const now = Date.now();
2144
2145
  if (now - cacheData.timestamp < OFFLINE_GRACE_PERIOD) {
2146
+ console.log("[MoonUI Pro] Development: Using cached access during network error");
2145
2147
  updateGlobalState({
2146
2148
  hasProAccess: cacheData.valid && cacheData.hasLifetimeAccess,
2147
2149
  isAuthenticated: cacheData.valid,
@@ -2156,6 +2158,7 @@ async function validateLicense() {
2156
2158
  }
2157
2159
  }
2158
2160
  }
2161
+ console.log("[MoonUI Pro] Denying access due to network error (production security)");
2159
2162
  updateGlobalState({
2160
2163
  hasProAccess: false,
2161
2164
  isAuthenticated: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.32.0",
3
+ "version": "2.32.3",
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",
@@ -81,6 +81,7 @@
81
81
  "react-dom": ">=18.0.0 || ^19.0.0"
82
82
  },
83
83
  "dependencies": {
84
+ "@moontra/moonui-pro": "^2.32.2",
84
85
  "@radix-ui/react-accordion": "^1.2.11",
85
86
  "@radix-ui/react-avatar": "^1.1.10",
86
87
  "@radix-ui/react-checkbox": "^1.3.2",