@kosdev-code/kos-ui-sdk 3.0.17 → 3.0.18
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/dependency-manager.d.ts +6 -0
- package/core/core/dependency-manager.d.ts.map +1 -1
- package/core/core/kosModelManager.d.ts.map +1 -1
- package/core/core/model/model-hook-cache.d.ts +30 -0
- package/core/core/model/model-hook-cache.d.ts.map +1 -0
- package/core/core/transport/mock/mock-recorder.d.ts +7 -0
- package/core/core/transport/mock/mock-recorder.d.ts.map +1 -1
- package/core/core/transport/mock/mock-registry.d.ts.map +1 -1
- package/core/core/transport/mock/mock-types.d.ts +26 -0
- package/core/core/transport/mock/mock-types.d.ts.map +1 -1
- package/core/index.d.ts +1 -0
- package/core/index.d.ts.map +1 -1
- package/core/util/kos-config-init.d.ts.map +1 -1
- package/index.cjs +147 -40
- package/index.cjs.map +1 -1
- package/index.js +147 -40
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/ui/hooks/use-kos-model.d.ts +8 -0
- package/ui/hooks/use-kos-model.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosdev-code/kos-ui-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"kos": {
|
|
51
51
|
"build": {
|
|
52
|
-
"gitHash": "
|
|
52
|
+
"gitHash": "73541b64a3b84967ded025956dd8a6f29eca4371"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -8,6 +8,14 @@ interface Options<T extends IKosDataModel, O extends Object = {}> {
|
|
|
8
8
|
destroyOnUnmount?: boolean;
|
|
9
9
|
forceUpdate?: boolean;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Reads a model out of the suspense cache, suspending or rethrowing as the
|
|
13
|
+
* entry requires. Exported for tests.
|
|
14
|
+
*/
|
|
15
|
+
export declare function readModelHookEntry(key: string, fetcher: () => Promise<unknown>): {
|
|
16
|
+
kosModel: import('../../core').IKosModel<IKosDataModel> | undefined;
|
|
17
|
+
model: IKosDataModel | undefined;
|
|
18
|
+
};
|
|
11
19
|
/**
|
|
12
20
|
* Primary hook for consuming KOS models in React components.
|
|
13
21
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-kos-model.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/ui/hooks/use-kos-model.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"use-kos-model.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-ui-sdk/src/ui/hooks/use-kos-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EAGb,YAAY,EACb,MAAM,YAAY,CAAC;AASpB,UAAU,OAAO,CAAC,CAAC,SAAS,aAAa,EAAE,CAAC,SAAS,MAAM,GAAG,EAAE;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAUD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC;;;EA+BhC;AAqDD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,aAAa,EAAE,CAAC,SAAS,MAAM,GAAG,EAAE,EACxE,cAAc,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;;;;;;;;;;CAsG5B,CAAC"}
|