@descope/flow-components 2.0.381 → 2.0.383

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.cjs.js CHANGED
@@ -295,7 +295,8 @@ const NOTPLink = React__default.default.forwardRef(({ ...props }, ref) => {
295
295
  /* eslint-disable @typescript-eslint/no-unused-vars */
296
296
  const UploadFile = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-upload-file", { ref: ref, ...props }));
297
297
 
298
- const Recaptcha = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-recaptcha", { ref: ref, ...props }));
298
+ const defaultText = 'This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms)';
299
+ const Recaptcha = React__default.default.forwardRef(({ variant, textLabel = defaultText, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, ...props }, ref) => (React__default.default.createElement("descope-recaptcha", { ref: ref, ...props, "full-width": fullWidth }, variant === 'text' ? (React__default.default.createElement("descope-enriched-text", { "full-width": fullWidth, readonly: readOnly, variant: textVariant, mode: textMode, "text-align": textAlign }, textLabel)) : null)));
299
300
 
300
301
  const ButtonSelectionGroup = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-button-selection-group", { ...props, ref: ref }));
301
302
  ButtonSelectionGroup.defaultProps = {
package/dist/index.d.ts CHANGED
@@ -289,7 +289,9 @@ declare global {
289
289
  namespace JSX {
290
290
  interface IntrinsicElements {
291
291
  'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$r;
292
- 'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$r;
292
+ 'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$r & {
293
+ readonly?: boolean;
294
+ };
293
295
  }
294
296
  }
295
297
  }
@@ -377,6 +379,13 @@ type Props$l = {
377
379
  'site-key'?: string;
378
380
  enterprise?: boolean;
379
381
  action?: string;
382
+ variant?: 'text';
383
+ textLabel?: string;
384
+ textVariant?: TypographyVariants;
385
+ textMode?: Mode;
386
+ textAlign?: TextAlign;
387
+ 'full-width'?: boolean;
388
+ readOnly?: boolean;
380
389
  };
381
390
  declare global {
382
391
  interface Window {
package/dist/index.esm.js CHANGED
@@ -289,7 +289,8 @@ const NOTPLink = React.forwardRef(({ ...props }, ref) => {
289
289
  /* eslint-disable @typescript-eslint/no-unused-vars */
290
290
  const UploadFile = React.forwardRef((props, ref) => React.createElement("descope-upload-file", { ref: ref, ...props }));
291
291
 
292
- const Recaptcha = React.forwardRef((props, ref) => React.createElement("descope-recaptcha", { ref: ref, ...props }));
292
+ const defaultText = 'This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms)';
293
+ const Recaptcha = React.forwardRef(({ variant, textLabel = defaultText, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, ...props }, ref) => (React.createElement("descope-recaptcha", { ref: ref, ...props, "full-width": fullWidth }, variant === 'text' ? (React.createElement("descope-enriched-text", { "full-width": fullWidth, readonly: readOnly, variant: textVariant, mode: textMode, "text-align": textAlign }, textLabel)) : null)));
293
294
 
294
295
  const ButtonSelectionGroup = React.forwardRef((props, ref) => React.createElement("descope-button-selection-group", { ...props, ref: ref }));
295
296
  ButtonSelectionGroup.defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.381",
3
+ "version": "2.0.383",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -77,7 +77,7 @@
77
77
  "eslint-plugin-no-only-tests": "3.3.0",
78
78
  "eslint-plugin-prefer-arrow": "1.2.3",
79
79
  "eslint-plugin-prettier": "5.2.1",
80
- "eslint-plugin-promise": "7.2.0",
80
+ "eslint-plugin-promise": "7.2.1",
81
81
  "eslint-plugin-react": "^7.30.1",
82
82
  "eslint-plugin-testing-library": "^7.0.0",
83
83
  "husky": "^9.0.0",
@@ -102,7 +102,7 @@
102
102
  "typescript": "^5.0.0"
103
103
  },
104
104
  "dependencies": {
105
- "@descope/web-components-ui": "1.0.406"
105
+ "@descope/web-components-ui": "1.0.407"
106
106
  },
107
107
  "peerDependencies": {
108
108
  "react": ">=17"