From a59f4d813fb1dcfea90cc0e20f09b65ab847f31d Mon Sep 17 00:00:00 2001 From: Tito Bouzout Date: Thu, 14 Nov 2024 13:39:26 -0300 Subject: [PATCH] double-check and correct: experimental, non-standard, deprecated --- packages/dom-expressions/src/jsx.d.ts | 219 ++++++++++++++++++-------- 1 file changed, 157 insertions(+), 62 deletions(-) diff --git a/packages/dom-expressions/src/jsx.d.ts b/packages/dom-expressions/src/jsx.d.ts index bdd4c705..a74d52fb 100644 --- a/packages/dom-expressions/src/jsx.d.ts +++ b/packages/dom-expressions/src/jsx.d.ts @@ -1033,15 +1033,6 @@ export namespace JSX { } interface ButtonHTMLAttributes extends HTMLAttributes { autofocus?: "true" | boolean | undefined; - command?: - | "show-modal" - | "close" - | "show-popover" - | "hide-popover" - | "toggle-popover" - | (string & {}) - | undefined; - commandfor?: string | undefined; disabled?: "true" | boolean | undefined; form?: string | undefined; formaction?: string | SerializableAttributeValue | undefined; @@ -1055,6 +1046,18 @@ export namespace JSX { type?: "submit" | "reset" | "button" | "menu" | undefined; value?: string | undefined; + /** @experimental */ + command?: + | "show-modal" + | "close" + | "show-popover" + | "hide-popover" + | "toggle-popover" + | (string & {}) + | undefined; + /** @experimental */ + commandfor?: string | undefined; + /** @deprecated Use lowercase attributes */ formAction?: string | SerializableAttributeValue | undefined; /** @deprecated Use lowercase attributes */ @@ -1074,7 +1077,10 @@ export namespace JSX { width?: number | string | undefined; height?: number | string | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ "moz-opaque"?: "true" | boolean | undefined; } interface ColHTMLAttributes extends HTMLAttributes { @@ -1095,6 +1101,19 @@ export namespace JSX { } interface ColgroupHTMLAttributes extends HTMLAttributes { span?: number | string | undefined; + + /** @deprecated */ + align?: "left" | "center" | "right" | "justify" | "char" | undefined; + /** @deprecated */ + bgcolor?: string | undefined; + /** @deprecated */ + char?: string | undefined; + /** @deprecated */ + charoff?: string | undefined; + /** @deprecated */ + valign?: "baseline" | "bottom" | "middle" | "top" | undefined; + /** @deprecated */ + width?: number | string | undefined; } interface DataHTMLAttributes extends HTMLAttributes { value?: string | string[] | number | undefined; @@ -1157,25 +1176,35 @@ export namespace JSX { srcdoc?: string | undefined; width?: number | string | undefined; - /** @non-standard */ + /** @deprecated Use lowercase attributes */ + referrerPolicy?: HTMLReferrerPolicy | undefined; + + /** @experimental */ + adauctionheaders?: "true" | boolean | undefined; + /** + * @non-standard + * @experimental + */ browsingtopics?: "true" | boolean | undefined; /** @experimental */ credentialless?: "true" | boolean | undefined; /** @experimental */ csp?: string | undefined; /** @experimental */ + privatetoken?: string | undefined; + /** @experimental */ sharedstoragewritable?: "true" | boolean | undefined; - /** @deprecated Use lowercase attributes */ - referrerPolicy?: HTMLReferrerPolicy | undefined; - /** @deprecated */ + align?: string | undefined; + /** + * @deprecated + * @non-standard + */ allowpaymentrequest?: "true" | boolean | undefined; /** @deprecated */ allowtransparency?: "true" | boolean | undefined; /** @deprecated */ - align?: string | undefined; - /** @deprecated */ frameborder?: number | string | undefined; /** @deprecated */ longdesc?: string | undefined; @@ -1185,13 +1214,11 @@ export namespace JSX { marginwidth?: number | string | undefined; /** @deprecated */ scrolling?: "yes" | "no" | "auto" | undefined; - /** @deprecated */ seamless?: "true" | boolean | undefined; } interface ImgHTMLAttributes extends HTMLAttributes { alt?: string | undefined; - attributionsrc?: string | undefined; crossorigin?: HTMLCrossorigin | undefined; decoding?: "sync" | "async" | "auto" | undefined; height?: number | string | undefined; @@ -1206,6 +1233,11 @@ export namespace JSX { elementtiming?: string | undefined; fetchpriority?: "high" | "low" | "auto" | undefined; + /** @experimental */ + attributionsrc?: string | undefined; + /** @experimental */ + sharedstoragewritable?: "true" | boolean | undefined; + /** @deprecated Use lowercase attributes */ crossOrigin?: HTMLCrossorigin | undefined; /** @deprecated Use lowercase attributes */ @@ -1224,15 +1256,15 @@ export namespace JSX { /** @deprecated */ hspace?: number | string | undefined; /** @deprecated */ + intrinsicsize?: string | undefined; + /** @deprecated */ longdesc?: string | undefined; /** @deprecated */ + lowsrc?: string | undefined; + /** @deprecated */ name?: string | undefined; /** @deprecated */ vspace?: number | string | undefined; - /** @deprecated */ - intrinsicsize?: string | undefined; - /** @deprecated */ - lowsrc?: string | undefined; } interface InputHTMLAttributes extends HTMLAttributes { accept?: string | undefined; @@ -1317,7 +1349,6 @@ export namespace JSX { formnovalidate?: "true" | boolean | undefined; formtarget?: string | undefined; height?: number | string | undefined; - incremental?: "true" | boolean | undefined; list?: string | undefined; max?: number | string | undefined; maxlength?: number | string | undefined; @@ -1363,6 +1394,9 @@ export namespace JSX { value?: string | string[] | number | undefined; width?: number | string | undefined; + /** @non-standard */ + incremental?: "true" | boolean | undefined; + /** @deprecated Use lowercase attributes */ crossOrigin?: HTMLCrossorigin | undefined; /** @deprecated Use lowercase attributes */ @@ -1422,6 +1456,7 @@ export namespace JSX { } interface LinkHTMLAttributes extends HTMLAttributes { as?: HTMLLinkAs | undefined; + blocking?: "render" | undefined; crossorigin?: HTMLCrossorigin | undefined; disabled?: "true" | boolean | undefined; fetchpriority?: "high" | "low" | "auto" | undefined; @@ -1436,9 +1471,6 @@ export namespace JSX { sizes?: string | undefined; type?: string | undefined; - /** @experimental */ - blocking?: "render" | undefined; - /** @deprecated Use lowercase attributes */ crossOrigin?: HTMLCrossorigin | undefined; /** @deprecated Use lowercase attributes */ @@ -1467,6 +1499,7 @@ export namespace JSX { /** @deprecated Use lowercase attributes */ crossOrigin?: HTMLCrossorigin | undefined; + /** @deprecated Use lowercase attributes */ mediaGroup?: string | undefined; /** @deprecated */ @@ -1551,7 +1584,10 @@ export namespace JSX { start?: number | string | undefined; type?: "1" | "a" | "A" | "i" | "I" | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ compact?: "true" | boolean | undefined; } interface OptgroupHTMLAttributes extends HTMLAttributes { @@ -1573,10 +1609,10 @@ export namespace JSX { /** @deprecated */ name?: string | undefined; /** @deprecated */ - value?: string | number | undefined; - /** @deprecated */ type?: string | undefined; /** @deprecated */ + value?: string | number | undefined; + /** @deprecated */ valuetype?: "data" | "ref" | "object" | undefined; } interface ProgressHTMLAttributes extends HTMLAttributes { @@ -1585,6 +1621,7 @@ export namespace JSX { } interface ScriptHTMLAttributes extends HTMLAttributes { async?: "true" | boolean | undefined; + blocking?: "render" | undefined; crossorigin?: HTMLCrossorigin | undefined; defer?: "true" | boolean | undefined; fetchpriority?: "high" | "low" | "auto" | undefined; @@ -1597,8 +1634,6 @@ export namespace JSX { /** @experimental */ attributionsrc?: string | undefined; - /** @experimental */ - blocking?: string | undefined; /** @deprecated Use lowercase attributes */ crossOrigin?: HTMLCrossorigin | undefined; @@ -1638,11 +1673,10 @@ export namespace JSX { height?: number | string | undefined; } interface StyleHTMLAttributes extends HTMLAttributes { + blocking?: "render" | undefined; media?: string | undefined; nonce?: string | undefined; - /** @experimental */ - blocking?: string | undefined; /** @deprecated */ scoped?: "true" | boolean | undefined; /** @deprecated */ @@ -1685,6 +1719,8 @@ export namespace JSX { shadowrootmode?: "open" | "closed" | undefined; shadowrootclonable?: "true" | boolean | undefined; shadowrootdelegatesfocus?: "true" | boolean | undefined; + + /** @experimental */ shadowrootserializable?: "true" | boolean | undefined; /** @deprecated */ @@ -1835,6 +1871,11 @@ export namespace JSX { label?: string | undefined; src?: string | undefined; srclang?: string | undefined; + + /** @deprecated Use lowercase attributes */ + mediaGroup?: string | undefined; + /** @deprecated */ + mediagroup?: string | undefined; } interface VideoHTMLAttributes extends MediaHTMLAttributes { height?: number | string | undefined; @@ -1864,12 +1905,12 @@ export namespace JSX { autofocus?: "true" | boolean | undefined; autosize?: "true" | boolean | undefined; + /** @deprecated */ + blinkfeatures?: string | undefined; /** @deprecated */ disableguestresize?: "true" | boolean | undefined; /** @deprecated */ guestinstance?: string | undefined; - /** @deprecated */ - blinkfeatures?: string | undefined; } type SVGPreserveAspectRatio = @@ -2225,6 +2266,10 @@ export namespace JSX { | "stroke-opacity" > {} interface ZoomAndPanSVGAttributes { + /** + * @deprecated + * @non-standard + */ zoomAndPan?: "disable" | "magnify" | undefined; } interface AnimateSVGAttributes @@ -2623,16 +2668,19 @@ export namespace JSX { FitToViewBoxSVGAttributes, ZoomAndPanSVGAttributes, PresentationSVGAttributes { - version?: string | undefined; - baseProfile?: string | undefined; - x?: number | string | undefined; - y?: number | string | undefined; - width?: number | string | undefined; - height?: number | string | undefined; + "xmlns:xlink"?: string | undefined; contentScriptType?: string | undefined; contentStyleType?: string | undefined; + height?: number | string | undefined; + width?: number | string | undefined; + x?: number | string | undefined; xmlns?: string | undefined; - "xmlns:xlink"?: string | undefined; + y?: number | string | undefined; + + /** @deprecated */ + baseProfile?: string | undefined; + /** @deprecated */ + version?: string | undefined; } interface SwitchSVGAttributes extends ContainerElementSVGAttributes, @@ -2753,9 +2801,15 @@ export namespace JSX { src?: string | undefined; } interface MathMLMactionElementAttributes extends MathMLAttributes { - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ actiontype?: "statusline" | "toggle" | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ selection?: string | undefined; } interface MathMLMathElementAttributes extends MathMLAttributes { @@ -2765,9 +2819,15 @@ export namespace JSX { interface MathMLMfracElementAttributes extends MathMLAttributes { linethickness?: string | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ denomalign?: "center" | "left" | "right" | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ numalign?: "center" | "left" | "right" | undefined; } interface MathMLMiElementAttributes extends MathMLAttributes { @@ -2775,9 +2835,15 @@ export namespace JSX { } interface MathMLMmultiscriptsElementAttributes extends MathMLAttributes { - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ subscriptshift?: string | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ superscriptshift?: string | undefined; } interface MathMLMnElementAttributes extends MathMLAttributes {} @@ -2824,33 +2890,61 @@ export namespace JSX { } interface MathMLMsqrtElementAttributes extends MathMLAttributes {} interface MathMLMstyleElementAttributes extends MathMLAttributes { - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ background?: string | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ color?: string | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ fontsize?: string | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ fontstyle?: string | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ fontweight?: string | undefined; + /** @deprecated */ scriptminsize?: string | undefined; /** @deprecated */ scriptsizemultiplier?: string | undefined; } interface MathMLMsubElementAttributes extends MathMLAttributes { - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ subscriptshift?: string | undefined; } interface MathMLMsubsupElementAttributes extends MathMLAttributes { - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ subscriptshift?: string | undefined; - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ superscriptshift?: string | undefined; } interface MathMLMsupElementAttributes extends MathMLAttributes { - /** @deprecated */ + /** + * @deprecated + * @non-standard + */ superscriptshift?: string | undefined; } interface MathMLMtableElementAttributes extends MathMLAttributes { @@ -3955,19 +4049,20 @@ export namespace JSX { */ semantics: MathMLSemanticsElementAttributes; /** - * @deprecated - * @url https://developer.mozilla.org/en-US/docs/Web/MathML/Element/maction + * @non-standard + * @url https://developer.mozilla.org/en-US/docs/Web/MathML/Element/menclose * @url https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement */ - maction: MathMLMactionElementAttributes; + menclose: MathMLMencloseElementAttributes; /** * @deprecated - * @url https://developer.mozilla.org/en-US/docs/Web/MathML/Element/menclose + * @url https://developer.mozilla.org/en-US/docs/Web/MathML/Element/maction * @url https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement */ - menclose: MathMLMencloseElementAttributes; + maction: MathMLMactionElementAttributes; /** * @deprecated + * @non-standard * @url https://developer.mozilla.org/en-US/docs/Web/MathML/Element/mfenced * @url https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement */