@descope/flow-components 2.0.487 → 2.0.488
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/dts/Turnstile/Turnstile.d.ts +13 -0
- package/dist/dts/Turnstile/index.d.ts +1 -0
- package/dist/dts/index.d.ts +1 -0
- package/dist/index.cjs.js +8 -4
- package/dist/index.d.ts +126 -115
- package/dist/index.esm.js +8 -5
- package/dist/types/src/Turnstile/Turnstile.d.ts +13 -0
- package/dist/types/src/Turnstile/index.d.ts +1 -0
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Mode, TextAlign, TypographyVariants } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
connector?: string;
|
|
5
|
+
action?: string;
|
|
6
|
+
textLabel?: string;
|
|
7
|
+
textVariant?: TypographyVariants;
|
|
8
|
+
textMode?: Mode;
|
|
9
|
+
textAlign?: TextAlign;
|
|
10
|
+
'full-width'?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const Turnstile: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export default Turnstile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Turnstile } from './Turnstile';
|
package/dist/dts/index.d.ts
CHANGED
package/dist/index.cjs.js
CHANGED
|
@@ -98767,11 +98767,11 @@ const NOTPLink = React__default.default.forwardRef(({ ...props }, ref) => {
|
|
|
98767
98767
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
98768
98768
|
const UploadFile = React__default.default.forwardRef((props, ref) => React__default.default.createElement("descope-upload-file", { ref: ref, ...props }));
|
|
98769
98769
|
|
|
98770
|
-
const defaultText$
|
|
98771
|
-
const Recaptcha = React__default.default.forwardRef(({ variant, textLabel = defaultText$
|
|
98770
|
+
const defaultText$2 = 'This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms) apply.';
|
|
98771
|
+
const Recaptcha = React__default.default.forwardRef(({ variant, textLabel = defaultText$2, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, ...props }, ref) => (React__default.default.createElement("descope-recaptcha", { ref: ref, ...props, "full-width": fullWidth }, variant === 'text' ? (React__default.default.createElement("descope-enriched-text", { "full-width": fullWidth, readonly: readOnly, variant: textVariant, mode: textMode, "text-align": textAlign }, textLabel)) : null)));
|
|
98772
98772
|
|
|
98773
|
-
const defaultText = 'This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms) apply.';
|
|
98774
|
-
const RecaptchaV2 = React__default.default.forwardRef(({ textLabel = defaultText, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector, enterprise, action, ...props }, ref) => (React__default.default.createElement("descope-enriched-text", { ref: ref, "full-width": fullWidth, readonly: readOnly, variant: textVariant, mode: textMode, "text-align": textAlign, ...props }, textLabel)));
|
|
98773
|
+
const defaultText$1 = 'This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms) apply.';
|
|
98774
|
+
const RecaptchaV2 = React__default.default.forwardRef(({ textLabel = defaultText$1, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector, enterprise, action, ...props }, ref) => (React__default.default.createElement("descope-enriched-text", { ref: ref, "full-width": fullWidth, readonly: readOnly, variant: textVariant, mode: textMode, "text-align": textAlign, ...props }, textLabel)));
|
|
98775
98775
|
|
|
98776
98776
|
const ButtonSelectionGroup = React__default.default.forwardRef(({ size = 'md', ...props }, ref) => (React__default.default.createElement("descope-button-selection-group", { size: size, ...props, ref: ref })));
|
|
98777
98777
|
|
|
@@ -98924,6 +98924,9 @@ const AddressField = React__default.default.forwardRef(({ size = 'md', ...props
|
|
|
98924
98924
|
|
|
98925
98925
|
const TimerButton = React__default.default.forwardRef(({ children, color = 'primary', size = 'md', variant = 'contained', horizontal = false, 'text-align': textAlign = 'center', 'timer-seconds': timerSeconds = 0, 'timer-hide-icon': timerHideIcon = false, 'timer-paused': timerPause = false, ...props }, ref) => (React__default.default.createElement("descope-timer-button", { ...props, size: size, "text-align": textAlign, horizontal: horizontal, "button-variant": variant, "button-mode": color, "timer-hide-icon": timerHideIcon, "timer-seconds": timerSeconds, "timer-paused": timerPause, ref: ref }, children)));
|
|
98926
98926
|
|
|
98927
|
+
const defaultText = 'This site is protected by turnstile and the Cloudflare [Privacy Policy](https://www.cloudflare.com/privacypolicy/) and [Terms of Service](https://www.cloudflare.com/terms/) apply.';
|
|
98928
|
+
const Turnstile = React__default.default.forwardRef(({ textLabel = defaultText, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, connector, ...props }, ref) => (React__default.default.createElement("descope-enriched-text", { ref: ref, "full-width": fullWidth, variant: textVariant, mode: textMode, "text-align": textAlign, ...props }, textLabel)));
|
|
98929
|
+
|
|
98927
98930
|
const globalsThemeToStyle = index_cjsExports.globalsThemeToStyle;
|
|
98928
98931
|
const createComponentsTheme = index_cjsExports.createComponentsTheme;
|
|
98929
98932
|
const themeToStyle = index_cjsExports.themeToStyle;
|
|
@@ -99091,6 +99094,7 @@ exports.ThirdPartyAppLogoClass = ThirdPartyAppLogoClass;
|
|
|
99091
99094
|
exports.TimerButton = TimerButton;
|
|
99092
99095
|
exports.TimerButtonClass = TimerButtonClass;
|
|
99093
99096
|
exports.TotpImageClass = TotpImageClass;
|
|
99097
|
+
exports.Turnstile = Turnstile;
|
|
99094
99098
|
exports.UploadFile = UploadFile;
|
|
99095
99099
|
exports.UploadFileClass = UploadFileClass;
|
|
99096
99100
|
exports.UserAttribute = UserAttribute;
|
package/dist/index.d.ts
CHANGED
|
@@ -51,8 +51,8 @@ declare const Switch: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "r
|
|
|
51
51
|
type BooleanType = {
|
|
52
52
|
type: 'switch' | 'checkbox';
|
|
53
53
|
};
|
|
54
|
-
type Props$
|
|
55
|
-
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$
|
|
54
|
+
type Props$H = React.ComponentProps<typeof Checkbox> & React.ComponentProps<typeof Switch> & BooleanType;
|
|
55
|
+
declare const Boolean: React.ForwardRefExoticComponent<Omit<Props$H, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
56
56
|
|
|
57
57
|
declare global {
|
|
58
58
|
namespace React.JSX {
|
|
@@ -77,17 +77,17 @@ declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes
|
|
|
77
77
|
'data-name'?: string;
|
|
78
78
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
79
79
|
|
|
80
|
-
type Props$
|
|
80
|
+
type Props$G = {
|
|
81
81
|
digits?: number;
|
|
82
82
|
};
|
|
83
83
|
declare global {
|
|
84
84
|
namespace React.JSX {
|
|
85
85
|
interface IntrinsicElements {
|
|
86
|
-
'descope-passcode': DescopeInputProps & Props$
|
|
86
|
+
'descope-passcode': DescopeInputProps & Props$G;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
90
|
+
declare const Code: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$G, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
91
91
|
|
|
92
92
|
type Never<T extends Record<string, any>> = {
|
|
93
93
|
[K in keyof T]: never;
|
|
@@ -103,7 +103,7 @@ type ContainerAlignment = {
|
|
|
103
103
|
'vertical-alignment'?: FlexAlignment;
|
|
104
104
|
'space-between'?: 'sm' | 'md' | 'lg';
|
|
105
105
|
};
|
|
106
|
-
type Props$
|
|
106
|
+
type Props$F = {
|
|
107
107
|
direction?: 'row' | 'column';
|
|
108
108
|
shadow?: 'md' | 'lg' | 'xl' | '2xl';
|
|
109
109
|
borderRadius?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
@@ -121,9 +121,9 @@ declare global {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
declare const Container: React.ForwardRefExoticComponent<(Props$
|
|
124
|
+
declare const Container: React.ForwardRefExoticComponent<(Props$F & React.HTMLAttributes<HTMLDivElement>) & React.RefAttributes<HTMLDivElement>>;
|
|
125
125
|
|
|
126
|
-
type Props$
|
|
126
|
+
type Props$E = {
|
|
127
127
|
vertical?: boolean;
|
|
128
128
|
italic?: boolean;
|
|
129
129
|
variant?: TypographyVariants;
|
|
@@ -133,15 +133,15 @@ type Props$D = {
|
|
|
133
133
|
declare global {
|
|
134
134
|
namespace React.JSX {
|
|
135
135
|
interface IntrinsicElements {
|
|
136
|
-
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$
|
|
136
|
+
'descope-divider': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & Omit<Props$E, 'children'>;
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$
|
|
140
|
+
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "size"> & Props$E, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
141
141
|
|
|
142
142
|
declare const ReactComponent: (props: SVGProps) => React.JSX.Element;
|
|
143
143
|
|
|
144
|
-
type Props$
|
|
144
|
+
type Props$D = {
|
|
145
145
|
width?: string;
|
|
146
146
|
height?: string;
|
|
147
147
|
alt?: string;
|
|
@@ -150,15 +150,15 @@ type Props$C = {
|
|
|
150
150
|
declare global {
|
|
151
151
|
namespace React.JSX {
|
|
152
152
|
interface IntrinsicElements {
|
|
153
|
-
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
153
|
+
'descope-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$D;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
declare const Image: React.ForwardRefExoticComponent<Props$
|
|
157
|
+
declare const Image: React.ForwardRefExoticComponent<Props$D & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
158
158
|
|
|
159
159
|
declare const Input: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
160
160
|
|
|
161
|
-
type Props$
|
|
161
|
+
type Props$C = {
|
|
162
162
|
href?: string | undefined;
|
|
163
163
|
italic?: boolean;
|
|
164
164
|
variant?: TypographyVariants;
|
|
@@ -170,18 +170,18 @@ type Props$B = {
|
|
|
170
170
|
declare global {
|
|
171
171
|
namespace React.JSX {
|
|
172
172
|
interface IntrinsicElements {
|
|
173
|
-
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$
|
|
173
|
+
'descope-link': React.DetailedHTMLProps<React.HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> & Omit<Props$C, 'children'>;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
declare const Link: React.ForwardRefExoticComponent<Props$
|
|
177
|
+
declare const Link: React.ForwardRefExoticComponent<Props$C & React.RefAttributes<HTMLAnchorElement>>;
|
|
178
178
|
|
|
179
|
-
type Props$
|
|
179
|
+
type Props$B = {
|
|
180
180
|
variant?: 'linear' | 'radial';
|
|
181
181
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
182
182
|
color?: Mode;
|
|
183
183
|
};
|
|
184
|
-
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
184
|
+
type LoaderType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$B>;
|
|
185
185
|
declare global {
|
|
186
186
|
namespace React.JSX {
|
|
187
187
|
interface IntrinsicElements {
|
|
@@ -190,22 +190,22 @@ declare global {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
declare const Loader: React.ForwardRefExoticComponent<Props$
|
|
193
|
+
declare const Loader: React.ForwardRefExoticComponent<Props$B & React.RefAttributes<HTMLDivElement>>;
|
|
194
194
|
|
|
195
|
-
type Props$
|
|
195
|
+
type Props$A = {
|
|
196
196
|
width?: string;
|
|
197
197
|
height?: string;
|
|
198
198
|
};
|
|
199
199
|
declare global {
|
|
200
200
|
namespace React.JSX {
|
|
201
201
|
interface IntrinsicElements {
|
|
202
|
-
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
202
|
+
'descope-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$A>;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
declare const Logo: React.ForwardRefExoticComponent<Props$
|
|
206
|
+
declare const Logo: React.ForwardRefExoticComponent<Props$A & React.RefAttributes<HTMLDivElement>>;
|
|
207
207
|
|
|
208
|
-
type Props$
|
|
208
|
+
type Props$z = {
|
|
209
209
|
'password-label'?: string;
|
|
210
210
|
'password-placeholder'?: string;
|
|
211
211
|
'confirm-label'?: string;
|
|
@@ -232,11 +232,11 @@ type Props$y = {
|
|
|
232
232
|
declare global {
|
|
233
233
|
namespace React.JSX {
|
|
234
234
|
interface IntrinsicElements {
|
|
235
|
-
'descope-new-password': DescopeInputProps & Props$
|
|
235
|
+
'descope-new-password': DescopeInputProps & Props$z;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
239
|
+
declare const NewPassword: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$z, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
240
240
|
|
|
241
241
|
declare global {
|
|
242
242
|
namespace React.JSX {
|
|
@@ -256,7 +256,7 @@ declare global {
|
|
|
256
256
|
}
|
|
257
257
|
declare const Password: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
258
258
|
|
|
259
|
-
type Props$
|
|
259
|
+
type Props$y = {
|
|
260
260
|
variant: 'countrySelection' | 'inputBox';
|
|
261
261
|
'default-code'?: string;
|
|
262
262
|
'phone-input-placeholder'?: string;
|
|
@@ -265,9 +265,9 @@ type Props$x = {
|
|
|
265
265
|
'format-value'?: boolean;
|
|
266
266
|
'strict-validation'?: boolean;
|
|
267
267
|
} & DescopeInputProps;
|
|
268
|
-
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$
|
|
268
|
+
declare const Phone: React.ForwardRefExoticComponent<Omit<Props$y, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
269
269
|
|
|
270
|
-
type Props$
|
|
270
|
+
type Props$x = {
|
|
271
271
|
children?: React.JSX.Element[];
|
|
272
272
|
data?: string | Record<string, string>[];
|
|
273
273
|
};
|
|
@@ -280,9 +280,9 @@ declare global {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
|
-
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$
|
|
283
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<HTMLInputAttrs & DescopeInputExtraProps & Props$x, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
284
284
|
|
|
285
|
-
type Props$
|
|
285
|
+
type Props$w = {
|
|
286
286
|
italic?: boolean;
|
|
287
287
|
variant?: string;
|
|
288
288
|
mode?: string;
|
|
@@ -294,14 +294,14 @@ type Props$v = {
|
|
|
294
294
|
declare global {
|
|
295
295
|
namespace React.JSX {
|
|
296
296
|
interface IntrinsicElements {
|
|
297
|
-
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
298
|
-
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
297
|
+
'descope-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$w;
|
|
298
|
+
'descope-enriched-text': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$w & {
|
|
299
299
|
readonly?: boolean;
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
declare const Text: React.ForwardRefExoticComponent<Omit<Props$
|
|
304
|
+
declare const Text: React.ForwardRefExoticComponent<Omit<Props$w & {
|
|
305
305
|
typography?: TypographyVariants;
|
|
306
306
|
} & Omit<React.HTMLProps<HTMLSpanElement>, "mode">, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
307
307
|
|
|
@@ -323,39 +323,39 @@ declare global {
|
|
|
323
323
|
}
|
|
324
324
|
declare const TextField: React.ForwardRefExoticComponent<Omit<DescopeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
325
325
|
|
|
326
|
-
type Props$
|
|
326
|
+
type Props$v = {
|
|
327
327
|
width?: string;
|
|
328
328
|
height?: string;
|
|
329
329
|
};
|
|
330
330
|
declare global {
|
|
331
331
|
namespace React.JSX {
|
|
332
332
|
interface IntrinsicElements {
|
|
333
|
-
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
333
|
+
'descope-totp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$v>;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
declare const TOTPImage: React.ForwardRefExoticComponent<Props$
|
|
337
|
+
declare const TOTPImage: React.ForwardRefExoticComponent<Props$v & React.RefAttributes<HTMLDivElement>>;
|
|
338
338
|
|
|
339
|
-
type Props$
|
|
340
|
-
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
339
|
+
type Props$u = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
340
|
+
declare const TOTPLink: React.ForwardRefExoticComponent<Omit<Props$u, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
341
341
|
|
|
342
|
-
type Props$
|
|
342
|
+
type Props$t = {
|
|
343
343
|
width?: string;
|
|
344
344
|
height?: string;
|
|
345
345
|
};
|
|
346
346
|
declare global {
|
|
347
347
|
namespace React.JSX {
|
|
348
348
|
interface IntrinsicElements {
|
|
349
|
-
'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
349
|
+
'descope-notp-image': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$t>;
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
declare const NOTPImage: React.ForwardRefExoticComponent<Props$
|
|
353
|
+
declare const NOTPImage: React.ForwardRefExoticComponent<Props$t & React.RefAttributes<HTMLDivElement>>;
|
|
354
354
|
|
|
355
|
-
type Props$
|
|
356
|
-
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$
|
|
355
|
+
type Props$s = Omit<React.ComponentProps<typeof Link>, 'href'>;
|
|
356
|
+
declare const NOTPLink: React.ForwardRefExoticComponent<Omit<Props$s, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
357
357
|
|
|
358
|
-
type Props$
|
|
358
|
+
type Props$r = {
|
|
359
359
|
title?: string;
|
|
360
360
|
description?: string;
|
|
361
361
|
icon?: string;
|
|
@@ -374,13 +374,13 @@ type Props$q = {
|
|
|
374
374
|
declare global {
|
|
375
375
|
namespace React.JSX {
|
|
376
376
|
interface IntrinsicElements {
|
|
377
|
-
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
377
|
+
'descope-upload-file': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$r;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
declare const UploadFile: React.ForwardRefExoticComponent<Props$
|
|
381
|
+
declare const UploadFile: React.ForwardRefExoticComponent<Props$r & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
382
382
|
|
|
383
|
-
type Props$
|
|
383
|
+
type Props$q = {
|
|
384
384
|
enabled?: boolean;
|
|
385
385
|
'site-key'?: string;
|
|
386
386
|
enterprise?: boolean;
|
|
@@ -399,13 +399,13 @@ declare global {
|
|
|
399
399
|
}
|
|
400
400
|
namespace React.JSX {
|
|
401
401
|
interface IntrinsicElements {
|
|
402
|
-
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
402
|
+
'descope-recaptcha': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$q;
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
|
-
declare const Recaptcha: React.ForwardRefExoticComponent<Props$
|
|
406
|
+
declare const Recaptcha: React.ForwardRefExoticComponent<Props$q & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
407
407
|
|
|
408
|
-
type Props$
|
|
408
|
+
type Props$p = {
|
|
409
409
|
connector?: string;
|
|
410
410
|
enterprise?: boolean;
|
|
411
411
|
action?: string;
|
|
@@ -416,16 +416,16 @@ type Props$o = {
|
|
|
416
416
|
'full-width'?: boolean;
|
|
417
417
|
readOnly?: boolean;
|
|
418
418
|
};
|
|
419
|
-
declare const RecaptchaV2: React.ForwardRefExoticComponent<Props$
|
|
419
|
+
declare const RecaptchaV2: React.ForwardRefExoticComponent<Props$p & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
420
420
|
|
|
421
|
-
type Props$
|
|
421
|
+
type Props$o = DescopeInputProps & {
|
|
422
422
|
'default-value'?: string;
|
|
423
423
|
'allow-deselect'?: boolean;
|
|
424
424
|
};
|
|
425
425
|
declare global {
|
|
426
426
|
namespace React.JSX {
|
|
427
427
|
interface IntrinsicElements {
|
|
428
|
-
'descope-button-selection-group': Props$
|
|
428
|
+
'descope-button-selection-group': Props$o;
|
|
429
429
|
'descope-button-selection-group-item': React.JSX.IntrinsicElements['span'] & {
|
|
430
430
|
value: string;
|
|
431
431
|
children: string;
|
|
@@ -451,10 +451,10 @@ type SingleSelectType = {
|
|
|
451
451
|
layout?: 'horizontal' | 'vertical';
|
|
452
452
|
'label-type'?: LabelType;
|
|
453
453
|
};
|
|
454
|
-
type Props$
|
|
455
|
-
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
454
|
+
type Props$n = Omit<React.ComponentProps<typeof ButtonSelectionGroup>, 'allow-deselect'> & SingleSelectType;
|
|
455
|
+
declare const SingleSelect: React.ForwardRefExoticComponent<Omit<Props$n, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
456
456
|
|
|
457
|
-
type Props$
|
|
457
|
+
type Props$m = DescopeInputProps & {
|
|
458
458
|
'default-value'?: string;
|
|
459
459
|
'item-label-path'?: string;
|
|
460
460
|
'item-value-path'?: string;
|
|
@@ -462,7 +462,7 @@ type Props$l = DescopeInputProps & {
|
|
|
462
462
|
declare global {
|
|
463
463
|
namespace React.JSX {
|
|
464
464
|
interface IntrinsicElements {
|
|
465
|
-
'descope-combobox': Props$
|
|
465
|
+
'descope-combobox': Props$m;
|
|
466
466
|
}
|
|
467
467
|
}
|
|
468
468
|
}
|
|
@@ -484,7 +484,7 @@ type Column = {
|
|
|
484
484
|
resizable: boolean;
|
|
485
485
|
};
|
|
486
486
|
};
|
|
487
|
-
type Props$
|
|
487
|
+
type Props$l = {
|
|
488
488
|
identifier: any;
|
|
489
489
|
children?: React.JSX.Element[];
|
|
490
490
|
size?: Omit<ComponentSize, 'xl'>;
|
|
@@ -500,7 +500,7 @@ declare global {
|
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
declare const Grid: React.ForwardRefExoticComponent<Props$
|
|
503
|
+
declare const Grid: React.ForwardRefExoticComponent<Props$l & React.RefAttributes<HTMLInputElement>>;
|
|
504
504
|
|
|
505
505
|
type ColumnProps = {
|
|
506
506
|
sortable?: boolean;
|
|
@@ -549,7 +549,7 @@ declare global {
|
|
|
549
549
|
}
|
|
550
550
|
declare const GridItemDetailsColumn: React.ForwardRefExoticComponent<ColumnProps & React.RefAttributes<HTMLInputElement>>;
|
|
551
551
|
|
|
552
|
-
type Props$
|
|
552
|
+
type Props$k = {
|
|
553
553
|
mode?: string;
|
|
554
554
|
size?: string;
|
|
555
555
|
bordered?: boolean;
|
|
@@ -558,11 +558,11 @@ type Props$j = {
|
|
|
558
558
|
declare global {
|
|
559
559
|
namespace React.JSX {
|
|
560
560
|
interface IntrinsicElements {
|
|
561
|
-
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
561
|
+
'descope-badge': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$k;
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
-
declare const Badge: React.ForwardRefExoticComponent<Props$
|
|
565
|
+
declare const Badge: React.ForwardRefExoticComponent<Props$k & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
566
566
|
|
|
567
567
|
declare global {
|
|
568
568
|
namespace React.JSX {
|
|
@@ -571,12 +571,12 @@ declare global {
|
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
type Props$
|
|
574
|
+
type Props$j = {
|
|
575
575
|
opened?: boolean;
|
|
576
576
|
};
|
|
577
|
-
declare const Modal: React.ForwardRefExoticComponent<Props$
|
|
577
|
+
declare const Modal: React.ForwardRefExoticComponent<Props$j & React.RefAttributes<HTMLDivElement>>;
|
|
578
578
|
|
|
579
|
-
type Props$
|
|
579
|
+
type Props$i = DescopeInputProps & {
|
|
580
580
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
581
581
|
'min-items-selection'?: number;
|
|
582
582
|
'max-items-selection'?: number;
|
|
@@ -584,7 +584,7 @@ type Props$h = DescopeInputProps & {
|
|
|
584
584
|
declare global {
|
|
585
585
|
namespace React.JSX {
|
|
586
586
|
interface IntrinsicElements {
|
|
587
|
-
'descope-button-multi-selection-group': Props$
|
|
587
|
+
'descope-button-multi-selection-group': Props$i & {
|
|
588
588
|
'default-values'?: string;
|
|
589
589
|
};
|
|
590
590
|
'descope-button-selection-group-item': React.JSX.IntrinsicElements['span'] & {
|
|
@@ -611,16 +611,16 @@ type MultiSelectType = {
|
|
|
611
611
|
'max-items-selection'?: number;
|
|
612
612
|
'label-type'?: string;
|
|
613
613
|
};
|
|
614
|
-
type Props$
|
|
614
|
+
type Props$h = Omit<React.ComponentProps<typeof ButtonMultiSelectionGroup>, 'default-values'> & MultiSelectType & {
|
|
615
615
|
'default-values'?: string[];
|
|
616
616
|
};
|
|
617
|
-
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$
|
|
617
|
+
declare const MultiSelect: React.ForwardRefExoticComponent<Omit<Props$h, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
618
618
|
|
|
619
619
|
type Item$2 = {
|
|
620
620
|
label: string;
|
|
621
621
|
value: string;
|
|
622
622
|
};
|
|
623
|
-
type Props$
|
|
623
|
+
type Props$g = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
|
|
624
624
|
'label-value'?: string;
|
|
625
625
|
'label-attr'?: string;
|
|
626
626
|
'button-label'?: string;
|
|
@@ -632,20 +632,20 @@ type Props$f = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
|
|
|
632
632
|
declare global {
|
|
633
633
|
namespace React.JSX {
|
|
634
634
|
interface IntrinsicElements {
|
|
635
|
-
'descope-mappings-field': Omit<Props$
|
|
635
|
+
'descope-mappings-field': Omit<Props$g, 'default-values' | 'options'> & {
|
|
636
636
|
'default-values'?: string;
|
|
637
637
|
options?: string;
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$
|
|
642
|
+
declare const MappingsField: React.ForwardRefExoticComponent<Omit<Props$g, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
643
643
|
|
|
644
644
|
type Item$1 = {
|
|
645
645
|
label: string;
|
|
646
646
|
value: string;
|
|
647
647
|
};
|
|
648
|
-
type Props$
|
|
648
|
+
type Props$f = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'helper-text' | 'data-errormessage-pattern-mismatch' | 'data-errormessage-value-missing'> & {
|
|
649
649
|
'label-value'?: string;
|
|
650
650
|
'label-attr'?: string;
|
|
651
651
|
'label-group'?: string;
|
|
@@ -657,13 +657,13 @@ type Props$e = Omit<DescopeInputProps, 'bordered' | 'label' | 'placeholder' | 'h
|
|
|
657
657
|
declare global {
|
|
658
658
|
namespace React.JSX {
|
|
659
659
|
interface IntrinsicElements {
|
|
660
|
-
'descope-saml-group-mappings': Omit<Props$
|
|
660
|
+
'descope-saml-group-mappings': Omit<Props$f, 'options'> & {
|
|
661
661
|
options?: string;
|
|
662
662
|
};
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
|
-
declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$
|
|
666
|
+
declare const SAMLGroupMappings: React.ForwardRefExoticComponent<Omit<Props$f, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
667
667
|
|
|
668
668
|
declare global {
|
|
669
669
|
namespace React.JSX {
|
|
@@ -684,7 +684,7 @@ declare const UserAuthMethod: React.ForwardRefExoticComponent<Omit<React.ClassAt
|
|
|
684
684
|
buttonIcon?: string;
|
|
685
685
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
686
686
|
|
|
687
|
-
type Props$
|
|
687
|
+
type Props$e = {
|
|
688
688
|
'badge-tooltip-text'?: string;
|
|
689
689
|
'badge-label'?: string;
|
|
690
690
|
value?: string;
|
|
@@ -696,13 +696,13 @@ type Props$d = {
|
|
|
696
696
|
declare global {
|
|
697
697
|
namespace React.JSX {
|
|
698
698
|
interface IntrinsicElements {
|
|
699
|
-
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
699
|
+
'descope-user-attribute': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$e;
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$
|
|
703
|
+
declare const UserAttribute: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$e, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
704
704
|
|
|
705
|
-
type Props$
|
|
705
|
+
type Props$d = {
|
|
706
706
|
img?: string;
|
|
707
707
|
'display-name'?: string;
|
|
708
708
|
size?: string;
|
|
@@ -711,26 +711,26 @@ type Props$c = {
|
|
|
711
711
|
declare global {
|
|
712
712
|
namespace React.JSX {
|
|
713
713
|
interface IntrinsicElements {
|
|
714
|
-
'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
714
|
+
'descope-avatar': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$d;
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$
|
|
718
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Props$d, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
719
719
|
|
|
720
|
-
type Props$
|
|
720
|
+
type Props$c = {
|
|
721
721
|
lang?: 'xml' | 'html' | 'javascript' | 'css' | 'json';
|
|
722
722
|
inline?: boolean;
|
|
723
723
|
};
|
|
724
724
|
declare global {
|
|
725
725
|
namespace React.JSX {
|
|
726
726
|
interface IntrinsicElements {
|
|
727
|
-
'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
727
|
+
'descope-code-snippet': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$c;
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
|
-
declare const CodeSnippet: React.ForwardRefExoticComponent<Props$
|
|
731
|
+
declare const CodeSnippet: React.ForwardRefExoticComponent<Props$c & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
732
732
|
|
|
733
|
-
type Props$
|
|
733
|
+
type Props$b = {
|
|
734
734
|
emptyState?: React.ReactNode;
|
|
735
735
|
children?: React.ReactNode[];
|
|
736
736
|
variant?: 'list' | 'tiles';
|
|
@@ -738,26 +738,26 @@ type Props$a = {
|
|
|
738
738
|
declare global {
|
|
739
739
|
namespace React.JSX {
|
|
740
740
|
interface IntrinsicElements {
|
|
741
|
-
'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
741
|
+
'descope-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$b>;
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
declare const List: React.ForwardRefExoticComponent<Props$
|
|
745
|
+
declare const List: React.ForwardRefExoticComponent<Props$b & React.RefAttributes<HTMLDivElement>>;
|
|
746
746
|
|
|
747
|
-
type Props$
|
|
747
|
+
type Props$a = {
|
|
748
748
|
variant?: 'row' | 'tile';
|
|
749
749
|
children?: React.ReactNode;
|
|
750
750
|
};
|
|
751
751
|
declare global {
|
|
752
752
|
namespace React.JSX {
|
|
753
753
|
interface IntrinsicElements {
|
|
754
|
-
'descope-list-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
754
|
+
'descope-list-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$a>;
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
|
-
declare const ListItem: React.ForwardRefExoticComponent<Props$
|
|
758
|
+
declare const ListItem: React.ForwardRefExoticComponent<Props$a & React.RefAttributes<HTMLDivElement>>;
|
|
759
759
|
|
|
760
|
-
type Props$
|
|
760
|
+
type Props$9 = {
|
|
761
761
|
emptyState?: React.ReactNode;
|
|
762
762
|
variant?: 'list' | 'tiles';
|
|
763
763
|
data?: any[];
|
|
@@ -766,18 +766,18 @@ type Props$8 = {
|
|
|
766
766
|
declare global {
|
|
767
767
|
namespace React.JSX {
|
|
768
768
|
interface IntrinsicElements {
|
|
769
|
-
'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
769
|
+
'descope-apps-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$9>;
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
|
-
declare const AppsList: React.ForwardRefExoticComponent<Props$
|
|
773
|
+
declare const AppsList: React.ForwardRefExoticComponent<Props$9 & React.RefAttributes<HTMLDivElement>>;
|
|
774
774
|
|
|
775
775
|
type Item = {
|
|
776
776
|
desc: string;
|
|
777
777
|
id: string;
|
|
778
778
|
required?: boolean;
|
|
779
779
|
};
|
|
780
|
-
type Props$
|
|
780
|
+
type Props$8 = {
|
|
781
781
|
variant?: 'checkbox' | 'switch';
|
|
782
782
|
data?: Item[];
|
|
783
783
|
readonly?: boolean;
|
|
@@ -786,17 +786,17 @@ type Props$7 = {
|
|
|
786
786
|
declare global {
|
|
787
787
|
namespace React.JSX {
|
|
788
788
|
interface IntrinsicElements {
|
|
789
|
-
'descope-scopes-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
789
|
+
'descope-scopes-list': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$8>;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
|
-
declare const ScopesList: React.ForwardRefExoticComponent<Props$
|
|
793
|
+
declare const ScopesList: React.ForwardRefExoticComponent<Props$8 & React.RefAttributes<HTMLDivElement>>;
|
|
794
794
|
|
|
795
795
|
type Question$1 = {
|
|
796
796
|
id: string;
|
|
797
797
|
text: string;
|
|
798
798
|
};
|
|
799
|
-
type Props$
|
|
799
|
+
type Props$7 = {
|
|
800
800
|
questions?: Question$1[];
|
|
801
801
|
readonly?: boolean;
|
|
802
802
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -811,17 +811,17 @@ type Props$6 = {
|
|
|
811
811
|
declare global {
|
|
812
812
|
namespace React.JSX {
|
|
813
813
|
interface IntrinsicElements {
|
|
814
|
-
'descope-security-questions-setup': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
814
|
+
'descope-security-questions-setup': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$7>;
|
|
815
815
|
}
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
declare const SecurityQuestionsSetup: React.ForwardRefExoticComponent<Props$
|
|
818
|
+
declare const SecurityQuestionsSetup: React.ForwardRefExoticComponent<Props$7 & React.RefAttributes<HTMLDivElement>>;
|
|
819
819
|
|
|
820
820
|
type Question = {
|
|
821
821
|
id: string;
|
|
822
822
|
text: string;
|
|
823
823
|
};
|
|
824
|
-
type Props$
|
|
824
|
+
type Props$6 = {
|
|
825
825
|
questions?: Question[];
|
|
826
826
|
readonly?: boolean;
|
|
827
827
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -835,23 +835,23 @@ type Props$5 = {
|
|
|
835
835
|
declare global {
|
|
836
836
|
namespace React.JSX {
|
|
837
837
|
interface IntrinsicElements {
|
|
838
|
-
'descope-security-questions-verify': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
838
|
+
'descope-security-questions-verify': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$6>;
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
}
|
|
842
|
-
declare const SecurityQuestionsVerify: React.ForwardRefExoticComponent<Props$
|
|
842
|
+
declare const SecurityQuestionsVerify: React.ForwardRefExoticComponent<Props$6 & React.RefAttributes<HTMLDivElement>>;
|
|
843
843
|
|
|
844
|
-
type Props$
|
|
844
|
+
type Props$5 = {
|
|
845
845
|
size: 'xs' | 'sm' | 'md' | 'lg';
|
|
846
846
|
};
|
|
847
847
|
declare global {
|
|
848
848
|
namespace React.JSX {
|
|
849
849
|
interface IntrinsicElements {
|
|
850
|
-
'descope-third-party-app-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$
|
|
850
|
+
'descope-third-party-app-logo': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & PropsToAttrs<Props$5>;
|
|
851
851
|
}
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
|
-
declare const ThirdPartyAppLogo: React.ForwardRefExoticComponent<Props$
|
|
854
|
+
declare const ThirdPartyAppLogo: React.ForwardRefExoticComponent<Props$5 & React.RefAttributes<HTMLDivElement>>;
|
|
855
855
|
|
|
856
856
|
declare global {
|
|
857
857
|
namespace React.JSX {
|
|
@@ -862,7 +862,7 @@ declare global {
|
|
|
862
862
|
}
|
|
863
863
|
declare const DateField: React.ForwardRefExoticComponent<Omit<Omit<DescopeInputProps, "external-input">, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
864
864
|
|
|
865
|
-
type Props$
|
|
865
|
+
type Props$4 = {
|
|
866
866
|
variant?: 'countrySelection' | 'inputBox';
|
|
867
867
|
'default-code'?: string;
|
|
868
868
|
'phone-input-label'?: string;
|
|
@@ -883,7 +883,7 @@ type Props$3 = {
|
|
|
883
883
|
declare global {
|
|
884
884
|
namespace React.JSX {
|
|
885
885
|
interface IntrinsicElements {
|
|
886
|
-
'descope-hybrid-field': React.DetailedHTMLProps<React.HTMLAttributes<HTMLInputElement>, HTMLInputElement> & PropsToAttrs<Props$
|
|
886
|
+
'descope-hybrid-field': React.DetailedHTMLProps<React.HTMLAttributes<HTMLInputElement>, HTMLInputElement> & PropsToAttrs<Props$4>;
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
889
|
}
|
|
@@ -906,7 +906,7 @@ declare const HybridField: React.ForwardRefExoticComponent<Omit<React.ClassAttri
|
|
|
906
906
|
'external-input'?: boolean;
|
|
907
907
|
} & HTMLInputAttrs & DescopeInputExtraProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
908
908
|
|
|
909
|
-
type Props$
|
|
909
|
+
type Props$3 = {
|
|
910
910
|
mode?: string;
|
|
911
911
|
variant?: string;
|
|
912
912
|
bordered?: boolean;
|
|
@@ -918,13 +918,13 @@ type Props$2 = {
|
|
|
918
918
|
declare global {
|
|
919
919
|
namespace React.JSX {
|
|
920
920
|
interface IntrinsicElements {
|
|
921
|
-
'descope-alert': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$
|
|
921
|
+
'descope-alert': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Props$3;
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
|
-
declare const Alert: React.ForwardRefExoticComponent<Props$
|
|
925
|
+
declare const Alert: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLElement>>;
|
|
926
926
|
|
|
927
|
-
type Props$
|
|
927
|
+
type Props$2 = {
|
|
928
928
|
'data-connector-id'?: string;
|
|
929
929
|
'connector-template'?: string;
|
|
930
930
|
'min-search-length'?: number;
|
|
@@ -933,13 +933,13 @@ type Props$1 = {
|
|
|
933
933
|
declare global {
|
|
934
934
|
namespace React.JSX {
|
|
935
935
|
interface IntrinsicElements {
|
|
936
|
-
'descope-address-field': Omit<DescopeInputProps, 'external-input'> & Props$
|
|
936
|
+
'descope-address-field': Omit<DescopeInputProps, 'external-input'> & Props$2;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
|
-
declare const AddressField: React.ForwardRefExoticComponent<Omit<Omit<DescopeInputProps, "external-input"> & Props$
|
|
940
|
+
declare const AddressField: React.ForwardRefExoticComponent<Omit<Omit<DescopeInputProps, "external-input"> & Props$2, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
941
941
|
|
|
942
|
-
type Props = React.JSX.IntrinsicElements['button'] & {
|
|
942
|
+
type Props$1 = React.JSX.IntrinsicElements['button'] & {
|
|
943
943
|
variant?: string;
|
|
944
944
|
color?: string;
|
|
945
945
|
size?: string;
|
|
@@ -953,7 +953,7 @@ type Props = React.JSX.IntrinsicElements['button'] & {
|
|
|
953
953
|
declare global {
|
|
954
954
|
namespace React.JSX {
|
|
955
955
|
interface IntrinsicElements {
|
|
956
|
-
'descope-timer-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & Props;
|
|
956
|
+
'descope-timer-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & Props$1;
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
}
|
|
@@ -969,6 +969,17 @@ declare const TimerButton: React.ForwardRefExoticComponent<Omit<React.ClassAttri
|
|
|
969
969
|
'timer-paused'?: boolean;
|
|
970
970
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
971
971
|
|
|
972
|
+
type Props = {
|
|
973
|
+
connector?: string;
|
|
974
|
+
action?: string;
|
|
975
|
+
textLabel?: string;
|
|
976
|
+
textVariant?: TypographyVariants;
|
|
977
|
+
textMode?: Mode;
|
|
978
|
+
textAlign?: TextAlign;
|
|
979
|
+
'full-width'?: boolean;
|
|
980
|
+
};
|
|
981
|
+
declare const Turnstile: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
982
|
+
|
|
972
983
|
type ComponentClass = {
|
|
973
984
|
cssVarList: Record<string, string>;
|
|
974
985
|
};
|
|
@@ -1078,4 +1089,4 @@ type Theme = {
|
|
|
1078
1089
|
};
|
|
1079
1090
|
};
|
|
1080
1091
|
|
|
1081
|
-
export { AddressField, AddressFieldClass, Alert, AlertClass, AppsList, AppsListClass, Avatar, AvatarClass, Badge, BadgeClass, Boolean, Button, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CalendarClass, Checkbox, CheckboxClass, Code, CodeSnippet, CodeSnippetClass, ComboBox, ComboBoxClass, Container, ContainerClass, DateField, DateFieldClass, Divider, DividerClass, EmailFieldClass, EnrichedTextClass, Grid, GridClass, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, HybridField, HybridFieldClass, IconClass, Image, ImageClass, Input, Link, LinkClass, List, ListClass, ListItem, Loader, LoaderLinearClass, LoaderRadialClass, Logo, LogoClass, MappingsField, MappingsFieldClass, Modal, ModalClass, MultiSelect, MultiSelectComboBoxClass, NOTPImage, NOTPLink, NewPassword, NewPasswordClass, NotificationClass, NotpImageClass, NumberField, NumberFieldClass, PasscodeClass, Password, PasswordClass, Phone, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RadioGroupClass, Recaptcha, RecaptchaClass, RecaptchaV2, SAMLGroupMappings, SamlGroupMappingsClass, ScopesList, ScopesListClass, SecurityQuestionsSetup, SecurityQuestionsSetupClass, SecurityQuestionsVerify, SecurityQuestionsVerifyClass, Select, SingleSelect, Switch, SwitchToggleClass, TOTPImage, TOTPLink, Text, TextAreaClass, TextClass, TextField, TextFieldClass, Textarea, type Theme, ThirdPartyAppLogo, ThirdPartyAppLogoClass, TimerButton, TimerButtonClass, TotpImageClass, UploadFile, UploadFileClass, UserAttribute, UserAttributeClass, UserAuthMethod, UserAuthMethodClass, ReactComponent as apple, ReactComponent as authenticator, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, ReactComponent as discord, ReactComponent as edit, ReactComponent as facebook, ReactComponent as fingerprint, genColor, ReactComponent as github, ReactComponent as gitlab, globalsThemeToStyle, 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, themeToStyle, themeVars, ReactComponent as whatsapp };
|
|
1092
|
+
export { AddressField, AddressFieldClass, Alert, AlertClass, AppsList, AppsListClass, Avatar, AvatarClass, Badge, BadgeClass, Boolean, Button, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CalendarClass, Checkbox, CheckboxClass, Code, CodeSnippet, CodeSnippetClass, ComboBox, ComboBoxClass, Container, ContainerClass, DateField, DateFieldClass, Divider, DividerClass, EmailFieldClass, EnrichedTextClass, Grid, GridClass, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, HybridField, HybridFieldClass, IconClass, Image, ImageClass, Input, Link, LinkClass, List, ListClass, ListItem, Loader, LoaderLinearClass, LoaderRadialClass, Logo, LogoClass, MappingsField, MappingsFieldClass, Modal, ModalClass, MultiSelect, MultiSelectComboBoxClass, NOTPImage, NOTPLink, NewPassword, NewPasswordClass, NotificationClass, NotpImageClass, NumberField, NumberFieldClass, PasscodeClass, Password, PasswordClass, Phone, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RadioGroupClass, Recaptcha, RecaptchaClass, RecaptchaV2, SAMLGroupMappings, SamlGroupMappingsClass, ScopesList, ScopesListClass, SecurityQuestionsSetup, SecurityQuestionsSetupClass, SecurityQuestionsVerify, SecurityQuestionsVerifyClass, Select, SingleSelect, Switch, SwitchToggleClass, TOTPImage, TOTPLink, Text, TextAreaClass, TextClass, TextField, TextFieldClass, Textarea, type Theme, ThirdPartyAppLogo, ThirdPartyAppLogoClass, TimerButton, TimerButtonClass, TotpImageClass, Turnstile, UploadFile, UploadFileClass, UserAttribute, UserAttributeClass, UserAuthMethod, UserAuthMethodClass, ReactComponent as apple, ReactComponent as authenticator, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, ReactComponent as discord, ReactComponent as edit, ReactComponent as facebook, ReactComponent as fingerprint, genColor, ReactComponent as github, ReactComponent as gitlab, globalsThemeToStyle, 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, themeToStyle, themeVars, ReactComponent as whatsapp };
|
package/dist/index.esm.js
CHANGED
|
@@ -283,11 +283,11 @@ const NOTPLink = React.forwardRef(({ ...props }, ref) => {
|
|
|
283
283
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
284
284
|
const UploadFile = React.forwardRef((props, ref) => React.createElement("descope-upload-file", { ref: ref, ...props }));
|
|
285
285
|
|
|
286
|
-
const defaultText$
|
|
287
|
-
const Recaptcha = React.forwardRef(({ variant, textLabel = defaultText$
|
|
286
|
+
const defaultText$2 = 'This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms) apply.';
|
|
287
|
+
const Recaptcha = React.forwardRef(({ variant, textLabel = defaultText$2, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, ...props }, ref) => (React.createElement("descope-recaptcha", { ref: ref, ...props, "full-width": fullWidth }, variant === 'text' ? (React.createElement("descope-enriched-text", { "full-width": fullWidth, readonly: readOnly, variant: textVariant, mode: textMode, "text-align": textAlign }, textLabel)) : null)));
|
|
288
288
|
|
|
289
|
-
const defaultText = 'This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms) apply.';
|
|
290
|
-
const RecaptchaV2 = React.forwardRef(({ textLabel = defaultText, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector, enterprise, action, ...props }, ref) => (React.createElement("descope-enriched-text", { ref: ref, "full-width": fullWidth, readonly: readOnly, variant: textVariant, mode: textMode, "text-align": textAlign, ...props }, textLabel)));
|
|
289
|
+
const defaultText$1 = 'This site is protected by reCAPTCHA and the Google [Privacy Policy](https://policies.google.com/privacy) and [Terms of Service](https://policies.google.com/terms) apply.';
|
|
290
|
+
const RecaptchaV2 = React.forwardRef(({ textLabel = defaultText$1, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector, enterprise, action, ...props }, ref) => (React.createElement("descope-enriched-text", { ref: ref, "full-width": fullWidth, readonly: readOnly, variant: textVariant, mode: textMode, "text-align": textAlign, ...props }, textLabel)));
|
|
291
291
|
|
|
292
292
|
const ButtonSelectionGroup = React.forwardRef(({ size = 'md', ...props }, ref) => (React.createElement("descope-button-selection-group", { size: size, ...props, ref: ref })));
|
|
293
293
|
|
|
@@ -440,6 +440,9 @@ const AddressField = React.forwardRef(({ size = 'md', ...props }, ref) => (React
|
|
|
440
440
|
|
|
441
441
|
const TimerButton = React.forwardRef(({ children, color = 'primary', size = 'md', variant = 'contained', horizontal = false, 'text-align': textAlign = 'center', 'timer-seconds': timerSeconds = 0, 'timer-hide-icon': timerHideIcon = false, 'timer-paused': timerPause = false, ...props }, ref) => (React.createElement("descope-timer-button", { ...props, size: size, "text-align": textAlign, horizontal: horizontal, "button-variant": variant, "button-mode": color, "timer-hide-icon": timerHideIcon, "timer-seconds": timerSeconds, "timer-paused": timerPause, ref: ref }, children)));
|
|
442
442
|
|
|
443
|
+
const defaultText = 'This site is protected by turnstile and the Cloudflare [Privacy Policy](https://www.cloudflare.com/privacypolicy/) and [Terms of Service](https://www.cloudflare.com/terms/) apply.';
|
|
444
|
+
const Turnstile = React.forwardRef(({ textLabel = defaultText, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, connector, ...props }, ref) => (React.createElement("descope-enriched-text", { ref: ref, "full-width": fullWidth, variant: textVariant, mode: textMode, "text-align": textAlign, ...props }, textLabel)));
|
|
445
|
+
|
|
443
446
|
const globalsThemeToStyle = globalsThemeToStyle$1;
|
|
444
447
|
const createComponentsTheme = createComponentsTheme$1;
|
|
445
448
|
const themeToStyle = themeToStyle$1;
|
|
@@ -504,4 +507,4 @@ const AlertClass = AlertClass$1;
|
|
|
504
507
|
const AddressFieldClass = AddressFieldClass$1;
|
|
505
508
|
const TimerButtonClass = TimerButtonClass$1;
|
|
506
509
|
|
|
507
|
-
export { AddressField, AddressFieldClass, Alert, AlertClass, AppsList, AppsListClass, Avatar, AvatarClass, Badge, BadgeClass, Boolean, Button, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CalendarClass, Checkbox, CheckboxClass, Code, CodeSnippet, CodeSnippetClass, ComboBox, ComboBoxClass, Container, ContainerClass, DateField, DateFieldClass, Divider, DividerClass, EmailFieldClass, EnrichedTextClass, Grid, GridClass, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, HybridField, HybridFieldClass, IconClass, Image, ImageClass, Input, Link, LinkClass, List, ListClass, ListItem, Loader, LoaderLinearClass, LoaderRadialClass, Logo, LogoClass, MappingsField, MappingsFieldClass, Modal, ModalClass, MultiSelect, MultiSelectComboBoxClass, NOTPImage, NOTPLink, NewPassword, NewPasswordClass, NotificationClass, NotpImageClass, NumberField, NumberFieldClass, PasscodeClass, Password, PasswordClass, Phone, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RadioGroupClass, Recaptcha, RecaptchaClass, RecaptchaV2, SAMLGroupMappings, SamlGroupMappingsClass, ScopesList, ScopesListClass, SecurityQuestionsSetup, SecurityQuestionsSetupClass, SecurityQuestionsVerify, SecurityQuestionsVerifyClass, Select, SingleSelect, Switch, SwitchToggleClass, TOTPImage, TOTPLink, Text, TextAreaClass, TextClass, TextField, TextFieldClass, Textarea, ThirdPartyAppLogo, ThirdPartyAppLogoClass, TimerButton, TimerButtonClass, TotpImageClass, UploadFile, UploadFileClass, UserAttribute, UserAttributeClass, UserAuthMethod, UserAuthMethodClass, apple, authenticator, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, discord, edit, facebook, fingerprint, genColor, github, gitlab, globalsThemeToStyle, google, linkedin, microsoft, passkey, password, plus, reload, slack, sso, themeToStyle, themeVars, whatsapp };
|
|
510
|
+
export { AddressField, AddressFieldClass, Alert, AlertClass, AppsList, AppsListClass, Avatar, AvatarClass, Badge, BadgeClass, Boolean, Button, ButtonClass, ButtonMultiSelectionGroupClass, ButtonSelectionGroupClass, CalendarClass, Checkbox, CheckboxClass, Code, CodeSnippet, CodeSnippetClass, ComboBox, ComboBoxClass, Container, ContainerClass, DateField, DateFieldClass, Divider, DividerClass, EmailFieldClass, EnrichedTextClass, Grid, GridClass, GridCustomColumn, GridItemDetailsColumn, GridSelectionColumn, GridTextColumn, HybridField, HybridFieldClass, IconClass, Image, ImageClass, Input, Link, LinkClass, List, ListClass, ListItem, Loader, LoaderLinearClass, LoaderRadialClass, Logo, LogoClass, MappingsField, MappingsFieldClass, Modal, ModalClass, MultiSelect, MultiSelectComboBoxClass, NOTPImage, NOTPLink, NewPassword, NewPasswordClass, NotificationClass, NotpImageClass, NumberField, NumberFieldClass, PasscodeClass, Password, PasswordClass, Phone, PhoneFieldClass, PhoneFieldInputBoxClass, PolicyValidationClass, RadioGroupClass, Recaptcha, RecaptchaClass, RecaptchaV2, SAMLGroupMappings, SamlGroupMappingsClass, ScopesList, ScopesListClass, SecurityQuestionsSetup, SecurityQuestionsSetupClass, SecurityQuestionsVerify, SecurityQuestionsVerifyClass, Select, SingleSelect, Switch, SwitchToggleClass, TOTPImage, TOTPLink, Text, TextAreaClass, TextClass, TextField, TextFieldClass, Textarea, ThirdPartyAppLogo, ThirdPartyAppLogoClass, TimerButton, TimerButtonClass, TotpImageClass, Turnstile, UploadFile, UploadFileClass, UserAttribute, UserAttributeClass, UserAuthMethod, UserAuthMethodClass, apple, authenticator, componentsThemeManager, createComponentsTheme, darkTheme, defaultTheme, discord, edit, facebook, fingerprint, genColor, github, gitlab, globalsThemeToStyle, google, linkedin, microsoft, passkey, password, plus, reload, slack, sso, themeToStyle, themeVars, whatsapp };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Mode, TextAlign, TypographyVariants } from '../types';
|
|
3
|
+
type Props = {
|
|
4
|
+
connector?: string;
|
|
5
|
+
action?: string;
|
|
6
|
+
textLabel?: string;
|
|
7
|
+
textVariant?: TypographyVariants;
|
|
8
|
+
textMode?: Mode;
|
|
9
|
+
textAlign?: TextAlign;
|
|
10
|
+
'full-width'?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const Turnstile: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export default Turnstile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Turnstile } from './Turnstile';
|