nextjs-cms 0.5.33 → 0.5.35

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.
@@ -54,10 +54,10 @@ declare const configSchema: z.ZodObject<{
54
54
  * @hint 'jpg' is an alias for 'jpeg'
55
55
  */
56
56
  fileType: z.ZodOptional<z.ZodArray<z.ZodEnum<{
57
- jpeg: "jpeg";
57
+ webp: "webp";
58
58
  jpg: "jpg";
59
+ jpeg: "jpeg";
59
60
  png: "png";
60
- webp: "webp";
61
61
  }>>>;
62
62
  /**
63
63
  * Remove the extension from the file name
@@ -197,10 +197,10 @@ declare const optionsSchema: z.ZodObject<{
197
197
  * @hint 'jpg' is an alias for 'jpeg'
198
198
  */
199
199
  fileType: z.ZodOptional<z.ZodArray<z.ZodEnum<{
200
- jpeg: "jpeg";
200
+ webp: "webp";
201
201
  jpg: "jpg";
202
+ jpeg: "jpeg";
202
203
  png: "png";
203
- webp: "webp";
204
204
  }>>>;
205
205
  /**
206
206
  * Remove the extension from the file name
@@ -269,10 +269,10 @@ declare const photoFieldConfigSchema: z.ZodObject<{
269
269
  * @hint 'jpg' is an alias for 'jpeg'
270
270
  */
271
271
  fileType: z.ZodOptional<z.ZodArray<z.ZodEnum<{
272
- jpeg: "jpeg";
272
+ webp: "webp";
273
273
  jpg: "jpg";
274
+ jpeg: "jpeg";
274
275
  png: "png";
275
- webp: "webp";
276
276
  }>>>;
277
277
  /**
278
278
  * Remove the extension from the file name
@@ -31,10 +31,10 @@ declare const allowImageUploadsSchema: z.ZodObject<{
31
31
  */
32
32
  omitExtension: z.ZodOptional<z.ZodBoolean>;
33
33
  format: z.ZodOptional<z.ZodEnum<{
34
- jpeg: "jpeg";
34
+ webp: "webp";
35
35
  jpg: "jpg";
36
+ jpeg: "jpeg";
36
37
  png: "png";
37
- webp: "webp";
38
38
  }>>;
39
39
  }, z.core.$strict>;
40
40
  declare const configSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -72,10 +72,10 @@ declare const configSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
72
72
  */
73
73
  omitExtension: z.ZodOptional<z.ZodBoolean>;
74
74
  format: z.ZodOptional<z.ZodEnum<{
75
- jpeg: "jpeg";
75
+ webp: "webp";
76
76
  jpg: "jpg";
77
+ jpeg: "jpeg";
77
78
  png: "png";
78
- webp: "webp";
79
79
  }>>;
80
80
  }, z.core.$strict>>;
81
81
  }, z.core.$strict>, z.ZodObject<{
@@ -119,7 +119,7 @@ export declare class RichTextField extends Field<'rich_text', Config> {
119
119
  } | undefined;
120
120
  handleMethod?: "base64" | "tempSave" | undefined;
121
121
  omitExtension?: boolean | undefined;
122
- format?: "jpeg" | "jpg" | "png" | "webp" | undefined;
122
+ format?: "webp" | "jpg" | "jpeg" | "png" | undefined;
123
123
  };
124
124
  sanitize: boolean;
125
125
  type: "rich_text";
@@ -187,10 +187,10 @@ declare const optionsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
187
187
  */
188
188
  omitExtension: z.ZodOptional<z.ZodBoolean>;
189
189
  format: z.ZodOptional<z.ZodEnum<{
190
- jpeg: "jpeg";
190
+ webp: "webp";
191
191
  jpg: "jpg";
192
+ jpeg: "jpeg";
192
193
  png: "png";
193
- webp: "webp";
194
194
  }>>;
195
195
  }, z.core.$strict>>;
196
196
  name: z.ZodString;
@@ -249,10 +249,10 @@ declare const richTextFieldConfigSchema: z.ZodIntersection<z.ZodDiscriminatedUni
249
249
  */
