@crystaldesign/diva-seller 25.13.0-beta.3 → 25.13.0-beta.31
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/build/esm/index.js
CHANGED
|
@@ -4954,8 +4954,11 @@ function Images(_ref) {
|
|
|
4954
4954
|
var visibile = _ref.visibile;
|
|
4955
4955
|
var imgStyle = {
|
|
4956
4956
|
maxHeight: 300,
|
|
4957
|
-
maxWidth: 600
|
|
4957
|
+
maxWidth: 600,
|
|
4958
|
+
cursor: 'pointer'
|
|
4958
4959
|
};
|
|
4960
|
+
var _useDivaCore = useDivaCore(),
|
|
4961
|
+
openFullscreen = _useDivaCore.actions.openFullscreen;
|
|
4959
4962
|
var tryDecodeBase64 = function tryDecodeBase64(data) {
|
|
4960
4963
|
try {
|
|
4961
4964
|
return window.atob(data);
|
|
@@ -4963,18 +4966,34 @@ function Images(_ref) {
|
|
|
4963
4966
|
return data;
|
|
4964
4967
|
}
|
|
4965
4968
|
};
|
|
4969
|
+
var openFullscreenClick = function openFullscreenClick(image) {
|
|
4970
|
+
openFullscreen({
|
|
4971
|
+
content: /*#__PURE__*/jsx("img", {
|
|
4972
|
+
src: tryDecodeBase64(image)
|
|
4973
|
+
})
|
|
4974
|
+
});
|
|
4975
|
+
};
|
|
4966
4976
|
return /*#__PURE__*/jsxs("div", {
|
|
4967
4977
|
style: {
|
|
4968
4978
|
display: visibile ? 'block' : 'none'
|
|
4969
4979
|
},
|
|
4970
4980
|
children: [orderSet.Set2DImage && /*#__PURE__*/jsx("img", {
|
|
4981
|
+
onClick: function onClick() {
|
|
4982
|
+
return openFullscreenClick(tryDecodeBase64(orderSet.Set2DImage));
|
|
4983
|
+
},
|
|
4971
4984
|
style: imgStyle,
|
|
4972
4985
|
src: tryDecodeBase64(orderSet.Set2DImage)
|
|
4973
4986
|
}, "2D"), orderSet.SetImage && /*#__PURE__*/jsx("img", {
|
|
4987
|
+
onClick: function onClick() {
|
|
4988
|
+
return openFullscreenClick(tryDecodeBase64(orderSet.SetImage));
|
|
4989
|
+
},
|
|
4974
4990
|
style: imgStyle,
|
|
4975
4991
|
src: tryDecodeBase64(orderSet.SetImage)
|
|
4976
4992
|
}, "3D"), orderSet.SetImages && orderSet.SetImages.map(function (image) {
|
|
4977
4993
|
return /*#__PURE__*/jsx("img", {
|
|
4994
|
+
onClick: function onClick() {
|
|
4995
|
+
return openFullscreenClick(tryDecodeBase64(image.URL));
|
|
4996
|
+
},
|
|
4978
4997
|
title: image.Description,
|
|
4979
4998
|
style: imgStyle,
|
|
4980
4999
|
src: tryDecodeBase64(image.URL)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetImages.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/PriceOverView/Set/SetImages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"SetImages.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Basket/PriceOverView/Set/SetImages.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,YAAY,EAAe,MAAM,0BAA0B,CAAC;AAEjF,UAAU,KAAK;IACb,QAAQ,EAAE,YAAY,CAAC;IACvB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AACD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,KAAK,qBAoDnE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "25.13.0-beta.
|
|
3
|
+
"version": "25.13.0-beta.31",
|
|
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": "25.13.0-beta.
|
|
33
|
-
"@crystaldesign/products-component": "25.13.0-beta.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "25.13.0-beta.
|
|
32
|
+
"@crystaldesign/analytics": "25.13.0-beta.31",
|
|
33
|
+
"@crystaldesign/products-component": "25.13.0-beta.31",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "25.13.0-beta.31",
|
|
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": "
|
|
46
|
+
"gitHead": "537cce12c9781b1d533749222fefd3d74adafbf4"
|
|
47
47
|
}
|