Skip to content

Commit c67029f

Browse files
committed
feat: add cat-facts component with read and write props, update dependencies, and enhance form handling
1 parent a256d5c commit c67029f

File tree

8 files changed

+1187
-629
lines changed

8 files changed

+1187
-629
lines changed

demo/demo-vite/cm.config.ts

+10
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,15 @@ cmConfig.getComponentGallery().registerComponent({
1515
writeProps: () => import("./src/components/vite/WriteProps"), // path to function that will serialize component props to your persistance layer
1616
tags: ["content", "alert"], // tags that will be used to filter components in component gallery
1717
});
18+
cmConfig.getComponentGallery().registerComponent({
19+
id: "cat-facts",
20+
name: "Fun cat facts",
21+
public: true,
22+
componentPath: () => import("./src/components/cat-facts/Component"),
23+
formPath: () => import("./src/components/cat-facts/Form"),
24+
readProps: () => import("./src/components/cat-facts/ReadProps"),
25+
writeProps: () => import("./src/components/cat-facts/WriteProps"),
26+
tags: ["content", "alert"],
27+
});
1828

1929
export default cmConfig;

0 commit comments

Comments
 (0)