Repository navigation
v1.27.0
Minor Changes
-
771fcd3: Copy now works where the async Clipboard API does not: on plain-HTTP pages (intranet tools, internal dashboards on an IP address) and in webviews without
navigator.clipboard, text, HTML and JSON are copied through the browser'scopycommand, asreact-copy-to-clipboarddoes. The payload is written exactly through thecopyevent: nothing is added to the visible page, the user's selection and focus are restored, and page copy handlers and interceptors do not rewrite it. HTML is copied as HTML whereClipboardItemis missing, instead of being reduced to text. Images still need HTTPS. Copies that used to fail withinsecure-contextorunsupportednow succeed; passlegacyFallback: falsetocreateBrowserClipboardAdapterto keep the old behaviour.useCopygrows by about 0.7 kB.New docs page: Migrating, from react-copy-to-clipboard, copy-to-clipboard, react-use and
navigator.clipboard, with every snippet run as a test.