@descope/flow-components 2.0.273 → 2.0.275
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 +3 -0
- package/dist/index.d.ts +91 -79
- package/dist/index.esm.js +3 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -478,12 +478,15 @@ UserAuthMethod.defaultProps = {
|
|
|
478
478
|
editable: false
|
|
479
479
|
};
|
|
480
480
|
|
|
481
|
+
const CodeSnippet = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-code-snippet", { ...props, ref: ref }));
|
|
482
|
+
|
|
481
483
|
exports.Avatar = UserAuthMethod;
|
|
482
484
|
exports.Badge = Badge;
|
|
483
485
|
exports.Boolean = Boolean;
|
|
484
486
|
exports.Button = Button;
|
|
485
487
|
exports.Checkbox = Checkbox;
|
|
486
488
|
exports.Code = Code;
|
|
489
|
+
exports.CodeSnippet = CodeSnippet;
|
|
487
490
|
exports.ComboBox = ComboBox;
|
|
488
491
|
exports.Container = Container;
|
|
489
492
|
exports.Divider = Divider;
|
package/dist/index.d.ts
CHANGED
|
@@ -49,8 +49,8 @@ declare const Switch: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "r
|
|
|
49
49
|
type BooleanType = {
|
|
50
50
|
type: 'switch' | 'checkbox';
|
|
51
51
|
};
|
|
52
|
-
type Props$
|
|
53
|
-
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$
|
|
52
|
+
type Props$u = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
|
|
53
|
+
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$u, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
54
54
|
|
|
55
55
|
declare global {
|
|
56
56
|
namespace JSX {
|
|
@@ -72,17 +72,17 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
|
|
|
72
72
|
'full-width'?: boolean;
|
|
73
73
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
74
74
|
|
|
75
|
-
type Props$
|
|
75
|
+
type Props$t = {
|
|
76
76
|
digits?: number;
|
|
77
77
|
};
|
|
78
78
|
declare global {
|
|
79
79
|
namespace JSX {
|
|
80
80
|
interface IntrinsicElements {
|
|
81
|
-
'descope-passcode': DescopeInputProps & Props$
|
|
81
|
+
'descope-passcode': DescopeInputProps & Props$t;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
85
|
+
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$t, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
86
86
|
|
|
87
87
|
type Never<T extends Record<string, any>> = {
|
|
88
88
|
[K in keyof T]: never;
|
|
@@ -98,7 +98,7 @@ type ContainerAlignment = {
|
|
|
98
98
|
'vertical-alignment'?: FlexAlignment;
|
|
99
99
|
'space-between'?: 'sm' | 'md' | 'lg';
|
|
100
100
|
};
|
|
101
|
-
type Props$
|
|
101
|
+
type Props$s = {
|
|
102
102
|
direction?: 'row' | 'column';
|
|
103
103
|
shadow?: 'md' | 'lg' | 'xl' | '2xl';
|
|
104
104
|
'border-radius'?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
@@ -114,9 +114,9 @@ declare global {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
declare const Container: React.ForwardRefExoticComponent<(Props$
|
|
117
|
+
declare const Container: React.ForwardRefExoticComponent<(Props$s & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
|
|
118
118
|
|
|
119
|
-
type Props$
|
|
119
|
+
type Props$r = {
|
|
120
120
|
vertical?: boolean;
|
|
121
121
|
italic?: boolean;
|
|
122
122
|
variant?: TypographyVariants;
|
|
@@ -126,11 +126,11 @@ type Props$q = {
|
|
|
126
126
|
declare global {
|
|
127
127
|
namespace JSX {
|
|
128
128
|
interface IntrinsicElements {
|
|
129
|
-
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$
|
|
129
|
+
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$r, 'children'>;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$
|
|
133
|
+
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$r, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
134
134
|
|
|
135
135
|
declare const _default$f: ({ noColor, ...props }: {
|
|
136
136
|
[x: string]: any;
|
|
@@ -212,7 +212,7 @@ declare const _default: ({ noColor, ...props }: {
|
|
|
212
212
|
noColor: any;
|
|
213
213
|
}) => React.JSX.Element;
|
|
214
214
|
|
|
215
|
-
type Props$
|
|
215
|
+
type Props$q = {
|
|
216
216
|
width?: string;
|
|
217
217
|
height?: string;
|
|
218
218
|
alt?: string;
|
|
@@ -221,15 +221,15 @@ type Props$p = {
|
|
|
221
221
|
declare global {
|
|
222
222
|
namespace JSX {
|
|
223
223
|
interface IntrinsicElements {
|
|
224
|
-
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
224
|
+
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$q;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
declare const Image: React.ForwardRefExoticComponent<Props$
|
|
228
|
+
declare const Image: React.ForwardRefExoticComponent<Props$q & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
229
229
|
|
|
230
230
|
declare const Input: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
231
231
|
|
|
232
|
-
type Props$
|
|
232
|
+
type Props$p = {
|
|
233
233
|
href?: string | undefined;
|
|
234
234
|
italic?: boolean;
|
|
235
235
|
variant?: TypographyVariants;
|
|
@@ -241,18 +241,18 @@ type Props$o = {
|
|
|
241
241
|
declare global {
|
|
242
242
|
namespace JSX {
|
|
243
243
|
interface IntrinsicElements {
|
|
244
|
-
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$
|
|
244
|
+
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$p, 'children'>;
|
|
245
245
|
}
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
declare const Link: React.ForwardRefExoticComponent<Props$
|
|
248
|
+
declare const Link: React.ForwardRefExoticComponent<Props$p & React.RefAttributes<HTMLAnchorElement>>;
|
|
249
249
|
|
|
250
|
-
type Props$
|
|
250
|
+
type Props$o = {
|
|
251
251
|
variant?: 'linear' | 'radial';
|
|
252
252
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
253
253
|
color?: Mode;
|
|
254
254
|
};
|
|
255
|
-
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
255
|
+
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$o>;
|
|
256
256
|
declare global {
|
|
257
257
|
namespace JSX {
|
|
258
258
|
interface IntrinsicElements {
|
|
@@ -261,22 +261,22 @@ declare global {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
declare const Loader: React.ForwardRefExoticComponent<Props$
|
|
264
|
+
declare const Loader: React.ForwardRefExoticComponent<Props$o & React.RefAttributes<HTMLDivElement>>;
|
|
265
265
|
|
|
266
|
-
type Props$
|
|
266
|
+
type Props$n = {
|
|
267
267
|
width?: string;
|
|
268
268
|
height?: string;
|
|
269
269
|
};
|
|
270
270
|
declare global {
|
|
271
271
|
namespace JSX {
|
|
272
272
|
interface IntrinsicElements {
|
|
273
|
-
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
273
|
+
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$n>;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
declare const Logo: React.ForwardRefExoticComponent<Props$
|
|
277
|
+
declare const Logo: React.ForwardRefExoticComponent<Props$n & React.RefAttributes<HTMLDivElement>>;
|
|
278
278
|
|
|
279
|
-
type Props$
|
|
279
|
+
type Props$m = {
|
|
280
280
|
'password-label'?: string;
|
|
281
281
|
'password-placeholder'?: string;
|
|
282
282
|
'confirm-label'?: string;
|
|
@@ -302,11 +302,11 @@ type Props$l = {
|
|
|
302
302
|
declare global {
|
|
303
303
|
namespace JSX {
|
|
304
304
|
interface IntrinsicElements {
|
|
305
|
-
'descope-new-password': DescopeInputProps & Props$
|
|
305
|
+
'descope-new-password': DescopeInputProps & Props$m;
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
-
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
309
|
+
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$m, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
310
310
|
|
|
311
311
|
declare global {
|
|
312
312
|
namespace JSX {
|
|
@@ -326,16 +326,16 @@ declare global {
|
|
|
326
326
|
}
|
|
327
327
|
declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
328
328
|
|
|
329
|
-
type Props$
|
|
329
|
+
type Props$l = {
|
|
330
330
|
variant: 'countrySelection' | 'inputBox';
|
|
331
331
|
'default-code'?: string;
|
|
332
332
|
'phone-input-placeholder'?: string;
|
|
333
333
|
'country-input-placeholder'?: string;
|
|
334
334
|
'restrict-countries'?: string;
|
|
335
335
|
} & DescopeInputProps;
|
|
336
|
-
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$
|
|
336
|
+
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$l, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
337
337
|
|
|
338
|
-
type Props$
|
|
338
|
+
type Props$k = {
|
|
339
339
|
children?: JSX.Element[];
|
|
340
340
|
data?: string | Record<string, string>[];
|
|
341
341
|
};
|
|
@@ -348,9 +348,9 @@ declare global {
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
351
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$k, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
352
352
|
|
|
353
|
-
type Props$
|
|
353
|
+
type Props$j = {
|
|
354
354
|
italic?: boolean;
|
|
355
355
|
variant?: string;
|
|
356
356
|
mode?: string;
|
|
@@ -361,18 +361,18 @@ type Props$i = {
|
|
|
361
361
|
declare global {
|
|
362
362
|
namespace JSX {
|
|
363
363
|
interface IntrinsicElements {
|
|
364
|
-
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
364
|
+
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$j;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
declare global {
|
|
369
369
|
namespace JSX {
|
|
370
370
|
interface IntrinsicElements {
|
|
371
|
-
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
371
|
+
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$j;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
declare const Text: React.ForwardRefExoticComponent<Omit<Props$
|
|
375
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<Props$j & {
|
|
376
376
|
typography?: TypographyVariants;
|
|
377
377
|
} & Omit<React.HTMLProps<HTMLSpanElement>, "mode">, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
378
378
|
|
|
@@ -394,39 +394,39 @@ declare global {
|
|
|
394
394
|
}
|
|
395
395
|
declare const TextField: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
396
396
|
|
|
397
|
-
type Props$
|
|
397
|
+
type Props$i = {
|
|
398
398
|
width?: string;
|
|
399
399
|
height?: string;
|
|
400
400
|
};
|
|
401
401
|
declare global {
|
|
402
402
|
namespace JSX {
|
|
403
403
|
interface IntrinsicElements {
|
|
404
|
-
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
404
|
+
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$i>;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
declare const TOTPImage: React.ForwardRefExoticComponent<Props$
|
|
408
|
+
declare const TOTPImage: React.ForwardRefExoticComponent<Props$i & React.RefAttributes<HTMLDivElement>>;
|
|
409
409
|
|
|
410
|
-
type Props$
|
|
411
|
-
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
410
|
+
type Props$h = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
411
|
+
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$h, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
412
412
|
|
|
413
|
-
type Props$
|
|
413
|
+
type Props$g = {
|
|
414
414
|
width?: string;
|
|
415
415
|
height?: string;
|
|
416
416
|
};
|
|
417
417
|
declare global {
|
|
418
418
|
namespace JSX {
|
|
419
419
|
interface IntrinsicElements {
|
|
420
|
-
'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
420
|
+
'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$g>;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
declare const NOTPImage: React.ForwardRefExoticComponent<Props$
|
|
424
|
+
declare const NOTPImage: React.ForwardRefExoticComponent<Props$g & React.RefAttributes<HTMLDivElement>>;
|
|
425
425
|
|
|
426
|
-
type Props$
|
|
427
|
-
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
426
|
+
type Props$f = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
427
|
+
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$f, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
428
428
|
|
|
429
|
-
type Props$
|
|
429
|
+
type Props$e = {
|
|
430
430
|
title?: string;
|
|
431
431
|
description?: string;
|
|
432
432
|
icon?: string;
|
|
@@ -445,13 +445,13 @@ type Props$d = {
|
|
|
445
445
|
declare global {
|
|
446
446
|
namespace JSX {
|
|
447
447
|
interface IntrinsicElements {
|
|
448
|
-
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
448
|
+
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$e;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
declare const UploadFile: React.ForwardRefExoticComponent<Props$
|
|
452
|
+
declare const UploadFile: React.ForwardRefExoticComponent<Props$e & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
453
453
|
|
|
454
|
-
type Props$
|
|
454
|
+
type Props$d = {
|
|
455
455
|
enabled?: boolean;
|
|
456
456
|
'site-key'?: string;
|
|
457
457
|
enterprise?: boolean;
|
|
@@ -463,20 +463,20 @@ declare global {
|
|
|
463
463
|
}
|
|
464
464
|
namespace JSX {
|
|
465
465
|
interface IntrinsicElements {
|
|
466
|
-
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
466
|
+
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$d;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
declare const Recaptcha: React.ForwardRefExoticComponent<Props$
|
|
470
|
+
declare const Recaptcha: React.ForwardRefExoticComponent<Props$d & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
471
471
|
|
|
472
|
-
type Props$
|
|
472
|
+
type Props$c = DescopeInputProps & {
|
|
473
473
|
'default-value'?: string;
|
|
474
474
|
'allow-deselect'?: boolean;
|
|
475
475
|
};
|
|
476
476
|
declare global {
|
|
477
477
|
namespace JSX {
|
|
478
478
|
interface IntrinsicElements {
|
|
479
|
-
'descope-button-selection-group': Props$
|
|
479
|
+
'descope-button-selection-group': Props$c;
|
|
480
480
|
'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
|
|
481
481
|
value: string;
|
|
482
482
|
children: string;
|
|
@@ -500,10 +500,10 @@ type SingleSelectType = {
|
|
|
500
500
|
data?: Item$3[];
|
|
501
501
|
allowClearValue?: boolean;
|
|
502
502
|
};
|
|
503
|
-
type Props$
|
|
504
|
-
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
503
|
+
type Props$b = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
|
|
504
|
+
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$b, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
505
505
|
|
|
506
|
-
type Props$
|
|
506
|
+
type Props$a = DescopeInputProps & {
|
|
507
507
|
'default-value'?: string;
|
|
508
508
|
'item-label-path'?: string;
|
|
509
509
|
'item-value-path'?: string;
|
|
@@ -511,7 +511,7 @@ type Props$9 = DescopeInputProps & {
|
|
|
511
511
|
declare global {
|
|
512
512
|
namespace JSX {
|
|
513
513
|
interface IntrinsicElements {
|
|
514
|
-
'descope-combobox': Props$
|
|
514
|
+
'descope-combobox': Props$a;
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
517
|
}
|
|
@@ -533,7 +533,7 @@ type Column = {
|
|
|
533
533
|
resizable: boolean;
|
|
534
534
|
};
|
|
535
535
|
};
|
|
536
|
-
type Props$
|
|
536
|
+
type Props$9 = {
|
|
537
537
|
identifier: any;
|
|
538
538
|
children?: JSX.Element[];
|
|
539
539
|
size?: Omit<ComponentSize, 'xl'>;
|
|
@@ -549,7 +549,7 @@ declare global {
|
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
declare const Grid: React.ForwardRefExoticComponent<Props$
|
|
552
|
+
declare const Grid: React.ForwardRefExoticComponent<Props$9 & React.RefAttributes<HTMLInputElement>>;
|
|
553
553
|
|
|
554
554
|
type ColumnProps = {
|
|
555
555
|
sortable?: boolean;
|
|
@@ -589,7 +589,7 @@ declare global {
|
|
|
589
589
|
}
|
|
590
590
|
declare const GridTextColumn: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLInputElement>>;
|
|
591
591
|
|
|
592
|
-
type Props$
|
|
592
|
+
type Props$8 = {
|
|
593
593
|
mode?: string;
|
|
594
594
|
size?: string;
|
|
595
595
|
bordered?: boolean;
|
|
@@ -598,11 +598,11 @@ type Props$7 = {
|
|
|
598
598
|
declare global {
|
|
599
599
|
namespace JSX {
|
|
600
600
|
interface IntrinsicElements {
|
|
601
|
-
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
601
|
+
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$8;
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
declare const Badge: React.ForwardRefExoticComponent<Props$
|
|
605
|
+
declare const Badge: React.ForwardRefExoticComponent<Props$8 & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
606
606
|
|
|
607
607
|
declare global {
|
|
608
608
|
namespace JSX {
|
|
@@ -611,12 +611,12 @@ declare global {
|
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
type Props$
|
|
614
|
+
type Props$7 = {
|
|
615
615
|
opened?: boolean;
|
|
616
616
|
};
|
|
617
|
-
declare const Modal: React.ForwardRefExoticComponent<Props$
|
|
617
|
+
declare const Modal: React.ForwardRefExoticComponent<Props$7 & React.RefAttributes<HTMLDivElement>>;
|
|
618
618
|
|
|
619
|
-
type Props$
|
|
619
|
+
type Props$6 = DescopeInputProps & {
|
|
620
620
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
621
621
|
'min-items-selection'?: number;
|
|
622
622
|
'max-items-selection'?: number;
|
|
@@ -624,7 +624,7 @@ type Props$5 = DescopeInputProps & {
|
|
|
624
624
|
declare global {
|
|
625
625
|
namespace JSX {
|
|
626
626
|
interface IntrinsicElements {
|
|
627
|
-
'descope-button-multi-selection-group': Props$
|
|
627
|
+
'descope-button-multi-selection-group': Props$6 & {
|
|
628
628
|
'default-values'?: string;
|
|
629
629
|
};
|
|
630
630
|
'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
|
|
@@ -650,16 +650,16 @@ type MultiSelectType = {
|
|
|
650
650
|
'min-items-selection'?: number;
|
|
651
651
|
'max-items-selection'?: number;
|
|
652
652
|
};
|
|
653
|
-
type Props$
|
|
653
|
+
type Props$5 = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
|
|
654
654
|
'default-values'?: string[];
|
|
655
655
|
};
|
|
656
|
-
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
656
|
+
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$5, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
657
657
|
|
|
658
658
|
type Item$1 = {
|
|
659
659
|
label: string;
|
|
660
660
|
value: string;
|
|
661
661
|
};
|
|
662
|
-
type Props$
|
|
662
|
+
type Props$4 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
|
|
663
663
|
'label-value'?: string;
|
|
664
664
|
'label-attr'?: string;
|
|
665
665
|
'button-label'?: string;
|
|
@@ -671,20 +671,20 @@ type Props$3 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
|
|
|
671
671
|
declare global {
|
|
672
672
|
namespace JSX {
|
|
673
673
|
interface IntrinsicElements {
|
|
674
|
-
'descope-mappings-field': Omit<Props$
|
|
674
|
+
'descope-mappings-field': Omit<Props$4, 'default-values' | 'options'> & {
|
|
675
675
|
'default-values'?: string;
|
|
676
676
|
options?: string;
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$
|
|
681
|
+
declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$4, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
682
682
|
|
|
683
683
|
type Item = {
|
|
684
684
|
label: string;
|
|
685
685
|
value: string;
|
|
686
686
|
};
|
|
687
|
-
type Props$
|
|
687
|
+
type Props$3 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
|
|
688
688
|
'label-value'?: string;
|
|
689
689
|
'label-attr'?: string;
|
|
690
690
|
'label-group'?: string;
|
|
@@ -696,13 +696,13 @@ type Props$2 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
|
|
|
696
696
|
declare global {
|
|
697
697
|
namespace JSX {
|
|
698
698
|
interface IntrinsicElements {
|
|
699
|
-
'descope-saml-group-mappings': Omit<Props$
|
|
699
|
+
'descope-saml-group-mappings': Omit<Props$3, 'options'> & {
|
|
700
700
|
options?: string;
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$
|
|
705
|
+
declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$3, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
706
706
|
|
|
707
707
|
declare global {
|
|
708
708
|
namespace JSX {
|
|
@@ -723,7 +723,7 @@ declare const UserAuthMethod$1: React.ForwardRefExoticComponent<Omit<React.Class
|
|
|
723
723
|
buttonIcon?: string;
|
|
724
724
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
725
725
|
|
|
726
|
-
type Props$
|
|
726
|
+
type Props$2 = {
|
|
727
727
|
'badge-tooltip-text'?: string;
|
|
728
728
|
'badge-label'?: string;
|
|
729
729
|
value?: string;
|
|
@@ -735,13 +735,13 @@ type Props$1 = {
|
|
|
735
735
|
declare global {
|
|
736
736
|
namespace JSX {
|
|
737
737
|
interface IntrinsicElements {
|
|
738
|
-
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
738
|
+
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$2;
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
|
-
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$
|
|
742
|
+
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$2, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
743
743
|
|
|
744
|
-
type Props = {
|
|
744
|
+
type Props$1 = {
|
|
745
745
|
img?: string;
|
|
746
746
|
'display-name'?: string;
|
|
747
747
|
size?: string;
|
|
@@ -750,10 +750,22 @@ type Props = {
|
|
|
750
750
|
declare global {
|
|
751
751
|
namespace JSX {
|
|
752
752
|
interface IntrinsicElements {
|
|
753
|
-
'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props;
|
|
753
|
+
'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$1;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
declare const UserAuthMethod: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$1, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
758
|
+
|
|
759
|
+
type Props = {
|
|
760
|
+
lang: 'xml' | 'html' | 'javascript' | 'css' | 'json';
|
|
761
|
+
};
|
|
762
|
+
declare global {
|
|
763
|
+
namespace JSX {
|
|
764
|
+
interface IntrinsicElements {
|
|
765
|
+
'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props;
|
|
754
766
|
}
|
|
755
767
|
}
|
|
756
768
|
}
|
|
757
|
-
declare const
|
|
769
|
+
declare const CodeSnippet: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
758
770
|
|
|
759
|
-
export { UserAuthMethod as Avatar, Badge, Boolean, Button, Checkbox, Code, ComboBox, Container, Divider, Grid, GridCustomColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, UserAttribute, UserAuthMethod$1 as UserAuthMethod, _default$f as apple, _default$6 as discord, _default$e as facebook, _default$c as fingerprint, _default$a as github, _default$9 as gitlab, _default$8 as google, _default$5 as linkedin, _default$7 as microsoft, _default$b as passkey, _default as password, _default$2 as plus, _default$1 as reload, _default$d as slack, _default$4 as sso, _default$3 as whatsapp };
|
|
771
|
+
export { UserAuthMethod as Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, Divider, Grid, GridCustomColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, UserAttribute, UserAuthMethod$1 as UserAuthMethod, _default$f as apple, _default$6 as discord, _default$e as facebook, _default$c as fingerprint, _default$a as github, _default$9 as gitlab, _default$8 as google, _default$5 as linkedin, _default$7 as microsoft, _default$b as passkey, _default as password, _default$2 as plus, _default$1 as reload, _default$d as slack, _default$4 as sso, _default$3 as whatsapp };
|
package/dist/index.esm.js
CHANGED
|
@@ -472,4 +472,6 @@ UserAuthMethod.defaultProps = {
|
|
|
472
472
|
editable: false
|
|
473
473
|
};
|
|
474
474
|
|
|
475
|
-
|
|
475
|
+
const CodeSnippet = React.forwardRef((props, ref) => React.createElement("descope-code-snippet", { ...props, ref: ref }));
|
|
476
|
+
|
|
477
|
+
export { UserAuthMethod as Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, Divider, Grid, GridCustomColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, UserAttribute, UserAuthMethod$1 as UserAuthMethod, apple, discord, facebook, fingerprint, github, gitlab, google, linkedin, microsoft, passkey, password, plus, reload, slack, sso, whatsapp };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.275",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"typescript": "^5.0.0"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@descope/web-components-ui": "1.0.
|
|
103
|
+
"@descope/web-components-ui": "1.0.312"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"react": ">=17"
|