@wordpress/block-editor 15.16.0 → 15.17.0

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.
Files changed (157) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/build/components/autocomplete/index.cjs +1 -2
  3. package/build/components/autocomplete/index.cjs.map +3 -3
  4. package/build/components/block-list/block-crash-warning.cjs +4 -2
  5. package/build/components/block-list/block-crash-warning.cjs.map +2 -2
  6. package/build/components/block-list/block-html.cjs +6 -2
  7. package/build/components/block-list/block-html.cjs.map +2 -2
  8. package/build/components/block-mover/button.cjs +4 -3
  9. package/build/components/block-mover/button.cjs.map +2 -2
  10. package/build/components/block-mover/index.cjs +1 -8
  11. package/build/components/block-mover/index.cjs.map +2 -2
  12. package/build/components/copy-handler/index.cjs.map +2 -2
  13. package/build/components/iframe/get-compatibility-styles.cjs +1 -1
  14. package/build/components/iframe/get-compatibility-styles.cjs.map +2 -2
  15. package/build/components/inserter/media-tab/hooks.cjs +1 -1
  16. package/build/components/inserter/media-tab/hooks.cjs.map +2 -2
  17. package/build/components/link-control/link-preview.cjs +3 -1
  18. package/build/components/link-control/link-preview.cjs.map +2 -2
  19. package/build/components/link-control/search-input.cjs +1 -1
  20. package/build/components/link-control/search-input.cjs.map +2 -2
  21. package/build/components/link-picker/link-preview.cjs +2 -1
  22. package/build/components/link-picker/link-preview.cjs.map +3 -3
  23. package/build/components/preset-input-control/index.cjs +7 -4
  24. package/build/components/preset-input-control/index.cjs.map +2 -2
  25. package/build/components/rich-text/event-listeners/index.cjs.map +2 -2
  26. package/build/components/rich-text/index.cjs +1 -1
  27. package/build/components/rich-text/index.cjs.map +2 -2
  28. package/build/components/rich-text/input-event.cjs +3 -3
  29. package/build/components/rich-text/input-event.cjs.map +2 -2
  30. package/build/components/spacing-sizes-control/utils.cjs +1 -1
  31. package/build/components/spacing-sizes-control/utils.cjs.map +2 -2
  32. package/build/components/use-on-block-drop/index.cjs +1 -1
  33. package/build/components/use-on-block-drop/index.cjs.map +2 -2
  34. package/build/components/use-paste-styles/index.cjs +2 -2
  35. package/build/components/use-paste-styles/index.cjs.map +2 -2
  36. package/build/components/writing-flow/use-selection-observer.cjs +23 -1
  37. package/build/components/writing-flow/use-selection-observer.cjs.map +2 -2
  38. package/build/hooks/block-style-variation.cjs +5 -6
  39. package/build/hooks/block-style-variation.cjs.map +3 -3
  40. package/build/hooks/index.cjs +2 -2
  41. package/build/hooks/index.cjs.map +2 -2
  42. package/build/hooks/style.cjs +54 -52
  43. package/build/hooks/style.cjs.map +2 -2
  44. package/build/private-apis.cjs +1 -1
  45. package/build/private-apis.cjs.map +1 -1
  46. package/build/store/actions.cjs +0 -8
  47. package/build/store/actions.cjs.map +2 -2
  48. package/build/store/reducer.cjs +52 -53
  49. package/build/store/reducer.cjs.map +2 -2
  50. package/build/store/selectors.cjs +12 -13
  51. package/build/store/selectors.cjs.map +2 -2
  52. package/build/store/utils.cjs +1 -1
  53. package/build/store/utils.cjs.map +2 -2
  54. package/build/utils/pasting.cjs +1 -1
  55. package/build/utils/pasting.cjs.map +2 -2
  56. package/build-module/components/autocomplete/index.mjs +1 -2
  57. package/build-module/components/autocomplete/index.mjs.map +2 -2
  58. package/build-module/components/block-list/block-crash-warning.mjs +4 -2
  59. package/build-module/components/block-list/block-crash-warning.mjs.map +2 -2
  60. package/build-module/components/block-list/block-html.mjs +7 -3
  61. package/build-module/components/block-list/block-html.mjs.map +2 -2
  62. package/build-module/components/block-mover/button.mjs +4 -3
  63. package/build-module/components/block-mover/button.mjs.map +2 -2
  64. package/build-module/components/block-mover/index.mjs +1 -8
  65. package/build-module/components/block-mover/index.mjs.map +2 -2
  66. package/build-module/components/copy-handler/index.mjs.map +2 -2
  67. package/build-module/components/iframe/get-compatibility-styles.mjs +1 -1
  68. package/build-module/components/iframe/get-compatibility-styles.mjs.map +2 -2
  69. package/build-module/components/inserter/media-tab/hooks.mjs +1 -1
  70. package/build-module/components/inserter/media-tab/hooks.mjs.map +2 -2
  71. package/build-module/components/link-control/link-preview.mjs +3 -1
  72. package/build-module/components/link-control/link-preview.mjs.map +2 -2
  73. package/build-module/components/link-control/search-input.mjs +1 -1
  74. package/build-module/components/link-control/search-input.mjs.map +2 -2
  75. package/build-module/components/link-picker/link-preview.mjs +2 -1
  76. package/build-module/components/link-picker/link-preview.mjs.map +2 -2
  77. package/build-module/components/preset-input-control/index.mjs +7 -4
  78. package/build-module/components/preset-input-control/index.mjs.map +2 -2
  79. package/build-module/components/rich-text/event-listeners/index.mjs.map +2 -2
  80. package/build-module/components/rich-text/index.mjs +2 -2
  81. package/build-module/components/rich-text/index.mjs.map +2 -2
  82. package/build-module/components/rich-text/input-event.mjs +2 -2
  83. package/build-module/components/rich-text/input-event.mjs.map +2 -2
  84. package/build-module/components/spacing-sizes-control/utils.mjs +1 -1
  85. package/build-module/components/spacing-sizes-control/utils.mjs.map +2 -2
  86. package/build-module/components/use-on-block-drop/index.mjs +1 -1
  87. package/build-module/components/use-on-block-drop/index.mjs.map +2 -2
  88. package/build-module/components/use-paste-styles/index.mjs +2 -2
  89. package/build-module/components/use-paste-styles/index.mjs.map +2 -2
  90. package/build-module/components/writing-flow/use-selection-observer.mjs +23 -1
  91. package/build-module/components/writing-flow/use-selection-observer.mjs.map +2 -2
  92. package/build-module/hooks/block-style-variation.mjs +4 -5
  93. package/build-module/hooks/block-style-variation.mjs.map +2 -2
  94. package/build-module/hooks/index.mjs +2 -2
  95. package/build-module/hooks/index.mjs.map +2 -2
  96. package/build-module/hooks/style.mjs +54 -52
  97. package/build-module/hooks/style.mjs.map +2 -2
  98. package/build-module/private-apis.mjs +2 -2
  99. package/build-module/private-apis.mjs.map +1 -1
  100. package/build-module/store/actions.mjs +0 -8
  101. package/build-module/store/actions.mjs.map +2 -2
  102. package/build-module/store/reducer.mjs +52 -53
  103. package/build-module/store/reducer.mjs.map +2 -2
  104. package/build-module/store/selectors.mjs +12 -13
  105. package/build-module/store/selectors.mjs.map +2 -2
  106. package/build-module/store/utils.mjs +1 -1
  107. package/build-module/store/utils.mjs.map +2 -2
  108. package/build-module/utils/pasting.mjs +1 -1
  109. package/build-module/utils/pasting.mjs.map +2 -2
  110. package/build-style/style-rtl.css +0 -7
  111. package/build-style/style.css +0 -7
  112. package/package.json +38 -39
  113. package/src/autocompleters/style.scss +0 -8
  114. package/src/components/autocomplete/index.js +1 -2
  115. package/src/components/block-draggable/test/helpers.native.js +1 -1
  116. package/src/components/block-list/block-crash-warning.js +3 -1
  117. package/src/components/block-list/block-crash-warning.native.js +3 -1
  118. package/src/components/block-list/block-html.js +13 -3
  119. package/src/components/block-mover/button.js +7 -4
  120. package/src/components/block-mover/index.js +1 -8
  121. package/src/components/copy-handler/index.js +1 -0
  122. package/src/components/iframe/get-compatibility-styles.js +1 -1
  123. package/src/components/inserter/media-tab/hooks.js +1 -1
  124. package/src/components/link-control/README.md +2 -2
  125. package/src/components/link-control/link-preview.js +3 -1
  126. package/src/components/link-control/search-input.js +1 -1
  127. package/src/components/link-picker/link-preview.js +2 -1
  128. package/src/components/preset-input-control/index.js +10 -4
  129. package/src/components/preset-input-control/test/index.js +70 -0
  130. package/src/components/rich-text/event-listeners/index.js +1 -0
  131. package/src/components/rich-text/index.js +1 -1
  132. package/src/components/rich-text/index.native.js +1 -1
  133. package/src/components/rich-text/input-event.js +1 -1
  134. package/src/components/rich-text/input-event.native.js +1 -1
  135. package/src/components/rich-text/native/index.native.js +18 -17
  136. package/src/components/spacing-sizes-control/utils.js +1 -1
  137. package/src/components/use-on-block-drop/index.js +1 -1
  138. package/src/components/use-paste-styles/index.js +2 -2
  139. package/src/components/writing-flow/use-selection-observer.js +39 -1
  140. package/src/hooks/block-style-variation.js +3 -4
  141. package/src/hooks/index.js +1 -1
  142. package/src/hooks/style.js +75 -61
  143. package/src/private-apis.js +2 -2
  144. package/src/store/actions.js +0 -8
  145. package/src/store/reducer.js +62 -67
  146. package/src/store/selectors.js +31 -21
  147. package/src/store/test/private-selectors.js +44 -41
  148. package/src/store/test/reducer.js +159 -88
  149. package/src/store/test/registry-selectors.js +1 -1
  150. package/src/store/test/selectors.js +265 -200
  151. package/src/store/utils.js +1 -1
  152. package/src/utils/pasting.js +1 -1
  153. package/build/autocompleters/link.cjs +0 -81
  154. package/build/autocompleters/link.cjs.map +0 -7
  155. package/build-module/autocompleters/link.mjs +0 -50
  156. package/build-module/autocompleters/link.mjs.map +0 -7
  157. package/src/autocompleters/link.js +0 -63
