@crystaldesign/diva-seller 24.15.0-beta.44 → 24.15.0-beta.46
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
|
@@ -7727,11 +7727,11 @@ function useModelInfoPage (_ref) {
|
|
|
7727
7727
|
toggleLoading('seller-model-info', false, true);
|
|
7728
7728
|
accountSessionId = undefined;
|
|
7729
7729
|
if (!(organization.type === 'RETAILER')) {
|
|
7730
|
-
_context.next =
|
|
7730
|
+
_context.next = 14;
|
|
7731
7731
|
break;
|
|
7732
7732
|
}
|
|
7733
7733
|
if (accountId) {
|
|
7734
|
-
_context.next =
|
|
7734
|
+
_context.next = 11;
|
|
7735
7735
|
break;
|
|
7736
7736
|
}
|
|
7737
7737
|
LOG$3.errorTransaction('ON_OPEN_MODULE_INFO', 'SELLER_0001', 'Missing account ID', {
|
|
@@ -7740,33 +7740,46 @@ function useModelInfoPage (_ref) {
|
|
|
7740
7740
|
});
|
|
7741
7741
|
setLoading(false);
|
|
7742
7742
|
toggleLoading('seller-model-info', false, false);
|
|
7743
|
+
openComponent({
|
|
7744
|
+
type: 'SELLER'
|
|
7745
|
+
});
|
|
7743
7746
|
return _context.abrupt("return");
|
|
7744
|
-
case
|
|
7745
|
-
_context.next =
|
|
7747
|
+
case 11:
|
|
7748
|
+
_context.next = 13;
|
|
7746
7749
|
return checkAccountLogin({
|
|
7747
7750
|
accountId: accountId
|
|
7748
7751
|
});
|
|
7749
|
-
case 12:
|
|
7750
|
-
accountSessionId = _context.sent;
|
|
7751
7752
|
case 13:
|
|
7753
|
+
accountSessionId = _context.sent;
|
|
7754
|
+
case 14:
|
|
7752
7755
|
if (!catalogCodex) {
|
|
7753
|
-
_context.next =
|
|
7756
|
+
_context.next = 26;
|
|
7754
7757
|
break;
|
|
7755
7758
|
}
|
|
7756
|
-
_context.next =
|
|
7759
|
+
_context.next = 17;
|
|
7757
7760
|
return loadCatalogInfo({
|
|
7758
7761
|
catalogCodex: catalogCodex,
|
|
7759
7762
|
accountSessionId: accountSessionId,
|
|
7760
7763
|
accountId: accountId,
|
|
7761
7764
|
language: i18n.language || 'en'
|
|
7762
7765
|
});
|
|
7763
|
-
case
|
|
7766
|
+
case 17:
|
|
7764
7767
|
catalogInfoData = _context.sent;
|
|
7768
|
+
if (catalogInfoData) {
|
|
7769
|
+
_context.next = 22;
|
|
7770
|
+
break;
|
|
7771
|
+
}
|
|
7772
|
+
toggleLoading('seller-model-info', false, false);
|
|
7773
|
+
openComponent({
|
|
7774
|
+
type: 'SELLER'
|
|
7775
|
+
});
|
|
7776
|
+
return _context.abrupt("return");
|
|
7777
|
+
case 22:
|
|
7765
7778
|
{
|
|
7766
|
-
_context.next =
|
|
7779
|
+
_context.next = 24;
|
|
7767
7780
|
break;
|
|
7768
7781
|
}
|
|
7769
|
-
case
|
|
7782
|
+
case 24:
|
|
7770
7783
|
setData(catalogInfoData === null || catalogInfoData === void 0 ? void 0 : catalogInfoData[0]);
|
|
7771
7784
|
|
|
7772
7785
|
//if there is no relevant catalog information, as a normal seller continue directly to the planner
|
|
@@ -7776,14 +7789,14 @@ function useModelInfoPage (_ref) {
|
|
|
7776
7789
|
onOpenPlanner(accountSessionId);
|
|
7777
7790
|
}
|
|
7778
7791
|
}
|
|
7779
|
-
case
|
|
7792
|
+
case 26:
|
|
7780
7793
|
LOG$3.successTransaction('ON_OPEN_MODULE_INFO', {
|
|
7781
7794
|
cat: catalogCodex,
|
|
7782
7795
|
accountId: accountId
|
|
7783
7796
|
});
|
|
7784
7797
|
setLoading(false);
|
|
7785
7798
|
toggleLoading('seller-model-info', false, false);
|
|
7786
|
-
case
|
|
7799
|
+
case 29:
|
|
7787
7800
|
case "end":
|
|
7788
7801
|
return _context.stop();
|
|
7789
7802
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModelInfoPage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/InfoWithProducts/useModelInfoPage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAIrD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,kBAAkB;;;;;;
|
|
1
|
+
{"version":3,"file":"useModelInfoPage.d.ts","sourceRoot":"","sources":["../../../../../../src/components/InfoWithProducts/useModelInfoPage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAY,MAAM,aAAa,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAIrD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,kBAAkB;;;;;;wCAgI1D,OAAO;EAsDpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-seller",
|
|
3
|
-
"version": "24.15.0-beta.
|
|
3
|
+
"version": "24.15.0-beta.46",
|
|
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": "24.15.0-beta.
|
|
33
|
-
"@crystaldesign/products-component": "24.15.0-beta.
|
|
34
|
-
"@crystaldesign/real-time-viewer": "24.15.0-beta.
|
|
32
|
+
"@crystaldesign/analytics": "24.15.0-beta.46",
|
|
33
|
+
"@crystaldesign/products-component": "24.15.0-beta.46",
|
|
34
|
+
"@crystaldesign/real-time-viewer": "24.15.0-beta.46",
|
|
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": "170af221ce6c1300ca1098107ede9a13e9d07106"
|
|
47
47
|
}
|