@thi.ng/rdom 0.8.7 → 0.8.10
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/dom.d.ts +1 -1
- package/package.json +14 -14
- package/promise.d.ts +1 -1
- package/switch.d.ts +2 -2
package/CHANGELOG.md
CHANGED
package/dom.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export declare const $tree: (tree: any, parent: Element, idx?: NumOrElement) =>
|
|
|
40
40
|
* @param parent -
|
|
41
41
|
* @param idx -
|
|
42
42
|
*/
|
|
43
|
-
export declare const $el: (tag: string, attribs: any, body?: any, parent?: Element
|
|
43
|
+
export declare const $el: (tag: string, attribs: any, body?: any, parent?: Element, idx?: NumOrElement) => Element;
|
|
44
44
|
export declare const $addChild: (parent: Element, child: Element, idx?: NumOrElement) => void;
|
|
45
45
|
export declare const $remove: (el: Element) => void;
|
|
46
46
|
export declare const $moveTo: (newParent: Element, el: Element, idx?: NumOrElement) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rdom",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.10",
|
|
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",
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
"test": "testament test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.3.
|
|
39
|
-
"@thi.ng/checks": "^3.
|
|
40
|
-
"@thi.ng/errors": "^2.1.
|
|
41
|
-
"@thi.ng/hiccup": "^4.2.
|
|
42
|
-
"@thi.ng/paths": "^5.1.
|
|
43
|
-
"@thi.ng/prefixes": "^2.1.
|
|
44
|
-
"@thi.ng/rstream": "^7.2.
|
|
45
|
-
"@thi.ng/strings": "^3.3.
|
|
38
|
+
"@thi.ng/api": "^8.3.7",
|
|
39
|
+
"@thi.ng/checks": "^3.2.0",
|
|
40
|
+
"@thi.ng/errors": "^2.1.7",
|
|
41
|
+
"@thi.ng/hiccup": "^4.2.8",
|
|
42
|
+
"@thi.ng/paths": "^5.1.7",
|
|
43
|
+
"@thi.ng/prefixes": "^2.1.7",
|
|
44
|
+
"@thi.ng/rstream": "^7.2.7",
|
|
45
|
+
"@thi.ng/strings": "^3.3.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@microsoft/api-extractor": "^7.
|
|
49
|
-
"@thi.ng/testament": "^0.2.
|
|
48
|
+
"@microsoft/api-extractor": "^7.25.0",
|
|
49
|
+
"@thi.ng/testament": "^0.2.8",
|
|
50
50
|
"rimraf": "^3.0.2",
|
|
51
51
|
"tools": "^0.0.1",
|
|
52
|
-
"typedoc": "^0.22.
|
|
53
|
-
"typescript": "^4.
|
|
52
|
+
"typedoc": "^0.22.17",
|
|
53
|
+
"typescript": "^4.7.3"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
56
56
|
"async",
|
|
@@ -140,5 +140,5 @@
|
|
|
140
140
|
"status": "beta",
|
|
141
141
|
"year": 2020
|
|
142
142
|
},
|
|
143
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "9e516d30a1a537e027a6b3d78bf9121bc5831d31\n"
|
|
144
144
|
}
|
package/promise.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { Component } from "./component.js";
|
|
|
18
18
|
* @param prom -
|
|
19
19
|
* @param error -
|
|
20
20
|
*/
|
|
21
|
-
export declare const $promise: (prom: Promise<ComponentLike>, error?: Fn<Error, any>
|
|
21
|
+
export declare const $promise: (prom: Promise<ComponentLike>, error?: Fn<Error, any>) => $Promise;
|
|
22
22
|
export declare class $Promise extends Component {
|
|
23
23
|
protected promise: Promise<ComponentLike>;
|
|
24
24
|
protected error: Fn<Error, any>;
|
package/switch.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ import { Component } from "./component.js";
|
|
|
54
54
|
* @param error -
|
|
55
55
|
* @param loader -
|
|
56
56
|
*/
|
|
57
|
-
export declare const $switch: <T>(src: ISubscribable<T>, keyFn: Fn<T, NumOrString>, ctors: Record<NumOrString, Fn<T, Promise<any>>>, error?: Fn<Error, Promise<any
|
|
57
|
+
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>> | undefined) => IComponent<T>;
|
|
58
58
|
/**
|
|
59
59
|
* Syntax sugar for {@link $switch} for cases when there's only a single
|
|
60
60
|
* component which should transition through its entire lifecycle for
|
|
@@ -77,7 +77,7 @@ export declare const $switch: <T>(src: ISubscribable<T>, keyFn: Fn<T, NumOrStrin
|
|
|
77
77
|
* @param error -
|
|
78
78
|
* @param loader -
|
|
79
79
|
*/
|
|
80
|
-
export declare const $refresh: <T>(src: ISubscribable<T>, ctor: Fn<T, Promise<any>>, error?: Fn<Error, Promise<any
|
|
80
|
+
export declare const $refresh: <T>(src: ISubscribable<T>, ctor: Fn<T, Promise<any>>, error?: Fn<Error, Promise<any>>, loader?: Fn<T, Promise<any>> | undefined) => IComponent<T>;
|
|
81
81
|
export declare class Switch<T> extends Component implements IMountWithState<T> {
|
|
82
82
|
protected keyFn: Fn<T, NumOrString>;
|
|
83
83
|
protected ctors: Record<NumOrString, Fn<T, Promise<any>>>;
|