@shopgate/engage 6.18.5 → 6.18.7-beta.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/engage",
|
|
3
|
-
"version": "6.18.
|
|
3
|
+
"version": "6.18.7-beta.3",
|
|
4
4
|
"description": "Shopgate's ENGAGE library.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"connect"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@shopgate/pwa-common": "6.18.
|
|
19
|
-
"@shopgate/pwa-common-commerce": "6.18.
|
|
20
|
-
"@shopgate/pwa-core": "6.18.
|
|
21
|
-
"@shopgate/pwa-ui-ios": "6.18.
|
|
22
|
-
"@shopgate/pwa-ui-material": "6.18.
|
|
23
|
-
"@shopgate/pwa-ui-shared": "6.18.
|
|
18
|
+
"@shopgate/pwa-common": "6.18.7-beta.3",
|
|
19
|
+
"@shopgate/pwa-common-commerce": "6.18.7-beta.3",
|
|
20
|
+
"@shopgate/pwa-core": "6.18.7-beta.3",
|
|
21
|
+
"@shopgate/pwa-ui-ios": "6.18.7-beta.3",
|
|
22
|
+
"@shopgate/pwa-ui-material": "6.18.7-beta.3",
|
|
23
|
+
"@shopgate/pwa-ui-shared": "6.18.7-beta.3",
|
|
24
24
|
"@virtuous/conductor": "~2.4.0",
|
|
25
25
|
"babel-plugin-transform-es3-member-expression-literals": "^6.8.0",
|
|
26
26
|
"babel-plugin-transform-es3-property-literals": "^6.8.0",
|
|
@@ -14,5 +14,5 @@ function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimi
|
|
|
14
14
|
setPromiseResolve(function(){return resolve;});// Open sheet
|
|
15
15
|
setOpened(true);});};// Mount effect
|
|
16
16
|
useEffect(function(){// Add most late conditioner
|
|
17
|
-
conditioner.addConditioner('product-quantity',checkQuantity,100);},[]);// Update resolveValue effect
|
|
18
|
-
useEffect(function(){if(resolveValue===null){return;}if(promiseResolve){promiseResolve(resolveValue);}setResolveValue(null);},[resolveValue]);var _getQuantityRange=getQuantityRange(stock),min=_getQuantityRange.min,max=_getQuantityRange.max;var items=Array(max-min+1).fill(min).map(function(v,index){return String(v+index);});var styles=useWidgetStyles('@shopgate/engage/product/QuantityPicker');return React.createElement(SheetDrawer,{title:React.createElement(I18n.Text,{string:"product.quantity"}),isOpen:opened,onClose:handleCloseSheet,contentClassName:css(styles.sheet).toString()},React.createElement(SheetList,null,items.map(function(item){return React.createElement(SheetList.Item,{title:item,key:item,onClick:function onClick(){return handleSelectQuantity(parseInt(item,10));}});})));};QuantityPicker.defaultProps={stock:null};export default QuantityPicker;
|
|
17
|
+
conditioner.addConditioner('product-quantity',checkQuantity,100);},[conditioner]);// Update resolveValue effect
|
|
18
|
+
useEffect(function(){if(resolveValue===null){return;}if(promiseResolve){promiseResolve(resolveValue);}setResolveValue(null);},[promiseResolve,resolveValue]);var _getQuantityRange=getQuantityRange(stock),min=_getQuantityRange.min,max=_getQuantityRange.max;var items=Array(max-min+1).fill(min).map(function(v,index){return String(v+index);});var styles=useWidgetStyles('@shopgate/engage/product/QuantityPicker');return React.createElement(SheetDrawer,{title:React.createElement(I18n.Text,{string:"product.quantity"}),isOpen:opened,onClose:handleCloseSheet,contentClassName:css(styles.sheet).toString()},React.createElement(SheetList,null,items.map(function(item){return React.createElement(SheetList.Item,{title:item,key:item,onClick:function onClick(){return handleSelectQuantity(parseInt(item,10));}});})));};QuantityPicker.defaultProps={stock:null};export default QuantityPicker;
|