@moontra/moonui-pro 2.32.5 → 2.32.7

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
@@ -2065,8 +2065,8 @@ var globalAuthState = {
2065
2065
  var isInitialized = false;
2066
2066
  var subscribers = [];
2067
2067
  var CACHE_KEY = "moonui_license_cache";
2068
- var CACHE_DURATION = 1 * 60 * 1e3 ;
2069
- var OFFLINE_GRACE_PERIOD = 5 * 60 * 1e3 ;
2068
+ var CACHE_DURATION = 5 * 60 * 1e3 ;
2069
+ var OFFLINE_GRACE_PERIOD = 10 * 60 * 1e3 ;
2070
2070
  function notifySubscribers() {
2071
2071
  subscribers.forEach((callback) => callback());
2072
2072
  }
@@ -2086,7 +2086,6 @@ async function getAuthToken() {
2086
2086
  async function validateLicense() {
2087
2087
  const token = await getAuthToken();
2088
2088
  if (!token) {
2089
- console.log("[MoonUI Pro] No auth token found - clearing access");
2090
2089
  if (typeof window !== "undefined") {
2091
2090
  localStorage.removeItem(CACHE_KEY);
2092
2091
  }
@@ -2136,14 +2135,12 @@ async function validateLicense() {
2136
2135
  });
2137
2136
  }
2138
2137
  } catch (error) {
2139
- console.error("[MoonUI Pro] Network error during license validation:", error);
2140
2138
  if (typeof window !== "undefined") {
2141
2139
  const cached = localStorage.getItem(CACHE_KEY);
2142
2140
  if (cached) {
2143
2141
  const cacheData = JSON.parse(cached);
2144
2142
  const now = Date.now();
2145
2143
  if (now - cacheData.timestamp < OFFLINE_GRACE_PERIOD) {
2146
- console.log("[MoonUI Pro] Development: Using cached access during network error");
2147
2144
  updateGlobalState({
2148
2145
  hasProAccess: cacheData.valid && cacheData.hasLifetimeAccess,
2149
2146
  isAuthenticated: cacheData.valid,
@@ -2158,7 +2155,6 @@ async function validateLicense() {
2158
2155
  }
2159
2156
  }
2160
2157
  }
2161
- console.log("[MoonUI Pro] Denying access due to network error (production security)");
2162
2158
  updateGlobalState({
2163
2159
  hasProAccess: false,
2164
2160
  isAuthenticated: false,
@@ -2191,15 +2187,6 @@ async function initializeAuth() {
2191
2187
  }
2192
2188
  }
2193
2189
  await validateLicense();
2194
- {
2195
- setInterval(() => {
2196
- console.log("[MoonUI Pro] Running periodic auth check...");
2197
- if (typeof window !== "undefined") {
2198
- localStorage.removeItem(CACHE_KEY);
2199
- }
2200
- validateLicense().catch(console.error);
2201
- }, 10 * 1e3);
2202
- }
2203
2190
  }
2204
2191
  function useSubscription() {
2205
2192
  const [, forceUpdate] = useState({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.32.5",
3
+ "version": "2.32.7",
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",