Skip to content

Commit 6a0a806

Browse files
committed
Don't export the new reducers
1 parent 23f034d commit 6a0a806

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

packages/block-editor/src/store/private-actions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ export function unsetBlockEditingMode( clientId = '' ) {
118118
* Yields action objects used in signalling that the blocks corresponding to
119119
* the set of specified client IDs are to be removed.
120120
*
121+
* Compared to `removeBlocks`, this private interface exposes an additional
122+
* parameter; see `forceRemove`.
123+
*
121124
* @param {string|string[]} clientIds Client IDs of blocks to remove.
122125
* @param {boolean} selectPrevious True if the previous block
123126
* or the immediate parent

packages/block-editor/src/store/reducer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ export function isSelectionEnabled( state = true, action ) {
14781478
*
14791479
* @return {Object|false} Data for removal prompt display, if any.
14801480
*/
1481-
export function removalPromptData( state = false, action ) {
1481+
function removalPromptData( state = false, action ) {
14821482
switch ( action.type ) {
14831483
case 'DISPLAY_REMOVAL_PROMPT':
14841484
const { clientIds, selectPrevious, blockNamesForPrompt } = action;
@@ -1502,7 +1502,7 @@ export function removalPromptData( state = false, action ) {
15021502
*
15031503
* @return {boolean} Updated state.
15041504
*/
1505-
export function isRemovalPromptSupported( state = false, action ) {
1505+
function isRemovalPromptSupported( state = false, action ) {
15061506
switch ( action.type ) {
15071507
case 'TOGGLE_REMOVAL_PROMPT_SUPPORT':
15081508
return action.status;

0 commit comments

Comments
 (0)