pds-dev-kit-web-test 2.7.620 → 2.7.622
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.
|
@@ -277,7 +277,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
277
277
|
var set = new Set(__spreadArray(__spreadArray([], prev, true), bulks_1, true));
|
|
278
278
|
return Array.from(set);
|
|
279
279
|
});
|
|
280
|
-
setSelectedBlockId(
|
|
280
|
+
setSelectedBlockId('BULK');
|
|
281
281
|
var newBulkCBIds = bulks_1
|
|
282
282
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
|
283
283
|
.filter(function (each) { return each !== null; });
|
|
@@ -434,7 +434,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
434
434
|
var set = new Set(__spreadArray(__spreadArray([], prev, true), added, true));
|
|
435
435
|
return Array.from(set);
|
|
436
436
|
});
|
|
437
|
-
setSelectedBlockId(
|
|
437
|
+
setSelectedBlockId('BULK');
|
|
438
438
|
var newBulkBlockIds = Array.from(new Set(__spreadArray(__spreadArray([], bulkBlockIds, true), added, true)));
|
|
439
439
|
var newBulkCBIds = newBulkBlockIds
|
|
440
440
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
|
@@ -487,7 +487,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
487
487
|
return;
|
|
488
488
|
}
|
|
489
489
|
setBulkBlockIds(newBulks);
|
|
490
|
-
setSelectedBlockId(
|
|
490
|
+
setSelectedBlockId('BULK');
|
|
491
491
|
var newBulkCBIds = newBulks
|
|
492
492
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
|
493
493
|
.filter(function (each) { return each !== null; });
|
|
@@ -959,7 +959,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
959
959
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
|
960
960
|
.filter(function (each) { return each !== null; });
|
|
961
961
|
setBulkBlockIds(newBulkBlockIds_2);
|
|
962
|
-
setSelectedBlockId(
|
|
962
|
+
setSelectedBlockId('BULK');
|
|
963
963
|
var childrenCBIds_2 = [];
|
|
964
964
|
if (newBulkCBIds_2.length === 0) {
|
|
965
965
|
var oneCB = (0, group_1.findOneComponentBlock)(newblock, newBulkBlockIds_2[0]);
|
|
@@ -1058,6 +1058,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
1058
1058
|
}
|
|
1059
1059
|
var editableCBIDs = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock);
|
|
1060
1060
|
var i18n = (0, react_i18next_1.useTranslation)('translation').i18n;
|
|
1061
|
+
console.log('selectedBlockId', selectedBlockId);
|
|
1061
1062
|
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
|
|
1062
1063
|
device: device,
|
|
1063
1064
|
mode: mode,
|
|
@@ -1075,10 +1076,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
1075
1076
|
} }, { children: (0, jsx_runtime_1.jsx)(Responsive, __assign({ device: device, selectedBlockId: selectedBlockId, sectionId: props.compositionData.id.toString(), innerRef: innerRef, className: (0, clsx_1.clsx)({
|
|
1076
1077
|
'selected-grid-layout': editingSectionId === props.compositionData.id
|
|
1077
1078
|
}), allowOverlap: true, layouts: layouts, resizeHandles: ['nw', 'e', 'n', 'ne', 's', 'se', 'sw', 'w'], breakpoints: breakpoints, breakpoint: breakpoint, cols: { lg: colsDesktop, sm: colsMobile }, rowHeight: rowHeight, margin: [10, 10], style: {
|
|
1078
|
-
// minWidth: customSectionStyles.minWidth,
|
|
1079
|
-
// maxWidth: customSectionStyles.maxWidth,
|
|
1080
1079
|
width: customSectionStyles.width,
|
|
1081
|
-
// maxHeight: customSectionStyles.maxHeight,
|
|
1082
1080
|
fontSize: "".concat(16, "px")
|
|
1083
1081
|
}, onLayoutChange: onLayoutChange, onDragStart: onDragStart, onDragStop: onDragStop, onResizeStop: onResizeStop, onDragStopForGroup: onBulkDragStop, onFitToContent: onAutoFitContent, onWidthChange: onWidthChange, minNbRow: rows, isDraggable: isEditMode, isResizable: isEditMode, zoom: props.editorProps.zoomScale,
|
|
1084
1082
|
// GROUP
|