250
250
  omitExtension: z.ZodOptional<z.ZodBoolean>;
251
251
  format: z.ZodOptional<z.ZodEnum<{
252
- jpeg: "jpeg";
252
+ webp: "webp";
253
253
  jpg: "jpg";
254
+ jpeg: "jpeg";
254
255
  png: "png";
255
- webp: "webp";
256
256
  }>>;
257
257
  }, z.core.$strict>>;
258
258
  name: z.ZodString;
@@ -117,9 +117,7 @@ declare const optionsSchema: z.ZodObject<{
117
117
  */
118
118
  allowRecursiveDelete: z.ZodOptional<z.ZodBoolean>;
119
119
  fields: z.ZodUnion<[z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>, z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>]>;
120
- readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
121
120
  name: z.ZodString;
122
- order: z.ZodNumber;
123
121
  db: z.ZodObject<{
124
122
  table: z.ZodString;
125
123
  identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
@@ -143,6 +141,9 @@ declare const optionsSchema: z.ZodObject<{
143
141
  name: z.ZodOptional<z.ZodString>;
144
142
  }, z.core.$strict>>>;
145
143
  }, z.core.$strict>;
144
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
145
+ order: z.ZodNumber;
146
+ readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
146
147
  icon: z.ZodOptional<z.ZodString>;
147
148
  gallery: z.ZodOptional<z.ZodObject<{
148
149
  db: z.ZodObject<{
@@ -159,7 +160,6 @@ declare const optionsSchema: z.ZodObject<{
159
160
  quality: z.ZodNumber;
160
161
  }, z.core.$strict>>;
161
162
  }, z.core.$strict>>;
162
- variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
163
163
  hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
164
164
  }, z.core.$strict>;
165
165
  export declare const categorySectionConfigSchema: z.ZodObject<{
@@ -214,9 +214,7 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
214
214
  * @default false
215
215
  */
216
216
  allowRecursiveDelete: z.ZodOptional<z.ZodBoolean>;
217
- readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
218
217
  name: z.ZodString;
219
- order: z.ZodNumber;
220
218
  db: z.ZodObject<{
221
219
  table: z.ZodString;
222
220
  identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
@@ -240,6 +238,9 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
240
238
  name: z.ZodOptional<z.ZodString>;
241
239
  }, z.core.$strict>>>;
242
240
  }, z.core.$strict>;
241
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
242
+ order: z.ZodNumber;
243
+ readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
243
244
  icon: z.ZodOptional<z.ZodString>;
244
245
  gallery: z.ZodOptional<z.ZodObject<{
245
246
  db: z.ZodObject<{
@@ -256,7 +257,6 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
256
257
  quality: z.ZodNumber;
257
258
  }, z.core.$strict>>;
258
259
  }, z.core.$strict>>;
259
- variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
260
260
  hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
261
261
  }, z.core.$strict>;
262
262
  export type CategorySectionOptions = z.infer<typeof optionsSchema>;
@@ -131,7 +131,7 @@ declare const configSchema: z.ZodObject<{
131
131
  size: number;
132
132
  unit: "kb" | "mb";
133
133
  } | undefined;
134
- fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
134
+ fileType?: ("webp" | "jpg" | "jpeg" | "png")[] | undefined;
135
135
  removeExtension?: boolean | undefined;
136
136
  label?: string | undefined;
137
137
  required?: boolean | undefined;
@@ -160,7 +160,7 @@ declare const configSchema: z.ZodObject<{
160
160
  size: number;
161
161
  unit: "kb" | "mb";
162
162
  } | undefined;
163
- fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
163
+ fileType?: ("webp" | "jpg" | "jpeg" | "png")[] | undefined;
164
164
  removeExtension?: boolean | undefined;
165
165
  label?: string | undefined;
166
166
  required?: boolean | undefined;
@@ -315,7 +315,7 @@ declare const optionsSchema: z.ZodObject<{
315
315
  size: number;
316
316
  unit: "kb" | "mb";
317
317
  } | undefined;
