@ktjs/core 0.14.5 → 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 CHANGED
@@ -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.5 (Last Update: 2026.01.17 09:00:04.049)
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!
@@ -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.5 (Last Update: 2026.01.17 09:00:04.049)
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!
@@ -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.5 (Last Update: 2026.01.17 09:00:04.049)
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.5 (Last Update: 2026.01.17 09:00:04.049)
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!
@@ -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.5 (Last Update: 2026.01.17 09:00:04.049)
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!
@@ -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.5 (Last Update: 2026.01.17 09:00:04.049)
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!
@@ -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.5 (Last Update: 2026.01.17 09:00:04.049)
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!
@@ -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.5 (Last Update: 2026.01.17 09:00:04.049)
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ktjs/core",
3
- "version": "0.14.5",
3
+ "version": "0.14.6",
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",