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

Popover: add anchor prop #43691

Merged
merged 36 commits into from Sep 14, 2022
Merged

Popover: add anchor prop #43691

merged 36 commits into from Sep 14, 2022

Commits on Sep 14, 2022

  1. Configuration menu
    Copy the full SHA
    157f8e7 View commit details
    Browse the repository at this point in the history
  2. Add anchor prop to Storybook

    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    c185f24 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    76fd3f2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    28c7b18 View commit details
    Browse the repository at this point in the history
  5. Block inbetween inserter: use Popover's new anchor prop (#43693)

    * BlockPopoverInbetween: refactor to use `anchor` prop
    
    * Simplify logic, use DOMRect
    
    * Add missing hook deps
    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    16e66d4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7b62c02 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eef3dc6 View commit details
    Browse the repository at this point in the history
  8. Block toolbar: use Popover's new anchor prop (#43692)

    * Block toolbar: use anchor prop instead of anchorRef.{top,bottom}
    
    * Update packages/block-editor/src/components/block-popover/index.js
    
    Co-authored-by: Lena Morita <lena@jaguchi.com>
    
    Co-authored-by: Lena Morita <lena@jaguchi.com>
    ciampo and mirka committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    1866f3f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    fb6f2ee View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3e59ec1 View commit details
    Browse the repository at this point in the history
  11. Try to avoid infinite loop

    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    c19495c View commit details
    Browse the repository at this point in the history
  12. Update PanelRow docs

    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    c342d79 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c3a3f61 View commit details
    Browse the repository at this point in the history
  14. BorderBoxControl: use Popover's new anchor prop (#43789)

    * BorderBoxControl: use new `anchor` prop for `Popover`
    
    * Make sure anchor value is `undefined` instead of `null`
    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    03eb730 View commit details
    Browse the repository at this point in the history
  15. Image URL Input: use new anchor prop for Popover (#43784)

    * Image URL Input: use new anchor prop for Popover
    
    * Prevent value from being `null`
    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    33c87f1 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    d1890ed View commit details
    Browse the repository at this point in the history
  17. Buttons block: use new Popover anchor prop (#43785)

    * Buttons block: use new `anchor` prop for `Popover`
    
    * Prevent anchor value from being `null`
    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    044dd4a View commit details
    Browse the repository at this point in the history
  18. Navigation block: use new anchor prop for Popover (#43786)

    * Navigation block: use new `anchor` prop for `Popover`
    
    * Use anchor for the Navigation submenu block too
    
    * Prevent anchor value from being `null`
    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    f9fbae5 View commit details
    Browse the repository at this point in the history
  19. Post Date block: use new anchor prop for Popover (#43787)

    * Post Date block: use new `anchor` prop for `Popover`
    
    * Prevent anchor value from being `null`
    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    13327ef View commit details
    Browse the repository at this point in the history
  20. Tooltip: refactor using Popover's new anchor prop (#43799)

    * Tooltip: use Popover s new anchor prop
    
    * Use internal state to force re-renders when the anchor ref changes
    
    * Simplify code
    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    a659e87 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    4db67fc View commit details
    Browse the repository at this point in the history
  22. Allow anchor to be null

    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    aadd730 View commit details
    Browse the repository at this point in the history
  23. Edit Post: use Popover's new anchor prop (#43808)

    * Edit Post: use Popover s new anchor prop
    
    * Update comment
    
    * SImplify code
    
    * Update packages/edit-post/src/components/sidebar/post-schedule/index.js
    
    Co-authored-by: Daniel Richards <daniel.richards@automattic.com>
    
    * Allow passing a `null` anchor
    
    Co-authored-by: Daniel Richards <daniel.richards@automattic.com>
    ciampo and talldan committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    c787c54 View commit details
    Browse the repository at this point in the history
  24. Refactor useAnchorRef and related components to work with the new P…

    …opover `anchor` prop (#43713)
    
    * useAnchorRef: return a VirtualElement instead of a range
    
    * Update useAnchorRef usage in FormatToolbarContainer, use anchor prop
    
    * Update remaining `useAnchorRef` usages, switch to the `anchor` prop
    
    * useAnchorRef: normalize `null` returns to `undefined` as it is not a valid `anchor` value
    
    * Revert changes to native RichText component
    
    * Update docs
    
    * Allow useAnchorRef to return `null`
    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    0ac5e79 View commit details
    Browse the repository at this point in the history
  25. Re-enable deprecation warnings

    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    f9a748a View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    bc75d2f View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    b4973f4 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    7a7179f View commit details
    Browse the repository at this point in the history
  29. CHANGELOG

    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    42a72ac View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    8c76d7b View commit details
    Browse the repository at this point in the history
  31. Fix API docs

    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    d09cbfe View commit details
    Browse the repository at this point in the history
  32. Update Popover unit tests

    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    dffc311 View commit details
    Browse the repository at this point in the history
  33. Remove unused import

    ciampo committed Sep 14, 2022
    Configuration menu
    Copy the full SHA
    dd1b771 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    24c099a View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    1d11ed2 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    caacb0e View commit details
    Browse the repository at this point in the history