'Wordpress Gutenberg - Open the "Block Pattern Explorer" programmatically

I would like to open the « Patterns Explorer" programmatically when clicking on the "Add Block" button (screen-1).

By default, a click on this button opens the "Block Inserter" (screen-2). The composition explorer is located in the "Patterns" tab by clicking on "Expore ». (see screen-3 & screen-4)

I manage to open the "Block Inserter" programmatically with the following JS:

wp.data.dispatch('core/edit-post').setIsInserterOpened(true);

But I can't find anything to open "Block Pattern Explorer".

screens

screen-1 : https://i.stack.imgur.com/R4KPS.png

screen-2 : https://i.stack.imgur.com/C3CBL.png

screen-3 : https://i.stack.imgur.com/NI5gt.png

screen-4 : https://i.stack.imgur.com/OFyYH.jpg



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source