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

Merge main into fork #17

Merged
merged 1,175 commits into from
Nov 23, 2020
Merged

Merge main into fork #17

merged 1,175 commits into from
Nov 23, 2020

Conversation

brezocordero
Copy link

No description provided.

gziolo and others added 30 commits November 6, 2020 14:47
* Allow useSelect per store

* New signature: useSelect( 'store', mapSelect, deps )

* Hopefully fix mobile tests

* Propose useStoreSelectors

* Revert README

* Add comment

* Remove shorthand notation and add unit tests

* Update README

* Remove now unrelated change

* Updated docstring

* Updated tests

* Use renderHook from react testing library

* Add usage example

* Updated doc

* Update CHANGELOG.md
* Social Links: Add variables to change icon sizes

This adds CSS custom properties to alter the circle/logo sizes. I'm not
quite sure how to integrate this in to make it adjustable, maybe as a
theme.json optoin?

First, we may want to create as fixed sizes (sm, med, large) to make
sure things look right. There are two values to adjust, the outer circle
and the inner logo. So it is possible to make the icons all out of sorts
if the sizes don't match properly.

* Switch social links to fixed sizes

Uses small, normal, large, and huge sizes matching the same presets as
the font sizes.

Uses the CustomSelectControl to pick which size

Introduces class names `has-SIZE-icon-size` that applies to social link

* Ensure that icons aren't cut off by their button container in the editor.

* Switch size control to toolbar

* Add check icon for selected menuitem

* Add isAlternate prop for Dropdown

* Initial refactor work.

* Refactor to use ems.

* Small tweaks.

* Fix variations.

* Get the setup state working.

* Don't size up placeholder state on hover.

* Add checkmark to normal size even if not set

The default size is normal, even if the iconsize is not set,
so this sets the checkmark in the dropdown to reflect.

* Use math for nicer padding. Props @kirilzh

* Add specificity to margins to fix a theme issue.

* iconSize -> size

* Hover cleanup.

* Try using DropdownMenu component

* Fix calc.

* Try text for button instead of icon

A test to see what we think of modifying the DropdownMenu/Button to
accept a text property which when specified and icon=null than it will
show instead of the icon.

* Add popover props for isAlternate

* Display size name as label

Switches the button to display the name as the label for example "Large"
instead of just showing "Size"

Fix issue with { onClose } not being destructured

Pass toggleProps forward.

* Switch back to 'Size' in toolbar

Co-authored-by: Kjell Reigstad <kjell@kjellr.com>
Co-authored-by: jasmussen <joen@automattic.com>
* swipeUp not needed; performed via removeBlockAtPosition on Android

* Need to remove the import too

* Dismiss the clipboard paste suggestion popup on Android so test continues
* Format library: use hooks for all components

* Fix lock

* Fix typo
…#26649)

* Rebuild stylesheets when imported styles are modified

* Move logic into createStyleEntryTransform

* Remove unnecessary helper

* Update comments

* Update comment wording

* Modify conditional logic to always transform current file

* Create parsing helper functions
Typo Line 74: 'alway' -> 'always'
* Update token field icon

* update icon color, and shape of token
* Output Hermes bytecode and use it as default

* Update native editor changelog to mention perf improvement
40: persistance -> persistence
134: meed -> need
513: persistance -> persistence
typo:
line 3 Enviornment -> Environment
line 7: verion -> version
line 35: enviornment -> environment
line 167: htis -> this
Typo, Line 375: 'necesssary' -> 'necessary'
74: 'respotiroy' -> 'repository'
typo 32: 'reprensing' -> 'representing'
typos,
line 50: 
'commited' -> 'committed'
'uncommited' -> 'uncommitted'
140: hypen -> hyphen
293: frow -> from
34: identifer -> identifier
33: cognizent -> cognizant
* Format library: introduce useAnchorRef

* Add doc

* Reorg

* Explicitly pass down props

* Fix ref type
* Set appends as siblings flag for image block uploads

