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