@crystaldesign/diva-seller 25.5.0-beta.3 → 25.5.0-beta.4
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
|
@@ -7735,6 +7735,21 @@ function Basket(_ref) {
|
|
|
7735
7735
|
};
|
|
7736
7736
|
}();
|
|
7737
7737
|
var errorOnSaving = function errorOnSaving(type, errorText) {
|
|
7738
|
+
var getErrorText = function getErrorText(type) {
|
|
7739
|
+
var errorMsg = t('modals.postsave_unsuccessful');
|
|
7740
|
+
switch (type) {
|
|
7741
|
+
case 'ERROR_NO_BASKET_SAVED':
|
|
7742
|
+
errorMsg = t('modals.saving_unsuccessful');
|
|
7743
|
+
break;
|
|
7744
|
+
case 'ERROR_NO_BASKET_SAVED_ENTITY_EXISTS':
|
|
7745
|
+
errorMsg = t('modals.saving_error_entity_exists');
|
|
7746
|
+
break;
|
|
7747
|
+
default:
|
|
7748
|
+
errorMsg = t('modals.postsave_unsuccessful');
|
|
7749
|
+
break;
|
|
7750
|
+
}
|
|
7751
|
+
return errorMsg.replace('%1', currentBasket.DivaNr + '-' + currentBasket.getDocumentVersion()) + (errorText ? ' ' + errorText : '');
|
|
7752
|
+
};
|
|
7738
7753
|
LOG$4.errorTransaction('ON_SAVE_BASKET', 'SELLER_0003', 'Error Saving Basket', {
|
|
7739
7754
|
divaNr: currentBasket.DivaNr,
|
|
7740
7755
|
status: currentBasket.Status,
|
|
@@ -7745,7 +7760,7 @@ function Basket(_ref) {
|
|
|
7745
7760
|
title: t('modals.error_saving'),
|
|
7746
7761
|
reject: false,
|
|
7747
7762
|
accept: true,
|
|
7748
|
-
text:
|
|
7763
|
+
text: getErrorText(type) + '<br><br>' + DivaUtils$1.formatDate(new Date(), true, undefined, true) + (DivaUtils$1.getCurrentTraceId() ? ' --- ' + t('modal.errorcode') + ': ' + DivaUtils$1.getCurrentTraceId() : '')
|
|
7749
7764
|
});
|
|
7750
7765
|
};
|
|
7751
7766
|
var openInfo = function openInfo() {
|
|
@@ -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,qBAqapE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "25.5.0-beta.
|
|
3
|
+
"version": "25.5.0-beta.4",
|
|
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.5.0-beta.
|
|
33
|
-
"@crystaldesign/products-component": "25.5.0-beta.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "25.5.0-beta.
|
|
32
|
+
"@crystaldesign/analytics": "25.5.0-beta.4",
|
|
33
|
+
"@crystaldesign/products-component": "25.5.0-beta.4",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "25.5.0-beta.4",
|
|
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": "c78c11a6c6f1e76406b9cf25d2e53f0005e04914"
|
|
47
47
|
}
|