pds-dev-kit-web-test 0.3.49 → 0.3.50
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.
- package/dist/src/sub/DynamicLayout/sectionActionTypes.d.ts +3 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +0 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js +7 -0
- package/package.json +1 -1
- package/release-note.md +5 -4
- package/webhook/node_modules/esrecurse/.babelrc +0 -3
|
@@ -106,7 +106,6 @@ var CommentList = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
106
106
|
var _a;
|
|
107
107
|
var filteredLayout = (0, useGroupDrag_2.filterItemsById)(parsedLayouts[layoutByDevice], cbIds);
|
|
108
108
|
var newGroupLayout = (0, utils_1.getGroupForMultiple)(parsedLayouts[layoutByDevice].filter(function (each) { return cbIds.includes(each.i); }));
|
|
109
|
-
newGroupLayout.keepInLastIndex = true;
|
|
110
109
|
filteredLayout.push(newGroupLayout);
|
|
111
110
|
return __assign(__assign({}, prev), (_a = {}, _a[layoutByDevice] = filteredLayout, _a));
|
|
112
111
|
});
|
|
@@ -421,9 +420,6 @@ function keepSimilarOrderToPreventRerender(arr) {
|
|
|
421
420
|
if (groupIdx >= 0) {
|
|
422
421
|
var group = arrCopy.splice(groupIdx, 1)[0];
|
|
423
422
|
(_a = group.groupLayouts) === null || _a === void 0 ? void 0 : _a.sort(function (a, b) { return Number(a.i) - Number(b.i); });
|
|
424
|
-
if (group.keepInLastIndex) {
|
|
425
|
-
return __spreadArray(__spreadArray([null], arrCopy, true), [group], false);
|
|
426
|
-
}
|
|
427
423
|
return __spreadArray([group], arrCopy, true);
|
|
428
424
|
}
|
|
429
425
|
return __spreadArray([null], arrCopy, true);
|
package/dist/src/sub/DynamicLayout/sections/CustomSection/hooks/useGroupDrag/useGroupDrag.js
CHANGED
|
@@ -94,6 +94,13 @@ function useGroupDrag(_a) {
|
|
|
94
94
|
currentLayoutCopy.push(escapedItem);
|
|
95
95
|
var newGroup = (0, utils_1.recalculatedGroup)(group);
|
|
96
96
|
currentLayoutCopy.splice(groupIdx, 1, newGroup);
|
|
97
|
+
sectionActionHandler &&
|
|
98
|
+
sectionActionHandler({
|
|
99
|
+
type: '@CUSTOMSECTION/ESCAPE_ONE_FROM_GROUP',
|
|
100
|
+
payload: {
|
|
101
|
+
id: id
|
|
102
|
+
}
|
|
103
|
+
});
|
|
97
104
|
return __assign(__assign({}, prev), (_a = {}, _a[layoutByDevice] = currentLayoutCopy, _a));
|
|
98
105
|
});
|
|
99
106
|
}
|
package/package.json
CHANGED
package/release-note.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
#
|
|
2
|
-
## [
|
|
3
|
-
##
|
|
1
|
+
# PDS-DEV-KIT-WEB Release Notes
|
|
2
|
+
## [v2.2.41]
|
|
3
|
+
## urgent|https://design.storybook.publ.biz/
|
|
4
|
+
|
|
4
5
|
### sub
|
|
5
6
|
* DynamicLayout
|
|
6
|
-
*
|
|
7
|
+
* CB-YOUTUBE AUTOPLAY 추가
|