@thi.ng/hiccup-html 2.3.4 → 2.4.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 +7 -1
- package/README.md +5 -4
- package/api.d.ts +1 -0
- package/blocks.d.ts +4 -0
- package/blocks.js +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**:
|
|
3
|
+
- **Last updated**: 2024-01-23T15:58:26Z
|
|
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,12 @@ 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.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.4.0) (2024-01-23)
|
|
13
|
+
|
|
14
|
+
#### 🚀 Features
|
|
15
|
+
|
|
16
|
+
- add slot() element factory ([c7612a4](https://github.com/thi-ng/umbrella/commit/c7612a4))
|
|
17
|
+
|
|
12
18
|
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.3.0) (2023-12-09)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/README.md
CHANGED
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|

|
|
8
8
|
[](https://mastodon.thi.ng/@toxi)
|
|
9
9
|
|
|
10
|
-
This project
|
|
11
|
-
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and
|
|
10
|
+
This is a standalone project, maintained as part of the
|
|
11
|
+
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and
|
|
12
|
+
anti-framework.
|
|
12
13
|
|
|
13
14
|
- [About](#about)
|
|
14
15
|
- [Supported elements](#supported-elements)
|
|
@@ -192,7 +193,7 @@ For Node.js REPL:
|
|
|
192
193
|
const hiccupHtml = await import("@thi.ng/hiccup-html");
|
|
193
194
|
```
|
|
194
195
|
|
|
195
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 1.
|
|
196
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 1.49 KB
|
|
196
197
|
|
|
197
198
|
## Dependencies
|
|
198
199
|
|
|
@@ -385,4 +386,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
385
386
|
|
|
386
387
|
## License
|
|
387
388
|
|
|
388
|
-
© 2020 -
|
|
389
|
+
© 2020 - 2024 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export interface Attribs extends GlobalEventAttribs, MicroformatAttribs, RDFaAtt
|
|
|
85
85
|
scrollLeft: NumericAttrib;
|
|
86
86
|
scrollTop: NumericAttrib;
|
|
87
87
|
spellcheck: BooleanAttrib;
|
|
88
|
+
slot: string;
|
|
88
89
|
style: AttribVal<string | Partial<Record<CSSProperty | CSSSVGProperty, AttribVal<NumOrString | Fn<any, NumOrString>>>>>;
|
|
89
90
|
tabindex: NumericAttrib;
|
|
90
91
|
title: StringAttrib;
|
package/blocks.d.ts
CHANGED
|
@@ -16,4 +16,8 @@ export interface IFrameAttribs extends Attribs, DimensionAttribs, ImportanceAttr
|
|
|
16
16
|
srcdoc: StringAttrib;
|
|
17
17
|
}
|
|
18
18
|
export declare const iframe: import("./def.js").ElementFactory<Partial<IFrameAttribs>, any>;
|
|
19
|
+
export interface SlotAttribs extends Attribs {
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const slot: import("./def.js").ElementFactory<Partial<SlotAttribs>, any>;
|
|
19
23
|
//# sourceMappingURL=blocks.d.ts.map
|
package/blocks.js
CHANGED
|
@@ -10,6 +10,7 @@ const [div, figure, figcaption, para, pre, template] = defElements([
|
|
|
10
10
|
]);
|
|
11
11
|
const hr = defElement("hr");
|
|
12
12
|
const iframe = defElement("iframe");
|
|
13
|
+
const slot = defElement("slot");
|
|
13
14
|
export {
|
|
14
15
|
blockquote,
|
|
15
16
|
div,
|
|
@@ -19,5 +20,6 @@ export {
|
|
|
19
20
|
iframe,
|
|
20
21
|
para,
|
|
21
22
|
pre,
|
|
23
|
+
slot,
|
|
22
24
|
template
|
|
23
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-html",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
38
|
+
"@thi.ng/api": "^8.9.17"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@microsoft/api-extractor": "^7.39.0",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
],
|
|
111
111
|
"year": 2020
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "417b5a7ea7bd54a3b4f086fe0fc2ce8e8933c9b2\n"
|
|
114
114
|
}
|