polen 0.11.0-next.24 → 0.11.0-next.26

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 (375) hide show
  1. package/build/api/config/input.d.ts +259 -77
  2. package/build/api/config/input.d.ts.map +1 -1
  3. package/build/api/config/input.js +2 -0
  4. package/build/api/config/input.js.map +1 -1
  5. package/build/api/config/normalized.d.ts +433 -143
  6. package/build/api/config/normalized.d.ts.map +1 -1
  7. package/build/api/config/normalized.js +47 -0
  8. package/build/api/config/normalized.js.map +1 -1
  9. package/build/api/config-template/template.d.ts +191 -121
  10. package/build/api/config-template/template.d.ts.map +1 -1
  11. package/build/api/config-template/template.js +18 -1
  12. package/build/api/config-template/template.js.map +1 -1
  13. package/build/api/examples/diagnostic/diagnostic.d.ts +0 -23
  14. package/build/api/examples/diagnostic/diagnostic.d.ts.map +1 -1
  15. package/build/api/examples/diagnostic/diagnostic.js +1 -3
  16. package/build/api/examples/diagnostic/diagnostic.js.map +1 -1
  17. package/build/api/examples/scanner.d.ts +27 -1
  18. package/build/api/examples/scanner.d.ts.map +1 -1
  19. package/build/api/examples/scanner.js +30 -17
  20. package/build/api/examples/scanner.js.map +1 -1
  21. package/build/api/examples/schemas/catalog.d.ts +56 -12
  22. package/build/api/examples/schemas/catalog.d.ts.map +1 -1
  23. package/build/api/examples/schemas/example/example.d.ts +54 -11
  24. package/build/api/examples/schemas/example/example.d.ts.map +1 -1
  25. package/build/api/examples/schemas/example/example.js +5 -0
  26. package/build/api/examples/schemas/example/example.js.map +1 -1
  27. package/build/api/reference/$.d.ts +4 -0
  28. package/build/api/reference/$.d.ts.map +1 -0
  29. package/build/api/reference/$.js +4 -0
  30. package/build/api/reference/$.js.map +1 -0
  31. package/build/api/reference/catalog.d.ts +69 -0
  32. package/build/api/reference/catalog.d.ts.map +1 -0
  33. package/build/api/reference/catalog.js +44 -0
  34. package/build/api/reference/catalog.js.map +1 -0
  35. package/build/api/reference/config.d.ts +616 -0
  36. package/build/api/reference/config.d.ts.map +1 -0
  37. package/build/api/reference/config.js +162 -0
  38. package/build/api/reference/config.js.map +1 -0
  39. package/build/api/reference/scanner.d.ts +26 -0
  40. package/build/api/reference/scanner.d.ts.map +1 -0
  41. package/build/api/reference/scanner.js +27 -0
  42. package/build/api/reference/scanner.js.map +1 -0
  43. package/build/api/schema/augmentations/$$.d.ts +7 -0
  44. package/build/api/schema/augmentations/$$.d.ts.map +1 -0
  45. package/build/api/schema/augmentations/$$.js +7 -0
  46. package/build/api/schema/augmentations/$$.js.map +1 -0
  47. package/build/api/schema/augmentations/$.d.ts +1 -1
  48. package/build/api/schema/augmentations/$.d.ts.map +1 -1
  49. package/build/api/schema/augmentations/$.js +1 -1
  50. package/build/api/schema/augmentations/$.js.map +1 -1
  51. package/build/api/schema/augmentations/apply.d.ts +29 -0
  52. package/build/api/schema/augmentations/apply.d.ts.map +1 -0
  53. package/build/api/schema/augmentations/apply.js +181 -0
  54. package/build/api/schema/augmentations/apply.js.map +1 -0
  55. package/build/api/schema/augmentations/augmentation.d.ts +31 -0
  56. package/build/api/schema/augmentations/augmentation.d.ts.map +1 -0
  57. package/build/api/schema/augmentations/augmentation.js +22 -0
  58. package/build/api/schema/augmentations/augmentation.js.map +1 -0
  59. package/build/api/schema/augmentations/config.d.ts +24 -0
  60. package/build/api/schema/augmentations/config.d.ts.map +1 -0
  61. package/build/api/schema/augmentations/config.js +9 -0
  62. package/build/api/schema/augmentations/config.js.map +1 -0
  63. package/build/api/schema/augmentations/diagnostics/diagnostic.d.ts +67 -0
  64. package/build/api/schema/augmentations/diagnostics/diagnostic.d.ts.map +1 -0
  65. package/build/api/schema/augmentations/diagnostics/diagnostic.js +13 -0
  66. package/build/api/schema/augmentations/diagnostics/diagnostic.js.map +1 -0
  67. package/build/api/schema/augmentations/diagnostics/duplicate-version.d.ts +45 -0
  68. package/build/api/schema/augmentations/diagnostics/duplicate-version.d.ts.map +1 -0
  69. package/build/api/schema/augmentations/diagnostics/duplicate-version.js +17 -0
  70. package/build/api/schema/augmentations/diagnostics/duplicate-version.js.map +1 -0
  71. package/build/api/schema/augmentations/diagnostics/invalid-path.d.ts +46 -0
  72. package/build/api/schema/augmentations/diagnostics/invalid-path.d.ts.map +1 -0
  73. package/build/api/schema/augmentations/diagnostics/invalid-path.js +18 -0
  74. package/build/api/schema/augmentations/diagnostics/invalid-path.js.map +1 -0
  75. package/build/api/schema/augmentations/diagnostics/version-mismatch.d.ts +46 -0
  76. package/build/api/schema/augmentations/diagnostics/version-mismatch.d.ts.map +1 -0
  77. package/build/api/schema/augmentations/diagnostics/version-mismatch.js +18 -0
  78. package/build/api/schema/augmentations/diagnostics/version-mismatch.js.map +1 -0
  79. package/build/api/schema/augmentations/input.d.ts +145 -0
  80. package/build/api/schema/augmentations/input.d.ts.map +1 -0
  81. package/build/api/schema/augmentations/input.js +191 -0
  82. package/build/api/schema/augmentations/input.js.map +1 -0
  83. package/build/api/schema/augmentations/placement.d.ts +8 -0
  84. package/build/api/schema/augmentations/placement.d.ts.map +1 -0
  85. package/build/api/schema/augmentations/placement.js +7 -0
  86. package/build/api/schema/augmentations/placement.js.map +1 -0
  87. package/build/api/schema/config-schema.d.ts +66 -66
  88. package/build/api/schema/config-schema.d.ts.map +1 -1
  89. package/build/api/schema/config-schema.js +2 -2
  90. package/build/api/schema/config-schema.js.map +1 -1
  91. package/build/api/schema/input-source/load.d.ts +2 -0
  92. package/build/api/schema/input-source/load.d.ts.map +1 -1
  93. package/build/api/schema/input-source/load.js.map +1 -1
  94. package/build/api/schema/input-sources/directory.d.ts +39 -39
  95. package/build/api/schema/input-sources/file.d.ts +39 -39
  96. package/build/api/schema/input-sources/introspection-file.d.ts +39 -39
  97. package/build/api/schema/input-sources/introspection.d.ts +39 -39
  98. package/build/api/schema/input-sources/memory.d.ts +39 -39
  99. package/build/api/schema/input-sources/versioned-directory.d.ts +79 -79
  100. package/build/api/schema/load.d.ts.map +1 -1
  101. package/build/api/schema/load.js +9 -2
  102. package/build/api/schema/load.js.map +1 -1
  103. package/build/lib/catalog/catalog.d.ts +1181 -1181
  104. package/build/lib/catalog/unversioned.d.ts +312 -312
  105. package/build/lib/catalog/versioned.d.ts +634 -634
  106. package/build/lib/change/change.d.ts +238 -238
  107. package/build/lib/document/document.d.ts +14 -8
  108. package/build/lib/document/document.d.ts.map +1 -1
  109. package/build/lib/document/versioned.d.ts +17 -10
  110. package/build/lib/document/versioned.d.ts.map +1 -1
  111. package/build/lib/grafaid/schema/KindMap/_.d.ts +1 -1
  112. package/build/lib/grafaid/schema/format-default-value.d.ts +11 -0
  113. package/build/lib/grafaid/schema/format-default-value.d.ts.map +1 -0
  114. package/build/lib/grafaid/schema/format-default-value.js +20 -0
  115. package/build/lib/grafaid/schema/format-default-value.js.map +1 -0
  116. package/build/lib/grafaid/schema/schema.d.ts +1 -0
  117. package/build/lib/grafaid/schema/schema.d.ts.map +1 -1
  118. package/build/lib/grafaid/schema/schema.js +1 -0
  119. package/build/lib/grafaid/schema/schema.js.map +1 -1
  120. package/build/lib/graphql-path/$$.d.ts +7 -13
  121. package/build/lib/graphql-path/$$.d.ts.map +1 -1
  122. package/build/lib/graphql-path/$$.js +7 -13
  123. package/build/lib/graphql-path/$$.js.map +1 -1
  124. package/build/lib/graphql-path/definition.d.ts +104 -94
  125. package/build/lib/graphql-path/definition.d.ts.map +1 -1
  126. package/build/lib/graphql-path/definition.js +126 -125
  127. package/build/lib/graphql-path/definition.js.map +1 -1
  128. package/build/lib/graphql-path/query.d.ts +25 -57
  129. package/build/lib/graphql-path/query.d.ts.map +1 -1
  130. package/build/lib/graphql-path/query.js +15 -93
  131. package/build/lib/graphql-path/query.js.map +1 -1
  132. package/build/lib/graphql-path/schema.d.ts +49 -0
  133. package/build/lib/graphql-path/schema.d.ts.map +1 -0
  134. package/build/lib/graphql-path/schema.js +89 -0
  135. package/build/lib/graphql-path/schema.js.map +1 -0
  136. package/build/lib/graphql-path/types.d.ts +76 -28
  137. package/build/lib/graphql-path/types.d.ts.map +1 -1
  138. package/build/lib/graphql-path/types.js +101 -2
  139. package/build/lib/graphql-path/types.js.map +1 -1
  140. package/build/lib/revision/revision.d.ts +1170 -1170
  141. package/build/lib/schema/schema.d.ts +708 -708
  142. package/build/lib/schema/unversioned.d.ts +1092 -1092
  143. package/build/lib/schema/versioned.d.ts +634 -634
  144. package/build/lib/semver/official-release.d.ts +10 -10
  145. package/build/lib/semver/pre-release.d.ts +10 -10
  146. package/build/lib/semver/semver.d.ts +50 -50
  147. package/build/lib/version-coverage/version-coverage.d.ts +43 -11
  148. package/build/lib/version-coverage/version-coverage.d.ts.map +1 -1
  149. package/build/lib/version-coverage/version-coverage.js +40 -6
  150. package/build/lib/version-coverage/version-coverage.js.map +1 -1
  151. package/build/template/components/ArgumentAnnotation.d.ts +2 -1
  152. package/build/template/components/ArgumentAnnotation.d.ts.map +1 -1
  153. package/build/template/components/ArgumentAnnotation.js +14 -4
  154. package/build/template/components/ArgumentAnnotation.js.map +1 -1
  155. package/build/template/components/ArgumentListAnnotation.d.ts +1 -0
  156. package/build/template/components/ArgumentListAnnotation.d.ts.map +1 -1
  157. package/build/template/components/ArgumentListAnnotation.js +21 -8
  158. package/build/template/components/ArgumentListAnnotation.js.map +1 -1
  159. package/build/template/components/Changelog/groups/FieldArgument.d.ts.map +1 -1
  160. package/build/template/components/Changelog/groups/FieldArgument.js +0 -1
  161. package/build/template/components/Changelog/groups/FieldArgument.js.map +1 -1
  162. package/build/template/components/CodeBlock.d.ts.map +1 -1
  163. package/build/template/components/CodeBlock.js +1 -1
  164. package/build/template/components/CodeBlock.js.map +1 -1
  165. package/build/template/components/Description.js +1 -1
  166. package/build/template/components/Description.js.map +1 -1
  167. package/build/template/components/ExampleLink.d.ts.map +1 -1
  168. package/build/template/components/ExampleLink.js +2 -1
  169. package/build/template/components/ExampleLink.js.map +1 -1
  170. package/build/template/components/Field.d.ts +2 -0
  171. package/build/template/components/Field.d.ts.map +1 -1
  172. package/build/template/components/Field.js +42 -4
  173. package/build/template/components/Field.js.map +1 -1
  174. package/build/template/components/FieldList.d.ts +2 -1
  175. package/build/template/components/FieldList.d.ts.map +1 -1
  176. package/build/template/components/FieldList.js +14 -3
  177. package/build/template/components/FieldList.js.map +1 -1
  178. package/build/template/components/FieldListSection.d.ts.map +1 -1
  179. package/build/template/components/FieldListSection.js +6 -1
  180. package/build/template/components/FieldListSection.js.map +1 -1
  181. package/build/template/components/GraphQLDocument.d.ts.map +1 -1
  182. package/build/template/components/GraphQLDocument.js +2 -1
  183. package/build/template/components/GraphQLDocument.js.map +1 -1
  184. package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts +2 -0
  185. package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts.map +1 -1
  186. package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +4 -3
  187. package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
  188. package/build/template/components/GraphQLInteractive/lib/parser.d.ts +2 -2
  189. package/build/template/components/GraphQLInteractive/lib/parser.d.ts.map +1 -1
  190. package/build/template/components/GraphQLInteractive/lib/parser.js +17 -12
  191. package/build/template/components/GraphQLInteractive/lib/parser.js.map +1 -1
  192. package/build/template/components/IAPIndicator.d.ts +12 -0
  193. package/build/template/components/IAPIndicator.d.ts.map +1 -0
  194. package/build/template/components/IAPIndicator.js +21 -0
  195. package/build/template/components/IAPIndicator.js.map +1 -0
  196. package/build/template/components/Link.d.ts +1 -2
  197. package/build/template/components/Link.d.ts.map +1 -1
  198. package/build/template/components/Link.js +5 -2
  199. package/build/template/components/Link.js.map +1 -1
  200. package/build/template/components/NamedType.d.ts.map +1 -1
  201. package/build/template/components/NamedType.js +9 -5
  202. package/build/template/components/NamedType.js.map +1 -1
  203. package/build/template/components/ReferenceLink.d.ts +2 -2
  204. package/build/template/components/ReferenceLink.d.ts.map +1 -1
  205. package/build/template/components/ReferenceLink.js +5 -3
  206. package/build/template/components/ReferenceLink.js.map +1 -1
  207. package/build/template/components/TypeAnnotation.d.ts +2 -0
  208. package/build/template/components/TypeAnnotation.d.ts.map +1 -1
  209. package/build/template/components/TypeAnnotation.js +4 -4
  210. package/build/template/components/TypeAnnotation.js.map +1 -1
  211. package/build/template/components/ViewModeToggle.d.ts +3 -0
  212. package/build/template/components/ViewModeToggle.d.ts.map +1 -0
  213. package/build/template/components/ViewModeToggle.js +9 -0
  214. package/build/template/components/ViewModeToggle.js.map +1 -0
  215. package/build/template/components/graphql/type-link.d.ts +2 -0
  216. package/build/template/components/graphql/type-link.d.ts.map +1 -1
  217. package/build/template/components/graphql/type-link.js +15 -3
  218. package/build/template/components/graphql/type-link.js.map +1 -1
  219. package/build/template/components/home/PlaygroundPreview.d.ts.map +1 -1
  220. package/build/template/components/home/PlaygroundPreview.js +3 -2
  221. package/build/template/components/home/PlaygroundPreview.js.map +1 -1
  222. package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
  223. package/build/template/components/sidebar/SidebarItem.js +18 -5
  224. package/build/template/components/sidebar/SidebarItem.js.map +1 -1
  225. package/build/template/contexts/ReferenceConfigContext.d.ts +16 -0
  226. package/build/template/contexts/ReferenceConfigContext.d.ts.map +1 -0
  227. package/build/template/contexts/ReferenceConfigContext.js +14 -0
  228. package/build/template/contexts/ReferenceConfigContext.js.map +1 -0
  229. package/build/template/contexts/ViewModeContext.d.ts +14 -0
  230. package/build/template/contexts/ViewModeContext.d.ts.map +1 -0
  231. package/build/template/contexts/ViewModeContext.js +40 -0
  232. package/build/template/contexts/ViewModeContext.js.map +1 -0
  233. package/build/template/hooks/use-examples.d.ts +4 -1
  234. package/build/template/hooks/use-examples.d.ts.map +1 -1
  235. package/build/template/hooks/useAlignedColumns.d.ts +10 -0
  236. package/build/template/hooks/useAlignedColumns.d.ts.map +1 -0
  237. package/build/template/hooks/useAlignedColumns.js +17 -0
  238. package/build/template/hooks/useAlignedColumns.js.map +1 -0
  239. package/build/template/routes/changelog/ChangelogSidebar.d.ts +2 -2
  240. package/build/template/routes/changelog/ChangelogSidebar.d.ts.map +1 -1
  241. package/build/template/routes/changelog/ChangelogSidebar.js +4 -4
  242. package/build/template/routes/changelog/ChangelogSidebar.js.map +1 -1
  243. package/build/template/routes/examples/_.d.ts +12 -3
  244. package/build/template/routes/examples/_.d.ts.map +1 -1
  245. package/build/template/routes/examples/_index.d.ts +8 -2
  246. package/build/template/routes/examples/_index.d.ts.map +1 -1
  247. package/build/template/routes/examples/name.d.ts +12 -3
  248. package/build/template/routes/examples/name.d.ts.map +1 -1
  249. package/build/template/routes/examples/name.js +6 -2
  250. package/build/template/routes/examples/name.js.map +1 -1
  251. package/build/template/routes/reference.d.ts.map +1 -1
  252. package/build/template/routes/reference.js +37 -10
  253. package/build/template/routes/reference.js.map +1 -1
  254. package/build/template/stores/changelog.d.ts +39 -39
  255. package/build/vite/plugins/core.d.ts.map +1 -1
  256. package/build/vite/plugins/core.js +6 -0
  257. package/build/vite/plugins/core.js.map +1 -1
  258. package/build/vite/plugins/examples.d.ts.map +1 -1
  259. package/build/vite/plugins/examples.js +10 -3
  260. package/build/vite/plugins/examples.js.map +1 -1
  261. package/build/vite/plugins/index.d.ts +1 -0
  262. package/build/vite/plugins/index.d.ts.map +1 -1
  263. package/build/vite/plugins/index.js +1 -0
  264. package/build/vite/plugins/index.js.map +1 -1
  265. package/build/vite/plugins/navbar.d.ts.map +1 -1
  266. package/build/vite/plugins/navbar.js +3 -1
  267. package/build/vite/plugins/navbar.js.map +1 -1
  268. package/build/vite/plugins/reference.d.ts +19 -0
  269. package/build/vite/plugins/reference.d.ts.map +1 -0
  270. package/build/vite/plugins/reference.js +96 -0
  271. package/build/vite/plugins/reference.js.map +1 -0
  272. package/build/vite/plugins/schemas.d.ts.map +1 -1
  273. package/build/vite/plugins/schemas.js +38 -2
  274. package/build/vite/plugins/schemas.js.map +1 -1
  275. package/package.json +1 -1
  276. package/src/api/config/input.ts +2 -0
  277. package/src/api/config/normalized.ts +54 -0
  278. package/src/api/config-template/template.ts +18 -1
  279. package/src/api/examples/diagnostic/diagnostic.ts +0 -3
  280. package/src/api/examples/scanner.test.ts +83 -0
  281. package/src/api/examples/scanner.ts +31 -21
  282. package/src/api/examples/schemas/example/example.ts +6 -0
  283. package/src/api/reference/$.ts +3 -0
  284. package/src/api/reference/catalog.ts +55 -0
  285. package/src/api/reference/config.ts +193 -0
  286. package/src/api/reference/scanner.ts +53 -0
  287. package/src/api/schema/augmentations/$$.ts +6 -0
  288. package/src/api/schema/augmentations/$.ts +1 -1
  289. package/src/api/schema/augmentations/apply.test.ts +89 -0
  290. package/src/api/schema/augmentations/apply.ts +277 -0
  291. package/src/api/schema/augmentations/augmentation.ts +24 -0
  292. package/src/api/schema/augmentations/config.ts +11 -0
  293. package/src/api/schema/augmentations/diagnostics/diagnostic.ts +20 -0
  294. package/src/api/schema/augmentations/diagnostics/duplicate-version.ts +20 -0
  295. package/src/api/schema/augmentations/diagnostics/invalid-path.ts +21 -0
  296. package/src/api/schema/augmentations/diagnostics/version-mismatch.ts +21 -0
  297. package/src/api/schema/augmentations/input.test.ts +144 -0
  298. package/src/api/schema/augmentations/input.ts +215 -0
  299. package/src/api/schema/augmentations/placement.ts +11 -0
  300. package/src/api/schema/config-schema.ts +2 -2
  301. package/src/api/schema/input-source/load.ts +2 -0
  302. package/src/api/schema/load.ts +19 -2
  303. package/src/lib/grafaid/schema/format-default-value.ts +22 -0
  304. package/src/lib/grafaid/schema/schema.ts +2 -0
  305. package/src/lib/graphql-path/$$.ts +7 -13
  306. package/src/lib/graphql-path/$.test.ts +175 -0
  307. package/src/lib/graphql-path/definition.ts +162 -162
  308. package/src/lib/graphql-path/query.ts +15 -98
  309. package/src/lib/graphql-path/schema.ts +136 -0
  310. package/src/lib/graphql-path/types.ts +108 -28
  311. package/src/lib/version-coverage/version-coverage.ts +48 -6
  312. package/src/template/components/ArgumentAnnotation.tsx +58 -9
  313. package/src/template/components/ArgumentListAnnotation.tsx +50 -17
  314. package/src/template/components/Changelog/groups/FieldArgument.tsx +0 -1
  315. package/src/template/components/CodeBlock.tsx +1 -0
  316. package/src/template/components/Description.tsx +1 -1
  317. package/src/template/components/ExampleLink.tsx +2 -1
  318. package/src/template/components/Field.tsx +148 -20
  319. package/src/template/components/FieldList.tsx +28 -13
  320. package/src/template/components/FieldListSection.tsx +12 -2
  321. package/src/template/components/GraphQLDocument.tsx +2 -0
  322. package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +6 -1
  323. package/src/template/components/GraphQLInteractive/lib/parser.ts +16 -3
  324. package/src/template/components/IAPIndicator.tsx +73 -0
  325. package/src/template/components/Link.tsx +9 -3
  326. package/src/template/components/NamedType.tsx +54 -28
  327. package/src/template/components/ReferenceLink.tsx +16 -10
  328. package/src/template/components/TypeAnnotation.tsx +17 -5
  329. package/src/template/components/ViewModeToggle.tsx +27 -0
  330. package/src/template/components/graphql/type-link.tsx +34 -3
  331. package/src/template/components/home/PlaygroundPreview.tsx +3 -0
  332. package/src/template/components/sidebar/SidebarItem.tsx +21 -5
  333. package/src/template/contexts/ReferenceConfigContext.tsx +37 -0
  334. package/src/template/contexts/ViewModeContext.tsx +64 -0
  335. package/src/template/hooks/useAlignedColumns.ts +19 -0
  336. package/src/template/routes/changelog/ChangelogSidebar.tsx +4 -4
  337. package/src/template/routes/examples/name.tsx +13 -1
  338. package/src/template/routes/reference.tsx +67 -23
  339. package/src/types/virtual-modules.d.ts +5 -0
  340. package/src/vite/plugins/core.ts +6 -0
  341. package/src/vite/plugins/examples.ts +12 -2
  342. package/src/vite/plugins/index.ts +1 -0
  343. package/src/vite/plugins/navbar.ts +4 -1
  344. package/src/vite/plugins/reference.ts +130 -0
  345. package/src/vite/plugins/schemas.ts +51 -2
  346. package/build/api/examples/diagnostic/unused-default.d.ts +0 -49
  347. package/build/api/examples/diagnostic/unused-default.d.ts.map +0 -1
  348. package/build/api/examples/diagnostic/unused-default.js +0 -19
  349. package/build/api/examples/diagnostic/unused-default.js.map +0 -1
  350. package/build/api/schema/augmentations/augmentations/description.d.ts +0 -26
  351. package/build/api/schema/augmentations/augmentations/description.d.ts.map +0 -1
  352. package/build/api/schema/augmentations/augmentations/description.js +0 -55
  353. package/build/api/schema/augmentations/augmentations/description.js.map +0 -1
  354. package/build/api/schema/augmentations/schema-augmentation.d.ts +0 -20
  355. package/build/api/schema/augmentations/schema-augmentation.d.ts.map +0 -1
  356. package/build/api/schema/augmentations/schema-augmentation.js +0 -22
  357. package/build/api/schema/augmentations/schema-augmentation.js.map +0 -1
  358. package/build/api/schema/augmentations/target.d.ts +0 -25
  359. package/build/api/schema/augmentations/target.d.ts.map +0 -1
  360. package/build/api/schema/augmentations/target.js +0 -39
  361. package/build/api/schema/augmentations/target.js.map +0 -1
  362. package/build/lib/graphql-path/constructors.d.ts +0 -57
  363. package/build/lib/graphql-path/constructors.d.ts.map +0 -1
  364. package/build/lib/graphql-path/constructors.js +0 -73
  365. package/build/lib/graphql-path/constructors.js.map +0 -1
  366. package/build/template/components/ArgumentList.d.ts +0 -6
  367. package/build/template/components/ArgumentList.d.ts.map +0 -1
  368. package/build/template/components/ArgumentList.js +0 -9
  369. package/build/template/components/ArgumentList.js.map +0 -1
  370. package/src/api/examples/diagnostic/unused-default.ts +0 -22
  371. package/src/api/schema/augmentations/augmentations/description.ts +0 -69
  372. package/src/api/schema/augmentations/schema-augmentation.ts +0 -32
  373. package/src/api/schema/augmentations/target.ts +0 -61
  374. package/src/lib/graphql-path/constructors.ts +0 -81
  375. package/src/template/components/ArgumentList.tsx +0 -22
