@thi.ng/hiccup-html 2.0.0 → 2.0.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/CHANGELOG.md +8 -0
- package/README.md +3 -2
- package/blocks.d.ts +5 -5
- package/blocks.js +1 -1
- package/def.d.ts +1 -1
- package/forms.d.ts +21 -21
- package/forms.js +1 -1
- package/head.d.ts +7 -7
- package/head.js +1 -1
- package/index.d.ts +10 -10
- package/index.js +10 -10
- package/inline.d.ts +9 -9
- package/inline.js +2 -2
- package/lists.d.ts +4 -4
- package/lists.js +1 -1
- package/media.d.ts +8 -8
- package/media.js +1 -1
- package/package.json +7 -4
- package/sections.d.ts +5 -5
- package/sections.js +1 -1
- package/table.d.ts +5 -5
- package/table.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@2.0.0...@thi.ng/hiccup-html@2.0.1) (2021-10-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @thi.ng/hiccup-html
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@1.1.1...@thi.ng/hiccup-html@2.0.0) (2021-10-12)
|
|
7
15
|
|
|
8
16
|
|
package/README.md
CHANGED
|
@@ -180,10 +180,11 @@ ES module import:
|
|
|
180
180
|
|
|
181
181
|
[Skypack documentation](https://docs.skypack.dev/)
|
|
182
182
|
|
|
183
|
-
For
|
|
183
|
+
For Node.js REPL:
|
|
184
184
|
|
|
185
185
|
```text
|
|
186
|
-
|
|
186
|
+
# with flag only for < v16
|
|
187
|
+
node --experimental-repl-await
|
|
187
188
|
|
|
188
189
|
> const hiccupHtml = await import("@thi.ng/hiccup-html");
|
|
189
190
|
```
|
package/blocks.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Attribs, AttribVal, BooleanAttrib, DimensionAttribs, ImportanceAttribs, LoadingAttribs, ReferrerAttribs, StringAttrib } from "./api";
|
|
1
|
+
import type { Attribs, AttribVal, BooleanAttrib, DimensionAttribs, ImportanceAttribs, LoadingAttribs, ReferrerAttribs, StringAttrib } from "./api.js";
|
|
2
2
|
export interface BlockquoteAttribs extends Attribs {
|
|
3
3
|
cite: StringAttrib;
|
|
4
4
|
}
|
|
5
|
-
export declare const blockquote: import("./def").ElementFactory<Partial<BlockquoteAttribs>, any>;
|
|
6
|
-
export declare const div: import("./def").ElementFactory<Partial<Attribs>, any>, figure: import("./def").ElementFactory<Partial<Attribs>, any>, figcaption: import("./def").ElementFactory<Partial<Attribs>, any>, para: import("./def").ElementFactory<Partial<Attribs>, any>, pre: import("./def").ElementFactory<Partial<Attribs>, any>, template: import("./def").ElementFactory<Partial<Attribs>, any>;
|
|
7
|
-
export declare const hr: import("./def").ElementFactory<Partial<Attribs>, never>;
|
|
5
|
+
export declare const blockquote: import("./def.js").ElementFactory<Partial<BlockquoteAttribs>, any>;
|
|
6
|
+
export declare const div: import("./def.js").ElementFactory<Partial<Attribs>, any>, figure: import("./def.js").ElementFactory<Partial<Attribs>, any>, figcaption: import("./def.js").ElementFactory<Partial<Attribs>, any>, para: import("./def.js").ElementFactory<Partial<Attribs>, any>, pre: import("./def.js").ElementFactory<Partial<Attribs>, any>, template: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
7
|
+
export declare const hr: import("./def.js").ElementFactory<Partial<Attribs>, never>;
|
|
8
8
|
export interface IFrameAttribs extends Attribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, ReferrerAttribs {
|
|
9
9
|
allow: StringAttrib;
|
|
10
10
|
allowfullscreen: BooleanAttrib;
|
|
@@ -15,5 +15,5 @@ export interface IFrameAttribs extends Attribs, DimensionAttribs, ImportanceAttr
|
|
|
15
15
|
src: StringAttrib;
|
|
16
16
|
srcdoc: StringAttrib;
|
|
17
17
|
}
|
|
18
|
-
export declare const iframe: import("./def").ElementFactory<Partial<IFrameAttribs>, any>;
|
|
18
|
+
export declare const iframe: import("./def.js").ElementFactory<Partial<IFrameAttribs>, any>;
|
|
19
19
|
//# sourceMappingURL=blocks.d.ts.map
|
package/blocks.js
CHANGED
package/def.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Nullable } from "@thi.ng/api";
|
|
2
|
-
import type { Attribs } from "./api";
|
|
2
|
+
import type { Attribs } from "./api.js";
|
|
3
3
|
/**
|
|
4
4
|
* Variadic element factory function. Takes an element specific attrib
|
|
5
5
|
* object (or `null` if no user attribs are needed) and any number of
|
package/forms.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NumOrString } from "@thi.ng/api";
|
|
2
|
-
import type { Attribs, AttribVal, BooleanAttrib, MultiStringAttrib, NumericAttrib, RelAttribs, StringAttrib } from "./api";
|
|
2
|
+
import type { Attribs, AttribVal, BooleanAttrib, MultiStringAttrib, NumericAttrib, RelAttribs, StringAttrib } from "./api.js";
|
|
3
3
|
export interface FormAttribs extends RelAttribs {
|
|
4
4
|
"accept-charset": MultiStringAttrib;
|
|
5
5
|
action: StringAttrib;
|
|
@@ -9,14 +9,14 @@ export interface FormAttribs extends RelAttribs {
|
|
|
9
9
|
novalidate: BooleanAttrib;
|
|
10
10
|
target: StringAttrib;
|
|
11
11
|
}
|
|
12
|
-
export declare const form: import("./def").ElementFactory<Partial<FormAttribs>, any>;
|
|
12
|
+
export declare const form: import("./def.js").ElementFactory<Partial<FormAttribs>, any>;
|
|
13
13
|
export interface FieldsetAttribs extends Attribs {
|
|
14
14
|
disabled: BooleanAttrib;
|
|
15
15
|
form: StringAttrib;
|
|
16
16
|
name: StringAttrib;
|
|
17
17
|
}
|
|
18
|
-
export declare const fieldset: import("./def").ElementFactory<Partial<FieldsetAttribs>, any>;
|
|
19
|
-
export declare const legend: import("./def").ElementFactory<Partial<Attribs>, any>;
|
|
18
|
+
export declare const fieldset: import("./def.js").ElementFactory<Partial<FieldsetAttribs>, any>;
|
|
19
|
+
export declare const legend: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
20
20
|
export interface InputAttribs extends Attribs, FieldsetAttribs {
|
|
21
21
|
autocomplete: StringAttrib;
|
|
22
22
|
autofocus: BooleanAttrib;
|
|
@@ -57,39 +57,39 @@ export interface InputNumericAttribs extends InputAttribs {
|
|
|
57
57
|
step: NumericAttrib;
|
|
58
58
|
value: NumericAttrib;
|
|
59
59
|
}
|
|
60
|
-
export declare const button: import("./def").ElementFactory<Partial<InputAttribs>, any>;
|
|
61
|
-
export declare const checkbox: import("./def").ElementFactory<Partial<InputCheckboxAttribs>, never>;
|
|
62
|
-
export declare const radio: import("./def").ElementFactory<Partial<InputRadioAttribs>, never>;
|
|
63
|
-
export declare const inputColor: import("./def").ElementFactory<Partial<InputAttribs>, never>;
|
|
64
|
-
export declare const inputFile: import("./def").ElementFactory<Partial<InputFileAttribs>, never>;
|
|
65
|
-
export declare const inputPass: import("./def").ElementFactory<Partial<InputTextAttribs>, never>;
|
|
66
|
-
export declare const inputNumber: import("./def").ElementFactory<Partial<InputNumericAttribs>, never>;
|
|
67
|
-
export declare const inputRange: import("./def").ElementFactory<Partial<InputNumericAttribs>, never>;
|
|
68
|
-
export declare const inputSearch: import("./def").ElementFactory<Partial<InputTextAttribs>, never>;
|
|
69
|
-
export declare const inputText: import("./def").ElementFactory<Partial<InputTextAttribs>, never>;
|
|
70
|
-
export declare const textArea: import("./def").ElementFactory<Partial<TextAreaAttribs>, never>;
|
|
60
|
+
export declare const button: import("./def.js").ElementFactory<Partial<InputAttribs>, any>;
|
|
61
|
+
export declare const checkbox: import("./def.js").ElementFactory<Partial<InputCheckboxAttribs>, never>;
|
|
62
|
+
export declare const radio: import("./def.js").ElementFactory<Partial<InputRadioAttribs>, never>;
|
|
63
|
+
export declare const inputColor: import("./def.js").ElementFactory<Partial<InputAttribs>, never>;
|
|
64
|
+
export declare const inputFile: import("./def.js").ElementFactory<Partial<InputFileAttribs>, never>;
|
|
65
|
+
export declare const inputPass: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
|
|
66
|
+
export declare const inputNumber: import("./def.js").ElementFactory<Partial<InputNumericAttribs>, never>;
|
|
67
|
+
export declare const inputRange: import("./def.js").ElementFactory<Partial<InputNumericAttribs>, never>;
|
|
68
|
+
export declare const inputSearch: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
|
|
69
|
+
export declare const inputText: import("./def.js").ElementFactory<Partial<InputTextAttribs>, never>;
|
|
70
|
+
export declare const textArea: import("./def.js").ElementFactory<Partial<TextAreaAttribs>, never>;
|
|
71
71
|
export interface OptionAttribs {
|
|
72
72
|
disabled: BooleanAttrib;
|
|
73
73
|
label: StringAttrib;
|
|
74
74
|
selected: BooleanAttrib;
|
|
75
75
|
value: AttribVal<NumOrString>;
|
|
76
76
|
}
|
|
77
|
-
export declare const option: import("./def").ElementFactory<Partial<OptionAttribs>, string>;
|
|
77
|
+
export declare const option: import("./def.js").ElementFactory<Partial<OptionAttribs>, string>;
|
|
78
78
|
export interface OptGroupAttribs {
|
|
79
79
|
disabled: BooleanAttrib;
|
|
80
80
|
label: StringAttrib;
|
|
81
81
|
}
|
|
82
|
-
export declare const optGroup: import("./def").ElementFactory<Partial<OptGroupAttribs>, any>;
|
|
82
|
+
export declare const optGroup: import("./def.js").ElementFactory<Partial<OptGroupAttribs>, any>;
|
|
83
83
|
export interface SelectAttribs extends InputAttribs {
|
|
84
84
|
multiple: BooleanAttrib;
|
|
85
85
|
size: NumericAttrib;
|
|
86
86
|
}
|
|
87
|
-
export declare const select: import("./def").ElementFactory<Partial<SelectAttribs>, any>;
|
|
87
|
+
export declare const select: import("./def.js").ElementFactory<Partial<SelectAttribs>, any>;
|
|
88
88
|
export interface LabelAttribs extends Partial<Attribs> {
|
|
89
89
|
for: StringAttrib;
|
|
90
90
|
form?: StringAttrib;
|
|
91
91
|
}
|
|
92
|
-
export declare const label: import("./def").ElementFactory<LabelAttribs, any>;
|
|
92
|
+
export declare const label: import("./def.js").ElementFactory<LabelAttribs, any>;
|
|
93
93
|
export interface MeterAttribs extends Attribs {
|
|
94
94
|
min: NumericAttrib;
|
|
95
95
|
max: NumericAttrib;
|
|
@@ -99,10 +99,10 @@ export interface MeterAttribs extends Attribs {
|
|
|
99
99
|
value: NumericAttrib;
|
|
100
100
|
form: StringAttrib;
|
|
101
101
|
}
|
|
102
|
-
export declare const meter: import("./def").ElementFactory<Partial<MeterAttribs>, any>;
|
|
102
|
+
export declare const meter: import("./def.js").ElementFactory<Partial<MeterAttribs>, any>;
|
|
103
103
|
export interface ProgressAttribs extends Attribs {
|
|
104
104
|
max: NumericAttrib;
|
|
105
105
|
value: NumericAttrib;
|
|
106
106
|
}
|
|
107
|
-
export declare const progress: import("./def").ElementFactory<Partial<ProgressAttribs>, any>;
|
|
107
|
+
export declare const progress: import("./def.js").ElementFactory<Partial<ProgressAttribs>, any>;
|
|
108
108
|
//# sourceMappingURL=forms.d.ts.map
|
package/forms.js
CHANGED
package/head.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { Attribs, AttribVal, BooleanAttrib, CDataContent, CORSAttribs, ImportanceAttribs, MultiStringAttrib, ReferrerAttribs, RelAttribs, StringAttrib } from "./api";
|
|
2
|
-
export declare const head: import("./def").ElementFactory<Partial<Attribs>, any>, title: import("./def").ElementFactory<Partial<Attribs>, any>;
|
|
1
|
+
import type { Attribs, AttribVal, BooleanAttrib, CDataContent, CORSAttribs, ImportanceAttribs, MultiStringAttrib, ReferrerAttribs, RelAttribs, StringAttrib } from "./api.js";
|
|
2
|
+
export declare const head: import("./def.js").ElementFactory<Partial<Attribs>, any>, title: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
3
3
|
export interface BaseAttribs extends Attribs {
|
|
4
4
|
href: StringAttrib;
|
|
5
5
|
target: StringAttrib;
|
|
6
6
|
}
|
|
7
|
-
export declare const base: import("./def").ElementFactory<Partial<BaseAttribs>, never>;
|
|
7
|
+
export declare const base: import("./def.js").ElementFactory<Partial<BaseAttribs>, never>;
|
|
8
8
|
export interface MetaAttribs extends Attribs {
|
|
9
9
|
charset: StringAttrib;
|
|
10
10
|
content: StringAttrib;
|
|
11
11
|
"http-equiv": AttribVal<"content-language" | "content-security-policy" | "content-type" | "default-style" | "refresh" | "set-cookie" | "x-ua-compatible">;
|
|
12
12
|
name: AttribVal<"application-name" | "author" | "color-scheme" | "creator" | "description" | "generator" | "googlebot" | "keywords" | "publisher" | "referrer" | "robots" | "theme-color" | "viewport">;
|
|
13
13
|
}
|
|
14
|
-
export declare const meta: import("./def").ElementFactory<Partial<MetaAttribs>, never>;
|
|
14
|
+
export declare const meta: import("./def.js").ElementFactory<Partial<MetaAttribs>, never>;
|
|
15
15
|
export interface ViewportOpts {
|
|
16
16
|
width: number;
|
|
17
17
|
height: number;
|
|
@@ -37,14 +37,14 @@ export interface LinkAttribs extends RelAttribs, CORSAttribs, ImportanceAttribs,
|
|
|
37
37
|
sizes: MultiStringAttrib;
|
|
38
38
|
type: StringAttrib;
|
|
39
39
|
}
|
|
40
|
-
export declare const link: import("./def").ElementFactory<Partial<LinkAttribs>, never>;
|
|
40
|
+
export declare const link: import("./def.js").ElementFactory<Partial<LinkAttribs>, never>;
|
|
41
41
|
export declare const linkCSS: (href: string) => [string, import("@thi.ng/api").Nullable<Partial<LinkAttribs>>, ...never[]];
|
|
42
42
|
export interface StyleAttribs extends Attribs {
|
|
43
43
|
media: StringAttrib;
|
|
44
44
|
nonce: StringAttrib;
|
|
45
45
|
type: StringAttrib;
|
|
46
46
|
}
|
|
47
|
-
export declare const style: import("./def").ElementFactory<Partial<StyleAttribs>, string | CDataContent>;
|
|
47
|
+
export declare const style: import("./def.js").ElementFactory<Partial<StyleAttribs>, string | CDataContent>;
|
|
48
48
|
export interface ScriptAttribs extends Attribs, CORSAttribs, ReferrerAttribs {
|
|
49
49
|
async: BooleanAttrib;
|
|
50
50
|
defer: BooleanAttrib;
|
|
@@ -54,5 +54,5 @@ export interface ScriptAttribs extends Attribs, CORSAttribs, ReferrerAttribs {
|
|
|
54
54
|
src: StringAttrib;
|
|
55
55
|
type: StringAttrib;
|
|
56
56
|
}
|
|
57
|
-
export declare const script: import("./def").ElementFactory<Partial<ScriptAttribs>, string | CDataContent>;
|
|
57
|
+
export declare const script: import("./def.js").ElementFactory<Partial<ScriptAttribs>, string | CDataContent>;
|
|
58
58
|
//# sourceMappingURL=head.d.ts.map
|
package/head.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from "./api";
|
|
2
|
-
export * from "./def";
|
|
3
|
-
export * from "./blocks";
|
|
4
|
-
export * from "./forms";
|
|
5
|
-
export * from "./head";
|
|
6
|
-
export * from "./inline";
|
|
7
|
-
export * from "./lists";
|
|
8
|
-
export * from "./media";
|
|
9
|
-
export * from "./sections";
|
|
10
|
-
export * from "./table";
|
|
1
|
+
export * from "./api.js";
|
|
2
|
+
export * from "./def.js";
|
|
3
|
+
export * from "./blocks.js";
|
|
4
|
+
export * from "./forms.js";
|
|
5
|
+
export * from "./head.js";
|
|
6
|
+
export * from "./inline.js";
|
|
7
|
+
export * from "./lists.js";
|
|
8
|
+
export * from "./media.js";
|
|
9
|
+
export * from "./sections.js";
|
|
10
|
+
export * from "./table.js";
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from "./api";
|
|
2
|
-
export * from "./def";
|
|
3
|
-
export * from "./blocks";
|
|
4
|
-
export * from "./forms";
|
|
5
|
-
export * from "./head";
|
|
6
|
-
export * from "./inline";
|
|
7
|
-
export * from "./lists";
|
|
8
|
-
export * from "./media";
|
|
9
|
-
export * from "./sections";
|
|
10
|
-
export * from "./table";
|
|
1
|
+
export * from "./api.js";
|
|
2
|
+
export * from "./def.js";
|
|
3
|
+
export * from "./blocks.js";
|
|
4
|
+
export * from "./forms.js";
|
|
5
|
+
export * from "./head.js";
|
|
6
|
+
export * from "./inline.js";
|
|
7
|
+
export * from "./lists.js";
|
|
8
|
+
export * from "./media.js";
|
|
9
|
+
export * from "./sections.js";
|
|
10
|
+
export * from "./table.js";
|
package/inline.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NumOrString } from "@thi.ng/api";
|
|
2
|
-
import type { Attribs, AttribVal, MultiStringAttrib, ReferrerAttribs, RelAttribs, StringAttrib } from "./api";
|
|
2
|
+
import type { Attribs, AttribVal, MultiStringAttrib, ReferrerAttribs, RelAttribs, StringAttrib } from "./api.js";
|
|
3
3
|
interface AnchorAttribs extends RelAttribs, ReferrerAttribs {
|
|
4
4
|
download: StringAttrib;
|
|
5
5
|
href: StringAttrib;
|
|
@@ -8,25 +8,25 @@ interface AnchorAttribs extends RelAttribs, ReferrerAttribs {
|
|
|
8
8
|
target: StringAttrib;
|
|
9
9
|
type: StringAttrib;
|
|
10
10
|
}
|
|
11
|
-
export declare const anchor: import("./def").ElementFactory<Partial<AnchorAttribs>, any>;
|
|
12
|
-
export declare const abbr: import("./def").ElementFactory<{
|
|
11
|
+
export declare const anchor: import("./def.js").ElementFactory<Partial<AnchorAttribs>, any>;
|
|
12
|
+
export declare const abbr: import("./def.js").ElementFactory<{
|
|
13
13
|
title: StringAttrib;
|
|
14
14
|
} & Partial<Attribs>, any>;
|
|
15
|
-
export declare const br: import("./def").ElementFactory<never, never>;
|
|
16
|
-
export declare const data: import("./def").ElementFactory<{
|
|
15
|
+
export declare const br: import("./def.js").ElementFactory<never, never>;
|
|
16
|
+
export declare const data: import("./def.js").ElementFactory<{
|
|
17
17
|
value: AttribVal<NumOrString>;
|
|
18
18
|
} & Partial<Attribs>, any>;
|
|
19
|
-
export declare const quote: import("./def").ElementFactory<{
|
|
19
|
+
export declare const quote: import("./def.js").ElementFactory<{
|
|
20
20
|
cite: StringAttrib;
|
|
21
21
|
} & Partial<Attribs>, any>;
|
|
22
|
-
export declare const time: import("./def").ElementFactory<{
|
|
22
|
+
export declare const time: import("./def.js").ElementFactory<{
|
|
23
23
|
datetime: StringAttrib;
|
|
24
24
|
} & Partial<Attribs>, any>;
|
|
25
|
-
export declare const cite: import("./def").ElementFactory<Partial<Attribs>, any>, code: import("./def").ElementFactory<Partial<Attribs>, any>, em: import("./def").ElementFactory<Partial<Attribs>, any>, i: import("./def").ElementFactory<Partial<Attribs>, any>, kbd: import("./def").ElementFactory<Partial<Attribs>, any>, mark: import("./def").ElementFactory<Partial<Attribs>, any>, small: import("./def").ElementFactory<Partial<Attribs>, any>, span: import("./def").ElementFactory<Partial<Attribs>, any>, strong: import("./def").ElementFactory<Partial<Attribs>, any>, sub: import("./def").ElementFactory<Partial<Attribs>, any>, sup: import("./def").ElementFactory<Partial<Attribs>, any>;
|
|
25
|
+
export declare const cite: import("./def.js").ElementFactory<Partial<Attribs>, any>, code: import("./def.js").ElementFactory<Partial<Attribs>, any>, em: import("./def.js").ElementFactory<Partial<Attribs>, any>, i: import("./def.js").ElementFactory<Partial<Attribs>, any>, kbd: import("./def.js").ElementFactory<Partial<Attribs>, any>, mark: import("./def.js").ElementFactory<Partial<Attribs>, any>, small: import("./def.js").ElementFactory<Partial<Attribs>, any>, span: import("./def.js").ElementFactory<Partial<Attribs>, any>, strong: import("./def.js").ElementFactory<Partial<Attribs>, any>, sub: import("./def.js").ElementFactory<Partial<Attribs>, any>, sup: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
26
26
|
export interface EditAttribs extends Attribs {
|
|
27
27
|
cite: StringAttrib;
|
|
28
28
|
datetime: StringAttrib;
|
|
29
29
|
}
|
|
30
|
-
export declare const del: import("./def").ElementFactory<Partial<EditAttribs>, any>, ins: import("./def").ElementFactory<Partial<EditAttribs>, any>;
|
|
30
|
+
export declare const del: import("./def.js").ElementFactory<Partial<EditAttribs>, any>, ins: import("./def.js").ElementFactory<Partial<EditAttribs>, any>;
|
|
31
31
|
export {};
|
|
32
32
|
//# sourceMappingURL=inline.d.ts.map
|
package/inline.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defElement, defElements } from "./def";
|
|
1
|
+
import { defElement, defElements } from "./def.js";
|
|
2
2
|
export const anchor = defElement("a");
|
|
3
3
|
export const abbr = defElement("abbr");
|
|
4
4
|
export const br = defElement("br");
|
|
5
5
|
export const data = defElement("data");
|
|
6
6
|
export const quote = defElement("q");
|
|
7
7
|
export const time = defElement("time");
|
|
8
|
-
export const [cite, code, em, i, kbd, mark, small, span, strong, sub, sup
|
|
8
|
+
export const [cite, code, em, i, kbd, mark, small, span, strong, sub, sup] = defElements([
|
|
9
9
|
"cite",
|
|
10
10
|
"code",
|
|
11
11
|
"em",
|
package/lists.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Attribs, AttribVal, BooleanAttrib, NumericAttrib } from "./api";
|
|
1
|
+
import type { Attribs, AttribVal, BooleanAttrib, NumericAttrib } from "./api.js";
|
|
2
2
|
export interface OrderedListAttribs extends Attribs {
|
|
3
3
|
reversed: BooleanAttrib;
|
|
4
4
|
start: NumericAttrib;
|
|
@@ -7,7 +7,7 @@ export interface OrderedListAttribs extends Attribs {
|
|
|
7
7
|
export interface ListItemAttribs extends Attribs {
|
|
8
8
|
value: NumericAttrib;
|
|
9
9
|
}
|
|
10
|
-
export declare const ol: import("./def").ElementFactory<Partial<OrderedListAttribs>, any>;
|
|
11
|
-
export declare const li: import("./def").ElementFactory<Partial<ListItemAttribs>, any>;
|
|
12
|
-
export declare const ul: import("./def").ElementFactory<Partial<Attribs>, any>, dl: import("./def").ElementFactory<Partial<Attribs>, any>, dt: import("./def").ElementFactory<Partial<Attribs>, any>, dd: import("./def").ElementFactory<Partial<Attribs>, any>, datalist: import("./def").ElementFactory<Partial<Attribs>, any>;
|
|
10
|
+
export declare const ol: import("./def.js").ElementFactory<Partial<OrderedListAttribs>, any>;
|
|
11
|
+
export declare const li: import("./def.js").ElementFactory<Partial<ListItemAttribs>, any>;
|
|
12
|
+
export declare const ul: import("./def.js").ElementFactory<Partial<Attribs>, any>, dl: import("./def.js").ElementFactory<Partial<Attribs>, any>, dt: import("./def.js").ElementFactory<Partial<Attribs>, any>, dd: import("./def.js").ElementFactory<Partial<Attribs>, any>, datalist: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
13
13
|
//# sourceMappingURL=lists.d.ts.map
|
package/lists.js
CHANGED
package/media.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Attribs, AttribVal, BooleanAttrib, CORSAttribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, MultiStringAttrib, ReferrerAttribs, StringAttrib } from "./api";
|
|
1
|
+
import type { Attribs, AttribVal, BooleanAttrib, CORSAttribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, MultiStringAttrib, ReferrerAttribs, StringAttrib } from "./api.js";
|
|
2
2
|
export interface CanvasAttribs extends Attribs, DimensionAttribs {
|
|
3
3
|
}
|
|
4
|
-
export declare const canvas: import("./def").ElementFactory<Partial<CanvasAttribs>, any>;
|
|
4
|
+
export declare const canvas: import("./def.js").ElementFactory<Partial<CanvasAttribs>, any>;
|
|
5
5
|
export interface ImageAttribs extends Attribs, CORSAttribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, ReferrerAttribs {
|
|
6
6
|
alt: StringAttrib;
|
|
7
7
|
decoding: AttribVal<"sync" | "async" | "auto">;
|
|
@@ -11,8 +11,8 @@ export interface ImageAttribs extends Attribs, CORSAttribs, DimensionAttribs, Im
|
|
|
11
11
|
srcset: MultiStringAttrib;
|
|
12
12
|
usemap: BooleanAttrib;
|
|
13
13
|
}
|
|
14
|
-
export declare const img: import("./def").ElementFactory<Partial<ImageAttribs>, never>;
|
|
15
|
-
export declare const picture: import("./def").ElementFactory<Partial<Attribs>, any>;
|
|
14
|
+
export declare const img: import("./def.js").ElementFactory<Partial<ImageAttribs>, never>;
|
|
15
|
+
export declare const picture: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
16
16
|
export interface SourceAttribs extends Attribs {
|
|
17
17
|
media: StringAttrib;
|
|
18
18
|
src: StringAttrib;
|
|
@@ -20,7 +20,7 @@ export interface SourceAttribs extends Attribs {
|
|
|
20
20
|
srcset: MultiStringAttrib;
|
|
21
21
|
type: StringAttrib;
|
|
22
22
|
}
|
|
23
|
-
export declare const source: import("./def").ElementFactory<Partial<SourceAttribs>, never>;
|
|
23
|
+
export declare const source: import("./def.js").ElementFactory<Partial<SourceAttribs>, never>;
|
|
24
24
|
export interface AudioAttribs extends Attribs, CORSAttribs {
|
|
25
25
|
autoplay: BooleanAttrib;
|
|
26
26
|
controls: BooleanAttrib;
|
|
@@ -30,7 +30,7 @@ export interface AudioAttribs extends Attribs, CORSAttribs {
|
|
|
30
30
|
preload: AttribVal<"none" | "preload" | "auto">;
|
|
31
31
|
src: StringAttrib;
|
|
32
32
|
}
|
|
33
|
-
export declare const audio: import("./def").ElementFactory<Partial<AudioAttribs>, any>;
|
|
33
|
+
export declare const audio: import("./def.js").ElementFactory<Partial<AudioAttribs>, any>;
|
|
34
34
|
export interface VideoAttribs extends AudioAttribs, DimensionAttribs {
|
|
35
35
|
autoPictureInPicture: BooleanAttrib;
|
|
36
36
|
controlslist: AttribVal<"nodownload" | "nofullscreen" | "noremoteplayback">;
|
|
@@ -38,7 +38,7 @@ export interface VideoAttribs extends AudioAttribs, DimensionAttribs {
|
|
|
38
38
|
playsinline: BooleanAttrib;
|
|
39
39
|
poster: StringAttrib;
|
|
40
40
|
}
|
|
41
|
-
export declare const video: import("./def").ElementFactory<Partial<VideoAttribs>, any>;
|
|
41
|
+
export declare const video: import("./def.js").ElementFactory<Partial<VideoAttribs>, any>;
|
|
42
42
|
export interface TrackAttribs extends Attribs {
|
|
43
43
|
default: BooleanAttrib;
|
|
44
44
|
kind: AttribVal<"captions" | "chapters" | "descriptions" | "metadata" | "subtitles">;
|
|
@@ -46,5 +46,5 @@ export interface TrackAttribs extends Attribs {
|
|
|
46
46
|
src: StringAttrib;
|
|
47
47
|
srclang: StringAttrib;
|
|
48
48
|
}
|
|
49
|
-
export declare const track: import("./def").ElementFactory<Partial<TrackAttribs>, any>;
|
|
49
|
+
export declare const track: import("./def.js").ElementFactory<Partial<TrackAttribs>, any>;
|
|
50
50
|
//# sourceMappingURL=media.d.ts.map
|
package/media.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-html",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.0.
|
|
37
|
+
"@thi.ng/api": "^8.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@thi.ng/testament": "^0.1.
|
|
40
|
+
"@thi.ng/testament": "^0.1.1"
|
|
41
41
|
},
|
|
42
42
|
"keywords": [
|
|
43
43
|
"browser",
|
|
@@ -54,6 +54,9 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": ">=12.7"
|
|
59
|
+
},
|
|
57
60
|
"files": [
|
|
58
61
|
"*.js",
|
|
59
62
|
"*.d.ts"
|
|
@@ -102,5 +105,5 @@
|
|
|
102
105
|
],
|
|
103
106
|
"year": 2020
|
|
104
107
|
},
|
|
105
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19"
|
|
106
109
|
}
|
package/sections.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { Attribs, EventAttribs, StringAttrib } from "./api";
|
|
1
|
+
import type { Attribs, EventAttribs, StringAttrib } from "./api.js";
|
|
2
2
|
export interface HtmlAttribs extends Attribs {
|
|
3
3
|
xmlns: StringAttrib;
|
|
4
4
|
}
|
|
5
|
-
export declare const html: import("./def").ElementFactory<Partial<HtmlAttribs>, any>;
|
|
5
|
+
export declare const html: import("./def.js").ElementFactory<Partial<HtmlAttribs>, any>;
|
|
6
6
|
export declare type BodyEventAttribs = EventAttribs<"onafterprint" | "onbeforeprint" | "onbeforeunload" | "onerror" | "onhashchange" | "onlanguagechange" | "onload" | "onmessage" | "onoffline" | "ononline" | "onpopstate" | "onredo" | "onstorage" | "onundo" | "onunload", Event>;
|
|
7
7
|
export interface BodyAttribs extends Attribs, BodyEventAttribs {
|
|
8
8
|
}
|
|
9
|
-
export declare const body: import("./def").ElementFactory<Partial<BodyAttribs>, any>;
|
|
10
|
-
export declare const address: import("./def").ElementFactory<Partial<Attribs>, any>, article: import("./def").ElementFactory<Partial<Attribs>, any>, aside: import("./def").ElementFactory<Partial<Attribs>, any>, footer: import("./def").ElementFactory<Partial<Attribs>, any>, header: import("./def").ElementFactory<Partial<Attribs>, any>, hgroup: import("./def").ElementFactory<Partial<Attribs>, any>, main: import("./def").ElementFactory<Partial<Attribs>, any>, nav: import("./def").ElementFactory<Partial<Attribs>, any>, noscript: import("./def").ElementFactory<Partial<Attribs>, any>, section: import("./def").ElementFactory<Partial<Attribs>, any>;
|
|
11
|
-
export declare const h1: import("./def").ElementFactory<Partial<Attribs>, any>, h2: import("./def").ElementFactory<Partial<Attribs>, any>, h3: import("./def").ElementFactory<Partial<Attribs>, any>, h4: import("./def").ElementFactory<Partial<Attribs>, any>, h5: import("./def").ElementFactory<Partial<Attribs>, any>, h6: import("./def").ElementFactory<Partial<Attribs>, any>;
|
|
9
|
+
export declare const body: import("./def.js").ElementFactory<Partial<BodyAttribs>, any>;
|
|
10
|
+
export declare const address: import("./def.js").ElementFactory<Partial<Attribs>, any>, article: import("./def.js").ElementFactory<Partial<Attribs>, any>, aside: import("./def.js").ElementFactory<Partial<Attribs>, any>, footer: import("./def.js").ElementFactory<Partial<Attribs>, any>, header: import("./def.js").ElementFactory<Partial<Attribs>, any>, hgroup: import("./def.js").ElementFactory<Partial<Attribs>, any>, main: import("./def.js").ElementFactory<Partial<Attribs>, any>, nav: import("./def.js").ElementFactory<Partial<Attribs>, any>, noscript: import("./def.js").ElementFactory<Partial<Attribs>, any>, section: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
11
|
+
export declare const h1: import("./def.js").ElementFactory<Partial<Attribs>, any>, h2: import("./def.js").ElementFactory<Partial<Attribs>, any>, h3: import("./def.js").ElementFactory<Partial<Attribs>, any>, h4: import("./def.js").ElementFactory<Partial<Attribs>, any>, h5: import("./def.js").ElementFactory<Partial<Attribs>, any>, h6: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
12
12
|
//# sourceMappingURL=sections.d.ts.map
|
package/sections.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defElement, defElements } from "./def";
|
|
1
|
+
import { defElement, defElements } from "./def.js";
|
|
2
2
|
export const html = defElement("html");
|
|
3
3
|
export const body = defElement("body");
|
|
4
4
|
export const [address, article, aside, footer, header, hgroup, main, nav, noscript, section,] = defElements([
|
package/table.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { Attribs, AttribVal, MultiStringAttrib, NumericAttrib } from "./api";
|
|
2
|
-
export declare const table: import("./def").ElementFactory<Partial<Attribs>, any>, tbody: import("./def").ElementFactory<Partial<Attribs>, any>, tfoot: import("./def").ElementFactory<Partial<Attribs>, any>, thead: import("./def").ElementFactory<Partial<Attribs>, any>, tr: import("./def").ElementFactory<Partial<Attribs>, any>, caption: import("./def").ElementFactory<Partial<Attribs>, any>;
|
|
1
|
+
import type { Attribs, AttribVal, MultiStringAttrib, NumericAttrib } from "./api.js";
|
|
2
|
+
export declare const table: import("./def.js").ElementFactory<Partial<Attribs>, any>, tbody: import("./def.js").ElementFactory<Partial<Attribs>, any>, tfoot: import("./def.js").ElementFactory<Partial<Attribs>, any>, thead: import("./def.js").ElementFactory<Partial<Attribs>, any>, tr: import("./def.js").ElementFactory<Partial<Attribs>, any>, caption: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
3
3
|
export interface TableCellAttribs extends Attribs {
|
|
4
4
|
colspan: NumericAttrib;
|
|
5
5
|
headers: MultiStringAttrib;
|
|
6
6
|
rowspan: NumericAttrib;
|
|
7
7
|
}
|
|
8
|
-
export declare const td: import("./def").ElementFactory<Partial<TableCellAttribs>, any>;
|
|
8
|
+
export declare const td: import("./def.js").ElementFactory<Partial<TableCellAttribs>, any>;
|
|
9
9
|
export interface TableCellHeaderAttribs extends TableCellAttribs {
|
|
10
10
|
scope: AttribVal<"auto" | "col" | "colgroup" | "row" | "rowgroup">;
|
|
11
11
|
}
|
|
12
|
-
export declare const th: import("./def").ElementFactory<Partial<TableCellHeaderAttribs>, any>;
|
|
12
|
+
export declare const th: import("./def.js").ElementFactory<Partial<TableCellHeaderAttribs>, any>;
|
|
13
13
|
export interface ColAttribs extends Attribs {
|
|
14
14
|
span: NumericAttrib;
|
|
15
15
|
}
|
|
16
|
-
export declare const col: import("./def").ElementFactory<Partial<ColAttribs>, any>, colgroup: import("./def").ElementFactory<Partial<ColAttribs>, any>;
|
|
16
|
+
export declare const col: import("./def.js").ElementFactory<Partial<ColAttribs>, any>, colgroup: import("./def.js").ElementFactory<Partial<ColAttribs>, any>;
|
|
17
17
|
//# sourceMappingURL=table.d.ts.map
|
package/table.js
CHANGED