rspress-plugin-api-extractor 0.19.5 → 0.19.7

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 (89) hide show
  1. package/BuildEnv.js +1 -2
  2. package/build-program.js +1 -2
  3. package/build-stages.js +1 -2
  4. package/category-resolver.js +1 -2
  5. package/config-helpers.js +1 -2
  6. package/config-utils.js +1 -2
  7. package/emit/mdx.js +1 -2
  8. package/emit/meta.js +1 -2
  9. package/errors.js +1 -2
  10. package/hide-cut-transformer.js +1 -2
  11. package/index.d.ts +0 -10
  12. package/layers/AppLayer.js +1 -2
  13. package/layers/api-results.js +1 -2
  14. package/layers/build-metrics.js +1 -2
  15. package/layers/config-resolution.js +1 -2
  16. package/layers/external-types.js +1 -2
  17. package/layers/observability.js +1 -2
  18. package/layers/type-environment.js +1 -2
  19. package/layers/xdg.js +1 -2
  20. package/llms-program.js +1 -2
  21. package/markdown/helpers.js +1 -2
  22. package/markdown/shiki-utils.js +1 -2
  23. package/model-loader.js +1 -2
  24. package/observability/EventBus.js +1 -2
  25. package/observability/events.js +1 -2
  26. package/observability/heartbeat.js +1 -2
  27. package/observability/metric-report.js +1 -2
  28. package/observability/sinks/console-sink.js +1 -2
  29. package/observability/sinks/issues-sink.js +1 -2
  30. package/observability/sinks/metrics-sink.js +1 -2
  31. package/observability/sinks/render-sink.js +1 -2
  32. package/observability/sinks/trace-sink.js +1 -2
  33. package/observability/spans.js +1 -2
  34. package/observability/sync-emitter.js +1 -2
  35. package/package.json +27 -27
  36. package/path-derivation.js +1 -2
  37. package/plugin.js +1 -2
  38. package/prettier-formatter.js +1 -2
  39. package/remark-api-codeblocks.js +1 -2
  40. package/remark-with-api.js +1 -2
  41. package/runtime/components/ApiExample/index.js +1 -2
  42. package/runtime/components/ApiLlmsPackageActions/index.js +1 -2
  43. package/runtime/components/ApiLlmsViewOptions/index.js +1 -2
  44. package/runtime/components/ApiMember/index.js +1 -2
  45. package/runtime/components/ApiSignature/index.js +1 -2
  46. package/runtime/components/EnumMembersTable/index.js +1 -2
  47. package/runtime/components/EnumMembersTable/index.module.js +1 -2
  48. package/runtime/components/ExampleBlock/index.js +1 -2
  49. package/runtime/components/ExampleBlock/index.module.js +1 -2
  50. package/runtime/components/MarkdownContent/index.js +1 -2
  51. package/runtime/components/MemberSignature/index.js +1 -2
  52. package/runtime/components/MemberSignature/index.module.js +1 -2
  53. package/runtime/components/ParametersTable/index.js +1 -2
  54. package/runtime/components/ParametersTable/index.module.js +1 -2
  55. package/runtime/components/SignatureBlock/index.js +1 -2
  56. package/runtime/components/SignatureBlock/index.module.js +1 -2
  57. package/runtime/components/SignatureCode/index.js +1 -2
  58. package/runtime/components/SignatureCode/index.module.js +1 -2
  59. package/runtime/components/SignatureToolbar/index.js +1 -2
  60. package/runtime/components/SignatureToolbar/index.module.js +1 -2
  61. package/runtime/components/buttons/ButtonGroup.js +1 -2
  62. package/runtime/components/buttons/CopyCodeButton.js +1 -2
  63. package/runtime/components/buttons/WrapSignatureButton.js +1 -2
  64. package/runtime/components/buttons/index.module.js +1 -2
  65. package/runtime/components/icons/CheckIcon/index.js +1 -2
  66. package/runtime/components/icons/CopyIcon/index.js +1 -2
  67. package/runtime/components/icons/UnwrapIcon/index.js +1 -2
  68. package/runtime/components/icons/WrapIcon/index.js +1 -2
  69. package/runtime/hooks/useWrapToggle.js +1 -2
  70. package/runtime/index.d.ts +0 -10
  71. package/runtime/utils/decode-hast.js +1 -2
  72. package/runtime/utils/hast-renderer.js +1 -2
  73. package/runtime/utils/strip-tags.js +1 -2
  74. package/schemas/config.js +1 -2
  75. package/schemas/observability.js +1 -2
  76. package/schemas/performance.js +1 -2
  77. package/serve.js +1 -2
  78. package/services/ConfigService.js +1 -2
  79. package/services/HighlighterService.js +1 -2
  80. package/services/OgService.js +1 -2
  81. package/services/PluginConfig.js +1 -2
  82. package/services/TwoslashCacheService.js +1 -2
  83. package/services/TwoslashEnvironments.js +1 -2
  84. package/services/TypeRegistryService.js +1 -2
  85. package/shiki-transformer.js +1 -2
  86. package/twoslash-access.js +1 -2
  87. package/twoslash-timing-wrapper.js +1 -2
  88. package/twoslash-transformer.js +1 -2
  89. package/vfs-registry.js +1 -2
