@studiocms/html
Version:
Add HTML Support to your StudioCMS project with ease!
20 lines (19 loc) • 964 B
TypeScript
/**
* These triple-slash directives defines dependencies to various declaration files that will be
* loaded when a user imports the StudioCMS plugin in their Astro configuration file. These
* directives must be first at the top of the file and can only be preceded by this comment.
*/
/// <reference types="./virtual.d.ts" preserve="true" />
import { type StudioCMSPlugin } from 'studiocms/plugins';
import { type HTMLSchemaOptions } from './types.js';
/**
* Creates the StudioCMS HTML plugin.
*
* This plugin integrates HTML page type support into StudioCMS, providing editor and renderer components.
* It resolves configuration options, sets up Astro integrations, and registers the HTML page type for rendering.
*
* @param options - Optional configuration for the HTML schema.
* @returns The StudioCMS plugin configuration object.
*/
export declare function studiocmsHTML(options?: HTMLSchemaOptions): StudioCMSPlugin;
export default studiocmsHTML;