@player-ui/markdown-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.
@@ -8728,6 +8728,15 @@ var MarkdownPlugin = function() {
8728
8728
  ]);
8729
8729
  return Parser;
8730
8730
  }();
8731
+ function unpackAndPush(item, initial) {
8732
+ if (Array.isArray(item)) {
8733
+ item.forEach(function(i) {
8734
+ unpackAndPush(i, initial);
8735
+ });
8736
+ } else {
8737
+ initial.push(item);
8738
+ }
8739
+ }
8731
8740
  var withContext = function(model) {
8732
8741
  return {
8733
8742
  get: function(binding, options) {
@@ -8948,7 +8957,13 @@ var MarkdownPlugin = function() {
8948
8957
  var newValues = resolvedAST.values.map(function(mValue) {
8949
8958
  var mTree = _this.computeTree(mValue, rawParentToPassIn, dataChanges, cacheUpdate, resolveOptions, resolvedAST, prevASTMap);
8950
8959
  if (mTree.value !== void 0 && mTree.value !== null) {
8951
- childValue.push(mTree.value);
8960
+ if (mValue.type === "async" && mValue.flatten && mTree.value.asset && Array.isArray(mTree.value.asset.values)) {
8961
+ mTree.value.asset.values.forEach(function(v) {
8962
+ unpackAndPush(v, childValue);
8963
+ });
8964
+ } else {
8965
+ childValue.push(mTree.value);
8966
+ }
8952
8967
  }
8953
8968
  mTree.dependencies.forEach(function(bindingDep) {
8954
8969
  return childDependencies.add(bindingDep);