pds-dev-kit-web-test 2.5.118 → 2.5.120
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,28 +164,43 @@ 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
|
-
|
170
|
+
if (editingGroupBlock === 'ROOT') {
|
171
|
+
setSelectedBlockId(null);
|
172
|
+
}
|
169
173
|
sectionActionHandler &&
|
170
174
|
sectionActionHandler({
|
171
|
-
type: '@CUSTOMSECTION/
|
175
|
+
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
172
176
|
payload: {
|
173
|
-
|
174
|
-
|
177
|
+
block: {
|
178
|
+
blockId: editingGroupBlock,
|
179
|
+
type: 'GROUP_BLOCK',
|
180
|
+
workDir: (_a = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _a !== void 0 ? _a : 'NOT-FOUND',
|
181
|
+
childrenBlockIds: (_b = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock)) !== null && _b !== void 0 ? _b : [],
|
182
|
+
childrenCBIds: (_c = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock)) !== null && _c !== void 0 ? _c : []
|
183
|
+
}
|
175
184
|
}
|
176
185
|
});
|
177
186
|
return;
|
178
187
|
}
|
179
188
|
if (bulkBlockIds.length > 0) {
|
180
189
|
setBulkBlockIds([]);
|
181
|
-
|
190
|
+
if (editingGroupBlock === 'ROOT') {
|
191
|
+
setSelectedBlockId(null);
|
192
|
+
}
|
182
193
|
sectionActionHandler &&
|
183
194
|
sectionActionHandler({
|
184
|
-
type: '@CUSTOMSECTION/
|
195
|
+
type: '@CUSTOMSECTION/BLOCK_CLICKED',
|
185
196
|
payload: {
|
186
|
-
|
187
|
-
|
197
|
+
block: {
|
198
|
+
blockId: editingGroupBlock,
|
199
|
+
type: 'GROUP_BLOCK',
|
200
|
+
workDir: (_d = (0, group_1.getBlockWorkDirPath)(newblock, editingGroupBlock)) !== null && _d !== void 0 ? _d : 'NOT-FOUND',
|
201
|
+
childrenBlockIds: (_e = (0, group_1.findDirectChildrenBlockIds)(newblock, editingGroupBlock)) !== null && _e !== void 0 ? _e : [],
|
202
|
+
childrenCBIds: (_f = (0, group_1.findDirectChildrenCbIds)(newblock, editingGroupBlock)) !== null && _f !== void 0 ? _f : []
|
203
|
+
}
|
188
204
|
}
|
189
205
|
});
|
190
206
|
return;
|