@player-ui/markdown-plugin 0.7.3-next.1 → 0.7.3-next.2

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.
@@ -2723,6 +2723,9 @@ class Parser {
2723
2723
  hasTemplateValues(obj, localKey) {
2724
2724
  return Object.hasOwnProperty.call(obj, "template") && Array.isArray(obj == null ? void 0 : obj.template) && obj.template.length && obj.template.find((tmpl) => tmpl.output === localKey);
2725
2725
  }
2726
+ hasSwitchKey(localKey) {
2727
+ return localKey === "staticSwitch";
2728
+ }
2726
2729
  parseObject(obj, type = NodeType.Value, options = { templateDepth: 0 }) {
2727
2730
  var _a;
2728
2731
  const nodeType = this.hooks.determineNodeType.call(obj);
@@ -2794,8 +2797,8 @@ class Parser {
2794
2797
  return __spreadProps$6(__spreadValues$8({}, rest), {
2795
2798
  children: [...children2, ...templateChildren]
2796
2799
  });
2797
- } else if (localValue && this.hooks.determineNodeType.call(localValue) === NodeType.Switch) {
2798
- const localSwitch = this.hooks.parseNode.call(localValue, NodeType.Value, options, NodeType.Switch);
2800
+ } else if (localValue && this.hooks.determineNodeType.call(localValue) === NodeType.Switch || this.hasSwitchKey(localKey)) {
2801
+ const localSwitch = this.hooks.parseNode.call(this.hasSwitchKey(localKey) ? { [localKey]: localValue } : localValue, NodeType.Value, options, NodeType.Switch);
2799
2802
  if (localSwitch && localSwitch.type === NodeType.Value && ((_b = localSwitch.children) == null ? void 0 : _b.length) === 1 && localSwitch.value === void 0) {
2800
2803
  const firstChild = localSwitch.children[0];
2801
2804
  return __spreadProps$6(__spreadValues$8({}, rest), {
@@ -5136,8 +5139,8 @@ var __async = (__this, __arguments, generator) => {
5136
5139
  step((generator = generator.apply(__this, __arguments)).next());
5137
5140
  });
5138
5141
  };
5139
- const PLAYER_VERSION = "0.7.3-next.1";
5140
- const COMMIT = "039b6dca50312468c874798b7074b821cfe3d1cd";
5142
+ const PLAYER_VERSION = "0.7.3-next.2";
5143
+ const COMMIT = "f087f75adc2e368d0b6a30f2bac025f0bd6c6a30";
5141
5144
  const _Player = class {
5142
5145
  constructor(config) {
5143
5146
  this.logger = new TapableLogger();