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