@thi.ng/hiccup-html 2.3.5 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-12-31T09:44:24Z
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
@@ -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.47 KB
196
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.49 KB
197
197
 
198
198
  ## Dependencies
199
199
 
@@ -386,4 +386,4 @@ If this project contributes to an academic publication, please cite it as:
386
386
 
387
387
  ## License
388
388
 
389
- © 2020 - 2023 Karsten Schmidt // Apache License 2.0
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.5",
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.16"
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": "b3db173682e1148cf08a6bd907b8d90b47b7c066\n"
113
+ "gitHead": "417b5a7ea7bd54a3b4f086fe0fc2ce8e8933c9b2\n"
114
114
  }