@shopgate/pwa-common-commerce 7.32.1 → 7.32.2-alpha.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.
Files changed (39) hide show
  1. package/cart/helpers/fulfillmentSlots.js +0 -1
  2. package/cart/reducers/data.js +0 -2
  3. package/cart/selectors/index.js +0 -2
  4. package/cart/streams/index.js +0 -1
  5. package/cart/subscriptions/index.js +0 -1
  6. package/category/subscriptions/index.js +0 -1
  7. package/favorites/mock.js +0 -1
  8. package/favorites/reducers/products.js +0 -1
  9. package/favorites/selectors/index.js +0 -1
  10. package/favorites/streams/index.js +0 -1
  11. package/favorites/subscriptions/index.js +0 -1
  12. package/filter/actions/helpers/buildFilterParams.js +0 -1
  13. package/filter/actions/helpers/buildRequestFilters.js +0 -1
  14. package/market/helpers/showReturnPolicy.js +0 -1
  15. package/market/helpers/showTaxDisclaimer.js +0 -1
  16. package/package.json +10 -7
  17. package/product/actions/fetchProducts.js +0 -1
  18. package/product/actions/processProductFlags.js +0 -1
  19. package/product/reducers/descriptionsByProductId.js +0 -2
  20. package/product/reducers/helpers/handleProductCollection.js +0 -1
  21. package/product/reducers/imagesByProductId.js +0 -2
  22. package/product/reducers/mediaByProductId.js +0 -2
  23. package/product/reducers/productsById.js +0 -2
  24. package/product/reducers/propertiesByProductId.js +0 -1
  25. package/product/reducers/resultsByHash.js +0 -2
  26. package/product/reducers/variantsByProductId.js +0 -1
  27. package/product/selectors/options.js +0 -1
  28. package/product/selectors/price.js +0 -1
  29. package/product/selectors/product.js +0 -1
  30. package/product/selectors/variants.js +0 -2
  31. package/product/streams/index.js +0 -1
  32. package/product/subscriptions/index.js +0 -1
  33. package/reviews/reducers/reviewsById.js +0 -1
  34. package/reviews/selectors/mock.js +0 -1
  35. package/reviews/streams/index.js +0 -1
  36. package/scanner/helpers/index.js +0 -3
  37. package/scanner/streams/index.js +0 -1
  38. package/search/helpers/removeHighlightingPlaceholders.js +0 -1
  39. package/search/subscriptions/index.js +0 -1
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import { getFulfillmentSchedulingEnabled } from '@shopgate/engage/settings/selectors/merchantSettings';
3
2
  import { getPreferredLocation } from '@shopgate/engage/locations';
4
3
  import { forceOpenFulfillmentSlotDialog } from '@shopgate/engage/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotProvider';
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
- import "core-js/modules/es.regexp.flags.js";
3
1
  import remove from 'lodash/remove';
4
2
  import { ADD_PRODUCTS_TO_CART, DELETE_PRODUCTS_FROM_CART, UPDATE_PRODUCTS_IN_CART, ERROR_ADD_PRODUCTS_TO_CART, REQUEST_CART, RECEIVE_CART, ERROR_CART, SET_CART_PENDING_PRODUCT_COUNT, SET_FULFILLMENT_SLOT } from "../constants";
