@thi.ng/hiccup-html 2.3.5 → 2.4.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 +7 -1
- package/README.md +3 -2
- package/api.d.ts +1 -0
- package/blocks.d.ts +4 -0
- package/blocks.js +2 -0
- package/inline.d.ts +1 -2
- 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-26T18:03:04Z
|
|
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
|
@@ -193,7 +193,7 @@ For Node.js REPL:
|
|
|
193
193
|
const hiccupHtml = await import("@thi.ng/hiccup-html");
|
|
194
194
|
```
|
|
195
195
|
|
|
196
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 1.
|
|
196
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 1.49 KB
|
|
197
197
|
|
|
198
198
|
## Dependencies
|
|
199
199
|
|
|
@@ -208,6 +208,7 @@ directory are using this package:
|
|
|
208
208
|
| Screenshot | Description | Live demo | Source |
|
|
209
209
|
|:---------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------|:----------------------------------------------------------|:---------------------------------------------------------------------------------------|
|
|
210
210
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/big-font.png" width="240"/> | Large ASCII font text generator using @thi.ng/rdom | [Demo](https://demo.thi.ng/umbrella/big-font/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/big-font) |
|
|
211
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/blurhash.jpg" width="240"/> | Interactive & reactive image blurhash generator | [Demo](https://demo.thi.ng/umbrella/blurhash/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/blurhash) |
|
|
211
212
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/canvas-recorder.png" width="240"/> | Self-modifying, animated typographic grid with emergent complex patterns | [Demo](https://demo.thi.ng/umbrella/canvas-recorder/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/canvas-recorder) |
|
|
212
213
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/color-themes.png" width="240"/> | Probabilistic color theme generator | [Demo](https://demo.thi.ng/umbrella/color-themes/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/color-themes) |
|
|
213
214
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/dominant-colors.png" width="240"/> | Color palette generation via dominant color extraction from uploaded images | [Demo](https://demo.thi.ng/umbrella/dominant-colors/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/dominant-colors) |
|
|
@@ -386,4 +387,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
386
387
|
|
|
387
388
|
## License
|
|
388
389
|
|
|
389
|
-
© 2020 -
|
|
390
|
+
© 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/inline.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NumOrString } from "@thi.ng/api";
|
|
2
2
|
import type { Attribs, AttribVal, MultiStringAttrib, ReferrerAttribs, RelAttribs, StringAttrib } from "./api.js";
|
|
3
|
-
interface AnchorAttribs extends RelAttribs, ReferrerAttribs {
|
|
3
|
+
export interface AnchorAttribs extends RelAttribs, ReferrerAttribs {
|
|
4
4
|
download: StringAttrib;
|
|
5
5
|
href: StringAttrib;
|
|
6
6
|
hreflang: StringAttrib;
|
|
@@ -28,5 +28,4 @@ export interface EditAttribs extends Attribs {
|
|
|
28
28
|
datetime: StringAttrib;
|
|
29
29
|
}
|
|
30
30
|
export declare const del: import("./def.js").ElementFactory<Partial<EditAttribs>, any>, ins: import("./def.js").ElementFactory<Partial<EditAttribs>, any>;
|
|
31
|
-
export {};
|
|
32
31
|
//# sourceMappingURL=inline.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-html",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.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",
|
|
@@ -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.18"
|
|
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": "7426e2ae6fca5482c6eaf649872296fc89955374\n"
|
|
114
114
|
}
|