@next-core/brick-kit 2.155.0 → 2.155.1

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,10 @@
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 = typeof v === "string" ? v : getPreEvaluatedRaw(v);
999
+ var contextNames = brickUtils.trackContext(raw);
1000
+ var stateNames = brickUtils.trackState(raw);
1000
1001
 
1001
1002
  if (contextNames || stateNames) {
1002
1003
  options.trackingContextList.push({
@@ -2370,6 +2371,9 @@
2370
2371
  function isPreEvaluated(raw) {
2371
2372
  return !!(raw !== null && raw !== void 0 && raw[symbolForRaw]);
2372
2373
  }
2374
+ function getPreEvaluatedRaw(pre) {
2375
+ return pre[symbolForRaw];
2376
+ }
2373
2377
  function shouldDismissRecursiveMarkingInjected(raw) {
2374
2378
  if (typeof raw === "string") {
2375
2379
  return brickUtils.shouldAllowRecursiveEvaluations(raw);
@@ -3076,9 +3080,10 @@
3076
3080
  }
3077
3081
  }
3078
3082
 
3079
- if (Array.isArray(trackingContextList) && brickUtils.isEvaluable(propValue)) {
3080
- var contextNames = brickUtils.trackContext(propValue);
3081
- var stateNames = brickUtils.trackState(propValue);
3083
+ if (Array.isArray(trackingContextList) && (typeof propValue === "string" ? brickUtils.isEvaluable(propValue) : isPreEvaluated(propValue))) {
3084
+ var raw = typeof propValue === "string" ? propValue : getPreEvaluatedRaw(propValue);
3085
+ var contextNames = brickUtils.trackContext(raw);
3086
+ var stateNames = brickUtils.trackState(raw);
3082
3087
 
3083
3088
  if (contextNames || stateNames) {
3084
3089
  trackingContextList.push({