pds-dev-kit-web-test 2.7.421 → 2.7.423

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.
@@ -583,20 +583,16 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
583
583
  if (!props.item) {
584
584
  return;
585
585
  }
586
- var blockKind = (0, group_1.getBlockIdKind)(props.item.i);
587
- if (!blockKind) {
588
- if (props.item.i === 'BULK') {
589
- // do bulk
590
- }
591
- return;
592
- }
593
- if (blockKind.type === 'CB') {
594
- onClickCB(Number(props.item.i));
595
- }
596
- if (blockKind.type === 'GB' && props.e) {
597
- var e = props.e;
598
- onClickGroup(e, blockKind.blockId);
599
- }
586
+ var blockType = props.item.i.startsWith('GB_') ? 'GROUP_BLOCK' : 'COMPONENT_BLOCK';
587
+ setSelectedBlockId(props.item.i);
588
+ setBulkBlockIds([]);
589
+ // if (blockType === 'COMPONENT_BLOCK') {
590
+ // onClickCB(Number(props.item.i));
591
+ // }
592
+ // if (blockType === 'GROUP_BLOCK' && props.e) {
593
+ // const { e } = props;
594
+ // onClickGroup(e as any, props.item.i);
595
+ // }
600
596
  sectionActionHandler &&
601
597
  sectionActionHandler({
602
598
  type: '@CUSTOMSECTION/CB_DRAG_START',
@@ -608,7 +604,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
608
604
  if (!isEditMode || !props.item) {
609
605
  return;
610
606
  }
611
- console.log('------ onDragStop -------', props);
612
607
  var item = props.item, prev = props.prev;
613
608
  var isShiftOn = shortcutKeyMode === 'BULK_SELECT' || shortcutKeyMode === 'COLLISION_SELECT';
614
609
  if (isLayoutPlacementSame(item, prev) && isShiftOn) {
@@ -1041,7 +1036,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
1041
1036
  var editableCBIDs = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock);
1042
1037
  var t = (0, react_i18next_1.useTranslation)('translation').t;
1043
1038
  var a = t('str_grid_height_variable');
1044
- console.log('here', a);
1045
1039
  return ((0, jsx_runtime_1.jsx)(ErrorBoundary_1.ErrorBoundary, { children: (0, jsx_runtime_1.jsxs)(gleStyles_1.S_gleStyles, __assign({ isBulkMode: shortcutKeyMode === 'BULK_SELECT', strKeys: { str_grid_height_variable: a } }, { children: [showSectionHiddenCover && (0, jsx_runtime_1.jsx)(S_HiddenCover_1.S_HiddenCover, {}), (0, jsx_runtime_1.jsx)(S_SectionWrapper, __assign({ ref: gleRef, "x-dlayout-section-type": "NO_NAME", onClick: onClickSection, onContextMenu: function (e) {
1046
1040
  e.stopPropagation();
1047
1041
  e.preventDefault();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.7.421",
3
+ "version": "2.7.423",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",