sccoreui 4.5.0 → 4.5.1

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,7 +10,7 @@ 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, value }) => {
13
+ const FroalaTextEditor = ({ onChange, value, placeholderText }) => {
14
14
  const editorRef = (0, react_1.useRef)(null);
15
15
  // const html = ``;
16
16
  const [editorContent, setEditorContent] = (0, react_1.useState)(value);
@@ -46,7 +46,7 @@ const FroalaTextEditor = ({ onChange, value }) => {
46
46
  // 'Tahoma,Geneva,sans-serif': 'Font 3'
47
47
  },
48
48
  fontFamilyDefaultSelection: 'sans-serif',
49
- placeholderText: 'placeholder',
49
+ placeholderText: placeholderText,
50
50
  key: "5OA4gB3A3B3E3B5D3E3F-11SLJCKHXOSLMc1YGSGb1ZXHSe1CgB5A4D4G4E3C2A12A19A6B4==",
51
51
  charCounterCount: false,
52
52
  toolbarSticky: false,
@@ -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, value }: FroalaTextEditorTypes) => import("react/jsx-runtime").JSX.Element;
5
+ declare const FroalaTextEditor: ({ onChange, value, placeholderText }: FroalaTextEditorTypes) => import("react/jsx-runtime").JSX.Element;
6
6
  export default FroalaTextEditor;
@@ -162,4 +162,5 @@ export interface CustomColorPickerTypes {
162
162
  export interface FroalaTextEditorTypes {
163
163
  onChange?: any;
164
164
  value: string;
165
+ placeholderText: string;
165
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",