@shopify/react-html
Advanced tools
Comparing version 3.0.3 to 3.0.5
"use strict"; | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
@@ -10,0 +13,0 @@ var __importStar = (this && this.__importStar) || function (mod) { |
"use strict"; | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
@@ -10,0 +13,0 @@ var __importStar = (this && this.__importStar) || function (mod) { |
"use strict"; | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
@@ -10,0 +13,0 @@ var __importStar = (this && this.__importStar) || function (mod) { |
{ | ||
"name": "@shopify/react-html", | ||
"version": "3.0.3", | ||
"version": "3.0.5", | ||
"license": "MIT", | ||
@@ -9,3 +9,3 @@ "description": "A component to render your react app with no static HTML.", | ||
"scripts": { | ||
"build": "tsc", | ||
"build": "tsc --p tsconfig.build.json", | ||
"prepublishOnly": "yarn run build" | ||
@@ -27,3 +27,3 @@ }, | ||
"dependencies": { | ||
"@shopify/react-serialize": "^1.0.6", | ||
"@shopify/react-serialize": "^1.0.7", | ||
"react-helmet": "^5.2.0" | ||
@@ -36,5 +36,5 @@ }, | ||
"devDependencies": { | ||
"@shopify/with-env": "^1.0.5", | ||
"typescript": "~2.9.2" | ||
"@shopify/with-env": "^1.0.6", | ||
"typescript": "~3.0.1" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # `@shopify/react-html` | ||
A component to render your react app with no static HTML. | ||
A component to render your React app with no static HTML. | ||
@@ -16,7 +16,7 @@ ## Installation | ||
The `<HTML>` component serves as a top level wrapper for a react application, allowing you to avoid needing any kind of server side template, in favour of purely using `reactDom.renderToString`. | ||
The `<HTML>` component serves as a top level wrapper for a react application, allowing you to avoid needing any kind of server side template, in favor of purely using `reactDom.renderToString`. | ||
```javascript | ||
import * as React from 'react'; | ||
import { renderToString } from 'react-dom/server'; | ||
import {renderToString} from 'react-dom/server'; | ||
@@ -38,5 +38,5 @@ import HTML, {DOCTYPE} from '@shopify/react-html'; | ||
Due to [limitations in react's implementation of HTML](https://github.com/facebook/react/issues/1035), you still need to prepend the `<!DOCTYPE html>` directive. To assist with this the module also exports a `DOCTYPE` constant. | ||
Due to [limitations in React’s implementation of HTML](https://github.com/facebook/react/issues/1035), you still need to prepend the `<!DOCTYPE html>` directive. To assist with this the module also exports a `DOCTYPE` constant. | ||
The component will automatically propagate any usage of the `react-helmet` module in your app's content to manipulate the title or other top level HTML or HEAD attributes. | ||
The component will automatically propagate any usage of the `react-helmet` module in your app’s content to manipulate the title or other top level HTML or HEAD attributes. | ||
@@ -88,3 +88,3 @@ ## Interface | ||
These props are useful for more complex applications that want to synchronize redux, apollo, translation, or any other data across the network boundary. These props are stringified into the DOM using (`@shopify/react-serialize`)[https://github.com/Shopify/quilt/blob/master/packages/react-serialize/README.md]. | ||
These props are useful for more complex applications that want to synchronize Redux, Apollo, translation, or any other data across the network boundary. These props are stringified into the DOM using (`@shopify/react-serialize`)[https://github.com/Shopify/quilt/blob/master/packages/react-serialize/README.md]. | ||
@@ -99,3 +99,3 @@ **headData** | ||
This module also exports the asset components the `<HTML />` component uses internally for it's script and style props. | ||
This module also exports the asset components the `<HTML />` component uses internally for its script and style props. | ||
@@ -102,0 +102,0 @@ ```ts |
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
26816
638