pds-dev-kit-web-test 0.3.50 → 0.3.51

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.
@@ -41,7 +41,7 @@ type ActionHandlerPayload = {
41
41
  id: number;
42
42
  };
43
43
  '@CUSTOMSECTION/CB_RIGHT_CLICKED': {
44
- id: number;
44
+ id: number | 'group';
45
45
  e: React.MouseEvent;
46
46
  };
47
47
  '@CUSTOMSECTION/SECTION_CLICKED': {
@@ -381,7 +381,10 @@ var CommentList = (0, react_1.forwardRef)(function CustomSection(props, ref) {
381
381
  }
382
382
  var matchedCB = componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.find(function (cb) { return cb.id.toString() === each.i; });
383
383
  if (each.i === 'group' && each.groupLayouts) {
384
- return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "iamgroup", onClick: function (e) { return e.stopPropagation(); } }, { children: (0, jsx_runtime_1.jsx)(WidthProvidedRGL, __assign({ cols: each.w, allowOverlap: true, layout: each.groupLayouts, rowHeight: rowHeight, containerPadding: [0, 0], margin: [10, 10], isDraggable: false, isResizable: false, style: {
384
+ return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "iamgroup", onClick: function (e) { return e.stopPropagation(); }, onContextMenu: function (e) {
385
+ e.stopPropagation();
386
+ onContextMenuCB('group', e);
387
+ } }, { children: (0, jsx_runtime_1.jsx)(WidthProvidedRGL, __assign({ cols: each.w, allowOverlap: true, layout: each.groupLayouts, rowHeight: rowHeight, containerPadding: [0, 0], margin: [10, 10], isDraggable: false, isResizable: false, style: {
385
388
  width: '100%'
386
389
  } }, { children: (_a = each.groupLayouts) === null || _a === void 0 ? void 0 : _a.map(function (layoutItem, index, array) {
387
390
  var matchedCB = componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.find(function (cb) { return cb.id.toString() === layoutItem.i; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "0.3.50",
3
+ "version": "0.3.51",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",