@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 { convertFromRaw, EditorState } from 'draft-js';
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: originalValues[step.id]
67
- ? EditorState.createWithContent(convertFromRaw(originalValues[step.id].draft))
68
- : EditorState.createEmpty(), rules: step.required
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version": "0.2.13-test",
4
+ "version": "0.2.15-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",