318
- fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
318
+ fileType?: ("webp" | "jpg" | "jpeg" | "png")[] | undefined;
319
319
  removeExtension?: boolean | undefined;
320
320
  label?: string | undefined;
321
321
  required?: boolean | undefined;
@@ -344,7 +344,7 @@ declare const optionsSchema: z.ZodObject<{
344
344
  size: number;
345
345
  unit: "kb" | "mb";
346
346
  } | undefined;
347
- fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
347
+ fileType?: ("webp" | "jpg" | "jpeg" | "png")[] | undefined;
348
348
  removeExtension?: boolean | undefined;
349
349
  label?: string | undefined;
350
350
  required?: boolean | undefined;
@@ -355,9 +355,7 @@ declare const optionsSchema: z.ZodObject<{
355
355
  }>>;
356
356
  generateQR: z.ZodOptional<z.ZodBoolean>;
357
357
  fields: z.ZodUnion<[z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>, z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>]>;
358
- readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
359
358
  name: z.ZodString;
360
- order: z.ZodNumber;
361
359
  db: z.ZodObject<{
362
360
  table: z.ZodString;
363
361
  identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
@@ -381,6 +379,9 @@ declare const optionsSchema: z.ZodObject<{
381
379
  name: z.ZodOptional<z.ZodString>;
382
380
  }, z.core.$strict>>>;
383
381
  }, z.core.$strict>;
382
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
383
+ order: z.ZodNumber;
384
+ readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
384
385
  icon: z.ZodOptional<z.ZodString>;
385
386
  gallery: z.ZodOptional<z.ZodObject<{
386
387
  db: z.ZodObject<{
@@ -397,7 +398,6 @@ declare const optionsSchema: z.ZodObject<{
397
398
  quality: z.ZodNumber;
398
399
  }, z.core.$strict>>;
399
400
  }, z.core.$strict>>;
400
- variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
401
401
  hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
402
402
  }, z.core.$strict>;
403
403
  declare const hasItemsSectionConfigSchema: z.ZodObject<{
@@ -530,7 +530,7 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
530
530
  size: number;
531
531
  unit: "kb" | "mb";
532
532
  } | undefined;
533
- fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
533
+ fileType?: ("webp" | "jpg" | "jpeg" | "png")[] | undefined;
534
534
  removeExtension?: boolean | undefined;
535
535
  label?: string | undefined;
536
536
  required?: boolean | undefined;
@@ -559,7 +559,7 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
559
559
  size: number;
560
560
  unit: "kb" | "mb";
561
561
  } | undefined;
562
- fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
562
+ fileType?: ("webp" | "jpg" | "jpeg" | "png")[] | undefined;
563
563
  removeExtension?: boolean | undefined;
564
564
  label?: string | undefined;
565
565
  required?: boolean | undefined;
@@ -569,9 +569,7 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
569
569
  adminGenerated?: boolean | "readonly" | undefined;
570
570
  }>>;
571
571
  generateQR: z.ZodOptional<z.ZodBoolean>;
572
- readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
573
572
  name: z.ZodString;
574
- order: z.ZodNumber;
575
573
  db: z.ZodObject<{
576
574
  table: z.ZodString;
577
575
  identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
@@ -595,6 +593,9 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
595
593
  name: z.ZodOptional<z.ZodString>;
596
594
  }, z.core.$strict>>>;
597
595
  }, z.core.$strict>;
596
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
597
+ order: z.ZodNumber;
598
+ readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
598
599
  icon: z.ZodOptional<z.ZodString>;
599
600
  gallery: z.ZodOptional<z.ZodObject<{
600
601
  db: z.ZodObject<{
@@ -611,7 +612,6 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
611
612
  quality: z.ZodNumber;
612
613
  }, z.core.$strict>>;
613
614
  }, z.core.$strict>>;
614
- variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
615
615
  hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
616
616
  }, z.core.$strict>;
617
617
  export type HasItemsSectionOptions = z.infer<typeof optionsSchema>;
