@descope/flow-components 2.0.100 → 2.0.101

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
@@ -233,7 +233,7 @@ const TOTPLink = React__default.default.forwardRef(({ ...props }, ref) => {
233
233
  });
234
234
 
235
235
  /* eslint-disable @typescript-eslint/no-unused-vars */
236
- const UploadFile = React__default.default.forwardRef(({ title, description, required, fullWidth, size, icon, buttonProps, inputProps }, ref) => React__default.default.createElement("div", { ref: ref }, "NOT SUPPORTED"));
236
+ const UploadFile = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-upload-file", { ref: ref, ...props }));
237
237
 
238
238
  const Recaptcha = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-recaptcha", { ref: ref, ...props }));
239
239
 
package/dist/index.d.ts CHANGED
@@ -353,14 +353,27 @@ declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$2, "ref"> & R
353
353
  type Props$1 = {
354
354
  title?: string;
355
355
  description?: string;
356
+ icon?: string;
356
357
  size?: ComponentSize;
357
- fullWidth?: boolean;
358
+ 'button-label'?: string;
359
+ 'button-mode'?: string;
360
+ 'button-variant'?: string;
361
+ accept?: string;
362
+ name?: string;
363
+ readonly?: boolean;
358
364
  required?: boolean;
359
- icon?: string;
360
- buttonProps?: React.ComponentProps<typeof Button>;
361
- inputProps?: React.ComponentProps<typeof TextField>;
365
+ bordered?: boolean;
366
+ 'full-width'?: boolean;
367
+ 'data-errormessage-value-missing'?: string;
362
368
  };
363
- declare const UploadFile: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLInputElement>>;
369
+ declare global {
370
+ namespace JSX {
371
+ interface IntrinsicElements {
372
+ 'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$1;
373
+ }
374
+ }
375
+ }
376
+ declare const UploadFile: React.ForwardRefExoticComponent<Props$1 & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
364
377
 
365
378
  type Props = {
366
379
  disabled?: boolean;
package/dist/index.esm.js CHANGED
@@ -227,7 +227,7 @@ const TOTPLink = React.forwardRef(({ ...props }, ref) => {
227
227
  });
228
228
 
229
229
  /* eslint-disable @typescript-eslint/no-unused-vars */
230
- const UploadFile = React.forwardRef(({ title, description, required, fullWidth, size, icon, buttonProps, inputProps }, ref) => React.createElement("div", { ref: ref }, "NOT SUPPORTED"));
230
+ const UploadFile = React.forwardRef((props, ref) => React.createElement("descope-upload-file", { ref: ref, ...props }));
231
231
 
232
232
  const Recaptcha = React.forwardRef((props, ref) => React.createElement("descope-recaptcha", { ref: ref, ...props }));
233
233
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.100",
3
+ "version": "2.0.101",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -80,7 +80,6 @@
80
80
  "eslint-plugin-promise": "6.1.1",
81
81
  "eslint-plugin-react": "^7.30.1",
82
82
  "eslint-plugin-testing-library": "^5.6.0",
83
- "flat": "^5.0.2",
84
83
  "husky": "^8.0.1",
85
84
  "jest": "^29.0.0",
86
85
  "jest-environment-jsdom": "29.6.4",