@player-ui/player 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.
@@ -2947,7 +2947,13 @@ var Resolver = class {
2947
2947
  prevASTMap
2948
2948
  );
2949
2949
  if (mTree.value !== void 0 && mTree.value !== null) {
2950
- childValue.push(mTree.value);
2950
+ if (mValue.type === "async" /* Async */ && mValue.flatten && mTree.value.asset && Array.isArray(mTree.value.asset.values)) {
2951
+ mTree.value.asset.values.forEach((v) => {
2952
+ unpackAndPush(v, childValue);
2953
+ });
2954
+ } else {
2955
+ childValue.push(mTree.value);
2956
+ }
2951
2957
  }
2952
2958
  mTree.dependencies.forEach(
2953
2959
  (bindingDep) => childDependencies.add(bindingDep)
@@ -3086,7 +3092,7 @@ var ViewInstance = class {
3086
3092
  };
3087
3093
 
3088
3094
  // ../../../../../../../../../../execroot/_main/bazel-out/k8-fastbuild/bin/core/player/src/view/builder/index.ts
3089
- var Builder = class {
3095
+ var Builder = class _Builder {
3090
3096
  /**
3091
3097
  * Creates an asset node
3092
3098
  *
@@ -3098,6 +3104,11 @@ var Builder = class {
3098
3104
  value
3099
3105
  };
3100
3106
  }
3107
+ static assetWrapper(value) {
3108
+ const valueNode = _Builder.value();
3109
+ _Builder.addChild(valueNode, "asset", value);
3110
+ return valueNode;
3111
+ }
3101
3112
  /**
3102
3113
  * Creates a value node
3103
3114
  *
@@ -3113,7 +3124,7 @@ var Builder = class {
3113
3124
  * Creates a multiNode and associates the multiNode as the parent
3114
3125
  * of all the value nodes
3115
3126
  *
3116
- * @param values - the value or applicability nodes to put in the multinode
3127
+ * @param values - the value, applicability or async nodes to put in the multinode
3117
3128
  */
3118
3129
  static multiNode(...values) {
3119
3130
  const m = {
@@ -3126,6 +3137,24 @@ var Builder = class {
3126
3137
  });
3127
3138
  return m;
3128
3139
  }
3140
+ /**
3141
+ * Creates an async node
3142
+ *
3143
+ * @param id - the id of async node. It should be identical for each async node
3144
+ */
3145
+ static asyncNode(id, flatten2 = true) {
3146
+ return {
3147
+ id,
3148
+ type: "async" /* Async */,
3149
+ flatten: flatten2,
3150
+ value: {
3151
+ type: "value" /* Value */,
3152
+ value: {
3153
+ id
3154
+ }
3155
+ }
3156
+ };
3157
+ }
3129
3158
  /**
3130
3159
  * Adds a child node to a node
3131
3160
  *