@ng-doc/builder 22.0.0-beta.2 → 22.1.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 (441) hide show
  1. package/README.md +19 -28
  2. package/application/index.js +2 -2
  3. package/application/index.js.map +1 -1
  4. package/application/schema.json +1 -2
  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/builders/api-list/api-list-component.builder.js +4 -4
  14. package/engine/builders/api-list/api-list-component.builder.js.map +1 -1
  15. package/engine/builders/api-list/api-page-template.builder.js +2 -2
  16. package/engine/builders/api-list/api-page-template.builder.js.map +1 -1
  17. package/engine/builders/global/keywords.builder.d.ts +1 -4
  18. package/engine/builders/global/keywords.builder.js +5 -9
  19. package/engine/builders/global/keywords.builder.js.map +1 -1
  20. package/engine/builders/global/search-indexes.builder.js +1 -1
  21. package/engine/builders/global/search-indexes.builder.js.map +1 -1
  22. package/engine/builders/helpers/create-entry-metadata.js +2 -1
  23. package/engine/builders/helpers/create-entry-metadata.js.map +1 -1
  24. package/engine/builders/helpers/create-import-path.js.map +1 -1
  25. package/engine/builders/helpers/get-entry-relative-path.js.map +1 -1
  26. package/engine/builders/helpers/get-playground-metadata.js +7 -1
  27. package/engine/builders/helpers/get-playground-metadata.js.map +1 -1
  28. package/engine/builders/page/demo-assets.builder.js +10 -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 +5 -3
  33. package/engine/builders/shared/content.builder.js.map +1 -1
  34. package/engine/builders/shared/page-component.builder.js +16 -6
  35. package/engine/builders/shared/page-component.builder.js.map +1 -1
  36. package/engine/builders/shared/page-wrapper.builder.js +10 -5
  37. package/engine/builders/shared/page-wrapper.builder.js.map +1 -1
  38. package/engine/core/operators/distinct-pending.js.map +1 -1
  39. package/engine/core/operators/factory.js +1 -4
  40. package/engine/core/operators/factory.js.map +1 -1
  41. package/engine/core/operators/merge-factory.js +19 -17
  42. package/engine/core/operators/merge-factory.js.map +1 -1
  43. package/engine/core/operators/when-builders-done.js.map +1 -1
  44. package/engine/core/triggers/on-dependencies-change.d.ts +1 -1
  45. package/engine/core/triggers/on-dependencies-change.js +2 -2
  46. package/engine/core/triggers/on-dependencies-change.js.map +1 -1
  47. package/generator/artifacts/index.d.ts +317 -0
  48. package/generator/bootstrap/bin.d.ts +18 -0
  49. package/generator/bootstrap/bin.js +7298 -0
  50. package/generator/bootstrap/candidate-output-committer.d.ts +12 -0
  51. package/generator/bootstrap/cli.d.ts +42 -0
  52. package/generator/bootstrap/cli.js +7147 -0
  53. package/generator/bootstrap/constants.d.ts +4 -0
  54. package/generator/bootstrap/index.d.ts +111 -0
  55. package/generator/bootstrap/index.js +5034 -0
  56. package/generator/bootstrap/prerender-command.d.ts +31 -0
  57. package/generator/bootstrap/process-tree.d.ts +49 -0
  58. package/generator/build-metafile.json +12009 -0
  59. package/generator/build-provenance.json +121 -0
  60. package/generator/compiler/assemble.d.ts +41 -0
  61. package/generator/compiler/classify.d.ts +161 -0
  62. package/generator/compiler/closure-store.d.ts +55 -0
  63. package/generator/compiler/common.d.ts +32 -0
  64. package/generator/compiler/describe.d.ts +21 -0
  65. package/generator/compiler/dry-run.d.ts +108 -0
  66. package/generator/compiler/fast-start.d.ts +104 -0
  67. package/generator/compiler/fold.d.ts +116 -0
  68. package/generator/compiler/index.d.ts +131 -0
  69. package/generator/compiler/index.js +19009 -0
  70. package/generator/compiler/link.d.ts +38 -0
  71. package/generator/compiler/memo.d.ts +44 -0
  72. package/generator/compiler/plan.d.ts +116 -0
  73. package/generator/compiler/progress.d.ts +54 -0
  74. package/generator/compiler/render.d.ts +27 -0
  75. package/generator/compiler/retention.d.ts +181 -0
  76. package/generator/compiler/semantic-closure.d.ts +46 -0
  77. package/generator/compiler/targeted.d.ts +280 -0
  78. package/generator/content/code-snippet.d.ts +20 -0
  79. package/generator/content/content-compiler.d.ts +122 -0
  80. package/generator/content/format-cache.d.ts +108 -0
  81. package/generator/content/highlight-cache.d.ts +115 -0
  82. package/generator/content/html-pipeline.d.ts +179 -0
  83. package/generator/content/html-pool.d.ts +245 -0
  84. package/generator/content/html-worker.js +2181 -0
  85. package/generator/content-module-ids.d.ts +8 -0
  86. package/generator/contracts.d.ts +1102 -0
  87. package/generator/contracts.js +15 -0
  88. package/generator/discovery/index.d.ts +79 -0
  89. package/generator/graph/index.d.ts +211 -0
  90. package/generator/graph/unit-index.d.ts +216 -0
  91. package/generator/kernel/canonical.d.ts +57 -0
  92. package/generator/kernel/flags.d.ts +51 -0
  93. package/generator/kernel/footprint.d.ts +88 -0
  94. package/generator/kernel/observations.d.ts +68 -0
  95. package/generator/kernel/paths.d.ts +22 -0
  96. package/generator/kernel/runtime-identity.d.ts +11 -0
  97. package/generator/outputs/index.d.ts +80 -0
  98. package/generator/package.json +3 -0
  99. package/generator/progress/ci.d.ts +22 -0
  100. package/generator/progress/detect.d.ts +60 -0
  101. package/generator/progress/events.d.ts +126 -0
  102. package/generator/progress/format.d.ts +83 -0
  103. package/generator/progress/gate.d.ts +49 -0
  104. package/generator/progress/host.d.ts +29 -0
  105. package/generator/progress/lines.d.ts +42 -0
  106. package/generator/progress/live.d.ts +115 -0
  107. package/generator/progress/model.d.ts +85 -0
  108. package/generator/progress/reporter.d.ts +87 -0
  109. package/generator/progress/settings.d.ts +60 -0
  110. package/generator/semantic/angular.d.ts +29 -0
  111. package/generator/semantic/api-enumeration.d.ts +19 -0
  112. package/generator/semantic/api-summary.d.ts +33 -0
  113. package/generator/semantic/dependencies.d.ts +20 -0
  114. package/generator/semantic/derived-classes.d.ts +58 -0
  115. package/generator/semantic/documentation-cache.d.ts +23 -0
  116. package/generator/semantic/formatting.d.ts +27 -0
  117. package/generator/semantic/fragments.d.ts +37 -0
  118. package/generator/semantic/owned-roots.d.ts +59 -0
  119. package/generator/semantic/program-builder.d.ts +55 -0
  120. package/generator/semantic/program-index.d.ts +124 -0
  121. package/generator/semantic/program-inputs.d.ts +26 -0
  122. package/generator/semantic/program-observations.d.ts +158 -0
  123. package/generator/semantic/program-retention.d.ts +147 -0
  124. package/generator/semantic/program-state.d.ts +196 -0
  125. package/generator/semantic/program-verify.d.ts +22 -0
  126. package/generator/semantic/recorder.d.ts +89 -0
  127. package/generator/semantic/rendering.d.ts +34 -0
  128. package/generator/semantic/semantic-closure.d.ts +129 -0
  129. package/generator/semantic/semantic-service.d.ts +186 -0
  130. package/generator/semantic/type-text.d.ts +5 -0
  131. package/generator/session/build-session.d.ts +206 -0
  132. package/generator/session/input-verification.d.ts +38 -0
  133. package/generator/session/parcel-event-source.d.ts +22 -0
  134. package/generator/session/progress.d.ts +72 -0
  135. package/generator/session/unchanged-saves.d.ts +63 -0
  136. package/generator/session/watch-inputs.d.ts +6 -0
  137. package/generator/session/watch-signals.d.ts +10 -0
  138. package/generator/templates/api/base.html.nunj +26 -0
  139. package/generator/templates/api/class-declaration.html.nunj +59 -0
  140. package/generator/templates/api/details/class-declaration.html.nunj +47 -0
  141. package/generator/templates/api/details/enum-declaration.html.nunj +0 -0
  142. package/generator/templates/api/details/function-declaration.html.nunj +14 -0
  143. package/generator/templates/api/details/helpers/decorators.html.nunj +14 -0
  144. package/generator/templates/api/details/helpers/extends.html.nunj +6 -0
  145. package/generator/templates/api/details/helpers/selectors.html.nunj +12 -0
  146. package/generator/templates/api/details/helpers/type-parameters.html.nunj +14 -0
  147. package/generator/templates/api/details/interface-declaration.html.nunj +27 -0
  148. package/generator/templates/api/details/type-alias-declaration.html.nunj +14 -0
  149. package/generator/templates/api/details/variable-declaration.html.nunj +0 -0
  150. package/generator/templates/api/details.html.nunj +9 -0
  151. package/generator/templates/api/enum-declaration.html.nunj +12 -0
  152. package/generator/templates/api/function-declaration.html.nunj +35 -0
  153. package/generator/templates/api/interface-declaration.html.nunj +37 -0
  154. package/generator/templates/api/type-alias-declaration.html.nunj +16 -0
  155. package/generator/templates/api/variable-declaration.html.nunj +8 -0
  156. package/generator/templates/api-header.html.nunj +11 -0
  157. package/generator/templates/api-list.ts.nunj +22 -0
  158. package/generator/templates/api-page-content.html.nunj +1 -0
  159. package/generator/templates/api-scope.ts.nunj +22 -0
  160. package/generator/templates/category.ts.nunj +22 -0
  161. package/generator/templates/code.html.nunj +3 -0
  162. package/generator/templates/context.ts.nunj +55 -0
  163. package/generator/templates/demo-app.ts.nunj +37 -0
  164. package/generator/templates/demo-assets.ts.nunj +25 -0
  165. package/generator/templates/demo-routes.ts.nunj +23 -0
  166. package/generator/templates/helpers/accessor.html.nunj +76 -0
  167. package/generator/templates/helpers/accessors.html.nunj +7 -0
  168. package/generator/templates/helpers/badge.html.nunj +4 -0
  169. package/generator/templates/helpers/call-signature.html.nunj +70 -0
  170. package/generator/templates/helpers/code.html.nunj +3 -0
  171. package/generator/templates/helpers/constructor.html.nunj +32 -0
  172. package/generator/templates/helpers/declaration-modifiers.html.nunj +45 -0
  173. package/generator/templates/helpers/decorators.html.nunj +11 -0
  174. package/generator/templates/helpers/members.html.nunj +29 -0
  175. package/generator/templates/helpers/method.html.nunj +89 -0
  176. package/generator/templates/helpers/methods.html.nunj +7 -0
  177. package/generator/templates/helpers/modifier.html.nunj +4 -0
  178. package/generator/templates/helpers/no-content.html.nunj +3 -0
  179. package/generator/templates/helpers/overload.html.nunj +57 -0
  180. package/generator/templates/helpers/parameters.html.nunj +44 -0
  181. package/generator/templates/helpers/properties.html.nunj +61 -0
  182. package/generator/templates/helpers/status.html.nunj +33 -0
  183. package/generator/templates/helpers/tag.html.nunj +4 -0
  184. package/generator/templates/helpers/type.html.nunj +11 -0
  185. package/generator/templates/index.ts.nunj +7 -0
  186. package/generator/templates/page-header.html.nunj +5 -0
  187. package/generator/templates/page-wrapper.ts.nunj +69 -0
  188. package/generator/templates/page.ts.nunj +104 -0
  189. package/generator/templates/parts/examples.html.nunj +11 -0
  190. package/generator/templates/parts/member-examples.html.nunj +12 -0
  191. package/generator/templates/parts/member-remarks.html.nunj +8 -0
  192. package/generator/templates/parts/page-tags.html.nunj +10 -0
  193. package/generator/templates/parts/remarks.html.nunj +10 -0
  194. package/generator/templates/parts/see-also.html.nunj +23 -0
  195. package/generator/templates/parts/usage-notes.html.nunj +8 -0
  196. package/generator/templates/playgrounds.ts.nunj +63 -0
  197. package/generator/templates/routes.ts.nunj +53 -0
  198. package/generator/templates/symbol/decorators.html.nunj +12 -0
  199. package/generator/templates/symbol/details.html.nunj +62 -0
  200. package/generator/templates/symbol/extended-by.html.nunj +17 -0
  201. package/generator/templates/symbol/header.html.nunj +22 -0
  202. package/generator/templates/symbol/members.html.nunj +303 -0
  203. package/generator/templates/symbol/page.html.nunj +76 -0
  204. package/generator/templates/symbol/see-also.html.nunj +16 -0
  205. package/generator/vite/angular/ANALOG-LICENSE +21 -0
  206. package/generator/vite/angular/analog-provenance.json +880 -0
  207. package/generator/vite/angular/index.d.ts +14 -0
  208. package/generator/vite/angular/index.js +7300 -0
  209. package/generator/vite/angular-compatibility.d.ts +6 -0
  210. package/generator/vite/angular-composition.d.ts +68 -0
  211. package/generator/vite/angular-version.d.ts +38 -0
  212. package/generator/vite/application-builder.js +336 -0
  213. package/generator/vite/application-builder.schema.json +46 -0
  214. package/generator/vite/application.d.ts +105 -0
  215. package/generator/vite/assets.d.ts +11 -0
  216. package/generator/vite/bounded-close.d.ts +33 -0
  217. package/generator/vite/component-updates.d.ts +21 -0
  218. package/generator/vite/configuration.d.ts +3 -0
  219. package/generator/vite/demo-application.d.ts +34 -0
  220. package/generator/vite/dev-server-builder.js +339 -0
  221. package/generator/vite/dev-server-builder.schema.json +27 -0
  222. package/generator/vite/dev-styles.d.ts +65 -0
  223. package/generator/vite/diagnostics.d.ts +4 -0
  224. package/generator/vite/external-probes.d.ts +40 -0
  225. package/generator/vite/host-updates.d.ts +212 -0
  226. package/generator/vite/index.d.ts +13 -0
  227. package/generator/vite/index.js +11949 -0
  228. package/generator/vite/lease.d.ts +6 -0
  229. package/generator/vite/lifecycle.d.ts +120 -0
  230. package/generator/vite/mime.d.ts +2 -0
  231. package/generator/vite/missing-paths.d.ts +44 -0
  232. package/generator/vite/options.d.ts +87 -0
  233. package/generator/vite/output-watch.d.ts +41 -0
  234. package/generator/vite/paths.d.ts +7 -0
  235. package/generator/vite/plugin.d.ts +3 -0
  236. package/generator/vite/prerender-entry.js +465 -0
  237. package/generator/vite/prerender-runtime.d.ts +79 -0
  238. package/generator/vite/prerender.d.ts +29 -0
  239. package/generator/vite/production.d.ts +66 -0
  240. package/generator/vite/progress.d.ts +33 -0
  241. package/generator/vite/restore-theme.js +13 -0
  242. package/generator/vite/route-inventory.d.ts +24 -0
  243. package/generator/vite/ssr-renderer-control.d.ts +1 -0
  244. package/generator/vite/ssr-renderer-entry.js +444 -0
  245. package/generator/vite/ssr-renderer-protocol.d.ts +101 -0
  246. package/generator/vite/ssr-renderer.d.ts +74 -0
  247. package/generator/vite/theme-index.d.ts +13 -0
  248. package/generator/vite/tsconfig-paths.d.ts +64 -0
  249. package/generator/vite/vite-event-source.d.ts +198 -0
  250. package/generator/vite/vite-version.d.ts +26 -0
  251. package/generator/vite/watch-inputs.d.ts +39 -0
  252. package/generator/worker/entry.d.ts +1 -0
  253. package/generator/worker/entry.js +614 -0
  254. package/generator/worker/index.d.ts +156 -0
  255. package/generator/worker/index.js +1030 -0
  256. package/generator/worker/protocol.d.ts +160 -0
  257. package/helpers/angular/get-component-decorator.js +6 -6
  258. package/helpers/angular/get-component-decorator.js.map +1 -1
  259. package/helpers/angular/get-directive-decorator.js +3 -3
  260. package/helpers/angular/get-directive-decorator.js.map +1 -1
  261. package/helpers/angular/get-pipe-decorator.js +3 -3
  262. package/helpers/angular/get-pipe-decorator.js.map +1 -1
  263. package/helpers/build-indexes.js +5 -2
  264. package/helpers/build-indexes.js.map +1 -1
  265. package/helpers/construct-page-keyword.js +2 -1
  266. package/helpers/construct-page-keyword.js.map +1 -1
  267. package/helpers/extract-selectors.d.ts +1 -1
  268. package/helpers/extract-selectors.js +5 -3
  269. package/helpers/extract-selectors.js.map +1 -1
  270. package/helpers/filter-useless-members.d.ts +1 -1
  271. package/helpers/format-cache.d.ts +34 -0
  272. package/helpers/format-cache.js +26 -0
  273. package/helpers/format-cache.js.map +1 -0
  274. package/helpers/format-code.d.ts +2 -1
  275. package/helpers/format-code.js +20 -4
  276. package/helpers/format-code.js.map +1 -1
  277. package/helpers/import-fresh-esm.js.map +1 -1
  278. package/helpers/index.d.ts +2 -0
  279. package/helpers/index.js +2 -0
  280. package/helpers/index.js.map +1 -1
  281. package/helpers/keyword-heading-title.d.ts +7 -0
  282. package/helpers/keyword-heading-title.js +21 -0
  283. package/helpers/keyword-heading-title.js.map +1 -0
  284. package/helpers/markdown-to-html.js +3 -3
  285. package/helpers/markdown-to-html.js.map +1 -1
  286. package/helpers/navigation-title-order.d.ts +8 -0
  287. package/helpers/navigation-title-order.js +15 -0
  288. package/helpers/navigation-title-order.js.map +1 -0
  289. package/helpers/playground/get-playground-inputs.js +8 -4
  290. package/helpers/playground/get-playground-inputs.js.map +1 -1
  291. package/helpers/playground/get-playground-template-inputs.js +2 -1
  292. package/helpers/playground/get-playground-template-inputs.js.map +1 -1
  293. package/helpers/presentation.d.ts +7 -7
  294. package/helpers/presentation.js +23 -23
  295. package/helpers/presentation.js.map +1 -1
  296. package/helpers/print.js +32 -5
  297. package/helpers/print.js.map +1 -1
  298. package/helpers/process-snippets.d.ts +1 -1
  299. package/helpers/process-snippets.js +3 -3
  300. package/helpers/process-snippets.js.map +1 -1
  301. package/helpers/snippets-from-asset.d.ts +1 -1
  302. package/helpers/snippets-from-asset.js +2 -2
  303. package/helpers/snippets-from-asset.js.map +1 -1
  304. package/helpers/sort-navigation-entities.js +2 -1
  305. package/helpers/sort-navigation-entities.js.map +1 -1
  306. package/helpers/stable-generated-id.d.ts +2 -0
  307. package/helpers/stable-generated-id.js +12 -0
  308. package/helpers/stable-generated-id.js.map +1 -0
  309. package/helpers/text-order.d.ts +8 -0
  310. package/helpers/text-order.js +26 -0
  311. package/helpers/text-order.js.map +1 -0
  312. package/helpers/to-template-string.d.ts +5 -1
  313. package/helpers/to-template-string.js +7 -2
  314. package/helpers/to-template-string.js.map +1 -1
  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/code-block-options.d.ts +5 -0
  323. package/interfaces/configuration.d.ts +84 -1
  324. package/package.json +87 -29
  325. package/parsers/helpers/number.d.ts +1 -1
  326. package/parsers/helpers/number.js +2 -2
  327. package/parsers/helpers/number.js.map +1 -1
  328. package/parsers/helpers/param-value.d.ts +1 -1
  329. package/parsers/helpers/param-value.js +2 -2
  330. package/parsers/helpers/param-value.js.map +1 -1
  331. package/parsers/helpers/param.js +3 -3
  332. package/parsers/helpers/param.js.map +1 -1
  333. package/parsers/parse-code-block-params.d.ts +11 -2
  334. package/parsers/parse-code-block-params.js +50 -18
  335. package/parsers/parse-code-block-params.js.map +1 -1
  336. package/parsers/parse-snippet.js +10 -10
  337. package/parsers/parse-snippet.js.map +1 -1
  338. package/schematics/collection.json +34 -23
  339. package/schematics/migrate-to-vite/analyze.d.ts +76 -0
  340. package/schematics/migrate-to-vite/analyze.js +859 -0
  341. package/schematics/migrate-to-vite/analyze.js.map +1 -0
  342. package/schematics/migrate-to-vite/index.d.ts +9 -0
  343. package/schematics/migrate-to-vite/index.js +585 -0
  344. package/schematics/migrate-to-vite/index.js.map +1 -0
  345. package/schematics/migrate-to-vite/legacy-folder.d.ts +84 -0
  346. package/schematics/migrate-to-vite/legacy-folder.js +340 -0
  347. package/schematics/migrate-to-vite/legacy-folder.js.map +1 -0
  348. package/schematics/migrate-to-vite/report.d.ts +32 -0
  349. package/schematics/migrate-to-vite/report.js +97 -0
  350. package/schematics/migrate-to-vite/report.js.map +1 -0
  351. package/schematics/migrate-to-vite/schema.d.ts +13 -0
  352. package/schematics/migrate-to-vite/schema.js +3 -0
  353. package/schematics/migrate-to-vite/schema.js.map +1 -0
  354. package/schematics/migrate-to-vite/schema.json +31 -0
  355. package/schematics/migrate-to-vite/setup/dependencies.d.ts +64 -0
  356. package/schematics/migrate-to-vite/setup/dependencies.js +183 -0
  357. package/schematics/migrate-to-vite/setup/dependencies.js.map +1 -0
  358. package/schematics/migrate-to-vite/setup/index.d.ts +6 -0
  359. package/schematics/migrate-to-vite/setup/index.js +13 -0
  360. package/schematics/migrate-to-vite/setup/index.js.map +1 -0
  361. package/schematics/migrate-to-vite/setup/json-file.d.ts +51 -0
  362. package/schematics/migrate-to-vite/setup/json-file.js +115 -0
  363. package/schematics/migrate-to-vite/setup/json-file.js.map +1 -0
  364. package/schematics/migrate-to-vite/setup/source.d.ts +30 -0
  365. package/schematics/migrate-to-vite/setup/source.js +202 -0
  366. package/schematics/migrate-to-vite/setup/source.js.map +1 -0
  367. package/schematics/migrate-to-vite/setup/targets.d.ts +51 -0
  368. package/schematics/migrate-to-vite/setup/targets.js +48 -0
  369. package/schematics/migrate-to-vite/setup/targets.js.map +1 -0
  370. package/schematics/migrate-to-vite/setup/vite-config.d.ts +100 -0
  371. package/schematics/migrate-to-vite/setup/vite-config.js +175 -0
  372. package/schematics/migrate-to-vite/setup/vite-config.js.map +1 -0
  373. package/schematics/migrate-to-vite/setup/workspace.d.ts +105 -0
  374. package/schematics/migrate-to-vite/setup/workspace.js +245 -0
  375. package/schematics/migrate-to-vite/setup/workspace.js.map +1 -0
  376. package/schematics/migrate-to-vite/state.d.ts +65 -0
  377. package/schematics/migrate-to-vite/state.js +92 -0
  378. package/schematics/migrate-to-vite/state.js.map +1 -0
  379. package/schematics/migrate-to-vite/testing/fixtures.d.ts +30 -0
  380. package/schematics/migrate-to-vite/testing/fixtures.js +306 -0
  381. package/schematics/migrate-to-vite/testing/fixtures.js.map +1 -0
  382. package/schematics/migrate-to-vite/update-note.d.ts +6 -0
  383. package/schematics/migrate-to-vite/update-note.js +23 -0
  384. package/schematics/migrate-to-vite/update-note.js.map +1 -0
  385. package/schematics/migration.json +5 -0
  386. package/schematics/migrations/standalone-pages/index.js +7 -6
  387. package/schematics/migrations/standalone-pages/index.js.map +1 -1
  388. package/schematics/vite-setup/index.d.ts +24 -0
  389. package/schematics/vite-setup/index.js +212 -0
  390. package/schematics/vite-setup/index.js.map +1 -0
  391. package/schematics/vite-setup/schema.d.ts +7 -0
  392. package/schematics/vite-setup/schema.js +3 -0
  393. package/schematics/vite-setup/schema.js.map +1 -0
  394. package/schematics/vite-setup/schema.json +19 -0
  395. package/scripts/restore-theme.js +9 -2
  396. package/templates/api/class-declaration.html.nunj +5 -3
  397. package/templates/context.ts.nunj +3 -0
  398. package/templates/demo-app.ts.nunj +37 -0
  399. package/templates/demo-routes.ts.nunj +23 -0
  400. package/templates/helpers/badge.html.nunj +1 -1
  401. package/templates/helpers/status.html.nunj +4 -8
  402. package/templates/index.ts.nunj +5 -0
  403. package/templates/page-wrapper.ts.nunj +30 -2
  404. package/templates/page.ts.nunj +33 -1
  405. package/templates/parts/page-tags.html.nunj +1 -1
  406. package/templates/playgrounds.ts.nunj +8 -9
  407. package/templates/routes.ts.nunj +10 -1
  408. package/templates/symbol/decorators.html.nunj +12 -0
  409. package/templates/symbol/details.html.nunj +62 -0
  410. package/templates/symbol/extended-by.html.nunj +17 -0
  411. package/templates/symbol/header.html.nunj +22 -0
  412. package/templates/symbol/members.html.nunj +303 -0
  413. package/templates/symbol/page.html.nunj +76 -0
  414. package/templates/symbol/see-also.html.nunj +16 -0
  415. package/engine/.cache/apps/ng-doc/docs/api-documentation/auto-generation/ng-doc.page.mjs +0 -20
  416. package/engine/.cache/apps/ng-doc/docs/api-documentation/documenting-declarations/ng-doc.page.mjs +0 -20
  417. package/engine/.cache/apps/ng-doc/docs/api-documentation/rendering-api/ng-doc.page.mjs +0 -19
  418. package/engine/.cache/apps/ng-doc/docs/customization/icons/ng-doc.page.mjs +0 -19
  419. package/engine/.cache/apps/ng-doc/docs/customization/layout/ng-doc.page.mjs +0 -19
  420. package/engine/.cache/apps/ng-doc/docs/customization/page-processors/ng-doc.page.mjs +0 -19
  421. package/engine/.cache/apps/ng-doc/docs/customization/page-skeleton/ng-doc.page.mjs +0 -19
  422. package/engine/.cache/apps/ng-doc/docs/customization/search/ng-doc.page.mjs +0 -19
  423. package/engine/.cache/apps/ng-doc/docs/customization/themes/ng-doc.page.mjs +0 -19
  424. package/engine/.cache/apps/ng-doc/docs/develop/ng-doc.page.mjs +0 -36
  425. package/engine/.cache/apps/ng-doc/docs/getting-started/configuration/ng-doc.page.mjs +0 -19
  426. package/engine/.cache/apps/ng-doc/docs/getting-started/installation/ng-doc.page.mjs +0 -19
  427. package/engine/.cache/apps/ng-doc/docs/getting-started/migrations/ng-doc.page.mjs +0 -18
  428. package/engine/.cache/apps/ng-doc/docs/getting-started/ssr/ng-doc.page.mjs +0 -19
  429. package/engine/.cache/apps/ng-doc/docs/getting-started/what-is-ng-doc/ng-doc.page.mjs +0 -19
  430. package/engine/.cache/apps/ng-doc/docs/ng-doc.api.mjs +0 -42
  431. package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.mjs +0 -18
  432. package/engine/.cache/apps/ng-doc/docs/recipes/performance/ng-doc.page.mjs +0 -19
  433. package/engine/.cache/apps/ng-doc/docs/writing-content/blockquotes/ng-doc.page.mjs +0 -18
  434. package/engine/.cache/apps/ng-doc/docs/writing-content/code-blocks/ng-doc.page.mjs +0 -18
  435. package/engine/.cache/apps/ng-doc/docs/writing-content/demo-and-demo-pane/ng-doc.page.mjs +0 -19
  436. package/engine/.cache/apps/ng-doc/docs/writing-content/images-videos-and-embeds/ng-doc.page.mjs +0 -18
  437. package/engine/.cache/apps/ng-doc/docs/writing-content/keywords/ng-doc.page.mjs +0 -17
  438. package/engine/.cache/apps/ng-doc/docs/writing-content/mermaid-diagrams/ng-doc.page.mjs +0 -18
  439. package/engine/.cache/apps/ng-doc/docs/writing-content/nunjucks/ng-doc.page.mjs +0 -18
  440. package/engine/.cache/apps/ng-doc/docs/writing-content/pages-and-categories/ng-doc.page.mjs +0 -18
  441. package/engine/.cache/apps/ng-doc/docs/writing-content/playground/ng-doc.page.mjs +0 -33
