@redocly/revel-reef 0.124.0-next.0 → 0.124.0-next.10
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/CHANGELOG.md +97 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/cli/develop.js +1 -1
- package/dist/cli/develop.js.map +1 -1
- package/dist/cli/translations/update-translations.d.ts.map +1 -1
- package/dist/cli/translations/update-translations.js +1 -1
- package/dist/cli/translations/update-translations.js.map +1 -1
- package/dist/client/app/l10n/index.d.ts.map +1 -1
- package/dist/client/app/l10n/index.js +1 -1
- package/dist/client/app/l10n/index.js.map +1 -1
- package/dist/client/app/pages/CompilationError/CompilationError.d.ts +3 -1
- package/dist/client/app/pages/CompilationError/CompilationError.d.ts.map +1 -1
- package/dist/client/app/pages/CompilationError/CompilationError.js +2 -64
- package/dist/client/app/pages/CompilationError/CompilationError.js.map +1 -1
- package/dist/client/runtime/loader.d.ts +4 -1
- package/dist/client/runtime/loader.d.ts.map +1 -1
- package/dist/client/runtime/loader.js +1 -1
- package/dist/client/runtime/loader.js.map +1 -1
- package/dist/client/utils/utils.js +1 -1
- package/dist/client/utils/utils.js.map +1 -1
- package/dist/compiled/svgo/svgo-node.js +2 -2
- package/dist/server/plugins/asyncapi-docs/asyncapi-doc-loader.d.ts +4 -1
- package/dist/server/plugins/asyncapi-docs/asyncapi-doc-loader.d.ts.map +1 -1
- package/dist/server/plugins/asyncapi-docs/asyncapi-doc-loader.js +2 -2
- package/dist/server/plugins/asyncapi-docs/asyncapi-doc-loader.js.map +1 -1
- package/dist/server/plugins/asyncapi-docs/get-server-props.d.ts +6 -0
- package/dist/server/plugins/asyncapi-docs/get-server-props.d.ts.map +1 -0
- package/dist/server/plugins/asyncapi-docs/get-server-props.js +1 -0
- package/dist/server/plugins/asyncapi-docs/get-server-props.js.map +1 -0
- package/dist/server/plugins/asyncapi-docs/index.d.ts +2 -2
- package/dist/server/plugins/asyncapi-docs/index.d.ts.map +1 -1
- package/dist/server/plugins/asyncapi-docs/index.js +1 -1
- package/dist/server/plugins/asyncapi-docs/index.js.map +1 -1
- package/dist/server/plugins/asyncapi-docs/is-asyncapi-doc.d.ts +3 -0
- package/dist/server/plugins/asyncapi-docs/is-asyncapi-doc.d.ts.map +1 -0
- package/dist/server/plugins/asyncapi-docs/is-asyncapi-doc.js +1 -0
- package/dist/server/plugins/asyncapi-docs/is-asyncapi-doc.js.map +1 -0
- package/dist/server/plugins/asyncapi-docs/template/AsyncApiDocs.d.ts.map +1 -1
- package/dist/server/plugins/asyncapi-docs/template/AsyncApiDocs.js +2 -2
- package/dist/server/plugins/asyncapi-docs/template/AsyncApiDocs.js.map +1 -1
- package/dist/server/plugins/asyncapi-docs/template/helpers.d.ts +199 -0
- package/dist/server/plugins/asyncapi-docs/template/helpers.d.ts.map +1 -0
- package/dist/server/plugins/asyncapi-docs/template/helpers.js +1 -0
- package/dist/server/plugins/asyncapi-docs/template/helpers.js.map +1 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/asyncapi-entities-extractor.d.ts +11 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/asyncapi-entities-extractor.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/asyncapi-entities-extractor.js +1 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/asyncapi-entities-extractor.js.map +1 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.d.ts +22 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.js +1 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.js.map +1 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/openapi-entities-extractor.d.ts +11 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/openapi-entities-extractor.d.ts.map +1 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/openapi-entities-extractor.js +1 -0
- package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/openapi-entities-extractor.js.map +1 -0
- package/dist/server/plugins/catalog-entities/plugin.d.ts.map +1 -1
- package/dist/server/plugins/catalog-entities/plugin.js +1 -1
- package/dist/server/plugins/catalog-entities/plugin.js.map +1 -1
- package/dist/server/plugins/config-parser/loaders/utils/read-and-validate-config.d.ts.map +1 -1
- package/dist/server/plugins/config-parser/loaders/utils/read-and-validate-config.js +1 -1
- package/dist/server/plugins/config-parser/loaders/utils/read-and-validate-config.js.map +1 -1
- package/dist/server/plugins/entitlements/index.d.ts.map +1 -1
- package/dist/server/plugins/entitlements/index.js +1 -1
- package/dist/server/plugins/entitlements/index.js.map +1 -1
- package/dist/server/plugins/l10n/index.d.ts.map +1 -1
- package/dist/server/plugins/l10n/index.js +1 -1
- package/dist/server/plugins/l10n/index.js.map +1 -1
- package/dist/server/plugins/lifecycle.d.ts.map +1 -1
- package/dist/server/plugins/lifecycle.js +2 -2
- package/dist/server/plugins/lifecycle.js.map +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/resolve-json-schema-ref.d.ts.map +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/resolve-json-schema-ref.js +1 -1
- package/dist/server/plugins/markdown/attribute-resolvers/resolve-json-schema-ref.js.map +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/get-operation/get-operation.d.ts.map +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/get-operation/get-operation.js +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/get-operation/get-operation.js.map +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/index.d.ts +1 -0
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/index.d.ts.map +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/index.js +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/index.js.map +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/openapi-code-sample.d.ts.map +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/openapi-code-sample.js +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/openapi-code-sample.js.map +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/openapi-response-sample.d.ts +10 -0
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/openapi-response-sample.d.ts.map +1 -0
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/openapi-response-sample.js +1 -0
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/openapi-response-sample.js.map +1 -0
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.d.ts.map +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.js +1 -1
- package/dist/server/plugins/markdown/markdoc/custom-components/openapi/replay-openapi.js.map +1 -1
- package/dist/server/plugins/markdown/markdoc/import-user-tags.d.ts.map +1 -1
- package/dist/server/plugins/markdown/markdoc/import-user-tags.js +1 -1
- package/dist/server/plugins/markdown/markdoc/import-user-tags.js.map +1 -1
- package/dist/server/plugins/markdown/markdoc/tags/index.d.ts.map +1 -1
- package/dist/server/plugins/markdown/markdoc/tags/index.js +1 -1
- package/dist/server/plugins/markdown/markdoc/tags/index.js.map +1 -1
- package/dist/server/plugins/markdown/markdoc/tags/openapi-response-sample.d.ts +3 -0
- package/dist/server/plugins/markdown/markdoc/tags/openapi-response-sample.d.ts.map +1 -0
- package/dist/server/plugins/markdown/markdoc/tags/openapi-response-sample.js +1 -0
- package/dist/server/plugins/markdown/markdoc/tags/openapi-response-sample.js.map +1 -0
- package/dist/server/plugins/markdown/search/get-search-documents.d.ts.map +1 -1
- package/dist/server/plugins/markdown/search/get-search-documents.js +2 -1
- package/dist/server/plugins/markdown/search/get-search-documents.js.map +1 -1
- package/dist/server/plugins/markdown/utils/sanitize-malformed-md-content.d.ts +2 -2
- package/dist/server/plugins/markdown/utils/sanitize-malformed-md-content.d.ts.map +1 -1
- package/dist/server/plugins/markdown/utils/sanitize-malformed-md-content.js +2 -1
- package/dist/server/plugins/markdown/utils/sanitize-malformed-md-content.js.map +1 -1
- package/dist/server/plugins/openapi-docs/decorators.d.ts +4 -6
- package/dist/server/plugins/openapi-docs/decorators.d.ts.map +1 -1
- package/dist/server/plugins/openapi-docs/decorators.js +1 -1
- package/dist/server/plugins/openapi-docs/decorators.js.map +1 -1
- package/dist/server/plugins/openapi-docs/load-definition.d.ts.map +1 -1
- package/dist/server/plugins/openapi-docs/load-definition.js +3 -3
- package/dist/server/plugins/openapi-docs/load-definition.js.map +1 -1
- package/dist/server/plugins/openapi-docs/search-indexer.js +1 -1
- package/dist/server/plugins/openapi-docs/search-indexer.js.map +1 -1
- package/dist/server/plugins/openapi-docs/template/helpers.d.ts +2 -0
- package/dist/server/plugins/openapi-docs/template/helpers.d.ts.map +1 -1
- package/dist/server/plugins/openapi-docs/template/helpers.js +2 -2
- package/dist/server/plugins/openapi-docs/template/helpers.js.map +1 -1
- package/dist/server/plugins/scorecard/get-scorecard-config.d.ts +48 -0
- package/dist/server/plugins/scorecard/get-scorecard-config.d.ts.map +1 -1
- package/dist/server/plugins/scorecard/lint.d.ts.map +1 -1
- package/dist/server/plugins/scorecard/lint.js +1 -1
- package/dist/server/plugins/scorecard/lint.js.map +1 -1
- package/dist/server/plugins/scorecard/loaders/scorecard-config.d.ts.map +1 -1
- package/dist/server/plugins/scorecard/loaders/scorecard-config.js.map +1 -1
- package/dist/server/plugins/search/engines/flexsearch/search-index.d.ts +1 -1
- package/dist/server/plugins/search/engines/flexsearch/search-index.d.ts.map +1 -1
- package/dist/server/plugins/search/engines/flexsearch/search-index.js +1 -1
- package/dist/server/plugins/search/engines/flexsearch/search-index.js.map +1 -1
- package/dist/server/ssr/render-compilation-error.d.ts +5 -0
- package/dist/server/ssr/render-compilation-error.d.ts.map +1 -0
- package/dist/server/ssr/render-compilation-error.js +41 -0
- package/dist/server/ssr/render-compilation-error.js.map +1 -0
- package/dist/server/ssr/render.d.ts.map +1 -1
- package/dist/server/ssr/render.js +1 -1
- package/dist/server/ssr/render.js.map +1 -1
- package/dist/server/store.d.ts +9 -3
- package/dist/server/store.d.ts.map +1 -1
- package/dist/server/store.js +1 -1
- package/dist/server/store.js.map +1 -1
- package/dist/server/utils/conflict-resolvers.d.ts +6 -0
- package/dist/server/utils/conflict-resolvers.d.ts.map +1 -0
- package/dist/server/utils/conflict-resolvers.js +1 -0
- package/dist/server/utils/conflict-resolvers.js.map +1 -0
- package/dist/server/utils/globs.js +1 -1
- package/dist/server/utils/globs.js.map +1 -1
- package/dist/server/utils/index.d.ts +1 -0
- package/dist/server/utils/index.d.ts.map +1 -1
- package/dist/server/utils/index.js +1 -1
- package/dist/server/utils/index.js.map +1 -1
- package/dist/server/utils/rbac.d.ts.map +1 -1
- package/dist/server/utils/rbac.js +1 -1
- package/dist/server/utils/rbac.js.map +1 -1
- package/dist/server/utils/slugger.d.ts +1 -1
- package/dist/server/utils/slugger.d.ts.map +1 -1
- package/dist/server/utils/slugger.js +1 -1
- package/dist/server/utils/slugger.js.map +1 -1
- package/dist/server/web-server/http.d.ts +1 -1
- package/dist/server/web-server/http.d.ts.map +1 -1
- package/dist/server/web-server/middleware/dynamic-middleware/dynamic-middleware.d.ts.map +1 -1
- package/dist/server/web-server/middleware/dynamic-middleware/dynamic-middleware.js +1 -1
- package/dist/server/web-server/middleware/dynamic-middleware/dynamic-middleware.js.map +1 -1
- package/dist/server/web-server/routes/auth.d.ts +1 -1
- package/dist/server/web-server/routes/auth.d.ts.map +1 -1
- package/dist/server/web-server/routes/auth.js +1 -1
- package/dist/server/web-server/routes/auth.js.map +1 -1
- package/dist/server/web-server/routes/dynamic-route.js +1 -1
- package/dist/server/web-server/routes/dynamic-route.js.map +1 -1
- package/dist/server/web-server/routes/index.js +1 -1
- package/dist/server/web-server/routes/index.js.map +1 -1
- package/dist/shared/jsUtils.d.ts +1 -0
- package/dist/shared/jsUtils.d.ts.map +1 -1
- package/dist/shared/jsUtils.js +1 -1
- package/dist/shared/jsUtils.js.map +1 -1
- package/dist/shared/l10n/default-translations.d.ts +2 -2
- package/dist/shared/l10n/default-translations.d.ts.map +1 -1
- package/dist/shared/l10n/default-translations.js +1 -1
- package/dist/shared/l10n/default-translations.js.map +1 -1
- package/dist/shared/l10n/initL10n.d.ts.map +1 -1
- package/dist/shared/l10n/initL10n.js +1 -1
- package/dist/shared/l10n/initL10n.js.map +1 -1
- package/dist/shared/l10n/langs/ar.d.ts +3 -0
- package/dist/shared/l10n/langs/ar.d.ts.map +1 -0
- package/dist/shared/l10n/langs/ar.js +1 -0
- package/dist/shared/l10n/langs/ar.js.map +1 -0
- package/dist/shared/l10n/langs/de.d.ts +3 -0
- package/dist/shared/l10n/langs/de.d.ts.map +1 -0
- package/dist/shared/l10n/langs/de.js +1 -0
- package/dist/shared/l10n/langs/de.js.map +1 -0
- package/dist/shared/l10n/langs/en.d.ts +3 -0
- package/dist/shared/l10n/langs/en.d.ts.map +1 -0
- package/dist/shared/l10n/langs/en.js +1 -0
- package/dist/shared/l10n/langs/en.js.map +1 -0
- package/dist/shared/l10n/langs/es.d.ts +3 -0
- package/dist/shared/l10n/langs/es.d.ts.map +1 -0
- package/dist/shared/l10n/langs/es.js +1 -0
- package/dist/shared/l10n/langs/es.js.map +1 -0
- package/dist/shared/l10n/langs/fr.d.ts +3 -0
- package/dist/shared/l10n/langs/fr.d.ts.map +1 -0
- package/dist/shared/l10n/langs/fr.js +1 -0
- package/dist/shared/l10n/langs/fr.js.map +1 -0
- package/dist/shared/l10n/langs/hi.d.ts +3 -0
- package/dist/shared/l10n/langs/hi.d.ts.map +1 -0
- package/dist/shared/l10n/langs/hi.js +1 -0
- package/dist/shared/l10n/langs/hi.js.map +1 -0
- package/dist/shared/l10n/langs/it.d.ts +3 -0
- package/dist/shared/l10n/langs/it.d.ts.map +1 -0
- package/dist/shared/l10n/langs/it.js +1 -0
- package/dist/shared/l10n/langs/it.js.map +1 -0
- package/dist/shared/l10n/langs/ja.d.ts +3 -0
- package/dist/shared/l10n/langs/ja.d.ts.map +1 -0
- package/dist/shared/l10n/langs/ja.js +1 -0
- package/dist/shared/l10n/langs/ja.js.map +1 -0
- package/dist/shared/l10n/langs/ko.d.ts +3 -0
- package/dist/shared/l10n/langs/ko.d.ts.map +1 -0
- package/dist/shared/l10n/langs/ko.js +1 -0
- package/dist/shared/l10n/langs/ko.js.map +1 -0
- package/dist/shared/l10n/langs/pl.d.ts +3 -0
- package/dist/shared/l10n/langs/pl.d.ts.map +1 -0
- package/dist/shared/l10n/langs/pl.js +1 -0
- package/dist/shared/l10n/langs/pl.js.map +1 -0
- package/dist/shared/l10n/langs/pt-BR.d.ts +3 -0
- package/dist/shared/l10n/langs/pt-BR.d.ts.map +1 -0
- package/dist/shared/l10n/langs/pt-BR.js +1 -0
- package/dist/shared/l10n/langs/pt-BR.js.map +1 -0
- package/dist/shared/l10n/langs/pt.d.ts +3 -0
- package/dist/shared/l10n/langs/pt.d.ts.map +1 -0
- package/dist/shared/l10n/langs/pt.js +1 -0
- package/dist/shared/l10n/langs/pt.js.map +1 -0
- package/dist/shared/l10n/langs/ru.d.ts +3 -0
- package/dist/shared/l10n/langs/ru.d.ts.map +1 -0
- package/dist/shared/l10n/langs/ru.js +1 -0
- package/dist/shared/l10n/langs/ru.js.map +1 -0
- package/dist/shared/l10n/langs/uk.d.ts +3 -0
- package/dist/shared/l10n/langs/uk.d.ts.map +1 -0
- package/dist/shared/l10n/langs/uk.js +1 -0
- package/dist/shared/l10n/langs/uk.js.map +1 -0
- package/dist/shared/l10n/langs/zh.d.ts +3 -0
- package/dist/shared/l10n/langs/zh.d.ts.map +1 -0
- package/dist/shared/l10n/langs/zh.js +1 -0
- package/dist/shared/l10n/langs/zh.js.map +1 -0
- package/dist/shared/markdoc.d.ts +1 -0
- package/dist/shared/markdoc.d.ts.map +1 -1
- package/dist/shared/markdoc.js +2 -2
- package/dist/shared/markdoc.js.map +1 -1
- package/dist/types/extended-page-data.d.ts +1 -1
- package/dist/types/extended-page-data.d.ts.map +1 -1
- package/package.json +12 -12
- package/dist/server/plugins/asyncapi-docs/utils/document-to-nav-items.d.ts +0 -7
- package/dist/server/plugins/asyncapi-docs/utils/document-to-nav-items.d.ts.map +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/document-to-nav-items.js +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/document-to-nav-items.js.map +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/find-first-binding.d.ts +0 -3
- package/dist/server/plugins/asyncapi-docs/utils/find-first-binding.d.ts.map +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/find-first-binding.js +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/find-first-binding.js.map +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/map-channel-to-opertaions.d.ts +0 -2
- package/dist/server/plugins/asyncapi-docs/utils/map-channel-to-opertaions.d.ts.map +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/map-channel-to-opertaions.js +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/map-channel-to-opertaions.js.map +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/nav-to-api-items.d.ts +0 -3
- package/dist/server/plugins/asyncapi-docs/utils/nav-to-api-items.d.ts.map +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/nav-to-api-items.js +0 -1
- package/dist/server/plugins/asyncapi-docs/utils/nav-to-api-items.js.map +0 -1
- package/dist/server/plugins/catalog-entities/extensions/openapi-entities-extractor.d.ts +0 -13
- package/dist/server/plugins/catalog-entities/extensions/openapi-entities-extractor.d.ts.map +0 -1
- package/dist/server/plugins/catalog-entities/extensions/openapi-entities-extractor.js +0 -1
- package/dist/server/plugins/catalog-entities/extensions/openapi-entities-extractor.js.map +0 -1
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { AsyncApiDefinition } from '@redocly/asyncapi-docs';
|
|
2
|
+
import type { MarkdocChunk } from '../openapi-docs/load-definition.js';
|
|
2
3
|
import type { RedoclyConfig } from '@redocly/config';
|
|
3
4
|
import type { LifecycleContext } from '../../types';
|
|
4
5
|
export type BundledDefinition = {
|
|
5
6
|
document: AsyncApiDefinition;
|
|
6
7
|
config: Partial<RedoclyConfig & NonNullable<RedoclyConfig['apis']>[string]>;
|
|
7
8
|
customOutputRelativeFile: string | undefined;
|
|
9
|
+
markdocChunks: MarkdocChunk[];
|
|
8
10
|
realRelativePath: string;
|
|
9
11
|
relativePath: string;
|
|
10
|
-
|
|
12
|
+
isVirtual?: boolean;
|
|
11
13
|
};
|
|
12
14
|
export declare function asyncapiDocLoader(relativePath: string, { fs, logger, cache, getConfig, isPathIgnored }: LifecycleContext): Promise<BundledDefinition[]>;
|
|
15
|
+
export declare function asyncapiDocsLoader(_: string, context: LifecycleContext): Promise<BundledDefinition[]>;
|
|
13
16
|
//# sourceMappingURL=asyncapi-doc-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncapi-doc-loader.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/asyncapi-doc-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"asyncapi-doc-loader.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/asyncapi-doc-loader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;AAUlE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,MAAM,EAAE,OAAO,CAAC,aAAa,GAAG,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5E,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,wBAAsB,iBAAiB,CACrC,YAAY,EAAE,MAAM,EACpB,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,gBAAgB,GAChE,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAoG9B;AAED,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,gCA8B5E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import s from"node:path";import{bundle as E,createConfig as F,getTotals as O}from"@redocly/openapi-core";import{CONFIG_FILE_NAME as N}from"../../../constants/index.js";import{getAllApiConfigsByPath as S}from"../get-api-config.js";import{injectDecoratorIntoConfig as B}from"../openapi-docs/decorators.js";import{ExternalResolver as L}from"../../fs/utils/external-ref-resolver.js";import{deepMerge as M}from"../../../shared/jsUtils.js";import{pluralize as $}from"../../../shared/utils.js";async function W(o,{fs:n,logger:f,cache:u,getConfig:l,isPathIgnored:d}){let a;try{a=(await u.load(o,"yaml")).data}catch{return[]}if(!a?.asyncapi)return f.verbose(`${o} file is not AsyncAPI document. Skipping`),[];const p=[],r=await n.getFileInfo(o),t=await l(s.posix.dirname(o)),b=S(t?.apis,o,t.configPath),x=await d(o);for(const c of b){if(!c.output&&x)continue;const A=t.configPath?s.posix.dirname(t.configPath):".",e=c.output?s.posix.join(A,c.output):o;r&&c.output&&!await n.exists(e)&&n.addVirtualFile(e,r);const g=M(t,{rbac:void 0},c),D=s.resolve(n.cwd,t.realConfigPath||N),m=new L(n),R=await F(B(g,e),{configPath:D,externalRefResolver:m}),w=s.resolve(n.cwd,o),k={config:R,base:s.dirname(w),doc:{source:{absoluteRef:w},parsed:JSON.parse(JSON.stringify(a))},externalRefResolver:m,dereference:!0},{bundle:{parsed:v},problems:h,visitorsData:P}=await E(k),I=P["markdown/markdown"]?.markdocChunks,i=O(h);let y=[i.errors&&`${i.errors} ${$(i.errors,"error","errors")}`,i.warnings&&`${i.warnings} ${$(i.warnings,"warning","warnings")}`,i.ignored&&`${i.ignored} ignored`].filter(Boolean).join(", ");if(i.errors){const C=h.find(j=>j.severity==="error");throw new Error(`${y} while bundling ${e} definition.
|
|
2
2
|
|
|
3
3
|
${C?.message} at ${C?.location?.[0].pointer}
|
|
4
4
|
|
|
5
|
-
`)}
|
|
5
|
+
`)}i.warnings&&f.warn(`${y} while bundling %rp definition`,e);const V={document:_(v,t.metadata),config:g,relativePath:e,realRelativePath:r?.realRelativePath||e,customOutputRelativeFile:c.output&&e,markdocChunks:I,isVirtual:r?.isVirtual};p.push(V)}return p}async function X(o,n){const{fs:f,cache:u,getConfig:l}=n,d=[];for(const a of await f.scan(/(\.ya?ml|\.json)$/)){if(!await l(s.posix.dirname(a.relativePath)))continue;let r;try{r=await u.load(a.relativePath,"asyncapi-doc")}catch{continue}r.data?.length&&d.push(...r.data.map(t=>({...t,isVirtual:a.isVirtual||t.isVirtual})))}return d}function _(o,n){return n?{...o,info:{...o.info,"x-metadata":{...o.info["x-metadata"],...n}}}:o}export{W as asyncapiDocLoader,X as asyncapiDocsLoader};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncapi-doc-loader.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/asyncapi-doc-loader.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,SAAS,EAAU,MAAM,uBAAuB,CAAC;AAQhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAA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AAC;IAC5C,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC;QACxD,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QACxE,IAAI,CAAC,MAAM;YAAE,SAAS;QAEtB,IAAI,0BAA2D,CAAC;QAChE,IAAI,CAAC;YACH,0BAA0B,GAAG,MAAM,KAAK,CAAC,IAAI,CAC3C,MAAM,CAAC,YAAY,EACnB,cAAc,CACf,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC;YACP,SAAS;QACX,CAAC;QAED,IAAI,CAAC,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;YAC7C,SAAS;QACX,CAAC;QAED,WAAW,CAAC,IAAI,CACd,GAAG,0BAA0B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAC7C,GAAG,CAAC;YACJ,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,CAAC,CAAC,SAAS;SAC3C,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,SAAS,cAAc,CAAC,MAA0B,EAAE,QAAkC;IACpF,IAAI,CAAC,QAAQ;QAAE,OAAO,MAAM,CAAC;IAC7B,OAAO;QACL,GAAG,MAAM;QACT,IAAI,EAAE;YACJ,GAAG,MAAM,CAAC,IAAI;YACd,YAAY,EAAE;gBACZ,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC5B,GAAG,QAAQ;aACZ;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PageRouteDetails } from '../../types';
|
|
2
|
+
import type { MdOptions } from '@redocly/config';
|
|
3
|
+
export default function getServerProps({ fsPath }: PageRouteDetails, data: {
|
|
4
|
+
props: any;
|
|
5
|
+
}, { partials, variables }: MdOptions): Promise<any>;
|
|
6
|
+
//# sourceMappingURL=get-server-props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-server-props.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/get-server-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAIjD,wBAA8B,cAAc,CAC1C,EAAE,MAAM,EAAE,EAAE,gBAAgB,EAC5B,IAAI,EAAE;IAAE,KAAK,EAAE,GAAG,CAAA;CAAE,EACpB,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,SAAS,gBAanC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getPublicEnvVariables as o}from"../../utils";async function t({fsPath:r},e,{partials:n,variables:i}){return{definitionId:r,...e.props,markdown:{partials:n,variables:{...i,env:o()}}}}export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-server-props.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/get-server-props.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,cAAc,CAC1C,EAAE,MAAM,EAAoB,EAC5B,IAAoB,EACpB,EAAE,QAAQ,EAAE,SAAS,EAAa;IAElC,OAAO;QACL,YAAY,EAAE,MAAM,EAAE,qDAAqD;QAC3E,GAAG,IAAI,CAAC,KAAK;QACb,QAAQ,EAAE;YACR,QAAQ;YACR,SAAS,EAAE;gBACT,GAAG,SAAS;gBACZ,GAAG,EAAE,qBAAqB,EAAE;aAC7B;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { LifecyclePluginInstance } from '../../types';
|
|
2
|
-
export declare function asyncAPIDocsPlugin(): Promise<LifecyclePluginInstance>;
|
|
1
|
+
import type { LifecyclePluginInstance, PluginOptions } from '../../types';
|
|
2
|
+
export declare function asyncAPIDocsPlugin(pluginOptions: PluginOptions): Promise<LifecyclePluginInstance>;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAGV,uBAAuB,EAEvB,aAAa,EACd,MAAM,eAAe,CAAC;AAqBvB,wBAAsB,kBAAkB,CACtC,aAAa,EAAE,aAAa,GAC3B,OAAO,CAAC,uBAAuB,CAAC,CA2NlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import h from"path";import{simplifyAstStructure as C}from"@redocly/openapi-docs/lib/utils/simplifyAstStructure.js";import{buildMenuItems as E}from"@redocly/asyncapi-docs/lib/utils/build-menu-items.js";import{findFirstBinding as $}from"@redocly/asyncapi-docs/lib/utils/find-first-binding.js";import{ASYNC_API_DOCS_TEMPLATE_ID as w}from"../../../constants/index.js";import{combineUrls as A}from"@redocly/theme/core/utils";import{PUBLIC_API_DEFINITIONS_FOLDER as v}from"../../constants/common.js";import{getTemplatePath as R}from"./get-template-path.js";import{storeDefinitionBundles as x}from"./store-definition-bundles.js";import{asyncapiDocLoader as O,asyncapiDocsLoader as j}from"./asyncapi-doc-loader.js";import{logger as N}from"../../utils/index.js";import{slash as T}from"../../../shared/utils.js";import{searchResolver as F}from"./search/search-resolver.js";import{getAiDocumentsStore as L}from"./search/get-ai-search-documents.js";const _="asyncapi-docs-";async function Z(n){let l=[];return{id:"asyncapi",requiredEntitlements:["asyncapi"],loaders:{"asyncapi-doc":O,"asyncapi-docs":j},processContent:async(e,a)=>{if(process.env.REDOCLY_ASYNCAPI_DOCS_ENABLED!=="true")return;if((await a.getConfig()).plugins?.some(d=>d.startsWith("@redocly/portal-plugin-async-api/"))){N.warn("The plugin '@redocly/portal-plugin-async-api' is deprecated. Please remove it from your config to use built-in AsyncAPI docs.");return}const P=e.createTemplate(w,R("./template/AsyncApiDocs.js")),D=e.registerServerPropsGetter(w,R("./get-server-props.js"));for(const d of await a.fs.scan(/(\.ya?ml|\.json)$/))if(!await a.isPathIgnored(d.relativePath))try{const{data:r,compoundHash:S}=await a.cache.load(d.realRelativePath,"asyncapi-doc");if(!r?.length)continue;l=r.map(({markdocChunks:t,relativePath:c,isVirtual:u,customOutputRelativeFile:p,realRelativePath:f})=>({chunks:t,relativePath:c,realRelativePath:f,isVirtual:p!=null||d.isVirtual||u})),x(r,e.outdir,S);for(const t of r){const c=`${_}${t.relativePath}`,u=$(t.document),{navItems:p,apiItems:f}=E({asyncApiDoc:t.document,protocol:u||""}),y=[{url:A(v,`${b(t.relativePath,".json")}?download`)},{url:A(v,`${b(t.relativePath,".yaml")}?download`)}];await e.createSharedData(c,{document:t.document,apiItems:f,protocol:u,downloadUrls:y}),p.forEach(o=>{const s={fsPath:t.relativePath,slugSuffix:`/${o.link}`,templateId:P,sharedData:[{key:"AsyncApiDefinition",id:c}],getStaticData:g(a.withPathPrefix,o.label),serverPropsGetterIds:[D]};e.addRoute(s),o.items&&o.items.forEach(i=>{e.addRoute({...s,slugSuffix:`/${i.link}`,getStaticData:g(a.withPathPrefix,i.label)}),i.items&&i.items.forEach(m=>{e.addRoute({...s,slugSuffix:`/${m.link}`,getStaticData:g(a.withPathPrefix,i.label)})})})}),e.addRoute({fsPath:t.customOutputRelativeFile||t.relativePath,templateId:P,hasClientRoutes:!0,getSidebar:o=>{const s=i=>{const m={...i};return i.link&&(m.routeSlug=A(o.slug,i.link),m.link=A(o.slug,i.link)),i.items&&(m.items=i.items.map(s)),m};return[{type:"link",label:t.document.info?.title??"AsyncAPI Overview",routeSlug:o.slug,link:o.slug},...p.map(s)]},getSearchDocuments:F(e,t.document),getStaticData:g(a.withPathPrefix,t.document.info?.title??"AsyncAPI Docs"),getAiDocumentsStore:L({actions:e,document:t.document,metadata:{type:"asyncapi",title:t.document.info?.title??"AsyncAPI Docs",description:t.document.info?.description??"",...t.document.info?.["x-metadata"]??{}}}),metadata:{type:"asyncapi",title:t.document.info?.title??"AsyncAPI Docs",description:t.document.info?.description??"",...t.document.info?.["x-metadata"]??{}},sharedData:[{key:"AsyncApiDefinition",id:c}]})}}catch(r){console.error(r)}},afterRoutesCreated:async(e,a)=>{for(const{chunks:I,relativePath:k,isVirtual:P,realRelativePath:D}of l)await a.cache.load(k,{loader:async function(){await a.cache.load(D,"asyncapi-doc");for(const{node:r,markdown:S,pointer:t,key:c,relativePath:u}of I){const[p,...f]=t.split("#"),y=f.join("#"),o=T(h.relative(n.contentDir,p)),{ast:s}=await e.parseMarkdoc({content:S,relativePath:o,isVirtual:P,cacheId:o+(y?"#"+y:"")},a,{sharedDataIds:[`${_}${u}`]});r[`x-parsed-md-${c}`]={result:C(s)}}},name:"asyncapi-markdoc-inline-parser"})}}}function g(n,l){return async function(e,a){return{props:{settings:{baseUrlPath:n(e.baseSlug)},disableAutoScroll:!0,seo:{title:l}}}}}function b(n,l){const e=h.posix.dirname(n),a=h.posix.basename(n,h.posix.extname(n))+l;return h.posix.join(e,a)}export{Z as asyncAPIDocsPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,oBA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.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/is-asyncapi-doc.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAItD,eAAO,MAAM,aAAa,iBAAwB,MAAM,WAAW,gBAAgB,qBA+BlF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import f from"node:path";import{CONFIG_FILE_NAME as n}from"../../../constants/index.js";const o=async(a,r)=>{if(!a.match(/(\.ya?ml|\.json)$/)||f.posix.basename(a)===n||await r.isPathIgnored(a))return!1;const s=await r.fs.getFileInfo(a);if(!s)return!1;try{const{data:e}=await r.cache.load(s.realRelativePath,"yaml");return!!e?.asyncapi}catch{return!1}};export{o as isAsyncapiDoc};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-asyncapi-doc.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/asyncapi-docs/is-asyncapi-doc.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAI7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAAE,YAAoB,EAAE,OAAyB,EAAE,EAAE;IACrF,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,CAAC;QAC7C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IACE,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK,gBAAgB;QACtD,CAAC,MAAM,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,EAC3C,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,EAAE,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAC5D,IAAI,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAE5B,IAAI,CAAC;QACH,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,IAAI;QACvC,+CAA+C;QAC/C,QAAQ,CAAC,gBAAgB,EACzB,MAAM,CACP,CAAC;QAEF,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC;YACpB,OAAO,KAAK,CAAC;QACf,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,8DAA8D;QAC9D,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncApiDocs.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/asyncapi-docs/template/AsyncApiDocs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AsyncApiDocs.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/asyncapi-docs/template/AsyncApiDocs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAepD,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE;QACT,UAAU,EAAE;YACV,MAAM,EAAE,aAAa,CAAC;SACvB,CAAC;QACF,QAAQ,EAAE;YACR,WAAW,EAAE,MAAM,CAAC;SACrB,CAAC;KACH,CAAC;CACH,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,SAAS,EAAE,EAAE,aAAa,qBAmBhE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from"styled-components";import*as o from"react";import{RedoclyAsyncAPIDocs as d}from"@redocly/asyncapi-docs";import{withPathPrefix as m}from"@redocly/theme/core/utils";import{usePageSharedData as p}from"../../../../client/app/hooks";import{useCollectMarkdocOptions as f}from"./helpers";function u({pageProps:t}){const a=p("AsyncApiDefinition"),{document:i,apiItems:r,protocol:e,downloadUrls:n}=a,c=m(t?.settings?.baseUrlPath),s=f(t);return o.createElement(h,null,o.createElement(d,{pageProps:t,document:i,apiItems:r,routingBasePath:c,protocol:e,downloadUrls:n,markdocOptions:s}))}const h=l.div`
|
|
2
2
|
a[id],
|
|
3
3
|
a[data-section-id],
|
|
4
4
|
div[data-section-id] {
|
|
@@ -6,4 +6,4 @@ import c from"styled-components";import*as o from"react";import{RedoclyAsyncAPID
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
--sidebar-width: 0px;
|
|
9
|
-
`;export{
|
|
9
|
+
`;export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncApiDocs.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/asyncapi-docs/template/AsyncApiDocs.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"AsyncApiDocs.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/asyncapi-docs/template/AsyncApiDocs.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAK7D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAqBrD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,SAAS,EAAiB;IAC/D,MAAM,kBAAkB,GAAG,iBAAiB,CAAyB,oBAAoB,CAAC,CAAC;IAC3F,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,kBAAkB,CAAC;IAC1E,MAAM,eAAe,GAAG,cAAc,CAAC,SAAS,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACzE,MAAM,cAAc,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAE3D,OAAO,CACL,oBAAC,gBAAgB;QACf,oBAAC,mBAAmB,IAClB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,eAAe,EAAE,eAAe,EAChC,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,GAC9B,CACe,CACpB,CAAC;AACJ,CAAC;AAED,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;CAQlC,CAAC"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import type { PageProps } from '@redocly/config';
|
|
2
|
+
export declare function useCollectMarkdocOptions({ markdown }: PageProps): {
|
|
3
|
+
partials: Record<string, import("@markdoc/markdoc").Node | import("@markdoc/markdoc").Node[]> | undefined;
|
|
4
|
+
variables?: Record<string, any>;
|
|
5
|
+
tags: {
|
|
6
|
+
[x: string]: (import("@markdoc/markdoc").Schema & {
|
|
7
|
+
dynamicComponentLib: string;
|
|
8
|
+
}) | (import("@markdoc/markdoc").Schema<Readonly<Partial<{
|
|
9
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
10
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
11
|
+
variables: Record<string, any>;
|
|
12
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
13
|
+
partials: Record<string, any>;
|
|
14
|
+
validation?: {
|
|
15
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
16
|
+
validateFunctions?: boolean;
|
|
17
|
+
environment?: string;
|
|
18
|
+
};
|
|
19
|
+
}>>, string> & {
|
|
20
|
+
attributes?: Record<string, import("@markdoc/markdoc").SchemaAttribute & {
|
|
21
|
+
resolver?: string;
|
|
22
|
+
}>;
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
nodes: {
|
|
26
|
+
strong: {
|
|
27
|
+
children: string[];
|
|
28
|
+
render?: string | undefined;
|
|
29
|
+
attributes?: Record<string, import("@markdoc/markdoc").SchemaAttribute>;
|
|
30
|
+
slots?: Record<string, import("@markdoc/markdoc").SchemaSlot>;
|
|
31
|
+
selfClosing?: boolean;
|
|
32
|
+
inline?: boolean;
|
|
33
|
+
transform?(node: import("@markdoc/markdoc").Node, config: Readonly<Partial<{
|
|
34
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
35
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
36
|
+
variables: Record<string, any>;
|
|
37
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
38
|
+
partials: Record<string, any>;
|
|
39
|
+
validation?: {
|
|
40
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
41
|
+
validateFunctions?: boolean;
|
|
42
|
+
environment?: string;
|
|
43
|
+
};
|
|
44
|
+
}>>): import("@markdoc/markdoc").MaybePromise<import("@markdoc/markdoc").RenderableTreeNodes>;
|
|
45
|
+
validate?(node: import("@markdoc/markdoc").Node, config: Readonly<Partial<{
|
|
46
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
47
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
48
|
+
variables: Record<string, any>;
|
|
49
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
50
|
+
partials: Record<string, any>;
|
|
51
|
+
validation?: {
|
|
52
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
53
|
+
validateFunctions?: boolean;
|
|
54
|
+
environment?: string;
|
|
55
|
+
};
|
|
56
|
+
}>>): import("@markdoc/markdoc").MaybePromise<import("@markdoc/markdoc").ValidationError[]>;
|
|
57
|
+
description?: string;
|
|
58
|
+
};
|
|
59
|
+
em: {
|
|
60
|
+
children: string[];
|
|
61
|
+
render?: string | undefined;
|
|
62
|
+
attributes?: Record<string, import("@markdoc/markdoc").SchemaAttribute>;
|
|
63
|
+
slots?: Record<string, import("@markdoc/markdoc").SchemaSlot>;
|
|
64
|
+
selfClosing?: boolean;
|
|
65
|
+
inline?: boolean;
|
|
66
|
+
transform?(node: import("@markdoc/markdoc").Node, config: Readonly<Partial<{
|
|
67
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
68
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
69
|
+
variables: Record<string, any>;
|
|
70
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
71
|
+
partials: Record<string, any>;
|
|
72
|
+
validation?: {
|
|
73
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
74
|
+
validateFunctions?: boolean;
|
|
75
|
+
environment?: string;
|
|
76
|
+
};
|
|
77
|
+
}>>): import("@markdoc/markdoc").MaybePromise<import("@markdoc/markdoc").RenderableTreeNodes>;
|
|
78
|
+
validate?(node: import("@markdoc/markdoc").Node, config: Readonly<Partial<{
|
|
79
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
80
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
81
|
+
variables: Record<string, any>;
|
|
82
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
83
|
+
partials: Record<string, any>;
|
|
84
|
+
validation?: {
|
|
85
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
86
|
+
validateFunctions?: boolean;
|
|
87
|
+
environment?: string;
|
|
88
|
+
};
|
|
89
|
+
}>>): import("@markdoc/markdoc").MaybePromise<import("@markdoc/markdoc").ValidationError[]>;
|
|
90
|
+
description?: string;
|
|
91
|
+
};
|
|
92
|
+
s: {
|
|
93
|
+
children: string[];
|
|
94
|
+
render?: string | undefined;
|
|
95
|
+
attributes?: Record<string, import("@markdoc/markdoc").SchemaAttribute>;
|
|
96
|
+
slots?: Record<string, import("@markdoc/markdoc").SchemaSlot>;
|
|
97
|
+
selfClosing?: boolean;
|
|
98
|
+
inline?: boolean;
|
|
99
|
+
transform?(node: import("@markdoc/markdoc").Node, config: Readonly<Partial<{
|
|
100
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
101
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
102
|
+
variables: Record<string, any>;
|
|
103
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
104
|
+
partials: Record<string, any>;
|
|
105
|
+
validation?: {
|
|
106
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
107
|
+
validateFunctions?: boolean;
|
|
108
|
+
environment?: string;
|
|
109
|
+
};
|
|
110
|
+
}>>): import("@markdoc/markdoc").MaybePromise<import("@markdoc/markdoc").RenderableTreeNodes>;
|
|
111
|
+
validate?(node: import("@markdoc/markdoc").Node, config: Readonly<Partial<{
|
|
112
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
113
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
114
|
+
variables: Record<string, any>;
|
|
115
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
116
|
+
partials: Record<string, any>;
|
|
117
|
+
validation?: {
|
|
118
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
119
|
+
validateFunctions?: boolean;
|
|
120
|
+
environment?: string;
|
|
121
|
+
};
|
|
122
|
+
}>>): import("@markdoc/markdoc").MaybePromise<import("@markdoc/markdoc").ValidationError[]>;
|
|
123
|
+
description?: string;
|
|
124
|
+
};
|
|
125
|
+
link: {
|
|
126
|
+
children: string[];
|
|
127
|
+
render?: string | undefined;
|
|
128
|
+
attributes?: Record<string, import("@markdoc/markdoc").SchemaAttribute>;
|
|
129
|
+
slots?: Record<string, import("@markdoc/markdoc").SchemaSlot>;
|
|
130
|
+
selfClosing?: boolean;
|
|
131
|
+
inline?: boolean;
|
|
132
|
+
transform?(node: import("@markdoc/markdoc").Node, config: Readonly<Partial<{
|
|
133
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
134
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
135
|
+
variables: Record<string, any>;
|
|
136
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
137
|
+
partials: Record<string, any>;
|
|
138
|
+
validation?: {
|
|
139
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
140
|
+
validateFunctions?: boolean;
|
|
141
|
+
environment?: string;
|
|
142
|
+
};
|
|
143
|
+
}>>): import("@markdoc/markdoc").MaybePromise<import("@markdoc/markdoc").RenderableTreeNodes>;
|
|
144
|
+
validate?(node: import("@markdoc/markdoc").Node, config: Readonly<Partial<{
|
|
145
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
146
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
147
|
+
variables: Record<string, any>;
|
|
148
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
149
|
+
partials: Record<string, any>;
|
|
150
|
+
validation?: {
|
|
151
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
152
|
+
validateFunctions?: boolean;
|
|
153
|
+
environment?: string;
|
|
154
|
+
};
|
|
155
|
+
}>>): import("@markdoc/markdoc").MaybePromise<import("@markdoc/markdoc").ValidationError[]>;
|
|
156
|
+
description?: string;
|
|
157
|
+
};
|
|
158
|
+
document: {
|
|
159
|
+
children: string[];
|
|
160
|
+
render?: string | undefined;
|
|
161
|
+
attributes?: Record<string, import("@markdoc/markdoc").SchemaAttribute>;
|
|
162
|
+
slots?: Record<string, import("@markdoc/markdoc").SchemaSlot>;
|
|
163
|
+
selfClosing?: boolean;
|
|
164
|
+
inline?: boolean;
|
|
165
|
+
transform?(node: import("@markdoc/markdoc").Node, config: Readonly<Partial<{
|
|
166
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
167
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
168
|
+
variables: Record<string, any>;
|
|
169
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
170
|
+
partials: Record<string, any>;
|
|
171
|
+
validation?: {
|
|
172
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
173
|
+
validateFunctions?: boolean;
|
|
174
|
+
environment?: string;
|
|
175
|
+
};
|
|
176
|
+
}>>): import("@markdoc/markdoc").MaybePromise<import("@markdoc/markdoc").RenderableTreeNodes>;
|
|
177
|
+
validate?(node: import("@markdoc/markdoc").Node, config: Readonly<Partial<{
|
|
178
|
+
nodes: Partial<Record<import("@markdoc/markdoc").NodeType, import("@markdoc/markdoc").Schema<Partial<any>, string>>>;
|
|
179
|
+
tags: Record<string, import("@markdoc/markdoc").Schema>;
|
|
180
|
+
variables: Record<string, any>;
|
|
181
|
+
functions: Record<string, import("@markdoc/markdoc").ConfigFunction>;
|
|
182
|
+
partials: Record<string, any>;
|
|
183
|
+
validation?: {
|
|
184
|
+
parents?: import("@markdoc/markdoc").Node[];
|
|
185
|
+
validateFunctions?: boolean;
|
|
186
|
+
environment?: string;
|
|
187
|
+
};
|
|
188
|
+
}>>): import("@markdoc/markdoc").MaybePromise<import("@markdoc/markdoc").ValidationError[]>;
|
|
189
|
+
description?: string;
|
|
190
|
+
};
|
|
191
|
+
item: import("@markdoc/markdoc").Schema;
|
|
192
|
+
heading: import("@markdoc/markdoc").Schema;
|
|
193
|
+
fence: import("@markdoc/markdoc").Schema;
|
|
194
|
+
table: import("@markdoc/markdoc").Schema;
|
|
195
|
+
text: import("@markdoc/markdoc").Schema;
|
|
196
|
+
};
|
|
197
|
+
components: any;
|
|
198
|
+
};
|
|
199
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/plugins/asyncapi-docs/template/helpers.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AASjD,wBAAgB,wBAAwB,CAAC,EAAE,QAAQ,EAAE,EAAE,SAAS;;;;;;;;;;;;;uBAU/C,CAAC;iCACO,CAAC;2BACA,CAAA;;;+CAhBsC,kBACrD;wBAA0C,CAAC;;;;;;;;;;;;;;;;;;;2BAarC,CAAC;qCACO,CAAC;+BACA,CAAA;;;;;;;;;;2BAFT,CAAC;qCACO,CAAC;+BACA,CAAA;;;;;;;;;;;;;;;;;;;2BAFT,CAAC;qCACO,CAAC;+BACA,CAAA;;;;;;;;;;2BAFT,CAAC;qCACO,CAAC;+BACA,CAAA;;;;;;;;;;;;;;;;;;;2BAFT,CAAC;qCACO,CAAC;+BACA,CAAA;;;;;;;;;;2BAFT,CAAC;qCACO,CAAC;+BACA,CAAA;;;;;;;;;;;;;;;;;;;2BAFT,CAAC;qCACO,CAAC;+BACA,CAAA;;;;;;;;;;2BAFT,CAAC;qCACO,CAAC;+BACA,CAAA;;;;;;;;;;;;;;;;;;;2BAFT,CAAC;qCACO,CAAC;+BACA,CAAA;;;;;;;;;;2BAFT,CAAC;qCACO,CAAC;+BACA,CAAA;;;;;;;;;;;;EAQzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{useMemo as t}from"react";import{components as s}from"@redocly-markdoc/components";import{tags as m,components as r}from"@redocly/theme/markdoc/default";import*as n from"../../markdown/markdoc/custom-components/index.js";import*as e from"../../markdown/markdoc/nodes/index.js";import p from"../../markdown/markdoc/tags/index.js";import{parsePartials as a}from"../../openapi-docs/template/helpers.js";function C({markdown:o}){return t(()=>({tags:{...p,...m},nodes:{...e},components:{...n,...r,...s,...globalThis.__LOADER.markdocComponents},...o,partials:a(o?.partials)}),[o])}export{C as useCollectMarkdocOptions};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../../../../src/server/plugins/asyncapi-docs/template/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,6BAA6B;AAC7B,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAI/E,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAElG,OAAO,KAAK,gBAAgB,MAAM,mDAAmD,CAAC;AACtF,OAAO,KAAK,YAAY,MAAM,uCAAuC,CAAC;AACtE,OAAO,WAAW,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAEvE,MAAM,UAAU,wBAAwB,CAAC,EAAE,QAAQ,EAAa;IAC9D,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE;QAClC,OAAO;YACL,IAAI,EAAE;gBACJ,GAAG,WAAW;gBACd,GAAG,SAAS;aACb;YACD,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE;YAC1B,UAAU,EAAE;gBACV,GAAG,gBAAgB;gBACnB,GAAG,eAAe;gBAClB,GAAG,kBAAkB;gBACrB,GAAI,UAAkB,CAAC,UAAU,CAAC,CAAC,iBAAiB;aACrD;YACD,GAAG,QAAQ;YACX,QAAQ,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC;SAC5C,CAAC;IACJ,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,cAAc,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BundledDefinition } from '../../../../asyncapi-docs/asyncapi-doc-loader';
|
|
2
|
+
import type { EntityFileSchema } from '../../../schemas/file-schemas';
|
|
3
|
+
import { BaseApiDescriptionExtractor, type BaseApiDescriptionExtractorParams } from './base.js';
|
|
4
|
+
type Params = BaseApiDescriptionExtractorParams;
|
|
5
|
+
export declare class AsyncApiEntitiesExtractor extends BaseApiDescriptionExtractor<BundledDefinition> {
|
|
6
|
+
constructor(params: Params);
|
|
7
|
+
mapApiDefinitionToEntity(definition: BundledDefinition): EntityFileSchema;
|
|
8
|
+
loadApiDefinitions(): Promise<BundledDefinition[]>;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=asyncapi-entities-extractor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncapi-entities-extractor.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/catalog-entities/extensions/api-description/extractors/asyncapi-entities-extractor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AACvF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAItE,OAAO,EAAE,2BAA2B,EAAE,KAAK,iCAAiC,EAAE,MAAM,WAAW,CAAC;AAEhG,KAAK,MAAM,GAAG,iCAAiC,CAAC;AAEhD,qBAAa,yBAA0B,SAAQ,2BAA2B,CAAC,iBAAiB,CAAC;gBAC/E,MAAM,EAAE,MAAM;IAI1B,wBAAwB,CAAC,UAAU,EAAE,iBAAiB,GAAG,gBAAgB;IAmBnE,kBAAkB,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAGzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{removeLeadingSlash as s}from"@redocly/theme";import{formatToKebabCase as i}from"../../../../../../shared/jsUtils.js";import{removeMarkdocTags as c}from"../../../../../../shared/markdoc.js";import{BaseApiDescriptionExtractor as m}from"./base.js";class u extends m{constructor(t){super("asyncapi",t)}mapApiDefinitionToEntity(t){const a=s(t.realRelativePath),e=t.document.info.title,o=i(e);return{type:this.type,key:o,title:e,summary:c(t.document.info.description),tags:t.document.info.tags?.map(r=>r.name),metadata:{specType:this.specType,schema:JSON.stringify(t.document),descriptionFile:a}}}async loadApiDefinitions(){return(await this.context.cache.load(".","asyncapi-docs")).data}}export{u as AsyncApiEntitiesExtractor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asyncapi-entities-extractor.js","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/catalog-entities/extensions/api-description/extractors/asyncapi-entities-extractor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAKpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAA0C,MAAM,WAAW,CAAC;AAIhG,MAAM,OAAO,yBAA0B,SAAQ,2BAA8C;IAC3F,YAAY,MAAc;QACxB,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAC5B,CAAC;IAED,wBAAwB,CAAC,UAA6B;QACpD,MAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;QACvE,MAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;QAC7C,MAAM,YAAY,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAE9C,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,iBAAiB,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC;YAChE,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;YAC3D,QAAQ,EAAE;gBACR,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,QAAQ,CAAC;gBAC3C,eAAe,EAAE,cAAc;aAChC;SACF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,OAAO,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAsB,GAAG,EAAE,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC;IACzF,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { FileInfo, LifecycleContext, ProcessContentActions } from '../../../../../types';
|
|
2
|
+
import type { CatalogEntitiesService } from '../../../databases';
|
|
3
|
+
import type { EntityFileSchema } from '../../../schemas/file-schemas';
|
|
4
|
+
import type { ApiDescriptionMetadataSchema } from '../../../schemas/metadata-file-schemas';
|
|
5
|
+
export type BaseApiDescriptionExtractorParams = {
|
|
6
|
+
actions: ProcessContentActions;
|
|
7
|
+
context: LifecycleContext;
|
|
8
|
+
catalogEntitiesService: CatalogEntitiesService;
|
|
9
|
+
};
|
|
10
|
+
export declare abstract class BaseApiDescriptionExtractor<BundledApiDefinition extends Pick<FileInfo, 'realRelativePath' | 'relativePath' | 'isVirtual'>> {
|
|
11
|
+
protected type: "api-description";
|
|
12
|
+
protected specType: ApiDescriptionMetadataSchema['specType'];
|
|
13
|
+
protected actions: ProcessContentActions;
|
|
14
|
+
protected context: LifecycleContext;
|
|
15
|
+
private catalogEntitiesService;
|
|
16
|
+
private uniqueKeyResolver;
|
|
17
|
+
constructor(specType: ApiDescriptionMetadataSchema['specType'], params: BaseApiDescriptionExtractorParams);
|
|
18
|
+
extract(): Promise<void>;
|
|
19
|
+
protected abstract loadApiDefinitions(): Promise<BundledApiDefinition[]>;
|
|
20
|
+
protected abstract mapApiDefinitionToEntity(definition: BundledApiDefinition): EntityFileSchema;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=base.d.ts.map
|
package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/catalog-entities/extensions/api-description/extractors/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAO3F,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE,qBAAqB,CAAC;IAC/B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,sBAAsB,EAAE,sBAAsB,CAAC;CAChD,CAAC;AAEF,8BAAsB,2BAA2B,CAC/C,oBAAoB,SAAS,IAAI,CAAC,QAAQ,EAAE,kBAAkB,GAAG,cAAc,GAAG,WAAW,CAAC;IAE9F,SAAS,CAAC,IAAI,oBAA8B;IAC5C,SAAS,CAAC,QAAQ,EAAE,4BAA4B,CAAC,UAAU,CAAC,CAAC;IAC7D,SAAS,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACzC,SAAS,CAAC,OAAO,EAAE,gBAAgB,CAAC;IACpC,OAAO,CAAC,sBAAsB,CAAyB;IACvD,OAAO,CAAC,iBAAiB,CAA2B;gBAGlD,QAAQ,EAAE,4BAA4B,CAAC,UAAU,CAAC,EAClD,MAAM,EAAE,iCAAiC;IAQrC,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAgC9B,SAAS,CAAC,QAAQ,CAAC,kBAAkB,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC;IACxE,SAAS,CAAC,QAAQ,CAAC,wBAAwB,CAAC,UAAU,EAAE,oBAAoB,GAAG,gBAAgB;CAChG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{promiseMapLimit as c}from"../../../../../utils/async.js";import{UniqueKeyResolver as n}from"../../../../../utils/conflict-resolvers.js";const a=15;class h{type="api-description";specType;actions;context;catalogEntitiesService;uniqueKeyResolver=new n;constructor(t,e){this.specType=t,this.actions=e.actions,this.context=e.context,this.catalogEntitiesService=e.catalogEntitiesService}async extract(){const{logger:t}=this.context,e=await this.loadApiDefinitions(),r=t.startTiming();let o=0;await c(e,a,async s=>{try{const i=this.mapApiDefinitionToEntity(s);i.key=this.uniqueKeyResolver.resolve(i.key),await this.catalogEntitiesService.createEntityInLocalDatabase(i,s.realRelativePath),o++}catch(i){t.error(`Error extracting entities from ${this.specType} description: ${s.realRelativePath}`),t.error(i)}}),t.infoTime(r,`Created ${o} entities from ${e.length} ${this.specType} descriptions.`)}}export{h as BaseApiDescriptionExtractor};
|
package/dist/server/plugins/catalog-entities/extensions/api-description/extractors/base.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/catalog-entities/extensions/api-description/extractors/base.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAE/E,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAQ7B,MAAM,OAAgB,2BAA2B;IAGrC,IAAI,GAAG,iBAA0B,CAAC;IAClC,QAAQ,CAA2C;IACnD,OAAO,CAAwB;IAC/B,OAAO,CAAmB;IAC5B,sBAAsB,CAAy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WAAW,CAAC,MAAM,IAAI,IAAI,CAAC,QAAQ,gBAAgB,CAChG,CAAC;IACJ,CAAC;CAIF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BundledDefinition } from '../../../../openapi-docs/load-definition';
|
|
2
|
+
import type { EntityFileSchema } from '../../../schemas/file-schemas';
|
|
3
|
+
import { BaseApiDescriptionExtractor, BaseApiDescriptionExtractorParams } from './base.js';
|
|
4
|
+
type Params = BaseApiDescriptionExtractorParams;
|
|
5
|
+
export declare class OpenApiEntitiesExtractor extends BaseApiDescriptionExtractor<BundledDefinition> {
|
|
6
|
+
constructor(params: Params);
|
|
7
|
+
loadApiDefinitions(): Promise<BundledDefinition[]>;
|
|
8
|
+
mapApiDefinitionToEntity(definition: BundledDefinition): EntityFileSchema;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=openapi-entities-extractor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi-entities-extractor.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/catalog-entities/extensions/api-description/extractors/openapi-entities-extractor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAItE,OAAO,EAAE,2BAA2B,EAAE,iCAAiC,EAAE,MAAM,WAAW,CAAC;AAE3F,KAAK,MAAM,GAAG,iCAAiC,CAAC;AAEhD,qBAAa,wBAAyB,SAAQ,2BAA2B,CAAC,iBAAiB,CAAC;gBAC9E,MAAM,EAAE,MAAM;IAIpB,kBAAkB,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAIxD,wBAAwB,CAAC,UAAU,EAAE,iBAAiB,GAAG,gBAAgB;CAkB1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{removeLeadingSlash as r}from"@redocly/theme";import{formatToKebabCase as s}from"../../../../../../shared/jsUtils.js";import{removeMarkdocTags as n}from"../../../../../../shared/markdoc.js";import{BaseApiDescriptionExtractor as p}from"./base.js";class y extends p{constructor(t){super("openapi",t)}async loadApiDefinitions(){return this.actions.loadOpenApiDefinitions(this.context)}mapApiDefinitionToEntity(t){const i=r(t.realRelativePath),e=t.definition.info.title,o=s(e);return{type:this.type,key:o,title:e,summary:n(t.definition.info.description),tags:t.definition.tags?.map(a=>a.name),metadata:{specType:this.specType,schema:JSON.stringify(t.definition),descriptionFile:i}}}}export{y as OpenApiEntitiesExtractor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi-entities-extractor.js","sourceRoot":"","sources":["../../../../../../../../../src/server/plugins/catalog-entities/extensions/api-description/extractors/openapi-entities-extractor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAKpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAqC,MAAM,WAAW,CAAC;AAI3F,MAAM,OAAO,wBAAyB,SAAQ,2BAA8C;IAC1F,YAAY,MAAc;QACxB,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,kBAAkB;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,wBAAwB,CAAC,UAA6B;QACpD,MAAM,cAAc,GAAG,kBAAkB,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;QACvE,MAAM,KAAK,GAAG,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC;QAC/C,MAAM,YAAY,GAAG,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAE9C,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,iBAAiB,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC;YAClE,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;YACxD,QAAQ,EAAE;gBACR,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBACvB,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,UAAU,CAAC;gBAC7C,eAAe,EAAE,cAAc;aAChC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAgB7D,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,uBAAuB,CAAC,CA2G9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{promiseMapLimit as
|
|
1
|
+
import{promiseMapLimit as l}from"../../utils/async.js";import{validateEntity as d}from"./entities/validate-entity.js";import{extractEntityContent as A}from"./entities/extract-entities-content.js";import{CATALOG_ENTITIES_DEFAULT_CONFIG as I,ENTITY_SCHEMA_EXCLUDED_FOLDERS as _}from"./constants.js";import{CatalogEntitiesService as L}from"./databases/index.js";import{getTemplatePath as m}from"./utils/get-template-path.js";import{AsyncApiEntitiesExtractor as D}from"./extensions/api-description/extractors/asyncapi-entities-extractor.js";import{OpenApiEntitiesExtractor as O}from"./extensions/api-description/extractors/openapi-entities-extractor.js";import{mergeCatalogConfig as N}from"./merge-catalog-config.js";const g=15,R="catalog-entity-template",S="catalog-entity";async function Y(){return{id:"CatalogEntities",requiredEntitlements:["catalog"],async processContent(t,e){if(process.env.NEW_CATALOG_ENABLED!=="true")return;const{logger:o}=e,a=await L.getInstance({baseDbDir:t.serverOutDir,removeExisting:!0,runOnlyLocalDatabase:!0}),p=[new O({actions:t,context:e,catalogEntitiesService:a}),new D({actions:t,context:e,catalogEntitiesService:a})],E=o.startTiming();let s=0,c=0;const f=/\.(entity|entities)\.(yaml|yml)$/,u=await e.fs.scan(f);await l(u,g,async({relativePath:r})=>{try{if(_.some(n=>r.includes(n)))return;const i=await A(r,e);if(!i)return;d(i);for(const n of i.entities)a.createEntityInLocalDatabase(n,r);s+=i.entities.length,c++}catch(i){o.error(`Error extracting entities from ${r}: ${i.message}`)}}),o.infoTime(E,`Found ${s} entities in ${c} files`);const C=t.registerServerPropsGetter(S,m("../get-server-props.js")),T=t.createTemplate(R,m("../template/index.js")),y=await e.getConfig();t.addRoute({duplicateInAllLocales:!0,slug:"/catalogs",fsPath:"",templateId:T,excludeFromSidebar:!0,hasClientRoutes:!0,serverPropsGetterIds:[C],getNavText:()=>Promise.resolve("Catalog"),getStaticData:async()=>({props:{catalogConfig:N(I,y.entitiesCatalog)}})}),await l(p,g,async r=>await r.extract()),o.info("Catalog Entities plugin processed")}}}export{Y as catalogEntitiesPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/catalog-entities/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAE,8BAA8B,EAAE,MAAM,gBAAg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