@pagopa/selfcare-common-frontend 1.11.0 → 1.11.3
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 +21 -0
- package/build.info +2 -2
- package/components/BackComponent.d.ts +1 -1
- package/components/NavigationBar.d.ts +1 -1
- package/index.css +0 -4
- package/package.json +5 -4
- package/utils/api-utils.d.ts +1 -1
- package/utils/api-utils.js +1 -1
- package/utils/api-utils.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,29 @@ 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.11.3](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.2...v1.11.3)
|
|
8
|
+
|
|
9
|
+
- fixed buildFetchApi [`#81`](https://github.com/pagopa/selfcare-common-frontend/pull/81)
|
|
10
|
+
|
|
11
|
+
#### [v1.11.2](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.1...v1.11.2)
|
|
12
|
+
|
|
13
|
+
> 8 June 2022
|
|
14
|
+
|
|
15
|
+
- SELC-976_modified them mandatory nature of the goBack field [`#80`](https://github.com/pagopa/selfcare-common-frontend/pull/80)
|
|
16
|
+
- updated @mui versions [`#79`](https://github.com/pagopa/selfcare-common-frontend/pull/79)
|
|
17
|
+
- SELC-976_modified them mandatory nature of the goBack field (#80) [`#976`](https://pagopa.atlassian.net/browse/976)
|
|
18
|
+
|
|
19
|
+
#### [v1.11.1](https://github.com/pagopa/selfcare-common-frontend/compare/v1.11.0...v1.11.1)
|
|
20
|
+
|
|
21
|
+
> 7 June 2022
|
|
22
|
+
|
|
23
|
+
- Bump ejs from 3.1.6 to 3.1.8 [`#77`](https://github.com/pagopa/selfcare-common-frontend/pull/77)
|
|
24
|
+
- removed typography lineHeight not more necessary after mui-italia upgrade [`#78`](https://github.com/pagopa/selfcare-common-frontend/pull/78)
|
|
25
|
+
|
|
7
26
|
#### [v1.11.0](https://github.com/pagopa/selfcare-common-frontend/compare/v1.10.11...v1.11.0)
|
|
8
27
|
|
|
28
|
+
> 7 June 2022
|
|
29
|
+
|
|
9
30
|
- Selc 976 refactor footer header popup to adhere new UI using new mui-italia [`#74`](https://github.com/pagopa/selfcare-common-frontend/pull/74)
|
|
10
31
|
- Bump eventsource from 1.1.0 to 1.1.1 [`#76`](https://github.com/pagopa/selfcare-common-frontend/pull/76)
|
|
11
32
|
- update test jwt [`#75`](https://github.com/pagopa/selfcare-common-frontend/pull/75)
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
20220608.2 - selfcare-common-frontend.deploy(34335)
|
|
2
|
+
tags/v1.11.3^0 791025bcd4f3cff332a876eedb85d3d6316d0c73
|
package/index.css
CHANGED
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.11.
|
|
4
|
+
"version": "1.11.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@emotion/react": "^11.4.1",
|
|
13
13
|
"@emotion/styled": "^11.3.0",
|
|
14
|
-
"@mui/icons-material": "^5.
|
|
15
|
-
"@mui/lab": "^5.0.0-alpha.
|
|
16
|
-
"@mui/material": "^5.
|
|
14
|
+
"@mui/icons-material": "^5.8.2",
|
|
15
|
+
"@mui/lab": "^5.0.0-alpha.80",
|
|
16
|
+
"@mui/material": "^5.8.2",
|
|
17
|
+
"@mui/system": "^5.8.1",
|
|
17
18
|
"@pagopa/mui-italia": "0.6.24",
|
|
18
19
|
"@pagopa/ts-commons": "^10.2.1",
|
|
19
20
|
"@reduxjs/toolkit": "^1.6.2",
|
package/utils/api-utils.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const onRedirectToLogin: (store: EnhancedStore) => {
|
|
|
7
7
|
type: string;
|
|
8
8
|
};
|
|
9
9
|
/** Return the implementation of fetch configured with a timeout */
|
|
10
|
-
export declare const buildFetchApi: (timeoutMs?: number) => (input:
|
|
10
|
+
export declare const buildFetchApi: (timeoutMs?: number) => (input: RequestInfo | URL, init?: RequestInit | undefined) => Promise<Response>;
|
|
11
11
|
/** Extract the response of a @pagopa/openapi-codegen-ts generated client rest invocation having status code successHttpStatus.
|
|
12
12
|
If notValidTokenHttpStatus is not null and the returned status is equal to notValidTokenHttpStatus, it will call the onRedirectToLogin function and will schedule the redirect towards logout path.
|
|
13
13
|
If notAuthorizedTokenHttpStatus is not null and the returned status is equal to notAuthorizedTokenHttpStatus, it will throw an Error with message "Operation not allowed".
|
package/utils/api-utils.js
CHANGED
|
@@ -23,7 +23,7 @@ const buildFetchApi = (timeoutMs = 300000) => {
|
|
|
23
23
|
const abortableFetch = (0, fetch_1.AbortableFetch)(ts_commons_1.agent.getHttpFetch(process.env));
|
|
24
24
|
const fetchWithTimeout = (0, fetch_1.toFetch)((0, fetch_1.setFetchTimeout)(timeoutMs, abortableFetch));
|
|
25
25
|
// tslint:disable-next-line: no-any
|
|
26
|
-
return
|
|
26
|
+
return fetchWithTimeout;
|
|
27
27
|
};
|
|
28
28
|
exports.buildFetchApi = buildFetchApi;
|
|
29
29
|
/** Extract the response of a @pagopa/openapi-codegen-ts generated client rest invocation having status code successHttpStatus.
|
package/utils/api-utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-utils.js","sourceRoot":"","sources":["../../src/lib/utils/api-utils.ts"],"names":[],"mappings":";;;AACA,6CAAoD;AAEpD,mDAA2C;AAC3C,wDAAwF;AAGxF,uCAAuC;AACvC,iEAAg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