@wix/form-public 0.49.0 → 0.50.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
@@ -17966,7 +17966,7 @@ var ExplanationTextKey = "explanationText";
17966
17966
  var MediaKey = "media";
17967
17967
  var UploadEnabledKey = "uploadEnabled";
17968
17968
  var FirstDayOfWeekKey = "firstDayOfWeek";
17969
- var DefaultCountryCodeKey = "defaultCountryCode";
17969
+ var DefaultCountryCodeKey = "defaultCountry";
17970
17970
  var ImageResizeKey = "imageResize";
17971
17971
  var ShowFlagKey = "showFlag";
17972
17972
  var NameKey = "name";
@@ -21653,11 +21653,11 @@ var TextAreaMapper = (props) => ({
21653
21653
  ...BaseMapper(props)
21654
21654
  });
21655
21655
  var PhoneInputMapper = (props) => {
21656
- const { defaultCountry, validation } = props;
21656
+ const { defaultCountry, defaultCountryCode, validation } = props;
21657
21657
  return {
21658
21658
  ...props,
21659
21659
  ...BaseMapper(props),
21660
- defaultCountryCode: defaultCountry,
21660
+ defaultCountryCode: defaultCountry ?? defaultCountryCode,
21661
21661
  allowedCountryCodes: validation?.string?.phoneOptions?.allowedCountryCodes
21662
21662
  };
21663
21663
  };