@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.
- package/CHANGELOG.md +2 -0
- package/build/components/autocomplete/index.cjs +1 -2
- package/build/components/autocomplete/index.cjs.map +3 -3
- package/build/components/block-list/block-crash-warning.cjs +4 -2
- package/build/components/block-list/block-crash-warning.cjs.map +2 -2
- package/build/components/block-list/block-html.cjs +6 -2
- package/build/components/block-list/block-html.cjs.map +2 -2
- package/build/components/block-mover/button.cjs +4 -3
- package/build/components/block-mover/button.cjs.map +2 -2
- package/build/components/block-mover/index.cjs +1 -8
- package/build/components/block-mover/index.cjs.map +2 -2
- package/build/components/copy-handler/index.cjs.map +2 -2
- package/build/components/iframe/get-compatibility-styles.cjs +1 -1
- package/build/components/iframe/get-compatibility-styles.cjs.map +2 -2
- package/build/components/inserter/media-tab/hooks.cjs +1 -1
- package/build/components/inserter/media-tab/hooks.cjs.map +2 -2
- package/build/components/link-control/link-preview.cjs +3 -1
- package/build/components/link-control/link-preview.cjs.map +2 -2
- package/build/components/link-control/search-input.cjs +1 -1
- package/build/components/link-control/search-input.cjs.map +2 -2
- package/build/components/link-picker/link-preview.cjs +2 -1
- package/build/components/link-picker/link-preview.cjs.map +3 -3
- package/build/components/preset-input-control/index.cjs +7 -4
- package/build/components/preset-input-control/index.cjs.map +2 -2
- package/build/components/rich-text/event-listeners/index.cjs.map +2 -2
- package/build/components/rich-text/index.cjs +1 -1
- package/build/components/rich-text/index.cjs.map +2 -2
- package/build/components/rich-text/input-event.cjs +3 -3
- package/build/components/rich-text/input-event.cjs.map +2 -2
- package/build/components/spacing-sizes-control/utils.cjs +1 -1
- package/build/components/spacing-sizes-control/utils.cjs.map +2 -2
- package/build/components/use-on-block-drop/index.cjs +1 -1
- package/build/components/use-on-block-drop/index.cjs.map +2 -2
- package/build/components/use-paste-styles/index.cjs +2 -2
- package/build/components/use-paste-styles/index.cjs.map +2 -2
- package/build/components/writing-flow/use-selection-observer.cjs +23 -1
- package/build/components/writing-flow/use-selection-observer.cjs.map +2 -2
- package/build/hooks/block-style-variation.cjs +5 -6
- package/build/hooks/block-style-variation.cjs.map +3 -3
- package/build/hooks/index.cjs +2 -2
- package/build/hooks/index.cjs.map +2 -2
- package/build/hooks/style.cjs +54 -52
- package/build/hooks/style.cjs.map +2 -2
- package/build/private-apis.cjs +1 -1
- package/build/private-apis.cjs.map +1 -1
- package/build/store/actions.cjs +0 -8
- package/build/store/actions.cjs.map +2 -2
- package/build/store/reducer.cjs +52 -53
- package/build/store/reducer.cjs.map +2 -2
- package/build/store/selectors.cjs +12 -13
- package/build/store/selectors.cjs.map +2 -2
- package/build/store/utils.cjs +1 -1
- package/build/store/utils.cjs.map +2 -2
- package/build/utils/pasting.cjs +1 -1
- package/build/utils/pasting.cjs.map +2 -2
- package/build-module/components/autocomplete/index.mjs +1 -2
- package/build-module/components/autocomplete/index.mjs.map +2 -2
- package/build-module/components/block-list/block-crash-warning.mjs +4 -2
- package/build-module/components/block-list/block-crash-warning.mjs.map +2 -2
- package/build-module/components/block-list/block-html.mjs +7 -3
- package/build-module/components/block-list/block-html.mjs.map +2 -2
- package/build-module/components/block-mover/button.mjs +4 -3
- package/build-module/components/block-mover/button.mjs.map +2 -2
- package/build-module/components/block-mover/index.mjs +1 -8
- package/build-module/components/block-mover/index.mjs.map +2 -2
- package/build-module/components/copy-handler/index.mjs.map +2 -2
- package/build-module/components/iframe/get-compatibility-styles.mjs +1 -1
- package/build-module/components/iframe/get-compatibility-styles.mjs.map +2 -2
- package/build-module/components/inserter/media-tab/hooks.mjs +1 -1
- package/build-module/components/inserter/media-tab/hooks.mjs.map +2 -2
- package/build-module/components/link-control/link-preview.mjs +3 -1
- package/build-module/components/link-control/link-preview.mjs.map +2 -2
- package/build-module/components/link-control/search-input.mjs +1 -1
- package/build-module/components/link-control/search-input.mjs.map +2 -2
- package/build-module/components/link-picker/link-preview.mjs +2 -1
- package/build-module/components/link-picker/link-preview.mjs.map +2 -2
- package/build-module/components/preset-input-control/index.mjs +7 -4
- package/build-module/components/preset-input-control/index.mjs.map +2 -2
- package/build-module/components/rich-text/event-listeners/index.mjs.map +2 -2
- package/build-module/components/rich-text/index.mjs +2 -2
- package/build-module/components/rich-text/index.mjs.map +2 -2
- package/build-module/components/rich-text/input-event.mjs +2 -2
- package/build-module/components/rich-text/input-event.mjs.map +2 -2
- package/build-module/components/spacing-sizes-control/utils.mjs +1 -1
- package/build-module/components/spacing-sizes-control/utils.mjs.map +2 -2
- package/build-module/components/use-on-block-drop/index.mjs +1 -1
- package/build-module/components/use-on-block-drop/index.mjs.map +2 -2
- package/build-module/components/use-paste-styles/index.mjs +2 -2
- package/build-module/components/use-paste-styles/index.mjs.map +2 -2
- package/build-module/components/writing-flow/use-selection-observer.mjs +23 -1
- package/build-module/components/writing-flow/use-selection-observer.mjs.map +2 -2
- package/build-module/hooks/block-style-variation.mjs +4 -5
- package/build-module/hooks/block-style-variation.mjs.map +2 -2
- package/build-module/hooks/index.mjs +2 -2
- package/build-module/hooks/index.mjs.map +2 -2
- package/build-module/hooks/style.mjs +54 -52
- package/build-module/hooks/style.mjs.map +2 -2
- package/build-module/private-apis.mjs +2 -2
- package/build-module/private-apis.mjs.map +1 -1
- package/build-module/store/actions.mjs +0 -8
- package/build-module/store/actions.mjs.map +2 -2
- package/build-module/store/reducer.mjs +52 -53
- package/build-module/store/reducer.mjs.map +2 -2
- package/build-module/store/selectors.mjs +12 -13
- package/build-module/store/selectors.mjs.map +2 -2
- package/build-module/store/utils.mjs +1 -1
- package/build-module/store/utils.mjs.map +2 -2
- package/build-module/utils/pasting.mjs +1 -1
- package/build-module/utils/pasting.mjs.map +2 -2
- package/build-style/style-rtl.css +0 -7
- package/build-style/style.css +0 -7
- package/package.json +38 -39
- package/src/autocompleters/style.scss +0 -8
- package/src/components/autocomplete/index.js +1 -2
- package/src/components/block-draggable/test/helpers.native.js +1 -1
- package/src/components/block-list/block-crash-warning.js +3 -1
- package/src/components/block-list/block-crash-warning.native.js +3 -1
- package/src/components/block-list/block-html.js +13 -3
- package/src/components/block-mover/button.js +7 -4
- package/src/components/block-mover/index.js +1 -8
- package/src/components/copy-handler/index.js +1 -0
- package/src/components/iframe/get-compatibility-styles.js +1 -1
- package/src/components/inserter/media-tab/hooks.js +1 -1
- package/src/components/link-control/README.md +2 -2
- package/src/components/link-control/link-preview.js +3 -1
- package/src/components/link-control/search-input.js +1 -1
- package/src/components/link-picker/link-preview.js +2 -1
- package/src/components/preset-input-control/index.js +10 -4
- package/src/components/preset-input-control/test/index.js +70 -0
- package/src/components/rich-text/event-listeners/index.js +1 -0
- package/src/components/rich-text/index.js +1 -1
- package/src/components/rich-text/index.native.js +1 -1
- package/src/components/rich-text/input-event.js +1 -1
- package/src/components/rich-text/input-event.native.js +1 -1
- package/src/components/rich-text/native/index.native.js +18 -17
- package/src/components/spacing-sizes-control/utils.js +1 -1
- package/src/components/use-on-block-drop/index.js +1 -1
- package/src/components/use-paste-styles/index.js +2 -2
- package/src/components/writing-flow/use-selection-observer.js +39 -1
- package/src/hooks/block-style-variation.js +3 -4
- package/src/hooks/index.js +1 -1
- package/src/hooks/style.js +75 -61
- package/src/private-apis.js +2 -2
- package/src/store/actions.js +0 -8
- package/src/store/reducer.js +62 -67
- package/src/store/selectors.js +31 -21
- package/src/store/test/private-selectors.js +44 -41
- package/src/store/test/reducer.js +159 -88
- package/src/store/test/registry-selectors.js +1 -1
- package/src/store/test/selectors.js +265 -200
- package/src/store/utils.js +1 -1
- package/src/utils/pasting.js +1 -1
- package/build/autocompleters/link.cjs +0 -81
- package/build/autocompleters/link.cjs.map +0 -7
- package/build-module/autocompleters/link.mjs +0 -50
- package/build-module/autocompleters/link.mjs.map +0 -7
- package/src/autocompleters/link.js +0 -63
package/src/store/selectors.js
CHANGED
|
@@ -1747,14 +1747,23 @@ const canInsertBlockTypeUnmemoized = (
|
|
|
1747
1747
|
return false;
|
|
1748
1748
|
}
|
|
1749
1749
|
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
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 ||
|
|
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
|
-
|
|
1766
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
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
|
-
|
|
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
|
|
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'
|
|
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'
|
|
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'
|
|
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
|
|
1400
|
-
|
|
1401
|
-
|
|
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
|
};
|