@player-ui/common-expressions-plugin 0.10.4-next.2 → 0.10.4
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.
|
@@ -4510,6 +4510,15 @@ var CommonExpressionsPlugin = function() {
|
|
|
4510
4510
|
]);
|
|
4511
4511
|
return Parser;
|
|
4512
4512
|
}();
|
|
4513
|
+
function unpackAndPush(item, initial) {
|
|
4514
|
+
if (Array.isArray(item)) {
|
|
4515
|
+
item.forEach(function(i) {
|
|
4516
|
+
unpackAndPush(i, initial);
|
|
4517
|
+
});
|
|
4518
|
+
} else {
|
|
4519
|
+
initial.push(item);
|
|
4520
|
+
}
|
|
4521
|
+
}
|
|
4513
4522
|
var withContext = function(model) {
|
|
4514
4523
|
return {
|
|
4515
4524
|
get: function(binding, options) {
|
|
@@ -4730,7 +4739,13 @@ var CommonExpressionsPlugin = function() {
|
|
|
4730
4739
|
var newValues = resolvedAST.values.map(function(mValue) {
|
|
4731
4740
|
var mTree = _this.computeTree(mValue, rawParentToPassIn, dataChanges, cacheUpdate, resolveOptions, resolvedAST, prevASTMap);
|
|
4732
4741
|
if (mTree.value !== void 0 && mTree.value !== null) {
|
|
4733
|
-
|
|
4742
|
+
if (mValue.type === "async" && mValue.flatten && mTree.value.asset && Array.isArray(mTree.value.asset.values)) {
|
|
4743
|
+
mTree.value.asset.values.forEach(function(v) {
|
|
4744
|
+
unpackAndPush(v, childValue);
|
|
4745
|
+
});
|
|
4746
|
+
} else {
|
|
4747
|
+
childValue.push(mTree.value);
|
|
4748
|
+
}
|
|
4734
4749
|
}
|
|
4735
4750
|
mTree.dependencies.forEach(function(bindingDep) {
|
|
4736
4751
|
return childDependencies.add(bindingDep);
|