@descope/flow-components 2.0.351 → 2.0.353
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 +119 -99
- package/dist/index.esm.js +3 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -471,6 +471,8 @@ const ListItem = React__default.default.forwardRef((props, ref) => (React__defau
|
|
|
471
471
|
const AppsList = React__default.default.forwardRef(({ emptyState, data, ...props }, ref) => (React__default.default.createElement("descope-apps-list", { data: data ? JSON.stringify(data) : undefined, ...props, ref: ref },
|
|
472
472
|
React__default.default.createElement("div", { slot: "empty-state" }, emptyState))));
|
|
473
473
|
|
|
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
|
+
|
|
474
476
|
exports.AppsList = AppsList;
|
|
475
477
|
exports.Avatar = Avatar;
|
|
476
478
|
exports.Badge = Badge;
|
|
@@ -506,6 +508,7 @@ exports.Password = Password;
|
|
|
506
508
|
exports.Phone = Phone;
|
|
507
509
|
exports.Recaptcha = Recaptcha;
|
|
508
510
|
exports.SAMLGroupMappings = SAMLGroupMappings;
|
|
511
|
+
exports.ScopesList = ScopesList;
|
|
509
512
|
exports.Select = Select;
|
|
510
513
|
exports.SingleSelect = SingleSelect;
|
|
511
514
|
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$
|
|
56
|
-
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$
|
|
55
|
+
type Props$y = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
|
|
56
|
+
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$y, "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$
|
|
78
|
+
type Props$x = {
|
|
79
79
|
digits?: number;
|
|
80
80
|
};
|
|
81
81
|
declare global {
|
|
82
82
|
namespace JSX {
|
|
83
83
|
interface IntrinsicElements {
|
|
84
|
-
'descope-passcode': DescopeInputProps & Props$
|
|
84
|
+
'descope-passcode': DescopeInputProps & Props$x;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
88
|
+
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$x, "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$
|
|
104
|
+
type Props$w = {
|
|
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$
|
|
120
|
+
declare const Container: React.ForwardRefExoticComponent<(Props$w & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
|
|
121
121
|
|
|
122
|
-
type Props$
|
|
122
|
+
type Props$v = {
|
|
123
123
|
vertical?: boolean;
|
|
124
124
|
italic?: boolean;
|
|
125
125
|
variant?: TypographyVariants;
|
|
@@ -129,15 +129,15 @@ type Props$u = {
|
|
|
129
129
|
declare global {
|
|
130
130
|
namespace JSX {
|
|
131
131
|
interface IntrinsicElements {
|
|
132
|
-
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$
|
|
132
|
+
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$v, 'children'>;
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$
|
|
136
|
+
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$v, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
137
137
|
|
|
138
138
|
declare const ReactComponent: (props: SVGProps<SVGSVGElement>) => JSX.Element;
|
|
139
139
|
|
|
140
|
-
type Props$
|
|
140
|
+
type Props$u = {
|
|
141
141
|
width?: string;
|
|
142
142
|
height?: string;
|
|
143
143
|
alt?: string;
|
|
@@ -146,15 +146,15 @@ type Props$t = {
|
|
|
146
146
|
declare global {
|
|
147
147
|
namespace JSX {
|
|
148
148
|
interface IntrinsicElements {
|
|
149
|
-
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
149
|
+
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$u;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
declare const Image: React.ForwardRefExoticComponent<Props$
|
|
153
|
+
declare const Image: React.ForwardRefExoticComponent<Props$u & 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$
|
|
157
|
+
type Props$t = {
|
|
158
158
|
href?: string | undefined;
|
|
159
159
|
italic?: boolean;
|
|
160
160
|
variant?: TypographyVariants;
|
|
@@ -166,18 +166,18 @@ type Props$s = {
|
|
|
166
166
|
declare global {
|
|
167
167
|
namespace JSX {
|
|
168
168
|
interface IntrinsicElements {
|
|
169
|
-
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$
|
|
169
|
+
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$t, 'children'>;
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
|
-
declare const Link: React.ForwardRefExoticComponent<Props$
|
|
173
|
+
declare const Link: React.ForwardRefExoticComponent<Props$t & React.RefAttributes<HTMLAnchorElement>>;
|
|
174
174
|
|
|
175
|
-
type Props$
|
|
175
|
+
type Props$s = {
|
|
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$
|
|
180
|
+
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$s>;
|
|
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$
|
|
189
|
+
declare const Loader: React.ForwardRefExoticComponent<Props$s & React.RefAttributes<HTMLDivElement>>;
|
|
190
190
|
|
|
191
|
-
type Props$
|
|
191
|
+
type Props$r = {
|
|
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$
|
|
198
|
+
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$r>;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
declare const Logo: React.ForwardRefExoticComponent<Props$
|
|
202
|
+
declare const Logo: React.ForwardRefExoticComponent<Props$r & React.RefAttributes<HTMLDivElement>>;
|
|
203
203
|
|
|
204
|
-
type Props$
|
|
204
|
+
type Props$q = {
|
|
205
205
|
'password-label'?: string;
|
|
206
206
|
'password-placeholder'?: string;
|
|
207
207
|
'confirm-label'?: string;
|
|
@@ -227,11 +227,11 @@ type Props$p = {
|
|
|
227
227
|
declare global {
|
|
228
228
|
namespace JSX {
|
|
229
229
|
interface IntrinsicElements {
|
|
230
|
-
'descope-new-password': DescopeInputProps & Props$
|
|
230
|
+
'descope-new-password': DescopeInputProps & Props$q;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
|
-
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
234
|
+
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$q, "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$
|
|
254
|
+
type Props$p = {
|
|
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$
|
|
261
|
+
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$p, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
262
262
|
|
|
263
|
-
type Props$
|
|
263
|
+
type Props$o = {
|
|
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$
|
|
276
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$o, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
277
277
|
|
|
278
|
-
type Props$
|
|
278
|
+
type Props$n = {
|
|
279
279
|
italic?: boolean;
|
|
280
280
|
variant?: string;
|
|
281
281
|
mode?: string;
|
|
@@ -287,12 +287,12 @@ type Props$m = {
|
|
|
287
287
|
declare global {
|
|
288
288
|
namespace JSX {
|
|
289
289
|
interface IntrinsicElements {
|
|
290
|
-
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
291
|
-
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
290
|
+
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$n;
|
|
291
|
+
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$n;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
declare const Text: React.ForwardRefExoticComponent<Omit<Props$
|
|
295
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<Props$n & {
|
|
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$
|
|
317
|
+
type Props$m = {
|
|
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$
|
|
324
|
+
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$m>;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
|
-
declare const TOTPImage: React.ForwardRefExoticComponent<Props$
|
|
328
|
+
declare const TOTPImage: React.ForwardRefExoticComponent<Props$m & React.RefAttributes<HTMLDivElement>>;
|
|
329
329
|
|
|
330
|
-
type Props$
|
|
331
|
-
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
330
|
+
type Props$l = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
331
|
+
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$l, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
332
332
|
|
|
333
|
-
type Props$
|
|
333
|
+
type Props$k = {
|
|
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$
|
|
340
|
+
'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$k>;
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
declare const NOTPImage: React.ForwardRefExoticComponent<Props$
|
|
344
|
+
declare const NOTPImage: React.ForwardRefExoticComponent<Props$k & React.RefAttributes<HTMLDivElement>>;
|
|
345
345
|
|
|
346
|
-
type Props$
|
|
347
|
-
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
346
|
+
type Props$j = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
347
|
+
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$j, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
348
348
|
|
|
349
|
-
type Props$
|
|
349
|
+
type Props$i = {
|
|
350
350
|
title?: string;
|
|
351
351
|
description?: string;
|
|
352
352
|
icon?: string;
|
|
@@ -365,13 +365,13 @@ type Props$h = {
|
|
|
365
365
|
declare global {
|
|
366
366
|
namespace JSX {
|
|
367
367
|
interface IntrinsicElements {
|
|
368
|
-
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
368
|
+
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$i;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
-
declare const UploadFile: React.ForwardRefExoticComponent<Props$
|
|
372
|
+
declare const UploadFile: React.ForwardRefExoticComponent<Props$i & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
373
373
|
|
|
374
|
-
type Props$
|
|
374
|
+
type Props$h = {
|
|
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$
|
|
386
|
+
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$h;
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
declare const Recaptcha: React.ForwardRefExoticComponent<Props$
|
|
390
|
+
declare const Recaptcha: React.ForwardRefExoticComponent<Props$h & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
391
391
|
|
|
392
|
-
type Props$
|
|
392
|
+
type Props$g = 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$
|
|
399
|
+
'descope-button-selection-group': Props$g;
|
|
400
400
|
'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
|
|
401
401
|
value: string;
|
|
402
402
|
children: string;
|
|
@@ -411,21 +411,21 @@ declare const ButtonSelectionGroup: React.ForwardRefExoticComponent<Omit<HTMLInp
|
|
|
411
411
|
children?: JSX.Element[];
|
|
412
412
|
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
413
413
|
|
|
414
|
-
type Item$
|
|
414
|
+
type Item$4 = {
|
|
415
415
|
label: string;
|
|
416
416
|
value: string;
|
|
417
417
|
};
|
|
418
418
|
type SingleSelectType = {
|
|
419
419
|
variant?: 'buttonSelectionGroup' | 'combobox' | 'radioGroup';
|
|
420
|
-
data?: Item$
|
|
420
|
+
data?: Item$4[];
|
|
421
421
|
allowClearValue?: boolean;
|
|
422
422
|
layout?: 'horizontal' | 'vertical';
|
|
423
423
|
'label-type'?: LabelType;
|
|
424
424
|
};
|
|
425
|
-
type Props$
|
|
426
|
-
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
425
|
+
type Props$f = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
|
|
426
|
+
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$f, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
427
427
|
|
|
428
|
-
type Props$
|
|
428
|
+
type Props$e = DescopeInputProps & {
|
|
429
429
|
'default-value'?: string;
|
|
430
430
|
'item-label-path'?: string;
|
|
431
431
|
'item-value-path'?: string;
|
|
@@ -433,7 +433,7 @@ type Props$d = DescopeInputProps & {
|
|
|
433
433
|
declare global {
|
|
434
434
|
namespace JSX {
|
|
435
435
|
interface IntrinsicElements {
|
|
436
|
-
'descope-combobox': Props$
|
|
436
|
+
'descope-combobox': Props$e;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
}
|
|
@@ -455,7 +455,7 @@ type Column = {
|
|
|
455
455
|
resizable: boolean;
|
|
456
456
|
};
|
|
457
457
|
};
|
|
458
|
-
type Props$
|
|
458
|
+
type Props$d = {
|
|
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$
|
|
474
|
+
declare const Grid: React.ForwardRefExoticComponent<Props$d & 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$
|
|
523
|
+
type Props$c = {
|
|
524
524
|
mode?: string;
|
|
525
525
|
size?: string;
|
|
526
526
|
bordered?: boolean;
|
|
@@ -529,11 +529,11 @@ type Props$b = {
|
|
|
529
529
|
declare global {
|
|
530
530
|
namespace JSX {
|
|
531
531
|
interface IntrinsicElements {
|
|
532
|
-
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
532
|
+
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$c;
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
declare const Badge: React.ForwardRefExoticComponent<Props$
|
|
536
|
+
declare const Badge: React.ForwardRefExoticComponent<Props$c & 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$
|
|
545
|
+
type Props$b = {
|
|
546
546
|
opened?: boolean;
|
|
547
547
|
};
|
|
548
|
-
declare const Modal: React.ForwardRefExoticComponent<Props$
|
|
548
|
+
declare const Modal: React.ForwardRefExoticComponent<Props$b & React.RefAttributes<HTMLDivElement>>;
|
|
549
549
|
|
|
550
|
-
type Props$
|
|
550
|
+
type Props$a = 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$9 = DescopeInputProps & {
|
|
|
555
555
|
declare global {
|
|
556
556
|
namespace JSX {
|
|
557
557
|
interface IntrinsicElements {
|
|
558
|
-
'descope-button-multi-selection-group': Props$
|
|
558
|
+
'descope-button-multi-selection-group': Props$a & {
|
|
559
559
|
'default-values'?: string;
|
|
560
560
|
};
|
|
561
561
|
'descope-button-selection-group-item': JSX.IntrinsicElements['span'] & {
|
|
@@ -571,70 +571,70 @@ declare const ButtonMultiSelectionGroup: React.ForwardRefExoticComponent<Omit<HT
|
|
|
571
571
|
'max-items-selection'?: number;
|
|
572
572
|
} & MultiSelectProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
573
573
|
|
|
574
|
-
type Item$
|
|
574
|
+
type Item$3 = {
|
|
575
575
|
label: string;
|
|
576
576
|
value: string;
|
|
577
577
|
};
|
|
578
578
|
type MultiSelectType = {
|
|
579
579
|
variant?: 'buttonSelectionGroup' | 'combobox' | 'dynamicCombobox';
|
|
580
|
-
data?: Item$
|
|
580
|
+
data?: Item$3[];
|
|
581
581
|
'min-items-selection'?: number;
|
|
582
582
|
'max-items-selection'?: number;
|
|
583
583
|
'label-type'?: string;
|
|
584
584
|
};
|
|
585
|
-
type Props$
|
|
585
|
+
type Props$9 = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
|
|
586
586
|
'default-values'?: string[];
|
|
587
587
|
};
|
|
588
|
-
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
588
|
+
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$9, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
589
589
|
|
|
590
|
-
type Item$
|
|
590
|
+
type Item$2 = {
|
|
591
591
|
label: string;
|
|
592
592
|
value: string;
|
|
593
593
|
};
|
|
594
|
-
type Props$
|
|
594
|
+
type Props$8 = 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;
|
|
598
598
|
separator?: string;
|
|
599
599
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
600
600
|
'default-values'?: Record<string, string>[];
|
|
601
|
-
options?: Item$
|
|
601
|
+
options?: Item$2[];
|
|
602
602
|
};
|
|
603
603
|
declare global {
|
|
604
604
|
namespace JSX {
|
|
605
605
|
interface IntrinsicElements {
|
|
606
|
-
'descope-mappings-field': Omit<Props$
|
|
606
|
+
'descope-mappings-field': Omit<Props$8, '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$
|
|
613
|
+
declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$8, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
614
614
|
|
|
615
|
-
type Item = {
|
|
615
|
+
type Item$1 = {
|
|
616
616
|
label: string;
|
|
617
617
|
value: string;
|
|
618
618
|
};
|
|
619
|
-
type Props$
|
|
619
|
+
type Props$7 = 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;
|
|
623
623
|
'button-label'?: string;
|
|
624
624
|
separator?: string;
|
|
625
625
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
626
|
-
options?: Item[];
|
|
626
|
+
options?: Item$1[];
|
|
627
627
|
};
|
|
628
628
|
declare global {
|
|
629
629
|
namespace JSX {
|
|
630
630
|
interface IntrinsicElements {
|
|
631
|
-
'descope-saml-group-mappings': Omit<Props$
|
|
631
|
+
'descope-saml-group-mappings': Omit<Props$7, 'options'> & {
|
|
632
632
|
options?: string;
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$
|
|
637
|
+
declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$7, "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$
|
|
658
|
+
type Props$6 = {
|
|
659
659
|
'badge-tooltip-text'?: string;
|
|
660
660
|
'badge-label'?: string;
|
|
661
661
|
value?: string;
|
|
@@ -667,13 +667,13 @@ type Props$5 = {
|
|
|
667
667
|
declare global {
|
|
668
668
|
namespace JSX {
|
|
669
669
|
interface IntrinsicElements {
|
|
670
|
-
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
670
|
+
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$6;
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$
|
|
674
|
+
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$6, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
675
675
|
|
|
676
|
-
type Props$
|
|
676
|
+
type Props$5 = {
|
|
677
677
|
img?: string;
|
|
678
678
|
'display-name'?: string;
|
|
679
679
|
size?: string;
|
|
@@ -682,26 +682,26 @@ type Props$4 = {
|
|
|
682
682
|
declare global {
|
|
683
683
|
namespace JSX {
|
|
684
684
|
interface IntrinsicElements {
|
|
685
|
-
'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
685
|
+
'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$5;
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$
|
|
689
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$5, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
690
690
|
|
|
691
|
-
type Props$
|
|
691
|
+
type Props$4 = {
|
|
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$
|
|
698
|
+
'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$4;
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
|
-
declare const CodeSnippet: React.ForwardRefExoticComponent<Props$
|
|
702
|
+
declare const CodeSnippet: React.ForwardRefExoticComponent<Props$4 & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
703
703
|
|
|
704
|
-
type Props$
|
|
704
|
+
type Props$3 = {
|
|
705
705
|
emptyState?: React.ReactNode;
|
|
706
706
|
children?: React.ReactNode[];
|
|
707
707
|
variant?: 'list' | 'tiles';
|
|
@@ -709,26 +709,26 @@ type Props$2 = {
|
|
|
709
709
|
declare global {
|
|
710
710
|
namespace JSX {
|
|
711
711
|
interface IntrinsicElements {
|
|
712
|
-
'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
712
|
+
'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$3>;
|
|
713
713
|
}
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
declare const List: React.ForwardRefExoticComponent<Props$
|
|
716
|
+
declare const List: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
|
|
717
717
|
|
|
718
|
-
type Props$
|
|
718
|
+
type Props$2 = {
|
|
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$
|
|
725
|
+
'descope-list-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$2>;
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
declare const ListItem: React.ForwardRefExoticComponent<Props$
|
|
729
|
+
declare const ListItem: React.ForwardRefExoticComponent<Props$2 & React.RefAttributes<HTMLDivElement>>;
|
|
730
730
|
|
|
731
|
-
type Props = {
|
|
731
|
+
type Props$1 = {
|
|
732
732
|
emptyState?: React.ReactNode;
|
|
733
733
|
variant?: 'list' | 'tiles';
|
|
734
734
|
data?: any[];
|
|
@@ -737,11 +737,31 @@ type Props = {
|
|
|
737
737
|
declare global {
|
|
738
738
|
namespace JSX {
|
|
739
739
|
interface IntrinsicElements {
|
|
740
|
-
'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props>;
|
|
740
|
+
'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$1>;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
declare const AppsList: React.ForwardRefExoticComponent<Props$1 & React.RefAttributes<HTMLDivElement>>;
|
|
745
|
+
|
|
746
|
+
type Item = {
|
|
747
|
+
desc: string;
|
|
748
|
+
id: string;
|
|
749
|
+
required?: boolean;
|
|
750
|
+
};
|
|
751
|
+
type Props = {
|
|
752
|
+
variant?: 'checkbox' | 'switch';
|
|
753
|
+
data?: Item[];
|
|
754
|
+
readonly?: boolean;
|
|
755
|
+
size: 'xs' | 'sm' | 'md' | 'lg';
|
|
756
|
+
};
|
|
757
|
+
declare global {
|
|
758
|
+
namespace JSX {
|
|
759
|
+
interface IntrinsicElements {
|
|
760
|
+
'descope-scopes-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props>;
|
|
741
761
|
}
|
|
742
762
|
}
|
|
743
763
|
}
|
|
744
|
-
declare const
|
|
764
|
+
declare const ScopesList: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLDivElement>>;
|
|
745
765
|
|
|
746
766
|
declare global {
|
|
747
767
|
namespace JSX {
|
|
@@ -752,4 +772,4 @@ declare global {
|
|
|
752
772
|
}
|
|
753
773
|
declare const DateField: React.ForwardRefExoticComponent<Omit<Omit<DescopeInputProps, "external-input">, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
754
774
|
|
|
755
|
-
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, Select, SingleSelect, Switch, TOTPImage, TOTPLink, Text, TextField, Textarea, 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 };
|
|
775
|
+
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, 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
|
@@ -465,4 +465,6 @@ const ListItem = React.forwardRef((props, ref) => (React.createElement("descope-
|
|
|
465
465
|
const AppsList = React.forwardRef(({ emptyState, data, ...props }, ref) => (React.createElement("descope-apps-list", { data: data ? JSON.stringify(data) : undefined, ...props, ref: ref },
|
|
466
466
|
React.createElement("div", { slot: "empty-state" }, emptyState))));
|
|
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
|
+
|
|
470
|
+
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, 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.
|
|
3
|
+
"version": "2.0.353",
|
|
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.
|
|
105
|
+
"@descope/web-components-ui": "1.0.390"
|
|
106
106
|
},
|
|
107
107
|
"peerDependencies": {
|
|
108
108
|
"react": ">=17"
|