powr-sdk-web 6.17.1 → 6.17.2

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.
@@ -162,7 +162,7 @@ var PhoneInput = function PhoneInput(_ref) {
162
162
  var next = e.target.value;
163
163
  var digits = next.replace(/\D/g, '');
164
164
  if (digits.length >= 6) {
165
- applyIngested((0, _phone.ingestPhoneInput)(next.startsWith('+') ? next : "+".concat(digits), country));
165
+ applyIngested((0, _phone.ingestPhoneInput)(next, country));
166
166
  setCountryOpen(false);
167
167
  setCountryQuery('');
168
168
  if (numberRef.current) numberRef.current.focus();
@@ -188,14 +188,6 @@ function ingestPhoneInput(raw) {
188
188
  };
189
189
  }
190
190
  }
191
- var parsed = parsePhone(trimmed, currentCountry) || parsePhone(digits, currentCountry);
192
- if (parsed !== null && parsed !== void 0 && parsed.nationalNumber) {
193
- var nextCountry = parsed.country || currentCountry;
194
- return {
195
- country: nextCountry,
196
- localNumber: capNationalDigits(String(parsed.nationalNumber), nextCountry)
197
- };
198
- }
199
191
  var local = digits;
200
192
  try {
201
193
  var calling = String((0, _libphonenumberJs.getCountryCallingCode)(currentCountry));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powr-sdk-web",
3
- "version": "6.17.1",
3
+ "version": "6.17.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist"