@ktjs/core 0.26.1 → 0.26.4
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 +119 -117
- package/dist/index.iife.js +5 -7
- package/dist/index.legacy.js +5 -7
- package/dist/index.mjs +5 -7
- package/dist/jsx/index.d.ts +117 -118
- package/dist/jsx/index.mjs +2 -7
- package/dist/jsx/jsx-runtime.d.ts +1 -1
- package/dist/jsx/jsx-runtime.mjs +2 -7
- package/package.json +2 -2
package/dist/jsx/jsx-runtime.mjs
CHANGED
|
@@ -81,11 +81,8 @@ if (typeof Symbol === 'undefined') {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
// Shared utilities and cached native methods for kt.js framework
|
|
84
|
-
Object.defineProperty(window, '__ktjs__', { value: '0.
|
|
84
|
+
Object.defineProperty(window, '__ktjs__', { value: '0.23.0' });
|
|
85
85
|
|
|
86
|
-
// export const KT_TYPE_REF = 1 as const;
|
|
87
|
-
// export const KT_TYPE_COMPUTED = 2 as const;
|
|
88
|
-
// export type KTReactiveTypeEnum = typeof KT_TYPE_REF | typeof KT_TYPE_COMPUTED;
|
|
89
86
|
const isKT = (obj) => obj?.isKT;
|
|
90
87
|
const isRef = (obj) => obj?.ktType === 1 /* KTReactiveType.REF */;
|
|
91
88
|
const isComputed = (obj) => obj?.ktType === 2 /* KTReactiveType.COMPUTED */;
|
|
@@ -149,12 +146,10 @@ function attrIsObject(element, attr) {
|
|
|
149
146
|
classValue.addOnChange((v) => element.setAttribute('class', v));
|
|
150
147
|
}
|
|
151
148
|
else {
|
|
152
|
-
// todo 这里要让undefined 排除出reactify类型工具之外
|
|
153
149
|
element.setAttribute('class', classValue);
|
|
154
150
|
}
|
|
155
151
|
}
|
|
156
152
|
// todo 这里加入reactive支持
|
|
157
|
-
// todo 类型定义也要支持reactive响应式
|
|
158
153
|
const style = attr.style;
|
|
159
154
|
if (style) {
|
|
160
155
|
if (typeof style === 'string') {
|
|
@@ -388,7 +383,7 @@ let creator = htmlCreator;
|
|
|
388
383
|
* ## About
|
|
389
384
|
* @package @ktjs/core
|
|
390
385
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
391
|
-
* @version 0.26.
|
|
386
|
+
* @version 0.26.4 (Last Update: 2026.02.05 23:37:34.691)
|
|
392
387
|
* @license MIT
|
|
393
388
|
* @link https://github.com/baendlorel/kt.js
|
|
394
389
|
* @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.26.
|
|
3
|
+
"version": "0.26.4",
|
|
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",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"directory": "packages/core"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@ktjs/shared": "0.
|
|
47
|
+
"@ktjs/shared": "0.23.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "rollup -c rollup.config.mjs",
|