5
3
  const defaultState = {
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.array.reduce.js";
2
- import "core-js/modules/es.regexp.flags.js";
3
1
  import { createSelector } from 'reselect';
4
2
  import { getBaseProductMetadata } from "../../product/selectors/product";
5
3
  import { getSelectedVariantMetadata } from "../../product/selectors/variants";
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import queryString from 'query-string';
3
2
  import { ACTION_PUSH, ACTION_REPLACE } from '@virtuous/conductor';
4
3
  import { main$ } from '@shopgate/pwa-common/streams/main';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import 'rxjs/add/operator/debounceTime';
3
2
  import 'rxjs/add/observable/of';
4
3
  import { Observable } from 'rxjs/Observable';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import { ACTION_PUSH, ACTION_REPLACE } from '@virtuous/conductor';
3
2
  import { buildFetchCategoryProductsParams, getProductsResult } from '@shopgate/engage/product';
4
3
  import { getCurrentRoute } from '@shopgate/pwa-common/selectors/router';
package/favorites/mock.js CHANGED
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.reduce.js";
2
1
  import { mockedProducts as mockedList } from "../product/mock";
3
2
  export const mockedDefaultListId = 'DEFAULT';
4
3
  const mockedStateWithoutProducts = {
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import { produce } from 'immer';
3
2
  import isNumber from 'lodash/isNumber';
4
3
  import isString from 'lodash/isString';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.reduce.js";
2
1
  import { createSelector } from 'reselect';
3
2
  import uniq from 'lodash/uniq';
4
3
  import appConfig from '@shopgate/pwa-common/helpers/config';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import { routeWillEnter$ } from '@shopgate/pwa-common/streams/router';
3
2
  import { main$ } from '@shopgate/pwa-common/streams/main';
4
3
  import { appDidStart$ } from '@shopgate/pwa-common/streams/app';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import pipelineDependencies from '@shopgate/pwa-core/classes/PipelineDependencies';
3
2
  import appConfig from '@shopgate/pwa-common/helpers/config';
4
3
  import showModal from '@shopgate/pwa-common/actions/modal/showModal';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import { getCurrentRoute } from '@shopgate/pwa-common/selectors/router';
3
2
  import { CATEGORY_ALL_PATTERN, CATEGORY_ALL_FILTER_PATTERN } from '@shopgate/pwa-common-commerce/category/constants';
4
3
  import { hex2bin } from '@shopgate/pwa-common/helpers/data';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.reduce.js";
2
1
  import { FILTER_TYPE_SINGLE_SELECT, FILTER_TYPE_MULTISELECT, FILTER_TYPE_RANGE } from '@shopgate/pwa-common-commerce/filter/constants';
3
2
 
4
3
  /**
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import appConfig from '@shopgate/pwa-common/helpers/config';
3
2
  import { MARKET_GERMANY } from "../constants";
4
3
  export default [MARKET_GERMANY].includes(appConfig.marketId);
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import appConfig from '@shopgate/pwa-common/helpers/config';
3
2
  import { MARKET_AUSTRIA, MARKET_GERMANY } from "../constants";
4
3
  export default [MARKET_AUSTRIA, MARKET_GERMANY].includes(appConfig.marketId);
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-common-commerce",
3
- "version": "7.32.1",
3
+ "version": "7.32.2-alpha.10",
4
4
  "description": "Commerce library for the Shopgate Connect PWA.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
7
- "repository": "shopgate/pwa",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/shopgate/pwa.git",
10
+ "directory": "libraries/commerce"
11
+ },
8
12
  "bugs": "https://github.com/shopgate/pwa/issues",
9
13
  "homepage": "https://github.com/shopgate/pwa/tree/master/libraries/commerce",
10
14
  "keywords": [
@@ -16,14 +20,13 @@
16
20
  ],
17
21
  "dependencies": {
18
22
  "immer": "^11.1.11",
19
- "react-cookie": "^4.0.3",
20
23
  "reselect": "^4.1.8"
21
24
  },
22
25
  "devDependencies": {
23
- "@shopgate/pwa-common": "7.32.1",
24
- "@shopgate/pwa-core": "7.32.1",
25
- "@types/lodash": "^4.17.24",
26
- "lodash": "^4.17.23",
26
+ "@shopgate/pwa-common": "7.32.2-alpha.10",
27
+ "@shopgate/pwa-core": "7.32.2-alpha.10",
28
+ "@types/lodash": "^4.17.25",
29
+ "lodash": "^4.18.1",
27
30
  "react": "^17.0.2",
28
31
  "react-dom": "^17.0.2"
29
32
  }
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import difference from 'lodash/difference';
3
2
  import PipelineRequest from '@shopgate/pwa-core/classes/PipelineRequest';
4
3
  import { generateResultHash, shouldFetchData } from '@shopgate/pwa-common/helpers/redux';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.regexp.flags.js";
2
1
  import fetchProductVariants from "./fetchProductVariants";
3
2
  import fetchProductOptions from "./fetchProductOptions";
4
3
  import fetchProduct from "./fetchProduct";
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
- import "core-js/modules/es.array.reduce.js";
3
1
  import { PRODUCT_LIFETIME, REQUEST_PRODUCT_DESCRIPTION, RECEIVE_PRODUCT_DESCRIPTION, ERROR_PRODUCT_DESCRIPTION, EXPIRE_PRODUCT_DATA } from "../constants";
4
2
 
5
3
  /**
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.reduce.js";
2
1
  import { PRODUCT_LIFETIME } from "../../constants";
3
2
 
4
3
  /**
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
- import "core-js/modules/es.array.reduce.js";
3
1
  import { PRODUCT_LIFETIME, REQUEST_PRODUCT_IMAGES, RECEIVE_PRODUCT_IMAGES, ERROR_PRODUCT_IMAGES, EXPIRE_PRODUCT_DATA } from "../constants";
4
2
 
5
3
  /**
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
- import "core-js/modules/es.array.reduce.js";
3
1
  import { PRODUCT_LIFETIME, REQUEST_PRODUCT_MEDIA, RECEIVE_PRODUCT_MEDIA, ERROR_PRODUCT_MEDIA, EXPIRE_PRODUCT_DATA } from "../constants";
4
2
 
5
3
  /**
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
- import "core-js/modules/es.array.reduce.js";
3
1
  import { ENOTFOUND } from '@shopgate/pwa-core/constants/Pipeline';
4
2
  import { PRODUCT_LIFETIME, REQUEST_PRODUCT, RECEIVE_PRODUCT, RECEIVE_PRODUCTS, ERROR_PRODUCT, UPDATE_METADATA, EXPIRE_PRODUCT_BY_ID, DELETE_PRODUCTS_BY_IDS, RECEIVE_PRODUCT_RELATIONS, EXPIRE_PRODUCT_DATA } from "../constants";
5
3
  import handleProductCollection from "./helpers/handleProductCollection";
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.reduce.js";
2
1
  import { PRODUCT_LIFETIME, REQUEST_PRODUCT_PROPERTIES, RECEIVE_PRODUCT_PROPERTIES, ERROR_PRODUCT_PROPERTIES, EXPIRE_PRODUCT_DATA } from "../constants";
3
2
 
4
3
  /**
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
- import "core-js/modules/es.array.reduce.js";
3
1
  import uniq from 'lodash/uniq';
4
2
  import pickBy from 'lodash/pickBy';
5
3
  import { ENOTFOUND } from '@shopgate/pwa-core';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.reduce.js";
2
1
  import { PRODUCT_LIFETIME, REQUEST_PRODUCT_VARIANTS, RECEIVE_PRODUCT_VARIANTS, ERROR_PRODUCT_VARIANTS, EXPIRE_PRODUCT_BY_ID, EXPIRE_PRODUCT_DATA } from "../constants";
3
2
 
4
3
  /**
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.regexp.flags.js";
2
1
  import { createSelector } from 'reselect';
3
2
  import { validateSelectorParams } from '@shopgate/pwa-common/helpers/data';
4
3
  import { getProduct, getProductId, getProductState, getProductCurrency } from "./product";
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.reduce.js";
2
1
  import { createSelector } from 'reselect';
3
2
  import { validateSelectorParams } from '@shopgate/pwa-common/helpers/data';
4
3
  import { getProduct, getProductUnitPrice, hasBaseProductVariants, isVariantSelected } from "./product";
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.regexp.flags.js";
2
1
  import { createSelector } from 'reselect';
3
2
  import isEqual from 'lodash/isEqual';
4
3
  import { getCurrentState } from '@shopgate/pwa-common/selectors/router';
@@ -1,5 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
- import "core-js/modules/es.regexp.flags.js";
3
1
  import { createSelector } from 'reselect';
4
2
  import { getProducts, getProductById, getProductVariants, hasBaseProductVariants, isVariantSelected, getSelectedVariant, getVariantProductId } from "./product";
5
3
 
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import 'rxjs/add/operator/switchMap';
3
2
  import 'rxjs/add/observable/of';
4
3
  import { Observable } from 'rxjs/Observable';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.regexp.flags.js";
2
1
  import { hex2bin } from '@shopgate/pwa-common/helpers/data';
3
2
  import showModal from '@shopgate/pwa-common/actions/modal/showModal';
4
3
  import { getThemeSettings, historyPop, historyPush, routeWillEnter$, routeWillLeave$ } from '@shopgate/engage/core';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.reduce.js";
2
1
  import { RECEIVE_PRODUCT_REVIEWS, RECEIVE_REVIEWS, RECEIVE_USER_REVIEW, RECEIVE_SUBMIT_REVIEW } from "../constants";
3
2
 
4
3
  /**
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.reduce.js";
2
1
  import { SHOPGATE_CATALOG_GET_PRODUCT_REVIEWS } from "../constants/Pipelines";
3
2
  export const existingHash = `{"filters":{},"pipeline":"${SHOPGATE_CATALOG_GET_PRODUCT_REVIEWS}","productId":"9209597131"}`;
4
3
  export const testReviews = [{
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import { main$ } from '@shopgate/pwa-common/streams/main';
3
2
  import { routeWillEnter$, routeWillLeave$ } from '@shopgate/pwa-common/streams/router';
4
3
  import { ITEM_PATH, RECEIVE_PRODUCT, RECEIVE_PRODUCT_CACHED } from '@shopgate/pwa-common-commerce/product/constants';
@@ -1,6 +1,3 @@
1
- import "core-js/modules/web.url.js";
2
- import "core-js/modules/web.url.to-json.js";
3
- import "core-js/modules/web.url-search-params.js";
4
1
  import { SCANNER_SCOPE_DEFAULT, SCANNER_TYPE_BARCODE } from '@shopgate/pwa-core/constants/Scanner';
5
2
  import { getCategoryRoute } from '@shopgate/pwa-common-commerce/category';
6
3
  import { getProductRoute } from '@shopgate/pwa-common-commerce/product';
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import { main$ } from '@shopgate/pwa-common/streams/main';
3
2
  import { routeDidEnter$ } from '@shopgate/pwa-common/streams/router';
4
3
  import { START_SCANNER, SCANNER_STARTED, SCANNER_CANCELLED, SCANNER_FINISHED, SCANNER_PATH, SCANNER_FORMATS_BARCODE, SCANNER_FORMATS_QR_CODE } from "../constants";
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.string.replace.js";
2
1
  /**
3
2
  * Pipeline call adds $start$ and $end$ placeholders for higlighting purposes.
4
3
  *
@@ -1,4 +1,3 @@
1
- import "core-js/modules/es.array.includes.js";
2
1
  import { LoadingProvider } from '@shopgate/pwa-common/providers';
3
2
  import { ACTION_PUSH, ACTION_REPLACE } from '@virtuous/conductor';
4
3
  import { buildFetchSearchResultsParams, getProductsResult } from '@shopgate/engage/product';