@thi.ng/rdom 1.1.6 → 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 +1 -1
- package/event.d.ts +3 -0
- package/klist.d.ts +3 -0
- package/list.d.ts +3 -1
- package/object.d.ts +5 -0
- package/package.json +7 -7
- package/promise.d.ts +2 -0
- package/sub.d.ts +3 -0
- package/switch.d.ts +6 -0
package/CHANGELOG.md
CHANGED
package/event.d.ts
CHANGED
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.
|
|
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.
|
|
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.
|
|
43
|
-
"@thi.ng/paths": "^5.1.
|
|
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.
|
|
46
|
-
"@thi.ng/strings": "^3.7.
|
|
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": "
|
|
145
|
+
"gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
|
|
146
146
|
}
|
package/promise.d.ts
CHANGED
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
|
*
|