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

Block API: Add Block Context support #21467

Merged
merged 54 commits into from
Apr 17, 2020
Merged

Block API: Add Block Context support #21467

merged 54 commits into from
Apr 17, 2020

Commits on Apr 17, 2020

  1. Configuration menu
    Copy the full SHA
    ef69571 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ecb311f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d325f90 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bdd8d28 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c2d9b26 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    efdf341 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    49de552 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    909e637 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    00a0be5 View commit details
    Browse the repository at this point in the history
  10. Docs: Update Block Context text to refer to Context.Provider

    Co-Authored-By: Robert Anderson <robert@noisysocks.com>
    aduth and noisysocks committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    13a843c View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    ccb86f5 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0767f60 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c4038c0 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    5c8d5ee View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    8c527aa View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    7a52d0a View commit details
    Browse the repository at this point in the history
  17. Block Editor: Memoize block context provider value

    Try to retain consistent reference value
    aduth committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    3203233 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    4fa6a5c View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    c406d4c View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    81c83c4 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    10125d3 View commit details
    Browse the repository at this point in the history
  22. Revert "Block API: Add automatic block context namespacing"

    This reverts commit 151d425.
    aduth committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    d2b5624 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    784a057 View commit details
    Browse the repository at this point in the history
  24. 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.
    aduth committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    a2dafcf View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    4f25668 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    e773ef6 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    6b33df2 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    5005983 View commit details
    Browse the repository at this point in the history
  29. Editor: EditorProvider: Cache default block context

    TODO: Refactor this component using hooks, memoize via useMemo
    aduth committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    c36fd65 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    2ebe9f3 View commit details
    Browse the repository at this point in the history
  31. 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.
    aduth committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    0594ce7 View commit details
    Browse the repository at this point in the history
  32. Block Editor: InnerBlocks: Fix block context provide attribute picking

    Previously picked keys as attribute names, whereas documented as values being attribute names
    aduth committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    fc4c513 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    d7eb57c View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    fe97dd8 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    2d06181 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    54f183a View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    293487c View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    c54c862 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    0cafbe0 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    c98a406 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    b0636f8 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    728d35d View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    d36ad8c View commit details
    Browse the repository at this point in the history
  44. 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).
    aduth committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    207a770 View commit details
    Browse the repository at this point in the history
  45. Revert "Block Editor: Add BlockContext component to type-checking"

    This reverts commit 0ff9acda2dee96bf6f571aec27cb917ef664db05.
    aduth committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    06c169a View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    ad677ec View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    262b2a4 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    f11c515 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    8665824 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    f8beb9e View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    b908cea View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    22c699f View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    cb4a324 View commit details
    Browse the repository at this point in the history
  54. Revert "Block Editor: Use optional chaining for providesContext prope…

    …rty access"
    
    This reverts commit 0767f60.
    aduth committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    2aa56ca View commit details
    Browse the repository at this point in the history