@shopify/react-html
Advanced tools
Comparing version 10.0.1 to 10.0.2
@@ -10,2 +10,6 @@ # Changelog | ||
## [10.0.2] - 2020-10-26 | ||
- Update `HtmlProps` to mark children as optional (same as any React component) and export it ([#1661](https://github.com/Shopify/quilt/pull/1661)) | ||
## [10.0.1] - 2020-10-20 | ||
@@ -12,0 +16,0 @@ |
@@ -11,6 +11,6 @@ import React from 'react'; | ||
} | ||
export interface Props { | ||
export interface HtmlProps { | ||
manager?: HtmlManager; | ||
hydrationManager?: HydrationManager; | ||
children: React.ReactElement<any> | string; | ||
children?: React.ReactElement<any> | string; | ||
locale?: string; | ||
@@ -25,3 +25,3 @@ styles?: Asset[]; | ||
} | ||
export default function Html({ manager, hydrationManager, children, locale, blockingScripts, scripts, styles, inlineStyles, preloadAssets, headMarkup, bodyMarkup, }: Props): JSX.Element; | ||
export default function Html({ manager, hydrationManager, children, locale, blockingScripts, scripts, styles, inlineStyles, preloadAssets, headMarkup, bodyMarkup, }: HtmlProps): JSX.Element; | ||
//# sourceMappingURL=Html.d.ts.map |
@@ -15,3 +15,3 @@ "use strict"; | ||
var _b; | ||
var manager = _a.manager, hydrationManager = _a.hydrationManager, children = _a.children, _c = _a.locale, locale = _c === void 0 ? 'en' : _c, _d = _a.blockingScripts, blockingScripts = _d === void 0 ? [] : _d, _e = _a.scripts, scripts = _e === void 0 ? [] : _e, _f = _a.styles, styles = _f === void 0 ? [] : _f, _g = _a.inlineStyles, inlineStyles = _g === void 0 ? [] : _g, _h = _a.preloadAssets, preloadAssets = _h === void 0 ? [] : _h, _j = _a.headMarkup, headMarkup = _j === void 0 ? null : _j, _k = _a.bodyMarkup, bodyMarkup = _k === void 0 ? null : _k; | ||
var manager = _a.manager, hydrationManager = _a.hydrationManager, _c = _a.children, children = _c === void 0 ? '' : _c, _d = _a.locale, locale = _d === void 0 ? 'en' : _d, _e = _a.blockingScripts, blockingScripts = _e === void 0 ? [] : _e, _f = _a.scripts, scripts = _f === void 0 ? [] : _f, _g = _a.styles, styles = _g === void 0 ? [] : _g, _h = _a.inlineStyles, inlineStyles = _h === void 0 ? [] : _h, _j = _a.preloadAssets, preloadAssets = _j === void 0 ? [] : _j, _k = _a.headMarkup, headMarkup = _k === void 0 ? null : _k, _l = _a.bodyMarkup, bodyMarkup = _l === void 0 ? null : _l; | ||
var markup = typeof children === 'string' | ||
@@ -18,0 +18,0 @@ ? children |
export { default as Serialize } from './Serialize'; | ||
export { default as Html } from './Html'; | ||
export { default as Html, HtmlProps } from './Html'; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@shopify/react-html", | ||
"version": "10.0.1", | ||
"version": "10.0.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
75557