@thi.ng/hiccup-html 2.4.11 → 2.4.13
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 +1 -1
- package/README.md +4 -0
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -342,6 +342,8 @@ will be appended to the tag name and merely acts as syntax sugar for
|
|
|
342
342
|
providing an element ID and/or CSS classes.
|
|
343
343
|
|
|
344
344
|
```ts
|
|
345
|
+
import { defElement } from "@thi.ng/hiccup-html";
|
|
346
|
+
|
|
345
347
|
const el = defElement<any>("a");
|
|
346
348
|
```
|
|
347
349
|
|
|
@@ -358,6 +360,8 @@ const el = defElement<any>("a");
|
|
|
358
360
|
| `el("#id.foo", null, "body")` | `["a#id.foo", null, "body"]` |
|
|
359
361
|
|
|
360
362
|
```ts
|
|
363
|
+
import { defElement } from "@thi.ng/hiccup-html";
|
|
364
|
+
|
|
361
365
|
// with default attribs
|
|
362
366
|
const el = defElement<any>("a", { b: 1 });
|
|
363
367
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup-html",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.13",
|
|
4
4
|
"description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -32,10 +32,11 @@
|
|
|
32
32
|
"doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
|
|
33
33
|
"doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
|
|
34
34
|
"pub": "yarn npm publish --access public",
|
|
35
|
-
"test": "bun test"
|
|
35
|
+
"test": "bun test",
|
|
36
|
+
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.9.
|
|
39
|
+
"@thi.ng/api": "^8.9.28"
|
|
39
40
|
},
|
|
40
41
|
"devDependencies": {
|
|
41
42
|
"@microsoft/api-extractor": "^7.40.1",
|
|
@@ -110,5 +111,5 @@
|
|
|
110
111
|
],
|
|
111
112
|
"year": 2020
|
|
112
113
|
},
|
|
113
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "a421058a65ba76608d94129ac29451bfedaf201c\n"
|
|
114
115
|
}
|