@publish.os/nextjs 0.0.1-alpha.5 → 0.0.1-alpha.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 (400) hide show
  1. package/README.md +3 -5
  2. package/compiler-assets/nextjs/defaults/app/globals.css +6 -0
  3. package/compiler-assets/nextjs/defaults/group/layout.tsx +23 -0
  4. package/compiler-assets/nextjs/defaults/group/leaf.tsx +48 -0
  5. package/compiler-assets/nextjs/defaults/group/page.tsx +50 -0
  6. package/compiler-assets/nextjs/defaults/project/next.config.mjs +45 -0
  7. package/compiler-assets/nextjs/defaults/project/postcss.config.mjs +5 -0
  8. package/compiler-assets/nextjs/defaults/project/tsconfig.json.template +41 -0
  9. package/compiler-assets/nextjs/defaults/root/css/animation.css +90 -0
  10. package/compiler-assets/nextjs/defaults/root/css/components/dialog.css +21 -0
  11. package/compiler-assets/nextjs/defaults/root/css/components/drawer.css +21 -0
  12. package/compiler-assets/nextjs/defaults/root/css/components/menu.css +23 -0
  13. package/compiler-assets/nextjs/defaults/root/css/components/navigation-menu.css +25 -0
  14. package/compiler-assets/nextjs/defaults/root/css/components/popover.css +17 -0
  15. package/compiler-assets/nextjs/defaults/root/css/components/select.css +23 -0
  16. package/compiler-assets/nextjs/defaults/root/css/components/toast.css +19 -0
  17. package/compiler-assets/nextjs/defaults/root/css/components/tooltip.css +15 -0
  18. package/compiler-assets/nextjs/defaults/root/css/layout.css +22 -0
  19. package/compiler-assets/nextjs/defaults/root/css/media.css +81 -0
  20. package/compiler-assets/nextjs/defaults/root/css/radius.css +49 -0
  21. package/compiler-assets/nextjs/defaults/root/css/scrollbar.css +43 -0
  22. package/compiler-assets/nextjs/defaults/root/css/shadow.css +145 -0
  23. package/compiler-assets/nextjs/defaults/root/css/typography.css +607 -0
  24. package/compiler-assets/nextjs/defaults/root/css/zindex.css +39 -0
  25. package/compiler-assets/nextjs/defaults/root/globals.css +191 -0
  26. package/compiler-assets/nextjs/defaults/root/layout.tsx +19 -0
  27. package/compiler-assets/nextjs/defaults/root/page.tsx +61 -0
  28. package/compiler-assets/nextjs/defaults/root/theme.css +50 -0
  29. package/compiler-assets/nextjs/defaults/source/_internal/logger.ts +21 -0
  30. package/compiler-assets/nextjs/shims/generated-group-layout.tsx +19 -0
  31. package/compiler-assets/nextjs/shims/generated-group-page.tsx +18 -0
  32. package/compiler-assets/nextjs/shims/generated-leaf-page.tsx +21 -0
  33. package/compiler-assets/nextjs/shims/global-layout.tsx +134 -0
  34. package/compiler-assets/nextjs/shims/markdown-route.ts +29 -0
  35. package/compiler-assets/nextjs/shims/og-image-route.ts +18 -0
  36. package/compiler-assets/nextjs/shims/powered-by-footer.tsx +40 -0
  37. package/compiler-assets/nextjs/shims/providers.tsx +13 -0
  38. package/compiler-assets/nextjs/shims/proxy.ts +317 -0
  39. package/compiler-assets/nextjs/shims/publish-os-theme-provider.tsx +77 -0
  40. package/compiler-assets/nextjs/shims/root-page.tsx +13 -0
  41. package/compiler-assets/nextjs/shims/theme-defaults.css +177 -0
  42. package/dist/{kernel/components/ui/button.d.cts → button-CFdx-ohV.d.ts} +1 -3
  43. package/dist/cache/tags.js +6 -14
  44. package/dist/compiler.d.ts +100 -0
  45. package/dist/compiler.js +13379 -0
  46. package/dist/config/createNextConfig.d.ts +2 -1
  47. package/dist/config/createNextConfig.js +16 -12
  48. package/dist/icons.d.ts +1 -0
  49. package/dist/icons.js +2 -0
  50. package/dist/index.d.ts +303 -15
  51. package/dist/index.js +30 -1196
  52. package/dist/kernel/components/blocks/AgentActions.d.ts +9 -3
  53. package/dist/kernel/components/blocks/AgentActions.js +114 -200
  54. package/dist/kernel/components/blocks/animated-icon-swap.js +4 -25
  55. package/dist/kernel/components/blocks/color-palette.js +107 -157
  56. package/dist/kernel/components/blocks/design-system-preview.d.ts +38 -6
  57. package/dist/kernel/components/blocks/design-system-preview.js +44 -52
  58. package/dist/kernel/components/blocks/link-playground.js +23 -71
  59. package/dist/kernel/components/blocks/logo-block.js +19 -48
  60. package/dist/kernel/components/blocks/nav-breadcrumb.d.ts +1 -1
  61. package/dist/kernel/components/blocks/nav-breadcrumb.js +28 -52
  62. package/dist/kernel/components/blocks/navbar.d.ts +1 -1
  63. package/dist/kernel/components/blocks/navbar.js +14 -41
  64. package/dist/kernel/components/blocks/navigation-progress-playground.js +56 -149
  65. package/dist/kernel/components/blocks/navigation-progress.js +53 -157
  66. package/dist/kernel/components/blocks/next-prev.d.ts +1 -1
  67. package/dist/kernel/components/blocks/next-prev.js +16 -42
  68. package/dist/kernel/components/blocks/page-list.d.ts +1 -1
  69. package/dist/kernel/components/blocks/page-list.js +11 -16
  70. package/dist/kernel/components/blocks/search.d.ts +13 -2
  71. package/dist/kernel/components/blocks/search.js +116 -247
  72. package/dist/kernel/components/blocks/sidebar-node.d.ts +2 -2
  73. package/dist/kernel/components/blocks/sidebar-node.js +56 -95
  74. package/dist/kernel/components/blocks/sidebar.d.ts +5 -23
  75. package/dist/kernel/components/blocks/sidebar.js +35 -103
  76. package/dist/kernel/components/blocks/theme-toggle.d.ts +7 -3
  77. package/dist/kernel/components/blocks/theme-toggle.js +2 -2
  78. package/dist/kernel/components/blocks/toc.js +42 -178
  79. package/dist/kernel/components/mdx/components/blockquote.js +3 -24
  80. package/dist/kernel/components/mdx/components/callout.d.ts +1 -1
  81. package/dist/kernel/components/mdx/components/callout.js +15 -47
  82. package/dist/kernel/components/mdx/components/code-block.js +2 -2
  83. package/dist/kernel/components/mdx/components/figure-caption.js +6 -24
  84. package/dist/kernel/components/mdx/components/figure.js +9 -36
  85. package/dist/kernel/components/mdx/components/footnotes.js +3 -24
  86. package/dist/kernel/components/mdx/components/heading-copy-link.js +13 -37
  87. package/dist/kernel/components/mdx/components/heading.d.ts +8 -3
  88. package/dist/kernel/components/mdx/components/heading.js +32 -116
  89. package/dist/kernel/components/mdx/components/hr.d.ts +5 -3
  90. package/dist/kernel/components/mdx/components/hr.js +2 -2
  91. package/dist/kernel/components/mdx/components/image-zoom.js +2 -3
  92. package/dist/kernel/components/mdx/components/image.js +23 -63
  93. package/dist/kernel/components/mdx/components/inline-code.js +3 -24
  94. package/dist/kernel/components/mdx/components/kbd.d.ts +9 -4
  95. package/dist/kernel/components/mdx/components/kbd.js +2 -2
  96. package/dist/kernel/components/mdx/components/link.d.ts +1 -2
  97. package/dist/kernel/components/mdx/components/link.js +2 -2
  98. package/dist/kernel/components/mdx/components/paragraph.js +13 -41
  99. package/dist/kernel/components/mdx/components/pre.js +3 -24
  100. package/dist/kernel/components/mdx/components/strikethrough.js +6 -24
  101. package/dist/kernel/components/mdx/components/table.js +2 -2
  102. package/dist/kernel/components/mdx/components/task-list.js +6 -28
  103. package/dist/kernel/components/mdx/components/video-player.js +53 -88
  104. package/dist/kernel/components/mdx/components/video.js +27 -75
  105. package/dist/kernel/components/mdx/error-boundary.d.ts +1 -1
  106. package/dist/kernel/components/mdx/error-boundary.js +12 -15
  107. package/dist/kernel/components/mdx/error-fallback.js +4 -4
  108. package/dist/kernel/components/mdx/mdx.d.ts +68 -11
  109. package/dist/kernel/components/mdx/mdx.js +29 -29
  110. package/dist/kernel/components/mdx/rehype-heading-ids.js +11 -67
  111. package/dist/kernel/components/mdx/types.d.ts +1 -1
  112. package/dist/kernel/components/ui/accordion.js +3 -26
  113. package/dist/kernel/components/ui/breadcrumb-trail.d.ts +26 -8
  114. package/dist/kernel/components/ui/breadcrumb-trail.js +32 -79
  115. package/dist/kernel/components/ui/breadcrumb.d.ts +2 -6
  116. package/dist/kernel/components/ui/breadcrumb.js +21 -70
  117. package/dist/kernel/components/ui/button-group.d.ts +4 -3
  118. package/dist/kernel/components/ui/button-group.js +7 -30
  119. package/dist/kernel/components/ui/button.js +13 -36
  120. package/dist/kernel/components/ui/card.d.ts +2 -2
  121. package/dist/kernel/components/ui/card.js +2 -23
  122. package/dist/kernel/components/ui/dialog.d.ts +9 -9
  123. package/dist/kernel/components/ui/dialog.js +15 -33
  124. package/dist/kernel/components/ui/drawer.d.ts +10 -10
  125. package/dist/kernel/components/ui/drawer.js +15 -33
  126. package/dist/kernel/components/ui/input.js +6 -30
  127. package/dist/kernel/components/ui/kbd.js +10 -31
  128. package/dist/kernel/components/ui/link.d.ts +1 -1
  129. package/dist/kernel/components/ui/link.js +53 -104
  130. package/dist/kernel/components/ui/menu.d.ts +21 -21
  131. package/dist/kernel/components/ui/menu.js +14 -36
  132. package/dist/kernel/components/ui/meta-key.d.ts +9 -4
  133. package/dist/kernel/components/ui/meta-key.js +2 -2
  134. package/dist/kernel/components/ui/navigation-menu.d.ts +14 -14
  135. package/dist/kernel/components/ui/navigation-menu.js +9 -30
  136. package/dist/kernel/components/ui/popover.d.ts +10 -10
  137. package/dist/kernel/components/ui/popover.js +13 -34
  138. package/dist/kernel/components/ui/progress.js +2 -25
  139. package/dist/kernel/components/ui/scroll-area.js +39 -118
  140. package/dist/kernel/components/ui/select.d.ts +15 -15
  141. package/dist/kernel/components/ui/select.js +19 -35
  142. package/dist/kernel/components/ui/separator.js +2 -25
  143. package/dist/kernel/components/ui/table.js +2 -23
  144. package/dist/kernel/components/ui/tabs.js +39 -99
  145. package/dist/kernel/components/ui/tag.d.ts +2 -2
  146. package/dist/kernel/components/ui/tag.js +4 -25
  147. package/dist/kernel/components/ui/text.d.ts +2 -2
  148. package/dist/kernel/components/ui/text.js +112 -131
  149. package/dist/kernel/components/ui/theme-toggle.d.ts +18 -4
  150. package/dist/kernel/components/ui/theme-toggle.js +18 -44
  151. package/dist/kernel/components/ui/toast.d.ts +10 -10
  152. package/dist/kernel/components/ui/toast.js +13 -35
  153. package/dist/kernel/components/ui/tooltip.d.ts +8 -8
  154. package/dist/kernel/components/ui/tooltip.js +9 -30
  155. package/dist/kernel/defaults.registry.d.ts +61 -70
  156. package/dist/kernel/defaults.registry.js +61 -69
  157. package/dist/kernel/framework-icons.d.ts +1 -0
  158. package/dist/kernel/framework-icons.js +39 -0
  159. package/dist/kernel/routes/agent/markdown.js +36 -65
  160. package/dist/kernel/routes/layouts/group.d.ts +1 -1
  161. package/dist/kernel/routes/layouts/group.js +20 -109
  162. package/dist/kernel/routes/metadata/feed.d.ts +1 -2
  163. package/dist/kernel/routes/metadata/feed.js +46 -127
  164. package/dist/kernel/routes/metadata/llms.d.ts +1 -2
  165. package/dist/kernel/routes/metadata/llms.js +42 -120
  166. package/dist/kernel/routes/metadata/og-image.d.ts +11 -1
  167. package/dist/kernel/routes/metadata/og-image.js +264 -198
  168. package/dist/kernel/routes/metadata/robots.d.ts +1 -2
  169. package/dist/kernel/routes/metadata/robots.js +21 -90
  170. package/dist/kernel/routes/metadata/sitemap.d.ts +1 -2
  171. package/dist/kernel/routes/metadata/sitemap.js +36 -102
  172. package/dist/kernel/routes/pages/group.d.ts +1 -1
  173. package/dist/kernel/routes/pages/group.js +42 -137
  174. package/dist/kernel/routes/pages/leaf.d.ts +1 -1
  175. package/dist/kernel/routes/pages/leaf.js +74 -213
  176. package/dist/kernel/routes/pages/root.d.ts +1 -1
  177. package/dist/kernel/routes/pages/root.js +37 -108
  178. package/dist/keyboard-shortcuts.js +69 -141
  179. package/dist/{kernel/components/ui/link.d.cts → link-CYaCRDb6.d.ts} +9 -5
  180. package/dist/resolvers/manifest-resolver.d.ts +3 -3
  181. package/dist/resolvers/manifest-resolver.js +15 -21
  182. package/dist/{kernel/routes/metadata/og-image.d.cts → route-metadata-og-image-BeKKFHg7.d.ts} +12 -16
  183. package/dist/search.d.ts +81 -4
  184. package/dist/search.js +124 -195
  185. package/dist/{kernel/components/blocks/sidebar.d.cts → sidebar-types-Bgchdfd6.d.ts} +2 -10
  186. package/dist/theme-scope.d.ts +15 -0
  187. package/dist/theme-scope.js +23 -0
  188. package/dist/types-B_b3C0U6.d.ts +63 -0
  189. package/dist/types-CIwwieNw.d.ts +127 -0
  190. package/dist/types-DHBm7-j6.d.ts +57 -0
  191. package/dist/types-sM2g9nW0.d.ts +12 -0
  192. package/dist/types.d.ts +0 -1
  193. package/dist/types.js +1 -1
  194. package/dist/utils/cn.d.ts +5 -9
  195. package/dist/utils/cn.js +13 -7
  196. package/dist/utils/heading-ids.js +20 -47
  197. package/dist/utils/pretty-date.js +7 -13
  198. package/init/seed/minimal/publish.os/assets/logo/publish-dev-logo.dark.png +0 -0
  199. package/init/seed/minimal/publish.os/assets/logo/publish-dev-logo.png +0 -0
  200. package/init/seed/minimal/publish.os/docs/content/get-started.mdx +54 -0
  201. package/init/seed/minimal/publish.os/docs/content/groups.mdx +31 -0
  202. package/init/seed/minimal/publish.os/docs/content/theme.mdx +64 -0
  203. package/init/seed/minimal/publish.os/publish.os.config.json +21 -0
  204. package/init/seed/minimal/publish.os/theme.css +47 -0
  205. package/init/seed/minimal/seed.json +13 -0
  206. package/package.json +470 -40
  207. package/release/{package.json → app/lucide/package.json} +14 -7
  208. package/release/app/lucide/pnpm-lock.yaml.template +2905 -0
  209. package/release/app/lucide/pnpm-workspace.yaml +11 -0
  210. package/release/app/phosphor/package.json +30 -0
  211. package/release/app/phosphor/pnpm-lock.yaml.template +2908 -0
  212. package/release/app/phosphor/pnpm-workspace.yaml +11 -0
  213. package/release/app/tabler/package.json +30 -0
  214. package/release/app/tabler/pnpm-lock.yaml.template +2911 -0
  215. package/release/app/tabler/pnpm-workspace.yaml +11 -0
  216. package/release/compiler/package.json +20 -0
  217. package/release/compiler/pnpm-lock.yaml.template +2432 -0
  218. package/release/compiler/pnpm-workspace.yaml +11 -0
  219. package/release/release.json +31 -7
  220. package/dist/cache/tags.cjs +0 -79
  221. package/dist/cache/tags.d.cts +0 -13
  222. package/dist/config/createNextConfig.cjs +0 -52
  223. package/dist/config/createNextConfig.d.cts +0 -8
  224. package/dist/config.cjs +0 -78
  225. package/dist/config.d.cts +0 -101
  226. package/dist/config.d.ts +0 -101
  227. package/dist/config.js +0 -48
  228. package/dist/index.cjs +0 -1266
  229. package/dist/index.d.cts +0 -18
  230. package/dist/kernel/components/blocks/AgentActions.cjs +0 -425
  231. package/dist/kernel/components/blocks/AgentActions.d.cts +0 -52
  232. package/dist/kernel/components/blocks/animated-icon-swap.cjs +0 -101
  233. package/dist/kernel/components/blocks/animated-icon-swap.d.cts +0 -16
  234. package/dist/kernel/components/blocks/color-palette.cjs +0 -413
  235. package/dist/kernel/components/blocks/color-palette.d.cts +0 -7
  236. package/dist/kernel/components/blocks/design-system-preview.cjs +0 -593
  237. package/dist/kernel/components/blocks/design-system-preview.d.cts +0 -29
  238. package/dist/kernel/components/blocks/link-playground.cjs +0 -816
  239. package/dist/kernel/components/blocks/link-playground.d.cts +0 -5
  240. package/dist/kernel/components/blocks/logo-block.cjs +0 -156
  241. package/dist/kernel/components/blocks/logo-block.d.cts +0 -21
  242. package/dist/kernel/components/blocks/nav-breadcrumb.cjs +0 -122
  243. package/dist/kernel/components/blocks/nav-breadcrumb.d.cts +0 -11
  244. package/dist/kernel/components/blocks/navbar.cjs +0 -154
  245. package/dist/kernel/components/blocks/navbar.d.cts +0 -16
  246. package/dist/kernel/components/blocks/navigation-progress-playground.cjs +0 -735
  247. package/dist/kernel/components/blocks/navigation-progress-playground.d.cts +0 -5
  248. package/dist/kernel/components/blocks/navigation-progress.cjs +0 -270
  249. package/dist/kernel/components/blocks/navigation-progress.d.cts +0 -16
  250. package/dist/kernel/components/blocks/next-prev.cjs +0 -142
  251. package/dist/kernel/components/blocks/next-prev.d.cts +0 -11
  252. package/dist/kernel/components/blocks/page-list.cjs +0 -59
  253. package/dist/kernel/components/blocks/page-list.d.cts +0 -11
  254. package/dist/kernel/components/blocks/search.cjs +0 -717
  255. package/dist/kernel/components/blocks/search.d.cts +0 -77
  256. package/dist/kernel/components/blocks/sidebar-node.cjs +0 -309
  257. package/dist/kernel/components/blocks/sidebar-node.d.cts +0 -8
  258. package/dist/kernel/components/blocks/sidebar.cjs +0 -317
  259. package/dist/kernel/components/blocks/theme-toggle.cjs +0 -31
  260. package/dist/kernel/components/blocks/theme-toggle.d.cts +0 -6
  261. package/dist/kernel/components/blocks/toc.cjs +0 -356
  262. package/dist/kernel/components/blocks/toc.d.cts +0 -10
  263. package/dist/kernel/components/mdx/components/blockquote.cjs +0 -66
  264. package/dist/kernel/components/mdx/components/blockquote.d.cts +0 -6
  265. package/dist/kernel/components/mdx/components/callout.cjs +0 -137
  266. package/dist/kernel/components/mdx/components/callout.d.cts +0 -18
  267. package/dist/kernel/components/mdx/components/code-block.cjs +0 -39
  268. package/dist/kernel/components/mdx/components/code-block.d.cts +0 -9
  269. package/dist/kernel/components/mdx/components/figure-caption.cjs +0 -63
  270. package/dist/kernel/components/mdx/components/figure-caption.d.cts +0 -6
  271. package/dist/kernel/components/mdx/components/figure.cjs +0 -78
  272. package/dist/kernel/components/mdx/components/figure.d.cts +0 -10
  273. package/dist/kernel/components/mdx/components/footnotes.cjs +0 -66
  274. package/dist/kernel/components/mdx/components/footnotes.d.cts +0 -6
  275. package/dist/kernel/components/mdx/components/heading-copy-link.cjs +0 -108
  276. package/dist/kernel/components/mdx/components/heading-copy-link.d.cts +0 -23
  277. package/dist/kernel/components/mdx/components/heading.cjs +0 -166
  278. package/dist/kernel/components/mdx/components/heading.d.cts +0 -8
  279. package/dist/kernel/components/mdx/components/hr.cjs +0 -34
  280. package/dist/kernel/components/mdx/components/hr.d.cts +0 -9
  281. package/dist/kernel/components/mdx/components/image-zoom.cjs +0 -49
  282. package/dist/kernel/components/mdx/components/image-zoom.d.cts +0 -10
  283. package/dist/kernel/components/mdx/components/image.cjs +0 -192
  284. package/dist/kernel/components/mdx/components/image.d.cts +0 -21
  285. package/dist/kernel/components/mdx/components/inline-code.cjs +0 -66
  286. package/dist/kernel/components/mdx/components/inline-code.d.cts +0 -6
  287. package/dist/kernel/components/mdx/components/kbd.cjs +0 -34
  288. package/dist/kernel/components/mdx/components/kbd.d.cts +0 -10
  289. package/dist/kernel/components/mdx/components/link.cjs +0 -49
  290. package/dist/kernel/components/mdx/components/link.d.cts +0 -11
  291. package/dist/kernel/components/mdx/components/paragraph.cjs +0 -87
  292. package/dist/kernel/components/mdx/components/paragraph.d.cts +0 -5
  293. package/dist/kernel/components/mdx/components/pre.cjs +0 -66
  294. package/dist/kernel/components/mdx/components/pre.d.cts +0 -6
  295. package/dist/kernel/components/mdx/components/strikethrough.cjs +0 -63
  296. package/dist/kernel/components/mdx/components/strikethrough.d.cts +0 -6
  297. package/dist/kernel/components/mdx/components/table.cjs +0 -59
  298. package/dist/kernel/components/mdx/components/table.d.cts +0 -10
  299. package/dist/kernel/components/mdx/components/task-list.cjs +0 -88
  300. package/dist/kernel/components/mdx/components/task-list.d.cts +0 -8
  301. package/dist/kernel/components/mdx/components/video-player.cjs +0 -173
  302. package/dist/kernel/components/mdx/components/video-player.d.cts +0 -18
  303. package/dist/kernel/components/mdx/components/video.cjs +0 -185
  304. package/dist/kernel/components/mdx/components/video.d.cts +0 -15
  305. package/dist/kernel/components/mdx/error-boundary.cjs +0 -62
  306. package/dist/kernel/components/mdx/error-boundary.d.cts +0 -8
  307. package/dist/kernel/components/mdx/error-fallback.cjs +0 -58
  308. package/dist/kernel/components/mdx/error-fallback.d.cts +0 -9
  309. package/dist/kernel/components/mdx/mdx.cjs +0 -141
  310. package/dist/kernel/components/mdx/mdx.d.cts +0 -22
  311. package/dist/kernel/components/mdx/rehype-heading-ids.cjs +0 -113
  312. package/dist/kernel/components/mdx/rehype-heading-ids.d.cts +0 -10
  313. package/dist/kernel/components/mdx/types.cjs +0 -18
  314. package/dist/kernel/components/mdx/types.d.cts +0 -18
  315. package/dist/kernel/components/ui/accordion.cjs +0 -104
  316. package/dist/kernel/components/ui/accordion.d.cts +0 -16
  317. package/dist/kernel/components/ui/breadcrumb-trail.cjs +0 -238
  318. package/dist/kernel/components/ui/breadcrumb-trail.d.cts +0 -13
  319. package/dist/kernel/components/ui/breadcrumb.cjs +0 -399
  320. package/dist/kernel/components/ui/breadcrumb.d.cts +0 -52
  321. package/dist/kernel/components/ui/button-group.cjs +0 -143
  322. package/dist/kernel/components/ui/button-group.d.cts +0 -19
  323. package/dist/kernel/components/ui/button.cjs +0 -139
  324. package/dist/kernel/components/ui/card.cjs +0 -133
  325. package/dist/kernel/components/ui/card.d.cts +0 -17
  326. package/dist/kernel/components/ui/dialog.cjs +0 -149
  327. package/dist/kernel/components/ui/dialog.d.cts +0 -22
  328. package/dist/kernel/components/ui/drawer.cjs +0 -163
  329. package/dist/kernel/components/ui/drawer.d.cts +0 -24
  330. package/dist/kernel/components/ui/input.cjs +0 -96
  331. package/dist/kernel/components/ui/input.d.cts +0 -18
  332. package/dist/kernel/components/ui/kbd.cjs +0 -105
  333. package/dist/kernel/components/ui/kbd.d.cts +0 -13
  334. package/dist/kernel/components/ui/link.cjs +0 -253
  335. package/dist/kernel/components/ui/menu.cjs +0 -301
  336. package/dist/kernel/components/ui/menu.d.cts +0 -70
  337. package/dist/kernel/components/ui/meta-key.cjs +0 -34
  338. package/dist/kernel/components/ui/meta-key.d.cts +0 -12
  339. package/dist/kernel/components/ui/navigation-menu.cjs +0 -253
  340. package/dist/kernel/components/ui/navigation-menu.d.cts +0 -47
  341. package/dist/kernel/components/ui/popover.cjs +0 -168
  342. package/dist/kernel/components/ui/popover.d.cts +0 -24
  343. package/dist/kernel/components/ui/progress.cjs +0 -112
  344. package/dist/kernel/components/ui/progress.d.cts +0 -16
  345. package/dist/kernel/components/ui/scroll-area.cjs +0 -413
  346. package/dist/kernel/components/ui/scroll-area.d.cts +0 -58
  347. package/dist/kernel/components/ui/select.cjs +0 -244
  348. package/dist/kernel/components/ui/select.d.cts +0 -40
  349. package/dist/kernel/components/ui/separator.cjs +0 -73
  350. package/dist/kernel/components/ui/separator.d.cts +0 -8
  351. package/dist/kernel/components/ui/table.cjs +0 -131
  352. package/dist/kernel/components/ui/table.d.cts +0 -11
  353. package/dist/kernel/components/ui/tabs.cjs +0 -450
  354. package/dist/kernel/components/ui/tabs.d.cts +0 -82
  355. package/dist/kernel/components/ui/tag.cjs +0 -104
  356. package/dist/kernel/components/ui/tag.d.cts +0 -14
  357. package/dist/kernel/components/ui/text.cjs +0 -184
  358. package/dist/kernel/components/ui/text.d.cts +0 -17
  359. package/dist/kernel/components/ui/theme-toggle.cjs +0 -108
  360. package/dist/kernel/components/ui/theme-toggle.d.cts +0 -10
  361. package/dist/kernel/components/ui/toast.cjs +0 -154
  362. package/dist/kernel/components/ui/toast.d.cts +0 -26
  363. package/dist/kernel/components/ui/tooltip.cjs +0 -127
  364. package/dist/kernel/components/ui/tooltip.d.cts +0 -20
  365. package/dist/kernel/defaults.registry.cjs +0 -541
  366. package/dist/kernel/defaults.registry.d.cts +0 -469
  367. package/dist/kernel/routes/agent/markdown.cjs +0 -202
  368. package/dist/kernel/routes/agent/markdown.d.cts +0 -58
  369. package/dist/kernel/routes/layouts/group.cjs +0 -181
  370. package/dist/kernel/routes/layouts/group.d.cts +0 -20
  371. package/dist/kernel/routes/metadata/feed.cjs +0 -293
  372. package/dist/kernel/routes/metadata/feed.d.cts +0 -20
  373. package/dist/kernel/routes/metadata/llms.cjs +0 -239
  374. package/dist/kernel/routes/metadata/llms.d.cts +0 -26
  375. package/dist/kernel/routes/metadata/og-image.cjs +0 -630
  376. package/dist/kernel/routes/metadata/robots.cjs +0 -148
  377. package/dist/kernel/routes/metadata/robots.d.cts +0 -6
  378. package/dist/kernel/routes/metadata/sitemap.cjs +0 -192
  379. package/dist/kernel/routes/metadata/sitemap.d.cts +0 -8
  380. package/dist/kernel/routes/pages/group.cjs +0 -263
  381. package/dist/kernel/routes/pages/group.d.cts +0 -17
  382. package/dist/kernel/routes/pages/leaf.cjs +0 -421
  383. package/dist/kernel/routes/pages/leaf.d.cts +0 -36
  384. package/dist/kernel/routes/pages/root.cjs +0 -229
  385. package/dist/kernel/routes/pages/root.d.cts +0 -16
  386. package/dist/keyboard-shortcuts.cjs +0 -345
  387. package/dist/keyboard-shortcuts.d.cts +0 -34
  388. package/dist/resolvers/manifest-resolver.cjs +0 -111
  389. package/dist/resolvers/manifest-resolver.d.cts +0 -13
  390. package/dist/search.cjs +0 -411
  391. package/dist/search.d.cts +0 -20
  392. package/dist/types.cjs +0 -30
  393. package/dist/types.d.cts +0 -269
  394. package/dist/utils/cn.cjs +0 -49
  395. package/dist/utils/cn.d.cts +0 -15
  396. package/dist/utils/heading-ids.cjs +0 -119
  397. package/dist/utils/heading-ids.d.cts +0 -15
  398. package/dist/utils/pretty-date.cjs +0 -55
  399. package/dist/utils/pretty-date.d.cts +0 -6
  400. package/release/pnpm-lock.yaml +0 -1215