* Update changelog
* cleanup unnecessary code

* This is not needed either
youknowriad and others added 29 commits November 20, 2020 13:25
Co-authored-by: Greg Ziółkowski <grzegorz@gziolo.pl>
Co-authored-by: Jon Surrell <jon.surrell@automattic.com>
…s and Descriptions (JS Side) (#27038)

- New templates created from the Site Editor sidebar will also automatically use the default template types definitions, and will be saved as `draft`. They will become `published` once saved the first time.
- The default definitions are used across the Site Editor as a fallback for templates without title or excerpt.
- Converted the `getTemplateInfo` utility into the `getTemplateInfo` selector, since it relies on the `core/editor` state.
* rough implementation

* style with grid

Co-authored-by: Ari Stathopoulos <aristath@gmail.com>

* revert to flex

* toolbar controls

* polish grid view + change to <ul>

* regenerate fixtures for query+loop

* fix php lint

* wrap contents in render callback

Co-authored-by: Ari Stathopoulos <aristath@gmail.com>
* Remove the adminbad Customizer link

* add FSE condition

* rename function

* Add site-editor link

* Change wording

* Check if user can edit_theme_options
* remove the auto margin for individual column blocks

* update margin values for blocks in blocks to zero insted of auto
…27026)

* Replace 'Remove from Reusable blocks' with 'Manage Reusable blocks'.

* Removed ReusableBlockDeleteButton component and added ReusableBlocksManageButton in its place.

* On click, ReusableBlocksManageButton sends the user to the reusable blocks management screen.

* Added '@wordpress/url' dependency to the package. This is used to build the  url for the reusable blocks management screen.

Fixes #12791.

* Fix logic and dependency for new 'Manage Reusable blocks' menu item.

* Use file link for new @wordpress/url dependency.

* Rename abbreviated blockObj variable to reusableBlock to follow coding standards.

* Simplified logic to check if the 'Manage Reusable blocks' menu item should be visible.

* Use MenuItem's href prop to create an a tag instead of relying on onClick on a button.

Fixes #27026.

* Update package lock. (#27026)

* Remove unused e2e test for deleting reusable blocks. (#27026)
Bug fix: Use instance's own doAction method to trigger built-in hookAdded and hookRemoved hooks.

Hooks are currently using doAction from the shared global instance to trigger the built-in hooks hookAdded and hookRemoved. This PR binds the methods for adding and removing hooks to their own hooks instance so that they use doAction from the given instance for the said built-in hooks.
…26615)

* full-height-alignment-toolbar: initial approach

* block-editor: expose experimental full height

* cover: add full height button to toolbar

* cover: propagate full height to height input cpm

* cover: dissabel unit control in full height mode

* cover: store prev height to be able to return them

* cover: set height via inline in full height mode

* cover: add toggle control for full height

* cover: set fulll height mode when saving block

* full-height-alignment: change icon

* cover: refactoring -> simplify full height

* cover: handling not prev height values.

* cover: clean fullHeightAlignment attr

* full-height-align: change button label

* full-height-alignment: pick icon from package

* cover: improve setting prev values
Props to @jorgefilipecosta
* fix RangeControl mark placement/fill logic to cover more use cases

* style RangeControl cursor congruent with interactive area

* stop marks from interfering with input interaction

* expand the story for RangeControl marks
This provides similar features for PHP tests that Jest provides for JavaScript tests.

The `process-timeout` option is disabled so that phpunit-watcher can run indefinitely. See spatie/phpunit-watcher#63 (comment)".
Now that ignore-emit-webpack-plugin was fixed to work with both webpack v4 and v5 we can allow again to use ranges for the dependency.
Hides empty menus in the navigation panel. Namely Templates -> Pages and Templates -> Posts.
…mns and views (#27156)

* Show the same data in both wp_template and wp_template_part admin lists

* Move the templates admin lists hooks in a separate utilities file
@brezocordero brezocordero merged commit 7f41065 into js-advancers:master Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.