@descope/flow-components 2.0.382 → 2.0.384
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 +2 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.esm.js +2 -1
- package/package.json +3 -3
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "2.0.384",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"eslint-config-airbnb-typescript": "18.0.0",
|
|
68
68
|
"eslint-config-prettier": "9.1.0",
|
|
69
69
|
"eslint-config-standard": "17.1.0",
|
|
70
|
-
"eslint-import-resolver-typescript": "3.
|
|
70
|
+
"eslint-import-resolver-typescript": "3.7.0",
|
|
71
71
|
"eslint-plugin-import": "2.31.0",
|
|
72
72
|
"eslint-plugin-jest": "28.9.0",
|
|
73
73
|
"eslint-plugin-jest-dom": "5.4.0",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"typescript": "^5.0.0"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@descope/web-components-ui": "1.0.
|
|
105
|
+
"@descope/web-components-ui": "1.0.407"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"react": ">=17"
|