mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-04 22:31:33 +09:00
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
29 lines
558 B
TypeScript
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;
|
|
};
|