@moontra/moonui-pro 2.8.8 → 2.8.9
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
|
@@ -51518,6 +51518,9 @@ function RichTextEditor({
|
|
|
51518
51518
|
onChange: (e) => {
|
|
51519
51519
|
const newSettings = { ...aiSettings, apiKey: e.target.value };
|
|
51520
51520
|
setAiSettings(newSettings);
|
|
51521
|
+
if (persistAISettings) {
|
|
51522
|
+
localStorage.setItem("moonui-ai-settings", JSON.stringify(newSettings));
|
|
51523
|
+
}
|
|
51521
51524
|
},
|
|
51522
51525
|
placeholder: "sk-..."
|
|
51523
51526
|
}
|
|
@@ -51532,6 +51535,9 @@ function RichTextEditor({
|
|
|
51532
51535
|
onValueChange: (value) => {
|
|
51533
51536
|
const newSettings = { ...aiSettings, model: value };
|
|
51534
51537
|
setAiSettings(newSettings);
|
|
51538
|
+
if (persistAISettings) {
|
|
51539
|
+
localStorage.setItem("moonui-ai-settings", JSON.stringify(newSettings));
|
|
51540
|
+
}
|
|
51535
51541
|
},
|
|
51536
51542
|
children: [
|
|
51537
51543
|
/* @__PURE__ */ jsx(MoonUISelectTriggerPro, { children: /* @__PURE__ */ jsx(MoonUISelectValuePro, {}) }),
|
|
@@ -51574,6 +51580,9 @@ function RichTextEditor({
|
|
|
51574
51580
|
onChange: (e) => {
|
|
51575
51581
|
const newSettings = { ...aiSettings, temperature: parseFloat(e.target.value) };
|
|
51576
51582
|
setAiSettings(newSettings);
|
|
51583
|
+
if (persistAISettings) {
|
|
51584
|
+
localStorage.setItem("moonui-ai-settings", JSON.stringify(newSettings));
|
|
51585
|
+
}
|
|
51577
51586
|
}
|
|
51578
51587
|
}
|
|
51579
51588
|
)
|
|
@@ -51591,6 +51600,9 @@ function RichTextEditor({
|
|
|
51591
51600
|
onChange: (e) => {
|
|
51592
51601
|
const newSettings = { ...aiSettings, maxTokens: parseInt(e.target.value) };
|
|
51593
51602
|
setAiSettings(newSettings);
|
|
51603
|
+
if (persistAISettings) {
|
|
51604
|
+
localStorage.setItem("moonui-ai-settings", JSON.stringify(newSettings));
|
|
51605
|
+
}
|
|
51594
51606
|
}
|
|
51595
51607
|
}
|
|
51596
51608
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moontra/moonui-pro",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.9",
|
|
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",
|
|
@@ -1544,6 +1544,10 @@ export function RichTextEditor({
|
|
|
1544
1544
|
onChange={(e) => {
|
|
1545
1545
|
const newSettings = { ...aiSettings, apiKey: e.target.value };
|
|
1546
1546
|
setAiSettings(newSettings);
|
|
1547
|
+
// Save to localStorage immediately
|
|
1548
|
+
if (persistAISettings) {
|
|
1549
|
+
localStorage.setItem('moonui-ai-settings', JSON.stringify(newSettings));
|
|
1550
|
+
}
|
|
1547
1551
|
}}
|
|
1548
1552
|
placeholder="sk-..."
|
|
1549
1553
|
/>
|
|
@@ -1555,6 +1559,10 @@ export function RichTextEditor({
|
|
|
1555
1559
|
onValueChange={(value) => {
|
|
1556
1560
|
const newSettings = { ...aiSettings, model: value };
|
|
1557
1561
|
setAiSettings(newSettings);
|
|
1562
|
+
// Save to localStorage immediately
|
|
1563
|
+
if (persistAISettings) {
|
|
1564
|
+
localStorage.setItem('moonui-ai-settings', JSON.stringify(newSettings));
|
|
1565
|
+
}
|
|
1558
1566
|
}}
|
|
1559
1567
|
>
|
|
1560
1568
|
<SelectTrigger>
|
|
@@ -1603,6 +1611,10 @@ export function RichTextEditor({
|
|
|
1603
1611
|
onChange={(e) => {
|
|
1604
1612
|
const newSettings = { ...aiSettings, temperature: parseFloat(e.target.value) };
|
|
1605
1613
|
setAiSettings(newSettings);
|
|
1614
|
+
// Save to localStorage immediately
|
|
1615
|
+
if (persistAISettings) {
|
|
1616
|
+
localStorage.setItem('moonui-ai-settings', JSON.stringify(newSettings));
|
|
1617
|
+
}
|
|
1606
1618
|
}}
|
|
1607
1619
|
/>
|
|
1608
1620
|
</div>
|
|
@@ -1617,6 +1629,10 @@ export function RichTextEditor({
|
|
|
1617
1629
|
onChange={(e) => {
|
|
1618
1630
|
const newSettings = { ...aiSettings, maxTokens: parseInt(e.target.value) };
|
|
1619
1631
|
setAiSettings(newSettings);
|
|
1632
|
+
// Save to localStorage immediately
|
|
1633
|
+
if (persistAISettings) {
|
|
1634
|
+
localStorage.setItem('moonui-ai-settings', JSON.stringify(newSettings));
|
|
1635
|
+
}
|
|
1620
1636
|
}}
|
|
1621
1637
|
/>
|
|
1622
1638
|
</div>
|