@ktjs/core 0.29.4 → 0.29.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 +11 -17
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { HTMLTag } from '@ktjs/shared';
|
|
2
|
+
import { InputElementTag } from '@ktjs/shared';
|
|
3
|
+
import { JSXTag } from '@ktjs/shared';
|
|
4
|
+
import { MathMLTag } from '@ktjs/shared';
|
|
5
|
+
import { otherstring } from '@ktjs/shared';
|
|
6
|
+
import { SVGTag } from '@ktjs/shared';
|
|
7
|
+
|
|
1
8
|
/**
|
|
2
9
|
* Whether `props.ref` is a `KTRef` only needs to be checked in the initial render
|
|
3
10
|
*/
|
|
@@ -88,14 +95,9 @@ declare type HTML<T extends (HTMLTag | SVGTag | MathMLTag) & otherstring> = T ex
|
|
|
88
95
|
? MathMLElementTagNameMap[T]
|
|
89
96
|
: HTMLElement;
|
|
90
97
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Normal HTML tags like `div`, `span`, `a`, etc.
|
|
95
|
-
*/
|
|
96
|
-
export declare type HTMLTag = keyof HTMLElementTagNameMap;
|
|
98
|
+
export { HTMLTag }
|
|
97
99
|
|
|
98
|
-
export
|
|
100
|
+
export { InputElementTag }
|
|
99
101
|
|
|
100
102
|
export declare const isComputed: <T = any>(obj: any) => obj is KTComputed<T>;
|
|
101
103
|
|
|
@@ -120,8 +122,6 @@ export declare const jsxDEV: typeof jsx;
|
|
|
120
122
|
*/
|
|
121
123
|
export declare const jsxs: typeof jsx;
|
|
122
124
|
|
|
123
|
-
declare type JSXTag = HTMLJSXTag | SVGJSXTag | MathMLJSXTag;
|
|
124
|
-
|
|
125
125
|
export declare function KTAsync<T extends KTComponent>(props: {
|
|
126
126
|
ref?: KTRef<JSX.Element>;
|
|
127
127
|
skeleton?: JSX.Element;
|
|
@@ -387,11 +387,7 @@ export declare type KTSurfaceRef<T extends object> = {
|
|
|
387
387
|
kcollect: () => T;
|
|
388
388
|
};
|
|
389
389
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
export declare type MathMLTag = keyof MathMLElementTagNameMap;
|
|
393
|
-
|
|
394
|
-
declare type otherstring = string & {};
|
|
390
|
+
export { MathMLTag }
|
|
395
391
|
|
|
396
392
|
export declare type ReactiveChangeHandler<T> = (newValue: T, oldValue: T) => void;
|
|
397
393
|
|
|
@@ -416,9 +412,7 @@ declare type SingleContent = KTRef<any> | HTMLElement | Element | Node | string
|
|
|
416
412
|
*/
|
|
417
413
|
export declare const surfaceRef: <T extends object>(obj: T) => KTSurfaceRef<T>;
|
|
418
414
|
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
export declare type SVGTag = keyof SVGElementTagNameMap;
|
|
415
|
+
export { SVGTag }
|
|
422
416
|
|
|
423
417
|
export declare const toReactive: <T>(value: T | KTReactive<T>, onChange?: ReactiveChangeHandler<T>) => KTReactive<T>;
|
|
424
418
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ktjs/core",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.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",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"directory": "packages/core"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@ktjs/shared": "0.23.
|
|
47
|
+
"@ktjs/shared": "0.23.16"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "rollup -c rollup.config.mjs",
|