pds-dev-kit-web-test 2.5.185 → 2.5.188
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.
@@ -154,23 +154,6 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
154
154
|
return;
|
155
155
|
}
|
156
156
|
if (shortcutKeyMode === 'SELECT_ALL') {
|
157
|
-
// if (componentBlocks?.length === 1) {
|
158
|
-
// const blockId = formatCbIdToBlockId(componentBlocks[0].id);
|
159
|
-
// setSelectedBlockId(blockId);
|
160
|
-
// sectionActionHandler &&
|
161
|
-
// sectionActionHandler({
|
162
|
-
// type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
163
|
-
// payload: {
|
164
|
-
// block: {
|
165
|
-
// blockId,
|
166
|
-
// type: '',
|
167
|
-
// cbId: id,
|
168
|
-
// workDir: getBlockWorkDirPath(newblock, editingGroupBlock) ?? 'NOT-FOUND'
|
169
|
-
// }
|
170
|
-
// }
|
171
|
-
// });
|
172
|
-
// return;
|
173
|
-
// }
|
174
157
|
makeAllInOneGroup();
|
175
158
|
return;
|
176
159
|
}
|
@@ -258,6 +241,17 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
258
241
|
}
|
259
242
|
setBulkBlockIds(bulks);
|
260
243
|
setSelectedBlockId(null);
|
244
|
+
var newBulkCBIds = bulks
|
245
|
+
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
246
|
+
.filter(function (each) { return each !== null; });
|
247
|
+
var childrenCBIds = [];
|
248
|
+
if (newBulkCBIds.length === 0) {
|
249
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, bulks[0]);
|
250
|
+
childrenCBIds = oneCB ? [oneCB] : [];
|
251
|
+
}
|
252
|
+
else {
|
253
|
+
childrenCBIds = newBulkCBIds;
|
254
|
+
}
|
261
255
|
sectionActionHandler &&
|
262
256
|
sectionActionHandler({
|
263
257
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -267,9 +261,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
267
261
|
blockId: 'BULK',
|
268
262
|
childrenBlockIds: bulks,
|
269
263
|
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
|
270
|
-
childrenCBIds:
|
271
|
-
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
272
|
-
.filter(function (each) { return each !== null; })
|
264
|
+
childrenCBIds: childrenCBIds
|
273
265
|
}
|
274
266
|
}
|
275
267
|
});
|
@@ -284,6 +276,8 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
284
276
|
if (!block) {
|
285
277
|
return;
|
286
278
|
}
|
279
|
+
setSelectedBlockId(block.blockId);
|
280
|
+
setBulkBlockIds([]);
|
287
281
|
if (block.type === 'COMPONENT_BLOCK') {
|
288
282
|
sectionActionHandler &&
|
289
283
|
sectionActionHandler({
|
@@ -317,6 +311,17 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
317
311
|
return;
|
318
312
|
}
|
319
313
|
setBulkBlockIds(allRootChildIds);
|
314
|
+
var newBulkCBIds = allRootChildIds
|
315
|
+
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
316
|
+
.filter(function (each) { return each !== null; });
|
317
|
+
var childrenCBIds = [];
|
318
|
+
if (newBulkCBIds.length === 0) {
|
319
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, allRootChildIds[0]);
|
320
|
+
childrenCBIds = oneCB ? [oneCB] : [];
|
321
|
+
}
|
322
|
+
else {
|
323
|
+
childrenCBIds = newBulkCBIds;
|
324
|
+
}
|
320
325
|
sectionActionHandler &&
|
321
326
|
sectionActionHandler({
|
322
327
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -326,9 +331,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
326
331
|
blockId: 'BULK',
|
327
332
|
childrenBlockIds: allRootChildIds,
|
328
333
|
workDir: (_e = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _e !== void 0 ? _e : 'NOT-FOUND',
|
329
|
-
childrenCBIds:
|
330
|
-
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
331
|
-
.filter(function (each) { return each !== null; })
|
334
|
+
childrenCBIds: childrenCBIds
|
332
335
|
}
|
333
336
|
}
|
334
337
|
});
|
@@ -384,6 +387,14 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
384
387
|
var newBulkCBIds = newBulkBlockIds
|
385
388
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
386
389
|
.filter(function (each) { return each !== null; });
|
390
|
+
var childrenCBIds = [];
|
391
|
+
if (newBulkCBIds.length === 0) {
|
392
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, newBulkBlockIds[0]);
|
393
|
+
childrenCBIds = oneCB ? [oneCB] : [];
|
394
|
+
}
|
395
|
+
else {
|
396
|
+
childrenCBIds = newBulkCBIds;
|
397
|
+
}
|
387
398
|
sectionActionHandler &&
|
388
399
|
sectionActionHandler({
|
389
400
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -392,7 +403,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
392
403
|
type: 'BULK',
|
393
404
|
blockId: 'BULK',
|
394
405
|
childrenBlockIds: newBulkBlockIds,
|
395
|
-
childrenCBIds:
|
406
|
+
childrenCBIds: childrenCBIds,
|
396
407
|
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND'
|
397
408
|
}
|
398
409
|
}
|
@@ -406,6 +417,17 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
406
417
|
}
|
407
418
|
setBulkBlockIds(bulks);
|
408
419
|
setSelectedBlockId(null);
|
420
|
+
var newBulkCBIds = bulks
|
421
|
+
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
422
|
+
.filter(function (each) { return each !== null; });
|
423
|
+
var childrenCBIds = [];
|
424
|
+
if (newBulkCBIds.length === 0) {
|
425
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, bulks[0]);
|
426
|
+
childrenCBIds = oneCB ? [oneCB] : [];
|
427
|
+
}
|
428
|
+
else {
|
429
|
+
childrenCBIds = newBulkCBIds;
|
430
|
+
}
|
409
431
|
sectionActionHandler &&
|
410
432
|
sectionActionHandler({
|
411
433
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -415,9 +437,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
415
437
|
blockId: 'BULK',
|
416
438
|
childrenBlockIds: bulks,
|
417
439
|
workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND',
|
418
|
-
childrenCBIds:
|
419
|
-
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
420
|
-
.filter(function (each) { return each !== null; })
|
440
|
+
childrenCBIds: childrenCBIds
|
421
441
|
}
|
422
442
|
}
|
423
443
|
});
|
@@ -790,6 +810,14 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
790
810
|
var newBulkCBIds_1 = newBulkBlockIds_1
|
791
811
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
792
812
|
.filter(function (each) { return each !== null; });
|
813
|
+
var childrenCBIds_1 = [];
|
814
|
+
if (newBulkCBIds_1.length === 0) {
|
815
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, newBulkBlockIds_1[0]);
|
816
|
+
childrenCBIds_1 = oneCB ? [oneCB] : [];
|
817
|
+
}
|
818
|
+
else {
|
819
|
+
childrenCBIds_1 = newBulkCBIds_1;
|
820
|
+
}
|
793
821
|
setBulkBlockIds(newBulkBlockIds_1);
|
794
822
|
sectionActionHandler &&
|
795
823
|
sectionActionHandler({
|
@@ -799,7 +827,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
799
827
|
blockId: 'BULK',
|
800
828
|
type: 'BULK',
|
801
829
|
childrenBlockIds: newBulkBlockIds_1,
|
802
|
-
childrenCBIds:
|
830
|
+
childrenCBIds: childrenCBIds_1,
|
803
831
|
workDir: (_b = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : 'NOT-FOUND'
|
804
832
|
}
|
805
833
|
}
|
@@ -837,6 +865,14 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
837
865
|
.filter(function (each) { return each !== null; });
|
838
866
|
setBulkBlockIds(newBulkBlockIds_2);
|
839
867
|
setSelectedBlockId(null);
|
868
|
+
var childrenCBIds_2 = [];
|
869
|
+
if (newBulkCBIds_2.length === 0) {
|
870
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, newBulkBlockIds_2[0]);
|
871
|
+
childrenCBIds_2 = oneCB ? [oneCB] : [];
|
872
|
+
}
|
873
|
+
else {
|
874
|
+
childrenCBIds_2 = newBulkCBIds_2;
|
875
|
+
}
|
840
876
|
sectionActionHandler &&
|
841
877
|
sectionActionHandler({
|
842
878
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -845,7 +881,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
845
881
|
blockId: 'BULK',
|
846
882
|
type: 'BULK',
|
847
883
|
childrenBlockIds: newBulkBlockIds_2,
|
848
|
-
childrenCBIds:
|
884
|
+
childrenCBIds: childrenCBIds_2,
|
849
885
|
workDir: (_f = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _f !== void 0 ? _f : 'NOT-FOUND'
|
850
886
|
}
|
851
887
|
}
|
@@ -858,6 +894,14 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
858
894
|
var newBulkCBIds = newBulkBlockIds
|
859
895
|
.map(function (id) { return (0, group_1.formatBlockIdToCbId)(id); })
|
860
896
|
.filter(function (each) { return each !== null; });
|
897
|
+
var childrenCBIds = [];
|
898
|
+
if (newBulkCBIds.length === 0) {
|
899
|
+
var oneCB = (0, group_1.findOneComponentBlock)(newblock, newBulkBlockIds[0]);
|
900
|
+
childrenCBIds = oneCB ? [oneCB] : [];
|
901
|
+
}
|
902
|
+
else {
|
903
|
+
childrenCBIds = newBulkCBIds;
|
904
|
+
}
|
861
905
|
sectionActionHandler &&
|
862
906
|
sectionActionHandler({
|
863
907
|
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
@@ -867,7 +911,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
867
911
|
type: 'GROUP_BLOCK',
|
868
912
|
workDir: (_g = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _g !== void 0 ? _g : 'NOT-FOUND',
|
869
913
|
childrenBlockIds: newBulkBlockIds,
|
870
|
-
childrenCBIds:
|
914
|
+
childrenCBIds: childrenCBIds
|
871
915
|
}
|
872
916
|
}
|
873
917
|
});
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "pds-dev-kit-web-test",
|
3
|
-
"version": "2.5.
|
3
|
+
"version": "2.5.188",
|
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.
|
26
|
+
"publ-echo-test": "^0.0.164",
|
27
27
|
"react-hook-form": "^7.28.1",
|
28
28
|
"react-i18next": "^11.12.0",
|
29
29
|
"react-router-dom": "^5.2.0",
|