upgrade actionsack

main
Mike Fix 3 years ago
parent 3384d59485
commit d67b8dc832
No known key found for this signature in database
GPG Key ID: 1D85E862314CA79F

@ -37,7 +37,7 @@ function CopyButton(props) {
function CopyEmbed({ mapper, title }) {
const { asPath } = useRouter()
const text = React.useMemo(() => mapper(asPath), [mapper, asPath])
const { onClick, copied } = useCopyTextHandler(text, { interval: 1000 })
const { onClick, copied } = useCopyTextHandler(text)
return <CopyButton onClick={onClick}>{copied ? 'Copied!' : title}</CopyButton>
}

@ -31,7 +31,7 @@
"dependencies": {
"@next/bundle-analyzer": "^11.1.0",
"@reach/visually-hidden": "^0.16.0",
"actionsack": "^0.0.14",
"actionsack": "^0.0.15",
"axios": "^0.21.4",
"cm-show-invisibles": "^3.1.0",
"codemirror": "5.61.1",

@ -2031,10 +2031,10 @@ acorn@^6.0.1, acorn@^7.1.0, acorn@^7.1.1, acorn@^7.4.0, acorn@^7.4.1, acorn@^8.0
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa"
integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==
actionsack@^0.0.14:
version "0.0.14"
resolved "https://registry.yarnpkg.com/actionsack/-/actionsack-0.0.14.tgz#d18b47520e60bebc33fbbdbb269368bf77ba3a95"
integrity sha512-zU3Ciei2DNYQS1omEq/hJlYmlUrsxeP6jgr7ej4TrErPDMmimSGboOeTdJW8cbqH5LckpcE9kYhUilP5Vow7xw==
actionsack@^0.0.15:
version "0.0.15"
resolved "https://registry.yarnpkg.com/actionsack/-/actionsack-0.0.15.tgz#1eb0ec33e22535a50522cb3c357c695ff92c35df"
integrity sha512-oSrDF3Cpb7G9uM52E0jPn5yM2iVyVwlUOdeUNih5EYZ6W0YJTLACZW27nmYRlYQo75N7pgxNYEx+DfvY1SNM2A==
dependencies:
copy-to-clipboard "^3.3.1"
react-click-outside "^3.0.1"

Loading…
Cancel
Save