package/plugin.js CHANGED
@@ -30,7 +30,7 @@ import { fileURLToPath } from "node:url";
30
30
  import { normalizeBaseRoute, unscopedName } from "@tsdoctor/pages";
31
31
  import { Effect, FileSystem, ManagedRuntime, Option, Ref, Schema } from "effect";
32
32
 
33
- //#region src/plugin.ts
33
+ // src/plugin.ts
34
34
  /* v8 ignore start -- RSPress plugin adapter, requires RSPress runtime */
35
35
  /**
36
36
  * Best-effort read of the consuming site's `package.json` `name`, used to tag
@@ -317,5 +317,4 @@ const ApiExtractorPlugin = Object.assign(ApiExtractorPluginImpl, {
317
317
  apis: { fromDir: fromParentDir }
318
318
  });
319
319
 
320
- //#endregion
321
320
  export { ApiExtractorPlugin };
@@ -3,7 +3,7 @@ import { emitSync, syncBuildId } from "./observability/sync-emitter.js";
3
3
  import { formatExampleCode } from "@tsdoctor/pages";
4
4
  import { Effect, Result } from "effect";
5
5
 
6
- //#region src/prettier-formatter.ts
6
+ // src/prettier-formatter.ts
7
7
  /* v8 ignore start -- Prettier integration wrapper, tested via page generator integration tests */
8
8
  /**
9
9
  * Format code using Prettier.
@@ -42,5 +42,4 @@ async function formatCode(code, language) {
42
42
  };
43
43
  }
44
44
 
45
- //#endregion
46
45
  export { formatCode };
@@ -6,7 +6,7 @@ import { setTwoslashFile } from "./twoslash-access.js";
6
6
  import { createTwoslashTimingWrapper } from "./twoslash-timing-wrapper.js";
7
7
  import { visit } from "unist-util-visit";
8
8
 
9
- //#region src/remark-api-codeblocks.ts
9
+ // src/remark-api-codeblocks.ts
10
10
  /**
11
11
  * Create an MDX JSX attribute value expression with proper estree AST.
12
12
  * This ensures the value is properly serialized as a JavaScript string literal.
@@ -163,5 +163,4 @@ const remarkApiCodeblocks = () => {
163
163
  };
164
164
  };
165
165
 
166
- //#endregion
167
166
  export { remarkApiCodeblocks };
@@ -9,7 +9,7 @@ import { stripTwoslashDirectives } from "@tsdoctor/pages";
9
9
  import { codeToHast } from "shiki";
10
10
  import { visit } from "unist-util-visit";
11
11
 
12
- //#region src/remark-with-api.ts
12
+ // src/remark-with-api.ts
13
13
  /* v8 ignore start -- remark plugin, requires MDX compilation context */
