@descope/flow-components 2.0.235 → 2.0.237

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
@@ -394,6 +394,26 @@ MappingsField.defaultProps = {
394
394
  size: 'md'
395
395
  };
396
396
 
397
+ const SAMLGroupMappings = React__default.default.forwardRef(({ options, ...props }, ref) => {
398
+ const serializedOptions = React.useMemo(() => {
399
+ if (!options)
400
+ return undefined;
401
+ try {
402
+ return JSON.stringify(options);
403
+ }
404
+ catch (e) {
405
+ // eslint-disable-next-line no-console
406
+ console.error('could not parse data string from attribute "options" -', e.message);
407
+ return '';
408
+ }
409
+ }, [options]);
410
+ return (React__default.default.createElement("descope-saml-group-mappings", { ...props, options: serializedOptions ?? undefined, ref: ref }));
411
+ });
412
+ SAMLGroupMappings.defaultProps = {
413
+ // eslint-disable-next-line react/default-props-match-prop-types
414
+ size: 'md'
415
+ };
416
+
397
417
  exports.Badge = Badge;
398
418
  exports.Boolean = Boolean;
399
419
  exports.Button = Button;
@@ -421,6 +441,7 @@ exports.NumberField = NumberField;
421
441
  exports.Password = Password;
422
442
  exports.Phone = Phone;
423
443
  exports.Recaptcha = Recaptcha;
444
+ exports.SAMLGroupMappings = SAMLGroupMappings;
424
445
  exports.Select = Select;
425
446
  exports.SingleSelect = SingleSelect;
426
447
  exports.Switch = Switch;
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$q = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
53
- declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$q, "ref"> & React.RefAttributes<HTMLInputElement>>;
52
+ type Props$r = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
53
+ declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$r, "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$p = {
75
+ type Props$q = {
76
76
  digits?: number;
77
77
  };
78
78
  declare global {
79
79
  namespace JSX {
80
80
  interface IntrinsicElements {
81
- 'descope-passcode': DescopeInputProps & Props$p;
81
+ 'descope-passcode': DescopeInputProps & Props$q;
82
82
  }
83
83
  }
84
84
  }
