@vedhae/cms-schema 4.2.13 → 4.2.14
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.
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const AnnouncementSchema: z.ZodObject<{
|
|
3
|
-
page: z.ZodLiteral<"global">;
|
|
4
|
-
section: z.ZodLiteral<"announcement">;
|
|
5
3
|
active: z.ZodBoolean;
|
|
6
4
|
text: z.ZodString;
|
|
7
5
|
speed: z.ZodDefault<z.ZodNumber>;
|
|
8
6
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
page: "global";
|
|
10
|
-
section: "announcement";
|
|
11
7
|
active: boolean;
|
|
12
8
|
text: string;
|
|
13
9
|
speed: number;
|
|
14
10
|
}, {
|
|
15
|
-
page: "global";
|
|
16
|
-
section: "announcement";
|
|
17
11
|
active: boolean;
|
|
18
12
|
text: string;
|
|
19
13
|
speed?: number | undefined;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export const AnnouncementSchema = z.object({
|
|
3
|
-
page: z.literal("global"),
|
|
4
|
-
section: z.literal("announcement"),
|
|
5
3
|
active: z.boolean(),
|
|
6
4
|
text: z.string().min(1),
|
|
7
|
-
speed: z.number().default(30),
|
|
5
|
+
speed: z.number().min(5).max(120).default(30),
|
|
8
6
|
});
|
|
@@ -89,10 +89,10 @@ export declare const CardSectionSchema: z.ZodObject<{
|
|
|
89
89
|
}>, "many">;
|
|
90
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
91
|
title: string;
|
|
92
|
-
page: "home";
|
|
93
|
-
section: "one" | "two";
|
|
94
92
|
active: boolean;
|
|
95
93
|
order: number;
|
|
94
|
+
page: "home";
|
|
95
|
+
section: "one" | "two";
|
|
96
96
|
items: {
|
|
97
97
|
name: string;
|
|
98
98
|
link: string;
|
|
@@ -106,10 +106,10 @@ export declare const CardSectionSchema: z.ZodObject<{
|
|
|
106
106
|
}[];
|
|
107
107
|
}, {
|
|
108
108
|
title: string;
|
|
109
|
-
page: "home";
|
|
110
|
-
section: "one" | "two";
|
|
111
109
|
active: boolean;
|
|
112
110
|
order: number;
|
|
111
|
+
page: "home";
|
|
112
|
+
section: "one" | "two";
|
|
113
113
|
items: {
|
|
114
114
|
name: string;
|
|
115
115
|
link: string;
|
package/dist/hero.schema.d.ts
CHANGED
|
@@ -26,9 +26,9 @@ export declare const HeroSectionSchema: z.ZodObject<{
|
|
|
26
26
|
}>, "many">>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
title: string;
|
|
29
|
+
active: boolean;
|
|
29
30
|
page: "home";
|
|
30
31
|
section: "hero";
|
|
31
|
-
active: boolean;
|
|
32
32
|
tagline: string;
|
|
33
33
|
ctaText: string;
|
|
34
34
|
ctaLink: string;
|
|
@@ -41,9 +41,9 @@ export declare const HeroSectionSchema: z.ZodObject<{
|
|
|
41
41
|
description?: string | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
title: string;
|
|
44
|
+
active: boolean;
|
|
44
45
|
page: "home";
|
|
45
46
|
section: "hero";
|
|
46
|
-
active: boolean;
|
|
47
47
|
tagline: string;
|
|
48
48
|
ctaText: string;
|
|
49
49
|
ctaLink: string;
|
|
@@ -29,8 +29,8 @@ export declare const ProductHeroSchema: z.ZodObject<{
|
|
|
29
29
|
desc?: string | undefined;
|
|
30
30
|
}>, "many">>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
page: "products";
|
|
33
32
|
active: boolean;
|
|
33
|
+
page: "products";
|
|
34
34
|
imageLinks: {
|
|
35
35
|
url: string;
|
|
36
36
|
path: string;
|
|
@@ -42,8 +42,8 @@ export declare const ProductHeroSchema: z.ZodObject<{
|
|
|
42
42
|
subtitle?: string | undefined;
|
|
43
43
|
};
|
|
44
44
|
}, {
|
|
45
|
-
page: "products";
|
|
46
45
|
active: boolean;
|
|
46
|
+
page: "products";
|
|
47
47
|
content: {
|
|
48
48
|
title?: string | undefined;
|
|
49
49
|
subtitle?: string | undefined;
|