pds-dev-kit-web-test 2.5.295 → 2.5.297

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.
@@ -1030,27 +1030,23 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
1030
1030
  }
1031
1031
  return ((0, jsx_runtime_1.jsx)("div", __assign({ className: (0, clsx_1.clsx)({
1032
1032
  'react-grid-item-selected': selectedBlockId === (0, group_1.formatCbIdToBlockId)(matchedCB.id)
1033
- }) }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, clsx_1.clsx)({
1033
+ }), onClick: function (e) {
1034
+ e.stopPropagation();
1035
+ console.dir(e.target);
1036
+ if (isInBulk) {
1037
+ clickOneCBInBulk(matchedCB.id);
1038
+ return;
1039
+ }
1040
+ onClickCB(matchedCB.id);
1041
+ }, onContextMenu: function (e) {
1042
+ e.stopPropagation();
1043
+ e.preventDefault();
1044
+ onContextMenuCB(matchedCB.id, e);
1045
+ } }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: (0, clsx_1.clsx)({
1034
1046
  'grid-item-child': true
1035
1047
  }), style: {
1036
1048
  width: '100%',
1037
1049
  height: '100%'
1038
- }, onClick: function (e) {
1039
- var _a;
1040
- e.stopPropagation();
1041
- var target = e.target;
1042
- if ((_a = target.parentElement) === null || _a === void 0 ? void 0 : _a.classList.contains('not-editable-grid-item')) {
1043
- return;
1044
- }
1045
- if (isInBulk) {
1046
- clickOneCBInBulk(matchedCB.id);
1047
- return;
1048
- }
1049
- onClickCB(matchedCB.id);
1050
- }, onContextMenu: function (e) {
1051
- e.stopPropagation();
1052
- e.preventDefault();
1053
- onContextMenuCB(matchedCB.id, e);
1054
1050
  } }, { children: (0, jsx_runtime_1.jsxs)(ErrorBoundary_1.ErrorBoundary, { children: [(0, jsx_runtime_1.jsx)(ComponentBlockMatcher_1.default, { cbProps: matchedCB, device: device, rowHeight: rowHeight, index: index }), each.x < 0 && (0, jsx_runtime_1.jsx)("div", __assign({ className: "error-start-x" }, { children: "X" })), each.y < 0 && (0, jsx_runtime_1.jsx)("div", __assign({ className: "error-start-y" }, { children: "Y" })), (device === 'MOBILE' ? each.x + each.w > 8 : each.x + each.w > 24) && ((0, jsx_runtime_1.jsx)("div", __assign({ className: "error-cols" }, { children: "C" }))), each.h < 0 && (0, jsx_runtime_1.jsx)("div", __assign({ className: "error-rows" }, { children: "R" })), (each.x < 0 ||
1055
1051
  each.y < 0 ||
1056
1052
  each.x + each.w > (device === 'MOBILE' ? 8 : 24) ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.295",
3
+ "version": "2.5.297",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",