@crystaldesign/diva-seller 25.7.0-rc.13 → 25.7.0-rc.2
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 +17 -18
- package/package.json +5 -5
package/build/esm/index.js
CHANGED
|
@@ -2219,7 +2219,7 @@ function useSellerStateData(_ref) {
|
|
|
2219
2219
|
while (1) switch (_context8.prev = _context8.next) {
|
|
2220
2220
|
case 0:
|
|
2221
2221
|
if (!(state.firstLoginApiUrl && sessionGuid)) {
|
|
2222
|
-
_context8.next =
|
|
2222
|
+
_context8.next = 53;
|
|
2223
2223
|
break;
|
|
2224
2224
|
}
|
|
2225
2225
|
currentBasket = basket;
|
|
@@ -2265,11 +2265,11 @@ function useSellerStateData(_ref) {
|
|
|
2265
2265
|
currentBasket = state.basketState.basket;
|
|
2266
2266
|
}
|
|
2267
2267
|
case 17:
|
|
2268
|
-
_context8.next =
|
|
2268
|
+
_context8.next = 40;
|
|
2269
2269
|
break;
|
|
2270
2270
|
case 19:
|
|
2271
2271
|
if (!(!currentBasket || divaNr != currentBasket.DivaNr || customProductId)) {
|
|
2272
|
-
_context8.next =
|
|
2272
|
+
_context8.next = 40;
|
|
2273
2273
|
break;
|
|
2274
2274
|
}
|
|
2275
2275
|
_context8.next = 22;
|
|
@@ -2298,7 +2298,7 @@ function useSellerStateData(_ref) {
|
|
|
2298
2298
|
case 25:
|
|
2299
2299
|
currentBasket = ret.basket;
|
|
2300
2300
|
if (!((_state$basketState7 = state.basketState) !== null && _state$basketState7 !== void 0 && _state$basketState7.assignNewDivaNr || assignNewDivaNr || !divaNr && customProductId)) {
|
|
2301
|
-
_context8.next =
|
|
2301
|
+
_context8.next = 36;
|
|
2302
2302
|
break;
|
|
2303
2303
|
}
|
|
2304
2304
|
_context8.next = 29;
|
|
@@ -2313,24 +2313,23 @@ function useSellerStateData(_ref) {
|
|
|
2313
2313
|
if ((_getBasketStatusArr = getBasketStatusArr()) !== null && _getBasketStatusArr !== void 0 && _getBasketStatusArr[0]) currentBasket.Status = getBasketStatusArr()[0];
|
|
2314
2314
|
currentBasket.setDocumentVersion(1);
|
|
2315
2315
|
divaNr = divaNr + '-1';
|
|
2316
|
-
|
|
2317
|
-
_context8.next = 40;
|
|
2316
|
+
_context8.next = 39;
|
|
2318
2317
|
break;
|
|
2319
|
-
case
|
|
2318
|
+
case 36:
|
|
2320
2319
|
currentBasket.setDocumentVersion(ret.newestDocumentVersion);
|
|
2321
2320
|
if (((_divaNr2 = divaNr) === null || _divaNr2 === void 0 ? void 0 : _divaNr2.split('-').length) == 3) {
|
|
2322
2321
|
divaNr = divaNr.split('-')[0] + '-' + divaNr.split('-')[1] + '-' + currentBasket.getDocumentVersion();
|
|
2323
2322
|
}
|
|
2324
2323
|
basketIsAlreadySaved = true;
|
|
2325
|
-
case
|
|
2324
|
+
case 39:
|
|
2326
2325
|
currentBasket.clearRenderData();
|
|
2327
|
-
case
|
|
2326
|
+
case 40:
|
|
2328
2327
|
catalogData = undefined;
|
|
2329
2328
|
if (!currentBasket) {
|
|
2330
|
-
_context8.next =
|
|
2329
|
+
_context8.next = 45;
|
|
2331
2330
|
break;
|
|
2332
2331
|
}
|
|
2333
|
-
_context8.next =
|
|
2332
|
+
_context8.next = 44;
|
|
2334
2333
|
return loadCatalogInfo.apply(void 0, _toConsumableArray(currentBasket.OrderSets.map(function (os) {
|
|
2335
2334
|
return {
|
|
2336
2335
|
catalogCodex: os.CatalogCodex,
|
|
@@ -2339,19 +2338,19 @@ function useSellerStateData(_ref) {
|
|
|
2339
2338
|
catalogGuid: os.CatalogGUID
|
|
2340
2339
|
};
|
|
2341
2340
|
})));
|
|
2342
|
-
case
|
|
2341
|
+
case 44:
|
|
2343
2342
|
catalogData = _context8.sent;
|
|
2344
|
-
case
|
|
2343
|
+
case 45:
|
|
2345
2344
|
if (!currentBasket) {
|
|
2346
|
-
_context8.next =
|
|
2345
|
+
_context8.next = 51;
|
|
2347
2346
|
break;
|
|
2348
2347
|
}
|
|
2349
2348
|
currentBasket.PrintOptions = getPrintOptions(currentBasket.PrintOptions);
|
|
2350
2349
|
currentBasket.UserLanguage = i18n.language;
|
|
2351
2350
|
currentBasket.ClientLanguage = i18n.language;
|
|
2352
|
-
_context8.next =
|
|
2351
|
+
_context8.next = 51;
|
|
2353
2352
|
return DivaUtils$1.updateBasketOrgInfo(currentBasket, currentOrganization, currentUser, false);
|
|
2354
|
-
case
|
|
2353
|
+
case 51:
|
|
2355
2354
|
dispatch({
|
|
2356
2355
|
type: 'update',
|
|
2357
2356
|
payload: [{
|
|
@@ -2377,9 +2376,9 @@ function useSellerStateData(_ref) {
|
|
|
2377
2376
|
catalogData: catalogData,
|
|
2378
2377
|
saved: basketIsAlreadySaved
|
|
2379
2378
|
});
|
|
2380
|
-
case
|
|
2379
|
+
case 53:
|
|
2381
2380
|
throw new Error('Function: updateBasket was called bevor state.firstLoginApiUrl is initialized!');
|
|
2382
|
-
case
|
|
2381
|
+
case 54:
|
|
2383
2382
|
case "end":
|
|
2384
2383
|
return _context8.stop();
|
|
2385
2384
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "25.7.0-rc.
|
|
3
|
+
"version": "25.7.0-rc.2",
|
|
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.7.0-rc.
|
|
33
|
-
"@crystaldesign/products-component": "25.7.0-rc.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "25.7.0-rc.
|
|
32
|
+
"@crystaldesign/analytics": "25.7.0-rc.2",
|
|
33
|
+
"@crystaldesign/products-component": "25.7.0-rc.2",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "25.7.0-rc.2",
|
|
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": "7b0786537763ecc44be2d1bafce44ecbe9f4e212"
|
|
47
47
|
}
|