pds-dev-kit-web-test 2.7.465 → 2.7.466

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.
@@ -12,19 +12,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.parsePlacement = exports.getHeightFitContent = void 0;
13
13
  var types_1 = require("../types");
14
14
  function getHeightFitContent(cb) {
15
- var _a, _b, _c, _d;
15
+ var _a, _b, _c, _d, _e, _f, _g, _h;
16
16
  if (cb.componentBlockCode === types_1.CB_ALL_CODES.CB_TEXT) {
17
- var desktop = (_a = cb.jsonProperties.data.CB_STYLE_PROP_TEXTOPTION.CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT) !== null && _a !== void 0 ? _a : true;
18
- var mobile = (_b = cb.jsonProperties.data.CB_STYLE_PROP_TEXTOPTION['CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT:MOBILE']) !== null && _b !== void 0 ? _b : desktop;
17
+ var desktop = (_b = (_a = cb.jsonProperties.data.CB_STYLE_PROP_TEXTOPTION) === null || _a === void 0 ? void 0 : _a.CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT) !== null && _b !== void 0 ? _b : true;
18
+ var mobile = (_d = (_c = cb.jsonProperties.data.CB_STYLE_PROP_TEXTOPTION) === null || _c === void 0 ? void 0 : _c['CB_STYLE_PROP_TEXTOPTION_SPEC_FITCONTENT:MOBILE']) !== null && _d !== void 0 ? _d : desktop;
19
19
  return {
20
20
  desktop: desktop,
21
21
  mobile: mobile
22
22
  };
23
23
  }
24
24
  if (cb.componentBlockCode === types_1.CB_ALL_CODES.CB_LIST) {
25
- var desktop = (_c = cb.jsonProperties.data.CB_LAYOUT_PROP_HEIGHTADJUSTMENT
26
- .CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT) !== null && _c !== void 0 ? _c : true;
27
- var mobile = (_d = cb.jsonProperties.data.CB_LAYOUT_PROP_HEIGHTADJUSTMENT['CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT:MOBILE']) !== null && _d !== void 0 ? _d : desktop;
25
+ var desktop = (_f = (_e = cb.jsonProperties.data.CB_LAYOUT_PROP_HEIGHTADJUSTMENT) === null || _e === void 0 ? void 0 : _e.CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT) !== null && _f !== void 0 ? _f : true;
26
+ var mobile = (_h = (_g = cb.jsonProperties.data.CB_LAYOUT_PROP_HEIGHTADJUSTMENT) === null || _g === void 0 ? void 0 : _g['CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT:MOBILE']) !== null && _h !== void 0 ? _h : desktop;
28
27
  return {
29
28
  desktop: desktop,
30
29
  mobile: mobile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.465",
3
+ "version": "2.7.466",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",