pds-dev-kit-web 2.2.98 → 2.2.99
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.
|
@@ -21,17 +21,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
}
|
|
22
22
|
return t;
|
|
23
23
|
};
|
|
24
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
-
};
|
|
27
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
25
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
|
-
|
|
26
|
+
// import FlexGridCustomSection from '../../../DynamicLayout/sections/CustomSection/FlexGridCustomSection';
|
|
30
27
|
var sections_1 = require("../../sections");
|
|
31
28
|
function SectionMatcher(_a) {
|
|
32
29
|
var props = __rest(_a, []);
|
|
33
30
|
if (props.type === 'CUSTOM') {
|
|
34
|
-
return
|
|
31
|
+
// return <FlexGridCustomSection {...props} />;
|
|
32
|
+
return (0, jsx_runtime_1.jsx)(sections_1.CustomSection, __assign({}, props));
|
|
35
33
|
}
|
|
36
34
|
var schema = props.manifest.schema;
|
|
37
35
|
switch (schema) {
|
|
@@ -346,26 +346,26 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
};
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
};
|
|
349
|
+
// const onAutoFitContent: OnFitContentCallBack = (props) => {
|
|
350
|
+
// const { prev, item } = props;
|
|
351
|
+
// if (!isEditMode || !item) {
|
|
352
|
+
// return;
|
|
353
|
+
// }
|
|
354
|
+
// const numberId = Number(item.i);
|
|
355
|
+
// const isIdNumber = !Number.isNaN(numberId);
|
|
356
|
+
// if (isLayoutPlacementSame(item, prev)) {
|
|
357
|
+
// return;
|
|
358
|
+
// }
|
|
359
|
+
// if (isIdNumber) {
|
|
360
|
+
// setSelectedCB(numberId);
|
|
361
|
+
// }
|
|
362
|
+
// if (sectionActionHandler && isIdNumber) {
|
|
363
|
+
// sectionActionHandler({
|
|
364
|
+
// type: '@CUSTOMSECTION/CB_AUTO_FIT_CONTENT',
|
|
365
|
+
// payload: { ...props, details: { hadPaddingChanged: props.hasPaddingChanged } }
|
|
366
|
+
// });
|
|
367
|
+
// }
|
|
368
|
+
// };
|
|
369
369
|
var onClickSection = function () {
|
|
370
370
|
if (!isEditMode) {
|
|
371
371
|
return;
|
|
@@ -456,7 +456,9 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
456
456
|
maxWidth: customSectionStyles.maxWidth,
|
|
457
457
|
minWidth: isMobile ? GLE_MIN_WIDTH_MOBILE_PX : GLE_MIN_WIDTH_DESKTOP_PX,
|
|
458
458
|
fontSize: "".concat(baseFontSize, "px")
|
|
459
|
-
}, onLayoutChange: onLayoutChange, onDragStart: onDragStart, onDragStop: onDragStop, onResizeStop: onResizeStop,
|
|
459
|
+
}, onLayoutChange: onLayoutChange, onDragStart: onDragStart, onDragStop: onDragStop, onResizeStop: onResizeStop,
|
|
460
|
+
// onFitToContent={onAutoFitContent}
|
|
461
|
+
onWidthChange: onWidthChange, minNbRow: rows, isDraggable: isEditMode, isResizable: isEditMode }, { children: keepSimilarOrderToPreventRerender(layouts[layoutByDevice]).map(function (each, index) {
|
|
460
462
|
var _a;
|
|
461
463
|
if (each === null) {
|
|
462
464
|
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",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.99",
|
|
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.45",
|
|
26
26
|
"react-hook-form": "^7.28.1",
|
|
27
27
|
"react-i18next": "^11.12.0",
|
|
28
28
|
"react-router-dom": "^5.2.0",
|
package/release-note.md
CHANGED