@kitajs/html
Advanced tools
Comparing version 1.4.6 to 1.4.7
@@ -17,3 +17,3 @@ /// <reference path="./jsx.d.ts" /> | ||
*/ | ||
export declare const Fragment: unique symbol | ||
export const Fragment: unique symbol | ||
@@ -123,5 +123,5 @@ /** | ||
*/ | ||
export declare const h = createElement | ||
export const h: typeof createElement | ||
export declare type Children = | ||
export type Children = | ||
| number | ||
@@ -134,5 +134,5 @@ | string | ||
export declare type PropsWithChildren<T = {}> = { children?: Children } & T | ||
export type PropsWithChildren<T = {}> = { children?: Children } & T | ||
export declare type Component<T = {}> = ( | ||
export type Component<T = {}> = ( | ||
this: void, | ||
@@ -139,0 +139,0 @@ props: PropsWithChildren<T> |
231
jsx.d.ts
@@ -1,2 +0,2 @@ | ||
// This file is a result from many sources, including: wikipedia, typescript dom lib, w3schools, and others. | ||
// This file is a result from many sources, including: RFCs, typescript dom lib, w3schools, and others. | ||
// Possibly there are many tags/attributes missing, but it is a good start. | ||
@@ -19,13 +19,5 @@ // Missing something? Please submit a issue report or a PR: | ||
interface IntrinsicAttributes {} | ||
interface ElementChildrenAttribute { | ||
children?: undefined | any | ||
} | ||
interface HtmlTag extends ElementChildrenAttribute { | ||
interface HtmlTag extends ElementChildrenAttribute, IntrinsicAttributes { | ||
accesskey?: undefined | string | ||
class?: undefined | string | ||
/** @deprecated please use `class`, included here to work as a drop-in replacement */ | ||
className?: undefined | string | ||
contenteditable?: undefined | string | ||
@@ -74,2 +66,17 @@ dir?: undefined | string | ||
safe?: undefined | boolean | ||
/** | ||
* Included here to work as a drop-in replacement | ||
* | ||
* @deprecated please use `class`. | ||
*/ | ||
className?: undefined | string | ||
/** | ||
* We should probably remove this, as it silence errors of missing/mistyped | ||
* attributes. However, it is useful for interop with libraries that mix-up | ||
* with html (like HTMX, jQuery, Hyperscript and others) as they are super | ||
* common when templating HTML with libraries like this one. | ||
*/ | ||
[name: string]: unknown | ||
} | ||
@@ -452,2 +459,107 @@ | ||
interface HtmlBodyTag { | ||
onafterprint?: undefined | string | ||
onbeforeprint?: undefined | string | ||
onbeforeonload?: undefined | string | ||
onblur?: undefined | string | ||
onerror?: undefined | string | ||
onfocus?: undefined | string | ||
onhaschange?: undefined | string | ||
onload?: undefined | string | ||
onmessage?: undefined | string | ||
onoffline?: undefined | string | ||
ononline?: undefined | string | ||
onpagehide?: undefined | string | ||
onpageshow?: undefined | string | ||
onpopstate?: undefined | string | ||
onredo?: undefined | string | ||
onresize?: undefined | string | ||
onstorage?: undefined | string | ||
onundo?: undefined | string | ||
onunload?: undefined | string | ||
} | ||
interface HtmlTag { | ||
oncontextmenu?: undefined | string | ||
onkeydown?: undefined | string | ||
onkeypress?: undefined | string | ||
onkeyup?: undefined | string | ||
onclick?: undefined | string | ||
ondblclick?: undefined | string | ||
ondrag?: undefined | string | ||
ondragend?: undefined | string | ||
ondragenter?: undefined | string | ||
ondragleave?: undefined | string | ||
ondragover?: undefined | string | ||
ondragstart?: undefined | string | ||
ondrop?: undefined | string | ||
onmousedown?: undefined | string | ||
onmousemove?: undefined | string | ||
onmouseout?: undefined | string | ||
onmouseover?: undefined | string | ||
onmouseup?: undefined | string | ||
onmousewheel?: undefined | string | ||
onscroll?: undefined | string | ||
} | ||
interface FormEvents { | ||
onblur?: undefined | string | ||
onchange?: undefined | string | ||
onfocus?: undefined | string | ||
onformchange?: undefined | string | ||
onforminput?: undefined | string | ||
oninput?: undefined | string | ||
oninvalid?: undefined | string | ||
onselect?: undefined | string | ||
onsubmit?: undefined | string | ||
} | ||
interface HtmlInputTag extends FormEvents {} | ||
interface HtmlFieldSetTag extends FormEvents {} | ||
interface HtmlFormTag extends FormEvents {} | ||
interface MediaEvents { | ||
onabort?: undefined | string | ||
oncanplay?: undefined | string | ||
oncanplaythrough?: undefined | string | ||
ondurationchange?: undefined | string | ||
onemptied?: undefined | string | ||
onended?: undefined | string | ||
onerror?: undefined | string | ||
onloadeddata?: undefined | string | ||
onloadedmetadata?: undefined | string | ||
onloadstart?: undefined | string | ||
onpause?: undefined | string | ||
onplay?: undefined | string | ||
onplaying?: undefined | string | ||
onprogress?: undefined | string | ||
onratechange?: undefined | string | ||
onreadystatechange?: undefined | string | ||
onseeked?: undefined | string | ||
onseeking?: undefined | string | ||
onstalled?: undefined | string | ||
onsuspend?: undefined | string | ||
ontimeupdate?: undefined | string | ||
onvolumechange?: undefined | string | ||
onwaiting?: undefined | string | ||
} | ||
interface HtmlAudioTag extends MediaEvents {} | ||
interface HtmlEmbedTag extends MediaEvents {} | ||
interface HtmlImageTag extends MediaEvents {} | ||
interface HtmlObjectTag extends MediaEvents {} | ||
interface HtmlVideoTag extends MediaEvents {} | ||
interface IntrinsicAttributes {} | ||
interface ElementChildrenAttribute { | ||
children?: undefined | any | ||
} | ||
interface IntrinsicElements { | ||
@@ -571,101 +683,2 @@ a: HtmlAnchorTag | ||
} | ||
interface HtmlBodyTag { | ||
onafterprint?: undefined | string | ||
onbeforeprint?: undefined | string | ||
onbeforeonload?: undefined | string | ||
onblur?: undefined | string | ||
onerror?: undefined | string | ||
onfocus?: undefined | string | ||
onhaschange?: undefined | string | ||
onload?: undefined | string | ||
onmessage?: undefined | string | ||
onoffline?: undefined | string | ||
ononline?: undefined | string | ||
onpagehide?: undefined | string | ||
onpageshow?: undefined | string | ||
onpopstate?: undefined | string | ||
onredo?: undefined | string | ||
onresize?: undefined | string | ||
onstorage?: undefined | string | ||
onundo?: undefined | string | ||
onunload?: undefined | string | ||
} | ||
interface HtmlTag { | ||
oncontextmenu?: undefined | string | ||
onkeydown?: undefined | string | ||
onkeypress?: undefined | string | ||
onkeyup?: undefined | string | ||
onclick?: undefined | string | ||
ondblclick?: undefined | string | ||
ondrag?: undefined | string | ||
ondragend?: undefined | string | ||
ondragenter?: undefined | string | ||
ondragleave?: undefined | string | ||
ondragover?: undefined | string | ||
ondragstart?: undefined | string | ||
ondrop?: undefined | string | ||
onmousedown?: undefined | string | ||
onmousemove?: undefined | string | ||
onmouseout?: undefined | string | ||
onmouseover?: undefined | string | ||
onmouseup?: undefined | string | ||
onmousewheel?: undefined | string | ||
onscroll?: undefined | string | ||
} | ||
interface FormEvents { | ||
onblur?: undefined | string | ||
onchange?: undefined | string | ||
onfocus?: undefined | string | ||
onformchange?: undefined | string | ||
onforminput?: undefined | string | ||
oninput?: undefined | string | ||
oninvalid?: undefined | string | ||
onselect?: undefined | string | ||
onsubmit?: undefined | string | ||
} | ||
interface HtmlInputTag extends FormEvents {} | ||
interface HtmlFieldSetTag extends FormEvents {} | ||
interface HtmlFormTag extends FormEvents {} | ||
interface MediaEvents { | ||
onabort?: undefined | string | ||
oncanplay?: undefined | string | ||
oncanplaythrough?: undefined | string | ||
ondurationchange?: undefined | string | ||
onemptied?: undefined | string | ||
onended?: undefined | string | ||
onerror?: undefined | string | ||
onloadeddata?: undefined | string | ||
onloadedmetadata?: undefined | string | ||
onloadstart?: undefined | string | ||
onpause?: undefined | string | ||
onplay?: undefined | string | ||
onplaying?: undefined | string | ||
onprogress?: undefined | string | ||
onratechange?: undefined | string | ||
onreadystatechange?: undefined | string | ||
onseeked?: undefined | string | ||
onseeking?: undefined | string | ||
onstalled?: undefined | string | ||
onsuspend?: undefined | string | ||
ontimeupdate?: undefined | string | ||
onvolumechange?: undefined | string | ||
onwaiting?: undefined | string | ||
} | ||
interface HtmlAudioTag extends MediaEvents {} | ||
interface HtmlEmbedTag extends MediaEvents {} | ||
interface HtmlImageTag extends MediaEvents {} | ||
interface HtmlObjectTag extends MediaEvents {} | ||
interface HtmlVideoTag extends MediaEvents {} | ||
} |
{ | ||
"name": "@kitajs/html", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"description": "Fast and type safe HTML templates using TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
57146
1093