@descope/flow-components 2.0.481 → 2.0.482

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.d.ts CHANGED
@@ -224,6 +224,7 @@ type Props$y = {
224
224
  'data-password-policy-message-uppercase'?: string;
225
225
  'data-password-policy-message-number'?: string;
226
226
  'data-password-policy-message-nonalphanumeric'?: string;
227
+ 'data-password-policy-message-passwordstrength'?: string;
227
228
  'data-password-policy-value-minlength'?: string;
228
229
  'st-policy-preview-background-color'?: string;
229
230
  'st-policy-preview-padding'?: string;
package/dist/index.esm.js CHANGED
@@ -210,6 +210,8 @@ const defaultProps = {
210
210
  'data-password-policy-pattern-uppercase': '[A-Z]',
211
211
  'data-password-policy-pattern-number': '\\d',
212
212
  'data-password-policy-pattern-nonalphanumeric': '[^a-zA-Z0-9]',
213
+ // non-user-editable comparisons
214
+ 'data-password-policy-compare-passwordstrength': 'GTE',
213
215
  // props to override with data from policy
214
216
  'data-password-policy-value-minlength': '8',
215
217
  // translatable props
@@ -218,6 +220,7 @@ const defaultProps = {
218
220
  'data-password-policy-message-uppercase': '1 uppercase letter',
219
221
  'data-password-policy-message-number': '1 number',
220
222
  'data-password-policy-message-nonalphanumeric': '1 symbol',
223
+ 'data-password-policy-message-passwordstrength': 'Password strength',
221
224
  'st-policy-preview-background-color': 'transparent',
222
225
  'st-policy-preview-padding': '0'
223
226
  };
@@ -227,6 +230,7 @@ const NewPassword = React.forwardRef((props, ref) => {
227
230
  id,
228
231
  message: mergedProps[`data-password-policy-message-${id}`],
229
232
  pattern: mergedProps[`data-password-policy-pattern-${id}`],
233
+ compare: mergedProps[`data-password-policy-compare-${id}`],
230
234
  data: mergedProps[`data-password-policy-data-${id}`]
231
235
  }));
232
236
  return (React.createElement("descope-new-password", { ...mergedProps, ref: ref, "available-policies": JSON.stringify(availablePolicies || []) }));
@@ -19,6 +19,7 @@ export type Props = {
19
19
  'data-password-policy-message-uppercase'?: string;
20
20
  'data-password-policy-message-number'?: string;
21
21
  'data-password-policy-message-nonalphanumeric'?: string;
22
+ 'data-password-policy-message-passwordstrength'?: string;
22
23
  'data-password-policy-value-minlength'?: string;
23
24
  'st-policy-preview-background-color'?: string;
24
25
  'st-policy-preview-padding'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.481",
3
+ "version": "2.0.482",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -104,7 +104,7 @@
104
104
  "typescript": "^5.7.2"
105
105
  },
106
106
  "dependencies": {
107
- "@descope/web-components-ui": "1.52.0"
107
+ "@descope/web-components-ui": "1.53.0"
108
108
  },
109
109
  "peerDependencies": {
110
110
  "react": ">= 18"