@shopgate/pwa-common-commerce 7.31.6 → 7.32.0-beta.10
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/cart/helpers/fulfillmentSlots.js +1 -1
- package/favorites/actions/addFavorites.js +1 -1
- package/favorites/actions/toggleFavorites.js +1 -1
- package/favorites/subscriptions/index.js +1 -1
- package/package.json +4 -4
- package/product/index.js +0 -1
- package/product/selectors/product.js +1 -1
- package/product/collections/ProductImageFormats.js +0 -63
- package/product/collections/index.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "core-js/modules/es.array.includes.js";
|
|
2
|
-
import { getFulfillmentSchedulingEnabled } from '@shopgate/engage/
|
|
2
|
+
import { getFulfillmentSchedulingEnabled } from '@shopgate/engage/settings/selectors/merchantSettings';
|
|
3
3
|
import { getPreferredLocation } from '@shopgate/engage/locations';
|
|
4
4
|
import { forceOpenFulfillmentSlotDialog } from '@shopgate/engage/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotProvider';
|
|
5
5
|
import { ROPIS, BOPIS } from '@shopgate/engage/locations/constants';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mutable } from '@shopgate/pwa-common/helpers/redux';
|
|
2
2
|
import PipelineRequest from '@shopgate/pwa-core/classes/PipelineRequest';
|
|
3
|
-
import { getWishlistItemNotesEnabled, getWishlistItemQuantityEnabled } from '@shopgate/engage/
|
|
3
|
+
import { getWishlistItemNotesEnabled, getWishlistItemQuantityEnabled } from '@shopgate/engage/settings/selectors/shopSettings';
|
|
4
4
|
import { SHOPGATE_USER_ADD_FAVORITES } from "../constants/Pipelines";
|
|
5
5
|
import { successAddFavorites, errorAddFavorites } from "../action-creators";
|
|
6
6
|
import { getHasMultipleFavoritesListsSupport, getFavoritesDefaultList } from "../selectors";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mutable } from '@shopgate/pwa-common/helpers/redux';
|
|
2
|
-
import { getWishlistItemQuantityEnabled, getLoadWishlistOnAppStartEnabled } from '@shopgate/engage/
|
|
2
|
+
import { getWishlistItemQuantityEnabled, getLoadWishlistOnAppStartEnabled } from '@shopgate/engage/settings/selectors/shopSettings';
|
|
3
3
|
import { getFavoritesDefaultList, getFavoritesLists, makeIsProductOnSpecificFavoriteList } from "../selectors";
|
|
4
4
|
import { addProductToFavorites, removeProductFromFavorites, requestFlushFavoritesBuffer, openFavoritesListChooser, updateProductInFavorites } from "../action-creators";
|
|
5
5
|
import fetchFavoritesListsWithItems from "./fetchFavoritesListsWithItems";
|
|
@@ -6,7 +6,7 @@ import { appDidStart$ } from '@shopgate/pwa-common/streams';
|
|
|
6
6
|
import groupBy from 'lodash/groupBy';
|
|
7
7
|
import ToastProvider from '@shopgate/pwa-common/providers/toast';
|
|
8
8
|
import { makeGetRoutePattern } from '@shopgate/engage/core/selectors';
|
|
9
|
-
import { getLoadWishlistOnAppStartEnabled, getWishlistItemQuantityEnabled } from '@shopgate/engage/
|
|
9
|
+
import { getLoadWishlistOnAppStartEnabled, getWishlistItemQuantityEnabled } from '@shopgate/engage/settings/selectors/shopSettings';
|
|
10
10
|
import { LoadingProvider } from '@shopgate/pwa-common/providers';
|
|
11
11
|
import { favoritesWillEnter$, shouldFetchFreshFavorites$, addProductToFavoritesDebounced$, addProductToFavorites$, removeProductFromFavoritesDebounced$, errorFavoritesLimit$, refreshFavorites$, didReceiveFlushFavoritesBuffer$, updateProductInFavoritesDebounced$, favoritesDidAddItem$, favoritesSyncIdle$ } from "../streams";
|
|
12
12
|
import { SHOPGATE_USER_ADD_FAVORITES, SHOPGATE_USER_DELETE_FAVORITES } from "../constants/Pipelines";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-common-commerce",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.32.0-beta.10",
|
|
4
4
|
"description": "Commerce library for the Shopgate Connect PWA.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"connect"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"immer": "^11.1.
|
|
18
|
+
"immer": "^11.1.11",
|
|
19
19
|
"react-cookie": "^4.0.3",
|
|
20
20
|
"reselect": "^4.1.8"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@shopgate/pwa-common": "7.
|
|
24
|
-
"@shopgate/pwa-core": "7.
|
|
23
|
+
"@shopgate/pwa-common": "7.32.0-beta.10",
|
|
24
|
+
"@shopgate/pwa-core": "7.32.0-beta.10",
|
|
25
25
|
"@types/lodash": "^4.17.24",
|
|
26
26
|
"lodash": "^4.17.23",
|
|
27
27
|
"react": "^17.0.2",
|
package/product/index.js
CHANGED
|
@@ -15,7 +15,6 @@ export { default as fetchProductShipping } from "./actions/fetchProductShipping"
|
|
|
15
15
|
export { default as fetchProductVariants } from "./actions/fetchProductVariants";
|
|
16
16
|
|
|
17
17
|
// COLLECTIONS
|
|
18
|
-
export { default as productImageFormats } from "./collections/ProductImageFormats";
|
|
19
18
|
|
|
20
19
|
// CONSTANTS
|
|
21
20
|
export * from "./constants/index";
|
|
@@ -7,7 +7,7 @@ import { generateResultHash } from '@shopgate/pwa-common/helpers/redux';
|
|
|
7
7
|
import { getSortOrder } from '@shopgate/pwa-common/selectors/history';
|
|
8
8
|
import { SORT_SCOPE_CATEGORY, SORT_SCOPE_SEARCH } from '@shopgate/engage/filter/constants';
|
|
9
9
|
import { getPreferredLocation } from '@shopgate/engage/locations/selectors';
|
|
10
|
-
import { getIsLocationBasedShopping } from '@shopgate/engage/
|
|
10
|
+
import { getIsLocationBasedShopping } from '@shopgate/engage/settings/selectors/merchantSettings';
|
|
11
11
|
import { getActiveFilters } from "../../filter/selectors";
|
|
12
12
|
import { filterProperties } from "../helpers";
|
|
13
13
|
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import "core-js/modules/es.array.reduce.js";
|
|
2
|
-
/**
|
|
3
|
-
* Class to maintain the image formats
|
|
4
|
-
* @deprecated not used anymore. Kept for backwards compatibility.
|
|
5
|
-
*/
|
|
6
|
-
let ProductImageFormats = /*#__PURE__*/function () {
|
|
7
|
-
/**
|
|
8
|
-
* Constructor.
|
|
9
|
-
*/
|
|
10
|
-
function ProductImageFormats() {
|
|
11
|
-
this.formats = [];
|
|
12
|
-
this.map = new Map();
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Returns all formats.
|
|
17
|
-
* @returns {Array}
|
|
18
|
-
*/
|
|
19
|
-
var _proto = ProductImageFormats.prototype;
|
|
20
|
-
_proto.getAllUniqueFormats = function getAllUniqueFormats() {
|
|
21
|
-
const hashes = [];
|
|
22
|
-
return Array.from(this.map.values()).reduce((prev, val) => [].concat(prev, val), []).filter(val => {
|
|
23
|
-
const hash = JSON.stringify(val);
|
|
24
|
-
if (hashes.indexOf(hash) === -1) {
|
|
25
|
-
hashes.push(hash);
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
return false;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @param {string} key key of format to get
|
|
34
|
-
* @returns {Object} format
|
|
35
|
-
*/;
|
|
36
|
-
_proto.get = function get(key) {
|
|
37
|
-
return this.map.get(key);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @param {string} key key of format
|
|
42
|
-
* @param {Object} value value of format
|
|
43
|
-
* @returns {Object}
|
|
44
|
-
*/;
|
|
45
|
-
_proto.set = function set(key, value) {
|
|
46
|
-
return this.map.set(key, value);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Removes a format from the list of persisted formats.
|
|
51
|
-
* @param {string} key The key of the format to remove.
|
|
52
|
-
* @returns {ProductImageFormats}
|
|
53
|
-
*/;
|
|
54
|
-
_proto.remove = function remove(key) {
|
|
55
|
-
this.map.remove(key);
|
|
56
|
-
return this;
|
|
57
|
-
};
|
|
58
|
-
return ProductImageFormats;
|
|
59
|
-
}();
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated
|
|
62
|
-
*/
|
|
63
|
-
export default new ProductImageFormats();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as productImageFormats } from "./ProductImageFormats";
|