@thi.ng/hiccup-html 2.6.7 → 2.7.0
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 +14 -1
- package/blocks.d.ts +16 -1
- package/blocks.js +8 -2
- package/forms.d.ts +6 -0
- package/forms.js +2 -0
- package/inline.d.ts +1 -1
- package/inline.js +27 -3
- package/lists.d.ts +1 -1
- package/lists.js +4 -2
- package/media.d.ts +10 -1
- package/media.js +2 -0
- package/package.json +2 -2
- package/sections.d.ts +1 -1
- package/sections.js +3 -0
- package/table.d.ts +1 -1
- package/table.js +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2024-07-
|
|
3
|
+
- **Last updated**: 2024-07-08T20:34:19Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -9,6 +9,19 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
## [2.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.7.0) (2024-07-08)
|
|
13
|
+
|
|
14
|
+
#### 🚀 Features
|
|
15
|
+
|
|
16
|
+
- add/update block elements ([08f1728](https://github.com/thi-ng/umbrella/commit/08f1728))
|
|
17
|
+
- add: details(), dialog(), summary()
|
|
18
|
+
- update template(), add TemplateAttribs
|
|
19
|
+
- add inline elements ([9127bd6](https://github.com/thi-ng/umbrella/commit/9127bd6))
|
|
20
|
+
- add: dfn(), strikethrough(), variable(), wbr()
|
|
21
|
+
- add/update elements ([0df160f](https://github.com/thi-ng/umbrella/commit/0df160f))
|
|
22
|
+
- add: menu(), object(), output(), search()
|
|
23
|
+
- add new element specific attrib types
|
|
24
|
+
|
|
12
25
|
### [2.6.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.6.3) (2024-05-08)
|
|
13
26
|
|
|
14
27
|
#### 🩹 Bug fixes
|
package/blocks.d.ts
CHANGED
|
@@ -3,7 +3,16 @@ export interface BlockquoteAttribs extends Attribs {
|
|
|
3
3
|
cite: StringAttrib;
|
|
4
4
|
}
|
|
5
5
|
export declare const blockquote: import("./def.js").ElementFactory<Partial<BlockquoteAttribs>, any>;
|
|
6
|
-
export
|
|
6
|
+
export interface DetailAttribs extends Attribs {
|
|
7
|
+
open: boolean;
|
|
8
|
+
name: StringAttrib;
|
|
9
|
+
}
|
|
10
|
+
export declare const details: import("./def.js").ElementFactory<Partial<DetailAttribs>, any>;
|
|
11
|
+
export interface DialogAttribs extends Attribs {
|
|
12
|
+
open: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const dialog: import("./def.js").ElementFactory<Partial<DialogAttribs>, any>;
|
|
15
|
+
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>, summary: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
7
16
|
export declare const hr: import("./def.js").ElementFactory<Partial<Attribs>, never>;
|
|
8
17
|
export interface IFrameAttribs extends Attribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, ReferrerAttribs {
|
|
9
18
|
allow: StringAttrib;
|
|
@@ -23,4 +32,10 @@ export interface SlotAttribs extends Attribs {
|
|
|
23
32
|
name: string;
|
|
24
33
|
}
|
|
25
34
|
export declare const slot: import("./def.js").ElementFactory<Partial<SlotAttribs>, any>;
|
|
35
|
+
export interface TemplateAttribs extends Attribs {
|
|
36
|
+
shadowrootmode: AttribVal<"open" | "closed">;
|
|
37
|
+
shadowrootclonable: BooleanAttrib;
|
|
38
|
+
shadowrootdelegatesfocus: BooleanAttrib;
|
|
39
|
+
}
|
|
40
|
+
export declare const template: import("./def.js").ElementFactory<Partial<TemplateAttribs>, any>;
|
|
26
41
|
//# sourceMappingURL=blocks.d.ts.map
|
package/blocks.js
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { defElement, defElements } from "./def.js";
|
|
2
2
|
const blockquote = defElement("blockquote");
|
|
3
|
-
const
|
|
3
|
+
const details = defElement("details");
|
|
4
|
+
const dialog = defElement("dialog");
|
|
5
|
+
const [div, figure, figcaption, para, pre, summary] = defElements([
|
|
4
6
|
"div",
|
|
5
7
|
"figure",
|
|
6
8
|
"figcaption",
|
|
7
9
|
"p",
|
|
8
10
|
"pre",
|
|
9
|
-
"
|
|
11
|
+
"summary"
|
|
10
12
|
]);
|
|
11
13
|
const hr = defElement("hr");
|
|
12
14
|
const iframe = defElement("iframe");
|
|
13
15
|
const slot = defElement("slot");
|
|
16
|
+
const template = defElement("template");
|
|
14
17
|
export {
|
|
15
18
|
blockquote,
|
|
19
|
+
details,
|
|
20
|
+
dialog,
|
|
16
21
|
div,
|
|
17
22
|
figcaption,
|
|
18
23
|
figure,
|
|
@@ -21,5 +26,6 @@ export {
|
|
|
21
26
|
para,
|
|
22
27
|
pre,
|
|
23
28
|
slot,
|
|
29
|
+
summary,
|
|
24
30
|
template
|
|
25
31
|
};
|
package/forms.d.ts
CHANGED
|
@@ -114,4 +114,10 @@ export interface ProgressAttribs extends Attribs {
|
|
|
114
114
|
value: NumericAttrib;
|
|
115
115
|
}
|
|
116
116
|
export declare const progress: import("./def.js").ElementFactory<Partial<ProgressAttribs>, any>;
|
|
117
|
+
export interface OutputAttribs extends Attribs {
|
|
118
|
+
for: MultiStringAttrib;
|
|
119
|
+
form: StringAttrib;
|
|
120
|
+
name: StringAttrib;
|
|
121
|
+
}
|
|
122
|
+
export declare const output: import("./def.js").ElementFactory<Partial<OutputAttribs>, any>;
|
|
117
123
|
//# sourceMappingURL=forms.d.ts.map
|
package/forms.js
CHANGED
|
@@ -54,6 +54,7 @@ const select = defElement("select");
|
|
|
54
54
|
const label = defElement("label");
|
|
55
55
|
const meter = defElement("meter");
|
|
56
56
|
const progress = defElement("progress");
|
|
57
|
+
const output = defElement("output");
|
|
57
58
|
export {
|
|
58
59
|
button,
|
|
59
60
|
checkbox,
|
|
@@ -73,6 +74,7 @@ export {
|
|
|
73
74
|
meter,
|
|
74
75
|
optGroup,
|
|
75
76
|
option,
|
|
77
|
+
output,
|
|
76
78
|
progress,
|
|
77
79
|
radio,
|
|
78
80
|
select,
|
package/inline.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare const quote: import("./def.js").ElementFactory<{
|
|
|
22
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.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>;
|
|
25
|
+
export declare const cite: import("./def.js").ElementFactory<Partial<Attribs>, any>, code: import("./def.js").ElementFactory<Partial<Attribs>, any>, dfn: 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>, strikethrough: 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>, variable: import("./def.js").ElementFactory<Partial<Attribs>, any>, wbr: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
26
26
|
export interface EditAttribs extends Attribs {
|
|
27
27
|
cite: StringAttrib;
|
|
28
28
|
datetime: StringAttrib;
|
package/inline.js
CHANGED
|
@@ -9,18 +9,38 @@ const quote = defElement("q");
|
|
|
9
9
|
const time = defElement(
|
|
10
10
|
"time"
|
|
11
11
|
);
|
|
12
|
-
const [
|
|
12
|
+
const [
|
|
13
|
+
cite,
|
|
14
|
+
code,
|
|
15
|
+
dfn,
|
|
16
|
+
em,
|
|
17
|
+
i,
|
|
18
|
+
kbd,
|
|
19
|
+
mark,
|
|
20
|
+
small,
|
|
21
|
+
span,
|
|
22
|
+
strikethrough,
|
|
23
|
+
strong,
|
|
24
|
+
sub,
|
|
25
|
+
sup,
|
|
26
|
+
variable,
|
|
27
|
+
wbr
|
|
28
|
+
] = defElements([
|
|
13
29
|
"cite",
|
|
14
30
|
"code",
|
|
31
|
+
"dfn",
|
|
15
32
|
"em",
|
|
16
33
|
"i",
|
|
17
34
|
"kbd",
|
|
18
35
|
"mark",
|
|
19
36
|
"small",
|
|
20
37
|
"span",
|
|
38
|
+
"s",
|
|
21
39
|
"strong",
|
|
22
40
|
"sub",
|
|
23
|
-
"sup"
|
|
41
|
+
"sup",
|
|
42
|
+
"var",
|
|
43
|
+
"wbr"
|
|
24
44
|
]);
|
|
25
45
|
const [del, ins] = defElements(["del", "ins"]);
|
|
26
46
|
export {
|
|
@@ -31,6 +51,7 @@ export {
|
|
|
31
51
|
code,
|
|
32
52
|
data,
|
|
33
53
|
del,
|
|
54
|
+
dfn,
|
|
34
55
|
em,
|
|
35
56
|
i,
|
|
36
57
|
ins,
|
|
@@ -39,8 +60,11 @@ export {
|
|
|
39
60
|
quote,
|
|
40
61
|
small,
|
|
41
62
|
span,
|
|
63
|
+
strikethrough,
|
|
42
64
|
strong,
|
|
43
65
|
sub,
|
|
44
66
|
sup,
|
|
45
|
-
time
|
|
67
|
+
time,
|
|
68
|
+
variable,
|
|
69
|
+
wbr
|
|
46
70
|
};
|
package/lists.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export interface ListItemAttribs extends Attribs {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const ol: import("./def.js").ElementFactory<Partial<OrderedListAttribs>, any>;
|
|
11
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>;
|
|
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>, menu: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
13
13
|
//# sourceMappingURL=lists.d.ts.map
|
package/lists.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { defElement, defElements } from "./def.js";
|
|
2
2
|
const ol = defElement("ol");
|
|
3
3
|
const li = defElement("li");
|
|
4
|
-
const [ul, dl, dt, dd, datalist] = defElements([
|
|
4
|
+
const [ul, dl, dt, dd, datalist, menu] = defElements([
|
|
5
5
|
"ul",
|
|
6
6
|
"dl",
|
|
7
7
|
"dt",
|
|
8
8
|
"dd",
|
|
9
|
-
"datalist"
|
|
9
|
+
"datalist",
|
|
10
|
+
"menu"
|
|
10
11
|
]);
|
|
11
12
|
export {
|
|
12
13
|
datalist,
|
|
@@ -14,6 +15,7 @@ export {
|
|
|
14
15
|
dl,
|
|
15
16
|
dt,
|
|
16
17
|
li,
|
|
18
|
+
menu,
|
|
17
19
|
ol,
|
|
18
20
|
ul
|
|
19
21
|
};
|
package/media.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Attribs, AttribVal, BooleanAttrib, CORSAttribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, MultiStringAttrib, ReferrerAttribs, StringAttrib } from "./api.js";
|
|
1
|
+
import type { Attribs, AttribVal, BooleanAttrib, CORSAttribs, DimensionAttribs, ImportanceAttribs, LoadingAttribs, MultiStringAttrib, NumericAttrib, ReferrerAttribs, StringAttrib } from "./api.js";
|
|
2
2
|
export interface CanvasAttribs extends Attribs, DimensionAttribs {
|
|
3
3
|
}
|
|
4
4
|
export declare const canvas: import("./def.js").ElementFactory<Partial<CanvasAttribs>, any>;
|
|
@@ -47,4 +47,13 @@ export interface TrackAttribs extends Attribs {
|
|
|
47
47
|
srclang: StringAttrib;
|
|
48
48
|
}
|
|
49
49
|
export declare const track: import("./def.js").ElementFactory<Partial<TrackAttribs>, any>;
|
|
50
|
+
export interface ObjectAttribs extends Omit<Attribs, "data"> {
|
|
51
|
+
data: StringAttrib;
|
|
52
|
+
type: StringAttrib;
|
|
53
|
+
form: StringAttrib;
|
|
54
|
+
name: StringAttrib;
|
|
55
|
+
height: NumericAttrib;
|
|
56
|
+
width: NumericAttrib;
|
|
57
|
+
}
|
|
58
|
+
export declare const object: import("./def.js").ElementFactory<Partial<ObjectAttribs>, any>;
|
|
50
59
|
//# sourceMappingURL=media.d.ts.map
|
package/media.js
CHANGED
|
@@ -6,10 +6,12 @@ const source = defElement("source");
|
|
|
6
6
|
const audio = defElement("audio");
|
|
7
7
|
const video = defElement("video");
|
|
8
8
|
const track = defElement("track");
|
|
9
|
+
const object = defElement("object");
|
|
9
10
|
export {
|
|
10
11
|
audio,
|
|
11
12
|
canvas,
|
|
12
13
|
img,
|
|
14
|
+
object,
|
|
13
15
|
picture,
|
|
14
16
|
source,
|
|
15
17
|
track,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-html",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
],
|
|
112
112
|
"year": 2020
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "f6a6bc3eefb0fef6e0d05603caef7a39a23ab996\n"
|
|
115
115
|
}
|
package/sections.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export type BodyEventAttribs = EventAttribs<"onafterprint" | "onbeforeprint" | "
|
|
|
7
7
|
export interface BodyAttribs extends Attribs, BodyEventAttribs {
|
|
8
8
|
}
|
|
9
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>;
|
|
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>, search: import("./def.js").ElementFactory<Partial<Attribs>, any>, section: import("./def.js").ElementFactory<Partial<Attribs>, any>;
|
|
11
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
|
export declare const comment: (...body: string[]) => string[];
|
|
13
13
|
//# sourceMappingURL=sections.d.ts.map
|
package/sections.js
CHANGED
|
@@ -11,6 +11,7 @@ const [
|
|
|
11
11
|
main,
|
|
12
12
|
nav,
|
|
13
13
|
noscript,
|
|
14
|
+
search,
|
|
14
15
|
section
|
|
15
16
|
] = defElements([
|
|
16
17
|
"address",
|
|
@@ -22,6 +23,7 @@ const [
|
|
|
22
23
|
"main",
|
|
23
24
|
"nav",
|
|
24
25
|
"noscript",
|
|
26
|
+
"search",
|
|
25
27
|
"section"
|
|
26
28
|
]);
|
|
27
29
|
const [h1, h2, h3, h4, h5, h6] = [1, 2, 3, 4, 5, 6].map(
|
|
@@ -51,5 +53,6 @@ export {
|
|
|
51
53
|
main,
|
|
52
54
|
nav,
|
|
53
55
|
noscript,
|
|
56
|
+
search,
|
|
54
57
|
section
|
|
55
58
|
};
|
package/table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Attribs, AttribVal, MultiStringAttrib, NumericAttrib } from "./api.js";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const caption: import("./def.js").ElementFactory<Partial<Attribs>, any>, 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>;
|
|
3
3
|
export interface TableCellAttribs extends Attribs {
|
|
4
4
|
colspan: NumericAttrib;
|
|
5
5
|
headers: MultiStringAttrib;
|
package/table.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defElement, defElements } from "./def.js";
|
|
2
|
-
const [table, tbody, tfoot, thead, tr
|
|
2
|
+
const [caption, table, tbody, tfoot, thead, tr] = defElements([
|
|
3
|
+
"caption",
|
|
3
4
|
"table",
|
|
4
5
|
"tbody",
|
|
5
6
|
"tfoot",
|
|
6
7
|
"thead",
|
|
7
|
-
"tr"
|
|
8
|
-
"caption"
|
|
8
|
+
"tr"
|
|
9
9
|
]);
|
|
10
10
|
const td = defElement("td");
|
|
11
11
|
const th = defElement("th");
|