ordering-ui-external 14.1.49 → 14.1.51

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 (15) hide show
  1. package/_bundles/{7.ordering-ui.697d19ddfcc29dfbeb52.js → 7.ordering-ui.351da122a9e8d0c38404.js} +1 -1
  2. package/_bundles/{ordering-ui.697d19ddfcc29dfbeb52.js → ordering-ui.351da122a9e8d0c38404.js} +2 -2
  3. package/_modules/themes/five/src/components/ProductItemAccordion/index.js +4 -4
  4. package/package.json +1 -1
  5. package/src/themes/five/src/components/ProductItemAccordion/index.js +2 -2
  6. /package/_bundles/{0.ordering-ui.697d19ddfcc29dfbeb52.js → 0.ordering-ui.351da122a9e8d0c38404.js} +0 -0
  7. /package/_bundles/{1.ordering-ui.697d19ddfcc29dfbeb52.js → 1.ordering-ui.351da122a9e8d0c38404.js} +0 -0
  8. /package/_bundles/{2.ordering-ui.697d19ddfcc29dfbeb52.js → 2.ordering-ui.351da122a9e8d0c38404.js} +0 -0
  9. /package/_bundles/{4.ordering-ui.697d19ddfcc29dfbeb52.js → 4.ordering-ui.351da122a9e8d0c38404.js} +0 -0
  10. /package/_bundles/{5.ordering-ui.697d19ddfcc29dfbeb52.js → 5.ordering-ui.351da122a9e8d0c38404.js} +0 -0
  11. /package/_bundles/{6.ordering-ui.697d19ddfcc29dfbeb52.js → 6.ordering-ui.351da122a9e8d0c38404.js} +0 -0
  12. /package/_bundles/{7.ordering-ui.697d19ddfcc29dfbeb52.js.LICENSE.txt → 7.ordering-ui.351da122a9e8d0c38404.js.LICENSE.txt} +0 -0
  13. /package/_bundles/{8.ordering-ui.697d19ddfcc29dfbeb52.js → 8.ordering-ui.351da122a9e8d0c38404.js} +0 -0
  14. /package/_bundles/{9.ordering-ui.697d19ddfcc29dfbeb52.js → 9.ordering-ui.351da122a9e8d0c38404.js} +0 -0
  15. /package/_bundles/{ordering-ui.697d19ddfcc29dfbeb52.js.LICENSE.txt → ordering-ui.351da122a9e8d0c38404.js.LICENSE.txt} +0 -0
@@ -220,14 +220,14 @@ var ProductItemAccordionUI = function ProductItemAccordionUI(props) {
220
220
  className: "ingredient",
221
221
  key: ingredient.id
222
222
  }, /*#__PURE__*/_react.default.createElement("span", null, t('NO', 'No'), " ", ingredient.name));
223
- })), productInfo.options.length > 0 && /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, null, productInfo.options.sort(function (a, b) {
224
- return a.rank - b.rank;
225
- }).map(function (option) {
223
+ })), productInfo.options.length > 0 && /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, null, productInfo.options.map(function (option) {
226
224
  return /*#__PURE__*/_react.default.createElement("li", {
227
225
  key: option.id
228
226
  }, /*#__PURE__*/_react.default.createElement("p", null, option.name), /*#__PURE__*/_react.default.createElement(_styles.ProductOptionsList, {
229
227
  className: "suboption"
230
- }, option.suboptions.map(function (suboption) {
228
+ }, option.suboptions.sort(function (a, b) {
229
+ return a.rank - b.rank;
230
+ }).map(function (suboption) {
231
231
  var _suboption$half_price;
232
232
  return /*#__PURE__*/_react.default.createElement("li", {
233
233
  key: suboption.id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-external",
3
- "version": "14.1.49",
3
+ "version": "14.1.51",
4
4
  "description": "Ordering UI Components",
5
5
  "main": "./_modules/index.js",
6
6
  "exports": {
@@ -300,11 +300,11 @@ const ProductItemAccordionUI = (props) => {
300
300
  )}
301
301
  {productInfo.options.length > 0 && (
302
302
  <ProductOptionsList>
303
- {productInfo.options.sort((a, b) => a.rank - b.rank).map(option => (
303
+ {productInfo.options.map(option => (
304
304
  <li key={option.id}>
305
305
  <p>{option.name}</p>
306
306
  <ProductOptionsList className='suboption'>
307
- {option.suboptions.map(suboption => (
307
+ {option.suboptions.sort((a, b) => a.rank - b.rank).map(suboption => (
308
308
  <li key={suboption.id}>
309
309
  <span>
310
310
  {getFormattedSubOptionName({