pds-dev-kit-web-test 0.3.43 → 0.3.44
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.
|
@@ -260,13 +260,6 @@ function CustomSection(props) {
|
|
|
260
260
|
}
|
|
261
261
|
var numberId = Number((_a = props.item) === null || _a === void 0 ? void 0 : _a.i);
|
|
262
262
|
var isIdNumber = !Number.isNaN(numberId);
|
|
263
|
-
if (hasLayoutPlacementChanged(item, prev)) {
|
|
264
|
-
setTimeout(function () {
|
|
265
|
-
// NOTE: to fix.
|
|
266
|
-
breakGroupCB();
|
|
267
|
-
}, 100);
|
|
268
|
-
return;
|
|
269
|
-
}
|
|
270
263
|
if (isIdNumber) {
|
|
271
264
|
if ((0, useGroupDrag_2.getGroupCB)(layouts[layoutByDevice])) {
|
|
272
265
|
setTimeout(function () {
|
|
@@ -276,6 +269,16 @@ function CustomSection(props) {
|
|
|
276
269
|
}
|
|
277
270
|
setSelectedCB(numberId);
|
|
278
271
|
}
|
|
272
|
+
if (isLayoutPlacementSame(item, prev)) {
|
|
273
|
+
sectionActionHandler &&
|
|
274
|
+
sectionActionHandler({
|
|
275
|
+
type: '@CUSTOMSECTION/CB_CLICKED',
|
|
276
|
+
payload: {
|
|
277
|
+
id: numberId
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
279
282
|
if (sectionActionHandler && isIdNumber) {
|
|
280
283
|
sectionActionHandler({
|
|
281
284
|
type: '@CUSTOMSECTION/CB_DRAG_STOP',
|
|
@@ -290,7 +293,7 @@ function CustomSection(props) {
|
|
|
290
293
|
}
|
|
291
294
|
var numberId = Number(item.i);
|
|
292
295
|
var isIdNumber = !Number.isNaN(numberId);
|
|
293
|
-
if (
|
|
296
|
+
if (isLayoutPlacementSame(item, prev)) {
|
|
294
297
|
return;
|
|
295
298
|
}
|
|
296
299
|
if (isIdNumber) {
|
|
@@ -407,7 +410,7 @@ function keepSimilarOrderToPreventRerender(arr) {
|
|
|
407
410
|
}
|
|
408
411
|
return __spreadArray([null], arrCopy.sort(function (a, b) { return Number(a.i) - Number(b.i); }), true);
|
|
409
412
|
}
|
|
410
|
-
function
|
|
413
|
+
function isLayoutPlacementSame(current, prev) {
|
|
411
414
|
if (!prev) {
|
|
412
415
|
return false;
|
|
413
416
|
}
|
|
@@ -39,7 +39,7 @@ function ComponentBlockMatcher(_a) {
|
|
|
39
39
|
case types_1.CB_ALL_CODES.CB_DIVIDER:
|
|
40
40
|
return (0, jsx_runtime_1.jsx)(Divider_1.default, __assign({}, propsWithValue, { index: index }));
|
|
41
41
|
case types_1.CB_ALL_CODES.CB_IMG:
|
|
42
|
-
return (
|
|
42
|
+
return (0, jsx_runtime_1.jsx)(Image_1.default, __assign({}, propsWithValue, { index: index }));
|
|
43
43
|
case types_1.CB_ALL_CODES.CB_TWITTER:
|
|
44
44
|
return (0, jsx_runtime_1.jsx)(Twitter_1.default, __assign({}, propsWithValue, { index: index }));
|
|
45
45
|
case types_1.CB_ALL_CODES.CB_YOUTUBE:
|