@docfy/ember-vite
Version:
Vite plugin for Docfy Ember integration with @embroider/vite
46 lines • 1.74 kB
TypeScript
import type { ImportStatement } from './types.js';
/**
* Central import map for all component imports used in templates
* This provides a single place to manage component import configuration
*
* Benefits:
* - Single source of truth for component import statements
* - Easy to update paths and import options when components are moved
* - Type safety with ComponentName type
* - Centralized management of all Docfy component imports
* - Complete import configuration (path, default/named imports, etc.)
*
* Usage:
* - Add new components to this map when they need to be imported in generated templates
* - Use getComponentImport() to get the complete ImportStatement for a component
* - Update import configuration here when components are moved or renamed
*/
export declare const IMPORT_MAP: {
readonly DocfyDemo: {
readonly name: "DocfyDemo";
readonly path: "@docfy/ember";
readonly isDefault: false;
};
readonly DocfyLink: {
readonly name: "DocfyLink";
readonly path: "@docfy/ember";
readonly isDefault: false;
};
readonly DocfyOutput: {
readonly name: "DocfyOutput";
readonly path: "@docfy/ember";
readonly isDefault: false;
};
readonly DocfyPreviousAndNextPage: {
readonly name: "DocfyPreviousAndNextPage";
readonly path: "@docfy/ember";
readonly isDefault: false;
};
};
/**
* Get the complete import statement for a component
* @param componentName - The name of the component
* @returns The complete ImportStatement object for the component
*/
export declare function getComponentImport(componentName: keyof typeof IMPORT_MAP): ImportStatement;
//# sourceMappingURL=import-map.d.ts.map