ordering-ui-external 11.0.8 → 11.0.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/_bundles/{7.ordering-ui.3028671494094be54572.js → 7.ordering-ui.4d450e485a30634d1c8b.js} +1 -1
- package/_bundles/{ordering-ui.3028671494094be54572.js → ordering-ui.4d450e485a30634d1c8b.js} +2 -2
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +3 -2
- package/package.json +2 -2
- package/src/themes/five/src/components/ProductItemAccordion/index.js +2 -2
- /package/_bundles/{0.ordering-ui.3028671494094be54572.js → 0.ordering-ui.4d450e485a30634d1c8b.js} +0 -0
- /package/_bundles/{1.ordering-ui.3028671494094be54572.js → 1.ordering-ui.4d450e485a30634d1c8b.js} +0 -0
- /package/_bundles/{2.ordering-ui.3028671494094be54572.js → 2.ordering-ui.4d450e485a30634d1c8b.js} +0 -0
- /package/_bundles/{4.ordering-ui.3028671494094be54572.js → 4.ordering-ui.4d450e485a30634d1c8b.js} +0 -0
- /package/_bundles/{5.ordering-ui.3028671494094be54572.js → 5.ordering-ui.4d450e485a30634d1c8b.js} +0 -0
- /package/_bundles/{6.ordering-ui.3028671494094be54572.js → 6.ordering-ui.4d450e485a30634d1c8b.js} +0 -0
- /package/_bundles/{7.ordering-ui.3028671494094be54572.js.LICENSE.txt → 7.ordering-ui.4d450e485a30634d1c8b.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.3028671494094be54572.js → 8.ordering-ui.4d450e485a30634d1c8b.js} +0 -0
- /package/_bundles/{9.ordering-ui.3028671494094be54572.js → 9.ordering-ui.4d450e485a30634d1c8b.js} +0 -0
- /package/_bundles/{ordering-ui.3028671494094be54572.js.LICENSE.txt → ordering-ui.4d450e485a30634d1c8b.js.LICENSE.txt} +0 -0
|
@@ -243,13 +243,14 @@ var ProductItemAccordion = exports.ProductItemAccordion = function ProductItemAc
|
|
|
243
243
|
}, /*#__PURE__*/_react.default.createElement("p", null, option.name), /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, {
|
|
244
244
|
className: "suboption"
|
|
245
245
|
}, option.suboptions.map(function (suboption) {
|
|
246
|
+
var _suboption$half_price;
|
|
246
247
|
return /*#__PURE__*/_react.default.createElement("li", {
|
|
247
248
|
key: suboption.id
|
|
248
249
|
}, /*#__PURE__*/_react.default.createElement("span", null, getFormattedSubOptionName({
|
|
249
250
|
quantity: suboption.quantity,
|
|
250
251
|
name: suboption.name,
|
|
251
|
-
position: suboption.position !== 'whole' ? t(suboption.position.toUpperCase(), suboption.position) : '',
|
|
252
|
-
price: parsePrice(suboption.price)
|
|
252
|
+
position: (suboption === null || suboption === void 0 ? void 0 : suboption.position) !== 'whole' ? t(suboption.position.toUpperCase(), suboption.position) : '',
|
|
253
|
+
price: ['left', 'right'].includes(suboption.position) ? parsePrice((_suboption$half_price = suboption.half_price) !== null && _suboption$half_price !== void 0 ? _suboption$half_price : suboption.price) : parsePrice(suboption.price)
|
|
253
254
|
})));
|
|
254
255
|
})));
|
|
255
256
|
})), product.comment && /*#__PURE__*/_react.default.createElement(_styles.ProductComment, null, /*#__PURE__*/_react.default.createElement("p", null, t('SPECIAL_COMMENT', 'Special Comment')), /*#__PURE__*/_react.default.createElement("h3", null, product.comment)))), (_props$afterComponent = props.afterComponents) === null || _props$afterComponent === void 0 ? void 0 : _props$afterComponent.map(function (AfterComponent, i) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.10",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"lodash": "^4.17.19",
|
|
89
89
|
"moment": "^2.29.4",
|
|
90
90
|
"nanoid": "^4.0.0",
|
|
91
|
-
"ordering-components-external": "10.0.
|
|
91
|
+
"ordering-components-external": "10.0.11",
|
|
92
92
|
"payment": "^2.4.6",
|
|
93
93
|
"polished": "^3.6.6",
|
|
94
94
|
"react-bootstrap-icons": "^1.7.2",
|
|
@@ -326,8 +326,8 @@ export const ProductItemAccordion = (props) => {
|
|
|
326
326
|
{getFormattedSubOptionName({
|
|
327
327
|
quantity: suboption.quantity,
|
|
328
328
|
name: suboption.name,
|
|
329
|
-
position: (suboption
|
|
330
|
-
price: parsePrice(suboption.price)
|
|
329
|
+
position: (suboption?.position !== 'whole') ? t(suboption.position.toUpperCase(), suboption.position) : '',
|
|
330
|
+
price: (['left', 'right'].includes(suboption.position)) ? parsePrice(suboption.half_price ?? suboption.price) : parsePrice(suboption.price)
|
|
331
331
|
})}
|
|
332
332
|
</span>
|
|
333
333
|
</li>
|
/package/_bundles/{0.ordering-ui.3028671494094be54572.js → 0.ordering-ui.4d450e485a30634d1c8b.js}
RENAMED
|
File without changes
|
/package/_bundles/{1.ordering-ui.3028671494094be54572.js → 1.ordering-ui.4d450e485a30634d1c8b.js}
RENAMED
|
File without changes
|
/package/_bundles/{2.ordering-ui.3028671494094be54572.js → 2.ordering-ui.4d450e485a30634d1c8b.js}
RENAMED
|
File without changes
|
/package/_bundles/{4.ordering-ui.3028671494094be54572.js → 4.ordering-ui.4d450e485a30634d1c8b.js}
RENAMED
|
File without changes
|
/package/_bundles/{5.ordering-ui.3028671494094be54572.js → 5.ordering-ui.4d450e485a30634d1c8b.js}
RENAMED
|
File without changes
|
/package/_bundles/{6.ordering-ui.3028671494094be54572.js → 6.ordering-ui.4d450e485a30634d1c8b.js}
RENAMED
|
File without changes
|
|
File without changes
|
/package/_bundles/{8.ordering-ui.3028671494094be54572.js → 8.ordering-ui.4d450e485a30634d1c8b.js}
RENAMED
|
File without changes
|
/package/_bundles/{9.ordering-ui.3028671494094be54572.js → 9.ordering-ui.4d450e485a30634d1c8b.js}
RENAMED
|
File without changes
|