@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.
- package/dist/index.bundle.js +11 -6
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +11 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/types/internal/evaluate.d.ts +1 -0
- package/dist/types/internal/evaluate.d.ts.map +1 -1
- package/dist/types/internal/setProperties.d.ts.map +1 -1
- package/dist/types/transformProperties.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.bundle.js
CHANGED
|
@@ -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
|
|
999
|
-
var
|
|
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
|
|
3081
|
-
var
|
|
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({
|