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.
@@ -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
  });
@@ -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);
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "0.3.49",
3
+ "version": "0.3.50",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
package/release-note.md CHANGED
@@ -1,6 +1,7 @@
1
- # pds-dev-kit-web-test Release Notes
2
- ## [v0.3.49]
3
- ## 기준 pds-dev-kit-web 버전 @2.2.41
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
- * bulk의 index는 벌크 복사 시 맨뒤, 그외의 경우 맨앞
7
+ * CB-YOUTUBE AUTOPLAY 추가
@@ -1,3 +0,0 @@
1
- {
2
- "presets": ["es2015"]
3
- }