pds-dev-kit-web-test 2.5.68 → 2.5.69

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.
@@ -77,10 +77,10 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
77
77
  var componentBlocks = props.componentBlocks, jsonProperties = props.jsonProperties;
78
78
  var sectionPedigree = jsonProperties === null || jsonProperties === void 0 ? void 0 : jsonProperties.pedigree;
79
79
  var _c = (0, react_1.useState)(sectionPedigree), pedigreeState = _c[0], setPedigreeState = _c[1];
80
- var _d = (0, react_1.useState)((0, group_1.mapComponentBlockIdsToBlockIds)(sectionPedigree)), blockIdMap = _d[0], setBlockIdMap = _d[1];
80
+ var _d = (0, react_1.useState)((0, group_1.mapComponentBlockIdsToBlockIds)(sectionPedigree.children)), blockIdMap = _d[0], setBlockIdMap = _d[1];
81
81
  (0, react_1.useEffect)(function () {
82
82
  setPedigreeState(sectionPedigree);
83
- setBlockIdMap((0, group_1.mapComponentBlockIdsToBlockIds)(sectionPedigree));
83
+ setBlockIdMap((0, group_1.mapComponentBlockIdsToBlockIds)(sectionPedigree.children));
84
84
  }, [sectionPedigree]);
85
85
  var _e = jsonProperties, _f = _e.data, CB_PLACEMENT_PROP_SECTION = _f.CB_PLACEMENT_PROP_SECTION, CB_LAYOUT_PROP_PADDING = _f.CB_LAYOUT_PROP_PADDING, CB_CONTENT_PROP_SECTION = _f.CB_CONTENT_PROP_SECTION, zOrders = _e.zOrders;
86
86
  var _g = (0, react_1.useState)(null), selectedBlockId = _g[0], setSelectedBlockId = _g[1];
@@ -194,7 +194,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
194
194
  }
195
195
  }, [selectedBlockId, shortcutKeyMode, sectionActionHandler, setSelectedBlockId]);
196
196
  var makeAllInOneGroup = function () {
197
- var allRootChildIds = (0, group_1.findAllChildrenIds)(pedigreeState, editingGroupBlock, 'current');
197
+ var allRootChildIds = (0, group_1.findAllChildrenIds)(pedigreeState.children, editingGroupBlock, 'current');
198
198
  setBulkBlockIds(allRootChildIds);
199
199
  };
200
200
  var _o = (0, util_1.parseCustomSectionPlacement)({
@@ -239,7 +239,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
239
239
  blockId: 'BULK',
240
240
  childrenBlockIds: newBulkBlockIds,
241
241
  childrenCBIds: newBulkCBIds,
242
- workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, blockId)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
242
+ workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock.children, blockId)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
243
243
  }
244
244
  }
245
245
  });
@@ -276,7 +276,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
276
276
  blockId: blockId,
277
277
  type: 'COMPONENT_BLOCK',
278
278
  cbId: id,
279
- workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, blockId)) !== null && _b !== void 0 ? _b : 'NOT-FOUND'
279
+ workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock.children, blockId)) !== null && _b !== void 0 ? _b : 'NOT-FOUND'
280
280
  }
281
281
  }
282
282
  });
@@ -365,7 +365,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
365
365
  blockId: blockId,
366
366
  cbId: numberId,
367
367
  type: 'COMPONENT_BLOCK',
368
- workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, blockId)) !== null && _b !== void 0 ? _b : 'NOT-FOUND'
368
+ workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock.children, blockId)) !== null && _b !== void 0 ? _b : 'NOT-FOUND'
369
369
  }
370
370
  }
371
371
  });
@@ -505,7 +505,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
505
505
  blockId: oneLastBlockId,
506
506
  cbId: cbId,
507
507
  type: 'COMPONENT_BLOCK',
508
- workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, blockId)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
508
+ workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock.children, blockId)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
509
509
  }
510
510
  }
511
511
  });
@@ -561,7 +561,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
561
561
  blockId: oneLastBlockId,
562
562
  type: 'COMPONENT_BLOCK',
