@crystaldesign/diva-seller 24.15.0-beta.42 → 24.15.0-beta.43

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.
@@ -5896,11 +5896,11 @@ var productDetailsPaper = "productDetailsPaper-VsWfW";
5896
5896
  var productDetailText = "productDetailText-wkk6U";
5897
5897
  var productDetailDivider = "productDetailDivider-C1Cdh";
5898
5898
  var alertTitle = "alertTitle-Bm1NO";
5899
- var css_248z$b = ".container-3kPdM {\n padding-bottom: 10px;\n margin-top: 2px;\n}\n\n.mainStack-1xE4c {\n width: 100%;\n margin-top: 16px;\n}\n\n.productContainer-JcVn0 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding-bottom: 16px;\n width: 100%;\n}\n\n.productNameContainer-35ZZc {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n width: 100%;\n}\n\n.productNameField-hPNbW {\n margin: 8px;\n width: 70%;\n}\n\n.productImage-Vn0l- {\n width: 70%;\n display: block;\n}\n\n.productImage-Vn0l-.hidden-zZ8fS {\n display: none;\n}\n\n.productDetailsContainer-5c-V9 {\n margin: 20px;\n max-height: 100%;\n}\n\n.productDetailRow-9KtDG {\n display: flex;\n}\n\n.productDetailLabel-t7Mn7 {\n font-weight: 600;\n width: 40%;\n}\n\n.favoriteContainer-ka7lC {\n display: flex;\n align-items: center;\n margin-top: 16px;\n}\n.favoriteCheckbox-JYnH- {\n margin-left: 10px;\n}\n\n.actionButtonContainer-WfYfD {\n display: flex;\n gap: 16px;\n margin-top: 16px;\n justify-content: space-between;\n}\n\n.productDetailsPaper-VsWfW {\n width: 100%;\n max-height: 60vh;\n overflow: auto;\n}\n\n.productDetailText-wkk6U {\n white-space: pre-wrap;\n}\n\n.productDetailDivider-C1Cdh {\n margin-bottom: 16px;\n}\n\n.alertTitle-Bm1NO {\n font-weight: 600;\n}\n\n/* Responsive styles */\n@media (min-width: 900px) {\n .productDetailsPaper-VsWfW {\n width: 60%;\n }\n}\n";
5899
+ var css_248z$b = ".container-3kPdM {\n padding-bottom: 10px;\n margin-top: 2px;\n}\n\n.mainStack-1xE4c {\n width: 100%;\n margin-top: 16px;\n}\n\n.productContainer-JcVn0 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding-bottom: 16px;\n width: 100%;\n}\n\n.productNameContainer-35ZZc {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n width: 100%;\n}\n\n.productNameField-hPNbW {\n margin: 8px;\n width: 70%;\n}\n\n.productImage-Vn0l- {\n width: 70%;\n display: block;\n}\n\n.productImage-Vn0l-.hidden-zZ8fS {\n display: none;\n}\n\n.productDetailsContainer-5c-V9 {\n margin: 20px;\n max-height: 100%;\n}\n\n.productDetailRow-9KtDG {\n display: flex;\n}\n\n.productDetailLabel-t7Mn7 {\n font-weight: 600;\n width: 40%;\n}\n\n.favoriteContainer-ka7lC {\n display: flex;\n align-items: center;\n margin-top: 16px;\n}\n.favoriteCheckbox-JYnH- {\n margin-left: 10px;\n}\n\n.actionButtonContainer-WfYfD {\n display: flex;\n gap: 16px;\n margin-top: 16px;\n justify-content: right;\n}\n@media (max-width: 768px) {\n .actionButtonContainer-WfYfD {\n display: flex;\n justify-content: space-between;\n }\n}\n\n.productDetailsPaper-VsWfW {\n width: 100%;\n max-height: 100%;\n overflow: auto;\n}\n\n.productDetailText-wkk6U {\n white-space: pre-wrap;\n}\n\n.productDetailDivider-C1Cdh {\n margin-bottom: 16px;\n}\n\n.alertTitle-Bm1NO {\n font-weight: 600;\n}\n\n/* Responsive styles */\n@media (min-width: 900px) {\n .productDetailsPaper-VsWfW {\n width: 60%;\n }\n}\n";
5900
5900
  styleInject(css_248z$b);
5901
5901
 
