@thi.ng/hdom 9.4.19 → 9.4.21

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**: 2024-03-01T15:22:50Z
3
+ - **Last updated**: 2024-03-07T20:40:47Z
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.
package/README.md CHANGED
@@ -660,6 +660,8 @@ repo, but also any user defined custom types:
660
660
  - [streams](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream)
661
661
 
662
662
  ```ts
663
+ import { serialize } from "@thi.ng/hiccup";
664
+
663
665
  class Foo {
664
666
  constructor(val) {
665
667
  this.value = val;
@@ -766,6 +768,8 @@ Any remaining arguments are sourced from the component call site as
766
768
  this simple example demonstrates:
767
769
 
768
770
  ```ts
771
+ import { start } from "@thi.ng/hdom";
772
+
769
773
  // wrap in closure to allow multiple instances
770
774
  const canvas = () => {
771
775
  return {
package/api.d.ts CHANGED
@@ -181,7 +181,7 @@ export interface HDOMImplementation<T> {
181
181
  * to `diffTree()`. Recursively expands given hiccup component tree into its
182
182
  * canonical form:
183
183
  *
184
- * ```
184
+ * ```ts
185
185
  * ["tag", { attribs }, ...body]
186
186
  * ```
187
187
  *
@@ -344,7 +344,7 @@ export interface HDOMImplementation<T> {
344
344
  /**
345
345
  * A (potentially) optimized version of these 2 operations in sequence:
346
346
  *
347
- * ```
347
+ * ```ts
348
348
  * impl.removeChild(parent, child);
349
349
  * impl.createTree(parent, child, newTree);
350
350
  * ```
package/normalize.d.ts CHANGED
@@ -2,21 +2,21 @@ import type { HDOMOpts } from "./api.js";
2
2
  /**
3
3
  * Expands single hiccup element/component into its canonical form:
4
4
  *
5
- * ```
5
+ * ```ts
6
6
  * [tagname, {attribs}, ...children]
7
7
  * ```
8
8
  *
9
9
  * Emmet-style ID and class names in the original tagname are moved into
10
10
  * the attribs object, e.g.:
11
11
  *
12
- * ```
12
+ * ```ts
13
13
  * ["div#foo.bar.baz"] => ["div", {id: "foo", class: "bar baz"}]
14
14
  * ```
15
15
  *
16
16
  * If both Emmet-style classes AND a `class` attrib exists, the former
17
17
  * are appended to the latter:
18
18
  *
19
- * ```
19
+ * ```ts
20
20
  * ["div.bar.baz", {class: "foo"}] => ["div", {class: "foo bar baz"}]
21
21
  * ```
22
22
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom",
3
- "version": "9.4.19",
3
+ "version": "9.4.21",
4
4
  "description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,21 +35,22 @@
35
35
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
36
36
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
37
  "pub": "yarn npm publish --access public",
38
- "test": "bun test"
38
+ "test": "bun test",
39
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
39
40
  },
40
41
  "dependencies": {
41
- "@thi.ng/api": "^8.9.27",
42
- "@thi.ng/checks": "^3.5.1",
43
- "@thi.ng/diff": "^5.1.60",
44
- "@thi.ng/equiv": "^2.1.50",
45
- "@thi.ng/errors": "^2.4.19",
46
- "@thi.ng/hiccup": "^5.1.17",
47
- "@thi.ng/logger": "^3.0.4",
48
- "@thi.ng/prefixes": "^2.3.11"
42
+ "@thi.ng/api": "^8.9.28",
43
+ "@thi.ng/checks": "^3.5.2",
44
+ "@thi.ng/diff": "^5.1.61",
45
+ "@thi.ng/equiv": "^2.1.51",
46
+ "@thi.ng/errors": "^2.4.20",
47
+ "@thi.ng/hiccup": "^5.1.19",
48
+ "@thi.ng/logger": "^3.0.5",
49
+ "@thi.ng/prefixes": "^2.3.12"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@microsoft/api-extractor": "^7.40.1",
52
- "@thi.ng/atom": "^5.2.34",
53
+ "@thi.ng/atom": "^5.2.36",
53
54
  "esbuild": "^0.20.0",
54
55
  "rimraf": "^5.0.5",
55
56
  "typedoc": "^0.25.7",
@@ -131,5 +132,5 @@
131
132
  "status": "completed",
132
133
  "year": 2015
133
134
  },
134
- "gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
135
+ "gitHead": "a421058a65ba76608d94129ac29451bfedaf201c\n"
135
136
  }