@wordpress/block-editor 10.0.4 → 10.0.5

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.
@@ -172,52 +172,77 @@
172
172
  /**
173
173
  * Cross-Block Selection
174
174
  */
175
+ @keyframes selection-overlay__fade-in-animation {
176
+ from {
177
+ opacity: 0;
178
+ }
179
+ to {
180
+ opacity: 0.4;
181
+ }
182
+ }
175
183
  .block-editor-block-list__layout {
176
184
  position: relative;
177
185
  }
178
186
  .block-editor-block-list__layout::selection {
179
187
  background: transparent;
180
188
  }
181
- .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after,
182
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
183
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected::after {
189
+ .has-multi-selection .block-editor-block-list__layout::selection {
190
+ background: transparent;
191
+ }
192
+ .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection {
193
+ background: transparent;
194
+ }
195
+ .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after {
196
+ content: "";
184
197
  position: absolute;
185
198
  z-index: 1;
186
199
  pointer-events: none;
187
- content: "";
188
200
  top: 1px;
201
+ left: 1px;
189
202
  bottom: 1px;
190
203
  right: 1px;
191
- left: 1px;
192
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
193
- border-radius: 1px;
204
+ background: var(--wp-admin-theme-color);
205
+ opacity: 0.4;
206
+ animation: selection-overlay__fade-in-animation 0.1s ease-out;
207
+ animation-fill-mode: forwards;
194
208
  outline: 2px solid transparent;
195
209
  }
196
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after,
197
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
198
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected::after {
199
- box-shadow: 0 0 0 1px #fff;
200
- }
201
- .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) .components-placeholder ::selection,
202
- .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,
203
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,
204
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,
205
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected .components-placeholder ::selection,
206
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection {
207
- background: transparent;
210
+ @media (prefers-reduced-motion: reduce) {
211
+ .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after {
212
+ animation-duration: 1ms;
213
+ animation-delay: 0s;
214
+ }
208
215
  }
209
- .has-multi-selection .block-editor-block-list__layout::selection {
210
- background: transparent;
216
+ .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,
217
+ .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected, .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected, .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected {
218
+ border-radius: 2px;
219
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
220
+ outline: 2px solid transparent;
211
221
  }
212
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after {
213
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
214
- outline: 1px solid transparent;
222
+ .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus {
223
+ outline: none;
215
224
  }
216
- .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected::after, .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected {
225
+ .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
226
+ content: "";
227
+ position: absolute;
228
+ z-index: 1;
229
+ pointer-events: none;
230
+ top: 1px;
231
+ left: 1px;
232
+ bottom: 1px;
233
+ right: 1px;
217
234
  box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
235
+ border-radius: 1px;
218
236
  outline: 2px solid transparent;
219
237
  }
220
- .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected::before {
238
+ .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
239
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff;
240
+ }
241
+ .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected {
242
+ box-shadow: none;
243
+ outline: none;
244
+ }
245
+ .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected::after {
221
246
  content: "";
222
247
  position: absolute;
223
248
  z-index: 0;
@@ -229,10 +254,7 @@
229
254
  border-radius: 2px;
230
255
  border-top: 4px solid #ccc;
231
256
  }
232
- .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected::after {
233
- content: none;
234
- }
235
- .block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected::before {
257
+ .block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected::after {
236
258
  border-color: var(--wp-admin-theme-color);
237
259
  }
238
260
  .has-multi-selection .block-editor-block-list__layout {
@@ -266,24 +288,6 @@
266
288
  /**
267
289
  * Notices
268
290
  */
269
- /**
270
- * Block Layout
271
- */
272
- /**
273
- * Block styles and alignments
274
- */
275
- }
276
- .block-editor-block-list__layout .block-editor-block-list__block.is-partially-selected::after {
277
- top: -0.5px;
278
- left: -0.5px;
279
- bottom: -0.5px;
280
- right: -0.5px;
281
- }
282
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected::after {
283
- top: 0;
284
- left: 0;
285
- bottom: 0;
286
- right: 0;
287
291
  }
288
292
  .block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * {
289
293
  z-index: 1;
@@ -302,43 +306,6 @@
302
306
  .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content {
303
307
  font-size: 13px;
304
308
  }
305
- .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus {
306
- outline: none;
307
- }
308
- .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
309
- position: absolute;
310
- z-index: 1;
311
- pointer-events: none;
312
- content: "";
313
- top: 1px;
314
- bottom: 1px;
315
- right: 1px;
316
- left: 1px;
317
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
318
- border-radius: 1px;
319
- outline: 2px solid transparent;
320
- }
321
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
322
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff;
323
- }
324
- .block-editor-block-list__layout .block-editor-block-list__block::after {
325
- content: "";
326
- pointer-events: none;
327
- position: absolute;
328
- top: 0;
329
- left: 0;
330
- bottom: 0;
331
- right: 0;
332
- border-radius: 2px;
333
- box-shadow: 0 0 0 0 transparent;
334
- transition: box-shadow 0.1s linear;
335
- }
336
- @media (prefers-reduced-motion: reduce) {
337
- .block-editor-block-list__layout .block-editor-block-list__block::after {
338
- transition-duration: 0s;
339
- transition-delay: 0s;
340
- }
341
- }
342
309
  .block-editor-block-list__layout .block-editor-block-list__block.has-warning {
343
310
  min-height: 48px;
344
311
  }
@@ -378,31 +345,19 @@
378
345
 
379
346
  .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered {
380
347
  cursor: default;
381
- }
382
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered::after {
383
- top: 1px;
384
- right: 1px;
385
- left: 1px;
386
- bottom: 1px;
387
- box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
388
- border-radius: 1px;
348
+ box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color);
349
+ border-radius: 2px;
389
350
  }
390
351
  .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected {
391
352
  cursor: default;
353
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
354
+ border-radius: 2px;
392
355
  }
393
356
  .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text {
394
357
  cursor: unset;
395
358
  }
396
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected::after {
397
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
398
- top: 1px;
399
- right: 1px;
400
- left: 1px;
401
- bottom: 1px;
402
- border-radius: 1px;
403
- }
404
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:focus::after {
405
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
359
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:focus {
360
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
406
361
  }
407
362
 
408
363
  .is-focus-mode .block-editor-block-list__block:not(.has-child-selected) {
@@ -1757,10 +1712,10 @@
1757
1712
  color: #000;
1758
1713
  }
1759
1714
 
1760
- .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child {
1715
+ .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child, .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child {
1761
1716
  pointer-events: none;
1762
1717
  }
1763
- .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child::after, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child::after {
1718
+ .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child::after, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child::after, .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child::after, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child::after {
1764
1719
  content: "";
1765
1720
  position: absolute;
1766
1721
  top: 0;
@@ -1771,7 +1726,7 @@
1771
1726
  border: 1px dashed currentColor;
1772
1727
  border-radius: 2px;
1773
1728
  }
1774
- .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter {
1729
+ .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter, .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child .block-editor-inserter {
1775
1730
  visibility: hidden;
1776
1731
  }
1777
1732
 
@@ -172,52 +172,77 @@
172
172
  /**
173
173
  * Cross-Block Selection
174
174
  */
175
+ @keyframes selection-overlay__fade-in-animation {
176
+ from {
177
+ opacity: 0;
178
+ }
179
+ to {
180
+ opacity: 0.4;
181
+ }
182
+ }
175
183
  .block-editor-block-list__layout {
176
184
  position: relative;
177
185
  }
178
186
  .block-editor-block-list__layout::selection {
179
187
  background: transparent;
180
188
  }
181
- .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after,
182
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
183
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected::after {
189
+ .has-multi-selection .block-editor-block-list__layout::selection {
190
+ background: transparent;
191
+ }
192
+ .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection, .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection {
193
+ background: transparent;
194
+ }
195
+ .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after {
196
+ content: "";
184
197
  position: absolute;
185
198
  z-index: 1;
186
199
  pointer-events: none;
187
- content: "";
188
200
  top: 1px;
201
+ right: 1px;
189
202
  bottom: 1px;
190
203
  left: 1px;
191
- right: 1px;
192
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
193
- border-radius: 1px;
204
+ background: var(--wp-admin-theme-color);
205
+ opacity: 0.4;
206
+ animation: selection-overlay__fade-in-animation 0.1s ease-out;
207
+ animation-fill-mode: forwards;
194
208
  outline: 2px solid transparent;
195
209
  }
196
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after,
197
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after,
198
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected::after {
199
- box-shadow: 0 0 0 1px #fff;
200
- }
201
- .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) .components-placeholder ::selection,
202
- .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,
203
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .components-placeholder ::selection,
204
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,
205
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected .components-placeholder ::selection,
206
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection {
207
- background: transparent;
210
+ @media (prefers-reduced-motion: reduce) {
211
+ .block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::after {
212
+ animation-duration: 1ms;
213
+ animation-delay: 0s;
214
+ }
208
215
  }
209
- .has-multi-selection .block-editor-block-list__layout::selection {
210
- background: transparent;
216
+ .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,
217
+ .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected, .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected, .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected {
218
+ border-radius: 2px;
219
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
220
+ outline: 2px solid transparent;
211
221
  }
212
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after {
213
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
214
- outline: 1px solid transparent;
222
+ .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus {
223
+ outline: none;
215
224
  }
216
- .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected::after, .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected {
225
+ .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
226
+ content: "";
227
+ position: absolute;
228
+ z-index: 1;
229
+ pointer-events: none;
230
+ top: 1px;
231
+ right: 1px;
232
+ bottom: 1px;
233
+ left: 1px;
217
234
  box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
235
+ border-radius: 1px;
218
236
  outline: 2px solid transparent;
219
237
  }
220
- .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected::before {
238
+ .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
239
+ box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff;
240
+ }
241
+ .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected {
242
+ box-shadow: none;
243
+ outline: none;
244
+ }
245
+ .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected::after {
221
246
  content: "";
222
247
  position: absolute;
223
248
  z-index: 0;
@@ -229,10 +254,7 @@
229
254
  border-radius: 2px;
230
255
  border-top: 4px solid #ccc;
231
256
  }
232
- .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected::after {
233
- content: none;
234
- }
235
- .block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected::before {
257
+ .block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected::after {
236
258
  border-color: var(--wp-admin-theme-color);
237
259
  }
238
260
  .has-multi-selection .block-editor-block-list__layout {
@@ -266,24 +288,6 @@
266
288
  /**
267
289
  * Notices
268
290
  */
269
- /**
270
- * Block Layout
271
- */
272
- /**
273
- * Block styles and alignments
274
- */
275
- }
276
- .block-editor-block-list__layout .block-editor-block-list__block.is-partially-selected::after {
277
- top: -0.5px;
278
- right: -0.5px;
279
- bottom: -0.5px;
280
- left: -0.5px;
281
- }
282
- .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted::after, .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted ~ .is-multi-selected::after {
283
- top: 0;
284
- right: 0;
285
- bottom: 0;
286
- left: 0;
287
291
  }
288
292
  .block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel * {
289
293
  z-index: 1;
@@ -302,43 +306,6 @@
302
306
  .block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content {
303
307
  font-size: 13px;
304
308
  }
305
- .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus {
306
- outline: none;
307
- }
308
- .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
309
- position: absolute;
310
- z-index: 1;
311
- pointer-events: none;
312
- content: "";
313
- top: 1px;
314
- bottom: 1px;
315
- left: 1px;
316
- right: 1px;
317
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
318
- border-radius: 1px;
319
- outline: 2px solid transparent;
320
- }
321
- .is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus::after {
322
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) #fff;
323
- }
324
- .block-editor-block-list__layout .block-editor-block-list__block::after {
325
- content: "";
326
- pointer-events: none;
327
- position: absolute;
328
- top: 0;
329
- right: 0;
330
- bottom: 0;
331
- left: 0;
332
- border-radius: 2px;
333
- box-shadow: 0 0 0 0 transparent;
334
- transition: box-shadow 0.1s linear;
335
- }
336
- @media (prefers-reduced-motion: reduce) {
337
- .block-editor-block-list__layout .block-editor-block-list__block::after {
338
- transition-duration: 0s;
339
- transition-delay: 0s;
340
- }
341
- }
342
309
  .block-editor-block-list__layout .block-editor-block-list__block.has-warning {
343
310
  min-height: 48px;
344
311
  }
@@ -378,31 +345,19 @@
378
345
 
379
346
  .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered {
380
347
  cursor: default;
381
- }
382
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered::after {
383
- top: 1px;
384
- left: 1px;
385
- right: 1px;
386
- bottom: 1px;
387
- box-shadow: 0 0 0 1px var(--wp-admin-theme-color);
388
- border-radius: 1px;
348
+ box-shadow: inset 0 0 0 1px var(--wp-admin-theme-color);
349
+ border-radius: 2px;
389
350
  }
390
351
  .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected {
391
352
  cursor: default;
353
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
354
+ border-radius: 2px;
392
355
  }
393
356
  .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text {
394
357
  cursor: unset;
395
358
  }
396
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected::after {
397
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
398
- top: 1px;
399
- left: 1px;
400
- right: 1px;
401
- bottom: 1px;
402
- border-radius: 1px;
403
- }
404
- .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:focus::after {
405
- box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
359
+ .is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:focus {
360
+ box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
406
361
  }
407
362
 
408
363
  .is-focus-mode .block-editor-block-list__block:not(.has-child-selected) {
@@ -1757,10 +1712,10 @@
1757
1712
  color: #000;
1758
1713
  }
1759
1714
 
1760
- .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child {
1715
+ .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child, .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child {
1761
1716
  pointer-events: none;
1762
1717
  }
1763
- .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child::after, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child::after {
1718
+ .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child::after, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child::after, .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child::after, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child::after {
1764
1719
  content: "";
1765
1720
  position: absolute;
1766
1721
  top: 0;
@@ -1771,7 +1726,7 @@
1771
1726
  border: 1px dashed currentColor;
1772
1727
  border-radius: 2px;
1773
1728
  }
1774
- .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter {
1729
+ .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-list-appender:only-child .block-editor-inserter, .is-layout-constrained.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child .block-editor-inserter, .is-layout-flow.block-editor-block-list__block:not(.is-selected) > .block-editor-block-list__layout > .block-list-appender:only-child .block-editor-inserter {
1775
1730
  visibility: hidden;
1776
1731
  }
1777
1732
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-editor",
3
- "version": "10.0.4",
3
+ "version": "10.0.5",
4
4
  "description": "Generic block editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -59,7 +59,6 @@
59
59
  "@wordpress/url": "^3.18.1",
60
60
  "@wordpress/warning": "^2.17.1",
61
61
  "@wordpress/wordcount": "^3.17.1",
62
- "change-case": "^4.1.2",
63
62
  "classnames": "^2.3.1",
64
63
  "colord": "^2.7.0",
65
64
  "diff": "^4.0.2",
@@ -79,5 +78,5 @@
79
78
  "publishConfig": {
80
79
  "access": "public"
81
80
  },
82
- "gitHead": "491b4b522dffb4d25aca066ec55500f456ac4aa3"
81
+ "gitHead": "06334a7bd943f2345f15b8d2f427721d6878e6c1"
83
82
  }
@@ -40,6 +40,7 @@ function useContentBlocks( blockTypes, block ) {
40
40
  const contenBlocksObjectAux = useMemo( () => {
41
41
  return blockTypes.reduce( ( result, blockType ) => {
42
42
  if (
43
+ blockType.name !== 'core/list-item' &&
43
44
  Object.entries( blockType.attributes ).some(
44
45
  ( [ , { __experimentalRole } ] ) =>
45
46
  __experimentalRole === 'content'
@@ -143,7 +144,6 @@ const BlockInspector = ( { showNoBlockSelectedMessage = true } ) => {
143
144
  getSelectedBlockCount,
144
145
  getBlockName,
145
146
  __unstableGetContentLockingParent,
146
- getTemplateLock,
147
147
  } = select( blockEditorStore );
148
148
 
149
149
  const _selectedBlockClientId = getSelectedBlockClientId();
@@ -157,12 +157,9 @@ const BlockInspector = ( { showNoBlockSelectedMessage = true } ) => {
157
157
  selectedBlockClientId: _selectedBlockClientId,
158
158
  selectedBlockName: _selectedBlockName,
159
159
  blockType: _blockType,
160
- topLevelLockedBlock:
161
- getTemplateLock( _selectedBlockClientId ) === 'contentOnly'
162
- ? _selectedBlockClientId
163
- : __unstableGetContentLockingParent(
164
- _selectedBlockClientId
165
- ),
160
+ topLevelLockedBlock: __unstableGetContentLockingParent(
161
+ _selectedBlockClientId
162
+ ),
166
163
  };
167
164
  }, [] );
168
165