pds-dev-kit-web-test 2.5.99 → 2.5.100
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.
@@ -170,6 +170,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
170
170
|
}
|
171
171
|
}, [shortcutKeyMode, setSelectedBlockId]);
|
172
172
|
(0, react_1.useLayoutEffect)(function () {
|
173
|
+
var _a;
|
173
174
|
if (props.id !== editingSectionId) {
|
174
175
|
return;
|
175
176
|
}
|
@@ -181,19 +182,28 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
181
182
|
if (!selectedCBId) {
|
182
183
|
return;
|
183
184
|
}
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
185
|
+
var bulks = getCollisionGroupIds(selectedCBId);
|
186
|
+
if (selectedBlockId) {
|
187
|
+
bulks.push(selectedBlockId);
|
188
|
+
}
|
189
|
+
setBulkBlockIds(bulks);
|
190
|
+
setSelectedBlockId(null);
|
191
|
+
sectionActionHandler &&
|
192
|
+
sectionActionHandler({
|
193
|
+
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
194
|
+
payload: {
|
195
|
+
block: {
|
196
|
+
type: 'BULK',
|
197
|
+
blockId: 'BULK',
|
198
|
+
childrenBlockIds: bulks,
|
199
|
+
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, selectedBlockId)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
|
200
|
+
childrenCBIds: bulks
|
201
|
+
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
202
|
+
.filter(function (each) { return each !== null; })
|
203
|
+
}
|
204
|
+
}
|
205
|
+
});
|
206
|
+
return;
|
197
207
|
}
|
198
208
|
}, [selectedBlockId, shortcutKeyMode, sectionActionHandler, setSelectedBlockId]);
|
199
209
|
var makeAllInOneGroup = function () {
|
@@ -258,7 +268,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
258
268
|
return;
|
259
269
|
}
|
260
270
|
if (shortcutKeyMode === 'COLLISION_SELECT') {
|
261
|
-
// const selectedCBId = selectedBlockId ? formatBlockIdToCbId(selectedBlockId) : undefined;
|
262
271
|
var bulks = getCollisionGroupIds(id);
|
263
272
|
if (selectedBlockId) {
|
264
273
|
bulks.push(selectedBlockId);
|