Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart block appender #16708

Merged
merged 34 commits into from
Oct 29, 2019
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a1d158b
if thre is only one there is only one
draganescu Jul 22, 2019
1f5081b
made a new insertion point selector, some code review refactoring
draganescu Aug 3, 2019
06d44c1
better handling of inserter
draganescu Aug 3, 2019
05c1ebf
refactoring and named block insertion
draganescu Aug 3, 2019
525385c
updates to the appender
draganescu Sep 24, 2019
2e904e1
update snapshots
draganescu Sep 30, 2019
4d89b0b
update docs
draganescu Sep 30, 2019
d80fc7f
default inserter label is used in so many tests
draganescu Oct 1, 2019
55f3f95
fixed allowed blocks test
draganescu Oct 1, 2019
ec1eecc
snapshot updated
draganescu Oct 2, 2019
07b652c
better naming and removed the need for es-lint disabling
draganescu Oct 17, 2019
ce0ec9d
improved the inserter label construction
draganescu Oct 17, 2019
3bf7909
improved the doc of getTheOnlyAllowedItem selector
draganescu Oct 17, 2019
c977baf
reverting test patches becasue patching without understanding is bad,…
draganescu Oct 17, 2019
d2fda6e
moved getInsertionIndex out of selectos and back into each component …
draganescu Oct 18, 2019
157097b
docs generated
draganescu Oct 18, 2019
02edd01
added experimental labels to new selectors, added es-lint comment back
draganescu Oct 18, 2019
e451afd
updated docs
draganescu Oct 18, 2019
bb2bd63
Update packages/block-editor/src/store/selectors.js
draganescu Oct 24, 2019
97dac6e
Update packages/block-editor/src/store/selectors.js
draganescu Oct 24, 2019
134d182
refactored and fixed some coding errors
draganescu Oct 24, 2019
b2f709a
small code move
draganescu Oct 24, 2019
1a40731
small code move
draganescu Oct 24, 2019
7049dc4
removes aria attrs for autoinserted items
draganescu Oct 25, 2019
9910348
fixes typo, adds translators comment
draganescu Oct 25, 2019
4832f45
simplifies the intserter logic
draganescu Oct 25, 2019
36de754
fix for the simplification
draganescu Oct 25, 2019
3f0d68e
simplifies by using one selector and passing props in compose
draganescu Oct 25, 2019
e82ba8f
small code updates
draganescu Oct 27, 2019
65a4b58
lint
draganescu Oct 27, 2019
a3d9ad6
renamed insertedBlock
draganescu Oct 27, 2019
50b2637
small doc update
draganescu Oct 27, 2019
488aa5c
adds tooltip to the default button appender
draganescu Oct 28, 2019
b2c27f6
refactores for more self documenting varnames
draganescu Oct 28, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
small doc update
  • Loading branch information
draganescu committed Oct 27, 2019

Unverified

This user has not yet uploaded their public signing key.
commit 50b263767c6e7051178260f8b3b3199b9c3494fd
2 changes: 1 addition & 1 deletion packages/block-editor/src/store/selectors.js
Original file line number Diff line number Diff line change
@@ -1290,7 +1290,7 @@ export const hasInserterItems = createSelector(
* @param {Object} state Editor state.
* @param {?string} rootClientId Optional root client ID of block list.
*
* @return {string?} The name of the allowed block type or false.
* @return {Array?} The list of allowed block types or false.
*/
export const __experimentalGetAllowedBlocks = ( state, rootClientId = null ) => {
if ( ! rootClientId ) {