@specglass/theme-default 0.0.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.
Files changed (141) hide show
  1. package/dist/__tests__/code-tabs.test.d.ts +2 -0
  2. package/dist/__tests__/code-tabs.test.d.ts.map +1 -0
  3. package/dist/__tests__/code-tabs.test.js +219 -0
  4. package/dist/__tests__/code-tabs.test.js.map +1 -0
  5. package/dist/__tests__/copy-button.test.d.ts +2 -0
  6. package/dist/__tests__/copy-button.test.d.ts.map +1 -0
  7. package/dist/__tests__/copy-button.test.js +116 -0
  8. package/dist/__tests__/copy-button.test.js.map +1 -0
  9. package/dist/__tests__/search-palette.test.d.ts +2 -0
  10. package/dist/__tests__/search-palette.test.d.ts.map +1 -0
  11. package/dist/__tests__/search-palette.test.js +71 -0
  12. package/dist/__tests__/search-palette.test.js.map +1 -0
  13. package/dist/__tests__/shiki.test.d.ts +2 -0
  14. package/dist/__tests__/shiki.test.d.ts.map +1 -0
  15. package/dist/__tests__/shiki.test.js +37 -0
  16. package/dist/__tests__/shiki.test.js.map +1 -0
  17. package/dist/__tests__/theme-css.test.d.ts +2 -0
  18. package/dist/__tests__/theme-css.test.d.ts.map +1 -0
  19. package/dist/__tests__/theme-css.test.js +124 -0
  20. package/dist/__tests__/theme-css.test.js.map +1 -0
  21. package/dist/__tests__/theme-helpers.test.d.ts +2 -0
  22. package/dist/__tests__/theme-helpers.test.d.ts.map +1 -0
  23. package/dist/__tests__/theme-helpers.test.js +81 -0
  24. package/dist/__tests__/theme-helpers.test.js.map +1 -0
  25. package/dist/index.d.ts +63 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +13 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/islands/CodeTabs.d.ts +21 -0
  30. package/dist/islands/CodeTabs.d.ts.map +1 -0
  31. package/dist/islands/CodeTabs.js +125 -0
  32. package/dist/islands/CodeTabs.js.map +1 -0
  33. package/dist/islands/CopyButton.d.ts +16 -0
  34. package/dist/islands/CopyButton.d.ts.map +1 -0
  35. package/dist/islands/CopyButton.js +54 -0
  36. package/dist/islands/CopyButton.js.map +1 -0
  37. package/dist/islands/SearchPalette.d.ts +2 -0
  38. package/dist/islands/SearchPalette.d.ts.map +1 -0
  39. package/dist/islands/SearchPalette.js +109 -0
  40. package/dist/islands/SearchPalette.js.map +1 -0
  41. package/dist/islands/SearchResults.d.ts +2 -0
  42. package/dist/islands/SearchResults.d.ts.map +1 -0
  43. package/dist/islands/SearchResults.js +130 -0
  44. package/dist/islands/SearchResults.js.map +1 -0
  45. package/dist/islands/ThemeToggle.d.ts +12 -0
  46. package/dist/islands/ThemeToggle.d.ts.map +1 -0
  47. package/dist/islands/ThemeToggle.js +43 -0
  48. package/dist/islands/ThemeToggle.js.map +1 -0
  49. package/dist/layouts/DocPage.test.d.ts +2 -0
  50. package/dist/layouts/DocPage.test.d.ts.map +1 -0
  51. package/dist/layouts/DocPage.test.js +165 -0
  52. package/dist/layouts/DocPage.test.js.map +1 -0
  53. package/dist/lib/utils.d.ts +10 -0
  54. package/dist/lib/utils.d.ts.map +1 -0
  55. package/dist/lib/utils.js +13 -0
  56. package/dist/lib/utils.js.map +1 -0
  57. package/dist/scripts/code-block-enhancer.d.ts +16 -0
  58. package/dist/scripts/code-block-enhancer.d.ts.map +1 -0
  59. package/dist/scripts/code-block-enhancer.js +55 -0
  60. package/dist/scripts/code-block-enhancer.js.map +1 -0
  61. package/dist/ui/command.d.ts +87 -0
  62. package/dist/ui/command.d.ts.map +1 -0
  63. package/dist/ui/command.js +28 -0
  64. package/dist/ui/command.js.map +1 -0
  65. package/dist/ui/dialog.d.ts +20 -0
  66. package/dist/ui/dialog.d.ts.map +1 -0
  67. package/dist/ui/dialog.js +22 -0
  68. package/dist/ui/dialog.js.map +1 -0
  69. package/dist/utils/parse-highlight-range.d.ts +12 -0
  70. package/dist/utils/parse-highlight-range.d.ts.map +1 -0
  71. package/dist/utils/parse-highlight-range.js +40 -0
  72. package/dist/utils/parse-highlight-range.js.map +1 -0
  73. package/dist/utils/parse-highlight-range.test.d.ts +2 -0
  74. package/dist/utils/parse-highlight-range.test.d.ts.map +1 -0
  75. package/dist/utils/parse-highlight-range.test.js +32 -0
  76. package/dist/utils/parse-highlight-range.test.js.map +1 -0
  77. package/dist/utils/schema-renderer.d.ts +38 -0
  78. package/dist/utils/schema-renderer.d.ts.map +1 -0
  79. package/dist/utils/schema-renderer.js +115 -0
  80. package/dist/utils/schema-renderer.js.map +1 -0
  81. package/dist/utils/schema-renderer.test.d.ts +2 -0
  82. package/dist/utils/schema-renderer.test.d.ts.map +1 -0
  83. package/dist/utils/schema-renderer.test.js +219 -0
  84. package/dist/utils/schema-renderer.test.js.map +1 -0
  85. package/dist/utils/shiki.d.ts +20 -0
  86. package/dist/utils/shiki.d.ts.map +1 -0
  87. package/dist/utils/shiki.js +84 -0
  88. package/dist/utils/shiki.js.map +1 -0
  89. package/dist/utils/sidebar-helpers.d.ts +10 -0
  90. package/dist/utils/sidebar-helpers.d.ts.map +1 -0
  91. package/dist/utils/sidebar-helpers.js +14 -0
  92. package/dist/utils/sidebar-helpers.js.map +1 -0
  93. package/dist/utils/theme-css.d.ts +21 -0
  94. package/dist/utils/theme-css.d.ts.map +1 -0
  95. package/dist/utils/theme-css.js +77 -0
  96. package/dist/utils/theme-css.js.map +1 -0
  97. package/dist/utils/theme-helpers.d.ts +28 -0
  98. package/dist/utils/theme-helpers.d.ts.map +1 -0
  99. package/dist/utils/theme-helpers.js +55 -0
  100. package/dist/utils/theme-helpers.js.map +1 -0
  101. package/dist/utils/toc-helpers.d.ts +12 -0
  102. package/dist/utils/toc-helpers.d.ts.map +1 -0
  103. package/dist/utils/toc-helpers.js +9 -0
  104. package/dist/utils/toc-helpers.js.map +1 -0
  105. package/package.json +68 -0
  106. package/src/components/ApiAuth.astro +116 -0
  107. package/src/components/ApiEndpoint.astro +75 -0
  108. package/src/components/ApiNavigation.astro +110 -0
  109. package/src/components/ApiParameters.astro +204 -0
  110. package/src/components/ApiResponse.astro +144 -0
  111. package/src/components/Callout.astro +54 -0
  112. package/src/components/Card.astro +46 -0
  113. package/src/components/CodeBlock.astro +142 -0
  114. package/src/components/CodeBlockGroup.astro +196 -0
  115. package/src/components/CodeTabs.astro +53 -0
  116. package/src/components/Footer.astro +41 -0
  117. package/src/components/Header.astro +80 -0
  118. package/src/components/Sidebar.astro +117 -0
  119. package/src/components/TabItem.astro +24 -0
  120. package/src/components/TableOfContents.astro +111 -0
  121. package/src/components/Tabs.astro +185 -0
  122. package/src/islands/CodeTabs.tsx +212 -0
  123. package/src/islands/CopyButton.tsx +101 -0
  124. package/src/islands/SearchPalette.tsx +307 -0
  125. package/src/islands/SearchResults.tsx +301 -0
  126. package/src/islands/ThemeToggle.tsx +107 -0
  127. package/src/layouts/ApiReferencePage.astro +239 -0
  128. package/src/layouts/DocPage.astro +199 -0
  129. package/src/layouts/DocPage.test.ts +183 -0
  130. package/src/layouts/LandingPage.astro +143 -0
  131. package/src/lib/utils.ts +13 -0
  132. package/src/styles/global.css +241 -0
  133. package/src/utils/parse-highlight-range.test.ts +40 -0
  134. package/src/utils/parse-highlight-range.ts +41 -0
  135. package/src/utils/schema-renderer.test.ts +269 -0
  136. package/src/utils/schema-renderer.ts +152 -0
  137. package/src/utils/shiki.ts +99 -0
  138. package/src/utils/sidebar-helpers.ts +24 -0
  139. package/src/utils/theme-css.ts +101 -0
  140. package/src/utils/theme-helpers.ts +59 -0
  141. package/src/utils/toc-helpers.ts +11 -0
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { Command as CommandPrimitive } from "cmdk";
4
+ import { cn } from "../lib/utils";
5
+ import { Dialog, DialogContent, DialogTitle } from "./dialog";
6
+ const Command = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive, { ref: ref, className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-surface text-text", className), ...props })));
7
+ Command.displayName = CommandPrimitive.displayName;
8
+ const CommandDialog = ({ children, shouldFilter, dialogTitle = "Search", ...props }) => {
9
+ return (_jsx(Dialog, { ...props, children: _jsxs(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: [_jsx(DialogTitle, { className: "sr-only", children: dialogTitle }), _jsx(Command, { shouldFilter: shouldFilter, className: cn("[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-text-muted", "[&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2", "[&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5", "[&_[cmdk-input]]:h-12", "[&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3", "[&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5"), children: children })] }) }));
10
+ };
11
+ const CommandInput = React.forwardRef(({ className, ...props }, ref) => (_jsxs("div", { className: "flex items-center border-b border-border px-3", "cmdk-input-wrapper": "", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", className: "mr-2 h-4 w-4 shrink-0 opacity-50", children: [_jsx("circle", { cx: "11", cy: "11", r: "8" }), _jsx("path", { d: "m21 21-4.3-4.3" })] }), _jsx(CommandPrimitive.Input, { ref: ref, className: cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-text-muted disabled:cursor-not-allowed disabled:opacity-50", className), ...props })] })));
12
+ CommandInput.displayName = CommandPrimitive.Input.displayName;
13
+ const CommandList = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.List, { ref: ref, className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className), ...props })));
14
+ CommandList.displayName = CommandPrimitive.List.displayName;
15
+ const CommandEmpty = React.forwardRef((props, ref) => (_jsx(CommandPrimitive.Empty, { ref: ref, className: "py-6 text-center text-sm", ...props })));
16
+ CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
17
+ const CommandGroup = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Group, { ref: ref, className: cn("overflow-hidden p-1 text-text [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-text-muted", className), ...props })));
18
+ CommandGroup.displayName = CommandPrimitive.Group.displayName;
19
+ const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Separator, { ref: ref, className: cn("-mx-1 h-px bg-border", className), ...props })));
20
+ CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
21
+ const CommandItem = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Item, { ref: ref, className: cn("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-hover-bg data-[selected=true]:text-text data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className), ...props })));
22
+ CommandItem.displayName = CommandPrimitive.Item.displayName;
23
+ const CommandShortcut = ({ className, ...props }) => {
24
+ return (_jsx("span", { className: cn("ml-auto text-xs tracking-widest text-text-muted", className), ...props }));
25
+ };
26
+ CommandShortcut.displayName = "CommandShortcut";
27
+ export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
28
+ //# sourceMappingURL=command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/ui/command.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC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React from "react";
2
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
3
+ declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
+ declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
+ declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DialogHeader: {
10
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ declare const DialogFooter: {
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
+ declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
+ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
20
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAYjB,CAAC;AAGH,QAAA,MAAM,aAAa,8JAmCjB,CAAC;AAGH,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,WAAW,oKAYf,CAAC;AAGH,QAAA,MAAM,iBAAiB,8KASrB,CAAC;AAGH,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
4
+ import { cn } from "../lib/utils";
5
+ const Dialog = DialogPrimitive.Root;
6
+ const DialogTrigger = DialogPrimitive.Trigger;
7
+ const DialogPortal = DialogPrimitive.Portal;
8
+ const DialogClose = DialogPrimitive.Close;
9
+ const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Overlay, { ref: ref, className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props })));
10
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
11
+ const DialogContent = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { ref: ref, className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-surface p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className), ...props, children: [children, _jsxs(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-surface transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-hover-bg data-[state=open]:text-text-muted", children: [_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [_jsx("path", { d: "M18 6 6 18" }), _jsx("path", { d: "m6 6 12 12" })] }), _jsx("span", { className: "sr-only", children: "Close" })] })] })] })));
12
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
13
+ const DialogHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props }));
14
+ DialogHeader.displayName = "DialogHeader";
15
+ const DialogFooter = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
16
+ DialogFooter.displayName = "DialogFooter";
17
+ const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold leading-none tracking-tight", className), ...props })));
18
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
19
+ const DialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Description, { ref: ref, className: cn("text-sm text-text-muted", className), ...props })));
20
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
21
+ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
22
+ //# sourceMappingURL=dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../src/ui/dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAElC,MAAM,MAAM,GAAG,eAAe,CAAC,IAAI,CAAC;AAEpC,MAAM,aAAa,GAAG,eAAe,CAAC,OAAO,CAAC;AAE9C,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC;AAE5C,MAAM,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC;AAE1C,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAGpC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,eAAe,CAAC,OAAO,IACtB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,wJAAwJ,EACxJ,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAC;AACH,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC;AAEhE,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CAGpC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC5C,MAAC,YAAY,eACX,KAAC,aAAa,KAAG,EACjB,MAAC,eAAe,CAAC,OAAO,IACtB,GAAG,EAAE,GAAG,EACR,SAAS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,KAAK,GACT,CACH,CAAC,CAAC;AACH,WAAW,CAAC,WAAW,GAAG,eAAe,CAAC,KAAK,CAAC,WAAW,CAAC;AAE5D,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAGxC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,KAAC,eAAe,CAAC,WAAW,IAC1B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC,KAC/C,KAAK,GACT,CACH,CAAC,CAAC;AACH,iBAAiB,CAAC,WAAW,GAAG,eAAe,CAAC,WAAW,CAAC,WAAW,CAAC;AAExE,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Parses a highlight range string into an array of line numbers.
3
+ *
4
+ * Supports single numbers, ranges (e.g., "3-5"), and comma-separated
5
+ * combinations (e.g., "1,3-5,8").
6
+ *
7
+ * @example
8
+ * parseHighlightRange("1,3-5,8") // → [1, 3, 4, 5, 8]
9
+ * parseHighlightRange("") // → []
10
+ */
11
+ export declare function parseHighlightRange(range: string): number[];
12
+ //# sourceMappingURL=parse-highlight-range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-highlight-range.d.ts","sourceRoot":"","sources":["../../src/utils/parse-highlight-range.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CA8B3D"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Parses a highlight range string into an array of line numbers.
3
+ *
4
+ * Supports single numbers, ranges (e.g., "3-5"), and comma-separated
5
+ * combinations (e.g., "1,3-5,8").
6
+ *
7
+ * @example
8
+ * parseHighlightRange("1,3-5,8") // → [1, 3, 4, 5, 8]
9
+ * parseHighlightRange("") // → []
10
+ */
11
+ export function parseHighlightRange(range) {
12
+ const trimmed = range.trim();
13
+ if (!trimmed)
14
+ return [];
15
+ const result = [];
16
+ const parts = trimmed.split(",");
17
+ for (const part of parts) {
18
+ const segment = part.trim();
19
+ if (!segment)
20
+ continue;
21
+ if (segment.includes("-")) {
22
+ const [startStr, endStr] = segment.split("-");
23
+ const start = parseInt(startStr.trim(), 10);
24
+ const end = parseInt(endStr.trim(), 10);
25
+ if (isNaN(start) || isNaN(end))
26
+ continue;
27
+ for (let i = start; i <= end; i++) {
28
+ result.push(i);
29
+ }
30
+ }
31
+ else {
32
+ const num = parseInt(segment, 10);
33
+ if (!isNaN(num)) {
34
+ result.push(num);
35
+ }
36
+ }
37
+ }
38
+ return result;
39
+ }
40
+ //# sourceMappingURL=parse-highlight-range.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-highlight-range.js","sourceRoot":"","sources":["../../src/utils/parse-highlight-range.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAExB,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEjC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QAC5B,IAAI,CAAC,OAAO;YAAE,SAAS;QAEvB,IAAI,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1B,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC9C,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YAC5C,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;YAExC,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC;gBAAE,SAAS;YAEzC,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;gBAClC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACjB,CAAC;QACH,CAAC;aAAM,CAAC;YACN,MAAM,GAAG,GAAG,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YAClC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACnB,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=parse-highlight-range.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-highlight-range.test.d.ts","sourceRoot":"","sources":["../../src/utils/parse-highlight-range.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import { describe, it, expect } from "vitest";
2
+ import { parseHighlightRange } from "./parse-highlight-range.js";
3
+ describe("parseHighlightRange", () => {
4
+ it("parses a single number", () => {
5
+ expect(parseHighlightRange("3")).toEqual([3]);
6
+ });
7
+ it("parses a range", () => {
8
+ expect(parseHighlightRange("3-5")).toEqual([3, 4, 5]);
9
+ });
10
+ it("parses comma-separated numbers", () => {
11
+ expect(parseHighlightRange("1,3,8")).toEqual([1, 3, 8]);
12
+ });
13
+ it("parses mixed numbers and ranges", () => {
14
+ expect(parseHighlightRange("1,3-5,8")).toEqual([1, 3, 4, 5, 8]);
15
+ });
16
+ it("returns empty array for empty string", () => {
17
+ expect(parseHighlightRange("")).toEqual([]);
18
+ });
19
+ it("returns empty array for whitespace-only string", () => {
20
+ expect(parseHighlightRange(" ")).toEqual([]);
21
+ });
22
+ it("handles whitespace around numbers", () => {
23
+ expect(parseHighlightRange(" 1 , 3 - 5 , 8 ")).toEqual([1, 3, 4, 5, 8]);
24
+ });
25
+ it("handles a single range at start of line", () => {
26
+ expect(parseHighlightRange("1-3")).toEqual([1, 2, 3]);
27
+ });
28
+ it("skips invalid segments gracefully", () => {
29
+ expect(parseHighlightRange("1,abc,3")).toEqual([1, 3]);
30
+ });
31
+ });
32
+ //# sourceMappingURL=parse-highlight-range.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-highlight-range.test.js","sourceRoot":"","sources":["../../src/utils/parse-highlight-range.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;IACnC,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;QAChC,MAAM,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gBAAgB,EAAE,GAAG,EAAE;QACxB,MAAM,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC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3
+ * type strings and processing nested property structures.
4
+ *
5
+ * Used by ApiParameters.astro and ApiResponse.astro components.
6
+ *
7
+ * @module
8
+ */
9
+ import type { ApiSchema } from "@specglass/core";
10
+ /** A flattened property row for display in parameter/schema tables */
11
+ export interface SchemaProperty {
12
+ name: string;
13
+ type: string;
14
+ required: boolean;
15
+ description?: string;
16
+ depth: number;
17
+ enumValues?: string[];
18
+ }
19
+ /**
20
+ * Render an ApiSchema into a human-readable type string.
21
+ *
22
+ * Examples:
23
+ * - `{ type: "string" }` → `"string"`
24
+ * - `{ type: "string", format: "uuid" }` → `"string (uuid)"`
25
+ * - `{ type: "array", items: { type: "string" } }` → `"array<string>"`
26
+ * - `{ type: "object" }` → `"object"`
27
+ * - `{ ref: "#/components/schemas/Pet" }` → `"Pet"`
28
+ * - `{ enum: ["a", "b"] }` → `"string (enum)"`
29
+ * - `{ allOf: [...] }` → `"allOf<...>"`
30
+ * - `{ oneOf: [...] }` → `"oneOf<...>"`
31
+ */
32
+ export declare function renderTypeString(schema: ApiSchema | undefined): string;
33
+ /**
34
+ * Flatten an ApiSchema's nested properties into a list of SchemaProperty rows,
35
+ * suitable for rendering in a table. Only expands 1 level deep for MVP.
36
+ */
37
+ export declare function flattenSchemaProperties(schema: ApiSchema | undefined, requiredFields?: string[], maxDepth?: number): SchemaProperty[];
38
+ //# sourceMappingURL=schema-renderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-renderer.d.ts","sourceRoot":"","sources":["../../src/utils/schema-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,sEAAsE;AACtE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,CAyCtE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,SAAS,GAAG,SAAS,EAC7B,cAAc,CAAC,EAAE,MAAM,EAAE,EACzB,QAAQ,GAAE,MAAU,GACnB,cAAc,EAAE,CAkElB"}
@@ -0,0 +1,115 @@
1
+ /**
2
+ * Shared utility for rendering ApiSchema objects into displayable
3
+ * type strings and processing nested property structures.
4
+ *
5
+ * Used by ApiParameters.astro and ApiResponse.astro components.
6
+ *
7
+ * @module
8
+ */
9
+ /**
10
+ * Render an ApiSchema into a human-readable type string.
11
+ *
12
+ * Examples:
13
+ * - `{ type: "string" }` → `"string"`
14
+ * - `{ type: "string", format: "uuid" }` → `"string (uuid)"`
15
+ * - `{ type: "array", items: { type: "string" } }` → `"array<string>"`
16
+ * - `{ type: "object" }` → `"object"`
17
+ * - `{ ref: "#/components/schemas/Pet" }` → `"Pet"`
18
+ * - `{ enum: ["a", "b"] }` → `"string (enum)"`
19
+ * - `{ allOf: [...] }` → `"allOf<...>"`
20
+ * - `{ oneOf: [...] }` → `"oneOf<...>"`
21
+ */
22
+ export function renderTypeString(schema) {
23
+ if (!schema)
24
+ return "unknown";
25
+ // $ref display — extract the component name from the path
26
+ if (schema.ref) {
27
+ const parts = schema.ref.split("/");
28
+ return parts[parts.length - 1] || schema.ref;
29
+ }
30
+ // Composition types
31
+ if (schema.allOf && schema.allOf.length > 0) {
32
+ const inner = schema.allOf.map((s) => renderTypeString(s)).join(" & ");
33
+ return inner;
34
+ }
35
+ if (schema.oneOf && schema.oneOf.length > 0) {
36
+ const inner = schema.oneOf.map((s) => renderTypeString(s)).join(" | ");
37
+ return inner;
38
+ }
39
+ if (schema.anyOf && schema.anyOf.length > 0) {
40
+ const inner = schema.anyOf.map((s) => renderTypeString(s)).join(" | ");
41
+ return inner;
42
+ }
43
+ // Enum
44
+ if (schema.enum && schema.enum.length > 0) {
45
+ const baseType = schema.type || "string";
46
+ return `${baseType} (enum)`;
47
+ }
48
+ // Array
49
+ if (schema.type === "array" && schema.items) {
50
+ const itemType = renderTypeString(schema.items);
51
+ return `array<${itemType}>`;
52
+ }
53
+ // Nullable
54
+ const base = schema.type || "unknown";
55
+ const format = schema.format ? ` (${schema.format})` : "";
56
+ const nullable = schema.nullable ? " | null" : "";
57
+ return `${base}${format}${nullable}`;
58
+ }
59
+ /**
60
+ * Flatten an ApiSchema's nested properties into a list of SchemaProperty rows,
61
+ * suitable for rendering in a table. Only expands 1 level deep for MVP.
62
+ */
63
+ export function flattenSchemaProperties(schema, requiredFields, maxDepth = 1) {
64
+ if (!schema)
65
+ return [];
66
+ const properties = [];
67
+ const required = new Set(requiredFields ?? schema.required ?? []);
68
+ if (schema.properties) {
69
+ for (const [name, propSchema] of Object.entries(schema.properties)) {
70
+ properties.push({
71
+ name,
72
+ type: renderTypeString(propSchema),
73
+ required: required.has(name),
74
+ description: propSchema.description,
75
+ depth: 0,
76
+ enumValues: propSchema.enum?.map((v) => String(v)),
77
+ });
78
+ // Expand one level of nested object properties
79
+ if (maxDepth > 0 &&
80
+ propSchema.type === "object" &&
81
+ propSchema.properties) {
82
+ const nestedRequired = new Set(propSchema.required ?? []);
83
+ for (const [nestedName, nestedSchema] of Object.entries(propSchema.properties)) {
84
+ properties.push({
85
+ name: nestedName,
86
+ type: renderTypeString(nestedSchema),
87
+ required: nestedRequired.has(nestedName),
88
+ description: nestedSchema.description,
89
+ depth: 1,
90
+ enumValues: nestedSchema.enum?.map((v) => String(v)),
91
+ });
92
+ }
93
+ }
94
+ // Expand array item properties
95
+ if (maxDepth > 0 &&
96
+ propSchema.type === "array" &&
97
+ propSchema.items?.type === "object" &&
98
+ propSchema.items?.properties) {
99
+ const nestedRequired = new Set(propSchema.items.required ?? []);
100
+ for (const [nestedName, nestedSchema] of Object.entries(propSchema.items.properties)) {
101
+ properties.push({
102
+ name: nestedName,
103
+ type: renderTypeString(nestedSchema),
104
+ required: nestedRequired.has(nestedName),
105
+ description: nestedSchema.description,
106
+ depth: 1,
107
+ enumValues: nestedSchema.enum?.map((v) => String(v)),
108
+ });
109
+ }
110
+ }
111
+ }
112
+ }
113
+ return properties;
114
+ }
115
+ //# sourceMappingURL=schema-renderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-renderer.js","sourceRoot":"","sources":["../../src/utils/schema-renderer.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAcH;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAA6B;IAC5D,IAAI,CAAC,MAAM;QAAE,OAAO,SAAS,CAAC;IAE9B,0DAA0D;IAC1D,IAAI,MAAM,CAAC,GAAG,EAAE,CAAC;QACf,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACpC,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC;IAC/C,CAAC;IAED,oBAAoB;IACpB,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC5C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAA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UAAU,EACR,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;qBAC3C,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YAED,+BAA+B;YAC/B,IACE,QAAQ,GAAG,CAAC;gBACZ,UAAU,CAAC,IAAI,KAAK,OAAO;gBAC3B,UAAU,CAAC,KAAK,EAAE,IAAI,KAAK,QAAQ;gBACnC,UAAU,CAAC,KAAK,EAAE,UAAU,EAC5B,CAAC;gBACD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;gBAChE,KAAK,MAAM,CAAC,UAAU,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CACrD,UAAU,CAAC,KAAK,CAAC,UAAU,CAC5B,EAAE,CAAC;oBACF,UAAU,CAAC,IAAI,CAAC;wBACd,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,gBAAgB,CAAC,YAAY,CAAC;wBACpC,QAAQ,EAAE,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC;wBACxC,WAAW,EAAE,YAAY,CAAC,WAAW;wBACrC,KAAK,EAAE,CAAC;wBACR,UAAU,EACR,YAAY,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;qBAC3C,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=schema-renderer.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-renderer.test.d.ts","sourceRoot":"","sources":["../../src/utils/schema-renderer.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,219 @@
1
+ /**
2
+ * Tests for the schema-renderer utility.
3
+ * Covers renderTypeString() and flattenSchemaProperties().
4
+ */
5
+ import { describe, it, expect } from "vitest";
6
+ import { renderTypeString, flattenSchemaProperties } from "./schema-renderer";
7
+ describe("renderTypeString", () => {
8
+ it("returns 'unknown' for undefined schema", () => {
9
+ expect(renderTypeString(undefined)).toBe("unknown");
10
+ });
11
+ it("renders simple string type", () => {
12
+ expect(renderTypeString({ type: "string" })).toBe("string");
13
+ });
14
+ it("renders integer type", () => {
15
+ expect(renderTypeString({ type: "integer" })).toBe("integer");
16
+ });
17
+ it("renders boolean type", () => {
18
+ expect(renderTypeString({ type: "boolean" })).toBe("boolean");
19
+ });
20
+ it("renders type with format", () => {
21
+ expect(renderTypeString({ type: "string", format: "uuid" })).toBe("string (uuid)");
22
+ });
23
+ it("renders type with date-time format", () => {
24
+ expect(renderTypeString({ type: "string", format: "date-time" })).toBe("string (date-time)");
25
+ });
26
+ it("renders array type with items", () => {
27
+ expect(renderTypeString({ type: "array", items: { type: "string" } })).toBe("array<string>");
28
+ });
29
+ it("renders nested array type", () => {
30
+ expect(renderTypeString({
31
+ type: "array",
32
+ items: { type: "array", items: { type: "integer" } },
33
+ })).toBe("array<array<integer>>");
34
+ });
35
+ it("renders enum type", () => {
36
+ expect(renderTypeString({ type: "string", enum: ["active", "inactive"] })).toBe("string (enum)");
37
+ });
38
+ it("renders enum without explicit type defaults to string", () => {
39
+ expect(renderTypeString({ enum: ["a", "b", "c"] })).toBe("string (enum)");
40
+ });
41
+ it("renders $ref — extracts component name", () => {
42
+ expect(renderTypeString({ ref: "#/components/schemas/Pet" })).toBe("Pet");
43
+ });
44
+ it("renders $ref with deep path", () => {
45
+ expect(renderTypeString({ ref: "#/components/schemas/models/UserProfile" })).toBe("UserProfile");
46
+ });
47
+ it("renders nullable type", () => {
48
+ expect(renderTypeString({ type: "string", nullable: true })).toBe("string | null");
49
+ });
50
+ it("renders allOf composition", () => {
51
+ const schema = {
52
+ allOf: [{ ref: "#/components/schemas/Base" }, { type: "object" }],
53
+ };
54
+ expect(renderTypeString(schema)).toBe("Base & object");
55
+ });
56
+ it("renders oneOf composition", () => {
57
+ const schema = {
58
+ oneOf: [{ type: "string" }, { type: "integer" }],
59
+ };
60
+ expect(renderTypeString(schema)).toBe("string | integer");
61
+ });
62
+ it("renders anyOf composition", () => {
63
+ const schema = {
64
+ anyOf: [{ type: "string" }, { type: "boolean" }],
65
+ };
66
+ expect(renderTypeString(schema)).toBe("string | boolean");
67
+ });
68
+ it("renders object type", () => {
69
+ expect(renderTypeString({ type: "object" })).toBe("object");
70
+ });
71
+ it("handles schema with no type", () => {
72
+ expect(renderTypeString({})).toBe("unknown");
73
+ });
74
+ });
75
+ describe("flattenSchemaProperties", () => {
76
+ it("returns empty array for undefined schema", () => {
77
+ expect(flattenSchemaProperties(undefined)).toEqual([]);
78
+ });
79
+ it("returns empty array for schema without properties", () => {
80
+ expect(flattenSchemaProperties({ type: "string" })).toEqual([]);
81
+ });
82
+ it("flattens simple properties", () => {
83
+ const schema = {
84
+ type: "object",
85
+ properties: {
86
+ name: { type: "string", description: "User name" },
87
+ age: { type: "integer" },
88
+ },
89
+ required: ["name"],
90
+ };
91
+ const props = flattenSchemaProperties(schema);
92
+ expect(props).toHaveLength(2);
93
+ expect(props[0]).toEqual({
94
+ name: "name",
95
+ type: "string",
96
+ required: true,
97
+ description: "User name",
98
+ depth: 0,
99
+ enumValues: undefined,
100
+ });
101
+ expect(props[1]).toEqual({
102
+ name: "age",
103
+ type: "integer",
104
+ required: false,
105
+ description: undefined,
106
+ depth: 0,
107
+ enumValues: undefined,
108
+ });
109
+ });
110
+ it("marks required fields correctly", () => {
111
+ const schema = {
112
+ type: "object",
113
+ properties: {
114
+ id: { type: "integer" },
115
+ email: { type: "string" },
116
+ },
117
+ required: ["id", "email"],
118
+ };
119
+ const props = flattenSchemaProperties(schema);
120
+ expect(props.every((p) => p.required)).toBe(true);
121
+ });
122
+ it("accepts external requiredFields parameter", () => {
123
+ const schema = {
124
+ type: "object",
125
+ properties: {
126
+ foo: { type: "string" },
127
+ bar: { type: "string" },
128
+ },
129
+ };
130
+ const props = flattenSchemaProperties(schema, ["foo"]);
131
+ expect(props[0].required).toBe(true);
132
+ expect(props[1].required).toBe(false);
133
+ });
134
+ it("expands nested object properties to depth 1", () => {
135
+ const schema = {
136
+ type: "object",
137
+ properties: {
138
+ address: {
139
+ type: "object",
140
+ properties: {
141
+ street: { type: "string", description: "Street name" },
142
+ city: { type: "string" },
143
+ },
144
+ required: ["street"],
145
+ },
146
+ },
147
+ };
148
+ const props = flattenSchemaProperties(schema);
149
+ expect(props).toHaveLength(3);
150
+ expect(props[0].name).toBe("address");
151
+ expect(props[0].depth).toBe(0);
152
+ expect(props[1].name).toBe("street");
153
+ expect(props[1].depth).toBe(1);
154
+ expect(props[1].required).toBe(true);
155
+ expect(props[2].name).toBe("city");
156
+ expect(props[2].depth).toBe(1);
157
+ expect(props[2].required).toBe(false);
158
+ });
159
+ it("expands array item properties to depth 1", () => {
160
+ const schema = {
161
+ type: "object",
162
+ properties: {
163
+ items: {
164
+ type: "array",
165
+ items: {
166
+ type: "object",
167
+ properties: {
168
+ id: { type: "integer" },
169
+ label: { type: "string" },
170
+ },
171
+ required: ["id"],
172
+ },
173
+ },
174
+ },
175
+ };
176
+ const props = flattenSchemaProperties(schema);
177
+ expect(props).toHaveLength(3);
178
+ expect(props[0].name).toBe("items");
179
+ expect(props[0].depth).toBe(0);
180
+ expect(props[1].name).toBe("id");
181
+ expect(props[1].depth).toBe(1);
182
+ expect(props[1].required).toBe(true);
183
+ expect(props[2].name).toBe("label");
184
+ expect(props[2].depth).toBe(1);
185
+ });
186
+ it("includes enum values in flattened properties", () => {
187
+ const schema = {
188
+ type: "object",
189
+ properties: {
190
+ status: {
191
+ type: "string",
192
+ enum: ["active", "inactive", "pending"],
193
+ description: "Account status",
194
+ },
195
+ },
196
+ };
197
+ const props = flattenSchemaProperties(schema);
198
+ expect(props).toHaveLength(1);
199
+ expect(props[0].enumValues).toEqual(["active", "inactive", "pending"]);
200
+ expect(props[0].type).toBe("string (enum)");
201
+ });
202
+ it("respects maxDepth=0 — no expansion", () => {
203
+ const schema = {
204
+ type: "object",
205
+ properties: {
206
+ nested: {
207
+ type: "object",
208
+ properties: {
209
+ inner: { type: "string" },
210
+ },
211
+ },
212
+ },
213
+ };
214
+ const props = flattenSchemaProperties(schema, undefined, 0);
215
+ expect(props).toHaveLength(1);
216
+ expect(props[0].name).toBe("nested");
217
+ });
218
+ });
219
+ //# sourceMappingURL=schema-renderer.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-renderer.test.js","sourceRoot":"","sources":["../../src/utils/schema-renderer.test.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE9E,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,EAAE,CAAC,wCAAwC,EAAE,GAAG,EAAE;QAChD,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC9B,MAAM,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAC9B,MAAM,CAAC,gBAAgB,CAAC,EAAE,IAAI,EAAE,S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