@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 CHANGED
@@ -20,7 +20,12 @@ interface KTRef<T> {
20
20
  value: T;
21
21
  isKT: true;
22
22
  }
23
- declare function ref<T>(value?: T): KTRef<T>;
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.0 (Last Update: 2025.12.30 14:19:29.793)
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, ref };
183
+ export { Fragment, KTAsync, h as createElement, h, jsx, jsxDEV, jsxs, ktref };
179
184
  export type { EventHandler, HTMLTag, KTAttribute, KTRawAttr, KTRawContent, KTRawContents, KTRef, KTRuntime };
@@ -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.0 (Last Update: 2025.12.30 14:19:29.793)
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
- function ref(value) {
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.ref = ref;
343
+ exports.ktref = ktref;
339
344
 
340
345
  return exports;
341
346
 
@@ -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.0 (Last Update: 2025.12.30 14:19:29.793)
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
- function ref(value) {
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.ref = ref;
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.0 (Last Update: 2025.12.30 14:19:29.793)
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
- function ref(value) {
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, ref };
333
+ export { Fragment, KTAsync, h as createElement, h, jsx, jsxDEV, jsxs, ktref };
@@ -9,7 +9,12 @@ interface KTRef<T> {
9
9
  value: T;
10
10
  isKT: true;
11
11
  }
12
- declare function ref<T>(value?: T): KTRef<T>;
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.0 (Last Update: 2025.12.30 14:19:29.793)
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, ref };
153
+ export { Fragment, h as createElement, jsx, jsxDEV, jsxs, ktref };
149
154
  export type { KTRef };
@@ -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.0 (Last Update: 2025.12.30 14:19:29.793)
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
- function ref(value) {
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, ref };
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.0 (Last Update: 2025.12.30 14:19:29.793)
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!
@@ -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.0 (Last Update: 2025.12.30 14:19:29.793)
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!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ktjs/core",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",