@thi.ng/rdom 1.1.5 → 1.1.7

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-02-22T11:59:16Z
3
+ - **Last updated**: 2024-02-25T14:07:53Z
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/event.d.ts CHANGED
@@ -4,6 +4,9 @@ import type { ISubscriber } from "@thi.ng/rstream";
4
4
  *
5
5
  * @example
6
6
  * ```ts
7
+ * import { $compile, $input } from "@thi.ng/rdom";
8
+ * import { reactive } from "@thi.ng/rstream";
9
+ *
7
10
  * const name = reactive("");
8
11
  *
9
12
  * $compile(
package/klist.d.ts CHANGED
@@ -21,6 +21,9 @@ export interface KListItem {
21
21
  *
22
22
  * @example
23
23
  * ```ts
24
+ * import { $klist } from "@thi.ng/rdom";
25
+ * import { reactive } from "@thi.ng/rstream";
26
+ *
24
27
  * const items = reactive([{id: "a", val: 1}, {id: "b", val: 2}, {id: "c", val: 3}]);
25
28
  *
26
29
  * $klist(
package/list.d.ts CHANGED
@@ -19,6 +19,9 @@ import { Component } from "./component.js";
19
19
  *
20
20
  * @example
21
21
  * ```ts
22
+ * import { $list } from "@thi.ng/rdom";
23
+ * import { reactive } from "@thi.ng/rstream";
24
+ *
22
25
  * const items = reactive([{id: "a"}, {id: "b"}, {id: "c"}]);
23
26
  *
24
27
  * $list(
@@ -42,7 +45,6 @@ import { Component } from "./component.js";
42
45
  * // keeps C
43
46
  * ```
44
47
  *
45
- *
46
48
  * @param src -
47
49
  * @param tag -
48
50
  * @param attribs -
package/object.d.ts CHANGED
@@ -26,6 +26,8 @@ import { Component } from "./component.js";
26
26
  *
27
27
  * @example
28
28
  * ```ts
29
+ * import { $object, type ComponentLike } from "@thi.ng/rdom";
30
+ *
29
31
  * const obj = $object(
30
32
  * // source object (for seeding)
31
33
  * { id: "a", name: "foo", ignore: 23 },
@@ -51,6 +53,9 @@ export declare const $object: <T extends object, K extends keyof T>(src: T, opts
51
53
  *
52
54
  * @example
53
55
  * ```ts
56
+ * import { $subObject, type ComponentLike } from "@thi.ng/rdom";
57
+ * import { reactive } from "@thi.ng/rstream";
58
+ *
54
59
  * interface Foo {
55
60
  * id: string;
56
61
  * name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rdom",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,14 +36,14 @@
36
36
  "test": "bun test"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.25",
39
+ "@thi.ng/api": "^8.9.26",
40
40
  "@thi.ng/checks": "^3.5.0",
41
41
  "@thi.ng/errors": "^2.4.18",
42
- "@thi.ng/hiccup": "^5.1.14",
43
- "@thi.ng/paths": "^5.1.67",
42
+ "@thi.ng/hiccup": "^5.1.15",
43
+ "@thi.ng/paths": "^5.1.68",
44
44
  "@thi.ng/prefixes": "^2.3.10",
45
- "@thi.ng/rstream": "^8.3.6",
46
- "@thi.ng/strings": "^3.7.16"
45
+ "@thi.ng/rstream": "^8.3.8",
46
+ "@thi.ng/strings": "^3.7.17"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@microsoft/api-extractor": "^7.40.1",
@@ -142,5 +142,5 @@
142
142
  ],
143
143
  "year": 2020
144
144
  },
145
- "gitHead": "4513a1c703bdbf0f0867f03e547e47692e415fac\n"
145
+ "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
146
146
  }
package/promise.d.ts CHANGED
@@ -8,6 +8,8 @@ import { Component } from "./component.js";
8
8
  *
9
9
  * @example
10
10
  * ```ts
11
+ * import { $promise, type ComponentLike } from "@thi.ng/rdom";
12
+ *
11
13
  * const prom = Promise.resolve<ComponentLike>(
12
14
  * ["div", {}, "Resolved!"]
13
15
  * );
package/sub.d.ts CHANGED
@@ -16,6 +16,9 @@ import type { IComponent, IMountWithState, NumOrElement } from "./api.js";
16
16
  *
17
17
  * @example
18
18
  * ```ts
19
+ * import { $sub } from "@thi.ng/rdom";
20
+ * import { reactive } from "@thi.ng/rstream";
21
+ *
19
22
  * const src = reactive(42).map((x) => `value: ${x}`);
20
23
  *
21
24
  * $sub(src, "div", { class: "red" }).mount(document.body);
package/switch.d.ts CHANGED
@@ -29,6 +29,9 @@ import { Component } from "./component.js";
29
29
  *
30
30
  * @example
31
31
  * ```ts
32
+ * import { $switch } from "@thi.ng/rdom";
33
+ * import { fromInterval } from "@thi.ng/rstream";
34
+ *
32
35
  * $switch(
33
36
  * fromInterval(1000),
34
37
  * (x) => x % 3,
@@ -71,6 +74,9 @@ export declare const $switch: <T>(src: ISubscribable<T>, keyFn: Fn<T, NumOrStrin
71
74
  *
72
75
  * @example
73
76
  * ```ts
77
+ * import { $refresh } from "@thi.ng/rdom";
78
+ * import { fromInterval } from "@thi.ng/rstream";
79
+ *
74
80
  * $refresh(fromInterval(1000), async (x) => ["div", {}, x])
75
81
  * ```
76
82
  *