@ktjs/core 0.10.3 → 0.11.0
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 +3 -3
- package/dist/index.iife.js +6 -2
- package/dist/index.legacy.js +6 -2
- package/dist/index.mjs +6 -2
- package/dist/jsx/index.d.ts +3 -3
- package/dist/jsx/index.mjs +6 -2
- package/dist/jsx/jsx-runtime.d.ts +3 -3
- package/dist/jsx/jsx-runtime.mjs +6 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ interface KTRef<T> {
|
|
|
27
27
|
*/
|
|
28
28
|
declare function ktref<T = HTMLElement>(value?: T): KTRef<T>;
|
|
29
29
|
|
|
30
|
-
type KTAvailableContent = KTRef<any> | HTMLElement | string | number | undefined;
|
|
30
|
+
type KTAvailableContent = KTRef<any> | HTMLElement | Element | string | number | boolean | null | undefined;
|
|
31
31
|
type KTRawContent =
|
|
32
32
|
| KTAvailableContent[]
|
|
33
33
|
| KTAvailableContent
|
|
@@ -129,12 +129,12 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
129
129
|
* ## About
|
|
130
130
|
* @package @ktjs/core
|
|
131
131
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
132
|
-
* @version 0.
|
|
132
|
+
* @version 0.11.0 (Last Update: 2026.01.14 15:06:22.073)
|
|
133
133
|
* @license MIT
|
|
134
134
|
* @link https://github.com/baendlorel/kt.js
|
|
135
135
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
136
136
|
* @description Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support
|
|
137
|
-
* @copyright Copyright (c)
|
|
137
|
+
* @copyright Copyright (c) 2026 Kasukabe Tsumugi. All rights reserved.
|
|
138
138
|
*/
|
|
139
139
|
declare const h: H;
|
|
140
140
|
|
package/dist/index.iife.js
CHANGED
|
@@ -170,6 +170,10 @@ var __ktjs_core__ = (function (exports) {
|
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
function apdSingle(element, c) {
|
|
173
|
+
// & JSX should ignore false, undefined, and null
|
|
174
|
+
if (c === false || c === undefined || c === null) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
173
177
|
if (typeof c === 'object' && c !== null && 'isKT' in c) {
|
|
174
178
|
$append.call(element, c.value);
|
|
175
179
|
}
|
|
@@ -221,12 +225,12 @@ var __ktjs_core__ = (function (exports) {
|
|
|
221
225
|
* ## About
|
|
222
226
|
* @package @ktjs/core
|
|
223
227
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
224
|
-
* @version 0.
|
|
228
|
+
* @version 0.11.0 (Last Update: 2026.01.14 15:06:22.073)
|
|
225
229
|
* @license MIT
|
|
226
230
|
* @link https://github.com/baendlorel/kt.js
|
|
227
231
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
228
232
|
* @description Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support
|
|
229
|
-
* @copyright Copyright (c)
|
|
233
|
+
* @copyright Copyright (c) 2026 Kasukabe Tsumugi. All rights reserved.
|
|
230
234
|
*/
|
|
231
235
|
const h = ((tag, attr = '', content = '') => {
|
|
232
236
|
if (typeof tag !== 'string') {
|
package/dist/index.legacy.js
CHANGED
|
@@ -183,6 +183,10 @@ var __ktjs_core__ = (function (exports) {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
function apdSingle(element, c) {
|
|
186
|
+
// & JSX should ignore false, undefined, and null
|
|
187
|
+
if (c === false || c === undefined || c === null) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
186
190
|
if (typeof c === 'object' && c !== null && 'isKT' in c) {
|
|
187
191
|
$append.call(element, c.value);
|
|
188
192
|
}
|
|
@@ -237,12 +241,12 @@ var __ktjs_core__ = (function (exports) {
|
|
|
237
241
|
* ## About
|
|
238
242
|
* @package @ktjs/core
|
|
239
243
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
240
|
-
* @version 0.
|
|
244
|
+
* @version 0.11.0 (Last Update: 2026.01.14 15:06:22.073)
|
|
241
245
|
* @license MIT
|
|
242
246
|
* @link https://github.com/baendlorel/kt.js
|
|
243
247
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
244
248
|
* @description Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support
|
|
245
|
-
* @copyright Copyright (c)
|
|
249
|
+
* @copyright Copyright (c) 2026 Kasukabe Tsumugi. All rights reserved.
|
|
246
250
|
*/
|
|
247
251
|
var h = (function (tag, attr, content) {
|
|
248
252
|
if (attr === void 0) { attr = ''; }
|
package/dist/index.mjs
CHANGED
|
@@ -167,6 +167,10 @@ function applyAttr(element, attr) {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
function apdSingle(element, c) {
|
|
170
|
+
// & JSX should ignore false, undefined, and null
|
|
171
|
+
if (c === false || c === undefined || c === null) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
170
174
|
if (typeof c === 'object' && c !== null && 'isKT' in c) {
|
|
171
175
|
$append.call(element, c.value);
|
|
172
176
|
}
|
|
@@ -218,12 +222,12 @@ function applyContent(element, content) {
|
|
|
218
222
|
* ## About
|
|
219
223
|
* @package @ktjs/core
|
|
220
224
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
221
|
-
* @version 0.
|
|
225
|
+
* @version 0.11.0 (Last Update: 2026.01.14 15:06:22.073)
|
|
222
226
|
* @license MIT
|
|
223
227
|
* @link https://github.com/baendlorel/kt.js
|
|
224
228
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
225
229
|
* @description Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support
|
|
226
|
-
* @copyright Copyright (c)
|
|
230
|
+
* @copyright Copyright (c) 2026 Kasukabe Tsumugi. All rights reserved.
|
|
227
231
|
*/
|
|
228
232
|
const h = ((tag, attr = '', content = '') => {
|
|
229
233
|
if (typeof tag !== 'string') {
|
package/dist/jsx/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface KTRef<T> {
|
|
|
16
16
|
*/
|
|
17
17
|
declare function ktref<T = HTMLElement>(value?: T): KTRef<T>;
|
|
18
18
|
|
|
19
|
-
type KTAvailableContent = KTRef<any> | HTMLElement | string | number | undefined;
|
|
19
|
+
type KTAvailableContent = KTRef<any> | HTMLElement | Element | string | number | boolean | null | undefined;
|
|
20
20
|
type KTRawContent =
|
|
21
21
|
| KTAvailableContent[]
|
|
22
22
|
| KTAvailableContent
|
|
@@ -104,12 +104,12 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
104
104
|
* ## About
|
|
105
105
|
* @package @ktjs/core
|
|
106
106
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
107
|
-
* @version 0.
|
|
107
|
+
* @version 0.11.0 (Last Update: 2026.01.14 15:06:22.073)
|
|
108
108
|
* @license MIT
|
|
109
109
|
* @link https://github.com/baendlorel/kt.js
|
|
110
110
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
111
111
|
* @description Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support
|
|
112
|
-
* @copyright Copyright (c)
|
|
112
|
+
* @copyright Copyright (c) 2026 Kasukabe Tsumugi. All rights reserved.
|
|
113
113
|
*/
|
|
114
114
|
declare const h: H;
|
|
115
115
|
|
package/dist/jsx/index.mjs
CHANGED
|
@@ -150,6 +150,10 @@ function applyAttr(element, attr) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
function apdSingle(element, c) {
|
|
153
|
+
// & JSX should ignore false, undefined, and null
|
|
154
|
+
if (c === false || c === undefined || c === null) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
153
157
|
if (typeof c === 'object' && c !== null && 'isKT' in c) {
|
|
154
158
|
$append.call(element, c.value);
|
|
155
159
|
}
|
|
@@ -201,12 +205,12 @@ function applyContent(element, content) {
|
|
|
201
205
|
* ## About
|
|
202
206
|
* @package @ktjs/core
|
|
203
207
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
204
|
-
* @version 0.
|
|
208
|
+
* @version 0.11.0 (Last Update: 2026.01.14 15:06:22.073)
|
|
205
209
|
* @license MIT
|
|
206
210
|
* @link https://github.com/baendlorel/kt.js
|
|
207
211
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
208
212
|
* @description Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support
|
|
209
|
-
* @copyright Copyright (c)
|
|
213
|
+
* @copyright Copyright (c) 2026 Kasukabe Tsumugi. All rights reserved.
|
|
210
214
|
*/
|
|
211
215
|
const h = ((tag, attr = '', content = '') => {
|
|
212
216
|
if (typeof tag !== 'string') {
|
|
@@ -10,7 +10,7 @@ interface KTRef<T> {
|
|
|
10
10
|
isKT: true;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
type KTAvailableContent = KTRef<any> | HTMLElement | string | number | undefined;
|
|
13
|
+
type KTAvailableContent = KTRef<any> | HTMLElement | Element | string | number | boolean | null | undefined;
|
|
14
14
|
type KTRawContent =
|
|
15
15
|
| KTAvailableContent[]
|
|
16
16
|
| KTAvailableContent
|
|
@@ -98,12 +98,12 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
98
98
|
* ## About
|
|
99
99
|
* @package @ktjs/core
|
|
100
100
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
101
|
-
* @version 0.
|
|
101
|
+
* @version 0.11.0 (Last Update: 2026.01.14 15:06:22.073)
|
|
102
102
|
* @license MIT
|
|
103
103
|
* @link https://github.com/baendlorel/kt.js
|
|
104
104
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
105
105
|
* @description Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support
|
|
106
|
-
* @copyright Copyright (c)
|
|
106
|
+
* @copyright Copyright (c) 2026 Kasukabe Tsumugi. All rights reserved.
|
|
107
107
|
*/
|
|
108
108
|
declare const h: H;
|
|
109
109
|
|
package/dist/jsx/jsx-runtime.mjs
CHANGED
|
@@ -150,6 +150,10 @@ function applyAttr(element, attr) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
function apdSingle(element, c) {
|
|
153
|
+
// & JSX should ignore false, undefined, and null
|
|
154
|
+
if (c === false || c === undefined || c === null) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
153
157
|
if (typeof c === 'object' && c !== null && 'isKT' in c) {
|
|
154
158
|
$append.call(element, c.value);
|
|
155
159
|
}
|
|
@@ -201,12 +205,12 @@ function applyContent(element, content) {
|
|
|
201
205
|
* ## About
|
|
202
206
|
* @package @ktjs/core
|
|
203
207
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
204
|
-
* @version 0.
|
|
208
|
+
* @version 0.11.0 (Last Update: 2026.01.14 15:06:22.073)
|
|
205
209
|
* @license MIT
|
|
206
210
|
* @link https://github.com/baendlorel/kt.js
|
|
207
211
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
208
212
|
* @description Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support
|
|
209
|
-
* @copyright Copyright (c)
|
|
213
|
+
* @copyright Copyright (c) 2026 Kasukabe Tsumugi. All rights reserved.
|
|
210
214
|
*/
|
|
211
215
|
const h = ((tag, attr = '', content = '') => {
|
|
212
216
|
if (typeof tag !== 'string') {
|