@@ -362,17 +362,16 @@ export declare const TemplateConfig: S.extend<S.SchemaClass<{
362
362
  }, never>, S.Struct<{
363
363
  schema: S.extend<S.SchemaClass<{
364
364
  readonly augmentations?: readonly {
365
- readonly type: "description";
366
- readonly content: string;
367
- readonly on: {
368
- readonly name: string;
369
- readonly type: "TargetType";
370
- } | {
371
- readonly name: string;
372
- readonly type: "TargetField";
373
- readonly targetType: string;
374
- };
375
- readonly placement: "before" | "after" | "over";
365
+ readonly content?: string | undefined;
366
+ readonly on?: string | undefined;
367
+ readonly placement?: "before" | "after" | "over" | undefined;
368
+ readonly versions?: {
369
+ readonly [x: string]: {
370
+ readonly content?: string | undefined;
371
+ readonly on?: string | undefined;
372
+ readonly placement?: "before" | "after" | "over" | undefined;
373
+ };
374
+ } | undefined;
376
375
  }[] | undefined;
377
376
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
378
377
  readonly sources?: {
@@ -400,17 +399,16 @@ export declare const TemplateConfig: S.extend<S.SchemaClass<{
400
399
  } | undefined;
401
400
  }, {
402
401
  readonly augmentations?: readonly {
403
- readonly type: "description";
404
- readonly content: string;
405
- readonly on: {
406
- readonly name: string;
407
- readonly type: "TargetType";
408
- } | {
409
- readonly name: string;
410
- readonly type: "TargetField";
411
- readonly targetType: string;
412
- };
413
- readonly placement: "before" | "after" | "over";
402
+ readonly content?: string | undefined;
403
+ readonly on?: string | undefined;
404
+ readonly placement?: "before" | "after" | "over" | undefined;
405
+ readonly versions?: {
406
+ readonly [x: string]: {
407
+ readonly content?: string | undefined;
408
+ readonly on?: string | undefined;
409
+ readonly placement?: "before" | "after" | "over" | undefined;
410
+ };
411
+ } | undefined;
414
412
  }[] | undefined;
415
413
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
416
414
  readonly sources?: {
@@ -439,6 +437,15 @@ export declare const TemplateConfig: S.extend<S.SchemaClass<{
439
437
  }, never>, S.Struct<{
440
438
  enabled: typeof S.Boolean;
441
439
  }>>;
440
+ reference: S.Struct<{
441
+ enabled: typeof S.Boolean;
442
+ descriptionsView: S.Struct<{
443
+ defaultMode: S.Literal<["compact", "expanded"]>;
444
+ showControl: typeof S.Boolean;
445
+ }>;
446
+ nullabilityRendering: S.Literal<["questionMark", "bangMark"]>;
447
+ diagnostics: S.optional<typeof S.Unknown>;
448
+ }>;
442
449
  examples: S.extend<S.SchemaClass<{
443
450
  readonly display?: "all" | "none" | {
444
451
  readonly include: readonly string[];
@@ -899,17 +906,16 @@ export declare const makeTemplateConfig: S.extend<S.SchemaClass<{
899
906
  }, never>, S.Struct<{
900
907
  schema: S.extend<S.SchemaClass<{
901
908
  readonly augmentations?: readonly {
902
- readonly type: "description";
903
- readonly content: string;
904
- readonly on: {
905
- readonly name: string;
906
- readonly type: "TargetType";
907
- } | {
908
- readonly name: string;
909
- readonly type: "TargetField";
910
- readonly targetType: string;
911
- };
912
- readonly placement: "before" | "after" | "over";
909
+ readonly content?: string | undefined;
910
+ readonly on?: string | undefined;
911
+ readonly placement?: "before" | "after" | "over" | undefined;
912
+ readonly versions?: {
913
+ readonly [x: string]: {
914
+ readonly content?: string | undefined;
915
+ readonly on?: string | undefined;
916
+ readonly placement?: "before" | "after" | "over" | undefined;
917
+ };
918
+ } | undefined;
913
919
  }[] | undefined;
914
920
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
915
921
  readonly sources?: {
@@ -937,17 +943,16 @@ export declare const makeTemplateConfig: S.extend<S.SchemaClass<{
937
943
  } | undefined;
938
944
  }, {
939
945
  readonly augmentations?: readonly {
940
- readonly type: "description";
941
- readonly content: string;
942
- readonly on: {
943
- readonly name: string;
944
- readonly type: "TargetType";
945
- } | {
946
- readonly name: string;
947
- readonly type: "TargetField";
948
- readonly targetType: string;
949
- };
950
- readonly placement: "before" | "after" | "over";
946
+ readonly content?: string | undefined;
947
+ readonly on?: string | undefined;
948
+ readonly placement?: "before" | "after" | "over" | undefined;
949
+ readonly versions?: {
950
+ readonly [x: string]: {
951
+ readonly content?: string | undefined;
952
+ readonly on?: string | undefined;
953
+ readonly placement?: "before" | "after" | "over" | undefined;
954
+ };
955
+ } | undefined;
951
956
  }[] | undefined;
952
957
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
953
958
  readonly sources?: {
@@ -976,6 +981,15 @@ export declare const makeTemplateConfig: S.extend<S.SchemaClass<{
976
981
  }, never>, S.Struct<{
977
982
  enabled: typeof S.Boolean;
978
983
  }>>;
984
+ reference: S.Struct<{
985
+ enabled: typeof S.Boolean;
986
+ descriptionsView: S.Struct<{
987
+ defaultMode: S.Literal<["compact", "expanded"]>;
988
+ showControl: typeof S.Boolean;
989
+ }>;
990
+ nullabilityRendering: S.Literal<["questionMark", "bangMark"]>;
991
+ diagnostics: S.optional<typeof S.Unknown>;
992
+ }>;
979
993
  examples: S.extend<S.SchemaClass<{
980
994
  readonly display?: "all" | "none" | {
981
995
  readonly include: readonly string[];
@@ -1319,17 +1333,16 @@ export declare const isTemplateConfig: (u: unknown, overrideOptions?: import("ef
1319
1333
  };
1320
1334
  readonly schema: {
1321
1335
  readonly augmentations?: readonly {
1322
- readonly type: "description";
1323
- readonly content: string;
1324
- readonly on: {
1325
- readonly name: string;
1326
- readonly type: "TargetType";
1327
- } | {
1328
- readonly name: string;
1329
- readonly type: "TargetField";
1330
- readonly targetType: string;
1331
- };
1332
- readonly placement: "before" | "after" | "over";
1336
+ readonly content?: string | undefined;
1337
+ readonly on?: string | undefined;
1338
+ readonly placement?: "before" | "after" | "over" | undefined;
1339
+ readonly versions?: {
1340
+ readonly [x: string]: {
1341
+ readonly content?: string | undefined;
1342
+ readonly on?: string | undefined;
1343
+ readonly placement?: "before" | "after" | "over" | undefined;
1344
+ };
1345
+ } | undefined;
1333
1346
  }[] | undefined;
1334
1347
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
1335
1348
  readonly sources?: {
@@ -1358,6 +1371,15 @@ export declare const isTemplateConfig: (u: unknown, overrideOptions?: import("ef
1358
1371
  } & {
1359
1372
  readonly enabled: boolean;
1360
1373
  };
1374
+ readonly reference: {
1375
+ readonly enabled: boolean;
1376
+ readonly diagnostics?: unknown;
1377
+ readonly descriptionsView: {
1378
+ readonly defaultMode: "compact" | "expanded";
1379
+ readonly showControl: boolean;
1380
+ };
1381
+ readonly nullabilityRendering: "questionMark" | "bangMark";
1382
+ };
1361
1383
  };
1362
1384
  export declare const decodeTemplateConfig: (i: {
1363
1385
  readonly build: {
@@ -1588,17 +1610,16 @@ export declare const decodeTemplateConfig: (i: {
1588
1610
  };
1589
1611
  readonly schema: {
1590
1612
  readonly augmentations?: readonly {
1591
- readonly type: "description";
1592
- readonly content: string;
1593
- readonly on: {
1594
- readonly name: string;
1595
- readonly type: "TargetType";
1596
- } | {
1597
- readonly name: string;
1598
- readonly type: "TargetField";
1599
- readonly targetType: string;
1600
- };
1601
- readonly placement: "before" | "after" | "over";
1613
+ readonly content?: string | undefined;
1614
+ readonly on?: string | undefined;
1615
+ readonly placement?: "before" | "after" | "over" | undefined;
1616
+ readonly versions?: {
1617
+ readonly [x: string]: {
1618
+ readonly content?: string | undefined;
1619
+ readonly on?: string | undefined;
1620
+ readonly placement?: "before" | "after" | "over" | undefined;
1621
+ };
1622
+ } | undefined;
1602
1623
  }[] | undefined;
1603
1624
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
1604
1625
  readonly sources?: {
@@ -1627,6 +1648,15 @@ export declare const decodeTemplateConfig: (i: {
1627
1648
  } & {
1628
1649
  readonly enabled: boolean;
1629
1650
  };
1651
+ readonly reference: {
1652
+ readonly enabled: boolean;
1653
+ readonly descriptionsView: {
1654
+ readonly defaultMode: "compact" | "expanded";
1655
+ readonly showControl: boolean;
1656
+ };
1657
+ readonly nullabilityRendering: "questionMark" | "bangMark";
1658
+ readonly diagnostics?: unknown;
1659
+ };
1630
1660
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
1631
1661
  readonly build: {
1632
1662
  readonly architecture: "ssr" | "ssg" | "spa";
@@ -1862,17 +1892,16 @@ export declare const decodeTemplateConfig: (i: {
1862
1892
  };
1863
1893
  readonly schema: {
1864
1894
  readonly augmentations?: readonly {
1865
- readonly type: "description";
1866
- readonly content: string;
1867
- readonly on: {
1868
- readonly name: string;
1869
- readonly type: "TargetType";
1870
- } | {
1871
- readonly name: string;
1872
- readonly type: "TargetField";
1873
- readonly targetType: string;
1874
- };
1875
- readonly placement: "before" | "after" | "over";
1895
+ readonly content?: string | undefined;
1896
+ readonly on?: string | undefined;
1897
+ readonly placement?: "before" | "after" | "over" | undefined;
1898
+ readonly versions?: {
1899
+ readonly [x: string]: {
1900
+ readonly content?: string | undefined;
1901
+ readonly on?: string | undefined;
1902
+ readonly placement?: "before" | "after" | "over" | undefined;
1903
+ };
1904
+ } | undefined;
1876
1905
  }[] | undefined;
1877
1906
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
1878
1907
  readonly sources?: {
@@ -1901,6 +1930,15 @@ export declare const decodeTemplateConfig: (i: {
1901
1930
  } & {
1902
1931
  readonly enabled: boolean;
1903
1932
  };
1933
+ readonly reference: {
1934
+ readonly enabled: boolean;
1935
+ readonly diagnostics?: unknown;
1936
+ readonly descriptionsView: {
1937
+ readonly defaultMode: "compact" | "expanded";
1938
+ readonly showControl: boolean;
1939
+ };
1940
+ readonly nullabilityRendering: "questionMark" | "bangMark";
1941
+ };
1904
1942
  }, import("effect/ParseResult").ParseError, never>;
1905
1943
  export declare const encodeTemplateConfig: (a: {
1906
1944
  readonly build: {
@@ -2137,17 +2175,16 @@ export declare const encodeTemplateConfig: (a: {
2137
2175
  };
2138
2176
  readonly schema: {
2139
2177
  readonly augmentations?: readonly {
2140
- readonly type: "description";
2141
- readonly content: string;
2142
- readonly on: {
2143
- readonly name: string;
2144
- readonly type: "TargetType";
2145
- } | {
2146
- readonly name: string;
2147
- readonly type: "TargetField";
2148
- readonly targetType: string;
2149
- };
2150
- readonly placement: "before" | "after" | "over";
2178
+ readonly content?: string | undefined;
2179
+ readonly on?: string | undefined;
2180
+ readonly placement?: "before" | "after" | "over" | undefined;
2181
+ readonly versions?: {
2182
+ readonly [x: string]: {
2183
+ readonly content?: string | undefined;
2184
+ readonly on?: string | undefined;
2185
+ readonly placement?: "before" | "after" | "over" | undefined;
2186
+ };
2187
+ } | undefined;
2151
2188
  }[] | undefined;
2152
2189
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
2153
2190
  readonly sources?: {
@@ -2176,6 +2213,15 @@ export declare const encodeTemplateConfig: (a: {
2176
2213
  } & {
2177
2214
  readonly enabled: boolean;
2178
2215
  };
2216
+ readonly reference: {
2217
+ readonly enabled: boolean;
2218
+ readonly diagnostics?: unknown;
2219
+ readonly descriptionsView: {
2220
+ readonly defaultMode: "compact" | "expanded";
2221
+ readonly showControl: boolean;
2222
+ };
2223
+ readonly nullabilityRendering: "questionMark" | "bangMark";
2224
+ };
2179
2225
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
2180
2226
  readonly build: {
2181
2227
  readonly architecture: "ssr" | "ssg" | "spa";
@@ -2405,17 +2451,16 @@ export declare const encodeTemplateConfig: (a: {
2405
2451
  };
2406
2452
  readonly schema: {
2407
2453
  readonly augmentations?: readonly {
2408
- readonly type: "description";
2409
- readonly content: string;
2410
- readonly on: {
2411
- readonly name: string;
2412
- readonly type: "TargetType";
2413
- } | {
2414
- readonly name: string;
2415
- readonly type: "TargetField";
2416
- readonly targetType: string;
2417
- };
2418
- readonly placement: "before" | "after" | "over";
2454
+ readonly content?: string | undefined;
2455
+ readonly on?: string | undefined;
2456
+ readonly placement?: "before" | "after" | "over" | undefined;
2457
+ readonly versions?: {
2458
+ readonly [x: string]: {
2459
+ readonly content?: string | undefined;
2460
+ readonly on?: string | undefined;
2461
+ readonly placement?: "before" | "after" | "over" | undefined;
2462
+ };
2463
+ } | undefined;
2419
2464
  }[] | undefined;
2420
2465
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
2421
2466
  readonly sources?: {
@@ -2444,6 +2489,15 @@ export declare const encodeTemplateConfig: (a: {
2444
2489
  } & {
2445
2490
  readonly enabled: boolean;
2446
2491
  };
2492
+ readonly reference: {
2493
+ readonly enabled: boolean;
2494
+ readonly descriptionsView: {
2495
+ readonly defaultMode: "compact" | "expanded";
2496
+ readonly showControl: boolean;
2497
+ };
2498
+ readonly nullabilityRendering: "questionMark" | "bangMark";
2499
+ readonly diagnostics?: unknown;
2500
+ };
2447
2501
  }, import("effect/ParseResult").ParseError, never>;
2448
2502
  export declare const encodeSyncTemplateConfig: (a: {
2449
2503
  readonly build: {
@@ -2680,17 +2734,16 @@ export declare const encodeSyncTemplateConfig: (a: {
2680
2734
  };
2681
2735
  readonly schema: {
2682
2736
  readonly augmentations?: readonly {
2683
- readonly type: "description";
2684
- readonly content: string;
2685
- readonly on: {
2686
- readonly name: string;
2687
- readonly type: "TargetType";
2688
- } | {
2689
- readonly name: string;
2690
- readonly type: "TargetField";
2691
- readonly targetType: string;
2692
- };
2693
- readonly placement: "before" | "after" | "over";
2737
+ readonly content?: string | undefined;
2738
+ readonly on?: string | undefined;
2739
+ readonly placement?: "before" | "after" | "over" | undefined;
2740
+ readonly versions?: {
2741
+ readonly [x: string]: {
2742
+ readonly content?: string | undefined;
2743
+ readonly on?: string | undefined;
2744
+ readonly placement?: "before" | "after" | "over" | undefined;
2745
+ };
2746
+ } | undefined;
2694
2747
  }[] | undefined;
2695
2748
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
2696
2749
  readonly sources?: {
@@ -2719,6 +2772,15 @@ export declare const encodeSyncTemplateConfig: (a: {
2719
2772
  } & {
2720
2773
  readonly enabled: boolean;
2721
2774
  };
2775
+ readonly reference: {
2776
+ readonly enabled: boolean;
2777
+ readonly diagnostics?: unknown;
2778
+ readonly descriptionsView: {
2779
+ readonly defaultMode: "compact" | "expanded";
2780
+ readonly showControl: boolean;
2781
+ };
2782
+ readonly nullabilityRendering: "questionMark" | "bangMark";
2783
+ };
2722
2784
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
2723
2785
  readonly build: {
2724
2786
  readonly architecture: "ssr" | "ssg" | "spa";
@@ -2948,17 +3010,16 @@ export declare const encodeSyncTemplateConfig: (a: {
2948
3010
  };
2949
3011
  readonly schema: {
2950
3012
  readonly augmentations?: readonly {
2951
- readonly type: "description";
2952
- readonly content: string;
2953
- readonly on: {
2954
- readonly name: string;
2955
- readonly type: "TargetType";
2956
- } | {
2957
- readonly name: string;
2958
- readonly type: "TargetField";
2959
- readonly targetType: string;
2960
- };
2961
- readonly placement: "before" | "after" | "over";
3013
+ readonly content?: string | undefined;
3014
+ readonly on?: string | undefined;
3015
+ readonly placement?: "before" | "after" | "over" | undefined;
3016
+ readonly versions?: {
3017
+ readonly [x: string]: {
3018
+ readonly content?: string | undefined;
3019
+ readonly on?: string | undefined;
3020
+ readonly placement?: "before" | "after" | "over" | undefined;
3021
+ };
3022
+ } | undefined;
2962
3023
  }[] | undefined;
2963
3024
  readonly useSources?: "file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile" | readonly ("file" | "directory" | "versionedDirectory" | "memory" | "introspection" | "introspectionFile")[] | undefined;
2964
3025
  readonly sources?: {
@@ -2987,5 +3048,14 @@ export declare const encodeSyncTemplateConfig: (a: {
2987
3048
  } & {
2988
3049
  readonly enabled: boolean;
2989
3050
  };
3051
+ readonly reference: {
3052
+ readonly enabled: boolean;
3053
+ readonly descriptionsView: {
3054
+ readonly defaultMode: "compact" | "expanded";
3055
+ readonly showControl: boolean;
3056
+ };
3057
+ readonly nullabilityRendering: "questionMark" | "bangMark";
3058
+ readonly diagnostics?: unknown;
3059
+ };
2990
3060
  };
2991
3061
  //# sourceMappingURL=template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../src/api/config-template/template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAA;AAGjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEhD,eAAO,MAAM,OAAO,GAAI,QAAQ,MAAM,EAAE,MAAM;IAC5C,QAAQ,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,GAAG,SAAS,CAAA;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,GAAG,SAAS,CAAA;CACtC,KAAG,cAYH,CAAA;AAMD;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA+B,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { ExamplesConfigObject } from '#api/examples/config';
2
+ import { ReferenceConfigObject } from '#api/reference/config';
2
3
  import { ConfigSchema } from '#api/schema/config-schema';
3
4
  import { S } from '#lib/kit-temp/effect';
4
5
  import { Fn, Obj } from '@wollybeard/kit';
@@ -10,6 +11,13 @@ export const resolve = (config, data) => {
10
11
  ...config.schema,
11
12
  enabled: Boolean(config.schema.enabled ?? data.schemas),
12
13
  },
14
+ reference: {
15
+ ...config.reference,
16
+ // Reference is enabled if explicitly enabled OR if schemas exist (unless explicitly disabled)
17
+ enabled: Boolean(config.reference.enabled ?? data.schemas),
18
+ descriptionsView: config.reference.descriptionsView,
19
+ nullabilityRendering: config.reference.nullabilityRendering,
20
+ },
13
21
  examples: {
14
22
  ...config.examples,
15
23
  enabled: Boolean(config.examples.enabled ?? (data.examples && data.examples.examples.length > 0)),
@@ -24,10 +32,19 @@ export const resolve = (config, data) => {
24
32
  * This is the configuration that templates receive, where optional fields
25
33
  * that control feature enablement have been resolved to concrete values.
26
34
  */
27
- export const TemplateConfig = S.extend(Config.pipe(S.omit('_input', 'schema', 'examples')), S.Struct({
35
+ export const TemplateConfig = S.extend(Config.pipe(S.omit('_input', 'schema', 'reference', 'examples')), S.Struct({
28
36
  schema: S.extend(ConfigSchema.pipe(S.omit('enabled')), S.Struct({
29
37
  enabled: S.Boolean,
30
38
  })),
39
+ reference: S.Struct({
40
+ enabled: S.Boolean,
41
+ descriptionsView: S.Struct({
42
+ defaultMode: S.Literal('compact', 'expanded'),
43
+ showControl: S.Boolean,
44
+ }),
45
+ nullabilityRendering: S.Literal('questionMark', 'bangMark'),
46
+ diagnostics: S.optional(S.Unknown), // From ReferenceConfigObject
47
+ }),
31
48
  examples: S.extend(ExamplesConfigObject.pipe(S.omit('enabled')), S.Struct({
32
49
  enabled: S.Boolean,
33
50
  })),
@@ -1 +1 @@
1
- {"version":3,"file":"template.js","sourceRoot":"","sources":["../../../src/api/config-template/template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAExD,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEhD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,MAAc,EAAE,IAGvC,EAAkB,EAAE;IACnB,OAAO;QACL,GAAG,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC;QAC/B,MAAM,EAAE;YACN,GAAG,MAAM,CAAC,MAAM;YAChB,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC;SACxD;QACD,QAAQ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AC,EAC5C,CAAC,CAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC,CAAC,OAAO;KACnB,CAAC,CACH;CACF,CAAC,CACH,CAAC,WAAW,CAAC;IACZ,UAAU,EAAE,gBAAgB;IAC5B,KAAK,EAAE,wBAAwB;IAC/B,WAAW,EAAE,yFAAyF;CACvG,CAAC,CAAA;AAIF,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAA;AAE7D,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,cAAc,CAAC,CAAA;AAEpD,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;AAC5D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;AAC5D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA"}
@@ -3,7 +3,6 @@ export * from './duplicate-content.js';
3
3
  export * from './invalid-filename.js';
4
4
  export * from './missing-versions.js';
5
5
  export * from './unknown-version.js';
6
- export * from './unused-default.js';
7
6
  export * from './validation-error.js';
8
7
  export { validateExamples } from './validator.js';
9
8
  export declare const Diagnostic: S.Union<[S.Struct<{
@@ -18,28 +17,6 @@ export declare const Diagnostic: S.Union<[S.Struct<{
18
17
  readonly info: "info";
19
18
  }>;
20
19
  message: typeof S.String;
21
- }, "_tag" | "name" | "source" | "severity"> & {
22
- name: S.Literal<["unused-default"]>;
23
- source: S.Literal<["examples-scanner"]>;
24
- severity: S.Literal<["warning"]>;
25
- } & {
26
- example: S.Struct<{
27
- name: typeof S.String;
28
- path: typeof S.String;
29
- }>;
30
- versions: S.Array$<typeof S.String>;
31
- }>, S.Struct<{
32
- _tag: S.tag<"Diagnostic">;
33
- } & Omit<{
34
- _tag: S.Literal<["Diagnostic"]>;
35
- source: typeof S.String;
36
- name: typeof S.String;
37
- severity: S.Enums<{
38
- readonly error: "error";
39
- readonly warning: "warning";
40
- readonly info: "info";
41
- }>;
42
- message: typeof S.String;
43
20
  }, "_tag" | "name" | "source" | "severity"> & {
44
21
  name: S.Literal<["duplicate-content"]>;
45
22
  source: S.Literal<["examples-scanner"]>;
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostic.d.ts","sourceRoot":"","sources":["../../../../src/api/examples/diagnostic/diagnostic.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAGxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEjD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUrB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"diagnostic.d.ts","sourceRoot":"","sources":["../../../../src/api/examples/diagnostic/diagnostic.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAGxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEjD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASrB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAA"}
@@ -2,7 +2,6 @@ import { DiagnosticDuplicateContent } from '#api/examples/diagnostic/duplicate-c
2
2
  import { DiagnosticInvalidFilename } from '#api/examples/diagnostic/invalid-filename';
3
3
  import { DiagnosticMissingVersions } from '#api/examples/diagnostic/missing-versions';
4
4
  import { DiagnosticUnknownVersion } from '#api/examples/diagnostic/unknown-version';
5
- import { DiagnosticUnusedDefault } from '#api/examples/diagnostic/unused-default';
6
5
  import { DiagnosticValidationError } from '#api/examples/diagnostic/validation-error';
7
6
  import { S } from '#lib/kit-temp/effect';
8
7
  // Re-export all individual diagnostics
@@ -10,10 +9,9 @@ export * from './duplicate-content.js';
10
9
  export * from './invalid-filename.js';
11
10
  export * from './missing-versions.js';
12
11
  export * from './unknown-version.js';
13
- export * from './unused-default.js';
14
12
  export * from './validation-error.js';
15
13
  export { validateExamples } from './validator.js';
16
- export const Diagnostic = S.Union(DiagnosticUnusedDefault, DiagnosticDuplicateContent, DiagnosticMissingVersions, DiagnosticInvalidFilename, DiagnosticUnknownVersion, DiagnosticValidationError).annotations({
14
+ export const Diagnostic = S.Union(DiagnosticDuplicateContent, DiagnosticMissingVersions, DiagnosticInvalidFilename, DiagnosticUnknownVersion, DiagnosticValidationError).annotations({
17
15
  identifier: 'ExamplesDiagnostic',
18
16
  description: 'All diagnostics that can be generated for examples',
19
17
  });
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostic.js","sourceRoot":"","sources":["../../../../src/api/examples/diagnostic/diagnostic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAA;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAA;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAExC,uCAAuC;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAC/B,uBAAuB,EACvB,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,CAC1B,CAAC,WAAW,CAAC;IACZ,UAAU,EAAE,oBAAoB;IAChC,WAAW,EAAE,oDAAoD;CAClE,CAAC,CAAA"}
1
+ {"version":3,"file":"diagnostic.js","sourceRoot":"","sources":["../../../../src/api/examples/diagnostic/diagnostic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAA;AACvF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAA;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAA;AACrF,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAExC,uCAAuC;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,uBAAuB,CAAA;AACrC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEjD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAC/B,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,yBAAyB,CAC1B,CAAC,WAAW,CAAC;IACZ,UAAU,EAAE,oBAAoB;IAChC,WAAW,EAAE,oDAAoD;CAClE,CAAC,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import { Catalog as SchemaCatalog } from '#lib/catalog/$';
2
+ import { VersionCoverage } from '#lib/version-coverage';
3
+ import { Version } from '#lib/version/$';
2
4
  import { FileSystem } from '@effect/platform';
3
- import { Effect } from 'effect';
5
+ import { Effect, HashMap } from 'effect';
4
6
  import type { Diagnostic } from './diagnostic/diagnostic.js';
5
7
  import { Catalog } from './schemas/catalog.js';
6
8
  export interface ScanResult {
@@ -12,7 +14,31 @@ export interface ScanOptions {
12
14
  extensions?: string[];
13
15
  schemaCatalog?: SchemaCatalog.Catalog;
14
16
  }
17
+ type ParsedExampleFile = {
18
+ type: 'unversioned';
19
+ name: string;
20
+ file: string;
21
+ } | {
22
+ type: 'versioned';
23
+ name: string;
24
+ version: Version.Version;
25
+ file: string;
26
+ };
27
+ type GroupedExampleFiles = Map<string, {
28
+ unversioned?: string;
29
+ versioned: Map<Version.Version, string>;
30
+ }>;
31
+ export declare const parseExampleFile: (filename: string) => ParsedExampleFile;
32
+ /**
33
+ * Resolve .default files into proper version coverage.
34
+ * This erases the .default convention and converts it to semantic version sets.
35
+ */
36
+ export declare const resolveDefaultFiles: (grouped: GroupedExampleFiles, schemaVersions: Version.Version[]) => Map<string, {
37
+ versionDocuments: HashMap.HashMap<VersionCoverage.VersionCoverage, string>;
38
+ unversioned?: string;
39
+ }>;
15
40
  export declare const scan: (options: ScanOptions & {
16
41
  files?: string[];
17
42
  }) => Effect.Effect<ScanResult, Error, FileSystem.FileSystem>;
43
+ export {};
18
44
  //# sourceMappingURL=scanner.d.ts.map