pds-dev-kit-web-test 2.5.76 → 2.5.78

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.
@@ -45,6 +45,7 @@ type ActionHandlerPayload = {
45
45
  placeholder?: LayoutItem;
46
46
  e?: ResizeEventType;
47
47
  node?: HTMLElement;
48
+ blockId: string;
48
49
  };
49
50
  '@CUSTOMSECTION/BULK_DRAG_STOP': {
50
51
  layout: Layout;
@@ -62,6 +63,7 @@ type ActionHandlerPayload = {
62
63
  placeholder?: LayoutItem;
63
64
  e?: ResizeEventType;
64
65
  node?: HTMLElement;
66
+ blockId: string;
65
67
  };
66
68
  '@CUSTOMSECTION/CB_AUTO_FIT_CONTENT': {
67
69
  layout: Layout;
@@ -73,6 +75,7 @@ type ActionHandlerPayload = {
73
75
  details: {
74
76
  hadPaddingChanged: boolean;
75
77
  };
78
+ blockId: string;
76
79
  };
77
80
  '@CUSTOMSECTION/PLACEMENT_CHANGED': {
78
81
  layout: Layout;
@@ -375,7 +375,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
375
375
  if (sectionActionHandler && isIdNumber) {
376
376
  sectionActionHandler({
377
377
  type: '@CUSTOMSECTION/CB_DRAG_STOP',
378
- payload: props
378
+ payload: __assign(__assign({}, props), { blockId: blockId })
379
379
  });
380
380
  }
381
381
  };
@@ -396,7 +396,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
396
396
  if (sectionActionHandler && isIdNumber) {
397
397
  sectionActionHandler({
398
398
  type: '@CUSTOMSECTION/CB_RESIZE_STOP',
399
- payload: props
399
+ payload: __assign(__assign({}, props), { blockId: (0, group_1.formatCbIdToBlockId)(numberId) })
400
400
  });
401
401
  }
402
402
  };
@@ -417,7 +417,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
417
417
  if (sectionActionHandler && isIdNumber) {
418
418
  sectionActionHandler({
419
419
  type: '@CUSTOMSECTION/CB_AUTO_FIT_CONTENT',
420
- payload: __assign(__assign({}, props), { details: { hadPaddingChanged: props.hasPaddingChanged } })
420
+ payload: __assign(__assign({}, props), { details: { hadPaddingChanged: props.hasPaddingChanged }, blockId: (0, group_1.formatCbIdToBlockId)(numberId) })
421
421
  });
422
422
  }
423
423
  };
@@ -448,6 +448,10 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
448
448
  });
449
449
  };
450
450
  var onContextSection = function (e) {
451
+ if (editingGroupBlock !== 'ROOT') {
452
+ e.preventDefault();
453
+ return;
454
+ }
451
455
  if (!isEditMode) {
452
456
  return;
453
457
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.76",
3
+ "version": "2.5.78",
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.124",
26
+ "publ-echo-test": "^0.0.125",
27
27
  "react-hook-form": "^7.28.1",
28
28
  "react-i18next": "^11.12.0",
29
29
  "react-router-dom": "^5.2.0",