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

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;
@@ -164,6 +164,18 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
164
164
  return;
165
165
  }
166
166
  if (shortcutKeyMode === 'MANUAL_BULK_BREAK') {
167
+ if (selectedBlockId) {
168
+ setSelectedBlockId(null);
169
+ sectionActionHandler &&
170
+ sectionActionHandler({
171
+ type: '@CUSTOMSECTION/BULK_DISMISSED',
172
+ payload: {
173
+ message: 'MANUAL_BULK_BREAK_OR_ESC',
174
+ editingGroupBlock: editingGroupBlock
175
+ }
176
+ });
177
+ return;
178
+ }
167
179
  if (bulkBlockIds.length > 0) {
168
180
  setBulkBlockIds([]);
169
181
  setSelectedBlockId(null);
@@ -171,15 +183,24 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
171
183
  sectionActionHandler({
172
184
  type: '@CUSTOMSECTION/BULK_DISMISSED',
173
185
  payload: {
174
- message: 'MANUAL_BULK_BREAK_OR_ESC'
186
+ message: 'MANUAL_BULK_BREAK_OR_ESC',
187
+ editingGroupBlock: editingGroupBlock
175
188
  }
176
189
  });
177
190
  return;
178
191
  }
179
192
  if (editingGroupBlock !== 'ROOT') {
180
193
  setEditingGroupBlock('ROOT');
194
+ sectionActionHandler &&
195
+ sectionActionHandler({
196
+ type: '@CUSTOMSECTION/BULK_DISMISSED',
197
+ payload: {
198
+ message: 'MANUAL_BULK_BREAK_OR_ESC',
199
+ editingGroupBlock: 'ROOT'
200
+ }
201
+ });
202
+ return;
181
203
  }
182
- return;
183
204
  }
184
205
  }, [shortcutKeyMode, setSelectedBlockId]);
185
206
  (0, react_1.useLayoutEffect)(function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-dev-kit-web-test",
3
- "version": "2.5.116",
3
+ "version": "2.5.118",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",