@@ -0,0 +1,11 @@
1
+ minimumReleaseAge: 1440
2
+ minimumReleaseAgeExclude:
3
+ - "@publish.os/cli"
4
+ - "@publish.os/nextjs"
5
+ - "@next/*"
6
+ - "next"
7
+
8
+ strictDepBuilds: true
9
+ allowBuilds:
10
+ next: true
11
+ sharp: true
@@ -1,22 +1,24 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "runtime": "nextjs",
4
- "version": "0.0.1-alpha.5",
4
+ "version": "0.0.1-alpha.7",
5
5
  "cliProtocol": 1,
6
- "builderProtocol": 1,
7
- "node": ">=22.13",
8
- "pnpm": "11.13.0",
6
+ "node": "24.x",
7
+ "pnpm": "12.3.0",
9
8
  "installScripts": {
10
9
  "minimumReleaseAge": 1440,
11
- "minimumReleaseAgeExclude": ["@publish.os/cli", "@publish.os/nextjs"],
10
+ "minimumReleaseAgeExclude": [
11
+ "@publish.os/cli",
12
+ "@publish.os/nextjs",
13
+ "@next/*",
14
+ "next"
15
+ ],
12
16
  "strictDepBuilds": true,
13
17
  "allowBuilds": {
14
18
  "next": true,
15
19
  "sharp": true
16
20
  }
17
21
  },