5902
5902
  function Step3Product(_ref) {
5903
- var _currentProduct$short, _currentProduct$techn;
5903
+ var _currentProduct$short, _currentProduct$image, _currentProduct$techn;
5904
5904
  var currentProduct = _ref.currentProduct,
5905
5905
  startWithEmptyBasket = _ref.startWithEmptyBasket,
5906
5906
  handleSave = _ref.handleSave;
@@ -5912,8 +5912,8 @@ function Step3Product(_ref) {
5912
5912
  setImgIsLoaded = _useState2[1];
5913
5913
  var _useState3 = useState(false),
5914
5914
  _useState4 = _slicedToArray(_useState3, 2),
5915
- isFavorite = _useState4[0];
5916
- _useState4[1];
5915
+ isFavorite = _useState4[0],
5916
+ setIsFavorite = _useState4[1];
5917
5917
  var _useState5 = useState(false),
5918
5918
  _useState6 = _slicedToArray(_useState5, 2),
5919
5919
  editProductName = _useState6[0],
@@ -5935,6 +5935,9 @@ function Step3Product(_ref) {
5935
5935
  currentProduct.shortDescription = event.target.value;
5936
5936
  setText(event.target.value);
5937
5937
  };
5938
+ var handleFavoriteToggle = function handleFavoriteToggle() {
5939
+ setIsFavorite(!isFavorite);
5940
+ };
5938
5941
  return /*#__PURE__*/jsxs(Box, {
5939
5942
  className: container$1,
5940
5943
  children: [/*#__PURE__*/jsx(InfoAlert$1, {
@@ -5979,7 +5982,7 @@ function Step3Product(_ref) {
5979
5982
  })
5980
5983
  })]
5981
5984
  }), /*#__PURE__*/jsx("img", {
5982
- src: currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.image,
5985
+ src: (_currentProduct$image = currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.image) !== null && _currentProduct$image !== void 0 ? _currentProduct$image : currentProduct === null || currentProduct === void 0 ? void 0 : currentProduct.image2D,
5983
5986
  className: "".concat(productImage, " ").concat(!imgIsLoaded ? hidden$1 : ''),
5984
5987
  alt: "Product",
5985
5988
  onLoad: function onLoad() {
@@ -5995,10 +5998,13 @@ function Step3Product(_ref) {
5995
5998
  title: t('basket.checkout.step4.favorite'),
5996
5999
  content: /*#__PURE__*/jsxs(Fragment, {
5997
6000
  children: [/*#__PURE__*/jsx(Typography, {
6001
+ mb: 1,
5998
6002
  children: t('basket.checkout.step4.favoriteinfo')
5999
6003
  }), /*#__PURE__*/jsx(FormControlLabel$1, {
6000
6004
  control: /*#__PURE__*/jsx(Checkbox$1, {
6001
- className: favoriteCheckbox
6005
+ className: favoriteCheckbox,
6006
+ checked: isFavorite,
6007
+ onChange: handleFavoriteToggle
6002
6008
  }),
6003
6009
  label: t('basket.checkout.step4.savemsg')
6004
6010
  })]
@@ -6039,7 +6045,7 @@ function Step3Product(_ref) {
6039
6045
  sx: {
6040
6046
  fontSize: {
6041
6047
  xs: '12px',
6042
- md: '16px'
6048
+ md: '1rem'
6043
6049
  }
6044
6050
  },
6045
6051
  className: productDetailText,
@@ -6132,12 +6138,15 @@ function CheckOut(_ref) {
6132
6138
  while (1) switch (_context.prev = _context.next) {
6133
6139
  case 0:
6134
6140
  if (!(status === 'BASE_CONFIGURATION' && !currentProduct)) {
6135
- _context.next = 3;
6141
+ _context.next = 5;
6136
6142
  break;
6137
6143
  }
6138
- _context.next = 3;
6144
+ toggleLoading('loadProduct');
6145
+ _context.next = 4;
6139
6146
  return loadProduct(basket);
6140
- case 3:
6147
+ case 4:
6148
+ toggleLoading('loadProduct');
6149
+ case 5:
6141
6150
  case "end":
6142
6151
  return _context.stop();
6143
6152
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Step3Product.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/CheckOut/components/Step3Product.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAwBnD,UAAU,KAAK;IACb,cAAc,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/F;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,UAAU,EAAE,EAAE,KAAK,qBAiH/F"}
1
+ {"version":3,"file":"Step3Product.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/CheckOut/components/Step3Product.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAwBnD,UAAU,KAAK;IACb,cAAc,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/F;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,UAAU,EAAE,EAAE,KAAK,qBAoH/F"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Basket/CheckOut/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,UAAU,EAA+B,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK1C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQ1E,UAAU,KAAK;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,YAAY,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClF,WAAW,EA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E,QAAQ,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAClF,WAAW,EAAE,YAAY,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE,WAAW,EAAE,CAAC;IAClC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,iBAAiB,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,KAAK,IAAI,CAAC;IAClD,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C;AACD,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,MAAM,EACN,QAAQ,EACR,aAAa,EACb,MAAM,EACN,MAAM,EACN,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,IAAI,EACJ,iBAAiB,EACjB,eAAe,GAChB,EAAE,KAAK,qBAoJP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-seller",
3
- "version": "24.15.0-beta.42",
3
+ "version": "24.15.0-beta.43",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -29,9 +29,9 @@
29
29
  "react-dom": "^18.3.1"
30
30
  },
31
31
  "dependencies": {
32
- "@crystaldesign/analytics": "24.15.0-beta.42",
33
- "@crystaldesign/products-component": "24.15.0-beta.42",
34
- "@crystaldesign/real-time-viewer": "24.15.0-beta.42",
32
+ "@crystaldesign/analytics": "24.15.0-beta.43",
33
+ "@crystaldesign/products-component": "24.15.0-beta.43",
34
+ "@crystaldesign/real-time-viewer": "24.15.0-beta.43",
35
35
  "@emotion/react": "^11.4.1",
36
36
  "@emotion/styled": "^11.3.0",
37
37
  "@mui/icons-material": "^6.1.5",
@@ -43,5 +43,5 @@
43
43
  },
44
44
  "types": "./build/types/seller/src/index.d.ts",
45
45
  "module": "build/esm/index.js",
46
- "gitHead": "ed7ed9c457b7d34d8900c496ff608d60990d8ecd"
46
+ "gitHead": "67c3f84588d7e31a864a94c8025b8682aae40279"
47
47
  }