'Copy to Clipboard' functionality (#163)

* Adds 'Copy to Clipboard' functionality to all code blocks in readOnly

* Show on hover, move to SC

* 💚

* PR feedback
This commit is contained in:
Tom Moor
2017-08-02 22:10:58 -07:00
committed by GitHub
parent ca35cee841
commit 38c8a46d32
9 changed files with 146 additions and 25 deletions

View File

@@ -1874,6 +1874,12 @@ cookies@~0.7.0:
depd "~1.1.0"
keygrip "~1.0.1"
copy-to-clipboard@^3.0.6:
version "3.0.6"
resolved "https://registry.yarnpkg.com/copy-to-clipboard/-/copy-to-clipboard-3.0.6.tgz#13c09bfea0408a5dc5bb987fee3b3986518c9d69"
dependencies:
toggle-selection "^1.0.3"
copy-to@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/copy-to/-/copy-to-2.0.1.tgz#2680fbb8068a48d08656b6098092bdafc906f4a5"
@@ -8569,6 +8575,10 @@ to-space-case@^1.0.0:
dependencies:
to-no-case "^1.0.0"
toggle-selection@^1.0.3:
version "1.0.5"
resolved "https://registry.yarnpkg.com/toggle-selection/-/toggle-selection-1.0.5.tgz#726c703de607193a73c32c7df49cd24950fc574f"
topo@1.x.x:
version "1.1.0"
resolved "https://registry.yarnpkg.com/topo/-/topo-1.1.0.tgz#e9d751615d1bb87dc865db182fa1ca0a5ef536d5"