property-information
Advanced tools
Comparing version 5.2.2 to 5.3.0
@@ -299,2 +299,3 @@ 'use strict' | ||
autoSave: null, | ||
disablePictureInPicture: boolean, | ||
prefix: null, | ||
@@ -301,0 +302,0 @@ property: null, |
{ | ||
"name": "property-information", | ||
"version": "5.2.2", | ||
"version": "5.3.0", | ||
"description": "Information for HTML properties", | ||
@@ -23,2 +23,3 @@ "license": "MIT", | ||
"index.js", | ||
"hast-to-react.json", | ||
"html.js", | ||
@@ -41,3 +42,2 @@ "svg.js", | ||
"html-event-attributes": "^1.0.0", | ||
"mdast-util-to-string": "^1.0.4", | ||
"mdast-zone": "^3.0.1", | ||
@@ -47,6 +47,4 @@ "nyc": "^14.0.0", | ||
"prettier": "^1.15.1", | ||
"remark-cli": "^6.0.0", | ||
"remark-frontmatter": "^1.2.0", | ||
"remark-parse": "^6.0.0", | ||
"remark-preset-wooorm": "^5.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"svg-element-attributes": "^1.2.1", | ||
@@ -56,9 +54,7 @@ "svg-event-attributes": "^1.0.0", | ||
"tinyify": "^2.4.3", | ||
"unified": "^8.0.0", | ||
"unist-builder": "^1.0.2", | ||
"unist-util-visit": "^1.3.1", | ||
"xo": "^0.24.0" | ||
"xo": "^0.25.0" | ||
}, | ||
"scripts": { | ||
"generate": "node script/generate-react", | ||
"generate": "node script/generate-react && node script/generate-exceptions", | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
@@ -91,3 +87,4 @@ "build-bundle": "browserify index.js -s propertyInformation > property-information.js", | ||
"guard-for-in": "off", | ||
"unicorn/prefer-exponentiation-operator": "off" | ||
"unicorn/prefer-exponentiation-operator": "off", | ||
"unicorn/prefer-includes": "off" | ||
}, | ||
@@ -94,0 +91,0 @@ "ignore": [ |
@@ -25,6 +25,7 @@ # property-information | ||
* [API](#api) | ||
* [propertyInformation.find(schema, name)](#propertyinformationfindschema-name) | ||
* [propertyInformation.normalize(name)](#propertyinformationnormalizename) | ||
* [propertyInformation.html](#propertyinformationhtml) | ||
* [propertyInformation.svg](#propertyinformationsvg) | ||
* [`propertyInformation.find(schema, name)`](#propertyinformationfindschema-name) | ||
* [`propertyInformation.normalize(name)`](#propertyinformationnormalizename) | ||
* [`propertyInformation.html`](#propertyinformationhtml) | ||
* [`propertyInformation.svg`](#propertyinformationsvg) | ||
* [`hastToReact`](#hasttoreact) | ||
* [Support](#support) | ||
@@ -242,2 +243,11 @@ * [Related](#related) | ||
### `hastToReact` | ||
> Accessible through `require('property-information/hast-to-react.json')` | ||
[hast][] is close to [React][], but differs in a couple of cases. | ||
To get a React property from a hast property, check if it is in | ||
[`hast-to-react`][hast-to-react] (`Object.<string>`), if it is, then use the | ||
corresponding value, otherwise, use the hast property. | ||
## Support | ||
@@ -398,2 +408,3 @@ | ||
| `direction` | `direction` | `svg` | | ||
| `disablePictureInPicture` | `disablepictureinpicture` | `html` | | ||
| `disabled` | `disabled` | `html` | | ||
@@ -930,2 +941,6 @@ | `display` | `display` | `svg` | | ||
[hast]: https://github.com/syntax-tree/hast#property-names | ||
[react]: https://github.com/facebook/react | ||
[hast-to-react]: hast-to-react.json | ||
[hast]: https://github.com/syntax-tree/hast#propertyname |
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
95866
19
23
1207
943