WIP - add extractor, generate snippet_data
This commit is contained in:
6
node_modules/gatsby-plugin-react-helmet/.babelrc
generated
vendored
Normal file
6
node_modules/gatsby-plugin-react-helmet/.babelrc
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"presets": [
|
||||
["babel-preset-gatsby-package", { "browser": true }]
|
||||
]
|
||||
}
|
||||
|
||||
130
node_modules/gatsby-plugin-react-helmet/CHANGELOG.md
generated
vendored
Normal file
130
node_modules/gatsby-plugin-react-helmet/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,130 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [3.1.3](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.1.2...gatsby-plugin-react-helmet@3.1.3) (2019-08-02)
|
||||
|
||||
### Features
|
||||
|
||||
- **gatsby-plugin-react-helmet:** add support for base tag ([#16325](https://github.com/gatsbyjs/gatsby/issues/16325)) ([7325346](https://github.com/gatsbyjs/gatsby/commit/7325346))
|
||||
|
||||
## [3.1.2](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.1.1...gatsby-plugin-react-helmet@3.1.2) (2019-07-12)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- correct links in package changelogs ([#15630](https://github.com/gatsbyjs/gatsby/issues/15630)) ([d07b9dd](https://github.com/gatsbyjs/gatsby/commit/d07b9dd))
|
||||
|
||||
## [3.1.1](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.1.0...gatsby-plugin-react-helmet@3.1.1) (2019-07-11)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
# [3.1.0](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.12...gatsby-plugin-react-helmet@3.1.0) (2019-06-20)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
## [3.0.12](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.11...gatsby-plugin-react-helmet@3.0.12) (2019-04-04)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
## [3.0.11](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.10...gatsby-plugin-react-helmet@3.0.11) (2019-03-25)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
## [3.0.10](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.9...gatsby-plugin-react-helmet@3.0.10) (2019-03-16)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
## [3.0.9](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.8...gatsby-plugin-react-helmet@3.0.9) (2019-03-11)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
## [3.0.8](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.7...gatsby-plugin-react-helmet@3.0.8) (2019-03-05)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
## [3.0.7](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.6...gatsby-plugin-react-helmet@3.0.7) (2019-02-25)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
## [3.0.6](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.5...gatsby-plugin-react-helmet@3.0.6) (2019-02-01)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.5"></a>
|
||||
|
||||
## [3.0.5](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.4...gatsby-plugin-react-helmet@3.0.5) (2018-12-21)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.4"></a>
|
||||
|
||||
## [3.0.4](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.3...gatsby-plugin-react-helmet@3.0.4) (2018-12-01)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.3"></a>
|
||||
|
||||
## [3.0.3](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.2...gatsby-plugin-react-helmet@3.0.3) (2018-11-29)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.2"></a>
|
||||
|
||||
## [3.0.2](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.1...gatsby-plugin-react-helmet@3.0.2) (2018-11-12)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.1"></a>
|
||||
|
||||
## [3.0.1](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.0...gatsby-plugin-react-helmet@3.0.1) (2018-10-29)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.0"></a>
|
||||
|
||||
# [3.0.0](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.0-rc.1...gatsby-plugin-react-helmet@3.0.0) (2018-09-17)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.0-rc.1"></a>
|
||||
|
||||
# [3.0.0-rc.1](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.0-rc.0...gatsby-plugin-react-helmet@3.0.0-rc.1) (2018-08-29)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.0-rc.0"></a>
|
||||
|
||||
# [3.0.0-rc.0](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.0-beta.4...gatsby-plugin-react-helmet@3.0.0-rc.0) (2018-08-21)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.0-beta.4"></a>
|
||||
|
||||
# [3.0.0-beta.4](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.0-beta.3...gatsby-plugin-react-helmet@3.0.0-beta.4) (2018-07-21)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.0-beta.3"></a>
|
||||
|
||||
# [3.0.0-beta.3](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.0-beta.2...gatsby-plugin-react-helmet@3.0.0-beta.3) (2018-06-27)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.0-beta.2"></a>
|
||||
|
||||
# [3.0.0-beta.2](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.0-beta.1...gatsby-plugin-react-helmet@3.0.0-beta.2) (2018-06-20)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.0-beta.1"></a>
|
||||
|
||||
# [3.0.0-beta.1](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@3.0.0-beta.0...gatsby-plugin-react-helmet@3.0.0-beta.1) (2018-06-17)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
|
||||
<a name="3.0.0-beta.0"></a>
|
||||
|
||||
# [3.0.0-beta.0](https://github.com/gatsbyjs/gatsby/compare/gatsby-plugin-react-helmet@2.0.11...gatsby-plugin-react-helmet@3.0.0-beta.0) (2018-06-17)
|
||||
|
||||
**Note:** Version bump only for package gatsby-plugin-react-helmet
|
||||
22
node_modules/gatsby-plugin-react-helmet/LICENSE
generated
vendored
Normal file
22
node_modules/gatsby-plugin-react-helmet/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Gatsbyjs
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
45
node_modules/gatsby-plugin-react-helmet/README.md
generated
vendored
Normal file
45
node_modules/gatsby-plugin-react-helmet/README.md
generated
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
# gatsby-plugin-react-helmet
|
||||
|
||||
Provides drop-in support for server rendering data added with
|
||||
[React Helmet](https://github.com/nfl/react-helmet).
|
||||
|
||||
React Helmet is a component which lets you control your document head using
|
||||
their React component.
|
||||
|
||||
With this plugin, attributes you add in their component, e.g. title, meta
|
||||
attributes, etc. will get added to the static HTML pages Gatsby builds.
|
||||
|
||||
This is important not just for site viewers, but also for SEO -- title and description metadata stored in the document head is a key component used by Google in determining placement in search results.
|
||||
|
||||
## Install
|
||||
|
||||
`npm install --save gatsby-plugin-react-helmet react-helmet`
|
||||
|
||||
## How to use
|
||||
|
||||
Just add the plugin to the plugins array in your `gatsby-config.js`
|
||||
|
||||
```javascript
|
||||
plugins: [`gatsby-plugin-react-helmet`]
|
||||
```
|
||||
|
||||
## Titles don't appear when opening in the background, while using `gatsby-plugin-offline`
|
||||
|
||||
If you're using `gatsby-plugin-offline`, you might notice that when opening a link in the background, the title doesn't appear in the tab bar until switching to that tab. This is an [upstream issue with React Helmet](https://github.com/nfl/react-helmet/issues/315); however, it can be worked around by passing the `defer={false}` prop into your `Helmet` component. For example:
|
||||
|
||||
```javascript
|
||||
<Helmet title="foo bar" defer={false} />
|
||||
```
|
||||
|
||||
## Compatibility with React 16.8 useEffect hook
|
||||
|
||||
If you are using this plugin with React hooks, you may notice some errors like `maximum call stack size exceeded`. To ensure everything is running smoothly when using these technologies together, make sure to validate the following:
|
||||
|
||||
- You have updated to the latest version of `gatsby-plugin-react-helmet`
|
||||
- You are using version 6.0.0-beta or later of `react-helmet`
|
||||
- You are importing React Helmet using `import { Helmet } from 'react-helmet'` rather than the old `import Helmet from 'react-helmet'`
|
||||
|
||||
## Examples
|
||||
|
||||
- [GatsbyJS.org](https://github.com/gatsbyjs/gatsby/blob/master/www/src/components/site-metadata.js)
|
||||
- [Jason Lengstorf personal website](https://github.com/jlengstorf/gatsby-theme-jason-blog/blob/master/src/components/SEO/SEO.js)
|
||||
27
node_modules/gatsby-plugin-react-helmet/gatsby-ssr.js
generated
vendored
Normal file
27
node_modules/gatsby-plugin-react-helmet/gatsby-ssr.js
generated
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.onRenderBody = void 0;
|
||||
|
||||
var _reactHelmet = require("react-helmet");
|
||||
|
||||
var onRenderBody = function onRenderBody(_ref) {
|
||||
var setHeadComponents = _ref.setHeadComponents,
|
||||
setHtmlAttributes = _ref.setHtmlAttributes,
|
||||
setBodyAttributes = _ref.setBodyAttributes;
|
||||
|
||||
var helmet = _reactHelmet.Helmet.renderStatic(); // These action functions were added partway through the Gatsby 1.x cycle.
|
||||
|
||||
|
||||
if (setHtmlAttributes) {
|
||||
setHtmlAttributes(helmet.htmlAttributes.toComponent());
|
||||
}
|
||||
|
||||
if (setBodyAttributes) {
|
||||
setBodyAttributes(helmet.bodyAttributes.toComponent());
|
||||
}
|
||||
|
||||
setHeadComponents([helmet.title.toComponent(), helmet.link.toComponent(), helmet.meta.toComponent(), helmet.noscript.toComponent(), helmet.script.toComponent(), helmet.style.toComponent(), helmet.base.toComponent()]);
|
||||
};
|
||||
|
||||
exports.onRenderBody = onRenderBody;
|
||||
1
node_modules/gatsby-plugin-react-helmet/index.js
generated
vendored
Normal file
1
node_modules/gatsby-plugin-react-helmet/index.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
// noop
|
||||
83
node_modules/gatsby-plugin-react-helmet/package.json
generated
vendored
Normal file
83
node_modules/gatsby-plugin-react-helmet/package.json
generated
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
{
|
||||
"_from": "gatsby-plugin-react-helmet@^3.1.2",
|
||||
"_id": "gatsby-plugin-react-helmet@3.1.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-S/1B/9JxHFEyeZ/d0BFzJYX9Gd5XBNvLJ7vLd7f7ZzFiqOYpNchnliF87cX+/BuR1gj+v2ypZ7tLRA4LE4PyBw==",
|
||||
"_location": "/gatsby-plugin-react-helmet",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "gatsby-plugin-react-helmet@^3.1.2",
|
||||
"name": "gatsby-plugin-react-helmet",
|
||||
"escapedName": "gatsby-plugin-react-helmet",
|
||||
"rawSpec": "^3.1.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^3.1.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"#DEV:/"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/gatsby-plugin-react-helmet/-/gatsby-plugin-react-helmet-3.1.3.tgz",
|
||||
"_shasum": "a18033a5fec7ec39614204831a1e5094337e56e1",
|
||||
"_spec": "gatsby-plugin-react-helmet@^3.1.2",
|
||||
"_where": "/Users/stefanfejes/Projects/30-seconds-of-python-code",
|
||||
"author": {
|
||||
"name": "Kyle Mathews",
|
||||
"email": "matthews.kyle@gmail.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/gatsbyjs/gatsby/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Manage document head data with react-helmet. Provides drop-in server rendering support for Gatsby.",
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.0.0",
|
||||
"@babel/core": "^7.0.0",
|
||||
"babel-preset-gatsby-package": "^0.2.2",
|
||||
"cross-env": "^5.1.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.0.0"
|
||||
},
|
||||
"gitHead": "f455c217d34c1bce412a3260d056ce27b4649019",
|
||||
"homepage": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-plugin-react-helmet#readme",
|
||||
"keywords": [
|
||||
"gatsby",
|
||||
"gatsby-plugin",
|
||||
"favicon",
|
||||
"react-helmet",
|
||||
"seo",
|
||||
"document",
|
||||
"head",
|
||||
"title",
|
||||
"meta",
|
||||
"link",
|
||||
"script",
|
||||
"base",
|
||||
"noscript",
|
||||
"style"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "gatsby-plugin-react-helmet",
|
||||
"peerDependencies": {
|
||||
"gatsby": "^2.0.0",
|
||||
"react-helmet": "^5.1.3"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/gatsbyjs/gatsby.git",
|
||||
"directory": "packages/gatsby-plugin-react-helmet"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "babel src --out-dir . --ignore **/__tests__,**/__mocks__",
|
||||
"prepare": "cross-env NODE_ENV=production npm run build",
|
||||
"watch": "babel -w src --out-dir . --ignore **/__tests__,**/__mocks__"
|
||||
},
|
||||
"version": "3.1.3"
|
||||
}
|
||||
Reference in New Issue
Block a user