mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-10 04:22:06 +00:00
Remove plugins added to edgecase older versions of plugins
This commit is contained in:
@@ -86,7 +86,6 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
`gatsby-remark-images-medium-zoom`,
|
`gatsby-remark-images-medium-zoom`,
|
||||||
`tab-index-image`,
|
|
||||||
{
|
{
|
||||||
resolve: `gatsby-remark-responsive-iframe`,
|
resolve: `gatsby-remark-responsive-iframe`,
|
||||||
options: {
|
options: {
|
||||||
|
|||||||
2802
package-lock.json
generated
2802
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
66
package.json
66
package.json
@@ -11,55 +11,55 @@
|
|||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"css-loader": "^3.2.0",
|
"css-loader": "^3.2.0",
|
||||||
"disqus-react": "^1.0.7",
|
"disqus-react": "^1.0.7",
|
||||||
"gatsby": "^2.15.28",
|
"gatsby": "^2.15.35",
|
||||||
"gatsby-image": "^2.2.23",
|
"gatsby-image": "^2.2.26",
|
||||||
"gatsby-plugin-feed": "^2.3.15",
|
"gatsby-plugin-feed": "^2.3.16",
|
||||||
"gatsby-plugin-google-analytics": "^2.1.19",
|
"gatsby-plugin-google-analytics": "^2.1.21",
|
||||||
"gatsby-plugin-lunr": "^1.5.2",
|
"gatsby-plugin-lunr": "^1.5.2",
|
||||||
"gatsby-plugin-manifest": "^2.2.20",
|
"gatsby-plugin-manifest": "^2.2.21",
|
||||||
"gatsby-plugin-offline": "^3.0.11",
|
"gatsby-plugin-offline": "^3.0.14",
|
||||||
"gatsby-plugin-prefetch-google-fonts": "^1.4.3",
|
"gatsby-plugin-prefetch-google-fonts": "^1.4.3",
|
||||||
"gatsby-plugin-react-helmet": "^3.1.10",
|
"gatsby-plugin-react-helmet": "^3.1.11",
|
||||||
"gatsby-plugin-react-svg": "^2.1.2",
|
"gatsby-plugin-react-svg": "^2.1.2",
|
||||||
"gatsby-plugin-sass": "^2.1.17",
|
"gatsby-plugin-sass": "^2.1.18",
|
||||||
"gatsby-plugin-sharp": "^2.2.27",
|
"gatsby-plugin-sharp": "^2.2.29",
|
||||||
"gatsby-plugin-sitemap": "^2.2.16",
|
"gatsby-plugin-sitemap": "^2.2.17",
|
||||||
"gatsby-plugin-transition-link": "^1.12.4",
|
"gatsby-plugin-transition-link": "^1.13.0",
|
||||||
"gatsby-remark-autolink-headers": "^2.1.13",
|
"gatsby-remark-autolink-headers": "^2.1.14",
|
||||||
"gatsby-remark-copy-linked-files": "^2.1.23",
|
"gatsby-remark-copy-linked-files": "^2.1.26",
|
||||||
"gatsby-remark-external-links": "0.0.4",
|
"gatsby-remark-external-links": "0.0.4",
|
||||||
"gatsby-remark-images": "^3.1.25",
|
"gatsby-remark-images": "^3.1.26",
|
||||||
"gatsby-remark-images-medium-zoom": "^1.2.1",
|
"gatsby-remark-images-medium-zoom": "^1.4.0",
|
||||||
"gatsby-remark-prismjs": "^3.3.16",
|
"gatsby-remark-prismjs": "^3.3.18",
|
||||||
"gatsby-remark-responsive-iframe": "^2.2.20",
|
"gatsby-remark-responsive-iframe": "^2.2.23",
|
||||||
"gatsby-remark-video": "^1.2.4",
|
"gatsby-remark-video": "^1.2.4",
|
||||||
"gatsby-source-filesystem": "^2.1.28",
|
"gatsby-source-filesystem": "^2.1.31",
|
||||||
"gatsby-transformer-json": "^2.2.11",
|
"gatsby-transformer-json": "^2.2.13",
|
||||||
"gatsby-transformer-remark": "^2.6.26",
|
"gatsby-transformer-remark": "^2.6.28",
|
||||||
"gatsby-transformer-sharp": "^2.2.19",
|
"gatsby-transformer-sharp": "^2.2.21",
|
||||||
"node-sass": "^4.12.0",
|
"node-sass": "^4.12.0",
|
||||||
"prismjs": "^1.17.1",
|
"prismjs": "^1.17.1",
|
||||||
"react": "^16.9.0",
|
"react": "^16.10.2",
|
||||||
"react-breakpoints": "^3.0.3",
|
"react-breakpoints": "^3.0.3",
|
||||||
"react-dom": "^16.9.0",
|
"react-dom": "^16.10.2",
|
||||||
"react-helmet": "^5.2.1",
|
"react-helmet": "^5.2.1",
|
||||||
"react-pose": "^4.0.8"
|
"react-pose": "^4.0.9"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@reach/router": "^1.1.1"
|
"@reach/router": "^1.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.6.2",
|
"@babel/core": "^7.6.4",
|
||||||
"@storybook/addon-actions": "^5.2.1",
|
"@storybook/addon-actions": "^5.2.3",
|
||||||
"@storybook/addon-knobs": "^5.2.1",
|
"@storybook/addon-knobs": "^5.2.3",
|
||||||
"@storybook/addon-links": "^5.2.1",
|
"@storybook/addon-links": "^5.2.3",
|
||||||
"@storybook/addons": "^5.2.1",
|
"@storybook/addons": "^5.2.3",
|
||||||
"@storybook/react": "^5.2.1",
|
"@storybook/react": "^5.2.3",
|
||||||
"@testing-library/jest-dom": "^4.1.0",
|
"@testing-library/jest-dom": "^4.1.2",
|
||||||
"@testing-library/react": "^9.2.0",
|
"@testing-library/react": "^9.3.0",
|
||||||
"babel-jest": "^24.9.0",
|
"babel-jest": "^24.9.0",
|
||||||
"babel-loader": "^8.0.6",
|
"babel-loader": "^8.0.6",
|
||||||
"babel-preset-gatsby": "^0.2.17",
|
"babel-preset-gatsby": "^0.2.18",
|
||||||
"identity-obj-proxy": "^3.0.0",
|
"identity-obj-proxy": "^3.0.0",
|
||||||
"jest": "^24.9.0",
|
"jest": "^24.9.0",
|
||||||
"jest-axe": "^3.2.0",
|
"jest-axe": "^3.2.0",
|
||||||
|
|||||||
@@ -1,48 +0,0 @@
|
|||||||
/**
|
|
||||||
* Delete this when this PR is merged:
|
|
||||||
* https://github.com/JaeYeopHan/gatsby-remark-images-medium-zoom/pull/7
|
|
||||||
*/
|
|
||||||
// @see https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-remark-images/src/constants.js#L1
|
|
||||||
const imageClass = '.gatsby-resp-image-image'
|
|
||||||
|
|
||||||
const FIRST_CONTENTFUL_PAINT = 'first-contentful-paint'
|
|
||||||
|
|
||||||
function onFCP(callback) {
|
|
||||||
if (!window.performance) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
const po = new PerformanceObserver(list =>
|
|
||||||
list
|
|
||||||
.getEntries()
|
|
||||||
.filter(({ entryType }) => entryType === 'paint')
|
|
||||||
.map(({ name }) => name === FIRST_CONTENTFUL_PAINT)
|
|
||||||
.forEach(callback),
|
|
||||||
)
|
|
||||||
|
|
||||||
try {
|
|
||||||
po.observe({ entryTypes: ['measure', 'paint'] })
|
|
||||||
} catch (e) {
|
|
||||||
console.error(e)
|
|
||||||
po.disconnect()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function applyTabIndex() {
|
|
||||||
Array.from(document.querySelectorAll(imageClass)).forEach(
|
|
||||||
el => {
|
|
||||||
el.setAttribute('tabIndex', 0)
|
|
||||||
el.addEventListener('keydown', (e) => {
|
|
||||||
if (e.key === ' ' || e.key === 'Enter') {
|
|
||||||
e.preventDefault();
|
|
||||||
el.click();
|
|
||||||
}
|
|
||||||
})
|
|
||||||
return el
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export const onRouteUpdate = (_) => {
|
|
||||||
onFCP(() => applyTabIndex())
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
// noop
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "tab-index-image",
|
|
||||||
"main": "index.js"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user