@shopgate/engage 7.12.7-beta.2 → 7.12.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.
|
@@ -31,7 +31,7 @@ import Context,{APIFilter,RouteFilters}from"./FilterPageProvider.context";import
|
|
|
31
31
|
*/var _useState5=useState({}),_useState6=_slicedToArray(_useState5,2),changedFilters=_useState6[0],setChangedFilters=_useState6[1];// Object that represents the current state of all filters
|
|
32
32
|
var mergedFilters=useMemo(function(){return _extends({},initialFilters,{},changedFilters);},[changedFilters,initialFilters]);/**
|
|
33
33
|
* Effect that updates the "initialFilters" state when it doesn't have content yet
|
|
34
|
-
*/useEffect(function(){if(Object.keys(
|
|
34
|
+
*/useEffect(function(){setInitialFilters(function(currentState){if(Object.keys(currentState).length>0){return currentState;}return buildInitialFilters(filtersProp,activeFiltersProp);});},[activeFiltersProp,filtersProp]);/**
|
|
35
35
|
* Whether a reset of the active filters is possible.
|
|
36
36
|
*
|
|
37
37
|
* Reset is possible whenever filters where selected by the user before, or when filters where
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/engage",
|
|
3
|
-
"version": "7.12.7
|
|
3
|
+
"version": "7.12.7",
|
|
4
4
|
"description": "Shopgate's ENGAGE library.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@shopgate/native-modules": "1.0.0-beta.18",
|
|
19
|
-
"@shopgate/pwa-common": "7.12.7
|
|
20
|
-
"@shopgate/pwa-common-commerce": "7.12.7
|
|
21
|
-
"@shopgate/pwa-core": "7.12.7
|
|
22
|
-
"@shopgate/pwa-ui-ios": "7.12.7
|
|
23
|
-
"@shopgate/pwa-ui-material": "7.12.7
|
|
24
|
-
"@shopgate/pwa-ui-shared": "7.12.7
|
|
19
|
+
"@shopgate/pwa-common": "7.12.7",
|
|
20
|
+
"@shopgate/pwa-common-commerce": "7.12.7",
|
|
21
|
+
"@shopgate/pwa-core": "7.12.7",
|
|
22
|
+
"@shopgate/pwa-ui-ios": "7.12.7",
|
|
23
|
+
"@shopgate/pwa-ui-material": "7.12.7",
|
|
24
|
+
"@shopgate/pwa-ui-shared": "7.12.7",
|
|
25
25
|
"@stripe/react-stripe-js": "^1.1.2",
|
|
26
26
|
"@stripe/stripe-js": "^1.3.1",
|
|
27
27
|
"@virtuous/conductor": "~2.5.0",
|