@ktjs/core 0.29.5 → 0.29.7

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +11 -17
  2. 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
- declare type HTMLJSXTag = HTMLTag | ((props?: any) => HTMLElement) | ((props?: any) => Promise<HTMLElement>);
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 declare type InputElementTag = 'input' | 'select' | 'textarea';
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
- declare type MathMLJSXTag = HTMLTag | ((props?: any) => MathMLElement) | ((props?: any) => Promise<MathMLElement>);
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
- declare type SVGJSXTag = HTMLTag | ((props?: any) => SVGElement) | ((props?: any) => Promise<SVGElement>);
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.5",
3
+ "version": "0.29.7",
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.15"
47
+ "@ktjs/shared": "^*"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "rollup -c rollup.config.mjs",