sccoreui 4.4.9 → 4.5.0

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.
@@ -10,10 +10,10 @@ require("froala-editor/js/plugins.pkgd.min.js");
10
10
  // import { SvgComponent } from 'sccoreui';
11
11
  // import SvgComponent from '../../directives/svg-component';
12
12
  // import { Bold, Italic } from '../../assets/svg/svg';
13
- const FroalaTextEditor = ({ onChange }) => {
13
+ const FroalaTextEditor = ({ onChange, value }) => {
14
14
  const editorRef = (0, react_1.useRef)(null);
15
- const html = ``;
16
- const [editorContent, setEditorContent] = (0, react_1.useState)(html);
15
+ // const html = ``;
16
+ const [editorContent, setEditorContent] = (0, react_1.useState)(value);
17
17
  // Callback function to handle content changes
18
18
  const handleModelChange = (content) => {
19
19
  setEditorContent(content);
@@ -2,5 +2,5 @@ import 'froala-editor/css/froala_editor.pkgd.min.css';
2
2
  import 'froala-editor/css/froala_style.min.css';
3
3
  import 'froala-editor/js/plugins.pkgd.min.js';
4
4
  import { FroalaTextEditorTypes } from '../types/type';
5
- declare const FroalaTextEditor: ({ onChange }: FroalaTextEditorTypes) => import("react/jsx-runtime").JSX.Element;
5
+ declare const FroalaTextEditor: ({ onChange, value }: FroalaTextEditorTypes) => import("react/jsx-runtime").JSX.Element;
6
6
  export default FroalaTextEditor;
@@ -161,4 +161,5 @@ export interface CustomColorPickerTypes {
161
161
  }
162
162
  export interface FroalaTextEditorTypes {
163
163
  onChange?: any;
164
+ value: string;
164
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "4.4.9",
3
+ "version": "4.5.0",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",