@kosdev-code/kos-ui-sdk 0.1.0-dev.5382 → 0.1.0-dev.5603
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/core/core/decorators/index.d.ts +1 -0
- package/core/core/decorators/index.d.ts.map +1 -1
- package/core/core/decorators/kos-view-model.d.ts +162 -0
- package/core/core/decorators/kos-view-model.d.ts.map +1 -0
- package/core/core/decorators/kosModel.d.ts.map +1 -1
- package/core/core/decorators/propKeys.d.ts +3 -0
- package/core/core/decorators/propKeys.d.ts.map +1 -1
- package/core/core/extension/extension-manager.d.ts +13 -3
- package/core/core/extension/extension-manager.d.ts.map +1 -1
- package/core/core/kosModel.d.ts +1 -0
- package/core/core/kosModel.d.ts.map +1 -1
- package/core/core/transport/base-message-transport.d.ts +22 -2
- package/core/core/transport/base-message-transport.d.ts.map +1 -1
- package/core/core/transport/webSocketTransport.d.ts +1 -6
- package/core/core/transport/webSocketTransport.d.ts.map +1 -1
- package/core/util/ancestor-path-visitor.d.ts +58 -0
- package/core/util/ancestor-path-visitor.d.ts.map +1 -0
- package/core/util/index.d.ts +1 -0
- package/core/util/index.d.ts.map +1 -1
- package/core/util/kos-fetch.d.ts.map +1 -1
- package/core/util/kos-service-request.d.ts.map +1 -1
- package/core/util/observable-proxy-map.d.ts.map +1 -1
- package/core/util/service-factory.d.ts +14 -11
- package/core/util/service-factory.d.ts.map +1 -1
- package/index.cjs +75 -75
- package/index.cjs.map +1 -1
- package/index.js +5639 -5228
- package/index.js.map +1 -1
- package/models/models/kos-expression-evaluator/index.d.ts +1 -1
- package/models/models/kos-expression-evaluator/index.d.ts.map +1 -1
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -1
- package/models/utils/client.d.ts +8 -8
- package/models/utils/extension-manager.d.ts +45 -9
- package/models/utils/extension-manager.d.ts.map +1 -1
- package/models/utils/service.d.ts +8 -8
- package/models/utils/services/kos/1.6.5/service.d.ts +8 -8
- package/models/utils/services/kos/1.8.1/service.d.ts +8 -8
- package/models/utils/services/kos/daily/service.d.ts +8 -8
- package/models/utils/services/vfs/1.6.5/service.d.ts +8 -8
- package/models/utils/services/vfs/1.8.1/service.d.ts +8 -8
- package/models/utils/services/vfs/daily/service.d.ts +8 -8
- package/package.json +2 -2
- package/ui/hooks/index.d.ts +1 -0
- package/ui/hooks/index.d.ts.map +1 -1
- package/ui/hooks/view-model/index.d.ts +2 -0
- package/ui/hooks/view-model/index.d.ts.map +1 -0
- package/ui/hooks/view-model/use-view-model.d.ts +80 -0
- package/ui/hooks/view-model/use-view-model.d.ts.map +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { KosExpressionEvaluatorModel, KosExpressionEvaluatorModelImpl, } from './kos-expression-evaluator-model';
|
|
1
|
+
export type { KosExpressionEvaluatorModel, KosExpressionEvaluatorModelImpl, ExpressionResult, NamedExpression, } from './kos-expression-evaluator-model';
|
|
2
2
|
export type * from './types';
|
|
3
3
|
export declare const KosExpressionEvaluator: import('../../..').KosModelRegistrationType<import('./kos-expression-evaluator-model').KosExpressionEvaluatorModel<string>, import('./types').KosExpressionEvaluatorOptions>;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/kos-expression-evaluator/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/kos-expression-evaluator/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,2BAA2B,EAC3B,+BAA+B,EAC/B,gBAAgB,EAChB,eAAe,GAChB,MAAM,kCAAkC,CAAC;AAC1C,mBAAmB,SAAS,CAAC;AAE7B,eAAO,MAAM,sBAAsB,8KACW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kos-expression-evaluator-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/kos-expression-evaluator/kos-expression-evaluator-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,wBAAwB,EAC9B,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAGhE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAE7D,eAAO,MAAM,UAAU,mCAAmC,CAAC;AAE3D;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,gBAAgB;IAC/B,8EAA8E;IAC9E,KAAK,EAAE,OAAO,CAAC;IACf,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA+DD,MAAM,WAAW,eAAe;IAC9B,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,IAAI,MAAM,IAAI,gBAAgB,CAAC;IAC/B,gEAAgE;IAChE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,gBAAgB,CAAC;IACjE,yCAAyC;IACzC,YAAY,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,MAAM,2BAA2B,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAC/D,oBAAoB,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3D;;;GAGG;AACH,qBACa,+BAA+B,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,CACpE,YAAW,aAAa,EAAE,gBAAgB;IAG1C,MAAM,CAAC,YAAY,EAAE,wBAAwB,CAC3C,2BAA2B,EAC3B,6BAA6B,CAC9B,CAAC;IACF,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,MAAM,CAAmB;IAEjC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,KAAK,CAAmC;IAChD,OAAO,CAAC,YAAY,CAAsC;IAE1D,OAAO,CAAC,QAAQ,CAA4C;IAC5D,OAAO,CAAC,gBAAgB,CAAK;gBAG3B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,6BAA6B,EACvC,OAAO,EAAE,kBAAkB;
|
|
1
|
+
{"version":3,"file":"kos-expression-evaluator-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/models/models/kos-expression-evaluator/kos-expression-evaluator-model.ts"],"names":[],"mappings":"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"}
|
package/models/utils/client.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ export declare const api: {
|
|
|
8
8
|
ordered?: boolean | undefined;
|
|
9
9
|
tracker?: string | undefined;
|
|
10
10
|
timeout?: number | undefined;
|
|
11
|
+
destinationAddress?: string | undefined;
|
|
12
|
+
bridge?: boolean | undefined;
|
|
11
13
|
headers?: Record<string, string> | undefined;
|
|
12
14
|
fos?: boolean | undefined;
|
|
13
|
-
bridge?: boolean | undefined;
|
|
14
|
-
destinationAddress?: string | undefined;
|
|
15
15
|
studio?: boolean | undefined;
|
|
16
16
|
signal?: AbortSignal | undefined;
|
|
17
17
|
stream?: boolean | undefined;
|
|
@@ -27,10 +27,10 @@ export declare const api: {
|
|
|
27
27
|
ordered?: boolean | undefined;
|
|
28
28
|
tracker?: string | undefined;
|
|
29
29
|
timeout?: number | undefined;
|
|
30
|
+
destinationAddress?: string | undefined;
|
|
31
|
+
bridge?: boolean | undefined;
|
|
30
32
|
headers?: Record<string, string> | undefined;
|
|
31
33
|
fos?: boolean | undefined;
|
|
32
|
-
bridge?: boolean | undefined;
|
|
33
|
-
destinationAddress?: string | undefined;
|
|
34
34
|
studio?: boolean | undefined;
|
|
35
35
|
signal?: AbortSignal | undefined;
|
|
36
36
|
stream?: boolean | undefined;
|
|
@@ -46,10 +46,10 @@ export declare const api: {
|
|
|
46
46
|
ordered?: boolean | undefined;
|
|
47
47
|
tracker?: string | undefined;
|
|
48
48
|
timeout?: number | undefined;
|
|
49
|
+
destinationAddress?: string | undefined;
|
|
50
|
+
bridge?: boolean | undefined;
|
|
49
51
|
headers?: Record<string, string> | undefined;
|
|
50
52
|
fos?: boolean | undefined;
|
|
51
|
-
bridge?: boolean | undefined;
|
|
52
|
-
destinationAddress?: string | undefined;
|
|
53
53
|
studio?: boolean | undefined;
|
|
54
54
|
signal?: AbortSignal | undefined;
|
|
55
55
|
stream?: boolean | undefined;
|
|
@@ -65,10 +65,10 @@ export declare const api: {
|
|
|
65
65
|
ordered?: boolean | undefined;
|
|
66
66
|
tracker?: string | undefined;
|
|
67
67
|
timeout?: number | undefined;
|
|
68
|
+
destinationAddress?: string | undefined;
|
|
69
|
+
bridge?: boolean | undefined;
|
|
68
70
|
headers?: Record<string, string> | undefined;
|
|
69
71
|
fos?: boolean | undefined;
|
|
70
|
-
bridge?: boolean | undefined;
|
|
71
|
-
destinationAddress?: string | undefined;
|
|
72
72
|
studio?: boolean | undefined;
|
|
73
73
|
signal?: AbortSignal | undefined;
|
|
74
74
|
stream?: boolean | undefined;
|
|
@@ -1,23 +1,59 @@
|
|
|
1
1
|
import { TroubleResponse } from '../models/trouble/services';
|
|
2
|
-
import { PropertyMapper, DataLoader } from '../../core';
|
|
2
|
+
import { ExtensionOptions, PropertyMapper, DataLoader } from '../../core';
|
|
3
3
|
|
|
4
4
|
export type TroubleRankMapper = PropertyMapper<TroubleResponse, number, any>;
|
|
5
5
|
export type TroubleColorMapper = PropertyMapper<TroubleResponse, string, any>;
|
|
6
6
|
export type TroubleRoleMapper = PropertyMapper<TroubleResponse, string, any>;
|
|
7
7
|
export declare class CoreExtensionManager {
|
|
8
8
|
/**
|
|
9
|
-
* Maps the rank property of the trouble into the {@link TroubleModel}
|
|
9
|
+
* Maps the rank property of the trouble into the {@link TroubleModel}.
|
|
10
|
+
*
|
|
11
|
+
* @param troubleRankMapper - Mapping function that derives a numeric rank from a {@link TroubleResponse}
|
|
12
|
+
* @param options - Optional {@link ExtensionOptions} to control failure behavior.
|
|
13
|
+
* Defaults to `failurePolicy: "throw"`, which throws an {@link ExtensionException} on mapper failure.
|
|
14
|
+
* Set to `"continue"` to log the error and return a fallback value instead.
|
|
15
|
+
* @returns this instance for chaining
|
|
10
16
|
* */
|
|
11
|
-
registerTroubleRankMapper(troubleRankMapper: TroubleRankMapper): this;
|
|
17
|
+
registerTroubleRankMapper(troubleRankMapper: TroubleRankMapper, options?: ExtensionOptions): this;
|
|
12
18
|
/**
|
|
13
|
-
* Maps the role property of the trouble into the {@link TroubleModel}
|
|
19
|
+
* Maps the role property of the trouble into the {@link TroubleModel}.
|
|
20
|
+
*
|
|
21
|
+
* @param troubleRoleMapper - Mapping function that derives a role string from a {@link TroubleResponse}
|
|
22
|
+
* @param options - Optional {@link ExtensionOptions} to control failure behavior.
|
|
23
|
+
* Defaults to `failurePolicy: "throw"`, which throws an {@link ExtensionException} on mapper failure.
|
|
24
|
+
* Set to `"continue"` to log the error and return a fallback value instead.
|
|
25
|
+
* @returns this instance for chaining
|
|
14
26
|
* */
|
|
15
|
-
registerTroubleRoleMapper(troubleRoleMapper: TroubleRoleMapper): this;
|
|
27
|
+
registerTroubleRoleMapper(troubleRoleMapper: TroubleRoleMapper, options?: ExtensionOptions): this;
|
|
16
28
|
/**
|
|
17
|
-
* Maps the color property of the trouble into the {@link TroubleModel}
|
|
29
|
+
* Maps the color property of the trouble into the {@link TroubleModel}.
|
|
30
|
+
*
|
|
31
|
+
* @param troubleColorMapper - Mapping function that derives a color string from a {@link TroubleResponse}
|
|
32
|
+
* @param options - Optional {@link ExtensionOptions} to control failure behavior.
|
|
33
|
+
* Defaults to `failurePolicy: "throw"`, which throws an {@link ExtensionException} on mapper failure.
|
|
34
|
+
* Set to `"continue"` to log the error and return a fallback value instead.
|
|
35
|
+
* @returns this instance for chaining
|
|
18
36
|
* */
|
|
19
|
-
registerTroubleColorMapper(troubleColorMapper: TroubleColorMapper): this;
|
|
20
|
-
|
|
21
|
-
|
|
37
|
+
registerTroubleColorMapper(troubleColorMapper: TroubleColorMapper, options?: ExtensionOptions): this;
|
|
38
|
+
/**
|
|
39
|
+
* Registers a data loader for a given model id. The loader is invoked during model
|
|
40
|
+
* initialization to fetch data that is provided as context to associated mappers.
|
|
41
|
+
*
|
|
42
|
+
* @param id - The model identifier to associate the loader with
|
|
43
|
+
* @param loader - Async function that loads and returns data for the model
|
|
44
|
+
* @param options - Optional {@link ExtensionOptions} to control failure behavior.
|
|
45
|
+
* Defaults to `failurePolicy: "throw"`, which throws an {@link ExtensionException} on loader failure.
|
|
46
|
+
* Set to `"continue"` to log the error and return `undefined` instead.
|
|
47
|
+
*/
|
|
48
|
+
registerModelLoader(id: string, loader: DataLoader, options?: ExtensionOptions): void;
|
|
49
|
+
/**
|
|
50
|
+
* Registers a data loader for the {@link CanvasDispatcher} pattern data.
|
|
51
|
+
*
|
|
52
|
+
* @param loader - Async function that loads canvas pattern data
|
|
53
|
+
* @param options - Optional {@link ExtensionOptions} to control failure behavior.
|
|
54
|
+
* Defaults to `failurePolicy: "throw"`, which throws an {@link ExtensionException} on loader failure.
|
|
55
|
+
* Set to `"continue"` to log the error and return `undefined` instead.
|
|
56
|
+
*/
|
|
57
|
+
registerCanvasPatternLoader(loader: DataLoader, options?: ExtensionOptions): void;
|
|
22
58
|
}
|
|
23
59
|
//# sourceMappingURL=extension-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-manager.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/models/utils/extension-manager.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"extension-manager.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/models/utils/extension-manager.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,gBAAgB,EAChB,cAAc,EACd,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;AAE7E,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,eAAe,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;AAE7E,qBAAa,oBAAoB;IAC/B;;;;;;;;SAQK;IACL,yBAAyB,CACvB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,gBAAgB;IAU5B;;;;;;;;SAQK;IACL,yBAAyB,CACvB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,gBAAgB;IAU5B;;;;;;;;SAQK;IACL,0BAA0B,CACxB,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,CAAC,EAAE,gBAAgB;IAU5B;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAI9E;;;;;;;OAOG;IACH,2BAA2B,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;CAG3E"}
|
|
@@ -9,10 +9,10 @@ declare const api: {
|
|
|
9
9
|
ordered?: boolean | undefined;
|
|
10
10
|
tracker?: string | undefined;
|
|
11
11
|
timeout?: number | undefined;
|
|
12
|
+
destinationAddress?: string | undefined;
|
|
13
|
+
bridge?: boolean | undefined;
|
|
12
14
|
headers?: Record<string, string> | undefined;
|
|
13
15
|
fos?: boolean | undefined;
|
|
14
|
-
bridge?: boolean | undefined;
|
|
15
|
-
destinationAddress?: string | undefined;
|
|
16
16
|
studio?: boolean | undefined;
|
|
17
17
|
signal?: AbortSignal | undefined;
|
|
18
18
|
stream?: boolean | undefined;
|
|
@@ -28,10 +28,10 @@ declare const api: {
|
|
|
28
28
|
ordered?: boolean | undefined;
|
|
29
29
|
tracker?: string | undefined;
|
|
30
30
|
timeout?: number | undefined;
|
|
31
|
+
destinationAddress?: string | undefined;
|
|
32
|
+
bridge?: boolean | undefined;
|
|
31
33
|
headers?: Record<string, string> | undefined;
|
|
32
34
|
fos?: boolean | undefined;
|
|
33
|
-
bridge?: boolean | undefined;
|
|
34
|
-
destinationAddress?: string | undefined;
|
|
35
35
|
studio?: boolean | undefined;
|
|
36
36
|
signal?: AbortSignal | undefined;
|
|
37
37
|
stream?: boolean | undefined;
|
|
@@ -47,10 +47,10 @@ declare const api: {
|
|
|
47
47
|
ordered?: boolean | undefined;
|
|
48
48
|
tracker?: string | undefined;
|
|
49
49
|
timeout?: number | undefined;
|
|
50
|
+
destinationAddress?: string | undefined;
|
|
51
|
+
bridge?: boolean | undefined;
|
|
50
52
|
headers?: Record<string, string> | undefined;
|
|
51
53
|
fos?: boolean | undefined;
|
|
52
|
-
bridge?: boolean | undefined;
|
|
53
|
-
destinationAddress?: string | undefined;
|
|
54
54
|
studio?: boolean | undefined;
|
|
55
55
|
signal?: AbortSignal | undefined;
|
|
56
56
|
stream?: boolean | undefined;
|
|
@@ -66,10 +66,10 @@ declare const api: {
|
|
|
66
66
|
ordered?: boolean | undefined;
|
|
67
67
|
tracker?: string | undefined;
|
|
68
68
|
timeout?: number | undefined;
|
|
69
|
+
destinationAddress?: string | undefined;
|
|
70
|
+
bridge?: boolean | undefined;
|
|
69
71
|
headers?: Record<string, string> | undefined;
|
|
70
72
|
fos?: boolean | undefined;
|
|
71
|
-
bridge?: boolean | undefined;
|
|
72
|
-
destinationAddress?: string | undefined;
|
|
73
73
|
studio?: boolean | undefined;
|
|
74
74
|
signal?: AbortSignal | undefined;
|
|
75
75
|
stream?: boolean | undefined;
|
|
@@ -49,10 +49,10 @@ export declare const api: {
|
|
|
49
49
|
ordered?: boolean | undefined;
|
|
50
50
|
tracker?: string | undefined;
|
|
51
51
|
timeout?: number | undefined;
|
|
52
|
+
destinationAddress?: string | undefined;
|
|
53
|
+
bridge?: boolean | undefined;
|
|
52
54
|
headers?: Record<string, string> | undefined;
|
|
53
55
|
fos?: boolean | undefined;
|
|
54
|
-
bridge?: boolean | undefined;
|
|
55
|
-
destinationAddress?: string | undefined;
|
|
56
56
|
studio?: boolean | undefined;
|
|
57
57
|
signal?: AbortSignal | undefined;
|
|
58
58
|
stream?: boolean | undefined;
|
|
@@ -68,10 +68,10 @@ export declare const api: {
|
|
|
68
68
|
ordered?: boolean | undefined;
|
|
69
69
|
tracker?: string | undefined;
|
|
70
70
|
timeout?: number | undefined;
|
|
71
|
+
destinationAddress?: string | undefined;
|
|
72
|
+
bridge?: boolean | undefined;
|
|
71
73
|
headers?: Record<string, string> | undefined;
|
|
72
74
|
fos?: boolean | undefined;
|
|
73
|
-
bridge?: boolean | undefined;
|
|
74
|
-
destinationAddress?: string | undefined;
|
|
75
75
|
studio?: boolean | undefined;
|
|
76
76
|
signal?: AbortSignal | undefined;
|
|
77
77
|
stream?: boolean | undefined;
|
|
@@ -87,10 +87,10 @@ export declare const api: {
|
|
|
87
87
|
ordered?: boolean | undefined;
|
|
88
88
|
tracker?: string | undefined;
|
|
89
89
|
timeout?: number | undefined;
|
|
90
|
+
destinationAddress?: string | undefined;
|
|
91
|
+
bridge?: boolean | undefined;
|
|
90
92
|
headers?: Record<string, string> | undefined;
|
|
91
93
|
fos?: boolean | undefined;
|
|
92
|
-
bridge?: boolean | undefined;
|
|
93
|
-
destinationAddress?: string | undefined;
|
|
94
94
|
studio?: boolean | undefined;
|
|
95
95
|
signal?: AbortSignal | undefined;
|
|
96
96
|
stream?: boolean | undefined;
|
|
@@ -106,10 +106,10 @@ export declare const api: {
|
|
|
106
106
|
ordered?: boolean | undefined;
|
|
107
107
|
tracker?: string | undefined;
|
|
108
108
|
timeout?: number | undefined;
|
|
109
|
+
destinationAddress?: string | undefined;
|
|
110
|
+
bridge?: boolean | undefined;
|
|
109
111
|
headers?: Record<string, string> | undefined;
|
|
110
112
|
fos?: boolean | undefined;
|
|
111
|
-
bridge?: boolean | undefined;
|
|
112
|
-
destinationAddress?: string | undefined;
|
|
113
113
|
studio?: boolean | undefined;
|
|
114
114
|
signal?: AbortSignal | undefined;
|
|
115
115
|
stream?: boolean | undefined;
|
|
@@ -49,10 +49,10 @@ export declare const api: {
|
|
|
49
49
|
ordered?: boolean | undefined;
|
|
50
50
|
tracker?: string | undefined;
|
|
51
51
|
timeout?: number | undefined;
|
|
52
|
+
destinationAddress?: string | undefined;
|
|
53
|
+
bridge?: boolean | undefined;
|
|
52
54
|
headers?: Record<string, string> | undefined;
|
|
53
55
|
fos?: boolean | undefined;
|
|
54
|
-
bridge?: boolean | undefined;
|
|
55
|
-
destinationAddress?: string | undefined;
|
|
56
56
|
studio?: boolean | undefined;
|
|
57
57
|
signal?: AbortSignal | undefined;
|
|
58
58
|
stream?: boolean | undefined;
|
|
@@ -68,10 +68,10 @@ export declare const api: {
|
|
|
68
68
|
ordered?: boolean | undefined;
|
|
69
69
|
tracker?: string | undefined;
|
|
70
70
|
timeout?: number | undefined;
|
|
71
|
+
destinationAddress?: string | undefined;
|
|
72
|
+
bridge?: boolean | undefined;
|
|
71
73
|
headers?: Record<string, string> | undefined;
|
|
72
74
|
fos?: boolean | undefined;
|
|
73
|
-
bridge?: boolean | undefined;
|
|
74
|
-
destinationAddress?: string | undefined;
|
|
75
75
|
studio?: boolean | undefined;
|
|
76
76
|
signal?: AbortSignal | undefined;
|
|
77
77
|
stream?: boolean | undefined;
|
|
@@ -87,10 +87,10 @@ export declare const api: {
|
|
|
87
87
|
ordered?: boolean | undefined;
|
|
88
88
|
tracker?: string | undefined;
|
|
89
89
|
timeout?: number | undefined;
|
|
90
|
+
destinationAddress?: string | undefined;
|
|
91
|
+
bridge?: boolean | undefined;
|
|
90
92
|
headers?: Record<string, string> | undefined;
|
|
91
93
|
fos?: boolean | undefined;
|
|
92
|
-
bridge?: boolean | undefined;
|
|
93
|
-
destinationAddress?: string | undefined;
|
|
94
94
|
studio?: boolean | undefined;
|
|
95
95
|
signal?: AbortSignal | undefined;
|
|
96
96
|
stream?: boolean | undefined;
|
|
@@ -106,10 +106,10 @@ export declare const api: {
|
|
|
106
106
|
ordered?: boolean | undefined;
|
|
107
107
|
tracker?: string | undefined;
|
|
108
108
|
timeout?: number | undefined;
|
|
109
|
+
destinationAddress?: string | undefined;
|
|
110
|
+
bridge?: boolean | undefined;
|
|
109
111
|
headers?: Record<string, string> | undefined;
|
|
110
112
|
fos?: boolean | undefined;
|
|
111
|
-
bridge?: boolean | undefined;
|
|
112
|
-
destinationAddress?: string | undefined;
|
|
113
113
|
studio?: boolean | undefined;
|
|
114
114
|
signal?: AbortSignal | undefined;
|
|
115
115
|
stream?: boolean | undefined;
|
|
@@ -49,10 +49,10 @@ export declare const api: {
|
|
|
49
49
|
ordered?: boolean | undefined;
|
|
50
50
|
tracker?: string | undefined;
|
|
51
51
|
timeout?: number | undefined;
|
|
52
|
+
destinationAddress?: string | undefined;
|
|
53
|
+
bridge?: boolean | undefined;
|
|
52
54
|
headers?: Record<string, string> | undefined;
|
|
53
55
|
fos?: boolean | undefined;
|
|
54
|
-
bridge?: boolean | undefined;
|
|
55
|
-
destinationAddress?: string | undefined;
|
|
56
56
|
studio?: boolean | undefined;
|
|
57
57
|
signal?: AbortSignal | undefined;
|
|
58
58
|
stream?: boolean | undefined;
|
|
@@ -68,10 +68,10 @@ export declare const api: {
|
|
|
68
68
|
ordered?: boolean | undefined;
|
|
69
69
|
tracker?: string | undefined;
|
|
70
70
|
timeout?: number | undefined;
|
|
71
|
+
destinationAddress?: string | undefined;
|
|
72
|
+
bridge?: boolean | undefined;
|
|
71
73
|
headers?: Record<string, string> | undefined;
|
|
72
74
|
fos?: boolean | undefined;
|
|
73
|
-
bridge?: boolean | undefined;
|
|
74
|
-
destinationAddress?: string | undefined;
|
|
75
75
|
studio?: boolean | undefined;
|
|
76
76
|
signal?: AbortSignal | undefined;
|
|
77
77
|
stream?: boolean | undefined;
|
|
@@ -87,10 +87,10 @@ export declare const api: {
|
|
|
87
87
|
ordered?: boolean | undefined;
|
|
88
88
|
tracker?: string | undefined;
|
|
89
89
|
timeout?: number | undefined;
|
|
90
|
+
destinationAddress?: string | undefined;
|
|
91
|
+
bridge?: boolean | undefined;
|
|
90
92
|
headers?: Record<string, string> | undefined;
|
|
91
93
|
fos?: boolean | undefined;
|
|
92
|
-
bridge?: boolean | undefined;
|
|
93
|
-
destinationAddress?: string | undefined;
|
|
94
94
|
studio?: boolean | undefined;
|
|
95
95
|
signal?: AbortSignal | undefined;
|
|
96
96
|
stream?: boolean | undefined;
|
|
@@ -106,10 +106,10 @@ export declare const api: {
|
|
|
106
106
|
ordered?: boolean | undefined;
|
|
107
107
|
tracker?: string | undefined;
|
|
108
108
|
timeout?: number | undefined;
|
|
109
|
+
destinationAddress?: string | undefined;
|
|
110
|
+
bridge?: boolean | undefined;
|
|
109
111
|
headers?: Record<string, string> | undefined;
|
|
110
112
|
fos?: boolean | undefined;
|
|
111
|
-
bridge?: boolean | undefined;
|
|
112
|
-
destinationAddress?: string | undefined;
|
|
113
113
|
studio?: boolean | undefined;
|
|
114
114
|
signal?: AbortSignal | undefined;
|
|
115
115
|
stream?: boolean | undefined;
|
|
@@ -49,10 +49,10 @@ export declare const api: {
|
|
|
49
49
|
ordered?: boolean | undefined;
|
|
50
50
|
tracker?: string | undefined;
|
|
51
51
|
timeout?: number | undefined;
|
|
52
|
+
destinationAddress?: string | undefined;
|
|
53
|
+
bridge?: boolean | undefined;
|
|
52
54
|
headers?: Record<string, string> | undefined;
|
|
53
55
|
fos?: boolean | undefined;
|
|
54
|
-
bridge?: boolean | undefined;
|
|
55
|
-
destinationAddress?: string | undefined;
|
|
56
56
|
studio?: boolean | undefined;
|
|
57
57
|
signal?: AbortSignal | undefined;
|
|
58
58
|
stream?: boolean | undefined;
|
|
@@ -68,10 +68,10 @@ export declare const api: {
|
|
|
68
68
|
ordered?: boolean | undefined;
|
|
69
69
|
tracker?: string | undefined;
|
|
70
70
|
timeout?: number | undefined;
|
|
71
|
+
destinationAddress?: string | undefined;
|
|
72
|
+
bridge?: boolean | undefined;
|
|
71
73
|
headers?: Record<string, string> | undefined;
|
|
72
74
|
fos?: boolean | undefined;
|
|
73
|
-
bridge?: boolean | undefined;
|
|
74
|
-
destinationAddress?: string | undefined;
|
|
75
75
|
studio?: boolean | undefined;
|
|
76
76
|
signal?: AbortSignal | undefined;
|
|
77
77
|
stream?: boolean | undefined;
|
|
@@ -87,10 +87,10 @@ export declare const api: {
|
|
|
87
87
|
ordered?: boolean | undefined;
|
|
88
88
|
tracker?: string | undefined;
|
|
89
89
|
timeout?: number | undefined;
|
|
90
|
+
destinationAddress?: string | undefined;
|
|
91
|
+
bridge?: boolean | undefined;
|
|
90
92
|
headers?: Record<string, string> | undefined;
|
|
91
93
|
fos?: boolean | undefined;
|
|
92
|
-
bridge?: boolean | undefined;
|
|
93
|
-
destinationAddress?: string | undefined;
|
|
94
94
|
studio?: boolean | undefined;
|
|
95
95
|
signal?: AbortSignal | undefined;
|
|
96
96
|
stream?: boolean | undefined;
|
|
@@ -106,10 +106,10 @@ export declare const api: {
|
|
|
106
106
|
ordered?: boolean | undefined;
|
|
107
107
|
tracker?: string | undefined;
|
|
108
108
|
timeout?: number | undefined;
|
|
109
|
+
destinationAddress?: string | undefined;
|
|
110
|
+
bridge?: boolean | undefined;
|
|
109
111
|
headers?: Record<string, string> | undefined;
|
|
110
112
|
fos?: boolean | undefined;
|
|
111
|
-
bridge?: boolean | undefined;
|
|
112
|
-
destinationAddress?: string | undefined;
|
|
113
113
|
studio?: boolean | undefined;
|
|
114
114
|
signal?: AbortSignal | undefined;
|
|
115
115
|
stream?: boolean | undefined;
|
|
@@ -49,10 +49,10 @@ export declare const api: {
|
|
|
49
49
|
ordered?: boolean | undefined;
|
|
50
50
|
tracker?: string | undefined;
|
|
51
51
|
timeout?: number | undefined;
|
|
52
|
+
destinationAddress?: string | undefined;
|
|
53
|
+
bridge?: boolean | undefined;
|
|
52
54
|
headers?: Record<string, string> | undefined;
|
|
53
55
|
fos?: boolean | undefined;
|
|
54
|
-
bridge?: boolean | undefined;
|
|
55
|
-
destinationAddress?: string | undefined;
|
|
56
56
|
studio?: boolean | undefined;
|
|
57
57
|
signal?: AbortSignal | undefined;
|
|
58
58
|
stream?: boolean | undefined;
|
|
@@ -68,10 +68,10 @@ export declare const api: {
|
|
|
68
68
|
ordered?: boolean | undefined;
|
|
69
69
|
tracker?: string | undefined;
|
|
70
70
|
timeout?: number | undefined;
|
|
71
|
+
destinationAddress?: string | undefined;
|
|
72
|
+
bridge?: boolean | undefined;
|
|
71
73
|
headers?: Record<string, string> | undefined;
|
|
72
74
|
fos?: boolean | undefined;
|
|
73
|
-
bridge?: boolean | undefined;
|
|
74
|
-
destinationAddress?: string | undefined;
|
|
75
75
|
studio?: boolean | undefined;
|
|
76
76
|
signal?: AbortSignal | undefined;
|
|
77
77
|
stream?: boolean | undefined;
|
|
@@ -87,10 +87,10 @@ export declare const api: {
|
|
|
87
87
|
ordered?: boolean | undefined;
|
|
88
88
|
tracker?: string | undefined;
|
|
89
89
|
timeout?: number | undefined;
|
|
90
|
+
destinationAddress?: string | undefined;
|
|
91
|
+
bridge?: boolean | undefined;
|
|
90
92
|
headers?: Record<string, string> | undefined;
|
|
91
93
|
fos?: boolean | undefined;
|
|
92
|
-
bridge?: boolean | undefined;
|
|
93
|
-
destinationAddress?: string | undefined;
|
|
94
94
|
studio?: boolean | undefined;
|
|
95
95
|
signal?: AbortSignal | undefined;
|
|
96
96
|
stream?: boolean | undefined;
|
|
@@ -106,10 +106,10 @@ export declare const api: {
|
|
|
106
106
|
ordered?: boolean | undefined;
|
|
107
107
|
tracker?: string | undefined;
|
|
108
108
|
timeout?: number | undefined;
|
|
109
|
+
destinationAddress?: string | undefined;
|
|
110
|
+
bridge?: boolean | undefined;
|
|
109
111
|
headers?: Record<string, string> | undefined;
|
|
110
112
|
fos?: boolean | undefined;
|
|
111
|
-
bridge?: boolean | undefined;
|
|
112
|
-
destinationAddress?: string | undefined;
|
|
113
113
|
studio?: boolean | undefined;
|
|
114
114
|
signal?: AbortSignal | undefined;
|
|
115
115
|
stream?: boolean | undefined;
|
|
@@ -49,10 +49,10 @@ export declare const api: {
|
|
|
49
49
|
ordered?: boolean | undefined;
|
|
50
50
|
tracker?: string | undefined;
|
|
51
51
|
timeout?: number | undefined;
|
|
52
|
+
destinationAddress?: string | undefined;
|
|
53
|
+
bridge?: boolean | undefined;
|
|
52
54
|
headers?: Record<string, string> | undefined;
|
|
53
55
|
fos?: boolean | undefined;
|
|
54
|
-
bridge?: boolean | undefined;
|
|
55
|
-
destinationAddress?: string | undefined;
|
|
56
56
|
studio?: boolean | undefined;
|
|
57
57
|
signal?: AbortSignal | undefined;
|
|
58
58
|
stream?: boolean | undefined;
|
|
@@ -68,10 +68,10 @@ export declare const api: {
|
|
|
68
68
|
ordered?: boolean | undefined;
|
|
69
69
|
tracker?: string | undefined;
|
|
70
70
|
timeout?: number | undefined;
|
|
71
|
+
destinationAddress?: string | undefined;
|
|
72
|
+
bridge?: boolean | undefined;
|
|
71
73
|
headers?: Record<string, string> | undefined;
|
|
72
74
|
fos?: boolean | undefined;
|
|
73
|
-
bridge?: boolean | undefined;
|
|
74
|
-
destinationAddress?: string | undefined;
|
|
75
75
|
studio?: boolean | undefined;
|
|
76
76
|
signal?: AbortSignal | undefined;
|
|
77
77
|
stream?: boolean | undefined;
|
|
@@ -87,10 +87,10 @@ export declare const api: {
|
|
|
87
87
|
ordered?: boolean | undefined;
|
|
88
88
|
tracker?: string | undefined;
|
|
89
89
|
timeout?: number | undefined;
|
|
90
|
+
destinationAddress?: string | undefined;
|
|
91
|
+
bridge?: boolean | undefined;
|
|
90
92
|
headers?: Record<string, string> | undefined;
|
|
91
93
|
fos?: boolean | undefined;
|
|
92
|
-
bridge?: boolean | undefined;
|
|
93
|
-
destinationAddress?: string | undefined;
|
|
94
94
|
studio?: boolean | undefined;
|
|
95
95
|
signal?: AbortSignal | undefined;
|
|
96
96
|
stream?: boolean | undefined;
|
|
@@ -106,10 +106,10 @@ export declare const api: {
|
|
|
106
106
|
ordered?: boolean | undefined;
|
|
107
107
|
tracker?: string | undefined;
|
|
108
108
|
timeout?: number | undefined;
|
|
109
|
+
destinationAddress?: string | undefined;
|
|
110
|
+
bridge?: boolean | undefined;
|
|
109
111
|
headers?: Record<string, string> | undefined;
|
|
110
112
|
fos?: boolean | undefined;
|
|
111
|
-
bridge?: boolean | undefined;
|
|
112
|
-
destinationAddress?: string | undefined;
|
|
113
113
|
studio?: boolean | undefined;
|
|
114
114
|
signal?: AbortSignal | undefined;
|
|
115
115
|
stream?: boolean | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosdev-code/kos-ui-sdk",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.5603",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"kos": {
|
|
38
38
|
"build": {
|
|
39
|
-
"gitHash": "
|
|
39
|
+
"gitHash": "34977cc553cf0e74d03288bbce58fef5e9853ee4"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
package/ui/hooks/index.d.ts
CHANGED
|
@@ -27,5 +27,6 @@ export * from './use-press-gesture';
|
|
|
27
27
|
export * from './use-project-reloading';
|
|
28
28
|
export * from './use-region-time-props';
|
|
29
29
|
export * from './use-time-props';
|
|
30
|
+
export * from './view-model';
|
|
30
31
|
export * from './with-project-reload';
|
|
31
32
|
//# sourceMappingURL=index.d.ts.map
|
package/ui/hooks/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/ui/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,OAAO,CAAC;AACtB,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-sdk/src/ui/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAC;AACtD,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,OAAO,CAAC;AACtB,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC9D,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/ui/hooks/view-model/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for the useViewModel hook.
|
|
4
|
+
*/
|
|
5
|
+
export interface UseViewModelOptions {
|
|
6
|
+
/**
|
|
7
|
+
* When true, calls the ViewModel's dispose() method on unmount
|
|
8
|
+
* and when dependencies change causing recreation.
|
|
9
|
+
* Default: true (if dispose method exists)
|
|
10
|
+
*/
|
|
11
|
+
disposeOnUnmount?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Result returned by useViewModel when the ViewModel implements IKosViewModelReady.
|
|
15
|
+
*/
|
|
16
|
+
export interface UseViewModelResult<T> {
|
|
17
|
+
/** The ViewModel instance */
|
|
18
|
+
viewModel: T;
|
|
19
|
+
/** Whether the ViewModel's ready() hook has completed */
|
|
20
|
+
ready: boolean;
|
|
21
|
+
/** Error from the ready() hook, if any */
|
|
22
|
+
error: Error | undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* React hook for creating and managing ViewModel instances.
|
|
26
|
+
*
|
|
27
|
+
* The hook:
|
|
28
|
+
* - Creates the ViewModel using the provided factory function
|
|
29
|
+
* - Calls ready() if the ViewModel implements IKosViewModelReady
|
|
30
|
+
* - Automatically calls dispose() on unmount (if the method exists)
|
|
31
|
+
* - Re-creates the ViewModel when dependencies change
|
|
32
|
+
* - Disposes the previous ViewModel when recreating
|
|
33
|
+
*
|
|
34
|
+
* @param factory - Function that creates the ViewModel instance
|
|
35
|
+
* @param deps - Dependency array (similar to useEffect/useMemo)
|
|
36
|
+
* @param options - Optional configuration
|
|
37
|
+
* @returns UseViewModelResult with viewModel, ready state, and error
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```typescript
|
|
41
|
+
* // Basic usage (no ready hook)
|
|
42
|
+
* function Counter() {
|
|
43
|
+
* const { viewModel: vm, ready } = useViewModel(() => new CounterViewModel(), []);
|
|
44
|
+
*
|
|
45
|
+
* return (
|
|
46
|
+
* <div>
|
|
47
|
+
* <span>{vm.count}</span>
|
|
48
|
+
* <button onClick={() => vm.increment()}>+</button>
|
|
49
|
+
* </div>
|
|
50
|
+
* );
|
|
51
|
+
* }
|
|
52
|
+
*
|
|
53
|
+
* // With ready hook for async initialization
|
|
54
|
+
* function OrderSummary({ orderId }: Props) {
|
|
55
|
+
* const { model: order } = useKosModel<IOrderModel>({ modelId: orderId });
|
|
56
|
+
* const { model: inventory } = useKosModel<IInventoryModel>({ modelId: 'inventory' });
|
|
57
|
+
*
|
|
58
|
+
* const { viewModel: vm, ready, error } = useViewModel(
|
|
59
|
+
* () => new OrderSummaryViewModel(order!, inventory!),
|
|
60
|
+
* [order, inventory]
|
|
61
|
+
* );
|
|
62
|
+
*
|
|
63
|
+
* if (error) return <ErrorDisplay error={error} />;
|
|
64
|
+
* if (!ready) return <Loading />;
|
|
65
|
+
*
|
|
66
|
+
* return <div>Total: ${vm.total}</div>;
|
|
67
|
+
* }
|
|
68
|
+
*
|
|
69
|
+
* // Disable auto-disposal
|
|
70
|
+
* const { viewModel: vm } = useViewModel(
|
|
71
|
+
* () => new MyViewModel(),
|
|
72
|
+
* [],
|
|
73
|
+
* { disposeOnUnmount: false }
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @category KOS React Hook
|
|
78
|
+
*/
|
|
79
|
+
export declare function useViewModel<T>(factory: () => T, deps: React.DependencyList, options?: UseViewModelOptions): UseViewModelResult<T>;
|
|
80
|
+
//# sourceMappingURL=use-view-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-view-model.d.ts","sourceRoot":"","sources":["../../../../../../../packages/sdk/kos-ui-sdk/src/ui/hooks/view-model/use-view-model.ts"],"names":[],"mappings":";AAMA;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,6BAA6B;IAC7B,SAAS,EAAE,CAAC,CAAC;IACb,yDAAyD;IACzD,KAAK,EAAE,OAAO,CAAC;IACf,0CAA0C;IAC1C,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,OAAO,EAAE,MAAM,CAAC,EAChB,IAAI,EAAE,KAAK,CAAC,cAAc,EAC1B,OAAO,GAAE,mBAAwB,GAChC,kBAAkB,CAAC,CAAC,CAAC,CAoFvB"}
|