pds-dev-kit-web-test 2.5.185 → 2.5.186

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.
@@ -154,23 +154,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
154
154
  return;
155
155
  }
156
156
  if (shortcutKeyMode === 'SELECT_ALL') {
157
- // if (componentBlocks?.length === 1) {
158
- // const blockId = formatCbIdToBlockId(componentBlocks[0].id);
159
- // setSelectedBlockId(blockId);
160
- // sectionActionHandler &&
161
- // sectionActionHandler({
162
- // type: '@CUSTOMSECTION/BLOCK_CLICKED',
163
- // payload: {
164
- // block: {
165
- // blockId,
166
- // type: '',
167
- // cbId: id,
168
- // workDir: getBlockWorkDirPath(newblock, editingGroupBlock) ?? 'NOT-FOUND'
169
- // }
170
- // }
171
- // });
172
- // return;
173
- // }
174
157
  makeAllInOneGroup();
175
158
  return;
176
159
  }
@@ -279,11 +262,15 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
279
262
  var makeAllInOneGroup = function () {
280
263
  var _a, _b, _c, _d, _e;
281
264
  var allRootChildIds = (0, group_1.findDirectChildrenBlockIds)(pedigreeState, editingGroupBlock);
265
+ console.log('allRootChildIds', allRootChildIds);
282
266
  if (allRootChildIds.length === 1) {
283
267
  var block = (0, group_1.findBlockByBlockId)(newblock, allRootChildIds[0]);
268
+ console.log('selected block', block);
284
269
  if (!block) {
285
270
  return;
286
271
  }
272
+ setSelectedBlockId(block.blockId);
273
+ setBulkBlockIds([]);
287
274
  if (block.type === 'COMPONENT_BLOCK') {
288
275
  sectionActionHandler &&
289
276
  sectionActionHandler({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.185",
3
+ "version": "2.5.186",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",