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

Update Rust crate floating-ui-leptos to 0.2.0 #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 23, 2024

This PR contains the following updates:

Package Type Update Change
floating-ui-leptos (source) dependencies minor 0.1.3 -> 0.2.0

Release Notes

RustForWeb/floating-ui (floating-ui-leptos)

v0.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: RustForWeb/floating-ui@v0.1.3...v0.2.0

Upgrade to Leptos v0.7

Node References

Install leptos-node-ref and replace the node references with AnyNodeRef:

- let reference_ref = NodeRef<Div>::new();
- let floating_ref = NodeRef<Div>::new();
- let arrow_ref = NodeRef<Div>::new();
+ use leptos_node_ref::AnyNodeRef;
+ 
+ let reference_ref = AnyNodeRef::new();
+ let floating_ref = AnyNodeRef::new();
+ let arrow_ref = AnyNodeRef::new();
Reference

Remove .into_reference() from use_floating calls:

  use_floating(
-     reference_ref.into_reference(),
+     reference_ref,
      floating_ref,
      UseFloatingOptions::default(),
  )
Middleware

Install send_wrapper and wrap the middleware vector in SendWrapper:

+ use send_wrapper::SendWrapper;

  let middleware: MiddlewareVec = vec![/* ... */];
  
  use_floating(
      reference_ref,
      floating_ref,
      UseFloatingOptions::default()
-          .middleware(middleware.into()),
+          .middleware(SendWrapper::new(middleware).into()),
  )

Configuration

📅 Schedule: Branch creation - "* 0-3 * * 1" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/floating-ui-leptos-0.x branch from 2d5222a to f871ca5 Compare January 28, 2025 13:47
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.

0 participants