pds-dev-kit-web-test 2.7.621 → 2.7.623
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.
|
@@ -134,6 +134,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
134
134
|
},
|
|
135
135
|
selectCBInBulk: function (blockIds) {
|
|
136
136
|
setBulkBlockIds(blockIds);
|
|
137
|
+
setSelectedBlockId('BULK');
|
|
137
138
|
},
|
|
138
139
|
selectGroup: function (groupBlockId) {
|
|
139
140
|
setBulkBlockIds([]);
|
|
@@ -1058,6 +1059,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
1058
1059
|
}
|
|
1059
1060
|
var editableCBIDs = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock);
|
|
1060
1061
|
var i18n = (0, react_i18next_1.useTranslation)('translation').i18n;
|
|
1062
|
+
console.log('selectedBlockId', selectedBlockId);
|
|
1061
1063
|
return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsx)(dynamicLayoutContext_1.dynamicLayoutContext.Provider, __assign({ value: {
|
|
1062
1064
|
device: device,
|
|
1063
1065
|
mode: mode,
|
|
@@ -1075,10 +1077,7 @@ var CompositionEditor = (0, react_1.forwardRef)(function CompositionEditorCanvas
|
|
|
1075
1077
|
} }, { 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
1078
|
'selected-grid-layout': editingSectionId === props.compositionData.id
|
|
1077
1079
|
}), 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
1080
|
width: customSectionStyles.width,
|
|
1081
|
-
// maxHeight: customSectionStyles.maxHeight,
|
|
1082
1081
|
fontSize: "".concat(16, "px")
|
|
1083
1082
|
}, 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
1083
|
// GROUP
|
|
@@ -127,6 +127,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
127
127
|
},
|
|
128
128
|
selectCBInBulk: function (blockIds) {
|
|
129
129
|
setBulkBlockIds(blockIds);
|
|
130
|
+
setSelectedBlockId('BULK');
|
|
130
131
|
},
|
|
131
132
|
selectGroup: function (groupBlockId) {
|
|
132
133
|
setBulkBlockIds([]);
|
|
@@ -474,7 +475,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
474
475
|
return;
|
|
475
476
|
}
|
|
476
477
|
setBulkBlockIds(newBulks);
|
|
477
|
-
setSelectedBlockId(
|
|
478
|
+
setSelectedBlockId('BULK');
|
|
478
479
|
var newBulkCBIds = newBulks
|
|
479
480
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
|
480
481
|
.filter(function (each) { return each !== null; });
|