pds-dev-kit-web-test 2.5.118 → 2.5.119

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.
@@ -149,6 +149,7 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
149
149
  }, [editingSectionId]);
150
150
  // NOTE: 추후에 event를 외부에서 전달받게하거나, 아예 상태를 끌어올리거나 해야합니다.
151
151
  (0, react_1.useLayoutEffect)(function () {
152
+ var _a, _b, _c, _d, _e, _f;
152
153
  if (props.id !== editingSectionId) {
153
154
  return;
154
155
  }
@@ -163,9 +164,28 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
163
164
  makeAllInOneGroup();
164
165
  return;
165
166
  }
167
+ // esc
166
168
  if (shortcutKeyMode === 'MANUAL_BULK_BREAK') {
167
169
  if (selectedBlockId) {
168
- setSelectedBlockId(null);
170
+ if (editingGroupBlock === 'ROOT') {
171
+ setSelectedBlockId(null);
172
+ }
173
+ else {
174
+ setSelectedBlockId(editingGroupBlock);
175
+ }
176
+ sectionActionHandler &&
177
+ sectionActionHandler({
178
+ type: '@CUSTOMSECTION/BLOCK_CLICKED',
179
+ payload: {
180
+ block: {
181
+ blockId: editingGroupBlock,
182
+ type: 'GROUP_BLOCK',
183
+ workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
184
+ childrenBlockIds: (_b = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : [],
185
+ childrenCBIds: (_c = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock)) !== null && _c !== void 0 ? _c : []
186
+ }
187
+ }
188
+ });
169
189
  sectionActionHandler &&
170
190
  sectionActionHandler({
171
191
  type: '@CUSTOMSECTION/BULK_DISMISSED',
@@ -178,7 +198,12 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
178
198
  }
179
199
  if (bulkBlockIds.length > 0) {
180
200
  setBulkBlockIds([]);
181
- setSelectedBlockId(null);
201
+ if (editingGroupBlock === 'ROOT') {
202
+ setSelectedBlockId(null);
203
+ }
204
+ else {
205
+ setSelectedBlockId(editingGroupBlock);
206
+ }
182
207
  sectionActionHandler &&
183
208
  sectionActionHandler({
184
209
  type: '@CUSTOMSECTION/BULK_DISMISSED',
@@ -187,6 +212,19 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
187
212
  editingGroupBlock: editingGroupBlock
188
213
  }
189
214
  });
215
+ sectionActionHandler &&
216
+ sectionActionHandler({
217
+ type: '@CUSTOMSECTION/BLOCK_CLICKED',
218
+ payload: {
219
+ block: {
220
+ blockId: editingGroupBlock,
221
+ type: 'GROUP_BLOCK',
222
+ workDir: (_d = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _d !== void 0 ? _d : 'NOT-FOUND',
223
+ childrenBlockIds: (_e = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock)) !== null && _e !== void 0 ? _e : [],
224
+ childrenCBIds: (_f = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock)) !== null && _f !== void 0 ? _f : []
225
+ }
226
+ }
227
+ });
190
228
  return;
191
229
  }
192
230
  if (editingGroupBlock !== 'ROOT') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.118",
3
+ "version": "2.5.119",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",