@arquimedes.co/eureka-forms 2.0.17 → 2.0.18

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.
@@ -77,7 +77,7 @@ function Incidents(_a) {
77
77
  dispatch(addStepsDependencies({
78
78
  steps: newSteps,
79
79
  customSteps: customSteps,
80
- allSteps: newSteps,
80
+ allSteps: __assign(__assign(__assign({}, form.steps), localForm.steps), newSteps),
81
81
  }));
82
82
  };
83
83
  var addRecursiveElementStep = function (idStep, step, idParent, steps, idProjectDep) {
@@ -98,19 +98,19 @@ function Incidents(_a) {
98
98
  margin: step.description
99
99
  ? '10px 0px'
100
100
  : '0px 0px 5px 0px',
101
- } }, { children: step.description }))), incidents.map(function (incident, index) { return (_jsx(IncidentComponent, __assign({ incident: incident, step: step, editable: editable, handleDelete: function () {
102
- var tempIncidents = __spreadArray([], incidents, true);
103
- tempIncidents[index].deleted = true;
104
- var n = 1;
105
- for (var _i = 0, tempIncidents_1 = tempIncidents; _i < tempIncidents_1.length; _i++) {
106
- var inc = tempIncidents_1[_i];
107
- if (!inc.deleted) {
108
- inc.num = n;
109
- n++;
101
+ } }, { children: step.description }))), _jsx(FormContext.Provider, __assign({ value: localForm }, { children: incidents.map(function (incident, index) { return (_jsx(IncidentComponent, __assign({ incident: incident, step: step, editable: editable, handleDelete: function () {
102
+ var tempIncidents = __spreadArray([], incidents, true);
103
+ tempIncidents[index].deleted = true;
104
+ var n = 1;
105
+ for (var _i = 0, tempIncidents_1 = tempIncidents; _i < tempIncidents_1.length; _i++) {
106
+ var inc = tempIncidents_1[_i];
107
+ if (!inc.deleted) {
108
+ inc.num = n;
109
+ n++;
110
+ }
110
111
  }
111
- }
112
- onChange(tempIncidents);
113
- } }, others), index)); }), _jsxs("div", __assign({ className: styles.btnContainer }, { children: [_jsx("input", { ref: btnRef, className: 'hidden-input' }), _jsx(RoundedButton, { disabled: !editable || postview, text: step.addBtnLabel, color: formStyle.primaryContrastColor, backgroundColor: formStyle.primaryColor, fontSize: '1rem', padding: '5px 15px 5px 15px', onClick: function () {
112
+ onChange(tempIncidents);
113
+ } }, others), index)); }) })), _jsxs("div", __assign({ className: styles.btnContainer }, { children: [_jsx("input", { ref: btnRef, className: 'hidden-input' }), _jsx(RoundedButton, { disabled: !editable || postview, text: step.addBtnLabel, color: formStyle.primaryContrastColor, backgroundColor: formStyle.primaryColor, fontSize: '1rem', padding: '5px 15px 5px 15px', onClick: function () {
114
114
  if (editable && !postview) {
115
115
  handleAddIncident();
116
116
  }
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.17",
4
+ "version": "2.0.18",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",