14
14
  /**
15
15
  * Supported languages for with-api code blocks
@@ -181,5 +181,4 @@ const remarkWithApi = (options) => {
181
181
  };
182
182
  };
183
183
 
184
- //#endregion
185
184
  export { remarkWithApi };
@@ -3,7 +3,7 @@ import { ExampleBlock } from "../ExampleBlock/index.js";
3
3
  import { createElement, useMemo } from "react";
4
4
  import { Fragment, jsx } from "react/jsx-runtime";
5
5
 
6
- //#region src/runtime/components/ApiExample/index.tsx
6
+ // src/runtime/components/ApiExample/index.tsx
7
7
  /**
8
8
  * Renders an example code block in generated API documentation pages.
9
9
  *
@@ -29,5 +29,4 @@ ${code.trim()}
29
29
  }) });
30
30
  }
31
31
 
32
- //#endregion
33
32
  export { ApiExample, ApiExample as default };
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { usePage, useSite } from "@rspress/core/runtime";
4
4
  import { createPortal } from "react-dom";
5
5
 
6
- //#region src/runtime/components/ApiLlmsPackageActions/index.tsx
6
+ // src/runtime/components/ApiLlmsPackageActions/index.tsx
7
7
  function resolveUrl(urlPath) {
8
8
  if (typeof window === "undefined") return urlPath;
9
9
  if (urlPath.startsWith("http://") || urlPath.startsWith("https://")) return urlPath;
@@ -273,5 +273,4 @@ function ClaudeIcon() {
273
273
  });
274
274
  }
275
275
 
276
- //#endregion
277
276
  export { ApiLlmsPackageActions, ApiLlmsPackageActions as default };
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useI18n, usePage, useSite } from "@rspress/core/runtime";
4
4
  import { useMdUrl } from "@rspress/core/theme";
5
5
 
6
- //#region src/runtime/components/ApiLlmsViewOptions/index.tsx
6
+ // src/runtime/components/ApiLlmsViewOptions/index.tsx
7
7
  /**
8
8
  * Custom LlmsViewOptions that replaces RSPress's default via resolve.alias.
9
9
  *
@@ -290,5 +290,4 @@ function MenuItem({ item, onClose }) {
290
290
  });
291
291
  }
292
292
 
293
- //#endregion
294
293
  export { LlmsViewOptions };
@@ -3,7 +3,7 @@ import { MemberSignature } from "../MemberSignature/index.js";
3
3
  import { createElement, useMemo } from "react";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
- //#region src/runtime/components/ApiMember/index.tsx
6
+ // src/runtime/components/ApiMember/index.tsx
7
7
  /**
8
8
  * Renders an individual class or interface member signature block.
9
9
  *
@@ -47,5 +47,4 @@ ${code.trim()}
47
47
  ] });
48
48
  }
49
49
 
50
- //#endregion
51
50
  export { ApiMember, ApiMember as default };
@@ -3,7 +3,7 @@ import { SignatureBlock } from "../SignatureBlock/index.js";
3
3
  import { createElement, useMemo } from "react";
4
4
  import { Fragment, jsx } from "react/jsx-runtime";
5
5
 
6
- //#region src/runtime/components/ApiSignature/index.tsx
6
+ // src/runtime/components/ApiSignature/index.tsx
7
7
  /**
8
8
  * Renders a full API type signature block.
9
9
  *
@@ -30,5 +30,4 @@ ${code.trim()}
30
30
  }) });
31
31
  }
32
32
 
33
- //#endregion
34
33
  export { ApiSignature, ApiSignature as default };
@@ -3,7 +3,7 @@ import { stripTags } from "../../utils/strip-tags.js";
3
3
  import index_module_default from "./index.module.js";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
- //#region src/runtime/components/EnumMembersTable/index.tsx
6
+ // src/runtime/components/EnumMembersTable/index.tsx
7
7
  /**
8
8
  * Renders a table of enum members with their values and descriptions.
9
9
  *
@@ -40,5 +40,4 @@ const EnumMembersTable = ({ members }) => {
40
40
  });
41
41
  };
42
42
 
43
- //#endregion
44
43
  export { EnumMembersTable, EnumMembersTable as default };
@@ -1,10 +1,9 @@
1
1
  import './index.css';
2
- //#region src/runtime/components/EnumMembersTable/index.module.css
2
+ // src/runtime/components/EnumMembersTable/index.module.css
3
3
  var index_module_default = {
4
4
  "rpDark": "i1orWq_rp-dark",
5
5
  "scroll": "i1orWq_scroll",
6
6
  "table": "i1orWq_table"
7
7
  };
8
8
 
9
- //#endregion
10
9
  export { index_module_default as default };
@@ -7,7 +7,7 @@ import { SignatureToolbar } from "../SignatureToolbar/index.js";
7
7
  import index_module_default from "./index.module.js";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
 
10
- //#region src/runtime/components/ExampleBlock/index.tsx
10
+ // src/runtime/components/ExampleBlock/index.tsx
11
11
  /**
12
12
  * Code block for examples — displays syntax-highlighted code without a heading.
13
13
  * Similar to {@link SignatureBlock} but without the "Signature" header.
@@ -29,5 +29,4 @@ function ExampleBlock({ hast, code }) {
29
29
  });
30
30
  }
31
31
 
32
- //#endregion
33
32
  export { ExampleBlock, ExampleBlock as default };
@@ -1,9 +1,8 @@
1
1
  import './index.css';
2
- //#region src/runtime/components/ExampleBlock/index.module.css
2
+ // src/runtime/components/ExampleBlock/index.module.css
3
3
  var index_module_default = {
4
4
  "block": "xSQlsq_block",
5
5
  "rpDark": "xSQlsq_rp-dark"
6
6
  };
7
7
 
8
- //#endregion
9
8
  export { index_module_default as default };
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import Markdown from "react-markdown";
3
3
 
4
- //#region src/runtime/components/MarkdownContent/index.tsx
4
+ // src/runtime/components/MarkdownContent/index.tsx
5
5
  /**
6
6
  * Custom link component that adds the rp-link class for RSPress styling
7
7
  * Filters out extra props passed by react-markdown (like `node`)
@@ -27,5 +27,4 @@ function MarkdownContent({ children }) {
27
27
  });
28
28
  }
29
29
 
30
- //#endregion
31
30
  export { MarkdownContent, MarkdownContent as default };
@@ -6,7 +6,7 @@ import index_module_default from "./index.module.js";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import clsx from "clsx";
8
8
 
9
- //#region src/runtime/components/MemberSignature/index.tsx
9
+ // src/runtime/components/MemberSignature/index.tsx
10
10
  /**
11
11
  * Interactive member signature block with h3 header and wrap button.
12
12
  * Displays syntax-highlighted TypeScript member signatures with hover tooltips.
@@ -55,5 +55,4 @@ function extractTextFromHast(node) {
55
55
  return "";
56
56
  }
57
57
 
58
- //#endregion
59
58
  export { MemberSignature, MemberSignature as default };
@@ -1,5 +1,5 @@
1
1
  import './index.css';
2
- //#region src/runtime/components/MemberSignature/index.module.css
2
+ // src/runtime/components/MemberSignature/index.module.css
3
3
  var index_module_default = {
4
4
  "block": "qoTVvq_block",
5
5
  "blockWrapper": "qoTVvq_blockWrapper",
@@ -7,5 +7,4 @@ var index_module_default = {
7
7
  "rpDark": "qoTVvq_rp-dark"
8
8
  };
9
9
 
10
- //#endregion
11
10
  export { index_module_default as default };
@@ -3,7 +3,7 @@ import { stripTags } from "../../utils/strip-tags.js";
3
3
  import index_module_default from "./index.module.js";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
- //#region src/runtime/components/ParametersTable/index.tsx
6
+ // src/runtime/components/ParametersTable/index.tsx
7
7
  /**
8
8
  * Renders a table of function or method parameters with their types and descriptions.
9
9
  *
@@ -40,5 +40,4 @@ const ParametersTable = ({ parameters }) => {
40
40
  });
41
41
  };
42
42
 
43
- //#endregion
44
43
  export { ParametersTable, ParametersTable as default };
@@ -1,10 +1,9 @@
1
1
  import './index.css';
2
- //#region src/runtime/components/ParametersTable/index.module.css
2
+ // src/runtime/components/ParametersTable/index.module.css
3
3
  var index_module_default = {
4
4
  "rpDark": "_1CxlAG_rp-dark",
5
5
  "scroll": "_1CxlAG_scroll",
6
6
  "table": "_1CxlAG_table"
7
7
  };
8
8
 
9
- //#endregion
10
9
  export { index_module_default as default };
@@ -6,7 +6,7 @@ import index_module_default from "./index.module.js";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  import clsx from "clsx";
8
8
 
9
- //#region src/runtime/components/SignatureBlock/index.tsx
9
+ // src/runtime/components/SignatureBlock/index.tsx
10
10
  /**
11
11
  * Interactive signature block with wrap button.
12
12
  * Displays syntax-highlighted TypeScript signatures with hover tooltips.
@@ -38,5 +38,4 @@ function SignatureBlock({ hast, heading = "Signature", id = "signature", hasPara
38
38
  });
39
39
  }
40
40
 
41
- //#endregion
42
41
  export { SignatureBlock, SignatureBlock as default };
@@ -1,5 +1,5 @@
1
1
  import './index.css';
2
- //#region src/runtime/components/SignatureBlock/index.module.css
2
+ // src/runtime/components/SignatureBlock/index.module.css
3
3
  var index_module_default = {
4
4
  "block": "_9NmvCa_block",
5
5
  "blockWrapper": "_9NmvCa_blockWrapper",
@@ -7,5 +7,4 @@ var index_module_default = {
7
7
  "rpDark": "_9NmvCa_rp-dark"
8
8
  };
9
9
 
10
- //#endregion
11
10
  export { index_module_default as default };
@@ -4,7 +4,7 @@ import { useEffect, useRef } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import clsx from "clsx";
6
6
 
7
- //#region src/runtime/components/SignatureCode/index.tsx
7
+ // src/runtime/components/SignatureCode/index.tsx
8
8
  /**
9
9
  * Code block for displaying syntax-highlighted signatures
10
10
  * Supports wrapped and unwrapped states
@@ -40,5 +40,4 @@ function SignatureCode({ hast, wrapped }) {
40
40
  });
41
41
  }
42
42
 
43
- //#endregion
44
43
  export { SignatureCode };
@@ -1,10 +1,9 @@
1
1
  import './index.css';
2
- //#region src/runtime/components/SignatureCode/index.module.css
2
+ // src/runtime/components/SignatureCode/index.module.css
3
3
  var index_module_default = {
4
4
  "code": "xutj2q_code",
5
5
  "rpDark": "xutj2q_rp-dark",
6
6
  "wrapped": "xutj2q_wrapped"
7
7
  };
8
8
 
9
- //#endregion
10
9
  export { index_module_default as default };
@@ -3,7 +3,7 @@ import index_module_default from "./index.module.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import clsx from "clsx";
5
5
 
6
- //#region src/runtime/components/SignatureToolbar/index.tsx
6
+ // src/runtime/components/SignatureToolbar/index.tsx
7
7
  /**
8
8
  * Toolbar for signature blocks
9
9
  * Displays optional heading, summary, and action buttons
@@ -48,5 +48,4 @@ function SignatureToolbar({ heading, summary, buttons }) {
48
48
  });
49
49
  }
50
50
 
51
- //#endregion
52
51
  export { SignatureToolbar };
@@ -1,5 +1,5 @@
1
1
  import './index.css';
2
- //#region src/runtime/components/SignatureToolbar/index.module.css
2
+ // src/runtime/components/SignatureToolbar/index.module.css
3
3
  var index_module_default = {
4
4
  "buttons": "GSquYa_buttons",
5
5
  "memberHeading": "GSquYa_memberHeading",
@@ -10,5 +10,4 @@ var index_module_default = {
10
10
  "toolbarLeft": "GSquYa_toolbarLeft"
11
11
  };
12
12
 
13
- //#endregion
14
13
  export { index_module_default as default };
@@ -1,7 +1,7 @@
1
1
  import index_module_default from "./index.module.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
 
4
- //#region src/runtime/components/buttons/ButtonGroup.tsx
4
+ // src/runtime/components/buttons/ButtonGroup.tsx
5
5
  /**
6
6
  * Container for grouping multiple buttons with consistent spacing
7
7
  */
