@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.
- package/README.md +19 -28
- package/application/index.js +7 -2
- package/application/index.js.map +1 -1
- package/application/schema.json +11 -4
- package/builders.json +23 -13
- package/classes/observable-map.d.ts +1 -0
- package/classes/observable-map.js +14 -3
- package/classes/observable-map.js.map +1 -1
- package/classes/observable-set.js +2 -1
- package/classes/observable-set.js.map +1 -1
- package/dev-server/index.js +5 -3
- package/dev-server/index.js.map +1 -1
- package/engine/build-ng-doc.js +1 -16
- package/engine/build-ng-doc.js.map +1 -1
- package/engine/builders/api-list/api-list-component.builder.js +4 -4
- package/engine/builders/api-list/api-list-component.builder.js.map +1 -1
- package/engine/builders/api-list/api-page-template.builder.js +2 -2
- package/engine/builders/api-list/api-page-template.builder.js.map +1 -1
- package/engine/builders/global/keywords.builder.d.ts +1 -4
- package/engine/builders/global/keywords.builder.js +5 -9
- package/engine/builders/global/keywords.builder.js.map +1 -1
- package/engine/builders/global/search-indexes.builder.js +1 -1
- package/engine/builders/global/search-indexes.builder.js.map +1 -1
- package/engine/builders/helpers/create-entry-metadata.js +2 -1
- package/engine/builders/helpers/create-entry-metadata.js.map +1 -1
- package/engine/builders/helpers/create-import-path.js.map +1 -1
- package/engine/builders/helpers/get-entry-relative-path.js.map +1 -1
- package/engine/builders/page/demo-assets.builder.js +8 -5
- package/engine/builders/page/demo-assets.builder.js.map +1 -1
- package/engine/builders/page/playground.builder.js +1 -0
- package/engine/builders/page/playground.builder.js.map +1 -1
- package/engine/builders/shared/content.builder.js +3 -3
- package/engine/builders/shared/content.builder.js.map +1 -1
- package/engine/builders/shared/entry.builder.js +1 -13
- package/engine/builders/shared/entry.builder.js.map +1 -1
- package/engine/builders/shared/page-component.builder.js +16 -6
- package/engine/builders/shared/page-component.builder.js.map +1 -1
- package/engine/builders/shared/page-wrapper.builder.js +8 -5
- package/engine/builders/shared/page-wrapper.builder.js.map +1 -1
- package/engine/core/operators/distinct-pending.js.map +1 -1
- package/engine/core/operators/entries-emitter.js +2 -6
- package/engine/core/operators/entries-emitter.js.map +1 -1
- package/engine/core/operators/factory.js +1 -4
- package/engine/core/operators/factory.js.map +1 -1
- package/engine/core/operators/merge-factory.js +19 -17
- package/engine/core/operators/merge-factory.js.map +1 -1
- package/engine/core/operators/when-builders-done.js.map +1 -1
- package/engine/core/stores/index.d.ts +0 -1
- package/engine/core/stores/index.js +0 -1
- package/engine/core/stores/index.js.map +1 -1
- package/engine/core/triggers/on-dependencies-change.d.ts +1 -1
- package/engine/core/triggers/on-dependencies-change.js +2 -2
- package/engine/core/triggers/on-dependencies-change.js.map +1 -1
- package/engine/core/watcher/watch.js +19 -1
- package/engine/core/watcher/watch.js.map +1 -1
- package/engine/variables.d.ts +1 -0
- package/engine/variables.js +1 -0
- package/engine/variables.js.map +1 -1
- package/generator/artifacts/index.d.ts +317 -0
- package/generator/bootstrap/bin.d.ts +18 -0
- package/generator/bootstrap/bin.js +7274 -0
- package/generator/bootstrap/candidate-output-committer.d.ts +12 -0
- package/generator/bootstrap/cli.d.ts +42 -0
- package/generator/bootstrap/cli.js +7123 -0
- package/generator/bootstrap/constants.d.ts +4 -0
- package/generator/bootstrap/index.d.ts +111 -0
- package/generator/bootstrap/index.js +5020 -0
- package/generator/bootstrap/prerender-command.d.ts +31 -0
- package/generator/bootstrap/process-tree.d.ts +49 -0
- package/generator/build-metafile.json +11701 -0
- package/generator/build-provenance.json +119 -0
- package/generator/compiler/assemble.d.ts +41 -0
- package/generator/compiler/classify.d.ts +161 -0
- package/generator/compiler/closure-store.d.ts +55 -0
- package/generator/compiler/common.d.ts +32 -0
- package/generator/compiler/describe.d.ts +21 -0
- package/generator/compiler/dry-run.d.ts +108 -0
- package/generator/compiler/fast-start.d.ts +104 -0
- package/generator/compiler/fold.d.ts +116 -0
- package/generator/compiler/index.d.ts +111 -0
- package/generator/compiler/index.js +17759 -0
- package/generator/compiler/link.d.ts +38 -0
- package/generator/compiler/memo.d.ts +44 -0
- package/generator/compiler/plan.d.ts +92 -0
- package/generator/compiler/progress.d.ts +54 -0
- package/generator/compiler/render.d.ts +27 -0
- package/generator/compiler/retention.d.ts +181 -0
- package/generator/compiler/semantic-closure.d.ts +46 -0
- package/generator/compiler/targeted.d.ts +280 -0
- package/generator/content/content-compiler.d.ts +118 -0
- package/generator/content/highlight-cache.d.ts +139 -0
- package/generator/content/html-pipeline.d.ts +170 -0
- package/generator/content/html-pool.d.ts +239 -0
- package/generator/content/html-worker.js +1598 -0
- package/generator/content-module-ids.d.ts +8 -0
- package/generator/contracts.d.ts +1063 -0
- package/generator/contracts.js +15 -0
- package/generator/discovery/index.d.ts +77 -0
- package/generator/graph/index.d.ts +211 -0
- package/generator/graph/unit-index.d.ts +216 -0
- package/generator/kernel/canonical.d.ts +57 -0
- package/generator/kernel/flags.d.ts +49 -0
- package/generator/kernel/footprint.d.ts +88 -0
- package/generator/kernel/observations.d.ts +68 -0
- package/generator/kernel/paths.d.ts +22 -0
- package/generator/kernel/runtime-identity.d.ts +11 -0
- package/generator/outputs/index.d.ts +67 -0
- package/generator/package.json +3 -0
- package/generator/progress/ci.d.ts +22 -0
- package/generator/progress/detect.d.ts +60 -0
- package/generator/progress/events.d.ts +126 -0
- package/generator/progress/format.d.ts +83 -0
- package/generator/progress/gate.d.ts +49 -0
- package/generator/progress/host.d.ts +29 -0
- package/generator/progress/lines.d.ts +42 -0
- package/generator/progress/live.d.ts +115 -0
- package/generator/progress/model.d.ts +85 -0
- package/generator/progress/reporter.d.ts +87 -0
- package/generator/progress/settings.d.ts +60 -0
- package/generator/semantic/angular.d.ts +9 -0
- package/generator/semantic/api-enumeration.d.ts +19 -0
- package/generator/semantic/api-summary.d.ts +33 -0
- package/generator/semantic/dependencies.d.ts +20 -0
- package/generator/semantic/derived-classes.d.ts +58 -0
- package/generator/semantic/documentation-cache.d.ts +23 -0
- package/generator/semantic/fragments.d.ts +28 -0
- package/generator/semantic/owned-roots.d.ts +59 -0
- package/generator/semantic/program-builder.d.ts +55 -0
- package/generator/semantic/program-index.d.ts +124 -0
- package/generator/semantic/program-inputs.d.ts +26 -0
- package/generator/semantic/program-observations.d.ts +158 -0
- package/generator/semantic/program-retention.d.ts +147 -0
- package/generator/semantic/program-state.d.ts +196 -0
- package/generator/semantic/program-verify.d.ts +22 -0
- package/generator/semantic/recorder.d.ts +89 -0
- package/generator/semantic/rendering.d.ts +34 -0
- package/generator/semantic/semantic-closure.d.ts +129 -0
- package/generator/semantic/semantic-service.d.ts +186 -0
- package/generator/semantic/type-text.d.ts +5 -0
- package/generator/session/build-session.d.ts +206 -0
- package/generator/session/input-verification.d.ts +38 -0
- package/generator/session/parcel-event-source.d.ts +22 -0
- package/generator/session/progress.d.ts +72 -0
- package/generator/session/unchanged-saves.d.ts +63 -0
- package/generator/session/watch-inputs.d.ts +6 -0
- package/generator/session/watch-signals.d.ts +10 -0
- package/generator/templates/api/base.html.nunj +26 -0
- package/generator/templates/api/class-declaration.html.nunj +57 -0
- package/generator/templates/api/details/class-declaration.html.nunj +47 -0
- package/generator/templates/api/details/enum-declaration.html.nunj +0 -0
- package/generator/templates/api/details/function-declaration.html.nunj +14 -0
- package/generator/templates/api/details/helpers/decorators.html.nunj +14 -0
- package/generator/templates/api/details/helpers/extends.html.nunj +6 -0
- package/generator/templates/api/details/helpers/selectors.html.nunj +12 -0
- package/generator/templates/api/details/helpers/type-parameters.html.nunj +14 -0
- package/generator/templates/api/details/interface-declaration.html.nunj +27 -0
- package/generator/templates/api/details/type-alias-declaration.html.nunj +14 -0
- package/generator/templates/api/details/variable-declaration.html.nunj +0 -0
- package/generator/templates/api/details.html.nunj +9 -0
- package/generator/templates/api/enum-declaration.html.nunj +12 -0
- package/generator/templates/api/function-declaration.html.nunj +35 -0
- package/generator/templates/api/interface-declaration.html.nunj +37 -0
- package/generator/templates/api/type-alias-declaration.html.nunj +16 -0
- package/generator/templates/api/variable-declaration.html.nunj +8 -0
- package/generator/templates/api-header.html.nunj +11 -0
- package/generator/templates/api-list.ts.nunj +22 -0
- package/generator/templates/api-page-content.html.nunj +1 -0
- package/generator/templates/api-scope.ts.nunj +22 -0
- package/generator/templates/category.ts.nunj +22 -0
- package/generator/templates/code.html.nunj +3 -0
- package/generator/templates/context.ts.nunj +55 -0
- package/generator/templates/demo-assets.ts.nunj +25 -0
- package/generator/templates/helpers/accessor.html.nunj +76 -0
- package/generator/templates/helpers/accessors.html.nunj +7 -0
- package/generator/templates/helpers/badge.html.nunj +4 -0
- package/generator/templates/helpers/call-signature.html.nunj +70 -0
- package/generator/templates/helpers/code.html.nunj +3 -0
- package/generator/templates/helpers/constructor.html.nunj +32 -0
- package/generator/templates/helpers/declaration-modifiers.html.nunj +45 -0
- package/generator/templates/helpers/decorators.html.nunj +11 -0
- package/generator/templates/helpers/members.html.nunj +29 -0
- package/generator/templates/helpers/method.html.nunj +89 -0
- package/generator/templates/helpers/methods.html.nunj +7 -0
- package/generator/templates/helpers/modifier.html.nunj +4 -0
- package/generator/templates/helpers/no-content.html.nunj +3 -0
- package/generator/templates/helpers/overload.html.nunj +57 -0
- package/generator/templates/helpers/parameters.html.nunj +44 -0
- package/generator/templates/helpers/properties.html.nunj +61 -0
- package/generator/templates/helpers/status.html.nunj +33 -0
- package/generator/templates/helpers/tag.html.nunj +4 -0
- package/generator/templates/helpers/type.html.nunj +11 -0
- package/generator/templates/index.ts.nunj +2 -0
- package/generator/templates/page-header.html.nunj +5 -0
- package/generator/templates/page-wrapper.ts.nunj +64 -0
- package/generator/templates/page.ts.nunj +97 -0
- package/generator/templates/parts/examples.html.nunj +11 -0
- package/generator/templates/parts/member-examples.html.nunj +12 -0
- package/generator/templates/parts/member-remarks.html.nunj +8 -0
- package/generator/templates/parts/page-tags.html.nunj +10 -0
- package/generator/templates/parts/remarks.html.nunj +10 -0
- package/generator/templates/parts/see-also.html.nunj +23 -0
- package/generator/templates/parts/usage-notes.html.nunj +8 -0
- package/generator/templates/playgrounds.ts.nunj +63 -0
- package/generator/templates/routes.ts.nunj +49 -0
- package/generator/templates/symbol/decorators.html.nunj +12 -0
- package/generator/templates/symbol/details.html.nunj +62 -0
- package/generator/templates/symbol/extended-by.html.nunj +17 -0
- package/generator/templates/symbol/header.html.nunj +22 -0
- package/generator/templates/symbol/members.html.nunj +301 -0
- package/generator/templates/symbol/page.html.nunj +76 -0
- package/generator/templates/symbol/see-also.html.nunj +16 -0
- package/generator/vite/angular/ANALOG-LICENSE +21 -0
- package/generator/vite/angular/analog-provenance.json +880 -0
- package/generator/vite/angular/index.d.ts +14 -0
- package/generator/vite/angular/index.js +7300 -0
- package/generator/vite/angular-compatibility.d.ts +6 -0
- package/generator/vite/angular-composition.d.ts +68 -0
- package/generator/vite/angular-version.d.ts +38 -0
- package/generator/vite/application-builder.js +331 -0
- package/generator/vite/application-builder.schema.json +46 -0
- package/generator/vite/application.d.ts +91 -0
- package/generator/vite/assets.d.ts +11 -0
- package/generator/vite/bounded-close.d.ts +33 -0
- package/generator/vite/component-updates.d.ts +21 -0
- package/generator/vite/configuration.d.ts +3 -0
- package/generator/vite/dev-server-builder.js +334 -0
- package/generator/vite/dev-server-builder.schema.json +27 -0
- package/generator/vite/dev-styles.d.ts +65 -0
- package/generator/vite/diagnostics.d.ts +4 -0
- package/generator/vite/external-probes.d.ts +40 -0
- package/generator/vite/host-updates.d.ts +145 -0
- package/generator/vite/index.d.ts +13 -0
- package/generator/vite/index.js +11589 -0
- package/generator/vite/lease.d.ts +6 -0
- package/generator/vite/lifecycle.d.ts +119 -0
- package/generator/vite/mime.d.ts +2 -0
- package/generator/vite/missing-paths.d.ts +44 -0
- package/generator/vite/options.d.ts +87 -0
- package/generator/vite/output-watch.d.ts +41 -0
- package/generator/vite/paths.d.ts +7 -0
- package/generator/vite/plugin.d.ts +3 -0
- package/generator/vite/prerender-entry.js +395 -0
- package/generator/vite/prerender-runtime.d.ts +66 -0
- package/generator/vite/prerender.d.ts +27 -0
- package/generator/vite/production.d.ts +66 -0
- package/generator/vite/progress.d.ts +33 -0
- package/generator/vite/restore-theme.js +13 -0
- package/generator/vite/route-inventory.d.ts +24 -0
- package/generator/vite/ssr-renderer-control.d.ts +1 -0
- package/generator/vite/ssr-renderer-entry.js +444 -0
- package/generator/vite/ssr-renderer-protocol.d.ts +101 -0
- package/generator/vite/ssr-renderer.d.ts +74 -0
- package/generator/vite/theme-index.d.ts +13 -0
- package/generator/vite/tsconfig-paths.d.ts +64 -0
- package/generator/vite/vite-event-source.d.ts +198 -0
- package/generator/vite/vite-version.d.ts +26 -0
- package/generator/vite/watch-inputs.d.ts +39 -0
- package/generator/worker/entry.d.ts +1 -0
- package/generator/worker/entry.js +614 -0
- package/generator/worker/index.d.ts +156 -0
- package/generator/worker/index.js +1030 -0
- package/generator/worker/protocol.d.ts +160 -0
- package/helpers/angular/get-component-decorator.js +6 -6
- package/helpers/angular/get-component-decorator.js.map +1 -1
- package/helpers/angular/get-directive-decorator.js +3 -3
- package/helpers/angular/get-directive-decorator.js.map +1 -1
- package/helpers/angular/get-pipe-decorator.js +3 -3
- package/helpers/angular/get-pipe-decorator.js.map +1 -1
- package/helpers/build-indexes.js +5 -2
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/construct-page-keyword.js +2 -1
- package/helpers/construct-page-keyword.js.map +1 -1
- package/helpers/extract-selectors.d.ts +1 -1
- package/helpers/extract-selectors.js +5 -3
- package/helpers/extract-selectors.js.map +1 -1
- package/helpers/filter-useless-members.d.ts +1 -1
- package/helpers/format-code.d.ts +2 -1
- package/helpers/format-code.js +13 -4
- package/helpers/format-code.js.map +1 -1
- package/helpers/import-fresh-esm.js.map +1 -1
- package/helpers/index.d.ts +2 -0
- package/helpers/index.js +2 -0
- package/helpers/index.js.map +1 -1
- package/helpers/keyword-heading-title.d.ts +7 -0
- package/helpers/keyword-heading-title.js +21 -0
- package/helpers/keyword-heading-title.js.map +1 -0
- package/helpers/markdown-to-html.js +3 -3
- package/helpers/markdown-to-html.js.map +1 -1
- package/helpers/navigation-title-order.d.ts +8 -0
- package/helpers/navigation-title-order.js +15 -0
- package/helpers/navigation-title-order.js.map +1 -0
- package/helpers/playground/get-playground-inputs.js +8 -4
- package/helpers/playground/get-playground-inputs.js.map +1 -1
- package/helpers/playground/get-playground-template-inputs.js +2 -1
- package/helpers/playground/get-playground-template-inputs.js.map +1 -1
- package/helpers/presentation.d.ts +7 -7
- package/helpers/presentation.js +23 -23
- package/helpers/presentation.js.map +1 -1
- package/helpers/print.js +32 -5
- package/helpers/print.js.map +1 -1
- package/helpers/process-snippets.d.ts +1 -1
- package/helpers/process-snippets.js +3 -3
- package/helpers/process-snippets.js.map +1 -1
- package/helpers/snippets-from-asset.d.ts +1 -1
- package/helpers/snippets-from-asset.js +2 -2
- package/helpers/snippets-from-asset.js.map +1 -1
- package/helpers/sort-navigation-entities.js +2 -1
- package/helpers/sort-navigation-entities.js.map +1 -1
- package/helpers/stable-generated-id.d.ts +2 -0
- package/helpers/stable-generated-id.js +12 -0
- package/helpers/stable-generated-id.js.map +1 -0
- package/helpers/text-order.d.ts +8 -0
- package/helpers/text-order.js +26 -0
- package/helpers/text-order.js.map +1 -0
- package/helpers/typescript/member/get-inherited-parent.d.ts +1 -1
- package/helpers/typescript/member/get-inherited-parent.js +2 -2
- package/helpers/typescript/member/get-inherited-parent.js.map +1 -1
- package/helpers/typescript/node/sort-by-nodes-name.d.ts +4 -2
- package/helpers/typescript/node/sort-by-nodes-name.js +6 -3
- package/helpers/typescript/node/sort-by-nodes-name.js.map +1 -1
- package/helpers/typescript/property/get-property-assignment.js.map +1 -1
- package/interfaces/schema.d.ts +1 -0
- package/package.json +87 -30
- package/parsers/helpers/number.d.ts +1 -1
- package/parsers/helpers/number.js +2 -2
- package/parsers/helpers/number.js.map +1 -1
- package/parsers/helpers/param-value.d.ts +1 -1
- package/parsers/helpers/param-value.js +2 -2
- package/parsers/helpers/param-value.js.map +1 -1
- package/parsers/helpers/param.js +3 -3
- package/parsers/helpers/param.js.map +1 -1
- package/parsers/parse-code-block-params.d.ts +1 -1
- package/parsers/parse-code-block-params.js +22 -16
- package/parsers/parse-code-block-params.js.map +1 -1
- package/parsers/parse-snippet.js +10 -10
- package/parsers/parse-snippet.js.map +1 -1
- package/schematics/collection.json +34 -23
- package/schematics/migrate-to-vite/analyze.d.ts +76 -0
- package/schematics/migrate-to-vite/analyze.js +816 -0
- package/schematics/migrate-to-vite/analyze.js.map +1 -0
- package/schematics/migrate-to-vite/index.d.ts +9 -0
- package/schematics/migrate-to-vite/index.js +585 -0
- package/schematics/migrate-to-vite/index.js.map +1 -0
- package/schematics/migrate-to-vite/legacy-folder.d.ts +84 -0
- package/schematics/migrate-to-vite/legacy-folder.js +340 -0
- package/schematics/migrate-to-vite/legacy-folder.js.map +1 -0
- package/schematics/migrate-to-vite/report.d.ts +32 -0
- package/schematics/migrate-to-vite/report.js +97 -0
- package/schematics/migrate-to-vite/report.js.map +1 -0
- package/schematics/migrate-to-vite/schema.d.ts +13 -0
- package/schematics/migrate-to-vite/schema.js +3 -0
- package/schematics/migrate-to-vite/schema.js.map +1 -0
- package/schematics/migrate-to-vite/schema.json +31 -0
- package/schematics/migrate-to-vite/setup/dependencies.d.ts +64 -0
- package/schematics/migrate-to-vite/setup/dependencies.js +183 -0
- package/schematics/migrate-to-vite/setup/dependencies.js.map +1 -0
- package/schematics/migrate-to-vite/setup/index.d.ts +6 -0
- package/schematics/migrate-to-vite/setup/index.js +13 -0
- package/schematics/migrate-to-vite/setup/index.js.map +1 -0
- package/schematics/migrate-to-vite/setup/json-file.d.ts +51 -0
- package/schematics/migrate-to-vite/setup/json-file.js +115 -0
- package/schematics/migrate-to-vite/setup/json-file.js.map +1 -0
- package/schematics/migrate-to-vite/setup/source.d.ts +30 -0
- package/schematics/migrate-to-vite/setup/source.js +202 -0
- package/schematics/migrate-to-vite/setup/source.js.map +1 -0
- package/schematics/migrate-to-vite/setup/targets.d.ts +51 -0
- package/schematics/migrate-to-vite/setup/targets.js +48 -0
- package/schematics/migrate-to-vite/setup/targets.js.map +1 -0
- package/schematics/migrate-to-vite/setup/vite-config.d.ts +100 -0
- package/schematics/migrate-to-vite/setup/vite-config.js +175 -0
- package/schematics/migrate-to-vite/setup/vite-config.js.map +1 -0
- package/schematics/migrate-to-vite/setup/workspace.d.ts +100 -0
- package/schematics/migrate-to-vite/setup/workspace.js +225 -0
- package/schematics/migrate-to-vite/setup/workspace.js.map +1 -0
- package/schematics/migrate-to-vite/state.d.ts +65 -0
- package/schematics/migrate-to-vite/state.js +92 -0
- package/schematics/migrate-to-vite/state.js.map +1 -0
- package/schematics/migrate-to-vite/testing/fixtures.d.ts +18 -0
- package/schematics/migrate-to-vite/testing/fixtures.js +279 -0
- package/schematics/migrate-to-vite/testing/fixtures.js.map +1 -0
- package/schematics/migrate-to-vite/update-note.d.ts +6 -0
- package/schematics/migrate-to-vite/update-note.js +23 -0
- package/schematics/migrate-to-vite/update-note.js.map +1 -0
- package/schematics/migration.json +5 -0
- package/schematics/migrations/standalone-pages/index.js +7 -6
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/schematics/vite-setup/index.d.ts +20 -0
- package/schematics/vite-setup/index.js +206 -0
- package/schematics/vite-setup/index.js.map +1 -0
- package/schematics/vite-setup/schema.d.ts +7 -0
- package/schematics/vite-setup/schema.js +3 -0
- package/schematics/vite-setup/schema.js.map +1 -0
- package/schematics/vite-setup/schema.json +19 -0
- package/scripts/restore-theme.js +9 -2
- package/templates/context.ts.nunj +3 -0
- package/templates/helpers/badge.html.nunj +1 -1
- package/templates/helpers/status.html.nunj +4 -8
- package/templates/page-wrapper.ts.nunj +24 -1
- package/templates/page.ts.nunj +25 -0
- package/templates/parts/page-tags.html.nunj +1 -1
- package/templates/playgrounds.ts.nunj +8 -9
- package/templates/routes.ts.nunj +6 -1
- package/templates/symbol/decorators.html.nunj +12 -0
- package/templates/symbol/details.html.nunj +62 -0
- package/templates/symbol/extended-by.html.nunj +17 -0
- package/templates/symbol/header.html.nunj +22 -0
- package/templates/symbol/members.html.nunj +301 -0
- package/templates/symbol/page.html.nunj +76 -0
- package/templates/symbol/see-also.html.nunj +16 -0
- package/engine/.cache/apps/ng-doc/docs/api-documentation/auto-generation/ng-doc.page.mjs +0 -20
- package/engine/.cache/apps/ng-doc/docs/api-documentation/documenting-declarations/ng-doc.page.mjs +0 -20
- package/engine/.cache/apps/ng-doc/docs/api-documentation/rendering-api/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/icons/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/layout/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/page-processors/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/page-skeleton/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/search/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/customization/themes/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/develop/ng-doc.page.mjs +0 -36
- package/engine/.cache/apps/ng-doc/docs/getting-started/configuration/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/getting-started/installation/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/getting-started/migrations/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/getting-started/ssr/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/getting-started/what-is-ng-doc/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/ng-doc.api.mjs +0 -42
- package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/recipes/performance/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/writing-content/blockquotes/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/code-blocks/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/demo-and-demo-pane/ng-doc.page.mjs +0 -19
- package/engine/.cache/apps/ng-doc/docs/writing-content/images-videos-and-embeds/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/keywords/ng-doc.page.mjs +0 -17
- package/engine/.cache/apps/ng-doc/docs/writing-content/mermaid-diagrams/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/nunjucks/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/pages-and-categories/ng-doc.page.mjs +0 -18
- package/engine/.cache/apps/ng-doc/docs/writing-content/playground/ng-doc.page.mjs +0 -33
- package/engine/core/stores/entry-status.d.ts +0 -23
- package/engine/core/stores/entry-status.js +0 -36
- 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;
|