@@ -0,0 +1,64 @@
1
+ import ts from 'typescript';
2
+ import type { Plugin } from 'vite';
3
+ /** The name of the plugin that resolves the `paths` of the application's tsconfig. */
4
+ export declare const NG_DOC_TSCONFIG_PATHS_PLUGIN = "@ng-doc/vite:tsconfig-paths";
5
+ /** The `tsconfig` option of the Analog Angular plugin. */
6
+ export type AngularTsconfigOption = string | (() => string) | undefined;
7
+ interface Pattern {
8
+ readonly prefix: string;
9
+ readonly suffix: string;
10
+ }
11
+ /** The `paths` of one tsconfig, with everything a resolution needs. */
12
+ export interface TsconfigPathMappings {
13
+ readonly options: ts.CompilerOptions;
14
+ /** The directory `paths` targets are relative to: `baseUrl`, else the declaring tsconfig's. */
15
+ readonly base: string;
16
+ readonly exact: ReadonlySet<string>;
17
+ readonly patterns: readonly Pattern[];
18
+ }
19
+ /** A parsed tsconfig: its mappings (none without `paths`) and every file the parse read. */
20
+ export interface TsconfigPaths {
21
+ readonly file: string;
22
+ readonly mappings?: TsconfigPathMappings;
23
+ /** The tsconfig and the configurations it extends, as canonical paths. */
24
+ readonly inputs: ReadonlySet<string>;
25
+ }
26
+ /**
27
+ * The tsconfig the Analog Angular plugin compiles with, resolved as Analog resolves it: an
28
+ * absolute path as is, anything else against the Vite root, and by default `tsconfig.app.json`
29
+ * (`tsconfig.lib.json`, or `tsconfig.lib.prod.json` in production, for a library build).
30
+ */
31
+ export declare function angularTsconfigPath(root: string, tsconfig: AngularTsconfigOption, isProd: boolean, isLib: boolean): string;
32
+ /**
33
+ * Reads the `paths` of a tsconfig with TypeScript's own parser, so `extends` (files and packages),
34
+ * `baseUrl` and the base directory of inherited `paths` mean what they mean to the compiler. The
35
+ * parse never lists the program's files: only the compiler options are used.
36
+ */
37
+ export declare function readTsconfigPaths(file: string): TsconfigPaths;
38
+ /** Whether a specifier is a bare module name that a `paths` key of the mappings matches. */
39
+ export declare function matchesPathMapping(mappings: TsconfigPathMappings, source: string): boolean;
40
+ /**
41
+ * The locations a specifier maps to, in order, as TypeScript substitutes them: an exact key wins,
42
+ * otherwise the wildcard pattern with the longest prefix.
43
+ */
44
+ export declare function pathMappingTargets(mappings: TsconfigPathMappings, source: string): string[];
45
+ /**
46
+ * Resolves the `compilerOptions.paths` of the application's tsconfig, as the Angular CLI does: a
47
+ * bare specifier that a `paths` key matches is resolved by TypeScript's module resolution with the
48
+ * tsconfig's options, then handed to Vite as the file path, so it gets the same module id as a
49
+ * relative import of that file. A mapping TypeScript resolves to a declaration file (a built
50
+ * library in `dist`, for example) is resolved as Vite resolves the installed package, or else its
51
+ * mapped locations, which reads the package's `package.json`. What TypeScript does not resolve, or
52
+ * finds in `node_modules`, is
53
+ * left to Vite. Modules in `node_modules` never use the application's mappings, and an alias of
54
+ * the Vite configuration wins over a mapping, since Vite applies aliases first.
55
+ *
56
+ * In development, the tsconfig and the configurations it extends are watched, and an edit of one
57
+ * is read again at the next resolution.
58
+ * @param tsconfig - The `tsconfig` option of the Analog Angular plugin.
59
+ * @param compilerTsconfig - The tsconfig the Analog compiler itself resolved (its
60
+ * `api.getTsConfigPath`, Analog 2.8 and later), read once the configuration is resolved, so
61
+ * both always read the same file; without it, the plugin resolves the option as Analog does.
62
+ */
63
+ export declare function createTsconfigPathsPlugin(tsconfig: AngularTsconfigOption, compilerTsconfig?: () => string | undefined): Plugin;
64
+ export {};
@@ -0,0 +1,198 @@
1
+ import type { FSWatcher } from 'vite';
2
+ import type { BuildResult, Diagnostic, FileChange, FileEventSource, WatchInputs } from '../contracts.js';
3
+ type Listener = (events: FileChange[]) => void;
4
+ type ErrorListener = (diagnostic: Diagnostic) => void;
5
+ export interface WatchObservation {
6
+ accepted: boolean;
7
+ reconcile: boolean;
8
+ /**
9
+ * With `reconcile`: exactly what may have changed unseen, namely the new physical targets and
10
+ * the rejected changes that the new inputs now match. Absent when the rejections overflowed
11
+ * their bound: then every input is reconciled.
12
+ */
13
+ paths?: string[];
14
+ }
15
+ /**
16
+ * Distinct paths rejected while a generation is in flight that are kept to be checked against
17
+ * its newly recorded inputs. Beyond this the check is replaced by an unconditional reconcile.
18
+ */
19
+ export declare const MAX_RETAINED_REJECTIONS = 1024;
20
+ /** Recoverable watcher errors are reported together, at most once per this many milliseconds. */
21
+ export declare const WATCHER_ERROR_COALESCE_MS = 100;
22
+ /**
23
+ * The code of a watcher failure that cannot recover while Vite runs. The lifecycle keeps it until
24
+ * restart.
25
+ */
26
+ export declare const NGDOC_VITE_WATCHER = "NGDOC_VITE_WATCHER";
27
+ /**
28
+ * Distinct paths outside the recorded inputs whose native watch was lost, kept because a later
29
+ * generation can record an input there. More than this is fatal.
30
+ */
31
+ export declare const MAX_LOST_WATCHES = 1024;
32
+ /**
33
+ * How long the re-observation of new inputs waits for chokidar to attach their watches. chokidar
34
+ * attaches after asynchronous `stat`/`realpath` calls and signals nothing per path; after this the
35
+ * re-observation runs anyway (a slower attach leaves the same window as before it existed).
36
+ */
37
+ export declare const WATCH_ATTACH_TIMEOUT_MS = 1000;
38
+ /**
39
+ * chokidar lists a path in `getWatched()` just before it registers the path's native listener
40
+ * (FSEvents: one `realpath` later; `fs.watch`: after the directory read that lists its entries).
41
+ * A watch is taken as attached this long after it is listed.
42
+ */
43
+ export declare const WATCH_ATTACH_GRACE_MS = 10;
44
+ /**
45
+ * chokidar (as bundled by Vite) reports no `change` of a path within 50 ms of the last one it
46
+ * reported, and reports nothing for it afterwards either. An in-place save can then be reported
47
+ * at its truncation only, and the generation it starts may read the half-written file. So each
48
+ * forwarded change of a file is checked again this long after it was forwarded: a file whose
49
+ * stat moved since is reported once more. Longer than chokidar's window, so a write inside it is
50
+ * seen; a write after it is reported by chokidar itself.
51
+ */
52
+ export declare const TRAILING_RESTAT_MS = 100;
53
+ /** Where the native watcher may be attached. */
54
+ export interface WatchScopeOptions {
55
+ /**
56
+ * The workspace root. Recorded files outside it are polled instead of natively watched; without
57
+ * it every target goes to the native watcher.
58
+ */
59
+ workspaceRoot?: string;
60
+ /** The poll interval for files outside the workspace (tests use a short one). */
61
+ probeIntervalMs?: number;
62
+ /**
63
+ * Directories the watcher itself watches recursively (Vite's root). Its directory watches there
64
+ * report every new file, so missing inputs below them stay with it.
65
+ */
66
+ watchedRoots?: readonly string[];
67
+ /**
68
+ * Whether missing inputs that the watcher cannot report get their own directory watches (see
69
+ * `watchesMissingPaths`). Default true; false when the host does not watch at all.
70
+ */
71
+ watchMissingPaths?: boolean;
72
+ }
73
+ export declare class ViteFileEventSource implements FileEventSource {
74
+ private readonly watcher;
75
+ private readonly registry;
76
+ private listener?;
77
+ private errorListener?;
78
+ private disposed;
79
+ private registration;
80
+ private ownedRoots;
81
+ private buffered;
82
+ private seeded;
83
+ /** Paths rejected since the newest generation started, until its result is observed. */
84
+ private retained;
85
+ private retainedOverflow;
86
+ /** Recoverable failures outside the inputs since the newest generation started. */
87
+ private retainedErrors;
88
+ private retainedErrorsOverflow;
89
+ /** Lost native watches outside the inputs; chokidar never re-creates them. */
90
+ private lostWatches;
91
+ private lostWatchesOverflow;
92
+ /**
93
+ * Incremented whenever an observation installs different effective inputs in the registry,
94
+ * current or not; `checkedInputs` is the version whose inputs the retained failures were last
95
+ * re-checked against.
96
+ */
97
+ private inputsVersion;
98
+ private checkedInputs;
99
+ private inFlight;
100
+ private recoverable?;
101
+ private unrelated?;
102
+ private errorFlush?;
103
+ private readonly workspace;
104
+ /** Whether missing inputs outside `watchedRoots` get the directory watches of `missing`. */
105
+ private readonly groupsMissingPaths;
106
+ private readonly watchedRoots;
107
+ private readonly missing;
108
+ /** Warnings raised before `subscribe` gave them a listener. */
109
+ private readonly pendingWarnings;
110
+ private readonly probes;
111
+ /** Targets handed to the native watcher (the ones whose attachment can be awaited). */
112
+ private readonly native;
113
+ /** The trailing re-stat of each recently forwarded file (see `TRAILING_RESTAT_MS`). */
114
+ private readonly trailing;
115
+ private readonly onAddDirectory;
116
+ private readonly onDeleteDirectory;
117
+ /**
118
+ * chokidar keeps watching after every `error` it emits; each one is an `fs` failure for a single
119
+ * path (see `_handleError` and its callers in the chokidar that Vite bundles):
120
+ *
121
+ * - `syscall: 'watch'`: the native `fs.watch` handle for the path could not be created (for
122
+ * example ENOSPC at the inotify limit, or EMFILE) or failed later. chokidar never re-creates
123
+ * it, so later changes there are never reported. Fatal when it can hide a recorded input.
124
+ * - any other `fs` failure (stat, lstat, realpath, scandir, open, including awaitWriteFinish):
125
+ * the path is still watched or is re-read on its directory's next change, but an event may
126
+ * have been missed. Like a lossy FSEvents signal of the session's own watcher, this is a
127
+ * `WATCHER_RESCAN` warning, and the session re-observes every committed input.
128
+ *
129
+ * A failure for a path that cannot hide a recorded input (outside the inputs, or below a
130
+ * generator-owned root the generator itself rewrites) is only a warning. A value that is not
131
+ * an `fs` failure was not raised by chokidar and stays fatal.
132
+ */
133
+ private readonly onError;
134
+ constructor(watcher: FSWatcher, capacity: number, scope?: WatchScopeOptions);
135
+ seed(generation: number, watchInputs?: WatchInputs): Promise<WatchObservation>;
136
+ started(generation: number): void;
137
+ isCurrent(generation: number): boolean;
138
+ /**
139
+ * Whether a host change is a generator input. A change rejected while a generation is in flight
140
+ * is retained: if that generation records the path as a new input (it may have read the old
141
+ * bytes), its observation requests a reconcile.
142
+ */
143
+ matches(change: FileChange): boolean;
144
+ /**
145
+ * A change the host watcher reported. An input that has a directory watch of its own is reported
146
+ * by that watch only, so one change never reaches the session twice.
147
+ */
148
+ forward(change: FileChange): boolean;
149
+ /**
150
+ * Reports `file` again if its stat moves within `TRAILING_RESTAT_MS` of now: a write chokidar's
151
+ * change throttle dropped. A later forward of the same file restarts the check from its state.
152
+ */
153
+ private restatLater;
154
+ private deliver;
155
+ excludeOwned(...roots: string[]): void;
156
+ observe(result: BuildResult): Promise<WatchObservation>;
157
+ subscribe(listener: Listener, onError: ErrorListener): Promise<{
158
+ dispose(): Promise<void>;
159
+ }>;
160
+ dispose(): Promise<void>;
161
+ /**
162
+ * Splits new physical targets between the native watcher and the external probe poller.
163
+ *
164
+ * Native: everything inside the workspace (missing files included: chokidar watches such a
165
+ * path through its nearest directory and reports its creation), every glob base, and any file
166
+ * at or below a glob base, whose native directory watch already covers it. Polled: the other
167
+ * recorded files outside the workspace, which are the configuration lookups the compiler makes
168
+ * in every directory up to the filesystem root. Adding those natively attached chokidar's
169
+ * FSEvents streams to `/` and the home directory's parents. Beyond
170
+ * `MAX_EXTERNAL_PROBES` the rest stays native, as before. Missing: with a watcher that cannot
171
+ * report every missing path (see `watchesMissingPaths`), a missing file inside the workspace
172
+ * that neither a glob base nor a recursively watched root covers is watched through its nearest
173
+ * existing directory (`MissingPathWatcher`); one below such a root is left to the root's watch.
174
+ */
175
+ private placeTargets;
176
+ private warn;
177
+ /**
178
+ * Resolves once chokidar lists every given native target as watched, `false` after `timeoutMs`.
179
+ * A new input is re-observed only after this: a change made after the re-observation is then
180
+ * reported by the watch. chokidar's FSEvents handler records a path just before it registers the
181
+ * path's listener (one `realpath` later), so a short grace follows. A watcher without
182
+ * `getWatched()` (a test double) counts as attached.
183
+ */
184
+ attached(paths: readonly string[], timeoutMs?: number): Promise<boolean>;
185
+ private owned;
186
+ /** Whether a watcher failure at `target` can hide a change to a recorded input. */
187
+ private covers;
188
+ private lostWatch;
189
+ private pend;
190
+ /**
191
+ * The inputs just changed: a failure recorded while a path was not an input can now hide one.
192
+ * A lost watch there is fatal; a recoverable failure during this generation requests a rescan.
193
+ */
194
+ private recheckErrors;
195
+ private flushErrors;
196
+ private emitDirectory;
197
+ }
198
+ export {};
@@ -0,0 +1,26 @@
1
+ /**
2
+ * The Vite releases the Vite engine supports: Vite 8 from 8.3.0, the release `@angular/build` 22.2
3
+ * itself runs on. The engine bundles a patched Analog 2.8.0 and relies on Vite's hot-update,
4
+ * watcher, optimizer and module-runner APIs, which are tested on this major; Vite 7 and earlier
5
+ * are refused.
6
+ *
7
+ * `ng-doc.viteEngine.vite` in `libs/builder/package.json`, which the setup schematics install, must
8
+ * equal it (a test compares them). The builder's optional `vite` peer dependency is wider, Analog's
9
+ * own peer range: before the migration adds `vite`, the Vite at the application's root is the one
10
+ * its `@angular/build` brings (7.3 for Angular 22.0, 8.1 for 22.1), and npm refuses to install a
11
+ * package whose peer range excludes it, even an optional one and even for the legacy engine, which
12
+ * never loads Vite. The check below enforces the range where it matters, when the Vite engine
13
+ * starts.
14
+ */
15
+ export declare const SUPPORTED_VITE_RANGE = "^8.3.0";
16
+ /**
17
+ * Whether a Vite version is inside {@link SUPPORTED_VITE_RANGE}. A prerelease of a supported
18
+ * release (8.4.0-beta.1) is accepted; one of 8.3.0 itself is not.
19
+ * @param version - The Vite version.
20
+ */
21
+ export declare function isSupportedViteVersion(version: string): boolean;
22
+ /**
23
+ * Fails when the Vite engine runs on a Vite outside {@link SUPPORTED_VITE_RANGE}.
24
+ * @param found - The running Vite's version; by default the one NgDoc resolves.
25
+ */
26
+ export declare function assertSupportedViteVersion(found?: string | undefined): void;
@@ -0,0 +1,39 @@
1
+ import type { BuildResult, FileChange, WatchInputs } from '../contracts.js';
2
+ export declare class WatchInputRegistry {
3
+ private readonly capacity;
4
+ private success?;
5
+ private failure?;
6
+ private effective;
7
+ private index;
8
+ private newestGeneration;
9
+ private readonly physical;
10
+ constructor(capacity: number);
11
+ started(generation: number): void;
12
+ isCurrent(generation: number): boolean;
13
+ /**
14
+ * `directories` lists the physical targets added for glob bases (existing directories); every
15
+ * other added target is a recorded file, present or missing.
16
+ */
17
+ observe(result: BuildResult): Promise<{
18
+ changed: boolean;
19
+ physicalAdded: string[];
20
+ directories: string[];
21
+ accepted: boolean;
22
+ }>;
23
+ /**
24
+ * A change matches a recorded file or glob base, an ancestor directory of one, or a glob member
25
+ * that is not excluded.
26
+ */
27
+ matches(change: FileChange): boolean;
28
+ /**
29
+ * True when a watcher problem at `target` can hide a change to a recorded input: the target
30
+ * matches like a change would, or lies below a glob base (a directory whose members can become
31
+ * inputs, whose own events do not match until a member does).
32
+ */
33
+ covers(target: string): boolean;
34
+ /** True when `target` lies at or below a recorded glob base (a watched input directory). */
35
+ underGlobBase(target: string): boolean;
36
+ snapshot(): WatchInputs;
37
+ physicalCount(): number;
38
+ confirmPhysical(targets: readonly string[]): void;
39
+ }
@@ -0,0 +1 @@
1
+ export {};