@crystaldesign/diva-seller 26.12.0-beta.39 → 26.12.0-beta.40

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.
@@ -1200,7 +1200,7 @@ function apiLoadEnricherArticles(_x13) {
1200
1200
  }
1201
1201
  function _apiLoadEnricherArticles() {
1202
1202
  _apiLoadEnricherArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(_ref9) {
1203
- var serieNo, enricherId, organizationId, enricherUrl, jwt, language, t, fullUrl, response, articleList, i, _jsonArticle$widthBas, _jsonArticle$heightBa, _jsonArticle$depthBas, _jsonArticle$detailIn, _DivaUtils$getLocals, jsonArticle;
1203
+ var serieNo, enricherId, organizationId, enricherUrl, jwt, language, t, fullUrl, response, articleList, i, _jsonArticle$widthBas, _jsonArticle$heightBa, _jsonArticle$depthBas, _jsonArticle$detailIn, _jsonArticle$flatPric, _DivaUtils$getLocals, jsonArticle;
1204
1204
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
1205
1205
  while (1) switch (_context10.prev = _context10.next) {
1206
1206
  case 0:
@@ -1230,7 +1230,7 @@ function _apiLoadEnricherArticles() {
1230
1230
  guid: jsonArticle.GUID,
1231
1231
  name: DivaUtils.getLocals(jsonArticle.shortText, language),
1232
1232
  longDescription: DivaUtils.getLocals(jsonArticle.fullText, language),
1233
- articleType: jsonArticle.featureClassRefNo === undefined ? 'FLAT' : 'OPTIONTREE',
1233
+ articleType: jsonArticle.flat ? 'FLAT' : 'OPTIONTREE',
1234
1234
  width: jsonArticle.widthBasicShapeNominalValue !== undefined ? Math.floor(((_jsonArticle$widthBas = jsonArticle.widthBasicShapeNominalValue) !== null && _jsonArticle$widthBas !== void 0 ? _jsonArticle$widthBas : 0) / 10) : undefined,
1235
1235
  //idm gives values in mm
1236
1236
  height: jsonArticle.heightBasicShapeNominalValue !== undefined ? Math.floor(((_jsonArticle$heightBa = jsonArticle.heightBasicShapeNominalValue) !== null && _jsonArticle$heightBa !== void 0 ? _jsonArticle$heightBa : 0) / 10) : undefined,
@@ -1241,7 +1241,7 @@ function _apiLoadEnricherArticles() {
1241
1241
  return d.functionType == 'CAT_ART';
1242
1242
  })) === null || _jsonArticle$detailIn === void 0 ? void 0 : _jsonArticle$detailIn.url,
1243
1243
  templateCodex: jsonArticle.featureClassRefNo,
1244
- price: 0,
1244
+ price: jsonArticle.flat ? (_jsonArticle$flatPric = jsonArticle.flatPrice) !== null && _jsonArticle$flatPric !== void 0 ? _jsonArticle$flatPric : 0 : 0,
1245
1245
  priceGroup: jsonArticle.priceTypeRef,
1246
1246
  // a named enricher group replaces the type key label, an unnamed one only reorders the palette
1247
1247
  groupName: (_DivaUtils$getLocals = DivaUtils.getLocals(jsonArticle.groupName, language)) !== null && _DivaUtils$getLocals !== void 0 ? _DivaUtils$getLocals : t('configuration.group.' + jsonArticle.typeKey, jsonArticle.typeKey)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-seller",
3
- "version": "26.12.0-beta.39",
3
+ "version": "26.12.0-beta.40",
4
4
  "description": "Seller-facing UI section with its own state provider and services.",
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": "26.12.0-beta.39",
33
- "@crystaldesign/products-component": "26.12.0-beta.39",
34
- "@crystaldesign/real-time-viewer": "26.12.0-beta.39",
32
+ "@crystaldesign/analytics": "26.12.0-beta.40",
33
+ "@crystaldesign/products-component": "26.12.0-beta.40",
34
+ "@crystaldesign/real-time-viewer": "26.12.0-beta.40",
35
35
  "@emotion/react": "^11.13.3",
36
36
  "@emotion/styled": "^11.13.0",
37
37
  "@mui/icons-material": "7.3.11",
@@ -42,5 +42,5 @@
42
42
  },
43
43
  "types": "./build/types/seller/src/index.d.ts",
44
44
  "module": "build/esm/index.js",
45
- "gitHead": "f96b0d8575dc62c81e5d95787bbd0e6ab7bc4023"
45
+ "gitHead": "bfbdec845016a76f55f4128da55d20e22d99f892"
46
46
  }