pds-dev-kit-web-test 2.5.79 → 2.5.81
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.
@@ -85,8 +85,8 @@ type ActionHandlerPayload = {
|
|
85
85
|
block: BlockPayloadType;
|
86
86
|
};
|
87
87
|
'@CUSTOMSECTION/CB_RIGHT_CLICKED': {
|
88
|
-
id: number | 'BULK';
|
89
88
|
e: React.MouseEvent;
|
89
|
+
block: BlockPayloadType;
|
90
90
|
};
|
91
91
|
'@CUSTOMSECTION/SECTION_CLICKED': {
|
92
92
|
sectionId: number;
|
@@ -99,6 +99,8 @@ type ActionHandlerPayload = {
|
|
99
99
|
e: React.MouseEvent;
|
100
100
|
blockId: string;
|
101
101
|
isEditingGroup: boolean;
|
102
|
+
childrenCBIds: number[];
|
103
|
+
workdir: string;
|
102
104
|
};
|
103
105
|
'@CUSTOMSECTION/BULK_CREATED': {
|
104
106
|
message: string;
|
@@ -283,6 +283,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
283
283
|
});
|
284
284
|
};
|
285
285
|
var onContextMenuCB = function (id, e) {
|
286
|
+
var _a;
|
286
287
|
var blockId = (0, group_1.formatCbIdToBlockId)(id);
|
287
288
|
if (!isEditMode) {
|
288
289
|
return;
|
@@ -297,8 +298,13 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
297
298
|
sectionActionHandler({
|
298
299
|
type: '@CUSTOMSECTION/CB_RIGHT_CLICKED',
|
299
300
|
payload: {
|
300
|
-
|
301
|
-
|
301
|
+
e: e,
|
302
|
+
block: {
|
303
|
+
blockId: blockId,
|
304
|
+
cbId: id,
|
305
|
+
type: 'COMPONENT_BLOCK',
|
306
|
+
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, blockId)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
|
307
|
+
}
|
302
308
|
}
|
303
309
|
});
|
304
310
|
}
|
@@ -436,6 +442,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
436
442
|
});
|
437
443
|
};
|
438
444
|
var onContextGroup = function (e, blockId, isEditingGroup) {
|
445
|
+
var _a;
|
439
446
|
setSelectedBlockId(blockId);
|
440
447
|
sectionActionHandler &&
|
441
448
|
sectionActionHandler({
|
@@ -443,7 +450,9 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
443
450
|
payload: {
|
444
451
|
blockId: blockId,
|
445
452
|
e: e,
|
446
|
-
isEditingGroup: isEditingGroup
|
453
|
+
isEditingGroup: isEditingGroup,
|
454
|
+
workdir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, blockId)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
|
455
|
+
childrenCBIds: (0, group_1.findDirectChildrenCbIds)(newblock, blockId)
|
447
456
|
}
|
448
457
|
});
|
449
458
|
};
|