@moontra/moonui-pro 2.34.12 → 2.34.13
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 +131 -131
- package/dist/cdn/index.global.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +24 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6075,6 +6075,7 @@ interface CodeSnippetsProps {
|
|
|
6075
6075
|
declare function CodeSnippets({ snippets, variant, speed, density, opacity, showIcons, glowEffect, className, multiplier }: CodeSnippetsProps): react_jsx_runtime.JSX.Element | null;
|
|
6076
6076
|
declare const codeSnippetsPresets: {
|
|
6077
6077
|
readonly default: {
|
|
6078
|
+
readonly snippets: CodeSnippet[];
|
|
6078
6079
|
readonly variant: "float";
|
|
6079
6080
|
readonly speed: 1;
|
|
6080
6081
|
readonly density: 1;
|
|
@@ -6084,6 +6085,7 @@ declare const codeSnippetsPresets: {
|
|
|
6084
6085
|
readonly multiplier: 2;
|
|
6085
6086
|
};
|
|
6086
6087
|
readonly rain: {
|
|
6088
|
+
readonly snippets: CodeSnippet[];
|
|
6087
6089
|
readonly variant: "rain";
|
|
6088
6090
|
readonly speed: 1.5;
|
|
6089
6091
|
readonly density: 1.5;
|
|
@@ -6093,6 +6095,7 @@ declare const codeSnippetsPresets: {
|
|
|
6093
6095
|
readonly multiplier: 3;
|
|
6094
6096
|
};
|
|
6095
6097
|
readonly orbit: {
|
|
6098
|
+
readonly snippets: CodeSnippet[];
|
|
6096
6099
|
readonly variant: "orbit";
|
|
6097
6100
|
readonly speed: 0.5;
|
|
6098
6101
|
readonly density: 1;
|
|
@@ -6102,6 +6105,7 @@ declare const codeSnippetsPresets: {
|
|
|
6102
6105
|
readonly multiplier: 1;
|
|
6103
6106
|
};
|
|
6104
6107
|
readonly wave: {
|
|
6108
|
+
readonly snippets: CodeSnippet[];
|
|
6105
6109
|
readonly variant: "wave";
|
|
6106
6110
|
readonly speed: 0.8;
|
|
6107
6111
|
readonly density: 1.2;
|
package/dist/index.mjs
CHANGED
|
@@ -561,6 +561,25 @@ async function getAuthToken() {
|
|
|
561
561
|
return null;
|
|
562
562
|
}
|
|
563
563
|
async function validateLicense() {
|
|
564
|
+
if (typeof window !== "undefined") {
|
|
565
|
+
const hostname = window.location.hostname;
|
|
566
|
+
if (hostname.includes("moonui.dev")) {
|
|
567
|
+
console.log("[MoonUI Pro Auth] Running on moonui.dev domain - auto-granting Pro access");
|
|
568
|
+
updateGlobalState({
|
|
569
|
+
hasProAccess: true,
|
|
570
|
+
isAuthenticated: true,
|
|
571
|
+
subscriptionPlan: "lifetime",
|
|
572
|
+
subscription: {
|
|
573
|
+
status: "active",
|
|
574
|
+
plan: "lifetime"
|
|
575
|
+
},
|
|
576
|
+
isLoading: false,
|
|
577
|
+
isAdmin: true
|
|
578
|
+
// Grant admin access on our own domain
|
|
579
|
+
});
|
|
580
|
+
return;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
564
583
|
const token = await getAuthToken();
|
|
565
584
|
console.log("[MoonUI Pro Auth] Validating license:", {
|
|
566
585
|
hasToken: !!token,
|
|
@@ -595,7 +614,7 @@ async function validateLicense() {
|
|
|
595
614
|
}
|
|
596
615
|
try {
|
|
597
616
|
console.log("[MoonUI Pro Auth] Calling validate API...");
|
|
598
|
-
const response = await fetch("https://moonui.dev/api/auth/validate", {
|
|
617
|
+
const response = await fetch("https://www.moonui.dev/api/auth/validate", {
|
|
599
618
|
headers: {
|
|
600
619
|
"Authorization": `Bearer ${token}`
|
|
601
620
|
}
|
|
@@ -91018,6 +91037,7 @@ function CodeSnippets({
|
|
|
91018
91037
|
}
|
|
91019
91038
|
var codeSnippetsPresets = {
|
|
91020
91039
|
default: {
|
|
91040
|
+
snippets: defaultSnippets,
|
|
91021
91041
|
variant: "float",
|
|
91022
91042
|
speed: 1,
|
|
91023
91043
|
density: 1,
|
|
@@ -91027,6 +91047,7 @@ var codeSnippetsPresets = {
|
|
|
91027
91047
|
multiplier: 2
|
|
91028
91048
|
},
|
|
91029
91049
|
rain: {
|
|
91050
|
+
snippets: defaultSnippets,
|
|
91030
91051
|
variant: "rain",
|
|
91031
91052
|
speed: 1.5,
|
|
91032
91053
|
density: 1.5,
|
|
@@ -91036,6 +91057,7 @@ var codeSnippetsPresets = {
|
|
|
91036
91057
|
multiplier: 3
|
|
91037
91058
|
},
|
|
91038
91059
|
orbit: {
|
|
91060
|
+
snippets: defaultSnippets,
|
|
91039
91061
|
variant: "orbit",
|
|
91040
91062
|
speed: 0.5,
|
|
91041
91063
|
density: 1,
|
|
@@ -91045,6 +91067,7 @@ var codeSnippetsPresets = {
|
|
|
91045
91067
|
multiplier: 1
|
|
91046
91068
|
},
|
|
91047
91069
|
wave: {
|
|
91070
|
+
snippets: defaultSnippets,
|
|
91048
91071
|
variant: "wave",
|
|
91049
91072
|
speed: 0.8,
|
|
91050
91073
|
density: 1.2,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.34.
|
|
3
|
+
"version": "2.34.13",
|
|
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",
|