pds-dev-kit-web-test 2.5.184 → 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.
| 
         @@ -141,7 +141,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) { 
     | 
|
| 
       141 
141 
     | 
    
         
             
                (0, react_1.useEffect)(function () {
         
     | 
| 
       142 
142 
     | 
    
         
             
                    if (editingSectionId !== props.id) {
         
     | 
| 
       143 
143 
     | 
    
         
             
                        setSelectedBlockId(null);
         
     | 
| 
       144 
     | 
    
         
            -
                        // breakGroupCB();
         
     | 
| 
       145 
144 
     | 
    
         
             
                        setBulkBlockIds([]);
         
     | 
| 
       146 
145 
     | 
    
         
             
                    }
         
     | 
| 
       147 
146 
     | 
    
         
             
                }, [editingSectionId]);
         
     | 
| 
         @@ -155,10 +154,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) { 
     | 
|
| 
       155 
154 
     | 
    
         
             
                        return;
         
     | 
| 
       156 
155 
     | 
    
         
             
                    }
         
     | 
| 
       157 
156 
     | 
    
         
             
                    if (shortcutKeyMode === 'SELECT_ALL') {
         
     | 
| 
       158 
     | 
    
         
            -
                        if ((componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.length) === 1) {
         
     | 
| 
       159 
     | 
    
         
            -
                            setSelectedBlockId((0, group_1.formatCbIdToBlockId)(componentBlocks[0].id));
         
     | 
| 
       160 
     | 
    
         
            -
                            return;
         
     | 
| 
       161 
     | 
    
         
            -
                        }
         
     | 
| 
       162 
157 
     | 
    
         
             
                        makeAllInOneGroup();
         
     | 
| 
       163 
158 
     | 
    
         
             
                        return;
         
     | 
| 
       164 
159 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -265,8 +260,49 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) { 
     | 
|
| 
       265 
260 
     | 
    
         
             
                    }
         
     | 
| 
       266 
261 
     | 
    
         
             
                }, [selectedBlockId, shortcutKeyMode, sectionActionHandler, setSelectedBlockId]);
         
     | 
| 
       267 
