nextjs-cms 0.5.78 → 0.5.79

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,2 +1,2 @@
1
- export * from './loader-with-jiti.js';
1
+ export * from './loader-with-esbuild.js';
2
2
  //# sourceMappingURL=loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/core/config/loader.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../src/core/config/loader.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
@@ -1 +1 @@
1
- export * from './loader-with-jiti.js';
1
+ export * from './loader-with-esbuild.js';
@@ -1,2 +1,2 @@
1
- export * from './section-factory-with-jiti.js';
1
+ export * from './section-factory-with-esbuild.js';
2
2
  //# sourceMappingURL=SectionFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SectionFactory.d.ts","sourceRoot":"","sources":["../../../src/core/factories/SectionFactory.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAA"}
1
+ {"version":3,"file":"SectionFactory.d.ts","sourceRoot":"","sources":["../../../src/core/factories/SectionFactory.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA"}
@@ -1 +1 @@
1
- export * from './section-factory-with-jiti.js';
1
+ export * from './section-factory-with-esbuild.js';
@@ -117,6 +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
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
120
121
  name: z.ZodString;
121
122
  order: z.ZodNumber;
122
123
  readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -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,6 +214,7 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
214
214
  * @default false
215
215
  */
216
216
  allowRecursiveDelete: z.ZodOptional<z.ZodBoolean>;
217
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
217
218
  name: z.ZodString;
218
219
  order: z.ZodNumber;
219
220
  readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -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>;
@@ -368,6 +368,7 @@ declare const optionsSchema: z.ZodObject<{
368
368
  }>>;
369
369
  generateQR: z.ZodOptional<z.ZodBoolean>;
370
370
  fields: z.ZodUnion<[z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>, z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>]>;
371
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
371
372
  name: z.ZodString;
372
373
  order: z.ZodNumber;
373
374
  readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -410,7 +411,6 @@ declare const optionsSchema: z.ZodObject<{
410
411
  quality: z.ZodNumber;
411
412
  }, z.core.$strict>>;
412
413
  }, z.core.$strict>>;
413
- variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
414
414
  hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
415
415
  }, z.core.$strict>;
416
416
  declare const hasItemsSectionConfigSchema: z.ZodObject<{
@@ -585,6 +585,7 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
585
585
  adminGenerated?: boolean | "readonly" | undefined;
586
586
  }>>;
587
587
  generateQR: z.ZodOptional<z.ZodBoolean>;
588
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
588
589
  name: z.ZodString;
589
590
  order: z.ZodNumber;
590
591
  readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -627,7 +628,6 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
627
628
  quality: z.ZodNumber;
628
629
  }, z.core.$strict>>;
629
630
  }, z.core.$strict>>;
630
- variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
631
631
  hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
632
632
  }, z.core.$strict>;
633
633
  export type HasItemsSectionOptions = z.infer<typeof optionsSchema>;
@@ -62,6 +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
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<Variant, Variant>>>;
65
66
  name: z.ZodString;
66
67
  order: z.ZodNumber;
67
68
  readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -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,6 +22,7 @@ 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
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
25
26
  name: z.ZodString;
26
27
  order: z.ZodNumber;
27
28
  readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -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,6 +53,7 @@ declare const simpleSectionConfigSchema: z.ZodObject<{
53
53
  db: z.ZodObject<{
54
54
  table: z.ZodString;
55
55
  }, z.core.$strict>;
56
+ variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
56
57
  name: z.ZodString;
57
58
  order: z.ZodNumber;
58
59
  readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
@@ -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.78",
3
+ "version": "0.5.79",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -171,8 +171,8 @@
171
171
  "tsx": "^4.20.6",
172
172
  "typescript": "^5.9.2",
173
173
  "@lzcms/eslint-config": "0.3.0",
174
- "@lzcms/tsconfig": "0.1.0",
175
- "@lzcms/prettier-config": "0.1.0"
174
+ "@lzcms/prettier-config": "0.1.0",
175
+ "@lzcms/tsconfig": "0.1.0"
176
176
  },
177
177
  "license": "MIT",
178
178
  "keywords": [