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

Updated clipboard API #368

Open
webfiltered opened this issue Nov 13, 2024 · 0 comments
Open

Updated clipboard API #368

webfiltered opened this issue Nov 13, 2024 · 0 comments

Comments

@webfiltered
Copy link

Just a heads up that there's a PR in to replace the copy & paste methods. I noticed you have some workarounds in place, and I'm hoping this will be good news for you.

Overview of changes

  • All items are run through serialize or asSerialisable
  • All links to the inputs of copied nodes are included
  • Nodes are still cloned as this behaviour is relied on in places, however original IDs are reinserted and copied
  • Links use the new Serialisable interface, serialising them as objects like everything else
  • Re-linking and ID mutation only occurs when pasting
  • Paste returns map of original IDs to pasted items (_paste method only, at present - public API later if no issues)
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

No branches or pull requests

1 participant