@woovi/ui 6.5.11 → 6.6.1
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/README.md +1 -1
- package/dist/Link.d.ts +1 -1
- package/dist/ReactRouterLinkBehavior.d.ts +2 -2
- package/dist/buttons/ButtonMenu.d.ts +4 -3
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/llms.txt +30 -6
- package/dist/multifactor/MultiFactorConfirmModal.d.ts +1 -1
- package/dist/router/drawRoutes.d.ts +3 -3
- package/dist/router/getRouteFromPath.d.ts +1 -1
- package/dist/router/types.d.ts +0 -1
- package/package.json +14 -18
package/dist/llms.txt
CHANGED
|
@@ -667,19 +667,43 @@ import { BoxFlex, Typography } from '@woovi/ui';
|
|
|
667
667
|
|
|
668
668
|
## MultiFactor
|
|
669
669
|
|
|
670
|
-
Componentes de autenticacao multi-fator para
|
|
670
|
+
Componentes de autenticacao multi-fator para verificacao segura de usuarios.
|
|
671
671
|
|
|
672
672
|
```tsx
|
|
673
|
-
import {
|
|
673
|
+
import {
|
|
674
|
+
MultiFactorConfirmModal,
|
|
675
|
+
MultiFactorPixPaymentMatch,
|
|
676
|
+
MultiFactorPixPaymentMismatch,
|
|
677
|
+
MultiFactorPixPaymentView
|
|
678
|
+
} from '@woovi/ui';
|
|
674
679
|
|
|
675
|
-
// Modal de confirmacao MFA
|
|
680
|
+
// Modal de confirmacao MFA (suporta TOTP, WhatsApp/SMS e email)
|
|
676
681
|
<MultiFactorConfirmModal
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
682
|
+
title="Confirm your identity"
|
|
683
|
+
isOpen={isOpen}
|
|
684
|
+
onConfirm={handleConfirm}
|
|
685
|
+
handleOpenChange={handleClose}
|
|
686
|
+
email="user@example.com"
|
|
687
|
+
/>
|
|
688
|
+
|
|
689
|
+
// Verificacao PIX com sucesso (CPF corresponde)
|
|
690
|
+
<MultiFactorPixPaymentMatch amount={0.01} />
|
|
691
|
+
|
|
692
|
+
// Verificacao PIX com falha (CPF nao corresponde)
|
|
693
|
+
<MultiFactorPixPaymentMismatch amount={0.01} />
|
|
694
|
+
|
|
695
|
+
// View do QR Code PIX para verificacao
|
|
696
|
+
<MultiFactorPixPaymentView
|
|
697
|
+
pixAuthentication={{ brCode: '...', taxID: '...' }}
|
|
698
|
+
onGetResult={handleGetResult}
|
|
680
699
|
/>
|
|
681
700
|
```
|
|
682
701
|
|
|
702
|
+
- MultiFactorConfirmModal: https://storybook.woovi.design/?path=/docs/components-multifactor-multifactorconfirmmodal--docs
|
|
703
|
+
- MultiFactorPixPaymentMatch: https://storybook.woovi.design/?path=/docs/components-multifactor-multifactorpixpaymentmatch--docs
|
|
704
|
+
- MultiFactorPixPaymentMismatch: https://storybook.woovi.design/?path=/docs/components-multifactor-multifactorpixpaymentmismatch--docs
|
|
705
|
+
- MultiFactorPixPaymentView: https://storybook.woovi.design/?path=/docs/components-multifactor-multifactorpixpaymentview--docs
|
|
706
|
+
|
|
683
707
|
## OpenPix
|
|
684
708
|
|
|
685
709
|
Componentes especificos do ecossistema OpenPix.
|
|
@@ -7,7 +7,7 @@ type MultiFactorConfirmModalProps = {
|
|
|
7
7
|
actionMessage?: string;
|
|
8
8
|
isOpen: boolean;
|
|
9
9
|
isMutationPending?: boolean;
|
|
10
|
-
onConfirm: () => void;
|
|
10
|
+
onConfirm: (value: string) => void;
|
|
11
11
|
handleOpenChange: () => void;
|
|
12
12
|
onTryAnotherWay?: () => Promise<PixAuthenticationArgs | void>;
|
|
13
13
|
onGetResult?: () => Promise<{
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ReactNode } from
|
|
2
|
-
import type { RouteType } from
|
|
3
|
-
export declare const drawRoutes: (routes: RouteType[], company: Record<string, unknown> | null, componentProps: Record<string, unknown> | null) => ReactNode
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { RouteType } from "./types.ts";
|
|
3
|
+
export declare const drawRoutes: (routes: RouteType[], company: Record<string, unknown> | null, componentProps: Record<string, unknown> | null) => ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Location } from '
|
|
1
|
+
import type { Location } from 'react-router';
|
|
2
2
|
import type { RouteType } from './types.ts';
|
|
3
3
|
export declare const getRouteFromPath: (routes: RouteType[]) => (path: string) => {};
|
|
4
4
|
export declare const hasMatchChildren: (location: Location, childrenRoutes: RouteType[]) => boolean;
|
package/dist/router/types.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export type RouteType = {
|
|
|
9
9
|
name: string;
|
|
10
10
|
path: string;
|
|
11
11
|
component: LoadableComponent<any> | React.ComponentType<any>;
|
|
12
|
-
exact?: boolean;
|
|
13
12
|
routes?: RouteType[];
|
|
14
13
|
labelHeader?: string | (({ t, company }: LabelParams) => string);
|
|
15
14
|
label?: string | (({ t, company }: LabelParams) => string);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@woovi/ui",
|
|
3
3
|
"description": "Woovi UI component library",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.6.1",
|
|
5
5
|
"packageManager": "pnpm@10.28.1",
|
|
6
6
|
"author": "Woovi",
|
|
7
7
|
"dependencies": {
|
|
@@ -17,9 +17,8 @@
|
|
|
17
17
|
"brazilian-values": "0.13.1",
|
|
18
18
|
"dot-object": "2.1.5",
|
|
19
19
|
"formik": "3.0.0-next.6",
|
|
20
|
-
"history": "4.10.1",
|
|
21
20
|
"i18next": "^23.16.5",
|
|
22
|
-
"i18next-browser-languagedetector": "8.2.
|
|
21
|
+
"i18next-browser-languagedetector": "8.2.1",
|
|
23
22
|
"libphonenumber-js": "1.12.36",
|
|
24
23
|
"mime-types": "3.0.2",
|
|
25
24
|
"moment": "2.30.1",
|
|
@@ -30,10 +29,9 @@
|
|
|
30
29
|
"react-dropzone": "14.4.0",
|
|
31
30
|
"react-error-boundary": "6.1.0",
|
|
32
31
|
"react-i18next": "15.7.4",
|
|
33
|
-
"react-icons": "4.8.0",
|
|
34
32
|
"react-relay": "20.1.1",
|
|
35
33
|
"react-rnd": "10.5.2",
|
|
36
|
-
"react-router
|
|
34
|
+
"react-router": "^7.13.1",
|
|
37
35
|
"react-virtual": "2.2.5",
|
|
38
36
|
"react-window": "1.8.10",
|
|
39
37
|
"rifm": "0.12.1",
|
|
@@ -45,7 +43,7 @@
|
|
|
45
43
|
"zx": "^8.8.5"
|
|
46
44
|
},
|
|
47
45
|
"devDependencies": {
|
|
48
|
-
"@biomejs/biome": "^2.
|
|
46
|
+
"@biomejs/biome": "^2.4.5",
|
|
49
47
|
"@chromatic-com/storybook": "^5.0.0",
|
|
50
48
|
"@eslint/js": "^9.39.1",
|
|
51
49
|
"@octokit/rest": "^22.0.1",
|
|
@@ -53,18 +51,17 @@
|
|
|
53
51
|
"@rsbuild/plugin-react": "^1.4.5",
|
|
54
52
|
"@rslib/core": "^0.19.5",
|
|
55
53
|
"@rspack/core": "^1.7.5",
|
|
56
|
-
"@storybook/addon-a11y": "^10.2.
|
|
57
|
-
"@storybook/addon-docs": "^10.2.
|
|
58
|
-
"@storybook/addon-mcp": "^0.
|
|
59
|
-
"@storybook/addon-onboarding": "^10.2.
|
|
60
|
-
"@storybook/addon-vitest": "^10.2.
|
|
61
|
-
"@storybook/react-vite": "^10.2.
|
|
54
|
+
"@storybook/addon-a11y": "^10.2.14",
|
|
55
|
+
"@storybook/addon-docs": "^10.2.14",
|
|
56
|
+
"@storybook/addon-mcp": "^0.3.3",
|
|
57
|
+
"@storybook/addon-onboarding": "^10.2.14",
|
|
58
|
+
"@storybook/addon-vitest": "^10.2.14",
|
|
59
|
+
"@storybook/react-vite": "^10.2.14",
|
|
62
60
|
"@types/dot-object": "^2.1.6",
|
|
63
|
-
"@types/node": "^25.
|
|
61
|
+
"@types/node": "^25.3.3",
|
|
64
62
|
"@types/react": "^18.3.12",
|
|
65
63
|
"@types/react-dom": "^18.3.0",
|
|
66
64
|
"@types/react-relay": "^18.2.1",
|
|
67
|
-
"@types/react-router-dom": "^5.3.3",
|
|
68
65
|
"@typescript/native-preview": "7.0.0-dev.20260207.1",
|
|
69
66
|
"@vitest/browser-playwright": "^4.0.18",
|
|
70
67
|
"@vitest/coverage-v8": "^4.0.18",
|
|
@@ -79,8 +76,8 @@
|
|
|
79
76
|
"moment-timezone": "^0.6.0",
|
|
80
77
|
"playwright": "^1.58.2",
|
|
81
78
|
"simple-git": "^3.30.0",
|
|
82
|
-
"storybook": "^10.2.
|
|
83
|
-
"turbo": "^2.8.
|
|
79
|
+
"storybook": "^10.2.14",
|
|
80
|
+
"turbo": "^2.8.4",
|
|
84
81
|
"typescript": "^5.9.3",
|
|
85
82
|
"typescript-eslint": "^8.54.0",
|
|
86
83
|
"vite": "^7.3.1",
|
|
@@ -130,10 +127,9 @@
|
|
|
130
127
|
"@mui/x-data-grid-pro": "^8.0.0",
|
|
131
128
|
"react": "^18.3.1",
|
|
132
129
|
"react-dom": "^18.3.1",
|
|
133
|
-
"react-icons": "4.8.0",
|
|
134
130
|
"react-rnd": "10.4.1",
|
|
135
|
-
"react-router-dom": "5.3.0",
|
|
136
131
|
"react-virtual": "2.2.5",
|
|
132
|
+
"react-router": "^7.13.1",
|
|
137
133
|
"react-window": "1.8.10"
|
|
138
134
|
},
|
|
139
135
|
"private": false,
|