Files
myeasycms-v2/packages/cms/keystatic/src/custom-components.tsx
Giancarlo Buomprisco f5a961f155 Clean up packages and old references to eslint config (#158)
* Update dependencies and configuration files

- Upgrade Lucide React to version 0.475.0
- Update Markdoc to version 0.5.0
- Bump ESLint to version 9.20.0
- Update Tailwind CSS to version 4.0.5
- Add import-in-the-middle to Sentry package
- Remove import-in-the-middle and require-in-the-middle from web app
- Update browserslist configuration
- Remove eslintConfig from web app package.json
- Add ESLint configuration template for package generator
2025-02-10 11:42:35 +08:00

37 lines
903 B
TypeScript

import type { ComponentType } from 'react';
import type { Schema } from '@markdoc/markdoc';
type Component = ComponentType<unknown>;
/**
* @name CustomMarkdocComponents
* @description Custom components for Markdoc. Please define your custom components here.
* @example
*
* ```ts
* function Youtube(props: { src: string }) { ... }
*
* export const CustomMarkdocComponents: Record<string, React.ComponentType<never>> = {
* Youtube,
* };
*/
export const CustomMarkdocComponents: Record<string, Component> = {
// define your custom components here
};
/**
* @name CustomMarkdocTags
* @description Custom tags for Markdoc. Please define your custom tags here.
* @example
* export const CustomMarkdocTags = {
* youtube: {
* render: "Youtube",
* selfClosing: true,
* }
* }
*/
export const CustomMarkdocTags: Record<string, Schema> = {
// define your custom tags here
};