react-use-clipboard
react-use-clipboard copied to clipboard
React hook that provides copy to clipboard functionality.
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1. Changelog Sourced from terser's changelog. v4.8.1 (backport) Security fix for RegExps that should not be evaluated (regexp DDOS) Commits See full diff in compare...
Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.4.0 to 16.7.0. Release notes Sourced from jsdom's releases. Version 16.7.0 Added AbortSignal.abort(). (ninevra) Added dummy x and y properties to the return value of getBoundingClientRect(). (eiko)...
This is based on #39 but keeps the API backwards compatible, providing two options to supply the text that should be copied. Fixes #37.
For example, api like this: ```tsx const [isCopied, setCopied] = useClipboard({ successDuration: 1000, defaultCopyText: 'copied text!' }); // ... setCopied()}>some text // will be "copied text!" setCopied('new text!')}>some text //...
Fixes #37
https://web.dev/publish-modern-javascript/ I tried using `exports` but had to remove it in #33 to fix #31. It'd be great to add back since it's smaller than the other bundles. I'm not...
Bumps [next](https://github.com/vercel/next.js) from 12.1.0 to 13.5.0. Release notes Sourced from next's releases. v13.4.20-canary.41 Core Changes Add mui-core to the default optimizePackageImports list: #55554 Consolidate experimental React opt-in & add ppr...
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically....