@thi.ng/rdom 1.1.13 → 1.1.14
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/klist.d.ts +1 -1
- package/list.d.ts +1 -1
- package/object.d.ts +2 -2
- package/package.json +14 -14
- package/switch.d.ts +2 -2
package/CHANGELOG.md
CHANGED
package/klist.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export interface KListItem {
|
|
|
61
61
|
* @param childCtor -
|
|
62
62
|
* @param keyFn -
|
|
63
63
|
*/
|
|
64
|
-
export declare const $klist: <T>(src: ISubscribable<T[]>, tag: string, attribs: any, childCtor: Fn<T, any>, keyFn?: Fn2<T, number, NumOrString>
|
|
64
|
+
export declare const $klist: <T>(src: ISubscribable<T[]>, tag: string, attribs: any, childCtor: Fn<T, any>, keyFn?: Fn2<T, number, NumOrString>) => IComponent<T[]>;
|
|
65
65
|
export declare class KList<T> extends Component<T[]> implements IMountWithState<T[]> {
|
|
66
66
|
protected tag: string;
|
|
67
67
|
protected attribs: any;
|
package/list.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ import { Component } from "./component.js";
|
|
|
51
51
|
* @param ctor -
|
|
52
52
|
* @param equiv -
|
|
53
53
|
*/
|
|
54
|
-
export declare const $list: <T>(src: ISubscribable<T[]>, tag: string, attribs: any, ctor: Fn<T, any>, equiv?: Predicate2<T>
|
|
54
|
+
export declare const $list: <T>(src: ISubscribable<T[]>, tag: string, attribs: any, ctor: Fn<T, any>, equiv?: Predicate2<T>) => IComponent<T[]>;
|
|
55
55
|
export declare class List<T> extends Component implements IMountWithState<T[]> {
|
|
56
56
|
protected tag: string;
|
|
57
57
|
protected attribs: any;
|
package/object.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ import { Component } from "./component.js";
|
|
|
46
46
|
* @param opts - options for `fromObject()` stream setup
|
|
47
47
|
* @param inner -
|
|
48
48
|
*/
|
|
49
|
-
export declare const $object: <T extends object, K extends keyof T>(src: T, opts: Partial<StreamObjOpts<T, K>>, inner: Fn<
|
|
49
|
+
export declare const $object: <T extends object, K extends keyof T>(src: T, opts: Partial<StreamObjOpts<T, K>>, inner: Fn<StreamObj<T, K>["streams"], Promise<ComponentLike>>) => $Object<T, K>;
|
|
50
50
|
/**
|
|
51
51
|
* Syntax sugar for a combination of {@link $sub} and {@link $object} to allow
|
|
52
52
|
* reactive updates of `$object()` components themselves.
|
|
@@ -79,7 +79,7 @@ export declare const $object: <T extends object, K extends keyof T>(src: T, opts
|
|
|
79
79
|
* @param opts -
|
|
80
80
|
* @param inner -
|
|
81
81
|
*/
|
|
82
|
-
export declare const $subObject: <T extends object, K extends keyof T>(src: ISubscribable<T>, opts: Partial<StreamObjOpts<T, K>>, inner: Fn<
|
|
82
|
+
export declare const $subObject: <T extends object, K extends keyof T>(src: ISubscribable<T>, opts: Partial<StreamObjOpts<T, K>>, inner: Fn<StreamObj<T, K>["streams"], Promise<ComponentLike>>) => IComponent<T>;
|
|
83
83
|
export declare class $Object<T extends object, K extends Keys<T>> extends Component implements IMountWithState<T> {
|
|
84
84
|
protected ctor: Fn<StreamObj<T, K>["streams"], Promise<ComponentLike>>;
|
|
85
85
|
protected obj: StreamObj<T, K>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rdom",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
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",
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@thi.ng/api": "^8.9.
|
|
41
|
-
"@thi.ng/checks": "^3.5.
|
|
42
|
-
"@thi.ng/errors": "^2.
|
|
43
|
-
"@thi.ng/hiccup": "^5.1.
|
|
44
|
-
"@thi.ng/paths": "^5.1.
|
|
45
|
-
"@thi.ng/prefixes": "^2.3.
|
|
46
|
-
"@thi.ng/rstream": "^8.3.
|
|
47
|
-
"@thi.ng/strings": "^3.7.
|
|
40
|
+
"@thi.ng/api": "^8.9.30",
|
|
41
|
+
"@thi.ng/checks": "^3.5.3",
|
|
42
|
+
"@thi.ng/errors": "^2.5.0",
|
|
43
|
+
"@thi.ng/hiccup": "^5.1.21",
|
|
44
|
+
"@thi.ng/paths": "^5.1.73",
|
|
45
|
+
"@thi.ng/prefixes": "^2.3.13",
|
|
46
|
+
"@thi.ng/rstream": "^8.3.13",
|
|
47
|
+
"@thi.ng/strings": "^3.7.23"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@microsoft/api-extractor": "^7.
|
|
51
|
-
"esbuild": "^0.20.
|
|
50
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
51
|
+
"esbuild": "^0.20.1",
|
|
52
52
|
"rimraf": "^5.0.5",
|
|
53
|
-
"typedoc": "^0.25.
|
|
54
|
-
"typescript": "^5.
|
|
53
|
+
"typedoc": "^0.25.12",
|
|
54
|
+
"typescript": "^5.4.2"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
57
57
|
"async",
|
|
@@ -143,5 +143,5 @@
|
|
|
143
143
|
],
|
|
144
144
|
"year": 2020
|
|
145
145
|
},
|
|
146
|
-
"gitHead": "
|
|
146
|
+
"gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
|
|
147
147
|
}
|
package/switch.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ import { Component } from "./component.js";
|
|
|
57
57
|
* @param error -
|
|
58
58
|
* @param loader -
|
|
59
59
|
*/
|
|
60
|
-
export declare const $switch: <T>(src: ISubscribable<T>, keyFn: Fn<T, NumOrString>, ctors: Record<NumOrString, Fn<T, Promise<any>>>, error?: Fn<Error, Promise<any>>, loader?: Fn<T, Promise<any>>
|
|
60
|
+
export declare const $switch: <T>(src: ISubscribable<T>, keyFn: Fn<T, NumOrString>, ctors: Record<NumOrString, Fn<T, Promise<any>>>, error?: Fn<Error, Promise<any>>, loader?: Fn<T, Promise<any>>) => IComponent<T>;
|
|
61
61
|
/**
|
|
62
62
|
* Syntax sugar for {@link $switch} for cases when there's only a single
|
|
63
63
|
* component which should transition through its entire lifecycle for
|
|
@@ -85,7 +85,7 @@ export declare const $switch: <T>(src: ISubscribable<T>, keyFn: Fn<T, NumOrStrin
|
|
|
85
85
|
* @param error -
|
|
86
86
|
* @param loader -
|
|
87
87
|
*/
|
|
88
|
-
export declare const $refresh: <T>(src: ISubscribable<T>, ctor: Fn<T, Promise<any>>, error?: Fn<Error, Promise<any>>, loader?: Fn<T, Promise<any>>
|
|
88
|
+
export declare const $refresh: <T>(src: ISubscribable<T>, ctor: Fn<T, Promise<any>>, error?: Fn<Error, Promise<any>>, loader?: Fn<T, Promise<any>>) => IComponent<T>;
|
|
89
89
|
export declare class Switch<T> extends Component implements IMountWithState<T> {
|
|
90
90
|
protected keyFn: Fn<T, NumOrString>;
|
|
91
91
|
protected ctors: Record<NumOrString, Fn<T, Promise<any>>>;
|