mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Add IntersectionObserver polyfill
This commit is contained in:
parent
bb2b36f65a
commit
5fdce55a1b
5
website/package-lock.json
generated
5
website/package-lock.json
generated
|
@ -9914,6 +9914,11 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"intersection-observer": {
|
||||
"version": "0.5.1",
|
||||
"resolved": "https://registry.npmjs.org/intersection-observer/-/intersection-observer-0.5.1.tgz",
|
||||
"integrity": "sha512-Zd7Plneq82kiXFixs7bX62YnuZ0BMRci9br7io88LwDyF3V43cQMI+G5IiTlTNTt+LsDUppl19J/M2Fp9UkH6g=="
|
||||
},
|
||||
"into-stream": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "http://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz",
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
"gatsby-transformer-remark": "^2.2.5",
|
||||
"gatsby-transformer-sharp": "^2.1.13",
|
||||
"html-to-react": "^1.3.4",
|
||||
"intersection-observer": "^0.5.1",
|
||||
"node-sass": "^4.11.0",
|
||||
"parse-numeric-range": "0.0.2",
|
||||
"prismjs": "^1.15.0",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import React, { useEffect } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import classNames from 'classnames'
|
||||
import 'intersection-observer'
|
||||
import { useInView } from 'react-intersection-observer'
|
||||
import { window } from 'browser-monads'
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user