@ng-doc/builder 17.6.16 → 18.0.0-beta.2
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/application/index.js +13 -16
- package/application/index.js.map +1 -1
- package/classes/index.d.ts +1 -0
- package/classes/index.js +1 -0
- package/classes/index.js.map +1 -1
- package/classes/observable-map.d.ts +17 -0
- package/classes/observable-map.js +48 -0
- package/classes/observable-map.js.map +1 -0
- package/classes/observable-set.d.ts +4 -1
- package/classes/observable-set.js +9 -3
- package/classes/observable-set.js.map +1 -1
- package/dev-server/index.js +9 -6
- package/dev-server/index.js.map +1 -1
- package/dev-server/patch-builder-context.js +8 -9
- package/dev-server/patch-builder-context.js.map +1 -1
- package/engine/.cache/apps/ng-doc/docs/api-documentation/auto-generation/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/api-documentation/documenting-declarations/ng-doc.page.mjs +20 -0
- package/engine/.cache/apps/ng-doc/docs/api-documentation/rendering-api/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/icons/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/layout/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/page-processors/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/page-skeleton/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/search/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/customization/themes/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/develop/ng-doc.page.mjs +36 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/configuration/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/installation/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/migrations/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/ssr/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/getting-started/what-is-ng-doc/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/ng-doc.api.mjs +42 -0
- package/engine/.cache/apps/ng-doc/docs/recipes/ignoring-file-lines/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/recipes/performance/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/blockquotes/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/code-blocks/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/demo-and-demo-pane/ng-doc.page.mjs +19 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/images-videos-and-embeds/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/keywords/ng-doc.page.mjs +17 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/mermaid-diagrams/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/nunjucks/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/pages-and-categories/ng-doc.page.mjs +18 -0
- package/engine/.cache/apps/ng-doc/docs/writing-content/playground/ng-doc.page.mjs +33 -0
- package/engine/build-ng-doc.d.ts +2 -3
- package/engine/build-ng-doc.js +25 -47
- package/engine/build-ng-doc.js.map +1 -1
- package/engine/builders/api-list/api-list-component.builder.d.ts +13 -0
- package/engine/builders/api-list/api-list-component.builder.js +27 -0
- package/engine/builders/api-list/api-list-component.builder.js.map +1 -0
- package/engine/builders/api-list/api-list.builder.d.ts +17 -0
- package/engine/builders/api-list/api-list.builder.js +42 -0
- package/engine/builders/api-list/api-list.builder.js.map +1 -0
- package/engine/builders/api-list/api-page-template.builder.d.ts +18 -0
- package/engine/builders/api-list/api-page-template.builder.js +67 -0
- package/engine/builders/api-list/api-page-template.builder.js.map +1 -0
- package/engine/builders/api-list/index.d.ts +10 -0
- package/engine/builders/api-list/index.js +63 -0
- package/engine/builders/api-list/index.js.map +1 -0
- package/engine/builders/api-list/keywords/build-api-keywords.d.ts +7 -0
- package/engine/builders/api-list/keywords/build-api-keywords.js +28 -0
- package/engine/builders/api-list/keywords/build-api-keywords.js.map +1 -0
- package/engine/builders/api-list/keywords/get-api-anchor-keywords.d.ts +8 -0
- package/engine/builders/api-list/keywords/get-api-anchor-keywords.js +27 -0
- package/engine/builders/api-list/keywords/get-api-anchor-keywords.js.map +1 -0
- package/engine/builders/api-list/keywords/get-pipe-keywords.d.ts +7 -0
- package/engine/builders/api-list/keywords/get-pipe-keywords.js +20 -0
- package/engine/builders/api-list/keywords/get-pipe-keywords.js.map +1 -0
- package/engine/builders/api-list/keywords/get-selector-keywords.d.ts +7 -0
- package/engine/builders/api-list/keywords/get-selector-keywords.js +38 -0
- package/engine/builders/api-list/keywords/get-selector-keywords.js.map +1 -0
- package/engine/builders/api-list/render-api-header.d.ts +10 -0
- package/engine/builders/api-list/render-api-header.js +24 -0
- package/engine/builders/api-list/render-api-header.js.map +1 -0
- package/engine/builders/global/context-and-routes.builder.d.ts +16 -0
- package/engine/builders/global/context-and-routes.builder.js +61 -0
- package/engine/builders/global/context-and-routes.builder.js.map +1 -0
- package/engine/builders/global/index.builder.d.ts +8 -0
- package/engine/builders/global/index.builder.js +24 -0
- package/engine/builders/global/index.builder.js.map +1 -0
- package/engine/builders/global/index.d.ts +7 -0
- package/engine/builders/global/index.js +16 -0
- package/engine/builders/global/index.js.map +1 -0
- package/engine/builders/global/keywords.builder.d.ts +7 -0
- package/engine/builders/global/keywords.builder.js +23 -0
- package/engine/builders/global/keywords.builder.js.map +1 -0
- package/engine/builders/global/search-indexes.builder.d.ts +7 -0
- package/engine/builders/global/search-indexes.builder.js +20 -0
- package/engine/builders/global/search-indexes.builder.js.map +1 -0
- package/engine/builders/helpers/create-declaration-metadata.d.ts +12 -0
- package/engine/builders/helpers/create-declaration-metadata.js +58 -0
- package/engine/builders/helpers/create-declaration-metadata.js.map +1 -0
- package/engine/builders/helpers/create-declaration-tab-metadata.d.ts +16 -0
- package/engine/builders/helpers/create-declaration-tab-metadata.js +31 -0
- package/engine/builders/helpers/create-declaration-tab-metadata.js.map +1 -0
- package/engine/builders/helpers/create-entry-metadata.d.ts +10 -0
- package/engine/builders/helpers/create-entry-metadata.js +72 -0
- package/engine/builders/helpers/create-entry-metadata.js.map +1 -0
- package/engine/builders/helpers/create-import-path.d.ts +7 -0
- package/engine/builders/helpers/create-import-path.js +19 -0
- package/engine/builders/helpers/create-import-path.js.map +1 -0
- package/engine/builders/helpers/create-markdown-metadata.d.ts +8 -0
- package/engine/builders/helpers/create-markdown-metadata.js +32 -0
- package/engine/builders/helpers/create-markdown-metadata.js.map +1 -0
- package/engine/builders/helpers/get-category-source-file.d.ts +7 -0
- package/engine/builders/helpers/get-category-source-file.js +31 -0
- package/engine/builders/helpers/get-category-source-file.js.map +1 -0
- package/engine/builders/helpers/get-entry-out-dir.d.ts +9 -0
- package/engine/builders/helpers/get-entry-out-dir.js +25 -0
- package/engine/builders/helpers/get-entry-out-dir.js.map +1 -0
- package/engine/builders/helpers/get-entry-relative-path.d.ts +6 -0
- package/engine/builders/helpers/get-entry-relative-path.js +16 -0
- package/engine/builders/helpers/get-entry-relative-path.js.map +1 -0
- package/engine/builders/helpers/get-entry-route.d.ts +7 -0
- package/engine/builders/helpers/get-entry-route.js +23 -0
- package/engine/builders/helpers/get-entry-route.js.map +1 -0
- package/engine/builders/helpers/get-playground-metadata.d.ts +9 -0
- package/engine/builders/helpers/get-playground-metadata.js +40 -0
- package/engine/builders/helpers/get-playground-metadata.js.map +1 -0
- package/engine/builders/helpers/get-scoped-keyword.d.ts +8 -0
- package/engine/builders/helpers/get-scoped-keyword.js +19 -0
- package/engine/builders/helpers/get-scoped-keyword.js.map +1 -0
- package/engine/builders/helpers/get-structured-docs.d.ts +11 -0
- package/engine/builders/helpers/get-structured-docs.js +55 -0
- package/engine/builders/helpers/get-structured-docs.js.map +1 -0
- package/engine/builders/helpers/get-variable-statement-from-object-literal-expression.d.ts +6 -0
- package/engine/builders/helpers/get-variable-statement-from-object-literal-expression.js +19 -0
- package/engine/builders/helpers/get-variable-statement-from-object-literal-expression.js.map +1 -0
- package/engine/builders/helpers/index.d.ts +14 -0
- package/engine/builders/helpers/index.js +18 -0
- package/engine/builders/helpers/index.js.map +1 -0
- package/engine/builders/helpers/markdown-front-matter.d.ts +8 -0
- package/engine/builders/helpers/markdown-front-matter.js +14 -0
- package/engine/builders/helpers/markdown-front-matter.js.map +1 -0
- package/engine/builders/index.d.ts +4 -0
- package/engine/builders/index.js +8 -0
- package/engine/builders/index.js.map +1 -0
- package/engine/builders/interfaces/entry-metadata.d.ts +32 -0
- package/engine/builders/interfaces/entry-metadata.js +13 -0
- package/engine/builders/interfaces/entry-metadata.js.map +1 -0
- package/engine/builders/interfaces/entry.d.ts +23 -0
- package/engine/builders/interfaces/entry.js +23 -0
- package/engine/builders/interfaces/entry.js.map +1 -0
- package/engine/builders/interfaces/index.d.ts +4 -0
- package/engine/builders/interfaces/index.js +8 -0
- package/engine/builders/interfaces/index.js.map +1 -0
- package/engine/builders/interfaces/markdown-entry.d.ts +21 -0
- package/engine/{entities/plugins/types/entity-plugin.js → builders/interfaces/markdown-entry.js} +1 -1
- package/engine/builders/interfaces/markdown-entry.js.map +1 -0
- package/engine/builders/interfaces/template-builder-output.d.ts +8 -0
- package/engine/builders/interfaces/template-builder-output.js +3 -0
- package/engine/builders/interfaces/template-builder-output.js.map +1 -0
- package/engine/builders/page/demo-assets.builder.d.ts +20 -0
- package/engine/builders/page/demo-assets.builder.js +74 -0
- package/engine/builders/page/demo-assets.builder.js.map +1 -0
- package/engine/builders/page/guide-template.builder.d.ts +17 -0
- package/engine/builders/page/guide-template.builder.js +71 -0
- package/engine/builders/page/guide-template.builder.js.map +1 -0
- package/engine/builders/page/index.d.ts +11 -0
- package/engine/builders/page/index.js +39 -0
- package/engine/builders/page/index.js.map +1 -0
- package/engine/builders/page/keywords/build-guide-keywords.d.ts +7 -0
- package/engine/builders/page/keywords/build-guide-keywords.js +25 -0
- package/engine/builders/page/keywords/build-guide-keywords.js.map +1 -0
- package/engine/builders/page/keywords/get-page-anchor-keywords.d.ts +8 -0
- package/engine/builders/page/keywords/get-page-anchor-keywords.js +27 -0
- package/engine/builders/page/keywords/get-page-anchor-keywords.js.map +1 -0
- package/engine/builders/page/playground.builder.d.ts +13 -0
- package/engine/builders/page/playground.builder.js +45 -0
- package/engine/builders/page/playground.builder.js.map +1 -0
- package/engine/builders/page/render-page-header.d.ts +13 -0
- package/engine/builders/page/render-page-header.js +20 -0
- package/engine/builders/page/render-page-header.js.map +1 -0
- package/engine/builders/shared/content.builder.d.ts +21 -0
- package/engine/builders/shared/content.builder.js +84 -0
- package/engine/builders/shared/content.builder.js.map +1 -0
- package/engine/builders/shared/entry.builder.d.ts +20 -0
- package/engine/builders/shared/entry.builder.js +45 -0
- package/engine/builders/shared/entry.builder.js.map +1 -0
- package/engine/builders/shared/index.d.ts +3 -0
- package/engine/builders/shared/index.js +7 -0
- package/engine/builders/shared/index.js.map +1 -0
- package/engine/builders/shared/page-component.builder.d.ts +22 -0
- package/engine/builders/shared/page-component.builder.js +64 -0
- package/engine/builders/shared/page-component.builder.js.map +1 -0
- package/engine/builders/shared/page-wrapper.builder.d.ts +18 -0
- package/engine/builders/shared/page-wrapper.builder.js +84 -0
- package/engine/builders/shared/page-wrapper.builder.js.map +1 -0
- package/engine/{entities/cache → cache}/cache.js +3 -6
- package/engine/cache/cache.js.map +1 -0
- package/engine/{entities/cache → cache}/cached-files-initializer.js +1 -2
- package/engine/cache/cached-files-initializer.js.map +1 -0
- package/engine/{entities/cache → cache}/cached-props-initializer.js +3 -4
- package/engine/cache/cached-props-initializer.js.map +1 -0
- package/engine/{entities/cache → cache}/decorators/cached-entity.js +5 -6
- package/engine/cache/decorators/cached-entity.js.map +1 -0
- package/engine/cache/decorators/cached-files-getter.js.map +1 -0
- package/engine/cache/decorators/cached-property.js.map +1 -0
- package/engine/cache/decorators/index.js.map +1 -0
- package/engine/cache/helpers/create-cache-for-file.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/create-cache.d.ts +3 -2
- package/engine/{entities/cache → cache}/helpers/create-cache.js +5 -4
- package/engine/cache/helpers/create-cache.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/get-cache-dir-path.js +2 -3
- package/engine/cache/helpers/get-cache-dir-path.js.map +1 -0
- package/engine/cache/helpers/get-cache-file-path.js.map +1 -0
- package/engine/cache/helpers/index.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/invalidate-cache-if-needed.js +1 -1
- package/engine/cache/helpers/invalidate-cache-if-needed.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/is-cache-valid.js +2 -3
- package/engine/cache/helpers/is-cache-valid.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/load-cache.d.ts +1 -1
- package/engine/cache/helpers/load-cache.js.map +1 -0
- package/engine/{entities/cache → cache}/helpers/update-cache.d.ts +1 -1
- package/engine/cache/helpers/update-cache.js.map +1 -0
- package/engine/cache/index.js.map +1 -0
- package/engine/cache/interfaces/cache-accessor.js.map +1 -0
- package/engine/cache/interfaces/cached-data.d.ts +6 -0
- package/engine/cache/interfaces/cached-data.js.map +1 -0
- package/engine/cache/interfaces/index.js.map +1 -0
- package/engine/core/index.d.ts +6 -0
- package/engine/core/index.js +10 -0
- package/engine/core/index.js.map +1 -0
- package/engine/core/operators/builder-state.d.ts +13 -0
- package/engine/core/operators/builder-state.js +20 -0
- package/engine/core/operators/builder-state.js.map +1 -0
- package/engine/core/operators/create-builder.d.ts +10 -0
- package/engine/core/operators/create-builder.js +32 -0
- package/engine/core/operators/create-builder.js.map +1 -0
- package/engine/core/operators/distinct-pending.d.ts +6 -0
- package/engine/core/operators/distinct-pending.js +12 -0
- package/engine/core/operators/distinct-pending.js.map +1 -0
- package/engine/core/operators/emit-cache.d.ts +17 -0
- package/engine/core/operators/emit-cache.js +31 -0
- package/engine/core/operators/emit-cache.js.map +1 -0
- package/engine/core/operators/emit-file-output.d.ts +7 -0
- package/engine/core/operators/emit-file-output.js +36 -0
- package/engine/core/operators/emit-file-output.js.map +1 -0
- package/engine/core/operators/entries-emitter.d.ts +8 -0
- package/engine/core/operators/entries-emitter.js +37 -0
- package/engine/core/operators/entries-emitter.js.map +1 -0
- package/engine/core/operators/factory.d.ts +12 -0
- package/engine/core/operators/factory.js +54 -0
- package/engine/core/operators/factory.js.map +1 -0
- package/engine/core/operators/handle-cache-strategy.d.ts +16 -0
- package/engine/core/operators/handle-cache-strategy.js +61 -0
- package/engine/core/operators/handle-cache-strategy.js.map +1 -0
- package/engine/core/operators/index.d.ts +16 -0
- package/engine/core/operators/index.js +20 -0
- package/engine/core/operators/index.js.map +1 -0
- package/engine/core/operators/join-builder-states.d.ts +9 -0
- package/engine/core/operators/join-builder-states.js +29 -0
- package/engine/core/operators/join-builder-states.js.map +1 -0
- package/engine/core/operators/merge-factory.d.ts +14 -0
- package/engine/core/operators/merge-factory.js +38 -0
- package/engine/core/operators/merge-factory.js.map +1 -0
- package/engine/core/operators/print-build-progress.d.ts +5 -0
- package/engine/core/operators/print-build-progress.js +16 -0
- package/engine/core/operators/print-build-progress.js.map +1 -0
- package/engine/core/operators/print-errors.d.ts +6 -0
- package/engine/core/operators/print-errors.js +17 -0
- package/engine/core/operators/print-errors.js.map +1 -0
- package/engine/core/operators/resolve-async-file-outputs.d.ts +6 -0
- package/engine/core/operators/resolve-async-file-outputs.js +29 -0
- package/engine/core/operators/resolve-async-file-outputs.js.map +1 -0
- package/engine/core/operators/run-build.d.ts +10 -0
- package/engine/core/operators/run-build.js +22 -0
- package/engine/core/operators/run-build.js.map +1 -0
- package/engine/core/operators/stack.d.ts +27 -0
- package/engine/core/operators/stack.js +78 -0
- package/engine/core/operators/stack.js.map +1 -0
- package/engine/core/operators/when-builders-done.d.ts +9 -0
- package/engine/core/operators/when-builders-done.js +21 -0
- package/engine/core/operators/when-builders-done.js.map +1 -0
- package/engine/core/operators/when-done.d.ts +20 -0
- package/engine/core/operators/when-done.js +40 -0
- package/engine/core/operators/when-done.js.map +1 -0
- package/engine/core/stores/api.d.ts +2 -0
- package/engine/core/stores/api.js +6 -0
- package/engine/core/stores/api.js.map +1 -0
- package/engine/core/stores/index-store.d.ts +3 -0
- package/engine/core/stores/index-store.js +6 -0
- package/engine/core/stores/index-store.js.map +1 -0
- package/engine/core/stores/index.d.ts +4 -0
- package/engine/core/stores/index.js +8 -0
- package/engine/core/stores/index.js.map +1 -0
- package/engine/core/stores/keywords.d.ts +9 -0
- package/engine/core/stores/keywords.js +35 -0
- package/engine/core/stores/keywords.js.map +1 -0
- package/engine/core/stores/page-store.d.ts +3 -0
- package/engine/core/stores/page-store.js +6 -0
- package/engine/core/stores/page-store.js.map +1 -0
- package/engine/core/triggers/index.d.ts +3 -0
- package/engine/core/triggers/index.js +7 -0
- package/engine/core/triggers/index.js.map +1 -0
- package/engine/core/triggers/on-dependencies-change.d.ts +12 -0
- package/engine/core/triggers/on-dependencies-change.js +19 -0
- package/engine/core/triggers/on-dependencies-change.js.map +1 -0
- package/engine/core/triggers/on-keywords-touch.d.ts +13 -0
- package/engine/core/triggers/on-keywords-touch.js +27 -0
- package/engine/core/triggers/on-keywords-touch.js.map +1 -0
- package/engine/core/triggers/on-remove-from-store.d.ts +11 -0
- package/engine/core/triggers/on-remove-from-store.js +15 -0
- package/engine/core/triggers/on-remove-from-store.js.map +1 -0
- package/engine/core/types/builder.d.ts +3 -0
- package/{interfaces/build-result.js → engine/core/types/builder.js} +1 -1
- package/engine/core/types/builder.js.map +1 -0
- package/engine/core/types/cache-strategy.d.ts +29 -0
- package/engine/core/types/cache-strategy.js +3 -0
- package/engine/core/types/cache-strategy.js.map +1 -0
- package/engine/core/types/file-output.d.ts +10 -0
- package/engine/core/types/file-output.js +11 -0
- package/engine/core/types/file-output.js.map +1 -0
- package/engine/core/types/index.d.ts +5 -0
- package/engine/core/types/index.js +9 -0
- package/engine/core/types/index.js.map +1 -0
- package/engine/core/types/state.d.ts +74 -0
- package/engine/core/types/state.js +81 -0
- package/engine/core/types/state.js.map +1 -0
- package/engine/core/types/trigger.d.ts +30 -0
- package/engine/core/types/trigger.js +36 -0
- package/engine/core/types/trigger.js.map +1 -0
- package/engine/core/variables/cold-start.d.ts +8 -0
- package/engine/core/variables/cold-start.js +18 -0
- package/engine/core/variables/cold-start.js.map +1 -0
- package/engine/core/variables/index.d.ts +1 -0
- package/engine/{entities/plugins/types → core/variables}/index.js +1 -1
- package/engine/core/variables/index.js.map +1 -0
- package/engine/core/watcher/index.d.ts +2 -0
- package/engine/core/watcher/index.js +6 -0
- package/engine/core/watcher/index.js.map +1 -0
- package/engine/core/watcher/watch-file.d.ts +9 -0
- package/engine/core/watcher/watch-file.js +29 -0
- package/engine/core/watcher/watch-file.js.map +1 -0
- package/engine/core/watcher/watch-folder.d.ts +8 -0
- package/engine/core/watcher/watch-folder.js +31 -0
- package/engine/core/watcher/watch-folder.js.map +1 -0
- package/engine/core/watcher/watch.d.ts +8 -0
- package/engine/core/watcher/watch.js +39 -0
- package/engine/core/watcher/watch.js.map +1 -0
- package/engine/index.d.ts +2 -6
- package/engine/index.js +2 -6
- package/engine/index.js.map +1 -1
- package/engine/nunjucks/actions/api-details.action.d.ts +6 -0
- package/engine/nunjucks/actions/api-details.action.js +27 -0
- package/engine/nunjucks/actions/api-details.action.js.map +1 -0
- package/engine/nunjucks/actions/api.action.d.ts +6 -0
- package/engine/nunjucks/actions/api.action.js +35 -0
- package/engine/nunjucks/actions/api.action.js.map +1 -0
- package/engine/{actions → nunjucks/actions}/demo-pane.action.d.ts +2 -2
- package/engine/{actions → nunjucks/actions}/demo-pane.action.js +1 -1
- package/engine/nunjucks/actions/demo-pane.action.js.map +1 -0
- package/engine/{actions → nunjucks/actions}/demo.action.d.ts +2 -2
- package/engine/{actions → nunjucks/actions}/demo.action.js +1 -1
- package/engine/nunjucks/actions/demo.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc-has-tag.action.d.ts +7 -0
- package/engine/nunjucks/actions/js-doc-has-tag.action.js +23 -0
- package/engine/nunjucks/actions/js-doc-has-tag.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc-tag.action.d.ts +7 -0
- package/engine/nunjucks/actions/js-doc-tag.action.js +23 -0
- package/engine/nunjucks/actions/js-doc-tag.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc-tags.action.d.ts +7 -0
- package/engine/nunjucks/actions/js-doc-tags.action.js +24 -0
- package/engine/nunjucks/actions/js-doc-tags.action.js.map +1 -0
- package/engine/nunjucks/actions/js-doc.action.d.ts +6 -0
- package/engine/nunjucks/actions/js-doc.action.js +22 -0
- package/engine/nunjucks/actions/js-doc.action.js.map +1 -0
- package/engine/{actions → nunjucks/actions}/playground.action.d.ts +2 -2
- package/engine/{actions → nunjucks/actions}/playground.action.js +7 -6
- package/engine/nunjucks/actions/playground.action.js.map +1 -0
- package/engine/{actions.d.ts → nunjucks/actions.d.ts} +4 -5
- package/engine/{actions.js → nunjucks/actions.js} +7 -12
- package/engine/nunjucks/actions.js.map +1 -0
- package/engine/nunjucks/api.d.ts +7 -0
- package/engine/nunjucks/api.js +20 -0
- package/engine/nunjucks/api.js.map +1 -0
- package/engine/nunjucks/base-action.d.ts +10 -0
- package/engine/nunjucks/base-action.js +16 -0
- package/engine/nunjucks/base-action.js.map +1 -0
- package/engine/nunjucks/filters.d.ts +2 -1
- package/engine/nunjucks/filters.js +10 -7
- package/engine/nunjucks/filters.js.map +1 -1
- package/engine/nunjucks/index.d.ts +3 -0
- package/engine/nunjucks/index.js +3 -0
- package/engine/nunjucks/index.js.map +1 -1
- package/engine/nunjucks/js-doc.d.ts +11 -0
- package/engine/nunjucks/js-doc.js +28 -0
- package/engine/nunjucks/js-doc.js.map +1 -0
- package/engine/nunjucks/render-template.d.ts +6 -0
- package/engine/nunjucks/render-template.js +27 -10
- package/engine/nunjucks/render-template.js.map +1 -1
- package/engine/transform-index-html.d.ts +5 -0
- package/engine/transform-index-html.js +15 -0
- package/engine/transform-index-html.js.map +1 -0
- package/engine/watcher.js +1 -1
- package/engine/watcher.js.map +1 -1
- package/helpers/angular/get-component-assets.d.ts +3 -1
- package/helpers/angular/get-component-assets.js +20 -3
- package/helpers/angular/get-component-assets.js.map +1 -1
- package/helpers/angular/get-component-decorator.js +1 -1
- package/helpers/angular/get-component-decorator.js.map +1 -1
- package/helpers/angular/get-component-inputs.js.map +1 -1
- package/helpers/angular/get-component-source-files.js.map +1 -1
- package/helpers/angular/get-directive-decorator.js +1 -1
- package/helpers/angular/get-directive-decorator.js.map +1 -1
- package/helpers/angular/get-input-name.js +4 -5
- package/helpers/angular/get-input-name.js.map +1 -1
- package/helpers/angular/get-input-type.js.map +1 -1
- package/helpers/angular/get-pipe-decorator.js +1 -1
- package/helpers/angular/get-pipe-decorator.js.map +1 -1
- package/helpers/angular/is-input.js +2 -3
- package/helpers/angular/is-input.js.map +1 -1
- package/helpers/angular/is-standalone.d.ts +1 -1
- package/helpers/angular/is-standalone.js +3 -4
- package/helpers/angular/is-standalone.js.map +1 -1
- package/helpers/build-file-assets.js +1 -1
- package/helpers/build-file-assets.js.map +1 -1
- package/helpers/build-file-entity.js +45 -48
- package/helpers/build-file-entity.js.map +1 -1
- package/helpers/build-indexes.js +41 -45
- package/helpers/build-indexes.js.map +1 -1
- package/helpers/construct-page-keyword.d.ts +10 -0
- package/helpers/construct-page-keyword.js +24 -0
- package/helpers/construct-page-keyword.js.map +1 -0
- package/helpers/create-builder-context.js +12 -11
- package/helpers/create-builder-context.js.map +1 -1
- package/helpers/create-import-path.js.map +1 -1
- package/helpers/{get-demo-class-declarations.js → demo/get-demo-class-declarations.js} +1 -2
- package/helpers/demo/get-demo-class-declarations.js.map +1 -0
- package/helpers/demo/index.d.ts +1 -1
- package/helpers/demo/index.js +1 -1
- package/helpers/extract-selectors.d.ts +7 -2
- package/helpers/extract-selectors.js +16 -3
- package/helpers/extract-selectors.js.map +1 -1
- package/helpers/filter-useless-members.d.ts +2 -2
- package/helpers/filter-useless-members.js.map +1 -1
- package/helpers/format-code.js +3 -4
- package/helpers/format-code.js.map +1 -1
- package/helpers/format-keyword-key.d.ts +5 -0
- package/helpers/{keyword-key.js → format-keyword-key.js} +3 -3
- package/helpers/format-keyword-key.js.map +1 -0
- package/helpers/get-declaration-by-path.d.ts +8 -0
- package/helpers/get-declaration-by-path.js +30 -0
- package/helpers/get-declaration-by-path.js.map +1 -0
- package/helpers/get-declaration-type.js +1 -1
- package/helpers/get-declaration-type.js.map +1 -1
- package/helpers/get-js-doc.d.ts +35 -0
- package/helpers/get-js-doc.js +121 -0
- package/helpers/get-js-doc.js.map +1 -0
- package/helpers/import-fresh-esm.js +10 -12
- package/helpers/import-fresh-esm.js.map +1 -1
- package/helpers/index.d.ts +7 -13
- package/helpers/index.js +7 -13
- package/helpers/index.js.map +1 -1
- package/helpers/is-public-declaration.d.ts +6 -0
- package/helpers/is-public-declaration.js +16 -0
- package/helpers/is-public-declaration.js.map +1 -0
- package/helpers/is-supported-declaration.d.ts +2 -2
- package/helpers/is-supported-declaration.js.map +1 -1
- package/helpers/load-config.js +1 -2
- package/helpers/load-config.js.map +1 -1
- package/helpers/markdown-to-html.js +16 -10
- package/helpers/markdown-to-html.js.map +1 -1
- package/helpers/minify-html.d.ts +5 -0
- package/helpers/minify-html.js +22 -0
- package/helpers/minify-html.js.map +1 -0
- package/helpers/playground/build-playground-metadata.js +15 -11
- package/helpers/playground/build-playground-metadata.js.map +1 -1
- package/helpers/playground/get-playground-inputs.js +6 -6
- package/helpers/playground/get-playground-inputs.js.map +1 -1
- package/helpers/playground/get-playgrounds-class-declarations.d.ts +6 -0
- package/helpers/playground/get-playgrounds-class-declarations.js +26 -0
- package/helpers/playground/get-playgrounds-class-declarations.js.map +1 -0
- package/helpers/playground/get-playgrounds-ids.js +2 -3
- package/helpers/playground/get-playgrounds-ids.js.map +1 -1
- package/helpers/playground/get-target-for-playground.js +4 -3
- package/helpers/playground/get-target-for-playground.js.map +1 -1
- package/helpers/playground/index.d.ts +1 -0
- package/helpers/playground/index.js +1 -0
- package/helpers/playground/index.js.map +1 -1
- package/helpers/presentation.js +3 -6
- package/helpers/presentation.js.map +1 -1
- package/helpers/print.d.ts +0 -15
- package/helpers/print.js +0 -24
- package/helpers/print.js.map +1 -1
- package/helpers/process-legacy-snippets.js +7 -8
- package/helpers/process-legacy-snippets.js.map +1 -1
- package/helpers/process-snippets.js +4 -5
- package/helpers/process-snippets.js.map +1 -1
- package/helpers/remove-lines-from-code.js +1 -2
- package/helpers/remove-lines-from-code.js.map +1 -1
- package/helpers/snippets-from-asset.js +8 -2
- package/helpers/snippets-from-asset.js.map +1 -1
- package/helpers/sort-navigation-entities.d.ts +3 -3
- package/helpers/sort-navigation-entities.js +9 -9
- package/helpers/sort-navigation-entities.js.map +1 -1
- package/helpers/to-template-string.js +5 -2
- package/helpers/to-template-string.js.map +1 -1
- package/helpers/typescript/accessor/group-accessors.js +2 -2
- package/helpers/typescript/accessor/group-accessors.js.map +1 -1
- package/helpers/typescript/create-project.js +19 -1
- package/helpers/typescript/create-project.js.map +1 -1
- package/helpers/typescript/declaration-import.d.ts +2 -2
- package/helpers/typescript/declaration-import.js.map +1 -1
- package/helpers/typescript/display-type.d.ts +2 -1
- package/helpers/typescript/display-type.js +2 -1
- package/helpers/typescript/display-type.js.map +1 -1
- package/helpers/typescript/exclude-by-js-doc-tags.d.ts +7 -0
- package/helpers/typescript/exclude-by-js-doc-tags.js +14 -0
- package/helpers/typescript/exclude-by-js-doc-tags.js.map +1 -0
- package/helpers/typescript/find-declarations.d.ts +10 -0
- package/helpers/typescript/find-declarations.js +35 -0
- package/helpers/typescript/find-declarations.js.map +1 -0
- package/helpers/typescript/first-node-with-comment.d.ts +1 -1
- package/helpers/typescript/first-node-with-comment.js +1 -2
- package/helpers/typescript/first-node-with-comment.js.map +1 -1
- package/helpers/typescript/get-object-expression-from-default.js +4 -4
- package/helpers/typescript/get-object-expression-from-default.js.map +1 -1
- package/helpers/typescript/index.d.ts +2 -1
- package/helpers/typescript/index.js +2 -1
- package/helpers/typescript/index.js.map +1 -1
- package/helpers/typescript/interface/find-interface.js +1 -1
- package/helpers/typescript/interface/find-interface.js.map +1 -1
- package/helpers/typescript/interface/for-all-interfaces.js +1 -1
- package/helpers/typescript/interface/for-all-interfaces.js.map +1 -1
- package/helpers/typescript/interface/get-interface-member.d.ts +2 -2
- package/helpers/typescript/interface/get-interface-member.js.map +1 -1
- package/helpers/typescript/member/find-member.d.ts +3 -3
- package/helpers/typescript/member/find-member.js +3 -3
- package/helpers/typescript/member/find-member.js.map +1 -1
- package/helpers/typescript/member/get-implemented-member.d.ts +2 -2
- package/helpers/typescript/member/get-implemented-member.js +1 -1
- package/helpers/typescript/member/get-implemented-member.js.map +1 -1
- package/helpers/typescript/member/get-inherited-parent.d.ts +2 -2
- package/helpers/typescript/member/get-inherited-parent.js.map +1 -1
- package/helpers/typescript/member/get-member-parent.d.ts +2 -2
- package/helpers/typescript/member/get-member-parent.js.map +1 -1
- package/helpers/typescript/member/get-overridden-member.d.ts +2 -2
- package/helpers/typescript/member/get-overridden-member.js.map +1 -1
- package/helpers/typescript/member/member-type.d.ts +9 -4
- package/helpers/typescript/member/member-type.js +12 -0
- package/helpers/typescript/member/member-type.js.map +1 -1
- package/helpers/typescript/method/get-method-chain.js.map +1 -1
- package/helpers/typescript/node/sort-by-nodes-name.js +1 -1
- package/helpers/typescript/node/sort-by-nodes-name.js.map +1 -1
- package/helpers/typescript/property/get-property-assignment.d.ts +1 -1
- package/helpers/typescript/property/get-property-assignment.js +2 -3
- package/helpers/typescript/property/get-property-assignment.js.map +1 -1
- package/helpers/utils.d.ts +6 -0
- package/helpers/utils.js +12 -0
- package/helpers/utils.js.map +1 -0
- package/interfaces/action-output.d.ts +2 -2
- package/interfaces/builder-context.d.ts +7 -5
- package/interfaces/configuration.d.ts +16 -2
- package/interfaces/entity-keyword.d.ts +1 -1
- package/interfaces/index.d.ts +0 -1
- package/interfaces/index.js +0 -1
- package/interfaces/index.js.map +1 -1
- package/interfaces/renderer-options.d.ts +1 -1
- package/operators/index.d.ts +0 -2
- package/operators/index.js +0 -2
- package/operators/index.js.map +1 -1
- package/package.json +16 -14
- package/parsers/helpers/param.js +1 -1
- package/parsers/helpers/param.js.map +1 -1
- package/parsers/parse-code-block-params.js +3 -3
- package/parsers/parse-code-block-params.js.map +1 -1
- package/parsers/parse-snippet.js +2 -2
- package/parsers/parse-snippet.js.map +1 -1
- package/schematics/api/files/ng-doc.api.ts.template +1 -1
- package/schematics/api/index.js +2 -3
- package/schematics/api/index.js.map +1 -1
- package/schematics/category/index.js +10 -7
- package/schematics/category/index.js.map +1 -1
- package/schematics/category/schema.json +54 -54
- package/schematics/migration.json +8 -8
- package/schematics/migrations/standalone-pages/index.js +13 -6
- package/schematics/migrations/standalone-pages/index.js.map +1 -1
- package/schematics/ng-update/index.js +2 -4
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/steps/{update-git-ignore.d.ts → update-pages.d.ts} +1 -1
- package/schematics/ng-update/steps/update-pages.js +89 -0
- package/schematics/ng-update/steps/update-pages.js.map +1 -0
- package/schematics/page/files/index.md.template +3 -1
- package/schematics/page/files/ng-doc.page.ts.template +1 -2
- package/schematics/page/index.js +12 -7
- package/schematics/page/index.js.map +1 -1
- package/schematics/page/schema.d.ts +2 -5
- package/schematics/page/schema.json +44 -49
- package/schematics/utils/get-project.js +1 -2
- package/schematics/utils/get-project.js.map +1 -1
- package/scripts/restore-theme.js +6 -0
- package/templates/api/base.html.nunj +9 -19
- package/templates/api/class-declaration.html.nunj +57 -0
- package/templates/api/details/class-declaration.html.nunj +47 -0
- package/templates/api/details/enum-declaration.html.nunj +0 -0
- package/templates/api/details/function-declaration.html.nunj +14 -0
- package/templates/api/details/helpers/decorators.html.nunj +14 -0
- package/templates/api/details/helpers/extends.html.nunj +6 -0
- package/templates/api/details/helpers/selectors.html.nunj +12 -0
- package/templates/api/details/helpers/type-parameters.html.nunj +14 -0
- package/templates/api/details/interface-declaration.html.nunj +27 -0
- package/templates/api/details/type-alias-declaration.html.nunj +14 -0
- package/templates/api/details/variable-declaration.html.nunj +0 -0
- package/templates/api/details.html.nunj +9 -0
- package/templates/api/{enum.html.nunj → enum-declaration.html.nunj} +3 -5
- package/templates/api/function-declaration.html.nunj +24 -0
- package/templates/api/interface-declaration.html.nunj +27 -0
- package/templates/api/type-alias-declaration.html.nunj +8 -0
- package/templates/api/variable-declaration.html.nunj +8 -0
- package/templates/api-header.html.nunj +11 -0
- package/templates/api-list.ts.nunj +10 -21
- package/templates/api-page-content.html.nunj +1 -15
- package/templates/context.ts.nunj +48 -33
- package/templates/helpers/accessor.html.nunj +50 -47
- package/templates/helpers/code.html.nunj +1 -2
- package/templates/helpers/constructor.html.nunj +24 -26
- package/templates/helpers/members.html.nunj +26 -20
- package/templates/helpers/method.html.nunj +58 -44
- package/templates/helpers/no-content.html.nunj +1 -1
- package/templates/helpers/overload.html.nunj +47 -0
- package/templates/helpers/parameters.html.nunj +37 -37
- package/templates/helpers/properties.html.nunj +43 -37
- package/templates/helpers/status.html.nunj +37 -0
- package/templates/helpers/type.html.nunj +4 -0
- package/templates/index.ts.nunj +2 -2
- package/templates/page-header.html.nunj +5 -0
- package/templates/page-wrapper.ts.nunj +42 -0
- package/templates/page.ts.nunj +55 -38
- package/templates/parts/page-tags.html.nunj +0 -15
- package/templates/parts/see-also.html.nunj +1 -1
- package/templates/parts/usage-notes.html.nunj +1 -1
- package/templates/playgrounds.ts.nunj +1 -1
- package/templates/routes.ts.nunj +27 -0
- package/types/action.d.ts +2 -3
- package/types/index.d.ts +1 -1
- package/types/index.js +1 -1
- package/types/index.js.map +1 -1
- package/types/supported-declaration.d.ts +2 -0
- package/types/supported-declaration.js +3 -0
- package/types/supported-declaration.js.map +1 -0
- package/engine/actions/demo-pane.action.js.map +0 -1
- package/engine/actions/demo.action.js.map +0 -1
- package/engine/actions/playground.action.js.map +0 -1
- package/engine/actions.js.map +0 -1
- package/engine/builder-operators/add-build-candidates.d.ts +0 -8
- package/engine/builder-operators/add-build-candidates.js +0 -26
- package/engine/builder-operators/add-build-candidates.js.map +0 -1
- package/engine/builder-operators/build.d.ts +0 -11
- package/engine/builder-operators/build.js +0 -22
- package/engine/builder-operators/build.js.map +0 -1
- package/engine/builder-operators/collect-garbage.d.ts +0 -7
- package/engine/builder-operators/collect-garbage.js +0 -19
- package/engine/builder-operators/collect-garbage.js.map +0 -1
- package/engine/builder-operators/compile.d.ts +0 -6
- package/engine/builder-operators/compile.js +0 -19
- package/engine/builder-operators/compile.js.map +0 -1
- package/engine/builder-operators/dependency-changes.d.ts +0 -9
- package/engine/builder-operators/dependency-changes.js +0 -23
- package/engine/builder-operators/dependency-changes.js.map +0 -1
- package/engine/builder-operators/emit.d.ts +0 -6
- package/engine/builder-operators/emit.js +0 -13
- package/engine/builder-operators/emit.js.map +0 -1
- package/engine/builder-operators/index.d.ts +0 -9
- package/engine/builder-operators/index.js +0 -13
- package/engine/builder-operators/index.js.map +0 -1
- package/engine/builder-operators/load.d.ts +0 -7
- package/engine/builder-operators/load.js +0 -20
- package/engine/builder-operators/load.js.map +0 -1
- package/engine/builder-operators/post-build.d.ts +0 -6
- package/engine/builder-operators/post-build.js +0 -22
- package/engine/builder-operators/post-build.js.map +0 -1
- package/engine/builder-operators/post-process.d.ts +0 -12
- package/engine/builder-operators/post-process.js +0 -29
- package/engine/builder-operators/post-process.js.map +0 -1
- package/engine/builder-operators/print-output.d.ts +0 -7
- package/engine/builder-operators/print-output.js +0 -52
- package/engine/builder-operators/print-output.js.map +0 -1
- package/engine/builder-operators/refresh.d.ts +0 -6
- package/engine/builder-operators/refresh.js +0 -19
- package/engine/builder-operators/refresh.js.map +0 -1
- package/engine/builder-operators/task.d.ts +0 -23
- package/engine/builder-operators/task.js +0 -43
- package/engine/builder-operators/task.js.map +0 -1
- package/engine/builder-operators/to-builder-output.d.ts +0 -6
- package/engine/builder-operators/to-builder-output.js +0 -12
- package/engine/builder-operators/to-builder-output.js.map +0 -1
- package/engine/builder-operators/update-cache.d.ts +0 -7
- package/engine/builder-operators/update-cache.js +0 -14
- package/engine/builder-operators/update-cache.js.map +0 -1
- package/engine/entities/abstractions/entity.d.ts +0 -122
- package/engine/entities/abstractions/entity.js +0 -186
- package/engine/entities/abstractions/entity.js.map +0 -1
- package/engine/entities/abstractions/file.entity.d.ts +0 -28
- package/engine/entities/abstractions/file.entity.js +0 -68
- package/engine/entities/abstractions/file.entity.js.map +0 -1
- package/engine/entities/abstractions/module.entity.d.ts +0 -25
- package/engine/entities/abstractions/module.entity.js +0 -57
- package/engine/entities/abstractions/module.entity.js.map +0 -1
- package/engine/entities/abstractions/navigation.entity.d.ts +0 -27
- package/engine/entities/abstractions/navigation.entity.js +0 -36
- package/engine/entities/abstractions/navigation.entity.js.map +0 -1
- package/engine/entities/abstractions/route.entity.d.ts +0 -35
- package/engine/entities/abstractions/route.entity.js +0 -68
- package/engine/entities/abstractions/route.entity.js.map +0 -1
- package/engine/entities/abstractions/source-file.entity.d.ts +0 -38
- package/engine/entities/abstractions/source-file.entity.js +0 -69
- package/engine/entities/abstractions/source-file.entity.js.map +0 -1
- package/engine/entities/api-list.entity.d.ts +0 -20
- package/engine/entities/api-list.entity.js +0 -74
- package/engine/entities/api-list.entity.js.map +0 -1
- package/engine/entities/api-page.entity.d.ts +0 -36
- package/engine/entities/api-page.entity.js +0 -140
- package/engine/entities/api-page.entity.js.map +0 -1
- package/engine/entities/api-scope.entity.d.ts +0 -41
- package/engine/entities/api-scope.entity.js +0 -115
- package/engine/entities/api-scope.entity.js.map +0 -1
- package/engine/entities/api.entity.d.ts +0 -27
- package/engine/entities/api.entity.js +0 -118
- package/engine/entities/api.entity.js.map +0 -1
- package/engine/entities/cache/cache.js.map +0 -1
- package/engine/entities/cache/cached-files-initializer.js.map +0 -1
- package/engine/entities/cache/cached-props-initializer.js.map +0 -1
- package/engine/entities/cache/decorators/cached-entity.js.map +0 -1
- package/engine/entities/cache/decorators/cached-files-getter.js.map +0 -1
- package/engine/entities/cache/decorators/cached-property.js.map +0 -1
- package/engine/entities/cache/decorators/index.js.map +0 -1
- package/engine/entities/cache/helpers/create-cache-for-file.js.map +0 -1
- package/engine/entities/cache/helpers/create-cache.js.map +0 -1
- package/engine/entities/cache/helpers/get-cache-dir-path.js.map +0 -1
- package/engine/entities/cache/helpers/get-cache-file-path.js.map +0 -1
- package/engine/entities/cache/helpers/index.js.map +0 -1
- package/engine/entities/cache/helpers/invalidate-cache-if-needed.js.map +0 -1
- package/engine/entities/cache/helpers/is-cache-valid.js.map +0 -1
- package/engine/entities/cache/helpers/load-cache.js.map +0 -1
- package/engine/entities/cache/helpers/update-cache.js.map +0 -1
- package/engine/entities/cache/index.js.map +0 -1
- package/engine/entities/cache/interfaces/cache-accessor.js.map +0 -1
- package/engine/entities/cache/interfaces/cached-data.d.ts +0 -5
- package/engine/entities/cache/interfaces/cached-data.js.map +0 -1
- package/engine/entities/cache/interfaces/index.js.map +0 -1
- package/engine/entities/category.entity.d.ts +0 -28
- package/engine/entities/category.entity.js +0 -108
- package/engine/entities/category.entity.js.map +0 -1
- package/engine/entities/context.entity.d.ts +0 -11
- package/engine/entities/context.entity.js +0 -34
- package/engine/entities/context.entity.js.map +0 -1
- package/engine/entities/index-file.entity.d.ts +0 -12
- package/engine/entities/index-file.entity.js +0 -57
- package/engine/entities/index-file.entity.js.map +0 -1
- package/engine/entities/index.d.ts +0 -13
- package/engine/entities/index.js +0 -17
- package/engine/entities/index.js.map +0 -1
- package/engine/entities/indexes.entity.d.ts +0 -12
- package/engine/entities/indexes.entity.js +0 -35
- package/engine/entities/indexes.entity.js.map +0 -1
- package/engine/entities/keywords.entity.d.ts +0 -12
- package/engine/entities/keywords.entity.js +0 -32
- package/engine/entities/keywords.entity.js.map +0 -1
- package/engine/entities/page-demo.entity.d.ts +0 -20
- package/engine/entities/page-demo.entity.js +0 -96
- package/engine/entities/page-demo.entity.js.map +0 -1
- package/engine/entities/page-playground.entity.d.ts +0 -22
- package/engine/entities/page-playground.entity.js +0 -101
- package/engine/entities/page-playground.entity.js.map +0 -1
- package/engine/entities/page.entity.d.ts +0 -33
- package/engine/entities/page.entity.js +0 -175
- package/engine/entities/page.entity.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.js +0 -19
- package/engine/entities/plugins/entity-plugins/add-to-dependencies.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/apply.plugin.d.ts +0 -26
- package/engine/entities/plugins/entity-plugins/apply.plugin.js +0 -64
- package/engine/entities/plugins/entity-plugins/apply.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.js +0 -22
- package/engine/entities/plugins/entity-plugins/extract-snippets.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.js +0 -26
- package/engine/entities/plugins/entity-plugins/fill-indexes.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/index.d.ts +0 -9
- package/engine/entities/plugins/entity-plugins/index.js +0 -13
- package/engine/entities/plugins/entity-plugins/index.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js +0 -20
- package/engine/entities/plugins/entity-plugins/markdown-to-html.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.js +0 -17
- package/engine/entities/plugins/entity-plugins/post-process-html.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/process-html.plugin.d.ts +0 -5
- package/engine/entities/plugins/entity-plugins/process-html.plugin.js +0 -17
- package/engine/entities/plugins/entity-plugins/process-html.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.js +0 -22
- package/engine/entities/plugins/entity-plugins/remove-lines.plugin.js.map +0 -1
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.d.ts +0 -6
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js +0 -20
- package/engine/entities/plugins/entity-plugins/wrap-code.plugin.js.map +0 -1
- package/engine/entities/plugins/helpers/execute-plugins.d.ts +0 -10
- package/engine/entities/plugins/helpers/execute-plugins.js +0 -17
- package/engine/entities/plugins/helpers/execute-plugins.js.map +0 -1
- package/engine/entities/plugins/helpers/index.d.ts +0 -1
- package/engine/entities/plugins/helpers/index.js +0 -5
- package/engine/entities/plugins/helpers/index.js.map +0 -1
- package/engine/entities/plugins/index.d.ts +0 -3
- package/engine/entities/plugins/index.js +0 -7
- package/engine/entities/plugins/index.js.map +0 -1
- package/engine/entities/plugins/types/entity-plugin.d.ts +0 -5
- package/engine/entities/plugins/types/entity-plugin.js.map +0 -1
- package/engine/entities/plugins/types/index.d.ts +0 -1
- package/engine/entities/plugins/types/index.js.map +0 -1
- package/engine/entities/routes.entity.d.ts +0 -11
- package/engine/entities/routes.entity.js +0 -37
- package/engine/entities/routes.entity.js.map +0 -1
- package/engine/entity-emitter.d.ts +0 -18
- package/engine/entity-emitter.js +0 -49
- package/engine/entity-emitter.js.map +0 -1
- package/engine/entity-store.d.ts +0 -19
- package/engine/entity-store.js +0 -82
- package/engine/entity-store.js.map +0 -1
- package/engine/functions/build-candidates.d.ts +0 -10
- package/engine/functions/build-candidates.js +0 -47
- package/engine/functions/build-candidates.js.map +0 -1
- package/engine/functions/if-not-cached-or-invalid.d.ts +0 -9
- package/engine/functions/if-not-cached-or-invalid.js +0 -18
- package/engine/functions/if-not-cached-or-invalid.js.map +0 -1
- package/engine/functions/index.d.ts +0 -2
- package/engine/functions/index.js +0 -6
- package/engine/functions/index.js.map +0 -1
- package/engine/ts-doc-formatter.d.ts +0 -5
- package/engine/ts-doc-formatter.js +0 -29
- package/engine/ts-doc-formatter.js.map +0 -1
- package/helpers/build-entity-keyword.d.ts +0 -10
- package/helpers/build-entity-keyword.js +0 -27
- package/helpers/build-entity-keyword.js.map +0 -1
- package/helpers/demo/assets-from-component-asset.d.ts +0 -6
- package/helpers/demo/assets-from-component-asset.js +0 -13
- package/helpers/demo/assets-from-component-asset.js.map +0 -1
- package/helpers/entity-type.d.ts +0 -51
- package/helpers/entity-type.js +0 -80
- package/helpers/entity-type.js.map +0 -1
- package/helpers/extract-docs.d.ts +0 -20
- package/helpers/extract-docs.js +0 -78
- package/helpers/extract-docs.js.map +0 -1
- package/helpers/extract-path-anchor.d.ts +0 -7
- package/helpers/extract-path-anchor.js +0 -17
- package/helpers/extract-path-anchor.js.map +0 -1
- package/helpers/generate-api-entities.d.ts +0 -6
- package/helpers/generate-api-entities.js +0 -68
- package/helpers/generate-api-entities.js.map +0 -1
- package/helpers/get-demo-class-declarations.js.map +0 -1
- package/helpers/get-entity-constructor.d.ts +0 -7
- package/helpers/get-entity-constructor.js +0 -24
- package/helpers/get-entity-constructor.js.map +0 -1
- package/helpers/get-keyword-type-from-entity.d.ts +0 -7
- package/helpers/get-keyword-type-from-entity.js +0 -20
- package/helpers/get-keyword-type-from-entity.js.map +0 -1
- package/helpers/get-page-type.d.ts +0 -7
- package/helpers/get-page-type.js +0 -12
- package/helpers/get-page-type.js.map +0 -1
- package/helpers/is-not-excluded-path.d.ts +0 -6
- package/helpers/is-not-excluded-path.js +0 -15
- package/helpers/is-not-excluded-path.js.map +0 -1
- package/helpers/keyword-key.d.ts +0 -5
- package/helpers/keyword-key.js.map +0 -1
- package/helpers/process-html.d.ts +0 -13
- package/helpers/process-html.js +0 -43
- package/helpers/process-html.js.map +0 -1
- package/helpers/typescript/exclude-by-ts-docs-tags.d.ts +0 -7
- package/helpers/typescript/exclude-by-ts-docs-tags.js +0 -17
- package/helpers/typescript/exclude-by-ts-docs-tags.js.map +0 -1
- package/helpers/unique-name.d.ts +0 -5
- package/helpers/unique-name.js +0 -21
- package/helpers/unique-name.js.map +0 -1
- package/interfaces/build-result.d.ts +0 -10
- package/interfaces/build-result.js.map +0 -1
- package/operators/buffer-until-once.d.ts +0 -6
- package/operators/buffer-until-once.js +0 -14
- package/operators/buffer-until-once.js.map +0 -1
- package/operators/error-handler.d.ts +0 -7
- package/operators/error-handler.js +0 -20
- package/operators/error-handler.js.map +0 -1
- package/operators/fork-join-or-empty.d.ts +0 -6
- package/operators/fork-join-or-empty.js +0 -12
- package/operators/fork-join-or-empty.js.map +0 -1
- package/schematics/ng-update/steps/update-angular-json.d.ts +0 -4
- package/schematics/ng-update/steps/update-angular-json.js +0 -73
- package/schematics/ng-update/steps/update-angular-json.js.map +0 -1
- package/schematics/ng-update/steps/update-git-ignore.js +0 -21
- package/schematics/ng-update/steps/update-git-ignore.js.map +0 -1
- package/schematics/ng-update/steps/update-ts-config.d.ts +0 -5
- package/schematics/ng-update/steps/update-ts-config.js +0 -38
- package/schematics/ng-update/steps/update-ts-config.js.map +0 -1
- package/schematics/page/files/ng-doc.module.ts.template +0 -9
- package/templates/api/class.html.nunj +0 -96
- package/templates/api/function.html.nunj +0 -20
- package/templates/api/interface.html.nunj +0 -46
- package/templates/api/type-alias.html.nunj +0 -10
- package/templates/api/variable.html.nunj +0 -10
- package/templates/api-page.ts.nunj +0 -41
- package/templates/routing.ts.nunj +0 -11
- package/types/supported-declarations.d.ts +0 -2
- package/types/supported-declarations.js +0 -3
- package/types/supported-declarations.js.map +0 -1
- /package/engine/{entities/cache → cache}/cache.d.ts +0 -0
- /package/engine/{entities/cache → cache}/cached-files-initializer.d.ts +0 -0
- /package/engine/{entities/cache → cache}/cached-props-initializer.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-entity.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-files-getter.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-files-getter.js +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-property.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/cached-property.js +0 -0
- /package/engine/{entities/cache → cache}/decorators/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/decorators/index.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/create-cache-for-file.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/create-cache-for-file.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/get-cache-dir-path.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/get-cache-file-path.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/get-cache-file-path.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/index.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/invalidate-cache-if-needed.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/is-cache-valid.d.ts +0 -0
- /package/engine/{entities/cache → cache}/helpers/load-cache.js +0 -0
- /package/engine/{entities/cache → cache}/helpers/update-cache.js +0 -0
- /package/engine/{entities/cache → cache}/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/index.js +0 -0
- /package/engine/{entities/cache → cache}/interfaces/cache-accessor.d.ts +0 -0
- /package/engine/{entities/cache → cache}/interfaces/cache-accessor.js +0 -0
- /package/engine/{entities/cache → cache}/interfaces/cached-data.js +0 -0
- /package/engine/{entities/cache → cache}/interfaces/index.d.ts +0 -0
- /package/engine/{entities/cache → cache}/interfaces/index.js +0 -0
- /package/helpers/{get-demo-class-declarations.d.ts → demo/get-demo-class-declarations.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-cache-valid.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/cache/helpers/is-cache-valid.ts"],"names":[],"mappings":";;AASA,oCAWC;AAnBD,mEAA6D;AAC7D,6CAAyC;AAEzC;;;;GAIG;AACH,SAAgB,YAAY,CAAC,EAAU,EAAE,KAAsB;IAC7D,MAAM,UAAU,GAAoB,IAAA,sBAAS,EAAC,EAAE,CAAC,CAAC;IAClD,MAAM,aAAa,GAAY,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,KAAK,CACtE,CAAC,QAAgB,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,KAAK,IAAA,0CAAkB,EAAC,QAAQ,CAAC,CACpF,CAAC;IACF,MAAM,cAAc,GAAY,UAAU,CAAC,OAAO,KAAK,KAAK,CAAC,OAAO,CAAC;IACrE,MAAM,kBAAkB,GAAY,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,KAAK,CACtE,CAAC,QAAgB,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,KAAK,SAAS,CACjE,CAAC;IAEF,OAAO,aAAa,IAAI,cAAc,IAAI,kBAAkB,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-cache.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/cache/helpers/load-cache.ts"],"names":[],"mappings":";;AASA,8BASC;;AAlBD,+CAAyB;AAGzB,+DAAyD;AAEzD;;;GAGG;AACH,SAAgB,SAAS,CAAQ,EAAU;IACzC,IAAI,CAAC;QACH,MAAM,aAAa,GAAW,IAAA,sCAAgB,EAAC,EAAE,CAAC,CAAC;QACnD,MAAM,YAAY,GAAW,EAAE,CAAC,YAAY,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;QAErE,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -5,4 +5,4 @@ import { NgDocCachedData } from '../interfaces';
|
|
|
5
5
|
* @param id - unique id for cache
|
|
6
6
|
* @param cache - cache object
|
|
7
7
|
*/
|
|
8
|
-
export declare function updateCache(id: string, cache: NgDocCachedData): void;
|
|
8
|
+
export declare function updateCache<TData>(id: string, cache: NgDocCachedData<TData>): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-cache.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/cache/helpers/update-cache.ts"],"names":[],"mappings":";;AAYA,kCASC;;AArBD,+CAAyB;AACzB,mDAA6B;AAG7B,+DAAyD;AAEzD;;;;;GAKG;AACH,SAAgB,WAAW,CAAQ,EAAU,EAAE,KAA6B;IAC1E,MAAM,aAAa,GAAW,IAAA,sCAAgB,EAAC,EAAE,CAAC,CAAC;IACnD,MAAM,YAAY,GAAW,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAEzD,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QACjC,EAAE,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,EAAE,CAAC,aAAa,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/cache/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB;AACxB,uDAA6B;AAC7B,oDAA0B;AAC1B,uDAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-accessor.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/cache/interfaces/cache-accessor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cached-data.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/cache/interfaces/cached-data.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/cache/interfaces/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,wDAA8B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./operators"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./stores"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./triggers"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./variables"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./watcher"), exports);
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/builder/engine/core/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,mDAAyB;AACzB,qDAA2B;AAC3B,kDAAwB;AACxB,sDAA4B;AAC5B,oDAA0B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { BuilderState } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Operator function that transforms a source Observable into an Observable of BuilderState.
|
|
5
|
+
* It emits a BuilderPending state at the start, then a BuilderDone state when the source emits,
|
|
6
|
+
* and a BuilderError state if the source errors out.
|
|
7
|
+
* It also manages a global stack of pending builders.
|
|
8
|
+
* @param stage
|
|
9
|
+
* @param tag
|
|
10
|
+
* @template T The type of the source Observable.
|
|
11
|
+
* @returns {OperatorFunction<T, BuilderState<T>>} An OperatorFunction that can be used with pipe.
|
|
12
|
+
*/
|
|
13
|
+
export declare function builderState<T>(tag: string): OperatorFunction<T, BuilderState<T>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.builderState = builderState;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const types_1 = require("../types");
|
|
6
|
+
const stack_1 = require("./stack");
|
|
7
|
+
/**
|
|
8
|
+
* Operator function that transforms a source Observable into an Observable of BuilderState.
|
|
9
|
+
* It emits a BuilderPending state at the start, then a BuilderDone state when the source emits,
|
|
10
|
+
* and a BuilderError state if the source errors out.
|
|
11
|
+
* It also manages a global stack of pending builders.
|
|
12
|
+
* @param stage
|
|
13
|
+
* @param tag
|
|
14
|
+
* @template T The type of the source Observable.
|
|
15
|
+
* @returns {OperatorFunction<T, BuilderState<T>>} An OperatorFunction that can be used with pipe.
|
|
16
|
+
*/
|
|
17
|
+
function builderState(tag) {
|
|
18
|
+
return (source) => source.pipe((0, rxjs_1.map)((result) => new types_1.BuilderDone(tag, result)), (0, rxjs_1.startWith)(new types_1.BuilderPending(tag)), (0, rxjs_1.catchError)((error) => (0, rxjs_1.of)(new types_1.BuilderError(tag, [error]))), (0, stack_1.addToStack)(tag));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=builder-state.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder-state.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/core/operators/builder-state.ts"],"names":[],"mappings":";;AAeA,oCAQC;AAvBD,+BAAwE;AAExE,oCAAmF;AACnF,mCAAqC;AAErC;;;;;;;;;GASG;AACH,SAAgB,YAAY,CAAI,GAAW;IACzC,OAAO,CAAC,MAAM,EAAE,EAAE,CAChB,MAAM,CAAC,IAAI,CACT,IAAA,UAAG,EAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,mBAAW,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,EAC7C,IAAA,gBAAS,EAAC,IAAI,sBAAc,CAAC,GAAG,CAAC,CAAC,EAClC,IAAA,iBAAU,EAAC,CAAC,KAAY,EAAE,EAAE,CAAC,IAAA,SAAE,EAAC,IAAI,oBAAY,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,IAAA,kBAAU,EAAC,GAAG,CAAC,CAChB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Builder, Trigger } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param triggers
|
|
5
|
+
* @param project
|
|
6
|
+
* @param main
|
|
7
|
+
* @param secondary
|
|
8
|
+
* @param autoStart
|
|
9
|
+
*/
|
|
10
|
+
export declare function createBuilder<T>(triggers: Trigger[], project: () => Builder<T>, autoStart?: boolean): Builder<T>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createBuilder = createBuilder;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
const types_1 = require("../types");
|
|
7
|
+
let builderId = 0;
|
|
8
|
+
const blockedBuilders = new Set();
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param triggers
|
|
12
|
+
* @param project
|
|
13
|
+
* @param main
|
|
14
|
+
* @param secondary
|
|
15
|
+
* @param autoStart
|
|
16
|
+
*/
|
|
17
|
+
function createBuilder(triggers, project, autoStart = true) {
|
|
18
|
+
const id = builderId++;
|
|
19
|
+
const main = triggers.filter(types_1.isMainTrigger).map(({ trigger }) => trigger);
|
|
20
|
+
const secondary = triggers.filter(types_1.isSecondaryTrigger).map(({ trigger }) => trigger);
|
|
21
|
+
const mainTrigger = (main ? (0, rxjs_1.merge)(...main) : rxjs_1.EMPTY).pipe((0, operators_1.tap)(() => blockedBuilders.clear()));
|
|
22
|
+
const secondaryTrigger = (secondary ? (0, rxjs_1.merge)(...secondary) : rxjs_1.EMPTY).pipe((0, operators_1.filter)(() => !blockedBuilders.has(id)));
|
|
23
|
+
return (0, rxjs_1.merge)(mainTrigger, secondaryTrigger).pipe((0, rxjs_1.subscribeOn)(rxjs_1.asyncScheduler), autoStart ? (0, operators_1.startWith)(void 0) : (0, operators_1.tap)(), (0, operators_1.map)(() => id), (0, operators_1.switchMap)(() => {
|
|
24
|
+
blockedBuilders.add(id);
|
|
25
|
+
return project().pipe((0, operators_1.tap)((state) => {
|
|
26
|
+
if ((0, types_1.isBuilderDone)(state) && state.fromCache) {
|
|
27
|
+
blockedBuilders.delete(id);
|
|
28
|
+
}
|
|
29
|
+
}));
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=create-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-builder.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/core/operators/create-builder.ts"],"names":[],"mappings":";;AAgBA,sCA8BC;AA9CD,+BAAiE;AACjE,8CAAwE;AAExE,oCAA8F;AAE9F,IAAI,SAAS,GAAW,CAAC,CAAC;AAC1B,MAAM,eAAe,GAAG,IAAI,GAAG,EAAU,CAAC;AAE1C;;;;;;;GAOG;AACH,SAAgB,aAAa,CAC3B,QAAmB,EACnB,OAAyB,EACzB,YAAqB,IAAI;IAEzB,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;IACvB,MAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,qBAAa,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;IAC1E,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,0BAAkB,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;IAEpF,MAAM,WAAW,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAA,YAAK,EAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,YAAK,CAAC,CAAC,IAAI,CAAC,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAC7F,MAAM,gBAAgB,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,YAAK,EAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,YAAK,CAAC,CAAC,IAAI,CACrE,IAAA,kBAAM,EAAC,GAAG,EAAE,CAAC,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CACvC,CAAC;IAEF,OAAO,IAAA,YAAK,EAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,IAAI,CAC9C,IAAA,kBAAW,EAAC,qBAAc,CAAC,EAC3B,SAAS,CAAC,CAAC,CAAC,IAAA,qBAAS,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,eAAG,GAAE,EACrC,IAAA,eAAG,EAAC,GAAG,EAAE,CAAC,EAAE,CAAC,EACb,IAAA,qBAAS,EAAC,GAAG,EAAE;QACb,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAExB,OAAO,OAAO,EAAE,CAAC,IAAI,CACnB,IAAA,eAAG,EAAC,CAAC,KAAK,EAAE,EAAE;YACZ,IAAI,IAAA,qBAAa,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;gBAC5C,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CACH,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.distinctPending = distinctPending;
|
|
4
|
+
const rxjs_1 = require("rxjs");
|
|
5
|
+
const types_1 = require("../types");
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
function distinctPending() {
|
|
10
|
+
return (source) => source.pipe((0, rxjs_1.distinctUntilChanged)((a, b) => a.state === b.state && (0, types_1.isBuilderPending)(a)));
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=distinct-pending.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distinct-pending.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/core/operators/distinct-pending.ts"],"names":[],"mappings":";;AAOA,0CAGC;AAVD,+BAA8D;AAE9D,oCAA0D;AAE1D;;GAEG;AACH,SAAgB,eAAe;IAC7B,OAAO,CAAC,MAAM,EAAE,EAAE,CAChB,MAAM,CAAC,IAAI,CAAC,IAAA,2BAAoB,EAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,IAAI,IAAA,wBAAgB,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5F,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
/**
|
|
3
|
+
* Creates an RxJS operator that triggers the execution of cached emit functions.
|
|
4
|
+
* This operator is designed to be used in an RxJS pipeline where caching mechanisms
|
|
5
|
+
* are in place to temporarily store emit functions. Upon invocation, it iterates over
|
|
6
|
+
* the `PENDING_CACHE`, executing each cached emit function.
|
|
7
|
+
*
|
|
8
|
+
* The `PENDING_CACHE` is expected to be a collection (e.g., array) of functions that
|
|
9
|
+
* are intended to be executed to emit values or perform actions that were deferred.
|
|
10
|
+
*
|
|
11
|
+
* This operator does not alter the stream's data directly but performs side effects
|
|
12
|
+
* (the execution of emit functions) that may influence the application's state or behavior.
|
|
13
|
+
* @template T The type of items in the observable stream.
|
|
14
|
+
* @returns An OperatorFunction<T, T> that maintains the stream's data type and performs
|
|
15
|
+
* the side effect of executing cached emit functions.
|
|
16
|
+
*/
|
|
17
|
+
export declare function emitCache<T>(): OperatorFunction<T, T>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emitCache = emitCache;
|
|
4
|
+
const builder_1 = require("@ng-doc/builder");
|
|
5
|
+
const operators_1 = require("rxjs/operators");
|
|
6
|
+
/**
|
|
7
|
+
* Creates an RxJS operator that triggers the execution of cached emit functions.
|
|
8
|
+
* This operator is designed to be used in an RxJS pipeline where caching mechanisms
|
|
9
|
+
* are in place to temporarily store emit functions. Upon invocation, it iterates over
|
|
10
|
+
* the `PENDING_CACHE`, executing each cached emit function.
|
|
11
|
+
*
|
|
12
|
+
* The `PENDING_CACHE` is expected to be a collection (e.g., array) of functions that
|
|
13
|
+
* are intended to be executed to emit values or perform actions that were deferred.
|
|
14
|
+
*
|
|
15
|
+
* This operator does not alter the stream's data directly but performs side effects
|
|
16
|
+
* (the execution of emit functions) that may influence the application's state or behavior.
|
|
17
|
+
* @template T The type of items in the observable stream.
|
|
18
|
+
* @returns An OperatorFunction<T, T> that maintains the stream's data type and performs
|
|
19
|
+
* the side effect of executing cached emit functions.
|
|
20
|
+
*/
|
|
21
|
+
function emitCache() {
|
|
22
|
+
return (source) => {
|
|
23
|
+
return source.pipe((0, operators_1.tap)(() => {
|
|
24
|
+
// Iterate over the PENDING_CACHE and execute each emit function
|
|
25
|
+
builder_1.PENDING_CACHE.forEach((emitCache) => emitCache());
|
|
26
|
+
// Clear the PENDING_CACHE after all emit functions are executed
|
|
27
|
+
builder_1.PENDING_CACHE.length = 0;
|
|
28
|
+
}));
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=emit-cache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emit-cache.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/core/operators/emit-cache.ts"],"names":[],"mappings":";;AAmBA,8BAWC;AA9BD,6CAAgD;AAEhD,8CAAqC;AAErC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,SAAS;IACvB,OAAO,CAAC,MAAM,EAAE,EAAE;QAChB,OAAO,MAAM,CAAC,IAAI,CAChB,IAAA,eAAG,EAAC,GAAG,EAAE;YACP,gEAAgE;YAChE,uBAAa,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC;YAClD,gEAAgE;YAChE,uBAAa,CAAC,MAAM,GAAG,CAAC,CAAC;QAC3B,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { BuilderDone, BuilderError, FileOutput } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* An operator function that emits file outputs.
|
|
5
|
+
* @returns An OperatorFunction that can be used in an RxJS pipe.
|
|
6
|
+
*/
|
|
7
|
+
export declare function emitFileOutput(): OperatorFunction<BuilderDone<FileOutput> | BuilderError, BuilderDone<FileOutput> | BuilderError>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.emitFileOutput = emitFileOutput;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@ng-doc/core");
|
|
6
|
+
const fs_1 = tslib_1.__importDefault(require("fs"));
|
|
7
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
8
|
+
const operators_1 = require("rxjs/operators");
|
|
9
|
+
const types_1 = require("../types");
|
|
10
|
+
/**
|
|
11
|
+
* An operator function that emits file outputs.
|
|
12
|
+
* @returns An OperatorFunction that can be used in an RxJS pipe.
|
|
13
|
+
*/
|
|
14
|
+
function emitFileOutput() {
|
|
15
|
+
return (source) => {
|
|
16
|
+
return source.pipe((0, operators_1.tap)((state) => {
|
|
17
|
+
if ((0, types_1.isBuilderDone)(state)) {
|
|
18
|
+
emitFiles((0, core_1.asArray)(state.result));
|
|
19
|
+
}
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Writes the content of each file in the provided array to the file system.
|
|
25
|
+
* @param {FileOutput[]} files - An array of FileOutput objects to be written to the file system.
|
|
26
|
+
*/
|
|
27
|
+
function emitFiles(files) {
|
|
28
|
+
files.forEach((output) => {
|
|
29
|
+
const fileContent = fs_1.default.existsSync(output.filePath) && fs_1.default.readFileSync(output.filePath, 'utf-8');
|
|
30
|
+
if (fileContent !== output.content) {
|
|
31
|
+
fs_1.default.mkdirSync(path_1.default.dirname(output.filePath), { recursive: true });
|
|
32
|
+
fs_1.default.writeFileSync(output.filePath, output.content);
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=emit-file-output.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emit-file-output.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/core/operators/emit-file-output.ts"],"names":[],"mappings":";;AAYA,wCAaC;;AAzBD,uCAAuC;AACvC,oDAAoB;AACpB,wDAAwB;AAExB,8CAAqC;AAErC,oCAAgF;AAEhF;;;GAGG;AACH,SAAgB,cAAc;IAI5B,OAAO,CAAC,MAAM,EAAE,EAAE;QAChB,OAAO,MAAM,CAAC,IAAI,CAChB,IAAA,eAAG,EAAC,CAAC,KAAK,EAAE,EAAE;YACZ,IAAI,IAAA,qBAAa,EAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,SAAS,CAAC,IAAA,cAAO,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;YACnC,CAAC;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAS,SAAS,CAAC,KAAmB;IACpC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAkB,EAAE,EAAE;QACnC,MAAM,WAAW,GAAG,YAAE,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,YAAE,CAAC,YAAY,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAEhG,IAAI,WAAW,KAAK,MAAM,CAAC,OAAO,EAAE,CAAC;YACnC,YAAE,CAAC,SAAS,CAAC,cAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACjE,YAAE,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QACpD,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { NgDocBuilderContext } from '../../../interfaces';
|
|
3
|
+
import { AsyncFileOutput, BuilderState, FileOutput } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param context
|
|
7
|
+
*/
|
|
8
|
+
export declare function entriesEmitter(context: NgDocBuilderContext): Observable<BuilderState<FileOutput | AsyncFileOutput>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.entriesEmitter = entriesEmitter;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@ng-doc/core");
|
|
6
|
+
const fast_glob_1 = require("fast-glob");
|
|
7
|
+
const minimatch_1 = require("minimatch");
|
|
8
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
9
|
+
const rxjs_1 = require("rxjs");
|
|
10
|
+
const operators_1 = require("rxjs/operators");
|
|
11
|
+
const helpers_1 = require("../../../helpers");
|
|
12
|
+
const builders_1 = require("../../builders");
|
|
13
|
+
const api_list_1 = require("../../builders/api-list");
|
|
14
|
+
const variables_1 = require("../../variables");
|
|
15
|
+
const watcher_1 = require("../watcher");
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param context
|
|
19
|
+
*/
|
|
20
|
+
function entriesEmitter(context) {
|
|
21
|
+
const entries = (0, fast_glob_1.sync)([
|
|
22
|
+
(0, helpers_1.posix)(path_1.default.join(context.docsPath, variables_1.PAGE_PATTERN)),
|
|
23
|
+
(0, helpers_1.posix)(path_1.default.join(context.docsPath, variables_1.API_PATTERN)),
|
|
24
|
+
]);
|
|
25
|
+
return (0, watcher_1.watchFolder)(context.docsPath, 'create').pipe((0, operators_1.map)((events) => events.map((event) => event.path)), (0, operators_1.startWith)(entries), (0, operators_1.map)((events) => events
|
|
26
|
+
.map((filePath) => {
|
|
27
|
+
if ((0, minimatch_1.minimatch)(filePath, variables_1.PAGE_PATTERN)) {
|
|
28
|
+
return (0, builders_1.pageBuilder)(context, path_1.default.resolve(filePath));
|
|
29
|
+
}
|
|
30
|
+
if ((0, minimatch_1.minimatch)(filePath, variables_1.API_PATTERN)) {
|
|
31
|
+
return (0, api_list_1.apiBuilder)(context, path_1.default.resolve(filePath));
|
|
32
|
+
}
|
|
33
|
+
return null;
|
|
34
|
+
})
|
|
35
|
+
.filter(core_1.isPresent)), (0, operators_1.filter)((builders) => builders.length > 0), (0, rxjs_1.mergeMap)((builders) => (0, rxjs_1.merge)(...builders)));
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=entries-emitter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entries-emitter.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/core/operators/entries-emitter.ts"],"names":[],"mappings":";;AAmBA,wCA6BC;;AAhDD,uCAAyC;AACzC,yCAAiC;AACjC,yCAAsC;AACtC,wDAAwB;AACxB,+BAAmD;AACnD,8CAAwD;AAExD,8CAAyC;AAEzC,6CAA6C;AAC7C,sDAAqD;AACrD,+CAA4D;AAE5D,wCAAyC;AAEzC;;;GAGG;AACH,SAAgB,cAAc,CAC5B,OAA4B;IAE5B,MAAM,OAAO,GAAG,IAAA,gBAAI,EAAC;QACnB,IAAA,eAAK,EAAC,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,wBAAY,CAAC,CAAC;QAChD,IAAA,eAAK,EAAC,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,uBAAW,CAAC,CAAC;KAChD,CAAC,CAAC;IAEH,OAAO,IAAA,qBAAW,EAAC,OAAO,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,IAAI,CACjD,IAAA,eAAG,EAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAClD,IAAA,qBAAS,EAAC,OAAO,CAAC,EAClB,IAAA,eAAG,EAAC,CAAC,MAAM,EAAE,EAAE,CACb,MAAM;SACH,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;QAChB,IAAI,IAAA,qBAAS,EAAC,QAAQ,EAAE,wBAAY,CAAC,EAAE,CAAC;YACtC,OAAO,IAAA,sBAAW,EAAC,OAAO,EAAE,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACtD,CAAC;QAED,IAAI,IAAA,qBAAS,EAAC,QAAQ,EAAE,uBAAW,CAAC,EAAE,CAAC;YACrC,OAAO,IAAA,qBAAU,EAAC,OAAO,EAAE,cAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QACrD,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;SACD,MAAM,CAAC,gBAAS,CAAC,CACrB,EACD,IAAA,kBAAM,EAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,EACzC,IAAA,eAAQ,EAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAA,YAAK,EAAC,GAAG,QAAQ,CAAC,CAAC,CAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ObservableInputTuple } from 'rxjs';
|
|
2
|
+
import { Builder, BuilderState, CacheStrategy } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* The factory function is a powerful tool for creating complex builders.
|
|
5
|
+
* It should be used when you need to build something based on the results of multiple other builders.
|
|
6
|
+
* @param tag - A string that identifies the builder.
|
|
7
|
+
* @param builders - An array of Observables of BuilderState.
|
|
8
|
+
* @param buildFn - A function that takes the results of the successful Observables and returns a Promise.
|
|
9
|
+
* @param cacheStrategy - An optional CacheStrategy object.
|
|
10
|
+
* @returns An Observable of BuilderState.
|
|
11
|
+
*/
|
|
12
|
+
export declare function factory<T, R, TCacheData>(tag: string, builders: readonly [...ObservableInputTuple<Array<BuilderState<T>>>], buildFn: (...args: T[]) => Promise<R> | R, cacheStrategy?: CacheStrategy<TCacheData, R>): Builder<R>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.factory = factory;
|
|
4
|
+
const core_1 = require("@ng-doc/core");
|
|
5
|
+
const rxjs_1 = require("rxjs");
|
|
6
|
+
const operators_1 = require("rxjs/operators");
|
|
7
|
+
const types_1 = require("../types");
|
|
8
|
+
const distinct_pending_1 = require("./distinct-pending");
|
|
9
|
+
const handle_cache_strategy_1 = require("./handle-cache-strategy");
|
|
10
|
+
const stack_1 = require("./stack");
|
|
11
|
+
let builderId = 0;
|
|
12
|
+
/**
|
|
13
|
+
* The factory function is a powerful tool for creating complex builders.
|
|
14
|
+
* It should be used when you need to build something based on the results of multiple other builders.
|
|
15
|
+
* @param tag - A string that identifies the builder.
|
|
16
|
+
* @param builders - An array of Observables of BuilderState.
|
|
17
|
+
* @param buildFn - A function that takes the results of the successful Observables and returns a Promise.
|
|
18
|
+
* @param cacheStrategy - An optional CacheStrategy object.
|
|
19
|
+
* @returns An Observable of BuilderState.
|
|
20
|
+
*/
|
|
21
|
+
function factory(tag, builders, buildFn, cacheStrategy) {
|
|
22
|
+
const id = builderId++;
|
|
23
|
+
return (0, rxjs_1.combineLatest)(builders).pipe((0, rxjs_1.switchMap)((states) => {
|
|
24
|
+
/**
|
|
25
|
+
* If any of the states are pending, return an Observable of BuilderPending.
|
|
26
|
+
*/
|
|
27
|
+
if (states.some(types_1.isBuilderPending)) {
|
|
28
|
+
return (0, rxjs_1.of)(new types_1.BuilderPending(tag));
|
|
29
|
+
}
|
|
30
|
+
const errors = states.filter(types_1.isBuilderError);
|
|
31
|
+
/**
|
|
32
|
+
* If there are any errors in the states, return an Observable of BuilderError.
|
|
33
|
+
*/
|
|
34
|
+
if (errors.length) {
|
|
35
|
+
return (0, rxjs_1.of)(new types_1.BuilderError(tag, (0, core_1.asArray)(...errors.map(({ error }) => error))));
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* If there are no errors or pending states, call the provided function with the results of the successful states.
|
|
39
|
+
* The result of the function is then mapped to a BuilderDone state.
|
|
40
|
+
*/
|
|
41
|
+
const buildFnResult = buildFn(...states.map(({ result }) => result));
|
|
42
|
+
/**
|
|
43
|
+
* We don't use ObservableInput here because it opens the door to passing an Observable
|
|
44
|
+
* as the result of the build function which might break the cache strategy, and final state.
|
|
45
|
+
*/
|
|
46
|
+
return (0, rxjs_1.from)(Promise.resolve(buildFnResult)).pipe((0, rxjs_1.map)((result) => new types_1.BuilderDone(tag, result)), (0, operators_1.catchError)((error) => (0, rxjs_1.of)(new types_1.BuilderError(tag, [error]))), (0, handle_cache_strategy_1.handleCacheStrategy)(`factory${id}`, cacheStrategy, states.every(({ fromCache }) => fromCache)));
|
|
47
|
+
}),
|
|
48
|
+
/**
|
|
49
|
+
* Prevents emitting the pending state twice in a row.
|
|
50
|
+
* This can happen if builders start working asynchronously based on some trigger.
|
|
51
|
+
*/
|
|
52
|
+
(0, distinct_pending_1.distinctPending)(), (0, stack_1.addToStack)(tag));
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/core/operators/factory.ts"],"names":[],"mappings":";;AA6BA,0BAuDC;AApFD,uCAAuC;AACvC,+BAAqF;AACrF,8CAA4C;AAE5C,oCASkB;AAClB,yDAAqD;AACrD,mEAA8D;AAC9D,mCAAqC;AAErC,IAAI,SAAS,GAAW,CAAC,CAAC;AAE1B;;;;;;;;GAQG;AACH,SAAgB,OAAO,CACrB,GAAW,EACX,QAAoE,EACpE,OAAyC,EACzC,aAA4C;IAE5C,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;IAEvB,OAAO,IAAA,oBAAa,EAAC,QAAQ,CAAC,CAAC,IAAI,CACjC,IAAA,gBAAS,EAAC,CAAC,MAA8B,EAAE,EAAE;QAC3C;;WAEG;QACH,IAAI,MAAM,CAAC,IAAI,CAAC,wBAAgB,CAAC,EAAE,CAAC;YAClC,OAAO,IAAA,SAAE,EAAC,IAAI,sBAAc,CAAC,GAAG,CAAC,CAAC,CAAC;QACrC,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAc,CAAC,CAAC;QAE7C;;WAEG;QACH,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YAClB,OAAO,IAAA,SAAE,EAAC,IAAI,oBAAY,CAAC,GAAG,EAAE,IAAA,cAAO,EAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACjF,CAAC;QAED;;;WAGG;QACH,MAAM,aAAa,GAAG,OAAO,CAC3B,GAAI,MAAgC,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,CACjE,CAAC;QAEF;;;WAGG;QACH,OAAO,IAAA,WAAI,EAAC,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAC9C,IAAA,UAAG,EAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,mBAAW,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,EAC7C,IAAA,sBAAU,EAAC,CAAC,KAAY,EAAE,EAAE,CAAC,IAAA,SAAE,EAAC,IAAI,oBAAY,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,IAAA,2CAAmB,EACjB,UAAU,EAAE,EAAE,EACd,aAAa,EACZ,MAAgC,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,CACtE,CACF,CAAC;IACJ,CAAC,CAAC;IACF;;;OAGG;IACH,IAAA,kCAAe,GAAE,EACjB,IAAA,kBAAU,EAAC,GAAG,CAAC,CAChB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OperatorFunction } from 'rxjs';
|
|
2
|
+
import { BuilderState, CacheStrategy } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Disables cache for all builders.
|
|
5
|
+
*/
|
|
6
|
+
export declare function disableCache(): void;
|
|
7
|
+
export declare const PENDING_CACHE: Array<() => void>;
|
|
8
|
+
/**
|
|
9
|
+
* Handles cache provided cache strategy.
|
|
10
|
+
* It will skip or restore the builder based on the strategy on the first run and
|
|
11
|
+
* update the cache on every next run.
|
|
12
|
+
* @param id
|
|
13
|
+
* @param strategy - Cache strategy
|
|
14
|
+
* @param valid
|
|
15
|
+
*/
|
|
16
|
+
export declare function handleCacheStrategy<T, TData>(id: string, strategy?: CacheStrategy<TData, T>, valid?: boolean): OperatorFunction<BuilderState<T>, BuilderState<T>>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PENDING_CACHE = void 0;
|
|
4
|
+
exports.disableCache = disableCache;
|
|
5
|
+
exports.handleCacheStrategy = handleCacheStrategy;
|
|
6
|
+
const rxjs_1 = require("rxjs");
|
|
7
|
+
const operators_1 = require("rxjs/operators");
|
|
8
|
+
const cache_1 = require("../../cache");
|
|
9
|
+
const types_1 = require("../types");
|
|
10
|
+
const variables_1 = require("../variables");
|
|
11
|
+
let isCacheEnabled = true;
|
|
12
|
+
/**
|
|
13
|
+
* Disables cache for all builders.
|
|
14
|
+
*/
|
|
15
|
+
function disableCache() {
|
|
16
|
+
isCacheEnabled = false;
|
|
17
|
+
}
|
|
18
|
+
const restoredBuilders = new Set();
|
|
19
|
+
exports.PENDING_CACHE = [];
|
|
20
|
+
/**
|
|
21
|
+
* Handles cache provided cache strategy.
|
|
22
|
+
* It will skip or restore the builder based on the strategy on the first run and
|
|
23
|
+
* update the cache on every next run.
|
|
24
|
+
* @param id
|
|
25
|
+
* @param strategy - Cache strategy
|
|
26
|
+
* @param valid
|
|
27
|
+
*/
|
|
28
|
+
function handleCacheStrategy(id, strategy, valid = true) {
|
|
29
|
+
return (source) => {
|
|
30
|
+
if (!strategy || !isCacheEnabled)
|
|
31
|
+
return source;
|
|
32
|
+
const cache = (0, cache_1.createCache)(undefined, strategy.files?.(), strategy.getData?.() ?? {});
|
|
33
|
+
const sourceWithCache = source.pipe((0, operators_1.tap)((state) => {
|
|
34
|
+
if ((0, types_1.isBuilderDone)(state)) {
|
|
35
|
+
exports.PENDING_CACHE.push(() => (0, cache_1.updateCache)(strategy.id, (0, cache_1.createCache)(undefined, strategy.files?.(), strategy.getData?.() ?? {}, strategy.action === 'restore' ? strategy.toCache(state.result) : undefined)));
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
// If the builder is already restored, return the source with cache.
|
|
39
|
+
// Since this function is called every time the builder is triggered (because of `switchMap` in
|
|
40
|
+
// `runBuild` function), we need to make sure that the builder is restored only once
|
|
41
|
+
if (restoredBuilders.has(id)) {
|
|
42
|
+
return sourceWithCache;
|
|
43
|
+
}
|
|
44
|
+
const isCacheVal = (0, cache_1.isCacheValid)(strategy.id, cache);
|
|
45
|
+
const isValid = cache && valid && (0, variables_1.isColdStart)() && isCacheVal;
|
|
46
|
+
const savedCache = (0, cache_1.loadCache)(strategy.id);
|
|
47
|
+
savedCache.data && strategy.onCacheLoad?.(savedCache.data);
|
|
48
|
+
restoredBuilders.add(id);
|
|
49
|
+
switch (strategy.action) {
|
|
50
|
+
case 'skip':
|
|
51
|
+
return isValid ? rxjs_1.EMPTY : sourceWithCache;
|
|
52
|
+
case 'restore':
|
|
53
|
+
return isValid
|
|
54
|
+
? (0, rxjs_1.of)(new types_1.BuilderDone(strategy.id, strategy.fromCache(savedCache.result ?? ''), true))
|
|
55
|
+
: sourceWithCache;
|
|
56
|
+
default:
|
|
57
|
+
return source;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=handle-cache-strategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle-cache-strategy.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/core/operators/handle-cache-strategy.ts"],"names":[],"mappings":";;;AAYA,oCAEC;AAcD,kDAqDC;AAjFD,+BAAmD;AACnD,8CAAqC;AAErC,uCAAgF;AAChF,oCAAmF;AACnF,4CAA2C;AAE3C,IAAI,cAAc,GAAY,IAAI,CAAC;AAEnC;;GAEG;AACH,SAAgB,YAAY;IAC1B,cAAc,GAAG,KAAK,CAAC;AACzB,CAAC;AAED,MAAM,gBAAgB,GAAG,IAAI,GAAG,EAAU,CAAC;AAE9B,QAAA,aAAa,GAAsB,EAAE,CAAC;AAEnD;;;;;;;GAOG;AACH,SAAgB,mBAAmB,CACjC,EAAU,EACV,QAAkC,EAClC,QAAiB,IAAI;IAErB,OAAO,CAAC,MAAM,EAAE,EAAE;QAChB,IAAI,CAAC,QAAQ,IAAI,CAAC,cAAc;YAAE,OAAO,MAAM,CAAC;QAEhD,MAAM,KAAK,GAAG,IAAA,mBAAW,EAAC,SAAS,EAAE,QAAQ,CAAC,KAAK,EAAE,EAAE,EAAE,QAAQ,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QAErF,MAAM,eAAe,GAAG,MAAM,CAAC,IAAI,CACjC,IAAA,eAAG,EAAC,CAAC,KAAK,EAAE,EAAE;YACZ,IAAI,IAAA,qBAAa,EAAC,KAAK,CAAC,EAAE,CAAC;gBACzB,qBAAa,CAAC,IAAI,CAAC,GAAG,EAAE,CACtB,IAAA,mBAAW,EACT,QAAQ,CAAC,EAAE,EACX,IAAA,mBAAW,EACT,SAAS,EACT,QAAQ,CAAC,KAAK,EAAE,EAAE,EAClB,QAAQ,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,EAC1B,QAAQ,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAC3E,CACF,CACF,CAAC;YACJ,CAAC;QACH,CAAC,CAAC,CACH,CAAC;QAEF,oEAAoE;QACpE,+FAA+F;QAC/F,oFAAoF;QACpF,IAAI,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC;YAC7B,OAAO,eAAe,CAAC;QACzB,CAAC;QAED,MAAM,UAAU,GAAG,IAAA,oBAAY,EAAC,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QACpD,MAAM,OAAO,GAAG,KAAK,IAAI,KAAK,IAAI,IAAA,uBAAW,GAAE,IAAI,UAAU,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAA,iBAAS,EAAQ,QAAQ,CAAC,EAAE,CAAC,CAAC;QAEjD,UAAU,CAAC,IAAI,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,IAAa,CAAC,CAAC;QACpE,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAEzB,QAAQ,QAAQ,CAAC,MAAM,EAAE,CAAC;YACxB,KAAK,MAAM;gBACT,OAAO,OAAO,CAAC,CAAC,CAAC,YAAK,CAAC,CAAC,CAAC,eAAe,CAAC;YAC3C,KAAK,SAAS;gBACZ,OAAO,OAAO;oBACZ,CAAC,CAAC,IAAA,SAAE,EAAC,IAAI,mBAAW,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,IAAI,EAAE,CAAM,EAAE,IAAI,CAAC,CAAC;oBAC1F,CAAC,CAAC,eAAe,CAAC;YACtB;gBACE,OAAO,MAAM,CAAC;QAClB,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './builder-state';
|
|
2
|
+
export * from './create-builder';
|
|
3
|
+
export * from './distinct-pending';
|
|
4
|
+
export * from './emit-cache';
|
|
5
|
+
export * from './emit-file-output';
|
|
6
|
+
export * from './entries-emitter';
|
|
7
|
+
export * from './factory';
|
|
8
|
+
export * from './handle-cache-strategy';
|
|
9
|
+
export * from './join-builder-states';
|
|
10
|
+
export * from './merge-factory';
|
|
11
|
+
export * from './print-build-progress';
|
|
12
|
+
export * from './print-errors';
|
|
13
|
+
export * from './run-build';
|
|
14
|
+
export * from './stack';
|
|
15
|
+
export * from './when-builders-done';
|
|
16
|
+
export * from './when-done';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./builder-state"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./create-builder"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./distinct-pending"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./emit-cache"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./emit-file-output"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./entries-emitter"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./factory"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./handle-cache-strategy"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./join-builder-states"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./merge-factory"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./print-build-progress"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./print-errors"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./run-build"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./stack"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./when-builders-done"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./when-done"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/core/operators/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,2DAAiC;AACjC,6DAAmC;AACnC,uDAA6B;AAC7B,6DAAmC;AACnC,4DAAkC;AAClC,oDAA0B;AAC1B,kEAAwC;AACxC,gEAAsC;AACtC,0DAAgC;AAChC,iEAAuC;AACvC,yDAA+B;AAC/B,sDAA4B;AAC5B,kDAAwB;AACxB,+DAAqC;AACrC,sDAA4B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { BuilderState } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param tag
|
|
6
|
+
* @param states
|
|
7
|
+
* @param project
|
|
8
|
+
*/
|
|
9
|
+
export declare function joinBuilderStates<T, R>(tag: string, states: Array<BuilderState<T>>, project: (...args: T[]) => Observable<BuilderState<R>>): Observable<BuilderState<R>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.joinBuilderStates = joinBuilderStates;
|
|
4
|
+
const core_1 = require("@ng-doc/core");
|
|
5
|
+
const rxjs_1 = require("rxjs");
|
|
6
|
+
const types_1 = require("../types");
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param tag
|
|
10
|
+
* @param states
|
|
11
|
+
* @param project
|
|
12
|
+
*/
|
|
13
|
+
function joinBuilderStates(tag, states, project) {
|
|
14
|
+
/**
|
|
15
|
+
* If any of the states are pending, return an Observable of BuilderPending.
|
|
16
|
+
*/
|
|
17
|
+
if (states.some(types_1.isBuilderPending)) {
|
|
18
|
+
return (0, rxjs_1.of)(new types_1.BuilderPending(tag));
|
|
19
|
+
}
|
|
20
|
+
const errors = states.filter(types_1.isBuilderError);
|
|
21
|
+
/**
|
|
22
|
+
* If there are any errors in the states, return an Observable of BuilderError.
|
|
23
|
+
*/
|
|
24
|
+
if (errors.length) {
|
|
25
|
+
return (0, rxjs_1.of)(new types_1.BuilderError(tag, (0, core_1.asArray)(...errors.map(({ error }) => error))));
|
|
26
|
+
}
|
|
27
|
+
return project(...states.map(({ result }) => result));
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=join-builder-states.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"join-builder-states.js","sourceRoot":"","sources":["../../../../../../libs/builder/engine/core/operators/join-builder-states.ts"],"names":[],"mappings":";;AAkBA,8CAsBC;AAxCD,uCAAuC;AACvC,+BAAsC;AAEtC,oCAOkB;AAElB;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC/B,GAAW,EACX,MAA8B,EAC9B,OAAsD;IAEtD;;OAEG;IACH,IAAI,MAAM,CAAC,IAAI,CAAC,wBAAgB,CAAC,EAAE,CAAC;QAClC,OAAO,IAAA,SAAE,EAAC,IAAI,sBAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,sBAAc,CAAC,CAAC;IAE7C;;OAEG;IACH,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAClB,OAAO,IAAA,SAAE,EAAC,IAAI,oBAAY,CAAC,GAAG,EAAE,IAAA,cAAO,EAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACjF,CAAC;IAED,OAAO,OAAO,CAAC,GAAI,MAAgC,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACnF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Observable, ObservableInputTuple } from 'rxjs';
|
|
2
|
+
import { BuilderState, BuilderStateTuple, CacheStrategy } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* This function merges multiple observables and applies a project function when all observables are done.
|
|
5
|
+
* It returns an Observable that emits either the value of type A[number] or a BuilderState<T>.
|
|
6
|
+
* @param tag - A string representing the tag.
|
|
7
|
+
* @param sources - An array of Observables.
|
|
8
|
+
* @param project - A function that takes an array of BuilderState<R> and returns a Promise<T>.
|
|
9
|
+
* @param cacheStrategy - An optional parameter that defines the cache strategy.
|
|
10
|
+
* @param mapper
|
|
11
|
+
* @returns An Observable that emits either the value of type A[number] or a BuilderState<T>.
|
|
12
|
+
*/
|
|
13
|
+
export declare function mergeFactory<TCacheData, A extends ReadonlyArray<BuilderState<unknown>>, T, M>(tag: string, sources: [...ObservableInputTuple<A>], project: (...args: [...BuilderStateTuple<A>]) => Promise<T>, cacheStrategy: CacheStrategy<TCacheData, T>, mapper: (source: [...BuilderStateTuple<A>][number]) => M): Observable<BuilderState<T | M>>;
|
|
14
|
+
export declare function mergeFactory<TCacheData, A extends ReadonlyArray<BuilderState<unknown>>, T>(tag: string, sources: [...ObservableInputTuple<A>], project: (...args: [...BuilderStateTuple<A>]) => Promise<T>, cacheStrategy?: CacheStrategy<TCacheData, T>): Observable<A[number] | BuilderState<T>>;
|