@crystaldesign/diva-seller 25.13.0-beta.9 → 25.14.0-beta.1
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,35 @@ 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
|
-
display: visibile ? '
|
|
4978
|
+
display: visibile ? 'flex' : 'none',
|
|
4979
|
+
overflow: 'auto'
|
|
4969
4980
|
},
|
|
4970
4981
|
children: [orderSet.Set2DImage && /*#__PURE__*/jsx("img", {
|
|
4982
|
+
onClick: function onClick() {
|
|
4983
|
+
return openFullscreenClick(tryDecodeBase64(orderSet.Set2DImage));
|
|
4984
|
+
},
|
|
4971
4985
|
style: imgStyle,
|
|
4972
4986
|
src: tryDecodeBase64(orderSet.Set2DImage)
|
|
4973
4987
|
}, "2D"), orderSet.SetImage && /*#__PURE__*/jsx("img", {
|
|
4988
|
+
onClick: function onClick() {
|
|
4989
|
+
return openFullscreenClick(tryDecodeBase64(orderSet.SetImage));
|
|
4990
|
+
},
|
|
4974
4991
|
style: imgStyle,
|
|
4975
4992
|
src: tryDecodeBase64(orderSet.SetImage)
|
|
4976
4993
|
}, "3D"), orderSet.SetImages && orderSet.SetImages.map(function (image) {
|
|
4977
4994
|
return /*#__PURE__*/jsx("img", {
|
|
4995
|
+
onClick: function onClick() {
|
|
4996
|
+
return openFullscreenClick(tryDecodeBase64(image.URL));
|
|
4997
|
+
},
|
|
4978
4998
|
title: image.Description,
|
|
4979
4999
|
style: imgStyle,
|
|
4980
5000
|
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.
|
|
3
|
+
"version": "25.14.0-beta.1",
|
|
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.
|
|
33
|
-
"@crystaldesign/products-component": "25.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "25.
|
|
32
|
+
"@crystaldesign/analytics": "25.14.0-beta.1",
|
|
33
|
+
"@crystaldesign/products-component": "25.14.0-beta.1",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "25.14.0-beta.1",
|
|
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": "aee149ec7fc90964b7e70e80fadde8b653605e3d"
|
|
47
47
|
}
|