mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-10 06:24:35 +09:00
meta props are moved to *.ws.ts Component removed from *.ws.ts This allows to merge ws props with registered components props `registerComponents` now are - registerComponents(customComponents); - registerComponentsMeta(customComponentsMeta); _(Splitting will allow for code splitting to work.)_ Removal of `Component` (and then `Icon` prop) would allow serializing *.ws.ts metadata between iframe and app designer Next PR: Move Icon into base64 or like. publish/subscribe ws meta of registered components, so it can be reused on the Designer side I need this to pass props of registered components to Designer.
13 lines
343 B
TypeScript
13 lines
343 B
TypeScript
import { SubscriptIcon } from "@webstudio-is/icons";
|
|
import type { WsComponentMeta, MetaProps } from "./component-type";
|
|
import props from "./__generated__/subscript.props.json";
|
|
|
|
const meta: WsComponentMeta = {
|
|
type: "rich-text-child",
|
|
label: "Subscript Text",
|
|
Icon: SubscriptIcon,
|
|
props: props as MetaProps,
|
|
};
|
|
|
|
export default meta;
|