85
- declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$p, "ref"> & React.RefAttributes<HTMLInputElement>>;
85
+ declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$q, "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$o = {
101
+ type Props$p = {
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$o & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
117
+ declare const Container: React.ForwardRefExoticComponent<(Props$p & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
118
118
 
119
- type Props$n = {
119
+ type Props$o = {
120
120
  vertical?: boolean;
121
121
  italic?: boolean;
122
122
  variant?: TypographyVariants;
@@ -126,11 +126,11 @@ type Props$n = {
126
126
  declare global {
127
127
  namespace JSX {
128
128
  interface IntrinsicElements {
129
- 'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$n, 'children'>;
129
+ 'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$o, 'children'>;
130
130
  }
131
131
  }
132
132
  }
133
- declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$n, "ref"> & React.RefAttributes<HTMLDivElement>>;
133
+ declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$o, "ref"> & React.RefAttributes<HTMLDivElement>>;
134
134
 
135
135
  declare const _default$b: ({ noColor }: {
136
136
  noColor: any;
@@ -184,7 +184,7 @@ declare const WhatsAppIcon: ({ noColor }: {
184
184
  noColor: any;
185
185
  }) => React.JSX.Element;
186
186
 
187
- type Props$m = {
187
+ type Props$n = {
188
188
  width?: string;
189
189
  height?: string;
190
190
  alt?: string;
@@ -193,15 +193,15 @@ type Props$m = {
193
193
  declare global {
194
194
  namespace JSX {
195
195
  interface IntrinsicElements {
196
- 'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$m;
196
+ 'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$n;
197
197
  }
198
198
  }
199
199
  }
200
- declare const Image: React.ForwardRefExoticComponent<Props$m & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
200
+ declare const Image: React.ForwardRefExoticComponent<Props$n & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
201
201
 
202
202
  declare const Input: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
203
203
 
204
- type Props$l = {
204
+ type Props$m = {
205
205
  href?: string | undefined;
206
206
  italic?: boolean;
207
207
  variant?: TypographyVariants;
@@ -213,18 +213,18 @@ type Props$l = {
213
213
  declare global {
214
214
  namespace JSX {
215
215
  interface IntrinsicElements {
216
- 'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$l, 'children'>;
216
+ 'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$m, 'children'>;
217
217
  }
218
218
  }
219
219
  }
220
- declare const Link: React.ForwardRefExoticComponent<Props$l & React.RefAttributes<HTMLAnchorElement>>;
220
+ declare const Link: React.ForwardRefExoticComponent<Props$m & React.RefAttributes<HTMLAnchorElement>>;
221
221
 
222
- type Props$k = {
222
+ type Props$l = {
223
223
  variant?: 'linear' | 'radial';
224
224
  size?: 'xs' | 'sm' | 'md' | 'lg';
225
225
  color?: Mode;
226
226
  };
227
- type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$k>;
227
+ type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$l>;
228
228
  declare global {
229
229
  namespace JSX {
230
230
  interface IntrinsicElements {
@@ -233,22 +233,22 @@ declare global {
233
233
  }
234
234
  }
235
235
  }
236
- declare const Loader: React.ForwardRefExoticComponent<Props$k & React.RefAttributes<HTMLDivElement>>;
236
+ declare const Loader: React.ForwardRefExoticComponent<Props$l & React.RefAttributes<HTMLDivElement>>;
237
237
 
238
- type Props$j = {
238
+ type Props$k = {
239
239
  width?: string;
240
240
  height?: string;
241
241
  };
242
242
  declare global {
243
243
  namespace JSX {
244
244
  interface IntrinsicElements {
245
- 'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$j>;
245
+ 'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$k>;
246
246
  }
247
247
  }
248
248
  }
249
- declare const Logo: React.ForwardRefExoticComponent<Props$j & React.RefAttributes<HTMLDivElement>>;
249
+ declare const Logo: React.ForwardRefExoticComponent<Props$k & React.RefAttributes<HTMLDivElement>>;
250
250
 
251
- type Props$i = {
251
+ type Props$j = {
252
252
  'password-label'?: string;
253
253
  'password-placeholder'?: string;
254
254
  'confirm-label'?: string;
@@ -258,11 +258,11 @@ type Props$i = {
258
258
  declare global {
259
259
  namespace JSX {
260
260
  interface IntrinsicElements {
261
- 'descope-new-password': DescopeInputProps & Props$i;
261
+ 'descope-new-password': DescopeInputProps & Props$j;
262
262
  }
263
263
  }
264
264
  }
265
- declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$i, "ref"> & React.RefAttributes<HTMLInputElement>>;
265
+ declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$j, "ref"> & React.RefAttributes<HTMLInputElement>>;
266
266
 
267
267
  declare global {
268
268
  namespace JSX {
@@ -282,16 +282,16 @@ declare global {
282
282
  }
283
283
  declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
284
284
 
285
- type Props$h = {
285
+ type Props$i = {
286
286
  variant: 'countrySelection' | 'inputBox';
287
287
  'default-code'?: string;
288
288
  'phone-input-placeholder'?: string;
289
289
  'country-input-placeholder'?: string;
290
290
  'restrict-countries'?: string;
291
291
  } & DescopeInputProps;
292
- declare const Phone: React.ForwardRefExoticComponent<Omit<Props$h, "ref"> & React.RefAttributes<HTMLInputElement>>;
292
+ declare const Phone: React.ForwardRefExoticComponent<Omit<Props$i, "ref"> & React.RefAttributes<HTMLInputElement>>;
293
293
 
294
- type Props$g = {
294
+ type Props$h = {
295
295
  children?: JSX.Element[];
296
296
  data?: string | Record<string, string>[];
297
297
  };
@@ -304,9 +304,9 @@ declare global {
304
304
  }
305
305
  }
306
306
  }
307
- declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$g, "ref"> & React.RefAttributes<HTMLInputElement>>;
307
+ declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$h, "ref"> & React.RefAttributes<HTMLInputElement>>;
308
308
 
309
- type Props$f = {
309
+ type Props$g = {
310
310
  italic?: boolean;
311
311
  variant?: string;
312
312
  mode?: string;
@@ -316,11 +316,11 @@ type Props$f = {
316
316
  declare global {
317
317
  namespace JSX {
318
318
  interface IntrinsicElements {
319
- 'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$f;
319
+ 'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$g;
320
320
  }
321
321
  }
322
322
  }
323
- declare const Text: React.ForwardRefExoticComponent<Omit<Props$f & {
323
+ declare const Text: React.ForwardRefExoticComponent<Omit<Props$g & {
324
324
  typography?: TypographyVariants;
325
325
  } & Omit<React.HTMLProps<HTMLSpanElement>, "mode">, "ref"> & React.RefAttributes<HTMLElement>>;
326
326
 
@@ -342,39 +342,39 @@ declare global {
342
342
  }
343
343
  declare const TextField: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
344
344
 
345
- type Props$e = {
345
+ type Props$f = {
346
346
  width?: string;
347
347
  height?: string;
348
348
  };
349
349
  declare global {
350
350
  namespace JSX {
351
351
  interface IntrinsicElements {
352
- 'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$e>;
352
+ 'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$f>;
353
353
  }
354
354
  }
355
355
  }
356
- declare const TOTPImage: React.ForwardRefExoticComponent<Props$e & React.RefAttributes<HTMLDivElement>>;
356
+ declare const TOTPImage: React.ForwardRefExoticComponent<Props$f & React.RefAttributes<HTMLDivElement>>;
357
357
 
358
- type Props$d = Omit<React.ComponentProps<typeof Link>, 'href'>;
359
- declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$d, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
358
+ type Props$e = Omit<React.ComponentProps<typeof Link>, 'href'>;
359
+ declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$e, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
360
360
 
361
- type Props$c = {
361
+ type Props$d = {
362
362
  width?: string;
363
363
  height?: string;
364
364
  };
365
365
  declare global {
366
366
  namespace JSX {
367
367
  interface IntrinsicElements {
368
- 'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$c>;
368
+ 'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$d>;
369
369
  }
370
370
  }
371
371
  }
372
- declare const NOTPImage: React.ForwardRefExoticComponent<Props$c & React.RefAttributes<HTMLDivElement>>;
372
+ declare const NOTPImage: React.ForwardRefExoticComponent<Props$d & React.RefAttributes<HTMLDivElement>>;
373
373
 
374
- type Props$b = Omit<React.ComponentProps<typeof Link>, 'href'>;
375
- declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$b, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
374
+ type Props$c = Omit<React.ComponentProps<typeof Link>, 'href'>;
375
+ declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$c, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
376
376
 
377
- type Props$a = {
377
+ type Props$b = {
378
378
  title?: string;
379
379
  description?: string;
380
380
  icon?: string;
@@ -393,13 +393,13 @@ type Props$a = {
393
393
  declare global {
394
394
  namespace JSX {
395
395
  interface IntrinsicElements {
396
- 'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$a;
396
+ 'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$b;
397
397
  }
398
398
  }
399
399
  }
400
- declare const UploadFile: React.ForwardRefExoticComponent<Props$a & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
400
+ declare const UploadFile: React.ForwardRefExoticComponent<Props$b & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
401
401
 
402
- type Props$9 = {
402
+ type Props$a = {
403
403
  enabled?: boolean;
404
404
  'site-key'?: string;
405
405
  enterprise?: boolean;
@@ -411,20 +411,20 @@ declare global {
411
411
  }
412
412
  namespace JSX {
413
413
  interface IntrinsicElements {
414
- 'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$9;
414
+ 'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$a;
415
415
  }
416
416
  }
417
417
  }
418
- declare const Recaptcha: React.ForwardRefExoticComponent<Props$9 & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
418
+ declare const Recaptcha: React.ForwardRefExoticComponent<Props$a & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
419
419
 
420
- type Props$8 = DescopeInputProps & {
420
+ type Props$9 = DescopeInputProps & {
421
421
  'default-value'?: string;
422
422
  'allow-deselect'?: boolean;
423
423
  };
424
424
  declare global {
425
425
  namespace JSX {
426
426
  interface IntrinsicElements {
427
- 'descope-button-selection-group': Props$8;
427
+ 'descope-button-selection-group': Props$9;
428
428
  'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
429
429
  value: string;
430
430
  children: string;
@@ -439,19 +439,19 @@ declare const ButtonSelectionGroup: React.ForwardRefExoticComponent<Omit<HTMLInp
439
439
  children?: JSX.Element[];
440
440
  }, "ref"> & React.RefAttributes<HTMLInputElement>>;
441
441
 
442
- type Item$2 = {
442
+ type Item$3 = {
443
443
  label: string;
444
444
  value: string;
445
445
  };
446
446
  type SingleSelectType = {
447
447
  variant?: 'buttonSelectionGroup' | 'combobox';
448
- data?: Item$2[];
448
+ data?: Item$3[];
449
449
  allowClearValue?: boolean;
450
450
  };
451
- type Props$7 = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
452
- declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$7, "ref"> & React.RefAttributes<HTMLInputElement>>;
451
+ type Props$8 = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
452
+ declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$8, "ref"> & React.RefAttributes<HTMLInputElement>>;
453
453
 
454
- type Props$6 = DescopeInputProps & {
454
+ type Props$7 = DescopeInputProps & {
455
455
  'default-value'?: string;
456
456
  'item-label-path'?: string;
457
457
  'item-value-path'?: string;
@@ -459,7 +459,7 @@ type Props$6 = DescopeInputProps & {
459
459
  declare global {
460
460
  namespace JSX {
461
461
  interface IntrinsicElements {
462
- 'descope-combobox': Props$6;
462
+ 'descope-combobox': Props$7;
463
463
  }
464
464
  }
465
465
  }
@@ -481,7 +481,7 @@ type Column = {
481
481
  resizable: boolean;
482
482
  };
483
483
  };
484
- type Props$5 = {
484
+ type Props$6 = {
485
485
  identifier: any;
486
486
  children?: JSX.Element[];
487
487
  size?: Omit<ComponentSize, 'xl'>;
@@ -497,7 +497,7 @@ declare global {
497
497
  }
498
498
  }
499
499
  }
500
- declare const Grid: React.ForwardRefExoticComponent<Props$5 & React.RefAttributes<HTMLInputElement>>;
500
+ declare const Grid: React.ForwardRefExoticComponent<Props$6 & React.RefAttributes<HTMLInputElement>>;
501
501
 
502
502
  type ColumnProps = {
503
503
  sortable?: boolean;
@@ -537,7 +537,7 @@ declare global {
537
537
  }
538
538
  declare const GridTextColumn: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLInputElement>>;
539
539
 
540
- type Props$4 = {
540
+ type Props$5 = {
541
541
  mode?: string;
542
542
  size?: string;
543
543
  bordered?: boolean;
@@ -546,11 +546,11 @@ type Props$4 = {
546
546
  declare global {
547
547
  namespace JSX {
548
548
  interface IntrinsicElements {
549
- 'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$4;
549
+ 'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$5;
550
550
  }
551
551
  }
552
552
  }
553
- declare const Badge: React.ForwardRefExoticComponent<Props$4 & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
553
+ declare const Badge: React.ForwardRefExoticComponent<Props$5 & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
554
554
 
555
555
  declare global {
556
556
  namespace JSX {
@@ -559,12 +559,12 @@ declare global {
559
559
  }
560
560
  }
561
561
  }
562
- type Props$3 = {
562
+ type Props$4 = {
563
563
  opened?: boolean;
564
564
  };
565
- declare const Modal: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
565
+ declare const Modal: React.ForwardRefExoticComponent<Props$4 & React.RefAttributes<HTMLDivElement>>;
566
566
 
567
- type Props$2 = DescopeInputProps & {
567
+ type Props$3 = DescopeInputProps & {
568
568
  size?: 'xs' | 'sm' | 'md' | 'lg';
569
569
  'min-items-selection'?: number;
570
570
  'max-items-selection'?: number;
@@ -572,7 +572,7 @@ type Props$2 = DescopeInputProps & {
572
572
  declare global {
573
573
  namespace JSX {
574
574
  interface IntrinsicElements {
575
- 'descope-button-multi-selection-group': Props$2 & {
575
+ 'descope-button-multi-selection-group': Props$3 & {
576
576
  'default-values'?: string;
577
577
  };
578
578
  'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
@@ -588,20 +588,45 @@ declare const ButtonMultiSelectionGroup: React.ForwardRefExoticComponent<Omit<HT
588
588
  'max-items-selection'?: number;
589
589
  } & MultiSelectProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
590
590
 
591
- type Item$1 = {
591
+ type Item$2 = {
592
592
  label: string;
593
593
  value: string;
594
594
  };
595
595
  type MultiSelectType = {
596
596
  variant?: 'buttonSelectionGroup' | 'combobox' | 'dynamicCombobox';
597
- data?: Item$1[];
597
+ data?: Item$2[];
598
598
  'min-items-selection'?: number;
599
599
  'max-items-selection'?: number;
600
600
  };
601
- type Props$1 = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
601
+ type Props$2 = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
602
602
  'default-values'?: string[];
603
603
  };
604
- declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$1, "ref"> & React.RefAttributes<HTMLInputElement>>;
604
+ declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$2, "ref"> & React.RefAttributes<HTMLInputElement>>;
605
+
606
+ type Item$1 = {
607
+ label: string;
608
+ value: string;
609
+ };
610
+ type Props$1 = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
611
+ 'label-value'?: string;
612
+ 'label-attr'?: string;
613
+ 'button-label'?: string;
614
+ separator?: string;
615
+ size?: 'xs' | 'sm' | 'md' | 'lg';
616
+ 'default-values'?: Record<string, string>[];
617
+ options?: Item$1[];
618
+ };
619
+ declare global {
620
+ namespace JSX {
621
+ interface IntrinsicElements {
622
+ 'descope-mappings-field': Omit<Props$1, 'default-values' | 'options'> & {
623
+ 'default-values'?: string;
624
+ options?: string;
625
+ };
626
+ }
627
+ }
628
+ }
629
+ declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$1, "ref"> & React.RefAttributes<HTMLInputElement>>;
605
630
 
606
631
  type Item = {
607
632
  label: string;
@@ -610,22 +635,21 @@ type Item = {
610
635
  type Props = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
611
636
  'label-value'?: string;
612
637
  'label-attr'?: string;
638
+ 'label-group'?: string;
613
639
  'button-label'?: string;
614
640
  separator?: string;
615
641
  size?: 'xs' | 'sm' | 'md' | 'lg';
616
- 'default-values'?: Record<string, string>[];
617
642
  options?: Item[];
618
643
  };
619
644
  declare global {
620
645
  namespace JSX {
621
646
  interface IntrinsicElements {
622
- 'descope-mappings-field': Omit<Props, 'default-values' | 'options'> & {
623
- 'default-values'?: string;
647
+ 'descope-saml-group-mappings': Omit<Props, 'options'> & {
624
648
  options?: string;
625
649
  };
626
650
  }
627
651
  }
628
652
  }
629
- declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
653
+ declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
630
654
 
631
- export { 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, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, _default$b as apple, _default$2 as discord, _default$a as facebook, _default$8 as fingerprint, _default$6 as github, _default$5 as gitlab, _default$4 as google, _default$1 as linkedin, _default$3 as microsoft, _default$7 as passkey, _default$9 as slack, _default as sso, WhatsAppIcon as whatsapp };
655
+ export { 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, _default$b as apple, _default$2 as discord, _default$a as facebook, _default$8 as fingerprint, _default$6 as github, _default$5 as gitlab, _default$4 as google, _default$1 as linkedin, _default$3 as microsoft, _default$7 as passkey, _default$9 as slack, _default as sso, WhatsAppIcon as whatsapp };
package/dist/index.esm.js CHANGED
@@ -388,4 +388,24 @@ MappingsField.defaultProps = {
388
388
  size: 'md'
389
389
  };
390
390
 
391
- export { 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, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, UploadFile, apple, discord, facebook, fingerprint, github, gitlab, google, linkedin, microsoft, passkey, slack, sso, WhatsAppIcon as whatsapp };
391
+ const SAMLGroupMappings = React.forwardRef(({ options, ...props }, ref) => {
392
+ const serializedOptions = useMemo(() => {
393
+ if (!options)
394
+ return undefined;
395
+ try {
396
+ return JSON.stringify(options);
397
+ }
398
+ catch (e) {
399
+ // eslint-disable-next-line no-console
400
+ console.error('could not parse data string from attribute "options" -', e.message);
401
+ return '';
402
+ }
403
+ }, [options]);
404
+ return (React.createElement("descope-saml-group-mappings", { ...props, options: serializedOptions ?? undefined, ref: ref }));
405
+ });
406
+ SAMLGroupMappings.defaultProps = {
407
+ // eslint-disable-next-line react/default-props-match-prop-types
408
+ size: 'md'
409
+ };
410
+
411
+ export { 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, apple, discord, facebook, fingerprint, github, gitlab, google, linkedin, microsoft, passkey, slack, sso, WhatsAppIcon as whatsapp };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/flow-components",
3
- "version": "2.0.235",
3
+ "version": "2.0.237",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -69,7 +69,7 @@
69
69
  "eslint-import-resolver-typescript": "3.6.1",
70
70
  "eslint-plugin-import": "2.29.1",
71
71
  "eslint-plugin-jest": "27.9.0",
72
- "eslint-plugin-jest-dom": "5.1.0",
72
+ "eslint-plugin-jest-dom": "5.2.0",
73
73
  "eslint-plugin-jest-formatting": "3.1.0",
74
74
  "eslint-plugin-jsx-a11y": "^6.6.1",
75
75
  "eslint-plugin-n": "16.6.2",
@@ -100,7 +100,7 @@
100
100
  "typescript": "^5.0.0"
101
101
  },
102
102
  "dependencies": {
103
- "@descope/web-components-ui": "1.0.289"
103
+ "@descope/web-components-ui": "1.0.291"
104
104
  },
105
105
  "peerDependencies": {
106
106
  "react": ">=17"