@ktjs/core 0.10.0 → 0.10.1
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 +8 -3
- package/dist/index.iife.js +8 -3
- package/dist/index.legacy.js +8 -3
- package/dist/index.mjs +8 -3
- package/dist/jsx/index.d.ts +8 -3
- package/dist/jsx/index.mjs +8 -3
- package/dist/jsx/jsx-runtime.d.ts +1 -1
- package/dist/jsx/jsx-runtime.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,12 @@ interface KTRef<T> {
|
|
|
20
20
|
value: T;
|
|
21
21
|
isKT: true;
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Reference to the created HTML element.
|
|
25
|
+
* - can alse be used to store normal values, but it is not reactive.
|
|
26
|
+
* @param value mostly an HTMLElement
|
|
27
|
+
*/
|
|
28
|
+
declare function ktref<T = HTMLElement>(value?: T): KTRef<T>;
|
|
24
29
|
|
|
25
30
|
type KTAvailableContent = KTRef<any> | HTMLElement | string | number | undefined;
|
|
26
31
|
type KTRawContent =
|
|
@@ -118,7 +123,7 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
118
123
|
* ## About
|
|
119
124
|
* @package @ktjs/core
|
|
120
125
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
121
|
-
* @version 0.10.
|
|
126
|
+
* @version 0.10.1 (Last Update: 2025.12.30 14:45:59.803)
|
|
122
127
|
* @license MIT
|
|
123
128
|
* @link https://github.com/baendlorel/kt.js
|
|
124
129
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -175,5 +180,5 @@ declare function KTAsync(props: {
|
|
|
175
180
|
children?: KTRawContent;
|
|
176
181
|
}): HTMLElement;
|
|
177
182
|
|
|
178
|
-
export { Fragment, KTAsync, h as createElement, h, jsx, jsxDEV, jsxs,
|
|
183
|
+
export { Fragment, KTAsync, h as createElement, h, jsx, jsxDEV, jsxs, ktref };
|
|
179
184
|
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.1 (Last Update: 2025.12.30 14:45:59.803)
|
|
225
225
|
* @license MIT
|
|
226
226
|
* @link https://github.com/baendlorel/kt.js
|
|
227
227
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -312,7 +312,12 @@ var __ktjs_core__ = (function (exports) {
|
|
|
312
312
|
*/
|
|
313
313
|
const jsxs = jsx;
|
|
314
314
|
|
|
315
|
-
|
|
315
|
+
/**
|
|
316
|
+
* Reference to the created HTML element.
|
|
317
|
+
* - can alse be used to store normal values, but it is not reactive.
|
|
318
|
+
* @param value mostly an HTMLElement
|
|
319
|
+
*/
|
|
320
|
+
function ktref(value) {
|
|
316
321
|
return { value: value, isKT: true };
|
|
317
322
|
}
|
|
318
323
|
|
|
@@ -335,7 +340,7 @@ var __ktjs_core__ = (function (exports) {
|
|
|
335
340
|
exports.jsx = jsx;
|
|
336
341
|
exports.jsxDEV = jsxDEV;
|
|
337
342
|
exports.jsxs = jsxs;
|
|
338
|
-
exports.
|
|
343
|
+
exports.ktref = ktref;
|
|
339
344
|
|
|
340
345
|
return exports;
|
|
341
346
|
|
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.1 (Last Update: 2025.12.30 14:45:59.803)
|
|
241
241
|
* @license MIT
|
|
242
242
|
* @link https://github.com/baendlorel/kt.js
|
|
243
243
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -368,7 +368,12 @@ var __ktjs_core__ = (function (exports) {
|
|
|
368
368
|
*/
|
|
369
369
|
var jsxs = jsx;
|
|
370
370
|
|
|
371
|
-
|
|
371
|
+
/**
|
|
372
|
+
* Reference to the created HTML element.
|
|
373
|
+
* - can alse be used to store normal values, but it is not reactive.
|
|
374
|
+
* @param value mostly an HTMLElement
|
|
375
|
+
*/
|
|
376
|
+
function ktref(value) {
|
|
372
377
|
return { value: value, isKT: true };
|
|
373
378
|
}
|
|
374
379
|
|
|
@@ -391,7 +396,7 @@ var __ktjs_core__ = (function (exports) {
|
|
|
391
396
|
exports.jsx = jsx;
|
|
392
397
|
exports.jsxDEV = jsxDEV;
|
|
393
398
|
exports.jsxs = jsxs;
|
|
394
|
-
exports.
|
|
399
|
+
exports.ktref = ktref;
|
|
395
400
|
|
|
396
401
|
return exports;
|
|
397
402
|
|
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.1 (Last Update: 2025.12.30 14:45:59.803)
|
|
222
222
|
* @license MIT
|
|
223
223
|
* @link https://github.com/baendlorel/kt.js
|
|
224
224
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -309,7 +309,12 @@ const jsxDEV = (...args) => {
|
|
|
309
309
|
*/
|
|
310
310
|
const jsxs = jsx;
|
|
311
311
|
|
|
312
|
-
|
|
312
|
+
/**
|
|
313
|
+
* Reference to the created HTML element.
|
|
314
|
+
* - can alse be used to store normal values, but it is not reactive.
|
|
315
|
+
* @param value mostly an HTMLElement
|
|
316
|
+
*/
|
|
317
|
+
function ktref(value) {
|
|
313
318
|
return { value: value, isKT: true };
|
|
314
319
|
}
|
|
315
320
|
|
|
@@ -325,4 +330,4 @@ function KTAsync(props) {
|
|
|
325
330
|
return comp;
|
|
326
331
|
}
|
|
327
332
|
|
|
328
|
-
export { Fragment, KTAsync, h as createElement, h, jsx, jsxDEV, jsxs,
|
|
333
|
+
export { Fragment, KTAsync, h as createElement, h, jsx, jsxDEV, jsxs, ktref };
|
package/dist/jsx/index.d.ts
CHANGED
|
@@ -9,7 +9,12 @@ interface KTRef<T> {
|
|
|
9
9
|
value: T;
|
|
10
10
|
isKT: true;
|
|
11
11
|
}
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Reference to the created HTML element.
|
|
14
|
+
* - can alse be used to store normal values, but it is not reactive.
|
|
15
|
+
* @param value mostly an HTMLElement
|
|
16
|
+
*/
|
|
17
|
+
declare function ktref<T = HTMLElement>(value?: T): KTRef<T>;
|
|
13
18
|
|
|
14
19
|
type KTAvailableContent = KTRef<any> | HTMLElement | string | number | undefined;
|
|
15
20
|
type KTRawContent =
|
|
@@ -94,7 +99,7 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
94
99
|
* ## About
|
|
95
100
|
* @package @ktjs/core
|
|
96
101
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
97
|
-
* @version 0.10.
|
|
102
|
+
* @version 0.10.1 (Last Update: 2025.12.30 14:45:59.803)
|
|
98
103
|
* @license MIT
|
|
99
104
|
* @link https://github.com/baendlorel/kt.js
|
|
100
105
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -145,5 +150,5 @@ declare global {
|
|
|
145
150
|
}
|
|
146
151
|
}
|
|
147
152
|
|
|
148
|
-
export { Fragment, h as createElement, jsx, jsxDEV, jsxs,
|
|
153
|
+
export { Fragment, h as createElement, jsx, jsxDEV, jsxs, ktref };
|
|
149
154
|
export type { KTRef };
|
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.1 (Last Update: 2025.12.30 14:45:59.803)
|
|
205
205
|
* @license MIT
|
|
206
206
|
* @link https://github.com/baendlorel/kt.js
|
|
207
207
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -292,8 +292,13 @@ const jsxDEV = (...args) => {
|
|
|
292
292
|
*/
|
|
293
293
|
const jsxs = jsx;
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
/**
|
|
296
|
+
* Reference to the created HTML element.
|
|
297
|
+
* - can alse be used to store normal values, but it is not reactive.
|
|
298
|
+
* @param value mostly an HTMLElement
|
|
299
|
+
*/
|
|
300
|
+
function ktref(value) {
|
|
296
301
|
return { value: value, isKT: true };
|
|
297
302
|
}
|
|
298
303
|
|
|
299
|
-
export { Fragment, h as createElement, jsx, jsxDEV, jsxs,
|
|
304
|
+
export { Fragment, h as createElement, jsx, jsxDEV, jsxs, ktref };
|
|
@@ -93,7 +93,7 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
93
93
|
* ## About
|
|
94
94
|
* @package @ktjs/core
|
|
95
95
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
96
|
-
* @version 0.10.
|
|
96
|
+
* @version 0.10.1 (Last Update: 2025.12.30 14:45:59.803)
|
|
97
97
|
* @license MIT
|
|
98
98
|
* @link https://github.com/baendlorel/kt.js
|
|
99
99
|
* @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.1 (Last Update: 2025.12.30 14:45:59.803)
|
|
205
205
|
* @license MIT
|
|
206
206
|
* @link https://github.com/baendlorel/kt.js
|
|
207
207
|
* @link https://baendlorel.github.io/ Welcome to my site!
|