@shopify/react-html
Advanced tools
Comparing version 7.1.1 to 7.1.2
@@ -13,2 +13,8 @@ # Changelog | ||
## 7.1.2 - 2019-03-02 | ||
### Fixed | ||
- Removed the `title` and `favicon` props from `<Html />` because they did not have any effect on the rendered markup. Developers should include `<Title />` and `<Favicon />` components themselves instead. | ||
## 7.1.1 - 2019-02-27 | ||
@@ -15,0 +21,0 @@ |
@@ -16,5 +16,3 @@ import * as React from 'react'; | ||
bodyMarkup?: React.ReactNode; | ||
favicon?: string; | ||
title?: string; | ||
} | ||
export default function Html({ manager, children, locale, blockingScripts, scripts, styles, headMarkup, bodyMarkup, favicon, title, }: Props): JSX.Element; | ||
export default function Html({ manager, children, locale, blockingScripts, scripts, styles, headMarkup, bodyMarkup, }: Props): JSX.Element; |
@@ -10,3 +10,3 @@ "use strict"; | ||
function Html(_a) { | ||
var manager = _a.manager, children = _a.children, _b = _a.locale, locale = _b === void 0 ? 'en' : _b, _c = _a.blockingScripts, blockingScripts = _c === void 0 ? [] : _c, _d = _a.scripts, scripts = _d === void 0 ? [] : _d, _e = _a.styles, styles = _e === void 0 ? [] : _e, _f = _a.headMarkup, headMarkup = _f === void 0 ? null : _f, _g = _a.bodyMarkup, bodyMarkup = _g === void 0 ? null : _g, favicon = _a.favicon, title = _a.title; | ||
var manager = _a.manager, children = _a.children, _b = _a.locale, locale = _b === void 0 ? 'en' : _b, _c = _a.blockingScripts, blockingScripts = _c === void 0 ? [] : _c, _d = _a.scripts, scripts = _d === void 0 ? [] : _d, _e = _a.styles, styles = _e === void 0 ? [] : _e, _f = _a.headMarkup, headMarkup = _f === void 0 ? null : _f, _g = _a.bodyMarkup, bodyMarkup = _g === void 0 ? null : _g; | ||
var _h; | ||
@@ -22,4 +22,3 @@ var markup = typeof children === 'string' ? children : server_1.renderToString(children); | ||
var managedProps = (_h = {}, _h[utilities_1.MANAGED_ATTRIBUTE] = true, _h); | ||
var titleFallbackMarkup = title ? React.createElement(components_1.Title, null, title) : null; | ||
var titleMarkup = extracted && extracted.title ? (React.createElement("title", tslib_1.__assign({}, managedProps), extracted.title)) : (titleFallbackMarkup); | ||
var titleMarkup = extracted && extracted.title ? (React.createElement("title", tslib_1.__assign({}, managedProps), extracted.title)) : null; | ||
var metaMarkup = extracted | ||
@@ -51,10 +50,8 @@ ? extracted.metas.map(function (metaProps, index) { return ( | ||
process.env.NODE_ENV === 'development' ? { visibility: 'hidden' } : undefined; | ||
var faviconMarkup = favicon ? React.createElement(components_1.Favicon, { source: favicon }) : null; | ||
return (React.createElement("html", { lang: locale }, | ||
React.createElement("head", null, | ||
React.createElement(components_1.Meta, { charSet: "utf-8" }), | ||
React.createElement(components_1.Meta, { httpEquiv: "X-UA-Compatible", content: "IE=edge" }), | ||
React.createElement(components_1.Meta, { name: "referrer", content: "never" }), | ||
faviconMarkup, | ||
titleMarkup, | ||
React.createElement("meta", { charSet: "utf-8" }), | ||
React.createElement("meta", { httpEquiv: "X-UA-Compatible", content: "IE=edge" }), | ||
React.createElement("meta", { name: "referrer", content: "never" }), | ||
metaMarkup, | ||
@@ -61,0 +58,0 @@ linkMarkup, |
{ | ||
"name": "@shopify/react-html", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A component to render your react app with no static HTML.", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91461
2060