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 back into fork #13

Merged
merged 256 commits into from
Jun 20, 2020
Merged

Conversation

brezocordero
Copy link

No description provided.

sirreal and others added 30 commits June 1, 2020 13:02
The following PRs were fine in isolation, but when merged resulted in
the introduction of an undefined `Source` type in the `env` package:

#22256
#20522

Rename `Source` introduced in #22256 to `WPSource` according to changes
in #20522.
* Remove Keyboard.dismiss() when deleting block

* Move selection to end of link after insertion. (#22652)

Make sure the selection is refreshed after changed.

* Only show pullquote block on iOS.

* Allow pullquote block to show on Android Dev builds

* Change indentifier type in Button, correct concatenation in merge function (#22708)

* [RNMobile] Fix footer appender in buttons block (#22711)

* add renderFooterAppender to the extraData to re-render list

* small refactor

* Add onDeleteBlock to the extra data to re-render when it has changes (#22716)

* add renderFooterAppender to the extraData to re-render list

* small refactor

* Add onDeleteBlock to the extra data to re-render when it has changes

* add renderFooterAppender to the extraData to re-render list

* small refactor

* Add onDeleteBlock to the extra data to re-render when it has changes

* [RNMobile] Correct color selection in color settings (#22736)

* [RNMobile] Fix: Add default value to format when start and end are undefined (#22741)

* add default vale to format when start and end are undefined

* revert lint changes

* Fix lint issue

Co-authored-by: lukewalczak <[email protected]>
Co-authored-by: Sérgio Estêvão <[email protected]>
Co-authored-by: Drapich Piotr <[email protected]>
As written this is a syntax error; the PR fixes it.
Co-authored-by: Marcus Kazmierczak <[email protected]>
Co-authored-by: jasmussen <[email protected]>
…22695)

* REST API: Update default value for parent in the block type schema

* Align changes with the WordPress core patch

* Fix missed spelling change for textdomain

* Fix copy&paste in block types REST API endpoint

* Update lib/class-wp-rest-block-types-controller.php

Co-authored-by: Jonny Harris <[email protected]>

* Fix issues raised by PHP linter

Co-authored-by: Jonny Harris <[email protected]>
* Type package

* Add node eslint config

* Add changelog

* Update util path in build scripts
* Squash

* Use isResolving selector to determine whether or not the blocks should be recomputed

* Pass the previous menuItemsRef.current to menuItemsToLinkBlocks
* Blocks: Update default block categories

* Block API: Add wp.blocks.getCategory singular function

* Blocks: Normalize block category during registration

* Block Library: Reorganize blocks to new categories

* E2E Tests: Update block directory test to use updated category

* Compat: Reconcile against core-updated categories

Anticipate that core will update to use new categories. Avoid duplicate categories, since legacy categories will not exist to be replaced.

* Compat: Add Trac ticket for block category updates
…splay author (#16169)

* Added ability to filter latest posts by author

* Updates to catch up to changes in Gutenberg

* Fixes error of: Notice: Undefined index: items in /wp-includes/rest-api.php on line "1245"

* Removed unused variables and fixed linting issues

* Removed Whitespace from index.php

* adding new line to index.php

* applied changes suggested by @draganescu to LatestPosts block

* linting edit

* Updated from users to author on LatestPosts block

* Added display author option

* Updated edit.js on LatestPosts to match front end on author label

* Attempt to fix tests on LatestPosts

* Update e2e tests for LatestPostsa

* Fix for PHP Unit tests

* Updated rendering of author name on editor view

* Changed 'posted by' to 'by' on the byline

* Fixed linting issue in index.php for LatestPost

* Fixed formatting issues in index.php for LatestPosts

* fix to undefined author_info

Co-authored-by: Paul Stonier <[email protected]>
* First stab at encapsulation of useNavigationBlocks

* Flicker issue solved again

* Encapsulated parts of the logic from useNavigationBlocks

* Formatting

* Decouple fetching the data, transforming, saving, and creating draft posts

* Move blocks argument to useSaveNavigationBlocks hook

* Separate fetching menu items from creating navigation blocks

* Move PromiseQueue to use-create-missing-menu-items as it is only used there

* construct query inline instead of having useMenuItemsQuery

* Simplify the refactor (thank you Andrei!)

* Extract PromiseQueue into a separate file

* Move eventuallySaveItems to useMenuItems

* Update packages/edit-navigation/src/components/menu-editor/use-create-missing-menu-items.js

Co-authored-by: andrei draganescu <[email protected]>

* Update packages/edit-navigation/src/components/menu-editor/use-create-missing-menu-items.js

Co-authored-by: andrei draganescu <[email protected]>

* Show the notice after receiveEntityRecords

* Fix spacing issue

* Remove rogue async

* rename linkBlocks to blocks

Co-authored-by: andrei draganescu <[email protected]>
…creen (#22792)

* Disable the navigator toolbar button on the experimental navigation screen

* Use __experimentalNavigationScreen
* Use Panel for navigation structure on small screens only

* Adjust CSS
* adds default text for appender

* adds a classname to label

also refactores out useless component
* Creating initial BoxControl component

* Add BoxControlIcon

* Add Flex component and integrate into BoxControl component

* Add labels for UnitControls

* Add react-use-gesture

* Add drag support to NumberControl

* Improve layout for BoxControl

* Update snapshot tests

* Add shiftStep in drag feature in NumberControl

* Adjust Box control UI

* Initial integration with Cover

* Integrate PaddingControl with Cover using hooks

* Improve visualization of padding

* Experiment with new Box Controls layout

* Improve NumberControl drag interaction

* Create InputControl primitive. Add floating labels. Refactor BoxControl

* Adjust UI for BoxControl + InputControl labels

* Fix tests

* Increase CSS scope. Minor label UI adjustments.

* Refine UI for BoxControl

* Hook up inline style rendering with padding attribute values

* Adjust tab order for BoxControl inputs to match visual order

* Remove padding attribute declaration

* Improve dragging experience

* Add alt pair change support. Improve null value rendering.

* Remove unused BoxControl Icon

* Improve RTL interactions

* Fix onChange type for NumberControl

* Fix NumberControl onChange type

* Add Prefix to InputControl

* Refine labels for BoxControl inputs

* Adjust BoxControl Y indicator hieght

* Refactor BoxControl inputs + update tests

* Fix left tooltip label for BoxControl

* Refactor number-control styles

* Adding isPressToSubmit to unit-control

* Improve press enter to change mechanic for NumberControl.

Refactors Input/Number/Unit control components to add classNames and streamline logic flow.

* Introduce unit parsing

* Stabilized value/unit parsing

* Add unit support to Cover block padding.

Also refine interactions

* Hook up custom units via add_theme_support with Padding controls

* Use floating labels for BoxControl inputs.

Also add disabled styles to InputControl

* Remove tooltip from InputControl. Refactor + update docs.

* Add InputControl docs to docs/manifest.json

* Fix tests for UnitControl. Adds tests for value/unit parsing.

* Update docs for InputControl and NumberControl

* Update docs and code comments for Input, Number, and Unit control

* Fix BoxControl rendering

* Fix block editor hook for padding styles

* Cover: Fix BoxControl visualizer rendering

* Fix classNames for Input, Number, and Unit controls. Improve value/unit consolidation

* Improve blur onChange when isPressEnterToChange is set

* Refactor press enter to change interaction between InputControl and NumberControl

* Add Linked adjustment for BoxControl

* Refactor and improve render performance of InputControl

* Remove defaultUnits static prop

* Improves performance and refactors BoxControlVisual styles

* Resets input value on blur

* Fix coupled side update rendering when holding ALT key

* Adds README for BoxControl and Flex

* Update docs manifest

* Update stories for NumberControl and UnitControl.

Also continue cleaning up controls

* Improve unit parsing to handle white space

* Adjust all vs individual side controls layout

* Improve value parsing + validation on submit

* TEMPORARY: Testing inline layout for controls

* Implement stateReducer for InputControl, NumberControl, and UnitControl

* Fixes tests and wraps up stateReducer update

* Persist events from Input Control reducer. Add comments.

Add number-control value parsing tests on ENTER keypress.

* Remove unused useControlledState hook

* Add default values to InputField props

* Improve inline UI for unit controls within BoxControl

Also add reset feature to BoxControl

* Add opt-in flag for Spacing controls. Improves control integration with Editor.

* Rename stateReducer to unstable_stateReducer

This helps indicates that the stateReducer prop + pattern, although working,
should probably be avoided for public use outside of @wordpress/component
components (for now).

* Remove unnecessary eslint-disable rule

* TEMP: Disable opt-in flag for spacing control for testing purposes.

* Streamline combine stateReducer flow. Improve performance with memoziation.

* Improve dragEnd event triggering in InputControl

* Fix memoization issue for state reducer updates

* Rename unstable_stateReducer to __unstableStateReducer

* Replace Array.flat with lodash.flattenDeep for IE compatibility

* Fix reset value mechanic stability for BoxControl

* Add value tests for InputControl

* TEMP: Disable guard for testing

* Remove fixed height for BoxControl

* Make use of combineStateReducers more explicit for InputControl, NumberControl, and UnitControl

* Refactor useBoxControlState to simply useControlledState with defaults

* Simplify side active matching for BoxControl/Icon

* Update packages/block-editor/src/components/spacing-panel-control/index.js

Co-authored-by: Miguel Fonseca <[email protected]>

* Fix update value on blur

* Fix tests for UnitControl

* Memoize input state reducer to prevent unnecessary re-renders

...which were spotted during unit tests.

* Rename submit -> commit. Fix RTL (from rebase mixup).

* Update InputControl, NumberControl, and UnitControl from master

* Integrate lightBlockWrapper with new padding controls + visualizer

* Move __experimentalPadding config to block.json

* Removing leftover comments

* Adjust spacing for import comments

* Fix padding theme setting check

* Add sibling usage for BoxControl.Visualizer in README.md

* Add more content + image examples to Flex README.md

* Remove experimental prefix for Flex

* Refactor Flex sub-components to be used/exported without static attachment

Also lint/format files

Co-authored-by: Miguel Fonseca <[email protected]>
* Block Navigator: Use default block appender

Changes the Block Navigator to use the default block appender instead of
the button block appender.

* Block Navigator: Pass TreeGridCell props to the inserter toggle
…22752)

* Block Directory: Pull block icon into a separate component

* Add a list of installed blocks to the pre-publish sidebar

* Update package-lock

* Rename panel

* Fix style import

* Fix lint issue

Co-authored-by: dufresnesteven <[email protected]>
* Expose editor theme colors to editor settings from parent apps

* Fix style issues

* Added support for updating theme color asynchronously

* Add support for custom gradients

* Add mocks to gutenberg bridge for tests

* Modify button to support theme gradients

* Fix format issue

* Adjust color picker to pull from settings instead of the default colors

* Refactor to simplify the call to settings
#22684)

* Packages: Add package "lazy-import"

* isShallowEqual: Lazily install dependencies for benchmark

* Lazy Import: Avoid abbreviated package variable

* Lazy Import: Add requirement for NPM 6.9.0+

* Lazy Import: Throw error specific for disconnected

* Lazy Import: Delete cache on second require attempt

* Bump execa and semver to consistent latest version

* Create Block: Bump execa dependency

* Update package-lock.json file

* Fix npm-package-arg dependency

* Lazy Import: Avoid mutating require cache for final import

* Update package-lock.json

Co-authored-by: Grzegorz Ziolkowski <[email protected]>
* Edit Site: Refactor business logic into store.

* URL: Update changelog.

* Edit Site: Finish refactor for template overwriting.
Previously, PHPUnit would reuse the same `wp-config.php` file as the regular `wp-env` environment. This caused "redefining constant" warnings, but more importantly meant that multisite tests couldn't be properly initialized. We now create a copy of the `wp-config.php` file without loading `wp-settings.php` so WordPress only gets loaded once.

Additionally, we populate the `WP_TESTS_EMAIL` and `WP_TESTS_TITLE` constants so that the multisite network can be properly populated.

Co-authored-by: Timothy Jacobs <[email protected]>
…#22849)

* Blocks: Skip null values returned from the server during registration

* Revert the default change for description field in REST API for block types
draganescu and others added 29 commits June 18, 2020 14:06
* renamed navigation link

* update places affected by the title change of Link block
* Image editing: fix image size on crop

* Fix dimensions for unresized images
* renamed navigation link

* fixes the appearance of the appender on is-style-dark
* Don't announce external value change

* Correct aria attributes

* Improve value equality checking.

* Selected item doesn't always exist

* Check if value exists and add default

* Fix initial selection

* Memoize getSelectOptions instead

* Switch to useMemo
* Interface: Add missing param docs for getActiveFormats()

* Update Array<Object> to Array<Array>in @param doc comment
…23305)

* fix columnsInRow on init and some performance improvements

* rename getColumnWidth to contentStyle
* Docs: Add context properties to Block RFC

* Lib: Add context properties to block types endpoint

* RFC: Add default context properties

* Rename context to use_context when using inside REST API

* Include context properties in the RFC example

* Go with uses_context in REST API

* Follow PHP convention for naming fields: `provides_context` and `uses_context`

* Fix the usage of blockType.context in JS code

* Docs: Add deprecation entry for Block Context changes

* Fix missed places where context was not renamed to usesContext

* Add deprecation logic

* Remove an empty line

* Apply suggestions from code review

Co-authored-by: Miguel Fonseca <[email protected]>

* Add more deprecation details

* Update compat.php

Co-authored-by: Grzegorz Ziolkowski <[email protected]>
Co-authored-by: Miguel Fonseca <[email protected]>
@mkaz adding theme supports available in the latest release
…cus (#22996)

* Separate the navigator selection from the editor area selection

* add __experimental prefix and use list of selected blocks instead of a single id

* Don't attempt to call __experimentalSelectBlock when it's not provided

* Drop onClick and only pass selectBlock to BlockNavigationBlock

* Remove selection CSS

* Stop rendering movers for selected block

* Add "Go to block" navigator menu action

* Fix unit test

* Restore the previous way of focusing items in the navigator

* Lint

* Ensure clicking go to block always works

* Add a README file
* add auto-drafting for theme files

* try getting them from the template part folder

* yoda and linter things

* build template part to parse

* build template part block

* update template part selection query

* check currentTheme exists before getting textdomain
@brezocordero brezocordero merged commit 4993875 into js-advancers:master Jun 20, 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.