sccoreui 4.6.9 → 4.7.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, placeholderText, id }) => {
13
+ const FroalaTextEditor = ({ onChange, value, placeholderText, id, className }) => {
14
14
  const editorRef = (0, react_1.useRef)(null);
15
15
  // const html = ``;
16
16
  const [editorContent, setEditorContent] = (0, react_1.useState)(value);
@@ -40,7 +40,7 @@ const FroalaTextEditor = ({ onChange, value, placeholderText, id }) => {
40
40
  });
41
41
  }
42
42
  }, []);
43
- return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'text-editor', id: id }, { children: (0, jsx_runtime_1.jsx)(react_froala_wysiwyg_1.default, { tag: "textarea", config: {
43
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: `text-editor ${className}`, id: id }, { children: (0, jsx_runtime_1.jsx)(react_froala_wysiwyg_1.default, { tag: "textarea", config: {
44
44
  fontFamilySelection: true,
45
45
  fontFamily: {
46
46
  'Arial,Helvetica,sans-serif': 'sans-serif',
@@ -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, placeholderText, id }: FroalaTextEditorTypes) => import("react/jsx-runtime").JSX.Element;
5
+ declare const FroalaTextEditor: ({ onChange, value, placeholderText, id, className }: FroalaTextEditorTypes) => import("react/jsx-runtime").JSX.Element;
6
6
  export default FroalaTextEditor;
@@ -164,7 +164,8 @@ export interface FroalaTextEditorTypes {
164
164
  onChange?: any;
165
165
  value: string;
166
166
  placeholderText: string;
167
- id?: string;
167
+ id: string;
168
+ className?: string;
168
169
  }
169
170
  export interface ListBoxDropdownTypes {
170
171
  values: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "4.6.9",
3
+ "version": "4.7.1",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",