jamdesk 1.1.82 → 1.1.84

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamdesk",
3
- "version": "1.1.82",
3
+ "version": "1.1.84",
4
4
  "description": "CLI for Jamdesk — build, preview, and deploy documentation sites from MDX. Dev server with hot reload, 50+ components, OpenAPI support, AI search, and Mintlify migration",
5
5
  "keywords": [
6
6
  "jamdesk",
@@ -22,19 +22,13 @@ interface StepProps {
22
22
  titleSize?: TitleSize;
23
23
  }
24
24
 
25
- // Helper to check if a child is a Step component
26
- // MDX can wrap components so we check displayName or function name
27
25
  function isStepComponent(child: unknown): boolean {
28
26
  if (!isValidElement(child)) return false;
29
27
  const type = child.type as { displayName?: string; name?: string };
30
- const props = child.props as { title?: unknown; children?: unknown };
31
- // Check for Step by displayName, name, or if it has children (Step-like)
32
28
  return (
33
29
  type === Step ||
34
30
  type?.displayName === 'Step' ||
35
- type?.name === 'Step' ||
36
- // Fallback: if wrapped by MDX and has children, treat as Step
37
- props?.children !== undefined
31
+ type?.name === 'Step'
38
32
  );
39
33
  }
40
34
 
@@ -46,7 +40,7 @@ export const Steps = memo(function Steps({ children, titleSize = 'p' }: StepsPro
46
40
  let stepIndex = 0;
47
41
  return (
48
42
  <div className="relative my-8 space-y-0 not-prose">
49
- {childrenArray.map((child, index) => {
43
+ {childrenArray.map((child) => {
50
44
  if (isStepComponent(child)) {
51
45
  const childProps = (child as any).props as StepProps;
52
46
  const currentStepIndex = stepIndex;