@pagopa/selfcare-common-frontend 1.5.3 → 1.5.7
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 +24 -0
- package/README.md +15 -7
- package/build.info +2 -2
- package/decorators/withRetrievedValue.d.ts +1 -1
- package/decorators/withRetrievedValue.js +3 -3
- package/decorators/withRetrievedValue.js.map +1 -1
- package/hooks/useReduxCachedValue.d.ts +9 -4
- package/hooks/useReduxCachedValue.js +11 -6
- package/hooks/useReduxCachedValue.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,32 @@ 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.5.7](https://github.com/pagopa/selfcare-common-frontend/compare/v1.5.6...v1.5.7)
|
|
8
|
+
|
|
9
|
+
- withRetrievedValue will provide reload function to decorated component [`#32`](https://github.com/pagopa/selfcare-common-frontend/pull/32)
|
|
10
|
+
|
|
11
|
+
#### [v1.5.6](https://github.com/pagopa/selfcare-common-frontend/compare/v1.5.5...v1.5.6)
|
|
12
|
+
|
|
13
|
+
> 15 February 2022
|
|
14
|
+
|
|
15
|
+
- added useReduxCachedValue overloaded versions [`#31`](https://github.com/pagopa/selfcare-common-frontend/pull/31)
|
|
16
|
+
|
|
17
|
+
#### [v1.5.5](https://github.com/pagopa/selfcare-common-frontend/compare/v1.5.4...v1.5.5)
|
|
18
|
+
|
|
19
|
+
> 15 February 2022
|
|
20
|
+
|
|
21
|
+
- useReduxCachedValueTranscoded transcode function will accept retrieverServiceArgs [`#30`](https://github.com/pagopa/selfcare-common-frontend/pull/30)
|
|
22
|
+
|
|
23
|
+
#### [v1.5.4](https://github.com/pagopa/selfcare-common-frontend/compare/v1.5.3...v1.5.4)
|
|
24
|
+
|
|
25
|
+
> 15 February 2022
|
|
26
|
+
|
|
27
|
+
- fixed useReduxCachedValueTranscoded parameters types [`#29`](https://github.com/pagopa/selfcare-common-frontend/pull/29)
|
|
28
|
+
|
|
7
29
|
#### [v1.5.3](https://github.com/pagopa/selfcare-common-frontend/compare/v1.5.2...v1.5.3)
|
|
8
30
|
|
|
31
|
+
> 15 February 2022
|
|
32
|
+
|
|
9
33
|
- added useReduxCachedValueTranscoded [`#28`](https://github.com/pagopa/selfcare-common-frontend/pull/28)
|
|
10
34
|
|
|
11
35
|
#### [v1.5.2](https://github.com/pagopa/selfcare-common-frontend/compare/v1.5.1...v1.5.2)
|
package/README.md
CHANGED
|
@@ -178,8 +178,10 @@ Accessing to the components decorated with it without a session will brought to
|
|
|
178
178
|
It's possible to modify the login path changing the value in [CONFIG.URL_FE.LOGIN](#Configuration) inside the index.tsx file
|
|
179
179
|
|
|
180
180
|
## withRetrievedValue
|
|
181
|
-
Decorator to retrieve a value and serve it once ready to the decorated component.
|
|
182
|
-
|
|
181
|
+
Decorator to retrieve a value and serve it once ready to the decorated component, moreover it will provide the decorated component a function to re-execute the retrieve method.
|
|
182
|
+
|
|
183
|
+
Using it together with [useReduxCachedValue](#usereduxcachedvalue) will allow to build a component which will use centralized and cached data (the reload function in this case will call again the function that will retrieve cached data).
|
|
184
|
+
|
|
183
185
|
See withRetrievedValue.test.tsx file for an example.
|
|
184
186
|
|
|
185
187
|
Given the following type parameters:
|
|
@@ -204,9 +206,15 @@ Cached values are stored using useRef, so they are local to the component using
|
|
|
204
206
|
The sorting actually is applied using string representation
|
|
205
207
|
|
|
206
208
|
## useReduxCachedValue
|
|
207
|
-
See [
|
|
209
|
+
See [useReduxCachedValueParametricRetrieverTranscoded](#usereduxcachedvaluetranscoded) when there is not RETRIEVER_ARGS and RETRIEVED_VALUE === RETRIEVER_ARGS
|
|
210
|
+
|
|
211
|
+
## useReduxCachedValueParametricRetriever
|
|
212
|
+
See [useReduxCachedValueParametricRetrieverTranscoded](#usereduxcachedvaluetranscoded) when RETRIEVED_VALUE === RETRIEVER_ARGS
|
|
208
213
|
|
|
209
214
|
## useReduxCachedValueTranscoded
|
|
215
|
+
See [useReduxCachedValueParametricRetrieverTranscoded](#usereduxcachedvaluetranscoded) when there is not RETRIEVER_ARGS
|
|
216
|
+
|
|
217
|
+
## useReduxCachedValueParametricRetrieverTranscoded
|
|
210
218
|
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.
|
|
211
219
|
See useReduxCachedValue.test.tsx file for an example.
|
|
212
220
|
|
|
@@ -219,11 +227,11 @@ The arguments to provide to the custom hook are the following:
|
|
|
219
227
|
| Prop | Type | Mandatory | Description |
|
|
220
228
|
|------|------|-----------|-------------|
|
|
221
229
|
| entity | string | Y | The name of the entity, used just for logging purpose |
|
|
222
|
-
| retrieverService | (retrieverServiceArgs
|
|
230
|
+
| retrieverService | (retrieverServiceArgs: RETRIEVER_ARGS) => Promise`<RETRIEVED_VALUE>` | Y | The service that will retrieve the value |
|
|
223
231
|
| reduxSelector | (state: any) => STORED_VALUE | undefined | Y | The selector to read the value from redux |
|
|
224
|
-
| reduxSetterAction | (value: RETRIEVED_VALUE, retrieverServiceArgs
|
|
225
|
-
| selectedValue2RetrievedValue | (value: STORED_VALUE) => RETRIEVED_VALUE | Y | A function called to transform STORED_VALUE into RETRIEVED_VALUE and called when hitting the cache |
|
|
226
|
-
| selectedValuePredicate2Retrieve | (value: STORED_VALUE,
|
|
232
|
+
| reduxSetterAction | (value: RETRIEVED_VALUE, retrieverServiceArgs: RETRIEVER_ARGS) => PayloadAction`<STORED_VALUE>` | Y | The action to store the value |
|
|
233
|
+
| selectedValue2RetrievedValue | (value: STORED_VALUE, args: RETRIEVER_ARGS) => RETRIEVED_VALUE | Y | A function called to transform STORED_VALUE into RETRIEVED_VALUE and called when hitting the cache |
|
|
234
|
+
| selectedValuePredicate2Retrieve | (value: STORED_VALUE, retrieverServiceArgs: RETRIEVER_ARGS) => boolean | N | An optional predicate evaluated when reduxSelector returned some value in order to compare it against the retrieverServiceArgs and evaluate if retrieverService should be called again |
|
|
227
235
|
| alwaysRetrieve | boolean | N | If true, it will always retrieve and store the new value |
|
|
228
236
|
|
|
229
237
|
# Features
|
package/build.info
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
tags/v1.5.
|
|
1
|
+
20220217.1 - selfcare-common-frontend.deploy(20683)
|
|
2
|
+
tags/v1.5.7^0 3ef3ca1f646f441368263714173344943d4075cd
|
|
@@ -11,4 +11,4 @@ WrappedComponent: React.ComponentType<PROPS>,
|
|
|
11
11
|
/** What to do in case of error. As default, it will use the feature ErrorBoundary */
|
|
12
12
|
onError?: (appError: AppError) => void,
|
|
13
13
|
/** A component to show while waiting for the value */
|
|
14
|
-
onLoading?: ReactNode): import("react").ComponentType<Omit<PROPS, PROP_NAME>>;
|
|
14
|
+
onLoading?: ReactNode): import("react").ComponentType<Omit<PROPS, PROP_NAME | "reload">>;
|
|
@@ -19,10 +19,10 @@ onLoading) {
|
|
|
19
19
|
const displayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
20
20
|
const ComponentWithParties = (props) => {
|
|
21
21
|
const [value, setValue] = (0, react_1.useState)();
|
|
22
|
-
const
|
|
22
|
+
const retrieverService = getRetrieverService();
|
|
23
23
|
const addError = (0, useErrorDispatcher_1.default)();
|
|
24
24
|
const doRetrieve = () => {
|
|
25
|
-
|
|
25
|
+
retrieverService()
|
|
26
26
|
.then((v) => setValue(v))
|
|
27
27
|
.catch((reason) => (onError !== null && onError !== void 0 ? onError : addError)({
|
|
28
28
|
id: `RETRIEVE_VALUE_${propEntityName}`,
|
|
@@ -38,7 +38,7 @@ onLoading) {
|
|
|
38
38
|
doRetrieve();
|
|
39
39
|
}
|
|
40
40
|
}, []);
|
|
41
|
-
return value !== undefined ? ((0, jsx_runtime_1.jsx)(WrappedComponent, Object.assign({}, props, { [propEntityName]: value }), void 0)) : (onLoading !== null && onLoading !== void 0 ? onLoading : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0));
|
|
41
|
+
return value !== undefined ? ((0, jsx_runtime_1.jsx)(WrappedComponent, Object.assign({}, props, { [propEntityName]: value }, { reload: doRetrieve }), void 0)) : (onLoading !== null && onLoading !== void 0 ? onLoading : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}, void 0));
|
|
42
42
|
};
|
|
43
43
|
// eslint-disable-next-line functional/immutable-data
|
|
44
44
|
ComponentWithParties.displayName = `withRetrieve${propEntityName}(${displayName})`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withRetrievedValue.js","sourceRoot":"","sources":["../../src/lib/decorators/withRetrievedValue.tsx"],"names":[],"mappings":";;;;AAAA,iCAAuD;AACvD,kGAA6D;AAG7D,uFAAuF;AACvF,SAAwB,kBAAkB;AAKxC,mEAAmE;AACnE,cAAyB;AACzB,2HAA2H;AAC3H,mBAAqD;AACrD,8BAA8B;AAC9B,gBAA4C;AAC5C,qFAAqF;AACrF,OAAsC;AACtC,sDAAsD;AACtD,SAAqB;IAErB,MAAM,WAAW,GAAG,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;IAEzF,MAAM,oBAAoB,GAAG,CAAC,KAAY,EAAE,EAAE;QAC5C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,GAAe,CAAC;QAClD,MAAM,
|
|
1
|
+
{"version":3,"file":"withRetrievedValue.js","sourceRoot":"","sources":["../../src/lib/decorators/withRetrievedValue.tsx"],"names":[],"mappings":";;;;AAAA,iCAAuD;AACvD,kGAA6D;AAG7D,uFAAuF;AACvF,SAAwB,kBAAkB;AAKxC,mEAAmE;AACnE,cAAyB;AACzB,2HAA2H;AAC3H,mBAAqD;AACrD,8BAA8B;AAC9B,gBAA4C;AAC5C,qFAAqF;AACrF,OAAsC;AACtC,sDAAsD;AACtD,SAAqB;IAErB,MAAM,WAAW,GAAG,gBAAgB,CAAC,WAAW,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oBAA8E,CAAC;AACxF,CAAC;AA5DD,qCA4DC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
/** @see {useReduxCachedValue} when RETRIEVED_VALUE === STORED_VALUE */
|
|
3
|
-
declare const useReduxCachedValue: <RETRIEVED_VALUE,
|
|
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 | undefined) => () => Promise<RETRIEVED_VALUE>;
|
|
4
|
+
/** @see {useReduxCachedValueParametricRetrieverTranscoded} when there is not RETRIEVER_ARGS */
|
|
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
|
+
payload: STORED_VALUE;
|
|
7
|
+
type: string;
|
|
8
|
+
}, selectedValue2RetrievedValue: (value: STORED_VALUE) => RETRIEVED_VALUE, selectedValuePredicate2Retrieve?: ((value: STORED_VALUE) => boolean) | undefined, alwaysRetrieve?: boolean | undefined) => () => Promise<RETRIEVED_VALUE>;
|
|
4
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 */
|
|
5
|
-
export declare const
|
|
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) => {
|
|
6
11
|
payload: STORED_VALUE;
|
|
7
12
|
type: string;
|
|
8
|
-
}, selectedValue2RetrievedValue: (value: STORED_VALUE) => RETRIEVED_VALUE, selectedValuePredicate2Retrieve?: ((value: STORED_VALUE, args
|
|
13
|
+
}, selectedValue2RetrievedValue: (value: STORED_VALUE, args: RETRIEVER_ARGS) => RETRIEVED_VALUE, selectedValuePredicate2Retrieve?: ((value: STORED_VALUE, args: RETRIEVER_ARGS) => boolean) | undefined, alwaysRetrieve?: boolean | undefined) => (retrieverServiceArgs: RETRIEVER_ARGS) => Promise<RETRIEVED_VALUE>;
|
|
9
14
|
export default useReduxCachedValue;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useReduxCachedValueTranscoded = void 0;
|
|
3
|
+
exports.useReduxCachedValueParametricRetrieverTranscoded = exports.useReduxCachedValueTranscoded = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const react_redux_1 = require("react-redux");
|
|
6
6
|
const constants_1 = require("../utils/constants");
|
|
7
7
|
const useLoading_1 = (0, tslib_1.__importDefault)(require("./useLoading"));
|
|
8
|
-
/** @see {useReduxCachedValue} when RETRIEVED_VALUE === STORED_VALUE */
|
|
9
|
-
const useReduxCachedValue = (entity, retrieverService, reduxSelector, reduxSetterAction, selectedValuePredicate2Retrieve, alwaysRetrieve) => (
|
|
8
|
+
/** @see {useReduxCachedValue} when there is not RETRIEVER_ARGS and RETRIEVED_VALUE === STORED_VALUE */
|
|
9
|
+
const useReduxCachedValue = (entity, retrieverService, reduxSelector, reduxSetterAction, selectedValuePredicate2Retrieve, alwaysRetrieve) => useReduxCachedValueParametricRetriever(entity, retrieverService, reduxSelector, reduxSetterAction, selectedValuePredicate2Retrieve, alwaysRetrieve);
|
|
10
|
+
/** @see {useReduxCachedValueParametricRetrieverTranscoded} when RETRIEVED_VALUE === STORED_VALUE */
|
|
11
|
+
const useReduxCachedValueParametricRetriever = (entity, retrieverService, reduxSelector, reduxSetterAction, selectedValuePredicate2Retrieve, alwaysRetrieve) => (0, exports.useReduxCachedValueParametricRetrieverTranscoded)(entity, retrieverService, reduxSelector, reduxSetterAction, (value) => value, selectedValuePredicate2Retrieve, alwaysRetrieve);
|
|
12
|
+
/** @see {useReduxCachedValueParametricRetrieverTranscoded} when there is not RETRIEVER_ARGS */
|
|
13
|
+
const useReduxCachedValueTranscoded = (entity, retrieverService, reduxSelector, reduxSetterAction, selectedValue2RetrievedValue, selectedValuePredicate2Retrieve, alwaysRetrieve) => (0, exports.useReduxCachedValueParametricRetrieverTranscoded)(entity, retrieverService, reduxSelector, reduxSetterAction, selectedValue2RetrievedValue, selectedValuePredicate2Retrieve, alwaysRetrieve);
|
|
14
|
+
exports.useReduxCachedValueTranscoded = useReduxCachedValueTranscoded;
|
|
10
15
|
/** 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 */
|
|
11
|
-
const
|
|
16
|
+
const useReduxCachedValueParametricRetrieverTranscoded = (
|
|
12
17
|
/** The name of the entity, used just for logging purpose */
|
|
13
18
|
entity,
|
|
14
19
|
/** The service that will retrieve the value */
|
|
@@ -41,10 +46,10 @@ alwaysRetrieve) => {
|
|
|
41
46
|
.finally(() => setLoading(false));
|
|
42
47
|
}
|
|
43
48
|
else {
|
|
44
|
-
return new Promise((resolve) => resolve(selectedValue2RetrievedValue(entities)));
|
|
49
|
+
return new Promise((resolve) => resolve(selectedValue2RetrievedValue(entities, retrieverServiceArgs)));
|
|
45
50
|
}
|
|
46
51
|
};
|
|
47
52
|
};
|
|
48
|
-
exports.
|
|
53
|
+
exports.useReduxCachedValueParametricRetrieverTranscoded = useReduxCachedValueParametricRetrieverTranscoded;
|
|
49
54
|
exports.default = useReduxCachedValue;
|
|
50
55
|
//# sourceMappingURL=useReduxCachedValue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReduxCachedValue.js","sourceRoot":"","sources":["../../src/lib/hooks/useReduxCachedValue.tsx"],"names":[],"mappings":";;;;AACA,6CAAuD;AACvD,kDAAyE;AACzE,2EAAsC;AAEtC,
|
|
1
|
+
{"version":3,"file":"useReduxCachedValue.js","sourceRoot":"","sources":["../../src/lib/hooks/useReduxCachedValue.tsx"],"names":[],"mappings":";;;;AACA,6CAAuD;AACvD,kDAAyE;AACzE,2EAAsC;AAEtC,uGAAuG;AACvG,MAAM,mBAAmB,GAAG,CAC1B,MAAc,EACd,gBAAgD,EAChD,aAA0D,EAC1D,iBAAiE,EACjE,+BAAqE,EACrE,cAAwB,EACU,EAAE,CACpC,sCAAsC,CACpC,MAAM,EACN,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,+BAA+B,EAC/B,cAAc,CACmB,CAAC;AAEtC,oGAAoG;AACpG,MAAM,sCAAsC,GAAG,CAC7C,MAAc,EACd,gBAAoF,EACpF,aAA0D,EAC1D,iBAGuB,EACvB,+BAA2F,EAC3F,cAAwB,EAC8C,EAAE,CACxE,IAAA,wDAAgD,EAC9C,MAAM,EACN,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAChB,+BAA+B,EAC/B,cAAc,CACf,CAAC;AAEJ,+FAA+F;AACxF,MAAM,6BAA6B,GAAG,CAC3C,MAAc,EACd,gBAAgD,EAChD,aAAuD,EACvD,iBAA0E,EAC1E,4BAAsE,EACtE,+BAAkE,EAClE,cAAwB,EACU,EAAE,CACpC,IAAA,wDAAgD,EAC9C,MAAM,EACN,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,4BAA4B,EAC5B,+BAA+B,EAC/B,cAAc,CACmB,CAAC;AAjBzB,QAAA,6BAA6B,iCAiBJ;AAEtC,sJAAsJ;AAC/I,MAAM,gDAAgD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e,mBAAmB,CAAC"}
|
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.5.
|
|
4
|
+
"version": "1.5.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "https://github.com/pagopa/selfcare-common-frontend",
|
|
7
7
|
"author": "https://www.pagopa.gov.it",
|