@descope/flow-components 2.0.210 → 2.0.212
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 +12 -0
- package/dist/index.d.ts +52 -36
- package/dist/index.esm.js +11 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -250,6 +250,16 @@ const TOTPLink = React__default.default.forwardRef(({ ...props }, ref) => {
|
|
|
250
250
|
return React__default.default.createElement(Link, { ref: ref, ...readyProps });
|
|
251
251
|
});
|
|
252
252
|
|
|
253
|
+
const NOTPImage = React__default.default.forwardRef(({ width, height, ...props }, ref) => (React__default.default.createElement("descope-notp-image", { "st-width": width, "st-height": height, ref: ref, ...props })));
|
|
254
|
+
|
|
255
|
+
// The reason we define NOTPLink as a component, and not injecting the style from another place,
|
|
256
|
+
// is to restrict the dependency between the code that injects this variable style (web-component) to this place only
|
|
257
|
+
// Note: be careful when changing variables here, this can affect other packages implicitly
|
|
258
|
+
const NOTPLink = React__default.default.forwardRef(({ ...props }, ref) => {
|
|
259
|
+
const readyProps = { ...props, 'data-type': 'notp-link' };
|
|
260
|
+
return React__default.default.createElement(Link, { ref: ref, ...readyProps });
|
|
261
|
+
});
|
|
262
|
+
|
|
253
263
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
254
264
|
const UploadFile = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-upload-file", { ref: ref, ...props }));
|
|
255
265
|
|
|
@@ -359,6 +369,8 @@ exports.Loader = Loader;
|
|
|
359
369
|
exports.Logo = Logo;
|
|
360
370
|
exports.Modal = Modal;
|
|
361
371
|
exports.MultiSelect = MultiSelect;
|
|
372
|
+
exports.NOTPImage = NOTPImage;
|
|
373
|
+
exports.NOTPLink = NOTPLink;
|
|
362
374
|
exports.NewPassword = NewPassword;
|
|
363
375
|
exports.NumberField = NumberField;
|
|
364
376
|
exports.Password = Password;
|
package/dist/index.d.ts
CHANGED
|
@@ -49,8 +49,8 @@ declare const Switch: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "r
|
|
|
49
49
|
type BooleanType = {
|
|
50
50
|
type: 'switch' | 'checkbox';
|
|
51
51
|
};
|
|
52
|
-
type Props$
|
|
53
|
-
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$
|
|
52
|
+
type Props$p = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
|
|
53
|
+
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$p, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
54
54
|
|
|
55
55
|
declare global {
|
|
56
56
|
namespace JSX {
|
|
@@ -72,17 +72,17 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
|
|
|
72
72
|
'full-width'?: boolean;
|
|
73
73
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
74
74
|
|
|
75
|
-
type Props$
|
|
75
|
+
type Props$o = {
|
|
76
76
|
digits?: number;
|
|
77
77
|
};
|
|
78
78
|
declare global {
|
|
79
79
|
namespace JSX {
|
|
80
80
|
interface IntrinsicElements {
|
|
81
|
-
'descope-passcode': DescopeInputProps & Props$
|
|
81
|
+
'descope-passcode': DescopeInputProps & Props$o;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
85
|
+
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$o, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
86
86
|
|
|
87
87
|
type Never<T extends Record<string, any>> = {
|
|
88
88
|
[K in keyof T]: never;
|
|
@@ -98,7 +98,7 @@ type ContainerAlignment = {
|
|
|
98
98
|
'vertical-alignment'?: FlexAlignment;
|
|
99
99
|
'space-between'?: 'sm' | 'md' | 'lg';
|
|
100
100
|
};
|
|
101
|
-
type Props$
|
|
101
|
+
type Props$n = {
|
|
102
102
|
direction?: 'row' | 'column';
|
|
103
103
|
shadow?: 'md' | 'lg' | 'xl' | '2xl';
|
|
104
104
|
'border-radius'?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
@@ -114,9 +114,9 @@ declare global {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
declare const Container: React.ForwardRefExoticComponent<(Props$
|
|
117
|
+
declare const Container: React.ForwardRefExoticComponent<(Props$n & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
|
|
118
118
|
|
|
119
|
-
type Props$
|
|
119
|
+
type Props$m = {
|
|
120
120
|
vertical?: boolean;
|
|
121
121
|
italic?: boolean;
|
|
122
122
|
variant?: TypographyVariants;
|
|
@@ -126,11 +126,11 @@ type Props$k = {
|
|
|
126
126
|
declare global {
|
|
127
127
|
namespace JSX {
|
|
128
128
|
interface IntrinsicElements {
|
|
129
|
-
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$
|
|
129
|
+
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$m, 'children'>;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$
|
|
133
|
+
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$m, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
134
134
|
|
|
135
135
|
declare const _default$b: ({ noColor }: {
|
|
136
136
|
noColor: any;
|
|
@@ -180,7 +180,7 @@ declare const _default: ({ noColor }: {
|
|
|
180
180
|
noColor: any;
|
|
181
181
|
}) => React.JSX.Element;
|
|
182
182
|
|
|
183
|
-
type Props$
|
|
183
|
+
type Props$l = {
|
|
184
184
|
width?: string;
|
|
185
185
|
height?: string;
|
|
186
186
|
alt?: string;
|
|
@@ -189,15 +189,15 @@ type Props$j = {
|
|
|
189
189
|
declare global {
|
|
190
190
|
namespace JSX {
|
|
191
191
|
interface IntrinsicElements {
|
|
192
|
-
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
192
|
+
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$l;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
declare const Image: React.ForwardRefExoticComponent<Props$
|
|
196
|
+
declare const Image: React.ForwardRefExoticComponent<Props$l & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
197
197
|
|
|
198
198
|
declare const Input: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
199
199
|
|
|
200
|
-
type Props$
|
|
200
|
+
type Props$k = {
|
|
201
201
|
href?: string | undefined;
|
|
202
202
|
italic?: boolean;
|
|
203
203
|
variant?: TypographyVariants;
|
|
@@ -209,18 +209,18 @@ type Props$i = {
|
|
|
209
209
|
declare global {
|
|
210
210
|
namespace JSX {
|
|
211
211
|
interface IntrinsicElements {
|
|
212
|
-
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$
|
|
212
|
+
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$k, 'children'>;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
declare const Link: React.ForwardRefExoticComponent<Props$
|
|
216
|
+
declare const Link: React.ForwardRefExoticComponent<Props$k & React.RefAttributes<HTMLAnchorElement>>;
|
|
217
217
|
|
|
218
|
-
type Props$
|
|
218
|
+
type Props$j = {
|
|
219
219
|
variant?: 'linear' | 'radial';
|
|
220
220
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
221
221
|
color?: Mode;
|
|
222
222
|
};
|
|
223
|
-
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
223
|
+
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$j>;
|
|
224
224
|
declare global {
|
|
225
225
|
namespace JSX {
|
|
226
226
|
interface IntrinsicElements {
|
|
@@ -229,22 +229,22 @@ declare global {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
declare const Loader: React.ForwardRefExoticComponent<Props$
|
|
232
|
+
declare const Loader: React.ForwardRefExoticComponent<Props$j & React.RefAttributes<HTMLDivElement>>;
|
|
233
233
|
|
|
234
|
-
type Props$
|
|
234
|
+
type Props$i = {
|
|
235
235
|
width?: string;
|
|
236
236
|
height?: string;
|
|
237
237
|
};
|
|
238
238
|
declare global {
|
|
239
239
|
namespace JSX {
|
|
240
240
|
interface IntrinsicElements {
|
|
241
|
-
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
241
|
+
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$i>;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
|
-
declare const Logo: React.ForwardRefExoticComponent<Props$
|
|
245
|
+
declare const Logo: React.ForwardRefExoticComponent<Props$i & React.RefAttributes<HTMLDivElement>>;
|
|
246
246
|
|
|
247
|
-
type Props$
|
|
247
|
+
type Props$h = {
|
|
248
248
|
'password-label'?: string;
|
|
249
249
|
'password-placeholder'?: string;
|
|
250
250
|
'confirm-label'?: string;
|
|
@@ -254,11 +254,11 @@ type Props$f = {
|
|
|
254
254
|
declare global {
|
|
255
255
|
namespace JSX {
|
|
256
256
|
interface IntrinsicElements {
|
|
257
|
-
'descope-new-password': DescopeInputProps & Props$
|
|
257
|
+
'descope-new-password': DescopeInputProps & Props$h;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
|
-
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
261
|
+
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$h, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
262
262
|
|
|
263
263
|
declare global {
|
|
264
264
|
namespace JSX {
|
|
@@ -278,16 +278,16 @@ declare global {
|
|
|
278
278
|
}
|
|
279
279
|
declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
280
280
|
|
|
281
|
-
type Props$
|
|
281
|
+
type Props$g = {
|
|
282
282
|
variant: 'countrySelection' | 'inputBox';
|
|
283
283
|
'default-code'?: string;
|
|
284
284
|
'phone-input-placeholder'?: string;
|
|
285
285
|
'country-input-placeholder'?: string;
|
|
286
286
|
'restrict-countries'?: string;
|
|
287
287
|
} & DescopeInputProps;
|
|
288
|
-
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$
|
|
288
|
+
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$g, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
289
289
|
|
|
290
|
-
type Props$
|
|
290
|
+
type Props$f = {
|
|
291
291
|
children?: JSX.Element[];
|
|
292
292
|
};
|
|
293
293
|
declare global {
|
|
@@ -297,9 +297,9 @@ declare global {
|
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
300
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$f, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
301
301
|
|
|
302
|
-
type Props$
|
|
302
|
+
type Props$e = {
|
|
303
303
|
italic?: boolean;
|
|
304
304
|
variant?: string;
|
|
305
305
|
mode?: string;
|
|
@@ -309,11 +309,11 @@ type Props$c = {
|
|
|
309
309
|
declare global {
|
|
310
310
|
namespace JSX {
|
|
311
311
|
interface IntrinsicElements {
|
|
312
|
-
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
312
|
+
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$e;
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
declare const Text: React.ForwardRefExoticComponent<Omit<Props$
|
|
316
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<Props$e & {
|
|
317
317
|
typography?: TypographyVariants;
|
|
318
318
|
} & Omit<React.HTMLProps<HTMLSpanElement>, "mode">, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
319
319
|
|
|
@@ -335,6 +335,22 @@ declare global {
|
|
|
335
335
|
}
|
|
336
336
|
declare const TextField: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
337
337
|
|
|
338
|
+
type Props$d = {
|
|
339
|
+
width?: string;
|
|
340
|
+
height?: string;
|
|
341
|
+
};
|
|
342
|
+
declare global {
|
|
343
|
+
namespace JSX {
|
|
344
|
+
interface IntrinsicElements {
|
|
345
|
+
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$d>;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
declare const TOTPImage: React.ForwardRefExoticComponent<Props$d & React.RefAttributes<HTMLDivElement>>;
|
|
350
|
+
|
|
351
|
+
type Props$c = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
352
|
+
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$c, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
353
|
+
|
|
338
354
|
type Props$b = {
|
|
339
355
|
width?: string;
|
|
340
356
|
height?: string;
|
|
@@ -342,14 +358,14 @@ type Props$b = {
|
|
|
342
358
|
declare global {
|
|
343
359
|
namespace JSX {
|
|
344
360
|
interface IntrinsicElements {
|
|
345
|
-
'descope-
|
|
361
|
+
'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$b>;
|
|
346
362
|
}
|
|
347
363
|
}
|
|
348
364
|
}
|
|
349
|
-
declare const
|
|
365
|
+
declare const NOTPImage: React.ForwardRefExoticComponent<Props$b & React.RefAttributes<HTMLDivElement>>;
|
|
350
366
|
|
|
351
367
|
type Props$a = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
352
|
-
declare const
|
|
368
|
+
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$a, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
353
369
|
|
|
354
370
|
type Props$9 = {
|
|
355
371
|
title?: string;
|
|
@@ -580,4 +596,4 @@ type Props = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'defau
|
|
|
580
596
|
};
|
|
581
597
|
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
582
598
|
|
|
583
|
-
export { Badge, Boolean, Button, Checkbox, Code, ComboBox, Container, Divider, Grid, GridCustomColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, Loader, Logo, Modal, MultiSelect, 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 };
|
|
599
|
+
export { Badge, Boolean, Button, Checkbox, Code, ComboBox, Container, Divider, Grid, GridCustomColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, Loader, Logo, 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 };
|
package/dist/index.esm.js
CHANGED
|
@@ -244,6 +244,16 @@ const TOTPLink = React.forwardRef(({ ...props }, ref) => {
|
|
|
244
244
|
return React.createElement(Link, { ref: ref, ...readyProps });
|
|
245
245
|
});
|
|
246
246
|
|
|
247
|
+
const NOTPImage = React.forwardRef(({ width, height, ...props }, ref) => (React.createElement("descope-notp-image", { "st-width": width, "st-height": height, ref: ref, ...props })));
|
|
248
|
+
|
|
249
|
+
// The reason we define NOTPLink as a component, and not injecting the style from another place,
|
|
250
|
+
// is to restrict the dependency between the code that injects this variable style (web-component) to this place only
|
|
251
|
+
// Note: be careful when changing variables here, this can affect other packages implicitly
|
|
252
|
+
const NOTPLink = React.forwardRef(({ ...props }, ref) => {
|
|
253
|
+
const readyProps = { ...props, 'data-type': 'notp-link' };
|
|
254
|
+
return React.createElement(Link, { ref: ref, ...readyProps });
|
|
255
|
+
});
|
|
256
|
+
|
|
247
257
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
248
258
|
const UploadFile = React.forwardRef((props, ref) => React.createElement("descope-upload-file", { ref: ref, ...props }));
|
|
249
259
|
|
|
@@ -334,4 +344,4 @@ const MultiSelect = React.forwardRef(({ variant, data, ...props }, ref) => {
|
|
|
334
344
|
return (React.createElement(MultiSelectComboBox, { ...props, "allow-custom-value": "false", ref: ref }, data?.map(({ label, value }) => (React.createElement("span", { "data-name": label, "data-id": value, key: value }, label)))));
|
|
335
345
|
});
|
|
336
346
|
|
|
337
|
-
export { Badge, Boolean, Button, Checkbox, Code, ComboBox, Container, Divider, Grid, GridCustomColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, Loader, Logo, Modal, MultiSelect, 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 };
|
|
347
|
+
export { Badge, Boolean, Button, Checkbox, Code, ComboBox, Container, Divider, Grid, GridCustomColumn, GridSelectionColumn, GridTextColumn, Image, Input, Link, Loader, Logo, 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.212",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"rollup-plugin-dts": "^6.0.0"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@descope/web-components-ui": "1.0.
|
|
103
|
+
"@descope/web-components-ui": "1.0.261"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"react": ">=17"
|