tp-react-elements-dev 1.7.3 → 1.7.5
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/components/Form/FormRender.d.ts +2 -0
- package/dist/index.esm.js +3 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
|
@@ -41,6 +41,8 @@ export interface FormSectionPropsItem {
|
|
|
41
41
|
handleFileError?: (message: string) => void;
|
|
42
42
|
doNotAllowPaste?: boolean;
|
|
43
43
|
removeButtons?: string;
|
|
44
|
+
Fonts?: number[];
|
|
45
|
+
FontFamily?: any;
|
|
44
46
|
}
|
|
45
47
|
export interface FormRenderProps {
|
|
46
48
|
item: FormSectionPropsItem;
|
package/dist/index.esm.js
CHANGED
|
@@ -52347,6 +52347,7 @@ var joditReactExports = joditReact.exports;
|
|
|
52347
52347
|
var JoditEditor = /*@__PURE__*/getDefaultExportFromCjs(joditReactExports);
|
|
52348
52348
|
|
|
52349
52349
|
const RichTextEditor = ({ props }) => {
|
|
52350
|
+
var _a;
|
|
52350
52351
|
const editor = useRef(null);
|
|
52351
52352
|
const [content, setContent] = useState("");
|
|
52352
52353
|
const value = props.getValues(props.item.name);
|
|
@@ -52354,13 +52355,10 @@ const RichTextEditor = ({ props }) => {
|
|
|
52354
52355
|
"font-family": "Arial",
|
|
52355
52356
|
}, controls: {
|
|
52356
52357
|
font: {
|
|
52357
|
-
list: {
|
|
52358
|
-
Arial: "Arial",
|
|
52359
|
-
"Rotis Semi Sans": "Rotis Semi Sans",
|
|
52360
|
-
},
|
|
52358
|
+
list: Object.assign({ Arial: "Arial" }, (_a = props.item) === null || _a === void 0 ? void 0 : _a.FontFamily),
|
|
52361
52359
|
},
|
|
52362
52360
|
fontsize: {
|
|
52363
|
-
list: joditReactExports.Jodit.atom([8, 9, 10, 11]),
|
|
52361
|
+
list: joditReactExports.Jodit.atom(props.item.Fonts || [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]),
|
|
52364
52362
|
},
|
|
52365
52363
|
}, defaultFont: "Arial", defaultFontSize: "11px", askBeforePasteFromWord: false, askBeforePasteHTML: false, hotkeys: {
|
|
52366
52364
|
redo: "ctrl+z",
|