@pagopa/selfcare-common-frontend 1.34.12 → 1.34.13
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/CHANGELOG.md +17 -2
- package/build.info +2 -2
- package/components/BackComponent.d.ts +2 -3
- package/components/CustomAvatar.d.ts +2 -3
- package/components/CustomPagination.d.ts +2 -3
- package/components/EndingPage.d.ts +2 -2
- package/components/EndingPage.js.map +1 -1
- package/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/components/ErrorBoundary/components/BlockingErrorPage.d.ts +2 -2
- package/components/FilterModal.d.ts +3 -3
- package/components/Footer/Footer.d.ts +2 -3
- package/components/Header/Header.d.ts +3 -4
- package/components/Loading/LoadingOverlay.d.ts +1 -2
- package/components/LoadingOverlayComponent.d.ts +2 -3
- package/components/NavigationBar.d.ts +3 -4
- package/components/SessionModal.d.ts +3 -3
- package/components/SessionModal.js.map +1 -1
- package/components/TitleBox.d.ts +2 -3
- package/components/Toast.d.ts +2 -2
- package/components/ToastWrapper.d.ts +2 -2
- package/components/UnloadEventHandler.d.ts +1 -2
- package/components/UserNotifyHandle.d.ts +1 -2
- package/components/icons/CheckIllustrationIcon.d.ts +1 -2
- package/components/icons/ErrorIcon.d.ts +1 -2
- package/components/icons/PagoPaIcon.d.ts +1 -2
- package/components/icons/PagoPaIconColored.d.ts +1 -2
- package/components/icons/PagoPaMiniIcon.d.ts +1 -2
- package/decorators/__mocks__/withLogin.d.ts +1 -2
- package/decorators/withLogin.d.ts +1 -1
- package/hooks/useReduxCachedValue.d.ts +3 -3
- package/hooks/useUnloadEventInterceptor.d.ts +3 -3
- package/model/AppError.d.ts +1 -1
- package/model/Page.d.ts +1 -1
- package/model/PageRequest.d.ts +1 -1
- package/model/PageResource.d.ts +1 -1
- package/model/User.d.ts +1 -1
- package/model/UserNotify.d.ts +1 -1
- package/package.json +18 -17
- package/services/analyticsService.d.ts +1 -1
- package/services/assistanceService.d.ts +1 -1
- package/utils/constants.d.ts +1 -1
- package/utils/storage-utils.d.ts +3 -3
- package/utils/verifyNameMatchWithTaxCode.d.ts +1 -1
- package/utils/verifySurnameMatchWithTaxCode.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,9 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
#### [v1.34.
|
|
7
|
+
#### [v1.34.13](https://github.com/pagopa/selfcare-common-frontend/compare/v1.35.0...v1.34.13)
|
|
8
8
|
|
|
9
|
+
- [SELC-3324] Updated React version from 17.0.2 to 18.0.2 + updated other project dependencies for ensure compatibility [`#195`](https://github.com/pagopa/selfcare-common-frontend/pull/195)
|
|
9
10
|
- [SELC-1712] feat: change footer link label of privacy policy [`#194`](https://github.com/pagopa/selfcare-common-frontend/pull/194)
|
|
10
11
|
- SELC-3242 Updated translations [`#193`](https://github.com/pagopa/selfcare-common-frontend/pull/193)
|
|
11
12
|
- SELC-3135 add onDocumentationClick prop to toggle visibility of documentation button [`#192`](https://github.com/pagopa/selfcare-common-frontend/pull/192)
|
|
@@ -17,6 +18,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
17
18
|
- SELC-2590 [`#186`](https://github.com/pagopa/selfcare-common-frontend/pull/186)
|
|
18
19
|
- SELC-2590 - update common [`#185`](https://github.com/pagopa/selfcare-common-frontend/pull/185)
|
|
19
20
|
- Used a environment variable to manage correct links in the footer based to product and actual environment [`#184`](https://github.com/pagopa/selfcare-common-frontend/pull/184)
|
|
21
|
+
- Merge pull request #195 from pagopa/SELC-3324 [`#3324`](https://pagopa.atlassian.net/browse/3324) [`#3324`](https://pagopa.atlassian.net/browse/3324)
|
|
22
|
+
- [SELC-3324] Updated React testing library and Jest dependencies for ensure React v18 compatibility [`#3324`](https://pagopa.atlassian.net/browse/3324)
|
|
23
|
+
- [SELC-3324 Updated mui-italia dependencies to v1.1.0 [`#3324`](https://pagopa.atlassian.net/browse/3324)
|
|
24
|
+
- [SELC-3324] Updated React version from 17.0.2 to 18.0.2 + consequent update of other project dependencies [`#3324`](https://pagopa.atlassian.net/browse/3324)
|
|
20
25
|
- Merge pull request #194 from pagopa/SELC-1712 [`#1712`](https://pagopa.atlassian.net/browse/1712) [`#1712`](https://pagopa.atlassian.net/browse/1712)
|
|
21
26
|
- SELC-1712 change footer label [`#1712`](https://pagopa.atlassian.net/browse/1712)
|
|
22
27
|
- [SELC-3183] docs: codeowners as pagopa ic [`#3183`](https://pagopa.atlassian.net/browse/3183)
|
|
@@ -39,10 +44,20 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
39
44
|
- Fixed broken unitTest [`d9bb4de`](https://github.com/pagopa/selfcare-common-frontend/commit/d9bb4deafebc474c7dfe475ca68bce898c762cfd)
|
|
40
45
|
- empty space [`8b39bc7`](https://github.com/pagopa/selfcare-common-frontend/commit/8b39bc7af38c4e8b916c257d39c9b54bd6120e9f)
|
|
41
46
|
|
|
42
|
-
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.
|
|
47
|
+
#### [v1.35.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.12...v1.35.0)
|
|
43
48
|
|
|
44
49
|
> 20 July 2023
|
|
45
50
|
|
|
51
|
+
#### [v1.34.12](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.11...v1.34.12)
|
|
52
|
+
|
|
53
|
+
> 13 December 2023
|
|
54
|
+
|
|
55
|
+
- [SELC-1712] feat: change footer link label of privacy policy [`#194`](https://github.com/pagopa/selfcare-common-frontend/pull/194)
|
|
56
|
+
- Merge pull request #194 from pagopa/SELC-1712 [`#1712`](https://pagopa.atlassian.net/browse/1712) [`#1712`](https://pagopa.atlassian.net/browse/1712)
|
|
57
|
+
- SELC-1712 change footer label [`#1712`](https://pagopa.atlassian.net/browse/1712)
|
|
58
|
+
- [SELC-3183] docs: codeowners as pagopa ic [`#3183`](https://pagopa.atlassian.net/browse/3183)
|
|
59
|
+
- empty space [`8b39bc7`](https://github.com/pagopa/selfcare-common-frontend/commit/8b39bc7af38c4e8b916c257d39c9b54bd6120e9f)
|
|
60
|
+
|
|
46
61
|
#### [v1.34.11](https://github.com/pagopa/selfcare-common-frontend/compare/v1.34.10...v1.34.11)
|
|
47
62
|
|
|
48
63
|
> 17 October 2023
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
tags/v1.29.0~1^2
|
|
1
|
+
20231220.2 - selfcare-common-frontend.deploy(133835)
|
|
2
|
+
tags/v1.29.0~1^2 b76cf732259281d5d993d0e8fc8f2af264e831b2
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare type Props = {
|
|
1
|
+
type Props = {
|
|
3
2
|
goBack?: () => void;
|
|
4
3
|
backLabel?: string;
|
|
5
4
|
};
|
|
6
|
-
export default function BackComponent({ goBack, backLabel }: Props): JSX.Element;
|
|
5
|
+
export default function BackComponent({ goBack, backLabel }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare type Props = {
|
|
1
|
+
type Props = {
|
|
3
2
|
/** The id attribute added to the element */
|
|
4
3
|
id?: string;
|
|
5
4
|
/** The logo src */
|
|
@@ -14,5 +13,5 @@ declare type Props = {
|
|
|
14
13
|
loading?: boolean;
|
|
15
14
|
};
|
|
16
15
|
/** Avatar to use to load Organization logo */
|
|
17
|
-
export default function CustomAvatar({ customAlt, customSrc, customWidth, customHeight, id, loading, }: Props): JSX.Element;
|
|
16
|
+
export default function CustomAvatar({ customAlt, customSrc, customWidth, customHeight, id, loading, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Page } from '../model/Page';
|
|
3
2
|
import { PageRequest } from '../model/PageRequest';
|
|
4
|
-
|
|
3
|
+
type Props = {
|
|
5
4
|
/** The actual page */
|
|
6
5
|
page: Page;
|
|
7
6
|
/** The actual sort applied */
|
|
@@ -10,5 +9,5 @@ declare type Props = {
|
|
|
10
9
|
onPageRequest: (r: PageRequest) => void;
|
|
11
10
|
};
|
|
12
11
|
/** Selfcare custom table available pages component */
|
|
13
|
-
export default function CustomPagination({ page, onPageRequest, sort }: Props): JSX.Element;
|
|
12
|
+
export default function CustomPagination({ page, onPageRequest, sort }: Props): import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvgIconProps } from '@mui/material';
|
|
2
2
|
import { FunctionComponent, SVGProps } from 'react';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
/** The minHeight of the component, can be 52vh for the pages and 100vh for the blocking page */
|
|
5
5
|
minHeight?: '52vh' | '100vh';
|
|
6
6
|
/** The ending page icon */
|
|
@@ -20,6 +20,6 @@ declare type Props = {
|
|
|
20
20
|
paragraph?: React.ReactNode;
|
|
21
21
|
isParagraphPresent?: boolean;
|
|
22
22
|
};
|
|
23
|
-
declare const _default: ({ minHeight, description, onButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, }: Props) => JSX.Element;
|
|
24
23
|
/** Selfcare's Ending Page */
|
|
24
|
+
declare const _default: ({ minHeight, description, onButtonClick, icon, title, buttonLabel, variantTitle, variantDescription, paragraph, isParagraphPresent, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EndingPage.js","sourceRoot":"","sources":["../../src/lib/components/EndingPage.tsx"],"names":[],"mappings":";;;AAAA,4CAA4E;AAsD5E,6BAA6B;AAC7B,kBAAe,CAAC,EACd,SAAS,EACT,WAA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AoB,GAChB,GACF,EACP,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,YAC1C,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAU,IAAC,OAAO,EAAE,YAAY,YAAG,KAAK,GAAc,GAClD,GACF,EACP,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YACvD,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAU,IAAC,OAAO,EAAE,kBAAkB,YAAG,WAAW,GAAc,GAC9D,GACF,EACN,aAAa,IAAI,CAChB,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,YAC1C,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,iBAAM,IAAC,OAAO,EAAC,WAAW,EAAC,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,aAAa,YAC5E,WAAW,GACL,GACJ,GACF,CACR,EAEA,kBAAkB,IAAI,CACrB,uBAAC,eAAI,IAAC,SAAS,QAAC,IAAI,QAAC,cAAc,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,YACvD,uBAAC,eAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,YACd,uBAAC,qBAAU,IAAC,OAAO,EAAE,kBAAkB,YAAG,SAAS,GAAc,GAC5D,GACF,CACR,KAhCoC,GAAG,CAiCnC,GACH,CACP,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { TFunction } from '
|
|
2
|
+
import { TFunction } from 'i18next';
|
|
3
3
|
interface Props {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
assistanceEmail?: string;
|
|
@@ -7,5 +7,5 @@ interface Props {
|
|
|
7
7
|
t: TFunction<'translation', undefined>;
|
|
8
8
|
showCloseIcon?: boolean;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: import("react").ComponentType<Omit<import("react-i18next")
|
|
10
|
+
declare const _default: import("react").ComponentType<Omit<import("react-i18next/helpers").$Subtract<Props, import("react-i18next").WithTranslationProps>, keyof import("react-i18next").WithTranslation<Ns, undefined>> & import("react-i18next").WithTranslationProps>;
|
|
11
11
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../../src/lib/components/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":";;;;AACA,mCAAkC;AAClC,iCAAgF;AAChF,6CAAsC;AACtC,uCAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.js","sourceRoot":"","sources":["../../../src/lib/components/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":";;;;AACA,mCAAkC;AAClC,iCAAgF;AAChF,6CAAsC;AACtC,uCAA0C;AAC1C,iDAAgD;AAChD,4GAAgF;AAEhF,oEAAgG;AAChG,8DAA2D;AAC3D,2EAA2C;AAC3C,6DAA6B;AAC7B,+FAA+D;AAgB/D;;;;;iJAKiJ;AACjJ,MAAM,aAAc,SAAQ,iBAAiC;IAC3D,YAAY,KAA6B;QACvC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzB,IAAI,CAAC,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AC,KAAe,EAAE,EAAE,CAAC,QAAQ,CAAC,+BAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;CAC/E,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAA0C,IAAA,qBAAO,EAC3E,eAAe,EACf,kBAAkB,CACnB,CAAC,aAAa,CAAC,CAAC;AACjB,kBAAe,IAAA,+BAAe,GAAE,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
description?: React.ReactNode;
|
|
4
4
|
assistanceEmail?: string;
|
|
5
5
|
minHeight?: '52vh' | '100vh';
|
|
6
6
|
};
|
|
7
|
-
declare const _default: ({ description, assistanceEmail, minHeight }: Props) => JSX.Element;
|
|
7
|
+
declare const _default: ({ description, assistanceEmail, minHeight }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
/** If the popup is to be displayed */
|
|
4
4
|
open: boolean;
|
|
5
5
|
/** The function to be invoked when clicking on exit button or selecting a value */
|
|
@@ -13,7 +13,7 @@ declare type Props = {
|
|
|
13
13
|
/** The popup minHeight */
|
|
14
14
|
minHeight?: string;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type FilterModalConfig<T, V> = {
|
|
17
17
|
/** The list of values between to which choose */
|
|
18
18
|
data: Array<T>;
|
|
19
19
|
/** A function that will select the label to show */
|
|
@@ -24,5 +24,5 @@ export declare type FilterModalConfig<T, V> = {
|
|
|
24
24
|
onFilterChange: (v: V) => void;
|
|
25
25
|
};
|
|
26
26
|
/** Modal used to show a list of values from which to choose a single value */
|
|
27
|
-
export default function FilterModal({ open, handleClose, title, filterModalConfig, height, minHeight, }: Props): JSX.Element;
|
|
27
|
+
export default function FilterModal({ open, handleClose, title, filterModalConfig, height, minHeight, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
declare type FooterProps = {
|
|
1
|
+
type FooterProps = {
|
|
3
2
|
loggedUser: boolean;
|
|
4
3
|
productsJsonUrl?: string;
|
|
5
4
|
onExit?: (exitAction: () => void) => void;
|
|
6
5
|
};
|
|
7
|
-
export default function Footer({ loggedUser, productsJsonUrl, onExit, }: FooterProps): JSX.Element;
|
|
6
|
+
export default function Footer({ loggedUser, productsJsonUrl, onExit, }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { JwtUser, UserAction, ProductSwitchItem, ProductEntity } from '@pagopa/mui-italia';
|
|
3
2
|
import { PartySwitchItem } from '@pagopa/mui-italia/dist/components/PartySwitch';
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
type PartyEntity = PartySwitchItem;
|
|
4
|
+
type HeaderProps = {
|
|
6
5
|
/** If true, it will render an other toolbar under the Header */
|
|
7
6
|
withSecondHeader: boolean;
|
|
8
7
|
/** The list of products in header */
|
|
@@ -39,5 +38,5 @@ declare type HeaderProps = {
|
|
|
39
38
|
onDocumentationClick?: () => void;
|
|
40
39
|
};
|
|
41
40
|
/** SelfCare Header component */
|
|
42
|
-
declare const Header: ({ withSecondHeader, productsList, selectedPartyId, selectedProductId, partyList, loggedUser, assistanceEmail, enableLogin, userActions, enableDropdown, addSelfcareProduct, onExit, onSelectedProduct, onSelectedParty, maxCharactersNumberMultiLineButton, maxCharactersNumberMultiLineItem, enableAssistanceButton, onDocumentationClick, }: HeaderProps) => JSX.Element;
|
|
41
|
+
declare const Header: ({ withSecondHeader, productsList, selectedPartyId, selectedProductId, partyList, loggedUser, assistanceEmail, enableLogin, userActions, enableDropdown, addSelfcareProduct, onExit, onSelectedProduct, onSelectedParty, maxCharactersNumberMultiLineButton, maxCharactersNumberMultiLineItem, enableAssistanceButton, onDocumentationClick, }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
42
|
export default Header;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/** This feature is based on react-redux library and require to register the reducer build in appStateSlice into the application's redux store.
|
|
3
2
|
It allows to draw a loader when an async task to wait is running.
|
|
4
3
|
|
|
5
4
|
To use this feature you have to put LoadingOverlay in your App as a child of a redux Provider component.
|
|
6
5
|
In order to register the start of an async task you have to use the custom hook useLoading passing the id of the task to await, which will return a setter function used to start and end the loading behavior. */
|
|
7
|
-
export default function LoadingOverlay(): JSX.Element;
|
|
6
|
+
export default function LoadingOverlay(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare type Props = {
|
|
1
|
+
type Props = {
|
|
3
2
|
open: boolean;
|
|
4
3
|
};
|
|
5
4
|
/** A component which render an overlay loading */
|
|
6
|
-
export default function LoadingOverlayComponent({ open }: Props): JSX.Element;
|
|
5
|
+
export default function LoadingOverlayComponent({ open }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SvgIconComponent } from '@mui/icons-material';
|
|
3
|
-
|
|
2
|
+
type Props = {
|
|
4
3
|
paths: Array<NavigationPath>;
|
|
5
4
|
goBack?: () => void;
|
|
6
5
|
backLabel?: string;
|
|
@@ -9,10 +8,10 @@ declare type Props = {
|
|
|
9
8
|
backLinkFontSize?: string;
|
|
10
9
|
showBackComponent?: boolean;
|
|
11
10
|
};
|
|
12
|
-
export
|
|
11
|
+
export type NavigationPath = {
|
|
13
12
|
description: string;
|
|
14
13
|
onClick?: () => void;
|
|
15
14
|
icon?: SvgIconComponent;
|
|
16
15
|
};
|
|
17
|
-
export default function NavigationBar({ paths, goBack, showBackComponent, backLabel }: Props): JSX.Element;
|
|
16
|
+
export default function NavigationBar({ paths, goBack, showBackComponent, backLabel }: Props): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TFunction } from '
|
|
3
|
-
|
|
2
|
+
import { TFunction } from 'i18next';
|
|
3
|
+
type Props = {
|
|
4
4
|
/** If this component should be displayed or not */
|
|
5
5
|
open: boolean;
|
|
6
6
|
/** The title to show in the popup */
|
|
@@ -36,5 +36,5 @@ declare type Props = {
|
|
|
36
36
|
/** If false not show the close button, default true */
|
|
37
37
|
showCloseButton?: boolean;
|
|
38
38
|
};
|
|
39
|
-
declare const _default: React.ComponentType<Omit<import("react-i18next")
|
|
39
|
+
declare const _default: React.ComponentType<Omit<import("react-i18next/helpers").$Subtract<Props, import("react-i18next").WithTranslationProps>, keyof import("react-i18next").WithTranslation<Ns, undefined>> & import("react-i18next").WithTranslationProps>;
|
|
40
40
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SessionModal.js","sourceRoot":"","sources":["../../src/lib/components/SessionModal.tsx"],"names":[],"mappings":";;;;AACA,4CAA0E;AAC1E,0EAA0C;AAC1C,wFAAwD;AACxD,iDAAgD;AAChD,8FAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"SessionModal.js","sourceRoot":"","sources":["../../src/lib/components/SessionModal.tsx"],"names":[],"mappings":";;;;AACA,4CAA0E;AAC1E,0EAA0C;AAC1C,wFAAwD;AACxD,iDAAgD;AAChD,8FAAkE;AAClE,iDAAgD;AAwChD,uBAAuB;AACvB,SAAS,YAAY,CAAC,EACpB,CAAC,EACD,IAAI,EACJ,KAAK,EACL,OAAO,EACP,SAAS,EACT,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,CAAC,CAAC,mCAAmC,CAAC,EACvD,mBAAmB,EACnB,WAAW,EACX,UAAU,GAAG,WAAW,EACxB,YAAY,GAA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// <reference types="react" />
|
|
2
1
|
import { Variant } from '@mui/material/styles/createTypography';
|
|
3
|
-
|
|
2
|
+
type Props = {
|
|
4
3
|
/** The title to show */
|
|
5
4
|
title: string;
|
|
6
5
|
/** The subtitle to show */
|
|
@@ -21,5 +20,5 @@ declare type Props = {
|
|
|
21
20
|
subTitleFontSize?: string;
|
|
22
21
|
};
|
|
23
22
|
/** Selfcare's page title */
|
|
24
|
-
export default function TitleBox({ title, subTitle, mbTitle, mtTitle, mbSubTitle, variantTitle, variantSubTitle, titleFontSize, subTitleFontSize, }: Props): JSX.Element;
|
|
23
|
+
export default function TitleBox({ title, subTitle, mbTitle, mtTitle, mbSubTitle, variantTitle, variantSubTitle, titleFontSize, subTitleFontSize, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
25
24
|
export {};
|
package/components/Toast.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
/** If this component should be displayed or not */
|
|
4
4
|
open: boolean;
|
|
5
5
|
/** The logo to be rendered. As default a confirm logo will be used */
|
|
@@ -26,5 +26,5 @@ declare type Props = {
|
|
|
26
26
|
toastColorIcon?: string;
|
|
27
27
|
};
|
|
28
28
|
/** Selfcare's toast */
|
|
29
|
-
export default function Toast({ open, title, message, onCloseToast, logo, leftBorderColor, width, wrapped, bottom, right, showToastCloseIcon, toastColorIcon, }: Props): JSX.Element;
|
|
29
|
+
export default function Toast({ open, title, message, onCloseToast, logo, leftBorderColor, width, wrapped, bottom, right, showToastCloseIcon, toastColorIcon, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = {
|
|
3
3
|
children: Array<ReactNode>;
|
|
4
4
|
/** The pixel from the bottom of the viewport where to place the toast. Default "64px" */
|
|
5
5
|
bottom?: string;
|
|
@@ -7,5 +7,5 @@ declare type Props = {
|
|
|
7
7
|
right?: string;
|
|
8
8
|
};
|
|
9
9
|
/** To stack multiple Toast component. Each Toast should have the prop wrapped setted to true */
|
|
10
|
-
export default function ToastWrapper({ children, bottom, right }: Props): JSX.Element;
|
|
10
|
+
export default function ToastWrapper({ children, bottom, right }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/** This feature is based on react-redux library and require to register the reducer build in appStateSlice into the application's redux store.
|
|
3
2
|
It allows to intercept when the user try to exit from the current page and ask him if he wants to continue or not.
|
|
4
3
|
|
|
@@ -6,4 +5,4 @@ To use this feature you have to put UnloadEventHandler in your App as a child of
|
|
|
6
5
|
In order to use this feature you have to use the custom hook useUnloadEventInterceptor.
|
|
7
6
|
@see {@link useUnloadEventInterceptor}
|
|
8
7
|
*/
|
|
9
|
-
export default function UnloadEventHandler(): JSX.Element;
|
|
8
|
+
export default function UnloadEventHandler(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/** This feature is based on react-redux library and require to register the reducer build in appStateSlice into the application's redux store.
|
|
3
2
|
It allows to dispatch User Notifies in order to display a pop up or a toast notification.
|
|
4
3
|
|
|
5
4
|
To use this feature you have to put UserNotifyHandle in your App as a child of a redux Provider component.
|
|
6
5
|
In order to dispatch a User Notify, you have to use the custom hook useUserNotify which will return a fuction to be used to dispatch the User Notify. */
|
|
7
|
-
declare function UserNotifyHandle(): JSX.Element;
|
|
6
|
+
declare function UserNotifyHandle(): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default UserNotifyHandle;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
3
2
|
import { DefaultComponentProps } from '@mui/material/OverridableComponent';
|
|
4
|
-
declare const _default: (props: DefaultComponentProps<SvgIconTypeMap>) => JSX.Element;
|
|
3
|
+
declare const _default: (props: DefaultComponentProps<SvgIconTypeMap>) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
3
2
|
import { DefaultComponentProps } from '@mui/material/OverridableComponent';
|
|
4
|
-
declare const _default: (props: DefaultComponentProps<SvgIconTypeMap>) => JSX.Element;
|
|
3
|
+
declare const _default: (props: DefaultComponentProps<SvgIconTypeMap>) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
3
2
|
import { DefaultComponentProps } from '@mui/material/OverridableComponent';
|
|
4
|
-
declare const _default: (props: DefaultComponentProps<SvgIconTypeMap>) => JSX.Element;
|
|
3
|
+
declare const _default: (props: DefaultComponentProps<SvgIconTypeMap>) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
3
2
|
import { DefaultComponentProps } from '@mui/material/OverridableComponent';
|
|
4
|
-
declare const _default: (props: DefaultComponentProps<SvgIconTypeMap>) => JSX.Element;
|
|
3
|
+
declare const _default: (props: DefaultComponentProps<SvgIconTypeMap>) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { SvgIconTypeMap } from '@mui/material/SvgIcon';
|
|
3
2
|
import { DefaultComponentProps } from '@mui/material/OverridableComponent';
|
|
4
|
-
declare const _default: (props: DefaultComponentProps<SvgIconTypeMap>) => JSX.Element;
|
|
3
|
+
declare const _default: (props: DefaultComponentProps<SvgIconTypeMap>) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default _default;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { User } from '../../model/User';
|
|
3
2
|
export declare const mockedUser: User;
|
|
4
3
|
export declare const verifyMockExecution: (state: any) => void;
|
|
5
|
-
declare const _default: (WrappedComponent: React.ComponentType<any>) => (props: any) => JSX.Element;
|
|
4
|
+
declare const _default: (WrappedComponent: React.ComponentType<any>) => (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
type LoginProps = {};
|
|
3
3
|
/** This feature is based on react-redux library and require to register the reducer build in userSlice into the application's redux store.
|
|
4
4
|
This decorator has to be applied to components whose acces require an active session.
|
|
5
5
|
Accessing to the components decorated with it without a session will brought to the login page.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
/** @see {useReduxCachedValue} when there is not RETRIEVER_ARGS and RETRIEVED_VALUE === STORED_VALUE */
|
|
3
|
-
declare const useReduxCachedValue: <RETRIEVED_VALUE extends Record<string, any>>(entity: string, retrieverService: () => Promise<RETRIEVED_VALUE>, reduxSelector: (state: any) => RETRIEVED_VALUE | undefined, reduxSetterAction: (value: RETRIEVED_VALUE) => PayloadAction<any>, selectedValuePredicate2Retrieve?: ((value: RETRIEVED_VALUE) => boolean) | undefined, alwaysRetrieve?: boolean
|
|
3
|
+
declare const useReduxCachedValue: <RETRIEVED_VALUE extends Record<string, any>>(entity: string, retrieverService: () => Promise<RETRIEVED_VALUE>, reduxSelector: (state: any) => RETRIEVED_VALUE | undefined, reduxSetterAction: (value: RETRIEVED_VALUE) => PayloadAction<any>, selectedValuePredicate2Retrieve?: ((value: RETRIEVED_VALUE) => boolean) | undefined, alwaysRetrieve?: boolean) => () => Promise<RETRIEVED_VALUE>;
|
|
4
4
|
/** @see {useReduxCachedValueParametricRetrieverTranscoded} when there is not RETRIEVER_ARGS */
|
|
5
5
|
export declare const useReduxCachedValueTranscoded: <RETRIEVED_VALUE, STORED_VALUE>(entity: string, retrieverService: () => Promise<RETRIEVED_VALUE>, reduxSelector: (state: any) => STORED_VALUE | undefined, reduxSetterAction: (value: RETRIEVED_VALUE) => {
|
|
6
6
|
payload: STORED_VALUE;
|
|
7
7
|
type: string;
|
|
8
|
-
}, selectedValue2RetrievedValue: (value: STORED_VALUE) => RETRIEVED_VALUE, selectedValuePredicate2Retrieve?: ((value: STORED_VALUE) => boolean) | undefined, alwaysRetrieve?: boolean
|
|
8
|
+
}, selectedValue2RetrievedValue: (value: STORED_VALUE) => RETRIEVED_VALUE, selectedValuePredicate2Retrieve?: ((value: STORED_VALUE) => boolean) | undefined, alwaysRetrieve?: boolean) => () => Promise<RETRIEVED_VALUE>;
|
|
9
9
|
/** It will return a method that will call the retrieverService only when there are not storing values, or a condition on them is not more verified */
|
|
10
10
|
export declare const useReduxCachedValueParametricRetrieverTranscoded: <RETRIEVED_VALUE, STORED_VALUE, RETRIEVER_ARGS>(entity: string, retrieverService: (retrieverServiceArgs: RETRIEVER_ARGS) => Promise<RETRIEVED_VALUE>, reduxSelector: (state: any) => STORED_VALUE | undefined, reduxSetterAction: (value: RETRIEVED_VALUE, retrieverServiceArgs: RETRIEVER_ARGS) => {
|
|
11
11
|
payload: STORED_VALUE;
|
|
12
12
|
type: string;
|
|
13
|
-
}, selectedValue2RetrievedValue: (value: STORED_VALUE, args: RETRIEVER_ARGS) => RETRIEVED_VALUE, selectedValuePredicate2Retrieve?: ((value: STORED_VALUE, args: RETRIEVER_ARGS) => boolean) | undefined, alwaysRetrieve?: boolean
|
|
13
|
+
}, selectedValue2RetrievedValue: (value: STORED_VALUE, args: RETRIEVER_ARGS) => RETRIEVED_VALUE, selectedValuePredicate2Retrieve?: ((value: STORED_VALUE, args: RETRIEVER_ARGS) => boolean) | undefined, alwaysRetrieve?: boolean) => (retrieverServiceArgs: RETRIEVER_ARGS) => Promise<RETRIEVED_VALUE>;
|
|
14
14
|
export default useReduxCachedValue;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
2. unregisterUnloadEvent: an arrow function to call in order to disable this functionality.
|
|
4
4
|
*/
|
|
5
5
|
export declare const useUnloadEventInterceptor: () => {
|
|
6
|
-
registerUnloadEvent: (title?: string
|
|
6
|
+
registerUnloadEvent: (title?: string, description?: string) => void;
|
|
7
7
|
unregisterUnloadEvent: () => void;
|
|
8
8
|
};
|
|
9
9
|
/** If you wont to enable immediately this functionality when invoking the custom hook you can use the hook useUnloadEventInterceptorAndActivate, which will enable the functionality and will disable it when unmounting the component. */
|
|
10
|
-
export declare const useUnloadEventInterceptorAndActivate: (title?: string
|
|
11
|
-
registerUnloadEvent: (title?: string
|
|
10
|
+
export declare const useUnloadEventInterceptorAndActivate: (title?: string, description?: string) => {
|
|
11
|
+
registerUnloadEvent: (title?: string, description?: string) => void;
|
|
12
12
|
unregisterUnloadEvent: () => void;
|
|
13
13
|
};
|
|
14
14
|
/** In order to show a custom pop-up when the user trigger an exit action you have to use the custom hook useUnloadEventOnExit which will return an arrow function to invoke instead of the exit action passing to it the exitAction itself. */
|
package/model/AppError.d.ts
CHANGED
package/model/Page.d.ts
CHANGED
package/model/PageRequest.d.ts
CHANGED
package/model/PageResource.d.ts
CHANGED
package/model/User.d.ts
CHANGED
package/model/UserNotify.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type UserNotify = {
|
|
3
3
|
/** The identifier used to recognize the user notify: it cannot be possible to have the same error id at the same time */
|
|
4
4
|
id: string;
|
|
5
5
|
/** The title to show in the popup or toast */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagopa/selfcare-common-frontend",
|
|
3
3
|
"description": "Shared React components for the pagopa selfcare project",
|
|
4
|
-
"version": "1.34.
|
|
4
|
+
"version": "1.34.13",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|
|
@@ -9,20 +9,21 @@
|
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@emotion/react": "^11.
|
|
13
|
-
"@emotion/styled": "^11.
|
|
14
|
-
"@mui/icons-material": "^5.
|
|
15
|
-
"@mui/lab": "^5.0.0-alpha.
|
|
16
|
-
"@mui/material": "^5.
|
|
17
|
-
"@mui/system": "^5.
|
|
18
|
-
"@pagopa/mui-italia": "^
|
|
12
|
+
"@emotion/react": "^11.11.1",
|
|
13
|
+
"@emotion/styled": "^11.11.0",
|
|
14
|
+
"@mui/icons-material": "^5.14.1",
|
|
15
|
+
"@mui/lab": "^5.0.0-alpha.137",
|
|
16
|
+
"@mui/material": "^5.14.1",
|
|
17
|
+
"@mui/system": "^5.14.1",
|
|
18
|
+
"@pagopa/mui-italia": "^1.1.0",
|
|
19
19
|
"@pagopa/ts-commons": "^10.2.1",
|
|
20
20
|
"@reduxjs/toolkit": "^1.6.2",
|
|
21
21
|
"@types/lodash": "^4.14.172",
|
|
22
22
|
"@types/mixpanel-browser": "^2.38.0",
|
|
23
23
|
"@types/node": "^12.20.19",
|
|
24
|
-
"@types/react": "^
|
|
25
|
-
"@types/react-dom": "^
|
|
24
|
+
"@types/react": "^18.2.0",
|
|
25
|
+
"@types/react-dom": "^18.2.0",
|
|
26
|
+
"@types/react-redux": "^7.1.33",
|
|
26
27
|
"@types/react-router-dom": "^5.1.8",
|
|
27
28
|
"@types/redux-logger": "^3.0.9",
|
|
28
29
|
"@types/validator": "13.7.0",
|
|
@@ -30,15 +31,15 @@
|
|
|
30
31
|
"core-js": "^3.20.2",
|
|
31
32
|
"env-var": "^7.1.1",
|
|
32
33
|
"fp-ts": "^2.11.5",
|
|
33
|
-
"i18next": "^
|
|
34
|
+
"i18next": "^23.7.11",
|
|
34
35
|
"io-ts": "^2.2.16",
|
|
35
36
|
"lodash": "^4.17.21",
|
|
36
37
|
"mixpanel-browser": "^2.43.0",
|
|
37
38
|
"nth-check": "2.0.1",
|
|
38
|
-
"react": "^
|
|
39
|
+
"react": "^18.2.0",
|
|
39
40
|
"react-app-polyfill": "^3.0.0",
|
|
40
|
-
"react-dom": "^
|
|
41
|
-
"react-i18next": "^
|
|
41
|
+
"react-dom": "^18.2.0",
|
|
42
|
+
"react-i18next": "^13.5.0",
|
|
42
43
|
"react-md-spinner": "^1.0.0",
|
|
43
44
|
"react-redux": "^7.2.6",
|
|
44
45
|
"react-router-dom": "^5.2.0",
|
|
@@ -86,9 +87,9 @@
|
|
|
86
87
|
},
|
|
87
88
|
"devDependencies": {
|
|
88
89
|
"@pagopa/openapi-codegen-ts": "^10.0.6",
|
|
89
|
-
"@testing-library/jest-dom": "^
|
|
90
|
-
"@testing-library/react": "^
|
|
91
|
-
"@testing-library/user-event": "^
|
|
90
|
+
"@testing-library/jest-dom": "^6.1.5",
|
|
91
|
+
"@testing-library/react": "^14.1.2",
|
|
92
|
+
"@testing-library/user-event": "^14.5.1",
|
|
92
93
|
"@types/jest": "^26.0.24",
|
|
93
94
|
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
94
95
|
"@typescript-eslint/parser": "^5.0.0",
|
|
@@ -9,4 +9,4 @@ export declare const trackAppError: (error: AppError) => void;
|
|
|
9
9
|
* @property properties: the additional payload sent with the event
|
|
10
10
|
* @property callback: an action taken when the track has completed (If the action taken immediately after the track is an exit action from the application, it's better to use this callback to perform the exit, in order to give to mixPanel the time to send the event)
|
|
11
11
|
*/
|
|
12
|
-
export declare const trackEvent: (event_name: string, properties?: any, callback?: (
|
|
12
|
+
export declare const trackEvent: (event_name: string, properties?: any, callback?: () => void) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const buildAssistanceURI: (assistanceEmail?: string
|
|
1
|
+
export declare const buildAssistanceURI: (assistanceEmail?: string) => string;
|
package/utils/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const LOADING_TASK_LOGIN_CHECK = "LOGIN_CHECK";
|
|
2
2
|
export declare const LOADING_TASK_RETRIEVE_CACHED_VALUES = "RETRIEVE_CACHED_VALUES";
|
|
3
|
-
export
|
|
3
|
+
export type UserRole = 'ADMIN' | 'LIMITED';
|
|
4
4
|
export declare const emailRegexp: RegExp;
|
|
5
5
|
/** The short and long labels used for the roles of selfcare's projects */
|
|
6
6
|
export declare const roleLabels: {
|
package/utils/storage-utils.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type StorageValue = string | number | object;
|
|
2
|
+
type StorageValueType = 'string' | 'number' | 'object';
|
|
3
3
|
/** It will delete a key from the session storage. If local is true, it will use the local session storage instead. */
|
|
4
4
|
export declare function storageDelete(key: string, local?: boolean): void;
|
|
5
5
|
/** It will store a key/value pair in the session storage. If local is true, it will use the local session storage instead. */
|
|
6
6
|
export declare function storageWrite(key: string, value: StorageValue, type: StorageValueType, local?: boolean): void;
|
|
7
7
|
/** It will read a key from the session storage. If local is true, it will use the local session storage instead. */
|
|
8
8
|
export declare function storageRead(key: string, type: StorageValueType, local?: boolean): any;
|
|
9
|
-
export
|
|
9
|
+
export type StorageOps<T> = {
|
|
10
10
|
delete: () => void;
|
|
11
11
|
read: () => T;
|
|
12
12
|
write: (value: T) => void;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* It covers the possible cases and return: TRUE, when the three letters of name in taxCode doesn't match
|
|
4
4
|
* with the name entered by the user, otherwise FALSE when they match.
|
|
5
5
|
* */
|
|
6
|
-
export declare const verifyNameMatchWithTaxCode: (name: string, fiscalCode?: string
|
|
6
|
+
export declare const verifyNameMatchWithTaxCode: (name: string, fiscalCode?: string) => string | false | undefined;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* It covers the possible cases and return: TRUE, when the three letters of surname in taxCode doesn't match
|
|
4
4
|
* with the surname entered by the user, otherwise FALSE when they match.
|
|
5
5
|
* */
|
|
6
|
-
export declare const verifySurnameMatchWithTaxCode: (surname: string, fiscalCode?: string
|
|
6
|
+
export declare const verifySurnameMatchWithTaxCode: (surname: string, fiscalCode?: string) => string | false | undefined;
|