@kosdev-code/kos-ui-sdk 0.1.0-next.1053 → 0.1.0-next.1055
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/core/transport/mock/mock-config.d.ts.map +1 -1
- package/core/core/transport/mock/mock-types.d.ts +6 -0
- package/core/core/transport/mock/mock-types.d.ts.map +1 -1
- package/index.cjs +2 -2
- package/index.js +3 -3
- package/package.json +3 -3
- package/{software-info-registration-BhOmDkag.js → software-info-registration-B99UrnV0.js} +6 -3
- package/software-info-registration-B99UrnV0.js.map +1 -0
- package/{software-info-registration-JdgonknE.cjs → software-info-registration-C8Yg5Z-Y.cjs} +6 -3
- package/software-info-registration-C8Yg5Z-Y.cjs.map +1 -0
- package/testing.cjs +1 -1
- package/testing.js +1 -1
- package/software-info-registration-BhOmDkag.js.map +0 -1
- package/software-info-registration-JdgonknE.cjs.map +0 -1
|
@@ -8311,6 +8311,8 @@ const log$M = KosLog.createLogger({
|
|
|
8311
8311
|
});
|
|
8312
8312
|
const asWireValue = (value) => typeof value === "string" ? value : JSON.stringify(value);
|
|
8313
8313
|
const configTopic = (beanId) => `/kos/config/${beanId}`;
|
|
8314
|
+
const DEVICE_CONFIG_BASE = "/api/kos/config";
|
|
8315
|
+
const STUDIO_CONFIG_BASE = "/api/config";
|
|
8314
8316
|
const changeEnvelope = (props, previousValues = {}) => {
|
|
8315
8317
|
return {
|
|
8316
8318
|
changes: Object.entries(props).map(([attr, value]) => {
|
|
@@ -8334,9 +8336,10 @@ function createConfigFacade(registry) {
|
|
|
8334
8336
|
const inject = (beanId, injection) => {
|
|
8335
8337
|
const current = { ...injection.props };
|
|
8336
8338
|
const schema = injection.schema ?? {};
|
|
8339
|
+
const base = injection.studio ? STUDIO_CONFIG_BASE : DEVICE_CONFIG_BASE;
|
|
8337
8340
|
const transformerHandle = registry.transformResponse(
|
|
8338
8341
|
"GET",
|
|
8339
|
-
|
|
8342
|
+
`${base}/details/${beanId}/:depth`,
|
|
8340
8343
|
(body) => {
|
|
8341
8344
|
if (!body || typeof body !== "object") {
|
|
8342
8345
|
return void 0;
|
|
@@ -8364,7 +8367,7 @@ function createConfigFacade(registry) {
|
|
|
8364
8367
|
{ description: `config.inject ${beanId}` }
|
|
8365
8368
|
);
|
|
8366
8369
|
const routeHandle = registry.post(
|
|
8367
|
-
|
|
8370
|
+
`${base}/${beanId}`,
|
|
8368
8371
|
(req) => {
|
|
8369
8372
|
const requested = req.json();
|
|
8370
8373
|
if (!requested) {
|
|
@@ -25409,4 +25412,4 @@ exports.waitForRequest = waitForRequest;
|
|
|
25409
25412
|
exports.whenReady = whenReady;
|
|
25410
25413
|
exports.withCancellation = withCancellation;
|
|
25411
25414
|
exports.wrapWithFutureLifecycle = wrapWithFutureLifecycle;
|
|
25412
|
-
//# sourceMappingURL=software-info-registration-
|
|
25415
|
+
//# sourceMappingURL=software-info-registration-C8Yg5Z-Y.cjs.map
|