@licklist/design 0.72.1 → 0.72.2
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/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.js +2 -2
- package/package.json +1 -1
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +2 -3
- package/yarn.lock +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,wDAAwD,CAAA;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,8DAA8D,CAAA;AAIrG,UAAU,aAAc,SAAQ,SAAS;IACvC,qBAAqB,CAAC,EAAG,sBAAsB,EAAE,GAAG,IAAI,CAAC;CAC1D;AAED,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,YAAY,EAAE,aAAa,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,cAAc,kDAIxB,mBAAmB,4CAyCrB,CAAA"}
|
|
@@ -9,7 +9,7 @@ var ProductSummary = function(param) {
|
|
|
9
9
|
var t = useTranslation('Design').t;
|
|
10
10
|
var formatNumber = useIntl().formatNumber;
|
|
11
11
|
var priceForOneProduct = orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.price;
|
|
12
|
-
var modifiersSets = (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderModifiersSets) || (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderProductModifiers);
|
|
12
|
+
var modifiersSets = (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderModifiersSets) || (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.orderProductModifiers) || [];
|
|
13
13
|
var fullPrice = formatNumber(priceForOneProduct * (orderProduct === null || orderProduct === void 0 ? void 0 : orderProduct.quantity), {
|
|
14
14
|
style: 'currency',
|
|
15
15
|
currency: Config.Currency.GBP
|
|
@@ -38,7 +38,7 @@ var ProductSummary = function(param) {
|
|
|
38
38
|
})
|
|
39
39
|
]
|
|
40
40
|
}),
|
|
41
|
-
!!modifiersSets.length && /*#__PURE__*/ jsx(Fragment, {
|
|
41
|
+
!!(modifiersSets === null || modifiersSets === void 0 ? void 0 : modifiersSets.length) && /*#__PURE__*/ jsx(Fragment, {
|
|
42
42
|
children: modifiersSets.map(function(modifier, index) {
|
|
43
43
|
return /*#__PURE__*/ jsx(ProductWithModifier, {
|
|
44
44
|
modifier: modifier,
|
package/package.json
CHANGED
|
@@ -3,7 +3,6 @@ import { useIntl } from 'react-intl'
|
|
|
3
3
|
import * as Config from '@licklist/core/dist/Config'
|
|
4
4
|
import { OrderItem } from '@licklist/plugins/dist/types/context/Iframe/orderItems'
|
|
5
5
|
import { OrderModifierByProduct } from '@licklist/core/dist/DataMapper/Order/OrderModifiierByProduct'
|
|
6
|
-
import { calculateTotalModifiersPrice } from '../../utils'
|
|
7
6
|
import { ProductWithModifier } from '../../../CategoryProduct/components/ProductWithModifier/ProductWithModifier'
|
|
8
7
|
|
|
9
8
|
|
|
@@ -26,7 +25,7 @@ export const ProductSummary = ({
|
|
|
26
25
|
const { formatNumber } = useIntl()
|
|
27
26
|
const priceForOneProduct = orderProduct?.price
|
|
28
27
|
|
|
29
|
-
const modifiersSets = orderProduct?.orderModifiersSets || orderProduct?.orderProductModifiers
|
|
28
|
+
const modifiersSets = orderProduct?.orderModifiersSets || orderProduct?.orderProductModifiers || []
|
|
30
29
|
|
|
31
30
|
const fullPrice = formatNumber(priceForOneProduct * orderProduct?.quantity, {
|
|
32
31
|
style: 'currency',
|
|
@@ -44,7 +43,7 @@ export const ProductSummary = ({
|
|
|
44
43
|
<p className='price'>{fullPrice}</p>
|
|
45
44
|
</div>
|
|
46
45
|
|
|
47
|
-
{!!modifiersSets
|
|
46
|
+
{!!modifiersSets?.length && (
|
|
48
47
|
<>
|
|
49
48
|
{modifiersSets.map((modifier, index) => (
|
|
50
49
|
<ProductWithModifier
|
package/yarn.lock
CHANGED
|
@@ -5664,11 +5664,11 @@ __metadata:
|
|
|
5664
5664
|
linkType: hard
|
|
5665
5665
|
|
|
5666
5666
|
"@types/node@npm:*":
|
|
5667
|
-
version: 22.13.
|
|
5668
|
-
resolution: "@types/node@npm:22.13.
|
|
5667
|
+
version: 22.13.5
|
|
5668
|
+
resolution: "@types/node@npm:22.13.5"
|
|
5669
5669
|
dependencies:
|
|
5670
5670
|
undici-types: "npm:~6.20.0"
|
|
5671
|
-
checksum: 10c0/
|
|
5671
|
+
checksum: 10c0/a2e7ed7bb0690e439004779baedeb05159c5cc41ef6d81c7a6ebea5303fde4033669e1c0e41ff7453b45fd2fea8dbd55fddfcd052950c7fcae3167c970bca725
|
|
5672
5672
|
languageName: node
|
|
5673
5673
|
linkType: hard
|
|
5674
5674
|
|
|
@@ -9861,9 +9861,9 @@ __metadata:
|
|
|
9861
9861
|
linkType: hard
|
|
9862
9862
|
|
|
9863
9863
|
"electron-to-chromium@npm:^1.3.564, electron-to-chromium@npm:^1.5.73":
|
|
9864
|
-
version: 1.5.
|
|
9865
|
-
resolution: "electron-to-chromium@npm:1.5.
|
|
9866
|
-
checksum: 10c0/
|
|
9864
|
+
version: 1.5.103
|
|
9865
|
+
resolution: "electron-to-chromium@npm:1.5.103"
|
|
9866
|
+
checksum: 10c0/3b297311b9266ec3ad00eaa8566901603afedc2e19310a16ab9e7217e62f54dda83120ca5f2f75fe64a214d1ba6f6cbb52d7a1692e28de03fcba8bebf7bfc4d5
|
|
9867
9867
|
languageName: node
|
|
9868
9868
|
linkType: hard
|
|
9869
9869
|
|
|
@@ -19026,11 +19026,11 @@ __metadata:
|
|
|
19026
19026
|
linkType: hard
|
|
19027
19027
|
|
|
19028
19028
|
"rxjs@npm:^7.5.5":
|
|
19029
|
-
version: 7.8.
|
|
19030
|
-
resolution: "rxjs@npm:7.8.
|
|
19029
|
+
version: 7.8.2
|
|
19030
|
+
resolution: "rxjs@npm:7.8.2"
|
|
19031
19031
|
dependencies:
|
|
19032
19032
|
tslib: "npm:^2.1.0"
|
|
19033
|
-
checksum: 10c0/
|
|
19033
|
+
checksum: 10c0/1fcd33d2066ada98ba8f21fcbbcaee9f0b271de1d38dc7f4e256bfbc6ffcdde68c8bfb69093de7eeb46f24b1fb820620bf0223706cff26b4ab99a7ff7b2e2c45
|
|
19034
19034
|
languageName: node
|
|
19035
19035
|
linkType: hard
|
|
19036
19036
|
|