563
563
  cbId: blockIdMap.BLOCK_ID[oneLastBlockId],
564
- workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, oneLastBlockId)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
564
+ workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock.children, oneLastBlockId)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
565
565
  }
566
566
  }
567
567
  });
@@ -581,7 +581,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
581
581
  type: 'BULK',
582
582
  childrenBlockIds: newBulkBlockIds_1,
583
583
  childrenCBIds: newBulkCBIds_1,
584
- workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, 'BULK')) !== null && _b !== void 0 ? _b : 'NOT-FOUND'
584
+ workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock.children, 'BULK')) !== null && _b !== void 0 ? _b : 'NOT-FOUND'
585
585
  }
586
586
  }
587
587
  });
@@ -604,7 +604,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
604
604
  type: 'BULK',
605
605
  childrenBlockIds: newBulkBlockIds_2,
606
606
  childrenCBIds: newBulkCBIds_2,
607
- workDir: (_c = (0, group_1.getBlockWorkDirPath)(newblock, 'BULK')) !== null && _c !== void 0 ? _c : 'NOT-FOUND'
607
+ workDir: (_c = (0, group_1.getBlockWorkDirPath)(newblock.children, 'BULK')) !== null && _c !== void 0 ? _c : 'NOT-FOUND'
608
608
  }
609
609
  }
610
610
  });
@@ -612,7 +612,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
612
612
  }
613
613
  setBulkBlockIds([]);
614
614
  setSelectedBlockId(id);
615
- var newBulkBlockIds = (0, group_1.findAllChildrenIds)(newblock, id, 'current');
615
+ var newBulkBlockIds = (0, group_1.findAllChildrenIds)(newblock.children, id, 'current');
616
616
  var newBulkCBIds = newBulkBlockIds
617
617
  .map(function (id) { return blockIdMap.BLOCK_ID[id]; })
618
618
  .filter(function (each) { return each !== undefined; });
@@ -623,7 +623,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
623
623
  block: {
624
624
  blockId: id,
625
625
  type: 'GROUP_BLOCK',
626
- workDir: (_d = (0, group_1.getBlockWorkDirPath)(newblock, id)) !== null && _d !== void 0 ? _d : 'NOT-FOUND',
626
+ workDir: (_d = (0, group_1.getBlockWorkDirPath)(newblock.children, id)) !== null && _d !== void 0 ? _d : 'NOT-FOUND',
627
627
  childrenBlockIds: newBulkBlockIds,
628
628
  childrenCBIds: newBulkCBIds
629
629
  }
@@ -664,7 +664,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
664
664
  // GROUP
665
665
  selectedGroupBlock: (_a = selectedBlockId === null || selectedBlockId === void 0 ? void 0 : selectedBlockId.toString()) !== null && _a !== void 0 ? _a : 'ROOT', editingGroupBlock: editingGroupBlock, blockStructure: newblock, bulkIds: bulkBlockIds, onDoubleClickGroup: onDoubleClickGroup, onClickGroup: onClickGroup, onDoubleClickOutsideGroup: onDoubleClickOutsideGroup, onContextGroup: onContextGroup }, { children: layouts[layoutByDevice].map(function (each, index) {
666
666
  var matchedCB = componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.find(function (cb) { return cb.id.toString() === each.i; });
667
- var isInBulk = bulkBlockIds.includes((0, group_1.getBlockIdByComponentId)(pedigreeState, Number(each.i)));
667
+ var isInBulk = bulkBlockIds.includes((0, group_1.getBlockIdByComponentId)(pedigreeState.children, Number(each.i)));
668
668
  if (!matchedCB) {
669
669
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
670
670
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.68",
3
+ "version": "2.5.69",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "lottie-react": "^2.3.1",
24
24
  "nuka-carousel": "^4.8.4",
25
25
  "publ-echo": "^0.0.99",
26
- "publ-echo-test": "^0.0.111",
26
+ "publ-echo-test": "^0.0.113",
27
27
  "react-hook-form": "^7.28.1",
28
28
  "react-i18next": "^11.12.0",
29
29
  "react-router-dom": "^5.2.0",