pds-dev-kit-web-test 2.5.137 → 2.5.139
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/Composition.js +9 -4
- package/dist/src/sub/DynamicLayout/CompositionRenderer/CompositionRenderer.js +4 -1
- package/dist/src/sub/DynamicLayout/components/Section/ErrorBoundary/ErrorBoundary.js +12 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +1 -1
- package/package.json +1 -1
@@ -184,12 +184,17 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
184
184
|
}
|
185
185
|
return 16;
|
186
186
|
})();
|
187
|
-
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, { children: (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection
|
187
|
+
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(gleStyles_1.S_gleStyles, __assign({ style: { width: '100%', height: '100%' } }, { children: (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, style: {
|
188
|
+
width: '100%',
|
189
|
+
height: '100%'
|
190
|
+
} }, { children: (0, jsx_runtime_1.jsx)(components_1.CustomSection, __assign({}, props, { isMobile: isMobile, overrideStyles: {
|
188
191
|
// minHeight: customSectionStyles.minHeight,
|
189
192
|
paddingTop: padding.top,
|
190
193
|
paddingBottom: padding.bottom,
|
191
194
|
paddingRight: padding.right,
|
192
|
-
paddingLeft: padding.left
|
195
|
+
paddingLeft: padding.left,
|
196
|
+
width: '100%',
|
197
|
+
height: '100%'
|
193
198
|
} }, { children: (0, jsx_runtime_1.jsx)(GridContainer, __assign({ ref: containerRef, cols: isMobile ? 8 : 24, rowHeight: rowHeight, sectionRow: sectionRow !== null && sectionRow !== void 0 ? sectionRow : 0, style: {
|
194
199
|
width: customSectionStyles.width,
|
195
200
|
maxWidth: customSectionStyles.maxWidth,
|
@@ -198,9 +203,9 @@ var Composition = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
198
203
|
} }, { children: (_a = props.componentBlocks) === null || _a === void 0 ? void 0 : _a.map(function (cb, index) {
|
199
204
|
var _a;
|
200
205
|
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(FlexGridItem_1.default, { cb: cb, index: index, device: device, rowHeight: rowHeight, zIndex: (_a = zOrders === null || zOrders === void 0 ? void 0 : zOrders[device === 'DESKTOP' ? 'desktop' : 'mobile'][cb.id]) !== null && _a !== void 0 ? _a : 0 }) }, cb.id));
|
201
|
-
}) })) })) })) }) }));
|
206
|
+
}) })) })) })) })) }));
|
202
207
|
});
|
203
|
-
var GridContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(
|
208
|
+
var GridContainer = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", minmax(", ", 1fr));\n height: 100%;\n padding: 10px 10px;\n width: 100%;\n\n * {\n box-sizing: border-box;\n }\n"], ["\n display: grid; /* Space between grid items */\n gap: 10px;\n grid-auto-rows: minmax(", ", auto);\n grid-template-columns: repeat(", ", 1fr);\n grid-template-rows: repeat(", ", minmax(", ", 1fr));\n height: 100%;\n padding: 10px 10px;\n width: 100%;\n\n * {\n box-sizing: border-box;\n }\n"])), function (props) { return "".concat(props.rowHeight, "px"); }, function (props) { return props.cols; }, function (props) { return props.sectionRow; }, function (props) { return "".concat(0, "px"); });
|
204
209
|
var S_SectionWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
205
210
|
exports.default = react_1.default.memo(Composition);
|
206
211
|
function getDefensiveFontSize(device, width) {
|
@@ -19,6 +19,9 @@ require("react");
|
|
19
19
|
var Composition_1 = __importDefault(require("./Composition"));
|
20
20
|
function CompositionRenderer(_a) {
|
21
21
|
var compositions = _a.compositions;
|
22
|
-
return ((0, jsx_runtime_1.jsx)("div", {
|
22
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ style: {
|
23
|
+
width: '100%',
|
24
|
+
height: '100%'
|
25
|
+
} }, { children: compositions.map(function (composition) { return ((0, jsx_runtime_1.jsx)(Composition_1.default, __assign({}, composition), composition.id)); }) })));
|
23
26
|
}
|
24
27
|
exports.default = CompositionRenderer;
|
@@ -18,6 +18,17 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
18
18
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
19
19
|
return cooked;
|
20
20
|
};
|
21
|
+
var __assign = (this && this.__assign) || function () {
|
22
|
+
__assign = Object.assign || function(t) {
|
23
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
24
|
+
s = arguments[i];
|
25
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
26
|
+
t[p] = s[p];
|
27
|
+
}
|
28
|
+
return t;
|
29
|
+
};
|
30
|
+
return __assign.apply(this, arguments);
|
31
|
+
};
|
21
32
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
22
33
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
23
34
|
};
|
@@ -50,7 +61,7 @@ var ErrorBoundary = /** @class */ (function (_super) {
|
|
50
61
|
ErrorBoundary.prototype.render = function () {
|
51
62
|
var hasError = this.state.hasError;
|
52
63
|
if (hasError) {
|
53
|
-
return (0, jsx_runtime_1.jsx)(ErrorWrapper, { children: "Error" });
|
64
|
+
return (0, jsx_runtime_1.jsx)(ErrorWrapper, __assign({ className: "error-boundary" }, { children: "Error" }));
|
54
65
|
}
|
55
66
|
var children = this.props.children;
|
56
67
|
return children;
|
@@ -7,6 +7,6 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
7
|
var CompositionRenderer_1 = __importDefault(require("../../../../../../../DynamicLayout/CompositionRenderer/CompositionRenderer"));
|
8
8
|
function ContentsCarousel(props) {
|
9
9
|
var compositions = props.compositions;
|
10
|
-
return (
|
10
|
+
return (0, jsx_runtime_1.jsx)(CompositionRenderer_1.default, { compositions: compositions });
|
11
11
|
}
|
12
12
|
exports.default = ContentsCarousel;
|