pds-dev-kit-web-test 2.2.91 → 2.2.94
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.
@@ -404,6 +404,25 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
404
404
|
}
|
405
405
|
makeCollisionOfBulk();
|
406
406
|
};
|
407
|
+
var onAutoResizedToFit = function (layout) {
|
408
|
+
if (!isEditMode) {
|
409
|
+
return;
|
410
|
+
}
|
411
|
+
if (selectedCB === 'group' || selectedCB === null) {
|
412
|
+
return;
|
413
|
+
}
|
414
|
+
// const selectedCBItem = layout.find((each) => each.i === selectedCB.toString());
|
415
|
+
if (sectionActionHandler) {
|
416
|
+
sectionActionHandler({
|
417
|
+
type: '@CUSTOMSECTION/AUTO_RESIZED_TO_FIT_CONTENT',
|
418
|
+
payload: { layout: layout }
|
419
|
+
});
|
420
|
+
}
|
421
|
+
setLayouts(function () {
|
422
|
+
var _a;
|
423
|
+
return (__assign(__assign({}, layouts), (_a = {}, _a[layoutByDevice] = layout, _a)));
|
424
|
+
});
|
425
|
+
};
|
407
426
|
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(S_gleStyles, { children: (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection }, { children: (0, jsx_runtime_1.jsx)(components_1.CustomSection, __assign({}, props, { isMobile: isMobile, overrideStyles: {
|
408
427
|
minHeight: customSectionStyles.minHeight,
|
409
428
|
paddingTop: padding.top,
|
@@ -415,7 +434,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
415
434
|
maxWidth: isMobile ? '480px' : customSectionStyles.maxWidth,
|
416
435
|
minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
|
417
436
|
fontSize: "".concat(baseFontSize, "px")
|
418
|
-
}, onLayoutChange: onLayoutChange, onDragStop: onDragStop, onResizeStop: onResizeStop, onWidthChange: onWidthChange, minNbRow: rows, isDraggable: isEditMode, isResizable: isEditMode }, { children: keepSimilarOrderToPreventRerender(layouts[layoutByDevice]).map(function (each, index) {
|
437
|
+
}, onAutoResizedToFit: onAutoResizedToFit, onLayoutChange: onLayoutChange, onDragStop: onDragStop, onResizeStop: onResizeStop, onWidthChange: onWidthChange, minNbRow: rows, isDraggable: isEditMode, isResizable: isEditMode }, { children: keepSimilarOrderToPreventRerender(layouts[layoutByDevice]).map(function (each, index) {
|
419
438
|
var _a;
|
420
439
|
if (each === null) {
|
421
440
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pds-dev-kit-web-test",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.94",
|
4
4
|
"license": "MIT",
|
5
5
|
"private": false,
|
6
6
|
"main": "dist/index.js",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"i18next-intervalplural-postprocessor": "^3.0.0",
|
23
23
|
"lottie-react": "^2.3.1",
|
24
24
|
"nuka-carousel": "^4.8.4",
|
25
|
-
"publ-echo": "^0.0.
|
25
|
+
"publ-echo": "^0.0.81",
|
26
26
|
"react-hook-form": "^7.28.1",
|
27
27
|
"react-i18next": "^11.12.0",
|
28
28
|
"react-router-dom": "^5.2.0",
|