@brillout/docpress 0.16.31 → 0.16.32

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.
@@ -25,7 +25,7 @@ const CHOICES_BUILT_IN: Record<string, { choices: string[]; default: string }> =
25
25
  }
26
26
 
27
27
  function generateChoiceGroupCode(choiceNodes: ChoiceNode[], parent: Parent, hide: boolean = false): MdxJsxFlowElement {
28
- let lvl: number = parent.type === 'mdxJsxFlowElement' ? 1 : 0
28
+ let lvl: number = 0
29
29
 
30
30
  const vikeConfig = getVikeConfig()
31
31
  const choices = choiceNodes.map((choiceNode) => choiceNode.choiceValue)
@@ -96,7 +96,7 @@ function generateChoiceGroupCode(choiceNodes: ChoiceNode[], parent: Parent, hide
96
96
  },
97
97
  })
98
98
 
99
- lvl += parentLvl
99
+ lvl = parentLvl + 1
100
100
  parent.data.customDataParentChoiceGroup = undefined
101
101
  }
102
102
 
@@ -13,7 +13,7 @@ const CHOICES_BUILT_IN = {
13
13
  },
14
14
  };
15
15
  function generateChoiceGroupCode(choiceNodes, parent, hide = false) {
16
- let lvl = parent.type === 'mdxJsxFlowElement' ? 1 : 0;
16
+ let lvl = 0;
17
17
  const vikeConfig = getVikeConfig();
18
18
  const choices = choiceNodes.map((choiceNode) => choiceNode.choiceValue);
19
19
  const choiceGroup = findChoiceGroup(vikeConfig, choices);
@@ -76,7 +76,7 @@ function generateChoiceGroupCode(choiceNodes, parent, hide = false) {
76
76
  },
77
77
  },
78
78
  });
79
- lvl += parentLvl;
79
+ lvl = parentLvl + 1;
80
80
  parent.data.customDataParentChoiceGroup = undefined;
81
81
  }
82
82
  attributes.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.16.31",
3
+ "version": "0.16.32",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",