property-information
Advanced tools
+7
-7
@@ -1,7 +0,7 @@ | ||
| export {find} from './lib/find.js' | ||
| export {hastToReact} from './lib/hast-to-react.js' | ||
| export {normalize} from './lib/normalize.js' | ||
| export const html: import('./lib/util/schema.js').Schema | ||
| export const svg: import('./lib/util/schema.js').Schema | ||
| export type Info = import('./lib/util/info.js').Info | ||
| export type Schema = import('./lib/util/schema.js').Schema | ||
| export { find } from "./lib/find.js"; | ||
| export { hastToReact } from "./lib/hast-to-react.js"; | ||
| export { normalize } from "./lib/normalize.js"; | ||
| export const html: import("./lib/util/schema.js").Schema; | ||
| export const svg: import("./lib/util/schema.js").Schema; | ||
| export type Info = import('./lib/util/info.js').Info; | ||
| export type Schema = import('./lib/util/schema.js').Schema; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| export const aria: import('./util/schema.js').Schema | ||
| export const aria: import("./util/schema.js").Schema; |
+3
-3
@@ -6,4 +6,4 @@ /** | ||
| */ | ||
| export function find(schema: Schema, value: string): Info | ||
| export type Schema = import('./util/schema.js').Schema | ||
| import {Info} from './util/info.js' | ||
| export function find(schema: Schema, value: string): Info; | ||
| export type Schema = import('./util/schema.js').Schema; | ||
| import { Info } from './util/info.js'; |
@@ -10,2 +10,2 @@ /** | ||
| */ | ||
| export const hastToReact: Record<string, string> | ||
| export const hastToReact: Record<string, string>; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| export const html: import('./util/schema.js').Schema | ||
| export const html: import("./util/schema.js").Schema; |
+6
-0
@@ -40,2 +40,3 @@ import { | ||
| autoPlay: boolean, | ||
| blocking: spaceSeparated, | ||
| capture: boolean, | ||
@@ -66,2 +67,3 @@ charSet: null, | ||
| enterKeyHint: null, | ||
| fetchPriority: null, | ||
| form: null, | ||
@@ -84,2 +86,3 @@ formAction: null, | ||
| imageSrcSet: null, | ||
| inert: boolean, | ||
| inputMode: null, | ||
@@ -208,2 +211,5 @@ integrity: null, | ||
| playsInline: boolean, | ||
| popover: null, | ||
| popoverTarget: null, | ||
| popoverTargetAction: null, | ||
| poster: null, | ||
@@ -210,0 +216,0 @@ preload: null, |
@@ -5,2 +5,2 @@ /** | ||
| */ | ||
| export function normalize(value: string): string | ||
| export function normalize(value: string): string; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| export const svg: import('./util/schema.js').Schema | ||
| export const svg: import("./util/schema.js").Schema; |
+2
-0
@@ -166,2 +166,3 @@ import { | ||
| textRendering: 'text-rendering', | ||
| transformOrigin: 'transform-origin', | ||
| typeOf: 'typeof', | ||
@@ -529,2 +530,3 @@ underlinePosition: 'underline-position', | ||
| transform: null, | ||
| transformOrigin: null, | ||
| u1: null, | ||
@@ -531,0 +533,0 @@ u2: null, |
@@ -6,5 +6,2 @@ /** | ||
| */ | ||
| export function caseInsensitiveTransform( | ||
| attributes: Record<string, string>, | ||
| property: string | ||
| ): string | ||
| export function caseInsensitiveTransform(attributes: Record<string, string>, property: string): string; |
@@ -6,5 +6,2 @@ /** | ||
| */ | ||
| export function caseSensitiveTransform( | ||
| attributes: Record<string, string>, | ||
| attribute: string | ||
| ): string | ||
| export function caseSensitiveTransform(attributes: Record<string, string>, attribute: string): string; |
+11
-11
@@ -5,13 +5,13 @@ /** | ||
| */ | ||
| export function create(definition: Definition): Schema | ||
| export type Properties = import('./schema.js').Properties | ||
| export type Normal = import('./schema.js').Normal | ||
| export type Attributes = Record<string, string> | ||
| export function create(definition: Definition): Schema; | ||
| export type Properties = import('./schema.js').Properties; | ||
| export type Normal = import('./schema.js').Normal; | ||
| export type Attributes = Record<string, string>; | ||
| export type Definition = { | ||
| properties: Record<string, number | null> | ||
| transform: (attributes: Attributes, property: string) => string | ||
| space?: string | undefined | ||
| attributes?: Attributes | undefined | ||
| mustUseProperty?: string[] | undefined | ||
| } | ||
| import {Schema} from './schema.js' | ||
| properties: Record<string, number | null>; | ||
| transform: (attributes: Attributes, property: string) => string; | ||
| space?: string; | ||
| attributes?: Attributes; | ||
| mustUseProperty?: Array<string>; | ||
| }; | ||
| import { Schema } from './schema.js'; |
| export class DefinedInfo extends Info { | ||
| /** | ||
| * @constructor | ||
| * @param {string} property | ||
| * @param {string} attribute | ||
| * @param {number|null} [mask] | ||
| * @param {string} [space] | ||
| */ | ||
| constructor( | ||
| property: string, | ||
| attribute: string, | ||
| mask?: number | null | undefined, | ||
| space?: string | undefined | ||
| ) | ||
| /** | ||
| * @constructor | ||
| * @param {string} property | ||
| * @param {string} attribute | ||
| * @param {number|null} [mask] | ||
| * @param {string} [space] | ||
| */ | ||
| constructor(property: string, attribute: string, mask?: number | null | undefined, space?: string | undefined); | ||
| } | ||
| import {Info} from './info.js' | ||
| import { Info } from './info.js'; |
+21
-21
| export class Info { | ||
| /** | ||
| * @constructor | ||
| * @param {string} property | ||
| * @param {string} attribute | ||
| */ | ||
| constructor(property: string, attribute: string) | ||
| /** @type {string} */ | ||
| property: string | ||
| /** @type {string} */ | ||
| attribute: string | ||
| /** @type {string|null} */ | ||
| space: string | null | ||
| boolean: boolean | ||
| booleanish: boolean | ||
| overloadedBoolean: boolean | ||
| number: boolean | ||
| commaSeparated: boolean | ||
| spaceSeparated: boolean | ||
| commaOrSpaceSeparated: boolean | ||
| mustUseProperty: boolean | ||
| defined: boolean | ||
| /** | ||
| * @constructor | ||
| * @param {string} property | ||
| * @param {string} attribute | ||
| */ | ||
| constructor(property: string, attribute: string); | ||
| /** @type {string} */ | ||
| property: string; | ||
| /** @type {string} */ | ||
| attribute: string; | ||
| /** @type {string|null} */ | ||
| space: string | null; | ||
| boolean: boolean; | ||
| booleanish: boolean; | ||
| overloadedBoolean: boolean; | ||
| number: boolean; | ||
| commaSeparated: boolean; | ||
| spaceSeparated: boolean; | ||
| commaOrSpaceSeparated: boolean; | ||
| mustUseProperty: boolean; | ||
| defined: boolean; | ||
| } |
@@ -6,5 +6,5 @@ /** | ||
| */ | ||
| export function merge(definitions: Schema[], space?: string | undefined): Schema | ||
| export type Properties = import('./schema.js').Properties | ||
| export type Normal = import('./schema.js').Normal | ||
| import {Schema} from './schema.js' | ||
| export function merge(definitions: Schema[], space?: string | undefined): Schema; | ||
| export type Properties = import('./schema.js').Properties; | ||
| export type Normal = import('./schema.js').Normal; | ||
| import { Schema } from './schema.js'; |
+13
-13
@@ -7,15 +7,15 @@ /** | ||
| export class Schema { | ||
| /** | ||
| * @constructor | ||
| * @param {Properties} property | ||
| * @param {Normal} normal | ||
| * @param {string} [space] | ||
| */ | ||
| constructor(property: Properties, normal: Normal, space?: string | undefined) | ||
| property: Properties | ||
| normal: Normal | ||
| space: string | null | ||
| /** | ||
| * @constructor | ||
| * @param {Properties} property | ||
| * @param {Normal} normal | ||
| * @param {string} [space] | ||
| */ | ||
| constructor(property: Properties, normal: Normal, space?: string | undefined); | ||
| property: Properties; | ||
| normal: Normal; | ||
| space: string | null; | ||
| } | ||
| export type Info = import('./info.js').Info | ||
| export type Properties = Record<string, Info> | ||
| export type Normal = Record<string, string> | ||
| export type Info = import('./info.js').Info; | ||
| export type Properties = Record<string, Info>; | ||
| export type Normal = Record<string, string>; |
@@ -1,7 +0,7 @@ | ||
| export const boolean: number | ||
| export const booleanish: number | ||
| export const overloadedBoolean: number | ||
| export const number: number | ||
| export const spaceSeparated: number | ||
| export const commaSeparated: number | ||
| export const commaOrSpaceSeparated: number | ||
| export const boolean: number; | ||
| export const booleanish: number; | ||
| export const overloadedBoolean: number; | ||
| export const number: number; | ||
| export const spaceSeparated: number; | ||
| export const commaSeparated: number; | ||
| export const commaOrSpaceSeparated: number; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| export const xlink: import('./util/schema.js').Schema | ||
| export const xlink: import("./util/schema.js").Schema; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| export const xml: import('./util/schema.js').Schema | ||
| export const xml: import("./util/schema.js").Schema; |
+1
-1
@@ -1,1 +0,1 @@ | ||
| export const xmlns: import('./util/schema.js').Schema | ||
| export const xmlns: import("./util/schema.js").Schema; |
+9
-8
| { | ||
| "name": "property-information", | ||
| "version": "6.2.0", | ||
| "version": "6.3.0", | ||
| "description": "Info on the properties and attributes of the web platform", | ||
@@ -38,9 +38,9 @@ "license": "MIT", | ||
| "@types/mdast": "^3.0.0", | ||
| "@types/node": "^18.0.0", | ||
| "@types/node": "^20.0.0", | ||
| "alpha-sort": "^5.0.0", | ||
| "c8": "^7.0.0", | ||
| "c8": "^8.0.0", | ||
| "html-element-attributes": "^3.0.0", | ||
| "html-event-attributes": "^2.0.0", | ||
| "mdast-zone": "^5.0.0", | ||
| "prettier": "^2.0.0", | ||
| "prettier": "^3.0.0", | ||
| "remark-cli": "^11.0.0", | ||
@@ -51,6 +51,6 @@ "remark-preset-wooorm": "^9.0.0", | ||
| "type-coverage": "^2.0.0", | ||
| "typescript": "^4.0.0", | ||
| "typescript": "^5.0.0", | ||
| "undici": "^5.0.0", | ||
| "unist-builder": "^3.0.0", | ||
| "xo": "^0.53.0" | ||
| "xo": "^0.56.0" | ||
| }, | ||
@@ -61,3 +61,3 @@ "scripts": { | ||
| "build": "tsc --build --clean && tsc --build && type-coverage", | ||
| "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", | ||
| "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix", | ||
| "test-api": "node --conditions development test.js", | ||
@@ -78,3 +78,4 @@ "test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api", | ||
| "rules": { | ||
| "no-bitwise": "off" | ||
| "no-bitwise": "off", | ||
| "unicorn/prefer-string-replace-all": "off" | ||
| } | ||
@@ -81,0 +82,0 @@ }, |
+10
-3
@@ -366,2 +366,3 @@ # property-information | ||
| | `bias` | `bias` | `svg` | | ||
| | `blocking` | `blocking` | `html` | | ||
| | `border` | `border` | `html` | | ||
@@ -446,2 +447,3 @@ | `borderColor` | `bordercolor` | `html` | | ||
| | `face` | `face` | `html` | | ||
| | `fetchPriority` | `fetchpriority` | `html` | | ||
| | `fill` | `fill` | `svg` | | ||
@@ -508,2 +510,3 @@ | `fillOpacity` | `fill-opacity` | `svg` | | ||
| | `in2` | `in2` | `svg` | | ||
| | `inert` | `inert` | `html` | | ||
| | `initialVisibility` | `initialVisibility` | `svg` | | ||
@@ -723,2 +726,5 @@ | `inputMode` | `inputmode` | `html` | | ||
| | `pointsAtZ` | `pointsAtZ` | `svg` | | ||
| | `popover` | `popover` | `html` | | ||
| | `popoverTarget` | `popovertarget` | `html` | | ||
| | `popoverTargetAction` | `popovertargetaction` | `html` | | ||
| | `poster` | `poster` | `html` | | ||
@@ -837,2 +843,3 @@ | `prefix` | `prefix` | `html` | | ||
| | `transformBehavior` | `transformBehavior` | `svg` | | ||
| | `transformOrigin` | `transform-origin` | `svg` | | ||
| | `translate` | `translate` | `html` | | ||
@@ -938,3 +945,3 @@ | `type` | `type` | `svg`, `html` | | ||
| Derivative work based on [React][source] licensed under | ||
| [BSD-3-Clause-Clear][source-license], © 2013-2015, Facebook, Inc. | ||
| [MIT][source-license], © Facebook, Inc. | ||
@@ -971,5 +978,5 @@ [build-badge]: https://github.com/wooorm/property-information/workflows/main/badge.svg | ||
| [source]: https://github.com/facebook/react/blob/f445dd9/src/renderers/dom/shared/HTMLDOMPropertyConfig.js | ||
| [source]: https://github.com/facebook/react/blob/8ec2ed4089/packages/react-dom/src/shared/DOMProperty.js | ||
| [source-license]: https://github.com/facebook/react/blob/88cdc27/LICENSE | ||
| [source-license]: https://github.com/facebook/react/blob/8ec2ed4089/LICENSE | ||
@@ -976,0 +983,0 @@ [data]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset |
104174
0.89%989
0.71%1398
-0.21%