262 
     | 
    
         
             
                var makeAllInOneGroup = function () {
         
     | 
| 
       268 
     | 
    
         
            -
                    var _a;
         
     | 
| 
      
 263 
     | 
    
         
            +
                    var _a, _b, _c, _d, _e;
         
     | 
| 
       269 
264 
     | 
    
         
             
                    var allRootChildIds = (0, group_1.findDirectChildrenBlockIds)(pedigreeState, editingGroupBlock);
         
     | 
| 
      
 265 
     | 
    
         
            +
                    console.log('allRootChildIds', allRootChildIds);
         
     | 
| 
      
 266 
     | 
    
         
            +
                    if (allRootChildIds.length === 1) {
         
     | 
| 
      
 267 
     | 
    
         
            +
                        var block = (0, group_1.findBlockByBlockId)(newblock, allRootChildIds[0]);
         
     | 
| 
      
 268 
     | 
    
         
            +
                        console.log('selected block', block);
         
     | 
| 
      
 269 
     | 
    
         
            +
                        if (!block) {
         
     | 
| 
      
 270 
     | 
    
         
            +
                            return;
         
     | 
| 
      
 271 
     | 
    
         
            +
                        }
         
     | 
| 
      
 272 
     | 
    
         
            +
                        setSelectedBlockId(block.blockId);
         
     | 
| 
      
 273 
     | 
    
         
            +
                        setBulkBlockIds([]);
         
     | 
| 
      
 274 
     | 
    
         
            +
                        if (block.type === 'COMPONENT_BLOCK') {
         
     | 
| 
      
 275 
     | 
    
         
            +
                            sectionActionHandler &&
         
     | 
| 
      
 276 
     | 
    
         
            +
                                sectionActionHandler({
         
     | 
| 
      
 277 
     | 
    
         
            +
                                    type: '@CUSTOMSECTION/BLOCK_CLICKED',
         
     | 
| 
      
 278 
     | 
    
         
            +
                                    payload: {
         
     | 
| 
      
 279 
     | 
    
         
            +
                                        block: {
         
     | 
| 
      
 280 
     | 
    
         
            +
                                            blockId: block.blockId,
         
     | 
| 
      
 281 
     | 
    
         
            +
                                            type: block.type,
         
     | 
| 
      
 282 
     | 
    
         
            +
                                            cbId: block.componentBlockId,
         
     | 
| 
      
 283 
     | 
    
         
            +
                                            workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
         
     | 
| 
      
 284 
     | 
    
         
            +
                                        }
         
     | 
| 
      
 285 
     | 
    
         
            +
                                    }
         
     | 
| 
      
 286 
     | 
    
         
            +
                                });
         
     | 
| 
      
 287 
     | 
    
         
            +
                            return;
         
     | 
| 
      
 288 
     | 
    
         
            +
                        }
         
     | 
| 
      
 289 
     | 
    
         
            +
                        if (block.type === 'GROUP_BLOCK') {
         
     | 
| 
      
 290 
     | 
    
         
            +
                            sectionActionHandler &&
         
     | 
| 
      
 291 
     | 
    
         
            +
                                sectionActionHandler({
         
     | 
| 
      
 292 
     | 
    
         
            +
                                    type: '@CUSTOMSECTION/BLOCK_CLICKED',
         
     | 
| 
      
 293 
     | 
    
         
            +
                                    payload: {
         
     | 
| 
      
 294 
     | 
    
         
            +
                                        block: {
         
     | 
| 
      
 295 
     | 
    
         
            +
                                            blockId: block.blockId,
         
     | 
| 
      
 296 
     | 
    
         
            +
                                            type: 'GROUP_BLOCK',
         
     | 
| 
      
 297 
     | 
    
         
            +
                                            workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND',
         
     | 
| 
      
 298 
     | 
    
         
            +
                                            childrenBlockIds: (_c = (0, group_1.findDirectChildrenBlockIds)(newblock, block.blockId)) !== null && _c !== void 0 ? _c : [],
         
     | 
| 
      
 299 
     | 
    
         
            +
                                            childrenCBIds: (_d = (0, group_1.findDirectChildrenCbIds)(newblock, block.blockId)) !== null && _d !== void 0 ? _d : []
         
     | 
| 
      
 300 
     | 
    
         
            +
                                        }
         
     | 
| 
      
 301 
     | 
    
         
            +
                                    }
         
     | 
| 
      
 302 
     | 
    
         
            +
                                });
         
     | 
| 
      
 303 
     | 
    
         
            +
                        }
         
     | 
| 
      
 304 
     | 
    
         
            +
                        return;
         
     | 
| 
      
 305 
     | 
    
         
            +
                    }
         
     | 
| 
       270 
306 
     | 
    
         
             
                    setBulkBlockIds(allRootChildIds);
         
     | 
| 
       271 
307 
     | 
    
         
             
                    sectionActionHandler &&
         
     | 
| 
       272 
308 
     | 
    
         
             
                        sectionActionHandler({
         
     | 
| 
         @@ -276,7 +312,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) { 
     | 
|
| 
       276 
312 
     | 
    
         
             
                                    type: 'BULK',
         
     | 
| 
       277 
313 
     | 
    
         
             
                                    blockId: 'BULK',
         
     | 
| 
       278 
314 
     | 
    
         
             
                                    childrenBlockIds: allRootChildIds,
         
     | 
| 
       279 
     | 
    
         
            -
                                    workDir: ( 
     | 
| 
      
 315 
     | 
    
         
            +
                                    workDir: (_e = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _e !== void 0 ? _e : 'NOT-FOUND',
         
     | 
| 
       280 
316 
     | 
    
         
             
                                    childrenCBIds: allRootChildIds
         
     | 
| 
       281 
317 
     | 
    
         
             
                                        .map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
         
     | 
| 
       282 
318 
     | 
    
         
             
                                        .filter(function (each) { return each !== null; })
         
     |