pds-dev-kit-web-test 0.3.49 → 0.3.51
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 +4 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/CustomSection.js +4 -5
- 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
|
@@ -41,7 +41,7 @@ type ActionHandlerPayload = {
|
|
|
41
41
|
id: number;
|
|
42
42
|
};
|
|
43
43
|
'@CUSTOMSECTION/CB_RIGHT_CLICKED': {
|
|
44
|
-
id: number;
|
|
44
|
+
id: number | 'group';
|
|
45
45
|
e: React.MouseEvent;
|
|
46
46
|
};
|
|
47
47
|
'@CUSTOMSECTION/SECTION_CLICKED': {
|
|
@@ -57,6 +57,9 @@ type ActionHandlerPayload = {
|
|
|
57
57
|
'@CUSTOMSECTION/COLLISION_NOT_FOUND': {
|
|
58
58
|
message: string;
|
|
59
59
|
};
|
|
60
|
+
'@CUSTOMSECTION/ESCAPE_ONE_FROM_GROUP': {
|
|
61
|
+
id: string;
|
|
62
|
+
};
|
|
60
63
|
};
|
|
61
64
|
type ActionMap<M extends {
|
|
62
65
|
[index: string]: any;
|
|
@@ -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
|
});
|
|
@@ -382,7 +381,10 @@ var CommentList = (0, react_1.forwardRef)(function CustomSection(props, ref) {
|
|
|
382
381
|
}
|
|
383
382
|
var matchedCB = componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.find(function (cb) { return cb.id.toString() === each.i; });
|
|
384
383
|
if (each.i === 'group' && each.groupLayouts) {
|
|
385
|
-
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "iamgroup", onClick: function (e) { return e.stopPropagation(); }
|
|
384
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "iamgroup", onClick: function (e) { return e.stopPropagation(); }, onContextMenu: function (e) {
|
|
385
|
+
e.stopPropagation();
|
|
386
|
+
onContextMenuCB('group', e);
|
|
387
|
+
} }, { children: (0, jsx_runtime_1.jsx)(WidthProvidedRGL, __assign({ cols: each.w, allowOverlap: true, layout: each.groupLayouts, rowHeight: rowHeight, containerPadding: [0, 0], margin: [10, 10], isDraggable: false, isResizable: false, style: {
|
|
386
388
|
width: '100%'
|
|
387
389
|
} }, { children: (_a = each.groupLayouts) === null || _a === void 0 ? void 0 : _a.map(function (layoutItem, index, array) {
|
|
388
390
|
var matchedCB = componentBlocks === null || componentBlocks === void 0 ? void 0 : componentBlocks.find(function (cb) { return cb.id.toString() === layoutItem.i; });
|
|
@@ -421,9 +423,6 @@ function keepSimilarOrderToPreventRerender(arr) {
|
|
|
421
423
|
if (groupIdx >= 0) {
|
|
422
424
|
var group = arrCopy.splice(groupIdx, 1)[0];
|
|
423
425
|
(_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
426
|
return __spreadArray([group], arrCopy, true);
|
|
428
427
|
}
|
|
429
428
|
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 추가
|