@shopgate/pwa-common 6.18.0-beta.6 → 6.18.0-beta.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.
@@ -1,7 +1,7 @@
1
1
  function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}import pck from"../../package";import{buildThemeConfig}from"./theme";import{assignObjectDeep}from"../data";import{isObject}from"../validation";/**
2
2
  * Provides a default app config as a fallback.
3
3
  * @mixin AppConfig
4
- */var defaultAppConfig={appId:'shop_30177',browserConnector:false,colors:{},forgotPasswordUrl:null,hasFavorites:false,hasReviews:true,showWriteReview:true,language:'en-us',logo:'https://example.com/logo',marketId:'US',publicPath:'https://example.com/public',shopName:'Shopgate Connect',webCheckoutShopify:null,hasNoScanner:false,apiUrl:'https://shop_30177.dev.connect.shopgate.com/',shopCNAME:null,currency:'USD',showGmdMenuSubHeaders:false,benchmark:false,sentry:{},theme:{},cartShippingHideAnonymousLegacy:null,cartShippingTextAnonymousLegacy:null,variantSelectionMode:null,product:{variantPreselect:false},cart:{},scanner:{},tracking:{hasWebTrackingEngage:false},webTrackingEngage:{android:'',ios:''}};/**
4
+ */var defaultAppConfig={appId:'shop_30177',browserConnector:false,colors:{},forgotPasswordUrl:null,hasFavorites:false,hasReviews:true,showWriteReview:true,language:'en-us',logo:'https://example.com/logo',marketId:'US',publicPath:'https://example.com/public',shopName:'Shopgate Connect',webCheckoutShopify:null,hasNoScanner:false,apiUrl:'https://shop_30177.dev.connect.shopgate.com/',shopCNAME:null,currency:'USD',showGmdMenuSubHeaders:false,benchmark:false,sentry:{},theme:{},cartShippingHideAnonymousLegacy:null,cartShippingTextAnonymousLegacy:null,variantSelectionMode:null,product:{variantPreselect:false},cart:{},scanner:{},tracking:{hasWebTrackingEngage:false,useSkuAsProductId:false},webTrackingEngage:{android:'',ios:''}};/**
5
5
  * @type {string} package version from package.json
6
6
  */export var pckVersion=pck.version;/**
7
7
  * Provides a default components config as a fallback.
@@ -1,4 +1,4 @@
1
- import{isObject}from"../validation";/**
1
+ import noop from'lodash/noop';import{isObject}from"../validation";/**
2
2
  * @typedef {Object} MutableFunction
3
3
  * @property {Function} replace Replaces the original functionality with a custom function.
4
4
  * @property {Function} restore Restores the original function.
@@ -38,7 +38,8 @@ if(res.action===BEFORE_ACTION_NEXT){if(res.args&&res.args.length>0){res=res.args
38
38
  if(res.action===BEFORE_ACTION_SKIP_REST){arr.splice(-(arr.length-i));if(res.args&&res.args.length>0){res=res.args;}else{res=args;}}// Check if the step requested to stop any further processing including the action itself
39
39
  if(res.action===BEFORE_ACTION_STOP){// Cut off all following step functions including the mutable func
40
40
  arr.splice(-(arr.length-i));runAction=false;res=res.args;}// Replace arguments for the next step to get.
41
- return res;},args);}if(!runAction){return mutatedArgs;}// Call the actual mutable
41
+ return res;},args);}if(!runAction){// the return value here gets passed to the dispatch() so it must be a function or action obj
42
+ return noop;}// Call the actual mutable
42
43
  return current.apply(void 0,mutatedArgs);}/**
43
44
  * Replaces the original functionality with a custom function.
44
45
  * @param {Function} customFunc The function to execute instead of the original one.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-common",
3
- "version": "6.18.0-beta.6",
3
+ "version": "6.18.0-beta.7",
4
4
  "description": "Common library for the Shopgate Connect PWA.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
@@ -16,7 +16,7 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@sentry/browser": "^4.6.3",
19
- "@shopgate/pwa-benchmark": "6.18.0-beta.6",
19
+ "@shopgate/pwa-benchmark": "6.18.0-beta.7",
20
20
  "@virtuous/conductor": "~2.4.0",
21
21
  "@virtuous/react-conductor": "~2.4.0",
22
22
  "@virtuous/redux-persister": "1.1.0-beta.7",
@@ -44,7 +44,7 @@
44
44
  "url-search-params": "^0.10.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@shopgate/pwa-core": "6.18.0-beta.6",
47
+ "@shopgate/pwa-core": "6.18.0-beta.7",
48
48
  "lodash": "^4.17.4",
49
49
  "prop-types": "~15.7.2",
50
50
  "react": "~16.12.0",