18
- "packageJsonSha256": "614535ab9d54da33dc2156278931c3f82942ab6d081c8643a740735e2d489c8b",
19
- "lockfileSha256": "6f2689008c4e43958258b47e207958f03c6d265d80d4da9a6d784861e0638dd7",
20
22
  "configurableDependencies": {
21
23
  "icons": {
22
24
  "lucide": {
@@ -35,5 +37,27 @@
35
37
  "integrity": "sha512-XG7t2DYf3DyHT5jxFNp5xyLVbL4hMJYJhiSdHADzAjLRYfL7AnjlRfiHDHeXxkb2N103rEIvTsBRazxXtAUz2g=="
36
38
  }
37
39
  }
40
+ },
41
+ "graphs": {
42
+ "compiler": {
43
+ "packageJsonSha256": "99ec12fe56a64a303a672d8cf65848bb2808b88ac1e275f9a28100265186e08a",
44
+ "pnpmWorkspaceSha256": "7f31d448dec4c55e86208675d9502baba17639fbed2f70b24c6621e5465aa304",
45
+ "lockfileTemplateSha256": "6ed03a72dcd84ea225f04b5e5efe42dd04b71f43f83c92783ee6c835b433d303"
46
+ },
47
+ "app/lucide": {
48
+ "packageJsonSha256": "3ce798aba1e82073fc2e683a3cbbb30d05d2524bf8b6592b402425755f2a537c",
49
+ "pnpmWorkspaceSha256": "7f31d448dec4c55e86208675d9502baba17639fbed2f70b24c6621e5465aa304",
50
+ "lockfileTemplateSha256": "3d653264b6e068d58092441cdf6bb0e5fcb35c2814f522ea11275d3606db51ef"
51
+ },
52
+ "app/phosphor": {
53
+ "packageJsonSha256": "ab674f402aa813035d849aa8258e9cef53492a208bbeac585f922b6e2d62d3cd",
54
+ "pnpmWorkspaceSha256": "7f31d448dec4c55e86208675d9502baba17639fbed2f70b24c6621e5465aa304",
55
+ "lockfileTemplateSha256": "450e9cd991d35af866237b42662bfb7d6d11bdf0b267523ac52d825a531ab00a"
56
+ },
57
+ "app/tabler": {
58
+ "packageJsonSha256": "bc677a24eb343ad969b228d00750ce777d536e15b6f275258893eafc5c18f01b",
59
+ "pnpmWorkspaceSha256": "7f31d448dec4c55e86208675d9502baba17639fbed2f70b24c6621e5465aa304",
60
+ "lockfileTemplateSha256": "e43bd7b4ad906045208aa23110932e32f2ff64c9d23f3ca7a03603f873e62419"
61
+ }
38
62
  }
