@arquimedes.co/eureka-forms 2.0.110 → 2.0.111-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.
package/dist/App/App.d.ts CHANGED
@@ -39,6 +39,7 @@ export interface AppProps {
39
39
  /** Custom Confirmation Content */
40
40
  customConfirmation?: (confirmation: {
41
41
  url: string;
42
+ idTicket: string;
42
43
  caseNumber: string;
43
44
  }, renderIcon: () => JSX.Element, renderConfirmation: (state?: EditorState) => JSX.Element | void, renderLink: () => JSX.Element | void, onClose: () => void) => JSX.Element;
44
45
  customClientInfoStep?: (props: CustomStepProps) => JSX.Element;
@@ -144,6 +144,7 @@ export var useSetupApp = function (isEmbedded, _a) {
144
144
  }
145
145
  if (form) {
146
146
  form = createNextState(form, function (form) {
147
+ var _a;
147
148
  var firstSection = form.sections[form.firstSection];
148
149
  if (firstSection.steps === undefined &&
149
150
  form.rootSteps !== undefined) {
@@ -153,8 +154,15 @@ export var useSetupApp = function (isEmbedded, _a) {
153
154
  if (form && classifiers)
154
155
  form.classifiers = classifiers;
155
156
  var _loop_1 = function (section) {
156
- for (var _b = 0, _c = section.steps; _b < _c.length; _b++) {
157
- var idStep = _c[_b];
157
+ for (var _c = 0, _d = section.steps; _c < _d.length; _c++) {
158
+ var idStep = _d[_c];
159
+ iterateNestedSteps(idStep, form.steps, function (step, path) {
160
+ step.idSection = section.id;
161
+ step.stepPath = path;
162
+ });
163
+ }
164
+ for (var _e = 0, _f = (_a = form.hiddenSteps) !== null && _a !== void 0 ? _a : []; _e < _f.length; _e++) {
165
+ var idStep = _f[_e];
158
166
  iterateNestedSteps(idStep, form.steps, function (step, path) {
159
167
  step.idSection = section.id;
160
168
  step.stepPath = path;
@@ -162,8 +170,8 @@ export var useSetupApp = function (isEmbedded, _a) {
162
170
  }
163
171
  };
164
172
  /** Assign the idSection to all the forms steps */
165
- for (var _i = 0, _a = Object.values(form.sections); _i < _a.length; _i++) {
166
- var section = _a[_i];
173
+ for (var _i = 0, _b = Object.values(form.sections); _i < _b.length; _i++) {
174
+ var section = _b[_i];
167
175
  _loop_1(section);
168
176
  }
169
177
  var CBRStep = Object.values(form.steps).find(function (step) { return step.type.startsWith('CBR'); });
@@ -4,6 +4,7 @@ interface ConfirmationDialogProps {
4
4
  confirmation: {
5
5
  case: string;
6
6
  url: string;
7
+ idTicket: string;
7
8
  };
8
9
  customConfirmation?: AppProps['customConfirmation'];
9
10
  onClose: () => void;
@@ -86,6 +86,7 @@ function ConfirmationDialog(_a) {
86
86
  } }, { children: _jsx(CloseRoundedIcon, { fontSize: "inherit" }) })), !customConfirmation && (_jsxs("div", __assign({ className: styles.container }, { children: [renderIcon(), renderConfirmation(), renderLink()] }))), customConfirmation === null || customConfirmation === void 0 ? void 0 : customConfirmation({
87
87
  url: confirmation.url,
88
88
  caseNumber: confirmation.case,
89
+ idTicket: confirmation.idTicket,
89
90
  }, renderIcon, renderConfirmation, renderLink, onClose)] })) })));
90
91
  }
91
92
  export default ConfirmationDialog;
@@ -208,7 +208,7 @@ export var calcMapperSubSteps = function (step, elements, customSteps) {
208
208
  return newSteps;
209
209
  };
210
210
  function calcStepDependency(idStep, steps, values, customSteps) {
211
- var _a, _b;
211
+ var _a, _b, _c, _d;
212
212
  var depStep = steps[idStep];
213
213
  if (!depStep) {
214
214
  var originalValue_1 = values.global[idStep];
@@ -222,9 +222,11 @@ function calcStepDependency(idStep, steps, values, customSteps) {
222
222
  };
223
223
  }
224
224
  var originalValue = (_b = (_a = values.sections[depStep.idSection]) === null || _a === void 0 ? void 0 : _a[depStep.id]) !== null && _b !== void 0 ? _b : values.global[depStep.id];
225
+ if (!depStep.stepPath)
226
+ console.error('Missing stepPath', depStep);
225
227
  return {
226
228
  type: depStep.type,
227
- idOriginal: depStep.stepPath[0],
229
+ idOriginal: (_d = (_c = depStep.stepPath) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : [idStep],
228
230
  value: calcStepDependencyValue(depStep, originalValue, customSteps),
229
231
  dependents: [],
230
232
  };
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.110",
4
+ "version":"2.0.111-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",