@ktjs/core 0.14.4 → 0.14.6
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 +2 -2
- package/dist/index.iife.js +4 -9
- package/dist/index.legacy.js +4 -9
- package/dist/index.mjs +4 -9
- package/dist/jsx/index.d.ts +2 -2
- package/dist/jsx/index.mjs +4 -9
- package/dist/jsx/jsx-runtime.d.ts +2 -2
- package/dist/jsx/jsx-runtime.mjs +4 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ declare global {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
type SingleContent = KTRef<any> | HTMLElement | Element | string | number | boolean | null | undefined;
|
|
47
|
-
type KTAvailableContent = SingleContent |
|
|
47
|
+
type KTAvailableContent = SingleContent | KTAvailableContent[];
|
|
48
48
|
type KTRawContent = KTAvailableContent | Promise<KTAvailableContent>;
|
|
49
49
|
type KTRawAttr = KTAttribute | string;
|
|
50
50
|
type KTRawContents = KTAvailableContent;
|
|
@@ -153,7 +153,7 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
153
153
|
* ## About
|
|
154
154
|
* @package @ktjs/core
|
|
155
155
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
156
|
-
* @version 0.14.
|
|
156
|
+
* @version 0.14.6 (Last Update: 2026.01.17 11:35:33.824)
|
|
157
157
|
* @license MIT
|
|
158
158
|
* @link https://github.com/baendlorel/kt.js
|
|
159
159
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/index.iife.js
CHANGED
|
@@ -66,7 +66,6 @@ var __ktjs_core__ = (function (exports) {
|
|
|
66
66
|
const style = attr.style;
|
|
67
67
|
if (classValue !== undefined) {
|
|
68
68
|
element.className = classValue;
|
|
69
|
-
delete attr.class;
|
|
70
69
|
}
|
|
71
70
|
if (style) {
|
|
72
71
|
if (typeof style === 'string') {
|
|
@@ -77,9 +76,11 @@ var __ktjs_core__ = (function (exports) {
|
|
|
77
76
|
element.style[key] = style[key];
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
|
-
delete attr.style;
|
|
81
79
|
}
|
|
82
80
|
for (const key in attr) {
|
|
81
|
+
if (key === 'class' || key === 'style' || key === 'k-if') {
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
83
84
|
const o = attr[key];
|
|
84
85
|
// force register on:xxx as an event handler
|
|
85
86
|
// !if o is not valid, the throwing job will be done by `on`, not kt.js
|
|
@@ -101,12 +102,6 @@ var __ktjs_core__ = (function (exports) {
|
|
|
101
102
|
(handlers[key] || defaultHandler)(element, key, o);
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
if (classValue !== undefined) {
|
|
105
|
-
attr.class = classValue;
|
|
106
|
-
}
|
|
107
|
-
if (style !== undefined) {
|
|
108
|
-
attr.style = style;
|
|
109
|
-
}
|
|
110
105
|
return true;
|
|
111
106
|
}
|
|
112
107
|
function applyAttr(element, attr) {
|
|
@@ -223,7 +218,7 @@ var __ktjs_core__ = (function (exports) {
|
|
|
223
218
|
* ## About
|
|
224
219
|
* @package @ktjs/core
|
|
225
220
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
226
|
-
* @version 0.14.
|
|
221
|
+
* @version 0.14.6 (Last Update: 2026.01.17 11:35:33.824)
|
|
227
222
|
* @license MIT
|
|
228
223
|
* @link https://github.com/baendlorel/kt.js
|
|
229
224
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/index.legacy.js
CHANGED
|
@@ -78,7 +78,6 @@ var __ktjs_core__ = (function (exports) {
|
|
|
78
78
|
var style = attr.style;
|
|
79
79
|
if (classValue !== undefined) {
|
|
80
80
|
element.className = classValue;
|
|
81
|
-
delete attr.class;
|
|
82
81
|
}
|
|
83
82
|
if (style) {
|
|
84
83
|
if (typeof style === 'string') {
|
|
@@ -89,9 +88,11 @@ var __ktjs_core__ = (function (exports) {
|
|
|
89
88
|
element.style[key] = style[key];
|
|
90
89
|
}
|
|
91
90
|
}
|
|
92
|
-
delete attr.style;
|
|
93
91
|
}
|
|
94
92
|
for (var key in attr) {
|
|
93
|
+
if (key === 'class' || key === 'style' || key === 'k-if') {
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
95
96
|
var o = attr[key];
|
|
96
97
|
// force register on:xxx as an event handler
|
|
97
98
|
// !if o is not valid, the throwing job will be done by `on`, not kt.js
|
|
@@ -113,12 +114,6 @@ var __ktjs_core__ = (function (exports) {
|
|
|
113
114
|
(handlers[key] || defaultHandler)(element, key, o);
|
|
114
115
|
}
|
|
115
116
|
}
|
|
116
|
-
if (classValue !== undefined) {
|
|
117
|
-
attr.class = classValue;
|
|
118
|
-
}
|
|
119
|
-
if (style !== undefined) {
|
|
120
|
-
attr.style = style;
|
|
121
|
-
}
|
|
122
117
|
return true;
|
|
123
118
|
}
|
|
124
119
|
function applyAttr(element, attr) {
|
|
@@ -248,7 +243,7 @@ var __ktjs_core__ = (function (exports) {
|
|
|
248
243
|
* ## About
|
|
249
244
|
* @package @ktjs/core
|
|
250
245
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
251
|
-
* @version 0.14.
|
|
246
|
+
* @version 0.14.6 (Last Update: 2026.01.17 11:35:33.824)
|
|
252
247
|
* @license MIT
|
|
253
248
|
* @link https://github.com/baendlorel/kt.js
|
|
254
249
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/index.mjs
CHANGED
|
@@ -63,7 +63,6 @@ function attrIsObject(element, attr) {
|
|
|
63
63
|
const style = attr.style;
|
|
64
64
|
if (classValue !== undefined) {
|
|
65
65
|
element.className = classValue;
|
|
66
|
-
delete attr.class;
|
|
67
66
|
}
|
|
68
67
|
if (style) {
|
|
69
68
|
if (typeof style === 'string') {
|
|
@@ -74,9 +73,11 @@ function attrIsObject(element, attr) {
|
|
|
74
73
|
element.style[key] = style[key];
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
|
-
delete attr.style;
|
|
78
76
|
}
|
|
79
77
|
for (const key in attr) {
|
|
78
|
+
if (key === 'class' || key === 'style' || key === 'k-if') {
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
80
81
|
const o = attr[key];
|
|
81
82
|
// force register on:xxx as an event handler
|
|
82
83
|
// !if o is not valid, the throwing job will be done by `on`, not kt.js
|
|
@@ -98,12 +99,6 @@ function attrIsObject(element, attr) {
|
|
|
98
99
|
(handlers[key] || defaultHandler)(element, key, o);
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
if (classValue !== undefined) {
|
|
102
|
-
attr.class = classValue;
|
|
103
|
-
}
|
|
104
|
-
if (style !== undefined) {
|
|
105
|
-
attr.style = style;
|
|
106
|
-
}
|
|
107
102
|
return true;
|
|
108
103
|
}
|
|
109
104
|
function applyAttr(element, attr) {
|
|
@@ -220,7 +215,7 @@ function applyContent(element, content) {
|
|
|
220
215
|
* ## About
|
|
221
216
|
* @package @ktjs/core
|
|
222
217
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
223
|
-
* @version 0.14.
|
|
218
|
+
* @version 0.14.6 (Last Update: 2026.01.17 11:35:33.824)
|
|
224
219
|
* @license MIT
|
|
225
220
|
* @link https://github.com/baendlorel/kt.js
|
|
226
221
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/jsx/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ declare global {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
type SingleContent = KTRef<any> | HTMLElement | Element | string | number | boolean | null | undefined;
|
|
47
|
-
type KTAvailableContent = SingleContent |
|
|
47
|
+
type KTAvailableContent = SingleContent | KTAvailableContent[];
|
|
48
48
|
type KTRawContent = KTAvailableContent | Promise<KTAvailableContent>;
|
|
49
49
|
type KTRawAttr = KTAttribute | string;
|
|
50
50
|
|
|
@@ -139,7 +139,7 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
139
139
|
* ## About
|
|
140
140
|
* @package @ktjs/core
|
|
141
141
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
142
|
-
* @version 0.14.
|
|
142
|
+
* @version 0.14.6 (Last Update: 2026.01.17 11:35:33.824)
|
|
143
143
|
* @license MIT
|
|
144
144
|
* @link https://github.com/baendlorel/kt.js
|
|
145
145
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/jsx/index.mjs
CHANGED
|
@@ -63,7 +63,6 @@ function attrIsObject(element, attr) {
|
|
|
63
63
|
const style = attr.style;
|
|
64
64
|
if (classValue !== undefined) {
|
|
65
65
|
element.className = classValue;
|
|
66
|
-
delete attr.class;
|
|
67
66
|
}
|
|
68
67
|
if (style) {
|
|
69
68
|
if (typeof style === 'string') {
|
|
@@ -74,9 +73,11 @@ function attrIsObject(element, attr) {
|
|
|
74
73
|
element.style[key] = style[key];
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
|
-
delete attr.style;
|
|
78
76
|
}
|
|
79
77
|
for (const key in attr) {
|
|
78
|
+
if (key === 'class' || key === 'style' || key === 'k-if') {
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
80
81
|
const o = attr[key];
|
|
81
82
|
// force register on:xxx as an event handler
|
|
82
83
|
// !if o is not valid, the throwing job will be done by `on`, not kt.js
|
|
@@ -98,12 +99,6 @@ function attrIsObject(element, attr) {
|
|
|
98
99
|
(handlers[key] || defaultHandler)(element, key, o);
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
if (classValue !== undefined) {
|
|
102
|
-
attr.class = classValue;
|
|
103
|
-
}
|
|
104
|
-
if (style !== undefined) {
|
|
105
|
-
attr.style = style;
|
|
106
|
-
}
|
|
107
102
|
return true;
|
|
108
103
|
}
|
|
109
104
|
function applyAttr(element, attr) {
|
|
@@ -220,7 +215,7 @@ function applyContent(element, content) {
|
|
|
220
215
|
* ## About
|
|
221
216
|
* @package @ktjs/core
|
|
222
217
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
223
|
-
* @version 0.14.
|
|
218
|
+
* @version 0.14.6 (Last Update: 2026.01.17 11:35:33.824)
|
|
224
219
|
* @license MIT
|
|
225
220
|
* @link https://github.com/baendlorel/kt.js
|
|
226
221
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -38,7 +38,7 @@ declare global {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
type SingleContent = KTRef<any> | HTMLElement | Element | string | number | boolean | null | undefined;
|
|
41
|
-
type KTAvailableContent = SingleContent |
|
|
41
|
+
type KTAvailableContent = SingleContent | KTAvailableContent[];
|
|
42
42
|
type KTRawContent = KTAvailableContent | Promise<KTAvailableContent>;
|
|
43
43
|
type KTRawAttr = KTAttribute | string;
|
|
44
44
|
|
|
@@ -133,7 +133,7 @@ type H = (<T extends HTMLTag>(tag: T, attr?: KTRawAttr, content?: KTRawContent)
|
|
|
133
133
|
* ## About
|
|
134
134
|
* @package @ktjs/core
|
|
135
135
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
136
|
-
* @version 0.14.
|
|
136
|
+
* @version 0.14.6 (Last Update: 2026.01.17 11:35:33.824)
|
|
137
137
|
* @license MIT
|
|
138
138
|
* @link https://github.com/baendlorel/kt.js
|
|
139
139
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
package/dist/jsx/jsx-runtime.mjs
CHANGED
|
@@ -63,7 +63,6 @@ function attrIsObject(element, attr) {
|
|
|
63
63
|
const style = attr.style;
|
|
64
64
|
if (classValue !== undefined) {
|
|
65
65
|
element.className = classValue;
|
|
66
|
-
delete attr.class;
|
|
67
66
|
}
|
|
68
67
|
if (style) {
|
|
69
68
|
if (typeof style === 'string') {
|
|
@@ -74,9 +73,11 @@ function attrIsObject(element, attr) {
|
|
|
74
73
|
element.style[key] = style[key];
|
|
75
74
|
}
|
|
76
75
|
}
|
|
77
|
-
delete attr.style;
|
|
78
76
|
}
|
|
79
77
|
for (const key in attr) {
|
|
78
|
+
if (key === 'class' || key === 'style' || key === 'k-if') {
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
80
81
|
const o = attr[key];
|
|
81
82
|
// force register on:xxx as an event handler
|
|
82
83
|
// !if o is not valid, the throwing job will be done by `on`, not kt.js
|
|
@@ -98,12 +99,6 @@ function attrIsObject(element, attr) {
|
|
|
98
99
|
(handlers[key] || defaultHandler)(element, key, o);
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
if (classValue !== undefined) {
|
|
102
|
-
attr.class = classValue;
|
|
103
|
-
}
|
|
104
|
-
if (style !== undefined) {
|
|
105
|
-
attr.style = style;
|
|
106
|
-
}
|
|
107
102
|
return true;
|
|
108
103
|
}
|
|
109
104
|
function applyAttr(element, attr) {
|
|
@@ -220,7 +215,7 @@ function applyContent(element, content) {
|
|
|
220
215
|
* ## About
|
|
221
216
|
* @package @ktjs/core
|
|
222
217
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
223
|
-
* @version 0.14.
|
|
218
|
+
* @version 0.14.6 (Last Update: 2026.01.17 11:35:33.824)
|
|
224
219
|
* @license MIT
|
|
225
220
|
* @link https://github.com/baendlorel/kt.js
|
|
226
221
|
* @link https://baendlorel.github.io/ Welcome to my site!
|