@next-core/brick-kit 2.155.0 → 2.155.2

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/dist/index.esm.js CHANGED
@@ -995,9 +995,18 @@ function doTransform(data, to, options) {
995
995
  Object.entries(to).map(_ref => {
996
996
  var [k, v] = _ref;
997
997
 
998
- if (Array.isArray(options === null || options === void 0 ? void 0 : options.trackingContextList) && isEvaluable(v)) {
999
- var contextNames = trackContext(v);
1000
- var stateNames = trackState(v);
998
+ if (Array.isArray(options === null || options === void 0 ? void 0 : options.trackingContextList) && (typeof v === "string" ? isEvaluable(v) : isPreEvaluated(v))) {
999
+ var raw;
1000
+
1001
+ if (typeof v === "string") {
1002
+ raw = v;
1003
+ } else {
1004
+ raw = getPreEvaluatedRaw(v);
1005
+ addDataToPreEvaluated(v, data);
1006
+ }
1007
+
1008
+ var contextNames = trackContext(raw);
1009
+ var stateNames = trackState(raw);
1001
1010
 
1002
1011
  if (contextNames || stateNames) {
1003
1012
  options.trackingContextList.push({
@@ -2371,6 +2380,12 @@ var symbolForContext = Symbol.for("pre.evaluated.context");
2371
2380
  function isPreEvaluated(raw) {
2372
2381
  return !!(raw !== null && raw !== void 0 && raw[symbolForRaw]);
2373
2382
  }
2383
+ function getPreEvaluatedRaw(pre) {
2384
+ return pre[symbolForRaw];
2385
+ }
2386
+ function addDataToPreEvaluated(pre, data) {
2387
+ pre[symbolForContext].data = data;
2388
+ }
2374
2389
  function shouldDismissRecursiveMarkingInjected(raw) {
2375
2390
  if (typeof raw === "string") {
2376
2391
  return shouldAllowRecursiveEvaluations(raw);
@@ -3077,9 +3092,10 @@ function computeRealProperties(properties, context, injectDeep, trackingContextL
3077
3092
  }
3078
3093
  }
3079
3094
 
3080
- if (Array.isArray(trackingContextList) && isEvaluable(propValue)) {
3081
- var contextNames = trackContext(propValue);
3082
- var stateNames = trackState(propValue);
3095
+ if (Array.isArray(trackingContextList) && (typeof propValue === "string" ? isEvaluable(propValue) : isPreEvaluated(propValue))) {
3096
+ var raw = typeof propValue === "string" ? propValue : getPreEvaluatedRaw(propValue);
3097
+ var contextNames = trackContext(raw);
3098
+ var stateNames = trackState(raw);
3083
3099
 
3084
3100
  if (contextNames || stateNames) {
3085
3101
  trackingContextList.push({