@@ -62,9 +62,7 @@ export declare const baseSectionOptionsSchema: z.ZodObject<{
62
62
  */
63
63
  export declare const baseHelperFunctionOptionsSchema: z.ZodObject<{
64
64
  fields: z.ZodUnion<[z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>, z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>]>;
65
- readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
66
65
  name: z.ZodString;
67
- order: z.ZodNumber;
68
66
  db: z.ZodObject<{
69
67
  table: z.ZodString;
70
68
  identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
@@ -88,6 +86,9 @@ export declare const baseHelperFunctionOptionsSchema: z.ZodObject<{
88
86
  name: z.ZodOptional<z.ZodString>;
89
87
  }, z.core.$strict>>>;
90
88
  }, z.core.$strict>;
89
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<Variant, Variant>>>;
90
+ order: z.ZodNumber;
91
+ readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
91
92
  icon: z.ZodOptional<z.ZodString>;
92
93
  gallery: z.ZodOptional<z.ZodObject<{
93
94
  db: z.ZodObject<{
@@ -104,7 +105,6 @@ export declare const baseHelperFunctionOptionsSchema: z.ZodObject<{
104
105
  quality: z.ZodNumber;
105
106
  }, z.core.$strict>>;
106
107
  }, z.core.$strict>>;
107
- variants: z.ZodOptional<z.ZodArray<z.ZodCustom<Variant, Variant>>>;
108
108
  hooks: z.ZodOptional<z.ZodCustom<Hooks, Hooks>>;
109
109
  }, z.core.$strict>;
110
110
  export declare function validateSectionConfig(config: BaseSectionOptions): void;
@@ -22,9 +22,10 @@ declare const optionsSchema: z.ZodObject<{
22
22
  table: z.ZodString;
23
23
  }, z.core.$strict>;
24
24
  fields: z.ZodUnion<[z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>, z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>]>;
25
- readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
26
25
  name: z.ZodString;
26
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
27
27
  order: z.ZodNumber;
28
+ readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
28
29
  icon: z.ZodOptional<z.ZodString>;
29
30
  gallery: z.ZodOptional<z.ZodObject<{
30
31
  db: z.ZodObject<{
@@ -41,7 +42,6 @@ declare const optionsSchema: z.ZodObject<{
41
42
  quality: z.ZodNumber;
42
43
  }, z.core.$strict>>;
43
44
  }, z.core.$strict>>;
44
- variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
45
45
  hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
46
46
  }, z.core.$strict>;
47
47
  declare const simpleSectionConfigSchema: z.ZodObject<{
@@ -53,9 +53,10 @@ declare const simpleSectionConfigSchema: z.ZodObject<{
53
53
  db: z.ZodObject<{
54
54
  table: z.ZodString;
55
55
  }, z.core.$strict>;
56
- readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
57
56
  name: z.ZodString;
57
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
58
58
  order: z.ZodNumber;
59
+ readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
59
60
  icon: z.ZodOptional<z.ZodString>;
60
61
  gallery: z.ZodOptional<z.ZodObject<{
61
62
  db: z.ZodObject<{
@@ -72,7 +73,6 @@ declare const simpleSectionConfigSchema: z.ZodObject<{
72
73
  quality: z.ZodNumber;
73
74
  }, z.core.$strict>>;
74
75
  }, z.core.$strict>>;
75
- variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
76
76
  hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
77
77
  }, z.core.$strict>;
78
78
  export type SimpleSectionOptions = z.infer<typeof optionsSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextjs-cms",
3
- "version": "0.5.33",
3
+ "version": "0.5.35",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -142,8 +142,8 @@
142
142
  "tsx": "^4.20.6",
143
143
  "typescript": "^5.9.2",
144
144
  "@lzcms/eslint-config": "0.3.0",
145
- "@lzcms/prettier-config": "0.1.0",
146
- "@lzcms/tsconfig": "0.1.0"
145
+ "@lzcms/tsconfig": "0.1.0",
146
+ "@lzcms/prettier-config": "0.1.0"
147
147
  },
148
148
  "license": "MIT",
149
149
  "keywords": [