kt.js 0.8.2 → 0.8.3
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/jsx-runtime.mjs +4 -14
- package/package.json +2 -2
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -155,21 +155,11 @@ function applyAttr(element, attr) {
|
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
const noop = () => ({});
|
|
159
|
-
class Ref {
|
|
160
|
-
value;
|
|
161
|
-
update;
|
|
162
|
-
constructor(value) {
|
|
163
|
-
this.value = value;
|
|
164
|
-
this.update = noop;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
158
|
function applyContent(element, content) {
|
|
169
159
|
if ($isArray(content)) {
|
|
170
160
|
for (let i = 0; i < content.length; i++) {
|
|
171
161
|
let c = content[i];
|
|
172
|
-
if (c
|
|
162
|
+
if (c && c.isRef) {
|
|
173
163
|
$append.call(element, c.value);
|
|
174
164
|
}
|
|
175
165
|
else {
|
|
@@ -178,7 +168,7 @@ function applyContent(element, content) {
|
|
|
178
168
|
}
|
|
179
169
|
}
|
|
180
170
|
else {
|
|
181
|
-
if (content
|
|
171
|
+
if (content && content.isRef) {
|
|
182
172
|
$append.call(element, content.value);
|
|
183
173
|
}
|
|
184
174
|
else {
|
|
@@ -197,7 +187,7 @@ function applyContent(element, content) {
|
|
|
197
187
|
* ## About
|
|
198
188
|
* @package @ktjs/core
|
|
199
189
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
200
|
-
* @version 0.8.
|
|
190
|
+
* @version 0.8.3 (Last Update: 2025.12.25 11:27:17.924)
|
|
201
191
|
* @license MIT
|
|
202
192
|
* @link https://github.com/baendlorel/kt.js
|
|
203
193
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
@@ -230,7 +220,7 @@ function jsx(tag, props, ..._metadata) {
|
|
|
230
220
|
const children = propObj.children;
|
|
231
221
|
delete propObj.children;
|
|
232
222
|
// deal with ref attribute
|
|
233
|
-
const ref =
|
|
223
|
+
const ref = propObj.ref?.isRef ? propObj.ref : null;
|
|
234
224
|
if (ref) {
|
|
235
225
|
delete propObj.ref;
|
|
236
226
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kt.js",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Kasukabe Tsumugi",
|
|
6
6
|
"email": "futami16237@gmail.com"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
],
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@ktjs/core": "0.8.
|
|
44
|
+
"@ktjs/core": "0.8.3",
|
|
45
45
|
"@ktjs/shortcuts": "0.7.3"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|