pds-dev-kit-web-test 2.7.465 → 2.7.467
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/dist/src/sub/DynamicLayout/CompositionRenderer/FlexGridItem.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/util/parsePlacement.js +5 -6
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ function FlexGridItem(_a) {
|
|
|
31
31
|
var isCBHeightVariable = device === 'DESKTOP' ? block.isHeightVariableDesktop : block.isHeightVariableMobile;
|
|
32
32
|
var isHeightVariable = isParentGroupHeightVariable || isCBHeightVariable;
|
|
33
33
|
var getHeightFitContent = function () {
|
|
34
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
34
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
35
35
|
if ('CB_STYLE_PROP_TEXTOPTION' in cb.jsonProperties.data) {
|
|
36
36
|
var defaultValue = true;
|
|
37
37
|
var desktopValue = (_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 : defaultValue;
|
|
@@ -47,7 +47,7 @@ function FlexGridItem(_a) {
|
|
|
47
47
|
if (device === 'DESKTOP') {
|
|
48
48
|
return desktopValue;
|
|
49
49
|
}
|
|
50
|
-
return ((_g = cb.jsonProperties.data.CB_LAYOUT_PROP_HEIGHTADJUSTMENT['CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT:MOBILE']) !== null &&
|
|
50
|
+
return ((_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 : desktopValue);
|
|
51
51
|
}
|
|
52
52
|
return false;
|
|
53
53
|
};
|
|
@@ -175,8 +175,8 @@ function ContentsList(props) {
|
|
|
175
175
|
return compositions.find(function (comp) { return comp.ccbManualItemUuid === item.uuid; });
|
|
176
176
|
});
|
|
177
177
|
var heightFitContentByDevice = device === 'DESKTOP'
|
|
178
|
-
? CB_LAYOUT_PROP_HEIGHTADJUSTMENT.CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT
|
|
179
|
-
: CB_LAYOUT_PROP_HEIGHTADJUSTMENT['CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT:MOBILE'];
|
|
178
|
+
? CB_LAYOUT_PROP_HEIGHTADJUSTMENT === null || CB_LAYOUT_PROP_HEIGHTADJUSTMENT === void 0 ? void 0 : CB_LAYOUT_PROP_HEIGHTADJUSTMENT.CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT
|
|
179
|
+
: CB_LAYOUT_PROP_HEIGHTADJUSTMENT === null || CB_LAYOUT_PROP_HEIGHTADJUSTMENT === void 0 ? void 0 : CB_LAYOUT_PROP_HEIGHTADJUSTMENT['CB_LAYOUT_PROP_HEIGHTADJUSTMENT_SPEC_HEIGHTFITCONTENT:MOBILE'];
|
|
180
180
|
var isEditModeAndHeightFitContent = heightFitContentByDevice && mode === 'EDIT';
|
|
181
181
|
var isEditModeAndHidden = style.visibility === 'hidden' && mode === 'EDIT';
|
|
182
182
|
if (mode === 'EDIT') {
|
|
@@ -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 &&
|
|
18
|
-
var mobile = (
|
|
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 = (
|
|
26
|
-
|
|
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
|