vasille-web 3.1.4 → 3.2.1
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/README.md +5 -4
- package/fake-types/index.d.ts +192 -47
- package/lib/index.js +16 -3
- package/package.json +9 -7
- package/spec/html.d.ts +251 -376
- package/types/index.d.ts +11 -4
- package/types/jsx-runtime.d.ts +111 -114
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
import { Fragment } from "vasille";
|
|
1
2
|
import { StyleProps } from "../spec/css.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { TagOptions } from "vasille/web-runner";
|
|
4
|
+
import { Composed as CoreComposed } from "vasille-jsx";
|
|
5
|
+
import { WebRouterInitialization } from "vasille-router/web-router";
|
|
6
|
+
export { $, mvvmView as view, mvvmView, mvcView, hybridView, Debug, Delay, Else, ElseIf, For, If, Slot, Watch, awaited, store, } from "vasille-jsx";
|
|
7
|
+
export { QueryParams, ScreenProps, RouteParameters, screen } from "vasille-router";
|
|
8
|
+
export { Router, WebRouterInitialization, NavigationMode, routeApp } from "vasille-router/web-router";
|
|
9
|
+
export type { setMobileMaxWidth, setTabletMaxWidth, setLaptopMaxWidth } from "vasille-css";
|
|
5
10
|
export declare const styleSheet: <T extends {
|
|
6
11
|
[className: string]: {
|
|
7
12
|
[media: `@${string}`]: {
|
|
@@ -10,4 +15,6 @@ export declare const styleSheet: <T extends {
|
|
|
10
15
|
[state: `:${string}`]: StyleProps;
|
|
11
16
|
} & StyleProps;
|
|
12
17
|
}>(input: T) => { [K in keyof T]: string; };
|
|
13
|
-
export declare function
|
|
18
|
+
export declare function compose<Node, Element, TagOptions extends object, In extends object, Out>(renderer: (f: Fragment<Node, Element, TagOptions>, input: In) => Out, name: string): CoreComposed<Node, Element, TagOptions, In, Out>;
|
|
19
|
+
export declare function mount<T>(element: Element, component: ($: T) => void, $: T, debugUi?: boolean): import("vasille").App<Node, Element, TagOptions, object>;
|
|
20
|
+
export declare function routerApp<Routes extends string>(init: WebRouterInitialization<Routes>, element?: Element, debugUi?: boolean): import("vasille").App<Node, Element, TagOptions, {}>;
|
package/types/jsx-runtime.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ type HtmlInput<K extends keyof HTMLElementTagNameMap & keyof HtmlTagMap> = {
|
|
|
8
8
|
class?: (string | Record<string, boolean> | false)[] | string;
|
|
9
9
|
style?: RawStyleProps | string;
|
|
10
10
|
slot?: unknown;
|
|
11
|
-
} & Partial<HtmlTagMap[K][
|
|
12
|
-
[K in `bind:${string}`]?: unknown;
|
|
13
|
-
};
|
|
11
|
+
} & Partial<HtmlTagMap[K]["attrs"]> & prefixedObject<HtmlTagMap[K]["events"], "on"> & Partial<prefixedObject<HtmlTagMap[K]["props"], "bind:">>;
|
|
14
12
|
export declare namespace JSX {
|
|
15
13
|
type ElementType = keyof IntrinsicElements | ((props?: object) => void);
|
|
16
14
|
type Element = never;
|
|
@@ -19,117 +17,116 @@ export declare namespace JSX {
|
|
|
19
17
|
slot: unknown;
|
|
20
18
|
}
|
|
21
19
|
interface IntrinsicElements {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"wbr": HtmlInput<"wbr">;
|
|
20
|
+
a2: HtmlInput<"a">;
|
|
21
|
+
abbr: HtmlInput<"abbr">;
|
|
22
|
+
address: HtmlInput<"address">;
|
|
23
|
+
area: HtmlInput<"area">;
|
|
24
|
+
article: HtmlInput<"article">;
|
|
25
|
+
aside: HtmlInput<"aside">;
|
|
26
|
+
audio: HtmlInput<"audio">;
|
|
27
|
+
b: HtmlInput<"b">;
|
|
28
|
+
base: HtmlInput<"base">;
|
|
29
|
+
bdi: HtmlInput<"bdi">;
|
|
30
|
+
bdo: HtmlInput<"bdo">;
|
|
31
|
+
blockquote: HtmlInput<"blockquote">;
|
|
32
|
+
body: HtmlInput<"body">;
|
|
33
|
+
br: HtmlInput<"br">;
|
|
34
|
+
button: HtmlInput<"button">;
|
|
35
|
+
canvas: HtmlInput<"canvas">;
|
|
36
|
+
caption: HtmlInput<"caption">;
|
|
37
|
+
cite: HtmlInput<"cite">;
|
|
38
|
+
code: HtmlInput<"code">;
|
|
39
|
+
col: HtmlInput<"col">;
|
|
40
|
+
colgroup: HtmlInput<"colgroup">;
|
|
41
|
+
data: HtmlInput<"data">;
|
|
42
|
+
datalist: HtmlInput<"datalist">;
|
|
43
|
+
dd: HtmlInput<"dd">;
|
|
44
|
+
del: HtmlInput<"del">;
|
|
45
|
+
details: HtmlInput<"details">;
|
|
46
|
+
dfn: HtmlInput<"dfn">;
|
|
47
|
+
dialog: HtmlInput<"dialog">;
|
|
48
|
+
div: HtmlInput<"div">;
|
|
49
|
+
dl: HtmlInput<"dl">;
|
|
50
|
+
dt: HtmlInput<"dt">;
|
|
51
|
+
em: HtmlInput<"em">;
|
|
52
|
+
embed: HtmlInput<"embed">;
|
|
53
|
+
fieldset: HtmlInput<"fieldset">;
|
|
54
|
+
figcaption: HtmlInput<"figcaption">;
|
|
55
|
+
figure: HtmlInput<"figure">;
|
|
56
|
+
footer: HtmlInput<"footer">;
|
|
57
|
+
form: HtmlInput<"form">;
|
|
58
|
+
h1: HtmlInput<"h1">;
|
|
59
|
+
h2: HtmlInput<"h2">;
|
|
60
|
+
h3: HtmlInput<"h3">;
|
|
61
|
+
h4: HtmlInput<"h4">;
|
|
62
|
+
h5: HtmlInput<"h5">;
|
|
63
|
+
h6: HtmlInput<"h6">;
|
|
64
|
+
head: HtmlInput<"head">;
|
|
65
|
+
header: HtmlInput<"header">;
|
|
66
|
+
hgroup: HtmlInput<"hgroup">;
|
|
67
|
+
hr: HtmlInput<"hr">;
|
|
68
|
+
i: HtmlInput<"i">;
|
|
69
|
+
iframe: HtmlInput<"iframe">;
|
|
70
|
+
img: HtmlInput<"img">;
|
|
71
|
+
input: HtmlInput<"input">;
|
|
72
|
+
ins: HtmlInput<"ins">;
|
|
73
|
+
kbd: HtmlInput<"kbd">;
|
|
74
|
+
label: HtmlInput<"label">;
|
|
75
|
+
legend: HtmlInput<"legend">;
|
|
76
|
+
li: HtmlInput<"li">;
|
|
77
|
+
link: HtmlInput<"link">;
|
|
78
|
+
main: HtmlInput<"main">;
|
|
79
|
+
map: HtmlInput<"map">;
|
|
80
|
+
mark: HtmlInput<"mark">;
|
|
81
|
+
menu: HtmlInput<"menu">;
|
|
82
|
+
meta: HtmlInput<"meta">;
|
|
83
|
+
meter: HtmlInput<"meter">;
|
|
84
|
+
nav: HtmlInput<"nav">;
|
|
85
|
+
noscript: HtmlInput<"noscript">;
|
|
86
|
+
object: HtmlInput<"object">;
|
|
87
|
+
ol: HtmlInput<"ol">;
|
|
88
|
+
optgroup: HtmlInput<"optgroup">;
|
|
89
|
+
option: HtmlInput<"option">;
|
|
90
|
+
output: HtmlInput<"output">;
|
|
91
|
+
p: HtmlInput<"p">;
|
|
92
|
+
picture: HtmlInput<"picture">;
|
|
93
|
+
pre: HtmlInput<"pre">;
|
|
94
|
+
progress: HtmlInput<"progress">;
|
|
95
|
+
q: HtmlInput<"q">;
|
|
96
|
+
rp: HtmlInput<"rp">;
|
|
97
|
+
rt: HtmlInput<"rt">;
|
|
98
|
+
ruby: HtmlInput<"ruby">;
|
|
99
|
+
s: HtmlInput<"s">;
|
|
100
|
+
samp: HtmlInput<"samp">;
|
|
101
|
+
script: HtmlInput<"script">;
|
|
102
|
+
section: HtmlInput<"section">;
|
|
103
|
+
select: HtmlInput<"select">;
|
|
104
|
+
slot: HtmlInput<"slot">;
|
|
105
|
+
small: HtmlInput<"small">;
|
|
106
|
+
source: HtmlInput<"source">;
|
|
107
|
+
span: HtmlInput<"span">;
|
|
108
|
+
strong: HtmlInput<"strong">;
|
|
109
|
+
style: HtmlInput<"style">;
|
|
110
|
+
sub: HtmlInput<"sub">;
|
|
111
|
+
summary: HtmlInput<"summary">;
|
|
112
|
+
sup: HtmlInput<"sub">;
|
|
113
|
+
table: HtmlInput<"table">;
|
|
114
|
+
tbody: HtmlInput<"tbody">;
|
|
115
|
+
td: HtmlInput<"td">;
|
|
116
|
+
template: HtmlInput<"template">;
|
|
117
|
+
textarea: HtmlInput<"textarea">;
|
|
118
|
+
tfoot: HtmlInput<"tfoot">;
|
|
119
|
+
th: HtmlInput<"th">;
|
|
120
|
+
thead: HtmlInput<"thead">;
|
|
121
|
+
time: HtmlInput<"time">;
|
|
122
|
+
title: HtmlInput<"title">;
|
|
123
|
+
tr: HtmlInput<"tr">;
|
|
124
|
+
track: HtmlInput<"track">;
|
|
125
|
+
u: HtmlInput<"u">;
|
|
126
|
+
ul: HtmlInput<"ul">;
|
|
127
|
+
var: HtmlInput<"var">;
|
|
128
|
+
video: HtmlInput<"video">;
|
|
129
|
+
wbr: HtmlInput<"wbr">;
|
|
133
130
|
}
|
|
134
131
|
}
|
|
135
132
|
export {};
|