@moontra/moonui-pro 2.32.11 → 2.32.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/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.mjs +3 -18
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -92,8 +92,9 @@ var init_cli_token_reader = __esm({
|
|
|
92
92
|
this.cachedToken = null;
|
|
93
93
|
this.lastCheck = 0;
|
|
94
94
|
this.CACHE_DURATION = 5 * 60 * 1e3;
|
|
95
|
+
// 5 minutes
|
|
96
|
+
this.apiCheckAttempted = false;
|
|
95
97
|
}
|
|
96
|
-
// 5 minutes
|
|
97
98
|
static getInstance() {
|
|
98
99
|
if (!this.instance) {
|
|
99
100
|
this.instance = new CLITokenReader();
|
|
@@ -109,23 +110,6 @@ var init_cli_token_reader = __esm({
|
|
|
109
110
|
return this.cachedToken;
|
|
110
111
|
}
|
|
111
112
|
{
|
|
112
|
-
try {
|
|
113
|
-
const response = await fetch("/api/moonui/cli-auth", {
|
|
114
|
-
method: "GET",
|
|
115
|
-
credentials: "same-origin"
|
|
116
|
-
});
|
|
117
|
-
if (response.ok) {
|
|
118
|
-
const data = await response.json();
|
|
119
|
-
if (data.token) {
|
|
120
|
-
console.log("[MoonUI Pro] CLI token retrieved from local API");
|
|
121
|
-
this.cachedToken = data.token;
|
|
122
|
-
this.lastCheck = now;
|
|
123
|
-
return data.token;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
} catch (error) {
|
|
127
|
-
console.log("[MoonUI Pro] Local CLI auth API not available");
|
|
128
|
-
}
|
|
129
113
|
if (typeof window !== "undefined" && window.__MOONUI_CLI_TOKEN__) {
|
|
130
114
|
console.log("[MoonUI Pro] CLI token found in window object");
|
|
131
115
|
this.cachedToken = window.__MOONUI_CLI_TOKEN__;
|
|
@@ -141,6 +125,7 @@ var init_cli_token_reader = __esm({
|
|
|
141
125
|
return devToken;
|
|
142
126
|
}
|
|
143
127
|
}
|
|
128
|
+
console.log("[MoonUI Pro] No CLI token available. See documentation for setup instructions.");
|
|
144
129
|
}
|
|
145
130
|
return null;
|
|
146
131
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.32.
|
|
3
|
+
"version": "2.32.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",
|