@crystaldesign/diva-seller 25.6.1 → 25.7.0-beta.10
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
|
@@ -6842,7 +6842,11 @@ function CheckOut(_ref) {
|
|
|
6842
6842
|
}), !!renderService && permissionAnyHqRenderBox && (catalogData === null || catalogData === void 0 ? void 0 : catalogData[0].has3D) && /*#__PURE__*/jsx(HqRenderBox, {
|
|
6843
6843
|
basket: basket,
|
|
6844
6844
|
config: renderService
|
|
6845
|
-
}),
|
|
6845
|
+
}), (catalogData === null || catalogData === void 0 ? void 0 : catalogData.find(function (c) {
|
|
6846
|
+
return !c.disable3DExport;
|
|
6847
|
+
})) && (catalogData === null || catalogData === void 0 ? void 0 : catalogData.find(function (c) {
|
|
6848
|
+
return c.has3D;
|
|
6849
|
+
})) && organization.settings.enable3DExport && /*#__PURE__*/jsxs("div", {
|
|
6846
6850
|
style: {
|
|
6847
6851
|
marginLeft: '50px',
|
|
6848
6852
|
width: '700px'
|
|
@@ -7580,7 +7584,7 @@ function Basket(_ref) {
|
|
|
7580
7584
|
var onClickSave = /*#__PURE__*/function () {
|
|
7581
7585
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(pdf, doSendEmail, export3D) {
|
|
7582
7586
|
var _configurationData$Ch, _configurationData$re;
|
|
7583
|
-
var getPdf, response, _configurationData$Ch2, _ref3, pdfUrl, newRenderJob, _configurationData$Ch3, _configurationData$Ch4, _currentBasket$Client, _opener;
|
|
7587
|
+
var getPdf, response, _configurationData$Ch2, _ref3, pdfUrl, idx, o, d3dp, newRenderJob, _configurationData$Ch3, _configurationData$Ch4, _currentBasket$Client, _opener;
|
|
7584
7588
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7585
7589
|
while (1) switch (_context.prev = _context.next) {
|
|
7586
7590
|
case 0:
|
|
@@ -7602,44 +7606,74 @@ function Basket(_ref) {
|
|
|
7602
7606
|
break;
|
|
7603
7607
|
}
|
|
7604
7608
|
errorOnSaving(response);
|
|
7605
|
-
_context.next =
|
|
7609
|
+
_context.next = 41;
|
|
7606
7610
|
break;
|
|
7607
7611
|
case 12:
|
|
7608
7612
|
_ref3 = response, pdfUrl = _ref3.pdfUrl;
|
|
7609
7613
|
if (!export3D) {
|
|
7610
|
-
_context.next =
|
|
7614
|
+
_context.next = 36;
|
|
7611
7615
|
break;
|
|
7612
7616
|
}
|
|
7613
7617
|
_context.prev = 14;
|
|
7618
|
+
if (!currentBasket.SetPlannerInfos) {
|
|
7619
|
+
_context.next = 17;
|
|
7620
|
+
break;
|
|
7621
|
+
}
|
|
7622
|
+
throw new DOMException("renderjob with multiple sets are not yet supported");
|
|
7623
|
+
case 17:
|
|
7624
|
+
idx = 0;
|
|
7625
|
+
case 18:
|
|
7626
|
+
if (!(idx < currentBasket.OrderSets.length)) {
|
|
7627
|
+
_context.next = 30;
|
|
7628
|
+
break;
|
|
7629
|
+
}
|
|
7630
|
+
o = currentBasket.OrderSets[idx];
|
|
7631
|
+
if (o.HQRenderScript) {
|
|
7632
|
+
_context.next = 22;
|
|
7633
|
+
break;
|
|
7634
|
+
}
|
|
7635
|
+
return _context.abrupt("continue", 27);
|
|
7636
|
+
case 22:
|
|
7637
|
+
// hqr exists === 3d catalog
|
|
7638
|
+
d3dp = JSON.parse(atob(currentBasket.Diva3DProject));
|
|
7639
|
+
d3dp = _objectSpread$s(_objectSpread$s({}, d3dp), {}, {
|
|
7640
|
+
SCE: _objectSpread$s(_objectSpread$s({}, d3dp.SCE), {}, {
|
|
7641
|
+
ROO: [_objectSpread$s(_objectSpread$s({}, d3dp.SCE.ROO), {}, {
|
|
7642
|
+
SET: [_objectSpread$s({}, d3dp.SCE.ROO[0].SET[idx])]
|
|
7643
|
+
})]
|
|
7644
|
+
})
|
|
7645
|
+
});
|
|
7614
7646
|
newRenderJob = {
|
|
7615
7647
|
divaNr: currentBasket.DivaNr,
|
|
7616
7648
|
organization: organization._id,
|
|
7617
7649
|
organizationName: organization.displayName,
|
|
7618
7650
|
job: '3DEXPORT',
|
|
7619
|
-
diva3DProject:
|
|
7620
|
-
hQRenderScript:
|
|
7651
|
+
diva3DProject: JSON.stringify(d3dp),
|
|
7652
|
+
hQRenderScript: o.HQRenderScript,
|
|
7621
7653
|
divaNrVariantId: currentBasket.DocumentVersion,
|
|
7622
7654
|
separateMaterials: organization.settings.renderjobSeparateMaterials,
|
|
7623
|
-
catalogName:
|
|
7624
|
-
catalogCodex:
|
|
7625
|
-
return orderSet.CatalogCodex;
|
|
7626
|
-
})))
|
|
7655
|
+
catalogName: o.CatalogName,
|
|
7656
|
+
catalogCodex: [o.CatalogCodex]
|
|
7627
7657
|
};
|
|
7628
|
-
_context.next =
|
|
7658
|
+
_context.next = 27;
|
|
7629
7659
|
return apiSaveRenderJobs({
|
|
7630
7660
|
serviceUrl: apiConfig.mediaService,
|
|
7631
7661
|
jobs: [newRenderJob],
|
|
7632
7662
|
jwt: jwt
|
|
7633
7663
|
});
|
|
7634
|
-
case
|
|
7635
|
-
|
|
7664
|
+
case 27:
|
|
7665
|
+
idx++;
|
|
7666
|
+
_context.next = 18;
|
|
7636
7667
|
break;
|
|
7637
|
-
case
|
|
7638
|
-
_context.
|
|
7668
|
+
case 30:
|
|
7669
|
+
_context.next = 36;
|
|
7670
|
+
break;
|
|
7671
|
+
case 32:
|
|
7672
|
+
_context.prev = 32;
|
|
7639
7673
|
_context.t0 = _context["catch"](14);
|
|
7640
7674
|
errorOnSaving(BASKET_SAVE_ERROR.ERROR_BASKET_AFTER_SAVE, t('modals.3dexport_unsuccessful'));
|
|
7641
7675
|
return _context.abrupt("return");
|
|
7642
|
-
case
|
|
7676
|
+
case 36:
|
|
7643
7677
|
if (configurationData !== null && configurationData !== void 0 && (_configurationData$Ch2 = configurationData.Checkout) !== null && _configurationData$Ch2 !== void 0 && _configurationData$Ch2.showPdfQR) {
|
|
7644
7678
|
openSnackBar({
|
|
7645
7679
|
qrCode: pdfUrl,
|
|
@@ -7705,11 +7739,11 @@ function Basket(_ref) {
|
|
|
7705
7739
|
});
|
|
7706
7740
|
currentBasket.setDocumentVersion(currentBasket.getDocumentVersion() + 1);
|
|
7707
7741
|
setActBasketPage('Step1');
|
|
7708
|
-
case
|
|
7742
|
+
case 41:
|
|
7709
7743
|
case "end":
|
|
7710
7744
|
return _context.stop();
|
|
7711
7745
|
}
|
|
7712
|
-
}, _callee, null, [[14,
|
|
7746
|
+
}, _callee, null, [[14, 32]]);
|
|
7713
7747
|
}));
|
|
7714
7748
|
return function onClickSave(_x, _x2, _x3) {
|
|
7715
7749
|
return _ref2.apply(this, arguments);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Basket/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,OAAO,EAA0C,UAAU,EAAa,MAAM,0BAA0B,CAAC;AAQzG,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Basket/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAOhD,OAAO,EAA0C,UAAU,EAAa,MAAM,0BAA0B,CAAC;AAQzG,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEzD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,KAAK,qBA4apE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.7.0-beta.10",
|
|
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.7.0-beta.10",
|
|
33
|
+
"@crystaldesign/products-component": "25.7.0-beta.10",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "25.7.0-beta.10",
|
|
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": "b0e54a7fe49d42ab1f889ea2c9b67d03f770f0e5"
|
|
47
47
|
}
|