@wix/form-public 0.577.0 → 0.578.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.js CHANGED
@@ -43884,6 +43884,7 @@ var EXPERIMENTS = {
43884
43884
  STREETLESS_LOCALITY_FALLBACK: "streetlessLocalityFallback",
43885
43885
  SUBMIT_SUCCESS_NO_FOCUS: "specs.forms.SubmitSuccessNoFocus",
43886
43886
  USE_FIELDS_V2: "specs.forms.UseFieldsV2",
43887
+ USE_FIELDS_V2_EVENTS: "useFieldsV2Events",
43887
43888
  USE_FIELDS_V2_PP: "useFieldsV2PP",
43888
43889
  USE_FIELDS_V2_QUIZZES: "useFieldsV2Quizzes",
43889
43890
  USE_FIELDS_V2_STANDALONE: "useFieldsV2Standalone"};
@@ -51126,7 +51127,8 @@ var useFormView2 = (form, stepId, breakpoint) => {
51126
51127
  const useFieldsV2PP = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2_PP);
51127
51128
  const useFormSchemaV2PricingPlans = experiments.isExperimentEnabled(EXPERIMENTS.ENABLE_FORM_SCHEMA_V2_PRICING_PLANS);
51128
51129
  const useFormSchemaV2Quizzes = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2_QUIZZES);
51129
- const useFieldsV2 = useFieldsV2App || useFieldsV2Standalone || useFormSchemaV2Quizzes || useFieldsV2PP || useFormSchemaV2PricingPlans;
51130
+ const useFieldsV2Events = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2_EVENTS);
51131
+ const useFieldsV2 = useFieldsV2App || useFieldsV2Events || useFieldsV2Standalone || useFormSchemaV2Quizzes || useFieldsV2PP || useFormSchemaV2PricingPlans;
51130
51132
  return useMemo(() => {
51131
51133
  return (form?.steps || []).filter((step) => !stepId || stepId === step.id).map((step) => {
51132
51134
  return createFormView({