@@ -12,5 +12,4 @@ function ButtonGroup({ children }) {
12
12
  });
13
13
  }
14
14
 
15
- //#endregion
16
15
  export { ButtonGroup };
@@ -5,7 +5,7 @@ import { useCallback, useState } from "react";
5
5
  import { jsx } from "react/jsx-runtime";
6
6
  import clsx from "clsx";
7
7
 
8
- //#region src/runtime/components/buttons/CopyCodeButton.tsx
8
+ // src/runtime/components/buttons/CopyCodeButton.tsx
9
9
  /**
10
10
  * Copy code button for code blocks
11
11
  * Shows copy icon, changes to checkmark on success
@@ -40,5 +40,4 @@ function CopyCodeButton({ code }) {
40
40
  });
41
41
  }
42
42
 
43
- //#endregion
44
43
  export { CopyCodeButton };
@@ -4,7 +4,7 @@ import { WrapIcon } from "../icons/WrapIcon/index.js";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import clsx from "clsx";
6
6
 
7
- //#region src/runtime/components/buttons/WrapSignatureButton.tsx
7
+ // src/runtime/components/buttons/WrapSignatureButton.tsx
8
8
  /**
9
9
  * Wrap toggle button for API signature blocks
10
10
  * Shows wrapped/unwrapped state with distinct icons
@@ -20,5 +20,4 @@ function WrapSignatureButton({ wrapped, onToggle }) {
20
20
  });
21
21
  }
22
22
 
23
- //#endregion
24
23
  export { WrapSignatureButton };
@@ -1,9 +1,8 @@
1
1
  import './index.css';
2
- //#region src/runtime/components/buttons/index.module.css
2
+ // src/runtime/components/buttons/index.module.css
3
3
  var index_module_default = {
4
4
  "button": "qANVAa_button",
5
5
  "buttonGroup": "qANVAa_buttonGroup"
6
6
  };
7
7
 
8
- //#endregion
9
8
  export { index_module_default as default };
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
 
3
- //#region src/runtime/components/icons/CheckIcon/index.tsx
3
+ // src/runtime/components/icons/CheckIcon/index.tsx
4
4
  /**
5
5
  * Check/checkmark icon for success states
6
6
  * Shows a checkmark indicating success/completion
@@ -19,5 +19,4 @@ function CheckIcon({ size = 16, ...props }) {
19
19
  });
20
20
  }
21
21
 
22
- //#endregion
23
22
  export { CheckIcon };
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
 
3
- //#region src/runtime/components/icons/CopyIcon/index.tsx
3
+ // src/runtime/components/icons/CopyIcon/index.tsx
4
4
  /**
5
5
  * Copy icon for copy code buttons
6
6
  * Shows two overlapping rectangles indicating copy/duplicate
@@ -19,5 +19,4 @@ function CopyIcon({ size = 16, ...props }) {
19
19
  });
20
20
  }
21
21
 
22
- //#endregion
23
22
  export { CopyIcon };
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
 
3
- //#region src/runtime/components/icons/UnwrapIcon/index.tsx
3
+ // src/runtime/components/icons/UnwrapIcon/index.tsx
4
4
  /**
5
5
  * Unwrap icon for text wrapping toggle buttons (active state)
6
6
  * Shows wrapped lines with an arrow indicating active wrap mode
@@ -21,5 +21,4 @@ function UnwrapIcon({ size = 16, ...props }) {
21
21
  });
22
22
  }
23
23
 
24
- //#endregion
25
24
  export { UnwrapIcon };
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
 
3
- //#region src/runtime/components/icons/WrapIcon/index.tsx
3
+ // src/runtime/components/icons/WrapIcon/index.tsx
4
4
  /**
5
5
  * Wrap icon for text wrapping toggle buttons
6
6
  * Shows lines with an arrow indicating text will wrap
@@ -19,5 +19,4 @@ function WrapIcon({ size = 16, ...props }) {
19
19
  });
20
20
  }
21
21
 
22
- //#endregion
23
22
  export { WrapIcon };
@@ -1,6 +1,6 @@
1
1
  import { useState } from "react";
2
2
 
3
- //#region src/runtime/hooks/useWrapToggle.ts
3
+ // src/runtime/hooks/useWrapToggle.ts
4
4
  /* v8 ignore start -- React hook, requires React test environment */
