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