pds-dev-kit-web-test 2.5.117 → 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.
@@ -114,6 +114,7 @@ type ActionHandlerPayload = {
114
114
  };
115
115
  '@CUSTOMSECTION/BULK_DISMISSED': {
116
116
  message: string;
117
+ editingGroupBlock: string;
117
118
  };
118
119
  '@CUSTOMSECTION/COLLISION_NOT_FOUND': {
119
120
  message: string;
@@ -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,25 +164,79 @@ 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
+ });
189
+ sectionActionHandler &&
190
+ sectionActionHandler({
191
+ type: '@CUSTOMSECTION/BULK_DISMISSED',
192
+ payload: {
193
+ message: 'MANUAL_BULK_BREAK_OR_ESC',
194
+ editingGroupBlock: editingGroupBlock
195
+ }
196
+ });
169
197
  return;
170
198
  }
171
199
  if (bulkBlockIds.length > 0) {
172
200
  setBulkBlockIds([]);
173
- setSelectedBlockId(null);
201
+ if (editingGroupBlock === 'ROOT') {
202
+ setSelectedBlockId(null);
203
+ }
204
+ else {
205
+ setSelectedBlockId(editingGroupBlock);
206
+ }
174
207
  sectionActionHandler &&
175
208
  sectionActionHandler({
176
209
  type: '@CUSTOMSECTION/BULK_DISMISSED',
177
210
  payload: {
178
- message: 'MANUAL_BULK_BREAK_OR_ESC'
211
+ message: 'MANUAL_BULK_BREAK_OR_ESC',
212
+ editingGroupBlock: editingGroupBlock
213
+ }
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
+ }
179
226
  }
180
227
  });
181
228
  return;
182
229
  }
183
230
  if (editingGroupBlock !== 'ROOT') {
184
231
  setEditingGroupBlock('ROOT');
232
+ sectionActionHandler &&
233
+ sectionActionHandler({
234
+ type: '@CUSTOMSECTION/BULK_DISMISSED',
235
+ payload: {
236
+ message: 'MANUAL_BULK_BREAK_OR_ESC',
237
+ editingGroupBlock: 'ROOT'
238
+ }
239
+ });
185
240
  return;
186
241
  }
187
242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.117",
3
+ "version": "2.5.119",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",