@kosdev-code/kos-ui-sdk 3.0.6 → 3.0.7
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/registration/registration-manager.d.ts.map +1 -1
- package/index.cjs +12 -3
- package/index.cjs.map +1 -1
- package/index.js +12 -3
- package/index.js.map +1 -1
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts +1 -1
- package/models/models/kos-expression-evaluator/kos-expression-evaluator-model.d.ts.map +1 -1
- package/models/models/kos-expression-evaluator/types/index.d.ts +8 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registration-manager.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/registration/registration-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"registration-manager.d.ts","sourceRoot":"","sources":["../../../../../../packages/kos-ui-sdk/src/core/core/registration/registration-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAGtE,OAAO,KAAK,EACV,qBAAqB,EAErB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,WAAW,EAAE;YACX,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;YAC/C,aAAa,EAAE,MAAM,EAAE,CAAC;YACxB,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,qBAAqB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAC3D,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,4BAA4B,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;SAC7D,CAAC;K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V,CAAC,SAAS,qBAAqB,EAC9B,MAAM,MAAM,EACZ,cAAc,CAAC,KACd,kBAAkB,CAAC,CAAC,CA4GkB,CAAC;AAChD,eAAO,MAAM,gBAAgB,GApFtB,CAAC,QAAQ,CAAC,MAET,CAAC,SACG,4BAA4B,CAAC,GAAG,EAAE,GAAG,CAAC,GACtC,wBAAwB,CAAC,GAAG,EAAE,GAAG,CAAC,EAEtC,cAAc,CAAC,EACf,UAAU,OAAO,KAChB,kBAAkB,CAAC,CAAC,CA4EqC,CAAC;AACnE,eAAO,MAAM,sBAAsB,GAvB5B,CAAC,QAAQ,CAAC,MAET,YAAY,MAAM,EAClB,WAAW,qBAAqB,CAAC,GAAG,CAAC,KACpC,kBAAkB,CAAC,CAAC,CAmB+C,CAAC;AAC7E,eAAO,MAAM,eAAe,GApGrB,CAAC,QAAQ,CAAC,MACV,MAAM,MAAM,KAAG,kBAAkB,CAAC,CAAC,CAmG2B,CAAC"}
|
package/index.cjs
CHANGED
|
@@ -3006,7 +3006,7 @@ const RegistrationManager = {
|
|
|
3006
3006
|
}
|
|
3007
3007
|
if (KosCore.getInstance().isReady) {
|
|
3008
3008
|
if (!KosCore.getInstance().modelManager.registry.models[register.type]) {
|
|
3009
|
-
|
|
3009
|
+
KosLog.info(
|
|
3010
3010
|
`Model with type ${register.type} doesn't exist. Adding new registration`
|
|
3011
3011
|
);
|
|
3012
3012
|
KosCore.getInstance().modelManager.registry.models[register.type] = register.registration[register.type];
|
|
@@ -16877,7 +16877,7 @@ let KosExpressionEvaluatorModelImpl = class {
|
|
|
16877
16877
|
// Use ObservableData for results to handle dynamic properties properly
|
|
16878
16878
|
_results;
|
|
16879
16879
|
_contextRevision = 0;
|
|
16880
|
-
constructor(modelId,
|
|
16880
|
+
constructor(modelId, options, context) {
|
|
16881
16881
|
this.id = modelId;
|
|
16882
16882
|
this.logger = context.logger;
|
|
16883
16883
|
this._data = ObservableData();
|
|
@@ -16891,6 +16891,15 @@ let KosExpressionEvaluatorModelImpl = class {
|
|
|
16891
16891
|
if (typeof value === "object") return Object.keys(value).length === 0;
|
|
16892
16892
|
return false;
|
|
16893
16893
|
};
|
|
16894
|
+
for (const [name, fn] of Object.entries(options?.customFunctions ?? {})) {
|
|
16895
|
+
if (name in this.parser.functions) {
|
|
16896
|
+
this.logger.warn(
|
|
16897
|
+
`customFunctions.${name} ignored: a built-in with that name exists`
|
|
16898
|
+
);
|
|
16899
|
+
continue;
|
|
16900
|
+
}
|
|
16901
|
+
this.parser.functions[name] = fn;
|
|
16902
|
+
}
|
|
16894
16903
|
}
|
|
16895
16904
|
/**
|
|
16896
16905
|
* Get the current context data that expressions are evaluated against.
|
|
@@ -21546,7 +21555,7 @@ const getKosConnectionId = () => {
|
|
|
21546
21555
|
const params2 = getQueryParams();
|
|
21547
21556
|
const connId = params2?.connId;
|
|
21548
21557
|
const result = connId || window?.kosBridge?.("connId");
|
|
21549
|
-
KosLog.
|
|
21558
|
+
KosLog.debug(`getKosConnectionId: ${result}`);
|
|
21550
21559
|
return result;
|
|
21551
21560
|
};
|
|
21552
21561
|
const { URL: URL$4 } = resolveServiceUrl();
|