@vedhae/cms-schema 4.2.11 → 4.2.12

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/README.md CHANGED
@@ -11,9 +11,16 @@ This package contains **types only** and has no runtime code.
11
11
 
12
12
  STEPS:
13
13
  npm run build
14
- npm version patch
15
14
  git add .
16
15
  git commit -m "message"
17
16
  git push
17
+
18
+ npm version patch
19
+
18
20
  npm login
19
- npm pubish --access public
21
+ npm publish --access public
22
+
23
+
24
+ go to root folder and run the following command to make the new package available to all 3 repos :
25
+
26
+ ./scripts/install-cms-schema.sh
@@ -24,6 +24,16 @@ export declare const HeroSectionSchema: z.ZodObject<{
24
24
  alt: string;
25
25
  desc?: string | undefined;
26
26
  }>, "many">>;
27
+ banner: z.ZodDefault<z.ZodObject<{
28
+ enabled: z.ZodDefault<z.ZodBoolean>;
29
+ text: z.ZodOptional<z.ZodString>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ enabled: boolean;
32
+ text?: string | undefined;
33
+ }, {
34
+ enabled?: boolean | undefined;
35
+ text?: string | undefined;
36
+ }>>;
27
37
  }, "strip", z.ZodTypeAny, {
28
38
  title: string;
29
39
  page: "home";
@@ -38,6 +48,10 @@ export declare const HeroSectionSchema: z.ZodObject<{
38
48
  alt: string;
39
49
  desc?: string | undefined;
40
50
  }[];
51
+ banner: {
52
+ enabled: boolean;
53
+ text?: string | undefined;
54
+ };
41
55
  description?: string | undefined;
42
56
  }, {
43
57
  title: string;
@@ -54,5 +68,9 @@ export declare const HeroSectionSchema: z.ZodObject<{
54
68
  alt: string;
55
69
  desc?: string | undefined;
56
70
  }[] | undefined;
71
+ banner?: {
72
+ enabled?: boolean | undefined;
73
+ text?: string | undefined;
74
+ } | undefined;
57
75
  }>;
58
76
  export type HeroSection = z.infer<typeof HeroSectionSchema>;
@@ -10,4 +10,8 @@ export const HeroSectionSchema = z.object({
10
10
  ctaText: z.string().min(1),
11
11
  ctaLink: z.string().min(1),
12
12
  imageLinks: z.array(ImageAssetSchema).default([]),
13
+ banner: z.object({
14
+ enabled: z.boolean().default(false),
15
+ text: z.string().min(1).optional(),
16
+ }).default({ enabled: false })
13
17
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vedhae/cms-schema",
3
- "version": "4.2.11",
3
+ "version": "4.2.12",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",