@kosdev-code/kos-ui-sdk 0.1.0-next.979 → 0.1.0-next.994
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/common/events/async-event-bus.d.ts.map +1 -1
- package/common/events/eventBus.d.ts.map +1 -1
- package/core/core/companion-instantiator.d.ts.map +1 -1
- package/core/core/decorators/fsm-injection-utils.d.ts.map +1 -1
- package/core/core/decorators/index.d.ts +0 -1
- package/core/core/decorators/index.d.ts.map +1 -1
- package/core/core/decorators/kos-container-aware.d.ts +104 -3
- package/core/core/decorators/kos-container-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-logger-aware.d.ts.map +1 -1
- package/core/core/decorators/kos-service-request-helpers.d.ts.map +1 -1
- package/core/core/decorators/kos-state-machine.d.ts.map +1 -1
- package/core/core/decorators/kosModel.d.ts.map +1 -1
- package/core/core/decorators/propKeys.d.ts +0 -1
- package/core/core/decorators/propKeys.d.ts.map +1 -1
- package/core/core/decorators/resolve-parameters.d.ts.map +1 -1
- package/core/core/dependency-manager.d.ts.map +1 -1
- package/core/core/extension/extension-manager.d.ts.map +1 -1
- package/core/core/kos-container-index.d.ts.map +1 -1
- package/core/core/kos-container-model.d.ts.map +1 -1
- package/core/core/kos-data-container.d.ts.map +1 -1
- package/core/core/kos-model-factory.d.ts.map +1 -1
- package/core/core/kos-registration.d.ts.map +1 -1
- package/core/core/kosModel.d.ts.map +1 -1
- package/core/core/kosModelManager.d.ts.map +1 -1
- package/core/core/lifecycle/kosCoreLifecycle.d.ts.map +1 -1
- package/core/core/lifecycle/kosModelLifecycle.d.ts.map +1 -1
- package/core/core/lifecycle/model-active-machine.d.ts.map +1 -1
- package/core/core/lifecycle/model-machine.d.ts.map +1 -1
- package/core/core/lifecycle/model-online-machine.d.ts.map +1 -1
- package/core/core/log/index.d.ts +1 -0
- package/core/core/log/index.d.ts.map +1 -1
- package/core/core/log/log-groups.d.ts +25 -0
- package/core/core/log/log-groups.d.ts.map +1 -0
- package/core/core/log/log.d.ts +10 -6
- package/core/core/log/log.d.ts.map +1 -1
- package/core/core/model/kos-logger-factory.d.ts +6 -4
- package/core/core/model/kos-logger-factory.d.ts.map +1 -1
- package/core/core/model/kos-model-component-factory.d.ts.map +1 -1
- package/core/core/model-cache.d.ts.map +1 -1
- package/core/core/model-instantiator.d.ts.map +1 -1
- package/core/core/registration/registration-manager.d.ts.map +1 -1
- package/core/core/services/app-startup-service.d.ts.map +1 -1
- package/core/core/services/intent-service.d.ts.map +1 -1
- package/core/core/transport/base-message-transport.d.ts.map +1 -1
- package/core/core/transport/bridge-transport.d.ts.map +1 -1
- package/core/core/transport/mock/future-simulator.d.ts.map +1 -1
- package/core/core/transport/mock/mock-config.d.ts.map +1 -1
- package/core/core/transport/mock/mock-fixtures.d.ts.map +1 -1
- package/core/core/transport/mock/mock-playback.d.ts.map +1 -1
- 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-setups.d.ts.map +1 -1
- package/core/core/transport/mock/standalone-mock-socket.d.ts.map +1 -1
- package/core/core/transport/transport-factory.d.ts.map +1 -1
- package/core/core/transport/webSocketTransport.d.ts.map +1 -1
- package/core/types/global.d.ts +0 -6
- package/core/util/feature-flags.d.ts.map +1 -1
- package/core/util/kos-core-utils.d.ts.map +1 -1
- package/core/util/kos-fetch.d.ts.map +1 -1
- package/core/util/kos-message-utils.d.ts.map +1 -1
- package/core/util/kos-model-utils.d.ts.map +1 -1
- package/core/util/kos-service-request.d.ts.map +1 -1
- package/core/util/log-utils.d.ts +0 -10
- package/core/util/log-utils.d.ts.map +1 -1
- package/core/util/model-error-utils.d.ts.map +1 -1
- package/core/util/model-utils.d.ts.map +1 -1
- package/core/util/promise-utils.d.ts.map +1 -1
- package/core/util/retry-with-exponential-backoff.d.ts.map +1 -1
- package/core/util/service-factory.d.ts.map +1 -1
- package/core/util/wait-for-request.d.ts.map +1 -1
- package/index.cjs +73 -320
- package/index.cjs.map +1 -1
- package/index.js +249 -496
- package/index.js.map +1 -1
- package/models/decorators/future-service.d.ts.map +1 -1
- package/models/models/config-bean/config-bean-model.d.ts.map +1 -1
- package/models/models/config-bean-prop/config-bean-prop-model.d.ts.map +1 -1
- package/models/models/device/services/device-services.d.ts.map +1 -1
- package/models/models/future/future-aware.d.ts.map +1 -1
- package/models/models/future/future-model-builder.d.ts.map +1 -1
- package/models/models/future/future-model.d.ts.map +1 -1
- package/models/models/future-container/future-container-model.d.ts.map +1 -1
- package/models/models/gpio-chip/gpio-chip-builders.d.ts +0 -3
- package/models/models/gpio-chip/gpio-chip-builders.d.ts.map +1 -1
- package/models/models/gpio-chip/gpio-chip-container-model.d.ts.map +1 -1
- package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
- package/models/models/log-stream/services/log-stream-services.d.ts.map +1 -1
- package/models/models/network-interface/services/network-interface-services.d.ts.map +1 -1
- package/models/models/ota/services/ota-services.d.ts.map +1 -1
- package/models/models/region-info/region-info-model.d.ts.map +1 -1
- package/models/models/software-info/services/software-info-services.d.ts.map +1 -1
- package/models/models/state-bean/services/state-bean-services.d.ts.map +1 -1
- package/models/models/state-prop/services/state-prop-services.d.ts.map +1 -1
- package/models/models/storage-device/services/storage-device-services.d.ts.map +1 -1
- package/models/models/studio-properties/services/studio-properties-services.d.ts.map +1 -1
- package/models/models/studio-properties/studio-properties-model.d.ts.map +1 -1
- package/models/models/translation/services/translation-services.d.ts.map +1 -1
- package/models/models/trouble/services/trouble-services.d.ts.map +1 -1
- package/models/models/trouble/utils/trouble-data-extension.d.ts.map +1 -1
- package/models/models/trouble/utils/trouble-extension.d.ts.map +1 -1
- package/models/models/usb-update/services/usb-update-services.d.ts.map +1 -1
- package/models/models/ws-event/ws-event-model.d.ts.map +1 -1
- package/models/services/future/index.d.ts.map +1 -1
- package/models/services/login/index.d.ts.map +1 -1
- package/models/services/trouble/index.d.ts.map +1 -1
- package/models/utils/await-future-call.d.ts.map +1 -1
- package/models/utils/cancellable-future-call.d.ts.map +1 -1
- package/models/utils/core-registration-manager.d.ts +13 -2
- package/models/utils/core-registration-manager.d.ts.map +1 -1
- package/models/utils/get-kos-connection-id.d.ts.map +1 -1
- package/models/utils/timer-manager.d.ts.map +1 -1
- package/package.json +3 -3
- package/{software-info-registration-rg4pjrxg.cjs → software-info-registration-CA13_Qc_.cjs} +1110 -645
- package/software-info-registration-CA13_Qc_.cjs.map +1 -0
- package/{software-info-registration-Cbvzr2Q-.js → software-info-registration-CKRUzp_3.js} +1376 -911
- package/software-info-registration-CKRUzp_3.js.map +1 -0
- package/testing.cjs +1 -2
- package/testing.cjs.map +1 -1
- package/testing.js +1 -2
- package/testing.js.map +1 -1
- package/ui/components/kos-model-loader/contexts/kos-model-hierarchy-context.d.ts.map +1 -1
- package/ui/components/kos-model-loader/kos-model-loader.d.ts.map +1 -1
- package/ui/contexts/kos-model-context.d.ts.map +1 -1
- package/ui/contexts/translation-container/kos-translations-provider.d.ts.map +1 -1
- package/ui/features/canvas/components/canvas-streamer/canvas-streamer.d.ts.map +1 -1
- package/ui/hooks/translation-container/use-translation.d.ts.map +1 -1
- package/ui/hooks/use-mutation-observer.d.ts.map +1 -1
- package/ui/policies/reload-on-disconnect-policy.d.ts.map +1 -1
- package/core/core/decorators/kos-log.d.ts +0 -14
- package/core/core/decorators/kos-log.d.ts.map +0 -1
- package/software-info-registration-Cbvzr2Q-.js.map +0 -1
- package/software-info-registration-rg4pjrxg.cjs.map +0 -1
package/index.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const service$8 = require("./software-info-registration-
|
|
3
|
+
const service$8 = require("./software-info-registration-CA13_Qc_.cjs");
|
|
4
4
|
const mobx = require("mobx");
|
|
5
|
-
const log$6 = require("loglevel");
|
|
6
5
|
const jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
7
6
|
const styled = require("@emotion/styled");
|
|
8
7
|
const reactDom = require("react-dom");
|
|
@@ -397,10 +396,6 @@ function kosMultipleFutureAware(options) {
|
|
|
397
396
|
return target;
|
|
398
397
|
};
|
|
399
398
|
}
|
|
400
|
-
const kosLogger = ({ group } = { group: "" }) => (constructor) => {
|
|
401
|
-
constructor[service$8.LogConfig] = constructor[service$8.LogConfig] || {};
|
|
402
|
-
constructor[service$8.LogConfig] = { group };
|
|
403
|
-
};
|
|
404
399
|
function kosMixin(mixin, options) {
|
|
405
400
|
return (target, propertyKey) => {
|
|
406
401
|
const companion = mixin.class.prototype[service$8.CompanionParentModel];
|
|
@@ -961,33 +956,6 @@ const pairedClientHeartbeat = ({
|
|
|
961
956
|
controller.signal.addEventListener("abort", handleAbort);
|
|
962
957
|
return { cleanUpHeartbeat };
|
|
963
958
|
};
|
|
964
|
-
const BASE_OPTIONS = {
|
|
965
|
-
maxAttempts: 5,
|
|
966
|
-
baseDelayMs: 100,
|
|
967
|
-
backoffFactor: 1.5
|
|
968
|
-
};
|
|
969
|
-
async function retryWithExponentialBackoff(operation, options) {
|
|
970
|
-
let attempt = 1;
|
|
971
|
-
const _options = { ...BASE_OPTIONS, ...options };
|
|
972
|
-
const { maxAttempts, baseDelayMs, backoffFactor } = _options;
|
|
973
|
-
let delayMs = baseDelayMs;
|
|
974
|
-
while (attempt <= maxAttempts) {
|
|
975
|
-
try {
|
|
976
|
-
const result = await operation();
|
|
977
|
-
return result;
|
|
978
|
-
} catch (error) {
|
|
979
|
-
service$8.KosLog.error(`Attempt ${attempt} failed: ${error}`);
|
|
980
|
-
if (attempt < maxAttempts) {
|
|
981
|
-
delayMs = baseDelayMs * Math.pow(backoffFactor, attempt);
|
|
982
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
983
|
-
attempt++;
|
|
984
|
-
} else {
|
|
985
|
-
throw error;
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
throw new Error("All attempts failed");
|
|
990
|
-
}
|
|
991
959
|
function getServiceResponse(model, path, method = "get") {
|
|
992
960
|
const store = model.serviceResponses;
|
|
993
961
|
if (!store) {
|
|
@@ -1023,58 +991,6 @@ function clearAllServiceResponses(model) {
|
|
|
1023
991
|
}
|
|
1024
992
|
store.clear();
|
|
1025
993
|
}
|
|
1026
|
-
const waitForRequest = async (requestId, timeout = 6e4) => new Promise((resolve, reject) => {
|
|
1027
|
-
const { unsubscribe } = service$8.subscribe(requestId, (op) => {
|
|
1028
|
-
log$6.debug(`recieved response for refId ${requestId}: ${op}`);
|
|
1029
|
-
unsubscribe();
|
|
1030
|
-
clearTimeout(cancel);
|
|
1031
|
-
try {
|
|
1032
|
-
const body = op?.body ? JSON.parse(op.body) : {};
|
|
1033
|
-
resolve(body);
|
|
1034
|
-
} catch {
|
|
1035
|
-
const body = op?.body || {};
|
|
1036
|
-
resolve(body);
|
|
1037
|
-
}
|
|
1038
|
-
});
|
|
1039
|
-
const cancel = setTimeout(() => {
|
|
1040
|
-
unsubscribe();
|
|
1041
|
-
reject(Error(`Request with ID ${requestId} timed out. Cancelling.`));
|
|
1042
|
-
}, timeout);
|
|
1043
|
-
});
|
|
1044
|
-
const sendRequest = async (requestPromise, params, refId) => {
|
|
1045
|
-
const op = waitForRequest(refId);
|
|
1046
|
-
const result = await Promise.allSettled([requestPromise(params), op]);
|
|
1047
|
-
if (result[0].status === "fulfilled") {
|
|
1048
|
-
if (result[1].status === "rejected") {
|
|
1049
|
-
throw Error(result[1].reason);
|
|
1050
|
-
} else {
|
|
1051
|
-
if (result[0].value) {
|
|
1052
|
-
if (result[1].value.error) {
|
|
1053
|
-
throw Error(result[1].value.error);
|
|
1054
|
-
}
|
|
1055
|
-
result[0].value.data = result[1].value;
|
|
1056
|
-
return result[0].value;
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
} else {
|
|
1060
|
-
throw Error(result[0].reason);
|
|
1061
|
-
}
|
|
1062
|
-
return void 0;
|
|
1063
|
-
};
|
|
1064
|
-
const syncPublish = async ({
|
|
1065
|
-
topic,
|
|
1066
|
-
msg,
|
|
1067
|
-
requestId
|
|
1068
|
-
}) => {
|
|
1069
|
-
const _requestId = requestId ?? service$8.uuid();
|
|
1070
|
-
const responsePromise = waitForRequest(_requestId);
|
|
1071
|
-
service$8.publish(topic, msg, { sync: _requestId });
|
|
1072
|
-
const response = await responsePromise;
|
|
1073
|
-
if (response.error) {
|
|
1074
|
-
throw Error(response.error);
|
|
1075
|
-
}
|
|
1076
|
-
return response;
|
|
1077
|
-
};
|
|
1078
994
|
function kosIndexAware(options) {
|
|
1079
995
|
return (target) => {
|
|
1080
996
|
const collection = options?.collection;
|
|
@@ -1399,185 +1315,6 @@ const index$8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1399
1315
|
getTroubles: service$8.getTroubles,
|
|
1400
1316
|
resolveTrouble: service$8.resolveTrouble
|
|
1401
1317
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1402
|
-
function createCancellablePromise(promiseOrOptions, abortController, cancelFuture, future) {
|
|
1403
|
-
const options = promiseOrOptions instanceof Promise ? { promise: promiseOrOptions, abortController, cancelFuture, future } : promiseOrOptions;
|
|
1404
|
-
const {
|
|
1405
|
-
promise,
|
|
1406
|
-
abortController: controller,
|
|
1407
|
-
cancelFuture: cancelFn,
|
|
1408
|
-
future: futureRef
|
|
1409
|
-
} = options;
|
|
1410
|
-
const cancellablePromise = promise;
|
|
1411
|
-
let currentProgress = 0;
|
|
1412
|
-
let currentStatus = "PENDING";
|
|
1413
|
-
let isRunning = true;
|
|
1414
|
-
const progressCallbacks = /* @__PURE__ */ new Set();
|
|
1415
|
-
let effectDisposer;
|
|
1416
|
-
if (futureRef && typeof futureRef === "object") {
|
|
1417
|
-
effectDisposer = mobx.autorun(() => {
|
|
1418
|
-
const newProgress = futureRef.progress || 0;
|
|
1419
|
-
const newStatus = futureRef.status || "PENDING";
|
|
1420
|
-
const newIsRunning = !futureRef.endState;
|
|
1421
|
-
if (newProgress !== currentProgress || newStatus !== currentStatus || newIsRunning !== isRunning) {
|
|
1422
|
-
currentProgress = newProgress;
|
|
1423
|
-
currentStatus = newStatus;
|
|
1424
|
-
isRunning = newIsRunning;
|
|
1425
|
-
progressCallbacks.forEach((callback) => {
|
|
1426
|
-
try {
|
|
1427
|
-
callback(currentProgress, currentStatus);
|
|
1428
|
-
} catch (error) {
|
|
1429
|
-
console.warn("Progress callback error:", error);
|
|
1430
|
-
}
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
});
|
|
1434
|
-
}
|
|
1435
|
-
promise.finally(() => {
|
|
1436
|
-
isRunning = false;
|
|
1437
|
-
if (!controller?.signal.aborted) {
|
|
1438
|
-
currentStatus = "COMPLETED";
|
|
1439
|
-
progressCallbacks.forEach((callback) => {
|
|
1440
|
-
try {
|
|
1441
|
-
callback(currentProgress, currentStatus);
|
|
1442
|
-
} catch (error) {
|
|
1443
|
-
console.warn("Progress callback error:", error);
|
|
1444
|
-
}
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
if (effectDisposer) {
|
|
1448
|
-
effectDisposer();
|
|
1449
|
-
}
|
|
1450
|
-
progressCallbacks.clear();
|
|
1451
|
-
});
|
|
1452
|
-
cancellablePromise.cancel = async () => {
|
|
1453
|
-
if (controller && !controller.signal.aborted) {
|
|
1454
|
-
controller.abort();
|
|
1455
|
-
}
|
|
1456
|
-
if (cancelFn) {
|
|
1457
|
-
await cancelFn();
|
|
1458
|
-
}
|
|
1459
|
-
isRunning = false;
|
|
1460
|
-
currentStatus = "CANCELLED";
|
|
1461
|
-
progressCallbacks.forEach((callback) => {
|
|
1462
|
-
try {
|
|
1463
|
-
callback(currentProgress, currentStatus);
|
|
1464
|
-
} catch (error) {
|
|
1465
|
-
console.warn("Progress callback error:", error);
|
|
1466
|
-
}
|
|
1467
|
-
});
|
|
1468
|
-
if (effectDisposer) {
|
|
1469
|
-
effectDisposer();
|
|
1470
|
-
}
|
|
1471
|
-
};
|
|
1472
|
-
cancellablePromise.getController = () => controller;
|
|
1473
|
-
cancellablePromise.isCancelled = () => controller?.signal.aborted ?? false;
|
|
1474
|
-
Object.defineProperty(cancellablePromise, "progress", {
|
|
1475
|
-
get: () => currentProgress,
|
|
1476
|
-
enumerable: true
|
|
1477
|
-
});
|
|
1478
|
-
Object.defineProperty(cancellablePromise, "status", {
|
|
1479
|
-
get: () => currentStatus,
|
|
1480
|
-
enumerable: true
|
|
1481
|
-
});
|
|
1482
|
-
Object.defineProperty(cancellablePromise, "isRunning", {
|
|
1483
|
-
get: () => isRunning,
|
|
1484
|
-
enumerable: true
|
|
1485
|
-
});
|
|
1486
|
-
cancellablePromise.onProgressUpdate = (callback) => {
|
|
1487
|
-
progressCallbacks.add(callback);
|
|
1488
|
-
callback(currentProgress, currentStatus);
|
|
1489
|
-
return () => progressCallbacks.delete(callback);
|
|
1490
|
-
};
|
|
1491
|
-
return cancellablePromise;
|
|
1492
|
-
}
|
|
1493
|
-
function makeCancellable(model, methodCall) {
|
|
1494
|
-
const initialFuture = model.futureHandler.future;
|
|
1495
|
-
const promise = methodCall(model);
|
|
1496
|
-
let newFuture = null;
|
|
1497
|
-
setTimeout(() => {
|
|
1498
|
-
newFuture = model.futureHandler.future;
|
|
1499
|
-
if (newFuture === initialFuture) {
|
|
1500
|
-
newFuture = null;
|
|
1501
|
-
}
|
|
1502
|
-
}, 0);
|
|
1503
|
-
return createCancellablePromise({
|
|
1504
|
-
promise,
|
|
1505
|
-
abortController: void 0,
|
|
1506
|
-
// No direct AbortController access
|
|
1507
|
-
cancelFuture: async () => {
|
|
1508
|
-
if (newFuture) {
|
|
1509
|
-
await newFuture.cancelFuture();
|
|
1510
|
-
} else {
|
|
1511
|
-
const currentFuture = model.futureHandler.future;
|
|
1512
|
-
if (currentFuture) {
|
|
1513
|
-
await currentFuture.cancelFuture();
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
},
|
|
1517
|
-
future: newFuture
|
|
1518
|
-
// Pass the future for progress tracking
|
|
1519
|
-
});
|
|
1520
|
-
}
|
|
1521
|
-
function withCancellation(model, methodName, ...args) {
|
|
1522
|
-
const method = model[methodName];
|
|
1523
|
-
if (typeof method !== "function") {
|
|
1524
|
-
throw new Error(`${String(methodName)} is not a method`);
|
|
1525
|
-
}
|
|
1526
|
-
const initialFuture = model.futureHandler.future;
|
|
1527
|
-
const promise = method.apply(model, args);
|
|
1528
|
-
let targetFuture = null;
|
|
1529
|
-
setTimeout(() => {
|
|
1530
|
-
const currentFuture = model.futureHandler.future;
|
|
1531
|
-
if (currentFuture && currentFuture !== initialFuture) {
|
|
1532
|
-
targetFuture = currentFuture;
|
|
1533
|
-
}
|
|
1534
|
-
}, 0);
|
|
1535
|
-
return createCancellablePromise({
|
|
1536
|
-
promise,
|
|
1537
|
-
abortController: void 0,
|
|
1538
|
-
cancelFuture: async () => {
|
|
1539
|
-
if (targetFuture) {
|
|
1540
|
-
await targetFuture.cancelFuture();
|
|
1541
|
-
} else {
|
|
1542
|
-
const fallbackFuture = model.futureHandler.future;
|
|
1543
|
-
if (fallbackFuture) {
|
|
1544
|
-
await fallbackFuture.cancelFuture();
|
|
1545
|
-
}
|
|
1546
|
-
}
|
|
1547
|
-
},
|
|
1548
|
-
future: targetFuture
|
|
1549
|
-
// Pass the future for progress tracking
|
|
1550
|
-
});
|
|
1551
|
-
}
|
|
1552
|
-
class CancellationBatch {
|
|
1553
|
-
operations = [];
|
|
1554
|
-
add(model, methodCall) {
|
|
1555
|
-
const cancellable = makeCancellable(model, methodCall);
|
|
1556
|
-
this.operations.push(cancellable);
|
|
1557
|
-
return cancellable;
|
|
1558
|
-
}
|
|
1559
|
-
async cancelAll() {
|
|
1560
|
-
await Promise.all(
|
|
1561
|
-
this.operations.map(
|
|
1562
|
-
(op) => op.cancel().catch(() => {
|
|
1563
|
-
service$8.KosLog.warn("Cancellation failed for operation:", op);
|
|
1564
|
-
})
|
|
1565
|
-
)
|
|
1566
|
-
);
|
|
1567
|
-
}
|
|
1568
|
-
getAllControllers() {
|
|
1569
|
-
return this.operations.map((op) => op.getController());
|
|
1570
|
-
}
|
|
1571
|
-
getActiveCount() {
|
|
1572
|
-
return this.operations.filter((op) => !op.isCancelled()).length;
|
|
1573
|
-
}
|
|
1574
|
-
clear() {
|
|
1575
|
-
this.operations = [];
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
function createCancellationBatch() {
|
|
1579
|
-
return new CancellationBatch();
|
|
1580
|
-
}
|
|
1581
1318
|
const index$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1582
1319
|
__proto__: null,
|
|
1583
1320
|
sendCanvasData: service$8.sendCanvasData
|
|
@@ -1777,7 +1514,7 @@ const updateRegion = async (region) => {
|
|
|
1777
1514
|
regionInfo.updateProperty(region);
|
|
1778
1515
|
};
|
|
1779
1516
|
async function getKosServiceApi() {
|
|
1780
|
-
const { default: API } = await Promise.resolve().then(() => require("./software-info-registration-
|
|
1517
|
+
const { default: API } = await Promise.resolve().then(() => require("./software-info-registration-CA13_Qc_.cjs")).then((n) => n.service);
|
|
1781
1518
|
return API;
|
|
1782
1519
|
}
|
|
1783
1520
|
function kosServiceRequest$7(params) {
|
|
@@ -1905,7 +1642,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1905
1642
|
function isTroubleAware(obj) {
|
|
1906
1643
|
return obj?.troubles !== void 0 && obj?.troubles instanceof Array && obj?.troublesByType !== void 0 && typeof obj?.troublesByType === "object";
|
|
1907
1644
|
}
|
|
1908
|
-
const log$
|
|
1645
|
+
const log$9 = service$8.KosLog.createLogger({ group: service$8.LogGroup.service, name: "services" });
|
|
1909
1646
|
const studioLogin = async (username, password) => login(username, password, `${service$8.BASE_URL}/api/server/login`);
|
|
1910
1647
|
const login = async (username, password, url = `${service$8.BASE_URL}/api/login`) => {
|
|
1911
1648
|
const response = await service$8.kosFetch(`${url}`, {
|
|
@@ -1939,7 +1676,7 @@ const startPasswordReset = async (userId, url = `${service$8.BASE_URL}/api/start
|
|
|
1939
1676
|
};
|
|
1940
1677
|
const studioResetPassword = async (token2, password) => resetPassword(token2, password, `${service$8.BASE_URL}/api/server/resetPassword`);
|
|
1941
1678
|
const resetPassword = async (token2, password, url = `${service$8.BASE_URL}/api/resetPassword`) => {
|
|
1942
|
-
log$
|
|
1679
|
+
log$9.debug(
|
|
1943
1680
|
`resetting password with token ${token2} and password ${password.replace(
|
|
1944
1681
|
/./g,
|
|
1945
1682
|
"*"
|
|
@@ -1953,9 +1690,9 @@ const resetPassword = async (token2, password, url = `${service$8.BASE_URL}/api/
|
|
|
1953
1690
|
password
|
|
1954
1691
|
})
|
|
1955
1692
|
});
|
|
1956
|
-
log$
|
|
1693
|
+
log$9.debug(`password reset returned status ${response.status}`);
|
|
1957
1694
|
if (!response.ok) {
|
|
1958
|
-
log$
|
|
1695
|
+
log$9.error(`password reset failed with message ${response.statusText}`);
|
|
1959
1696
|
const configResponse2 = await response.json();
|
|
1960
1697
|
throw Error(
|
|
1961
1698
|
`${configResponse2?.error}:There was a problem resetting the password.`
|
|
@@ -1971,7 +1708,7 @@ const studioAcceptOrgInvitation = async (token2, password, name) => acceptOrgInv
|
|
|
1971
1708
|
`${service$8.BASE_URL}/api/server/acceptInvite`
|
|
1972
1709
|
);
|
|
1973
1710
|
const acceptOrgInvitation = async (token2, password, name, url = `${service$8.BASE_URL}/api/server/acceptInvite`) => {
|
|
1974
|
-
log$
|
|
1711
|
+
log$9.debug(
|
|
1975
1712
|
`accepting invite with token ${token2} and password ${password.replace(
|
|
1976
1713
|
/./g,
|
|
1977
1714
|
"*"
|
|
@@ -1986,9 +1723,9 @@ const acceptOrgInvitation = async (token2, password, name, url = `${service$8.BA
|
|
|
1986
1723
|
name
|
|
1987
1724
|
})
|
|
1988
1725
|
});
|
|
1989
|
-
log$
|
|
1726
|
+
log$9.debug(`invitation accept returned status ${response.status}`);
|
|
1990
1727
|
if (!response.ok) {
|
|
1991
|
-
log$
|
|
1728
|
+
log$9.error(`invite failed with message ${response.statusText}`);
|
|
1992
1729
|
const configResponse2 = await response.json();
|
|
1993
1730
|
throw Error(
|
|
1994
1731
|
`${configResponse2?.error}:There was a problem accepting the invite.`
|
|
@@ -2164,15 +1901,6 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
2164
1901
|
gpioApi,
|
|
2165
1902
|
gpioServiceRequest
|
|
2166
1903
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2167
|
-
function mapGpioChipToOptions(dto) {
|
|
2168
|
-
return dto;
|
|
2169
|
-
}
|
|
2170
|
-
function createGpioChipModel(dto) {
|
|
2171
|
-
return GpioChip.instance(dto.id).options(mapGpioChipToOptions(dto)).build();
|
|
2172
|
-
}
|
|
2173
|
-
function updateGpioChipModel(dto, model) {
|
|
2174
|
-
model.updateModel(mapGpioChipToOptions(dto));
|
|
2175
|
-
}
|
|
2176
1904
|
function filterGpioChipDto(chip) {
|
|
2177
1905
|
return !!chip.num || chip.num === 0;
|
|
2178
1906
|
}
|
|
@@ -2299,8 +2027,7 @@ GpioChipContainerModelImpl = __decorateClass$1([
|
|
|
2299
2027
|
sortKey: "num"
|
|
2300
2028
|
},
|
|
2301
2029
|
reconcile: {
|
|
2302
|
-
|
|
2303
|
-
update: updateGpioChipModel,
|
|
2030
|
+
model: GpioChip,
|
|
2304
2031
|
filter: filterGpioChipDto,
|
|
2305
2032
|
idMapper: mapGpioChipId,
|
|
2306
2033
|
afterCreate: afterGpioChipCreated
|
|
@@ -2310,15 +2037,15 @@ GpioChipContainerModelImpl = __decorateClass$1([
|
|
|
2310
2037
|
], GpioChipContainerModelImpl);
|
|
2311
2038
|
const GpioChipContainer = GpioChipContainerModelImpl.Registration;
|
|
2312
2039
|
GpioChipContainer.addRelatedModel(GpioChip);
|
|
2313
|
-
const log$
|
|
2314
|
-
|
|
2315
|
-
|
|
2040
|
+
const log$8 = service$8.KosLog.createLogger({
|
|
2041
|
+
group: service$8.LogGroup.service,
|
|
2042
|
+
name: "studio-properties-service"
|
|
2316
2043
|
});
|
|
2317
2044
|
const SERVICE_PATH = "/api/kos/studio/properties";
|
|
2318
2045
|
const getStudioProperties = async (connectionId) => {
|
|
2319
|
-
log$
|
|
2046
|
+
log$8.debug("sending GET for studio-properties");
|
|
2320
2047
|
if (!connectionId) {
|
|
2321
|
-
log$
|
|
2048
|
+
log$8.error("connectionId is undefined");
|
|
2322
2049
|
throw new Error("connectionId is undefined");
|
|
2323
2050
|
}
|
|
2324
2051
|
return await service$8.api.get(
|
|
@@ -2407,7 +2134,10 @@ let StudioPropertiesModelImpl = class {
|
|
|
2407
2134
|
}, {});
|
|
2408
2135
|
this.data.setValues(update ?? DEFAULT_STUDIO_PROPERTIES);
|
|
2409
2136
|
service$8.KosLog.ifDebug(
|
|
2410
|
-
() => this.logger.debug(
|
|
2137
|
+
() => this.logger.debug(
|
|
2138
|
+
`studio-properties loaded: ${JSON.stringify(update)}`
|
|
2139
|
+
),
|
|
2140
|
+
this.logger
|
|
2411
2141
|
);
|
|
2412
2142
|
}
|
|
2413
2143
|
}
|
|
@@ -2480,7 +2210,7 @@ const MessageContainer = styled.div`
|
|
|
2480
2210
|
color: ${({ theme }) => theme === "light" ? "black" : "white"};
|
|
2481
2211
|
z-index: 10000;
|
|
2482
2212
|
`;
|
|
2483
|
-
const log$
|
|
2213
|
+
const log$7 = service$8.KosLog.createLogger({ group: service$8.LogGroup.ui, name: "error-boundary" });
|
|
2484
2214
|
class ErrorBoundary extends React.Component {
|
|
2485
2215
|
constructor(props) {
|
|
2486
2216
|
super(props);
|
|
@@ -2497,7 +2227,7 @@ class ErrorBoundary extends React.Component {
|
|
|
2497
2227
|
}
|
|
2498
2228
|
componentDidCatch(error, errorInfo) {
|
|
2499
2229
|
const seam = this.props.name ? ` in ${this.props.name}` : "";
|
|
2500
|
-
log$
|
|
2230
|
+
log$7.error(
|
|
2501
2231
|
`Error boundary caught${seam}: ${error?.message ?? error}`,
|
|
2502
2232
|
error,
|
|
2503
2233
|
errorInfo.componentStack
|
|
@@ -2607,11 +2337,14 @@ const KosModelProvider = ({
|
|
|
2607
2337
|
);
|
|
2608
2338
|
return /* @__PURE__ */ jsxRuntime.jsx(KosModelContext.Provider, { value: { model, setModel: setKosModel }, children });
|
|
2609
2339
|
};
|
|
2610
|
-
const log$
|
|
2340
|
+
const log$6 = service$8.KosLog.createLogger({
|
|
2341
|
+
group: service$8.LogGroup.ui,
|
|
2342
|
+
name: "kos-model-hierarchy-context"
|
|
2343
|
+
});
|
|
2611
2344
|
const defaultNestedProps = {
|
|
2612
2345
|
models: [],
|
|
2613
2346
|
addModel: () => {
|
|
2614
|
-
log$
|
|
2347
|
+
log$6.debug("Default implementation being used. Do Nothing.");
|
|
2615
2348
|
}
|
|
2616
2349
|
};
|
|
2617
2350
|
const NestedModelContext = React.createContext(defaultNestedProps);
|
|
@@ -2620,7 +2353,7 @@ const KosModelCollectionProvider = ({ children }) => {
|
|
|
2620
2353
|
const addModel = React.useCallback(
|
|
2621
2354
|
(model) => {
|
|
2622
2355
|
if (!models.includes(model)) {
|
|
2623
|
-
log$
|
|
2356
|
+
log$6.debug("adding to hierarchy context", model.id);
|
|
2624
2357
|
setModels((prevModels) => [...prevModels, model]);
|
|
2625
2358
|
}
|
|
2626
2359
|
},
|
|
@@ -2652,7 +2385,10 @@ const useModelFromHierarchy = (type) => {
|
|
|
2652
2385
|
});
|
|
2653
2386
|
return context[0];
|
|
2654
2387
|
};
|
|
2655
|
-
const log$
|
|
2388
|
+
const log$5 = service$8.KosLog.createLogger({
|
|
2389
|
+
group: service$8.LogGroup.ui,
|
|
2390
|
+
name: "kos-model-loader"
|
|
2391
|
+
});
|
|
2656
2392
|
const DefaultLoader = () => /* @__PURE__ */ jsxRuntime.jsx("div", {});
|
|
2657
2393
|
const KosModelLoader = ({ fallback, children, ...modelProps }) => /* @__PURE__ */ jsxRuntime.jsx(KosModelProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(ErrorBoundary, { fallback, children: /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(KosModelLoaderDisplay, { ...modelProps, children }) }) }) });
|
|
2658
2394
|
const KosModelLoaderDisplay = (props) => {
|
|
@@ -2671,7 +2407,7 @@ const KosModelLoaderDisplay = (props) => {
|
|
|
2671
2407
|
}
|
|
2672
2408
|
}, [hierarchyContext, props.model, setModel]);
|
|
2673
2409
|
if (props.error) {
|
|
2674
|
-
log$
|
|
2410
|
+
log$5.error(props.error);
|
|
2675
2411
|
throw new Error(props.error);
|
|
2676
2412
|
}
|
|
2677
2413
|
const loader = props.loading || /* @__PURE__ */ jsxRuntime.jsx(DefaultLoader, {});
|
|
@@ -2711,6 +2447,10 @@ const useKosCore = () => {
|
|
|
2711
2447
|
return context;
|
|
2712
2448
|
};
|
|
2713
2449
|
const KOS_RECOVERING_SESSION_KEY = "kos:recovering";
|
|
2450
|
+
const log$4 = service$8.KosLog.createLogger({
|
|
2451
|
+
group: service$8.LogGroup.ui,
|
|
2452
|
+
name: "reload-on-disconnect-policy"
|
|
2453
|
+
});
|
|
2714
2454
|
const DEFAULT_GRACE_MS = 3e3;
|
|
2715
2455
|
const defaultReloadFn = () => {
|
|
2716
2456
|
window.location.reload();
|
|
@@ -2744,12 +2484,12 @@ const ReloadOnDisconnectPolicy = ({
|
|
|
2744
2484
|
JSON.stringify(info)
|
|
2745
2485
|
);
|
|
2746
2486
|
} catch (err) {
|
|
2747
|
-
|
|
2487
|
+
log$4.warn(
|
|
2748
2488
|
"ReloadOnDisconnectPolicy: failed to write sessionStorage",
|
|
2749
2489
|
err
|
|
2750
2490
|
);
|
|
2751
2491
|
}
|
|
2752
|
-
|
|
2492
|
+
log$4.warn(
|
|
2753
2493
|
`ReloadOnDisconnectPolicy: scheduling reload in ${graceMs}ms (code=${info.code}, wasClean=${info.wasClean})`
|
|
2754
2494
|
);
|
|
2755
2495
|
pendingReloadRef.current = setTimeout(() => {
|
|
@@ -2757,7 +2497,7 @@ const ReloadOnDisconnectPolicy = ({
|
|
|
2757
2497
|
try {
|
|
2758
2498
|
onBeforeReload?.(info);
|
|
2759
2499
|
} catch (err) {
|
|
2760
|
-
|
|
2500
|
+
log$4.error("ReloadOnDisconnectPolicy: onBeforeReload threw", err);
|
|
2761
2501
|
}
|
|
2762
2502
|
reloadFn();
|
|
2763
2503
|
}, graceMs);
|
|
@@ -3212,6 +2952,10 @@ const TokenContext = React.createContext(token);
|
|
|
3212
2952
|
function TokenProvider({ children }) {
|
|
3213
2953
|
return /* @__PURE__ */ jsxRuntime.jsx(TokenContext.Provider, { value: token, children });
|
|
3214
2954
|
}
|
|
2955
|
+
const log$3 = service$8.KosLog.createLogger({
|
|
2956
|
+
group: service$8.LogGroup.ui,
|
|
2957
|
+
name: "kos-translations-provider"
|
|
2958
|
+
});
|
|
3215
2959
|
const TranslationContainerContext = React.createContext(void 0);
|
|
3216
2960
|
const getDefaultHost = () => {
|
|
3217
2961
|
const defaultHost = window.location.origin;
|
|
@@ -3245,7 +2989,7 @@ const KosTranslationProvider = ({
|
|
|
3245
2989
|
const descriptorsResults = await Promise.allSettled(descriptorPromises);
|
|
3246
2990
|
const descriptors = descriptorsResults.map((d) => {
|
|
3247
2991
|
if (d.status === "rejected") {
|
|
3248
|
-
|
|
2992
|
+
log$3.warn("Failed to load localization descriptor", d.reason);
|
|
3249
2993
|
return void 0;
|
|
3250
2994
|
}
|
|
3251
2995
|
return d.value;
|
|
@@ -3351,8 +3095,11 @@ function renderDecodedPreview({
|
|
|
3351
3095
|
ctx.clearRect(0, 0, width * pixelSize, height * pixelSize);
|
|
3352
3096
|
ctx.drawImage(tempCanvas, 0, 0, width * pixelSize, height * pixelSize);
|
|
3353
3097
|
}
|
|
3354
|
-
const log = service$8.KosLog.createLogger({
|
|
3355
|
-
|
|
3098
|
+
const log$2 = service$8.KosLog.createLogger({
|
|
3099
|
+
group: service$8.LogGroup.ui,
|
|
3100
|
+
name: "canvas-streamer"
|
|
3101
|
+
});
|
|
3102
|
+
log$2.debug("main-view component loaded");
|
|
3356
3103
|
const PIXEL_SIZE = 10;
|
|
3357
3104
|
const CanvasStreamerBase = mobxReactLite.observer(
|
|
3358
3105
|
({
|
|
@@ -3579,7 +3326,7 @@ function withStorageDeviceContainer(WrappedComponent) {
|
|
|
3579
3326
|
return /* @__PURE__ */ jsxRuntime.jsx(KosModelLoader2, { ...status, children: /* @__PURE__ */ jsxRuntime.jsx(WrappedComponent, { ...props, storageDeviceContainer: model }) });
|
|
3580
3327
|
};
|
|
3581
3328
|
}
|
|
3582
|
-
const LOG = service$8.KosLog.createLogger({ name: "use-timer" });
|
|
3329
|
+
const LOG = service$8.KosLog.createLogger({ group: service$8.LogGroup.ui, name: "use-timer" });
|
|
3583
3330
|
const useTimer = ({
|
|
3584
3331
|
timerName,
|
|
3585
3332
|
onTimerExpired,
|
|
@@ -3701,6 +3448,10 @@ const Trans = (props) => {
|
|
|
3701
3448
|
const element = substituteBlocks(translated, components || {});
|
|
3702
3449
|
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: props.className, children: element });
|
|
3703
3450
|
};
|
|
3451
|
+
const log$1 = service$8.KosLog.createLogger({
|
|
3452
|
+
group: service$8.LogGroup.ui,
|
|
3453
|
+
name: "use-translation"
|
|
3454
|
+
});
|
|
3704
3455
|
const cache = /* @__PURE__ */ new Map();
|
|
3705
3456
|
function fetchData(key, fetcher) {
|
|
3706
3457
|
if (cache.has(key)) {
|
|
@@ -3775,7 +3526,7 @@ const useKosTranslation = (namespace, baseOptions) => {
|
|
|
3775
3526
|
if (translationModel) {
|
|
3776
3527
|
return translationModel.resolveKey(expandedKey, options);
|
|
3777
3528
|
}
|
|
3778
|
-
|
|
3529
|
+
log$1.debug(
|
|
3779
3530
|
`Translation model ${namespace} not ready for key: ${expandedKey}`
|
|
3780
3531
|
);
|
|
3781
3532
|
return expandedKey;
|
|
@@ -4819,6 +4570,10 @@ const useKosTimeFormats = (timeFormatMap = DEFAULT_FORMAT_MAP) => {
|
|
|
4819
4570
|
};
|
|
4820
4571
|
};
|
|
4821
4572
|
const useLocalComputed = (callback, dependencies) => React.useMemo(() => service$8.kosComputed(callback), dependencies);
|
|
4573
|
+
const log = service$8.KosLog.createLogger({
|
|
4574
|
+
group: service$8.LogGroup.ui,
|
|
4575
|
+
name: "use-mutation-observer"
|
|
4576
|
+
});
|
|
4822
4577
|
const DEFAULT_OPTIONS = {
|
|
4823
4578
|
config: { attributes: true, childList: true, subtree: true }
|
|
4824
4579
|
};
|
|
@@ -4841,7 +4596,7 @@ function useMutationObserver(targetEl, cb, options = DEFAULT_OPTIONS) {
|
|
|
4841
4596
|
try {
|
|
4842
4597
|
observer.observe(targetEl, config);
|
|
4843
4598
|
} catch (e) {
|
|
4844
|
-
|
|
4599
|
+
log.error(e);
|
|
4845
4600
|
}
|
|
4846
4601
|
return () => {
|
|
4847
4602
|
if (observer) {
|
|
@@ -4862,8 +4617,8 @@ const DomIntersectionStrategy = {
|
|
|
4862
4617
|
}
|
|
4863
4618
|
};
|
|
4864
4619
|
const logger = service$8.KosLog.createLogger({
|
|
4865
|
-
|
|
4866
|
-
|
|
4620
|
+
group: service$8.LogGroup.ui,
|
|
4621
|
+
name: "usePressGesture"
|
|
4867
4622
|
});
|
|
4868
4623
|
function usePressGesture({
|
|
4869
4624
|
onPressed,
|
|
@@ -5123,6 +4878,7 @@ Object.defineProperty(exports, "BASE_URL", {
|
|
|
5123
4878
|
exports.BrowserKosRouter = service$8.BrowserKosRouter;
|
|
5124
4879
|
exports.BrowserRouter = service$8.BrowserRouter;
|
|
5125
4880
|
exports.CancellableServiceManager = service$8.CancellableServiceManager;
|
|
4881
|
+
exports.CancellationBatch = service$8.CancellationBatch;
|
|
5126
4882
|
exports.CanvasDispatcher = service$8.CanvasDispatcher;
|
|
5127
4883
|
exports.CanvasRenderer = service$8.CanvasRenderer;
|
|
5128
4884
|
exports.ChildModels = service$8.ChildModels;
|
|
@@ -5221,10 +4977,11 @@ exports.LOGIN_HOST = service$8.LOGIN_HOST;
|
|
|
5221
4977
|
exports.LOGIN_URL = service$8.LOGIN_URL;
|
|
5222
4978
|
exports.LogBlock = service$8.LogBlock;
|
|
5223
4979
|
exports.LogBlockContainer = service$8.LogBlockContainer;
|
|
5224
|
-
exports.
|
|
4980
|
+
exports.LogGroup = service$8.LogGroup;
|
|
5225
4981
|
exports.LogStream = service$8.LogStream;
|
|
5226
4982
|
exports.LogStreamContainer = service$8.LogStreamContainer;
|
|
5227
4983
|
exports.LoggerSetup = service$8.LoggerSetup;
|
|
4984
|
+
exports.MESSAGE_LOGGER_NAME = service$8.MESSAGE_LOGGER_NAME;
|
|
5228
4985
|
exports.MODEL_DELETION_DELAY = service$8.MODEL_DELETION_DELAY;
|
|
5229
4986
|
exports.MixinModels = service$8.MixinModels;
|
|
5230
4987
|
exports.ModelEffects = service$8.ModelEffects;
|
|
@@ -5308,7 +5065,9 @@ exports.convert = service$8.convert;
|
|
|
5308
5065
|
exports.convertWithUnits = service$8.convertWithUnits;
|
|
5309
5066
|
exports.createBaseMessage = service$8.createBaseMessage;
|
|
5310
5067
|
exports.createBroadcastMessageResponse = service$8.createBroadcastMessageResponse;
|
|
5068
|
+
exports.createCancellablePromise = service$8.createCancellablePromise;
|
|
5311
5069
|
exports.createCancellableService = service$8.createCancellableService;
|
|
5070
|
+
exports.createCancellationBatch = service$8.createCancellationBatch;
|
|
5312
5071
|
exports.createClient = service$8.createClient;
|
|
5313
5072
|
exports.createFosBaseMessage = service$8.createFosBaseMessage;
|
|
5314
5073
|
exports.createHeaders = service$8.createHeaders;
|
|
@@ -5342,7 +5101,6 @@ exports.getHttpRouteHandlers = service$8.getHttpRouteHandlers;
|
|
|
5342
5101
|
exports.getKosCompanionModel = service$8.getKosCompanionModel;
|
|
5343
5102
|
exports.getKosConnectionId = service$8.getKosConnectionId;
|
|
5344
5103
|
exports.getKosLocalizationDescriptor = service$8.getKosLocalizationDescriptor;
|
|
5345
|
-
exports.getKosMessageLogging = service$8.getKosMessageLogging;
|
|
5346
5104
|
exports.getKosModel = service$8.getKosModel;
|
|
5347
5105
|
exports.getKosModelActivationState = service$8.getKosModelActivationState;
|
|
5348
5106
|
exports.getKosModelSync = service$8.getKosModelSync;
|
|
@@ -5350,7 +5108,6 @@ exports.getKosModelType = service$8.getKosModelType;
|
|
|
5350
5108
|
exports.getKosSessionKey = service$8.getKosSessionKey;
|
|
5351
5109
|
exports.getLocalizationDescriptor = service$8.getLocalizationDescriptor;
|
|
5352
5110
|
exports.getLogLevel = service$8.getLogLevel;
|
|
5353
|
-
exports.getLogMessageToStudio = service$8.getLogMessageToStudio;
|
|
5354
5111
|
exports.getMessageBody = service$8.getMessageBody;
|
|
5355
5112
|
exports.getObservableCompanions = service$8.getObservableCompanions;
|
|
5356
5113
|
exports.getQueryParams = service$8.getQueryParams;
|
|
@@ -5402,6 +5159,7 @@ exports.kosStateGuard = service$8.kosStateGuard;
|
|
|
5402
5159
|
exports.kosStateMachine = service$8.kosStateMachine;
|
|
5403
5160
|
exports.kosTopicHandler = service$8.kosTopicHandler;
|
|
5404
5161
|
exports.kosWhen = service$8.kosWhen;
|
|
5162
|
+
exports.makeCancellable = service$8.makeCancellable;
|
|
5405
5163
|
exports.mapConfigBeanModelToDto = service$8.mapConfigBeanModelToDto;
|
|
5406
5164
|
exports.mapDataToModel = service$8.mapDataToModel;
|
|
5407
5165
|
exports.mapDtoToConfigBeanModel = service$8.mapDtoToConfigBeanModel;
|
|
@@ -5437,21 +5195,26 @@ exports.resolveKosProfiles = service$8.resolveKosProfiles;
|
|
|
5437
5195
|
exports.resolveListDeltas = service$8.resolveListDeltas;
|
|
5438
5196
|
exports.resolveServiceRequestParameters = service$8.resolveServiceRequestParameters;
|
|
5439
5197
|
exports.resolveServiceUrl = service$8.resolveServiceUrl;
|
|
5198
|
+
exports.retryWithExponentialBackoff = service$8.retryWithExponentialBackoff;
|
|
5440
5199
|
exports.sendAsyncIntent = service$8.sendAsyncIntent;
|
|
5441
5200
|
exports.sendBroadcastMessage = service$8.sendBroadcastMessage;
|
|
5442
5201
|
exports.sendIntent = service$8.sendIntent;
|
|
5443
5202
|
exports.sendKosHttpMessageResponse = service$8.sendKosHttpMessageResponse;
|
|
5444
5203
|
exports.sendKosMessage = service$8.sendKosMessage;
|
|
5445
5204
|
exports.sendKosMessageResponse = service$8.sendKosMessageResponse;
|
|
5205
|
+
exports.sendRequest = service$8.sendRequest;
|
|
5446
5206
|
exports.sendStudioMessage = service$8.sendStudioMessage;
|
|
5447
5207
|
exports.sendStudioMessageRequest = service$8.sendStudioMessageRequest;
|
|
5208
|
+
exports.syncPublish = service$8.syncPublish;
|
|
5448
5209
|
exports.troubleByTypeReducer = service$8.troubleByTypeReducer;
|
|
5449
5210
|
exports.troubleDataFactory = service$8.troubleDataFactory;
|
|
5450
5211
|
exports.unloadKosModel = service$8.unloadKosModel;
|
|
5451
5212
|
exports.uuid = service$8.uuid;
|
|
5452
5213
|
exports.waitForAppToStart = service$8.waitForAppToStart;
|
|
5453
5214
|
exports.waitForAppsToStart = service$8.waitForAppsToStart;
|
|
5215
|
+
exports.waitForRequest = service$8.waitForRequest;
|
|
5454
5216
|
exports.whenReady = service$8.whenReady;
|
|
5217
|
+
exports.withCancellation = service$8.withCancellation;
|
|
5455
5218
|
exports.wrapWithFutureLifecycle = service$8.wrapWithFutureLifecycle;
|
|
5456
5219
|
Object.defineProperty(exports, "makeAutoObservable", {
|
|
5457
5220
|
enumerable: true,
|
|
@@ -5466,7 +5229,6 @@ Object.defineProperty(exports, "kosComponent", {
|
|
|
5466
5229
|
get: () => mobxReactLite.observer
|
|
5467
5230
|
});
|
|
5468
5231
|
exports.AncestorPathVisitor = AncestorPathVisitor;
|
|
5469
|
-
exports.CancellationBatch = CancellationBatch;
|
|
5470
5232
|
exports.CanvasDispatcherServices = index$7;
|
|
5471
5233
|
exports.CanvasStreamer = CanvasStreamer;
|
|
5472
5234
|
exports.CanvasStreamerBase = CanvasStreamerBase;
|
|
@@ -5548,8 +5310,6 @@ exports.clearPath = clearPath;
|
|
|
5548
5310
|
exports.clearServiceResponse = clearServiceResponse;
|
|
5549
5311
|
exports.collectLocaleOptions = collectLocaleOptions;
|
|
5550
5312
|
exports.convertFileSizeRaw = convertFileSizeRaw;
|
|
5551
|
-
exports.createCancellablePromise = createCancellablePromise;
|
|
5552
|
-
exports.createCancellationBatch = createCancellationBatch;
|
|
5553
5313
|
exports.debounce = debounce;
|
|
5554
5314
|
exports.executeServiceRequest = executeServiceRequest;
|
|
5555
5315
|
exports.fetchModel = fetchModel;
|
|
@@ -5587,7 +5347,6 @@ exports.kosConfigProperty = kosConfigProperty;
|
|
|
5587
5347
|
exports.kosContainerIndexAware = kosContainerIndexAware;
|
|
5588
5348
|
exports.kosContext = kosContext;
|
|
5589
5349
|
exports.kosIndexAware = kosIndexAware;
|
|
5590
|
-
exports.kosLogger = kosLogger;
|
|
5591
5350
|
exports.kosMixin = kosMixin;
|
|
5592
5351
|
exports.kosMultipleFutureAware = kosMultipleFutureAware;
|
|
5593
5352
|
exports.kosReference = kosReference;
|
|
@@ -5597,15 +5356,12 @@ exports.kosSubscribe = kosSubscribe;
|
|
|
5597
5356
|
exports.kosTroubleAware = kosTroubleAware;
|
|
5598
5357
|
exports.kosViewModel = kosViewModel;
|
|
5599
5358
|
exports.login = login;
|
|
5600
|
-
exports.makeCancellable = makeCancellable;
|
|
5601
5359
|
exports.mergeLocalizationDescriptors = mergeLocalizationDescriptors;
|
|
5602
5360
|
exports.pairedClientHeartbeat = pairedClientHeartbeat;
|
|
5603
5361
|
exports.processMiddleware = processMiddleware;
|
|
5604
5362
|
exports.readModelHookEntry = readModelHookEntry;
|
|
5605
5363
|
exports.resetPassword = resetPassword;
|
|
5606
5364
|
exports.resolveVariable = resolveVariable;
|
|
5607
|
-
exports.retryWithExponentialBackoff = retryWithExponentialBackoff;
|
|
5608
|
-
exports.sendRequest = sendRequest;
|
|
5609
5365
|
exports.startPasswordReset = startPasswordReset;
|
|
5610
5366
|
exports.stringComponentInsert = stringComponentInsert;
|
|
5611
5367
|
exports.studioAcceptOrgInvitation = studioAcceptOrgInvitation;
|
|
@@ -5613,7 +5369,6 @@ exports.studioLogin = studioLogin;
|
|
|
5613
5369
|
exports.studioResetPassword = studioResetPassword;
|
|
5614
5370
|
exports.studioStartPasswordReset = studioStartPasswordReset;
|
|
5615
5371
|
exports.subscribeStore = subscribeStore;
|
|
5616
|
-
exports.syncPublish = syncPublish;
|
|
5617
5372
|
exports.updateCompanionModelRegistration = updateCompanionModelRegistration;
|
|
5618
5373
|
exports.updateModelRegistration = updateModelRegistration;
|
|
5619
5374
|
exports.updateRegion = updateRegion;
|
|
@@ -5678,8 +5433,6 @@ exports.useViewModel = useViewModel;
|
|
|
5678
5433
|
exports.useYears = useYears;
|
|
5679
5434
|
exports.useYearsOptions = useYearsOptions;
|
|
5680
5435
|
exports.variableToHex = variableToHex;
|
|
5681
|
-
exports.waitForRequest = waitForRequest;
|
|
5682
|
-
exports.withCancellation = withCancellation;
|
|
5683
5436
|
exports.withDevice = withDevice;
|
|
5684
5437
|
exports.withKosTime = withKosTime;
|
|
5685
5438
|
exports.withNetworkInterfaceContainer = withNetworkInterfaceContainer;
|