@ng-doc/builder 22.0.0-beta.1 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (439) hide show
  1. package/README.md +19 -28
  2. package/application/index.js +7 -2
  3. package/application/index.js.map +1 -1
  4. package/application/schema.json +11 -4
  5. package/builders.json +23 -13
  6. package/classes/observable-map.d.ts +1 -0
  7. package/classes/observable-map.js +14 -3
  8. package/classes/observable-map.js.map +1 -1
  9. package/classes/observable-set.js +2 -1
  10. package/classes/observable-set.js.map +1 -1
  11. package/dev-server/index.js +5 -3
  12. package/dev-server/index.js.map +1 -1
  13. package/engine/build-ng-doc.js +1 -16
  14. package/engine/build-ng-doc.js.map +1 -1
  15. package/engine/builders/api-list/api-list-component.builder.js +4 -4
  16. package/engine/builders/api-list/api-list-component.builder.js.map +1 -1
  17. package/engine/builders/api-list/api-page-template.builder.js +2 -2
  18. package/engine/builders/api-list/api-page-template.builder.js.map +1 -1
  19. package/engine/builders/global/keywords.builder.d.ts +1 -4
  20. package/engine/builders/global/keywords.builder.js +5 -9
  21. package/engine/builders/global/keywords.builder.js.map +1 -1
  22. package/engine/builders/global/search-indexes.builder.js +1 -1
  23. package/engine/builders/global/search-indexes.builder.js.map +1 -1
  24. package/engine/builders/helpers/create-entry-metadata.js +2 -1
  25. package/engine/builders/helpers/create-entry-metadata.js.map +1 -1
  26. package/engine/builders/helpers/create-import-path.js.map +1 -1
  27. package/engine/builders/helpers/get-entry-relative-path.js.map +1 -1
  28. package/engine/builders/page/demo-assets.builder.js +8 -5
  29. package/engine/builders/page/demo-assets.builder.js.map +1 -1
  30. package/engine/builders/page/playground.builder.js +1 -0
  31. package/engine/builders/page/playground.builder.js.map +1 -1
  32. package/engine/builders/shared/content.builder.js +3 -3
  33. package/engine/builders/shared/content.builder.js.map +1 -1
  34. package/engine/builders/shared/entry.builder.js +1 -13
  35. package/engine/builders/shared/entry.builder.js.map +1 -1
  36. package/engine/builders/shared/page-component.builder.js +16 -6
  37. package/engine/builders/shared/page-component.builder.js.map +1 -1
  38. package/engine/builders/shared/page-wrapper.builder.js +8 -5
  39. package/engine/builders/shared/page-wrapper.builder.js.map +1 -1
  40. package/engine/core/operators/distinct-pending.js.map +1 -1
  41. package/engine/core/operators/entries-emitter.js +2 -6
  42. package/engine/core/operators/entries-emitter.js.map +1 -1
  43. package/engine/core/operators/factory.js +1 -4
  44. package/engine/core/operators/factory.js.map +1 -1
  45. package/engine/core/operators/merge-factory.js +19 -17
  46. package/engine/core/operators/merge-factory.js.map +1 -1
  47. package/engine/core/operators/when-builders-done.js.map +1 -1
  48. package/engine/core/stores/index.d.ts +0 -1
  49. package/engine/core/stores/index.js +0 -1
  50. package/engine/core/stores/index.js.map +1 -1
  51. package/engine/core/triggers/on-dependencies-change.d.ts +1 -1
  52. package/engine/core/triggers/on-dependencies-change.js +2 -2
  53. package/engine/core/triggers/on-dependencies-change.js.map +1 -1
  54. package/engine/core/watcher/watch.js +19 -1
  55. package/engine/core/watcher/watch.js.map +1 -1
  56. package/engine/variables.d.ts +1 -0
  57. package/engine/variables.js +1 -0
  58. package/engine/variables.js.map +1 -1
  59. package/generator/artifacts/index.d.ts +317 -0
  60. package/generator/bootstrap/bin.d.ts +18 -0
  61. package/generator/bootstrap/bin.js +7274 -0
  62. package/generator/bootstrap/candidate-output-committer.d.ts +12 -0
  63. package/generator/bootstrap/cli.d.ts +42 -0
  64. package/generator/bootstrap/cli.js +7123 -0
  65. package/generator/bootstrap/constants.d.ts +4 -0
  66. package/generator/bootstrap/index.d.ts +111 -0
  67. package/generator/bootstrap/index.js +5020 -0
  68. package/generator/bootstrap/prerender-command.d.ts +31 -0
  69. package/generator/bootstrap/process-tree.d.ts +49 -0
  70. package/generator/build-metafile.json +11701 -0
  71. package/generator/build-provenance.json +119 -0
  72. package/generator/compiler/assemble.d.ts +41 -0
  73. package/generator/compiler/classify.d.ts +161 -0
  74. package/generator/compiler/closure-store.d.ts +55 -0
  75. package/generator/compiler/common.d.ts +32 -0
  76. package/generator/compiler/describe.d.ts +21 -0
  77. package/generator/compiler/dry-run.d.ts +108 -0
  78. package/generator/compiler/fast-start.d.ts +104 -0
  79. package/generator/compiler/fold.d.ts +116 -0
  80. package/generator/compiler/index.d.ts +111 -0
  81. package/generator/compiler/index.js +17759 -0
  82. package/generator/compiler/link.d.ts +38 -0
  83. package/generator/compiler/memo.d.ts +44 -0
  84. package/generator/compiler/plan.d.ts +92 -0
  85. package/generator/compiler/progress.d.ts +54 -0
  86. package/generator/compiler/render.d.ts +27 -0
  87. package/generator/compiler/retention.d.ts +181 -0
  88. package/generator/compiler/semantic-closure.d.ts +46 -0
  89. package/generator/compiler/targeted.d.ts +280 -0
  90. package/generator/content/content-compiler.d.ts +118 -0
  91. package/generator/content/highlight-cache.d.ts +139 -0
  92. package/generator/content/html-pipeline.d.ts +170 -0
  93. package/generator/content/html-pool.d.ts +239 -0
  94. package/generator/content/html-worker.js +1598 -0
  95. package/generator/content-module-ids.d.ts +8 -0
  96. package/generator/contracts.d.ts +1063 -0
  97. package/generator/contracts.js +15 -0
  98. package/generator/discovery/index.d.ts +77 -0
  99. package/generator/graph/index.d.ts +211 -0
  100. package/generator/graph/unit-index.d.ts +216 -0
  101. package/generator/kernel/canonical.d.ts +57 -0
  102. package/generator/kernel/flags.d.ts +49 -0
  103. package/generator/kernel/footprint.d.ts +88 -0
  104. package/generator/kernel/observations.d.ts +68 -0
  105. package/generator/kernel/paths.d.ts +22 -0
  106. package/generator/kernel/runtime-identity.d.ts +11 -0
  107. package/generator/outputs/index.d.ts +67 -0
  108. package/generator/package.json +3 -0
  109. package/generator/progress/ci.d.ts +22 -0
  110. package/generator/progress/detect.d.ts +60 -0
  111. package/generator/progress/events.d.ts +126 -0
  112. package/generator/progress/format.d.ts +83 -0
  113. package/generator/progress/gate.d.ts +49 -0
  114. package/generator/progress/host.d.ts +29 -0
  115. package/generator/progress/lines.d.ts +42 -0
  116. package/generator/progress/live.d.ts +115 -0
  117. package/generator/progress/model.d.ts +85 -0
  118. package/generator/progress/reporter.d.ts +87 -0
  119. package/generator/progress/settings.d.ts +60 -0
  120. package/generator/semantic/angular.d.ts +9 -0
  121. package/generator/semantic/api-enumeration.d.ts +19 -0
  122. package/generator/semantic/api-summary.d.ts +33 -0
  123. package/generator/semantic/dependencies.d.ts +20 -0
  124. package/generator/semantic/derived-classes.d.ts +58 -0
  125. package/generator/semantic/documentation-cache.d.ts +23 -0
  126. package/generator/semantic/fragments.d.ts +28 -0
  127. package/generator/semantic/owned-roots.d.ts +59 -0
  128. package/generator/semantic/program-builder.d.ts +55 -0
  129. package/generator/semantic/program-index.d.ts +124 -0
  130. package/generator/semantic/program-inputs.d.ts +26 -0
  131. package/generator/semantic/program-observations.d.ts +158 -0
  132. package/generator/semantic/program-retention.d.ts +147 -0
  133. package/generator/semantic/program-state.d.ts +196 -0
  134. package/generator/semantic/program-verify.d.ts +22 -0
  135. package/generator/semantic/recorder.d.ts +89 -0
  136. package/generator/semantic/rendering.d.ts +34 -0
  137. package/generator/semantic/semantic-closure.d.ts +129 -0
  138. package/generator/semantic/semantic-service.d.ts +186 -0
  139. package/generator/semantic/type-text.d.ts +5 -0
  140. package/generator/session/build-session.d.ts +206 -0
  141. package/generator/session/input-verification.d.ts +38 -0
  142. package/generator/session/parcel-event-source.d.ts +22 -0
  143. package/generator/session/progress.d.ts +72 -0
  144. package/generator/session/unchanged-saves.d.ts +63 -0
  145. package/generator/session/watch-inputs.d.ts +6 -0
  146. package/generator/session/watch-signals.d.ts +10 -0
  147. package/generator/templates/api/base.html.nunj +26 -0
  148. package/generator/templates/api/class-declaration.html.nunj +57 -0
  149. package/generator/templates/api/details/class-declaration.html.nunj +47 -0
  150. package/generator/templates/api/details/enum-declaration.html.nunj +0 -0
  151. package/generator/templates/api/details/function-declaration.html.nunj +14 -0
  152. package/generator/templates/api/details/helpers/decorators.html.nunj +14 -0
  153. package/generator/templates/api/details/helpers/extends.html.nunj +6 -0
  154. package/generator/templates/api/details/helpers/selectors.html.nunj +12 -0
  155. package/generator/templates/api/details/helpers/type-parameters.html.nunj +14 -0
  156. package/generator/templates/api/details/interface-declaration.html.nunj +27 -0
  157. package/generator/templates/api/details/type-alias-declaration.html.nunj +14 -0
  158. package/generator/templates/api/details/variable-declaration.html.nunj +0 -0
  159. package/generator/templates/api/details.html.nunj +9 -0
  160. package/generator/templates/api/enum-declaration.html.nunj +12 -0
  161. package/generator/templates/api/function-declaration.html.nunj +35 -0
  162. package/generator/templates/api/interface-declaration.html.nunj +37 -0
  163. package/generator/templates/api/type-alias-declaration.html.nunj +16 -0
  164. package/generator/templates/api/variable-declaration.html.nunj +8 -0
  165. package/generator/templates/api-header.html.nunj +11 -0
  166. package/generator/templates/api-list.ts.nunj +22 -0
  167. package/generator/templates/api-page-content.html.nunj +1 -0
  168. package/generator/templates/api-scope.ts.nunj +22 -0
  169. package/generator/templates/category.ts.nunj +22 -0
  170. package/generator/templates/code.html.nunj +3 -0
  171. package/generator/templates/context.ts.nunj +55 -0
  172. package/generator/templates/demo-assets.ts.nunj +25 -0
  173. package/generator/templates/helpers/accessor.html.nunj +76 -0
  174. package/generator/templates/helpers/accessors.html.nunj +7 -0
  175. package/generator/templates/helpers/badge.html.nunj +4 -0
  176. package/generator/templates/helpers/call-signature.html.nunj +70 -0
  177. package/generator/templates/helpers/code.html.nunj +3 -0
  178. package/generator/templates/helpers/constructor.html.nunj +32 -0
  179. package/generator/templates/helpers/declaration-modifiers.html.nunj +45 -0
  180. package/generator/templates/helpers/decorators.html.nunj +11 -0
  181. package/generator/templates/helpers/members.html.nunj +29 -0
  182. package/generator/templates/helpers/method.html.nunj +89 -0
  183. package/generator/templates/helpers/methods.html.nunj +7 -0
  184. package/generator/templates/helpers/modifier.html.nunj +4 -0
  185. package/generator/templates/helpers/no-content.html.nunj +3 -0
  186. package/generator/templates/helpers/overload.html.nunj +57 -0
  187. package/generator/templates/helpers/parameters.html.nunj +44 -0
  188. package/generator/templates/helpers/properties.html.nunj +61 -0
  189. package/generator/templates/helpers/status.html.nunj +33 -0
  190. package/generator/templates/helpers/tag.html.nunj +4 -0
  191. package/generator/templates/helpers/type.html.nunj +11 -0
  192. package/generator/templates/index.ts.nunj +2 -0
  193. package/generator/templates/page-header.html.nunj +5 -0
  194. package/generator/templates/page-wrapper.ts.nunj +64 -0
  195. package/generator/templates/page.ts.nunj +97 -0
  196. package/generator/templates/parts/examples.html.nunj +11 -0
  197. package/generator/templates/parts/member-examples.html.nunj +12 -0
  198. package/generator/templates/parts/member-remarks.html.nunj +8 -0
  199. package/generator/templates/parts/page-tags.html.nunj +10 -0
  200. package/generator/templates/parts/remarks.html.nunj +10 -0
  201. package/generator/templates/parts/see-also.html.nunj +23 -0
  202. package/generator/templates/parts/usage-notes.html.nunj +8 -0
  203. package/generator/templates/playgrounds.ts.nunj +63 -0
  204. package/generator/templates/routes.ts.nunj +49 -0
  205. package/generator/templates/symbol/decorators.html.nunj +12 -0
  206. package/generator/templates/symbol/details.html.nunj +62 -0
  207. package/generator/templates/symbol/extended-by.html.nunj +17 -0
  208. package/generator/templates/symbol/header.html.nunj +22 -0
  209. package/generator/templates/symbol/members.html.nunj +301 -0
  210. package/generator/templates/symbol/page.html.nunj +76 -0
  211. package/generator/templates/symbol/see-also.html.nunj +16 -0
  212. package/generator/vite/angular/ANALOG-LICENSE +21 -0
  213. package/generator/vite/angular/analog-provenance.json +880 -0
  214. package/generator/vite/angular/index.d.ts +14 -0
  215. package/generator/vite/angular/index.js +7300 -0
  216. package/generator/vite/angular-compatibility.d.ts +6 -0
  217. package/generator/vite/angular-composition.d.ts +68 -0
  218. package/generator/vite/angular-version.d.ts +38 -0
  219. package/generator/vite/application-builder.js +331 -0
  220. package/generator/vite/application-builder.schema.json +46 -0
  221. package/generator/vite/application.d.ts +91 -0
  222. package/generator/vite/assets.d.ts +11 -0
  223. package/generator/vite/bounded-close.d.ts +33 -0
  224. package/generator/vite/component-updates.d.ts +21 -0
  225. package/generator/vite/configuration.d.ts +3 -0
  226. package/generator/vite/dev-server-builder.js +334 -0
  227. package/generator/vite/dev-server-builder.schema.json +27 -0
  228. package/generator/vite/dev-styles.d.ts +65 -0
  229. package/generator/vite/diagnostics.d.ts +4 -0
  230. package/generator/vite/external-probes.d.ts +40 -0
  231. package/generator/vite/host-updates.d.ts +145 -0
  232. package/generator/vite/index.d.ts +13 -0
  233. package/generator/vite/index.js +11589 -0
  234. package/generator/vite/lease.d.ts +6 -0
  235. package/generator/vite/lifecycle.d.ts +119 -0
  236. package/generator/vite/mime.d.ts +2 -0
  237. package/generator/vite/missing-paths.d.ts +44 -0
  238. package/generator/vite/options.d.ts +87 -0
  239. package/generator/vite/output-watch.d.ts +41 -0
  240. package/generator/vite/paths.d.ts +7 -0
  241. package/generator/vite/plugin.d.ts +3 -0
  242. package/generator/vite/prerender-entry.js +395 -0
  243. package/generator/vite/prerender-runtime.d.ts +66 -0
  244. package/generator/vite/prerender.d.ts +27 -0
  245. package/generator/vite/production.d.ts +66 -0
  246. package/generator/vite/progress.d.ts +33 -0
  247. package/generator/vite/restore-theme.js +13 -0
  248. package/generator/vite/route-inventory.d.ts +24 -0
  249. package/generator/vite/ssr-renderer-control.d.ts +1 -0
  250. package/generator/vite/ssr-renderer-entry.js +444 -0
  251. package/generator/vite/ssr-renderer-protocol.d.ts +101 -0
  252. package/generator/vite/ssr-renderer.d.ts +74 -0
  253. package/generator/vite/theme-index.d.ts +13 -0
  254. package/generator/vite/tsconfig-paths.d.ts +64 -0
  255. package/generator/vite/vite-event-source.d.ts +198 -0
  256. package/generator/vite/vite-version.d.ts +26 -0
  257. package/generator/vite/watch-inputs.d.ts +39 -0
  258. package/generator/worker/entry.d.ts +1 -0
  259. package/generator/worker/entry.js +614 -0
  260. package/generator/worker/index.d.ts +156 -0
  261. package/generator/worker/index.js +1030 -0
  262. package/generator/worker/protocol.d.ts +160 -0
  263. package/helpers/angular/get-component-decorator.js +6 -6
  264. package/helpers/angular/get-component-decorator.js.map +1 -1
  265. package/helpers/angular/get-directive-decorator.js +3 -3
  266. package/helpers/angular/get-directive-decorator.js.map +1 -1
  267. package/helpers/angular/get-pipe-decorator.js +3 -3
  268. package/helpers/angular/get-pipe-decorator.js.map +1 -1
  269. package/helpers/build-indexes.js +5 -2
  270. package/helpers/build-indexes.js.map +1 -1
  271. package/helpers/construct-page-keyword.js +2 -1
  272. package/helpers/construct-page-keyword.js.map +1 -1
  273. package/helpers/extract-selectors.d.ts +1 -1
  274. package/helpers/extract-selectors.js +5 -3
  275. package/helpers/extract-selectors.js.map +1 -1
  276. package/helpers/filter-useless-members.d.ts +1 -1
  277. package/helpers/format-code.d.ts +2 -1
  278. package/helpers/format-code.js +13 -4
  279. package/helpers/format-code.js.map +1 -1
  280. package/helpers/import-fresh-esm.js.map +1 -1
  281. package/helpers/index.d.ts +2 -0
  282. package/helpers/index.js +2 -0
  283. package/helpers/index.js.map +1 -1
  284. package/helpers/keyword-heading-title.d.ts +7 -0
  285. package/helpers/keyword-heading-title.js +21 -0
  286. package/helpers/keyword-heading-title.js.map +1 -0
  287. package/helpers/markdown-to-html.js +3 -3
  288. package/helpers/markdown-to-html.js.map +1 -1
  289. package/helpers/navigation-title-order.d.ts +8 -0
  290. package/helpers/navigation-title-order.js +15 -0
  291. package/helpers/navigation-title-order.js.map +1 -0
  292. package/helpers/playground/get-playground-inputs.js +8 -4
  293. package/helpers/playground/get-playground-inputs.js.map +1 -1
  294. package/helpers/playground/get-playground-template-inputs.js +2 -1
  295. package/helpers/playground/get-playground-template-inputs.js.map +1 -1
  296. package/helpers/presentation.d.ts +7 -7
  297. package/helpers/presentation.js +23 -23
  298. package/helpers/presentation.js.map +1 -1
  299. package/helpers/print.js +32 -5
  300. package/helpers/print.js.map +1 -1
  301. package/helpers/process-snippets.d.ts +1 -1
  302. package/helpers/process-snippets.js +3 -3
  303. package/helpers/process-snippets.js.map +1 -1
  304. package/helpers/snippets-from-asset.d.ts +1 -1
  305. package/helpers/snippets-from-asset.js +2 -2
  306. package/helpers/snippets-from-asset.js.map +1 -1
  307. package/helpers/sort-navigation-entities.js +2 -1
  308. package/helpers/sort-navigation-entities.js.map +1 -1
  309. package/helpers/stable-generated-id.d.ts +2 -0
  310. package/helpers/stable-generated-id.js +12 -0
  311. package/helpers/stable-generated-id.js.map +1 -0
  312. package/helpers/text-order.d.ts +8 -0
  313. package/helpers/text-order.js +26 -0
  314. package/helpers/text-order.js.map +1 -0
  315. package/helpers/typescript/member/get-inherited-parent.d.ts +1 -1
  316. package/helpers/typescript/member/get-inherited-parent.js +2 -2
  317. package/helpers/typescript/member/get-inherited-parent.js.map +1 -1
  318. package/helpers/typescript/node/sort-by-nodes-name.d.ts +4 -2
  319. package/helpers/typescript/node/sort-by-nodes-name.js +6 -3
  320. package/helpers/typescript/node/sort-by-nodes-name.js.map +1 -1
  321. package/helpers/typescript/property/get-property-assignment.js.map +1 -1
  322. package/interfaces/schema.d.ts +1 -0
  323. package/package.json +87 -30
  324. package/parsers/helpers/number.d.ts +1 -1
  325. package/parsers/helpers/number.js +2 -2
  326. package/parsers/helpers/number.js.map +1 -1
  327. package/parsers/helpers/param-value.d.ts +1 -1
  328. package/parsers/helpers/param-value.js +2 -2
  329. package/parsers/helpers/param-value.js.map +1 -1
  330. package/parsers/helpers/param.js +3 -3
  331. package/parsers/helpers/param.js.map +1 -1
  332. package/parsers/parse-code-block-params.d.ts +1 -1
  333. package/parsers/parse-code-block-params.js +22 -16
  334. package/parsers/parse-code-block-params.js.map +1 -1
  335. package/parsers/parse-snippet.js +10 -10
  336. package/parsers/parse-snippet.js.map +1 -1
  337. package/schematics/collection.json +34 -23
  338. package/schematics/migrate-to-vite/analyze.d.ts +76 -0
  339. package/schematics/migrate-to-vite/analyze.js +816 -0
  340. package/schematics/migrate-to-vite/analyze.js.map +1 -0
  341. package/schematics/migrate-to-vite/index.d.ts +9 -0
  342. package/schematics/migrate-to-vite/index.js +585 -0
  343. package/schematics/migrate-to-vite/index.js.map +1 -0
  344. package/schematics/migrate-to-vite/legacy-folder.d.ts +84 -0
  345. package/schematics/migrate-to-vite/legacy-folder.js +340 -0
  346. package/schematics/migrate-to-vite/legacy-folder.js.map +1 -0
  347. package/schematics/migrate-to-vite/report.d.ts +32 -0
  348. package/schematics/migrate-to-vite/report.js +97 -0
  349. package/schematics/migrate-to-vite/report.js.map +1 -0
  350. package/schematics/migrate-to-vite/schema.d.ts +13 -0
  351. package/schematics/migrate-to-vite/schema.js +3 -0
  352. package/schematics/migrate-to-vite/schema.js.map +1 -0
  353. package/schematics/migrate-to-vite/schema.json +31 -0
  354. package/schematics/migrate-to-vite/setup/dependencies.d.ts +64 -0
  355. package/schematics/migrate-to-vite/setup/dependencies.js +183 -0
  356. package/schematics/migrate-to-vite/setup/dependencies.js.map +1 -0
  357. package/schematics/migrate-to-vite/setup/index.d.ts +6 -0
  358. package/schematics/migrate-to-vite/setup/index.js +13 -0
  359. package/schematics/migrate-to-vite/setup/index.js.map +1 -0
  360. package/schematics/migrate-to-vite/setup/json-file.d.ts +51 -0
  361. package/schematics/migrate-to-vite/setup/json-file.js +115 -0
  362. package/schematics/migrate-to-vite/setup/json-file.js.map +1 -0
  363. package/schematics/migrate-to-vite/setup/source.d.ts +30 -0
  364. package/schematics/migrate-to-vite/setup/source.js +202 -0
  365. package/schematics/migrate-to-vite/setup/source.js.map +1 -0
  366. package/schematics/migrate-to-vite/setup/targets.d.ts +51 -0
  367. package/schematics/migrate-to-vite/setup/targets.js +48 -0
  368. package/schematics/migrate-to-vite/setup/targets.js.map +1 -0
  369. package/schematics/migrate-to-vite/setup/vite-config.d.ts +100 -0
  370. package/schematics/migrate-to-vite/setup/vite-config.js +175 -0
  371. package/schematics/migrate-to-vite/setup/vite-config.js.map +1 -0
  372. package/schematics/migrate-to-vite/setup/workspace.d.ts +100 -0
  373. package/schematics/migrate-to-vite/setup/workspace.js +225 -0
  374. package/schematics/migrate-to-vite/setup/workspace.js.map +1 -0
  375. package/schematics/migrate-to-vite/state.d.ts +65 -0
  376. package/schematics/migrate-to-vite/state.js +92 -0
  377. package/schematics/migrate-to-vite/state.js.map +1 -0
  378. package/schematics/migrate-to-vite/testing/fixtures.d.ts +18 -0
  379. package/schematics/migrate-to-vite/testing/fixtures.js +279 -0
  380. package/schematics/migrate-to-vite/testing/fixtures.js.map +1 -0
  381. package/schematics/migrate-to-vite/update-note.d.ts +6 -0
  382. package/schematics/migrate-to-vite/update-note.js +23 -0
  383. package/schematics/migrate-to-vite/update-note.js.map +1 -0
  384. package/schematics/migration.json +5 -0
  385. package/schematics/migrations/standalone-pages/index.js +7 -6
  386. package/schematics/migrations/standalone-pages/index.js.map +1 -1
  387. package/schematics/vite-setup/index.d.ts +20 -0
  388. package/schematics/vite-setup/index.js +206 -0
  389. package/schematics/vite-setup/index.js.map +1 -0
  390. package/schematics/vite-setup/schema.d.ts +7 -0
  391. package/schematics/vite-setup/schema.js +3 -0
  392. package/schematics/vite-setup/schema.js.map +1 -0
  393. package/schematics/vite-setup/schema.json +19 -0
  394. package/scripts/restore-theme.js +9 -2
  395. package/templates/context.ts.nunj +3 -0
  396. package/templates/helpers/badge.html.nunj +1 -1
  397. package/templates/helpers/status.html.nunj +4 -8
  398. package/templates/page-wrapper.ts.nunj +24 -1
  399. package/templates/page.ts.nunj +25 -0
  400. package/templates/parts/page-tags.html.nunj +1 -1
  401. package/templates/playgrounds.ts.nunj +8 -9
  402. package/templates/routes.ts.nunj +6 -1
  403. package/templates/symbol/decorators.html.nunj +12 -0
  404. package/templates/symbol/details.html.nunj +62 -0
  405. package/templates/symbol/extended-by.html.nunj +17 -0
  406. package/templates/symbol/header.html.nunj +22 -0
  407. package/templates/symbol/members.html.nunj +301 -0
  408. package/templates/symbol/page.html.nunj +76 -0
  409. package/templates/symbol/see-also.html.nunj +16 -0
  410. package/engine/.cache/apps/ng-doc/docs/api-documentation/auto-generation/ng-doc.page.mjs +0 -20
  411. package/engine/.cache/apps/ng-doc/docs/api-documentation/documenting-declarations/ng-doc.page.mjs +0 -20
  412. package/engine/.cache/apps/ng-doc/docs/api-documentation/rendering-api/ng-doc.page.mjs +0 -19
  413. package/engine/.cache/apps/ng-doc/docs/customization/icons/ng-doc.page.mjs +0 -19
  414. package/engine/.cache/apps/ng-doc/docs/customization/layout/ng-doc.page.mjs +0 -19
  415. package/engine/.cache/apps/ng-doc/docs/customization/page-processors/ng-doc.page.mjs +0 -19
  416. package/engine/.cache/apps/ng-doc/docs/customization/page-skeleton/ng-doc.page.mjs +0 -19
  417. package/engine/.cache/apps/ng-doc/docs/customization/search/ng-doc.page.mjs +0 -19
  418. package/engine/.cache/apps/ng-doc/docs/customization/themes/ng-doc.page.mjs +0 -19
  419. package/engine/.cache/apps/ng-doc/docs/develop/ng-doc.page.mjs +0 -36
  420. package/engine/.cache/apps/ng-doc/docs/getting-started/configuration/ng-doc.page.mjs +0 -19
  421. package/engine/.cache/apps/ng-doc/docs/getting-started/installation/ng-doc.page.mjs +0 -19
  422. package/engine/.cache/apps/ng-doc/docs/getting-started/migrations/ng-doc.page.mjs +0 -18
  423. package/engine/.cache/apps/ng-doc/docs/getting-started/ssr/ng-doc.page.mjs +0 -19
  424. package/engine/.cache/apps/ng-doc/docs/getting-started/what-is-ng-doc/ng-doc.page.mjs +0 -19
  425. package/engine/.cache/apps/ng-doc/docs/ng-doc.api.mjs +0 -42
  426. package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.mjs +0 -18
  427. package/engine/.cache/apps/ng-doc/docs/recipes/performance/ng-doc.page.mjs +0 -19
  428. package/engine/.cache/apps/ng-doc/docs/writing-content/blockquotes/ng-doc.page.mjs +0 -18
  429. package/engine/.cache/apps/ng-doc/docs/writing-content/code-blocks/ng-doc.page.mjs +0 -18
  430. package/engine/.cache/apps/ng-doc/docs/writing-content/demo-and-demo-pane/ng-doc.page.mjs +0 -19
  431. package/engine/.cache/apps/ng-doc/docs/writing-content/images-videos-and-embeds/ng-doc.page.mjs +0 -18
  432. package/engine/.cache/apps/ng-doc/docs/writing-content/keywords/ng-doc.page.mjs +0 -17
  433. package/engine/.cache/apps/ng-doc/docs/writing-content/mermaid-diagrams/ng-doc.page.mjs +0 -18
  434. package/engine/.cache/apps/ng-doc/docs/writing-content/nunjucks/ng-doc.page.mjs +0 -18
  435. package/engine/.cache/apps/ng-doc/docs/writing-content/pages-and-categories/ng-doc.page.mjs +0 -18
  436. package/engine/.cache/apps/ng-doc/docs/writing-content/playground/ng-doc.page.mjs +0 -33
  437. package/engine/core/stores/entry-status.d.ts +0 -23
  438. package/engine/core/stores/entry-status.js +0 -36
  439. package/engine/core/stores/entry-status.js.map +0 -1
