@arquimedes.co/eureka-forms 0.2.13-test → 0.2.15-test
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.
|
@@ -16,7 +16,7 @@ import { Controller } from 'react-hook-form';
|
|
|
16
16
|
import { Editor } from 'react-draft-wysiwyg'; //Load programatically only if step has editor
|
|
17
17
|
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
|
|
18
18
|
import './DraftEditor.css';
|
|
19
|
-
import {
|
|
19
|
+
import { EditorState } from 'draft-js';
|
|
20
20
|
import { useState } from 'react';
|
|
21
21
|
import { ClickAwayListener } from '@material-ui/core';
|
|
22
22
|
function TextAreaStep(_a) {
|
|
@@ -63,9 +63,14 @@ function TextAreaStep(_a) {
|
|
|
63
63
|
if (!postview) {
|
|
64
64
|
setFocus(true);
|
|
65
65
|
}
|
|
66
|
-
} }, { children: [postview && (_jsx("div", { className: styles.disabledCurtain }, void 0)), _jsx(Controller, { name: step.id, control: control, defaultValue:
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
} }, { children: [postview && (_jsx("div", { className: styles.disabledCurtain }, void 0)), _jsx(Controller, { name: step.id, control: control, defaultValue:
|
|
67
|
+
// originalValues[step.id]
|
|
68
|
+
// ? EditorState.createWithContent(
|
|
69
|
+
// convertFromRaw(
|
|
70
|
+
// originalValues[step.id].draft
|
|
71
|
+
// )
|
|
72
|
+
// )
|
|
73
|
+
EditorState.createEmpty(), rules: step.required
|
|
69
74
|
? {
|
|
70
75
|
validate: function (editorState) {
|
|
71
76
|
return editorState
|
package/package.json
CHANGED