@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,116 @@
1
+ import type { ArtifactSnapshot, CompilationResult, Dependency, Diagnostic, RebuildReason } from '../contracts.js';
2
+ /**
3
+ * Per-unit records and the fold.
4
+ *
5
+ * Every phase of a compile writes what it emits (diagnostics and dependencies) into records
6
+ * instead of shared accumulators, and every exit builds its `CompilationResult` with `fold`. The
7
+ * fold replays the records phase-major, units in plan order, which is exactly the order in which
8
+ * the full path runs its phases:
9
+ *
10
+ * 1. discovery, semantic, setup (cache restore, output templates);
11
+ * 2. per unit: describe (`enumerateApi` on the entry's first unit, entry-doc, `describeGuide`,
12
+ * `describe`), then the unit's dependency list;
13
+ * 3. plan (descriptor duplicates);
14
+ * 4. per unit: render/demo steps, then the unit's dependency list;
15
+ * 5. keywords (duplicates, index completeness);
16
+ * 6. per unit: link; 7. per unit: assembly;
17
+ * 8. aggregate, scope validation, and a failure of the whole attempt.
18
+ *
19
+ * Dependencies enter one map in that order, last write wins, and two content reads of one path
20
+ * with different digests are recorded as conflicting.
21
+ *
22
+ * A render step records the projection the full path used for it: `fresh` when it rendered,
23
+ * emitting its diagnostics and raw dependencies; `reuse` when its reuse predicate held, emitting
24
+ * nothing and adding only the compacted IR dependencies to the unit. The unit's dependency list
25
+ * after render is derived from its describe list and the steps' projections, so a later slice can
26
+ * replay a retained unit by choosing its projection. Describe and link are replayed as recorded
27
+ * (the full path runs them for every unit), and so is assembly.
28
+ *
29
+ * Two facts a replay that chooses projections for retained units must not lose:
30
+ * - a `none` step is not necessarily empty: a descriptor without a current request settles as
31
+ * `none` with the error `COMPILATION_CONTENT_DESCRIPTOR_REQUEST` (render.ts), and the fold replays
32
+ * every step's `emitted`, whatever its projection;
33
+ * - an assembly is fresh-equivalent unless the assembly memo supplied it: the unit record says
34
+ * which (`UnitRecord.assembly`). A memoised assembly emits no diagnostics (a unit with assembly
35
+ * diagnostics is never memoised), so today replaying it as recorded is exact.
36
+ */
37
+ export interface Contribution {
38
+ diagnostics: Diagnostic[];
39
+ dependencies: Dependency[];
40
+ }
41
+ export type GlobalPhase = 'discovery' | 'semantic' | 'setup' | 'plan' | 'keywords' | 'aggregate' | 'validate' | 'failure';
42
+ /** One descriptor, or the demo-assets IR (`<unit>:demos`), of a unit's render phase. */
43
+ export interface RenderStep {
44
+ id: string;
45
+ /**
46
+ * `fresh`: rendered in this generation; `reuse`: the previous IR; `none`: no IR (a descriptor
47
+ * without a current request). `none` may still carry an error in `emitted`
48
+ * (`COMPILATION_CONTENT_DESCRIPTOR_REQUEST`), which the fold replays like any other.
49
+ */
50
+ projection: 'fresh' | 'reuse' | 'none';
51
+ /** Emitted into the generation: diagnostics and raw dependencies (empty for `reuse`). */
52
+ emitted: Contribution;
53
+ /** Compacted dependencies the step adds to the unit's own dependency list. */
54
+ unitDependencies: Dependency[];
55
+ }
56
+ export interface UnitRecord {
57
+ describe: Contribution[];
58
+ /** The unit's dependency list once describe completed. */
59
+ described?: Dependency[];
60
+ render: RenderStep[];
61
+ /** Whether the unit's render phase completed (its dependency list was then emitted). */
62
+ rendered: boolean;
63
+ link: Contribution[];
64
+ assemble: Contribution[];
65
+ /**
66
+ * How the assembly phase obtained the unit's outputs, routes and API list: `memo` when the
67
+ * assembly memo supplied the previous page (the reuse projection: nothing is emitted), `fresh`
68
+ * when it was assembled in this generation. Unset until the assembly phase reaches the unit.
69
+ */
70
+ assembly?: 'memo' | 'fresh';
71
+ }
72
+ type Tracer = (records: GenerationRecords) => void;
73
+ /**
74
+ * Tests only: `sink` receives every new `GenerationRecords`, which then also keeps a journal of
75
+ * its contributions in the order the phases emitted them (see `foldContributions`).
76
+ */
77
+ export declare function traceRecords(sink: Tracer | undefined): void;
78
+ export declare class GenerationRecords {
79
+ readonly units: UnitRecord[];
80
+ readonly reasons: RebuildReason[];
81
+ /** Tests only (`traceRecords`): every contribution in emission order. */
82
+ readonly journal?: Contribution[];
83
+ private readonly globals;
84
+ private readonly errorStages;
85
+ constructor();
86
+ /** Whether any recorded diagnostic is an error. */
87
+ failed(): boolean;
88
+ global(phase: GlobalPhase, value: Contribution): void;
89
+ globalContributions(phase: GlobalPhase): readonly Contribution[];
90
+ /** Opens the record of the next unit in plan order. */
91
+ unit(): UnitRecord;
92
+ /**
93
+ * Appends the record of a unit the targeted path replays instead of describing it again: what
94
+ * the full path would record for it, built from the retained build of a successful generation
95
+ * (so it holds no error). Its phases that still run in this generation add to it as usual.
96
+ */
97
+ adopt(record: UnitRecord): void;
98
+ describe(record: UnitRecord, value: Contribution): void;
99
+ described(record: UnitRecord, dependencies: Dependency[]): void;
100
+ /** Opens the render step of a descriptor (or the demo-assets IR) with no IR yet. */
101
+ renderStep(record: UnitRecord, id: string): RenderStep;
102
+ /** What the step emitted, and the projection it took. */
103
+ settle(step: RenderStep, projection: RenderStep['projection'], emitted: Contribution, unitDependencies?: Dependency[]): void;
104
+ /** `dependencies` is the unit's actual list; the fold derives it from the steps. */
105
+ rendered(record: UnitRecord, dependencies: Dependency[]): void;
106
+ link(record: UnitRecord, value: Contribution): void;
107
+ assemble(record: UnitRecord, value: Contribution, assembly?: 'memo' | 'fresh'): void;
108
+ reason(...values: RebuildReason[]): void;
109
+ private note;
110
+ }
111
+ /** Replays the records phase-major (see above) into the generation's result. */
112
+ export declare function fold(records: GenerationRecords, candidate?: ArtifactSnapshot): CompilationResult;
113
+ /** Diagnostics in order, and the generation's dependency map (conflicting digests), sorted. */
114
+ export declare function foldContributions(contributions: readonly Contribution[]): Contribution;
115
+ export declare function mergeReasons(values: RebuildReason[]): RebuildReason[];
116
+ export {};
@@ -0,0 +1,111 @@
1
+ import type { CompilationResult, CompilationService, DiscoveryRequest } from '../contracts.js';
2
+ import { type DiscoveryOptions } from '../discovery/index.js';
3
+ export { disposeHtmlPool as disposeRenderThreads, keepHtmlPool as keepRenderThreads, } from '../content/html-pool.js';
4
+ export { type DryRunRecord, type DryRunReport, resetTargetedDryRun, TARGETED_MISMATCH, TARGETED_REBUILD_TRACE_ENV, targetedDryRun, } from './dry-run.js';
5
+ export { type IncrementalRetentionReport, INCREMENTAL_PROGRAM_ENV, INCREMENTAL_SKIP_ENV, incrementalRetention, resetIncrementalRetention, } from './retention.js';
6
+ /** JSON factory options can cross the disposable compilation worker boundary. */
7
+ export interface CompilationOptions {
8
+ projectId: string;
9
+ workspaceRoot: string;
10
+ configFile?: string;
11
+ defaults: DiscoveryRequest['defaults'];
12
+ discovery?: DiscoveryOptions;
13
+ /** Explicit template location for bundled hosts; defaults to packaged sibling templates. */
14
+ templateRoot?: string;
15
+ /** Host/package supplies its exact version and toolchain provenance. */
16
+ compilerVersion: string;
17
+ toolchainDigest: string;
18
+ /**
19
+ * Exact incremental reuse (restricted `whyRebuilt` index, link/assembly/revision reuse and
20
+ * unchanged cache-entry skips) for development generations. Production generations never
21
+ * use it. Defaults to on; `false` is the reference path that recomputes everything, kept for
22
+ * differential verification.
23
+ *
24
+ * It also governs the retained-program skip: a development generation that is not a one-shot
25
+ * build (`context.lifetime !== 'generation'`) keeps its TypeScript Project for the next
26
+ * generation of the same runtime, which skips `synchronize` when nothing the program observed
27
+ * changed. `false` turns both off; {@link INCREMENTAL_SKIP_ENV} turns off only the skip.
28
+ */
29
+ incrementalReuse?: boolean;
30
+ /**
31
+ * The targeted rebuild (`compiler/targeted.ts`): a development watch generation whose changes
32
+ * are content, page or program edits compiles only the units they reach and replays the others
33
+ * from the retained build of its base; its result is byte-identical to the full generation's.
34
+ * On by default (`true`); `false` is the full path exactly, with nothing retained for it.
35
+ * `verify` also compiles every targeted generation in full and compares the two results byte
36
+ * for byte; on a difference it publishes the full one and reports
37
+ * `COMPILATION_TARGETED_MISMATCH` (the report of `targetedDryRun()`, the trace and stderr).
38
+ * It also reports, per generation, the units the full generation changed outside the targeted
39
+ * closure (misses).
40
+ * Resolved by bootstrap from `NGDOC_TARGETED_REBUILD` (`bootstrap/index.ts`). Only generations
41
+ * that retain a program (development, not one-shot, `incrementalReuse` on) can be targeted.
42
+ */
43
+ targetedRebuild?: boolean | 'verify';
44
+ /**
45
+ * Scoped semantic invalidation (`compiler/semantic-closure.ts`): development generations of a
46
+ * long-lived runtime record one `semantic-closure` per semantic query instead of the global
47
+ * `semantic-reference`, so an API edit re-renders only the IRs whose closure changed. On by
48
+ * default; `false`, like `NGDOC_SCOPED_SEMANTIC=0`, records the global reference. `verify` (or
49
+ * the environment's `verify`) also renders every IR reused on its closure and reports
50
+ * `COMPILATION_SCOPED_SEMANTIC_MISMATCH` on a difference.
51
+ */
52
+ scopedSemantic?: boolean | 'verify';
53
+ /**
54
+ * The incremental program (`semantic/program-retention.ts`): a development generation that
55
+ * reuses the retained program patches the content edits of its program files into it instead of
56
+ * synchronizing a new one. On by default; `false`, like `NGDOC_INCREMENTAL_PROGRAM=0`,
57
+ * synchronizes anew after any program-file edit. `verify` (or the environment's `verify`) also
58
+ * synchronizes a cold program after every patch and uses it, with a `SEMANTIC_PATCH_MISMATCH`
59
+ * warning, when the two differ.
60
+ */
61
+ incrementalProgram?: boolean | 'verify';
62
+ /**
63
+ * The fast start (`compiler/fast-start.ts`): a development start whose recorded inputs all
64
+ * re-read identically publishes the recorded candidate without compiling, and a start after
65
+ * edits reuses the cache index's links and assemblies. On by default; `false`, like
66
+ * `NGDOC_FAST_START=0`, compiles every start. `verify` (or the environment's `verify`) also
67
+ * compiles a restored start in full, publishes that result and reports
68
+ * `COMPILATION_FAST_START_MISMATCH` when the candidates differ.
69
+ */
70
+ fastStart?: boolean | 'verify';
71
+ /**
72
+ * The cache of highlighted code blocks (`content/highlight-cache.ts`): code is highlighted by one
73
+ * Shiki highlighter per runtime, and a block whose text, language, meta, themes and Shiki release
74
+ * were highlighted before reuses that result. Development generations with the artifact cache
75
+ * keep it beside the cache; production, `cache: false` and the reference path
76
+ * (`incrementalReuse: false`, which highlights every block) keep none. On by default; `false`,
77
+ * like `NGDOC_HIGHLIGHT_CACHE=0`, highlights every block with the plain plugin. `verify` (or the
78
+ * environment's `verify`) also highlights every hit again, uses that result and reports
79
+ * `CONTENT_HIGHLIGHT_CACHE_MISMATCH` when it differs.
80
+ */
81
+ highlightCache?: boolean | 'verify';
82
+ /**
83
+ * Parallel rendering (`content/html-pool.ts`): a large generation runs the HTML pipeline of its
84
+ * content (highlighting, anchors, keyword links, search records) on render threads, while the
85
+ * main thread runs every front (files, templates, semantic queries) in plan order and settles
86
+ * every result in plan order; the output is the same. Never on the targeted path or the
87
+ * reference path (`incrementalReuse: false`). On by default; `false`, like
88
+ * `NGDOC_PARALLEL_RENDER=0`, runs everything in the main thread. `verify` (or the environment's
89
+ * `verify`) also runs every thread task in the main thread, uses that result and reports
90
+ * `CONTENT_PARALLEL_MISMATCH` when it differs.
91
+ */
92
+ parallelRender?: boolean | 'verify';
93
+ /**
94
+ * The number of render threads (`parallelRender`). Defaults to the available parallelism less
95
+ * two (the main thread and Prettier's), at most 4; `0` uses none.
96
+ */
97
+ renderThreads?: number;
98
+ }
99
+ /** A compiler service that can say which of its results came from a targeted generation. */
100
+ export interface TargetedCompilationService extends CompilationService {
101
+ targetedResult(result: CompilationResult): boolean;
102
+ }
103
+ /**
104
+ * Each attempt constructs a complete immutable candidate; publication belongs to the session
105
+ * and the committer.
106
+ *
107
+ * A compile runs its phases in order (discovery, semantic, setup, describe, plan, render, keywords,
108
+ * link, assembly, aggregate, validation): each phase records what it emits per unit or globally,
109
+ * and every exit folds those records into its result (`./fold`).
110
+ */
111
+ export declare function createCompilationService(options: CompilationOptions): TargetedCompilationService;