@moontra/moonui-pro 3.3.13 → 3.3.15
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 +110 -110
- package/dist/cdn/index.global.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +26 -30
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6211,7 +6211,7 @@ interface CodeSnippetsProps {
|
|
|
6211
6211
|
/** Pozisyon türü - fixed veya absolute */
|
|
6212
6212
|
position?: "fixed" | "absolute";
|
|
6213
6213
|
}
|
|
6214
|
-
declare function CodeSnippets({ snippets, variant, speed, density, opacity, showIcons, glowEffect, className, multiplier, position }: CodeSnippetsProps): react_jsx_runtime.JSX.Element
|
|
6214
|
+
declare function CodeSnippets({ snippets, variant, speed, density, opacity, showIcons, glowEffect, className, multiplier, position }: CodeSnippetsProps): react_jsx_runtime.JSX.Element;
|
|
6215
6215
|
declare const codeSnippetsPresets: {
|
|
6216
6216
|
readonly default: {
|
|
6217
6217
|
readonly snippets: CodeSnippet[];
|
package/dist/index.mjs
CHANGED
|
@@ -2123,12 +2123,8 @@ function readLicenseTokenClient() {
|
|
|
2123
2123
|
try {
|
|
2124
2124
|
const decodedToken = typeof window !== "undefined" ? atob(envToken) : Buffer.from(envToken, "base64").toString("utf8");
|
|
2125
2125
|
const token2 = JSON.parse(decodedToken);
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
} else {
|
|
2129
|
-
console.log("[MoonUI] Using environment license token (production)");
|
|
2130
|
-
return token2;
|
|
2131
|
-
}
|
|
2126
|
+
console.log("[MoonUI] Using environment license token (production - build-time validated)");
|
|
2127
|
+
return token2;
|
|
2132
2128
|
} catch (error) {
|
|
2133
2129
|
console.error("[MoonUI] Error parsing environment token:", error);
|
|
2134
2130
|
}
|
|
@@ -91562,19 +91558,18 @@ function FloatingCodeItem({
|
|
|
91562
91558
|
showIcons,
|
|
91563
91559
|
glowEffect
|
|
91564
91560
|
}) {
|
|
91565
|
-
const
|
|
91566
|
-
|
|
91567
|
-
|
|
91568
|
-
|
|
91569
|
-
|
|
91570
|
-
});
|
|
91571
|
-
}, []);
|
|
91561
|
+
const position = useMemo(() => ({
|
|
91562
|
+
x: index2 * 137.5 % 100,
|
|
91563
|
+
// Deterministik position hesaplama
|
|
91564
|
+
y: index2 * 73.2 % 100
|
|
91565
|
+
}), [index2]);
|
|
91572
91566
|
const animationConfig = useMemo(() => {
|
|
91573
91567
|
switch (variant) {
|
|
91574
91568
|
case "float":
|
|
91575
91569
|
return {
|
|
91576
91570
|
animate: {
|
|
91577
|
-
opacity: [0.
|
|
91571
|
+
opacity: [0.4, 0.6, 0.4],
|
|
91572
|
+
// Daha smooth opacity geçişi
|
|
91578
91573
|
y: [0, -30, -60],
|
|
91579
91574
|
x: [0, Math.random() * 20 - 10, Math.random() * 40 - 20],
|
|
91580
91575
|
rotate: [0, Math.random() * 10 - 5, Math.random() * 20 - 10],
|
|
@@ -91607,7 +91602,8 @@ function FloatingCodeItem({
|
|
|
91607
91602
|
const angle = index2 * 360 / 8 * Math.PI / 180;
|
|
91608
91603
|
return {
|
|
91609
91604
|
animate: {
|
|
91610
|
-
opacity: [0.4, 0.
|
|
91605
|
+
opacity: [0.4, 0.6, 0.4],
|
|
91606
|
+
// Daha smooth opacity
|
|
91611
91607
|
x: [
|
|
91612
91608
|
Math.cos(angle) * radius,
|
|
91613
91609
|
Math.cos(angle + Math.PI) * radius,
|
|
@@ -91629,7 +91625,8 @@ function FloatingCodeItem({
|
|
|
91629
91625
|
case "wave":
|
|
91630
91626
|
return {
|
|
91631
91627
|
animate: {
|
|
91632
|
-
opacity: [0.
|
|
91628
|
+
opacity: [0.4, 0.6, 0.4],
|
|
91629
|
+
// Daha smooth opacity
|
|
91633
91630
|
x: [0, 100, 0, -100, 0],
|
|
91634
91631
|
y: [
|
|
91635
91632
|
0,
|
|
@@ -91666,7 +91663,9 @@ function FloatingCodeItem({
|
|
|
91666
91663
|
style: {
|
|
91667
91664
|
left: `${position.x}%`,
|
|
91668
91665
|
top: `${position.y}%`,
|
|
91669
|
-
color: lang.color
|
|
91666
|
+
color: lang.color,
|
|
91667
|
+
willChange: "transform, opacity"
|
|
91668
|
+
// GPU acceleration için
|
|
91670
91669
|
},
|
|
91671
91670
|
initial: { opacity: 0, scale: 0.5 },
|
|
91672
91671
|
animate: animationConfig.animate,
|
|
@@ -91695,19 +91694,16 @@ function CodeSnippets({
|
|
|
91695
91694
|
multiplier = 2,
|
|
91696
91695
|
position = "absolute"
|
|
91697
91696
|
}) {
|
|
91698
|
-
const
|
|
91699
|
-
|
|
91700
|
-
|
|
91701
|
-
|
|
91702
|
-
|
|
91703
|
-
|
|
91704
|
-
|
|
91705
|
-
|
|
91706
|
-
|
|
91707
|
-
|
|
91708
|
-
id: `${i}-${j}-${snippet.language}`
|
|
91709
|
-
}))
|
|
91710
|
-
).flat();
|
|
91697
|
+
const allSnippets = useMemo(
|
|
91698
|
+
() => Array.from(
|
|
91699
|
+
{ length: multiplier },
|
|
91700
|
+
(_, i) => snippets.map((snippet, j) => ({
|
|
91701
|
+
...snippet,
|
|
91702
|
+
id: `${i}-${j}-${snippet.language}`
|
|
91703
|
+
}))
|
|
91704
|
+
).flat(),
|
|
91705
|
+
[snippets, multiplier]
|
|
91706
|
+
);
|
|
91711
91707
|
return /* @__PURE__ */ jsx(
|
|
91712
91708
|
"div",
|
|
91713
91709
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.15",
|
|
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",
|