@depup/nextra 4.6.1-depup.0

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 (293) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +56 -0
  3. package/changes.json +110 -0
  4. package/dist/client/components/banner/close-banner-button.d.ts +8 -0
  5. package/dist/client/components/banner/close-banner-button.js +45 -0
  6. package/dist/client/components/banner/index.client.d.ts +5 -0
  7. package/dist/client/components/banner/index.client.js +46 -0
  8. package/dist/client/components/banner/index.d.ts +51 -0
  9. package/dist/client/components/banner/index.js +93 -0
  10. package/dist/client/components/bleed.d.ts +63 -0
  11. package/dist/client/components/bleed.js +54 -0
  12. package/dist/client/components/button.d.ts +9 -0
  13. package/dist/client/components/button.js +55 -0
  14. package/dist/client/components/callout.d.ts +136 -0
  15. package/dist/client/components/callout.js +99 -0
  16. package/dist/client/components/cards.d.ts +104 -0
  17. package/dist/client/components/cards.js +132 -0
  18. package/dist/client/components/collapse.d.ts +12 -0
  19. package/dist/client/components/collapse.js +143 -0
  20. package/dist/client/components/file-tree/file.d.ts +9 -0
  21. package/dist/client/components/file-tree/file.js +43 -0
  22. package/dist/client/components/file-tree/folder.d.ts +12 -0
  23. package/dist/client/components/file-tree/folder.js +94 -0
  24. package/dist/client/components/file-tree/index.d.ts +57 -0
  25. package/dist/client/components/file-tree/index.js +12 -0
  26. package/dist/client/components/file-tree/tree.d.ts +5 -0
  27. package/dist/client/components/file-tree/tree.js +41 -0
  28. package/dist/client/components/head.d.ts +139 -0
  29. package/dist/client/components/head.js +202 -0
  30. package/dist/client/components/image-zoom.d.ts +6 -0
  31. package/dist/client/components/image-zoom.js +79 -0
  32. package/dist/client/components/index.d.ts +56 -0
  33. package/dist/client/components/index.js +42 -0
  34. package/dist/client/components/playground.d.ts +90 -0
  35. package/dist/client/components/playground.js +103 -0
  36. package/dist/client/components/popup/index.client.d.ts +7 -0
  37. package/dist/client/components/popup/index.client.js +83 -0
  38. package/dist/client/components/popup/index.d.ts +12 -0
  39. package/dist/client/components/popup/index.js +11 -0
  40. package/dist/client/components/search.d.ts +88 -0
  41. package/dist/client/components/search.js +426 -0
  42. package/dist/client/components/select.d.ts +19 -0
  43. package/dist/client/components/select.js +109 -0
  44. package/dist/client/components/skip-nav/index.client.d.ts +5 -0
  45. package/dist/client/components/skip-nav/index.client.js +45 -0
  46. package/dist/client/components/skip-nav/index.d.ts +6 -0
  47. package/dist/client/components/skip-nav/index.js +24 -0
  48. package/dist/client/components/steps.d.ts +64 -0
  49. package/dist/client/components/steps.js +74 -0
  50. package/dist/client/components/tabs/index.client.d.ts +21 -0
  51. package/dist/client/components/tabs/index.client.js +243 -0
  52. package/dist/client/components/tabs/index.d.ts +53 -0
  53. package/dist/client/components/tabs/index.js +9 -0
  54. package/dist/client/evaluate.d.ts +30 -0
  55. package/dist/client/evaluate.js +17 -0
  56. package/dist/client/hocs/index.d.ts +4 -0
  57. package/dist/client/hocs/index.js +6 -0
  58. package/dist/client/hocs/with-github-alert.d.ts +11 -0
  59. package/dist/client/hocs/with-github-alert.js +30 -0
  60. package/dist/client/hocs/with-icons.d.ts +6 -0
  61. package/dist/client/hocs/with-icons.js +76 -0
  62. package/dist/client/hooks/index.d.ts +4 -0
  63. package/dist/client/hooks/index.js +10 -0
  64. package/dist/client/hooks/use-copy.d.ts +9 -0
  65. package/dist/client/hooks/use-copy.js +77 -0
  66. package/dist/client/hooks/use-fs-route.d.ts +3 -0
  67. package/dist/client/hooks/use-fs-route.js +20 -0
  68. package/dist/client/hooks/use-hash.d.ts +3 -0
  69. package/dist/client/hooks/use-hash.js +20 -0
  70. package/dist/client/hooks/use-mounted.d.ts +3 -0
  71. package/dist/client/hooks/use-mounted.js +13 -0
  72. package/dist/client/icons/arrow-right.d.ts +5 -0
  73. package/dist/client/icons/arrow-right.js +24 -0
  74. package/dist/client/icons/chatgpt.d.ts +2 -0
  75. package/dist/client/icons/chatgpt.js +24 -0
  76. package/dist/client/icons/check.d.ts +2 -0
  77. package/dist/client/icons/check.js +24 -0
  78. package/dist/client/icons/claude.d.ts +2 -0
  79. package/dist/client/icons/claude.js +81 -0
  80. package/dist/client/icons/copy.d.ts +2 -0
  81. package/dist/client/icons/copy.js +31 -0
  82. package/dist/client/icons/cpp.d.ts +2 -0
  83. package/dist/client/icons/cpp.js +24 -0
  84. package/dist/client/icons/cross-circled.d.ts +2 -0
  85. package/dist/client/icons/cross-circled.js +24 -0
  86. package/dist/client/icons/csharp.d.ts +2 -0
  87. package/dist/client/icons/csharp.js +24 -0
  88. package/dist/client/icons/css.d.ts +2 -0
  89. package/dist/client/icons/css.js +24 -0
  90. package/dist/client/icons/discord.d.ts +2 -0
  91. package/dist/client/icons/discord.js +24 -0
  92. package/dist/client/icons/expand.d.ts +2 -0
  93. package/dist/client/icons/expand.js +31 -0
  94. package/dist/client/icons/file.d.ts +2 -0
  95. package/dist/client/icons/file.js +24 -0
  96. package/dist/client/icons/folder-open.d.ts +2 -0
  97. package/dist/client/icons/folder-open.js +24 -0
  98. package/dist/client/icons/folder.d.ts +2 -0
  99. package/dist/client/icons/folder.js +24 -0
  100. package/dist/client/icons/github-caution.d.ts +2 -0
  101. package/dist/client/icons/github-caution.js +24 -0
  102. package/dist/client/icons/github-important.d.ts +2 -0
  103. package/dist/client/icons/github-important.js +24 -0
  104. package/dist/client/icons/github-note.d.ts +2 -0
  105. package/dist/client/icons/github-note.js +24 -0
  106. package/dist/client/icons/github-tip.d.ts +2 -0
  107. package/dist/client/icons/github-tip.js +24 -0
  108. package/dist/client/icons/github-warning.d.ts +2 -0
  109. package/dist/client/icons/github-warning.js +24 -0
  110. package/dist/client/icons/github.d.ts +2 -0
  111. package/dist/client/icons/github.js +24 -0
  112. package/dist/client/icons/globe.d.ts +2 -0
  113. package/dist/client/icons/globe.js +24 -0
  114. package/dist/client/icons/go.d.ts +2 -0
  115. package/dist/client/icons/go.js +46 -0
  116. package/dist/client/icons/graphql.d.ts +2 -0
  117. package/dist/client/icons/graphql.js +56 -0
  118. package/dist/client/icons/index.d.ts +2 -0
  119. package/dist/client/icons/index.js +92 -0
  120. package/dist/client/icons/javascript.d.ts +2 -0
  121. package/dist/client/icons/javascript.js +24 -0
  122. package/dist/client/icons/json.d.ts +2 -0
  123. package/dist/client/icons/json.js +41 -0
  124. package/dist/client/icons/link-arrow.d.ts +2 -0
  125. package/dist/client/icons/link-arrow.js +31 -0
  126. package/dist/client/icons/link.d.ts +2 -0
  127. package/dist/client/icons/link.js +24 -0
  128. package/dist/client/icons/markdown.d.ts +2 -0
  129. package/dist/client/icons/markdown.js +24 -0
  130. package/dist/client/icons/mdx.d.ts +2 -0
  131. package/dist/client/icons/mdx.js +24 -0
  132. package/dist/client/icons/menu.d.ts +2 -0
  133. package/dist/client/icons/menu.js +36 -0
  134. package/dist/client/icons/moon.d.ts +2 -0
  135. package/dist/client/icons/moon.js +24 -0
  136. package/dist/client/icons/move.d.ts +2 -0
  137. package/dist/client/icons/move.js +24 -0
  138. package/dist/client/icons/python.d.ts +2 -0
  139. package/dist/client/icons/python.js +31 -0
  140. package/dist/client/icons/react.d.ts +2 -0
  141. package/dist/client/icons/react.js +38 -0
  142. package/dist/client/icons/rust.d.ts +2 -0
  143. package/dist/client/icons/rust.js +31 -0
  144. package/dist/client/icons/spinner.d.ts +2 -0
  145. package/dist/client/icons/spinner.js +31 -0
  146. package/dist/client/icons/sun.d.ts +2 -0
  147. package/dist/client/icons/sun.js +24 -0
  148. package/dist/client/icons/svelte.d.ts +2 -0
  149. package/dist/client/icons/svelte.js +31 -0
  150. package/dist/client/icons/terminal.d.ts +2 -0
  151. package/dist/client/icons/terminal.js +24 -0
  152. package/dist/client/icons/terraform.d.ts +2 -0
  153. package/dist/client/icons/terraform.js +24 -0
  154. package/dist/client/icons/typescript.d.ts +2 -0
  155. package/dist/client/icons/typescript.js +24 -0
  156. package/dist/client/icons/word-wrap.d.ts +2 -0
  157. package/dist/client/icons/word-wrap.js +24 -0
  158. package/dist/client/icons/x.d.ts +2 -0
  159. package/dist/client/icons/x.js +24 -0
  160. package/dist/client/mdx-components/anchor.d.ts +10 -0
  161. package/dist/client/mdx-components/anchor.js +109 -0
  162. package/dist/client/mdx-components/code.d.ts +7 -0
  163. package/dist/client/mdx-components/code.js +52 -0
  164. package/dist/client/mdx-components/details.d.ts +5 -0
  165. package/dist/client/mdx-components/details.js +166 -0
  166. package/dist/client/mdx-components/image.d.ts +28 -0
  167. package/dist/client/mdx-components/image.js +39 -0
  168. package/dist/client/mdx-components/index.d.ts +11 -0
  169. package/dist/client/mdx-components/index.js +16 -0
  170. package/dist/client/mdx-components/pre/copy-to-clipboard.d.ts +5 -0
  171. package/dist/client/mdx-components/pre/copy-to-clipboard.js +49 -0
  172. package/dist/client/mdx-components/pre/index.d.ts +16 -0
  173. package/dist/client/mdx-components/pre/index.js +156 -0
  174. package/dist/client/mdx-components/pre/toggle-word-wrap-button.d.ts +7 -0
  175. package/dist/client/mdx-components/pre/toggle-word-wrap-button.js +31 -0
  176. package/dist/client/mdx-components/summary.d.ts +5 -0
  177. package/dist/client/mdx-components/summary.js +80 -0
  178. package/dist/client/mdx-components/table.d.ts +57 -0
  179. package/dist/client/mdx-components/table.js +95 -0
  180. package/dist/client/mdx-components.d.ts +89 -0
  181. package/dist/client/mdx-components.js +15 -0
  182. package/dist/client/mdx-remote.d.ts +62 -0
  183. package/dist/client/mdx-remote.js +36 -0
  184. package/dist/client/normalize-pages.d.ts +84 -0
  185. package/dist/client/normalize-pages.js +232 -0
  186. package/dist/client/package.json +1 -0
  187. package/dist/client/pages.d.ts +131 -0
  188. package/dist/client/pages.js +39 -0
  189. package/dist/client/remove-links.d.ts +6 -0
  190. package/dist/client/remove-links.js +35 -0
  191. package/dist/client/setup-page.d.ts +18 -0
  192. package/dist/client/setup-page.js +14 -0
  193. package/dist/server/compile-metadata.d.ts +12 -0
  194. package/dist/server/compile-metadata.js +39 -0
  195. package/dist/server/compile.d.ts +39 -0
  196. package/dist/server/compile.js +158 -0
  197. package/dist/server/constants.d.ts +15 -0
  198. package/dist/server/constants.js +22 -0
  199. package/dist/server/fetch-filepaths-from-github.d.ts +10 -0
  200. package/dist/server/fetch-filepaths-from-github.js +36 -0
  201. package/dist/server/index.d.ts +39 -0
  202. package/dist/server/index.js +203 -0
  203. package/dist/server/loader.d.ts +18 -0
  204. package/dist/server/loader.js +155 -0
  205. package/dist/server/locales.d.ts +22 -0
  206. package/dist/server/locales.js +38 -0
  207. package/dist/server/page-map/find-meta-and-page-file-paths.d.ts +8 -0
  208. package/dist/server/page-map/find-meta-and-page-file-paths.js +32 -0
  209. package/dist/server/page-map/get.d.ts +50 -0
  210. package/dist/server/page-map/get.js +28 -0
  211. package/dist/server/page-map/index-page.d.ts +21 -0
  212. package/dist/server/page-map/index-page.js +57 -0
  213. package/dist/server/page-map/index.d.ts +26 -0
  214. package/dist/server/page-map/index.js +24 -0
  215. package/dist/server/page-map/merge-meta-with-page-map.d.ts +17 -0
  216. package/dist/server/page-map/merge-meta-with-page-map.js +74 -0
  217. package/dist/server/page-map/normalize.d.ts +17 -0
  218. package/dist/server/page-map/normalize.js +122 -0
  219. package/dist/server/page-map/placeholder.d.ts +2 -0
  220. package/dist/server/page-map/placeholder.js +0 -0
  221. package/dist/server/page-map/to-ast.d.ts +18 -0
  222. package/dist/server/page-map/to-ast.js +47 -0
  223. package/dist/server/page-map/to-js.d.ts +21 -0
  224. package/dist/server/page-map/to-js.js +72 -0
  225. package/dist/server/page-map/to-page-map.d.ts +26 -0
  226. package/dist/server/page-map/to-page-map.js +101 -0
  227. package/dist/server/recma-plugins/index.d.ts +3 -0
  228. package/dist/server/recma-plugins/index.js +4 -0
  229. package/dist/server/recma-plugins/recma-rewrite.d.ts +11 -0
  230. package/dist/server/recma-plugins/recma-rewrite.js +98 -0
  231. package/dist/server/rehype-plugins/index.d.ts +18 -0
  232. package/dist/server/rehype-plugins/index.js +16 -0
  233. package/dist/server/rehype-plugins/rehype-better-react-mathjax.d.ts +24 -0
  234. package/dist/server/rehype-plugins/rehype-better-react-mathjax.js +96 -0
  235. package/dist/server/rehype-plugins/rehype-extract-toc-content.d.ts +6 -0
  236. package/dist/server/rehype-plugins/rehype-extract-toc-content.js +119 -0
  237. package/dist/server/rehype-plugins/rehype-twoslash-popup.d.ts +6 -0
  238. package/dist/server/rehype-plugins/rehype-twoslash-popup.js +50 -0
  239. package/dist/server/rehype-plugins/rehype.d.ts +21 -0
  240. package/dist/server/rehype-plugins/rehype.js +84 -0
  241. package/dist/server/remark-plugins/index.d.ts +15 -0
  242. package/dist/server/remark-plugins/index.js +26 -0
  243. package/dist/server/remark-plugins/remark-assign-frontmatter.d.ts +10 -0
  244. package/dist/server/remark-plugins/remark-assign-frontmatter.js +24 -0
  245. package/dist/server/remark-plugins/remark-custom-heading-id.d.ts +9 -0
  246. package/dist/server/remark-plugins/remark-custom-heading-id.js +18 -0
  247. package/dist/server/remark-plugins/remark-export-only-metadata.d.ts +6 -0
  248. package/dist/server/remark-plugins/remark-export-only-metadata.js +18 -0
  249. package/dist/server/remark-plugins/remark-export-source-code.d.ts +6 -0
  250. package/dist/server/remark-plugins/remark-export-source-code.js +35 -0
  251. package/dist/server/remark-plugins/remark-headings.d.ts +12 -0
  252. package/dist/server/remark-plugins/remark-headings.js +133 -0
  253. package/dist/server/remark-plugins/remark-link-rewrite.d.ts +11 -0
  254. package/dist/server/remark-plugins/remark-link-rewrite.js +12 -0
  255. package/dist/server/remark-plugins/remark-mdx-disable-explicit-jsx.d.ts +10 -0
  256. package/dist/server/remark-plugins/remark-mdx-disable-explicit-jsx.js +10 -0
  257. package/dist/server/remark-plugins/remark-mdx-frontmatter.d.ts +6 -0
  258. package/dist/server/remark-plugins/remark-mdx-frontmatter.js +37 -0
  259. package/dist/server/remark-plugins/remark-mdx-title.d.ts +10 -0
  260. package/dist/server/remark-plugins/remark-mdx-title.js +53 -0
  261. package/dist/server/remark-plugins/remark-remove-imports.d.ts +6 -0
  262. package/dist/server/remark-plugins/remark-remove-imports.js +12 -0
  263. package/dist/server/remark-plugins/remark-static-image.d.ts +6 -0
  264. package/dist/server/remark-plugins/remark-static-image.js +107 -0
  265. package/dist/server/schemas.d.ts +352 -0
  266. package/dist/server/schemas.js +240 -0
  267. package/dist/server/tsdoc/base.d.ts +38 -0
  268. package/dist/server/tsdoc/base.js +284 -0
  269. package/dist/server/tsdoc/index.d.ts +6 -0
  270. package/dist/server/tsdoc/index.js +10 -0
  271. package/dist/server/tsdoc/tsdoc.d.ts +102 -0
  272. package/dist/server/tsdoc/tsdoc.js +262 -0
  273. package/dist/server/tsdoc/types.d.ts +64 -0
  274. package/dist/server/tsdoc/types.js +0 -0
  275. package/dist/server/tsdoc/zod-to-ts.d.ts +5 -0
  276. package/dist/server/tsdoc/zod-to-ts.js +107 -0
  277. package/dist/server/twoslash.d.ts +6 -0
  278. package/dist/server/twoslash.js +60 -0
  279. package/dist/server/utils.d.ts +12 -0
  280. package/dist/server/utils.js +45 -0
  281. package/dist/types.d.ts +128 -0
  282. package/dist/types.generated.d.ts +203 -0
  283. package/dist/types.generated.js +0 -0
  284. package/dist/types.js +0 -0
  285. package/loader.cjs +24 -0
  286. package/package.json +265 -0
  287. package/styles/cards.css +24 -0
  288. package/styles/code-block.css +266 -0
  289. package/styles/default.css +55 -0
  290. package/styles/react-medium-image-zoom.css +101 -0
  291. package/styles/scrollbar.css +14 -0
  292. package/styles/steps.css +22 -0
  293. package/styles/subheading-anchor.css +25 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Shu Ding
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # @depup/nextra
2
+
3
+ > Dependency-bumped version of [nextra](https://www.npmjs.com/package/nextra)
4
+
5
+ Generated by [DepUp](https://github.com/depup/npm) -- all production
6
+ dependencies bumped to latest versions.
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @depup/nextra
12
+ ```
13
+
14
+ | Field | Value |
15
+ |-------|-------|
16
+ | Original | [nextra](https://www.npmjs.com/package/nextra) @ 4.6.1 |
17
+ | Processed | 2026-03-18 |
18
+ | Smoke test | failed |
19
+ | Deps updated | 26 |
20
+
21
+ ## Dependency Changes
22
+
23
+ | Dependency | From | To |
24
+ |------------|------|-----|
25
+ | @formatjs/intl-localematcher | ^0.6.0 | ^0.8.2 |
26
+ | @headlessui/react | ^2.1.2 | ^2.2.9 |
27
+ | @mdx-js/mdx | ^3.0.0 | ^3.1.1 |
28
+ | @napi-rs/simple-git | ^0.1.9 | ^0.1.22 |
29
+ | @shikijs/twoslash | ^3.2.1 | ^4.0.2 |
30
+ | @theguild/remark-npm2yarn | ^0.3.2 | ^0.3.3 |
31
+ | better-react-mathjax | ^2.3.0 | ^3.0.0 |
32
+ | clsx | ^2.1.0 | ^2.1.1 |
33
+ | estree-util-value-to-estree | ^3.3.3 | ^3.5.0 |
34
+ | fast-glob | ^3.3.2 | ^3.3.3 |
35
+ | hast-util-to-estree | ^3.1.0 | ^3.1.3 |
36
+ | katex | ^0.16.21 | ^0.16.38 |
37
+ | mdast-util-from-markdown | ^2.0.1 | ^2.0.3 |
38
+ | mdast-util-gfm | ^3.0.0 | ^3.1.0 |
39
+ | mdast-util-to-hast | ^13.2.0 | ^13.2.1 |
40
+ | react-medium-image-zoom | ^5.2.12 | ^5.4.1 |
41
+ | rehype-katex | ^7.0.0 | ^7.0.1 |
42
+ | rehype-pretty-code | 0.14.1 | ^0.14.3 |
43
+ | remark-gfm | ^4.0.0 | ^4.0.1 |
44
+ | remark-reading-time | ^2.0.2 | ^2.1.0 |
45
+ | remark-smartypants | ^3.0.0 | ^3.0.2 |
46
+ | shiki | ^3.2.1 | ^4.0.2 |
47
+ | ts-morph | ^27.0.0 | ^27.0.2 |
48
+ | unist-util-visit | ^5.0.0 | ^5.1.0 |
49
+ | yaml | ^2.3.2 | ^2.8.2 |
50
+ | zod | ^4.1.12 | ^4.3.6 |
51
+
52
+ ---
53
+
54
+ Source: https://github.com/depup/npm | Original: https://www.npmjs.com/package/nextra
55
+
56
+ License inherited from the original package.
package/changes.json ADDED
@@ -0,0 +1,110 @@
1
+ {
2
+ "bumped": {
3
+ "@formatjs/intl-localematcher": {
4
+ "from": "^0.6.0",
5
+ "to": "^0.8.2"
6
+ },
7
+ "@headlessui/react": {
8
+ "from": "^2.1.2",
9
+ "to": "^2.2.9"
10
+ },
11
+ "@mdx-js/mdx": {
12
+ "from": "^3.0.0",
13
+ "to": "^3.1.1"
14
+ },
15
+ "@napi-rs/simple-git": {
16
+ "from": "^0.1.9",
17
+ "to": "^0.1.22"
18
+ },
19
+ "@shikijs/twoslash": {
20
+ "from": "^3.2.1",
21
+ "to": "^4.0.2"
22
+ },
23
+ "@theguild/remark-npm2yarn": {
24
+ "from": "^0.3.2",
25
+ "to": "^0.3.3"
26
+ },
27
+ "better-react-mathjax": {
28
+ "from": "^2.3.0",
29
+ "to": "^3.0.0"
30
+ },
31
+ "clsx": {
32
+ "from": "^2.1.0",
33
+ "to": "^2.1.1"
34
+ },
35
+ "estree-util-value-to-estree": {
36
+ "from": "^3.3.3",
37
+ "to": "^3.5.0"
38
+ },
39
+ "fast-glob": {
40
+ "from": "^3.3.2",
41
+ "to": "^3.3.3"
42
+ },
43
+ "hast-util-to-estree": {
44
+ "from": "^3.1.0",
45
+ "to": "^3.1.3"
46
+ },
47
+ "katex": {
48
+ "from": "^0.16.21",
49
+ "to": "^0.16.38"
50
+ },
51
+ "mdast-util-from-markdown": {
52
+ "from": "^2.0.1",
53
+ "to": "^2.0.3"
54
+ },
55
+ "mdast-util-gfm": {
56
+ "from": "^3.0.0",
57
+ "to": "^3.1.0"
58
+ },
59
+ "mdast-util-to-hast": {
60
+ "from": "^13.2.0",
61
+ "to": "^13.2.1"
62
+ },
63
+ "react-medium-image-zoom": {
64
+ "from": "^5.2.12",
65
+ "to": "^5.4.1"
66
+ },
67
+ "rehype-katex": {
68
+ "from": "^7.0.0",
69
+ "to": "^7.0.1"
70
+ },
71
+ "rehype-pretty-code": {
72
+ "from": "0.14.1",
73
+ "to": "^0.14.3"
74
+ },
75
+ "remark-gfm": {
76
+ "from": "^4.0.0",
77
+ "to": "^4.0.1"
78
+ },
79
+ "remark-reading-time": {
80
+ "from": "^2.0.2",
81
+ "to": "^2.1.0"
82
+ },
83
+ "remark-smartypants": {
84
+ "from": "^3.0.0",
85
+ "to": "^3.0.2"
86
+ },
87
+ "shiki": {
88
+ "from": "^3.2.1",
89
+ "to": "^4.0.2"
90
+ },
91
+ "ts-morph": {
92
+ "from": "^27.0.0",
93
+ "to": "^27.0.2"
94
+ },
95
+ "unist-util-visit": {
96
+ "from": "^5.0.0",
97
+ "to": "^5.1.0"
98
+ },
99
+ "yaml": {
100
+ "from": "^2.3.2",
101
+ "to": "^2.8.2"
102
+ },
103
+ "zod": {
104
+ "from": "^4.1.12",
105
+ "to": "^4.3.6"
106
+ }
107
+ },
108
+ "timestamp": "2026-03-18T22:02:46.534Z",
109
+ "totalUpdated": 26
110
+ }
@@ -0,0 +1,8 @@
1
+ import { FC, ReactNode } from 'react';
2
+
3
+ declare const CloseBannerButton: FC<{
4
+ storageKey: string;
5
+ children: ReactNode;
6
+ }>;
7
+
8
+ export { CloseBannerButton };
@@ -0,0 +1,45 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { c as _c } from "react-compiler-runtime";
4
+ import cn from "clsx";
5
+ import { Button } from "../button.js";
6
+ const CloseBannerButton = (t0) => {
7
+ const $ = _c(5);
8
+ const {
9
+ storageKey,
10
+ children
11
+ } = t0;
12
+ let t1;
13
+ if ($[0] !== storageKey) {
14
+ t1 = (event) => {
15
+ event.currentTarget.parentElement.classList.add("x:hidden");
16
+ try {
17
+ localStorage.setItem(storageKey, "1");
18
+ } catch {
19
+ }
20
+ };
21
+ $[0] = storageKey;
22
+ $[1] = t1;
23
+ } else {
24
+ t1 = $[1];
25
+ }
26
+ let t2;
27
+ if ($[2] !== children || $[3] !== t1) {
28
+ t2 = /* @__PURE__ */ jsx(Button, { "aria-label": "Dismiss banner", className: _temp, onClick: t1, children });
29
+ $[2] = children;
30
+ $[3] = t1;
31
+ $[4] = t2;
32
+ } else {
33
+ t2 = $[4];
34
+ }
35
+ return t2;
36
+ };
37
+ function _temp(t0) {
38
+ const {
39
+ hover
40
+ } = t0;
41
+ return cn("x:p-2", hover ? "x:opacity-100" : "x:opacity-80");
42
+ }
43
+ export {
44
+ CloseBannerButton
45
+ };
@@ -0,0 +1,5 @@
1
+ import { FC, ComponentPropsWithoutRef } from 'react';
2
+
3
+ declare const ClientBanner: FC<ComponentPropsWithoutRef<'div'>>;
4
+
5
+ export { ClientBanner };
@@ -0,0 +1,46 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { c as _c } from "react-compiler-runtime";
4
+ import { useEffect, useRef } from "react";
5
+ const ClientBanner = (props) => {
6
+ const $ = _c(4);
7
+ const banner = useRef(null);
8
+ let t0;
9
+ let t1;
10
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
11
+ t0 = () => {
12
+ const resizeObserver = new ResizeObserver(_temp);
13
+ resizeObserver.observe(banner.current);
14
+ return () => {
15
+ resizeObserver.disconnect();
16
+ };
17
+ };
18
+ t1 = [];
19
+ $[0] = t0;
20
+ $[1] = t1;
21
+ } else {
22
+ t0 = $[0];
23
+ t1 = $[1];
24
+ }
25
+ useEffect(t0, t1);
26
+ let t2;
27
+ if ($[2] !== props) {
28
+ t2 = /* @__PURE__ */ jsx("div", { ref: banner, ...props });
29
+ $[2] = props;
30
+ $[3] = t2;
31
+ } else {
32
+ t2 = $[3];
33
+ }
34
+ return t2;
35
+ };
36
+ function _temp(entries) {
37
+ for (const entry of entries) {
38
+ const {
39
+ height
40
+ } = entry.contentRect;
41
+ document.documentElement.style.setProperty("--nextra-banner-height", `${height}px`);
42
+ }
43
+ }
44
+ export {
45
+ ClientBanner
46
+ };
@@ -0,0 +1,51 @@
1
+ import { FC, HTMLAttributes } from 'react';
2
+
3
+ type BannerProps = HTMLAttributes<HTMLDivElement> & {
4
+ /**
5
+ * Closable banner or not.
6
+ * @default true
7
+ */
8
+ dismissible?: boolean;
9
+ /**
10
+ * Storage key to keep the banner state.
11
+ * @default 'nextra-banner'
12
+ */
13
+ storageKey?: string;
14
+ };
15
+ /**
16
+ * A built-in component to show a banner on the top of the website. It can be used to show a warning
17
+ * or a notice.
18
+ *
19
+ * @example
20
+ * ### Banner key
21
+ *
22
+ * A banner can be dismissed. By default, it's used by
23
+ * [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)
24
+ * to keep the banner state on the client.
25
+ *
26
+ * If you have updated your banner text, you should change the key to make sure the banner is shown
27
+ * again. The best practice is to always use a descriptive key for the current text, for example:
28
+ *
29
+ * ![Banner](https://nextra.site/assets/docs/banner.png)
30
+ *
31
+ * ```jsx filename="app/layout.jsx" {7-11}
32
+ * import { Layout } from 'my-nextra-theme'
33
+ * import { Banner } from 'nextra/components'
34
+ *
35
+ * export default function MyLayout({ children, ...props }) {
36
+ * return (
37
+ * <Layout>
38
+ * <Banner storageKey="2.0-release">
39
+ * <a href="https://nextra.site" target="_blank">
40
+ * 🎉 Nextra 2.0 is released. Read more →
41
+ * </a>
42
+ * </Banner>
43
+ * {children}
44
+ * </Layout>
45
+ * )
46
+ * }
47
+ * ```
48
+ */
49
+ declare const Banner: FC<BannerProps>;
50
+
51
+ export { Banner };
@@ -0,0 +1,93 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c as _c } from "react-compiler-runtime";
3
+ import cn from "clsx";
4
+ import { XIcon } from "../../icons/index.js";
5
+ import { CloseBannerButton } from "./close-banner-button.js";
6
+ import { ClientBanner } from "./index.client";
7
+ const BANNER_CLASS_NAME = "nextra-banner";
8
+ const Banner = (t0) => {
9
+ const $ = _c(18);
10
+ let className;
11
+ let props;
12
+ let t1;
13
+ let t2;
14
+ if ($[0] !== t0) {
15
+ ({
16
+ dismissible: t1,
17
+ storageKey: t2,
18
+ className,
19
+ ...props
20
+ } = t0);
21
+ $[0] = t0;
22
+ $[1] = className;
23
+ $[2] = props;
24
+ $[3] = t1;
25
+ $[4] = t2;
26
+ } else {
27
+ className = $[1];
28
+ props = $[2];
29
+ t1 = $[3];
30
+ t2 = $[4];
31
+ }
32
+ const dismissible = t1 === void 0 ? true : t1;
33
+ const storageKey = t2 === void 0 ? BANNER_CLASS_NAME : t2;
34
+ if (!props.children) {
35
+ return null;
36
+ }
37
+ const hideBannerScript = `try{document.querySelector('.${BANNER_CLASS_NAME}').classList.toggle('x:hidden',localStorage.getItem(${JSON.stringify(storageKey)}))}catch(e){}`;
38
+ let t3;
39
+ if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
40
+ t3 = cn(BANNER_CLASS_NAME, "x:max-md:sticky x:top-0 x:z-30 x:flex x:items-center x:px-2", "x:text-slate-50 x:dark:text-white x:bg-neutral-900 x:dark:bg-[linear-gradient(1deg,#383838,#212121)]", "x:print:[display:none]");
41
+ $[5] = t3;
42
+ } else {
43
+ t3 = $[5];
44
+ }
45
+ let t4;
46
+ if ($[6] !== className) {
47
+ t4 = cn("x:w-full x:text-center x:font-medium x:text-sm x:py-2.5", className);
48
+ $[6] = className;
49
+ $[7] = t4;
50
+ } else {
51
+ t4 = $[7];
52
+ }
53
+ let t5;
54
+ if ($[8] !== props || $[9] !== t4) {
55
+ t5 = /* @__PURE__ */ jsx("div", { className: t4, ...props });
56
+ $[8] = props;
57
+ $[9] = t4;
58
+ $[10] = t5;
59
+ } else {
60
+ t5 = $[10];
61
+ }
62
+ let t6;
63
+ if ($[11] !== dismissible || $[12] !== hideBannerScript || $[13] !== storageKey) {
64
+ t6 = dismissible && /* @__PURE__ */ jsxs(CloseBannerButton, { storageKey, children: [
65
+ /* @__PURE__ */ jsx("script", { dangerouslySetInnerHTML: {
66
+ __html: hideBannerScript
67
+ } }),
68
+ /* @__PURE__ */ jsx(XIcon, { height: "1em" })
69
+ ] });
70
+ $[11] = dismissible;
71
+ $[12] = hideBannerScript;
72
+ $[13] = storageKey;
73
+ $[14] = t6;
74
+ } else {
75
+ t6 = $[14];
76
+ }
77
+ let t7;
78
+ if ($[15] !== t5 || $[16] !== t6) {
79
+ t7 = /* @__PURE__ */ jsxs(ClientBanner, { className: t3, suppressHydrationWarning: true, children: [
80
+ t5,
81
+ t6
82
+ ] });
83
+ $[15] = t5;
84
+ $[16] = t6;
85
+ $[17] = t7;
86
+ } else {
87
+ t7 = $[17];
88
+ }
89
+ return t7;
90
+ };
91
+ export {
92
+ Banner
93
+ };
@@ -0,0 +1,63 @@
1
+ import { FC, HTMLAttributes } from 'react';
2
+
3
+ /**
4
+ * A built-in component to slightly expand content beyond the container's width, `<Bleed>` allows it
5
+ * to overflow on both sides.
6
+ *
7
+ * It's ideal for enhancing the presentation of graphical elements, offering a more immersive and
8
+ * visually appealing reading experience.
9
+ *
10
+ * @example
11
+ *
12
+ * You can put text, image, video or any component inside.
13
+ *
14
+ * ### Text
15
+ *
16
+ * <Bleed className="bg-white dark:bg-neutral-800 px-16 py-10 text-center border">
17
+ * _There is nothing to writing. All you do is sit down at a typewriter and **bleed**._
18
+ *
19
+ * — Ernest Hemingway
20
+ * </Bleed>
21
+ *
22
+ * ### Video
23
+ *
24
+ * <Bleed>
25
+ * <iframe
26
+ * className="aspect-video w-full"
27
+ * src="https://youtube.com/embed/3hccXiXI0u8"
28
+ * allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
29
+ * allowFullScreen
30
+ * />
31
+ * </Bleed>
32
+ *
33
+ * ### Full-bleed
34
+ *
35
+ * You can even make it full-bleed by using `<Bleed full>`:
36
+ *
37
+ * <Bleed full>![Nextra](/opengraph-image.jpeg)</Bleed>
38
+ *
39
+ * @usage
40
+ *
41
+ * ```mdx filename="MDX"
42
+ * import { Bleed } from 'nextra/components'
43
+ *
44
+ * <Bleed>Hey, I can use **Markdown** syntax here.</Bleed>
45
+ *
46
+ * <Bleed full>![Nextra](https://nextra.site/og.jpeg)</Bleed>
47
+ *
48
+ * <Bleed full>
49
+ * <iframe
50
+ * src="https://codesandbox.io/embed/swr-states-4une7"
51
+ * width="100%"
52
+ * height="500px"
53
+ * title="SWR-States"
54
+ * />
55
+ * </Bleed>
56
+ * ```
57
+ */
58
+ declare const Bleed: FC<{
59
+ /** Extend content to the very edges of its container. */
60
+ full: boolean;
61
+ } & HTMLAttributes<HTMLDivElement>>;
62
+
63
+ export { Bleed };
@@ -0,0 +1,54 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { c as _c } from "react-compiler-runtime";
3
+ import cn from "clsx";
4
+ const Bleed = (t0) => {
5
+ const $ = _c(12);
6
+ let className;
7
+ let full;
8
+ let props;
9
+ if ($[0] !== t0) {
10
+ ({
11
+ full,
12
+ className,
13
+ ...props
14
+ } = t0);
15
+ $[0] = t0;
16
+ $[1] = className;
17
+ $[2] = full;
18
+ $[3] = props;
19
+ } else {
20
+ className = $[1];
21
+ full = $[2];
22
+ props = $[3];
23
+ }
24
+ let t1;
25
+ if ($[4] !== full) {
26
+ t1 = full && ["x:xl:me-[calc(50%-50vw)] x:xl:ms-[calc(50%-50vw+16rem)]"];
27
+ $[4] = full;
28
+ $[5] = t1;
29
+ } else {
30
+ t1 = $[5];
31
+ }
32
+ let t2;
33
+ if ($[6] !== className || $[7] !== t1) {
34
+ t2 = cn("nextra-bleed x:relative x:-mx-4 x:mt-[1.25em] x:md:-mx-8 x:2xl:-mx-24", "x:z-1", t1, className);
35
+ $[6] = className;
36
+ $[7] = t1;
37
+ $[8] = t2;
38
+ } else {
39
+ t2 = $[8];
40
+ }
41
+ let t3;
42
+ if ($[9] !== props || $[10] !== t2) {
43
+ t3 = /* @__PURE__ */ jsx("div", { className: t2, ...props });
44
+ $[9] = props;
45
+ $[10] = t2;
46
+ $[11] = t3;
47
+ } else {
48
+ t3 = $[11];
49
+ }
50
+ return t3;
51
+ };
52
+ export {
53
+ Bleed
54
+ };
@@ -0,0 +1,9 @@
1
+ import { ButtonProps as ButtonProps$1 } from '@headlessui/react';
2
+ import { FC } from 'react';
3
+
4
+ type ButtonProps = ButtonProps$1 & {
5
+ variant?: 'outline' | 'default';
6
+ };
7
+ declare const Button: FC<ButtonProps>;
8
+
9
+ export { Button, type ButtonProps };
@@ -0,0 +1,55 @@
1
+ "use client";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { c as _c } from "react-compiler-runtime";
4
+ import { Button as HeadlessButton } from "@headlessui/react";
5
+ import cn from "clsx";
6
+ import { classes } from "../mdx-components/pre/index.js";
7
+ const Button = (t0) => {
8
+ const $ = _c(12);
9
+ let children;
10
+ let className;
11
+ let props;
12
+ let t1;
13
+ if ($[0] !== t0) {
14
+ ({
15
+ children,
16
+ className,
17
+ variant: t1,
18
+ ...props
19
+ } = t0);
20
+ $[0] = t0;
21
+ $[1] = children;
22
+ $[2] = className;
23
+ $[3] = props;
24
+ $[4] = t1;
25
+ } else {
26
+ children = $[1];
27
+ className = $[2];
28
+ props = $[3];
29
+ t1 = $[4];
30
+ }
31
+ const variant = t1 === void 0 ? "default" : t1;
32
+ let t2;
33
+ if ($[5] !== className || $[6] !== variant) {
34
+ t2 = (args) => cn("x:transition x:cursor-pointer", args.focus && "x:nextra-focus", variant === "outline" && [classes.border, "x:rounded-md x:p-1.5"], typeof className === "function" ? className(args) : className);
35
+ $[5] = className;
36
+ $[6] = variant;
37
+ $[7] = t2;
38
+ } else {
39
+ t2 = $[7];
40
+ }
41
+ let t3;
42
+ if ($[8] !== children || $[9] !== props || $[10] !== t2) {
43
+ t3 = /* @__PURE__ */ jsx(HeadlessButton, { className: t2, ...props, children });
44
+ $[8] = children;
45
+ $[9] = props;
46
+ $[10] = t2;
47
+ $[11] = t3;
48
+ } else {
49
+ t3 = $[11];
50
+ }
51
+ return t3;
52
+ };
53
+ export {
54
+ Button
55
+ };