@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.js CHANGED
@@ -17958,7 +17958,7 @@ var ExplanationTextKey = "explanationText";
17958
17958
  var MediaKey = "media";
17959
17959
  var UploadEnabledKey = "uploadEnabled";
17960
17960
  var FirstDayOfWeekKey = "firstDayOfWeek";
17961
- var DefaultCountryCodeKey = "defaultCountryCode";
17961
+ var DefaultCountryCodeKey = "defaultCountry";
17962
17962
  var ImageResizeKey = "imageResize";
17963
17963
  var ShowFlagKey = "showFlag";
17964
17964
  var NameKey = "name";
@@ -21645,11 +21645,11 @@ var TextAreaMapper = (props) => ({
21645
21645
  ...BaseMapper(props)
21646
21646
  });
21647
21647
  var PhoneInputMapper = (props) => {
21648
- const { defaultCountry, validation } = props;
21648
+ const { defaultCountry, defaultCountryCode, validation } = props;
21649
21649
  return {
21650
21650
  ...props,
21651
21651
  ...BaseMapper(props),
21652
- defaultCountryCode: defaultCountry,
21652
+ defaultCountryCode: defaultCountry ?? defaultCountryCode,
21653
21653
  allowedCountryCodes: validation?.string?.phoneOptions?.allowedCountryCodes
21654
21654
  };
21655
21655
  };