@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.cjs CHANGED
@@ -43894,6 +43894,7 @@ var EXPERIMENTS = {
43894
43894
  STREETLESS_LOCALITY_FALLBACK: "streetlessLocalityFallback",
43895
43895
  SUBMIT_SUCCESS_NO_FOCUS: "specs.forms.SubmitSuccessNoFocus",
43896
43896
  USE_FIELDS_V2: "specs.forms.UseFieldsV2",
43897
+ USE_FIELDS_V2_EVENTS: "useFieldsV2Events",
43897
43898
  USE_FIELDS_V2_PP: "useFieldsV2PP",
43898
43899
  USE_FIELDS_V2_QUIZZES: "useFieldsV2Quizzes",
43899
43900
  USE_FIELDS_V2_STANDALONE: "useFieldsV2Standalone"};
@@ -51136,7 +51137,8 @@ var useFormView2 = (form, stepId, breakpoint) => {
51136
51137
  const useFieldsV2PP = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2_PP);
51137
51138
  const useFormSchemaV2PricingPlans = experiments.isExperimentEnabled(EXPERIMENTS.ENABLE_FORM_SCHEMA_V2_PRICING_PLANS);
51138
51139
  const useFormSchemaV2Quizzes = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2_QUIZZES);
51139
- const useFieldsV2 = useFieldsV2App || useFieldsV2Standalone || useFormSchemaV2Quizzes || useFieldsV2PP || useFormSchemaV2PricingPlans;
51140
+ const useFieldsV2Events = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2_EVENTS);
51141
+ const useFieldsV2 = useFieldsV2App || useFieldsV2Events || useFieldsV2Standalone || useFormSchemaV2Quizzes || useFieldsV2PP || useFormSchemaV2PricingPlans;
51140
51142
  return React177.useMemo(() => {
51141
51143
  return (form?.steps || []).filter((step) => !stepId || stepId === step.id).map((step) => {
51142
51144
  return createFormView({