mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 05:26:24 +09:00
Moved all component meta and embed template to sdk schema. Embed template generator is left in react-sdk, will probably be removed eventually.
20 lines
555 B
TypeScript
20 lines
555 B
TypeScript
import type { WsComponentMeta } from "@webstudio-is/sdk";
|
|
|
|
type FrameworkComponentEntry = {
|
|
source: string;
|
|
metas: Record<string, WsComponentMeta>;
|
|
};
|
|
|
|
type FrameworkTemplateEntry = {
|
|
file: string;
|
|
template: string;
|
|
};
|
|
|
|
export type Framework = {
|
|
components: FrameworkComponentEntry[];
|
|
html: (params: { pagePath: string }) => FrameworkTemplateEntry[];
|
|
xml: (params: { pagePath: string }) => FrameworkTemplateEntry[];
|
|
redirect: (params: { pagePath: string }) => FrameworkTemplateEntry[];
|
|
defaultSitemap: () => FrameworkTemplateEntry[];
|
|
};
|