@descope/flow-components 2.3.2 → 3.0.0
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/fm/222.js +1 -1
- package/dist/fm/222.js.map +1 -1
- package/dist/fm/467.js +2 -2
- package/dist/fm/467.js.LICENSE.txt +1 -1
- package/dist/fm/467.js.map +1 -1
- package/dist/fm/626.js +1 -1
- package/dist/fm/626.js.map +1 -1
- package/dist/fm/985.js +1 -1
- package/dist/fm/985.js.map +1 -1
- package/dist/fm/@mf-types/compiled-types/Avatar/Avatar.d.ts +1 -1
- package/dist/fm/@mf-types/compiled-types/Badge/Badge.d.ts +1 -1
- package/dist/fm/@mf-types/compiled-types/CodeSnippet/CodeSnippet.d.ts +1 -1
- package/dist/fm/@mf-types/compiled-types/CollapsibleContainer/CollapsibleContainer.d.ts +1 -33
- package/dist/fm/@mf-types/compiled-types/Container/Container.d.ts +1 -27
- package/dist/fm/@mf-types/compiled-types/Divider/Divider.d.ts +1 -1
- package/dist/fm/@mf-types/compiled-types/Hcaptcha/Hcaptcha.d.ts +1 -1
- package/dist/fm/@mf-types/compiled-types/HybridField/HybridField.d.ts +1 -18
- package/dist/fm/@mf-types/compiled-types/Icon/Icon.d.ts +2 -2
- package/dist/fm/@mf-types/compiled-types/Image/Image.d.ts +1 -7
- package/dist/fm/@mf-types/compiled-types/Recaptcha/Recaptcha.d.ts +1 -1
- package/dist/fm/@mf-types/compiled-types/RecaptchaV2/RecaptchaV2.d.ts +1 -17
- package/dist/fm/@mf-types/compiled-types/Tooltip/Tooltip.d.ts +2 -2
- package/dist/fm/@mf-types/compiled-types/Turnstile/Turnstile.d.ts +1 -12
- package/dist/fm/@mf-types/compiled-types/UploadFile/UploadFile.d.ts +1 -1
- package/dist/fm/@mf-types/compiled-types/UserAttribute/UserAttribute.d.ts +1 -1
- package/dist/fm/@mf-types/compiled-types/UserAuthMethod/UserAuthMethod.d.ts +1 -12
- package/dist/fm/__federation_expose_componentClasses.js +1 -1
- package/dist/fm/__federation_expose_componentClasses.js.map +1 -1
- package/dist/fm/__federation_expose_components.js +1 -1
- package/dist/fm/__federation_expose_theme.js +1 -1
- package/dist/fm/__federation_expose_theme.js.map +1 -1
- package/dist/fm/flowComponents.js +1 -1
- package/dist/fm/flowComponents.js.map +1 -1
- package/dist/fm/main.js +1 -1
- package/dist/fm/main.js.map +1 -1
- package/dist/fm/mf-manifest.json +1 -1
- package/dist/fm/mf-stats.json +1 -1
- package/dist/index.cjs.js +16847 -16903
- package/dist/index.d.ts +118 -235
- package/dist/index.esm.js +7 -12
- package/dist/types/Avatar/Avatar.d.ts +1 -1
- package/dist/types/Badge/Badge.d.ts +1 -1
- package/dist/types/CodeSnippet/CodeSnippet.d.ts +1 -1
- package/dist/types/CollapsibleContainer/CollapsibleContainer.d.ts +1 -33
- package/dist/types/Container/Container.d.ts +1 -27
- package/dist/types/CssVarImage/CssVarImage.d.ts +1 -7
- package/dist/types/Divider/Divider.d.ts +1 -1
- package/dist/types/Hcaptcha/Hcaptcha.d.ts +1 -1
- package/dist/types/HybridField/HybridField.d.ts +1 -18
- package/dist/types/Icon/Icon.d.ts +2 -2
- package/dist/types/Image/Image.d.ts +1 -7
- package/dist/types/Recaptcha/Recaptcha.d.ts +1 -1
- package/dist/types/RecaptchaV2/RecaptchaV2.d.ts +1 -17
- package/dist/types/Tooltip/Tooltip.d.ts +2 -2
- package/dist/types/Turnstile/Turnstile.d.ts +1 -12
- package/dist/types/UploadFile/UploadFile.d.ts +1 -1
- package/dist/types/UserAttribute/UserAttribute.d.ts +1 -1
- package/dist/types/UserAuthMethod/UserAuthMethod.d.ts +1 -12
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -146,12 +146,12 @@ var icons = /*#__PURE__*/Object.freeze({
|
|
|
146
146
|
whatsapp: whatsapp
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
function Icon({ icon, noColor, ...props }) {
|
|
150
150
|
if (icons[icon]) {
|
|
151
151
|
return (React.createElement("descope-icon", { src: icons[icon], ...(noColor && { 'st-fill': 'currentColor' }), ...props }));
|
|
152
152
|
}
|
|
153
153
|
return React.createElement("descope-icon", { "fill-color": noColor, src: icon, ...props });
|
|
154
|
-
}
|
|
154
|
+
}
|
|
155
155
|
|
|
156
156
|
const Tooltip = React.forwardRef(({ text, hideDelay = 0, hoverDelay = 0, children, readonly, staticDisplay, ...props }, ref) => (React.createElement("descope-tooltip", { text: text, "hide-delay": hideDelay, "hover-delay": hoverDelay, readonly: readonly, "static-display": staticDisplay, ref: ref, ...props }, children)));
|
|
157
157
|
|
|
@@ -226,7 +226,6 @@ const Container$1 = React.forwardRef(({ background, justify, paddingX, paddingY,
|
|
|
226
226
|
spaceBetween
|
|
227
227
|
}))
|
|
228
228
|
};
|
|
229
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
230
229
|
return React.createElement("descope-container", { ...mergedProps, ref: ref });
|
|
231
230
|
});
|
|
232
231
|
|
|
@@ -377,14 +376,13 @@ const NOTPLink = React.forwardRef(({ ...props }, ref) => {
|
|
|
377
376
|
return React.createElement(Link, { ref: ref, ...readyProps });
|
|
378
377
|
});
|
|
379
378
|
|
|
380
|
-
|
|
381
|
-
const UploadFile = React.forwardRef(({ icon, ...props }, ref) => React.createElement("descope-upload-file", { ref: ref, ...props }, icon && React.createElement(Icon, { slot: "icon", icon: icon, "src-dark": icon })));
|
|
379
|
+
const UploadFile = React.forwardRef(({ icon, ...props }, ref) => (React.createElement("descope-upload-file", { ref: ref, ...props }, icon && React.createElement(Icon, { slot: "icon", icon: icon, "src-dark": icon }))));
|
|
382
380
|
|
|
383
381
|
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.';
|
|
384
382
|
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)));
|
|
385
383
|
|
|
386
384
|
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.';
|
|
387
|
-
const RecaptchaV2 = React.forwardRef(({ textLabel = defaultText$1, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector, enterprise, action, variant = 'text', src, width, height, ...props }, ref) => {
|
|
385
|
+
const RecaptchaV2 = React.forwardRef(({ textLabel = defaultText$1, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, readOnly, connector: _connector, enterprise: _enterprise, action: _action, variant = 'text', src, width, height, ...props }, ref) => {
|
|
388
386
|
if (variant === 'image') {
|
|
389
387
|
return (React.createElement("descope-image", { ref: ref, "full-width": fullWidth, "st-width": width, "st-height": height, src: src, ...props }));
|
|
390
388
|
}
|
|
@@ -577,12 +575,11 @@ const Container = React.forwardRef(({ background, paddingX, paddingY, shadow, wi
|
|
|
577
575
|
spaceBetween
|
|
578
576
|
})
|
|
579
577
|
};
|
|
580
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
581
578
|
return React.createElement("descope-collapsible-container", { ...mergedProps, ref: ref });
|
|
582
579
|
});
|
|
583
580
|
|
|
584
581
|
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.';
|
|
585
|
-
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)));
|
|
582
|
+
const Turnstile = React.forwardRef(({ textLabel = defaultText, textVariant = 'body1', textMode = 'primary', textAlign = 'left', 'full-width': fullWidth, connector: _connector, ...props }, ref) => (React.createElement("descope-enriched-text", { ref: ref, "full-width": fullWidth, variant: textVariant, mode: textMode, "text-align": textAlign, ...props }, textLabel)));
|
|
586
583
|
|
|
587
584
|
const RecoveryCodesList = React.forwardRef(({ data, ...props }, ref) => (React.createElement("descope-recovery-codes", { data: data ? JSON.stringify(data) : undefined, ...props, ref: ref })));
|
|
588
585
|
|
|
@@ -599,10 +596,8 @@ const OutboundAppButton = React.forwardRef(({ children, label, iconSrc, iconFill
|
|
|
599
596
|
const TrustedDevices = React.forwardRef(({ emptyState, data, ...props }, ref) => (React.createElement("descope-trusted-devices", { data: data ? JSON.stringify(data) : undefined, ...props, ref: ref },
|
|
600
597
|
React.createElement("div", { slot: "empty-state" }, emptyState))));
|
|
601
598
|
|
|
602
|
-
const Honeypot = React.forwardRef((props, ref) => {
|
|
603
|
-
|
|
604
|
-
React.createElement("input", { ...props })));
|
|
605
|
-
});
|
|
599
|
+
const Honeypot = React.forwardRef((props, ref) => (React.createElement("descope-ponyhot", { ref: ref },
|
|
600
|
+
React.createElement("input", { ...props }))));
|
|
606
601
|
|
|
607
602
|
const TenantSelector = React.forwardRef((props, ref) => (React.createElement(ComboBox, { "item-label-path": "data-name", "item-value-path": "data-id", ...props, ref: ref })));
|
|
608
603
|
|
|
@@ -12,5 +12,5 @@ declare global {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
declare const Avatar: React.ForwardRefExoticComponent<
|
|
15
|
+
declare const Avatar: React.ForwardRefExoticComponent<any>;
|
|
16
16
|
export default Avatar;
|
|
@@ -10,5 +10,5 @@ declare global {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
declare const CodeSnippet: React.ForwardRefExoticComponent<
|
|
13
|
+
declare const CodeSnippet: React.ForwardRefExoticComponent<any>;
|
|
14
14
|
export default CodeSnippet;
|
|
@@ -1,36 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FlexAlignment } from '../types';
|
|
3
|
-
type Never<T extends Record<string, any>> = {
|
|
4
|
-
[K in keyof T]: never;
|
|
5
|
-
};
|
|
6
|
-
type SpaceBetween = '0' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '28' | '32';
|
|
7
|
-
type Flex = {
|
|
8
|
-
spaceBetween?: SpaceBetween;
|
|
9
|
-
};
|
|
10
|
-
type ContainerAlignment = {
|
|
11
|
-
'horizontal-alignment'?: FlexAlignment | 'space-between';
|
|
12
|
-
'vertical-alignment'?: FlexAlignment;
|
|
13
|
-
'space-between'?: 'sm' | 'md' | 'lg';
|
|
14
|
-
};
|
|
15
|
-
type Props = {
|
|
16
|
-
shadow?: 'md' | 'lg' | 'xl' | '2xl';
|
|
17
|
-
borderRadius?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
18
|
-
paddingX?: string;
|
|
19
|
-
paddingY?: string;
|
|
20
|
-
background?: string;
|
|
21
|
-
backgroundImageUrl?: string;
|
|
22
|
-
width?: string;
|
|
23
|
-
collapsible?: boolean;
|
|
24
|
-
'icon-position'?: 'right' | 'left';
|
|
25
|
-
'fill-title'?: boolean;
|
|
26
|
-
border?: boolean;
|
|
27
|
-
text?: string;
|
|
28
|
-
'icon-name'?: string;
|
|
29
|
-
collapsed?: boolean;
|
|
30
|
-
'text-align'?: 'left' | 'right' | 'center';
|
|
31
|
-
'text-variant'?: 'body1' | 'body2' | 'subtitle1' | 'h1' | 'h2' | 'h3' | 'subtitle2';
|
|
32
|
-
'text-mode'?: 'primary' | 'secondary' | 'error' | 'success';
|
|
33
|
-
} & ((Flex & Never<ContainerAlignment>) | (ContainerAlignment & Never<Flex>));
|
|
34
2
|
declare global {
|
|
35
3
|
namespace React.JSX {
|
|
36
4
|
interface IntrinsicElements {
|
|
@@ -38,5 +6,5 @@ declare global {
|
|
|
38
6
|
}
|
|
39
7
|
}
|
|
40
8
|
}
|
|
41
|
-
declare const Container: React.ForwardRefExoticComponent<
|
|
9
|
+
declare const Container: React.ForwardRefExoticComponent<any>;
|
|
42
10
|
export default Container;
|
|
@@ -1,30 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FlexAlignment } from '../types';
|
|
3
|
-
type Never<T extends Record<string, any>> = {
|
|
4
|
-
[K in keyof T]: never;
|
|
5
|
-
};
|
|
6
|
-
type SpaceBetween = '0' | '0.5' | '1' | '1.5' | '2' | '2.5' | '3' | '3.5' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '28' | '32';
|
|
7
|
-
type Flex = {
|
|
8
|
-
align?: 'start' | 'end' | 'center' | 'baseline' | 'stretch';
|
|
9
|
-
justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
10
|
-
spaceBetween?: SpaceBetween;
|
|
11
|
-
};
|
|
12
|
-
type ContainerAlignment = {
|
|
13
|
-
'horizontal-alignment'?: FlexAlignment | 'space-between';
|
|
14
|
-
'vertical-alignment'?: FlexAlignment;
|
|
15
|
-
'space-between'?: 'sm' | 'md' | 'lg';
|
|
16
|
-
};
|
|
17
|
-
type Props = {
|
|
18
|
-
direction?: 'row' | 'column';
|
|
19
|
-
shadow?: 'md' | 'lg' | 'xl' | '2xl';
|
|
20
|
-
borderRadius?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
21
|
-
paddingX?: string;
|
|
22
|
-
paddingY?: string;
|
|
23
|
-
background?: string;
|
|
24
|
-
backgroundImageUrl?: string;
|
|
25
|
-
width?: string;
|
|
26
|
-
variant?: string;
|
|
27
|
-
} & ((Flex & Never<ContainerAlignment>) | (ContainerAlignment & Never<Flex>));
|
|
28
2
|
declare global {
|
|
29
3
|
namespace React.JSX {
|
|
30
4
|
interface IntrinsicElements {
|
|
@@ -32,5 +6,5 @@ declare global {
|
|
|
32
6
|
}
|
|
33
7
|
}
|
|
34
8
|
}
|
|
35
|
-
declare const Container: React.ForwardRefExoticComponent<
|
|
9
|
+
declare const Container: React.ForwardRefExoticComponent<any>;
|
|
36
10
|
export default Container;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
varName: string;
|
|
4
|
-
fallback?: string;
|
|
5
|
-
width?: number;
|
|
6
|
-
height?: number;
|
|
7
|
-
};
|
|
8
|
-
declare const CssVarImage: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLImageElement> & React.RefAttributes<HTMLDivElement>>;
|
|
2
|
+
declare const CssVarImage: React.ForwardRefExoticComponent<any>;
|
|
9
3
|
export default CssVarImage;
|
|
@@ -14,5 +14,5 @@ declare global {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<
|
|
17
|
+
declare const Divider: React.ForwardRefExoticComponent<Omit<Omit<any, "size"> & Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
export default Divider;
|
|
@@ -10,5 +10,5 @@ type Props = {
|
|
|
10
10
|
connector?: string;
|
|
11
11
|
enabled?: boolean;
|
|
12
12
|
};
|
|
13
|
-
declare const Hcaptcha: React.ForwardRefExoticComponent<
|
|
13
|
+
declare const Hcaptcha: React.ForwardRefExoticComponent<any>;
|
|
14
14
|
export default Hcaptcha;
|
|
@@ -25,22 +25,5 @@ declare global {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
declare const HybridField: React.ForwardRefExoticComponent<
|
|
29
|
-
variant?: "countrySelection" | "inputBox";
|
|
30
|
-
'default-code'?: string;
|
|
31
|
-
'phone-input-label'?: string;
|
|
32
|
-
'phone-input-placeholder'?: string;
|
|
33
|
-
'restrict-countries'?: string;
|
|
34
|
-
'full-width'?: boolean;
|
|
35
|
-
bordered?: boolean;
|
|
36
|
-
label?: string;
|
|
37
|
-
placeholder?: string;
|
|
38
|
-
size?: ComponentSize;
|
|
39
|
-
'helper-text'?: string;
|
|
40
|
-
'data-errormessage-pattern-mismatch-email'?: string;
|
|
41
|
-
'data-errormessage-value-missing-email'?: string;
|
|
42
|
-
'data-errormessage-value-missing-phone'?: string;
|
|
43
|
-
'label-type'?: LabelType;
|
|
44
|
-
'external-input'?: boolean;
|
|
45
|
-
} & import("../types").HTMLInputAttrs & import("../types").DescopeInputExtraProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
28
|
+
declare const HybridField: React.ForwardRefExoticComponent<any>;
|
|
46
29
|
export default HybridField;
|
|
@@ -8,8 +8,8 @@ declare global {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
11
|
+
declare function Icon({ icon, noColor, ...props }: React.JSX.IntrinsicElements['img'] & {
|
|
12
12
|
icon?: string;
|
|
13
13
|
noColor?: boolean;
|
|
14
|
-
})
|
|
14
|
+
}): React.JSX.Element;
|
|
15
15
|
export default Icon;
|
|
@@ -14,11 +14,5 @@ declare global {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
declare const Image: React.ForwardRefExoticComponent<
|
|
18
|
-
width?: string;
|
|
19
|
-
height?: string;
|
|
20
|
-
alt?: string;
|
|
21
|
-
src: string;
|
|
22
|
-
'src-dark'?: string;
|
|
23
|
-
} & ITooltip & React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
17
|
+
declare const Image: React.ForwardRefExoticComponent<any>;
|
|
24
18
|
export default Image;
|
|
@@ -23,5 +23,5 @@ declare global {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
declare const Recaptcha: React.ForwardRefExoticComponent<
|
|
26
|
+
declare const Recaptcha: React.ForwardRefExoticComponent<any>;
|
|
27
27
|
export default Recaptcha;
|
|
@@ -1,19 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
connector?: string;
|
|
5
|
-
enterprise?: boolean;
|
|
6
|
-
action?: string;
|
|
7
|
-
textLabel?: string;
|
|
8
|
-
textVariant?: TypographyVariants;
|
|
9
|
-
textMode?: Mode;
|
|
10
|
-
textAlign?: TextAlign;
|
|
11
|
-
'full-width'?: boolean;
|
|
12
|
-
readOnly?: boolean;
|
|
13
|
-
variant?: CaptchaVariants;
|
|
14
|
-
src?: string;
|
|
15
|
-
width?: string;
|
|
16
|
-
height?: string;
|
|
17
|
-
};
|
|
18
|
-
declare const RecaptchaV2: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
2
|
+
declare const RecaptchaV2: React.ForwardRefExoticComponent<any>;
|
|
19
3
|
export default RecaptchaV2;
|
|
@@ -11,7 +11,7 @@ type Props = {
|
|
|
11
11
|
children?: React.ReactNode;
|
|
12
12
|
};
|
|
13
13
|
declare module 'react' {
|
|
14
|
-
interface HTMLAttributes<
|
|
14
|
+
interface HTMLAttributes<_T> {
|
|
15
15
|
slot?: string;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -22,7 +22,7 @@ declare global {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
declare const Tooltip: React.ForwardRefExoticComponent<
|
|
25
|
+
declare const Tooltip: React.ForwardRefExoticComponent<any>;
|
|
26
26
|
export default Tooltip;
|
|
27
27
|
export interface ITooltip {
|
|
28
28
|
hasTooltip?: boolean;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
type Props = {
|
|
4
|
-
connector?: string;
|
|
5
|
-
action?: string;
|
|
6
|
-
textLabel?: string;
|
|
7
|
-
textVariant?: TypographyVariants;
|
|
8
|
-
textMode?: Mode;
|
|
9
|
-
textAlign?: TextAlign;
|
|
10
|
-
readonly?: boolean;
|
|
11
|
-
'full-width'?: boolean;
|
|
12
|
-
};
|
|
13
|
-
declare const Turnstile: React.ForwardRefExoticComponent<Props & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
2
|
+
declare const Turnstile: React.ForwardRefExoticComponent<any>;
|
|
14
3
|
export default Turnstile;
|
|
@@ -23,5 +23,5 @@ declare global {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
declare const UploadFile: React.ForwardRefExoticComponent<
|
|
26
|
+
declare const UploadFile: React.ForwardRefExoticComponent<any>;
|
|
27
27
|
export default UploadFile;
|
|
@@ -19,5 +19,5 @@ declare global {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
declare const UserAttribute: React.ForwardRefExoticComponent<
|
|
22
|
+
declare const UserAttribute: React.ForwardRefExoticComponent<any>;
|
|
23
23
|
export default UserAttribute;
|
|
@@ -9,16 +9,5 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
declare const UserAuthMethod: React.ForwardRefExoticComponent<
|
|
13
|
-
label?: string;
|
|
14
|
-
'button-label'?: string;
|
|
15
|
-
fulfilled?: boolean;
|
|
16
|
-
'full-width'?: boolean;
|
|
17
|
-
methodIcon?: string;
|
|
18
|
-
methodIconDark?: string;
|
|
19
|
-
buttonIcon?: string;
|
|
20
|
-
buttonIconDark?: string;
|
|
21
|
-
fulfilledButtonIcon?: string;
|
|
22
|
-
fulfilledButtonIconDark?: string;
|
|
23
|
-
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
declare const UserAuthMethod: React.ForwardRefExoticComponent<any>;
|
|
24
13
|
export default UserAuthMethod;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/flow-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
"@typescript-eslint/parser": "^8.0.0",
|
|
54
54
|
"autoprefixer": "^10.4.8",
|
|
55
55
|
"babel-jest": "30.2.0",
|
|
56
|
-
"eslint": "
|
|
56
|
+
"eslint": "10.0.0",
|
|
57
57
|
"eslint-config-airbnb": "^19.0.4",
|
|
58
58
|
"eslint-config-airbnb-typescript": "18.0.0",
|
|
59
59
|
"eslint-config-prettier": "10.1.8",
|
|
60
60
|
"eslint-config-standard": "17.1.0",
|
|
61
61
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
62
62
|
"eslint-plugin-import": "2.32.0",
|
|
63
|
-
"eslint-plugin-jest": "29.
|
|
63
|
+
"eslint-plugin-jest": "29.14.0",
|
|
64
64
|
"eslint-plugin-jest-dom": "5.5.0",
|
|
65
65
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
66
66
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"webpack-dev-server": "5.2.3"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@descope/web-components-ui": "
|
|
99
|
+
"@descope/web-components-ui": "3.0.0"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"react": ">= 18"
|
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
"dev": "nx dev flow-components",
|
|
140
140
|
"dev-server": "FEDERATION_IP=127.0.0.1 NODE_ENV=development webpack serve --mode development --port 4444",
|
|
141
141
|
"test": "exit 0",
|
|
142
|
-
"lint": "eslint
|
|
142
|
+
"lint": "eslint --no-warn-ignored --fix 'src/**/*.{ts,tsx,js,jsx}'",
|
|
143
143
|
"format": "prettier . -w --ignore-path .gitignore",
|
|
144
144
|
"format-lint": "pretty-quick --staged --ignore-path .gitignore && lint-staged"
|
|
145
145
|
}
|