@player-ui/async-node-plugin 0.11.0--canary.614.21420 → 0.11.0-next.0

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.
@@ -4970,7 +4970,6 @@ var AsyncNodePlugin = function() {
4970
4970
  ]);
4971
4971
  return _Builder;
4972
4972
  }();
4973
- var templateSymbol = Symbol("template");
4974
4973
  var TemplatePlugin = /*#__PURE__*/ function() {
4975
4974
  function TemplatePlugin(options) {
4976
4975
  _class_call_check(this, TemplatePlugin);
@@ -5041,9 +5040,6 @@ var AsyncNodePlugin = function() {
5041
5040
  override: false,
5042
5041
  values: values
5043
5042
  };
5044
- if (node.placement !== void 0) {
5045
- result[templateSymbol] = node.placement;
5046
- }
5047
5043
  return result;
5048
5044
  }
5049
5045
  },
@@ -5057,38 +5053,6 @@ var AsyncNodePlugin = function() {
5057
5053
  }
5058
5054
  return node;
5059
5055
  });
5060
- parser.hooks.onCreateASTNode.tap("template-sort", function(node) {
5061
- var getTemplateSymbolValue = function getTemplateSymbolValue(node2) {
5062
- if (node2.type === "multi-node") {
5063
- return node2[templateSymbol];
5064
- } else if (node2.type === "template") {
5065
- return node2.placement;
5066
- }
5067
- return void 0;
5068
- };
5069
- if (node && (node.type === "view" || node.type === "asset") && Array.isArray(node.children)) {
5070
- node.children = node.children.sort(function(a, b) {
5071
- var pathsEqual = a.path.join() === b.path.join();
5072
- if (pathsEqual) {
5073
- var aPlacement = getTemplateSymbolValue(a.value);
5074
- var bPlacement = getTemplateSymbolValue(b.value);
5075
- if (aPlacement !== void 0 && bPlacement === void 0) {
5076
- return aPlacement === "prepend" ? -1 : 1;
5077
- } else if (bPlacement !== void 0 && aPlacement === void 0) {
5078
- return bPlacement === "prepend" ? 1 : -1;
5079
- } else if (aPlacement !== void 0 && bPlacement !== void 0) {
5080
- if (aPlacement === bPlacement) {
5081
- return 0;
5082
- }
5083
- return aPlacement === "prepend" ? -1 : 1;
5084
- }
5085
- return 0;
5086
- }
5087
- return 0;
5088
- });
5089
- }
5090
- return node;
5091
- });
5092
5056
  parser.hooks.parseNode.tap("template", function(obj, _nodeType, options, childOptions) {
5093
5057
  if (childOptions && hasTemplateKey(childOptions.key)) {
5094
5058
  return obj.map(function(template) {
@@ -5098,8 +5062,7 @@ var AsyncNodePlugin = function() {
5098
5062
  depth: (_options_templateDepth = options.templateDepth) !== null && _options_templateDepth !== void 0 ? _options_templateDepth : 0,
5099
5063
  data: template.data,
5100
5064
  template: template.value,
5101
- dynamic: (_template_dynamic = template.dynamic) !== null && _template_dynamic !== void 0 ? _template_dynamic : false,
5102
- placement: template.placement
5065
+ dynamic: (_template_dynamic = template.dynamic) !== null && _template_dynamic !== void 0 ? _template_dynamic : false
5103
5066
  }, template);
5104
5067
  if (!templateAST) return;
5105
5068
  if (templateAST.type === "multi-node") {