polen 0.11.0-next.15 → 0.11.0-next.17

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 (1125) hide show
  1. package/build/api/{api.d.ts → $$.d.ts} +6 -3
  2. package/build/api/$$.d.ts.map +1 -0
  3. package/build/api/$$.js +13 -0
  4. package/build/api/$$.js.map +1 -0
  5. package/build/api/$.d.ts +2 -0
  6. package/build/api/$.d.ts.map +1 -0
  7. package/build/api/$.js +2 -0
  8. package/build/api/$.js.map +1 -0
  9. package/build/api/config/$$.d.ts +1 -0
  10. package/build/api/config/$$.d.ts.map +1 -1
  11. package/build/api/config/$$.js +1 -0
  12. package/build/api/config/$$.js.map +1 -1
  13. package/build/api/config/home.d.ts +639 -0
  14. package/build/api/config/home.d.ts.map +1 -0
  15. package/build/api/config/home.js +487 -0
  16. package/build/api/config/home.js.map +1 -0
  17. package/build/api/config/input.d.ts +1307 -9
  18. package/build/api/config/input.d.ts.map +1 -1
  19. package/build/api/config/input.js +102 -24
  20. package/build/api/config/input.js.map +1 -1
  21. package/build/api/config/normalized.d.ts +2261 -129
  22. package/build/api/config/normalized.d.ts.map +1 -1
  23. package/build/api/config/normalized.js +424 -27
  24. package/build/api/config/normalized.js.map +1 -1
  25. package/build/api/config-template/template.d.ts +2991 -0
  26. package/build/api/config-template/template.d.ts.map +1 -0
  27. package/build/api/config-template/template.js +53 -0
  28. package/build/api/config-template/template.js.map +1 -0
  29. package/build/api/content/$$.d.ts +1 -0
  30. package/build/api/content/$$.d.ts.map +1 -1
  31. package/build/api/content/$$.js +1 -0
  32. package/build/api/content/$$.js.map +1 -1
  33. package/build/api/content/mdx-compiler.d.ts +54 -0
  34. package/build/api/content/mdx-compiler.d.ts.map +1 -0
  35. package/build/api/content/mdx-compiler.js +68 -0
  36. package/build/api/content/mdx-compiler.js.map +1 -0
  37. package/build/api/content/navbar.js +1 -1
  38. package/build/api/content/navbar.js.map +1 -1
  39. package/build/api/examples/$$.d.ts +8 -0
  40. package/build/api/examples/$$.d.ts.map +1 -0
  41. package/build/api/examples/$$.js +8 -0
  42. package/build/api/examples/$$.js.map +1 -0
  43. package/build/api/examples/$.d.ts +2 -0
  44. package/build/api/examples/$.d.ts.map +1 -0
  45. package/build/api/examples/$.js +2 -0
  46. package/build/api/examples/$.js.map +1 -0
  47. package/build/api/examples/config.d.ts +709 -0
  48. package/build/api/examples/config.d.ts.map +1 -0
  49. package/build/api/examples/config.js +169 -0
  50. package/build/api/examples/config.js.map +1 -0
  51. package/build/api/examples/diagnostic/diagnostic.d.ts +152 -0
  52. package/build/api/examples/diagnostic/diagnostic.d.ts.map +1 -0
  53. package/build/api/examples/diagnostic/diagnostic.js +20 -0
  54. package/build/api/examples/diagnostic/diagnostic.js.map +1 -0
  55. package/build/api/examples/diagnostic/duplicate-content.d.ts +55 -0
  56. package/build/api/examples/diagnostic/duplicate-content.d.ts.map +1 -0
  57. package/build/api/examples/diagnostic/duplicate-content.js +22 -0
  58. package/build/api/examples/diagnostic/duplicate-content.js.map +1 -0
  59. package/build/api/examples/diagnostic/invalid-filename.d.ts +43 -0
  60. package/build/api/examples/diagnostic/invalid-filename.d.ts.map +1 -0
  61. package/build/api/examples/diagnostic/invalid-filename.js +16 -0
  62. package/build/api/examples/diagnostic/invalid-filename.js.map +1 -0
  63. package/build/api/examples/diagnostic/missing-versions.d.ts +52 -0
  64. package/build/api/examples/diagnostic/missing-versions.d.ts.map +1 -0
  65. package/build/api/examples/diagnostic/missing-versions.js +21 -0
  66. package/build/api/examples/diagnostic/missing-versions.js.map +1 -0
  67. package/build/api/examples/diagnostic/unknown-version.d.ts +52 -0
  68. package/build/api/examples/diagnostic/unknown-version.d.ts.map +1 -0
  69. package/build/api/examples/diagnostic/unknown-version.js +21 -0
  70. package/build/api/examples/diagnostic/unknown-version.js.map +1 -0
  71. package/build/api/examples/diagnostic/unused-default.d.ts +49 -0
  72. package/build/api/examples/diagnostic/unused-default.d.ts.map +1 -0
  73. package/build/api/examples/diagnostic/unused-default.js +19 -0
  74. package/build/api/examples/diagnostic/unused-default.js.map +1 -0
  75. package/build/api/examples/diagnostic/validation-error.d.ts +63 -0
  76. package/build/api/examples/diagnostic/validation-error.d.ts.map +1 -0
  77. package/build/api/examples/diagnostic/validation-error.js +21 -0
  78. package/build/api/examples/diagnostic/validation-error.js.map +1 -0
  79. package/build/api/examples/diagnostic/validator.d.ts +13 -0
  80. package/build/api/examples/diagnostic/validator.d.ts.map +1 -0
  81. package/build/api/examples/diagnostic/validator.js +115 -0
  82. package/build/api/examples/diagnostic/validator.js.map +1 -0
  83. package/build/api/examples/filter.d.ts +19 -0
  84. package/build/api/examples/filter.d.ts.map +1 -0
  85. package/build/api/examples/filter.js +64 -0
  86. package/build/api/examples/filter.js.map +1 -0
  87. package/build/api/examples/scanner.d.ts +18 -0
  88. package/build/api/examples/scanner.d.ts.map +1 -0
  89. package/build/api/examples/scanner.js +268 -0
  90. package/build/api/examples/scanner.js.map +1 -0
  91. package/build/api/examples/schemas/catalog.d.ts +248 -0
  92. package/build/api/examples/schemas/catalog.d.ts.map +1 -0
  93. package/build/api/examples/schemas/catalog.js +42 -0
  94. package/build/api/examples/schemas/catalog.js.map +1 -0
  95. package/build/api/examples/schemas/example/$$.d.ts +2 -0
  96. package/build/api/examples/schemas/example/$$.d.ts.map +1 -0
  97. package/build/api/examples/schemas/example/$$.js +2 -0
  98. package/build/api/examples/schemas/example/$$.js.map +1 -0
  99. package/build/api/examples/schemas/example/$.d.ts +2 -0
  100. package/build/api/examples/schemas/example/$.d.ts.map +1 -0
  101. package/build/api/examples/schemas/example/$.js +2 -0
  102. package/build/api/examples/schemas/example/$.js.map +1 -0
  103. package/build/api/examples/schemas/example/example.d.ts +134 -0
  104. package/build/api/examples/schemas/example/example.d.ts.map +1 -0
  105. package/build/api/examples/schemas/example/example.js +51 -0
  106. package/build/api/examples/schemas/example/example.js.map +1 -0
  107. package/build/api/examples/schemas/type-usage-index.d.ts +72 -0
  108. package/build/api/examples/schemas/type-usage-index.d.ts.map +1 -0
  109. package/build/api/examples/schemas/type-usage-index.js +64 -0
  110. package/build/api/examples/schemas/type-usage-index.js.map +1 -0
  111. package/build/api/examples/type-generator.d.ts +8 -0
  112. package/build/api/examples/type-generator.d.ts.map +1 -0
  113. package/build/api/examples/type-generator.js +36 -0
  114. package/build/api/examples/type-generator.js.map +1 -0
  115. package/build/api/examples/type-usage-indexer.d.ts +18 -0
  116. package/build/api/examples/type-usage-indexer.d.ts.map +1 -0
  117. package/build/api/examples/type-usage-indexer.js +219 -0
  118. package/build/api/examples/type-usage-indexer.js.map +1 -0
  119. package/build/api/iso/schema/routing.js +2 -2
  120. package/build/api/iso/schema/routing.js.map +1 -1
  121. package/build/api/project/$$.d.ts +2 -0
  122. package/build/api/project/$$.d.ts.map +1 -0
  123. package/build/api/project/$$.js +2 -0
  124. package/build/api/project/$$.js.map +1 -0
  125. package/build/api/project/$.d.ts +2 -0
  126. package/build/api/project/$.d.ts.map +1 -0
  127. package/build/api/project/$.js +2 -0
  128. package/build/api/project/$.js.map +1 -0
  129. package/build/api/schema/config-schema.d.ts +3 -3
  130. package/build/api/schema/input-sources/directory.d.ts +31 -31
  131. package/build/api/schema/input-sources/file.d.ts +31 -31
  132. package/build/api/schema/input-sources/introspection-file.d.ts +31 -31
  133. package/build/api/schema/input-sources/introspection.d.ts +31 -31
  134. package/build/api/schema/input-sources/memory.d.ts +31 -31
  135. package/build/api/schema/input-sources/versioned-directory.d.ts +68 -79
  136. package/build/api/schema/input-sources/versioned-directory.d.ts.map +1 -1
  137. package/build/api/schema/input-sources/versioned-directory.js +8 -6
  138. package/build/api/schema/input-sources/versioned-directory.js.map +1 -1
  139. package/build/api/schema/load.js +1 -1
  140. package/build/api/schema/load.js.map +1 -1
  141. package/build/api/typings/$$.d.ts +2 -0
  142. package/build/api/typings/$$.d.ts.map +1 -0
  143. package/build/api/typings/$$.js +2 -0
  144. package/build/api/typings/$$.js.map +1 -0
  145. package/build/api/typings/$.d.ts +2 -0
  146. package/build/api/typings/$.d.ts.map +1 -0
  147. package/build/api/typings/$.js +2 -0
  148. package/build/api/typings/$.js.map +1 -0
  149. package/build/api/typings/typings.d.ts +88 -0
  150. package/build/api/typings/typings.d.ts.map +1 -0
  151. package/build/api/typings/typings.js +180 -0
  152. package/build/api/typings/typings.js.map +1 -0
  153. package/build/cli/_/parameters.d.ts +4 -4
  154. package/build/cli/_/parameters.d.ts.map +1 -1
  155. package/build/cli/_/parameters.js +4 -10
  156. package/build/cli/_/parameters.js.map +1 -1
  157. package/build/cli/commands/build.d.ts +9 -10
  158. package/build/cli/commands/build.d.ts.map +1 -1
  159. package/build/cli/commands/build.js +36 -50
  160. package/build/cli/commands/build.js.map +1 -1
  161. package/build/cli/commands/cache/delete.d.ts +6 -1
  162. package/build/cli/commands/cache/delete.d.ts.map +1 -1
  163. package/build/cli/commands/cache/delete.js +12 -20
  164. package/build/cli/commands/cache/delete.js.map +1 -1
  165. package/build/cli/commands/cache/show.d.ts +5 -1
  166. package/build/cli/commands/cache/show.d.ts.map +1 -1
  167. package/build/cli/commands/cache/show.js +51 -59
  168. package/build/cli/commands/cache/show.js.map +1 -1
  169. package/build/cli/commands/cache.d.ts +10 -2
  170. package/build/cli/commands/cache.d.ts.map +1 -1
  171. package/build/cli/commands/cache.js +17 -6
  172. package/build/cli/commands/cache.js.map +1 -1
  173. package/build/cli/commands/config/create.d.ts +6 -1
  174. package/build/cli/commands/config/create.d.ts.map +1 -1
  175. package/build/cli/commands/config/create.js +27 -24
  176. package/build/cli/commands/config/create.js.map +1 -1
  177. package/build/cli/commands/config.d.ts +7 -2
  178. package/build/cli/commands/config.d.ts.map +1 -1
  179. package/build/cli/commands/config.js +15 -6
  180. package/build/cli/commands/config.js.map +1 -1
  181. package/build/cli/commands/create.d.ts +9 -1
  182. package/build/cli/commands/create.d.ts.map +1 -1
  183. package/build/cli/commands/create.js +63 -61
  184. package/build/cli/commands/create.js.map +1 -1
  185. package/build/cli/commands/dev.d.ts +9 -1
  186. package/build/cli/commands/dev.d.ts.map +1 -1
  187. package/build/cli/commands/dev.js +41 -51
  188. package/build/cli/commands/dev.js.map +1 -1
  189. package/build/cli/commands/hero-image.d.ts +8 -0
  190. package/build/cli/commands/hero-image.d.ts.map +1 -0
  191. package/build/cli/commands/hero-image.js +235 -0
  192. package/build/cli/commands/hero-image.js.map +1 -0
  193. package/build/cli/commands/open.d.ts +10 -1
  194. package/build/cli/commands/open.d.ts.map +1 -1
  195. package/build/cli/commands/open.js +93 -107
  196. package/build/cli/commands/open.js.map +1 -1
  197. package/build/cli/commands/static/rebase.d.ts +8 -1
  198. package/build/cli/commands/static/rebase.d.ts.map +1 -1
  199. package/build/cli/commands/static/rebase.js +43 -29
  200. package/build/cli/commands/static/rebase.js.map +1 -1
  201. package/build/cli/commands/static.d.ts +9 -2
  202. package/build/cli/commands/static.d.ts.map +1 -1
  203. package/build/cli/commands/static.js +28 -6
  204. package/build/cli/commands/static.js.map +1 -1
  205. package/build/cli/index.d.ts +54 -1
  206. package/build/cli/index.d.ts.map +1 -1
  207. package/build/cli/index.js +77 -8
  208. package/build/cli/index.js.map +1 -1
  209. package/build/lib/ai-image-generation/$$.d.ts +3 -0
  210. package/build/lib/ai-image-generation/$$.d.ts.map +1 -0
  211. package/build/lib/ai-image-generation/$$.js +3 -0
  212. package/build/lib/ai-image-generation/$$.js.map +1 -0
  213. package/build/lib/ai-image-generation/$.d.ts +2 -0
  214. package/build/lib/ai-image-generation/$.d.ts.map +1 -0
  215. package/build/lib/ai-image-generation/$.js +2 -0
  216. package/build/lib/ai-image-generation/$.js.map +1 -0
  217. package/build/lib/ai-image-generation/ai-image-generation.d.ts +132 -0
  218. package/build/lib/ai-image-generation/ai-image-generation.d.ts.map +1 -0
  219. package/build/lib/ai-image-generation/ai-image-generation.js +170 -0
  220. package/build/lib/ai-image-generation/ai-image-generation.js.map +1 -0
  221. package/build/lib/ai-image-generation/providers/pollinations.d.ts +22 -0
  222. package/build/lib/ai-image-generation/providers/pollinations.d.ts.map +1 -0
  223. package/build/lib/ai-image-generation/providers/pollinations.js +45 -0
  224. package/build/lib/ai-image-generation/providers/pollinations.js.map +1 -0
  225. package/build/lib/ai-image-generation/service.d.ts +42 -0
  226. package/build/lib/ai-image-generation/service.d.ts.map +1 -0
  227. package/build/lib/ai-image-generation/service.js +147 -0
  228. package/build/lib/ai-image-generation/service.js.map +1 -0
  229. package/build/lib/catalog/catalog.d.ts +7823 -717
  230. package/build/lib/catalog/catalog.d.ts.map +1 -1
  231. package/build/lib/catalog/catalog.js +25 -2
  232. package/build/lib/catalog/catalog.js.map +1 -1
  233. package/build/lib/catalog/unversioned.d.ts +245 -245
  234. package/build/lib/catalog/unversioned.d.ts.map +1 -1
  235. package/build/lib/catalog/versioned.d.ts +540 -609
  236. package/build/lib/catalog/versioned.d.ts.map +1 -1
  237. package/build/lib/catalog/versioned.js +38 -1
  238. package/build/lib/catalog/versioned.js.map +1 -1
  239. package/build/lib/catalog-statistics/$$.d.ts +5 -0
  240. package/build/lib/catalog-statistics/$$.d.ts.map +1 -0
  241. package/build/lib/catalog-statistics/$$.js +5 -0
  242. package/build/lib/catalog-statistics/$$.js.map +1 -0
  243. package/build/lib/catalog-statistics/$.d.ts +2 -0
  244. package/build/lib/catalog-statistics/$.d.ts.map +1 -0
  245. package/build/lib/catalog-statistics/$.js +2 -0
  246. package/build/lib/catalog-statistics/$.js.map +1 -0
  247. package/build/lib/catalog-statistics/analyze-catalog.d.ts +8 -0
  248. package/build/lib/catalog-statistics/analyze-catalog.d.ts.map +1 -0
  249. package/build/lib/catalog-statistics/analyze-catalog.js +132 -0
  250. package/build/lib/catalog-statistics/analyze-catalog.js.map +1 -0
  251. package/build/lib/catalog-statistics/analyze-options.d.ts +16 -0
  252. package/build/lib/catalog-statistics/analyze-options.d.ts.map +1 -0
  253. package/build/lib/catalog-statistics/analyze-options.js +2 -0
  254. package/build/lib/catalog-statistics/analyze-options.js.map +1 -0
  255. package/build/lib/catalog-statistics/analyze-schema.d.ts +8 -0
  256. package/build/lib/catalog-statistics/analyze-schema.d.ts.map +1 -0
  257. package/build/lib/catalog-statistics/analyze-schema.js +185 -0
  258. package/build/lib/catalog-statistics/analyze-schema.js.map +1 -0
  259. package/build/lib/catalog-statistics/data.d.ts +195 -0
  260. package/build/lib/catalog-statistics/data.d.ts.map +1 -0
  261. package/build/lib/catalog-statistics/data.js +176 -0
  262. package/build/lib/catalog-statistics/data.js.map +1 -0
  263. package/build/lib/catalog-statistics/report.d.ts +841 -0
  264. package/build/lib/catalog-statistics/report.d.ts.map +1 -0
  265. package/build/lib/catalog-statistics/report.js +37 -0
  266. package/build/lib/catalog-statistics/report.js.map +1 -0
  267. package/build/lib/change/change.d.ts +185 -185
  268. package/build/lib/change/change.d.ts.map +1 -1
  269. package/build/lib/change/criticality.d.ts +2 -2
  270. package/build/lib/change/criticality.d.ts.map +1 -1
  271. package/build/lib/date-only/date-only.d.ts +1 -1
  272. package/build/lib/date-only/date-only.d.ts.map +1 -1
  273. package/build/lib/diagnostic/$$.d.ts +6 -0
  274. package/build/lib/diagnostic/$$.d.ts.map +1 -0
  275. package/build/lib/diagnostic/$$.js +6 -0
  276. package/build/lib/diagnostic/$$.js.map +1 -0
  277. package/build/lib/diagnostic/$.d.ts +2 -0
  278. package/build/lib/diagnostic/$.d.ts.map +1 -0
  279. package/build/lib/diagnostic/$.js +2 -0
  280. package/build/lib/diagnostic/$.js.map +1 -0
  281. package/build/lib/diagnostic/control.d.ts +79 -0
  282. package/build/lib/diagnostic/control.d.ts.map +1 -0
  283. package/build/lib/diagnostic/control.js +107 -0
  284. package/build/lib/diagnostic/control.js.map +1 -0
  285. package/build/lib/diagnostic/diagnostic.d.ts +130 -0
  286. package/build/lib/diagnostic/diagnostic.d.ts.map +1 -0
  287. package/build/lib/diagnostic/diagnostic.js +106 -0
  288. package/build/lib/diagnostic/diagnostic.js.map +1 -0
  289. package/build/lib/diagnostic/filter.d.ts +11 -0
  290. package/build/lib/diagnostic/filter.d.ts.map +1 -0
  291. package/build/lib/diagnostic/filter.js +16 -0
  292. package/build/lib/diagnostic/filter.js.map +1 -0
  293. package/build/lib/diagnostic/reporter.d.ts +22 -0
  294. package/build/lib/diagnostic/reporter.d.ts.map +1 -0
  295. package/build/lib/diagnostic/reporter.js +66 -0
  296. package/build/lib/diagnostic/reporter.js.map +1 -0
  297. package/build/lib/diagnostic/severity.d.ts +32 -0
  298. package/build/lib/diagnostic/severity.d.ts.map +1 -0
  299. package/build/lib/diagnostic/severity.js +73 -0
  300. package/build/lib/diagnostic/severity.js.map +1 -0
  301. package/build/lib/directed-filter/$$.d.ts +2 -0
  302. package/build/lib/directed-filter/$$.d.ts.map +1 -0
  303. package/build/lib/directed-filter/$$.js +2 -0
  304. package/build/lib/directed-filter/$$.js.map +1 -0
  305. package/build/lib/directed-filter/$.d.ts +2 -0
  306. package/build/lib/directed-filter/$.d.ts.map +1 -0
  307. package/build/lib/directed-filter/$.js +2 -0
  308. package/build/lib/directed-filter/$.js.map +1 -0
  309. package/build/lib/directed-filter/directed-filter.d.ts +127 -0
  310. package/build/lib/directed-filter/directed-filter.d.ts.map +1 -0
  311. package/build/lib/directed-filter/directed-filter.js +153 -0
  312. package/build/lib/directed-filter/directed-filter.js.map +1 -0
  313. package/build/lib/document/$$.d.ts +4 -0
  314. package/build/lib/document/$$.d.ts.map +1 -0
  315. package/build/lib/document/$$.js +4 -0
  316. package/build/lib/document/$$.js.map +1 -0
  317. package/build/lib/document/$.d.ts +2 -0
  318. package/build/lib/document/$.d.ts.map +1 -0
  319. package/build/lib/document/$.js +2 -0
  320. package/build/lib/document/$.js.map +1 -0
  321. package/build/lib/document/document.d.ts +59 -0
  322. package/build/lib/document/document.d.ts.map +1 -0
  323. package/build/lib/document/document.js +23 -0
  324. package/build/lib/document/document.js.map +1 -0
  325. package/build/lib/document/unversioned.d.ts +38 -0
  326. package/build/lib/document/unversioned.d.ts.map +1 -0
  327. package/build/lib/document/unversioned.js +22 -0
  328. package/build/lib/document/unversioned.js.map +1 -0
  329. package/build/lib/document/versioned.d.ts +58 -0
  330. package/build/lib/document/versioned.d.ts.map +1 -0
  331. package/build/lib/document/versioned.js +82 -0
  332. package/build/lib/document/versioned.js.map +1 -0
  333. package/build/lib/effect-cli-help-markdown/$$.d.ts +2 -0
  334. package/build/lib/effect-cli-help-markdown/$$.d.ts.map +1 -0
  335. package/build/lib/effect-cli-help-markdown/$$.js +2 -0
  336. package/build/lib/effect-cli-help-markdown/$$.js.map +1 -0
  337. package/build/lib/effect-cli-help-markdown/$.d.ts +2 -0
  338. package/build/lib/effect-cli-help-markdown/$.d.ts.map +1 -0
  339. package/build/lib/effect-cli-help-markdown/$.js +2 -0
  340. package/build/lib/effect-cli-help-markdown/$.js.map +1 -0
  341. package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.d.ts +32 -0
  342. package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.d.ts.map +1 -0
  343. package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.js +477 -0
  344. package/build/lib/effect-cli-help-markdown/effect-cli-help-markdown.js.map +1 -0
  345. package/build/lib/effect-glob/$$.d.ts +2 -0
  346. package/build/lib/effect-glob/$$.d.ts.map +1 -0
  347. package/build/lib/effect-glob/$$.js +2 -0
  348. package/build/lib/effect-glob/$$.js.map +1 -0
  349. package/build/lib/effect-glob/$.d.ts +2 -0
  350. package/build/lib/effect-glob/$.d.ts.map +1 -0
  351. package/build/lib/effect-glob/$.js +2 -0
  352. package/build/lib/effect-glob/$.js.map +1 -0
  353. package/build/lib/effect-glob/effect-glob.d.ts +13 -0
  354. package/build/lib/effect-glob/effect-glob.d.ts.map +1 -0
  355. package/build/lib/effect-glob/effect-glob.js +18 -0
  356. package/build/lib/effect-glob/effect-glob.js.map +1 -0
  357. package/build/lib/file-path/$$.d.ts +3 -0
  358. package/build/lib/file-path/$$.d.ts.map +1 -1
  359. package/build/lib/file-path/$$.js +3 -3
  360. package/build/lib/file-path/$$.js.map +1 -1
  361. package/build/lib/file-path/$.d.ts +1 -1
  362. package/build/lib/file-path/$.d.ts.map +1 -1
  363. package/build/lib/file-path/$.js +1 -1
  364. package/build/lib/file-path/$.js.map +1 -1
  365. package/build/lib/file-path/absolute.d.ts +38 -0
  366. package/build/lib/file-path/absolute.d.ts.map +1 -0
  367. package/build/lib/file-path/absolute.js +47 -0
  368. package/build/lib/file-path/absolute.js.map +1 -0
  369. package/build/lib/file-path/file-path.d.ts +41 -43
  370. package/build/lib/file-path/file-path.d.ts.map +1 -1
  371. package/build/lib/file-path/file-path.js +15 -87
  372. package/build/lib/file-path/file-path.js.map +1 -1
  373. package/build/lib/file-path/relative.d.ts +38 -0
  374. package/build/lib/file-path/relative.d.ts.map +1 -0
  375. package/build/lib/file-path/relative.js +51 -0
  376. package/build/lib/file-path/relative.js.map +1 -0
  377. package/build/lib/file-path/segment/$.d.ts +2 -0
  378. package/build/lib/file-path/segment/$.d.ts.map +1 -0
  379. package/build/lib/file-path/segment/$.js +2 -0
  380. package/build/lib/file-path/segment/$.js.map +1 -0
  381. package/build/lib/file-path/segment/segment.d.ts +45 -0
  382. package/build/lib/file-path/segment/segment.d.ts.map +1 -0
  383. package/build/lib/file-path/segment/segment.js +96 -0
  384. package/build/lib/file-path/segment/segment.js.map +1 -0
  385. package/build/lib/file-router/linter.d.ts +214 -34
  386. package/build/lib/file-router/linter.d.ts.map +1 -1
  387. package/build/lib/file-router/linter.js +66 -12
  388. package/build/lib/file-router/linter.js.map +1 -1
  389. package/build/lib/graph/graph.d.ts +1 -1
  390. package/build/lib/graph/graph.d.ts.map +1 -1
  391. package/build/lib/graphql-error/$$.d.ts +2 -0
  392. package/build/lib/graphql-error/$$.d.ts.map +1 -0
  393. package/build/lib/graphql-error/$$.js +2 -0
  394. package/build/lib/graphql-error/$$.js.map +1 -0
  395. package/build/lib/graphql-error/$.d.ts +2 -0
  396. package/build/lib/graphql-error/$.d.ts.map +1 -0
  397. package/build/lib/graphql-error/$.js +2 -0
  398. package/build/lib/graphql-error/$.js.map +1 -0
  399. package/build/lib/graphql-error/graphql-error.d.ts +150 -0
  400. package/build/lib/graphql-error/graphql-error.d.ts.map +1 -0
  401. package/build/lib/graphql-error/graphql-error.js +57 -0
  402. package/build/lib/graphql-error/graphql-error.js.map +1 -0
  403. package/build/lib/kit-temp/effect.d.ts +14 -0
  404. package/build/lib/kit-temp/effect.d.ts.map +1 -1
  405. package/build/lib/kit-temp/effect.js +29 -0
  406. package/build/lib/kit-temp/effect.js.map +1 -1
  407. package/build/lib/kit-temp/ob.d.ts +4 -0
  408. package/build/lib/kit-temp/ob.d.ts.map +1 -1
  409. package/build/lib/kit-temp/ob.js +3 -1
  410. package/build/lib/kit-temp/ob.js.map +1 -1
  411. package/build/lib/kit-temp/resource.d.ts +1 -2
  412. package/build/lib/kit-temp/resource.d.ts.map +1 -1
  413. package/build/lib/kit-temp/resource.js +1 -2
  414. package/build/lib/kit-temp/resource.js.map +1 -1
  415. package/build/lib/lifecycles/lifecycles.js +1 -1
  416. package/build/lib/lifecycles/lifecycles.js.map +1 -1
  417. package/build/lib/react-router-effect/route-helpers.d.ts +9 -3
  418. package/build/lib/react-router-effect/route-helpers.d.ts.map +1 -1
  419. package/build/lib/react-router-effect/route-helpers.js +54 -6
  420. package/build/lib/react-router-effect/route-helpers.js.map +1 -1
  421. package/build/lib/react-router-effect/route.d.ts.map +1 -1
  422. package/build/lib/react-router-effect/route.js +13 -1
  423. package/build/lib/react-router-effect/route.js.map +1 -1
  424. package/build/lib/react-router-effect/types.d.ts +10 -2
  425. package/build/lib/react-router-effect/types.d.ts.map +1 -1
  426. package/build/lib/react-router-effect/use-loader-data.d.ts +3 -3
  427. package/build/lib/react-router-effect/use-loader-data.d.ts.map +1 -1
  428. package/build/lib/react-router-effect/use-loader-data.js +2 -2
  429. package/build/lib/react-router-effect/use-loader-data.js.map +1 -1
  430. package/build/lib/revision/revision.d.ts +925 -925
  431. package/build/lib/revision/revision.d.ts.map +1 -1
  432. package/build/lib/schema/schema.d.ts +553 -629
  433. package/build/lib/schema/schema.d.ts.map +1 -1
  434. package/build/lib/schema/unversioned.d.ts +865 -865
  435. package/build/lib/schema/unversioned.d.ts.map +1 -1
  436. package/build/lib/schema/versioned.d.ts +495 -583
  437. package/build/lib/schema/versioned.d.ts.map +1 -1
  438. package/build/lib/schema-definition/schema-definition.d.ts +1 -1
  439. package/build/lib/schema-definition/schema-definition.d.ts.map +1 -1
  440. package/build/lib/semver/official-release.d.ts +1 -1
  441. package/build/lib/semver/official-release.d.ts.map +1 -1
  442. package/build/lib/semver/pre-release.d.ts +1 -1
  443. package/build/lib/semver/pre-release.d.ts.map +1 -1
  444. package/build/lib/semver/semver.d.ts +1 -1
  445. package/build/lib/semver/semver.d.ts.map +1 -1
  446. package/build/lib/swiss/$$.d.ts +5 -0
  447. package/build/lib/swiss/$$.d.ts.map +1 -0
  448. package/build/lib/swiss/$$.js +6 -0
  449. package/build/lib/swiss/$$.js.map +1 -0
  450. package/build/lib/swiss/$.d.ts +2 -0
  451. package/build/lib/swiss/$.d.ts.map +1 -0
  452. package/build/lib/swiss/$.js +3 -0
  453. package/build/lib/swiss/$.js.map +1 -0
  454. package/build/lib/swiss/grid.d.ts +17 -0
  455. package/build/lib/swiss/grid.d.ts.map +1 -0
  456. package/build/lib/swiss/grid.js +30 -0
  457. package/build/lib/swiss/grid.js.map +1 -0
  458. package/build/lib/swiss/items.d.ts +53 -0
  459. package/build/lib/swiss/items.d.ts.map +1 -0
  460. package/build/lib/swiss/items.js +188 -0
  461. package/build/lib/swiss/items.js.map +1 -0
  462. package/build/lib/swiss/styles.css +298 -0
  463. package/build/lib/swiss/subgrid.d.ts +25 -0
  464. package/build/lib/swiss/subgrid.d.ts.map +1 -0
  465. package/build/lib/swiss/subgrid.js +48 -0
  466. package/build/lib/swiss/subgrid.js.map +1 -0
  467. package/build/lib/swiss/types.d.ts +340 -0
  468. package/build/lib/swiss/types.d.ts.map +1 -0
  469. package/build/lib/swiss/types.js +2 -0
  470. package/build/lib/swiss/types.js.map +1 -0
  471. package/build/lib/swiss/utils.d.ts +37 -0
  472. package/build/lib/swiss/utils.d.ts.map +1 -0
  473. package/build/lib/swiss/utils.js +163 -0
  474. package/build/lib/swiss/utils.js.map +1 -0
  475. package/build/lib/version/custom.d.ts +11 -30
  476. package/build/lib/version/custom.d.ts.map +1 -1
  477. package/build/lib/version/custom.js +3 -7
  478. package/build/lib/version/custom.js.map +1 -1
  479. package/build/lib/version/date.d.ts +11 -30
  480. package/build/lib/version/date.d.ts.map +1 -1
  481. package/build/lib/version/date.js +3 -7
  482. package/build/lib/version/date.js.map +1 -1
  483. package/build/lib/version/integer.d.ts +11 -30
  484. package/build/lib/version/integer.d.ts.map +1 -1
  485. package/build/lib/version/integer.js +3 -7
  486. package/build/lib/version/integer.js.map +1 -1
  487. package/build/lib/version/semver.d.ts +11 -30
  488. package/build/lib/version/semver.d.ts.map +1 -1
  489. package/build/lib/version/semver.js +3 -7
  490. package/build/lib/version/semver.js.map +1 -1
  491. package/build/lib/version/version.d.ts +17 -333
  492. package/build/lib/version/version.d.ts.map +1 -1
  493. package/build/lib/version/version.js +11 -11
  494. package/build/lib/version/version.js.map +1 -1
  495. package/build/lib/version-selection/$$.d.ts +2 -0
  496. package/build/lib/version-selection/$$.d.ts.map +1 -0
  497. package/build/lib/version-selection/$$.js +2 -0
  498. package/build/lib/version-selection/$$.js.map +1 -0
  499. package/build/lib/version-selection/$.d.ts +2 -0
  500. package/build/lib/version-selection/$.d.ts.map +1 -0
  501. package/build/lib/version-selection/$.js +2 -0
  502. package/build/lib/version-selection/$.js.map +1 -0
  503. package/build/lib/version-selection/version-selection.d.ts +42 -0
  504. package/build/lib/version-selection/version-selection.d.ts.map +1 -0
  505. package/build/lib/version-selection/version-selection.js +86 -0
  506. package/build/lib/version-selection/version-selection.js.map +1 -0
  507. package/build/lib/vite-reactive/$$.d.ts +2 -0
  508. package/build/lib/vite-reactive/$$.d.ts.map +1 -0
  509. package/build/lib/vite-reactive/$$.js +2 -0
  510. package/build/lib/vite-reactive/$$.js.map +1 -0
  511. package/build/lib/vite-reactive/$.d.ts +2 -0
  512. package/build/lib/vite-reactive/$.d.ts.map +1 -0
  513. package/build/lib/vite-reactive/$.js +2 -0
  514. package/build/lib/vite-reactive/$.js.map +1 -0
  515. package/build/lib/vite-reactive/reactive-asset-plugin.d.ts +71 -0
  516. package/build/lib/vite-reactive/reactive-asset-plugin.d.ts.map +1 -0
  517. package/build/lib/vite-reactive/reactive-asset-plugin.js +155 -0
  518. package/build/lib/vite-reactive/reactive-asset-plugin.js.map +1 -0
  519. package/build/template/components/Carousel.d.ts +25 -0
  520. package/build/template/components/Carousel.d.ts.map +1 -0
  521. package/build/template/components/Carousel.js +134 -0
  522. package/build/template/components/Carousel.js.map +1 -0
  523. package/build/template/components/CarouselPill.d.ts +19 -0
  524. package/build/template/components/CarouselPill.d.ts.map +1 -0
  525. package/build/template/components/CarouselPill.js +31 -0
  526. package/build/template/components/CarouselPill.js.map +1 -0
  527. package/build/template/components/Changelog/Changelog.d.ts.map +1 -1
  528. package/build/template/components/Changelog/Changelog.js +19 -13
  529. package/build/template/components/Changelog/Changelog.js.map +1 -1
  530. package/build/template/components/Changelog/groups/TypeOperation.d.ts +2 -0
  531. package/build/template/components/Changelog/groups/TypeOperation.d.ts.map +1 -1
  532. package/build/template/components/Changelog/groups/TypeOperation.js +31 -5
  533. package/build/template/components/Changelog/groups/TypeOperation.js.map +1 -1
  534. package/build/template/components/CodeBlock.js +2 -2
  535. package/build/template/components/CodeBlock.js.map +1 -1
  536. package/build/template/components/DevelopmentTip.d.ts +13 -0
  537. package/build/template/components/DevelopmentTip.d.ts.map +1 -0
  538. package/build/template/components/DevelopmentTip.js +16 -0
  539. package/build/template/components/DevelopmentTip.js.map +1 -0
  540. package/build/template/components/ExampleLink.d.ts +11 -0
  541. package/build/template/components/ExampleLink.d.ts.map +1 -0
  542. package/build/template/components/ExampleLink.js +13 -0
  543. package/build/template/components/ExampleLink.js.map +1 -0
  544. package/build/template/components/Field.js +1 -1
  545. package/build/template/components/Field.js.map +1 -1
  546. package/build/template/components/GraphQLDocument.d.ts +25 -0
  547. package/build/template/components/GraphQLDocument.d.ts.map +1 -0
  548. package/build/template/components/GraphQLDocument.js +68 -0
  549. package/build/template/components/GraphQLDocument.js.map +1 -0
  550. package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts +6 -2
  551. package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts.map +1 -1
  552. package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +8 -2
  553. package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
  554. package/build/template/components/HamburgerMenu.d.ts +11 -1
  555. package/build/template/components/HamburgerMenu.d.ts.map +1 -1
  556. package/build/template/components/HamburgerMenu.js.map +1 -1
  557. package/build/template/components/Logo.d.ts +8 -1
  558. package/build/template/components/Logo.d.ts.map +1 -1
  559. package/build/template/components/Logo.js +27 -12
  560. package/build/template/components/Logo.js.map +1 -1
  561. package/build/template/components/NamedType.d.ts.map +1 -1
  562. package/build/template/components/NamedType.js +12 -4
  563. package/build/template/components/NamedType.js.map +1 -1
  564. package/build/template/components/SimpleVersionPicker.d.ts +15 -0
  565. package/build/template/components/SimpleVersionPicker.d.ts.map +1 -0
  566. package/build/template/components/SimpleVersionPicker.js +15 -0
  567. package/build/template/components/SimpleVersionPicker.js.map +1 -0
  568. package/build/template/components/TypeAnnotation.d.ts.map +1 -1
  569. package/build/template/components/TypeAnnotation.js +8 -15
  570. package/build/template/components/TypeAnnotation.js.map +1 -1
  571. package/build/template/components/VersionCoveragePicker.d.ts +17 -0
  572. package/build/template/components/VersionCoveragePicker.d.ts.map +1 -0
  573. package/build/template/components/VersionCoveragePicker.js +28 -0
  574. package/build/template/components/VersionCoveragePicker.js.map +1 -0
  575. package/build/template/components/VersionPicker.d.ts.map +1 -1
  576. package/build/template/components/VersionPicker.js +13 -18
  577. package/build/template/components/VersionPicker.js.map +1 -1
  578. package/build/template/components/home/ExamplesSection.d.ts +13 -0
  579. package/build/template/components/home/ExamplesSection.d.ts.map +1 -0
  580. package/build/template/components/home/ExamplesSection.js +15 -0
  581. package/build/template/components/home/ExamplesSection.js.map +1 -0
  582. package/build/template/components/home/FeaturesGrid.d.ts +12 -0
  583. package/build/template/components/home/FeaturesGrid.d.ts.map +1 -0
  584. package/build/template/components/home/FeaturesGrid.js +73 -0
  585. package/build/template/components/home/FeaturesGrid.js.map +1 -0
  586. package/build/template/components/home/HeroSection.d.ts +16 -0
  587. package/build/template/components/home/HeroSection.d.ts.map +1 -0
  588. package/build/template/components/home/HeroSection.js +178 -0
  589. package/build/template/components/home/HeroSection.js.map +1 -0
  590. package/build/template/components/home/PlaygroundPreview.d.ts +9 -0
  591. package/build/template/components/home/PlaygroundPreview.d.ts.map +1 -0
  592. package/build/template/components/home/PlaygroundPreview.js +38 -0
  593. package/build/template/components/home/PlaygroundPreview.js.map +1 -0
  594. package/build/template/components/home/QuickStart.d.ts +11 -0
  595. package/build/template/components/home/QuickStart.d.ts.map +1 -0
  596. package/build/template/components/home/QuickStart.js +74 -0
  597. package/build/template/components/home/QuickStart.js.map +1 -0
  598. package/build/template/components/home/RecentChanges.d.ts +8 -0
  599. package/build/template/components/home/RecentChanges.d.ts.map +1 -0
  600. package/build/template/components/home/RecentChanges.js +61 -0
  601. package/build/template/components/home/RecentChanges.js.map +1 -0
  602. package/build/template/components/home/Resources.d.ts +24 -0
  603. package/build/template/components/home/Resources.d.ts.map +1 -0
  604. package/build/template/components/home/Resources.js +53 -0
  605. package/build/template/components/home/Resources.js.map +1 -0
  606. package/build/template/components/home/SocialProof.d.ts +13 -0
  607. package/build/template/components/home/SocialProof.d.ts.map +1 -0
  608. package/build/template/components/home/SocialProof.js +47 -0
  609. package/build/template/components/home/SocialProof.js.map +1 -0
  610. package/build/template/components/navbar/DefaultNavbar.d.ts.map +1 -1
  611. package/build/template/components/navbar/DefaultNavbar.js +5 -6
  612. package/build/template/components/navbar/DefaultNavbar.js.map +1 -1
  613. package/build/template/components/sidebar/Sidebar.d.ts +10 -1
  614. package/build/template/components/sidebar/Sidebar.d.ts.map +1 -1
  615. package/build/template/components/sidebar/Sidebar.js.map +1 -1
  616. package/build/template/components/sidebar/SidebarItem.d.ts +11 -2
  617. package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
  618. package/build/template/components/sidebar/SidebarItem.js.map +1 -1
  619. package/build/template/components/swiss/SwissHeading.d.ts +10 -0
  620. package/build/template/components/swiss/SwissHeading.d.ts.map +1 -0
  621. package/build/template/components/swiss/SwissHeading.js +26 -0
  622. package/build/template/components/swiss/SwissHeading.js.map +1 -0
  623. package/build/template/components/swiss/index.d.ts +2 -0
  624. package/build/template/components/swiss/index.d.ts.map +1 -0
  625. package/build/template/components/swiss/index.js +2 -0
  626. package/build/template/components/swiss/index.js.map +1 -0
  627. package/build/template/contexts/GraphqlLifecycleContext.d.ts +1 -13
  628. package/build/template/contexts/GraphqlLifecycleContext.d.ts.map +1 -1
  629. package/build/template/entry.client.js +3 -3
  630. package/build/template/entry.client.js.map +1 -1
  631. package/build/template/hooks/use-examples.d.ts +38 -0
  632. package/build/template/hooks/use-examples.d.ts.map +1 -0
  633. package/build/template/hooks/use-examples.js +37 -0
  634. package/build/template/hooks/use-examples.js.map +1 -0
  635. package/build/template/hooks/use-highlighted.d.ts +14 -0
  636. package/build/template/hooks/use-highlighted.d.ts.map +1 -0
  637. package/build/template/hooks/use-highlighted.js +41 -0
  638. package/build/template/hooks/use-highlighted.js.map +1 -0
  639. package/build/template/layouts/SidebarLayout.d.ts +9 -1
  640. package/build/template/layouts/SidebarLayout.d.ts.map +1 -1
  641. package/build/template/layouts/SidebarLayout.js +4 -7
  642. package/build/template/layouts/SidebarLayout.js.map +1 -1
  643. package/build/template/layouts/index.d.ts +0 -1
  644. package/build/template/layouts/index.d.ts.map +1 -1
  645. package/build/template/layouts/index.js +0 -1
  646. package/build/template/layouts/index.js.map +1 -1
  647. package/build/template/lib/polen-url.js +3 -3
  648. package/build/template/lib/polen-url.js.map +1 -1
  649. package/build/template/providers/mdx.d.ts +8 -0
  650. package/build/template/providers/mdx.d.ts.map +1 -0
  651. package/build/template/providers/mdx.js +44 -0
  652. package/build/template/providers/mdx.js.map +1 -0
  653. package/build/template/routes/changelog.d.ts +4 -19
  654. package/build/template/routes/changelog.d.ts.map +1 -1
  655. package/build/template/routes/changelog.js +160 -26
  656. package/build/template/routes/changelog.js.map +1 -1
  657. package/build/template/routes/examples/_.d.ts +65 -0
  658. package/build/template/routes/examples/_.d.ts.map +1 -0
  659. package/build/template/routes/examples/_.js +56 -0
  660. package/build/template/routes/examples/_.js.map +1 -0
  661. package/build/template/routes/examples/_index.d.ts +39 -0
  662. package/build/template/routes/examples/_index.d.ts.map +1 -0
  663. package/build/template/routes/examples/_index.js +54 -0
  664. package/build/template/routes/examples/_index.js.map +1 -0
  665. package/build/template/routes/examples/name.d.ts +31 -0
  666. package/build/template/routes/examples/name.d.ts.map +1 -0
  667. package/build/template/routes/examples/name.js +50 -0
  668. package/build/template/routes/examples/name.js.map +1 -0
  669. package/build/template/routes/index.d.ts +1 -1
  670. package/build/template/routes/index.d.ts.map +1 -1
  671. package/build/template/routes/index.js +23 -3
  672. package/build/template/routes/index.js.map +1 -1
  673. package/build/template/routes/pages.d.ts.map +1 -1
  674. package/build/template/routes/pages.js +4 -44
  675. package/build/template/routes/pages.js.map +1 -1
  676. package/build/template/routes/reference.d.ts.map +1 -1
  677. package/build/template/routes/reference.js +54 -39
  678. package/build/template/routes/reference.js.map +1 -1
  679. package/build/template/routes/root.d.ts +3 -2
  680. package/build/template/routes/root.d.ts.map +1 -1
  681. package/build/template/routes/root.js +57 -17
  682. package/build/template/routes/root.js.map +1 -1
  683. package/build/template/server/create-page-html-response.js +2 -2
  684. package/build/template/server/create-page-html-response.js.map +1 -1
  685. package/build/template/server/main.js +5 -5
  686. package/build/template/server/main.js.map +1 -1
  687. package/build/template/server/view.js +3 -3
  688. package/build/template/server/view.js.map +1 -1
  689. package/build/template/stores/changelog.d.ts +31 -31
  690. package/build/template/stores/changelog.js +3 -3
  691. package/build/template/stores/changelog.js.map +1 -1
  692. package/build/template/stores/schema.d.ts +1 -1
  693. package/build/template/stores/toast.d.ts +1 -1
  694. package/build/template/theme/swiss-sharp.css +117 -0
  695. package/build/template/theme/swiss-sharp.d.ts +9 -0
  696. package/build/template/theme/swiss-sharp.d.ts.map +1 -0
  697. package/build/template/theme/swiss-sharp.js +13 -0
  698. package/build/template/theme/swiss-sharp.js.map +1 -0
  699. package/build/vite/config.d.ts +1 -1
  700. package/build/vite/config.d.ts.map +1 -1
  701. package/build/vite/logger.d.ts +2 -2
  702. package/build/vite/logger.d.ts.map +1 -1
  703. package/build/vite/logger.js +0 -1
  704. package/build/vite/logger.js.map +1 -1
  705. package/build/vite/plugins/branding.d.ts +2 -2
  706. package/build/vite/plugins/branding.d.ts.map +1 -1
  707. package/build/vite/plugins/branding.js +125 -10
  708. package/build/vite/plugins/branding.js.map +1 -1
  709. package/build/vite/plugins/build.d.ts +1 -1
  710. package/build/vite/plugins/build.d.ts.map +1 -1
  711. package/build/vite/plugins/config.d.ts +17 -0
  712. package/build/vite/plugins/config.d.ts.map +1 -0
  713. package/build/vite/plugins/config.js +33 -0
  714. package/build/vite/plugins/config.js.map +1 -0
  715. package/build/vite/plugins/core.d.ts +1 -5
  716. package/build/vite/plugins/core.d.ts.map +1 -1
  717. package/build/vite/plugins/core.js +43 -127
  718. package/build/vite/plugins/core.js.map +1 -1
  719. package/build/vite/plugins/examples.d.ts +23 -0
  720. package/build/vite/plugins/examples.d.ts.map +1 -0
  721. package/build/vite/plugins/examples.js +149 -0
  722. package/build/vite/plugins/examples.js.map +1 -0
  723. package/build/vite/plugins/hooks.d.ts +12 -0
  724. package/build/vite/plugins/hooks.d.ts.map +1 -0
  725. package/build/vite/plugins/hooks.js +41 -0
  726. package/build/vite/plugins/hooks.js.map +1 -0
  727. package/build/vite/plugins/index.d.ts +2 -1
  728. package/build/vite/plugins/index.d.ts.map +1 -1
  729. package/build/vite/plugins/index.js +2 -1
  730. package/build/vite/plugins/index.js.map +1 -1
  731. package/build/vite/plugins/main.d.ts +1 -1
  732. package/build/vite/plugins/main.d.ts.map +1 -1
  733. package/build/vite/plugins/manifest.d.ts +1 -1
  734. package/build/vite/plugins/manifest.d.ts.map +1 -1
  735. package/build/vite/plugins/navbar.d.ts +16 -0
  736. package/build/vite/plugins/navbar.d.ts.map +1 -0
  737. package/build/vite/plugins/navbar.js +60 -0
  738. package/build/vite/plugins/navbar.js.map +1 -0
  739. package/build/vite/plugins/pages.d.ts +10 -4
  740. package/build/vite/plugins/pages.d.ts.map +1 -1
  741. package/build/vite/plugins/pages.js +48 -120
  742. package/build/vite/plugins/pages.js.map +1 -1
  743. package/build/vite/plugins/routes-manifest.d.ts +1 -1
  744. package/build/vite/plugins/routes-manifest.d.ts.map +1 -1
  745. package/build/vite/plugins/routes-manifest.js +13 -16
  746. package/build/vite/plugins/routes-manifest.js.map +1 -1
  747. package/build/vite/plugins/schemas.d.ts +30 -0
  748. package/build/vite/plugins/schemas.d.ts.map +1 -0
  749. package/build/vite/plugins/schemas.js +116 -0
  750. package/build/vite/plugins/schemas.js.map +1 -0
  751. package/build/vite/plugins/serve.d.ts +1 -1
  752. package/build/vite/plugins/serve.d.ts.map +1 -1
  753. package/package.json +62 -11
  754. package/src/api/{api.ts → $$.ts} +6 -2
  755. package/src/api/$.ts +1 -0
  756. package/src/api/config/$$.ts +1 -0
  757. package/src/api/config/home.ts +542 -0
  758. package/src/api/config/input.ts +109 -26
  759. package/src/api/config/normalized.ts +474 -30
  760. package/src/api/config-template/template.ts +77 -0
  761. package/src/api/content/$$.ts +1 -0
  762. package/src/api/content/mdx-compiler.ts +74 -0
  763. package/src/api/content/navbar.test.ts +3 -3
  764. package/src/api/content/navbar.ts +1 -1
  765. package/src/api/examples/$$.ts +7 -0
  766. package/src/api/examples/$.test.ts +201 -0
  767. package/src/api/examples/$.ts +1 -0
  768. package/src/api/examples/config.test.ts +92 -0
  769. package/src/api/examples/config.ts +242 -0
  770. package/src/api/examples/diagnostic/diagnostic.ts +30 -0
  771. package/src/api/examples/diagnostic/duplicate-content.ts +25 -0
  772. package/src/api/examples/diagnostic/invalid-filename.ts +19 -0
  773. package/src/api/examples/diagnostic/missing-versions.ts +24 -0
  774. package/src/api/examples/diagnostic/unknown-version.ts +24 -0
  775. package/src/api/examples/diagnostic/unused-default.ts +22 -0
  776. package/src/api/examples/diagnostic/validation-error.ts +24 -0
  777. package/src/api/examples/diagnostic/validator.test.ts +292 -0
  778. package/src/api/examples/diagnostic/validator.ts +176 -0
  779. package/src/api/examples/filter.test.ts +56 -0
  780. package/src/api/examples/filter.ts +82 -0
  781. package/src/api/examples/scanner.ts +346 -0
  782. package/src/api/examples/schemas/catalog.ts +51 -0
  783. package/src/api/examples/schemas/example/$$.ts +1 -0
  784. package/src/api/examples/schemas/example/$.ts +1 -0
  785. package/src/api/examples/schemas/example/example.ts +73 -0
  786. package/src/api/examples/schemas/type-usage-index.ts +75 -0
  787. package/src/api/examples/type-generator.ts +49 -0
  788. package/src/api/examples/type-usage-indexer.test.ts +276 -0
  789. package/src/api/examples/type-usage-indexer.ts +291 -0
  790. package/src/api/iso/schema/routing.ts +2 -2
  791. package/src/api/project/$.ts +1 -0
  792. package/src/api/schema/$.test.ts +2 -2
  793. package/src/api/schema/input-sources/versioned-directory.ts +11 -6
  794. package/src/api/schema/load.ts +1 -1
  795. package/src/api/typings/$$.ts +1 -0
  796. package/src/api/typings/$.ts +1 -0
  797. package/src/api/typings/typings.ts +273 -0
  798. package/src/cli/_/parameters.ts +12 -12
  799. package/src/cli/commands/build.ts +58 -67
  800. package/src/cli/commands/cache/delete.ts +17 -24
  801. package/src/cli/commands/cache/show.ts +70 -72
  802. package/src/cli/commands/cache.ts +24 -6
  803. package/src/cli/commands/config/create.ts +37 -31
  804. package/src/cli/commands/config.ts +22 -6
  805. package/src/cli/commands/create.ts +104 -84
  806. package/src/cli/commands/dev.ts +59 -65
  807. package/src/cli/commands/hero-image.ts +282 -0
  808. package/src/cli/commands/open.ts +139 -140
  809. package/src/cli/commands/static/rebase.ts +61 -39
  810. package/src/cli/commands/static.ts +36 -6
  811. package/src/cli/index.ts +103 -8
  812. package/src/lib/ai-image-generation/$$.ts +2 -0
  813. package/src/lib/ai-image-generation/$.test.ts +344 -0
  814. package/src/lib/ai-image-generation/$.ts +1 -0
  815. package/src/lib/ai-image-generation/ai-image-generation.ts +231 -0
  816. package/src/lib/ai-image-generation/providers/pollinations.ts +65 -0
  817. package/src/lib/ai-image-generation/service.ts +185 -0
  818. package/src/lib/catalog/catalog.ts +30 -3
  819. package/src/lib/catalog/unversioned.ts +1 -1
  820. package/src/lib/catalog/versioned.ts +51 -2
  821. package/src/lib/catalog-statistics/$$.ts +4 -0
  822. package/src/lib/catalog-statistics/$.test.ts +161 -0
  823. package/src/lib/catalog-statistics/$.ts +1 -0
  824. package/src/lib/catalog-statistics/analyze-catalog.ts +158 -0
  825. package/src/lib/catalog-statistics/analyze-options.ts +15 -0
  826. package/src/lib/catalog-statistics/analyze-schema.ts +226 -0
  827. package/src/lib/catalog-statistics/data.ts +196 -0
  828. package/src/lib/catalog-statistics/report.ts +45 -0
  829. package/src/lib/change/change.ts +1 -1
  830. package/src/lib/change/criticality.ts +2 -2
  831. package/src/lib/date-only/date-only.ts +1 -1
  832. package/src/lib/diagnostic/$$.ts +5 -0
  833. package/src/lib/diagnostic/$.test.ts +109 -0
  834. package/src/lib/diagnostic/$.ts +1 -0
  835. package/src/lib/diagnostic/control.test.ts +75 -0
  836. package/src/lib/diagnostic/control.ts +140 -0
  837. package/src/lib/diagnostic/diagnostic.ts +144 -0
  838. package/src/lib/diagnostic/filter.ts +21 -0
  839. package/src/lib/diagnostic/reporter.ts +74 -0
  840. package/src/lib/diagnostic/severity.ts +93 -0
  841. package/src/lib/directed-filter/$$.ts +1 -0
  842. package/src/lib/directed-filter/$.test.ts +169 -0
  843. package/src/lib/directed-filter/$.ts +1 -0
  844. package/src/lib/directed-filter/directed-filter.ts +241 -0
  845. package/src/lib/document/$$.ts +3 -0
  846. package/src/lib/document/$.ts +1 -0
  847. package/src/lib/document/document.ts +37 -0
  848. package/src/lib/document/unversioned.ts +35 -0
  849. package/src/lib/document/versioned.ts +106 -0
  850. package/src/lib/effect-cli-help-markdown/$$.ts +1 -0
  851. package/src/lib/effect-cli-help-markdown/$.test.ts +49 -0
  852. package/src/lib/effect-cli-help-markdown/$.ts +1 -0
  853. package/src/lib/effect-cli-help-markdown/effect-cli-help-markdown.ts +699 -0
  854. package/src/lib/effect-glob/$$.ts +1 -0
  855. package/src/lib/effect-glob/$.ts +1 -0
  856. package/src/lib/effect-glob/effect-glob.ts +33 -0
  857. package/src/lib/file-path/$$.ts +3 -4
  858. package/src/lib/file-path/$.test.ts +45 -0
  859. package/src/lib/file-path/$.ts +1 -1
  860. package/src/lib/file-path/absolute.ts +66 -0
  861. package/src/lib/file-path/file-path.ts +17 -117
  862. package/src/lib/file-path/relative.ts +72 -0
  863. package/src/lib/file-path/segment/$.ts +1 -0
  864. package/src/lib/file-path/{file-path.test.ts → segment/segment.test.ts} +2 -2
  865. package/src/lib/file-path/segment/segment.ts +134 -0
  866. package/src/lib/file-router/linter.ts +82 -49
  867. package/src/lib/graph/graph.ts +1 -1
  868. package/src/lib/graphql-error/$$.ts +1 -0
  869. package/src/lib/graphql-error/$.ts +1 -0
  870. package/src/lib/graphql-error/graphql-error.ts +74 -0
  871. package/src/lib/kit-temp/effect.ts +69 -0
  872. package/src/lib/kit-temp/ob.ts +13 -0
  873. package/src/lib/kit-temp/other.test.ts +1 -1
  874. package/src/lib/kit-temp/resource.ts +1 -2
  875. package/src/lib/lifecycles/lifecycles.ts +1 -1
  876. package/src/lib/react-router-effect/route-helpers.ts +71 -8
  877. package/src/lib/react-router-effect/route.ts +14 -1
  878. package/src/lib/react-router-effect/types.ts +11 -3
  879. package/src/lib/react-router-effect/use-loader-data.ts +3 -3
  880. package/src/lib/revision/revision.ts +1 -1
  881. package/src/lib/schema/$.test.ts +1 -1
  882. package/src/lib/schema/schema.ts +1 -1
  883. package/src/lib/schema/unversioned.ts +1 -1
  884. package/src/lib/schema-definition/schema-definition.ts +1 -1
  885. package/src/lib/semver/official-release.ts +1 -1
  886. package/src/lib/semver/pre-release.ts +1 -1
  887. package/src/lib/semver/semver.ts +1 -1
  888. package/src/lib/swiss/$$.ts +5 -0
  889. package/src/lib/swiss/$.test.ts +89 -0
  890. package/src/lib/swiss/$.ts +2 -0
  891. package/src/lib/swiss/grid.tsx +61 -0
  892. package/src/lib/swiss/items.tsx +288 -0
  893. package/src/lib/swiss/styles.css +298 -0
  894. package/src/lib/swiss/subgrid.tsx +83 -0
  895. package/src/lib/swiss/types.ts +353 -0
  896. package/src/lib/swiss/utils.ts +144 -0
  897. package/src/lib/version/$.test.ts +2 -2
  898. package/src/lib/version/custom.ts +2 -13
  899. package/src/lib/version/date.ts +2 -13
  900. package/src/lib/version/integer.ts +2 -13
  901. package/src/lib/version/semver.ts +2 -13
  902. package/src/lib/version/version.ts +15 -12
  903. package/src/lib/version-selection/$$.ts +1 -0
  904. package/src/lib/version-selection/$.ts +1 -0
  905. package/src/lib/version-selection/version-selection.ts +117 -0
  906. package/src/lib/vite-reactive/$$.ts +1 -0
  907. package/src/lib/vite-reactive/$.ts +1 -0
  908. package/src/lib/vite-reactive/reactive-asset-plugin.ts +280 -0
  909. package/src/template/components/Carousel.tsx +224 -0
  910. package/src/template/components/CarouselPill.tsx +101 -0
  911. package/src/template/components/Changelog/Changelog.tsx +22 -12
  912. package/src/template/components/Changelog/groups/TypeOperation.tsx +53 -5
  913. package/src/template/components/CodeBlock.tsx +2 -2
  914. package/src/template/components/DevelopmentTip.tsx +43 -0
  915. package/src/template/components/ExampleLink.tsx +25 -0
  916. package/src/template/components/Field.tsx +1 -1
  917. package/src/template/components/GraphQLDocument.tsx +146 -0
  918. package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +25 -3
  919. package/src/template/components/HamburgerMenu.tsx +14 -1
  920. package/src/template/components/Logo.tsx +35 -15
  921. package/src/template/components/NamedType.tsx +27 -3
  922. package/src/template/components/SimpleVersionPicker.tsx +48 -0
  923. package/src/template/components/TypeAnnotation.tsx +8 -26
  924. package/src/template/components/VersionCoveragePicker.tsx +57 -0
  925. package/src/template/components/VersionPicker.tsx +20 -31
  926. package/src/template/components/home/ExamplesSection.tsx +49 -0
  927. package/src/template/components/home/FeaturesGrid.tsx +135 -0
  928. package/src/template/components/home/HeroSection.tsx +379 -0
  929. package/src/template/components/home/PlaygroundPreview.tsx +138 -0
  930. package/src/template/components/home/QuickStart.tsx +132 -0
  931. package/src/template/components/home/RecentChanges.tsx +154 -0
  932. package/src/template/components/home/Resources.tsx +207 -0
  933. package/src/template/components/home/SocialProof.tsx +109 -0
  934. package/src/template/components/navbar/DefaultNavbar.tsx +23 -12
  935. package/src/template/components/sidebar/Sidebar.tsx +14 -1
  936. package/src/template/components/sidebar/SidebarItem.tsx +18 -6
  937. package/src/template/components/swiss/SwissHeading.tsx +44 -0
  938. package/src/template/components/swiss/index.ts +1 -0
  939. package/src/template/entry.client.tsx +3 -3
  940. package/src/template/hooks/use-examples.ts +46 -0
  941. package/src/template/hooks/use-highlighted.ts +57 -0
  942. package/src/template/layouts/SidebarLayout.tsx +34 -27
  943. package/src/template/layouts/index.ts +0 -1
  944. package/src/template/lib/polen-url.ts +3 -3
  945. package/src/template/providers/mdx.tsx +75 -0
  946. package/src/template/routes/changelog.tsx +253 -28
  947. package/src/template/routes/examples/_.tsx +90 -0
  948. package/src/template/routes/examples/_index.tsx +93 -0
  949. package/src/template/routes/examples/name.tsx +69 -0
  950. package/src/template/routes/index.tsx +48 -2
  951. package/src/template/routes/pages.tsx +5 -67
  952. package/src/template/routes/reference.tsx +41 -19
  953. package/src/template/routes/root.tsx +94 -38
  954. package/src/template/server/create-page-html-response.ts +2 -2
  955. package/src/template/server/main.ts +6 -6
  956. package/src/template/server/view.ts +3 -3
  957. package/src/template/stores/changelog.ts +3 -3
  958. package/src/template/theme/swiss-sharp.css +117 -0
  959. package/src/template/theme/swiss-sharp.ts +14 -0
  960. package/src/types/virtual-modules.d.ts +26 -19
  961. package/src/vite/config.ts +1 -1
  962. package/src/vite/logger.ts +2 -3
  963. package/src/vite/plugins/branding.ts +141 -12
  964. package/src/vite/plugins/build.ts +1 -1
  965. package/src/vite/plugins/config.ts +57 -0
  966. package/src/vite/plugins/core.ts +45 -167
  967. package/src/vite/plugins/examples.ts +201 -0
  968. package/src/vite/plugins/hooks.ts +49 -0
  969. package/src/vite/plugins/index.ts +2 -1
  970. package/src/vite/plugins/main.ts +1 -1
  971. package/src/vite/plugins/manifest.ts +1 -1
  972. package/src/vite/plugins/navbar.ts +102 -0
  973. package/src/vite/plugins/pages.ts +70 -155
  974. package/src/vite/plugins/routes-manifest.ts +16 -14
  975. package/src/vite/plugins/schemas.ts +145 -0
  976. package/src/vite/plugins/serve.ts +1 -1
  977. package/build/api/api.d.ts.map +0 -1
  978. package/build/api/api.js +0 -9
  979. package/build/api/api.js.map +0 -1
  980. package/build/api/index.d.ts +0 -2
  981. package/build/api/index.d.ts.map +0 -1
  982. package/build/api/index.js +0 -2
  983. package/build/api/index.js.map +0 -1
  984. package/build/api/project/index.d.ts +0 -2
  985. package/build/api/project/index.d.ts.map +0 -1
  986. package/build/api/project/index.js +0 -2
  987. package/build/api/project/index.js.map +0 -1
  988. package/build/cli/commands/$default.d.ts +0 -3
  989. package/build/cli/commands/$default.d.ts.map +0 -1
  990. package/build/cli/commands/$default.js +0 -89
  991. package/build/cli/commands/$default.js.map +0 -1
  992. package/build/cli/commands/cache/$default.d.ts +0 -3
  993. package/build/cli/commands/cache/$default.d.ts.map +0 -1
  994. package/build/cli/commands/cache/$default.js +0 -10
  995. package/build/cli/commands/cache/$default.js.map +0 -1
  996. package/build/cli/commands/config/$default.d.ts +0 -2
  997. package/build/cli/commands/config/$default.d.ts.map +0 -1
  998. package/build/cli/commands/config/$default.js +0 -7
  999. package/build/cli/commands/config/$default.js.map +0 -1
  1000. package/build/cli/commands/static/$default.d.ts +0 -3
  1001. package/build/cli/commands/static/$default.d.ts.map +0 -1
  1002. package/build/cli/commands/static/$default.js +0 -38
  1003. package/build/cli/commands/static/$default.js.map +0 -1
  1004. package/build/cli-effect/_/parameters.d.ts +0 -7
  1005. package/build/cli-effect/_/parameters.d.ts.map +0 -1
  1006. package/build/cli-effect/_/parameters.js +0 -7
  1007. package/build/cli-effect/_/parameters.js.map +0 -1
  1008. package/build/cli-effect/commands/build.d.ts +0 -11
  1009. package/build/cli-effect/commands/build.d.ts.map +0 -1
  1010. package/build/cli-effect/commands/build.js +0 -40
  1011. package/build/cli-effect/commands/build.js.map +0 -1
  1012. package/build/cli-effect/commands/cache/delete.d.ts +0 -7
  1013. package/build/cli-effect/commands/cache/delete.d.ts.map +0 -1
  1014. package/build/cli-effect/commands/cache/delete.js +0 -15
  1015. package/build/cli-effect/commands/cache/delete.js.map +0 -1
  1016. package/build/cli-effect/commands/cache/show.d.ts +0 -6
  1017. package/build/cli-effect/commands/cache/show.d.ts.map +0 -1
  1018. package/build/cli-effect/commands/cache/show.js +0 -80
  1019. package/build/cli-effect/commands/cache/show.js.map +0 -1
  1020. package/build/cli-effect/commands/cache.d.ts +0 -11
  1021. package/build/cli-effect/commands/cache.d.ts.map +0 -1
  1022. package/build/cli-effect/commands/cache.js +0 -18
  1023. package/build/cli-effect/commands/cache.js.map +0 -1
  1024. package/build/cli-effect/commands/config/create.d.ts +0 -7
  1025. package/build/cli-effect/commands/config/create.d.ts.map +0 -1
  1026. package/build/cli-effect/commands/config/create.js +0 -36
  1027. package/build/cli-effect/commands/config/create.js.map +0 -1
  1028. package/build/cli-effect/commands/config.d.ts +0 -8
  1029. package/build/cli-effect/commands/config.d.ts.map +0 -1
  1030. package/build/cli-effect/commands/config.js +0 -16
  1031. package/build/cli-effect/commands/config.js.map +0 -1
  1032. package/build/cli-effect/commands/create.d.ts +0 -10
  1033. package/build/cli-effect/commands/create.d.ts.map +0 -1
  1034. package/build/cli-effect/commands/create.js +0 -112
  1035. package/build/cli-effect/commands/create.js.map +0 -1
  1036. package/build/cli-effect/commands/dev.d.ts +0 -10
  1037. package/build/cli-effect/commands/dev.d.ts.map +0 -1
  1038. package/build/cli-effect/commands/dev.js +0 -48
  1039. package/build/cli-effect/commands/dev.js.map +0 -1
  1040. package/build/cli-effect/commands/open.d.ts +0 -11
  1041. package/build/cli-effect/commands/open.d.ts.map +0 -1
  1042. package/build/cli-effect/commands/open.js +0 -131
  1043. package/build/cli-effect/commands/open.js.map +0 -1
  1044. package/build/cli-effect/commands/static/rebase.d.ts +0 -9
  1045. package/build/cli-effect/commands/static/rebase.d.ts.map +0 -1
  1046. package/build/cli-effect/commands/static/rebase.js +0 -44
  1047. package/build/cli-effect/commands/static/rebase.js.map +0 -1
  1048. package/build/cli-effect/commands/static.d.ts +0 -10
  1049. package/build/cli-effect/commands/static.d.ts.map +0 -1
  1050. package/build/cli-effect/commands/static.js +0 -29
  1051. package/build/cli-effect/commands/static.js.map +0 -1
  1052. package/build/cli-effect/index.d.ts +0 -3
  1053. package/build/cli-effect/index.d.ts.map +0 -1
  1054. package/build/cli-effect/index.js +0 -61
  1055. package/build/cli-effect/index.js.map +0 -1
  1056. package/build/lib/file-router/diagnostic-reporter.d.ts +0 -3
  1057. package/build/lib/file-router/diagnostic-reporter.d.ts.map +0 -1
  1058. package/build/lib/file-router/diagnostic-reporter.js +0 -18
  1059. package/build/lib/file-router/diagnostic-reporter.js.map +0 -1
  1060. package/build/lib/task/$$.d.ts +0 -3
  1061. package/build/lib/task/$$.d.ts.map +0 -1
  1062. package/build/lib/task/$$.js +0 -3
  1063. package/build/lib/task/$$.js.map +0 -1
  1064. package/build/lib/task/$.d.ts +0 -2
  1065. package/build/lib/task/$.d.ts.map +0 -1
  1066. package/build/lib/task/$.js +0 -2
  1067. package/build/lib/task/$.js.map +0 -1
  1068. package/build/lib/task/report.d.ts +0 -28
  1069. package/build/lib/task/report.d.ts.map +0 -1
  1070. package/build/lib/task/report.js +0 -33
  1071. package/build/lib/task/report.js.map +0 -1
  1072. package/build/lib/task/task.d.ts +0 -45
  1073. package/build/lib/task/task.d.ts.map +0 -1
  1074. package/build/lib/task/task.js +0 -71
  1075. package/build/lib/task/task.js.map +0 -1
  1076. package/build/project-data.d.ts +0 -10
  1077. package/build/project-data.d.ts.map +0 -1
  1078. package/build/project-data.js +0 -2
  1079. package/build/project-data.js.map +0 -1
  1080. package/build/template/catalog-bridge.d.ts +0 -1837
  1081. package/build/template/catalog-bridge.d.ts.map +0 -1
  1082. package/build/template/catalog-bridge.js +0 -87
  1083. package/build/template/catalog-bridge.js.map +0 -1
  1084. package/build/template/data/catalog.d.ts +0 -3
  1085. package/build/template/data/catalog.d.ts.map +0 -1
  1086. package/build/template/data/catalog.js +0 -7
  1087. package/build/template/data/catalog.js.map +0 -1
  1088. package/build/template/layouts/ChangelogLayout.d.ts +0 -9
  1089. package/build/template/layouts/ChangelogLayout.d.ts.map +0 -1
  1090. package/build/template/layouts/ChangelogLayout.js +0 -97
  1091. package/build/template/layouts/ChangelogLayout.js.map +0 -1
  1092. package/build/vite/plugins/schema-assets.d.ts +0 -20
  1093. package/build/vite/plugins/schema-assets.d.ts.map +0 -1
  1094. package/build/vite/plugins/schema-assets.js +0 -225
  1095. package/build/vite/plugins/schema-assets.js.map +0 -1
  1096. package/src/api/index.ts +0 -1
  1097. package/src/cli/commands/$default.ts +0 -102
  1098. package/src/cli/commands/cache/$default.ts +0 -10
  1099. package/src/cli/commands/config/$default.ts +0 -7
  1100. package/src/cli/commands/static/$default.ts +0 -43
  1101. package/src/cli-effect/_/parameters.ts +0 -17
  1102. package/src/cli-effect/commands/build.ts +0 -66
  1103. package/src/cli-effect/commands/cache/delete.ts +0 -21
  1104. package/src/cli-effect/commands/cache/show.ts +0 -99
  1105. package/src/cli-effect/commands/cache.ts +0 -27
  1106. package/src/cli-effect/commands/config/create.ts +0 -49
  1107. package/src/cli-effect/commands/config.ts +0 -25
  1108. package/src/cli-effect/commands/create.ts +0 -167
  1109. package/src/cli-effect/commands/dev.ts +0 -72
  1110. package/src/cli-effect/commands/open.ts +0 -183
  1111. package/src/cli-effect/commands/static/rebase.ts +0 -66
  1112. package/src/cli-effect/commands/static.ts +0 -39
  1113. package/src/cli-effect/index.ts +0 -79
  1114. package/src/lib/file-router/diagnostic-reporter.ts +0 -22
  1115. package/src/lib/task/$$.ts +0 -2
  1116. package/src/lib/task/$.test.ts +0 -210
  1117. package/src/lib/task/$.ts +0 -1
  1118. package/src/lib/task/report.ts +0 -72
  1119. package/src/lib/task/task.ts +0 -129
  1120. package/src/project-data.ts +0 -10
  1121. package/src/template/catalog-bridge.ts +0 -102
  1122. package/src/template/data/catalog.ts +0 -7
  1123. package/src/template/layouts/ChangelogLayout.tsx +0 -185
  1124. package/src/vite/plugins/schema-assets.ts +0 -265
  1125. /package/src/api/project/{index.ts → $$.ts} +0 -0