@@ -1747,14 +1747,23 @@ const canInsertBlockTypeUnmemoized = (
1747
1747
  return false;
1748
1748
  }
1749
1749
 
1750
- // In content only mode, check if this container allows insertion.
1751
- // We need the `isParentSectionBlock` check because section blocks
1752
- // (synced patterns, contentOnly groups) have a `getBlockEditingMode`
1753
- // of 'default', not 'contentOnly' the 'contentOnly' mode is only
1754
- // set on their *children*.
1750
+ /*
1751
+ * In content only mode, check if this container allows insertion.
1752
+ * We need the `isParentSectionBlock` check because section blocks
1753
+ * (synced patterns, contentOnly groups) have a `getBlockEditingMode`
1754
+ * of 'default', not 'contentOnly' — the 'contentOnly' mode is only
1755
+ * set on their *children*.
1756
+ *
1757
+ * Also include `disabled` alongside `contentOnly`: structural inner blocks
1758
+ * (e.g. Column) inside a content-only section use `disabled` mode, and they
1759
+ * need the same default-block sibling rules so insertion stays aligned with
1760
+ * `canRemoveBlock`.
1761
+ */
1755
1762
  if (
1756
1763
  isWithinSection &&
1757
- ( isParentSectionBlock || blockEditingMode === 'contentOnly' ) &&
1764
+ ( isParentSectionBlock ||
1765
+ blockEditingMode === 'contentOnly' ||
1766
+ blockEditingMode === 'disabled' ) &&
1758
1767
  ! isContainerInsertableToInContentOnlyMode(
1759
1768
  state,
1760
1769
  blockName,
@@ -1762,8 +1771,11 @@ const canInsertBlockTypeUnmemoized = (
1762
1771
  )
1763
1772
  ) {
1764
1773
  const defaultBlockName = getDefaultBlockName();
1765
- // Allow inserting the default block anywhere that another default block already exists
1766
- // when in contentOnly mode.
1774
+ /*
1775
+ * Allow inserting the default block anywhere that another default block already exists
1776
+ * when in contentOnly mode. The same sibling rule applies when the parent is `disabled`
1777
+ * within a content-only section (see the condition above).
1778
+ */
1767
1779
  if ( blockName === defaultBlockName ) {
1768
1780
  const existingBlocks = getBlockOrder( state, rootClientId );
1769
1781
  const hasDefaultBlock = existingBlocks.some(
@@ -1980,9 +1992,9 @@ export function canRemoveBlock( state, clientId ) {
1980
1992
  if ( defaultBlocks.length > 1 ) {
1981
1993
  return true;
1982
1994
  }
1983
- } else {
1984
1995
  return false;
1985
1996
  }
1997
+ return false;
1986
1998
  }
1987
1999
 
1988
2000
  return rootBlockEditingMode !== 'disabled';
@@ -2624,7 +2636,7 @@ export function getDirectInsertBlock( state, rootClientId = null ) {
2624
2636
  return;
2625
2637
  }
2626
2638
  const { defaultBlock, directInsert } =
2627
- state.blockListSettings[ rootClientId ] ?? {};
2639
+ state.blockListSettings.get( rootClientId ) ?? {};
2628
2640
  if ( ! defaultBlock || ! directInsert ) {
2629
2641
  return;
2630
2642
  }
@@ -2857,7 +2869,7 @@ export const __experimentalGetPatternTransformItems = createRegistrySelector(
2857
2869
  * @return {?Object} Block settings of the block if set.
2858
2870
  */
2859
2871
  export function getBlockListSettings( state, clientId ) {
2860
- return state.blockListSettings[ clientId ];
2872
+ return state.blockListSettings.get( clientId );
2861
2873
  }
2862
2874
 
2863
2875
  /**
@@ -2895,16 +2907,14 @@ export function isLastBlockChangePersistent( state ) {
2895
2907
  */
2896
2908
  export const __experimentalGetBlockListSettingsForBlocks = createSelector(
2897
2909
  ( state, clientIds = [] ) => {
2898
- return clientIds.reduce( ( blockListSettingsForBlocks, clientId ) => {
2899
- if ( ! state.blockListSettings[ clientId ] ) {
2900
- return blockListSettingsForBlocks;
2910
+ const blockListSettingsForBlocks = {};
2911
+ for ( const clientId of clientIds ) {
2912
+ const settings = getBlockListSettings( state, clientId );
2913
+ if ( settings ) {
2914
+ blockListSettingsForBlocks[ clientId ] = settings;
2901
2915
  }
2902
-
2903
- return {
2904
- ...blockListSettingsForBlocks,
2905
- [ clientId ]: state.blockListSettings[ clientId ],
2906
- };
2907
- }, {} );
2916
+ }
2917
+ return blockListSettingsForBlocks;
2908
2918
  },
2909
2919
  ( state ) => [ state.blockListSettings ]
2910
2920
  );
@@ -3021,7 +3031,7 @@ export function isBlockHighlighted( state, clientId ) {
3021
3031
  * @return {boolean} True if the block has controlled inner blocks.
3022
3032
  */
3023
3033
  export function areInnerBlocksControlled( state, clientId ) {
3024
- return !! state.blocks.controlledInnerBlocks[ clientId ];
3034
+ return state.blocks.controlledInnerBlocks.has( clientId );
3025
3035
  }
3026
3036
 
3027
3037
  /**
@@ -131,13 +131,13 @@ describe( 'private selectors', () => {
131
131
  '9b9c5c3f-2e46-4f02-9e14-9fe9515b958f',
132
132
  ],
133
133
  ] ),
134
- blockEditingModes: new Map( [] ),
134
+ blockEditingModes: new Map(),
135
135
  },
136
- blockListSettings: {
137
- 'ef45d5fd-5234-4fd5-ac4f-c3736c7f9337': {},
138
- '9b9c5c3f-2e46-4f02-9e14-9fe9515b958f': {},
139
- },
140
- derivedBlockEditingModes: new Map( [] ),
136
+ blockListSettings: new Map( [
137
+ [ 'ef45d5fd-5234-4fd5-ac4f-c3736c7f9337', {} ],
138
+ [ '9b9c5c3f-2e46-4f02-9e14-9fe9515b958f', {} ],
139
+ ] ),
140
+ derivedBlockEditingModes: new Map(),
141
141
  };
142
142
 
143
143
  const hasContentRoleAttribute = jest.fn( () => false );
@@ -154,9 +154,9 @@ describe( 'private selectors', () => {
154
154
  ...baseState,
155
155
  blocks: {
156
156
  ...baseState.blocks,
157
- blockEditingModes: new Map( [] ),
157
+ blockEditingModes: new Map(),
158
158
  },
159
- derivedBlockEditingModes: new Map( [] ),
159
+ derivedBlockEditingModes: new Map(),
160
160
  };
161
161
  expect(
162
162
  isBlockSubtreeDisabled(
@@ -349,10 +349,10 @@ describe( 'private selectors', () => {
349
349
  ],
350
350
  ] ),
351
351
  },
352
- blockListSettings: {
353
- 'ef45d5fd-5234-4fd5-ac4f-c3736c7f9337': {},
354
- '9b9c5c3f-2e46-4f02-9e14-9fe9515b958f': {},
355
- },
352
+ blockListSettings: new Map( [
353
+ [ 'ef45d5fd-5234-4fd5-ac4f-c3736c7f9337', {} ],
354
+ [ '9b9c5c3f-2e46-4f02-9e14-9fe9515b958f', {} ],
355
+ ] ),
356
356
  };
357
357
  getEnabledClientIdsTree.registry = {
358
358
  select: jest.fn( () => ( {} ) ),
@@ -363,9 +363,9 @@ describe( 'private selectors', () => {
363
363
  ...baseState,
364
364
  blocks: {
365
365
  ...baseState.blocks,
366
- blockEditingModes: new Map( [] ),
366
+ blockEditingModes: new Map(),
367
367
  },
368
- derivedBlockEditingModes: new Map( [] ),
368
+ derivedBlockEditingModes: new Map(),
369
369
  };
370
370
  expect( getEnabledClientIdsTree( state ) ).toEqual( [
371
371
  {
@@ -404,9 +404,9 @@ describe( 'private selectors', () => {
404
404
  ...baseState,
405
405
  blocks: {
406
406
  ...baseState.blocks,
407
- blockEditingModes: new Map( [] ),
407
+ blockEditingModes: new Map(),
408
408
  },
409
- derivedBlockEditingModes: new Map( [] ),
409
+ derivedBlockEditingModes: new Map(),
410
410
  };
411
411
  expect(
412
412
  getEnabledClientIdsTree(
@@ -545,7 +545,7 @@ describe( 'private selectors', () => {
545
545
  [ 'ef45d5fd-5234-4fd5-ac4f-c3736c7f9337', 'disabled' ],
546
546
  [ '9b9c5c3f-2e46-4f02-9e14-9fe9515b958f', 'disabled' ],
547
547
  ] ),
548
- blockListSettings: {},
548
+ blockListSettings: new Map(),
549
549
  };
550
550
  expect(
551
551
  getEnabledBlockParents(
@@ -597,7 +597,7 @@ describe( 'private selectors', () => {
597
597
  derivedBlockEditingModes: new Map( [
598
598
  [ 'ef45d5fd-5234-4fd5-ac4f-c3736c7f9337', 'disabled' ],
599
599
  ] ),
600
- blockListSettings: {},
600
+ blockListSettings: new Map(),
601
601
  };
602
602
  expect(
603
603
  getEnabledBlockParents(
@@ -799,9 +799,9 @@ describe( 'private selectors', () => {
799
799
  ] ),
800
800
  },
801
801
  settings: {},
802
- blockListSettings: {
803
- 'parent-block': templateLock ? { templateLock } : {},
804
- },
802
+ blockListSettings: new Map( [
803
+ [ 'parent-block', templateLock ? { templateLock } : {} ],
804
+ ] ),
805
805
  } );
806
806
 
807
807
  it( 'returns false when block has no lock and no templateLock', () => {
@@ -852,9 +852,9 @@ describe( 'private selectors', () => {
852
852
  ] ),
853
853
  },
854
854
  settings: {},
855
- blockListSettings: {
856
- 'parent-block': templateLock ? { templateLock } : {},
857
- },
855
+ blockListSettings: new Map( [
856
+ [ 'parent-block', templateLock ? { templateLock } : {} ],
857
+ ] ),
858
858
  } );
859
859
 
860
860
  it( 'returns false when block has no lock and no templateLock', () => {
@@ -910,9 +910,9 @@ describe( 'private selectors', () => {
910
910
  ] ),
911
911
  },
912
912
  settings: {},
913
- blockListSettings: {
914
- 'parent-block': templateLock ? { templateLock } : {},
915
- },
913
+ blockListSettings: new Map( [
914
+ [ 'parent-block', templateLock ? { templateLock } : {} ],
915
+ ] ),
916
916
  } );
917
917
 
918
918
  it( 'returns false when block is not locked in any way', () => {
@@ -1395,12 +1395,15 @@ describe( 'private selectors', () => {
1395
1395
  attributes: new Map( [ [ clientId, attributes ] ] ),
1396
1396
  parents: new Map( [ [ clientId, rootClientId ] ] ),
1397
1397
  },
1398
- blockListSettings: {
1399
- [ clientId ]: templateLock ? { templateLock } : {},
1400
- '': rootTemplateLock
1401
- ? { templateLock: rootTemplateLock }
1402
- : {},
1403
- },
1398
+ blockListSettings: new Map( [
1399
+ [ clientId, templateLock ? { templateLock } : {} ],
1400
+ [
1401
+ '',
1402
+ rootTemplateLock
1403
+ ? { templateLock: rootTemplateLock }
1404
+ : {},
1405
+ ],
1406
+ ] ),
1404
1407
  settings:
1405
1408
  disableContentOnlyForUnsyncedPatterns !== undefined
1406
1409
  ? { disableContentOnlyForUnsyncedPatterns }
@@ -1470,7 +1473,7 @@ describe( 'private selectors', () => {
1470
1473
  [ 'inner-pattern', 'outer-pattern' ],
1471
1474
  ] ),
1472
1475
  },
1473
- blockListSettings: {},
1476
+ blockListSettings: new Map(),
1474
1477
  settings: {},
1475
1478
  editedContentOnlySection: undefined,
1476
1479
  };
@@ -1509,7 +1512,7 @@ describe( 'private selectors', () => {
1509
1512
  [ 'block-1', 'outer-pattern' ],
1510
1513
  ] ),
1511
1514
  },
1512
- blockListSettings: {},
1515
+ blockListSettings: new Map(),
1513
1516
  settings: {},
1514
1517
  editedContentOnlySection: 'outer-pattern',
1515
1518
  };
@@ -1535,7 +1538,7 @@ describe( 'private selectors', () => {
1535
1538
  [ 'pattern-b', '' ],
1536
1539
  ] ),
1537
1540
  },
1538
- blockListSettings: {},
1541
+ blockListSettings: new Map(),
1539
1542
  settings: {},
1540
1543
  editedContentOnlySection: 'pattern-a',
1541
1544
  };
@@ -1554,7 +1557,7 @@ describe( 'private selectors', () => {
1554
1557
  attributes: new Map( [ [ 'block-1', {} ] ] ),
1555
1558
  parents: new Map( [ [ 'block-1', '' ] ] ),
1556
1559
  },
1557
- blockListSettings: {},
1560
+ blockListSettings: new Map(),
1558
1561
  settings: {},
1559
1562
  editedContentOnlySection: undefined,
1560
1563
  };
@@ -1580,7 +1583,7 @@ describe( 'private selectors', () => {
1580
1583
  [ 'inner-block', 'pattern-block' ],
1581
1584
  ] ),
1582
1585
  },
1583
- blockListSettings: {},
1586
+ blockListSettings: new Map(),
1584
1587
  settings: {},
1585
1588
  editedContentOnlySection: undefined,
1586
1589
  };
@@ -1608,7 +1611,7 @@ describe( 'private selectors', () => {
1608
1611
  [ 'inner-block', 'pattern-block' ],
1609
1612
  ] ),
1610
1613
  },
1611
- blockListSettings: {},
1614
+ blockListSettings: new Map(),
1612
1615
  settings: {},
1613
1616
  editedContentOnlySection: 'pattern-block',
1614
1617
  };
@@ -1645,7 +1648,7 @@ describe( 'private selectors', () => {
1645
1648
  [ 'deep-block', 'nested-pattern' ],
1646
1649
  ] ),
1647
1650
  },
1648
- blockListSettings: {},
1651
+ blockListSettings: new Map(),
1649
1652
  settings: {},
1650
1653
  editedContentOnlySection: 'outer-pattern',
1651
1654
  };
@@ -1676,7 +1679,7 @@ describe( 'private selectors', () => {
1676
1679
  [ 'pattern-b', '' ],
1677
1680
  ] ),
1678
1681
  },
1679
- blockListSettings: {},
1682
+ blockListSettings: new Map(),
1680
1683
  settings: {},
1681
1684
  editedContentOnlySection: 'pattern-b',
1682
1685
  };