acrylblends 0.6.1 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -6
- package/docs/framework/README.md +3 -2
- package/docs/framework/UPSTREAM.md +1 -1
- package/docs/framework/api/presets.md +0 -3
- package/docs/framework/cordis/acryl-in-a-cordis-app.md +9 -0
- package/docs/framework/getting-started/basic.md +5 -4
- package/docs/framework/getting-started/desktop.md +41 -0
- package/docs/framework/guides/jsx-dom.md +0 -3
- package/docs/framework/guides/jsx.md +1 -4
- package/docs/framework/guides/middleware.md +1 -1
- package/docs/framework/helpers/cookie.md +1 -1
- package/docs/framework/helpers/css.md +0 -3
- package/docs/framework/helpers/dev.md +0 -3
- package/docs/framework/helpers/jwt.md +1 -1
- package/docs/framework/helpers/proxy.md +0 -3
- package/docs/framework/middleware/builtin/basic-auth.md +6 -6
- package/docs/framework/middleware/builtin/cache.md +0 -3
- package/docs/framework/middleware/builtin/combine.md +1 -1
- package/docs/framework/middleware/builtin/ip-restriction.md +1 -1
- package/docs/framework/middleware/builtin/logger.md +1 -1
- package/docs/framework/middleware/builtin/mount.md +0 -3
- package/docs/framework/upstream.json +3 -3
- package/lib/accepts.d.ts +1 -1
- package/lib/acryl-base.d.ts +1 -1
- package/lib/adapter.d.ts +1 -1
- package/lib/{app-CmAYW1Al.d.ts → app-wFwpg-bt.d.ts} +1 -1
- package/lib/base-BpQy2Rk7.d.ts +783 -0
- package/lib/base-ddiVmiE7.js +721 -0
- package/lib/basic-auth.d.ts +1 -1
- package/lib/bearer-auth.d.ts +1 -1
- package/lib/body-limit.d.ts +1 -1
- package/lib/cache.d.ts +43 -0
- package/lib/cache.js +169 -0
- package/lib/client.d.ts +2 -2
- package/lib/combine.d.ts +1 -1
- package/lib/common-D8Z4JRCw.d.ts +46 -0
- package/lib/components-Ce5FRyHU.js +268 -0
- package/lib/components-DYZdxJIJ.js +24 -0
- package/lib/compress.d.ts +1 -1
- package/lib/conninfo.d.ts +2 -2
- package/lib/constants-BR9jM9BC.js +9 -0
- package/lib/{context-Bm7rI-oK.d.ts → context-DVQBjuns.d.ts} +1 -1
- package/lib/context-DxFdY_un.d.ts +250 -0
- package/lib/context-storage.d.ts +1 -1
- package/lib/{cookie-ClMaKDQf.d.ts → cookie-CCelEqky.d.ts} +1 -1
- package/lib/cookie.d.ts +3 -3
- package/lib/cors.d.ts +1 -1
- package/lib/csrf.d.ts +1 -1
- package/lib/css-D2jb7X8b.js +320 -0
- package/lib/css.d.ts +82 -0
- package/lib/css.js +134 -0
- package/lib/dev.d.ts +19 -0
- package/lib/dev.js +50 -0
- package/lib/etag.d.ts +1 -1
- package/lib/factory.d.ts +2 -2
- package/lib/hooks-Bq5q9IMl.js +762 -0
- package/lib/html-SllAe0YT.d.ts +46 -0
- package/lib/html.d.ts +1 -1
- package/lib/index-C850MeBA.d.ts +94 -0
- package/lib/{index-oOClm_Xk.d.ts → index-CUTfU69R.d.ts} +3 -3
- package/lib/{index-B-3F4wt2.d.ts → index-Cqcdluyn.d.ts} +2 -2
- package/lib/{index-UTBmM3GX.d.ts → index-CsvB-F9j.d.ts} +2 -2
- package/lib/index.d.ts +4 -4
- package/lib/ip-restriction.d.ts +2 -2
- package/lib/jsx/dom/client.d.ts +30 -0
- package/lib/jsx/dom/client.js +49 -0
- package/lib/jsx/dom/css.d.ts +84 -0
- package/lib/jsx/dom/css.js +2 -0
- package/lib/jsx/dom/jsx-dev-runtime.d.ts +3 -0
- package/lib/jsx/dom/jsx-dev-runtime.js +2 -0
- package/lib/jsx/dom/jsx-runtime.d.ts +3 -0
- package/lib/jsx/dom/jsx-runtime.js +2 -0
- package/lib/jsx/dom/server.d.ts +105 -0
- package/lib/jsx/dom/server.js +37 -0
- package/lib/jsx/dom.d.ts +5 -0
- package/lib/jsx/dom.js +74 -0
- package/lib/jsx/jsx-dev-runtime.d.ts +6 -0
- package/lib/jsx/jsx-dev-runtime.js +14 -0
- package/lib/jsx/jsx-runtime.d.ts +10 -0
- package/lib/jsx/jsx-runtime.js +30 -0
- package/lib/jsx/streaming.d.ts +2 -0
- package/lib/jsx/streaming.js +2 -0
- package/lib/jsx-dev-runtime-B22O-Npk.d.ts +7 -0
- package/lib/jsx-dev-runtime-kAhR_4C7.js +354 -0
- package/lib/jsx-runtime-BVVgDSdq.d.ts +1 -0
- package/lib/jsx.d.ts +3 -0
- package/lib/jsx.js +47 -0
- package/lib/jwk.d.ts +4 -4
- package/lib/{jwt-Dg493Tai.d.ts → jwt-BARhotDz.d.ts} +1 -1
- package/lib/jwt.d.ts +4 -4
- package/lib/language.d.ts +1 -1
- package/lib/linear-router-C3FPib6h.js +96 -0
- package/lib/logger.d.ts +1 -1
- package/lib/loopback-only.d.ts +1 -1
- package/lib/method-not-allowed.d.ts +2 -2
- package/lib/method-override.d.ts +2 -2
- package/lib/mount.d.ts +44 -0
- package/lib/mount.js +67 -0
- package/lib/node-server/conninfo.d.ts +1 -1
- package/lib/node-server/serve-static.d.ts +1 -1
- package/lib/node-server/serve-static.js +1 -1
- package/lib/node-server.d.ts +1 -1
- package/lib/node-server.js +1 -1
- package/lib/pattern-router-HZxjDGEQ.js +41 -0
- package/lib/powered-by.d.ts +1 -1
- package/lib/pretty-json.d.ts +1 -1
- package/lib/proxy.d.ts +72 -0
- package/lib/proxy.js +121 -0
- package/lib/quick.d.ts +8 -0
- package/lib/quick.js +17 -0
- package/lib/request-id.d.ts +1 -1
- package/lib/request.d.ts +1 -1
- package/lib/route.d.ts +1 -1
- package/lib/router/linear-router.js +1 -95
- package/lib/router/pattern-router.js +1 -40
- package/lib/schema-validator.d.ts +1 -1
- package/lib/secure-headers.d.ts +1 -1
- package/lib/{serve-static-Dw_m6KxR.js → serve-static-Cw23shXv.js} +1 -0
- package/lib/serve-static.d.ts +1 -1
- package/lib/streaming.d.ts +1 -1
- package/lib/testing.d.ts +4 -4
- package/lib/timeout.d.ts +1 -1
- package/lib/timing.d.ts +1 -1
- package/lib/tiny.d.ts +8 -0
- package/lib/tiny.js +15 -0
- package/lib/trailing-slash.d.ts +1 -1
- package/lib/{types-CHesD1KG.d.ts → types-CQiGmsWW.d.ts} +3 -3
- package/lib/{types-CwrQjlaM.d.ts → types-Lqx5BxQF.d.ts} +10 -1
- package/lib/{types-CDO6I3B0.d.ts → types-nEL8VPDC.d.ts} +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/utils/body.d.ts +1 -1
- package/lib/utils/cookie.d.ts +1 -1
- package/lib/utils/crypto.d.ts +1 -1
- package/lib/utils/html.d.ts +1 -45
- package/lib/utils/ipaddr.d.ts +1 -1
- package/lib/utils/jwt.d.ts +1 -1
- package/lib/utils/types.d.ts +2 -2
- package/lib/validator.d.ts +2 -2
- package/lib/ws.d.ts +1 -1
- package/package.json +69 -1
- package/plugins/acryl-inspect/upstream.json +1 -1
- package/plugins/acryl-node-server/upstream.json +1 -1
- package/plugins/acryl-router/src/core/helper/css/common.case.test.tsx +506 -0
- package/plugins/acryl-router/src/core/helper/css/common.ts +337 -0
- package/plugins/acryl-router/src/core/helper/css/index.test.tsx +678 -0
- package/plugins/acryl-router/src/core/helper/css/index.ts +262 -0
- package/plugins/acryl-router/src/core/helper/dev/index.test.ts +181 -0
- package/plugins/acryl-router/src/core/helper/dev/index.ts +79 -0
- package/plugins/acryl-router/src/core/helper/proxy/index.test.ts +356 -0
- package/plugins/acryl-router/src/core/helper/proxy/index.ts +203 -0
- package/plugins/acryl-router/src/core/helper/streaming/sse.test.tsx +557 -0
- package/plugins/acryl-router/src/core/jsx/base.test.tsx +97 -0
- package/plugins/acryl-router/src/core/jsx/base.ts +490 -0
- package/plugins/acryl-router/src/core/jsx/children.test.ts +52 -0
- package/plugins/acryl-router/src/core/jsx/children.ts +20 -0
- package/plugins/acryl-router/src/core/jsx/components.test.tsx +936 -0
- package/plugins/acryl-router/src/core/jsx/components.ts +257 -0
- package/plugins/acryl-router/src/core/jsx/constants.ts +6 -0
- package/plugins/acryl-router/src/core/jsx/context-isolation.test.ts +655 -0
- package/plugins/acryl-router/src/core/jsx/context.ts +266 -0
- package/plugins/acryl-router/src/core/jsx/dom/client.test.tsx +128 -0
- package/plugins/acryl-router/src/core/jsx/dom/client.ts +89 -0
- package/plugins/acryl-router/src/core/jsx/dom/components.test.tsx +330 -0
- package/plugins/acryl-router/src/core/jsx/dom/components.ts +39 -0
- package/plugins/acryl-router/src/core/jsx/dom/context.test.tsx +184 -0
- package/plugins/acryl-router/src/core/jsx/dom/context.ts +52 -0
- package/plugins/acryl-router/src/core/jsx/dom/css.test.tsx +149 -0
- package/plugins/acryl-router/src/core/jsx/dom/css.ts +263 -0
- package/plugins/acryl-router/src/core/jsx/dom/hooks/index.test.tsx +172 -0
- package/plugins/acryl-router/src/core/jsx/dom/hooks/index.ts +91 -0
- package/plugins/acryl-router/src/core/jsx/dom/index.test.tsx +3681 -0
- package/plugins/acryl-router/src/core/jsx/dom/index.ts +170 -0
- package/plugins/acryl-router/src/core/jsx/dom/intrinsic-element/components.test.tsx +1344 -0
- package/plugins/acryl-router/src/core/jsx/dom/intrinsic-element/components.ts +438 -0
- package/plugins/acryl-router/src/core/jsx/dom/jsx-dev-runtime.ts +23 -0
- package/plugins/acryl-router/src/core/jsx/dom/jsx-runtime.ts +8 -0
- package/plugins/acryl-router/src/core/jsx/dom/render.ts +879 -0
- package/plugins/acryl-router/src/core/jsx/dom/server.test.tsx +199 -0
- package/plugins/acryl-router/src/core/jsx/dom/server.ts +76 -0
- package/plugins/acryl-router/src/core/jsx/dom/utils.ts +7 -0
- package/plugins/acryl-router/src/core/jsx/hooks/dom.test.tsx +859 -0
- package/plugins/acryl-router/src/core/jsx/hooks/index.ts +437 -0
- package/plugins/acryl-router/src/core/jsx/hooks/string.test.tsx +40 -0
- package/plugins/acryl-router/src/core/jsx/index.test.tsx +1744 -0
- package/plugins/acryl-router/src/core/jsx/index.ts +115 -0
- package/plugins/acryl-router/src/core/jsx/intrinsic-element/common.ts +23 -0
- package/plugins/acryl-router/src/core/jsx/intrinsic-element/components.test.tsx +666 -0
- package/plugins/acryl-router/src/core/jsx/intrinsic-element/components.ts +210 -0
- package/plugins/acryl-router/src/core/jsx/intrinsic-elements.ts +938 -0
- package/plugins/acryl-router/src/core/jsx/jsx-dev-runtime.ts +26 -0
- package/plugins/acryl-router/src/core/jsx/jsx-runtime.test.tsx +85 -0
- package/plugins/acryl-router/src/core/jsx/jsx-runtime.ts +51 -0
- package/plugins/acryl-router/src/core/jsx/streaming.test.tsx +1281 -0
- package/plugins/acryl-router/src/core/jsx/streaming.ts +231 -0
- package/plugins/acryl-router/src/core/jsx/types.ts +41 -0
- package/plugins/acryl-router/src/core/jsx/utils.test.ts +366 -0
- package/plugins/acryl-router/src/core/jsx/utils.ts +202 -0
- package/plugins/acryl-router/src/core/middleware/cache/index.test.ts +1211 -0
- package/plugins/acryl-router/src/core/middleware/cache/index.ts +323 -0
- package/plugins/acryl-router/src/core/middleware/mount/index.test.ts +334 -0
- package/plugins/acryl-router/src/core/middleware/mount/index.ts +108 -0
- package/plugins/acryl-router/src/core/preset/quick.test.ts +42 -0
- package/plugins/acryl-router/src/core/preset/quick.ts +24 -0
- package/plugins/acryl-router/src/core/preset/tiny.test.ts +42 -0
- package/plugins/acryl-router/src/core/preset/tiny.ts +20 -0
- package/plugins/acryl-router/src/core/utils/types.ts +9 -0
- package/plugins/acryl-router/src/helpers/index.ts +3 -0
- package/plugins/acryl-router/src/middleware/index.ts +2 -0
- package/plugins/acryl-router/src/service.ts +22 -5
- package/plugins/acryl-router/tests/jsx.spec.tsx +63 -0
- package/plugins/acryl-router/upstream.json +3 -3
- package/plugins/acryl-router-http/upstream.json +1 -1
- package/plugins/acryl-state/upstream.json +1 -1
- package/plugins/desktop/upstream.json +1 -1
- package/plugins/desktop-web/upstream.json +1 -1
- package/plugins/save/plugin.json +1 -1
- package/templates/todo/upstream.json +1 -1
|
@@ -0,0 +1,938 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
|
|
3
|
+
import type { BaseMime } from '../utils/mime.ts'
|
|
4
|
+
import type { DomEvent, StringLiteralUnion } from '../utils/types.ts'
|
|
5
|
+
|
|
6
|
+
// The event handler props' event types, without needing the DOM library on a server (see DomEvent).
|
|
7
|
+
type AnimationEvent = DomEvent<'AnimationEvent'>
|
|
8
|
+
type ClipboardEvent = DomEvent<'ClipboardEvent'>
|
|
9
|
+
type CompositionEvent = DomEvent<'CompositionEvent'>
|
|
10
|
+
type FocusEvent = DomEvent<'FocusEvent'>
|
|
11
|
+
type FormDataEvent = DomEvent<'FormDataEvent'>
|
|
12
|
+
type InputEvent = DomEvent<'InputEvent'>
|
|
13
|
+
type KeyboardEvent = DomEvent<'KeyboardEvent'>
|
|
14
|
+
type MouseEvent = DomEvent<'MouseEvent'>
|
|
15
|
+
type PointerEvent = DomEvent<'PointerEvent'>
|
|
16
|
+
type TouchEvent = DomEvent<'TouchEvent'>
|
|
17
|
+
type TransitionEvent = DomEvent<'TransitionEvent'>
|
|
18
|
+
type WheelEvent = DomEvent<'WheelEvent'>
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* This code is based on React.
|
|
22
|
+
* https://github.com/facebook/react
|
|
23
|
+
* MIT License
|
|
24
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
28
|
+
export namespace JSX {
|
|
29
|
+
export type CrossOrigin = 'anonymous' | 'use-credentials' | '' | undefined
|
|
30
|
+
export interface CSSProperties {
|
|
31
|
+
[propertyKey: string]: unknown
|
|
32
|
+
}
|
|
33
|
+
type AnyAttributes = { [attributeName: string]: any }
|
|
34
|
+
|
|
35
|
+
interface JSXAttributes {
|
|
36
|
+
dangerouslySetInnerHTML?: {
|
|
37
|
+
__html: string
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface EventAttributes {
|
|
42
|
+
onScroll?: (event: Event) => void
|
|
43
|
+
onScrollCapture?: (event: Event) => void
|
|
44
|
+
onScrollEnd?: (event: Event) => void
|
|
45
|
+
onScrollEndCapture?: (event: Event) => void
|
|
46
|
+
onWheel?: (event: WheelEvent) => void
|
|
47
|
+
onWheelCapture?: (event: WheelEvent) => void
|
|
48
|
+
onAnimationCancel?: (event: AnimationEvent) => void
|
|
49
|
+
onAnimationCancelCapture?: (event: AnimationEvent) => void
|
|
50
|
+
onAnimationEnd?: (event: AnimationEvent) => void
|
|
51
|
+
onAnimationEndCapture?: (event: AnimationEvent) => void
|
|
52
|
+
onAnimationIteration?: (event: AnimationEvent) => void
|
|
53
|
+
onAnimationIterationCapture?: (event: AnimationEvent) => void
|
|
54
|
+
onAnimationStart?: (event: AnimationEvent) => void
|
|
55
|
+
onAnimationStartCapture?: (event: AnimationEvent) => void
|
|
56
|
+
onCopy?: (event: ClipboardEvent) => void
|
|
57
|
+
onCopyCapture?: (event: ClipboardEvent) => void
|
|
58
|
+
onCut?: (event: ClipboardEvent) => void
|
|
59
|
+
onCutCapture?: (event: ClipboardEvent) => void
|
|
60
|
+
onPaste?: (event: ClipboardEvent) => void
|
|
61
|
+
onPasteCapture?: (event: ClipboardEvent) => void
|
|
62
|
+
onCompositionEnd?: (event: CompositionEvent) => void
|
|
63
|
+
onCompositionEndCapture?: (event: CompositionEvent) => void
|
|
64
|
+
onCompositionStart?: (event: CompositionEvent) => void
|
|
65
|
+
onCompositionStartCapture?: (event: CompositionEvent) => void
|
|
66
|
+
onCompositionUpdate?: (event: CompositionEvent) => void
|
|
67
|
+
onCompositionUpdateCapture?: (event: CompositionEvent) => void
|
|
68
|
+
onBlur?: (event: FocusEvent) => void
|
|
69
|
+
onBlurCapture?: (event: FocusEvent) => void
|
|
70
|
+
onFocus?: (event: FocusEvent) => void
|
|
71
|
+
onFocusCapture?: (event: FocusEvent) => void
|
|
72
|
+
onFocusIn?: (event: FocusEvent) => void
|
|
73
|
+
onFocusInCapture?: (event: FocusEvent) => void
|
|
74
|
+
onFocusOut?: (event: FocusEvent) => void
|
|
75
|
+
onFocusOutCapture?: (event: FocusEvent) => void
|
|
76
|
+
onFullscreenChange?: (event: Event) => void
|
|
77
|
+
onFullscreenChangeCapture?: (event: Event) => void
|
|
78
|
+
onFullscreenError?: (event: Event) => void
|
|
79
|
+
onFullscreenErrorCapture?: (event: Event) => void
|
|
80
|
+
onKeyDown?: (event: KeyboardEvent) => void
|
|
81
|
+
onKeyDownCapture?: (event: KeyboardEvent) => void
|
|
82
|
+
onKeyPress?: (event: KeyboardEvent) => void
|
|
83
|
+
onKeyPressCapture?: (event: KeyboardEvent) => void
|
|
84
|
+
onKeyUp?: (event: KeyboardEvent) => void
|
|
85
|
+
onKeyUpCapture?: (event: KeyboardEvent) => void
|
|
86
|
+
onAuxClick?: (event: MouseEvent) => void
|
|
87
|
+
onAuxClickCapture?: (event: MouseEvent) => void
|
|
88
|
+
onClick?: (event: MouseEvent) => void
|
|
89
|
+
onClickCapture?: (event: MouseEvent) => void
|
|
90
|
+
onContextMenu?: (event: MouseEvent) => void
|
|
91
|
+
onContextMenuCapture?: (event: MouseEvent) => void
|
|
92
|
+
onDoubleClick?: (event: MouseEvent) => void
|
|
93
|
+
onDoubleClickCapture?: (event: MouseEvent) => void
|
|
94
|
+
onMouseDown?: (event: MouseEvent) => void
|
|
95
|
+
onMouseDownCapture?: (event: MouseEvent) => void
|
|
96
|
+
onMouseEnter?: (event: MouseEvent) => void
|
|
97
|
+
onMouseEnterCapture?: (event: MouseEvent) => void
|
|
98
|
+
onMouseLeave?: (event: MouseEvent) => void
|
|
99
|
+
onMouseLeaveCapture?: (event: MouseEvent) => void
|
|
100
|
+
onMouseMove?: (event: MouseEvent) => void
|
|
101
|
+
onMouseMoveCapture?: (event: MouseEvent) => void
|
|
102
|
+
onMouseOut?: (event: MouseEvent) => void
|
|
103
|
+
onMouseOutCapture?: (event: MouseEvent) => void
|
|
104
|
+
onMouseOver?: (event: MouseEvent) => void
|
|
105
|
+
onMouseOverCapture?: (event: MouseEvent) => void
|
|
106
|
+
onMouseUp?: (event: MouseEvent) => void
|
|
107
|
+
onMouseUpCapture?: (event: MouseEvent) => void
|
|
108
|
+
onMouseWheel?: (event: WheelEvent) => void
|
|
109
|
+
onMouseWheelCapture?: (event: WheelEvent) => void
|
|
110
|
+
onGotPointerCapture?: (event: PointerEvent) => void
|
|
111
|
+
onGotPointerCaptureCapture?: (event: PointerEvent) => void
|
|
112
|
+
onLostPointerCapture?: (event: PointerEvent) => void
|
|
113
|
+
onLostPointerCaptureCapture?: (event: PointerEvent) => void
|
|
114
|
+
onPointerCancel?: (event: PointerEvent) => void
|
|
115
|
+
onPointerCancelCapture?: (event: PointerEvent) => void
|
|
116
|
+
onPointerDown?: (event: PointerEvent) => void
|
|
117
|
+
onPointerDownCapture?: (event: PointerEvent) => void
|
|
118
|
+
onPointerEnter?: (event: PointerEvent) => void
|
|
119
|
+
onPointerEnterCapture?: (event: PointerEvent) => void
|
|
120
|
+
onPointerLeave?: (event: PointerEvent) => void
|
|
121
|
+
onPointerLeaveCapture?: (event: PointerEvent) => void
|
|
122
|
+
onPointerMove?: (event: PointerEvent) => void
|
|
123
|
+
onPointerMoveCapture?: (event: PointerEvent) => void
|
|
124
|
+
onPointerOut?: (event: PointerEvent) => void
|
|
125
|
+
onPointerOutCapture?: (event: PointerEvent) => void
|
|
126
|
+
onPointerOver?: (event: PointerEvent) => void
|
|
127
|
+
onPointerOverCapture?: (event: PointerEvent) => void
|
|
128
|
+
onPointerUp?: (event: PointerEvent) => void
|
|
129
|
+
onPointerUpCapture?: (event: PointerEvent) => void
|
|
130
|
+
onTouchCancel?: (event: TouchEvent) => void
|
|
131
|
+
onTouchCancelCapture?: (event: TouchEvent) => void
|
|
132
|
+
onTouchEnd?: (event: TouchEvent) => void
|
|
133
|
+
onTouchEndCapture?: (event: TouchEvent) => void
|
|
134
|
+
onTouchMove?: (event: TouchEvent) => void
|
|
135
|
+
onTouchMoveCapture?: (event: TouchEvent) => void
|
|
136
|
+
onTouchStart?: (event: TouchEvent) => void
|
|
137
|
+
onTouchStartCapture?: (event: TouchEvent) => void
|
|
138
|
+
onTransitionCancel?: (event: TransitionEvent) => void
|
|
139
|
+
onTransitionCancelCapture?: (event: TransitionEvent) => void
|
|
140
|
+
onTransitionEnd?: (event: TransitionEvent) => void
|
|
141
|
+
onTransitionEndCapture?: (event: TransitionEvent) => void
|
|
142
|
+
onTransitionRun?: (event: TransitionEvent) => void
|
|
143
|
+
onTransitionRunCapture?: (event: TransitionEvent) => void
|
|
144
|
+
onTransitionStart?: (event: TransitionEvent) => void
|
|
145
|
+
onTransitionStartCapture?: (event: TransitionEvent) => void
|
|
146
|
+
onFormData?: (event: FormDataEvent) => void
|
|
147
|
+
onFormDataCapture?: (event: FormDataEvent) => void
|
|
148
|
+
onReset?: (event: Event) => void
|
|
149
|
+
onResetCapture?: (event: Event) => void
|
|
150
|
+
onSubmit?: (event: Event) => void
|
|
151
|
+
onSubmitCapture?: (event: Event) => void
|
|
152
|
+
onInvalid?: (event: Event) => void
|
|
153
|
+
onInvalidCapture?: (event: Event) => void
|
|
154
|
+
onSelect?: (event: Event) => void
|
|
155
|
+
onSelectCapture?: (event: Event) => void
|
|
156
|
+
onSelectChange?: (event: Event) => void
|
|
157
|
+
onSelectChangeCapture?: (event: Event) => void
|
|
158
|
+
onInput?: (event: InputEvent) => void
|
|
159
|
+
onInputCapture?: (event: InputEvent) => void
|
|
160
|
+
onBeforeInput?: (event: InputEvent) => void
|
|
161
|
+
onBeforeInputCapture?: (event: InputEvent) => void
|
|
162
|
+
onChange?: (event: Event) => void
|
|
163
|
+
onChangeCapture?: (event: Event) => void
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface HTMLAttributes extends JSXAttributes, EventAttributes, AnyAttributes {
|
|
167
|
+
accesskey?: string | undefined
|
|
168
|
+
autocapitalize?: 'off' | 'none' | 'on' | 'sentences' | 'words' | 'characters' | undefined
|
|
169
|
+
autofocus?: boolean | undefined
|
|
170
|
+
class?: string | Promise<string> | undefined
|
|
171
|
+
contenteditable?: boolean | 'inherit' | 'plaintext-only' | undefined
|
|
172
|
+
contextmenu?: string | undefined
|
|
173
|
+
dir?: string | undefined
|
|
174
|
+
draggable?: 'true' | 'false' | boolean | undefined
|
|
175
|
+
enterkeyhint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send' | undefined
|
|
176
|
+
hidden?: boolean | undefined
|
|
177
|
+
id?: string | undefined
|
|
178
|
+
inert?: boolean | undefined
|
|
179
|
+
inputmode?:
|
|
180
|
+
| 'none'
|
|
181
|
+
| 'text'
|
|
182
|
+
| 'tel'
|
|
183
|
+
| 'url'
|
|
184
|
+
| 'email'
|
|
185
|
+
| 'numeric'
|
|
186
|
+
| 'decimal'
|
|
187
|
+
| 'search'
|
|
188
|
+
| undefined
|
|
189
|
+
is?: string | undefined
|
|
190
|
+
itemid?: string | undefined
|
|
191
|
+
itemprop?: string | undefined
|
|
192
|
+
itemref?: string | undefined
|
|
193
|
+
itemscope?: boolean | undefined
|
|
194
|
+
itemtype?: string | undefined
|
|
195
|
+
lang?: string | undefined
|
|
196
|
+
nonce?: string | undefined
|
|
197
|
+
placeholder?: string | undefined
|
|
198
|
+
/** @see https://developer.mozilla.org/en-US/docs/Web/API/Popover_API */
|
|
199
|
+
popover?: boolean | 'auto' | 'manual' | undefined
|
|
200
|
+
slot?: string | undefined
|
|
201
|
+
spellcheck?: boolean | undefined
|
|
202
|
+
style?: CSSProperties | string | undefined
|
|
203
|
+
tabindex?: number | undefined
|
|
204
|
+
title?: string | undefined
|
|
205
|
+
translate?: 'yes' | 'no' | undefined
|
|
206
|
+
itemProp?: string | undefined
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
type HTMLAttributeReferrerPolicy =
|
|
210
|
+
| ''
|
|
211
|
+
| 'no-referrer'
|
|
212
|
+
| 'no-referrer-when-downgrade'
|
|
213
|
+
| 'origin'
|
|
214
|
+
| 'origin-when-cross-origin'
|
|
215
|
+
| 'same-origin'
|
|
216
|
+
| 'strict-origin'
|
|
217
|
+
| 'strict-origin-when-cross-origin'
|
|
218
|
+
| 'unsafe-url'
|
|
219
|
+
|
|
220
|
+
type HTMLAttributeAnchorTarget = StringLiteralUnion<'_self' | '_blank' | '_parent' | '_top'>
|
|
221
|
+
|
|
222
|
+
interface AnchorHTMLAttributes extends HTMLAttributes {
|
|
223
|
+
download?: string | boolean | undefined
|
|
224
|
+
href?: string | undefined
|
|
225
|
+
hreflang?: string | undefined
|
|
226
|
+
media?: string | undefined
|
|
227
|
+
ping?: string | undefined
|
|
228
|
+
target?: HTMLAttributeAnchorTarget | undefined
|
|
229
|
+
type?: StringLiteralUnion<BaseMime> | undefined
|
|
230
|
+
referrerpolicy?: HTMLAttributeReferrerPolicy | undefined
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
interface AudioHTMLAttributes extends MediaHTMLAttributes {}
|
|
234
|
+
|
|
235
|
+
interface AreaHTMLAttributes extends HTMLAttributes {
|
|
236
|
+
alt?: string | undefined
|
|
237
|
+
coords?: string | undefined
|
|
238
|
+
download?: string | boolean | undefined
|
|
239
|
+
href?: string | undefined
|
|
240
|
+
hreflang?: string | undefined
|
|
241
|
+
media?: string | undefined
|
|
242
|
+
referrerpolicy?: HTMLAttributeReferrerPolicy | undefined
|
|
243
|
+
shape?: string | undefined
|
|
244
|
+
target?: HTMLAttributeAnchorTarget | undefined
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
interface BaseHTMLAttributes extends HTMLAttributes {
|
|
248
|
+
href?: string | undefined
|
|
249
|
+
target?: HTMLAttributeAnchorTarget | undefined
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
interface BlockquoteHTMLAttributes extends HTMLAttributes {
|
|
253
|
+
cite?: string | undefined
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/** @see https://developer.mozilla.org/en-US/docs/Web/API/Popover_API */
|
|
257
|
+
type HTMLAttributePopoverTargetAction = 'show' | 'hide' | 'toggle'
|
|
258
|
+
|
|
259
|
+
interface ButtonHTMLAttributes extends HTMLAttributes {
|
|
260
|
+
disabled?: boolean | undefined
|
|
261
|
+
form?: string | undefined
|
|
262
|
+
formenctype?: HTMLAttributeFormEnctype | undefined
|
|
263
|
+
formmethod?: HTMLAttributeFormMethod | undefined
|
|
264
|
+
formnovalidate?: boolean | undefined
|
|
265
|
+
formtarget?: HTMLAttributeAnchorTarget | undefined
|
|
266
|
+
name?: string | undefined
|
|
267
|
+
type?: 'submit' | 'reset' | 'button' | undefined
|
|
268
|
+
value?: string | ReadonlyArray<string> | number | undefined
|
|
269
|
+
popovertarget?: string | undefined
|
|
270
|
+
popovertargetaction?: HTMLAttributePopoverTargetAction | undefined
|
|
271
|
+
|
|
272
|
+
// React 19 compatibility
|
|
273
|
+
formAction?: string | Function | undefined
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
interface CanvasHTMLAttributes extends HTMLAttributes {
|
|
277
|
+
height?: number | string | undefined
|
|
278
|
+
width?: number | string | undefined
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
interface ColHTMLAttributes extends HTMLAttributes {
|
|
282
|
+
span?: number | undefined
|
|
283
|
+
width?: number | string | undefined
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
interface ColgroupHTMLAttributes extends HTMLAttributes {
|
|
287
|
+
span?: number | undefined
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
interface DataHTMLAttributes extends HTMLAttributes {
|
|
291
|
+
value?: string | ReadonlyArray<string> | number | undefined
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
interface DetailsHTMLAttributes extends HTMLAttributes {
|
|
295
|
+
open?: boolean | undefined
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
interface DelHTMLAttributes extends HTMLAttributes {
|
|
299
|
+
cite?: string | undefined
|
|
300
|
+
dateTime?: string | undefined
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
interface DialogHTMLAttributes extends HTMLAttributes {
|
|
304
|
+
open?: boolean | undefined
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
interface EmbedHTMLAttributes extends HTMLAttributes {
|
|
308
|
+
height?: number | string | undefined
|
|
309
|
+
src?: string | undefined
|
|
310
|
+
type?: StringLiteralUnion<BaseMime> | undefined
|
|
311
|
+
width?: number | string | undefined
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
interface FieldsetHTMLAttributes extends HTMLAttributes {
|
|
315
|
+
disabled?: boolean | undefined
|
|
316
|
+
form?: string | undefined
|
|
317
|
+
name?: string | undefined
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#method */
|
|
321
|
+
type HTMLAttributeFormMethod = 'get' | 'post' | 'dialog'
|
|
322
|
+
/** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#enctype */
|
|
323
|
+
type HTMLAttributeFormEnctype =
|
|
324
|
+
| 'application/x-www-form-urlencoded'
|
|
325
|
+
| 'multipart/form-data'
|
|
326
|
+
| 'text/plain'
|
|
327
|
+
/** @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#autocomplete */
|
|
328
|
+
type HTMLAttributeFormAutocomplete = 'on' | 'off'
|
|
329
|
+
|
|
330
|
+
interface FormHTMLAttributes extends HTMLAttributes {
|
|
331
|
+
'accept-charset'?: StringLiteralUnion<'utf-8'> | undefined
|
|
332
|
+
autocomplete?: HTMLAttributeFormAutocomplete | undefined
|
|
333
|
+
enctype?: HTMLAttributeFormEnctype | undefined
|
|
334
|
+
method?: HTMLAttributeFormMethod | undefined
|
|
335
|
+
name?: string | undefined
|
|
336
|
+
novalidate?: boolean | undefined
|
|
337
|
+
target?: HTMLAttributeAnchorTarget | undefined
|
|
338
|
+
|
|
339
|
+
// React 19 compatibility
|
|
340
|
+
action?: string | Function | undefined
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
interface HtmlHTMLAttributes extends HTMLAttributes {
|
|
344
|
+
manifest?: string | undefined
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
interface IframeHTMLAttributes extends HTMLAttributes {
|
|
348
|
+
allow?: string | undefined
|
|
349
|
+
allowfullscreen?: boolean | undefined
|
|
350
|
+
height?: number | string | undefined
|
|
351
|
+
loading?: 'eager' | 'lazy' | undefined
|
|
352
|
+
name?: string | undefined
|
|
353
|
+
referrerpolicy?: HTMLAttributeReferrerPolicy | undefined
|
|
354
|
+
sandbox?: string | undefined
|
|
355
|
+
seamless?: boolean | undefined
|
|
356
|
+
src?: string | undefined
|
|
357
|
+
srcdoc?: string | undefined
|
|
358
|
+
width?: number | string | undefined
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
interface ImgHTMLAttributes extends HTMLAttributes {
|
|
362
|
+
alt?: string | undefined
|
|
363
|
+
crossorigin?: CrossOrigin
|
|
364
|
+
decoding?: 'async' | 'auto' | 'sync' | undefined
|
|
365
|
+
height?: number | string | undefined
|
|
366
|
+
loading?: 'eager' | 'lazy' | undefined
|
|
367
|
+
referrerpolicy?: HTMLAttributeReferrerPolicy | undefined
|
|
368
|
+
sizes?: string | undefined
|
|
369
|
+
src?: string | undefined
|
|
370
|
+
srcset?: string | undefined
|
|
371
|
+
usemap?: string | undefined
|
|
372
|
+
width?: number | string | undefined
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
interface InsHTMLAttributes extends HTMLAttributes {
|
|
376
|
+
cite?: string | undefined
|
|
377
|
+
datetime?: string | undefined
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
type HTMLInputTypeAttribute = StringLiteralUnion<
|
|
381
|
+
| 'button'
|
|
382
|
+
| 'checkbox'
|
|
383
|
+
| 'color'
|
|
384
|
+
| 'date'
|
|
385
|
+
| 'datetime-local'
|
|
386
|
+
| 'email'
|
|
387
|
+
| 'file'
|
|
388
|
+
| 'hidden'
|
|
389
|
+
| 'image'
|
|
390
|
+
| 'month'
|
|
391
|
+
| 'number'
|
|
392
|
+
| 'password'
|
|
393
|
+
| 'radio'
|
|
394
|
+
| 'range'
|
|
395
|
+
| 'reset'
|
|
396
|
+
| 'search'
|
|
397
|
+
| 'submit'
|
|
398
|
+
| 'tel'
|
|
399
|
+
| 'text'
|
|
400
|
+
| 'time'
|
|
401
|
+
| 'url'
|
|
402
|
+
| 'week'
|
|
403
|
+
>
|
|
404
|
+
type AutoFillAddressKind = 'billing' | 'shipping'
|
|
405
|
+
type AutoFillBase = '' | 'off' | 'on'
|
|
406
|
+
type AutoFillContactField =
|
|
407
|
+
| 'email'
|
|
408
|
+
| 'tel'
|
|
409
|
+
| 'tel-area-code'
|
|
410
|
+
| 'tel-country-code'
|
|
411
|
+
| 'tel-extension'
|
|
412
|
+
| 'tel-local'
|
|
413
|
+
| 'tel-local-prefix'
|
|
414
|
+
| 'tel-local-suffix'
|
|
415
|
+
| 'tel-national'
|
|
416
|
+
type AutoFillContactKind = 'home' | 'mobile' | 'work'
|
|
417
|
+
type AutoFillCredentialField = 'webauthn'
|
|
418
|
+
type AutoFillNormalField =
|
|
419
|
+
| 'additional-name'
|
|
420
|
+
| 'address-level1'
|
|
421
|
+
| 'address-level2'
|
|
422
|
+
| 'address-level3'
|
|
423
|
+
| 'address-level4'
|
|
424
|
+
| 'address-line1'
|
|
425
|
+
| 'address-line2'
|
|
426
|
+
| 'address-line3'
|
|
427
|
+
| 'bday-day'
|
|
428
|
+
| 'bday-month'
|
|
429
|
+
| 'bday-year'
|
|
430
|
+
| 'cc-csc'
|
|
431
|
+
| 'cc-exp'
|
|
432
|
+
| 'cc-exp-month'
|
|
433
|
+
| 'cc-exp-year'
|
|
434
|
+
| 'cc-family-name'
|
|
435
|
+
| 'cc-given-name'
|
|
436
|
+
| 'cc-name'
|
|
437
|
+
| 'cc-number'
|
|
438
|
+
| 'cc-type'
|
|
439
|
+
| 'country'
|
|
440
|
+
| 'country-name'
|
|
441
|
+
| 'current-password'
|
|
442
|
+
| 'family-name'
|
|
443
|
+
| 'given-name'
|
|
444
|
+
| 'honorific-prefix'
|
|
445
|
+
| 'honorific-suffix'
|
|
446
|
+
| 'name'
|
|
447
|
+
| 'new-password'
|
|
448
|
+
| 'one-time-code'
|
|
449
|
+
| 'organization'
|
|
450
|
+
| 'postal-code'
|
|
451
|
+
| 'street-address'
|
|
452
|
+
| 'transaction-amount'
|
|
453
|
+
| 'transaction-currency'
|
|
454
|
+
| 'username'
|
|
455
|
+
type OptionalPrefixToken<T extends string> = `${T} ` | ''
|
|
456
|
+
type OptionalPostfixToken<T extends string> = ` ${T}` | ''
|
|
457
|
+
type AutoFillField =
|
|
458
|
+
| AutoFillNormalField
|
|
459
|
+
| `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`
|
|
460
|
+
type AutoFillSection = `section-${string}`
|
|
461
|
+
type AutoFill =
|
|
462
|
+
| AutoFillBase
|
|
463
|
+
| `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`
|
|
464
|
+
|
|
465
|
+
interface InputHTMLAttributes extends HTMLAttributes {
|
|
466
|
+
accept?: string | undefined
|
|
467
|
+
alt?: string | undefined
|
|
468
|
+
autocomplete?: StringLiteralUnion<AutoFill> | undefined
|
|
469
|
+
capture?: boolean | 'user' | 'environment' | undefined // https://www.w3.org/TR/html-media-capture/#the-capture-attribute
|
|
470
|
+
checked?: boolean | undefined
|
|
471
|
+
disabled?: boolean | undefined
|
|
472
|
+
form?: string | undefined
|
|
473
|
+
formenctype?: HTMLAttributeFormEnctype | undefined
|
|
474
|
+
formmethod?: HTMLAttributeFormMethod | undefined
|
|
475
|
+
formnovalidate?: boolean | undefined
|
|
476
|
+
formtarget?: HTMLAttributeAnchorTarget | undefined
|
|
477
|
+
height?: number | string | undefined
|
|
478
|
+
list?: string | undefined
|
|
479
|
+
max?: number | string | undefined
|
|
480
|
+
maxlength?: number | undefined
|
|
481
|
+
min?: number | string | undefined
|
|
482
|
+
minlength?: number | undefined
|
|
483
|
+
multiple?: boolean | undefined
|
|
484
|
+
name?: string | undefined
|
|
485
|
+
pattern?: string | undefined
|
|
486
|
+
placeholder?: string | undefined
|
|
487
|
+
readonly?: boolean | undefined
|
|
488
|
+
required?: boolean | undefined
|
|
489
|
+
size?: number | undefined
|
|
490
|
+
src?: string | undefined
|
|
491
|
+
step?: number | string | undefined
|
|
492
|
+
type?: HTMLInputTypeAttribute | undefined
|
|
493
|
+
value?: string | ReadonlyArray<string> | number | undefined
|
|
494
|
+
width?: number | string | undefined
|
|
495
|
+
popovertarget?: string | undefined
|
|
496
|
+
popovertargetaction?: HTMLAttributePopoverTargetAction | undefined
|
|
497
|
+
|
|
498
|
+
// React 19 compatibility
|
|
499
|
+
formAction?: string | Function | undefined
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
interface KeygenHTMLAttributes extends HTMLAttributes {
|
|
503
|
+
challenge?: string | undefined
|
|
504
|
+
disabled?: boolean | undefined
|
|
505
|
+
form?: string | undefined
|
|
506
|
+
keytype?: string | undefined
|
|
507
|
+
name?: string | undefined
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
interface LabelHTMLAttributes extends HTMLAttributes {
|
|
511
|
+
form?: string | undefined
|
|
512
|
+
for?: string | undefined
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
interface LiHTMLAttributes extends HTMLAttributes {
|
|
516
|
+
value?: string | ReadonlyArray<string> | number | undefined
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
interface LinkHTMLAttributes extends HTMLAttributes {
|
|
520
|
+
as?: string | undefined
|
|
521
|
+
crossorigin?: CrossOrigin
|
|
522
|
+
href?: string | undefined
|
|
523
|
+
hreflang?: string | undefined
|
|
524
|
+
integrity?: string | undefined
|
|
525
|
+
media?: string | undefined
|
|
526
|
+
imagesrcset?: string | undefined
|
|
527
|
+
imagesizes?: string | undefined
|
|
528
|
+
referrerpolicy?: HTMLAttributeReferrerPolicy | undefined
|
|
529
|
+
sizes?: string | undefined
|
|
530
|
+
type?: StringLiteralUnion<BaseMime> | undefined
|
|
531
|
+
charSet?: string | undefined
|
|
532
|
+
|
|
533
|
+
// React 19 compatibility
|
|
534
|
+
rel?: string | undefined
|
|
535
|
+
precedence?: string | undefined
|
|
536
|
+
title?: string | undefined
|
|
537
|
+
disabled?: boolean | undefined
|
|
538
|
+
onError?: ((event: Event) => void) | undefined
|
|
539
|
+
onLoad?: ((event: Event) => void) | undefined
|
|
540
|
+
blocking?: 'render' | undefined
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
interface MapHTMLAttributes extends HTMLAttributes {
|
|
544
|
+
name?: string | undefined
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
interface MenuHTMLAttributes extends HTMLAttributes {
|
|
548
|
+
type?: string | undefined
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
interface MediaHTMLAttributes extends HTMLAttributes {
|
|
552
|
+
autoplay?: boolean | undefined
|
|
553
|
+
controls?: boolean | undefined
|
|
554
|
+
controlslist?: string | undefined
|
|
555
|
+
crossorigin?: CrossOrigin
|
|
556
|
+
loop?: boolean | undefined
|
|
557
|
+
mediagroup?: string | undefined
|
|
558
|
+
muted?: boolean | undefined
|
|
559
|
+
playsinline?: boolean | undefined
|
|
560
|
+
preload?: string | undefined
|
|
561
|
+
src?: string | undefined
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#http-equiv
|
|
566
|
+
*/
|
|
567
|
+
type MetaHttpEquiv =
|
|
568
|
+
| 'content-security-policy'
|
|
569
|
+
| 'content-type'
|
|
570
|
+
| 'default-style'
|
|
571
|
+
| 'x-ua-compatible'
|
|
572
|
+
| 'refresh'
|
|
573
|
+
/**
|
|
574
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta/name
|
|
575
|
+
*/
|
|
576
|
+
type MetaName =
|
|
577
|
+
| 'application-name'
|
|
578
|
+
| 'author'
|
|
579
|
+
| 'description'
|
|
580
|
+
| 'generator'
|
|
581
|
+
| 'keywords'
|
|
582
|
+
| 'referrer'
|
|
583
|
+
| 'theme-color'
|
|
584
|
+
| 'color-scheme'
|
|
585
|
+
| 'viewport'
|
|
586
|
+
| 'creator'
|
|
587
|
+
| 'googlebot'
|
|
588
|
+
| 'publisher'
|
|
589
|
+
| 'robots'
|
|
590
|
+
/**
|
|
591
|
+
* @see https://ogp.me/
|
|
592
|
+
*/
|
|
593
|
+
type MetaProperty =
|
|
594
|
+
| 'og:title'
|
|
595
|
+
| 'og:type'
|
|
596
|
+
| 'og:image'
|
|
597
|
+
| 'og:url'
|
|
598
|
+
| 'og:audio'
|
|
599
|
+
| 'og:description'
|
|
600
|
+
| 'og:determiner'
|
|
601
|
+
| 'og:locale'
|
|
602
|
+
| 'og:locale:alternate'
|
|
603
|
+
| 'og:site_name'
|
|
604
|
+
| 'og:video'
|
|
605
|
+
| 'og:image:url'
|
|
606
|
+
| 'og:image:secure_url'
|
|
607
|
+
| 'og:image:type'
|
|
608
|
+
| 'og:image:width'
|
|
609
|
+
| 'og:image:height'
|
|
610
|
+
| 'og:image:alt'
|
|
611
|
+
interface MetaHTMLAttributes extends HTMLAttributes {
|
|
612
|
+
charset?: StringLiteralUnion<'utf-8'> | undefined
|
|
613
|
+
'http-equiv'?: StringLiteralUnion<MetaHttpEquiv> | undefined
|
|
614
|
+
name?: StringLiteralUnion<MetaName> | undefined
|
|
615
|
+
media?: string | undefined
|
|
616
|
+
content?: string | undefined
|
|
617
|
+
property?: StringLiteralUnion<MetaProperty> | undefined
|
|
618
|
+
|
|
619
|
+
// React 19 compatibility
|
|
620
|
+
httpEquiv?: StringLiteralUnion<MetaHttpEquiv> | undefined
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
interface MeterHTMLAttributes extends HTMLAttributes {
|
|
624
|
+
form?: string | undefined
|
|
625
|
+
high?: number | undefined
|
|
626
|
+
low?: number | undefined
|
|
627
|
+
max?: number | string | undefined
|
|
628
|
+
min?: number | string | undefined
|
|
629
|
+
optimum?: number | undefined
|
|
630
|
+
value?: string | ReadonlyArray<string> | number | undefined
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
interface QuoteHTMLAttributes extends HTMLAttributes {
|
|
634
|
+
cite?: string | undefined
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
interface ObjectHTMLAttributes extends HTMLAttributes {
|
|
638
|
+
data?: string | undefined
|
|
639
|
+
form?: string | undefined
|
|
640
|
+
height?: number | string | undefined
|
|
641
|
+
name?: string | undefined
|
|
642
|
+
type?: StringLiteralUnion<BaseMime> | undefined
|
|
643
|
+
usemap?: string | undefined
|
|
644
|
+
width?: number | string | undefined
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
interface OlHTMLAttributes extends HTMLAttributes {
|
|
648
|
+
reversed?: boolean | undefined
|
|
649
|
+
start?: number | undefined
|
|
650
|
+
type?: '1' | 'a' | 'A' | 'i' | 'I' | undefined
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
interface OptgroupHTMLAttributes extends HTMLAttributes {
|
|
654
|
+
disabled?: boolean | undefined
|
|
655
|
+
label?: string | undefined
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
interface OptionHTMLAttributes extends HTMLAttributes {
|
|
659
|
+
disabled?: boolean | undefined
|
|
660
|
+
label?: string | undefined
|
|
661
|
+
selected?: boolean | undefined
|
|
662
|
+
value?: string | ReadonlyArray<string> | number | undefined
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
interface OutputHTMLAttributes extends HTMLAttributes {
|
|
666
|
+
form?: string | undefined
|
|
667
|
+
for?: string | undefined
|
|
668
|
+
name?: string | undefined
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
interface ParamHTMLAttributes extends HTMLAttributes {
|
|
672
|
+
name?: string | undefined
|
|
673
|
+
value?: string | ReadonlyArray<string> | number | undefined
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
interface ProgressHTMLAttributes extends HTMLAttributes {
|
|
677
|
+
max?: number | string | undefined
|
|
678
|
+
value?: string | ReadonlyArray<string> | number | undefined
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
interface SlotHTMLAttributes extends HTMLAttributes {
|
|
682
|
+
name?: string | undefined
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
interface ScriptHTMLAttributes extends HTMLAttributes {
|
|
686
|
+
async?: boolean | undefined
|
|
687
|
+
crossorigin?: CrossOrigin
|
|
688
|
+
defer?: boolean | undefined
|
|
689
|
+
integrity?: string | undefined
|
|
690
|
+
nomodule?: boolean | undefined
|
|
691
|
+
referrerpolicy?: HTMLAttributeReferrerPolicy | undefined
|
|
692
|
+
src?: string | undefined
|
|
693
|
+
/**
|
|
694
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type
|
|
695
|
+
*/
|
|
696
|
+
type?: StringLiteralUnion<'' | 'text/javascript' | 'importmap' | 'module'> | undefined
|
|
697
|
+
|
|
698
|
+
// React 19 compatibility
|
|
699
|
+
crossOrigin?: CrossOrigin
|
|
700
|
+
fetchPriority?: string | undefined
|
|
701
|
+
noModule?: boolean | undefined
|
|
702
|
+
referrer?: HTMLAttributeReferrerPolicy | undefined
|
|
703
|
+
onError?: ((event: Event) => void) | undefined
|
|
704
|
+
onLoad?: ((event: Event) => void) | undefined
|
|
705
|
+
blocking?: 'render' | undefined
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
interface SelectHTMLAttributes extends HTMLAttributes {
|
|
709
|
+
autocomplete?: string | undefined
|
|
710
|
+
disabled?: boolean | undefined
|
|
711
|
+
form?: string | undefined
|
|
712
|
+
multiple?: boolean | undefined
|
|
713
|
+
name?: string | undefined
|
|
714
|
+
required?: boolean | undefined
|
|
715
|
+
size?: number | undefined
|
|
716
|
+
value?: string | ReadonlyArray<string> | number | undefined
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
type MediaMime = BaseMime & (`image/${string}` | `audio/${string}` | `video/${string}`)
|
|
720
|
+
interface SourceHTMLAttributes extends HTMLAttributes {
|
|
721
|
+
height?: number | string | undefined
|
|
722
|
+
media?: string | undefined
|
|
723
|
+
sizes?: string | undefined
|
|
724
|
+
src?: string | undefined
|
|
725
|
+
srcset?: string | undefined
|
|
726
|
+
type?: StringLiteralUnion<MediaMime> | undefined
|
|
727
|
+
width?: number | string | undefined
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
interface StyleHTMLAttributes extends HTMLAttributes {
|
|
731
|
+
media?: string | undefined
|
|
732
|
+
scoped?: boolean | undefined
|
|
733
|
+
/**
|
|
734
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style#type
|
|
735
|
+
*/
|
|
736
|
+
type?: '' | 'text/css' | undefined
|
|
737
|
+
|
|
738
|
+
// React 19 compatibility
|
|
739
|
+
href?: string | undefined
|
|
740
|
+
precedence?: string | undefined
|
|
741
|
+
title?: string | undefined
|
|
742
|
+
disabled?: boolean | undefined
|
|
743
|
+
blocking?: 'render' | undefined
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
interface TableHTMLAttributes extends HTMLAttributes {
|
|
747
|
+
align?: 'left' | 'center' | 'right' | undefined
|
|
748
|
+
bgcolor?: string | undefined
|
|
749
|
+
border?: number | undefined
|
|
750
|
+
cellpadding?: number | string | undefined
|
|
751
|
+
cellspacing?: number | string | undefined
|
|
752
|
+
frame?: boolean | undefined
|
|
753
|
+
rules?: 'none' | 'groups' | 'rows' | 'columns' | 'all' | undefined
|
|
754
|
+
summary?: string | undefined
|
|
755
|
+
width?: number | string | undefined
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
interface TextareaHTMLAttributes extends HTMLAttributes {
|
|
759
|
+
autocomplete?: string | undefined
|
|
760
|
+
cols?: number | undefined
|
|
761
|
+
dirname?: string | undefined
|
|
762
|
+
disabled?: boolean | undefined
|
|
763
|
+
form?: string | undefined
|
|
764
|
+
maxlength?: number | undefined
|
|
765
|
+
minlength?: number | undefined
|
|
766
|
+
name?: string | undefined
|
|
767
|
+
placeholder?: string | undefined
|
|
768
|
+
readonly?: boolean | undefined
|
|
769
|
+
required?: boolean | undefined
|
|
770
|
+
rows?: number | undefined
|
|
771
|
+
value?: string | ReadonlyArray<string> | number | undefined
|
|
772
|
+
wrap?: string | undefined
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
interface TdHTMLAttributes extends HTMLAttributes {
|
|
776
|
+
align?: 'left' | 'center' | 'right' | 'justify' | 'char' | undefined
|
|
777
|
+
colspan?: number | undefined
|
|
778
|
+
headers?: string | undefined
|
|
779
|
+
rowspan?: number | undefined
|
|
780
|
+
scope?: string | undefined
|
|
781
|
+
abbr?: string | undefined
|
|
782
|
+
height?: number | string | undefined
|
|
783
|
+
width?: number | string | undefined
|
|
784
|
+
valign?: 'top' | 'middle' | 'bottom' | 'baseline' | undefined
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
interface ThHTMLAttributes extends HTMLAttributes {
|
|
788
|
+
align?: 'left' | 'center' | 'right' | 'justify' | 'char' | undefined
|
|
789
|
+
colspan?: number | undefined
|
|
790
|
+
headers?: string | undefined
|
|
791
|
+
rowspan?: number | undefined
|
|
792
|
+
scope?: 'row' | 'col' | 'rowgroup' | 'colgroup' | string | undefined
|
|
793
|
+
abbr?: string | undefined
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
interface TimeHTMLAttributes extends HTMLAttributes {
|
|
797
|
+
datetime?: string | undefined
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
interface TrackHTMLAttributes extends HTMLAttributes {
|
|
801
|
+
default?: boolean | undefined
|
|
802
|
+
kind?: string | undefined
|
|
803
|
+
label?: string | undefined
|
|
804
|
+
src?: string | undefined
|
|
805
|
+
srclang?: string | undefined
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
interface VideoHTMLAttributes extends MediaHTMLAttributes {
|
|
809
|
+
height?: number | string | undefined
|
|
810
|
+
playsinline?: boolean | undefined
|
|
811
|
+
poster?: string | undefined
|
|
812
|
+
width?: number | string | undefined
|
|
813
|
+
disablePictureInPicture?: boolean | undefined
|
|
814
|
+
disableRemotePlayback?: boolean | undefined
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export interface IntrinsicElements {
|
|
818
|
+
a: AnchorHTMLAttributes
|
|
819
|
+
abbr: HTMLAttributes
|
|
820
|
+
address: HTMLAttributes
|
|
821
|
+
area: AreaHTMLAttributes
|
|
822
|
+
article: HTMLAttributes
|
|
823
|
+
aside: HTMLAttributes
|
|
824
|
+
audio: AudioHTMLAttributes
|
|
825
|
+
b: HTMLAttributes
|
|
826
|
+
base: BaseHTMLAttributes
|
|
827
|
+
bdi: HTMLAttributes
|
|
828
|
+
bdo: HTMLAttributes
|
|
829
|
+
big: HTMLAttributes
|
|
830
|
+
blockquote: BlockquoteHTMLAttributes
|
|
831
|
+
body: HTMLAttributes
|
|
832
|
+
br: HTMLAttributes
|
|
833
|
+
button: ButtonHTMLAttributes
|
|
834
|
+
canvas: CanvasHTMLAttributes
|
|
835
|
+
caption: HTMLAttributes
|
|
836
|
+
center: HTMLAttributes
|
|
837
|
+
cite: HTMLAttributes
|
|
838
|
+
code: HTMLAttributes
|
|
839
|
+
col: ColHTMLAttributes
|
|
840
|
+
colgroup: ColgroupHTMLAttributes
|
|
841
|
+
data: DataHTMLAttributes
|
|
842
|
+
datalist: HTMLAttributes
|
|
843
|
+
dd: HTMLAttributes
|
|
844
|
+
del: DelHTMLAttributes
|
|
845
|
+
details: DetailsHTMLAttributes
|
|
846
|
+
dfn: HTMLAttributes
|
|
847
|
+
dialog: DialogHTMLAttributes
|
|
848
|
+
div: HTMLAttributes
|
|
849
|
+
dl: HTMLAttributes
|
|
850
|
+
dt: HTMLAttributes
|
|
851
|
+
em: HTMLAttributes
|
|
852
|
+
embed: EmbedHTMLAttributes
|
|
853
|
+
fieldset: FieldsetHTMLAttributes
|
|
854
|
+
figcaption: HTMLAttributes
|
|
855
|
+
figure: HTMLAttributes
|
|
856
|
+
footer: HTMLAttributes
|
|
857
|
+
form: FormHTMLAttributes
|
|
858
|
+
h1: HTMLAttributes
|
|
859
|
+
h2: HTMLAttributes
|
|
860
|
+
h3: HTMLAttributes
|
|
861
|
+
h4: HTMLAttributes
|
|
862
|
+
h5: HTMLAttributes
|
|
863
|
+
h6: HTMLAttributes
|
|
864
|
+
head: HTMLAttributes
|
|
865
|
+
header: HTMLAttributes
|
|
866
|
+
hgroup: HTMLAttributes
|
|
867
|
+
hr: HTMLAttributes
|
|
868
|
+
html: HtmlHTMLAttributes
|
|
869
|
+
i: HTMLAttributes
|
|
870
|
+
iframe: IframeHTMLAttributes
|
|
871
|
+
img: ImgHTMLAttributes
|
|
872
|
+
input: InputHTMLAttributes
|
|
873
|
+
ins: InsHTMLAttributes
|
|
874
|
+
kbd: HTMLAttributes
|
|
875
|
+
keygen: KeygenHTMLAttributes
|
|
876
|
+
label: LabelHTMLAttributes
|
|
877
|
+
legend: HTMLAttributes
|
|
878
|
+
li: LiHTMLAttributes
|
|
879
|
+
link: LinkHTMLAttributes
|
|
880
|
+
main: HTMLAttributes
|
|
881
|
+
map: MapHTMLAttributes
|
|
882
|
+
mark: HTMLAttributes
|
|
883
|
+
menu: MenuHTMLAttributes
|
|
884
|
+
menuitem: HTMLAttributes
|
|
885
|
+
meta: MetaHTMLAttributes
|
|
886
|
+
meter: MeterHTMLAttributes
|
|
887
|
+
nav: HTMLAttributes
|
|
888
|
+
noscript: HTMLAttributes
|
|
889
|
+
object: ObjectHTMLAttributes
|
|
890
|
+
ol: OlHTMLAttributes
|
|
891
|
+
optgroup: OptgroupHTMLAttributes
|
|
892
|
+
option: OptionHTMLAttributes
|
|
893
|
+
output: OutputHTMLAttributes
|
|
894
|
+
p: HTMLAttributes
|
|
895
|
+
param: ParamHTMLAttributes
|
|
896
|
+
picture: HTMLAttributes
|
|
897
|
+
pre: HTMLAttributes
|
|
898
|
+
progress: ProgressHTMLAttributes
|
|
899
|
+
q: QuoteHTMLAttributes
|
|
900
|
+
rp: HTMLAttributes
|
|
901
|
+
rt: HTMLAttributes
|
|
902
|
+
ruby: HTMLAttributes
|
|
903
|
+
s: HTMLAttributes
|
|
904
|
+
samp: HTMLAttributes
|
|
905
|
+
search: HTMLAttributes
|
|
906
|
+
slot: SlotHTMLAttributes
|
|
907
|
+
script: ScriptHTMLAttributes
|
|
908
|
+
section: HTMLAttributes
|
|
909
|
+
select: SelectHTMLAttributes
|
|
910
|
+
small: HTMLAttributes
|
|
911
|
+
source: SourceHTMLAttributes
|
|
912
|
+
span: HTMLAttributes
|
|
913
|
+
strong: HTMLAttributes
|
|
914
|
+
style: StyleHTMLAttributes
|
|
915
|
+
sub: HTMLAttributes
|
|
916
|
+
summary: HTMLAttributes
|
|
917
|
+
sup: HTMLAttributes
|
|
918
|
+
table: TableHTMLAttributes
|
|
919
|
+
template: HTMLAttributes
|
|
920
|
+
tbody: HTMLAttributes
|
|
921
|
+
td: TdHTMLAttributes
|
|
922
|
+
textarea: TextareaHTMLAttributes
|
|
923
|
+
tfoot: HTMLAttributes
|
|
924
|
+
th: ThHTMLAttributes
|
|
925
|
+
thead: HTMLAttributes
|
|
926
|
+
time: TimeHTMLAttributes
|
|
927
|
+
title: HTMLAttributes
|
|
928
|
+
tr: HTMLAttributes
|
|
929
|
+
track: TrackHTMLAttributes
|
|
930
|
+
u: HTMLAttributes
|
|
931
|
+
ul: HTMLAttributes
|
|
932
|
+
var: HTMLAttributes
|
|
933
|
+
video: VideoHTMLAttributes
|
|
934
|
+
wbr: HTMLAttributes
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export interface IntrinsicElements extends JSX.IntrinsicElements {}
|