pds-dev-kit-web-test 2.5.115 → 2.5.117

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.
@@ -164,16 +164,26 @@ var CustomSection = (0, react_1.forwardRef)(function CustomSection(props, ref) {
164
164
  return;
165
165
  }
166
166
  if (shortcutKeyMode === 'MANUAL_BULK_BREAK') {
167
- setBulkBlockIds([]);
168
- setSelectedBlockId(null);
169
- sectionActionHandler &&
170
- sectionActionHandler({
171
- type: '@CUSTOMSECTION/BULK_DISMISSED',
172
- payload: {
173
- message: 'MANUAL_BULK_BREAK_OR_ESC'
174
- }
175
- });
176
- return;
167
+ if (selectedBlockId) {
168
+ setSelectedBlockId(null);
169
+ return;
170
+ }
171
+ if (bulkBlockIds.length > 0) {
172
+ setBulkBlockIds([]);
173
+ setSelectedBlockId(null);
174
+ sectionActionHandler &&
175
+ sectionActionHandler({
176
+ type: '@CUSTOMSECTION/BULK_DISMISSED',
177
+ payload: {
178
+ message: 'MANUAL_BULK_BREAK_OR_ESC'
179
+ }
180
+ });
181
+ return;
182
+ }
183
+ if (editingGroupBlock !== 'ROOT') {
184
+ setEditingGroupBlock('ROOT');
185
+ return;
186
+ }
177
187
  }
178
188
  }, [shortcutKeyMode, setSelectedBlockId]);
179
189
  (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.115",
3
+ "version": "2.5.117",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "dist/index.js",