@redocly/revel-reef 0.124.0-next.1 → 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 +85 -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 +2 -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 +3 -3
- 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/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/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/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 +5 -1
- 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/globs.js +1 -1
- package/dist/server/utils/globs.js.map +1 -1
- package/dist/server/utils/rbac.js +1 -1
- package/dist/server/utils/rbac.js.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/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/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
|
@@ -1,13 +1,14 @@
|
|
|
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
|
-
channelToOperations: Record<string, string[]>;
|
|
11
12
|
isVirtual?: boolean;
|
|
12
13
|
};
|
|
13
14
|
export declare function asyncapiDocLoader(relativePath: string, { fs, logger, cache, getConfig, isPathIgnored }: LifecycleContext): Promise<BundledDefinition[]>;
|
|
@@ -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 s from"node:path";import{bundle as
|
|
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
|
-
`)}i.warnings&&f.warn(`${
|
|
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,CAAC;AAErD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;
|
|
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,CAAC;AAErD,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB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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,oBAAoB,EAAE,MAAM,yDAAyD,CAAC;AAC/F,OAAO,EAAE,cAAc,EAAE,MAAM,sDAAsD,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wDAAwD,CAAC;AAY1F,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,cAAc,EA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;YACL,KAAK,EAAE;gBACL,QAAQ,EAAE;oBACR,WAAW,EAAE,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC;iBAC5C;gBACD,iBAAiB,EAAE,IAAI;gBACvB,GAAG,EAAE;oBACH,KAAK;iBACN;aACF;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,oBAAoB,CAAC,QAAgB,EAAE,OAAe;IAC7D,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,OAAO,CAAC;IACtF,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-asyncapi-doc.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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-and-validate-config.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/plugins/config-parser/loaders/utils/read-and-validate-config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"read-and-validate-config.d.ts","sourceRoot":"","sources":["../../../../../../../../src/server/plugins/config-parser/loaders/utils/read-and-validate-config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,sBAAsB,CAAC;AAS/C,wBAAsB,qBAAqB,CAAC,CAAC,SAAS,OAAO,CAAC,aAAa,CAAC,EAC1E,UAAU,EAAE,MAAM,EAClB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,EACnC,qBAAqB,EAAE,CAAC,YAAY,EAAE,CAAC,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,GACjF,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CA2FxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g from"path";import{lintConfig as C,loadConfig as P,createConfigTypes as b}from"@redocly/openapi-core";import{safeParsePartial as T}from"../../safe-parse.js";import{formatConfigProblem as R}from"../../format-error.js";import{logger as m,readEnvVariable as x}from"../../../../utils/index.js";import{deepMerge as E}from"../../../../../shared/jsUtils.js";import{ExternalResolver as j}from"../../../../fs/utils/external-ref-resolver.js";import{resolveMutuallyExclusiveProps as M}from"../../resolve-mutual-exclusion.js";async function W(e,t,o,i){const h=(await t.getFileInfo(e))?.realRelativePath||e;async function v(){const a=new j(t),s=g.join(t.cwd,h),n=await P({configPath:s,externalRefResolver:a}),f=await i(n.resolvedConfig);if(f===void 0)return n.resolvedConfig;const u=[...n.document?.source?await C({config:n,externalConfigTypes:b(f,n)}):[],...n.document?.source?M(n.resolvedConfig,n.document?.source):[]];if(u.length>0)for(const w of u)o(new Error(R(w,t.cwd)));return n.resolvedConfig}const l=await t.exists(e)?await v():{},y=$(l),p=await i(l);let c=p?T(p,l):l;const{env:d}=c;if(d){const a=x("REDOCLY_ENV")||"development",s=d[a]||{};c=E(c,s)}const r=k(c,y);if(r.imports&&r.imports.length>0){m.warn("The 'imports' property is deprecated. Please use 'plugins' property instead.");const a=new Set([...r.plugins||[],...r.imports.map(s=>g.posix.join(s,"plugin.js"))]);r.plugins=Array.from(a),delete r.imports}return r.catalog&&(m.warn("The 'catalog' property is deprecated. Please use 'catalogClassic' property instead."),r.catalogClassic={...r.catalog},delete r.catalog),r}function $(e){if(!e.theme)return[];m.warn("The 'theme' property in redocly.yaml is deprecated. Please move all of the properties from 'theme' to the root of the config.");const t=[];for(const o of Object.keys(e.theme))e[o]==null?t.push(o):m.warn(`Detected both '${o}' and 'theme.${o}' properties in redocly.yaml. The 'theme.${o}' property will be ignored and needs to be removed or merged into the '${o}'.`);return t}function k(e,t){if(!e.theme||t.length===0)return e;const o={...e};for(const i of t)o[i]=e.theme[i];return delete o.theme,o}export{W as readAndValidateConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-and-validate-config.js","sourceRoot":"","sources":["../../../../../../../../src/server/plugins/config-parser/loaders/utils/read-and-validate-config.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"read-and-validate-config.js","sourceRoot":"","sources":["../../../../../../../../src/server/plugins/config-parser/loaders/utils/read-and-validate-config.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAOlF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+CAA+C,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAElF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,UAAkB,EAClB,EAAM,EACN,WAAmC,EACnC,qBAAkF;IAElF,MAAM,QAAQ,GAAG,MAAM,EAAE,CA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AE,GAAG,MAAM,EAAE,CAAC;IAEnC,KAAK,MAAM,QAAQ,IAAI,sBAAsB,EAAE,CAAC;QAC9C,YAAY,CAAC,QAAqC,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAQ,CAAC;IACtF,CAAC;IAED,OAAO,YAAY,CAAC,KAAK,CAAC;IAE1B,OAAO,YAAY,CAAC;AACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/entitlements/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/entitlements/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAc7D,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,uBAAuB,CAAC,CA0F3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{writeFileSync as
|
|
1
|
+
import{writeFileSync as m}from"node:fs";import g from"path";import{PAGE_COUNT_OUTPUT_FILE_NAME as d}from"../../constants/common.js";import{EntitlementsProvider as h}from"../../entitlements/entitlements-provider.js";import{getBilledPagesCount as w,isPathIgnored as P,readEnvVariable as T}from"../../utils/index.js";import o from"../../utils/reporter/logger.js";import{isGraphqlDoc as A}from"../graphql-docs/is-graphql-doc.js";import{isMarkdownPage as y}from"../markdown/is-markdown-page.js";import{isOpenapiDoc as F}from"../openapi-docs/is-openapi-doc.js";import{isReactPage as O}from"../pages/is-react-page.js";import{PRODUCT_NAME as t}from"../../../config/product-gates.js";import{isAsyncapiDoc as $}from"../asyncapi-docs/is-asyncapi-doc.js";async function N(){return{id:"entitlements",async afterRoutesCreated(u,l){const r=h.instance(),n=[],i=[],s=[],a=[],p=[];for(const{relativePath:e}of await l.fs.scan())P(e)||(y(e)?n.push(e):A(e)?s.push(e):O(e)?a.push(e):await F(e,l)?i.push(e):await $(e,l)&&p.push(e));n.length>0&&!r.canAccessFeature("markdown")&&o.warn(`The product you are using ("${t}") does not support Markdown pages. The following Markdown files were detected but will be ignored: ${n.map(()=>"%rp").join(", ")}`,...n),i.length>0&&!r.canAccessFeature("openapi")&&o.warn(`The product you are using ("${t}") does not support OpenAPI documents. The following files are ignored: ${i.map(()=>"%rp").join(", ")}`,...i),p.length>0&&!r.canAccessFeature("asyncapi")&&o.warn(`The product you are using ("${t}") does not support AsyncAPI documents. The following files are ignored: ${p.map(()=>"%rp").join(", ")}`,...p),s.length>0&&!r.canAccessFeature("graphql")&&o.warn(`The product you are using ("${t}") does not support GraphQL documents. The following files are ignored: ${s.map(()=>"%rp").join(", ")}`,...s),a.length>0&&!r.canAccessFeature("reactPages")&&o.warn(`The product you are using ("${t}") does not support React pages. The following files are ignored: ${a.map(()=>"%rp").join(", ")}`,...a);const f=w(u.getAllRoutes()),c=T("REDOCLY_METADATA_OUTPUT_FOLDER");c&&(o.info("Save total pages..."),m(g.join(c,d),JSON.stringify({totalPages:f},null)))}}}export{N as entitlementsPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/entitlements/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC3F,OAAO,MAAM,MAAM,gCAAgC,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,C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AAI,CAAC,oBAAoB,EAAE,2BAA2B,CAAC,EAC5D,IAAI,CAAC,SAAS,CACZ;oBACE,UAAU;iBACX,EACD,IAAI,CACL,CACF,CAAC;YACJ,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/l10n/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAoB,uBAAuB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/server/plugins/l10n/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAoB,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAU/E,wBAAsB,UAAU,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAkDnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import u from"path";import{DEFAULT_LOCALE_PLACEHOLDER as f,TRANSLATIONS_FILE_NAME as h}from"../../../constants/index.js";import{I18N_DIR_NAME as w,L10N_DIR_NAME as A}from"../../constants/common.js";import{EntitlementsProvider as g}from"../../entitlements/entitlements-provider.js";import{logger as d,reporter as y}from"../../utils/index.js";import{isL10nPath as E}from"../../fs/utils/is-l10n-path.js";import{isOpenapiDoc as I}from"../openapi-docs/is-openapi-doc.js";async function T(){return{id:"l10n",async processContent(n,i){const{fs:a,cache:t,getConfig:l}=i,e={},r=g.instance(),c=await l(),s=c.l10n?.defaultLocale||f;if(r.canAccessFeature("l10n")){await F(i);for(const{relativePath:o}of await a.scan(/(^|.*[\/\\])translations\.yaml$/)){const p=await t.load(o,"yaml"),L=P(o)||s;e[L]={translation:p.data}}}e[s]={translation:{...e[s]?.translation}};const m=c.l10n?.locales||[f,...a.localeFolders].map(o=>({code:o.toLowerCase(),name:o}));n.setGlobalData({l10n:{translations:e,defaultLocale:s,locales:m.map(o=>({code:o.code,name:o.name||o.code}))}})}}}function P(n){return n.indexOf("/")>0?n.split("/")[1]:void 0}async function F(n){const i=await n.fs.scan();for(const{isVirtual:a,realRelativePath:t}of i){if(a)continue;if(E(t)&&t.endsWith(".page.tsx")&&y.panicOnBuild(`The file %rp is not allowed in ${A} or ${w} folders`,t),u.posix.basename(t)===h){const e=/^(?:@(i18n|l10n)[\/\\][^\/\\]+[\/\\])?translations\.yaml$/.test(t),r=await I(t,n);!e&&!r&&d.warn("The file %rp is in the wrong location. Make sure it is located in the root directory or in the locale root directory.",t),e&&r&&d.warn("It looks like the file %rp might be an OpenAPI definition and is located in a location reserved for translation files. Please rename it or move to another directory if it is not a translations file",t)}}}export{T as l10nPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/l10n/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/server/plugins/l10n/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EA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