Files
webstudio/packages/template/src/template.ts
T
Bogdan Chadkin 53f03cfaa3 fix: restore missing components in command panel (#4692)
Fixes https://github.com/webstudio-is/webstudio/issues/4689

While refactoring with new component templates
forgot to register them in command panel.

Looks like the prod is affected a little too
2025-01-01 19:45:41 +07:00

29 lines
558 B
TypeScript

import type { JSX } from "react";
import type { WebstudioFragment } from "@webstudio-is/sdk";
export const templateCategories = [
"general",
"typography",
"media",
"data",
"forms",
"localization",
"radix",
"xml",
"hidden",
"internal",
] as const;
export type TemplateMeta = {
category: (typeof templateCategories)[number];
label?: string;
description?: string;
icon?: string;
order?: number;
template: JSX.Element;
};
export type GeneratedTemplateMeta = Omit<TemplateMeta, "template"> & {
template: WebstudioFragment;
};