5
5
  /**
6
6
  * Hook for managing code/signature wrapping state
@@ -31,5 +31,4 @@ function useWrapToggle() {
31
31
  };
32
32
  }
33
33
 
34
- //#endregion
35
34
  export { useWrapToggle };
@@ -1,5 +1,4 @@
1
1
  import { ReactElement } from "react";
2
- //#region src/runtime/components/ApiExample/index.d.ts
3
2
  /**
4
3
  * Props for the {@link ApiExample} component used in generated MDX pages.
5
4
  *
@@ -24,8 +23,6 @@ interface ApiExampleProps {
24
23
  * @public
25
24
  */
26
25
  export declare function ApiExample({ code, hast }: ApiExampleProps): ReactElement;
27
- //#endregion
28
- //#region src/runtime/components/ApiMember/index.d.ts
29
26
  /**
30
27
  * Props for the {@link ApiMember} component used in generated MDX pages.
31
28
  *
@@ -58,8 +55,6 @@ interface ApiMemberProps {
58
55
  * @public
59
56
  */
60
57
  export declare function ApiMember({ code, memberName, summary, id, hast, hasParameters }: ApiMemberProps): ReactElement;
61
- //#endregion
62
- //#region src/runtime/components/ApiSignature/index.d.ts
63
58
  /**
64
59
  * Props for the {@link ApiSignature} component used in generated MDX pages.
65
60
  *
@@ -92,8 +87,6 @@ interface ApiSignatureProps {
92
87
  * @public
93
88
  */
