@foodpilot/foods 0.3.89 → 0.3.90

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.
@@ -15,6 +15,8 @@ interface RichTextEditorProps {
15
15
  placeholder?: string;
16
16
  /** Initial HTML content */
17
17
  initialContent?: string;
18
+ /** Editor value */
19
+ value?: string;
18
20
  }
19
21
  /**
20
22
  * RichTextEditor Component
package/dist/main.js CHANGED
@@ -84519,9 +84519,10 @@ const Mge = z(Q)(({ theme: e }) => ({
84519
84519
  onChange: e,
84520
84520
  displayOutput: t = !1,
84521
84521
  placeholder: n = "",
84522
- initialContent: o = ""
84522
+ initialContent: o = "",
84523
+ value: r = ""
84523
84524
  }) => {
84524
- const r = dhe({
84525
+ const i = dhe({
84525
84526
  extensions: [
84526
84527
  f6e,
84527
84528
  // Basic editor features
@@ -84550,14 +84551,14 @@ const Mge = z(Q)(({ theme: e }) => ({
84550
84551
  ],
84551
84552
  content: o,
84552
84553
  // Set initial content
84553
- onUpdate: ({ editor: i }) => {
84554
- e == null || e(i.getHTML());
84554
+ onUpdate: ({ editor: s }) => {
84555
+ e == null || e(s.getHTML());
84555
84556
  }
84556
84557
  });
84557
- return r ? /* @__PURE__ */ f.jsxs(Mge, { children: [
84558
- /* @__PURE__ */ f.jsx(Sge, { editor: r }),
84559
- /* @__PURE__ */ f.jsx(Tge, { editor: r }),
84560
- /* @__PURE__ */ f.jsx(Oge, { editor: r, displayOutput: t })
84558
+ return i ? /* @__PURE__ */ f.jsxs(Mge, { children: [
84559
+ /* @__PURE__ */ f.jsx(Sge, { editor: i }),
84560
+ /* @__PURE__ */ f.jsx(Tge, { editor: i, value: r }),
84561
+ /* @__PURE__ */ f.jsx(Oge, { editor: i, displayOutput: t })
84561
84562
  ] }) : null;
84562
84563
  }, i3 = {
84563
84564
  MuiAvatar: {