@kosdev-code/kos-ui-sdk 3.0.28 → 3.0.30
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/index.d.ts +2 -0
- package/core/core/transport/mock/index.d.ts.map +1 -1
- package/core/core/transport/mock/mock-boot.d.ts +39 -0
- package/core/core/transport/mock/mock-boot.d.ts.map +1 -0
- 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 +109 -323
- package/index.cjs.map +1 -1
- package/index.js +363 -577
- 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/translation/translation-model.d.ts +4 -2
- package/models/models/translation/translation-model.d.ts.map +1 -1
- package/models/models/translation/types/index.d.ts +24 -6
- 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-BPN4QLfN.cjs} +1299 -711
- package/software-info-registration-BPN4QLfN.cjs.map +1 -0
- package/{software-info-registration-kSGacOka.js → software-info-registration-BTHhITrs.js} +1610 -1022
- package/software-info-registration-BTHhITrs.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 +8 -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-BTHhITrs.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-BTHhITrs.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];
|
|
@@ -667,6 +662,33 @@ function kosViewModel(options) {
|
|
|
667
662
|
return ProxiedClass;
|
|
668
663
|
};
|
|
669
664
|
}
|
|
665
|
+
const BOOT_PARAMS = ["kosMock", "kosFixtureServer", "kosFixture", "kosSetup"];
|
|
666
|
+
const bootKey = (params) => BOOT_PARAMS.map((name) => {
|
|
667
|
+
const value = params.get(name);
|
|
668
|
+
if (value === null) return "";
|
|
669
|
+
return name === "kosSetup" ? value.split(",").filter(Boolean).sort().join(",") : value;
|
|
670
|
+
}).join("|");
|
|
671
|
+
function kosMockBootUrl(href, boot) {
|
|
672
|
+
const url = new URL(href);
|
|
673
|
+
const before = bootKey(url.searchParams);
|
|
674
|
+
for (const name of BOOT_PARAMS) url.searchParams.delete(name);
|
|
675
|
+
const setups = boot?.setups?.filter(Boolean) ?? [];
|
|
676
|
+
if (boot && (boot.mode || boot.fixture || setups.length > 0)) {
|
|
677
|
+
url.searchParams.set("kosMock", boot.mode ?? "on");
|
|
678
|
+
if (boot.fixture || setups.length > 0) {
|
|
679
|
+
url.searchParams.set("kosFixtureServer", boot.fixtureServer ?? "");
|
|
680
|
+
}
|
|
681
|
+
if (boot.fixture) url.searchParams.set("kosFixture", boot.fixture);
|
|
682
|
+
if (setups.length > 0) url.searchParams.set("kosSetup", setups.join(","));
|
|
683
|
+
}
|
|
684
|
+
return bootKey(url.searchParams) === before ? void 0 : url.toString();
|
|
685
|
+
}
|
|
686
|
+
function ensureKosMockBoot(boot, location = window.location) {
|
|
687
|
+
const target = kosMockBootUrl(location.href, boot);
|
|
688
|
+
if (target === void 0) return false;
|
|
689
|
+
location.replace(target);
|
|
690
|
+
return true;
|
|
691
|
+
}
|
|
670
692
|
class AncestorPathVisitor extends KosModelVisitor {
|
|
671
693
|
targetId;
|
|
672
694
|
currentPath = [];
|
|
@@ -962,33 +984,6 @@ const pairedClientHeartbeat = ({
|
|
|
962
984
|
controller.signal.addEventListener("abort", handleAbort);
|
|
963
985
|
return { cleanUpHeartbeat };
|
|
964
986
|
};
|
|
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
987
|
function getServiceResponse(model, path, method = "get") {
|
|
993
988
|
const store = model.serviceResponses;
|
|
994
989
|
if (!store) {
|
|
@@ -1024,58 +1019,6 @@ function clearAllServiceResponses(model) {
|
|
|
1024
1019
|
}
|
|
1025
1020
|
store.clear();
|
|
1026
1021
|
}
|
|
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
1022
|
function kosIndexAware(options) {
|
|
1080
1023
|
return (target) => {
|
|
1081
1024
|
const collection = options?.collection;
|
|
@@ -1373,7 +1316,10 @@ const index$c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1373
1316
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1374
1317
|
const index$b = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1375
1318
|
__proto__: null,
|
|
1376
|
-
|
|
1319
|
+
addLogOverride,
|
|
1320
|
+
getLogGroups,
|
|
1321
|
+
getLogOverrides,
|
|
1322
|
+
removeLogOverride
|
|
1377
1323
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1378
1324
|
const index$a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1379
1325
|
__proto__: null,
|
|
@@ -1397,185 +1343,6 @@ const index$8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1397
1343
|
getTroubles,
|
|
1398
1344
|
resolveTrouble
|
|
1399
1345
|
}, 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
1346
|
const index$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1580
1347
|
__proto__: null,
|
|
1581
1348
|
sendCanvasData
|
|
@@ -1775,7 +1542,7 @@ const updateRegion = async (region) => {
|
|
|
1775
1542
|
regionInfo.updateProperty(region);
|
|
1776
1543
|
};
|
|
1777
1544
|
async function getKosServiceApi() {
|
|
1778
|
-
const { default: API } = await import("./software-info-registration-
|
|
1545
|
+
const { default: API } = await import("./software-info-registration-BTHhITrs.js").then((n) => n.f3);
|
|
1779
1546
|
return API;
|
|
1780
1547
|
}
|
|
1781
1548
|
function kosServiceRequest$7(params) {
|
|
@@ -1903,7 +1670,7 @@ const index$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
1903
1670
|
function isTroubleAware(obj) {
|
|
1904
1671
|
return obj?.troubles !== void 0 && obj?.troubles instanceof Array && obj?.troublesByType !== void 0 && typeof obj?.troublesByType === "object";
|
|
1905
1672
|
}
|
|
1906
|
-
const log$
|
|
1673
|
+
const log$9 = KosLog.createLogger({ group: LogGroup.service, name: "services" });
|
|
1907
1674
|
const studioLogin = async (username, password) => login(username, password, `${BASE_URL}/api/server/login`);
|
|
1908
1675
|
const login = async (username, password, url = `${BASE_URL}/api/login`) => {
|
|
1909
1676
|
const response = await kosFetch(`${url}`, {
|
|
@@ -1937,7 +1704,7 @@ const startPasswordReset = async (userId, url = `${BASE_URL}/api/startPasswordRe
|
|
|
1937
1704
|
};
|
|
1938
1705
|
const studioResetPassword = async (token2, password) => resetPassword(token2, password, `${BASE_URL}/api/server/resetPassword`);
|
|
1939
1706
|
const resetPassword = async (token2, password, url = `${BASE_URL}/api/resetPassword`) => {
|
|
1940
|
-
log$
|
|
1707
|
+
log$9.debug(
|
|
1941
1708
|
`resetting password with token ${token2} and password ${password.replace(
|
|
1942
1709
|
/./g,
|
|
1943
1710
|
"*"
|
|
@@ -1951,9 +1718,9 @@ const resetPassword = async (token2, password, url = `${BASE_URL}/api/resetPassw
|
|
|
1951
1718
|
password
|
|
1952
1719
|
})
|
|
1953
1720
|
});
|
|
1954
|
-
log$
|
|
1721
|
+
log$9.debug(`password reset returned status ${response.status}`);
|
|
1955
1722
|
if (!response.ok) {
|
|
1956
|
-
log$
|
|
1723
|
+
log$9.error(`password reset failed with message ${response.statusText}`);
|
|
1957
1724
|
const configResponse2 = await response.json();
|
|
1958
1725
|
throw Error(
|
|
1959
1726
|
`${configResponse2?.error}:There was a problem resetting the password.`
|
|
@@ -1969,7 +1736,7 @@ const studioAcceptOrgInvitation = async (token2, password, name) => acceptOrgInv
|
|
|
1969
1736
|
`${BASE_URL}/api/server/acceptInvite`
|
|
1970
1737
|
);
|
|
1971
1738
|
const acceptOrgInvitation = async (token2, password, name, url = `${BASE_URL}/api/server/acceptInvite`) => {
|
|
1972
|
-
log$
|
|
1739
|
+
log$9.debug(
|
|
1973
1740
|
`accepting invite with token ${token2} and password ${password.replace(
|
|
1974
1741
|
/./g,
|
|
1975
1742
|
"*"
|
|
@@ -1984,9 +1751,9 @@ const acceptOrgInvitation = async (token2, password, name, url = `${BASE_URL}/ap
|
|
|
1984
1751
|
name
|
|
1985
1752
|
})
|
|
1986
1753
|
});
|
|
1987
|
-
log$
|
|
1754
|
+
log$9.debug(`invitation accept returned status ${response.status}`);
|
|
1988
1755
|
if (!response.ok) {
|
|
1989
|
-
log$
|
|
1756
|
+
log$9.error(`invite failed with message ${response.statusText}`);
|
|
1990
1757
|
const configResponse2 = await response.json();
|
|
1991
1758
|
throw Error(
|
|
1992
1759
|
`${configResponse2?.error}:There was a problem accepting the invite.`
|
|
@@ -2162,15 +1929,6 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
2162
1929
|
gpioApi,
|
|
2163
1930
|
gpioServiceRequest
|
|
2164
1931
|
}, 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
1932
|
function filterGpioChipDto(chip) {
|
|
2175
1933
|
return !!chip.num || chip.num === 0;
|
|
2176
1934
|
}
|
|
@@ -2297,8 +2055,7 @@ GpioChipContainerModelImpl = __decorateClass$1([
|
|
|
2297
2055
|
sortKey: "num"
|
|
2298
2056
|
},
|
|
2299
2057
|
reconcile: {
|
|
2300
|
-
|
|
2301
|
-
update: updateGpioChipModel,
|
|
2058
|
+
model: GpioChip,
|
|
2302
2059
|
filter: filterGpioChipDto,
|
|
2303
2060
|
idMapper: mapGpioChipId,
|
|
2304
2061
|
afterCreate: afterGpioChipCreated
|
|
@@ -2308,15 +2065,15 @@ GpioChipContainerModelImpl = __decorateClass$1([
|
|
|
2308
2065
|
], GpioChipContainerModelImpl);
|
|
2309
2066
|
const GpioChipContainer = GpioChipContainerModelImpl.Registration;
|
|
2310
2067
|
GpioChipContainer.addRelatedModel(GpioChip);
|
|
2311
|
-
const log$
|
|
2312
|
-
|
|
2313
|
-
|
|
2068
|
+
const log$8 = KosLog.createLogger({
|
|
2069
|
+
group: LogGroup.service,
|
|
2070
|
+
name: "studio-properties-service"
|
|
2314
2071
|
});
|
|
2315
2072
|
const SERVICE_PATH = "/api/kos/studio/properties";
|
|
2316
2073
|
const getStudioProperties = async (connectionId) => {
|
|
2317
|
-
log$
|
|
2074
|
+
log$8.debug("sending GET for studio-properties");
|
|
2318
2075
|
if (!connectionId) {
|
|
2319
|
-
log$
|
|
2076
|
+
log$8.error("connectionId is undefined");
|
|
2320
2077
|
throw new Error("connectionId is undefined");
|
|
2321
2078
|
}
|
|
2322
2079
|
return await api$8.get(
|
|
@@ -2405,7 +2162,10 @@ let StudioPropertiesModelImpl = class {
|
|
|
2405
2162
|
}, {});
|
|
2406
2163
|
this.data.setValues(update ?? DEFAULT_STUDIO_PROPERTIES);
|
|
2407
2164
|
KosLog.ifDebug(
|
|
2408
|
-
() => this.logger.debug(
|
|
2165
|
+
() => this.logger.debug(
|
|
2166
|
+
`studio-properties loaded: ${JSON.stringify(update)}`
|
|
2167
|
+
),
|
|
2168
|
+
this.logger
|
|
2409
2169
|
);
|
|
2410
2170
|
}
|
|
2411
2171
|
}
|
|
@@ -2478,7 +2238,7 @@ const MessageContainer = styled.div`
|
|
|
2478
2238
|
color: ${({ theme }) => theme === "light" ? "black" : "white"};
|
|
2479
2239
|
z-index: 10000;
|
|
2480
2240
|
`;
|
|
2481
|
-
const log$
|
|
2241
|
+
const log$7 = KosLog.createLogger({ group: LogGroup.ui, name: "error-boundary" });
|
|
2482
2242
|
class ErrorBoundary extends React.Component {
|
|
2483
2243
|
constructor(props) {
|
|
2484
2244
|
super(props);
|
|
@@ -2495,7 +2255,7 @@ class ErrorBoundary extends React.Component {
|
|
|
2495
2255
|
}
|
|
2496
2256
|
componentDidCatch(error, errorInfo) {
|
|
2497
2257
|
const seam = this.props.name ? ` in ${this.props.name}` : "";
|
|
2498
|
-
log$
|
|
2258
|
+
log$7.error(
|
|
2499
2259
|
`Error boundary caught${seam}: ${error?.message ?? error}`,
|
|
2500
2260
|
error,
|
|
2501
2261
|
errorInfo.componentStack
|
|
@@ -2605,11 +2365,14 @@ const KosModelProvider = ({
|
|
|
2605
2365
|
);
|
|
2606
2366
|
return /* @__PURE__ */ jsx(KosModelContext.Provider, { value: { model, setModel: setKosModel }, children });
|
|
2607
2367
|
};
|
|
2608
|
-
const log$
|
|
2368
|
+
const log$6 = KosLog.createLogger({
|
|
2369
|
+
group: LogGroup.ui,
|
|
2370
|
+
name: "kos-model-hierarchy-context"
|
|
2371
|
+
});
|
|
2609
2372
|
const defaultNestedProps = {
|
|
2610
2373
|
models: [],
|
|
2611
2374
|
addModel: () => {
|
|
2612
|
-
log$
|
|
2375
|
+
log$6.debug("Default implementation being used. Do Nothing.");
|
|
2613
2376
|
}
|
|
2614
2377
|
};
|
|
2615
2378
|
const NestedModelContext = createContext(defaultNestedProps);
|
|
@@ -2618,7 +2381,7 @@ const KosModelCollectionProvider = ({ children }) => {
|
|
|
2618
2381
|
const addModel = useCallback(
|
|
2619
2382
|
(model) => {
|
|
2620
2383
|
if (!models.includes(model)) {
|
|
2621
|
-
log$
|
|
2384
|
+
log$6.debug("adding to hierarchy context", model.id);
|
|
2622
2385
|
setModels((prevModels) => [...prevModels, model]);
|
|
2623
2386
|
}
|
|
2624
2387
|
},
|
|
@@ -2650,7 +2413,10 @@ const useModelFromHierarchy = (type) => {
|
|
|
2650
2413
|
});
|
|
2651
2414
|
return context[0];
|
|
2652
2415
|
};
|
|
2653
|
-
const log$
|
|
2416
|
+
const log$5 = KosLog.createLogger({
|
|
2417
|
+
group: LogGroup.ui,
|
|
2418
|
+
name: "kos-model-loader"
|
|
2419
|
+
});
|
|
2654
2420
|
const DefaultLoader = () => /* @__PURE__ */ jsx("div", {});
|
|
2655
2421
|
const KosModelLoader = ({ fallback, children, ...modelProps }) => /* @__PURE__ */ jsx(KosModelProvider, { children: /* @__PURE__ */ jsx(ErrorBoundary, { fallback, children: /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(KosModelLoaderDisplay, { ...modelProps, children }) }) }) });
|
|
2656
2422
|
const KosModelLoaderDisplay = (props) => {
|
|
@@ -2669,7 +2435,7 @@ const KosModelLoaderDisplay = (props) => {
|
|
|
2669
2435
|
}
|
|
2670
2436
|
}, [hierarchyContext, props.model, setModel]);
|
|
2671
2437
|
if (props.error) {
|
|
2672
|
-
log$
|
|
2438
|
+
log$5.error(props.error);
|
|
2673
2439
|
throw new Error(props.error);
|
|
2674
2440
|
}
|
|
2675
2441
|
const loader = props.loading || /* @__PURE__ */ jsx(DefaultLoader, {});
|
|
@@ -2709,6 +2475,10 @@ const useKosCore = () => {
|
|
|
2709
2475
|
return context;
|
|
2710
2476
|
};
|
|
2711
2477
|
const KOS_RECOVERING_SESSION_KEY = "kos:recovering";
|
|
2478
|
+
const log$4 = KosLog.createLogger({
|
|
2479
|
+
group: LogGroup.ui,
|
|
2480
|
+
name: "reload-on-disconnect-policy"
|
|
2481
|
+
});
|
|
2712
2482
|
const DEFAULT_GRACE_MS = 3e3;
|
|
2713
2483
|
const defaultReloadFn = () => {
|
|
2714
2484
|
window.location.reload();
|
|
@@ -2742,12 +2512,12 @@ const ReloadOnDisconnectPolicy = ({
|
|
|
2742
2512
|
JSON.stringify(info)
|
|
2743
2513
|
);
|
|
2744
2514
|
} catch (err) {
|
|
2745
|
-
|
|
2515
|
+
log$4.warn(
|
|
2746
2516
|
"ReloadOnDisconnectPolicy: failed to write sessionStorage",
|
|
2747
2517
|
err
|
|
2748
2518
|
);
|
|
2749
2519
|
}
|
|
2750
|
-
|
|
2520
|
+
log$4.warn(
|
|
2751
2521
|
`ReloadOnDisconnectPolicy: scheduling reload in ${graceMs}ms (code=${info.code}, wasClean=${info.wasClean})`
|
|
2752
2522
|
);
|
|
2753
2523
|
pendingReloadRef.current = setTimeout(() => {
|
|
@@ -2755,7 +2525,7 @@ const ReloadOnDisconnectPolicy = ({
|
|
|
2755
2525
|
try {
|
|
2756
2526
|
onBeforeReload?.(info);
|
|
2757
2527
|
} catch (err) {
|
|
2758
|
-
|
|
2528
|
+
log$4.error("ReloadOnDisconnectPolicy: onBeforeReload threw", err);
|
|
2759
2529
|
}
|
|
2760
2530
|
reloadFn();
|
|
2761
2531
|
}, graceMs);
|
|
@@ -3210,6 +2980,10 @@ const TokenContext = React.createContext(token);
|
|
|
3210
2980
|
function TokenProvider({ children }) {
|
|
3211
2981
|
return /* @__PURE__ */ jsx(TokenContext.Provider, { value: token, children });
|
|
3212
2982
|
}
|
|
2983
|
+
const log$3 = KosLog.createLogger({
|
|
2984
|
+
group: LogGroup.ui,
|
|
2985
|
+
name: "kos-translations-provider"
|
|
2986
|
+
});
|
|
3213
2987
|
const TranslationContainerContext = createContext(void 0);
|
|
3214
2988
|
const getDefaultHost = () => {
|
|
3215
2989
|
const defaultHost = window.location.origin;
|
|
@@ -3223,6 +2997,7 @@ const KosTranslationProvider = ({
|
|
|
3223
2997
|
appContext,
|
|
3224
2998
|
locale = "en",
|
|
3225
2999
|
resolver,
|
|
3000
|
+
bundleResolver,
|
|
3226
3001
|
rootUrl,
|
|
3227
3002
|
descriptorResolver,
|
|
3228
3003
|
excludeNamespaces = []
|
|
@@ -3243,7 +3018,7 @@ const KosTranslationProvider = ({
|
|
|
3243
3018
|
const descriptorsResults = await Promise.allSettled(descriptorPromises);
|
|
3244
3019
|
const descriptors = descriptorsResults.map((d) => {
|
|
3245
3020
|
if (d.status === "rejected") {
|
|
3246
|
-
|
|
3021
|
+
log$3.warn("Failed to load localization descriptor", d.reason);
|
|
3247
3022
|
return void 0;
|
|
3248
3023
|
}
|
|
3249
3024
|
return d.value;
|
|
@@ -3262,6 +3037,7 @@ const KosTranslationProvider = ({
|
|
|
3262
3037
|
descriptor: localization,
|
|
3263
3038
|
defaultNamespace: "common",
|
|
3264
3039
|
resolver,
|
|
3040
|
+
bundleResolver,
|
|
3265
3041
|
rootUrl: _rootUrl
|
|
3266
3042
|
});
|
|
3267
3043
|
setTranslations(translations2);
|
|
@@ -3269,7 +3045,7 @@ const KosTranslationProvider = ({
|
|
|
3269
3045
|
}
|
|
3270
3046
|
}
|
|
3271
3047
|
initLocalization();
|
|
3272
|
-
}, [locale, localization, resolver, resolvedRootUrl]);
|
|
3048
|
+
}, [locale, localization, resolver, bundleResolver, resolvedRootUrl]);
|
|
3273
3049
|
const value = useMemo(() => {
|
|
3274
3050
|
if (ready) {
|
|
3275
3051
|
return {
|
|
@@ -3349,8 +3125,11 @@ function renderDecodedPreview({
|
|
|
3349
3125
|
ctx.clearRect(0, 0, width * pixelSize, height * pixelSize);
|
|
3350
3126
|
ctx.drawImage(tempCanvas, 0, 0, width * pixelSize, height * pixelSize);
|
|
3351
3127
|
}
|
|
3352
|
-
const log = KosLog.createLogger({
|
|
3353
|
-
|
|
3128
|
+
const log$2 = KosLog.createLogger({
|
|
3129
|
+
group: LogGroup.ui,
|
|
3130
|
+
name: "canvas-streamer"
|
|
3131
|
+
});
|
|
3132
|
+
log$2.debug("main-view component loaded");
|
|
3354
3133
|
const PIXEL_SIZE = 10;
|
|
3355
3134
|
const CanvasStreamerBase = observer(
|
|
3356
3135
|
({
|
|
@@ -3577,7 +3356,7 @@ function withStorageDeviceContainer(WrappedComponent) {
|
|
|
3577
3356
|
return /* @__PURE__ */ jsx(KosModelLoader2, { ...status, children: /* @__PURE__ */ jsx(WrappedComponent, { ...props, storageDeviceContainer: model }) });
|
|
3578
3357
|
};
|
|
3579
3358
|
}
|
|
3580
|
-
const LOG = KosLog.createLogger({ name: "use-timer" });
|
|
3359
|
+
const LOG = KosLog.createLogger({ group: LogGroup.ui, name: "use-timer" });
|
|
3581
3360
|
const useTimer = ({
|
|
3582
3361
|
timerName,
|
|
3583
3362
|
onTimerExpired,
|
|
@@ -3699,6 +3478,10 @@ const Trans = (props) => {
|
|
|
3699
3478
|
const element = substituteBlocks(translated, components || {});
|
|
3700
3479
|
return /* @__PURE__ */ jsx("span", { className: props.className, children: element });
|
|
3701
3480
|
};
|
|
3481
|
+
const log$1 = KosLog.createLogger({
|
|
3482
|
+
group: LogGroup.ui,
|
|
3483
|
+
name: "use-translation"
|
|
3484
|
+
});
|
|
3702
3485
|
const cache = /* @__PURE__ */ new Map();
|
|
3703
3486
|
function fetchData(key, fetcher) {
|
|
3704
3487
|
if (cache.has(key)) {
|
|
@@ -3773,7 +3556,7 @@ const useKosTranslation = (namespace, baseOptions) => {
|
|
|
3773
3556
|
if (translationModel) {
|
|
3774
3557
|
return translationModel.resolveKey(expandedKey, options);
|
|
3775
3558
|
}
|
|
3776
|
-
|
|
3559
|
+
log$1.debug(
|
|
3777
3560
|
`Translation model ${namespace} not ready for key: ${expandedKey}`
|
|
3778
3561
|
);
|
|
3779
3562
|
return expandedKey;
|
|
@@ -4817,6 +4600,10 @@ const useKosTimeFormats = (timeFormatMap = DEFAULT_FORMAT_MAP) => {
|
|
|
4817
4600
|
};
|
|
4818
4601
|
};
|
|
4819
4602
|
const useLocalComputed = (callback, dependencies) => useMemo(() => kosComputed(callback), dependencies);
|
|
4603
|
+
const log = KosLog.createLogger({
|
|
4604
|
+
group: LogGroup.ui,
|
|
4605
|
+
name: "use-mutation-observer"
|
|
4606
|
+
});
|
|
4820
4607
|
const DEFAULT_OPTIONS = {
|
|
4821
4608
|
config: { attributes: true, childList: true, subtree: true }
|
|
4822
4609
|
};
|
|
@@ -4839,7 +4626,7 @@ function useMutationObserver(targetEl, cb2, options = DEFAULT_OPTIONS) {
|
|
|
4839
4626
|
try {
|
|
4840
4627
|
observer3.observe(targetEl, config);
|
|
4841
4628
|
} catch (e) {
|
|
4842
|
-
|
|
4629
|
+
log.error(e);
|
|
4843
4630
|
}
|
|
4844
4631
|
return () => {
|
|
4845
4632
|
if (observer3) {
|
|
@@ -4860,8 +4647,8 @@ const DomIntersectionStrategy = {
|
|
|
4860
4647
|
}
|
|
4861
4648
|
};
|
|
4862
4649
|
const logger = KosLog.createLogger({
|
|
4863
|
-
|
|
4864
|
-
|
|
4650
|
+
group: LogGroup.ui,
|
|
4651
|
+
name: "usePressGesture"
|
|
4865
4652
|
});
|
|
4866
4653
|
function usePressGesture({
|
|
4867
4654
|
onPressed,
|
|
@@ -5112,91 +4899,91 @@ function withProjectReloading(WrappedComponent) {
|
|
|
5112
4899
|
return reloading ? /* @__PURE__ */ jsx(LoadingMessage, { message: "Wait a moment while your project reloads..." }) : /* @__PURE__ */ jsx(WrappedComponent, { ...props });
|
|
5113
4900
|
};
|
|
5114
4901
|
}
|
|
5115
|
-
registerApiLevels({ "kos-ui-sdk":
|
|
4902
|
+
registerApiLevels({ "kos-ui-sdk": 26 });
|
|
5116
4903
|
export {
|
|
5117
4904
|
AncestorPathVisitor,
|
|
5118
|
-
|
|
4905
|
+
aX as AuthState,
|
|
5119
4906
|
BASE_URL,
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
CancellationBatch,
|
|
4907
|
+
aY as BrowserKosRouter,
|
|
4908
|
+
aZ as BrowserRouter,
|
|
4909
|
+
a_ as CancellableServiceManager,
|
|
4910
|
+
a$ as CancellationBatch,
|
|
5124
4911
|
CanvasDispatcher,
|
|
5125
4912
|
index$7 as CanvasDispatcherServices,
|
|
5126
|
-
|
|
4913
|
+
b0 as CanvasRenderer,
|
|
5127
4914
|
CanvasStreamer,
|
|
5128
4915
|
CanvasStreamerBase,
|
|
5129
|
-
|
|
4916
|
+
b1 as ChildModels,
|
|
5130
4917
|
CompanionParentModel,
|
|
5131
4918
|
ConfigBean,
|
|
5132
4919
|
ConnectionDevButton,
|
|
5133
|
-
|
|
4920
|
+
b2 as ContainerAwareSetup,
|
|
5134
4921
|
CoreExtensionManager,
|
|
5135
|
-
|
|
4922
|
+
b3 as CoreModels,
|
|
5136
4923
|
CreateModelTranslationsContext,
|
|
5137
4924
|
CreateModelTranslationsProvider,
|
|
5138
4925
|
DateDisplayFormat,
|
|
5139
4926
|
dateUtils as DateHelpers,
|
|
5140
4927
|
DependencyLifecycle,
|
|
5141
4928
|
DependencyModels,
|
|
5142
|
-
|
|
4929
|
+
b4 as DependencyResolutionPolicy,
|
|
5143
4930
|
Device,
|
|
5144
4931
|
index$6 as DeviceServices,
|
|
5145
4932
|
DomIntersectionStrategy,
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
4933
|
+
b5 as ERROR_TRANSPORT_NOT_READY,
|
|
4934
|
+
b6 as EVENT_KOS_MODEL_READY,
|
|
4935
|
+
b7 as EVENT_TROUBLE_ADDED,
|
|
4936
|
+
b8 as EVENT_TROUBLE_REMOVED,
|
|
4937
|
+
b9 as EXTENSION_CANVAS_RENDERER,
|
|
4938
|
+
ba as EXTENSION_FEATURE_FLAG_RESOLVER,
|
|
4939
|
+
bb as EXTENSION_FUTURE_LIFECYCLE_WRAPPER,
|
|
4940
|
+
bc as EXTENSION_TROUBLE_DATA_MAPPER,
|
|
4941
|
+
bd as EXTENSION_TROUBLE_MAPPER,
|
|
5155
4942
|
ErrorBoundary as ErrorBoundaryWithFallback,
|
|
5156
|
-
|
|
4943
|
+
be as EventBus,
|
|
5157
4944
|
eventBus_functional as EventBusFunctional,
|
|
5158
|
-
|
|
5159
|
-
|
|
4945
|
+
bf as EventBusState,
|
|
4946
|
+
bg as ExtensionException,
|
|
5160
4947
|
ExtensionManager,
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
4948
|
+
bh as FUTURE_CONTAINER_MODEL_TYPE,
|
|
4949
|
+
bi as FUTURE_MODEL_TYPE,
|
|
4950
|
+
bj as FUTURE_NOT_ASSIGNED,
|
|
4951
|
+
bk as FeatureFlagService,
|
|
4952
|
+
bl as FetchError,
|
|
4953
|
+
bm as FutureAliases,
|
|
4954
|
+
bn as FutureCallError,
|
|
4955
|
+
bo as FutureContainerFactory,
|
|
4956
|
+
bp as FutureContainerModel,
|
|
4957
|
+
bq as FutureContainerSetup,
|
|
4958
|
+
br as FutureEndState,
|
|
4959
|
+
bs as FutureFactory,
|
|
4960
|
+
bt as FutureHandler,
|
|
4961
|
+
bu as FutureManager,
|
|
4962
|
+
bv as FutureModel,
|
|
4963
|
+
bw as FutureService,
|
|
5177
4964
|
GpioChip,
|
|
5178
4965
|
GpioChipContainer,
|
|
5179
4966
|
index$1 as GpioChipServices,
|
|
5180
4967
|
GpioPin,
|
|
5181
4968
|
GpioPinContainer,
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
4969
|
+
bx as HEADER_CACHE_CONTROL,
|
|
4970
|
+
by as HEADER_CONTENT_TYPE,
|
|
4971
|
+
bz as HEADER_DESTINATION_ADDR,
|
|
4972
|
+
bA as HEADER_FOS_REQUEST_ID,
|
|
4973
|
+
bB as HEADER_METHOD,
|
|
4974
|
+
bC as HEADER_ORDERED,
|
|
4975
|
+
bD as HEADER_REQUEST_ID,
|
|
4976
|
+
bE as HEADER_REQUEST_TYPE,
|
|
4977
|
+
bF as HEADER_RESPONSE_ID,
|
|
4978
|
+
bG as HEADER_SOURCE_ADDR,
|
|
4979
|
+
bH as HEADER_TOPIC,
|
|
4980
|
+
bI as HEADER_URL,
|
|
4981
|
+
bJ as HEADER_WORK_TRACKER,
|
|
4982
|
+
bK as HttpRouteHandlers,
|
|
5196
4983
|
INDEX_COLLECTION_KEY,
|
|
5197
4984
|
INDEX_RECORD_SYMBOL,
|
|
5198
|
-
|
|
5199
|
-
|
|
4985
|
+
bL as KOS_EXECUTION_CONTEXT,
|
|
4986
|
+
bM as KOS_MODEL_ID,
|
|
5200
4987
|
KOS_RECOVERING_SESSION_KEY,
|
|
5201
4988
|
service$7 as KOS_SERVICE,
|
|
5202
4989
|
service$6 as KOS_SERVICE_1_6_5,
|
|
@@ -5206,119 +4993,120 @@ export {
|
|
|
5206
4993
|
index$c as KeyValueServices,
|
|
5207
4994
|
Kos,
|
|
5208
4995
|
Registration as KosConfigPropertySpec,
|
|
5209
|
-
|
|
4996
|
+
bN as KosContainerIndex,
|
|
5210
4997
|
KosContainerIndexEvents,
|
|
5211
|
-
|
|
4998
|
+
bO as KosContextBean,
|
|
5212
4999
|
KosContextManager,
|
|
5213
5000
|
KosCore,
|
|
5214
5001
|
KosCoreModelPropertyMapper,
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5002
|
+
bP as KosDataContainer,
|
|
5003
|
+
bQ as KosDependencyTypes,
|
|
5004
|
+
bR as KosExpressionEvaluator,
|
|
5218
5005
|
initializeExtension as KosExtensionUtils,
|
|
5219
|
-
|
|
5006
|
+
bS as KosFeatureFlags,
|
|
5220
5007
|
KosFetchMethods,
|
|
5221
|
-
|
|
5222
|
-
|
|
5008
|
+
bT as KosGlobalConfig,
|
|
5009
|
+
bU as KosHttpRouteManager,
|
|
5223
5010
|
KosLog,
|
|
5224
|
-
|
|
5011
|
+
bV as KosLogManager,
|
|
5225
5012
|
index$b as KosLogManagerServices,
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5013
|
+
bW as KosLoggerFactory,
|
|
5014
|
+
bX as KosMock,
|
|
5015
|
+
bY as KosModel,
|
|
5229
5016
|
KosModelCollectionProvider,
|
|
5230
|
-
|
|
5017
|
+
bZ as KosModelContainer,
|
|
5231
5018
|
KosModelContext,
|
|
5232
5019
|
KosModelEvents,
|
|
5233
|
-
|
|
5020
|
+
b_ as KosModelFactory,
|
|
5234
5021
|
KosModelLoader,
|
|
5235
5022
|
KosModelLoaderDisplay,
|
|
5236
|
-
|
|
5023
|
+
b$ as KosModelManager,
|
|
5237
5024
|
KosModelProvider,
|
|
5238
5025
|
KosModelRegistrationFactory,
|
|
5239
|
-
|
|
5026
|
+
c0 as KosModelRegistry,
|
|
5240
5027
|
KosModelState,
|
|
5241
|
-
|
|
5028
|
+
c1 as KosModelSymbol,
|
|
5242
5029
|
KosModelVisitor,
|
|
5243
|
-
|
|
5030
|
+
c2 as KosObservableData,
|
|
5244
5031
|
KosRegistration,
|
|
5245
5032
|
KosSingletonRegistration,
|
|
5246
5033
|
KosTime,
|
|
5247
5034
|
KosTimeContext,
|
|
5248
5035
|
KosTimeProvider,
|
|
5249
5036
|
index$a as KosTimeServices,
|
|
5250
|
-
|
|
5037
|
+
c3 as KosTimer,
|
|
5251
5038
|
KosToken,
|
|
5252
5039
|
KosTranslationProvider,
|
|
5253
5040
|
KosTranslations,
|
|
5254
5041
|
KosViewModelSymbol,
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5042
|
+
c4 as KosWSTransportStatus,
|
|
5043
|
+
c5 as KosWsEvents,
|
|
5044
|
+
c6 as LOADER_FEATURE_FLAG,
|
|
5045
|
+
c7 as LOGIN_HOST,
|
|
5046
|
+
c8 as LOGIN_URL,
|
|
5260
5047
|
LoadingMessage,
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5048
|
+
c9 as LogBlock,
|
|
5049
|
+
ca as LogBlockContainer,
|
|
5050
|
+
LogGroup,
|
|
5051
|
+
cb as LogStream,
|
|
5052
|
+
cc as LogStreamContainer,
|
|
5266
5053
|
index$9 as LogStreamServices,
|
|
5267
|
-
|
|
5268
|
-
|
|
5054
|
+
cd as LoggerSetup,
|
|
5055
|
+
ce as MESSAGE_LOGGER_NAME,
|
|
5056
|
+
cf as MODEL_DELETION_DELAY,
|
|
5269
5057
|
MiddlewareChain,
|
|
5270
5058
|
MixinModels,
|
|
5271
5059
|
ModelEffects,
|
|
5272
|
-
|
|
5060
|
+
cg as ModelError,
|
|
5273
5061
|
MultipleFutureContainerSetup,
|
|
5274
|
-
|
|
5062
|
+
ch as MultipleFutureHandler,
|
|
5275
5063
|
NestedModelContext,
|
|
5276
|
-
|
|
5064
|
+
ci as NetworkInterface,
|
|
5277
5065
|
NetworkInterfaceContainer,
|
|
5278
5066
|
index$5 as NetworkInterfaceServices,
|
|
5279
5067
|
ObservableData,
|
|
5280
|
-
|
|
5068
|
+
cj as OptionsRequired,
|
|
5281
5069
|
Ota,
|
|
5282
5070
|
OutsideAlerter,
|
|
5283
5071
|
PLUGIN_EXTENSION_NAME,
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5072
|
+
ck as PORT,
|
|
5073
|
+
cl as PROFILE_ENABLE_RELEASES,
|
|
5074
|
+
cm as PROFILE_LOG_DEBUG,
|
|
5075
|
+
cn as PROFILE_LOG_INFO,
|
|
5076
|
+
co as PROFILE_RELAX_STORE_VALIDATION,
|
|
5077
|
+
cp as PROFILE_TOOLS_PREVIEW,
|
|
5078
|
+
cq as ParentModel,
|
|
5291
5079
|
PluginExtensionManager,
|
|
5292
5080
|
ProgressBar,
|
|
5293
5081
|
ReconnectingOverlay,
|
|
5294
5082
|
ReferenceConfig,
|
|
5295
5083
|
Registration$1 as RegionInfo,
|
|
5296
5084
|
index$f as RegionServices,
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5085
|
+
cr as RegistrationManager,
|
|
5086
|
+
cs as Registry,
|
|
5087
|
+
ct as ReloadAwareSetup,
|
|
5300
5088
|
ReloadOnDisconnectPolicy,
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5089
|
+
cu as ReplayStrategy,
|
|
5090
|
+
cv as ResponseRetention,
|
|
5091
|
+
cw as STATUS,
|
|
5092
|
+
cx as SelfManagedReload,
|
|
5093
|
+
cy as ServiceFactory,
|
|
5094
|
+
cz as ServiceRequestError,
|
|
5095
|
+
cA as ServiceRequestHandlers,
|
|
5096
|
+
cB as SingletonKosModelRegistrationFactory,
|
|
5309
5097
|
SoftwareInfo,
|
|
5310
5098
|
SoftwareInfoContext,
|
|
5311
5099
|
SoftwareInfoProvider,
|
|
5312
5100
|
index$2 as SoftwareInfoServices,
|
|
5313
|
-
|
|
5101
|
+
cC as StateActionHandlers,
|
|
5314
5102
|
StateBean,
|
|
5315
5103
|
index$e as StateBeanServices,
|
|
5316
|
-
|
|
5317
|
-
|
|
5104
|
+
cD as StateEntryHandlers,
|
|
5105
|
+
cE as StateExitHandlers,
|
|
5318
5106
|
StateMachineSetup,
|
|
5319
5107
|
StateProp,
|
|
5320
5108
|
index$d as StatePropServices,
|
|
5321
|
-
|
|
5109
|
+
cF as StorageDevice,
|
|
5322
5110
|
StorageDeviceContainer,
|
|
5323
5111
|
index$4 as StorageDeviceServices,
|
|
5324
5112
|
StudioProperties,
|
|
@@ -5327,26 +5115,26 @@ export {
|
|
|
5327
5115
|
TIMER_END,
|
|
5328
5116
|
TIMER_EVENT,
|
|
5329
5117
|
TOPIC_TIMER_TICK_EVENT,
|
|
5330
|
-
|
|
5118
|
+
cG as TRANSPORT_NOT_READY,
|
|
5331
5119
|
TimerManager,
|
|
5332
5120
|
TokenContext,
|
|
5333
5121
|
TokenProvider,
|
|
5334
|
-
|
|
5122
|
+
cH as Topics,
|
|
5335
5123
|
Trans,
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5124
|
+
cI as TransitionMap,
|
|
5125
|
+
cJ as Transitions,
|
|
5126
|
+
cK as Translation,
|
|
5339
5127
|
TranslationContainer,
|
|
5340
5128
|
TranslationContainerContext,
|
|
5341
5129
|
TranslationContext,
|
|
5342
|
-
|
|
5343
|
-
|
|
5130
|
+
cL as TransportFactory,
|
|
5131
|
+
cM as TransportNotReadyError,
|
|
5344
5132
|
Trouble,
|
|
5345
5133
|
TroubleAwareSetup,
|
|
5346
5134
|
TroubleContainer,
|
|
5347
5135
|
index$8 as TroubleServices,
|
|
5348
|
-
|
|
5349
|
-
|
|
5136
|
+
cN as Troubles,
|
|
5137
|
+
cO as UsbUpdate,
|
|
5350
5138
|
UsbUpdateContainer,
|
|
5351
5139
|
index$3 as UsbUpdateServices,
|
|
5352
5140
|
service$3 as VFS_SERVICE,
|
|
@@ -5354,138 +5142,137 @@ export {
|
|
|
5354
5142
|
service$1 as VFS_SERVICE_1_8_1,
|
|
5355
5143
|
service as VFS_SERVICE_1_9_X,
|
|
5356
5144
|
ViewModelConfig,
|
|
5357
|
-
|
|
5145
|
+
cP as WS_EVENT_TYPE,
|
|
5358
5146
|
WebSocketEvents,
|
|
5359
5147
|
WebSocketTransport,
|
|
5360
|
-
|
|
5361
|
-
|
|
5148
|
+
cQ as WsEventFactory,
|
|
5149
|
+
cR as WsEventModel,
|
|
5362
5150
|
acceptOrgInvitation,
|
|
5363
5151
|
addDaysToDate,
|
|
5364
|
-
|
|
5152
|
+
cS as addFuture,
|
|
5365
5153
|
addMonthsToDate,
|
|
5366
|
-
|
|
5367
|
-
|
|
5154
|
+
cT as api,
|
|
5155
|
+
cU as applyFunctionalEnhancements,
|
|
5368
5156
|
applyMixins,
|
|
5369
5157
|
arraysEqual,
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5158
|
+
cV as awaitFutureCall,
|
|
5159
|
+
cW as buildConfigBeanModel,
|
|
5160
|
+
cX as buildFuture,
|
|
5161
|
+
cY as buildFutureModel,
|
|
5162
|
+
cZ as cancelFuture,
|
|
5163
|
+
c_ as checkAppsStarted,
|
|
5164
|
+
c$ as checkWildcardPattern,
|
|
5377
5165
|
clearAllServiceResponses,
|
|
5378
5166
|
clearModelHookCacheEntry,
|
|
5379
5167
|
clearPath,
|
|
5380
5168
|
clearServiceResponse,
|
|
5381
5169
|
collectLocaleOptions,
|
|
5382
|
-
|
|
5170
|
+
d0 as convert,
|
|
5383
5171
|
convertFileSizeRaw,
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
createCancellablePromise,
|
|
5388
|
-
|
|
5389
|
-
createCancellationBatch,
|
|
5172
|
+
d1 as convertWithUnits,
|
|
5173
|
+
d2 as createBaseMessage,
|
|
5174
|
+
d3 as createBroadcastMessageResponse,
|
|
5175
|
+
d4 as createCancellablePromise,
|
|
5176
|
+
d5 as createCancellableService,
|
|
5177
|
+
d6 as createCancellationBatch,
|
|
5390
5178
|
createClient,
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5179
|
+
d7 as createFosBaseMessage,
|
|
5180
|
+
d8 as createHeaders,
|
|
5181
|
+
d9 as createKosHtpMessageResponse,
|
|
5182
|
+
da as createKosMessage,
|
|
5183
|
+
db as createKosMessageResponse,
|
|
5184
|
+
dc as createMessageBody,
|
|
5185
|
+
dd as createModelDependency,
|
|
5186
|
+
de as createOptionKey,
|
|
5187
|
+
df as createPropKey,
|
|
5188
|
+
dg as createReadableStream,
|
|
5189
|
+
dh as createStudioMessage,
|
|
5190
|
+
di as createStudioMessageRequest,
|
|
5191
|
+
dj as createStudioMessageResponse,
|
|
5404
5192
|
debounce,
|
|
5405
|
-
|
|
5406
|
-
|
|
5193
|
+
dk as del,
|
|
5194
|
+
dl as deleteFuture,
|
|
5407
5195
|
destroyKosModel,
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5196
|
+
ensureKosMockBoot,
|
|
5197
|
+
dm as evaluateScopes,
|
|
5198
|
+
dn as executeApiMethod,
|
|
5199
|
+
dp as executeChildrenModelLifecycle,
|
|
5200
|
+
dq as executeDependentModelLifecycle,
|
|
5201
|
+
dr as executeListLifecycle,
|
|
5413
5202
|
executeServiceRequest,
|
|
5414
5203
|
fetchModel,
|
|
5415
|
-
|
|
5416
|
-
|
|
5204
|
+
ds as findModel,
|
|
5205
|
+
dt as findModels,
|
|
5417
5206
|
formatDate,
|
|
5418
5207
|
formatDateSince,
|
|
5419
5208
|
formatDateTime,
|
|
5420
5209
|
formatTime,
|
|
5421
|
-
|
|
5422
|
-
|
|
5210
|
+
du as get,
|
|
5211
|
+
dv as getAllKosCompanionModels,
|
|
5423
5212
|
getCalendarMonthArray,
|
|
5424
|
-
|
|
5213
|
+
dw as getConfigBean,
|
|
5425
5214
|
getDayStrings,
|
|
5426
5215
|
getDays,
|
|
5427
5216
|
getDaysArray,
|
|
5428
5217
|
getDaysInMonth$1 as getDaysInMonth,
|
|
5429
|
-
|
|
5218
|
+
dx as getDependenciesByLifecycle,
|
|
5430
5219
|
getFormattedDate,
|
|
5431
5220
|
getFormattedMonth,
|
|
5432
5221
|
getFormattedMonthsArray,
|
|
5433
5222
|
getFormattedYear,
|
|
5434
5223
|
getFormattedYearsArray,
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5224
|
+
dy as getFutures,
|
|
5225
|
+
dz as getHttpRouteHandlers,
|
|
5226
|
+
dA as getKosCompanionModel,
|
|
5227
|
+
dB as getKosConnectionId,
|
|
5439
5228
|
getKosLocalizationDescriptor,
|
|
5440
|
-
dw as getKosMessageLogging,
|
|
5441
5229
|
getKosModel,
|
|
5442
|
-
|
|
5230
|
+
dC as getKosModelActivationState,
|
|
5443
5231
|
getKosModelSync,
|
|
5444
|
-
|
|
5232
|
+
dD as getKosModelType,
|
|
5445
5233
|
getKosServiceApi,
|
|
5446
|
-
|
|
5234
|
+
dE as getKosSessionKey,
|
|
5447
5235
|
getLastDayOfMonth,
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
dD as getMessageBody,
|
|
5236
|
+
dF as getLocalizationDescriptor,
|
|
5237
|
+
dG as getLogLevel,
|
|
5238
|
+
dH as getMessageBody,
|
|
5452
5239
|
getMonthsArray,
|
|
5453
|
-
|
|
5240
|
+
dI as getObservableCompanions,
|
|
5454
5241
|
getQueryParams,
|
|
5455
5242
|
getServiceResponse,
|
|
5456
|
-
|
|
5457
|
-
|
|
5243
|
+
dJ as getStartedApps,
|
|
5244
|
+
dK as getTranslations,
|
|
5458
5245
|
getYearsArray,
|
|
5459
|
-
|
|
5246
|
+
dL as handleServiceRequestError,
|
|
5460
5247
|
hasCachedResponse,
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5248
|
+
dM as hasDecimals,
|
|
5249
|
+
dN as hasHttpRouteHandlers,
|
|
5250
|
+
dO as hasKosProfile,
|
|
5464
5251
|
hasReadyHook,
|
|
5465
5252
|
hslStringToHex,
|
|
5466
5253
|
hslToHex,
|
|
5467
|
-
|
|
5254
|
+
dP as httpDelete,
|
|
5468
5255
|
initKosProvider,
|
|
5469
5256
|
initializeStateMachine,
|
|
5470
5257
|
injectStateMachineSupport,
|
|
5471
|
-
|
|
5258
|
+
dQ as isBoolean,
|
|
5472
5259
|
isDisposable,
|
|
5473
5260
|
isIndexableItem,
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5261
|
+
dR as isKosCompanionTypeFactory,
|
|
5262
|
+
dS as isKosDataModel,
|
|
5263
|
+
dT as isKosExecutionContext,
|
|
5264
|
+
dU as isKosLoggingEnabled,
|
|
5478
5265
|
isKosModel,
|
|
5479
|
-
|
|
5480
|
-
|
|
5266
|
+
dV as isKosModelContainer,
|
|
5267
|
+
dW as isKosModelReady,
|
|
5481
5268
|
isLeapYear,
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5269
|
+
dX as isLocalRefId,
|
|
5270
|
+
dY as isNumber,
|
|
5271
|
+
dZ as isPrintable,
|
|
5272
|
+
d_ as isTransportNotReadyError,
|
|
5486
5273
|
isTroubleAware,
|
|
5487
5274
|
isValidDate,
|
|
5488
|
-
|
|
5275
|
+
d$ as kosAction,
|
|
5489
5276
|
kosAutoEffect,
|
|
5490
5277
|
kosChild,
|
|
5491
5278
|
kosCompanion,
|
|
@@ -5496,89 +5283,88 @@ export {
|
|
|
5496
5283
|
kosContainerAware,
|
|
5497
5284
|
kosContainerIndexAware,
|
|
5498
5285
|
kosContext,
|
|
5499
|
-
|
|
5500
|
-
|
|
5286
|
+
e0 as kosDependency,
|
|
5287
|
+
e1 as kosEffect,
|
|
5501
5288
|
kosFetch,
|
|
5502
|
-
|
|
5503
|
-
|
|
5289
|
+
e2 as kosFuture,
|
|
5290
|
+
e3 as kosFutureAware,
|
|
5504
5291
|
kosIndexAware,
|
|
5505
|
-
kosLogger,
|
|
5506
5292
|
kosLoggerAware,
|
|
5507
5293
|
kosMixin,
|
|
5508
5294
|
kosModel,
|
|
5509
|
-
|
|
5295
|
+
e4 as kosModelEffect,
|
|
5510
5296
|
kosMultipleFutureAware,
|
|
5511
|
-
|
|
5297
|
+
e5 as kosObservable,
|
|
5512
5298
|
kosParentAware,
|
|
5513
5299
|
kosReference,
|
|
5514
|
-
|
|
5300
|
+
e6 as kosReloadAware,
|
|
5515
5301
|
kosServiceRequest$8 as kosServiceRequest,
|
|
5516
5302
|
kosStateBean,
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5303
|
+
e7 as kosStateEntry,
|
|
5304
|
+
e8 as kosStateExit,
|
|
5305
|
+
e9 as kosStateGuard,
|
|
5306
|
+
ea as kosStateMachine,
|
|
5521
5307
|
kosStateProp,
|
|
5522
5308
|
kosSubscribe,
|
|
5523
|
-
|
|
5309
|
+
eb as kosTopicHandler,
|
|
5524
5310
|
kosTroubleAware,
|
|
5525
5311
|
kosViewModel,
|
|
5526
|
-
|
|
5312
|
+
ec as kosWhen,
|
|
5527
5313
|
login,
|
|
5528
5314
|
makeAutoObservable2 as makeAutoObservable,
|
|
5529
|
-
makeCancellable,
|
|
5315
|
+
ed as makeCancellable,
|
|
5530
5316
|
makeObservable,
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5317
|
+
ee as mapConfigBeanModelToDto,
|
|
5318
|
+
ef as mapDataToModel,
|
|
5319
|
+
eg as mapDtoToConfigBeanModel,
|
|
5320
|
+
eh as mapDtoToFutureModel,
|
|
5321
|
+
ei as mapDtoToFutureOptions,
|
|
5322
|
+
ej as mapUpdateDtoToConfigBeanModel,
|
|
5537
5323
|
mergeLocalizationDescriptors,
|
|
5538
|
-
|
|
5539
|
-
|
|
5324
|
+
ek as modelEventTopicFactory,
|
|
5325
|
+
el as modelFactory,
|
|
5540
5326
|
modelHookCache,
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5327
|
+
em as modelTypeEventTopicFactory,
|
|
5328
|
+
en as modifyConfigBean,
|
|
5329
|
+
eo as modifyFuture,
|
|
5544
5330
|
pairedClientHeartbeat,
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5331
|
+
ep as parseWildcardSegment,
|
|
5332
|
+
eq as pipe,
|
|
5333
|
+
er as post,
|
|
5334
|
+
es as preloadKosModel,
|
|
5335
|
+
et as processId,
|
|
5550
5336
|
processMiddleware,
|
|
5551
|
-
|
|
5337
|
+
eu as put,
|
|
5552
5338
|
readModelHookEntry,
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5339
|
+
ev as registerCompanionModel,
|
|
5340
|
+
ew as registerCoreModels,
|
|
5341
|
+
ex as registerExtensionPoint,
|
|
5342
|
+
ey as registerHttpRoutes,
|
|
5343
|
+
ez as registerKosModel,
|
|
5344
|
+
eA as registerLegacyModel,
|
|
5345
|
+
eB as resetKosModel,
|
|
5560
5346
|
resetPassword,
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5347
|
+
eC as resolveBaseUrl,
|
|
5348
|
+
eD as resolveChild,
|
|
5349
|
+
eE as resolveContainerDeltas,
|
|
5350
|
+
eF as resolveItemListDeltas,
|
|
5351
|
+
eG as resolveKosCompanion,
|
|
5352
|
+
eH as resolveKosContext,
|
|
5353
|
+
eI as resolveKosProfiles,
|
|
5354
|
+
eJ as resolveListDeltas,
|
|
5355
|
+
eK as resolveServiceRequestParameters,
|
|
5356
|
+
eL as resolveServiceUrl,
|
|
5571
5357
|
resolveVariable,
|
|
5572
|
-
retryWithExponentialBackoff,
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5358
|
+
eM as retryWithExponentialBackoff,
|
|
5359
|
+
eN as sendAsyncIntent,
|
|
5360
|
+
eO as sendBroadcastMessage,
|
|
5361
|
+
eP as sendIntent,
|
|
5362
|
+
eQ as sendKosHttpMessageResponse,
|
|
5363
|
+
eR as sendKosMessage,
|
|
5578
5364
|
sendKosMessageResponse,
|
|
5579
|
-
sendRequest,
|
|
5580
|
-
|
|
5581
|
-
|
|
5365
|
+
eS as sendRequest,
|
|
5366
|
+
eT as sendStudioMessage,
|
|
5367
|
+
eU as sendStudioMessageRequest,
|
|
5582
5368
|
startPasswordReset,
|
|
5583
5369
|
stringComponentInsert,
|
|
5584
5370
|
studioAcceptOrgInvitation,
|
|
@@ -5586,10 +5372,10 @@ export {
|
|
|
5586
5372
|
studioResetPassword,
|
|
5587
5373
|
studioStartPasswordReset,
|
|
5588
5374
|
subscribeStore,
|
|
5589
|
-
syncPublish,
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5375
|
+
eV as syncPublish,
|
|
5376
|
+
eW as troubleByTypeReducer,
|
|
5377
|
+
eX as troubleDataFactory,
|
|
5378
|
+
eY as unloadKosModel,
|
|
5593
5379
|
updateCompanionModelRegistration,
|
|
5594
5380
|
updateModelRegistration,
|
|
5595
5381
|
updateRegion,
|
|
@@ -5653,13 +5439,13 @@ export {
|
|
|
5653
5439
|
useViewModel,
|
|
5654
5440
|
useYears,
|
|
5655
5441
|
useYearsOptions,
|
|
5656
|
-
uuid,
|
|
5442
|
+
eZ as uuid,
|
|
5657
5443
|
variableToHex,
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
waitForRequest,
|
|
5444
|
+
e_ as waitForAppToStart,
|
|
5445
|
+
e$ as waitForAppsToStart,
|
|
5446
|
+
f0 as waitForRequest,
|
|
5661
5447
|
whenReady,
|
|
5662
|
-
withCancellation,
|
|
5448
|
+
f1 as withCancellation,
|
|
5663
5449
|
withDevice,
|
|
5664
5450
|
withKosTime,
|
|
5665
5451
|
withNetworkInterfaceContainer,
|
|
@@ -5671,6 +5457,6 @@ export {
|
|
|
5671
5457
|
withTroubleContainer,
|
|
5672
5458
|
withUsbUpdateContainer,
|
|
5673
5459
|
wrapPromise,
|
|
5674
|
-
|
|
5460
|
+
f2 as wrapWithFutureLifecycle
|
|
5675
5461
|
};
|
|
5676
5462
|
//# sourceMappingURL=index.js.map
|