@arquimedes.co/eureka-forms 2.0.4-test → 2.0.5-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.
@@ -145,7 +145,7 @@ export var useSetupApp = function (isEmbedded, _a) {
145
145
  idOrganization = match ? match[1] : '';
146
146
  }
147
147
  if (form) {
148
- if (form)
148
+ if (form && classifiers)
149
149
  form.classifiers = classifiers;
150
150
  _loop_1 = function (section) {
151
151
  for (var _e = 0, _f = section.steps; _e < _f.length; _e++) {
@@ -49,8 +49,8 @@ function TextAreaStep(_a) {
49
49
  }
50
50
  : {},
51
51
  defaultValue: originalValue,
52
- }), _j = _h.field, ref = _j.ref, field = __rest(_j, ["ref"]), error = _h.fieldState.error;
53
- var onChange = useCallback(function (value) {
52
+ }), _j = _h.field, ref = _j.ref, onChange = _j.onChange, field = __rest(_j, ["ref", "onChange"]), error = _h.fieldState.error;
53
+ var handleChange = useCallback(function (value) {
54
54
  if (isDependency) {
55
55
  try {
56
56
  clearTimeout(timer);
@@ -63,7 +63,7 @@ function TextAreaStep(_a) {
63
63
  }, 1000));
64
64
  }
65
65
  onChange(value);
66
- }, [handleStepDep, isDependency, field]);
66
+ }, [handleStepDep, isDependency, onChange]);
67
67
  var calcStyle = function () {
68
68
  var backgroundColor = formStyle.stepBackgroundColor;
69
69
  if (focus) {
@@ -127,7 +127,7 @@ function TextAreaStep(_a) {
127
127
  }
128
128
  } }, { children: _jsx(Editor, __assign({}, field, { editorRef: ref, onFocus: function () {
129
129
  setFocus(true);
130
- }, readOnly: !canEdit, stripPastedStyles: true, onEditorStateChange: onChange, toolbarClassName: !canEdit ? ' postview-editor-toolbar' : '', editorClassName: editorClassName, wrapperClassName: styles.wrapper, placeholder: (_b = step.description) !== null && _b !== void 0 ? _b : '', toolbar: {
130
+ }, readOnly: !canEdit, stripPastedStyles: true, onEditorStateChange: handleChange, toolbarClassName: !canEdit ? ' postview-editor-toolbar' : '', editorClassName: editorClassName, wrapperClassName: styles.wrapper, placeholder: (_b = step.description) !== null && _b !== void 0 ? _b : '', toolbar: {
131
131
  options: ['inline', 'list', 'history'],
132
132
  inline: {
133
133
  options: [
@@ -54,7 +54,7 @@ function TextAreaStep(_a) {
54
54
  }, 1000));
55
55
  }
56
56
  field.onChange(e);
57
- }, [handleStepDep, isDependency, field]);
57
+ }, [handleStepDep, isDependency, field.onChange]);
58
58
  var canEdit = editable && !postview;
59
59
  return (_jsxs("div", __assign({ className: styles.container, style: {
60
60
  paddingBottom: step.required || step.description || !!error
@@ -64,7 +64,7 @@ function TextInputStep(_a) {
64
64
  }, 1000));
65
65
  }
66
66
  field.onChange(e);
67
- }, [handleStepDep, isDependency, field]);
67
+ }, [handleStepDep, isDependency, field.onChange]);
68
68
  return (_jsx("div", __assign({ className: styles.container, style: {
69
69
  width: currentBreakPoint <= step.size
70
70
  ? '100%'
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":"2.0.4-test",
4
+ "version":"2.0.5-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",
@@ -15,14 +15,14 @@
15
15
  "cypress": "DISPLAY=:0 cypress open"
16
16
  },
17
17
  "dependencies": {
18
- "@date-io/date-fns": "^2.17.0",
19
- "@material-ui/core": "^4.12.4",
20
- "@material-ui/icons": "^4.11.3",
21
- "@material-ui/lab": "4.0.0-alpha.61",
22
- "@material-ui/pickers": "^3.3.11",
18
+ "@date-io/date-fns": "^1.3.13",
19
+ "@material-ui/core": "^4.11.3",
20
+ "@material-ui/icons": "^4.11.2",
21
+ "@material-ui/lab": "^4.0.0-alpha.57",
22
+ "@material-ui/pickers": "^3.3.10",
23
23
  "@reduxjs/toolkit": "^1.9.7",
24
24
  "axios": "^1.6.2",
25
- "date-fns": "^2.30.0",
25
+ "date-fns": "^2.23.0",
26
26
  "draft-js": "^0.11.7",
27
27
  "logrocket": "^2.2.1",
28
28
  "nanoid": "^3.3.7",
@@ -107,4 +107,4 @@
107
107
  "/dist"
108
108
  ],
109
109
  "proxy": "https://api.forms.eureka-test.click"
110
- }
110
+ }