smoothly 1.0.0-alpha.197 → 1.0.0-alpha.198

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.
@@ -2046,7 +2046,7 @@ class Handler$h {
2046
2046
  return typeof data == "string" ? data : "";
2047
2047
  }
2048
2048
  fromString(value) {
2049
- return typeof value == "string" ? value : undefined;
2049
+ return typeof value == "string" && !!value ? value : undefined;
2050
2050
  }
2051
2051
  format(unformatted) {
2052
2052
  return { ...unformatted, type: "tel", autocomplete: "cc-csc", length: [3, 3], pattern: /^\d{3}$/ };
@@ -2093,7 +2093,7 @@ class Handler$f {
2093
2093
  return typeof data == "string" ? data : "";
2094
2094
  }
2095
2095
  fromString(value) {
2096
- return typeof value == "string" ? value : undefined;
2096
+ return typeof value == "string" && !!value ? value : undefined;
2097
2097
  }
2098
2098
  format(unformatted) {
2099
2099
  const issuer = getIssuer(unformatted.value);
@@ -2738,7 +2738,7 @@ class Handler$8 {
2738
2738
  return typeof data == "string" ? data : "";
2739
2739
  }
2740
2740
  fromString(value) {
2741
- return typeof value == "string" ? value : undefined;
2741
+ return typeof value == "string" && !!value ? value : undefined;
2742
2742
  }
2743
2743
  split(unformatted) {
2744
2744
  let previousSymbol;
@@ -2812,7 +2812,7 @@ class Handler$7 {
2812
2812
  return typeof data == "string" ? data : "";
2813
2813
  }
2814
2814
  fromString(value) {
2815
- return typeof value == "string" ? value : undefined;
2815
+ return typeof value == "string" && !!value ? value : undefined;
2816
2816
  }
2817
2817
  format(unformatted) {
2818
2818
  let result = unformatted;
@@ -2867,7 +2867,7 @@ class Handler$5 {
2867
2867
  return typeof data == "string" ? data : "";
2868
2868
  }
2869
2869
  fromString(value) {
2870
- return typeof value == "string" ? value : undefined;
2870
+ return typeof value == "string" && !!value ? value : undefined;
2871
2871
  }
2872
2872
  format(unformatted) {
2873
2873
  return { ...unformatted, type: "password", autocomplete: "current-password" };
@@ -3209,7 +3209,7 @@ class Handler$3 {
3209
3209
  return typeof data == "string" ? data : "";
3210
3210
  }
3211
3211
  fromString(value) {
3212
- return typeof value == "string" ? value : undefined;
3212
+ return typeof value == "string" && !!value ? value : undefined;
3213
3213
  }
3214
3214
  format(unformatted) {
3215
3215
  let result = unformatted;
@@ -3286,7 +3286,7 @@ class Handler$2 {
3286
3286
  return typeof data == "string" ? data : "";
3287
3287
  }
3288
3288
  fromString(value) {
3289
- return typeof value == "string" ? value : undefined;
3289
+ return typeof value == "string" && !!value ? value : undefined;
3290
3290
  }
3291
3291
  format(unformatted) {
3292
3292
  const result = !unformatted.value.includes(" ") && unformatted.value.length >= 4 ? unformatted.insert(3, " ") : unformatted;
@@ -3372,7 +3372,7 @@ class Handler {
3372
3372
  return typeof data == "string" ? data : "";
3373
3373
  }
3374
3374
  fromString(value) {
3375
- return typeof value == "string" ? value : undefined;
3375
+ return typeof value == "string" && !!value ? value : undefined;
3376
3376
  }
3377
3377
  format(unformatted) {
3378
3378
  return { ...unformatted, type: "text", ...this.settings };