@@ -0,0 +1,6 @@
1
+ export interface OutputLease {
2
+ admit(outputRoot: string): void;
3
+ seal(outputRoot: string): void;
4
+ dispose(): void;
5
+ }
6
+ export declare function acquireOutputLease(identity: string, defaultOutputRoot: string): OutputLease;
@@ -0,0 +1,119 @@
1
+ import type { ViteDevServer } from 'vite';
2
+ import type { BuildEvent, BuildResult, BuildSession, PublishedGeneratorConfiguration, WatchHandle } from '../contracts.js';
3
+ import { GeneratedAssetInventory } from './assets.js';
4
+ import { type HostUpdateTicket } from './host-updates.js';
5
+ import type { OutputLease } from './lease.js';
6
+ import { type ViteFileEventSource } from './vite-event-source.js';
7
+ export declare class ViteAdapterLifecycle {
8
+ private readonly lease;
9
+ private readonly progress?;
10
+ readonly assets: GeneratedAssetInventory;
11
+ configuration?: PublishedGeneratorConfiguration;
12
+ private generationFailure?;
13
+ get failure(): Error | undefined;
14
+ private session?;
15
+ private watch?;
16
+ private source?;
17
+ private server?;
18
+ private registration;
19
+ private disposal?;
20
+ private hostFailure?;
21
+ private disposed;
22
+ private latestStarted;
23
+ private readonly hostUpdates;
24
+ /**
25
+ * The snapshot of the newest committed success: the generated modules on disk import the
26
+ * description modules it read. `read` is computed on demand, once per snapshot.
27
+ */
28
+ private committed?;
29
+ /**
30
+ * @param progress NgDoc's terminal progress: `interrupt` clears its live line before the adapter
31
+ * logs, and `release` follows each watch result the adapter has logged (or skipped), so the
32
+ * result's progress line comes after the diagnostics it counts. A result the adapter failed to
33
+ * publish or reconcile is released as failed, so its line is the failure line.
34
+ */
35
+ constructor(lease: OutputLease, progress?: {
36
+ interrupt(): void;
37
+ release(generation: number, failed?: boolean): void;
38
+ } | undefined);
39
+ attachSession(session: BuildSession): void;
40
+ attachServer(server: ViteDevServer, source: ViteFileEventSource): void;
41
+ attachWatch(watch: WatchHandle): void;
42
+ acceptInitial(result: BuildResult): Extract<BuildResult, {
43
+ status: 'success';
44
+ }>;
45
+ /** Runs synchronously inside the candidate committer, before it mutates published output. */
46
+ admit(configuration: Readonly<PublishedGeneratorConfiguration>): void;
47
+ publish(result: Extract<BuildResult, {
48
+ status: 'success';
49
+ }>, configuration: PublishedGeneratorConfiguration): void;
50
+ /**
51
+ * Records a committed success (published or not), unless a newer one is recorded already.
52
+ * @param result The committed result.
53
+ */
54
+ private committedResult;
55
+ /**
56
+ * Whether the newest committed generation read the description module `file`, so that a
57
+ * generated module (its page shell, `routes.ts`) may import it.
58
+ * @param file An absolute path.
59
+ */
60
+ private committedDescriptionModule;
61
+ hostUpdateStarted(file: string, type: 'create' | 'update' | 'delete', read: () => string | Promise<string>): HostUpdateTicket;
62
+ hostUpdateCompleted(ticket: HostUpdateTicket): Promise<void>;
63
+ /** The adapter reloads for this settled hot update itself. */
64
+ hostUpdateAnnounced(read: object): boolean;
65
+ /** See {@link HostUpdateCoordinator.compilerCompanions}. */
66
+ hostUpdateCompanions(ticket: HostUpdateTicket): string[];
67
+ /**
68
+ * Whether the Angular compiler leaves the add or unlink event of `file` to the pass of the
69
+ * generation it belongs to (see `composeAngularPlugins`):
70
+ *
71
+ * - a generated output: a commit creates or deletes it, and rewrites the module that imports it
72
+ * (`routes.ts`, a page shell) in the same commit, whose update takes the generation's pass;
73
+ * - a description module (`ng-doc.page.ts`, `ng-doc.category.ts`, `ng-doc.api.ts`) the
74
+ * generator watches, unless the newest committed generation read it and it exists. A new one
75
+ * is imported by no generated module before its generation commits, and that commit rewrites
76
+ * `routes.ts`; a deleted one cannot be compiled, and the commit that drops it rewrites the
77
+ * modules that imported it. An existing one the committed generation read is in the program:
78
+ * its page shell imports it (`page.ts.nunj`), and an add event that replaced it (an editor's
79
+ * atomic save, a checkout) may change it without changing any generated module, so its own
80
+ * pass compiles it as before. The file is checked when the event arrives: a file deleted
81
+ * again since is claimed, and one restored since compiles, either way from its current bytes.
82
+ *
83
+ * A claimed file is not compiled on its own: it joins the next pass, which would otherwise
84
+ * follow the one its event starts. If its generation fails or rewrites no generated module, the
85
+ * file still waits for that next pass: a new one is imported by no generated module, and a
86
+ * deleted one has no bytes left to serve.
87
+ * @param file The added or deleted file, as Vite's watcher reports it.
88
+ */
89
+ hostClaimsFilesystemChange(file: string): boolean;
90
+ /** See {@link HostUpdateCoordinator.diagnosticMark}. */
91
+ hostDiagnosticMark(): number;
92
+ initialCompilationInventory(): import("./host-updates.js").InitialCompilationInventory;
93
+ hostUpdateAcknowledged(ticket: HostUpdateTicket, resourceWitness?: boolean, compilerPass?: boolean, recoverBefore?: number): Promise<void>;
94
+ hostUpdateDiagnostic(ticket: HostUpdateTicket, error: Error): void;
95
+ hostUpdateSettled(ticket: HostUpdateTicket): Promise<void>;
96
+ hostUpdateCommitted(ticket: HostUpdateTicket): Promise<void>;
97
+ hostUpdateFailed(error: Error): void;
98
+ observer(configurationOf: (result: BuildResult) => PublishedGeneratorConfiguration | undefined): (event: BuildEvent) => void;
99
+ settled(): Promise<void>;
100
+ dispose(): Promise<void>;
101
+ /**
102
+ * The generation just published recorded inputs that the watcher did not cover while it read
103
+ * them. Once their watches are attached, only those paths are re-observed against what the
104
+ * session last observed, and a difference becomes an ordinary filesystem change. So the
105
+ * retained program is kept, and no generation, which would also hold back this generation's
106
+ * reload, runs when nothing changed. After a rejection overflow the rejected paths are unknown,
107
+ * so the session rescans: its next generation re-observes every committed input, as after a
108
+ * lossy watcher, and takes the full commit. Neither call waits for a generation; its result
109
+ * arrives through the observer like any other.
110
+ */
111
+ private reconcile;
112
+ private fail;
113
+ private report;
114
+ private isCurrent;
115
+ private log;
116
+ private interrupt;
117
+ private logAll;
118
+ private disposeAll;
119
+ }
@@ -0,0 +1,2 @@
1
+ /** The content type of a file by its extension; `application/octet-stream` when unknown. */
2
+ export declare function contentType(file: string): string;
@@ -0,0 +1,44 @@
1
+ import { type FSWatcher } from 'node:fs';
2
+ import type { FileChange } from '../contracts.js';
3
+ /**
4
+ * At most this many directories are watched for missing inputs. The inputs are grouped by their
5
+ * nearest existing directory, so thousands of missing paths (module resolution and configuration
6
+ * lookups) cost one watch per directory. Inputs beyond it are reported to the owner, which keeps
7
+ * them native and warns.
8
+ */
9
+ export declare const MAX_MISSING_PATH_DIRECTORIES = 1024;
10
+ type Watch = (directory: string, listener: (event: string, name: string | null) => void) => FSWatcher;
11
+ /**
12
+ * Reports the creation, change and removal of inputs that chokidar's `fs.watch` backend cannot
13
+ * report (see `watchesMissingPaths` in `vite-event-source.ts`). Each input is watched through a
14
+ * non-recursive watch of its nearest existing directory, which one watch shares among all the
15
+ * inputs below it. An event there re-reads the state of the inputs it names (all of them when the
16
+ * platform names none) and reports each one whose state changed. A new directory on an input's
17
+ * path moves the input to it; a removed one moves it back up.
18
+ */
19
+ export declare class MissingPathWatcher {
20
+ private readonly emit;
21
+ private readonly maxDirectories;
22
+ private readonly watch;
23
+ private readonly states;
24
+ private readonly anchors;
25
+ private readonly members;
26
+ private readonly handles;
27
+ private disposed;
28
+ constructor(emit: (change: FileChange) => void, maxDirectories?: number, watch?: Watch);
29
+ get size(): number;
30
+ /** The number of watched directories. */
31
+ get directories(): number;
32
+ has(target: string): boolean;
33
+ /**
34
+ * Starts watching `targets` and returns the ones that did not fit in the directory budget. The
35
+ * state of each is taken now, so a change after this call is reported.
36
+ */
37
+ add(targets: readonly string[]): string[];
38
+ dispose(): void;
39
+ private attach;
40
+ private detach;
41
+ private changed;
42
+ private refresh;
43
+ }
44
+ export {};
@@ -0,0 +1,87 @@
1
+ import type { Alias, Plugin, UserConfig } from 'vite';
2
+ import { type GeneratorBootstrapOptions } from '../bootstrap/index.js';
3
+ import type { PublishedGeneratorConfiguration } from '../contracts.js';
4
+ import { type ProgressOptionSetting } from '../progress/settings.js';
5
+ export declare const DEFAULT_GENERATED_ALIAS = "@ng-doc/generated";
6
+ export declare const GENERATED_STAGE_IGNORE = "**/.ng-doc-stage-*/**";
7
+ export interface NgDocVitePluginOptions {
8
+ generator: GeneratorBootstrapOptions;
9
+ /**
10
+ * Confirms that the following Analog Angular plugin is configured with `liveReload: true`.
11
+ * The completion companion relies on Analog awaiting TypeScript compilation in that mode.
12
+ */
13
+ analogLiveReload: true;
14
+ /** The complete array from createNgDocAngularPlugins in the built generator/vite/angular entry. */
15
+ angularPlugins: readonly Plugin[];
16
+ /** Absolute path to a real, always-present Angular application component. */
17
+ angularComponentProbe: string;
18
+ generatedAlias?: string;
19
+ maxExternalWatchTargets?: number;
20
+ /** Explicit browser module specifiers for non-default published theme names. */
21
+ themeModules?: Readonly<Record<string, string>>;
22
+ /**
23
+ * Generation progress in the terminal: `auto` (default), `live`, `plain`, `verbose`, `summary`
24
+ * or `off`. `NGDOC_PROGRESS` overrides it; Vite `logLevel` `warn`, `error` or `silent` turns
25
+ * progress off unless it or the environment variable asks for it.
26
+ */
27
+ progress?: ProgressOptionSetting;
28
+ }
29
+ export interface ResolvedNgDocViteOptions {
30
+ generator: GeneratorBootstrapOptions;
31
+ generatedAlias: string;
32
+ maxExternalWatchTargets: number;
33
+ themeModules: Readonly<Record<string, string>>;
34
+ leaseIdentity: string;
35
+ angularPlugins: readonly Plugin[];
36
+ angularComponentProbe: string;
37
+ progress?: ProgressOptionSetting;
38
+ }
39
+ export declare function resolveOptions(options: NgDocVitePluginOptions): ResolvedNgDocViteOptions;
40
+ /**
41
+ * The generator options of one session with its build tags (`onlyForTags` of pages and
42
+ * categories). Explicit `generator.discovery.tags` win; otherwise the only tag is the Vite mode:
43
+ * `development` for the dev server and `production` for `vite build`, unless `--mode` names
44
+ * another one.
45
+ */
46
+ export declare function generatorWithTags(generator: GeneratorBootstrapOptions, viteMode: string): GeneratorBootstrapOptions;
47
+ export declare function generatedAlias(options: ResolvedNgDocViteOptions, configuration: PublishedGeneratorConfiguration): Alias;
48
+ export declare function themeImports(options: ResolvedNgDocViteOptions, configuration?: PublishedGeneratorConfiguration): string[];
49
+ /**
50
+ * The generator cache is written only by the committer and read only by the compiler; Vite never
51
+ * serves or imports it, and the event source already drops owned-root events. Watching it only
52
+ * costs a filesystem event, a directory scan and hot-update hooks per cache write.
53
+ *
54
+ * It is ignored only while it cannot contain anything Vite must observe: not the Vite root, the
55
+ * workspace, the docs or tsconfig directory, and not the output root. The config-time defaults
56
+ * are checked first; the resolved Vite root (`confirmRoot`) and the published configuration
57
+ * (`admit`, before the committer writes) are re-checked later. A failed check fails open: the
58
+ * matcher stops ignoring anything, and the caller re-adds the cache root to the watcher.
59
+ */
60
+ export declare class CacheRootWatchIgnore {
61
+ private readonly options;
62
+ readonly cacheRoot?: string;
63
+ private active;
64
+ constructor(options: ResolvedNgDocViteOptions);
65
+ get ignoring(): boolean;
66
+ /** The watcher matcher for a Vite root, or undefined when the cache must stay watched. */
67
+ matcher(viteRoot: string): ((file: string) => boolean) | undefined;
68
+ /** Re-checks the finally resolved Vite root (a later plugin can change `root`). */
69
+ confirmRoot(viteRoot: unknown): boolean;
70
+ /**
71
+ * Re-checks the published configuration before its first physical write. Returns true when
72
+ * this call stopped ignoring the cache root.
73
+ */
74
+ admit(configuration: Readonly<PublishedGeneratorConfiguration>): boolean;
75
+ private guard;
76
+ }
77
+ /**
78
+ * IDE and OS metadata that NgDoc never reads but editors rewrite constantly: the workspace root's
79
+ * JetBrains `.idea/` directory and macOS Finder `.DS_Store` files. NgDoc's recorded inputs are
80
+ * TypeScript sources, `ng-doc.{page,category,api}.ts` descriptions and the files they include,
81
+ * never these. It stays off when a configured root (Vite root, docs, output, tsconfig directory)
82
+ * lies inside that `.idea/` directory. `.vscode/` is not ignored: VS Code keeps its frequently
83
+ * written state outside the workspace, so ignoring it would save nothing.
84
+ */
85
+ export declare function metadataWatchIgnore(options: ResolvedNgDocViteOptions, viteRoot: string): ((file: string) => boolean) | undefined;
86
+ export declare function staticViteConfig(options: ResolvedNgDocViteOptions, viteRoot?: string, cacheWatch?: CacheRootWatchIgnore): UserConfig;
87
+ export declare function assertThemeModules(options: ResolvedNgDocViteOptions, configuration: PublishedGeneratorConfiguration): void;
@@ -0,0 +1,41 @@
1
+ import type { FSWatcher } from 'vite';
2
+ /**
3
+ * How long the development host waits for the watcher to list every directory of the output root
4
+ * before its watch starts. After this the watch starts anyway, with a warning: an output the
5
+ * watcher does not list is never reported.
6
+ */
7
+ export declare const OUTPUT_WATCH_ATTACH_TIMEOUT_MS = 10000;
8
+ /**
9
+ * Makes the Vite watcher report every change of the generated output.
10
+ *
11
+ * The host update coordinator expects a Vite hot update for every generated module a commit
12
+ * creates, rewrites or deletes, and settles an edit only once they all arrived. Vite watches its
13
+ * root recursively, but a file outside it only once Vite has served it. An output root outside
14
+ * the Vite root (the documentation site's `apps/ng-doc/src` root with its output in `ng-doc/`)
15
+ * therefore reported only the modules the browser had loaded: a new page
16
+ * tab, a new page or an edit of a page nobody opened never produced its hot update, and the edit
17
+ * failed with `NGDOC_VITE_HOST_TIMEOUT`. Such a root is added to the watcher here, and startup
18
+ * waits until the output is watched, because chokidar ignores initial files: a file written while
19
+ * it still scans a directory would be taken as initial and never reported.
20
+ *
21
+ * chokidar lists a directory in `getWatched()` before it has read it, and its `fs.watch` backend
22
+ * (Linux, Windows) attaches the directory's native watch only after that read. So the output
23
+ * counts as watched once every directory of the published output (`files`, relative to the root)
24
+ * lists each of its published entries (the read is done), and `WATCH_ATTACH_GRACE_MS` later.
25
+ *
26
+ * An output root inside the Vite root is watched by Vite's recursive watch, but the initial commit
27
+ * ran while chokidar still scanned that root. With the `fs.watch` backend a file published between
28
+ * a directory's read and its watch is neither listed nor ever reported (only FSEvents, on macOS,
29
+ * watches the whole tree at once). Each published directory whose entries the watcher does not all
30
+ * list yet is therefore added again: chokidar reads it once more and takes what it finds as
31
+ * initial (or, while a read of it still runs, reads it again after that one), and the same wait
32
+ * follows.
33
+ *
34
+ * Resolves `watched` once the output is watched (at once when the watcher cannot list what it
35
+ * watches), `timeout` after `timeoutMs` (the caller warns), and `disposed` as soon as `disposed()`
36
+ * is true.
37
+ */
38
+ export declare function watchOutputRoot(watcher: FSWatcher, viteRoot: string, outputRoot: string, files: readonly string[], options?: {
39
+ timeoutMs?: number;
40
+ disposed?: () => boolean;
41
+ }): Promise<'watched' | 'timeout' | 'disposed'>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * A Windows path with an upper-case drive letter. The drive letter is case-insensitive, and its
3
+ * spellings meet in the Vite host: the engine publishes realpaths (`C:/…`), while Vite's root and
4
+ * watcher follow the working directory as the shell reported it (a terminal may give `c:\…`).
5
+ * Other paths are returned unchanged, so this is a no-op outside Windows.
6
+ */
7
+ export declare function canonicalDrive(file: string): string;
@@ -0,0 +1,3 @@
1
+ import type { Plugin } from 'vite';
2
+ import { type NgDocVitePluginOptions } from './options.js';
3
+ export declare function createPlugin(options: NgDocVitePluginOptions): Plugin[];