@@ -0,0 +1,41 @@
1
+ import { highlight } from 'codehike/code';
2
+ import * as React from 'react';
3
+ /**
4
+ * Hook to asynchronously highlight code content using CodeHike.
5
+ *
6
+ * @param content - The code content to highlight
7
+ * @param lang - The language for syntax highlighting (default: 'graphql')
8
+ * @param interactive - Whether to add interactive meta flag (default: false)
9
+ * @returns The highlighted code object or null while loading
10
+ */
11
+ export const useHighlighted = (content, options) => {
12
+ const config = {
13
+ interactive: options?.interactive ?? false,
14
+ lang: options?.lang ?? 'graphql',
15
+ };
16
+ const meta = [];
17
+ if (config.interactive)
18
+ meta.push('interactive');
19
+ const metaString = meta.join(' ');
20
+ const [highlightedCode, setHighlightedCode] = React.useState(null);
21
+ React.useEffect(() => {
22
+ const highlightContent = async () => {
23
+ // Add a timeout to detect if highlight is hanging
24
+ const timeoutPromise = new Promise((_, reject) => {
25
+ setTimeout(() => reject(new Error('Highlight timeout after 5 seconds')), 5000);
26
+ });
27
+ const highlightPromise = highlight({
28
+ value: content,
29
+ lang: config.lang,
30
+ meta: metaString,
31
+ }, {
32
+ theme: 'github-light',
33
+ });
34
+ const highlighted = await Promise.race([highlightPromise, timeoutPromise]);
35
+ setHighlightedCode(highlighted);
36
+ };
37
+ highlightContent();
38
+ }, [content, config.lang, config.interactive]);
39
+ return highlightedCode;
40
+ };
41
+ //# sourceMappingURL=use-highlighted.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-highlighted.js","sourceRoot":"","sources":["../../../src/template/hooks/use-highlighted.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAAe,EACf,OAGC,EACuB,EAAE;IAC1B,MAAM,MAAM,GAAG;QACb,WAAW,EAAE,OAAO,EAAE,WAAW,IAAI,KAAK;QAC1C,IAAI,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS;KACjC,CAAA;IAED,MAAM,IAAI,GAAG,EAAE,CAAA;IACf,IAAI,MAAM,CAAC,WAAW;QAAE,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IAChD,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAEjC,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAyB,IAAI,CAAC,CAAA;IAE1F,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,gBAAgB,GAAG,KAAK,IAAI,EAAE;YAClC,kDAAkD;YAClD,MAAM,cAAc,GAAG,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE;gBAC/C,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;YAChF,CAAC,CAAC,CAAA;YAEF,MAAM,gBAAgB,GAAG,SAAS,CAChC;gBACE,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,IAAI,EAAE,UAAU;aACjB,EACD;gBACE,KAAK,EAAE,cAAc;aACtB,CACF,CAAA;YAED,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC,CAAA;YAE1E,kBAAkB,CAAC,WAAkB,CAAC,CAAA;QACxC,CAAC,CAAA;QACD,gBAAgB,EAAE,CAAA;IACpB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAA;IAE9C,OAAO,eAAe,CAAA;AACxB,CAAC,CAAA"}
@@ -1,8 +1,16 @@
1
1
  import type { Content } from '#api/content/$';
