@kosdev-code/kos-ui-sdk 0.1.0-next.871 → 0.1.0-next.894
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/kos-service-request-model-factory.test-d.d.ts +2 -0
- package/core/core/decorators/kos-service-request-model-factory.test-d.d.ts.map +1 -0
- package/core/core/decorators/kos-service-request.d.ts +1 -1
- package/core/core/decorators/kos-service-request.d.ts.map +1 -1
- package/core/core/decorators/kosTopicHandler.d.ts.map +1 -1
- package/core/core/model/kos-service-request-manager.d.ts.map +1 -1
- package/core/core/registration/index.d.ts +1 -1
- package/core/core/registration/index.d.ts.map +1 -1
- package/core/core/registration/model-registration.d.ts +11 -0
- package/core/core/registration/model-registration.d.ts.map +1 -1
- package/core/index.d.ts +1 -1
- package/core/index.d.ts.map +1 -1
- package/{index-D64IOwMG.js → index-BUwbSjst.js} +5 -7
- package/index-BUwbSjst.js.map +1 -0
- package/{index-DsRhHHtS.cjs → index-DUoSahlA.cjs} +5 -7
- package/index-DUoSahlA.cjs.map +1 -0
- package/index.cjs +8 -4
- package/index.cjs.map +1 -1
- package/index.js +9 -5
- package/index.js.map +1 -1
- package/models/decorators/future-service.d.ts.map +1 -1
- package/package.json +3 -3
- package/testing/index.d.ts +51 -9
- package/testing/index.d.ts.map +1 -1
- package/testing.cjs +57 -3
- package/testing.cjs.map +1 -1
- package/testing.js +57 -3
- package/testing.js.map +1 -1
- package/index-D64IOwMG.js.map +0 -1
- package/index-DsRhHHtS.cjs.map +0 -1
package/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const service$8 = require("./index-
|
|
3
|
+
const service$8 = require("./index-DUoSahlA.cjs");
|
|
4
4
|
const mobx = require("mobx");
|
|
5
5
|
const log$s = require("loglevel");
|
|
6
6
|
const dateFns = require("date-fns");
|
|
@@ -3085,6 +3085,10 @@ const FutureManager = {
|
|
|
3085
3085
|
getFuture
|
|
3086
3086
|
};
|
|
3087
3087
|
const isFutureResponse = (response) => !response || !response.data;
|
|
3088
|
+
const resolveFutureHandler = (model) => {
|
|
3089
|
+
const handlerProperty = model?.[service$8.MultipleFutureContainerSetup]?.handlerProperty ?? model?.[service$8.FutureContainerSetup]?.handlerProperty ?? "futureHandler";
|
|
3090
|
+
return model[handlerProperty];
|
|
3091
|
+
};
|
|
3088
3092
|
function wrapWithFutureLifecycle(original, methodName, props = {}) {
|
|
3089
3093
|
const {
|
|
3090
3094
|
alias,
|
|
@@ -3114,7 +3118,7 @@ function wrapWithFutureLifecycle(original, methodName, props = {}) {
|
|
|
3114
3118
|
service$8.KosLog.debug(`future ${future.id} is ready`);
|
|
3115
3119
|
service$8.kosAction(() => {
|
|
3116
3120
|
service$8.KosLog.debug(`Adding future ${future.id} to futureHandler`);
|
|
3117
|
-
this.
|
|
3121
|
+
resolveFutureHandler(this).addFuture(future, alias);
|
|
3118
3122
|
});
|
|
3119
3123
|
if (abortController && abortControllerInstance) {
|
|
3120
3124
|
effectDisposer = service$8.kosAutoEffect(() => {
|
|
@@ -3187,7 +3191,7 @@ function wrapWithFutureLifecycle(original, methodName, props = {}) {
|
|
|
3187
3191
|
);
|
|
3188
3192
|
}
|
|
3189
3193
|
} else {
|
|
3190
|
-
this.
|
|
3194
|
+
resolveFutureHandler(this).removeFuture(alias);
|
|
3191
3195
|
}
|
|
3192
3196
|
cleanup();
|
|
3193
3197
|
return response;
|
|
@@ -12176,7 +12180,7 @@ const updateRegion = async (region) => {
|
|
|
12176
12180
|
regionInfo.updateProperty(region);
|
|
12177
12181
|
};
|
|
12178
12182
|
async function getKosServiceApi() {
|
|
12179
|
-
const { default: API } = await Promise.resolve().then(() => require("./index-
|
|
12183
|
+
const { default: API } = await Promise.resolve().then(() => require("./index-DUoSahlA.cjs")).then((n) => n.service);
|
|
12180
12184
|
return API;
|
|
12181
12185
|
}
|
|
12182
12186
|
function kosServiceRequest$7(params2) {
|