-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Block API: Add Block Context support #21467
Commits on Apr 17, 2020
-
Configuration menu - View commit details
-
Copy full SHA for ef69571 - Browse repository at this point
Copy the full SHA ef69571View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecb311f - Browse repository at this point
Copy the full SHA ecb311fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d325f90 - Browse repository at this point
Copy the full SHA d325f90View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdd8d28 - Browse repository at this point
Copy the full SHA bdd8d28View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2d9b26 - Browse repository at this point
Copy the full SHA c2d9b26View commit details -
Configuration menu - View commit details
-
Copy full SHA for efdf341 - Browse repository at this point
Copy the full SHA efdf341View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49de552 - Browse repository at this point
Copy the full SHA 49de552View commit details -
Configuration menu - View commit details
-
Copy full SHA for 909e637 - Browse repository at this point
Copy the full SHA 909e637View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00a0be5 - Browse repository at this point
Copy the full SHA 00a0be5View commit details -
Docs: Update Block Context text to refer to Context.Provider
Co-Authored-By: Robert Anderson <robert@noisysocks.com>
Configuration menu - View commit details
-
Copy full SHA for 13a843c - Browse repository at this point
Copy the full SHA 13a843cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ccb86f5 - Browse repository at this point
Copy the full SHA ccb86f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0767f60 - Browse repository at this point
Copy the full SHA 0767f60View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4038c0 - Browse repository at this point
Copy the full SHA c4038c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c8d5ee - Browse repository at this point
Copy the full SHA 5c8d5eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c527aa - Browse repository at this point
Copy the full SHA 8c527aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a52d0a - Browse repository at this point
Copy the full SHA 7a52d0aView commit details -
Block Editor: Memoize block context provider value
Try to retain consistent reference value
Configuration menu - View commit details
-
Copy full SHA for 3203233 - Browse repository at this point
Copy the full SHA 3203233View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4fa6a5c - Browse repository at this point
Copy the full SHA 4fa6a5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c406d4c - Browse repository at this point
Copy the full SHA c406d4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81c83c4 - Browse repository at this point
Copy the full SHA 81c83c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10125d3 - Browse repository at this point
Copy the full SHA 10125d3View commit details -
Revert "Block API: Add automatic block context namespacing"
This reverts commit 151d425.
Configuration menu - View commit details
-
Copy full SHA for d2b5624 - Browse repository at this point
Copy the full SHA d2b5624View commit details -
Configuration menu - View commit details
-
Copy full SHA for 784a057 - Browse repository at this point
Copy the full SHA 784a057View commit details -
Framework: Disable PHPCS rule for snake case property
`providesContext` is a property of the block type which applies in both a server and browser context. Based on precedent (`styleVariations`, `textDomain`), it is optimized to use camel-case.
Configuration menu - View commit details
-
Copy full SHA for a2dafcf - Browse repository at this point
Copy the full SHA a2dafcfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f25668 - Browse repository at this point
Copy the full SHA 4f25668View commit details -
Configuration menu - View commit details
-
Copy full SHA for e773ef6 - Browse repository at this point
Copy the full SHA e773ef6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b33df2 - Browse repository at this point
Copy the full SHA 6b33df2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5005983 - Browse repository at this point
Copy the full SHA 5005983View commit details -
Editor: EditorProvider: Cache default block context
TODO: Refactor this component using hooks, memoize via useMemo
Configuration menu - View commit details
-
Copy full SHA for c36fd65 - Browse repository at this point
Copy the full SHA c36fd65View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ebe9f3 - Browse repository at this point
Copy the full SHA 2ebe9f3View commit details -
Framework: Block Context: Rename function to reflect implementation
Previous iterations had literally passed the block object to the render callback function. This is no longer the case. The function is largely responsible for assigning globals corresponding to the context provided by parents and relevant for child consumers.
Configuration menu - View commit details
-
Copy full SHA for 0594ce7 - Browse repository at this point
Copy the full SHA 0594ce7View commit details -
Block Editor: InnerBlocks: Fix block context provide attribute picking
Previously picked keys as attribute names, whereas documented as values being attribute names
Configuration menu - View commit details
-
Copy full SHA for fc4c513 - Browse repository at this point
Copy the full SHA fc4c513View commit details -
Configuration menu - View commit details
-
Copy full SHA for d7eb57c - Browse repository at this point
Copy the full SHA d7eb57cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe97dd8 - Browse repository at this point
Copy the full SHA fe97dd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d06181 - Browse repository at this point
Copy the full SHA 2d06181View commit details -
Configuration menu - View commit details
-
Copy full SHA for 54f183a - Browse repository at this point
Copy the full SHA 54f183aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 293487c - Browse repository at this point
Copy the full SHA 293487cView commit details -
Configuration menu - View commit details
-
Copy full SHA for c54c862 - Browse repository at this point
Copy the full SHA c54c862View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cafbe0 - Browse repository at this point
Copy the full SHA 0cafbe0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c98a406 - Browse repository at this point
Copy the full SHA c98a406View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0636f8 - Browse repository at this point
Copy the full SHA b0636f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 728d35d - Browse repository at this point
Copy the full SHA 728d35dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d36ad8c - Browse repository at this point
Copy the full SHA d36ad8cView commit details -
Core Data: Improve ifNotResolved typeability
Not yet able to configure this file to be type-checked, because `@wordpress/data-controls` does not yet have types. Also, these changes aren't strictly ideal because the purpose of `@template` was to indicate that the signature of the input function would be respected for the "output" function (as a higher-order function).
Configuration menu - View commit details
-
Copy full SHA for 207a770 - Browse repository at this point
Copy the full SHA 207a770View commit details -
Revert "Block Editor: Add BlockContext component to type-checking"
This reverts commit 0ff9acda2dee96bf6f571aec27cb917ef664db05.
Configuration menu - View commit details
-
Copy full SHA for 06c169a - Browse repository at this point
Copy the full SHA 06c169aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad677ec - Browse repository at this point
Copy the full SHA ad677ecView commit details -
Framework: Block Context: Rename WP_Block constructor agument availab…
…le_context See: #21467 (comment)
Configuration menu - View commit details
-
Copy full SHA for 262b2a4 - Browse repository at this point
Copy the full SHA 262b2a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for f11c515 - Browse repository at this point
Copy the full SHA f11c515View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8665824 - Browse repository at this point
Copy the full SHA 8665824View commit details -
Framework: Block Context: Update ArrayAccess to behave exactly as array
See: #21467 (comment) See: #21467 (comment)
Configuration menu - View commit details
-
Copy full SHA for f8beb9e - Browse repository at this point
Copy the full SHA f8beb9eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b908cea - Browse repository at this point
Copy the full SHA b908ceaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 22c699f - Browse repository at this point
Copy the full SHA 22c699fView commit details -
Configuration menu - View commit details
-
Copy full SHA for cb4a324 - Browse repository at this point
Copy the full SHA cb4a324View commit details -
Revert "Block Editor: Use optional chaining for providesContext prope…
…rty access" This reverts commit 0767f60.
Configuration menu - View commit details
-
Copy full SHA for 2aa56ca - Browse repository at this point
Copy the full SHA 2aa56caView commit details