@descope/flow-components 2.0.362 → 2.0.364

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
@@ -473,6 +473,10 @@ const AppsList = React__default.default.forwardRef(({ emptyState, data, ...props
473
473
 
474
474
  const ScopesList = React__default.default.forwardRef(({ data, ...props }, ref) => (React__default.default.createElement("descope-scopes-list", { data: data ? JSON.stringify(data) : undefined, ...props, ref: ref })));
475
475
 
476
+ const SecurityQuestionsSetup = React__default.default.forwardRef(({ questions, ...props }, ref) => (React__default.default.createElement("descope-security-questions-setup", { questions: questions ? JSON.stringify(questions) : undefined, ...props, ref: ref })));
477
+
478
+ const SecurityQuestionsVerify = React__default.default.forwardRef(({ questions, ...props }, ref) => (React__default.default.createElement("descope-security-questions-verify", { questions: questions ? JSON.stringify(questions) : undefined, ...props, ref: ref })));
479
+
476
480
  const ThirdPartyAppLogo = React__default.default.forwardRef(({ ...props }, ref) => React__default.default.createElement("descope-third-party-app-logo", { ...props, ref: ref }));
477
481
 
478
482
  exports.AppsList = AppsList;
@@ -511,6 +515,8 @@ exports.Phone = Phone;
511
515
  exports.Recaptcha = Recaptcha;
512
516
  exports.SAMLGroupMappings = SAMLGroupMappings;
513
517
  exports.ScopesList = ScopesList;
518
+ exports.SecurityQuestionsSetup = SecurityQuestionsSetup;
519
+ exports.SecurityQuestionsVerify = SecurityQuestionsVerify;
514
520
  exports.Select = Select;
515
521
  exports.SingleSelect = SingleSelect;
516
522
  exports.Switch = Switch;
package/dist/index.d.ts CHANGED
@@ -52,8 +52,8 @@ declare const Switch: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "r
52
52
  type BooleanType = {
53
53
  type: 'switch' | 'checkbox';
54
54
  };
55
- type Props$z = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
56
- declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$z, "ref"> & React.RefAttributes<HTMLInputElement>>;
55
+ type Props$B = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
56
+ declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$B, "ref"> & React.RefAttributes<HTMLInputElement>>;
57
57
 
58
58
  declare global {
59
59
  namespace JSX {
@@ -75,17 +75,17 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
75
75
  'full-width'?: boolean;
76
76
  }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
77
77
 
78
- type Props$y = {
78
+ type Props$A = {
79
79
  digits?: number;
80
80
  };
81
81
  declare global {
82
82
  namespace JSX {
83
83
  interface IntrinsicElements {
84
- 'descope-passcode': DescopeInputProps & Props$y;
84
+ 'descope-passcode': DescopeInputProps & Props$A;
85
85
  }
86
86
  }
87
87
  }
88
- declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$y, "ref"> & React.RefAttributes<HTMLInputElement>>;
88
+ declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$A, "ref"> & React.RefAttributes<HTMLInputElement>>;
89
89
 
90
90
  type Never<T extends Record<string, any>> = {
91
91
  [K in keyof T]: never;
@@ -101,7 +101,7 @@ type ContainerAlignment = {
101
101
  'vertical-alignment'?: FlexAlignment;
102
102
  'space-between'?: 'sm' | 'md' | 'lg';
103
103
  };
104
- type Props$x = {
104
+ type Props$z = {
105
105
  direction?: 'row' | 'column';
106
106
  shadow?: 'md' | 'lg' | 'xl' | '2xl';
107
107
  'border-radius'?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
@@ -117,9 +117,9 @@ declare global {
117
117
  }
118
118
  }
119
119
  }
120
- declare const Container: React.ForwardRefExoticComponent<(Props$x & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
120
+ declare const Container: React.ForwardRefExoticComponent<(Props$z & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
121
121
 
122
- type Props$w = {
122
+ type Props$y = {
123
123
  vertical?: boolean;
124
124
  italic?: boolean;
125
125
  variant?: TypographyVariants;
@@ -129,15 +129,15 @@ type Props$w = {
129
129
  declare global {
130
130
  namespace JSX {
131
131
  interface IntrinsicElements {
132
- 'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$w, 'children'>;
132
+ 'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$y, 'children'>;
133
133
  }
134
134
  }
135
135
  }
136
- declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$w, "ref"> & React.RefAttributes<HTMLDivElement>>;
136
+ declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$y, "ref"> & React.RefAttributes<HTMLDivElement>>;
137
137
 
138
138
  declare const ReactComponent: (props: SVGProps<SVGSVGElement>) => JSX.Element;
139
139
 
140
- type Props$v = {
140
+ type Props$x = {
141
141
  width?: string;
142
142
  height?: string;
143
143
  alt?: string;
@@ -146,15 +146,15 @@ type Props$v = {
146
146
  declare global {
147
147
  namespace JSX {
148
148
  interface IntrinsicElements {
149
- 'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$v;
149
+ 'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$x;
150
150
  }
151
151
  }
152
152
  }
153
- declare const Image: React.ForwardRefExoticComponent<Props$v & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
153
+ declare const Image: React.ForwardRefExoticComponent<Props$x & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
154
154
 
155
155
  declare const Input: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
156
156
 
157
- type Props$u = {
157
+ type Props$w = {
158
158
  href?: string | undefined;
159
159
  italic?: boolean;
160
160
  variant?: TypographyVariants;
@@ -166,18 +166,18 @@ type Props$u = {
166
166
  declare global {
167
167
  namespace JSX {
168
168
  interface IntrinsicElements {
169
- 'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$u, 'children'>;
169
+ 'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$w, 'children'>;
170
170
  }
171
171
  }
172
172
  }
173
- declare const Link: React.ForwardRefExoticComponent<Props$u & React.RefAttributes<HTMLAnchorElement>>;
173
+ declare const Link: React.ForwardRefExoticComponent<Props$w & React.RefAttributes<HTMLAnchorElement>>;
174
174
 
175
- type Props$t = {
175
+ type Props$v = {
176
176
  variant?: 'linear' | 'radial';
177
177
  size?: 'xs' | 'sm' | 'md' | 'lg';
178
178
  color?: Mode;
179
179
  };
180
- type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$t>;
180
+ type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$v>;
181
181
  declare global {
182
182
  namespace JSX {
183
183
  interface IntrinsicElements {
@@ -186,22 +186,22 @@ declare global {
186
186
  }
187
187
  }
188
188
  }
189
- declare const Loader: React.ForwardRefExoticComponent<Props$t & React.RefAttributes<HTMLDivElement>>;
189
+ declare const Loader: React.ForwardRefExoticComponent<Props$v & React.RefAttributes<HTMLDivElement>>;
190
190
 
191
- type Props$s = {
191
+ type Props$u = {
192
192
  width?: string;
193
193
  height?: string;
194
194
  };
195
195
  declare global {
196
196
  namespace JSX {
197
197
  interface IntrinsicElements {
198
- 'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$s>;
198
+ 'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$u>;
199
199
  }
200
200
  }
201
201
  }
202
- declare const Logo: React.ForwardRefExoticComponent<Props$s & React.RefAttributes<HTMLDivElement>>;
202
+ declare const Logo: React.ForwardRefExoticComponent<Props$u & React.RefAttributes<HTMLDivElement>>;
203
203
 
204
- type Props$r = {
204
+ type Props$t = {
205
205
  'password-label'?: string;
206
206
  'password-placeholder'?: string;
207
207
  'confirm-label'?: string;
@@ -227,11 +227,11 @@ type Props$r = {
227
227
  declare global {
228
228
  namespace JSX {
229
229
  interface IntrinsicElements {
230
- 'descope-new-password': DescopeInputProps & Props$r;
230
+ 'descope-new-password': DescopeInputProps & Props$t;
231
231
  }
232
232
  }
233
233
  }
234
- declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$r, "ref"> & React.RefAttributes<HTMLInputElement>>;
234
+ declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$t, "ref"> & React.RefAttributes<HTMLInputElement>>;
235
235
 
236
236
  declare global {
237
237
  namespace JSX {
@@ -251,16 +251,16 @@ declare global {
251
251
  }
252
252
  declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
253
253
 
254
- type Props$q = {
254
+ type Props$s = {
255
255
  variant: 'countrySelection' | 'inputBox';
256
256
  'default-code'?: string;
257
257
  'phone-input-placeholder'?: string;
258
258
  'country-input-placeholder'?: string;
259
259
  'restrict-countries'?: string;
260
260
  } & DescopeInputProps;
261
- declare const Phone: React.ForwardRefExoticComponent<Omit<Props$q, "ref"> & React.RefAttributes<HTMLInputElement>>;
261
+ declare const Phone: React.ForwardRefExoticComponent<Omit<Props$s, "ref"> & React.RefAttributes<HTMLInputElement>>;
262
262
 
263
- type Props$p = {
263
+ type Props$r = {
264
264
  children?: JSX.Element[];
265
265
  data?: string | Record<string, string>[];
266
266
  };
@@ -273,9 +273,9 @@ declare global {
273
273
  }
274
274
  }
275
275
  }
276
- declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$p, "ref"> & React.RefAttributes<HTMLInputElement>>;
276
+ declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$r, "ref"> & React.RefAttributes<HTMLInputElement>>;
277
277
 
278
- type Props$o = {
278
+ type Props$q = {
279
279
  italic?: boolean;
280
280
  variant?: string;
281
281
  mode?: string;
@@ -287,12 +287,12 @@ type Props$o = {
287
287
  declare global {
288
288
  namespace JSX {
289
289
  interface IntrinsicElements {
290
- 'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$o;
291
- 'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$o;
290
+ 'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$q;
291
+ 'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$q;
292
292
  }
293
293
  }
294
294
  }
295
- declare const Text: React.ForwardRefExoticComponent<Omit<Props$o & {
295
+ declare const Text: React.ForwardRefExoticComponent<Omit<Props$q & {
296
296
  typography?: TypographyVariants;
297
297
  } & Omit<React.HTMLProps<HTMLSpanElement>, "mode">, "ref"> & React.RefAttributes<HTMLElement>>;
298
298
 
@@ -314,39 +314,39 @@ declare global {
314
314
  }
315
315
  declare const TextField: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
316
316
 
317
- type Props$n = {
317
+ type Props$p = {
318
318
  width?: string;
319
319
  height?: string;
320
320
  };
321
321
  declare global {
322
322
  namespace JSX {
323
323
  interface IntrinsicElements {
324
- 'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$n>;
324
+ 'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$p>;
325
325
  }
326
326
  }
327
327
  }
328
- declare const TOTPImage: React.ForwardRefExoticComponent<Props$n & React.RefAttributes<HTMLDivElement>>;
328
+ declare const TOTPImage: React.ForwardRefExoticComponent<Props$p & React.RefAttributes<HTMLDivElement>>;
329
329
 
330
- type Props$m = Omit<React.ComponentProps<typeof Link>, 'href'>;
331
- declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$m, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
330
+ type Props$o = Omit<React.ComponentProps<typeof Link>, 'href'>;
331
+ declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$o, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
332
332
 
333
- type Props$l = {
333
+ type Props$n = {
334
334
  width?: string;
335
335
  height?: string;
336
336
  };
337
337
  declare global {
338
338
  namespace JSX {
339
339
  interface IntrinsicElements {
340
- 'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$l>;
340
+ 'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$n>;
341
341
  }
342
342
  }
343
343
  }
344
- declare const NOTPImage: React.ForwardRefExoticComponent<Props$l & React.RefAttributes<HTMLDivElement>>;
344
+ declare const NOTPImage: React.ForwardRefExoticComponent<Props$n & React.RefAttributes<HTMLDivElement>>;
345
345
 
346
- type Props$k = Omit<React.ComponentProps<typeof Link>, 'href'>;
347
- declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$k, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
346
+ type Props$m = Omit<React.ComponentProps<typeof Link>, 'href'>;
347
+ declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$m, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
348
348
 
349
- type Props$j = {
349
+ type Props$l = {
350
350
  title?: string;
351
351
  description?: string;
352
352
  icon?: string;
@@ -365,13 +365,13 @@ type Props$j = {
365
365
  declare global {
366
366
  namespace JSX {
367
367
  interface IntrinsicElements {
368
- 'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$j;
368
+ 'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$l;
369
369
  }
370
370
  }
371
371
  }
372
- declare const UploadFile: React.ForwardRefExoticComponent<Props$j & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
372
+ declare const UploadFile: React.ForwardRefExoticComponent<Props$l & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
373
373
 
374
- type Props$i = {
374
+ type Props$k = {
375
375
  enabled?: boolean;
376
376
  'site-key'?: string;
377
377
  enterprise?: boolean;
@@ -383,20 +383,20 @@ declare global {
383
383
  }
384
384
  namespace JSX {
385
385
  interface IntrinsicElements {
386
- 'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$i;
386
+ 'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$k;
387
387
  }
388
388
  }
389
389
  }
390
- declare const Recaptcha: React.ForwardRefExoticComponent<Props$i & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
390
+ declare const Recaptcha: React.ForwardRefExoticComponent<Props$k & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
391
391
 
392
- type Props$h = DescopeInputProps & {
392
+ type Props$j = DescopeInputProps & {
393
393
  'default-value'?: string;
394
394
  'allow-deselect'?: boolean;
395
395
  };
396
396
  declare global {
397
397
  namespace JSX {
398
398
  interface IntrinsicElements {
399
- 'descope-button-selection-group': Props$h;
399
+ 'descope-button-selection-group': Props$j;
400
400
  'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
401
401
  value: string;
402
402
  children: string;
@@ -422,10 +422,10 @@ type SingleSelectType = {
422
422
  layout?: 'horizontal' | 'vertical';
423
423
  'label-type'?: LabelType;
424
424
  };
425
- type Props$g = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
426
- declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$g, "ref"> & React.RefAttributes<HTMLInputElement>>;
425
+ type Props$i = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
426
+ declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$i, "ref"> & React.RefAttributes<HTMLInputElement>>;
427
427
 
428
- type Props$f = DescopeInputProps & {
428
+ type Props$h = DescopeInputProps & {
429
429
  'default-value'?: string;
430
430
  'item-label-path'?: string;
431
431
  'item-value-path'?: string;
@@ -433,7 +433,7 @@ type Props$f = DescopeInputProps & {
433
433
  declare global {
434
434
  namespace JSX {
435
435
  interface IntrinsicElements {
436
- 'descope-combobox': Props$f;
436
+ 'descope-combobox': Props$h;
437
437
  }
438
438
  }
439
439
  }
@@ -455,7 +455,7 @@ type Column = {
455
455
  resizable: boolean;
456
456
  };
457
457
  };
458
- type Props$e = {
458
+ type Props$g = {
459
459
  identifier: any;
460
460
  children?: JSX.Element[];
461
461
  size?: Omit<ComponentSize, 'xl'>;
@@ -471,7 +471,7 @@ declare global {
471
471
  }
472
472
  }
473
473
  }
474
- declare const Grid: React.ForwardRefExoticComponent<Props$e & React.RefAttributes<HTMLInputElement>>;
474
+ declare const Grid: React.ForwardRefExoticComponent<Props$g & React.RefAttributes<HTMLInputElement>>;
475
475
 
476
476
  type ColumnProps = {
477
477
  sortable?: boolean;
@@ -520,7 +520,7 @@ declare global {
520
520
  }
521
521
  declare const GridItemDetailsColumn: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLInputElement>>;
522
522
 
523
- type Props$d = {
523
+ type Props$f = {
524
524
  mode?: string;
525
525
  size?: string;
526
526
  bordered?: boolean;
@@ -529,11 +529,11 @@ type Props$d = {
529
529
  declare global {
530
530
  namespace JSX {
531
531
  interface IntrinsicElements {
532
- 'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$d;
532
+ 'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$f;
533
533
  }
534
534
  }
535
535
  }
536
- declare const Badge: React.ForwardRefExoticComponent<Props$d & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
536
+ declare const Badge: React.ForwardRefExoticComponent<Props$f & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
537
537
 
538
538
  declare global {
539
539
  namespace JSX {
@@ -542,12 +542,12 @@ declare global {
542
542
  }
543
543
  }
544
544
  }
545
- type Props$c = {
545
+ type Props$e = {
546
546
  opened?: boolean;
547
547
  };
548
- declare const Modal: React.ForwardRefExoticComponent<Props$c & React.RefAttributes<HTMLDivElement>>;
548
+ declare const Modal: React.ForwardRefExoticComponent<Props$e & React.RefAttributes<HTMLDivElement>>;
549
549
 
550
- type Props$b = DescopeInputProps & {
550
+ type Props$d = DescopeInputProps & {
551
551
  size?: 'xs' | 'sm' | 'md' | 'lg';
552
552
  'min-items-selection'?: number;
553
553
  'max-items-selection'?: number;
@@ -555,7 +555,7 @@ type Props$b = DescopeInputProps & {
555
555
  declare global {
556
556
  namespace JSX {
557
557
  interface IntrinsicElements {
558
- 'descope-button-multi-selection-group': Props$b & {
558
+ 'descope-button-multi-selection-group': Props$d & {
559
559
  'default-values'?: string;
560
560
  };
561
561
  'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
@@ -582,16 +582,16 @@ type MultiSelectType = {
582
582
  'max-items-selection'?: number;
583
583
  'label-type'?: string;
584
584
  };
585
- type Props$a = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
585
+ type Props$c = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
586
586
  'default-values'?: string[];
587
587
  };
588
- declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$a, "ref"> & React.RefAttributes<HTMLInputElement>>;
588
+ declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$c, "ref"> & React.RefAttributes<HTMLInputElement>>;
589
589
 
590
590
  type Item$2 = {
591
591
  label: string;
592
592
  value: string;
593
593
  };
594
- type Props$9 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
594
+ type Props$b = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
595
595
  'label-value'?: string;
596
596
  'label-attr'?: string;
597
597
  'button-label'?: string;
@@ -603,20 +603,20 @@ type Props$9 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
603
603
  declare global {
604
604
  namespace JSX {
605
605
  interface IntrinsicElements {
606
- 'descope-mappings-field': Omit<Props$9, 'default-values' | 'options'> & {
606
+ 'descope-mappings-field': Omit<Props$b, 'default-values' | 'options'> & {
607
607
  'default-values'?: string;
608
608
  options?: string;
609
609
  };
610
610
  }
611
611
  }
612
612
  }
613
- declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$9, "ref"> & React.RefAttributes<HTMLInputElement>>;
613
+ declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$b, "ref"> & React.RefAttributes<HTMLInputElement>>;
614
614
 
615
615
  type Item$1 = {
616
616
  label: string;
617
617
  value: string;
618
618
  };
619
- type Props$8 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
619
+ type Props$a = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
620
620
  'label-value'?: string;
621
621
  'label-attr'?: string;
622
622
  'label-group'?: string;
@@ -628,13 +628,13 @@ type Props$8 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
628
628
  declare global {
629
629
  namespace JSX {
630
630
  interface IntrinsicElements {
631
- 'descope-saml-group-mappings': Omit<Props$8, 'options'> & {
631
+ 'descope-saml-group-mappings': Omit<Props$a, 'options'> & {
632
632
  options?: string;
633
633
  };
634
634
  }
635
635
  }
636
636
  }
637
- declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$8, "ref"> & React.RefAttributes<HTMLInputElement>>;
637
+ declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$a, "ref"> & React.RefAttributes<HTMLInputElement>>;
638
638
 
639
639
  declare global {
640
640
  namespace JSX {
@@ -655,7 +655,7 @@ declare const UserAuthMethod: React.ForwardRefExoticComponent<Omit<React.ClassAt
655
655
  buttonIcon?: string;
656
656
  }, "ref"> & React.RefAttributes<HTMLButtonElement>>;
657
657
 
658
- type Props$7 = {
658
+ type Props$9 = {
659
659
  'badge-tooltip-text'?: string;
660
660
  'badge-label'?: string;
661
661
  value?: string;
@@ -667,13 +667,13 @@ type Props$7 = {
667
667
  declare global {
668
668
  namespace JSX {
669
669
  interface IntrinsicElements {
670
- 'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$7;
670
+ 'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$9;
671
671
  }
672
672
  }
673
673
  }
674
- declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$7, "ref"> & React.RefAttributes<HTMLButtonElement>>;
674
+ declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$9, "ref"> & React.RefAttributes<HTMLButtonElement>>;
675
675
 
676
- type Props$6 = {
676
+ type Props$8 = {
677
677
  img?: string;
678
678
  'display-name'?: string;
679
679
  size?: string;
@@ -682,26 +682,26 @@ type Props$6 = {
682
682
  declare global {
683
683
  namespace JSX {
684
684
  interface IntrinsicElements {
685
- 'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$6;
685
+ 'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$8;
686
686
  }
687
687
  }
688
688
  }
689
- declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$6, "ref"> & React.RefAttributes<HTMLButtonElement>>;
689
+ declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$8, "ref"> & React.RefAttributes<HTMLButtonElement>>;
690
690
 
691
- type Props$5 = {
691
+ type Props$7 = {
692
692
  lang?: 'xml' | 'html' | 'javascript' | 'css' | 'json';
693
693
  inline?: boolean;
694
694
  };
695
695
  declare global {
696
696
  namespace JSX {
697
697
  interface IntrinsicElements {
698
- 'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$5;
698
+ 'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$7;
699
699
  }
700
700
  }
701
701
  }
702
- declare const CodeSnippet: React.ForwardRefExoticComponent<Props$5 & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
702
+ declare const CodeSnippet: React.ForwardRefExoticComponent<Props$7 & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
703
703
 
704
- type Props$4 = {
704
+ type Props$6 = {
705
705
  emptyState?: React.ReactNode;
706
706
  children?: React.ReactNode[];
707
707
  variant?: 'list' | 'tiles';
@@ -709,26 +709,26 @@ type Props$4 = {
709
709
  declare global {
710
710
  namespace JSX {
711
711
  interface IntrinsicElements {
712
- 'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$4>;
712
+ 'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$6>;
713
713
  }
714
714
  }
715
715
  }
716
- declare const List: React.ForwardRefExoticComponent<Props$4 & React.RefAttributes<HTMLDivElement>>;
716
+ declare const List: React.ForwardRefExoticComponent<Props$6 & React.RefAttributes<HTMLDivElement>>;
717
717
 
718
- type Props$3 = {
718
+ type Props$5 = {
719
719
  variant?: 'row' | 'tile';
720
720
  children?: React.ReactNode;
721
721
  };
722
722
  declare global {
723
723
  namespace JSX {
724
724
  interface IntrinsicElements {
725
- 'descope-list-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$3>;
725
+ 'descope-list-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$5>;
726
726
  }
727
727
  }
728
728
  }
729
- declare const ListItem: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
729
+ declare const ListItem: React.ForwardRefExoticComponent<Props$5 & React.RefAttributes<HTMLDivElement>>;
730
730
 
731
- type Props$2 = {
731
+ type Props$4 = {
732
732
  emptyState?: React.ReactNode;
733
733
  variant?: 'list' | 'tiles';
734
734
  data?: any[];
@@ -737,18 +737,18 @@ type Props$2 = {
737
737
  declare global {
738
738
  namespace JSX {
739
739
  interface IntrinsicElements {
740
- 'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$2>;
740
+ 'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$4>;
741
741
  }
742
742
  }
743
743
  }
744
- declare const AppsList: React.ForwardRefExoticComponent<Props$2 & React.RefAttributes<HTMLDivElement>>;
744
+ declare const AppsList: React.ForwardRefExoticComponent<Props$4 & React.RefAttributes<HTMLDivElement>>;
745
745
 
746
746
  type Item = {
747
747
  desc: string;
748
748
  id: string;
749
749
  required?: boolean;
750
750
  };
751
- type Props$1 = {
751
+ type Props$3 = {
752
752
  variant?: 'checkbox' | 'switch';
753
753
  data?: Item[];
754
754
  readonly?: boolean;
@@ -757,11 +757,60 @@ type Props$1 = {
757
757
  declare global {
758
758
  namespace JSX {
759
759
  interface IntrinsicElements {
760
- 'descope-scopes-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$1>;
760
+ 'descope-scopes-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$3>;
761
+ }
762
+ }
763
+ }
764
+ declare const ScopesList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
765
+
766
+ type Question$1 = {
767
+ id: string;
768
+ text: string;
769
+ };
770
+ type Props$2 = {
771
+ questions?: Question$1[];
772
+ readonly?: boolean;
773
+ size?: 'xs' | 'sm' | 'md' | 'lg';
774
+ 'st-gap'?: string;
775
+ count?: number;
776
+ 'full-width'?: boolean;
777
+ 'question-label'?: string;
778
+ 'answer-label'?: string;
779
+ 'question-placeholder'?: string;
780
+ 'answer-placeholder'?: string;
781
+ };
782
+ declare global {
783
+ namespace JSX {
784
+ interface IntrinsicElements {
785
+ 'descope-security-questions-setup': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$2>;
786
+ }
787
+ }
788
+ }
789
+ declare const SecurityQuestionsSetup: React.ForwardRefExoticComponent<Props$2 & React.RefAttributes<HTMLDivElement>>;
790
+
791
+ type Question = {
792
+ id: string;
793
+ text: string;
794
+ };
795
+ type Props$1 = {
796
+ questions?: Question[];
797
+ readonly?: boolean;
798
+ size?: 'xs' | 'sm' | 'md' | 'lg';
799
+ 'st-gap'?: string;
800
+ 'full-width'?: boolean;
801
+ 'answer-placeholder'?: string;
802
+ 'question-mode'?: string;
803
+ 'st-question-text-align'?: string;
804
+ 'answer-data-errormessage-value-missing'?: string;
805
+ };
806
+ declare global {
807
+ namespace JSX {
808
+ interface IntrinsicElements {
809
+ 'descope-security-questions-verify': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$1>;
761
810
  }
762
811
  }
763
812
  }
764
- declare const ScopesList: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLDivElement>>;
813
+ declare const SecurityQuestionsVerify: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLDivElement>>;
765
814
 
766
815
  type Props = {
767
816
  size: 'xs' | 'sm' | 'md' | 'lg';
@@ -784,4 +833,4 @@ declare global {
784
833
  }
785
834
  declare const DateField: React.ForwardRefExoticComponent<Omit<Omit<DescopeInputProps, "external-input">, "ref"> & React.RefAttributes<HTMLInputElement>>;
786
835
 
787
- export { AppsList, Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, DateField, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, List, ListItem, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, ScopesList, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, ThirdPartyAppLogo, UploadFile, UserAttribute, UserAuthMethod, ReactComponent as apple, ReactComponent as authenticator, ReactComponent as discord, ReactComponent as edit, ReactComponent as facebook, ReactComponent as fingerprint, ReactComponent as github, ReactComponent as gitlab, ReactComponent as google, ReactComponent as linkedin, ReactComponent as microsoft, ReactComponent as passkey, ReactComponent as password, ReactComponent as plus, ReactComponent as reload, ReactComponent as slack, ReactComponent as sso, ReactComponent as whatsapp };
836
+ export { AppsList, Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, DateField, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, List, ListItem, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, ScopesList, SecurityQuestionsSetup, SecurityQuestionsVerify, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, ThirdPartyAppLogo, UploadFile, UserAttribute, UserAuthMethod, ReactComponent as apple, ReactComponent as authenticator, ReactComponent as discord, ReactComponent as edit, ReactComponent as facebook, ReactComponent as fingerprint, ReactComponent as github, ReactComponent as gitlab, ReactComponent as google, ReactComponent as linkedin, ReactComponent as microsoft, ReactComponent as passkey, ReactComponent as password, ReactComponent as plus, ReactComponent as reload, ReactComponent as slack, ReactComponent as sso, ReactComponent as whatsapp };
package/dist/index.esm.js CHANGED
@@ -467,6 +467,10 @@ const AppsList = React.forwardRef(({ emptyState, data, ...props }, ref) => (Reac
467
467
 
468
468
  const ScopesList = React.forwardRef(({ data, ...props }, ref) => (React.createElement("descope-scopes-list", { data: data ? JSON.stringify(data) : undefined, ...props, ref: ref })));
469
469
 
470
+ const SecurityQuestionsSetup = React.forwardRef(({ questions, ...props }, ref) => (React.createElement("descope-security-questions-setup", { questions: questions ? JSON.stringify(questions) : undefined, ...props, ref: ref })));
471
+
472
+ const SecurityQuestionsVerify = React.forwardRef(({ questions, ...props }, ref) => (React.createElement("descope-security-questions-verify", { questions: questions ? JSON.stringify(questions) : undefined, ...props, ref: ref })));
473
+
470
474
  const ThirdPartyAppLogo = React.forwardRef(({ ...props }, ref) => React.createElement("descope-third-party-app-logo", { ...props, ref: ref }));
471
475
 
472
- export { AppsList, Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, DateField, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, List, ListItem, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, ScopesList, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, ThirdPartyAppLogo, UploadFile, UserAttribute, UserAuthMethod, apple, authenticator, discord, edit, facebook, fingerprint, github, gitlab, google, linkedin, microsoft, passkey, password, plus, reload, slack, sso, whatsapp };
476
+ export { AppsList, Avatar, Badge, Boolean, Button, Checkbox, Code, CodeSnippet, ComboBox, Container, DateField, Divider, Grid, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, List, ListItem, Loader, Logo, MappingsField, Modal, MultiSelect, NOTPImage, NOTPLink, NewPassword, NumberField, Password, Phone, Recaptcha, SAMLGroupMappings, ScopesList, SecurityQuestionsSetup, SecurityQuestionsVerify, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, ThirdPartyAppLogo, UploadFile, UserAttribute, UserAuthMethod, apple, authenticator, discord, edit, 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.362",
3
+ "version": "2.0.364",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -102,7 +102,7 @@
102
102
  "typescript": "^5.0.0"
103
103
  },
104
104
  "dependencies": {
105
- "@descope/web-components-ui": "1.0.393"
105
+ "@descope/web-components-ui": "1.0.395"
106
106
  },
107
107
  "peerDependencies": {
108
108
  "react": ">=17"