@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-07T20:40:47Z
3
+ - **Last updated**: 2024-03-13T14:04:31Z
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/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> | undefined) => IComponent<T[]>;
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> | undefined) => IComponent<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<import("@thi.ng/rstream").KeyStreams<T, K>, Promise<ComponentLike>>) => $Object<T, K>;
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<import("@thi.ng/rstream").KeyStreams<T, K>, Promise<ComponentLike>>) => IComponent<T>;
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.13",
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.29",
41
- "@thi.ng/checks": "^3.5.2",
42
- "@thi.ng/errors": "^2.4.20",
43
- "@thi.ng/hiccup": "^5.1.20",
44
- "@thi.ng/paths": "^5.1.72",
45
- "@thi.ng/prefixes": "^2.3.12",
46
- "@thi.ng/rstream": "^8.3.12",
47
- "@thi.ng/strings": "^3.7.22"
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.40.1",
51
- "esbuild": "^0.20.0",
50
+ "@microsoft/api-extractor": "^7.42.3",
51
+ "esbuild": "^0.20.1",
52
52
  "rimraf": "^5.0.5",
53
- "typedoc": "^0.25.7",
54
- "typescript": "^5.3.3"
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": "69100942474942f7446ac645d59d91e7dfc352f9\n"
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>> | undefined) => IComponent<T>;
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>> | undefined) => IComponent<T>;
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>>>;