@moontra/moonui-pro 2.30.9 → 2.30.10

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
@@ -58322,6 +58322,8 @@ var ToolbarButton = ({
58322
58322
  ] });
58323
58323
  };
58324
58324
  function RichTextEditor({
58325
+ value,
58326
+ onChange,
58325
58327
  placeholder = "Start writing...",
58326
58328
  className,
58327
58329
  height = 300,
@@ -58665,7 +58667,11 @@ function RichTextEditor({
58665
58667
  }
58666
58668
  })
58667
58669
  ],
58668
- content: "",
58670
+ content: value || "",
58671
+ onUpdate: ({ editor: editor2 }) => {
58672
+ const html = editor2.getHTML();
58673
+ onChange?.(html);
58674
+ },
58669
58675
  editorProps: {
58670
58676
  attributes: {
58671
58677
  class: cn(
@@ -59593,8 +59599,8 @@ function RichTextEditor({
59593
59599
  MoonUISelectPro,
59594
59600
  {
59595
59601
  value: aiSettings.provider,
59596
- onValueChange: (value) => {
59597
- console.log("Provider changed to:", value);
59602
+ onValueChange: (value2) => {
59603
+ console.log("Provider changed to:", value2);
59598
59604
  const defaultModels = {
59599
59605
  openai: "gpt-3.5-turbo",
59600
59606
  claude: "claude-3-sonnet-20240229",
@@ -59603,8 +59609,8 @@ function RichTextEditor({
59603
59609
  };
59604
59610
  const newSettings = {
59605
59611
  ...aiSettings,
59606
- provider: value,
59607
- model: defaultModels[value] || "gpt-3.5-turbo"
59612
+ provider: value2,
59613
+ model: defaultModels[value2] || "gpt-3.5-turbo"
59608
59614
  };
59609
59615
  setAiSettings(newSettings);
59610
59616
  if (persistAISettings) {
@@ -59648,8 +59654,8 @@ function RichTextEditor({
59648
59654
  MoonUISelectPro,
59649
59655
  {
59650
59656
  value: aiSettings.model,
59651
- onValueChange: (value) => {
59652
- const newSettings = { ...aiSettings, model: value };
59657
+ onValueChange: (value2) => {
59658
+ const newSettings = { ...aiSettings, model: value2 };
59653
59659
  setAiSettings(newSettings);
59654
59660
  if (persistAISettings) {
59655
59661
  localStorage.setItem("moonui-ai-settings", JSON.stringify(newSettings));
@@ -59810,7 +59816,7 @@ function RichTextEditor({
59810
59816
  max: 5,
59811
59817
  step: 1,
59812
59818
  value: [tableBorderWidth],
59813
- onValueChange: (value) => setTableBorderWidth(value[0]),
59819
+ onValueChange: (value2) => setTableBorderWidth(value2[0]),
59814
59820
  className: "flex-1"
59815
59821
  }
59816
59822
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.30.9",
3
+ "version": "2.30.10",
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",