pds-dev-kit-web-test 2.7.329 → 2.7.331
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { CB_ALL_CODES } from '../sections/CustomSection/types';
|
|
3
3
|
import type { IComposition } from '../types';
|
|
4
4
|
import type { Layout } from 'publ-echo-test/dist/lib/GridLayoutEditor/types';
|
|
5
5
|
export type LayoutsType = {
|
|
@@ -51,6 +51,7 @@ require("../components");
|
|
|
51
51
|
require("../components/Section/components/CustomSectionBackground");
|
|
52
52
|
var gleStyles_1 = require("../gleStyles");
|
|
53
53
|
var useResizableObserver_1 = require("../sections/CustomSection/hooks/useResizableObserver");
|
|
54
|
+
var types_1 = require("../sections/CustomSection/types");
|
|
54
55
|
var util_1 = require("../sections/CustomSection/util");
|
|
55
56
|
var parseSectionPadding_1 = __importDefault(require("../sections/CustomSection/util/layoutPropParsers/parseSectionPadding"));
|
|
56
57
|
var parseCompositionPlacement_1 = __importDefault(require("../sections/CustomSection/util/parseCompositionPlacement"));
|
|
@@ -221,7 +222,7 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
221
222
|
paddingRight: padding.right,
|
|
222
223
|
paddingLeft: padding.left,
|
|
223
224
|
width: '100%',
|
|
224
|
-
height: '100%'
|
|
225
|
+
height: ccbCode === types_1.CB_ALL_CODES.CB_CONTENTSCAROUSEL ? 'auto' : '100%'
|
|
225
226
|
} }, { children: (0, jsx_runtime_1.jsx)(GridContainer, __assign({ className: "composition-container", "data-cols": cols, "data-rows": rows, "data-row-height": rowHeight, "data-col-width": "10px", ref: containerRef, cols: cols, rowHeight: rowHeight, sectionRow: rows, "data-wrapper-paddingT": padding.top, "data-wrapper-paddingB": padding.bottom, "data-wrapper-paddingL": padding.left, "data-wrapper-paddingR": padding.right, style: {
|
|
226
227
|
width: customSectionStyles.width,
|
|
227
228
|
maxWidth: customSectionStyles.maxWidth
|