@arquimedes.co/eureka-forms 3.0.53-test → 3.0.54-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.
@@ -25,7 +25,7 @@ function MapperElementComponent(props) {
25
25
  const mapSubSteps = () => {
26
26
  return (_jsx(CustomContext.Provider, { value: nestedCustomContext, children: step.rootSteps.map((idSubStep) => {
27
27
  const subStep = form.steps[element.ids[idSubStep]];
28
- return (_createElement(StepComponent, { ...props, editable: editable ? (step.editable ?? true) : false, step: subStep, key: element.ids[idSubStep] }));
28
+ return (_createElement(StepComponent, { ...props, editable: editable ? (step.editable ?? true) : false, step: subStep, key: idSubStep }));
29
29
  }) }));
30
30
  };
31
31
  switch (step.style?.type) {
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
2
  import FormStepTypes from '../constants/FormStepTypes';
3
3
  import SelectorStep from './SelectorStep/SelectorStep';
4
4
  import SeparatorStep from './SeparatorStep/SeparatorStep';
@@ -28,10 +28,11 @@ function StepComponent({ step, ...props }) {
28
28
  const { postview, partial } = useAppSelector((state) => state.global);
29
29
  const { customSteps, customClientInfoStep } = useContext(CustomContext);
30
30
  const originalValue = useAppSelector((state) => selectOriginalValue(state, step));
31
- const showStep = useCondition(step.condition);
31
+ const showStep = useCondition(step?.condition);
32
+ /** A rootSteps entry with no matching step definition must not take the whole form down with it. */
32
33
  if (!step) {
33
34
  console.error('Step not found!', step);
34
- return _jsx("div", {});
35
+ return _jsx(_Fragment, {});
35
36
  }
36
37
  if (!showStep)
37
38
  return _jsx(_Fragment, {});
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":"3.0.53-test",
4
+ "version":"3.0.54-test",
5
5
  "scripts": {
6
6
  "watch": "tsgo --noEmit --watch --project tsconfig.app.json",
7
7
  "start": "vite",