2
2
  import type React from 'react';
3
+ interface TemplateItemLink extends Omit<Content.ItemLink, 'title'> {
4
+ title: string | React.ReactNode;
5
+ }
6
+ interface TemplateItemSection extends Omit<Content.ItemSection, 'title' | 'links'> {
7
+ title: string | React.ReactNode;
8
+ links: TemplateItemLink[];
9
+ }
10
+ type TemplateItem = TemplateItemLink | TemplateItemSection;
3
11
  interface Props {
4
12
  children: React.ReactNode;
5
- sidebar: Content.Item[];
13
+ sidebar: TemplateItem[];
6
14
  basePath?: string;
7
15
  topContent?: React.ReactNode;
8
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarLayout.d.ts","sourceRoot":"","sources":["../../../src/template/layouts/SidebarLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC7B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA4DzC,CAAA"}
1
+ {"version":3,"file":"SidebarLayout.d.ts","sourceRoot":"","sources":["../../../src/template/layouts/SidebarLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,UAAU,gBAAiB,SAAQ,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC;IAChE,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;CAChC;AAED,UAAU,mBAAoB,SAAQ,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC;IAChF,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;IAC/B,KAAK,EAAE,gBAAgB,EAAE,CAAA;CAC1B;AAED,KAAK,YAAY,GAAG,gBAAgB,GAAG,mBAAmB,CAAA;AAE1D,UAAU,KAAK;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC7B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsDzC,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Grid } from '@radix-ui/themes';
2
+ import { Swiss } from '#lib/swiss';
3
+ import { Box } from '@radix-ui/themes';
3
4
  import { useEffect, useState } from 'react';
4
5
  import { useLocation } from 'react-router';
5
6
  import { HamburgerMenu } from '../components/HamburgerMenu.js';
@@ -12,14 +13,10 @@ export const SidebarLayout = ({ children, sidebar, basePath, topContent }) => {
12
13
  setMobileMenuOpen(false);
13
14
  }, [location.pathname]);
14
15
  const isShowSidebar = sidebar && sidebar.length > 0;
15
- return (_jsxs(Grid, { areas: {
16
- initial: `'content'`,
17
- sm: `'content'`,
18
- md: `'sidebar sidebar . content content content content content'`,
19
- }, rows: 'auto', columns: { initial: `1fr`, sm: `1fr`, md: `repeat(8, 1fr)` }, gapX: { initial: `0`, sm: `0`, md: `2` }, children: [isShowSidebar && (_jsx(Box, { display: { initial: `block`, md: `none` }, mb: '4', children: _jsx(HamburgerMenu, { isOpen: mobileMenuOpen, onToggle: () => {
16
+ return (_jsxs(Swiss.Body, { subgrid: true, children: [isShowSidebar && (_jsx(Box, { display: { initial: `block`, md: `none` }, mb: '4', children: _jsx(HamburgerMenu, { isOpen: mobileMenuOpen, onToggle: () => {
20
17
  setMobileMenuOpen(!mobileMenuOpen);
21
18
  }, onClose: () => {
22
19
  setMobileMenuOpen(false);
23
- }, sidebarData: sidebar, ...(basePath !== undefined && { basePath }), ...(topContent !== undefined && { topContent }) }) })), isShowSidebar && (_jsx(Box, { display: { initial: `none`, xs: `none`, sm: `none`, md: `block` }, gridColumn: '1 / 3', gridRow: '1 / auto', children: _jsx(Sidebar, { data: sidebar, ...(basePath !== undefined && { basePath }), ...(topContent !== undefined && { topContent }) }) })), _jsx(Box, { gridArea: 'content / content / auto / 8', children: children })] }));
20
+ }, sidebarData: sidebar, ...(basePath !== undefined && { basePath }), ...(topContent !== undefined && { topContent }) }) })), isShowSidebar && (_jsx(Swiss.Item, { cols: { initial: 3, md: 3 }, children: _jsx(Box, { display: { initial: `none`, md: `block` }, position: 'sticky', top: '4', children: _jsx(Sidebar, { data: sidebar, ...(basePath !== undefined && { basePath }), ...(topContent !== undefined && { topContent }) }) }) })), _jsx(Swiss.Item, { cols: 8, start: 5, children: children })] }));
24
21
  };
25
22
  //# sourceMappingURL=SidebarLayout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarLayout.js","source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,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EACzC,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,GAAG,YAER,KAAC,OAAO,IACN,IAAI,EAAE,OAAO,KACT,CAAC,QAAQ,KAAK,SAAS,IAAI,EAAE,QAAQ,EAAE,CAAC,KACxC,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,UAAU,EAAE,CAAC,GAChD,GACE,GACK,CACd,EAGD,KAAC,KAAK,CAAC,IAAI,IAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,YAC1B,QAAQ,GACE,IACF,CACd,CAAA;AACH,CAAC,CAAA"}
@@ -1,3 +1,2 @@
1
- export * from './ChangelogLayout.js';
2
1
  export * from './SidebarLayout.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -1,3 +1,2 @@
1
- export * from './ChangelogLayout.js';
2
1
  export * from './SidebarLayout.js';
3
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/template/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/template/layouts/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -1,4 +1,4 @@
1
- import PROJECT_DATA from 'virtual:polen/project/data.json';
1
+ import { templateConfig } from 'virtual:polen/project/config';
2
2
  /**
3
3
  * Create a Polen URL path that respects the configured base path for UI navigation.
4
4
  *
@@ -22,7 +22,7 @@ import PROJECT_DATA from 'virtual:polen/project/data.json';
22
22
  * polenUrlPath('reference/Pokemon#field') // '/demos/pokemon/reference/Pokemon#field'
23
23
  */
24
24
  export const polenUrlPath = (...segments) => {
25
- const basePath = PROJECT_DATA.basePath; // e.g., '/demos/pokemon/'
25
+ const basePath = templateConfig.build.base; // e.g., '/demos/pokemon/'
26
26
  // Join segments and normalize slashes
27
27
  const path = segments
28
28
  .join('/')
@@ -44,6 +44,6 @@ export const polenUrlPath = (...segments) => {
44
44
  * polenUrlPathAssets('images/logo.png') // '/demos/pokemon/assets/images/logo.png'
45
45
  */
46
46
  export const polenUrlPathAssets = (...segments) => {
47
- return polenUrlPath(PROJECT_DATA.server.routes.assets, ...segments);
47
+ return polenUrlPath(templateConfig.server.routes.assets, ...segments);
48
48
  };
49
49
  //# sourceMappingURL=polen-url.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"polen-url.js","sourceRoot":"","sources":["../../../src/template/lib/polen-url.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,iCAAiC,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAG,QAAkB,EAAU,EAAE;IAC5D,MAAM,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAA,CAAC,0BAA0B;IAEjE,sCAAsC;IACtC,MAAM,IAAI,GAAG,QAAQ;SAClB,IAAI,CAAC,GAAG,CAAC;SACT,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,2BAA2B;SAChD,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA,CAAC,uBAAuB;IAE7C,OAAO,QAAQ,GAAG,IAAI,CAAA;AACxB,CAAC,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAG,QAAkB,EAAU,EAAE;IAClE,OAAO,YAAY,CACjB,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EACjC,GAAG,QAAQ,CACZ,CAAA;AACH,CAAC,CAAA"}
1
+ {"version":3,"file":"polen-url.js","sourceRoot":"","sources":["../../../src/template/lib/polen-url.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAG,QAAkB,EAAU,EAAE;IAC5D,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,CAAC,IAAI,CAAA,CAAC,0BAA0B;IAErE,sCAAsC;IACtC,MAAM,IAAI,GAAG,QAAQ;SAClB,IAAI,CAAC,GAAG,CAAC;SACT,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,2BAA2B;SAChD,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA,CAAC,uBAAuB;IAE7C,OAAO,QAAQ,GAAG,IAAI,CAAA;AACxB,CAAC,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,GAAG,QAAkB,EAAU,EAAE;IAClE,OAAO,YAAY,CACjB,cAAc,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EACnC,GAAG,QAAQ,CACZ,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { GraphQLSchema } from 'graphql';
2
+ import type * as React from 'react';
3
+ interface MdxProviderProps extends React.PropsWithChildren {
4
+ schema?: GraphQLSchema | null;
5
+ }
6
+ export declare const MdxProvider: React.FC<MdxProviderProps>;
7
+ export {};
8
+ //# sourceMappingURL=mdx.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mdx.d.ts","sourceRoot":"","sources":["../../../src/template/providers/mdx.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAGnC,UAAU,gBAAiB,SAAQ,KAAK,CAAC,iBAAiB;IACxD,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,CAAA;CAC9B;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA8ClD,CAAA"}
@@ -0,0 +1,44 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { MDXProvider } from '@mdx-js/react';
3
+ import { Badge, Box, Button, Callout, Card, Code, DataList, Em, Heading, Link, Quote, Separator, Strong, Table, Tabs, Text, Tooltip, } from '@radix-ui/themes';
4
+ import { CodeBlock } from '../components/CodeBlock.js';
5
+ export const MdxProvider = ({ children, schema }) => (_jsx(MDXProvider, { components: {
6
+ // Map markdown elements to Radix with spacing
7
+ p: (props) => _jsx(Text, { as: 'p', mb: '4', ...props }),
8
+ h1: (props) => _jsx(Heading, { size: '8', mt: '6', mb: '4', ...props }),
9
+ h2: (props) => _jsx(Heading, { size: '7', mt: '6', mb: '3', ...props }),
10
+ h3: (props) => _jsx(Heading, { size: '6', mt: '5', mb: '3', ...props }),
11
+ h4: (props) => _jsx(Heading, { size: '5', mt: '5', mb: '2', ...props }),
12
+ h5: (props) => _jsx(Heading, { size: '4', mt: '4', mb: '2', ...props }),
13
+ h6: (props) => _jsx(Heading, { size: '3', mt: '4', mb: '2', ...props }),
14
+ strong: Strong,
15
+ em: Em,
16
+ code: Code,
17
+ blockquote: (props) => _jsx(Quote, { my: '4', ...props }),
18
+ a: Link,
19
+ hr: (props) => _jsx(Separator, { my: '6', ...props }),
20
+ table: Table.Root,
21
+ thead: Table.Header,
22
+ tbody: Table.Body,
23
+ tr: Table.Row,
24
+ th: Table.ColumnHeaderCell,
25
+ td: Table.Cell,
26
+ // Lists need spacing too
27
+ ul: (props) => _jsx(Box, { as: 'ul', mb: '4', style: { paddingLeft: '1.5rem' }, ...props }),
28
+ ol: (props) => _jsx(Box, { as: 'ol', mb: '4', style: { paddingLeft: '1.5rem' }, ...props }),
29
+ li: (props) => _jsx(Box, { as: 'li', mb: '2', ...props }),
30
+ // Direct Radix components for MDX
31
+ Badge,
32
+ Button,
33
+ // @ts-expect-error
34
+ Callout,
35
+ Card,
36
+ // @ts-expect-error
37
+ DataList,
38
+ // @ts-expect-error
39
+ Tabs,
40
+ Tooltip,
41
+ // Code Hike component - schema will be loaded client-side if needed
42
+ CodeBlock: (props) => _jsx(CodeBlock, { ...props, schema: schema || undefined }),
43
+ }, children: children }));
44
+ //# sourceMappingURL=mdx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mdx.js","sourceRoot":"","sources":["../../../src/template/providers/mdx.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EACL,KAAK,EACL,GAAG,EACH,MAAM,EACN,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,EAAE,EACF,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAS,EACT,MAAM,EACN,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,OAAO,GACR,MAAM,kBAAkB,CAAA;AAGzB,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAMtD,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAC/E,KAAC,WAAW,IACV,UAAU,EAAE;QACV,8CAA8C;QAC9C,CAAC,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,IAAI,IAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,KAAK,KAAK,GAAI;QAC/C,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,OAAO,IAAC,IAAI,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,KAAK,KAAK,GAAI;QAC5D,EAAE,EAAE,CAAC,KAAK,EAAE,EA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AI;QACd,yBAAyB;QACzB,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,GAAG,IAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAM,KAAK,GAAI;QAClF,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,GAAG,IAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,KAAK,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAM,KAAK,GAAI;QAClF,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,GAAG,IAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,KAAK,KAAK,GAAI;QAEhD,kCAAkC;QAClC,KAAK;QACL,MAAM;QACN,mBAAmB;QACnB,OAAO;QACP,IAAI;QACJ,mBAAmB;QACnB,QAAQ;QACR,mBAAmB;QACnB,IAAI;QACJ,OAAO;QAEP,oEAAoE;QACpE,SAAS,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAC,SAAS,OAAK,KAAK,EAAE,MAAM,EAAE,MAAM,IAAI,SAAS,GAAI;KACjF,YAEA,QAAQ,GACG,CACf,CAAA"}
@@ -1,24 +1,9 @@
1
+ import { Version } from '#lib/version';
1
2
  export declare const changelog: import("../../lib/react-router-effect/types.js").SchemaRoute<import("effect/Schema").Union<[import("effect/Schema").Struct<{
2
3
  _tag: import("effect/Schema").tag<"CatalogVersioned">;
3
4
  } & {
4
- entries: import("effect/Schema").Array$<import("effect/Schema").TaggedStruct<"SchemaVersioned", {
5
- version: import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[import("effect/Schema").Struct<{
6
- _tag: import("effect/Schema").tag<"VersionInteger">;
7
- } & {
8
- value: typeof import("effect/Schema").Number;
9
- }>, import("effect/Schema").Struct<{
10
- _tag: import("effect/Schema").tag<"VersionSemver">;
11
- } & {
12
- value: typeof import("effect/Schema").String;
13
- }>, import("effect/Schema").Struct<{
14
- _tag: import("effect/Schema").tag<"VersionDate">;
15
- } & {
16
- value: import("effect/Schema").brand<import("effect/Schema").refine<string, typeof import("effect/Schema").String>, "DateOnly">;
17
- }>, import("effect/Schema").Struct<{
18
- _tag: import("effect/Schema").tag<"VersionCustom">;
19
- } & {
20
- value: typeof import("effect/Schema").String;
21
- }>]>, never>;
5
+ entries: import("effect/Schema").HashMap<import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>, import("effect/Schema").TaggedStruct<"SchemaVersioned", {
6
+ version: import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof Version.IntegerVersion.Integer, typeof Version.SemverVersion.Semver, typeof Version.DateVersion.Date, typeof Version.CustomVersion.Custom]>, never>;
22
7
  branchPoint: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
23
8
  schema: import("effect/Schema").suspend<import("../../lib/schema/versioned.js").Versioned, import("../../lib/schema/versioned.js").VersionedEncoded, never>;
24
9
  revision: import("effect/Schema").Struct<{
@@ -1646,5 +1631,5 @@ export declare const changelog: import("../../lib/react-router-effect/types.js")
1646
1631
  }>>;
1647
1632
  definition: import("effect/Schema").transformOrFail<import("effect/Schema").declare<import("graphql").DocumentNode, import("graphql").DocumentNode, readonly [], never>, import("effect/Schema").instanceOf<import("graphql").GraphQLSchema>, never>;
1648
1633
  }>;
1649
- }>]>>;
1634
+ }>]>> | null;
1650
1635
  //# sourceMappingURL=changelog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"changelog.d.ts","sourceRoot":"","sources":["../../../src/template/rout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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqBlB,CAAA"}
@@ -1,34 +1,168 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Catalog } from '#lib/catalog/$';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Catalog } from '#lib/catalog';
3
+ import { Change } from '#lib/change';
3
4
  import { route } from '#lib/react-router-effect/route';
4
5
  import { useLoaderData } from '#lib/react-router-effect/use-loader-data';
5
- import { catalogBridge } from '../catalog-bridge.js';
6
- import { ChangelogLayout } from '#template/layouts/index';
6
+ import { Revision } from '#lib/revision';
7
+ import { Swiss } from '#lib/swiss';
8
+ import { Version } from '#lib/version';
9
+ import { Box, Flex, Text } from '@radix-ui/themes';
10
+ import { Effect, HashMap, Option } from 'effect';
11
+ import React, { useEffect, useMemo, useState } from 'react';
12
+ import { useParams } from 'react-router';
13
+ import { schemasCatalog } from 'virtual:polen/project/schemas';
7
14
  import { Changelog } from '../components/Changelog/Changelog.js';
15
+ import { renderDate } from '../components/Changelog/Changelog.js';
16
+ import { ChangelogVersionPicker } from '../components/Changelog/ChangelogVersionPicker.js';
17
+ const calculateCounts = (revision) => {
18
+ return {
19
+ breaking: revision.changes.filter(Change.isBreaking).length,
20
+ dangerous: revision.changes.filter(Change.isDangerous).length,
21
+ safe: revision.changes.filter(Change.isSafe).length,
22
+ };
23
+ };
24
+ const SidebarEntry = ({ revision, counts, isActive }) => {
25
+ const dateId = revision.date;
26
+ return (_jsx(Box, { mb: '2', children: _jsxs("a", { href: `#${dateId}`, style: {
27
+ textDecoration: 'none',
28
+ display: 'flex',
29
+ alignItems: 'center',
30
+ justifyContent: 'space-between',
31
+ padding: '0.5rem 0.75rem',
32
+ borderRadius: '4px',
33
+ backgroundColor: isActive ? 'var(--gray-a3)' : 'transparent',
34
+ color: 'inherit',
35
+ transition: 'background-color 0.2s',
36
+ }, onClick: (e) => {
37
+ e.preventDefault();
38
+ // Update URL hash
39
+ window.history.pushState(null, '', `#${dateId}`);
40
+ // Dispatch custom event for pushState
41
+ window.dispatchEvent(new Event('pushstate'));
42
+ // Smooth scroll to element
43
+ document.getElementById(dateId)?.scrollIntoView({ behavior: 'smooth' });
44
+ }, children: [_jsx(Text, { size: '2', weight: isActive ? 'medium' : 'regular', children: renderDate(revision.date) }), _jsxs(Flex, { gap: '2', align: 'center', children: [counts.breaking > 0 && (_jsx(Text, { size: '1', weight: 'medium', style: { color: '#ef4444' }, children: counts.breaking })), counts.dangerous > 0 && (_jsx(Text, { size: '1', weight: 'medium', style: { color: '#f59e0b' }, children: counts.dangerous })), counts.safe > 0 && (_jsx(Text, { size: '1', weight: 'medium', style: { color: '#10b981' }, children: counts.safe }))] })] }) }));
45
+ };
46
+ //
47
+ //
48
+ //
49
+ //
50
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ • Schema
51
+ //
52
+ //
8
53
  const schema = Catalog.Catalog;
9
- const changelogLoader = () => catalogBridge.view();
54
+ //
55
+ //
56
+ //
57
+ //
58
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ • Loader
59
+ //
60
+ //
61
+ const changelogLoader = () => {
62
+ // This should never be called when schemasCatalog is null
63
+ // because the route won't be added to the router
64
+ // But we return an Effect.fail for safety
65
+ if (!schemasCatalog) {
66
+ return Effect.fail(new Error('No schema catalog available. This page requires a GraphQL schema to be configured. '
67
+ + 'Please ensure your Polen configuration includes a valid schema source.'));
68
+ }
69
+ return Effect.succeed(schemasCatalog);
70
+ };
71
+ //
72
+ //
73
+ //
74
+ //
75
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ • Component
76
+ //
77
+ //
10
78
  const Component = () => {
11
79
  const catalog = useLoaderData(schema);
12
- return (_jsx(ChangelogLayout, { catalog: catalog, children: _jsx(Changelog, { catalog: catalog }) }));
80
+ const [activeRevision, setActiveRevision] = useState(null);
81
+ const params = useParams();
82
+ const urlVersion = params['version'];
83
+ // Get available versions if catalog is versioned
84
+ const availableVersions = useMemo(() => {
85
+ if (Catalog.Versioned.is(catalog)) {
86
+ return Catalog.Versioned.getVersions(catalog).map(Version.encodeSync);
87
+ }
88
+ return [];
89
+ }, [catalog]);
90
+ // Get revisions for the current version (for sidebar)
91
+ const revisions = useMemo(() => {
92
+ if (Catalog.Unversioned.is(catalog)) {
93
+ return catalog.schema.revisions;
94
+ }
95
+ else {
96
+ // For versioned catalogs, show only current version's revisions
97
+ if (urlVersion) {
98
+ const entryOption = Option.map(HashMap.findFirst(catalog.entries, (_, key) => Version.encodeSync(key) === urlVersion), ([, value]) => value);
99
+ return Option.match(entryOption, {
100
+ onNone: () => [],
101
+ onSome: (entry) => entry.revisions,
102
+ });
103
+ }
104
+ // No revisions if no version selected (will redirect)
105
+ return [];
106
+ }
107
+ }, [catalog, urlVersion]);
108
+ // Calculate counts for all revisions (SSR-safe)
109
+ const revisionsWithCounts = revisions.map(revision => ({
110
+ revision,
111
+ counts: calculateCounts(revision),
112
+ }));
113
+ // Track active revision based on URL hash
114
+ useEffect(() => {
115
+ const handleHashChange = () => {
116
+ const hash = window.location.hash.slice(1);
117
+ setActiveRevision(hash || null);
118
+ };
119
+ // Set initial active revision
120
+ handleHashChange();
121
+ // Listen for hash changes
122
+ window.addEventListener('hashchange', handleHashChange);
123
+ // Listen for pushState/replaceState (custom event we'll dispatch)
124
+ window.addEventListener('pushstate', handleHashChange);
125
+ return () => {
126
+ window.removeEventListener('hashchange', handleHashChange);
127
+ window.removeEventListener('pushstate', handleHashChange);
128
+ };
129
+ }, []);
130
+ return (_jsxs(Swiss.Body, { subgrid: true, children: [_jsxs(Swiss.Item, { cols: 4, style: {
131
+ position: 'sticky',
132
+ top: '2rem',
133
+ height: 'fit-content',
134
+ minWidth: '250px',
135
+ maxHeight: 'calc(100vh - 4rem)',
136
+ overflowY: 'auto',
137
+ }, children: [Catalog.Versioned.is(catalog) && availableVersions.length > 1 && urlVersion && (_jsx(Box, { mb: '3', children: _jsx(ChangelogVersionPicker, { versions: availableVersions, currentVersion: urlVersion }) })), _jsx(Text, { size: '2', weight: 'medium', mb: '3', style: { display: 'block' }, children: "Revisions" }), revisionsWithCounts.map(({ revision, counts }) => (_jsx(SidebarEntry, { revision: revision, counts: counts, isActive: activeRevision === revision.date }, revision.date)))] }), _jsx(Swiss.Item, { start: 6, cols: 7, children: _jsx(Changelog, { catalog: catalog }) })] }));
13
138
  };
14
- export const changelog = route({
15
- schema,
16
- path: `changelog`,
17
- loader: changelogLoader,
18
- Component,
19
- children: [
20
- // Support deep linking to specific version
21
- route({
22
- path: `version/:version`,
23
- loader: changelogLoader,
24
- Component,
25
- }),
26
- // Support deep linking to specific version/revision
27
- route({
28
- path: `version/:version/revision/:revision`,
29
- loader: changelogLoader,
30
- Component,
31
- }),
32
- ],
33
- });
139
+ //
140
+ //
141
+ //
142
+ //
143
+ // ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ • Routes
144
+ //
145
+ //
146
+ export const changelog = !schemasCatalog
147
+ ? null
148
+ : route({
149
+ schema,
150
+ path: `changelog`,
151
+ loader: changelogLoader,
152
+ Component,
153
+ children: [
154
+ // Support deep linking to specific version
155
+ route({
156
+ path: `version/:version`,
157
+ loader: changelogLoader,
158
+ Component,
159
+ }),
160
+ // Support deep linking to specific version/revision
161
+ route({
162
+ path: `version/:version/revision/:revision`,
163
+ loader: changelogLoader,
164
+ Component,
165
+ }),
166
+ ],
167
+ });
34
168
  //# sourceMappingURL=changelog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../../src/template/routes/changelog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAA;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAEhE,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAA;AAE9B,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA;AAElD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,CAAA;IAErC,OAAO,CACL,KAAC,eAAe,IAAC,OAAO,EAAE,OAAO,YAC/B,KAAC,SAAS,IAAC,OAAO,EAAE,OAAO,GAAI,GACf,CACnB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC;IAC7B,MAAM;IACN,IAAI,EAAE,WAAW;IACjB,MAAM,EAAE,eAAe;IACvB,SAAS;IACT,QAAQ,EAAE;QACR,2CAA2C;QAC3C,KAAK,CAAC;YACJ,IAAI,EAAE,kBAAkB;YACxB,MAAM,EAAE,eAAe;YACvB,SAAS;SACV,CAAC;QACF,oDAAoD;QACpD,KAAK,CAAC;YACJ,IAAI,EAAE,qCAAqC;YAC3C,MAAM,EAAE,eAAe;YACvB,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,EAAE,eAAe;gBACvB,SAAS;aACV,CAAC;YACF,oDAAoD;YACpD,KAAK,CAAC;gBACJ,IAAI,EAAE,qCAAqC;gBAC3C,MAAM,EAAE,eAAe;gBACvB,SAAS;aACV,CAAC;SACH;KACF,CAAC,CAAA"}
@@ -0,0 +1,65 @@
1
+ declare global {
2
+ interface RouteSchemaRegistry {
3
+ 'examples': typeof LayoutSchema;
4
+ }
5
+ }
6
+ declare const LayoutSchema: import("effect/Schema").Struct<{
7
+ examples: import("effect/Schema").Array$<import("effect/Schema").Struct<{
8
+ name: typeof import("effect/Schema").String;
9
+ path: typeof import("effect/Schema").String;
10
+ document: import("effect/Schema").Union<[import("effect/Schema").TaggedStruct<"DocumentUnversioned", {
11
+ document: typeof import("effect/Schema").String;
12
+ }>, import("effect/Schema").TaggedStruct<"DocumentVersioned", {
13
+ versionDocuments: import("effect/Schema").HashMap<import("effect/Schema").Union<[import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>, import("effect/Schema").HashSet<import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>>]>, typeof import("effect/Schema").String>;
14
+ }>]>;
15
+ }>>;
16
+ index: import("effect/Schema").optional<import("effect/Schema").Struct<{
17
+ path: typeof import("effect/Schema").String;
18
+ }>>;
19
+ typeUsageIndex: import("effect/Schema").optional<import("effect/Schema").transform<import("effect/Schema").Array$<import("effect/Schema").Tuple2<import("effect/Schema").Union<[import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>, import("effect/Schema").TaggedStruct<"UnversionedKey", {}>]>, import("effect/Schema").HashMap<typeof import("effect/Schema").String, import("effect/Schema").HashSet<typeof import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>>>, import("effect/Schema").HashMapFromSelf<import("effect/Schema").SchemaClass<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | {
20
+ readonly _tag: "UnversionedKey";
21
+ }, import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | {
22
+ readonly _tag: "UnversionedKey";
23
+ }, never>, import("effect/Schema").SchemaClass<import("effect/HashMap").HashMap<string, import("effect/HashSet").HashSet<import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>, import("effect/HashMap").HashMap<string, import("effect/HashSet").HashSet<import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>, never>>>>;
24
+ }>;
25
+ export declare const layoutLoader: () => Promise<{
26
+ readonly examples: readonly {
27
+ readonly path: string;
28
+ readonly name: string;
29
+ readonly document: {
30
+ readonly _tag: "DocumentUnversioned";
31
+ readonly document: string;
32
+ } | {
33
+ readonly _tag: "DocumentVersioned";
34
+ readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | import("effect/HashSet").HashSet<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver>, string>;
35
+ };
36
+ }[];
37
+ readonly index?: {
38
+ readonly path: string;
39
+ } | undefined;
40
+ readonly typeUsageIndex?: import("effect/HashMap").HashMap<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | {
41
+ readonly _tag: "UnversionedKey";
42
+ }, import("effect/HashMap").HashMap<string, import("effect/HashSet").HashSet<import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>> | undefined;
43
+ }>;
44
+ export declare const LayoutComponent: () => import("react/jsx-runtime").JSX.Element;
45
+ export declare const examplesRoute: import("../../../lib/react-router-effect/types.js").SchemaRoute<import("effect/Schema").Struct<{
46
+ examples: import("effect/Schema").Array$<import("effect/Schema").Struct<{
47
+ name: typeof import("effect/Schema").String;
48
+ path: typeof import("effect/Schema").String;
49
+ document: import("effect/Schema").Union<[import("effect/Schema").TaggedStruct<"DocumentUnversioned", {
50
+ document: typeof import("effect/Schema").String;
51
+ }>, import("effect/Schema").TaggedStruct<"DocumentVersioned", {
52
+ versionDocuments: import("effect/Schema").HashMap<import("effect/Schema").Union<[import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>, import("effect/Schema").HashSet<import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>>]>, typeof import("effect/Schema").String>;
53
+ }>]>;
54
+ }>>;
55
+ index: import("effect/Schema").optional<import("effect/Schema").Struct<{
56
+ path: typeof import("effect/Schema").String;
57
+ }>>;
58
+ typeUsageIndex: import("effect/Schema").optional<import("effect/Schema").transform<import("effect/Schema").Array$<import("effect/Schema").Tuple2<import("effect/Schema").Union<[import("effect/Schema").transformOrFail<import("effect/Schema").Union<[typeof import("effect/Schema").String, typeof import("effect/Schema").Number]>, import("effect/Schema").Union<[typeof import("../../../lib/version/integer.js").Integer, typeof import("../../../lib/version/semver.js").Semver, typeof import("../../../lib/version/date.js").Date, typeof import("../../../lib/version/custom.js").Custom]>, never>, import("effect/Schema").TaggedStruct<"UnversionedKey", {}>]>, import("effect/Schema").HashMap<typeof import("effect/Schema").String, import("effect/Schema").HashSet<typeof import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>>>, import("effect/Schema").HashMapFromSelf<import("effect/Schema").SchemaClass<import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | {
59
+ readonly _tag: "UnversionedKey";
60
+ }, import("../../../lib/version/custom.js").Custom | import("../../../lib/version/date.js").Date | import("../../../lib/version/integer.js").Integer | import("../../../lib/version/semver.js").Semver | {
61
+ readonly _tag: "UnversionedKey";
62
+ }, never>, import("effect/Schema").SchemaClass<import("effect/HashMap").HashMap<string, import("effect/HashSet").HashSet<import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>, import("effect/HashMap").HashMap<string, import("effect/HashSet").HashSet<import("../../../api/examples/schemas/type-usage-index.js").ExampleReference>>, never>>>>;
63
+ }>>;
64
+ export {};
65
+ //# sourceMappingURL=_.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_.d.ts","sourceRoot":"","sources":["../../../../src/template/routes/examples/_.tsx"],"names":[],"mappings":"AAgBA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,mBAAmB;QAC3B,UAAU,EAAE,OAAO,YAAY,CAAA;KAChC;CACF;AAMD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAAU,CAAA;AAM5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;EAExB,CAAA;AAMD,eAAO,MAAM,eAAe,+CAkC3B,CAAA;AAMD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;GASxB,CAAA"}