@descope/flow-components 2.2.50 → 2.2.52

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.
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "2.2.50",
8
+ "buildVersion": "2.2.52",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
@@ -5,7 +5,7 @@
5
5
  "name": "flowComponents",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "2.2.50",
8
+ "buildVersion": "2.2.52",
9
9
  "buildName": "@descope/flow-components"
10
10
  },
11
11
  "remoteEntry": {
package/dist/index.cjs.js CHANGED
@@ -99267,9 +99267,10 @@ descope-enriched-text {
99267
99267
  vars: vars$f
99268
99268
  });
99269
99269
 
99270
- const NUMERIC_RE = /^\d+$/;
99270
+ // Matches any character that is not a digit, whitespace, or phone formatting character (+, -, (, ))
99271
+ const INVALID_PHONE_CHARS_RE = /[^\d\s+\-()]/;
99271
99272
 
99272
- const isNumericValue = (val) => NUMERIC_RE.test(val.replaceAll('+', '').replaceAll('-', ''));
99273
+ const isNumericValue = (val) => !!val && !INVALID_PHONE_CHARS_RE.test(val);
99273
99274
 
99274
99275
  const sanitizeCountryCodePrefix = (val) => val.replace(/\+\d+-/, '');
99275
99276
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.2.50",
3
+ "version": "2.2.52",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -24,8 +24,8 @@
24
24
  ]
25
25
  },
26
26
  "devDependencies": {
27
- "@babel/core": "7.28.6",
28
- "@babel/preset-env": "7.28.6",
27
+ "@babel/core": "7.29.0",
28
+ "@babel/preset-env": "7.29.0",
29
29
  "@babel/preset-react": "7.28.5",
30
30
  "@babel/preset-typescript": "7.28.5",
31
31
  "@module-federation/enhanced": "0.13.1",
@@ -96,7 +96,7 @@
96
96
  "webpack-dev-server": "5.2.3"
97
97
  },
98
98
  "dependencies": {
99
- "@descope/web-components-ui": "2.2.50"
99
+ "@descope/web-components-ui": "2.2.52"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "react": ">= 18"