39
63
  }
@@ -1,79 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/cache/tags.ts
21
- var tags_exports = {};
22
- __export(tags_exports, {
23
- tags: () => tags
24
- });
25
- module.exports = __toCommonJS(tags_exports);
26
- var import_node_crypto = require("crypto");
27
- var MAX_TAG_LEN = 256;
28
- var MAX_SEGMENT_LEN = 80;
29
- var TAG_PATTERN = /^[a-z0-9:_./-]+$/;
30
- function sha256(value) {
31
- return (0, import_node_crypto.createHash)("sha256").update(value).digest("hex").slice(0, 16);
32
- }
33
- function safeSegment(value) {
34
- const raw = value.trim().toLowerCase() || "root";
35
- const normalized = raw.replace(/\\/g, "/").replace(/\/+/g, "/").replace(/^\//, "").replace(/\/$/, "").replace(/[^a-z0-9:_./-]+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
36
- const segment = normalized || "root";
37
- if (segment.length <= MAX_SEGMENT_LEN) return segment;
38
- return `${segment.slice(0, 48)}.${sha256(segment)}`;
39
- }
40
- function assertTag(tag) {
41
- if (tag.length > MAX_TAG_LEN || !TAG_PATTERN.test(tag)) {
42
- return `tag:${sha256(tag)}`;
43
- }
44
- return tag;
45
- }
46
- var tags = {
47
- site() {
48
- return "site";
49
- },
50
- pages() {
51
- return "pages";
52
- },
53
- group(group) {
54
- return assertTag(`group:${safeSegment(group)}`);
55
- },
56
- page(group, slug) {
57
- const path = Array.isArray(slug) ? slug.join("/") : slug;
58
- return assertTag(`page:${safeSegment(group)}:${safeSegment(path)}`);
59
- },
60
- manifest(contentHash) {
61
- return assertTag(`manifest:${safeSegment(contentHash)}`);
62
- },
63
- sitemap() {
64
- return "sitemap";
65
- },
66
- robots() {
67
- return "robots";
68
- },
69
- llms(scope = "root") {
70
- return assertTag(`llms:${safeSegment(scope)}`);
71
- },
72
- feed(format, scope = "site") {
73
- return assertTag(`feed:${safeSegment(format)}:${safeSegment(scope)}`);
74
- }
75
- };
76
- // Annotate the CommonJS export names for ESM import in node:
77
- 0 && (module.exports = {
78
- tags
79
- });
@@ -1,13 +0,0 @@
1
- declare const tags: {
2
- site(): string;
3
- pages(): string;
4
- group(group: string): string;
5
- page(group: string, slug: string | string[]): string;
6
- manifest(contentHash: string): string;
7
- sitemap(): string;
8
- robots(): string;
9
- llms(scope?: string): string;
10
- feed(format: string, scope?: string): string;
11
- };
12
-
13
- export { tags };
@@ -1,52 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/config/createNextConfig.ts
21
- var createNextConfig_exports = {};
22
- __export(createNextConfig_exports, {
23
- createNextConfig: () => createNextConfig
24
- });
25
- module.exports = __toCommonJS(createNextConfig_exports);
26
- function createNextConfig(_options) {
27
- return {
28
- transpilePackages: ["@publish.os/nextjs"],
29
- cacheComponents: true,
30
- cacheLife: {
31
- page: {
32
- stale: 60 * 60 * 24,
33
- revalidate: 60 * 60 * 24 * 30,
34
- expire: 60 * 60 * 24 * 365
35
- },
36
- feed: {
37
- stale: 60 * 60,
38
- revalidate: 60 * 60 * 6,
39
- expire: 60 * 60 * 24 * 7
40
- },
41
- sitemap: {
42
- stale: 60 * 60,
43
- revalidate: 60 * 60 * 24,
44
- expire: 60 * 60 * 24 * 30
45
- }
46
- }
47
- };
48
- }
49
- // Annotate the CommonJS export names for ESM import in node:
50
- 0 && (module.exports = {
51
- createNextConfig
52
- });
@@ -1,8 +0,0 @@
1
- import { NextConfig } from 'next';
2
-
3
- interface CreateNextConfigOptions {
4
- outputDir: string;
5
- }
6
- declare function createNextConfig(_options: CreateNextConfigOptions): NextConfig;
7
-
8
- export { type CreateNextConfigOptions, createNextConfig };
package/dist/config.cjs DELETED
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/config.ts
21
- var config_exports = {};
22
- __export(config_exports, {
23
- defineConfig: () => defineConfig,
24
- defineGroup: () => defineGroup,
25
- folder: () => folder,
26
- link: () => link,
27
- page: () => page,
28
- section: () => section
29
- });
30
- module.exports = __toCommonJS(config_exports);
31
- function titleFromKey(value) {
32
- return value.split(/[-_/]+/g).filter(Boolean).map((part) => `${part.slice(0, 1).toUpperCase()}${part.slice(1)}`).join(" ");
33
- }
34
- function defineConfig(config) {
35
- return config;
36
- }
37
- function defineGroup(config) {
38
- return config;
39
- }
40
- function page(file, options = {}) {
41
- return {
42
- type: "page",
43
- file,
44
- ...options
45
- };
46
- }
47
- function folder(group, options = {}) {
48
- return {
49
- type: "folder",
50
- id: options.id ?? group,
51
- title: options.title ?? titleFromKey(group),
52
- group,
53
- ...options
54
- };
55
- }
56
- function section(id, options) {
57
- return {
58
- type: "section",
59
- id,
60
- ...options
61
- };
62
- }
63
- function link(id, options) {
64
- return {
65
- type: "link",
66
- id,
67
- ...options
68
- };
69
- }
70
- // Annotate the CommonJS export names for ESM import in node:
71
- 0 && (module.exports = {
72
- defineConfig,
73
- defineGroup,
74
- folder,
75
- link,
76
- page,
77
- section
78
- });
package/dist/config.d.cts DELETED
@@ -1,101 +0,0 @@
1
- type OutputScope = "site" | "group" | "self";
2
- type PageStatus = "published" | "draft" | "archived";
3
- type OutputDeclaration = {
4
- path: string;
5
- scope?: OutputScope;
6
- description?: string;
7
- limit?: number;
8
- };
9
- type OutputDefaultsDeclaration = {
10
- scope?: OutputScope;
11
- limit?: number;
12
- status?: PageStatus[];
13
- includeDescriptions?: boolean;
14
- };
15
- type OutputsConfig = {
16
- llms?: OutputDeclaration;
17
- feeds?: {
18
- rss?: OutputDeclaration;
19
- atom?: OutputDeclaration;
20
- json?: OutputDeclaration;
21
- };
22
- robots?: OutputDeclaration;
23
- sitemap?: OutputDeclaration;
24
- };
25
- type OutputDefaultsConfig = {
26
- llms?: OutputDefaultsDeclaration;
27
- feeds?: OutputDefaultsDeclaration & {
28
- rss?: OutputDefaultsDeclaration;
29
- atom?: OutputDefaultsDeclaration;
30
- json?: OutputDefaultsDeclaration;
31
- };
32
- };
33
- type PageTreeNode = {
34
- type: "page";
35
- file: string;
36
- title?: string;
37
- slug?: string;
38
- };
39
- type SectionTreeNode = {
40
- type: "section";
41
- id: string;
42
- title: string;
43
- children: TreeNode[];
44
- };
45
- type FolderTreeNode = {
46
- type: "folder";
47
- id: string;
48
- title: string;
49
- group?: string;
50
- children?: TreeNode[];
51
- };
52
- type LinkTreeNode = {
53
- type: "link";
54
- id: string;
55
- title: string;
56
- url: string;
57
- };
58
- type TreeNode = PageTreeNode | SectionTreeNode | FolderTreeNode | LinkTreeNode;
59
- type GroupConfig = {
60
- title?: string;
61
- slug?: string;
62
- path?: `/${string}`;
63
- mode?: "tree" | "list";
64
- layout?: {
65
- inherit?: boolean;
66
- };
67
- meta?: Record<string, unknown>;
68
- tree?: TreeNode[];
69
- list?: {
70
- source: "content" | "ids";
71
- ids?: string[];
72
- sort?: {
73
- by: string;
74
- direction?: "asc" | "desc";
75
- };
76
- prevNext?: boolean;
77
- };
78
- outputs?: OutputsConfig;
79
- outputDefaults?: OutputDefaultsConfig;
80
- children?: Record<string, GroupConfig>;
81
- };
82
- type PublishOsConfig = {
83
- $schema?: string;
84
- version: 1;
85
- site?: {
86
- name?: string;
87
- description?: string;
88
- };
89
- meta?: Record<string, unknown>;
90
- outputs?: OutputsConfig;
91
- outputDefaults?: OutputDefaultsConfig;
92
- groups: Record<string, GroupConfig>;
93
- };
94
- declare function defineConfig(config: PublishOsConfig): PublishOsConfig;
95
- declare function defineGroup(config: GroupConfig): GroupConfig;
96
- declare function page(file: string, options?: Omit<PageTreeNode, "file" | "type">): PageTreeNode;
97
- declare function folder(group: string, options?: Omit<FolderTreeNode, "group" | "id" | "title" | "type"> & Partial<Pick<FolderTreeNode, "id" | "title">>): FolderTreeNode;
98
- declare function section(id: string, options: Omit<SectionTreeNode, "id" | "type">): SectionTreeNode;
99
- declare function link(id: string, options: Omit<LinkTreeNode, "id" | "type">): LinkTreeNode;
100
-
101
- export { type FolderTreeNode, type GroupConfig, type LinkTreeNode, type OutputDeclaration, type OutputDefaultsConfig, type OutputDefaultsDeclaration, type OutputsConfig, type PageTreeNode, type PublishOsConfig, type SectionTreeNode, type TreeNode, defineConfig, defineGroup, folder, link, page, section };
package/dist/config.d.ts DELETED
@@ -1,101 +0,0 @@
1
- type OutputScope = "site" | "group" | "self";
2
- type PageStatus = "published" | "draft" | "archived";
3
- type OutputDeclaration = {
4
- path: string;
5
- scope?: OutputScope;
6
- description?: string;
7
- limit?: number;
8
- };
9
- type OutputDefaultsDeclaration = {
10
- scope?: OutputScope;
11
- limit?: number;
12
- status?: PageStatus[];
13
- includeDescriptions?: boolean;
14
- };
15
- type OutputsConfig = {
16
- llms?: OutputDeclaration;
17
- feeds?: {
18
- rss?: OutputDeclaration;
19
- atom?: OutputDeclaration;
20
- json?: OutputDeclaration;
21
- };
22
- robots?: OutputDeclaration;
23
- sitemap?: OutputDeclaration;
24
- };
25
- type OutputDefaultsConfig = {
26
- llms?: OutputDefaultsDeclaration;
27
- feeds?: OutputDefaultsDeclaration & {
28
- rss?: OutputDefaultsDeclaration;
29
- atom?: OutputDefaultsDeclaration;
30
- json?: OutputDefaultsDeclaration;
31
- };
32
- };
33
- type PageTreeNode = {
34
- type: "page";
35
- file: string;
36
- title?: string;
37
- slug?: string;
38
- };
39
- type SectionTreeNode = {
40
- type: "section";
41
- id: string;
42
- title: string;
43
- children: TreeNode[];
44
- };
45
- type FolderTreeNode = {
46
- type: "folder";
47
- id: string;
48
- title: string;
49
- group?: string;
50
- children?: TreeNode[];
51
- };
52
- type LinkTreeNode = {
53
- type: "link";
54
- id: string;
55
- title: string;
56
- url: string;
57
- };
58
- type TreeNode = PageTreeNode | SectionTreeNode | FolderTreeNode | LinkTreeNode;
59
- type GroupConfig = {
60
- title?: string;
61
- slug?: string;
62
- path?: `/${string}`;
63
- mode?: "tree" | "list";
64
- layout?: {
65
- inherit?: boolean;
66
- };
67
- meta?: Record<string, unknown>;
68
- tree?: TreeNode[];
69
- list?: {
70
- source: "content" | "ids";
71
- ids?: string[];
72
- sort?: {
73
- by: string;
74
- direction?: "asc" | "desc";
75
- };
76
- prevNext?: boolean;
77
- };
78
- outputs?: OutputsConfig;
79
- outputDefaults?: OutputDefaultsConfig;
80
- children?: Record<string, GroupConfig>;
81
- };
82
- type PublishOsConfig = {
83
- $schema?: string;
84
- version: 1;
85
- site?: {
86
- name?: string;
87
- description?: string;
88
- };
89
- meta?: Record<string, unknown>;
90
- outputs?: OutputsConfig;
91
- outputDefaults?: OutputDefaultsConfig;
92
- groups: Record<string, GroupConfig>;
93
- };
94
- declare function defineConfig(config: PublishOsConfig): PublishOsConfig;
95
- declare function defineGroup(config: GroupConfig): GroupConfig;
96
- declare function page(file: string, options?: Omit<PageTreeNode, "file" | "type">): PageTreeNode;
97
- declare function folder(group: string, options?: Omit<FolderTreeNode, "group" | "id" | "title" | "type"> & Partial<Pick<FolderTreeNode, "id" | "title">>): FolderTreeNode;
98
- declare function section(id: string, options: Omit<SectionTreeNode, "id" | "type">): SectionTreeNode;
99
- declare function link(id: string, options: Omit<LinkTreeNode, "id" | "type">): LinkTreeNode;
100
-
101
- export { type FolderTreeNode, type GroupConfig, type LinkTreeNode, type OutputDeclaration, type OutputDefaultsConfig, type OutputDefaultsDeclaration, type OutputsConfig, type PageTreeNode, type PublishOsConfig, type SectionTreeNode, type TreeNode, defineConfig, defineGroup, folder, link, page, section };
package/dist/config.js DELETED
@@ -1,48 +0,0 @@
1
- // src/config.ts
2
- function titleFromKey(value) {
3
- return value.split(/[-_/]+/g).filter(Boolean).map((part) => `${part.slice(0, 1).toUpperCase()}${part.slice(1)}`).join(" ");
4
- }
5
- function defineConfig(config) {
6
- return config;
7
- }
8
- function defineGroup(config) {
9
- return config;
10
- }
11
- function page(file, options = {}) {
12
- return {
13
- type: "page",
14
- file,
15
- ...options
16
- };
17
- }
18
- function folder(group, options = {}) {
19
- return {
20
- type: "folder",
21
- id: options.id ?? group,
22
- title: options.title ?? titleFromKey(group),
23
- group,
24
- ...options
25
- };
26
- }
27
- function section(id, options) {
28
- return {
29
- type: "section",
30
- id,
31
- ...options
32
- };
33
- }
34
- function link(id, options) {
35
- return {
36
- type: "link",
37
- id,
38
- ...options
39
- };
40
- }
41
- export {
42
- defineConfig,
43
- defineGroup,
44
- folder,
45
- link,
46
- page,
47
- section
48
- };