@brillout/docpress 0.16.40 → 0.16.41

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.
@@ -68,7 +68,14 @@ function generateChoiceGroupCode(choiceNodes: ChoiceNode[], parent: Parent, hide
68
68
  lvl = parentLvl + 1
69
69
 
70
70
  data.customDataParentChoiceGroup = parent.data.customDataParentChoiceGroup
71
+ /*
72
+ // Keep the marker on the parent: a single choice can contain several toggleable code blocks
73
+ // (e.g. two TypeScript blocks, or a TypeScript block + an `npm` command). Each of them spawns
74
+ // its own nested choice group and must inherit the same parent level. Clearing the marker here
75
+ // would make every group after the first resolve to `lvl: 0`, wrapping it in its own
76
+ // `CustomSelectsContainer` — which then renders without `choiceGroupAll` and crashes.
71
77
  parent.data = undefined
78
+ */
72
79
  }
73
80
 
74
81
  for (const choiceNode of mergedChoiceNodes) {
@@ -50,7 +50,14 @@ function generateChoiceGroupCode(choiceNodes, parent, hide = false) {
50
50
  const { lvl: parentLvl } = parent.data.customDataParentChoiceGroup;
51
51
  lvl = parentLvl + 1;
52
52
  data.customDataParentChoiceGroup = parent.data.customDataParentChoiceGroup;
53
- parent.data = undefined;
53
+ /*
54
+ // Keep the marker on the parent: a single choice can contain several toggleable code blocks
55
+ // (e.g. two TypeScript blocks, or a TypeScript block + an `npm` command). Each of them spawns
56
+ // its own nested choice group and must inherit the same parent level. Clearing the marker here
57
+ // would make every group after the first resolve to `lvl: 0`, wrapping it in its own
58
+ // `CustomSelectsContainer` — which then renders without `choiceGroupAll` and crashes.
59
+ parent.data = undefined
60
+ */
54
61
  }
55
62
  for (const choiceNode of mergedChoiceNodes) {
56
63
  const choiceChildren = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.16.40",
3
+ "version": "0.16.41",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",