@viewfly/core 0.0.5 → 0.0.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/bundles/public-api.d.ts +1 -1
- package/bundles/types.d.ts +18 -0
- package/jsx-runtime/index.d.ts +12 -3
- package/package.json +2 -2
- package/bundles/jsx.d.ts +0 -14
package/bundles/public-api.d.ts
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Key, Ref, JSXComponent } from '@viewfly/core';
|
|
2
|
+
export declare namespace ViewTypes {
|
|
3
|
+
type ClassNames = string | Record<string, unknown> | Array<string | Record<string, unknown>>;
|
|
4
|
+
interface IntrinsicAttributes {
|
|
5
|
+
key?: Key;
|
|
6
|
+
}
|
|
7
|
+
interface RefAttributes<T extends object> extends IntrinsicAttributes {
|
|
8
|
+
ref?: Ref<T> | Ref<T>[];
|
|
9
|
+
}
|
|
10
|
+
interface ElementClass extends JSXComponent {
|
|
11
|
+
}
|
|
12
|
+
interface ElementChildrenAttribute {
|
|
13
|
+
}
|
|
14
|
+
interface IntrinsicElements {
|
|
15
|
+
}
|
|
16
|
+
interface IntrinsicClassAttributes<T> extends IntrinsicAttributes {
|
|
17
|
+
}
|
|
18
|
+
}
|
package/jsx-runtime/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { jsx, jsxs, Fragment, ViewTypes } from '@viewfly/core'
|
|
2
2
|
import type { NativeElements } from '@viewfly/platform-browser'
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -10,9 +10,18 @@ import type { NativeElements } from '@viewfly/platform-browser'
|
|
|
10
10
|
export { jsx, jsxs, Fragment }
|
|
11
11
|
|
|
12
12
|
export namespace JSX {
|
|
13
|
-
export interface ElementClass extends
|
|
13
|
+
export interface ElementClass extends ViewTypes.ElementClass {
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export interface IntrinsicElements extends NativeElements {
|
|
16
|
+
export interface IntrinsicElements extends NativeElements, ViewTypes.IntrinsicElements {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IntrinsicAttributes extends ViewTypes.IntrinsicAttributes {
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ElementChildrenAttribute extends ViewTypes.ElementChildrenAttribute {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IntrinsicClassAttributes<T> extends ViewTypes.IntrinsicClassAttributes<T> {
|
|
17
26
|
}
|
|
18
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewfly/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Viewfly is a simple and easy-to-use JavaScript framework with an intuitive development experience.",
|
|
5
5
|
"main": "./bundles/index.js",
|
|
6
6
|
"module": "./bundles/index.esm.js",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"bugs": {
|
|
35
35
|
"url": "https://github.com/viewfly/viewfly.git/issues"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "75d56812c92bfd5d099e0d7eb8d964251d88df28"
|
|
38
38
|
}
|
package/bundles/jsx.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Key, Ref } from '@viewfly/core';
|
|
2
|
-
export declare namespace JSX {
|
|
3
|
-
type ClassNames = string | Record<string, unknown> | Array<string | Record<string, unknown>>;
|
|
4
|
-
interface Attributes<T extends object> {
|
|
5
|
-
ref?: Ref<T> | Ref<T>[];
|
|
6
|
-
key?: Key;
|
|
7
|
-
}
|
|
8
|
-
interface ElementClass {
|
|
9
|
-
}
|
|
10
|
-
interface IntrinsicElements {
|
|
11
|
-
}
|
|
12
|
-
interface IntrinsicAttributes {
|
|
13
|
-
}
|
|
14
|
-
}
|