@webstir-io/module-contract 0.1.16 → 0.1.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/dist/index.d.ts CHANGED
@@ -2629,6 +2629,7 @@ export type LooseRouteSpec<TContext extends RequestContext = RequestContext> = R
2629
2629
  export declare const viewDefinitionSchema: z.ZodObject<{
2630
2630
  name: z.ZodString;
2631
2631
  path: z.ZodString;
2632
+ page: z.ZodOptional<z.ZodString>;
2632
2633
  summary: z.ZodOptional<z.ZodString>;
2633
2634
  description: z.ZodOptional<z.ZodString>;
2634
2635
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2683,6 +2684,7 @@ export declare const viewDefinitionSchema: z.ZodObject<{
2683
2684
  } | undefined;
2684
2685
  renderMode?: "ssg" | "ssr" | "spa" | undefined;
2685
2686
  staticPaths?: string[] | undefined;
2687
+ page?: string | undefined;
2686
2688
  data?: {
2687
2689
  kind: "zod" | "json-schema" | "ts-rest";
2688
2690
  name: string;
@@ -2704,6 +2706,7 @@ export declare const viewDefinitionSchema: z.ZodObject<{
2704
2706
  } | undefined;
2705
2707
  renderMode?: "ssg" | "ssr" | "spa" | undefined;
2706
2708
  staticPaths?: string[] | undefined;
2709
+ page?: string | undefined;
2707
2710
  data?: {
2708
2711
  name: string;
2709
2712
  kind?: "zod" | "json-schema" | "ts-rest" | undefined;
@@ -3837,6 +3840,7 @@ export declare const moduleManifestSchema: z.ZodObject<{
3837
3840
  views: z.ZodOptional<z.ZodArray<z.ZodObject<{
3838
3841
  name: z.ZodString;
3839
3842
  path: z.ZodString;
3843
+ page: z.ZodOptional<z.ZodString>;
3840
3844
  summary: z.ZodOptional<z.ZodString>;
3841
3845
  description: z.ZodOptional<z.ZodString>;
3842
3846
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3891,6 +3895,7 @@ export declare const moduleManifestSchema: z.ZodObject<{
3891
3895
  } | undefined;
3892
3896
  renderMode?: "ssg" | "ssr" | "spa" | undefined;
3893
3897
  staticPaths?: string[] | undefined;
3898
+ page?: string | undefined;
3894
3899
  data?: {
3895
3900
  kind: "zod" | "json-schema" | "ts-rest";
3896
3901
  name: string;
@@ -3912,6 +3917,7 @@ export declare const moduleManifestSchema: z.ZodObject<{
3912
3917
  } | undefined;
3913
3918
  renderMode?: "ssg" | "ssr" | "spa" | undefined;
3914
3919
  staticPaths?: string[] | undefined;
3920
+ page?: string | undefined;
3915
3921
  data?: {
3916
3922
  name: string;
3917
3923
  kind?: "zod" | "json-schema" | "ts-rest" | undefined;
@@ -4171,6 +4177,7 @@ export declare const moduleManifestSchema: z.ZodObject<{
4171
4177
  } | undefined;
4172
4178
  renderMode?: "ssg" | "ssr" | "spa" | undefined;
4173
4179
  staticPaths?: string[] | undefined;
4180
+ page?: string | undefined;
4174
4181
  data?: {
4175
4182
  kind: "zod" | "json-schema" | "ts-rest";
4176
4183
  name: string;
@@ -4390,6 +4397,7 @@ export declare const moduleManifestSchema: z.ZodObject<{
4390
4397
  } | undefined;
4391
4398
  renderMode?: "ssg" | "ssr" | "spa" | undefined;
4392
4399
  staticPaths?: string[] | undefined;
4400
+ page?: string | undefined;
4393
4401
  data?: {
4394
4402
  name: string;
4395
4403
  kind?: "zod" | "json-schema" | "ts-rest" | undefined;
package/dist/index.js CHANGED
@@ -175,6 +175,7 @@ export const routeDefinitionSchema = z.object({
175
175
  export const viewDefinitionSchema = z.object({
176
176
  name: z.string().min(1),
177
177
  path: z.string().min(1),
178
+ page: z.string().min(1).optional(),
178
179
  summary: z.string().optional(),
179
180
  description: z.string().optional(),
180
181
  tags: z.array(z.string()).optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstir-io/module-contract",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Public contract definitions for Webstir frontend and backend module providers.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -459,6 +459,10 @@
459
459
  "type": "string",
460
460
  "minLength": 1
461
461
  },
462
+ "page": {
463
+ "type": "string",
464
+ "minLength": 1
465
+ },
462
466
  "summary": {
463
467
  "type": "string"
464
468
  },
@@ -12,6 +12,10 @@
12
12
  "type": "string",
13
13
  "minLength": 1
14
14
  },
15
+ "page": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
15
19
  "summary": {
16
20
  "type": "string"
17
21
  },