@kudzujs/core 0.17.12 → 0.17.13
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 +1 -1
- package/framework/jsx-runtime.d.ts +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Kudzu compiles ordinary React-shaped TypeScript and TSX into complete static HTM
|
|
|
14
14
|
|
|
15
15
|
> Experimental `0.17.x`: the compiler API and supported TSX surface may change.
|
|
16
16
|
|
|
17
|
-
**Current release: [0.17.
|
|
17
|
+
**Current release: [0.17.13](https://github.com/kudzujs/kudzu/releases/tag/v0.17.13).** JSX event types distinguish the handler's `currentTarget` from a potentially different `target`. Known HTML boolean attributes reject strings such as `disabled="false"`. Use `event.currentTarget.value` for input handlers or narrow the native target. Unlisted attributes remain open for migration compatibility. Generator `create-kudzu@0.1.173` retains its compatible core `^0.17.12` range. No runtime code or browser capability changes.
|
|
18
18
|
|
|
19
19
|
- [Documentation](https://kudzujs.cloud/docs)
|
|
20
20
|
- [Installation guide](https://kudzujs.cloud/docs#install)
|
|
@@ -4,9 +4,13 @@ export namespace JSX {
|
|
|
4
4
|
|
|
5
5
|
type TargetedEvent<Target extends EventTarget, NativeEvent extends Event = Event> = NativeEvent & {
|
|
6
6
|
currentTarget: Target
|
|
7
|
-
target: EventTarget & Target
|
|
8
7
|
}
|
|
9
8
|
|
|
9
|
+
type HTMLBooleanAttributes = {
|
|
10
|
+
[Name in "allowFullScreen" | "async" | "autoFocus" | "autoPlay" | "checked" | "controls" | "default" | "defer" | "disabled" | "formNoValidate" | "inert" | "loop" | "multiple" | "muted" | "noValidate" | "open" | "playsInline" | "readOnly" | "required" | "reversed" | "selected"]?: boolean | null
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// shortcut: preserve unlisted attributes for migration input until a complete HTML/SVG attribute contract is available.
|
|
10
14
|
type IntrinsicProps<Target extends EventTarget> = Record<string, unknown> & {
|
|
11
15
|
children?: Children
|
|
12
16
|
onBlur?: (event: TargetedEvent<Target, FocusEvent>) => unknown
|
|
@@ -24,7 +28,7 @@ export namespace JSX {
|
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
type IntrinsicElements = {
|
|
27
|
-
[Name in keyof HTMLElementTagNameMap]: IntrinsicProps<HTMLElementTagNameMap[Name]>
|
|
31
|
+
[Name in keyof HTMLElementTagNameMap]: IntrinsicProps<HTMLElementTagNameMap[Name]> & HTMLBooleanAttributes
|
|
28
32
|
} & {
|
|
29
33
|
[Name in keyof SVGElementTagNameMap]: IntrinsicProps<SVGElementTagNameMap[Name]>
|
|
30
34
|
} & {
|