@wix/form-public 0.515.0 → 0.516.0

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/index.cjs CHANGED
@@ -43131,6 +43131,7 @@ var ForcedState = /* @__PURE__ */ (function(ForcedState2) {
43131
43131
  ForcedState2["INPUT_FIELDS_FOCUS"] = "INPUT_FIELDS_FOCUS";
43132
43132
  ForcedState2["INPUT_FIELDS_ERROR"] = "INPUT_FIELDS_ERROR";
43133
43133
  ForcedState2["SUCCESS_MESSAGE"] = "SUCCESS_MESSAGE";
43134
+ ForcedState2["HIDDEN_FIELDS"] = "HIDDEN_FIELDS";
43134
43135
  return ForcedState2;
43135
43136
  })({});
43136
43137
  var ForcedStateContext = React172.createContext([]);
@@ -49918,6 +49919,7 @@ var useFormValues = (form, values, onChange, userData, addressTemplates, enableA
49918
49919
  };
49919
49920
  var useFormView2 = (form, stepId, breakpoint) => {
49920
49921
  const { isMobile: isMobile2 } = useConfig();
49922
+ const includeHiddenFields = useForcedState().includes(ForcedState.HIDDEN_FIELDS);
49921
49923
  const experiments = useExperiments();
49922
49924
  const useFieldsV2App = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2);
49923
49925
  const useFieldsV2Standalone = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2_STANDALONE);
@@ -49932,7 +49934,8 @@ var useFormView2 = (form, stepId, breakpoint) => {
49932
49934
  stepId: step.id,
49933
49935
  isMobile: isMobile2,
49934
49936
  breakpoint,
49935
- useFieldsV2
49937
+ useFieldsV2,
49938
+ includeHiddenFields
49936
49939
  });
49937
49940
  });
49938
49941
  }, [
@@ -49940,7 +49943,8 @@ var useFormView2 = (form, stepId, breakpoint) => {
49940
49943
  stepId,
49941
49944
  isMobile2,
49942
49945
  breakpoint,
49943
- useFieldsV2
49946
+ useFieldsV2,
49947
+ includeHiddenFields
49944
49948
  ]);
49945
49949
  };
49946
49950
  var useReportFieldEdit = (form) => {