@kosdev-code/kos-ui-sdk 3.0.28 → 3.0.29
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-reload-aware.d.ts +4 -0
- package/core/core/decorators/kos-reload-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 +1 -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/indexing/kos-container-index-aware.d.ts +4 -0
- package/core/core/indexing/kos-container-index-aware.d.ts.map +1 -1
- package/core/core/indexing/kos-index-aware.d.ts +6 -0
- package/core/core/indexing/kos-index-aware.d.ts.map +1 -1
- package/core/core/indexing/types.d.ts +30 -3
- package/core/core/indexing/types.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 +27 -0
- package/core/core/log/log-groups.d.ts.map +1 -0
- package/core/core/log/log-override-match.d.ts +24 -0
- package/core/core/log/log-override-match.d.ts.map +1 -0
- package/core/core/log/log.d.ts +15 -9
- 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/model-hook-cache.d.ts +6 -1
- package/core/core/model/model-hook-cache.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/model-registration.d.ts +2 -0
- package/core/core/registration/model-registration.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 +2 -0
- package/core/util/kos-model-utils.d.ts.map +1 -1
- package/core/util/kos-service-request.d.ts +11 -2
- 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 +78 -322
- package/index.cjs.map +1 -1
- package/index.js +332 -576
- 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/gpio-chip/services/gpio-chip-services.d.ts +1 -1
- package/models/models/key-value/services/key-value-services.d.ts.map +1 -1
- package/models/models/kos-expression-evaluator/expression-parse-cache.d.ts +2 -0
- package/models/models/kos-expression-evaluator/expression-parse-cache.d.ts.map +1 -1
- package/models/models/kos-log-manager/kos-log-manager-model.d.ts +43 -24
- package/models/models/kos-log-manager/kos-log-manager-model.d.ts.map +1 -1
- package/models/models/kos-log-manager/services/kos-log-manager-services.d.ts +20 -1
- package/models/models/kos-log-manager/services/kos-log-manager-services.d.ts.map +1 -1
- package/models/models/kos-log-manager/types/index.d.ts +75 -6
- 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/descriptor-merge.d.ts +9 -1
- package/models/models/translation/descriptor-merge.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/types/cancellable-promise.d.ts +2 -0
- package/models/types/cancellable-promise.d.ts.map +1 -1
- package/models/utils/await-future-call.d.ts +8 -0
- 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/client.d.ts +1 -1
- package/models/utils/core-registration-manager.d.ts +15 -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/service-accessor.d.ts +1 -1
- package/models/utils/service.d.ts +1 -1
- package/models/utils/services/kos/1.6.5/service.d.ts +1 -1
- package/models/utils/services/kos/1.8.1/service.d.ts +1 -1
- package/models/utils/services/kos/1.9.x/service.d.ts +1 -1
- package/models/utils/services/kos/daily/service.d.ts +1 -1
- package/models/utils/services/vfs/1.6.5/service.d.ts +1 -1
- package/models/utils/services/vfs/1.8.1/service.d.ts +1 -1
- package/models/utils/services/vfs/1.9.x/service.d.ts +1 -1
- package/models/utils/services/vfs/daily/service.d.ts +1 -1
- package/models/utils/timer-manager.d.ts.map +1 -1
- package/package.json +2 -2
- package/{software-info-registration-Le3V0a6v.cjs → software-info-registration-CA13_Qc_.cjs} +1285 -703
- package/software-info-registration-CA13_Qc_.cjs.map +1 -0
- package/{software-info-registration-kSGacOka.js → software-info-registration-CKRUzp_3.js} +1596 -1014
- 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-kos-model.d.ts +1 -0
- package/ui/hooks/use-kos-model.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-Le3V0a6v.cjs.map +0 -1
- package/software-info-registration-kSGacOka.js.map +0 -1
package/index.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { s as subscribe, p as publish, k as kosParentAware, C as CompanionParentModel, K as KosContextManager, M as MultipleFutureContainerSetup,
|
|
2
|
-
import {
|
|
1
|
+
import { s as subscribe, p as publish, k as kosParentAware, C as CompanionParentModel, K as KosContextManager, M as MultipleFutureContainerSetup, a as MixinModels, R as ReferenceConfig, T as TroubleAwareSetup, D as DependencyModels, E as ExtensionManager, S as SubscriptionHandlers, b as KosViewModelSymbol, V as ViewModelConfig, c as StateMachineSetup, d as DependencyLifecycle, i as injectStateMachineSupport, e as initializeStateMachine, f as ModelEffects, g as KosModelVisitor, h as KosCore, j as sendKosMessageResponse, I as INDEX_RECORD_SYMBOL, l as INDEX_COLLECTION_KEY, m as KosContainerIndexEvents, n as isIndexableItem, o as Kos, q as isKosModel, r as ConfigBean, t as configBeanModelId, u as getRegionInfo, v as getRegions, w as Registration, x as getStateBeanData, y as StateBean, z as getStateProps, A as StateProp, B as deleteKeyValue, F as deleteKeyValueNamespace, G as getKeyValue, H as updateKeyValue, J as addLogOverride, L as getLogGroups, N as getLogOverrides, O as removeLogOverride, P as getTimezone, Q as setDate, U as setTime, W as setTimezone, X as createOverride, Y as getLogStreamBlock, Z as getLogStreamBlocks, _ as getLogStreams, $ as subscribeToLogStream, a0 as unsubscribeFromLogStream, a1 as bulkResolveTroubles, a2 as getTroubles, a3 as resolveTrouble, a4 as sendCanvasData, a5 as getDeviceDetails, a6 as getSerialNumber, a7 as getNetworkInterfaces, a8 as getStorageDevices, a9 as getAvailableUpdates, aa as installUpdate, ab as TranslationContainer, ac as whenReady, ad as KosCoreModelPropertyMapper, ae as CanvasDispatcher, af as KeyValue, ag as destroyKosModel, ah as createClient, ai as kosServiceRequest$8, aj as getSoftwareInfos, ak as getSoftwareInfosWithCancel, al as KosLog, am as LogGroup, an as BASE_URL, ao as kosFetch, ap as kosModel, aq as kosLoggerAware, ar as kosContainerAware, as as kosChild, at as api$8, au as ObservableData, av as WebSocketTransport, aw as kosComputed, ax as KosModelRegistrationFactory, ay as getKosModelSync, az as kosAutoEffect, aA as WebSocketEvents, aB as modelHookCache, aC as isUpdateable, aD as KosModelState, aE as KosModelEvents, aF as clearModelHookCacheEntry, aG as KosTime, aH as SoftwareInfo, aI as getQueryParams, aJ as getKosLocalizationDescriptor, aK as Device, aL as NetworkInterfaceContainer, aM as Ota, aN as StorageDeviceContainer, aO as TimerManager, aP as TIMER_END, aQ as TIMER_EVENT, aR as TOPIC_TIMER_TICK_EVENT, aS as getKosModel, aT as Trouble, aU as TroubleContainer, aV as UsbUpdateContainer, aW as Registration$1 } from "./software-info-registration-CKRUzp_3.js";
|
|
2
|
+
import { aX, aY, aZ, a_, a$, b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, ba, bb, bc, bd, be, bf, bg, bh, bi, bj, bk, bl, bm, bn, bo, bp, bq, br, bs, bt, bu, bv, bw, bx, by, bz, bA, bB, bC, bD, bE, bF, bG, bH, bI, bJ, bK, bL, bM, bN, bO, bP, bQ, bR, bS, bT, bU, bV, bW, bX, bY, bZ, b_, b$, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, ca, cb, cc, cd, ce, cf, cg, ch, ci, cj, ck, cl, cm, cn, co, cp, cq, cr, cs, ct, cu, cv, cw, cx, cy, cz, cA, cB, cC, cD, cE, cF, cG, cH, cI, cJ, cK, cL, cM, cN, cO, cP, cQ, cR, cS, cT, cU, cV, cW, cX, cY, cZ, c_, c$, d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, da, db, dc, dd, de, df, dg, dh, di, dj, dk, dl, dm, dn, dp, dq, dr, ds, dt, du, dv, dw, dx, dy, dz, dA, dB, dC, dD, dE, dF, dG, dH, dI, dJ, dK, dL, dM, dN, dO, dP, dQ, dR, dS, dT, dU, dV, dW, dX, dY, dZ, d_, d$, e0, e1, e2, e3, e4, e5, e6, e7, e8, e9, ea, eb, ec, ed, ee, ef, eg, eh, ei, ej, ek, el, em, en, eo, ep, eq, er, es, et, eu, ev, ew, ex, ey, ez, eA, eB, eC, eD, eE, eF, eG, eH, eI, eJ, eK, eL, eM, eN, eO, eP, eQ, eR, eS, eT, eU, eV, eW, eX, eY, eZ, e_, e$, f0, f1, f2 } from "./software-info-registration-CKRUzp_3.js";
|
|
3
3
|
import { action, reaction, autorun, makeAutoObservable, runInAction } from "mobx";
|
|
4
4
|
import { makeAutoObservable as makeAutoObservable2, makeObservable } from "mobx";
|
|
5
|
-
import log$6 from "loglevel";
|
|
6
5
|
import { jsx, jsxs, Fragment } from "@emotion/react/jsx-runtime";
|
|
7
6
|
import styled from "@emotion/styled";
|
|
8
7
|
import { createPortal } from "react-dom";
|
|
@@ -398,10 +397,6 @@ function kosMultipleFutureAware(options) {
|
|
|
398
397
|
return target;
|
|
399
398
|
};
|
|
400
399
|
}
|
|
401
|
-
const kosLogger = ({ group } = { group: "" }) => (constructor) => {
|
|
402
|
-
constructor[LogConfig] = constructor[LogConfig] || {};
|
|
403
|
-
constructor[LogConfig] = { group };
|
|
404
|
-
};
|
|
405
400
|
function kosMixin(mixin, options) {
|
|
406
401
|
return (target, propertyKey) => {
|
|
407
402
|
const companion = mixin.class.prototype[CompanionParentModel];
|
|
@@ -962,33 +957,6 @@ const pairedClientHeartbeat = ({
|
|
|
962
957
|
controller.signal.addEventListener("abort", handleAbort);
|
|
963
958
|
return { cleanUpHeartbeat };
|
|
964
959
|
};
|
|
965
|
-
const BASE_OPTIONS = {
|
|
966
|
-
maxAttempts: 5,
|
|
967
|
-
baseDelayMs: 100,
|
|
968
|
-
backoffFactor: 1.5
|
|
969
|
-
};
|
|
970
|
-
async function retryWithExponentialBackoff(operation, options) {
|
|
971
|
-
let attempt = 1;
|
|
972
|
-
const _options = { ...BASE_OPTIONS, ...options };
|
|
973
|
-
const { maxAttempts, baseDelayMs, backoffFactor } = _options;
|
|
974
|
-
let delayMs = baseDelayMs;
|
|
975
|
-
while (attempt <= maxAttempts) {
|
|
976
|
-
try {
|
|
977
|
-
const result = await operation();
|
|
978
|
-
return result;
|
|
979
|
-
} catch (error) {
|
|
980
|
-
KosLog.error(`Attempt ${attempt} failed: ${error}`);
|
|
981
|
-
if (attempt < maxAttempts) {
|
|
982
|
-
delayMs = baseDelayMs * Math.pow(backoffFactor, attempt);
|
|
983
|
-
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
984
|
-
attempt++;
|
|
985
|
-
} else {
|
|
986
|
-
throw error;
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
throw new Error("All attempts failed");
|
|
991
|
-
}
|
|
992
960
|
function getServiceResponse(model, path, method = "get") {
|
|
993
961
|
const store = model.serviceResponses;
|
|
994
962
|
if (!store) {
|
|
@@ -1024,58 +992,6 @@ function clearAllServiceResponses(model) {
|
|
|
1024
992
|
}
|
|
1025
993
|
store.clear();
|
|
1026
994
|
}
|
|
1027
|
-
const waitForRequest = async (requestId, timeout = 6e4) => new Promise((resolve, reject) => {
|
|
1028
|
-
const { unsubscribe } = subscribe(requestId, (op) => {
|
|
1029
|
-
log$6.debug(`recieved response for refId ${requestId}: ${op}`);
|
|
1030
|
-
unsubscribe();
|
|
1031
|
-
clearTimeout(cancel);
|
|
1032
|
-
try {
|
|
1033
|
-
const body = op?.body ? JSON.parse(op.body) : {};
|
|
1034
|
-
resolve(body);
|
|
1035
|
-
} catch {
|
|
1036
|
-
const body = op?.body || {};
|
|
1037
|
-
resolve(body);
|
|
1038
|
-
}
|
|
1039
|
-
});
|
|
1040
|
-
const cancel = setTimeout(() => {
|
|
1041
|
-
unsubscribe();
|
|
1042
|
-
reject(Error(`Request with ID ${requestId} timed out. Cancelling.`));
|
|
1043
|
-
}, timeout);
|
|
1044
|
-
});
|
|
1045
|
-
const sendRequest = async (requestPromise, params, refId) => {
|
|
1046
|
-
const op = waitForRequest(refId);
|
|
1047
|
-
const result = await Promise.allSettled([requestPromise(params), op]);
|
|
1048
|
-
if (result[0].status === "fulfilled") {
|
|
1049
|
-
if (result[1].status === "rejected") {
|
|
1050
|
-
throw Error(result[1].reason);
|
|
1051
|
-
} else {
|
|
1052
|
-
if (result[0].value) {
|
|
1053
|
-
if (result[1].value.error) {
|
|
1054
|
-
throw Error(result[1].value.error);
|
|
1055
|
-
}
|
|
1056
|
-
result[0].value.data = result[1].value;
|
|
1057
|
-
return result[0].value;
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
} else {
|
|
1061
|
-
throw Error(result[0].reason);
|
|
1062
|
-
}
|
|
1063
|
-
return void 0;
|
|
1064
|
-
};
|
|
1065
|
-
const syncPublish = async ({
|
|
1066
|
-
topic,
|
|
1067
|
-
msg,
|
|
1068
|
-
requestId
|
|
1069
|
-
}) => {
|
|
1070
|
-
const _requestId = requestId ?? uuid();
|
|
1071
|
-
const responsePromise = waitForRequest(_requestId);
|
|
1072
|
-
publish(topic, msg, { sync: _requestId });
|
|
1073
|
-
const response = await responsePromise;
|
|
1074
|
-
if (response.error) {
|
|
1075
|
-
throw Error(response.error);
|
|
1076
|
-
}
|
|
1077
|
-
return response;
|
|
1078
|
-
};
|
|
1079
995
|
function kosIndexAware(options) {
|
|
1080
996
|
return (target) => {
|
|
1081
997
|
const collection = options?.collection;
|
|
@@ -1373,7 +1289,10 @@ const index$c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1373
1289
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1374
1290
|
const index$b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1375
1291
|
__proto__: null,
|
|
1376
|
-
|
|
1292
|
+
addLogOverride,
|
|
1293
|
+
getLogGroups,
|
|
1294
|
+
getLogOverrides,
|
|
1295
|
+
removeLogOverride
|
|
1377
1296
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1378
1297
|
const index$a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1379
1298
|
__proto__: null,
|
|
@@ -1397,185 +1316,6 @@ const index$8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1397
1316
|
getTroubles,
|
|
1398
1317
|
resolveTrouble
|
|
1399
1318
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1400
|
-
function createCancellablePromise(promiseOrOptions, abortController, cancelFuture, future) {
|
|
1401
|
-
const options = promiseOrOptions instanceof Promise ? { promise: promiseOrOptions, abortController, cancelFuture, future } : promiseOrOptions;
|
|
1402
|
-
const {
|
|
1403
|
-
promise,
|
|
1404
|
-
abortController: controller,
|
|
1405
|
-
cancelFuture: cancelFn,
|
|
1406
|
-
future: futureRef
|
|
1407
|
-
} = options;
|
|
1408
|
-
const cancellablePromise = promise;
|
|
1409
|
-
let currentProgress = 0;
|
|
1410
|
-
let currentStatus = "PENDING";
|
|
1411
|
-
let isRunning = true;
|
|
1412
|
-
const progressCallbacks = /* @__PURE__ */ new Set();
|
|
1413
|
-
let effectDisposer;
|
|
1414
|
-
if (futureRef && typeof futureRef === "object") {
|
|
1415
|
-
effectDisposer = autorun(() => {
|
|
1416
|
-
const newProgress = futureRef.progress || 0;
|
|
1417
|
-
const newStatus = futureRef.status || "PENDING";
|
|
1418
|
-
const newIsRunning = !futureRef.endState;
|
|
1419
|
-
if (newProgress !== currentProgress || newStatus !== currentStatus || newIsRunning !== isRunning) {
|
|
1420
|
-
currentProgress = newProgress;
|
|
1421
|
-
currentStatus = newStatus;
|
|
1422
|
-
isRunning = newIsRunning;
|
|
1423
|
-
progressCallbacks.forEach((callback) => {
|
|
1424
|
-
try {
|
|
1425
|
-
callback(currentProgress, currentStatus);
|
|
1426
|
-
} catch (error) {
|
|
1427
|
-
console.warn("Progress callback error:", error);
|
|
1428
|
-
}
|
|
1429
|
-
});
|
|
1430
|
-
}
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
promise.finally(() => {
|
|
1434
|
-
isRunning = false;
|
|
1435
|
-
if (!controller?.signal.aborted) {
|
|
1436
|
-
currentStatus = "COMPLETED";
|
|
1437
|
-
progressCallbacks.forEach((callback) => {
|
|
1438
|
-
try {
|
|
1439
|
-
callback(currentProgress, currentStatus);
|
|
1440
|
-
} catch (error) {
|
|
1441
|
-
console.warn("Progress callback error:", error);
|
|
1442
|
-
}
|
|
1443
|
-
});
|
|
1444
|
-
}
|
|
1445
|
-
if (effectDisposer) {
|
|
1446
|
-
effectDisposer();
|
|
1447
|
-
}
|
|
1448
|
-
progressCallbacks.clear();
|
|
1449
|
-
});
|
|
1450
|
-
cancellablePromise.cancel = async () => {
|
|
1451
|
-
if (controller && !controller.signal.aborted) {
|
|
1452
|
-
controller.abort();
|
|
1453
|
-
}
|
|
1454
|
-
if (cancelFn) {
|
|
1455
|
-
await cancelFn();
|
|
1456
|
-
}
|
|
1457
|
-
isRunning = false;
|
|
1458
|
-
currentStatus = "CANCELLED";
|
|
1459
|
-
progressCallbacks.forEach((callback) => {
|
|
1460
|
-
try {
|
|
1461
|
-
callback(currentProgress, currentStatus);
|
|
1462
|
-
} catch (error) {
|
|
1463
|
-
console.warn("Progress callback error:", error);
|
|
1464
|
-
}
|
|
1465
|
-
});
|
|
1466
|
-
if (effectDisposer) {
|
|
1467
|
-
effectDisposer();
|
|
1468
|
-
}
|
|
1469
|
-
};
|
|
1470
|
-
cancellablePromise.getController = () => controller;
|
|
1471
|
-
cancellablePromise.isCancelled = () => controller?.signal.aborted ?? false;
|
|
1472
|
-
Object.defineProperty(cancellablePromise, "progress", {
|
|
1473
|
-
get: () => currentProgress,
|
|
1474
|
-
enumerable: true
|
|
1475
|
-
});
|
|
1476
|
-
Object.defineProperty(cancellablePromise, "status", {
|
|
1477
|
-
get: () => currentStatus,
|
|
1478
|
-
enumerable: true
|
|
1479
|
-
});
|
|
1480
|
-
Object.defineProperty(cancellablePromise, "isRunning", {
|
|
1481
|
-
get: () => isRunning,
|
|
1482
|
-
enumerable: true
|
|
1483
|
-
});
|
|
1484
|
-
cancellablePromise.onProgressUpdate = (callback) => {
|
|
1485
|
-
progressCallbacks.add(callback);
|
|
1486
|
-
callback(currentProgress, currentStatus);
|
|
1487
|
-
return () => progressCallbacks.delete(callback);
|
|
1488
|
-
};
|
|
1489
|
-
return cancellablePromise;
|
|
1490
|
-
}
|
|
1491
|
-
function makeCancellable(model, methodCall) {
|
|
1492
|
-
const initialFuture = model.futureHandler.future;
|
|
1493
|
-
const promise = methodCall(model);
|
|
1494
|
-
let newFuture = null;
|
|
1495
|
-
setTimeout(() => {
|
|
1496
|
-
newFuture = model.futureHandler.future;
|
|
1497
|
-
if (newFuture === initialFuture) {
|
|
1498
|
-
newFuture = null;
|
|
1499
|
-
}
|
|
1500
|
-
}, 0);
|
|
1501
|
-
return createCancellablePromise({
|
|
1502
|
-
promise,
|
|
1503
|
-
abortController: void 0,
|
|
1504
|
-
// No direct AbortController access
|
|
1505
|
-
cancelFuture: async () => {
|
|
1506
|
-
if (newFuture) {
|
|
1507
|
-
await newFuture.cancelFuture();
|
|
1508
|
-
} else {
|
|
1509
|
-
const currentFuture = model.futureHandler.future;
|
|
1510
|
-
if (currentFuture) {
|
|
1511
|
-
await currentFuture.cancelFuture();
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
},
|
|
1515
|
-
future: newFuture
|
|
1516
|
-
// Pass the future for progress tracking
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
function withCancellation(model, methodName, ...args) {
|
|
1520
|
-
const method = model[methodName];
|
|
1521
|
-
if (typeof method !== "function") {
|
|
1522
|
-
throw new Error(`${String(methodName)} is not a method`);
|
|
1523
|
-
}
|
|
1524
|
-
const initialFuture = model.futureHandler.future;
|
|
1525
|
-
const promise = method.apply(model, args);
|
|
1526
|
-
let targetFuture = null;
|
|
1527
|
-
setTimeout(() => {
|
|
1528
|
-
const currentFuture = model.futureHandler.future;
|
|
1529
|
-
if (currentFuture && currentFuture !== initialFuture) {
|
|
1530
|
-
targetFuture = currentFuture;
|
|
1531
|
-
}
|
|
1532
|
-
}, 0);
|
|
1533
|
-
return createCancellablePromise({
|
|
1534
|
-
promise,
|
|
1535
|
-
abortController: void 0,
|
|
1536
|
-
cancelFuture: async () => {
|
|
1537
|
-
if (targetFuture) {
|
|
1538
|
-
await targetFuture.cancelFuture();
|
|
1539
|
-
} else {
|
|
1540
|
-
const fallbackFuture = model.futureHandler.future;
|
|
1541
|
-
if (fallbackFuture) {
|
|
1542
|
-
await fallbackFuture.cancelFuture();
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
},
|
|
1546
|
-
future: targetFuture
|
|
1547
|
-
// Pass the future for progress tracking
|
|
1548
|
-
});
|
|
1549
|
-
}
|
|
1550
|
-
class CancellationBatch {
|
|
1551
|
-
operations = [];
|
|
1552
|
-
add(model, methodCall) {
|
|
1553
|
-
const cancellable = makeCancellable(model, methodCall);
|
|
1554
|
-
this.operations.push(cancellable);
|
|
1555
|
-
return cancellable;
|
|
1556
|
-
}
|
|
1557
|
-
async cancelAll() {
|
|
1558
|
-
await Promise.all(
|
|
1559
|
-
this.operations.map(
|
|
1560
|
-
(op) => op.cancel().catch(() => {
|
|
1561
|
-
KosLog.warn("Cancellation failed for operation:", op);
|
|
1562
|
-
})
|
|
1563
|
-
)
|
|
1564
|
-
);
|
|
1565
|
-
}
|
|
1566
|
-
getAllControllers() {
|
|
1567
|
-
return this.operations.map((op) => op.getController());
|
|
1568
|
-
}
|
|
1569
|
-
getActiveCount() {
|
|
1570
|
-
return this.operations.filter((op) => !op.isCancelled()).length;
|
|
1571
|
-
}
|
|
1572
|
-
clear() {
|
|
1573
|
-
this.operations = [];
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
function createCancellationBatch() {
|
|
1577
|
-
return new CancellationBatch();
|
|
1578
|
-
}
|
|
1579
1319
|
const index$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1580
1320
|
__proto__: null,
|
|
1581
1321
|
sendCanvasData
|
|
@@ -1775,7 +1515,7 @@ const updateRegion = async (region) => {
|
|
|
1775
1515
|
regionInfo.updateProperty(region);
|
|
1776
1516
|
};
|
|
1777
1517
|
async function getKosServiceApi() {
|
|
1778
|
-
const { default: API } = await import("./software-info-registration-
|
|
1518
|
+
const { default: API } = await import("./software-info-registration-CKRUzp_3.js").then((n) => n.f3);
|
|
1779
1519
|
return API;
|
|
1780
1520
|
}
|
|
1781
1521
|
function kosServiceRequest$7(params) {
|
|
@@ -1903,7 +1643,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1903
1643
|
function isTroubleAware(obj) {
|
|
1904
1644
|
return obj?.troubles !== void 0 && obj?.troubles instanceof Array && obj?.troublesByType !== void 0 && typeof obj?.troublesByType === "object";
|
|
1905
1645
|
}
|
|
1906
|
-
const log$
|
|
1646
|
+
const log$9 = KosLog.createLogger({ group: LogGroup.service, name: "services" });
|
|
1907
1647
|
const studioLogin = async (username, password) => login(username, password, `${BASE_URL}/api/server/login`);
|
|
1908
1648
|
const login = async (username, password, url = `${BASE_URL}/api/login`) => {
|
|
1909
1649
|
const response = await kosFetch(`${url}`, {
|
|
@@ -1937,7 +1677,7 @@ const startPasswordReset = async (userId, url = `${BASE_URL}/api/startPasswordRe
|
|
|
1937
1677
|
};
|
|
1938
1678
|
const studioResetPassword = async (token2, password) => resetPassword(token2, password, `${BASE_URL}/api/server/resetPassword`);
|
|
1939
1679
|
const resetPassword = async (token2, password, url = `${BASE_URL}/api/resetPassword`) => {
|
|
1940
|
-
log$
|
|
1680
|
+
log$9.debug(
|
|
1941
1681
|
`resetting password with token ${token2} and password ${password.replace(
|
|
1942
1682
|
/./g,
|
|
1943
1683
|
"*"
|
|
@@ -1951,9 +1691,9 @@ const resetPassword = async (token2, password, url = `${BASE_URL}/api/resetPassw
|
|
|
1951
1691
|
password
|
|
1952
1692
|
})
|
|
1953
1693
|
});
|
|
1954
|
-
log$
|
|
1694
|
+
log$9.debug(`password reset returned status ${response.status}`);
|
|
1955
1695
|
if (!response.ok) {
|
|
1956
|
-
log$
|
|
1696
|
+
log$9.error(`password reset failed with message ${response.statusText}`);
|
|
1957
1697
|
const configResponse2 = await response.json();
|
|
1958
1698
|
throw Error(
|
|
1959
1699
|
`${configResponse2?.error}:There was a problem resetting the password.`
|
|
@@ -1969,7 +1709,7 @@ const studioAcceptOrgInvitation = async (token2, password, name) => acceptOrgInv
|
|
|
1969
1709
|
`${BASE_URL}/api/server/acceptInvite`
|
|
1970
1710
|
);
|
|
1971
1711
|
const acceptOrgInvitation = async (token2, password, name, url = `${BASE_URL}/api/server/acceptInvite`) => {
|
|
1972
|
-
log$
|
|
1712
|
+
log$9.debug(
|
|
1973
1713
|
`accepting invite with token ${token2} and password ${password.replace(
|
|
1974
1714
|
/./g,
|
|
1975
1715
|
"*"
|
|
@@ -1984,9 +1724,9 @@ const acceptOrgInvitation = async (token2, password, name, url = `${BASE_URL}/ap
|
|
|
1984
1724
|
name
|
|
1985
1725
|
})
|
|
1986
1726
|
});
|
|
1987
|
-
log$
|
|
1727
|
+
log$9.debug(`invitation accept returned status ${response.status}`);
|
|
1988
1728
|
if (!response.ok) {
|
|
1989
|
-
log$
|
|
1729
|
+
log$9.error(`invite failed with message ${response.statusText}`);
|
|
1990
1730
|
const configResponse2 = await response.json();
|
|
1991
1731
|
throw Error(
|
|
1992
1732
|
`${configResponse2?.error}:There was a problem accepting the invite.`
|
|
@@ -2162,15 +1902,6 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
2162
1902
|
gpioApi,
|
|
2163
1903
|
gpioServiceRequest
|
|
2164
1904
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2165
|
-
function mapGpioChipToOptions(dto) {
|
|
2166
|
-
return dto;
|
|
2167
|
-
}
|
|
2168
|
-
function createGpioChipModel(dto) {
|
|
2169
|
-
return GpioChip.instance(dto.id).options(mapGpioChipToOptions(dto)).build();
|
|
2170
|
-
}
|
|
2171
|
-
function updateGpioChipModel(dto, model) {
|
|
2172
|
-
model.updateModel(mapGpioChipToOptions(dto));
|
|
2173
|
-
}
|
|
2174
1905
|
function filterGpioChipDto(chip) {
|
|
2175
1906
|
return !!chip.num || chip.num === 0;
|
|
2176
1907
|
}
|
|
@@ -2297,8 +2028,7 @@ GpioChipContainerModelImpl = __decorateClass$1([
|
|
|
2297
2028
|
sortKey: "num"
|
|
2298
2029
|
},
|
|
2299
2030
|
reconcile: {
|
|
2300
|
-
|
|
2301
|
-
update: updateGpioChipModel,
|
|
2031
|
+
model: GpioChip,
|
|
2302
2032
|
filter: filterGpioChipDto,
|
|
2303
2033
|
idMapper: mapGpioChipId,
|
|
2304
2034
|
afterCreate: afterGpioChipCreated
|
|
@@ -2308,15 +2038,15 @@ GpioChipContainerModelImpl = __decorateClass$1([
|
|
|
2308
2038
|
], GpioChipContainerModelImpl);
|
|
2309
2039
|
const GpioChipContainer = GpioChipContainerModelImpl.Registration;
|
|
2310
2040
|
GpioChipContainer.addRelatedModel(GpioChip);
|
|
2311
|
-
const log$
|
|
2312
|
-
|
|
2313
|
-
|
|
2041
|
+
const log$8 = KosLog.createLogger({
|
|
2042
|
+
group: LogGroup.service,
|
|
2043
|
+
name: "studio-properties-service"
|
|
2314
2044
|
});
|
|
2315
2045
|
const SERVICE_PATH = "/api/kos/studio/properties";
|
|
2316
2046
|
const getStudioProperties = async (connectionId) => {
|
|
2317
|
-
log$
|
|
2047
|
+
log$8.debug("sending GET for studio-properties");
|
|
2318
2048
|
if (!connectionId) {
|
|
2319
|
-
log$
|
|
2049
|
+
log$8.error("connectionId is undefined");
|
|
2320
2050
|
throw new Error("connectionId is undefined");
|
|
2321
2051
|
}
|
|
2322
2052
|
return await api$8.get(
|
|
@@ -2405,7 +2135,10 @@ let StudioPropertiesModelImpl = class {
|
|
|
2405
2135
|
}, {});
|
|
2406
2136
|
this.data.setValues(update ?? DEFAULT_STUDIO_PROPERTIES);
|
|
2407
2137
|
KosLog.ifDebug(
|
|
2408
|
-
() => this.logger.debug(
|
|
2138
|
+
() => this.logger.debug(
|
|
2139
|
+
`studio-properties loaded: ${JSON.stringify(update)}`
|
|
2140
|
+
),
|
|
2141
|
+
this.logger
|
|
2409
2142
|
);
|
|
2410
2143
|
}
|
|
2411
2144
|
}
|
|
@@ -2478,7 +2211,7 @@ const MessageContainer = styled.div`
|
|
|
2478
2211
|
color: ${({ theme }) => theme === "light" ? "black" : "white"};
|
|
2479
2212
|
z-index: 10000;
|
|
2480
2213
|
`;
|
|
2481
|
-
const log$
|
|
2214
|
+
const log$7 = KosLog.createLogger({ group: LogGroup.ui, name: "error-boundary" });
|
|
2482
2215
|
class ErrorBoundary extends React.Component {
|
|
2483
2216
|
constructor(props) {
|
|
2484
2217
|
super(props);
|
|
@@ -2495,7 +2228,7 @@ class ErrorBoundary extends React.Component {
|
|
|
2495
2228
|
}
|
|
2496
2229
|
componentDidCatch(error, errorInfo) {
|
|
2497
2230
|
const seam = this.props.name ? ` in ${this.props.name}` : "";
|
|
2498
|
-
log$
|
|
2231
|
+
log$7.error(
|
|
2499
2232
|
`Error boundary caught${seam}: ${error?.message ?? error}`,
|
|
2500
2233
|
error,
|
|
2501
2234
|
errorInfo.componentStack
|
|
@@ -2605,11 +2338,14 @@ const KosModelProvider = ({
|
|
|
2605
2338
|
);
|
|
2606
2339
|
return /* @__PURE__ */ jsx(KosModelContext.Provider, { value: { model, setModel: setKosModel }, children });
|
|
2607
2340
|
};
|
|
2608
|
-
const log$
|
|
2341
|
+
const log$6 = KosLog.createLogger({
|
|
2342
|
+
group: LogGroup.ui,
|
|
2343
|
+
name: "kos-model-hierarchy-context"
|
|
2344
|
+
});
|
|
2609
2345
|
const defaultNestedProps = {
|
|
2610
2346
|
models: [],
|
|
2611
2347
|
addModel: () => {
|
|
2612
|
-
log$
|
|
2348
|
+
log$6.debug("Default implementation being used. Do Nothing.");
|
|
2613
2349
|
}
|
|
2614
2350
|
};
|
|
2615
2351
|
const NestedModelContext = createContext(defaultNestedProps);
|
|
@@ -2618,7 +2354,7 @@ const KosModelCollectionProvider = ({ children }) => {
|
|
|
2618
2354
|
const addModel = useCallback(
|
|
2619
2355
|
(model) => {
|
|
2620
2356
|
if (!models.includes(model)) {
|
|
2621
|
-
log$
|
|
2357
|
+
log$6.debug("adding to hierarchy context", model.id);
|
|
2622
2358
|
setModels((prevModels) => [...prevModels, model]);
|
|
2623
2359
|
}
|
|
2624
2360
|
},
|
|
@@ -2650,7 +2386,10 @@ const useModelFromHierarchy = (type) => {
|
|
|
2650
2386
|
});
|
|
2651
2387
|
return context[0];
|
|
2652
2388
|
};
|
|
2653
|
-
const log$
|
|
2389
|
+
const log$5 = KosLog.createLogger({
|
|
2390
|
+
group: LogGroup.ui,
|
|
2391
|
+
name: "kos-model-loader"
|
|
2392
|
+
});
|
|
2654
2393
|
const DefaultLoader = () => /* @__PURE__ */ jsx("div", {});
|
|
2655
2394
|
const KosModelLoader = ({ fallback, children, ...modelProps }) => /* @__PURE__ */ jsx(KosModelProvider, { children: /* @__PURE__ */ jsx(ErrorBoundary, { fallback, children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(KosModelLoaderDisplay, { ...modelProps, children }) }) }) });
|
|
2656
2395
|
const KosModelLoaderDisplay = (props) => {
|
|
@@ -2669,7 +2408,7 @@ const KosModelLoaderDisplay = (props) => {
|
|
|
2669
2408
|
}
|
|
2670
2409
|
}, [hierarchyContext, props.model, setModel]);
|
|
2671
2410
|
if (props.error) {
|
|
2672
|
-
log$
|
|
2411
|
+
log$5.error(props.error);
|
|
2673
2412
|
throw new Error(props.error);
|
|
2674
2413
|
}
|
|
2675
2414
|
const loader = props.loading || /* @__PURE__ */ jsx(DefaultLoader, {});
|
|
@@ -2709,6 +2448,10 @@ const useKosCore = () => {
|
|
|
2709
2448
|
return context;
|
|
2710
2449
|
};
|
|
2711
2450
|
const KOS_RECOVERING_SESSION_KEY = "kos:recovering";
|
|
2451
|
+
const log$4 = KosLog.createLogger({
|
|
2452
|
+
group: LogGroup.ui,
|
|
2453
|
+
name: "reload-on-disconnect-policy"
|
|
2454
|
+
});
|
|
2712
2455
|
const DEFAULT_GRACE_MS = 3e3;
|
|
2713
2456
|
const defaultReloadFn = () => {
|
|
2714
2457
|
window.location.reload();
|
|
@@ -2742,12 +2485,12 @@ const ReloadOnDisconnectPolicy = ({
|
|
|
2742
2485
|
JSON.stringify(info)
|
|
2743
2486
|
);
|
|
2744
2487
|
} catch (err) {
|
|
2745
|
-
|
|
2488
|
+
log$4.warn(
|
|
2746
2489
|
"ReloadOnDisconnectPolicy: failed to write sessionStorage",
|
|
2747
2490
|
err
|
|
2748
2491
|
);
|
|
2749
2492
|
}
|
|
2750
|
-
|
|
2493
|
+
log$4.warn(
|
|
2751
2494
|
`ReloadOnDisconnectPolicy: scheduling reload in ${graceMs}ms (code=${info.code}, wasClean=${info.wasClean})`
|
|
2752
2495
|
);
|
|
2753
2496
|
pendingReloadRef.current = setTimeout(() => {
|
|
@@ -2755,7 +2498,7 @@ const ReloadOnDisconnectPolicy = ({
|
|
|
2755
2498
|
try {
|
|
2756
2499
|
onBeforeReload?.(info);
|
|
2757
2500
|
} catch (err) {
|
|
2758
|
-
|
|
2501
|
+
log$4.error("ReloadOnDisconnectPolicy: onBeforeReload threw", err);
|
|
2759
2502
|
}
|
|
2760
2503
|
reloadFn();
|
|
2761
2504
|
}, graceMs);
|
|
@@ -3210,6 +2953,10 @@ const TokenContext = React.createContext(token);
|
|
|
3210
2953
|
function TokenProvider({ children }) {
|
|
3211
2954
|
return /* @__PURE__ */ jsx(TokenContext.Provider, { value: token, children });
|
|
3212
2955
|
}
|
|
2956
|
+
const log$3 = KosLog.createLogger({
|
|
2957
|
+
group: LogGroup.ui,
|
|
2958
|
+
name: "kos-translations-provider"
|
|
2959
|
+
});
|
|
3213
2960
|
const TranslationContainerContext = createContext(void 0);
|
|
3214
2961
|
const getDefaultHost = () => {
|
|
3215
2962
|
const defaultHost = window.location.origin;
|
|
@@ -3243,7 +2990,7 @@ const KosTranslationProvider = ({
|
|
|
3243
2990
|
const descriptorsResults = await Promise.allSettled(descriptorPromises);
|
|
3244
2991
|
const descriptors = descriptorsResults.map((d) => {
|
|
3245
2992
|
if (d.status === "rejected") {
|
|
3246
|
-
|
|
2993
|
+
log$3.warn("Failed to load localization descriptor", d.reason);
|
|
3247
2994
|
return void 0;
|
|
3248
2995
|
}
|
|
3249
2996
|
return d.value;
|
|
@@ -3349,8 +3096,11 @@ function renderDecodedPreview({
|
|
|
3349
3096
|
ctx.clearRect(0, 0, width * pixelSize, height * pixelSize);
|
|
3350
3097
|
ctx.drawImage(tempCanvas, 0, 0, width * pixelSize, height * pixelSize);
|
|
3351
3098
|
}
|
|
3352
|
-
const log = KosLog.createLogger({
|
|
3353
|
-
|
|
3099
|
+
const log$2 = KosLog.createLogger({
|
|
3100
|
+
group: LogGroup.ui,
|
|
3101
|
+
name: "canvas-streamer"
|
|
3102
|
+
});
|
|
3103
|
+
log$2.debug("main-view component loaded");
|
|
3354
3104
|
const PIXEL_SIZE = 10;
|
|
3355
3105
|
const CanvasStreamerBase = observer(
|
|
3356
3106
|
({
|
|
@@ -3577,7 +3327,7 @@ function withStorageDeviceContainer(WrappedComponent) {
|
|
|
3577
3327
|
return /* @__PURE__ */ jsx(KosModelLoader2, { ...status, children: /* @__PURE__ */ jsx(WrappedComponent, { ...props, storageDeviceContainer: model }) });
|
|
3578
3328
|
};
|
|
3579
3329
|
}
|
|
3580
|
-
const LOG = KosLog.createLogger({ name: "use-timer" });
|
|
3330
|
+
const LOG = KosLog.createLogger({ group: LogGroup.ui, name: "use-timer" });
|
|
3581
3331
|
const useTimer = ({
|
|
3582
3332
|
timerName,
|
|
3583
3333
|
onTimerExpired,
|
|
@@ -3699,6 +3449,10 @@ const Trans = (props) => {
|
|
|
3699
3449
|
const element = substituteBlocks(translated, components || {});
|
|
3700
3450
|
return /* @__PURE__ */ jsx("span", { className: props.className, children: element });
|
|
3701
3451
|
};
|
|
3452
|
+
const log$1 = KosLog.createLogger({
|
|
3453
|
+
group: LogGroup.ui,
|
|
3454
|
+
name: "use-translation"
|
|
3455
|
+
});
|
|
3702
3456
|
const cache = /* @__PURE__ */ new Map();
|
|
3703
3457
|
function fetchData(key, fetcher) {
|
|
3704
3458
|
if (cache.has(key)) {
|
|
@@ -3773,7 +3527,7 @@ const useKosTranslation = (namespace, baseOptions) => {
|
|
|
3773
3527
|
if (translationModel) {
|
|
3774
3528
|
return translationModel.resolveKey(expandedKey, options);
|
|
3775
3529
|
}
|
|
3776
|
-
|
|
3530
|
+
log$1.debug(
|
|
3777
3531
|
`Translation model ${namespace} not ready for key: ${expandedKey}`
|
|
3778
3532
|
);
|
|
3779
3533
|
return expandedKey;
|
|
@@ -4817,6 +4571,10 @@ const useKosTimeFormats = (timeFormatMap = DEFAULT_FORMAT_MAP) => {
|
|
|
4817
4571
|
};
|
|
4818
4572
|
};
|
|
4819
4573
|
const useLocalComputed = (callback, dependencies) => useMemo(() => kosComputed(callback), dependencies);
|
|
4574
|
+
const log = KosLog.createLogger({
|
|
4575
|
+
group: LogGroup.ui,
|
|
4576
|
+
name: "use-mutation-observer"
|
|
4577
|
+
});
|
|
4820
4578
|
const DEFAULT_OPTIONS = {
|
|
4821
4579
|
config: { attributes: true, childList: true, subtree: true }
|
|
4822
4580
|
};
|
|
@@ -4839,7 +4597,7 @@ function useMutationObserver(targetEl, cb2, options = DEFAULT_OPTIONS) {
|
|
|
4839
4597
|
try {
|
|
4840
4598
|
observer3.observe(targetEl, config);
|
|
4841
4599
|
} catch (e) {
|
|
4842
|
-
|
|
4600
|
+
log.error(e);
|
|
4843
4601
|
}
|
|
4844
4602
|
return () => {
|
|
4845
4603
|
if (observer3) {
|
|
@@ -4860,8 +4618,8 @@ const DomIntersectionStrategy = {
|
|
|
4860
4618
|
}
|
|
4861
4619
|
};
|
|
4862
4620
|
const logger = KosLog.createLogger({
|
|
4863
|
-
|
|
4864
|
-
|
|
4621
|
+
group: LogGroup.ui,
|
|
4622
|
+
name: "usePressGesture"
|
|
4865
4623
|
});
|
|
4866
4624
|
function usePressGesture({
|
|
4867
4625
|
onPressed,
|
|
@@ -5112,91 +4870,91 @@ function withProjectReloading(WrappedComponent) {
|
|
|
5112
4870
|
return reloading ? /* @__PURE__ */ jsx(LoadingMessage, { message: "Wait a moment while your project reloads..." }) : /* @__PURE__ */ jsx(WrappedComponent, { ...props });
|
|
5113
4871
|
};
|
|
5114
4872
|
}
|
|
5115
|
-
registerApiLevels({ "kos-ui-sdk":
|
|
4873
|
+
registerApiLevels({ "kos-ui-sdk": 25 });
|
|
5116
4874
|
export {
|
|
5117
4875
|
AncestorPathVisitor,
|
|
5118
|
-
|
|
4876
|
+
aX as AuthState,
|
|
5119
4877
|
BASE_URL,
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
CancellationBatch,
|
|
4878
|
+
aY as BrowserKosRouter,
|
|
4879
|
+
aZ as BrowserRouter,
|
|
4880
|
+
a_ as CancellableServiceManager,
|
|
4881
|
+
a$ as CancellationBatch,
|
|
5124
4882
|
CanvasDispatcher,
|
|
5125
4883
|
index$7 as CanvasDispatcherServices,
|
|
5126
|
-
|
|
4884
|
+
b0 as CanvasRenderer,
|
|
5127
4885
|
CanvasStreamer,
|
|
5128
4886
|
CanvasStreamerBase,
|
|
5129
|
-
|
|
4887
|
+
b1 as ChildModels,
|
|
5130
4888
|
CompanionParentModel,
|
|
5131
4889
|
ConfigBean,
|
|
5132
4890
|
ConnectionDevButton,
|
|
5133
|
-
|
|
4891
|
+
b2 as ContainerAwareSetup,
|
|
5134
4892
|
CoreExtensionManager,
|
|
5135
|
-
|
|
4893
|
+
b3 as CoreModels,
|
|
5136
4894
|
CreateModelTranslationsContext,
|
|
5137
4895
|
CreateModelTranslationsProvider,
|
|
5138
4896
|
DateDisplayFormat,
|
|
5139
4897
|
dateUtils as DateHelpers,
|
|
5140
4898
|
DependencyLifecycle,
|
|
5141
4899
|
DependencyModels,
|
|
5142
|
-
|
|
4900
|
+
b4 as DependencyResolutionPolicy,
|
|
5143
4901
|
Device,
|
|
5144
4902
|
index$6 as DeviceServices,
|
|
5145
4903
|
DomIntersectionStrategy,
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
4904
|
+
b5 as ERROR_TRANSPORT_NOT_READY,
|
|
4905
|
+
b6 as EVENT_KOS_MODEL_READY,
|
|
4906
|
+
b7 as EVENT_TROUBLE_ADDED,
|
|
4907
|
+
b8 as EVENT_TROUBLE_REMOVED,
|
|
4908
|
+
b9 as EXTENSION_CANVAS_RENDERER,
|
|
4909
|
+
ba as EXTENSION_FEATURE_FLAG_RESOLVER,
|
|
4910
|
+
bb as EXTENSION_FUTURE_LIFECYCLE_WRAPPER,
|
|
4911
|
+
bc as EXTENSION_TROUBLE_DATA_MAPPER,
|
|
4912
|
+
bd as EXTENSION_TROUBLE_MAPPER,
|
|
5155
4913
|
ErrorBoundary as ErrorBoundaryWithFallback,
|
|
5156
|
-
|
|
4914
|
+
be as EventBus,
|
|
5157
4915
|
eventBus_functional as EventBusFunctional,
|
|
5158
|
-
|
|
5159
|
-
|
|
4916
|
+
bf as EventBusState,
|
|
4917
|
+
bg as ExtensionException,
|
|
5160
4918
|
ExtensionManager,
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
4919
|
+
bh as FUTURE_CONTAINER_MODEL_TYPE,
|
|
4920
|
+
bi as FUTURE_MODEL_TYPE,
|
|
4921
|
+
bj as FUTURE_NOT_ASSIGNED,
|
|
4922
|
+
bk as FeatureFlagService,
|
|
4923
|
+
bl as FetchError,
|
|
4924
|
+
bm as FutureAliases,
|
|
4925
|
+
bn as FutureCallError,
|
|
4926
|
+
bo as FutureContainerFactory,
|
|
4927
|
+
bp as FutureContainerModel,
|
|
4928
|
+
bq as FutureContainerSetup,
|
|
4929
|
+
br as FutureEndState,
|
|
4930
|
+
bs as FutureFactory,
|
|
4931
|
+
bt as FutureHandler,
|
|
4932
|
+
bu as FutureManager,
|
|
4933
|
+
bv as FutureModel,
|
|
4934
|
+
bw as FutureService,
|
|
5177
4935
|
GpioChip,
|
|
5178
4936
|
GpioChipContainer,
|
|
5179
4937
|
index$1 as GpioChipServices,
|
|
5180
4938
|
GpioPin,
|
|
5181
4939
|
GpioPinContainer,
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
4940
|
+
bx as HEADER_CACHE_CONTROL,
|
|
4941
|
+
by as HEADER_CONTENT_TYPE,
|
|
4942
|
+
bz as HEADER_DESTINATION_ADDR,
|
|
4943
|
+
bA as HEADER_FOS_REQUEST_ID,
|
|
4944
|
+
bB as HEADER_METHOD,
|
|
4945
|
+
bC as HEADER_ORDERED,
|
|
4946
|
+
bD as HEADER_REQUEST_ID,
|
|
4947
|
+
bE as HEADER_REQUEST_TYPE,
|
|
4948
|
+
bF as HEADER_RESPONSE_ID,
|
|
4949
|
+
bG as HEADER_SOURCE_ADDR,
|
|
4950
|
+
bH as HEADER_TOPIC,
|
|
4951
|
+
bI as HEADER_URL,
|
|
4952
|
+
bJ as HEADER_WORK_TRACKER,
|
|
4953
|
+
bK as HttpRouteHandlers,
|
|
5196
4954
|
INDEX_COLLECTION_KEY,
|
|
5197
4955
|
INDEX_RECORD_SYMBOL,
|
|
5198
|
-
|
|
5199
|
-
|
|
4956
|
+
bL as KOS_EXECUTION_CONTEXT,
|
|
4957
|
+
bM as KOS_MODEL_ID,
|
|
5200
4958
|
KOS_RECOVERING_SESSION_KEY,
|
|
5201
4959
|
service$7 as KOS_SERVICE,
|
|
5202
4960
|
service$6 as KOS_SERVICE_1_6_5,
|
|
@@ -5206,119 +4964,120 @@ export {
|
|
|
5206
4964
|
index$c as KeyValueServices,
|
|
5207
4965
|
Kos,
|
|
5208
4966
|
Registration as KosConfigPropertySpec,
|
|
5209
|
-
|
|
4967
|
+
bN as KosContainerIndex,
|
|
5210
4968
|
KosContainerIndexEvents,
|
|
5211
|
-
|
|
4969
|
+
bO as KosContextBean,
|
|
5212
4970
|
KosContextManager,
|
|
5213
4971
|
KosCore,
|
|
5214
4972
|
KosCoreModelPropertyMapper,
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
4973
|
+
bP as KosDataContainer,
|
|
4974
|
+
bQ as KosDependencyTypes,
|
|
4975
|
+
bR as KosExpressionEvaluator,
|
|
5218
4976
|
initializeExtension as KosExtensionUtils,
|
|
5219
|
-
|
|
4977
|
+
bS as KosFeatureFlags,
|
|
5220
4978
|
KosFetchMethods,
|
|
5221
|
-
|
|
5222
|
-
|
|
4979
|
+
bT as KosGlobalConfig,
|
|
4980
|
+
bU as KosHttpRouteManager,
|
|
5223
4981
|
KosLog,
|
|
5224
|
-
|
|
4982
|
+
bV as KosLogManager,
|
|
5225
4983
|
index$b as KosLogManagerServices,
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
4984
|
+
bW as KosLoggerFactory,
|
|
4985
|
+
bX as KosMock,
|
|
4986
|
+
bY as KosModel,
|
|
5229
4987
|
KosModelCollectionProvider,
|
|
5230
|
-
|
|
4988
|
+
bZ as KosModelContainer,
|
|
5231
4989
|
KosModelContext,
|
|
5232
4990
|
KosModelEvents,
|
|
5233
|
-
|
|
4991
|
+
b_ as KosModelFactory,
|
|
5234
4992
|
KosModelLoader,
|
|
5235
4993
|
KosModelLoaderDisplay,
|
|
5236
|
-
|
|
4994
|
+
b$ as KosModelManager,
|
|
5237
4995
|
KosModelProvider,
|
|
5238
4996
|
KosModelRegistrationFactory,
|
|
5239
|
-
|
|
4997
|
+
c0 as KosModelRegistry,
|
|
5240
4998
|
KosModelState,
|
|
5241
|
-
|
|
4999
|
+
c1 as KosModelSymbol,
|
|
5242
5000
|
KosModelVisitor,
|
|
5243
|
-
|
|
5001
|
+
c2 as KosObservableData,
|
|
5244
5002
|
KosRegistration,
|
|
5245
5003
|
KosSingletonRegistration,
|
|
5246
5004
|
KosTime,
|
|
5247
5005
|
KosTimeContext,
|
|
5248
5006
|
KosTimeProvider,
|
|
5249
5007
|
index$a as KosTimeServices,
|
|
5250
|
-
|
|
5008
|
+
c3 as KosTimer,
|
|
5251
5009
|
KosToken,
|
|
5252
5010
|
KosTranslationProvider,
|
|
5253
5011
|
KosTranslations,
|
|
5254
5012
|
KosViewModelSymbol,
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5013
|
+
c4 as KosWSTransportStatus,
|
|
5014
|
+
c5 as KosWsEvents,
|
|
5015
|
+
c6 as LOADER_FEATURE_FLAG,
|
|
5016
|
+
c7 as LOGIN_HOST,
|
|
5017
|
+
c8 as LOGIN_URL,
|
|
5260
5018
|
LoadingMessage,
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5019
|
+
c9 as LogBlock,
|
|
5020
|
+
ca as LogBlockContainer,
|
|
5021
|
+
LogGroup,
|
|
5022
|
+
cb as LogStream,
|
|
5023
|
+
cc as LogStreamContainer,
|
|
5266
5024
|
index$9 as LogStreamServices,
|
|
5267
|
-
|
|
5268
|
-
|
|
5025
|
+
cd as LoggerSetup,
|
|
5026
|
+
ce as MESSAGE_LOGGER_NAME,
|
|
5027
|
+
cf as MODEL_DELETION_DELAY,
|
|
5269
5028
|
MiddlewareChain,
|
|
5270
5029
|
MixinModels,
|
|
5271
5030
|
ModelEffects,
|
|
5272
|
-
|
|
5031
|
+
cg as ModelError,
|
|
5273
5032
|
MultipleFutureContainerSetup,
|
|
5274
|
-
|
|
5033
|
+
ch as MultipleFutureHandler,
|
|
5275
5034
|
NestedModelContext,
|
|
5276
|
-
|
|
5035
|
+
ci as NetworkInterface,
|
|
5277
5036
|
NetworkInterfaceContainer,
|
|
5278
5037
|
index$5 as NetworkInterfaceServices,
|
|
5279
5038
|
ObservableData,
|
|
5280
|
-
|
|
5039
|
+
cj as OptionsRequired,
|
|
5281
5040
|
Ota,
|
|
5282
5041
|
OutsideAlerter,
|
|
5283
5042
|
PLUGIN_EXTENSION_NAME,
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5043
|
+
ck as PORT,
|
|
5044
|
+
cl as PROFILE_ENABLE_RELEASES,
|
|
5045
|
+
cm as PROFILE_LOG_DEBUG,
|
|
5046
|
+
cn as PROFILE_LOG_INFO,
|
|
5047
|
+
co as PROFILE_RELAX_STORE_VALIDATION,
|
|
5048
|
+
cp as PROFILE_TOOLS_PREVIEW,
|
|
5049
|
+
cq as ParentModel,
|
|
5291
5050
|
PluginExtensionManager,
|
|
5292
5051
|
ProgressBar,
|
|
5293
5052
|
ReconnectingOverlay,
|
|
5294
5053
|
ReferenceConfig,
|
|
5295
5054
|
Registration$1 as RegionInfo,
|
|
5296
5055
|
index$f as RegionServices,
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5056
|
+
cr as RegistrationManager,
|
|
5057
|
+
cs as Registry,
|
|
5058
|
+
ct as ReloadAwareSetup,
|
|
5300
5059
|
ReloadOnDisconnectPolicy,
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5060
|
+
cu as ReplayStrategy,
|
|
5061
|
+
cv as ResponseRetention,
|
|
5062
|
+
cw as STATUS,
|
|
5063
|
+
cx as SelfManagedReload,
|
|
5064
|
+
cy as ServiceFactory,
|
|
5065
|
+
cz as ServiceRequestError,
|
|
5066
|
+
cA as ServiceRequestHandlers,
|
|
5067
|
+
cB as SingletonKosModelRegistrationFactory,
|
|
5309
5068
|
SoftwareInfo,
|
|
5310
5069
|
SoftwareInfoContext,
|
|
5311
5070
|
SoftwareInfoProvider,
|
|
5312
5071
|
index$2 as SoftwareInfoServices,
|
|
5313
|
-
|
|
5072
|
+
cC as StateActionHandlers,
|
|
5314
5073
|
StateBean,
|
|
5315
5074
|
index$e as StateBeanServices,
|
|
5316
|
-
|
|
5317
|
-
|
|
5075
|
+
cD as StateEntryHandlers,
|
|
5076
|
+
cE as StateExitHandlers,
|
|
5318
5077
|
StateMachineSetup,
|
|
5319
5078
|
StateProp,
|
|
5320
5079
|
index$d as StatePropServices,
|
|
5321
|
-
|
|
5080
|
+
cF as StorageDevice,
|
|
5322
5081
|
StorageDeviceContainer,
|
|
5323
5082
|
index$4 as StorageDeviceServices,
|
|
5324
5083
|
StudioProperties,
|
|
@@ -5327,26 +5086,26 @@ export {
|
|
|
5327
5086
|
TIMER_END,
|
|
5328
5087
|
TIMER_EVENT,
|
|
5329
5088
|
TOPIC_TIMER_TICK_EVENT,
|
|
5330
|
-
|
|
5089
|
+
cG as TRANSPORT_NOT_READY,
|
|
5331
5090
|
TimerManager,
|
|
5332
5091
|
TokenContext,
|
|
5333
5092
|
TokenProvider,
|
|
5334
|
-
|
|
5093
|
+
cH as Topics,
|
|
5335
5094
|
Trans,
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5095
|
+
cI as TransitionMap,
|
|
5096
|
+
cJ as Transitions,
|
|
5097
|
+
cK as Translation,
|
|
5339
5098
|
TranslationContainer,
|
|
5340
5099
|
TranslationContainerContext,
|
|
5341
5100
|
TranslationContext,
|
|
5342
|
-
|
|
5343
|
-
|
|
5101
|
+
cL as TransportFactory,
|
|
5102
|
+
cM as TransportNotReadyError,
|
|
5344
5103
|
Trouble,
|
|
5345
5104
|
TroubleAwareSetup,
|
|
5346
5105
|
TroubleContainer,
|
|
5347
5106
|
index$8 as TroubleServices,
|
|
5348
|
-
|
|
5349
|
-
|
|
5107
|
+
cN as Troubles,
|
|
5108
|
+
cO as UsbUpdate,
|
|
5350
5109
|
UsbUpdateContainer,
|
|
5351
5110
|
index$3 as UsbUpdateServices,
|
|
5352
5111
|
service$3 as VFS_SERVICE,
|
|
@@ -5354,138 +5113,136 @@ export {
|
|
|
5354
5113
|
service$1 as VFS_SERVICE_1_8_1,
|
|
5355
5114
|
service as VFS_SERVICE_1_9_X,
|
|
5356
5115
|
ViewModelConfig,
|
|
5357
|
-
|
|
5116
|
+
cP as WS_EVENT_TYPE,
|
|
5358
5117
|
WebSocketEvents,
|
|
5359
5118
|
WebSocketTransport,
|
|
5360
|
-
|
|
5361
|
-
|
|
5119
|
+
cQ as WsEventFactory,
|
|
5120
|
+
cR as WsEventModel,
|
|
5362
5121
|
acceptOrgInvitation,
|
|
5363
5122
|
addDaysToDate,
|
|
5364
|
-
|
|
5123
|
+
cS as addFuture,
|
|
5365
5124
|
addMonthsToDate,
|
|
5366
|
-
|
|
5367
|
-
|
|
5125
|
+
cT as api,
|
|
5126
|
+
cU as applyFunctionalEnhancements,
|
|
5368
5127
|
applyMixins,
|
|
5369
5128
|
arraysEqual,
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5129
|
+
cV as awaitFutureCall,
|
|
5130
|
+
cW as buildConfigBeanModel,
|
|
5131
|
+
cX as buildFuture,
|
|
5132
|
+
cY as buildFutureModel,
|
|
5133
|
+
cZ as cancelFuture,
|
|
5134
|
+
c_ as checkAppsStarted,
|
|
5135
|
+
c$ as checkWildcardPattern,
|
|
5377
5136
|
clearAllServiceResponses,
|
|
5378
5137
|
clearModelHookCacheEntry,
|
|
5379
5138
|
clearPath,
|
|
5380
5139
|
clearServiceResponse,
|
|
5381
5140
|
collectLocaleOptions,
|
|
5382
|
-
|
|
5141
|
+
d0 as convert,
|
|
5383
5142
|
convertFileSizeRaw,
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
createCancellablePromise,
|
|
5388
|
-
|
|
5389
|
-
createCancellationBatch,
|
|
5143
|
+
d1 as convertWithUnits,
|
|
5144
|
+
d2 as createBaseMessage,
|
|
5145
|
+
d3 as createBroadcastMessageResponse,
|
|
5146
|
+
d4 as createCancellablePromise,
|
|
5147
|
+
d5 as createCancellableService,
|
|
5148
|
+
d6 as createCancellationBatch,
|
|
5390
5149
|
createClient,
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5150
|
+
d7 as createFosBaseMessage,
|
|
5151
|
+
d8 as createHeaders,
|
|
5152
|
+
d9 as createKosHtpMessageResponse,
|
|
5153
|
+
da as createKosMessage,
|
|
5154
|
+
db as createKosMessageResponse,
|
|
5155
|
+
dc as createMessageBody,
|
|
5156
|
+
dd as createModelDependency,
|
|
5157
|
+
de as createOptionKey,
|
|
5158
|
+
df as createPropKey,
|
|
5159
|
+
dg as createReadableStream,
|
|
5160
|
+
dh as createStudioMessage,
|
|
5161
|
+
di as createStudioMessageRequest,
|
|
5162
|
+
dj as createStudioMessageResponse,
|
|
5404
5163
|
debounce,
|
|
5405
|
-
|
|
5406
|
-
|
|
5164
|
+
dk as del,
|
|
5165
|
+
dl as deleteFuture,
|
|
5407
5166
|
destroyKosModel,
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5167
|
+
dm as evaluateScopes,
|
|
5168
|
+
dn as executeApiMethod,
|
|
5169
|
+
dp as executeChildrenModelLifecycle,
|
|
5170
|
+
dq as executeDependentModelLifecycle,
|
|
5171
|
+
dr as executeListLifecycle,
|
|
5413
5172
|
executeServiceRequest,
|
|
5414
5173
|
fetchModel,
|
|
5415
|
-
|
|
5416
|
-
|
|
5174
|
+
ds as findModel,
|
|
5175
|
+
dt as findModels,
|
|
5417
5176
|
formatDate,
|
|
5418
5177
|
formatDateSince,
|
|
5419
5178
|
formatDateTime,
|
|
5420
5179
|
formatTime,
|
|
5421
|
-
|
|
5422
|
-
|
|
5180
|
+
du as get,
|
|
5181
|
+
dv as getAllKosCompanionModels,
|
|
5423
5182
|
getCalendarMonthArray,
|
|
5424
|
-
|
|
5183
|
+
dw as getConfigBean,
|
|
5425
5184
|
getDayStrings,
|
|
5426
5185
|
getDays,
|
|
5427
5186
|
getDaysArray,
|
|
5428
5187
|
getDaysInMonth$1 as getDaysInMonth,
|
|
5429
|
-
|
|
5188
|
+
dx as getDependenciesByLifecycle,
|
|
5430
5189
|
getFormattedDate,
|
|
5431
5190
|
getFormattedMonth,
|
|
5432
5191
|
getFormattedMonthsArray,
|
|
5433
5192
|
getFormattedYear,
|
|
5434
5193
|
getFormattedYearsArray,
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5194
|
+
dy as getFutures,
|
|
5195
|
+
dz as getHttpRouteHandlers,
|
|
5196
|
+
dA as getKosCompanionModel,
|
|
5197
|
+
dB as getKosConnectionId,
|
|
5439
5198
|
getKosLocalizationDescriptor,
|
|
5440
|
-
dw as getKosMessageLogging,
|
|
5441
5199
|
getKosModel,
|
|
5442
|
-
|
|
5200
|
+
dC as getKosModelActivationState,
|
|
5443
5201
|
getKosModelSync,
|
|
5444
|
-
|
|
5202
|
+
dD as getKosModelType,
|
|
5445
5203
|
getKosServiceApi,
|
|
5446
|
-
|
|
5204
|
+
dE as getKosSessionKey,
|
|
5447
5205
|
getLastDayOfMonth,
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
dD as getMessageBody,
|
|
5206
|
+
dF as getLocalizationDescriptor,
|
|
5207
|
+
dG as getLogLevel,
|
|
5208
|
+
dH as getMessageBody,
|
|
5452
5209
|
getMonthsArray,
|
|
5453
|
-
|
|
5210
|
+
dI as getObservableCompanions,
|
|
5454
5211
|
getQueryParams,
|
|
5455
5212
|
getServiceResponse,
|
|
5456
|
-
|
|
5457
|
-
|
|
5213
|
+
dJ as getStartedApps,
|
|
5214
|
+
dK as getTranslations,
|
|
5458
5215
|
getYearsArray,
|
|
5459
|
-
|
|
5216
|
+
dL as handleServiceRequestError,
|
|
5460
5217
|
hasCachedResponse,
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5218
|
+
dM as hasDecimals,
|
|
5219
|
+
dN as hasHttpRouteHandlers,
|
|
5220
|
+
dO as hasKosProfile,
|
|
5464
5221
|
hasReadyHook,
|
|
5465
5222
|
hslStringToHex,
|
|
5466
5223
|
hslToHex,
|
|
5467
|
-
|
|
5224
|
+
dP as httpDelete,
|
|
5468
5225
|
initKosProvider,
|
|
5469
5226
|
initializeStateMachine,
|
|
5470
5227
|
injectStateMachineSupport,
|
|
5471
|
-
|
|
5228
|
+
dQ as isBoolean,
|
|
5472
5229
|
isDisposable,
|
|
5473
5230
|
isIndexableItem,
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5231
|
+
dR as isKosCompanionTypeFactory,
|
|
5232
|
+
dS as isKosDataModel,
|
|
5233
|
+
dT as isKosExecutionContext,
|
|
5234
|
+
dU as isKosLoggingEnabled,
|
|
5478
5235
|
isKosModel,
|
|
5479
|
-
|
|
5480
|
-
|
|
5236
|
+
dV as isKosModelContainer,
|
|
5237
|
+
dW as isKosModelReady,
|
|
5481
5238
|
isLeapYear,
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5239
|
+
dX as isLocalRefId,
|
|
5240
|
+
dY as isNumber,
|
|
5241
|
+
dZ as isPrintable,
|
|
5242
|
+
d_ as isTransportNotReadyError,
|
|
5486
5243
|
isTroubleAware,
|
|
5487
5244
|
isValidDate,
|
|
5488
|
-
|
|
5245
|
+
d$ as kosAction,
|
|
5489
5246
|
kosAutoEffect,
|
|
5490
5247
|
kosChild,
|
|
5491
5248
|
kosCompanion,
|
|
@@ -5496,89 +5253,88 @@ export {
|
|
|
5496
5253
|
kosContainerAware,
|
|
5497
5254
|
kosContainerIndexAware,
|
|
5498
5255
|
kosContext,
|
|
5499
|
-
|
|
5500
|
-
|
|
5256
|
+
e0 as kosDependency,
|
|
5257
|
+
e1 as kosEffect,
|
|
5501
5258
|
kosFetch,
|
|
5502
|
-
|
|
5503
|
-
|
|
5259
|
+
e2 as kosFuture,
|
|
5260
|
+
e3 as kosFutureAware,
|
|
5504
5261
|
kosIndexAware,
|
|
5505
|
-
kosLogger,
|
|
5506
5262
|
kosLoggerAware,
|
|
5507
5263
|
kosMixin,
|
|
5508
5264
|
kosModel,
|
|
5509
|
-
|
|
5265
|
+
e4 as kosModelEffect,
|
|
5510
5266
|
kosMultipleFutureAware,
|
|
5511
|
-
|
|
5267
|
+
e5 as kosObservable,
|
|
5512
5268
|
kosParentAware,
|
|
5513
5269
|
kosReference,
|
|
5514
|
-
|
|
5270
|
+
e6 as kosReloadAware,
|
|
5515
5271
|
kosServiceRequest$8 as kosServiceRequest,
|
|
5516
5272
|
kosStateBean,
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5273
|
+
e7 as kosStateEntry,
|
|
5274
|
+
e8 as kosStateExit,
|
|
5275
|
+
e9 as kosStateGuard,
|
|
5276
|
+
ea as kosStateMachine,
|
|
5521
5277
|
kosStateProp,
|
|
5522
5278
|
kosSubscribe,
|
|
5523
|
-
|
|
5279
|
+
eb as kosTopicHandler,
|
|
5524
5280
|
kosTroubleAware,
|
|
5525
5281
|
kosViewModel,
|
|
5526
|
-
|
|
5282
|
+
ec as kosWhen,
|
|
5527
5283
|
login,
|
|
5528
5284
|
makeAutoObservable2 as makeAutoObservable,
|
|
5529
|
-
makeCancellable,
|
|
5285
|
+
ed as makeCancellable,
|
|
5530
5286
|
makeObservable,
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5287
|
+
ee as mapConfigBeanModelToDto,
|
|
5288
|
+
ef as mapDataToModel,
|
|
5289
|
+
eg as mapDtoToConfigBeanModel,
|
|
5290
|
+
eh as mapDtoToFutureModel,
|
|
5291
|
+
ei as mapDtoToFutureOptions,
|
|
5292
|
+
ej as mapUpdateDtoToConfigBeanModel,
|
|
5537
5293
|
mergeLocalizationDescriptors,
|
|
5538
|
-
|
|
5539
|
-
|
|
5294
|
+
ek as modelEventTopicFactory,
|
|
5295
|
+
el as modelFactory,
|
|
5540
5296
|
modelHookCache,
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5297
|
+
em as modelTypeEventTopicFactory,
|
|
5298
|
+
en as modifyConfigBean,
|
|
5299
|
+
eo as modifyFuture,
|
|
5544
5300
|
pairedClientHeartbeat,
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5301
|
+
ep as parseWildcardSegment,
|
|
5302
|
+
eq as pipe,
|
|
5303
|
+
er as post,
|
|
5304
|
+
es as preloadKosModel,
|
|
5305
|
+
et as processId,
|
|
5550
5306
|
processMiddleware,
|
|
5551
|
-
|
|
5307
|
+
eu as put,
|
|
5552
5308
|
readModelHookEntry,
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5309
|
+
ev as registerCompanionModel,
|
|
5310
|
+
ew as registerCoreModels,
|
|
5311
|
+
ex as registerExtensionPoint,
|
|
5312
|
+
ey as registerHttpRoutes,
|
|
5313
|
+
ez as registerKosModel,
|
|
5314
|
+
eA as registerLegacyModel,
|
|
5315
|
+
eB as resetKosModel,
|
|
5560
5316
|
resetPassword,
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5317
|
+
eC as resolveBaseUrl,
|
|
5318
|
+
eD as resolveChild,
|
|
5319
|
+
eE as resolveContainerDeltas,
|
|
5320
|
+
eF as resolveItemListDeltas,
|
|
5321
|
+
eG as resolveKosCompanion,
|
|
5322
|
+
eH as resolveKosContext,
|
|
5323
|
+
eI as resolveKosProfiles,
|
|
5324
|
+
eJ as resolveListDeltas,
|
|
5325
|
+
eK as resolveServiceRequestParameters,
|
|
5326
|
+
eL as resolveServiceUrl,
|
|
5571
5327
|
resolveVariable,
|
|
5572
|
-
retryWithExponentialBackoff,
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5328
|
+
eM as retryWithExponentialBackoff,
|
|
5329
|
+
eN as sendAsyncIntent,
|
|
5330
|
+
eO as sendBroadcastMessage,
|
|
5331
|
+
eP as sendIntent,
|
|
5332
|
+
eQ as sendKosHttpMessageResponse,
|
|
5333
|
+
eR as sendKosMessage,
|
|
5578
5334
|
sendKosMessageResponse,
|
|
5579
|
-
sendRequest,
|
|
5580
|
-
|
|
5581
|
-
|
|
5335
|
+
eS as sendRequest,
|
|
5336
|
+
eT as sendStudioMessage,
|
|
5337
|
+
eU as sendStudioMessageRequest,
|
|
5582
5338
|
startPasswordReset,
|
|
5583
5339
|
stringComponentInsert,
|
|
5584
5340
|
studioAcceptOrgInvitation,
|
|
@@ -5586,10 +5342,10 @@ export {
|
|
|
5586
5342
|
studioResetPassword,
|
|
5587
5343
|
studioStartPasswordReset,
|
|
5588
5344
|
subscribeStore,
|
|
5589
|
-
syncPublish,
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5345
|
+
eV as syncPublish,
|
|
5346
|
+
eW as troubleByTypeReducer,
|
|
5347
|
+
eX as troubleDataFactory,
|
|
5348
|
+
eY as unloadKosModel,
|
|
5593
5349
|
updateCompanionModelRegistration,
|
|
5594
5350
|
updateModelRegistration,
|
|
5595
5351
|
updateRegion,
|
|
@@ -5653,13 +5409,13 @@ export {
|
|
|
5653
5409
|
useViewModel,
|
|
5654
5410
|
useYears,
|
|
5655
5411
|
useYearsOptions,
|
|
5656
|
-
uuid,
|
|
5412
|
+
eZ as uuid,
|
|
5657
5413
|
variableToHex,
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
waitForRequest,
|
|
5414
|
+
e_ as waitForAppToStart,
|
|
5415
|
+
e$ as waitForAppsToStart,
|
|
5416
|
+
f0 as waitForRequest,
|
|
5661
5417
|
whenReady,
|
|
5662
|
-
withCancellation,
|
|
5418
|
+
f1 as withCancellation,
|
|
5663
5419
|
withDevice,
|
|
5664
5420
|
withKosTime,
|
|
5665
5421
|
withNetworkInterfaceContainer,
|
|
@@ -5671,6 +5427,6 @@ export {
|
|
|
5671
5427
|
withTroubleContainer,
|
|
5672
5428
|
withUsbUpdateContainer,
|
|
5673
5429
|
wrapPromise,
|
|
5674
|
-
|
|
5430
|
+
f2 as wrapWithFutureLifecycle
|
|
5675
5431
|
};
|
|
5676
5432
|
//# sourceMappingURL=index.js.map
|