@@ -4,7 +4,7 @@ Namespace: `core/block-editor`.
44
55## Selectors
66
7- <!-- START TOKEN(Autogenerated selectors|../../../../ packages/block-editor/src/store/selectors.js) -->
7+ <!-- START TOKEN(Autogenerated selectors|../../../packages/block-editor/src/store/selectors.js) -->
88
99<a name =" areInnerBlocksControlled " href =" #areInnerBlocksControlled " >#</a > ** areInnerBlocksControlled**
1010
@@ -705,11 +705,11 @@ Returns the defined block template
705705
706706_ Parameters_
707707
708- - _ state_ ` boolean ` :
708+ - _ state_ ` boolean ` :
709709
710710_ Returns_
711711
712- - ` ?Array ` : Block Template
712+ - ` ?Array ` : Block Template.
713713
714714<a name =" getTemplateLock " href =" #getTemplateLock " >#</a > ** getTemplateLock**
715715
@@ -1027,17 +1027,31 @@ Returns whether the blocks matches the template or not.
10271027
10281028_ Parameters_
10291029
1030- - _ state_ ` boolean ` :
1030+ - _ state_ ` boolean ` :
10311031
10321032_ Returns_
10331033
10341034- ` ?boolean ` : Whether the template is valid or not.
10351035
1036- <!-- END TOKEN(Autogenerated selectors|../../../../packages/block-editor/src/store/selectors.js) -->
1036+ <a name =" wasBlockJustInserted " href =" #wasBlockJustInserted " >#</a > ** wasBlockJustInserted**
1037+
1038+ Tells if the block with the passed clientId was just inserted.
1039+
1040+ _ Parameters_
1041+
1042+ - _ state_ ` Object ` : Global application state.
1043+ - _ clientId_ ` Object ` : Client Id of the block.
1044+ - _ source_ ` ?string ` : Optional insertion source of the block.
1045+
1046+ _ Returns_
1047+
1048+ - ` boolean ` : True if the block matches the last block inserted from the specified source.
1049+
1050+ <!-- END TOKEN(Autogenerated selectors|../../../packages/block-editor/src/store/selectors.js) -->
10371051
10381052## Actions
10391053
1040- <!-- START TOKEN(Autogenerated actions|../../../../ packages/block-editor/src/store/actions.js) -->
1054+ <!-- START TOKEN(Autogenerated actions|../../../packages/block-editor/src/store/actions.js) -->
10411055
10421056<a name =" clearSelectedBlock " href =" #clearSelectedBlock " >#</a > ** clearSelectedBlock**
10431057
@@ -1053,8 +1067,8 @@ Generator that triggers an action used to duplicate a list of blocks.
10531067
10541068_ Parameters_
10551069
1056- - _ clientIds_ ` string[] ` :
1057- - _ updateSelection_ ` boolean ` :
1070+ - _ clientIds_ ` string[] ` :
1071+ - _ updateSelection_ ` boolean ` :
10581072
10591073<a name =" enterFormattedText " href =" #enterFormattedText " >#</a > ** enterFormattedText**
10601074
@@ -1095,15 +1109,15 @@ Generator used to insert an empty block before a given block.
10951109
10961110_ Parameters_
10971111
1098- - _ clientId_ ` string ` :
1112+ - _ clientId_ ` string ` :
10991113
11001114<a name =" insertBeforeBlock " href =" #insertBeforeBlock " >#</a > ** insertBeforeBlock**
11011115
11021116Generator used to insert an empty block after a given block.
11031117
11041118_ Parameters_
11051119
1106- - _ clientId_ ` string ` :
1120+ - _ clientId_ ` string ` :
11071121
11081122<a name =" insertBlock " href =" #insertBlock " >#</a > ** insertBlock**
11091123
@@ -1116,6 +1130,7 @@ _Parameters_
11161130- _ index_ ` ?number ` : Index at which block should be inserted.
11171131- _ rootClientId_ ` ?string ` : Optional root client ID of block list on which to insert.
11181132- _ updateSelection_ ` ?boolean ` : If true block selection will be updated. If false, block selection will not change. Defaults to true.
1133+ - _ meta_ ` ?Object ` : Optional Meta values to be passed to the action object.
11191134
11201135_ Returns_
11211136
@@ -1131,7 +1146,7 @@ _Parameters_
11311146- _ blocks_ ` Object[] ` : Block objects to insert.
11321147- _ index_ ` ?number ` : Index at which block should be inserted.
11331148- _ rootClientId_ ` ?string ` : Optional root client ID of block list on which to insert.
1134- - _ updateSelection_ ` ?boolean ` : If true block selection will be updated. If false, block selection will not change. Defaults to true.
1149+ - _ updateSelection_ ` ?boolean ` : If true block selection will be updated. If false, block selection will not change. Defaults to true.
11351150- _ initialPosition_ ` 0|-1|null ` : Initial focus position. Setting it to null prevent focusing the inserted block.
11361151- _ meta_ ` ?Object ` : Optional Meta values to be passed to the action object.
11371152
@@ -1406,6 +1421,7 @@ _Parameters_
14061421
14071422- _ rootClientId_ ` ?string ` : Optional root client ID of block list on which to insert.
14081423- _ index_ ` ?number ` : Index at which block should be inserted.
1424+ - _ \_\_ unstableOptions_ ` Object ` : Wether or not to show an inserter button.
14091425
14101426_ Returns_
14111427
@@ -1570,4 +1586,5 @@ _Parameters_
15701586
15711587- _ blocks_ ` Array ` : Array of blocks.
15721588
1573- <!-- END TOKEN(Autogenerated actions|../../../../packages/block-editor/src/store/actions.js) -->
1589+
1590+ <!-- END TOKEN(Autogenerated actions|../../../packages/block-editor/src/store/actions.js) -->
0 commit comments