94
89
  export declare function ApiSignature({ code, heading: _heading, id: _id, hast, hasParameters, hasMembers }: ApiSignatureProps): ReactElement;
95
- //#endregion
96
- //#region src/runtime/components/EnumMembersTable/index.d.ts
97
90
  /**
98
91
  * A single enum member entry for {@link EnumMembersTable}.
99
92
  *
@@ -122,8 +115,6 @@ interface EnumMembersTableProps {
122
115
  * @public
123
116
  */
124
117
  export declare const EnumMembersTable: ({ members }: EnumMembersTableProps) => ReactElement | null;
125
- //#endregion
126
- //#region src/runtime/components/ParametersTable/index.d.ts
127
118
  /**
128
119
  * A single parameter entry for {@link ParametersTable}.
129
120
  *
@@ -152,6 +143,5 @@ interface ParametersTableProps {
152
143
  * @public
153
144
  */
154
145
  export declare const ParametersTable: ({ parameters }: ParametersTableProps) => ReactElement | null;
155
- //#endregion
156
146
  export type { ApiExampleProps, ApiMemberProps, ApiSignatureProps, EnumMember, EnumMembersTableProps, Parameter, ParametersTableProps };
157
147
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- //#region src/runtime/utils/decode-hast.ts
1
+ // src/runtime/utils/decode-hast.ts
2
2
  /**
3
3
  * Decode a HAST value that may be base64-encoded, plain JSON, or already parsed.
4
4
  *
@@ -29,5 +29,4 @@ function decodeHast(hast, componentName) {
29
29
  }
30
30
  }
31
31
 
32
- //#endregion
33
32
  export { decodeHast };
@@ -1,7 +1,7 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { toJsxRuntime } from "hast-util-to-jsx-runtime";
3
3
 
4
- //#region src/runtime/utils/hast-renderer.tsx
4
+ // src/runtime/utils/hast-renderer.tsx
5
5
  /**
6
6
  * Convert a HAST (Hypertext Abstract Syntax Tree) root to a React element.
7
7
  *
@@ -21,5 +21,4 @@ function hastToReact(hast) {
21
21
  });
22
22
  }
23
23
 
24
- //#endregion
25
24
  export { hastToReact };
@@ -1,4 +1,4 @@
1
- //#region src/runtime/utils/strip-tags.ts
1
+ // src/runtime/utils/strip-tags.ts
2
2
  /**
3
3
  * Remove every `<...>` tag from `text`, keeping the text between tags.
4
4
  *
@@ -24,5 +24,4 @@ function stripTags(text) {
24
24
  return out;
25
25
  }
26
26
 
27
- //#endregion
28
27
  export { stripTags };
package/schemas/config.js CHANGED
@@ -3,7 +3,7 @@ import { Effect, Schema } from "effect";
3
3
  import { OpenGraphImageConfig } from "@tsdoctor/seo";
4
4
  import { ApiItemKind } from "@microsoft/api-extractor-model";
5
5
 
6
- //#region src/schemas/config.ts
6
+ // src/schemas/config.ts
7
7
  /**
8
8
  * Opaque input type for config fields that accept a file path string,
9
9
  * an async loader function, or a URL.
@@ -294,5 +294,4 @@ const PluginOptions = Schema.Struct({
294
294
  observability: Schema.optional(ObservabilityConfig)
295
295
  });
296
296
 
297
- //#endregion
298
297
  export { AutoDetectDependencies, CategoryConfig, DEFAULT_CATEGORIES, ErrorConfig, ExternalPackageSpec, LlmsPlugin, ModelInput, MultiApiConfig, PluginOptions, SingleApiConfig, SourceConfig, ThemeConfig, VersionConfig };
@@ -1,7 +1,7 @@
1
1
  import { PerformanceThresholds } from "./performance.js";
2
2
  import { Schema } from "effect";
3
3
 
4
- //#region src/schemas/observability.ts
4
+ // src/schemas/observability.ts
5
5
  const EventLevelSchema = Schema.Literals([
6
6
  "none",
7
7
  "error",
@@ -56,5 +56,4 @@ function resolveObservability(input) {
56
56
  } };
57
57
  }
58
58
 
59
- //#endregion
60
59
  export { EventLevelSchema, ObservabilityConfig, resolveObservability };
@@ -1,6 +1,6 @@
1
1
  import { Effect, Schema } from "effect";
2
2
 
3
- //#region src/schemas/performance.ts
3
+ // src/schemas/performance.ts
4
4
  const PerformanceThresholds = Schema.Struct({
5
5
  slowCodeBlock: Schema.Number.pipe(Schema.withDecodingDefault(Effect.succeed(500))),
6
6
  slowPageGeneration: Schema.Number.pipe(Schema.withDecodingDefault(Effect.succeed(500))),
@@ -9,5 +9,4 @@ const PerformanceThresholds = Schema.Struct({
9
9
  slowDbOperation: Schema.Number.pipe(Schema.withDecodingDefault(Effect.succeed(100)))
10
10
  });
11
11
 
12
- //#endregion
13
12
  export { PerformanceThresholds };
package/serve.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { execFileSync, spawn } from "node:child_process";
2
2
 
3
- //#region src/serve.ts
3
+ // src/serve.ts
4
4
  const DEFAULT_PORT = 4173;
5
5
  /**
6
6
  * Readiness heuristic over a chunk of server output. Both RSPress `dev` and
@@ -142,5 +142,4 @@ async function serve(options = {}) {
142
142
  }
143
143
  /* v8 ignore stop */
144
144
 
145
- //#endregion
146
145
  export { isServerReady, resolveServeConfig, serve };