@descope/flow-components 3.23.0 → 3.23.1
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/fm/222.js +1 -1
- package/dist/fm/222.js.map +1 -1
- package/dist/fm/467.js +1 -1
- package/dist/fm/467.js.map +1 -1
- package/dist/fm/734.js +1 -1
- package/dist/fm/734.js.map +1 -1
- package/dist/fm/985.js +1 -1
- package/dist/fm/985.js.map +1 -1
- package/dist/fm/@mf-types/compiled-types/RecaptchaV2/RecaptchaV2.d.ts +1 -0
- package/dist/fm/__federation_expose_componentClasses.js +1 -1
- package/dist/fm/__federation_expose_componentClasses.js.map +1 -1
- package/dist/fm/__federation_expose_components.js +1 -1
- package/dist/fm/__federation_expose_theme.js +1 -1
- package/dist/fm/__federation_expose_theme.js.map +1 -1
- package/dist/fm/flowComponents.js +1 -1
- package/dist/fm/flowComponents.js.map +1 -1
- package/dist/fm/main.js +1 -1
- package/dist/fm/main.js.map +1 -1
- package/dist/fm/mf-manifest.json +1 -1
- package/dist/fm/mf-stats.json +1 -1
- package/dist/index.cjs.js +4 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +4 -2
- package/dist/types/RecaptchaV2/RecaptchaV2.d.ts +1 -0
- package/package.json +2 -2
package/dist/fm/mf-manifest.json
CHANGED
package/dist/fm/mf-stats.json
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -111800,7 +111800,7 @@ const Recaptcha = React__default.default.forwardRef(({ variant = 'text', textLab
|
|
|
111800
111800
|
});
|
|
111801
111801
|
|
|
111802
111802
|
const defaultText$1 = '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) apply.';
|
|
111803
|
-
const RecaptchaV2 = React__default.default.forwardRef(({ textLabel = defaultText$1, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector: _connector, enterprise, action, enabled = true, variant = 'text', src, width, height, ...props }, ref) => {
|
|
111803
|
+
const RecaptchaV2 = React__default.default.forwardRef(({ textLabel = defaultText$1, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector: _connector, name, enterprise, action, enabled = true, variant = 'text', src, width, height, ...props }, ref) => {
|
|
111804
111804
|
if (variant === 'hide') {
|
|
111805
111805
|
return null;
|
|
111806
111806
|
}
|
|
@@ -111808,8 +111808,10 @@ const RecaptchaV2 = React__default.default.forwardRef(({ textLabel = defaultText
|
|
|
111808
111808
|
// challenge, or nothing) into descope-recaptcha and mirrors the token into its hidden input,
|
|
111809
111809
|
// which is what the form validation reads.
|
|
111810
111810
|
if (variant === 'widget') {
|
|
111811
|
-
return (React__default.default.createElement(Recaptcha, { ref: ref, variant: "widget", enterprise: enterprise, action: action, enabled: enabled, "full-width": fullWidth, ...props }));
|
|
111811
|
+
return (React__default.default.createElement(Recaptcha, { ref: ref, variant: "widget", enterprise: enterprise, action: action, enabled: enabled, "full-width": fullWidth, name: name, ...props }));
|
|
111812
111812
|
}
|
|
111813
|
+
// Only the widget is a form field. The runtime validates every element with a `name`, and the
|
|
111814
|
+
// text/image elements cannot validate, so carrying it there blocks the screen's submit.
|
|
111813
111815
|
if (variant === 'image') {
|
|
111814
111816
|
return (React__default.default.createElement("descope-image", { ref: ref, "full-width": fullWidth, "st-width": width, "st-height": height, src: src, ...props }));
|
|
111815
111817
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -571,6 +571,7 @@ declare global {
|
|
|
571
571
|
declare const Recaptcha: React.ForwardRefExoticComponent<Props$B & React.HTMLAttributes<HTMLDivElement, any> & React.RefAttributes<HTMLDivElement>>;
|
|
572
572
|
|
|
573
573
|
type Props$A = {
|
|
574
|
+
name?: string;
|
|
574
575
|
connector?: string;
|
|
575
576
|
enterprise?: boolean;
|
|
576
577
|
action?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -436,7 +436,7 @@ const Recaptcha = React.forwardRef(({ variant = 'text', textLabel = defaultText$
|
|
|
436
436
|
});
|
|
437
437
|
|
|
438
438
|
const defaultText$1 = '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) apply.';
|
|
439
|
-
const RecaptchaV2 = React.forwardRef(({ textLabel = defaultText$1, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector: _connector, enterprise, action, enabled = true, variant = 'text', src, width, height, ...props }, ref) => {
|
|
439
|
+
const RecaptchaV2 = React.forwardRef(({ textLabel = defaultText$1, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector: _connector, name, enterprise, action, enabled = true, variant = 'text', src, width, height, ...props }, ref) => {
|
|
440
440
|
if (variant === 'hide') {
|
|
441
441
|
return null;
|
|
442
442
|
}
|
|
@@ -444,8 +444,10 @@ const RecaptchaV2 = React.forwardRef(({ textLabel = defaultText$1, textVariant =
|
|
|
444
444
|
// challenge, or nothing) into descope-recaptcha and mirrors the token into its hidden input,
|
|
445
445
|
// which is what the form validation reads.
|
|
446
446
|
if (variant === 'widget') {
|
|
447
|
-
return (React.createElement(Recaptcha, { ref: ref, variant: "widget", enterprise: enterprise, action: action, enabled: enabled, "full-width": fullWidth, ...props }));
|
|
447
|
+
return (React.createElement(Recaptcha, { ref: ref, variant: "widget", enterprise: enterprise, action: action, enabled: enabled, "full-width": fullWidth, name: name, ...props }));
|
|
448
448
|
}
|
|
449
|
+
// Only the widget is a form field. The runtime validates every element with a `name`, and the
|
|
450
|
+
// text/image elements cannot validate, so carrying it there blocks the screen's submit.
|
|
449
451
|
if (variant === 'image') {
|
|
450
452
|
return (React.createElement("descope-image", { ref: ref, "full-width": fullWidth, "st-width": width, "st-height": height, src: src, ...props }));
|
|
451
453
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "3.23.
|
|
3
|
+
"version": "3.23.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"webpack-subresource-integrity": "5.2.0-rc.1"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
|
-
"@descope/web-components-ui": "3.23.
|
|
101
|
+
"@descope/web-components-ui": "3.23.1"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
104
|
"react": ">= 18"
|