@mintlify/common 1.0.472 → 1.0.473

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.
@@ -0,0 +1,3 @@
1
+ export declare function registerXMintContent(slug: string, content?: string): void;
2
+ export declare function getXMintContent(slug: string): string | undefined;
3
+ export declare function getAllXMintContent(): Map<string, string>;
@@ -0,0 +1,11 @@
1
+ const registry = new Map();
2
+ export function registerXMintContent(slug, content) {
3
+ if (content)
4
+ registry.set(slug, content);
5
+ }
6
+ export function getXMintContent(slug) {
7
+ return registry.get(slug);
8
+ }
9
+ export function getAllXMintContent() {
10
+ return new Map(registry);
11
+ }
@@ -7,3 +7,4 @@ export { validate, safeValidate } from './validate.js';
7
7
  export { getOpenApiDocumentFromUrl } from './getOpenApiDocumentFromUrl.js';
8
8
  export { prepOpenApiFrontmatter } from './prepOpenApiFrontmatter.js';
9
9
  export { buildOpenApiMetaTag } from './buildOpenApiMetaTag.js';
10
+ export { registerXMintContent, getXMintContent, getAllXMintContent } from './contentRegistry.js';
@@ -7,3 +7,4 @@ export { validate, safeValidate } from './validate.js';
7
7
  export { getOpenApiDocumentFromUrl } from './getOpenApiDocumentFromUrl.js';
8
8
  export { prepOpenApiFrontmatter } from './prepOpenApiFrontmatter.js';
9
9
  export { buildOpenApiMetaTag } from './buildOpenApiMetaTag.js';
10
+ export { registerXMintContent, getXMintContent, getAllXMintContent } from './contentRegistry.js';