@ktjs/core 0.10.2 → 0.10.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/dist/index.d.ts +13 -5
- package/dist/index.iife.js +1 -1
- package/dist/index.legacy.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/jsx/index.d.ts +4 -1
- package/dist/jsx/index.mjs +1 -1
- package/dist/jsx/jsx-runtime.d.ts +4 -1
- package/dist/jsx/jsx-runtime.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -80,6 +80,9 @@ interface KTBaseAttribute {
|
|
|
80
80
|
for?: string;
|
|
81
81
|
|
|
82
82
|
name?: string;
|
|
83
|
+
title?: string;
|
|
84
|
+
placeholder?: string;
|
|
85
|
+
contenteditable?: boolean;
|
|
83
86
|
value?: string;
|
|
84
87
|
valueAsDate?: Date;
|
|
85
88
|
valueAsNumber?: number;
|
|
@@ -107,7 +110,8 @@ type KTComponent = (
|
|
|
107
110
|
props: {
|
|
108
111
|
ref?: KTRef<HTMLElement>;
|
|
109
112
|
children?: KTRawContent;
|
|
110
|
-
} & KTAttribute
|
|
113
|
+
} & KTAttribute &
|
|
114
|
+
any
|
|
111
115
|
) => HTMLElement | Promise<HTMLElement>;
|
|
112
116
|
|
|
113
117
|
type HTML<T extends HTMLTag & otherstring> = T extends HTMLTag ? HTMLElementTagNameMap[T] : HTMLElement;
|
|
@@ -125,7 +129,7 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
125
129
|
* ## About
|
|
126
130
|
* @package @ktjs/core
|
|
127
131
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
128
|
-
* @version 0.10.
|
|
132
|
+
* @version 0.10.3 (Last Update: 2025.12.31 15:05:46.905)
|
|
129
133
|
* @license MIT
|
|
130
134
|
* @link https://github.com/baendlorel/kt.js
|
|
131
135
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -176,11 +180,15 @@ declare global {
|
|
|
176
180
|
}
|
|
177
181
|
}
|
|
178
182
|
|
|
179
|
-
|
|
183
|
+
/**
|
|
184
|
+
* Extract component props type (excluding ref and children)
|
|
185
|
+
*/
|
|
186
|
+
type ExtractComponentProps<T> = T extends (props: infer P) => any ? Omit<P, 'ref' | 'children'> : {};
|
|
187
|
+
declare function KTAsync<T extends KTComponent>(props: {
|
|
180
188
|
ref?: KTRef<HTMLElement>;
|
|
181
|
-
component:
|
|
189
|
+
component: T;
|
|
182
190
|
children?: KTRawContent;
|
|
183
|
-
}): HTMLElement;
|
|
191
|
+
} & ExtractComponentProps<T>): HTMLElement;
|
|
184
192
|
|
|
185
193
|
export { Fragment, KTAsync, h as createElement, h, jsx, jsxDEV, jsxs, ktref };
|
|
186
194
|
export type { EventHandler, HTMLTag, KTAttribute, KTRawAttr, KTRawContent, KTRawContents, KTRef, KTRuntime };
|
package/dist/index.iife.js
CHANGED
|
@@ -221,7 +221,7 @@ var __ktjs_core__ = (function (exports) {
|
|
|
221
221
|
* ## About
|
|
222
222
|
* @package @ktjs/core
|
|
223
223
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
224
|
-
* @version 0.10.
|
|
224
|
+
* @version 0.10.3 (Last Update: 2025.12.31 15:05:46.905)
|
|
225
225
|
* @license MIT
|
|
226
226
|
* @link https://github.com/baendlorel/kt.js
|
|
227
227
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/index.legacy.js
CHANGED
|
@@ -237,7 +237,7 @@ var __ktjs_core__ = (function (exports) {
|
|
|
237
237
|
* ## About
|
|
238
238
|
* @package @ktjs/core
|
|
239
239
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
240
|
-
* @version 0.10.
|
|
240
|
+
* @version 0.10.3 (Last Update: 2025.12.31 15:05:46.905)
|
|
241
241
|
* @license MIT
|
|
242
242
|
* @link https://github.com/baendlorel/kt.js
|
|
243
243
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/index.mjs
CHANGED
|
@@ -218,7 +218,7 @@ function applyContent(element, content) {
|
|
|
218
218
|
* ## About
|
|
219
219
|
* @package @ktjs/core
|
|
220
220
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
221
|
-
* @version 0.10.
|
|
221
|
+
* @version 0.10.3 (Last Update: 2025.12.31 15:05:46.905)
|
|
222
222
|
* @license MIT
|
|
223
223
|
* @link https://github.com/baendlorel/kt.js
|
|
224
224
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/jsx/index.d.ts
CHANGED
|
@@ -63,6 +63,9 @@ interface KTBaseAttribute {
|
|
|
63
63
|
for?: string;
|
|
64
64
|
|
|
65
65
|
name?: string;
|
|
66
|
+
title?: string;
|
|
67
|
+
placeholder?: string;
|
|
68
|
+
contenteditable?: boolean;
|
|
66
69
|
value?: string;
|
|
67
70
|
valueAsDate?: Date;
|
|
68
71
|
valueAsNumber?: number;
|
|
@@ -101,7 +104,7 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
101
104
|
* ## About
|
|
102
105
|
* @package @ktjs/core
|
|
103
106
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
104
|
-
* @version 0.10.
|
|
107
|
+
* @version 0.10.3 (Last Update: 2025.12.31 15:05:46.905)
|
|
105
108
|
* @license MIT
|
|
106
109
|
* @link https://github.com/baendlorel/kt.js
|
|
107
110
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/jsx/index.mjs
CHANGED
|
@@ -201,7 +201,7 @@ function applyContent(element, content) {
|
|
|
201
201
|
* ## About
|
|
202
202
|
* @package @ktjs/core
|
|
203
203
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
204
|
-
* @version 0.10.
|
|
204
|
+
* @version 0.10.3 (Last Update: 2025.12.31 15:05:46.905)
|
|
205
205
|
* @license MIT
|
|
206
206
|
* @link https://github.com/baendlorel/kt.js
|
|
207
207
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -57,6 +57,9 @@ interface KTBaseAttribute {
|
|
|
57
57
|
for?: string;
|
|
58
58
|
|
|
59
59
|
name?: string;
|
|
60
|
+
title?: string;
|
|
61
|
+
placeholder?: string;
|
|
62
|
+
contenteditable?: boolean;
|
|
60
63
|
value?: string;
|
|
61
64
|
valueAsDate?: Date;
|
|
62
65
|
valueAsNumber?: number;
|
|
@@ -95,7 +98,7 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
95
98
|
* ## About
|
|
96
99
|
* @package @ktjs/core
|
|
97
100
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
98
|
-
* @version 0.10.
|
|
101
|
+
* @version 0.10.3 (Last Update: 2025.12.31 15:05:46.905)
|
|
99
102
|
* @license MIT
|
|
100
103
|
* @link https://github.com/baendlorel/kt.js
|
|
101
104
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/jsx/jsx-runtime.mjs
CHANGED
|
@@ -201,7 +201,7 @@ function applyContent(element, content) {
|
|
|
201
201
|
* ## About
|
|
202
202
|
* @package @ktjs/core
|
|
203
203
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
204
|
-
* @version 0.10.
|
|
204
|
+
* @version 0.10.3 (Last Update: 2025.12.31 15:05:46.905)
|
|
205
205
|
* @license MIT
|
|
206
206
|
* @link https://github.com/baendlorel/kt.js
|
|
207
207
|
* @link https://baendlorel.github.io/ Welcome to my site!
|