@descope/flow-components 2.0.79 → 2.0.80

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
@@ -223,10 +223,7 @@ const TOTPLink = React__default.default.forwardRef(({ ...props }, ref) => {
223
223
  /* eslint-disable @typescript-eslint/no-unused-vars */
224
224
  const UploadFile = React__default.default.forwardRef(({ title, description, required, fullWidth, size, icon, buttonProps, inputProps }, ref) => React__default.default.createElement("div", { ref: ref }, "NOT SUPPORTED"));
225
225
 
226
- /* eslint-disable react/no-unused-prop-types */
227
- const Recaptcha = React__default.default.forwardRef((props, ref) => (React__default.default.createElement("div", { ref: ref },
228
- "NOT SUPPORTED",
229
- React__default.default.createElement("img", { style: { minWidth: 256, maxWidth: 256 }, src: "https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png", alt: "recaptcha" }))));
226
+ const Recaptcha = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-recaptcha", { ref: ref, ...props }));
230
227
 
231
228
  exports.Boolean = Boolean;
232
229
  exports.Button = Button;
package/dist/index.d.ts CHANGED
@@ -357,15 +357,20 @@ type Props$1 = {
357
357
  declare const UploadFile: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLInputElement>>;
358
358
 
359
359
  type Props = {
360
- enabled?: 'true' | 'false';
360
+ disabled?: boolean;
361
361
  'site-key'?: string;
362
- enterprise?: 'true' | 'false';
362
+ enterprise?: boolean;
363
363
  action?: string;
364
364
  };
365
365
  declare global {
366
366
  interface Window {
367
367
  onRecaptchaLoadCallback: () => void;
368
368
  }
369
+ namespace JSX {
370
+ interface IntrinsicElements {
371
+ 'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props;
372
+ }
373
+ }
369
374
  }
370
375
  declare const Recaptcha: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
371
376
 
package/dist/index.esm.js CHANGED
@@ -217,9 +217,6 @@ const TOTPLink = React.forwardRef(({ ...props }, ref) => {
217
217
  /* eslint-disable @typescript-eslint/no-unused-vars */
218
218
  const UploadFile = React.forwardRef(({ title, description, required, fullWidth, size, icon, buttonProps, inputProps }, ref) => React.createElement("div", { ref: ref }, "NOT SUPPORTED"));
219
219
 
220
- /* eslint-disable react/no-unused-prop-types */
221
- const Recaptcha = React.forwardRef((props, ref) => (React.createElement("div", { ref: ref },
222
- "NOT SUPPORTED",
223
- React.createElement("img", { style: { minWidth: 256, maxWidth: 256 }, src: "https://imgs.descope.com/connectors/templates/recaptcha/recaptcha-big.png", alt: "recaptcha" }))));
220
+ const Recaptcha = React.forwardRef((props, ref) => React.createElement("descope-recaptcha", { ref: ref, ...props }));
224
221
 
225
222
  export { Boolean, Button, Checkbox, Code, Container, Divider, Image, Input, Link, Loader, Logo, NewPassword, NumberField, Password, Phone, Recaptcha, Select, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, apple, discord, facebook, fingerprint, github, gitlab, google, linkedin, microsoft, passkey, sso };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.79",
3
+ "version": "2.0.80",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",