@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 +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -43121,6 +43121,7 @@ var ForcedState = /* @__PURE__ */ (function(ForcedState2) {
|
|
|
43121
43121
|
ForcedState2["INPUT_FIELDS_FOCUS"] = "INPUT_FIELDS_FOCUS";
|
|
43122
43122
|
ForcedState2["INPUT_FIELDS_ERROR"] = "INPUT_FIELDS_ERROR";
|
|
43123
43123
|
ForcedState2["SUCCESS_MESSAGE"] = "SUCCESS_MESSAGE";
|
|
43124
|
+
ForcedState2["HIDDEN_FIELDS"] = "HIDDEN_FIELDS";
|
|
43124
43125
|
return ForcedState2;
|
|
43125
43126
|
})({});
|
|
43126
43127
|
var ForcedStateContext = createContext([]);
|
|
@@ -49908,6 +49909,7 @@ var useFormValues = (form, values, onChange, userData, addressTemplates, enableA
|
|
|
49908
49909
|
};
|
|
49909
49910
|
var useFormView2 = (form, stepId, breakpoint) => {
|
|
49910
49911
|
const { isMobile: isMobile2 } = useConfig();
|
|
49912
|
+
const includeHiddenFields = useForcedState().includes(ForcedState.HIDDEN_FIELDS);
|
|
49911
49913
|
const experiments = useExperiments();
|
|
49912
49914
|
const useFieldsV2App = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2);
|
|
49913
49915
|
const useFieldsV2Standalone = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2_STANDALONE);
|
|
@@ -49922,7 +49924,8 @@ var useFormView2 = (form, stepId, breakpoint) => {
|
|
|
49922
49924
|
stepId: step.id,
|
|
49923
49925
|
isMobile: isMobile2,
|
|
49924
49926
|
breakpoint,
|
|
49925
|
-
useFieldsV2
|
|
49927
|
+
useFieldsV2,
|
|
49928
|
+
includeHiddenFields
|
|
49926
49929
|
});
|
|
49927
49930
|
});
|
|
49928
49931
|
}, [
|
|
@@ -49930,7 +49933,8 @@ var useFormView2 = (form, stepId, breakpoint) => {
|
|
|
49930
49933
|
stepId,
|
|
49931
49934
|
isMobile2,
|
|
49932
49935
|
breakpoint,
|
|
49933
|
-
useFieldsV2
|
|
49936
|
+
useFieldsV2,
|
|
49937
|
+
includeHiddenFields
|
|
49934
49938
|
]);
|
|
49935
49939
|
};
|
|
49936
49940
|
var useReportFieldEdit = (form) => {
|