fimo 2.2.0-staging.16 → 2.2.0-staging.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/agent-templates/_default/config.yaml +6 -0
- package/assets/skills/fimo-cli/references/agents.md +3 -2
- package/dist/cli/bundle.json +1 -1
- package/dist/cli/index.js +1 -1
- package/package.json +8 -8
- package/templates/astro/package.json +2 -2
- package/templates/nextjs/package.json +3 -3
- package/templates/react-router/package.json +4 -4
- package/templates/sveltekit/package.json +2 -2
- package/templates/vite/package.json +4 -4
- package/templates/welcome/manifest.json +306 -55
- package/templates/welcome/template/.fimo/agents/welcome-guide/GOAL.md +9 -4
- package/templates/welcome/template/.fimo/agents/welcome-guide/capabilities.yaml +3 -0
- package/templates/welcome/template/.fimo/agents/welcome-guide/config.yaml +4 -4
- package/templates/welcome/template/src/pages/ArticleDetail.tsx +42 -6
- package/templates/welcome/template/src/pages/Index.tsx +6 -2
- package/templates/welcome/template/src/pages/SiteContent.tsx +296 -35
- package/templates/welcome/template/src/pages/fallback-content.ts +34 -15
- package/templates/welcome/template/src/schemas/Article.json +27 -5
- package/templates/welcome/template/src/schemas/Article.ts +16 -21
- package/templates/welcome/template/src/schemas/Article.types.ts +40 -20
- package/templates/welcome/template/src/schemas/Author.json +17 -0
- package/templates/welcome/template/src/schemas/Author.ts +51 -0
- package/templates/welcome/template/src/schemas/Author.types.ts +54 -0
- package/templates/welcome/template/src/schemas/Category.json +17 -0
- package/templates/welcome/template/src/schemas/Category.ts +51 -0
- package/templates/welcome/template/src/schemas/Category.types.ts +54 -0
- package/templates/welcome/template/src/schemas/HomePage.json +94 -23
- package/templates/welcome/template/src/schemas/HomePage.ts +22 -0
- package/templates/welcome/template/src/schemas/HomePage.types.ts +2 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// AUTO-GENERATED by `fimo` from src/schemas/HomePage.json - DO NOT EDIT.
|
|
2
|
+
// Change content fields in the schema, then run `fimo validate`.
|
|
3
|
+
// Runtime implementation lives in the project-local fimo-react package export.
|
|
4
|
+
import { createSingletonClient } from "fimo-react";
|
|
5
|
+
import type { SingletonContentClient } from "fimo-react";
|
|
6
|
+
import type { ContentSchema } from "fimo-react";
|
|
7
|
+
|
|
8
|
+
import schema from "./HomePage.json";
|
|
9
|
+
import type { HomePage, HomePageInput } from "./HomePage.types";
|
|
10
|
+
|
|
11
|
+
export type { HomePage, HomePageFields, HomePageFimoMeta, HomePageInput, HomePagePopulate, HomePageQuery, HomePageReferences, HomePageResult, HomePageSort, HomePageWhere } from "./HomePage.types";
|
|
12
|
+
|
|
13
|
+
const client: SingletonContentClient<HomePage, HomePageInput> = createSingletonClient<
|
|
14
|
+
HomePage,
|
|
15
|
+
HomePageInput
|
|
16
|
+
>({
|
|
17
|
+
schema: schema as unknown as ContentSchema,
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export const { get, update, useGet, useSuspenseGet, useUpdate, wrapWithSource, meta } = client;
|
|
21
|
+
|
|
22
|
+
export default client;
|
|
@@ -62,6 +62,7 @@ export interface HomePage extends WithReferences<HomePageReferences> {
|
|
|
62
62
|
buildBody: FimoRichText;
|
|
63
63
|
closingTitle: FimoString;
|
|
64
64
|
closingBody: FimoString;
|
|
65
|
+
footerNote: FimoString;
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
export interface HomePageInput {
|
|
@@ -91,6 +92,7 @@ export interface HomePageInput {
|
|
|
91
92
|
buildBody: FimoRichTextContent;
|
|
92
93
|
closingTitle: string;
|
|
93
94
|
closingBody: string;
|
|
95
|
+
footerNote: string;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
export type HomePageReferences = Record<never, never>;
|