@shopgate/pwa-common-commerce 7.30.3 → 7.31.0-alpha.1

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.
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import { getFulfillmentSchedulingEnabled } from '@shopgate/engage/core/selectors';
2
3
  import { getPreferredLocation } from '@shopgate/engage/locations';
3
4
  import { forceOpenFulfillmentSlotDialog } from '@shopgate/engage/locations/components/FulfillmentSlotSwitcher/FulfillmentSlotProvider';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import "core-js/modules/es.regexp.flags.js";
2
3
  import remove from 'lodash/remove';
3
4
  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";
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import queryString from 'query-string';
2
3
  import { ACTION_PUSH, ACTION_REPLACE } from '@virtuous/conductor';
3
4
  import { main$ } from '@shopgate/pwa-common/streams/main';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import 'rxjs/add/operator/debounceTime';
2
3
  import 'rxjs/add/observable/of';
3
4
  import { Observable } from 'rxjs/Observable';
@@ -1,5 +1,5 @@
1
1
  import { bin2hex } from '@shopgate/pwa-common/helpers/data';
2
- import { i18n } from '@shopgate/engage/core';
2
+ import { i18n } from '@shopgate/engage/core/helpers';
3
3
  import { CATEGORY_PATH } from "../constants";
4
4
 
5
5
  /**
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import { ACTION_PUSH, ACTION_REPLACE } from '@virtuous/conductor';
2
3
  import { buildFetchCategoryProductsParams, getProductsResult } from '@shopgate/engage/product';
3
4
  import { getCurrentRoute } from '@shopgate/pwa-common/selectors/router';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import { produce } from 'immer';
2
3
  import isNumber from 'lodash/isNumber';
3
4
  import isString from 'lodash/isString';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import { routeWillEnter$ } from '@shopgate/pwa-common/streams/router';
2
3
  import { main$ } from '@shopgate/pwa-common/streams/main';
3
4
  import { appDidStart$ } from '@shopgate/pwa-common/streams/app';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import pipelineDependencies from '@shopgate/pwa-core/classes/PipelineDependencies';
2
3
  import appConfig from '@shopgate/pwa-common/helpers/config';
3
4
  import showModal from '@shopgate/pwa-common/actions/modal/showModal';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import { getCurrentRoute } from '@shopgate/pwa-common/selectors/router';
2
3
  import { CATEGORY_ALL_PATTERN, CATEGORY_ALL_FILTER_PATTERN } from '@shopgate/pwa-common-commerce/category/constants';
3
4
  import { hex2bin } from '@shopgate/pwa-common/helpers/data';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import appConfig from '@shopgate/pwa-common/helpers/config';
2
3
  import { MARKET_GERMANY } from "../constants";
3
4
  export default [MARKET_GERMANY].includes(appConfig.marketId);
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import appConfig from '@shopgate/pwa-common/helpers/config';
2
3
  import { MARKET_AUSTRIA, MARKET_GERMANY } from "../constants";
3
4
  export default [MARKET_AUSTRIA, MARKET_GERMANY].includes(appConfig.marketId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-common-commerce",
3
- "version": "7.30.3",
3
+ "version": "7.31.0-alpha.1",
4
4
  "description": "Commerce library for the Shopgate Connect PWA.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
@@ -20,8 +20,9 @@
20
20
  "reselect": "^4.1.8"
21
21
  },
22
22
  "devDependencies": {
23
- "@shopgate/pwa-common": "7.30.3",
24
- "@shopgate/pwa-core": "7.30.3",
23
+ "@shopgate/pwa-common": "7.31.0-alpha.1",
24
+ "@shopgate/pwa-core": "7.31.0-alpha.1",
25
+ "@types/lodash": "^4.17.24",
25
26
  "lodash": "^4.17.23",
26
27
  "react": "^17.0.2",
27
28
  "react-dom": "^17.0.2"
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import difference from 'lodash/difference';
2
3
  import PipelineRequest from '@shopgate/pwa-core/classes/PipelineRequest';
3
4
  import { generateResultHash, shouldFetchData } from '@shopgate/pwa-common/helpers/redux';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import "core-js/modules/es.array.reduce.js";
2
3
  import { PRODUCT_LIFETIME, REQUEST_PRODUCT_DESCRIPTION, RECEIVE_PRODUCT_DESCRIPTION, ERROR_PRODUCT_DESCRIPTION, EXPIRE_PRODUCT_DATA } from "../constants";
3
4
 
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import "core-js/modules/es.array.reduce.js";
2
3
  import { PRODUCT_LIFETIME, REQUEST_PRODUCT_IMAGES, RECEIVE_PRODUCT_IMAGES, ERROR_PRODUCT_IMAGES, EXPIRE_PRODUCT_DATA } from "../constants";
3
4
 
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import "core-js/modules/es.array.reduce.js";
2
3
  import { PRODUCT_LIFETIME, REQUEST_PRODUCT_MEDIA, RECEIVE_PRODUCT_MEDIA, ERROR_PRODUCT_MEDIA, EXPIRE_PRODUCT_DATA } from "../constants";
3
4
 
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import "core-js/modules/es.array.reduce.js";
2
3
  import { ENOTFOUND } from '@shopgate/pwa-core/constants/Pipeline';
3
4
  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";
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import "core-js/modules/es.array.reduce.js";
2
3
  import uniq from 'lodash/uniq';
3
4
  import pickBy from 'lodash/pickBy';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import "core-js/modules/es.regexp.flags.js";
2
3
  import { createSelector } from 'reselect';
3
4
  import { getProducts, getProductById, getProductVariants, hasBaseProductVariants, isVariantSelected, getSelectedVariant, getVariantProductId } from "./product";
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import 'rxjs/add/operator/switchMap';
2
3
  import 'rxjs/add/observable/of';
3
4
  import { Observable } from 'rxjs/Observable';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import { main$ } from '@shopgate/pwa-common/streams/main';
2
3
  import { routeWillEnter$, routeWillLeave$ } from '@shopgate/pwa-common/streams/router';
3
4
  import { ITEM_PATH, RECEIVE_PRODUCT, RECEIVE_PRODUCT_CACHED } from '@shopgate/pwa-common-commerce/product/constants';
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import * as actionTypes from "../constants";
2
3
  import * as subjects from "./index";
3
4
  const subjectActionsTypes = {
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import { main$ } from '@shopgate/pwa-common/streams/main';
2
3
  import { routeDidEnter$ } from '@shopgate/pwa-common/streams/router';
3
4
  import { START_SCANNER, SCANNER_STARTED, SCANNER_CANCELLED, SCANNER_FINISHED, SCANNER_PATH, SCANNER_FORMATS_BARCODE, SCANNER_FORMATS_QR_CODE } from "../constants";
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.array.includes.js";
1
2
  import { LoadingProvider } from '@shopgate/pwa-common/providers';
2
3
  import { ACTION_PUSH, ACTION_REPLACE } from '@virtuous/conductor';
3
4
  import { buildFetchSearchResultsParams, getProductsResult } from '@shopgate/engage/product';