nextjs-cms 0.7.1 → 0.7.3
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/LICENSE +21 -21
- package/README.md +290 -290
- package/dist/api/index.d.ts +3 -3
- package/dist/api/lib/serverActions.d.ts +3 -3
- package/dist/api/root.d.ts +6 -6
- package/dist/api/routers/hasItemsSection.d.ts +2 -2
- package/dist/api/routers/simpleSection.d.ts +1 -1
- package/dist/cli/lib/db-config.js +10 -10
- package/dist/core/config/config-loader.d.ts +23 -3
- package/dist/core/config/config-loader.d.ts.map +1 -1
- package/dist/core/config/config-loader.js +32 -6
- package/dist/core/config/loader-with-jiti.d.ts.map +1 -1
- package/dist/core/config/loader-with-jiti.js +19 -15
- package/dist/core/db/table-checker/MysqlTable.js +8 -8
- package/dist/core/factories/section-factory-with-esbuild.d.ts.map +1 -1
- package/dist/core/factories/section-factory-with-esbuild.js +23 -9
- package/dist/core/factories/section-factory-with-jiti.d.ts.map +1 -1
- package/dist/core/factories/section-factory-with-jiti.js +51 -33
- package/dist/core/factories/section-name-validation.d.ts +10 -0
- package/dist/core/factories/section-name-validation.d.ts.map +1 -0
- package/dist/core/factories/section-name-validation.js +31 -0
- package/dist/core/fields/photo.d.ts +127 -85
- package/dist/core/fields/photo.d.ts.map +1 -1
- package/dist/core/fields/photo.js +83 -72
- package/dist/core/fields/richText.d.ts +9 -9
- package/dist/core/fields/select.d.ts +1 -1
- package/dist/core/sections/category.d.ts +42 -36
- package/dist/core/sections/category.d.ts.map +1 -1
- package/dist/core/sections/category.js +6 -1
- package/dist/core/sections/hasItems.d.ts +156 -54
- package/dist/core/sections/hasItems.d.ts.map +1 -1
- package/dist/core/sections/hasItems.js +6 -11
- package/dist/core/sections/section.d.ts +33 -20
- package/dist/core/sections/section.d.ts.map +1 -1
- package/dist/core/sections/section.js +37 -3
- package/dist/core/sections/simple.d.ts +14 -8
- package/dist/core/sections/simple.d.ts.map +1 -1
- package/dist/core/sections/simple.js +6 -1
- package/dist/core/submit/submit.js +1 -1
- package/dist/translations/client.d.ts.map +1 -1
- package/dist/translations/server.d.ts.map +1 -1
- package/dist/validators/photo.js +1 -1
- package/package.json +2 -1
- package/dist/translations/dictionaries/ar.d.ts +0 -433
- package/dist/translations/dictionaries/ar.d.ts.map +0 -1
- package/dist/translations/dictionaries/ar.js +0 -444
- package/dist/translations/dictionaries/en.d.ts +0 -433
- package/dist/translations/dictionaries/en.d.ts.map +0 -1
- package/dist/translations/dictionaries/en.js +0 -444
|
@@ -118,24 +118,9 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
118
118
|
*/
|
|
119
119
|
allowRecursiveDelete: z.ZodOptional<z.ZodBoolean>;
|
|
120
120
|
fields: z.ZodUnion<[z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>, z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>]>;
|
|
121
|
-
name: z.ZodString;
|
|
122
|
-
gallery: z.ZodOptional<z.ZodObject<{
|
|
123
|
-
db: z.ZodObject<{
|
|
124
|
-
tableName: z.ZodString;
|
|
125
|
-
identifierField: z.ZodOptional<z.ZodString>;
|
|
126
|
-
photoNameField: z.ZodOptional<z.ZodString>;
|
|
127
|
-
metaField: z.ZodOptional<z.ZodString>;
|
|
128
|
-
}, z.core.$strict>;
|
|
129
|
-
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
-
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
131
|
-
width: z.ZodNumber;
|
|
132
|
-
height: z.ZodNumber;
|
|
133
|
-
crop: z.ZodBoolean;
|
|
134
|
-
quality: z.ZodNumber;
|
|
135
|
-
}, z.core.$strict>>;
|
|
136
|
-
}, z.core.$strict>>;
|
|
137
121
|
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
138
|
-
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
order: z.ZodNumber;
|
|
139
124
|
db: z.ZodObject<{
|
|
140
125
|
table: z.ZodString;
|
|
141
126
|
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
@@ -159,8 +144,26 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
159
144
|
name: z.ZodOptional<z.ZodString>;
|
|
160
145
|
}, z.core.$strict>>>;
|
|
161
146
|
}, z.core.$strict>;
|
|
147
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
148
|
+
gallery: z.ZodOptional<z.ZodObject<{
|
|
149
|
+
db: z.ZodObject<{
|
|
150
|
+
tableName: z.ZodString;
|
|
151
|
+
identifierField: z.ZodOptional<z.ZodString>;
|
|
152
|
+
photoNameField: z.ZodOptional<z.ZodString>;
|
|
153
|
+
metaField: z.ZodOptional<z.ZodString>;
|
|
154
|
+
}, z.core.$strict>;
|
|
155
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
+
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
width: z.ZodNumber;
|
|
158
|
+
height: z.ZodNumber;
|
|
159
|
+
fit: z.ZodEnum<{
|
|
160
|
+
cover: "cover";
|
|
161
|
+
contain: "contain";
|
|
162
|
+
}>;
|
|
163
|
+
quality: z.ZodNumber;
|
|
164
|
+
}, z.core.$strict>>;
|
|
165
|
+
}, z.core.$strict>>;
|
|
162
166
|
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
|
|
163
|
-
order: z.ZodNumber;
|
|
164
167
|
hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
|
|
165
168
|
}, z.core.$strict>;
|
|
166
169
|
export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
@@ -215,24 +218,9 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
|
215
218
|
* @default false
|
|
216
219
|
*/
|
|
217
220
|
allowRecursiveDelete: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
-
name: z.ZodString;
|
|
219
|
-
gallery: z.ZodOptional<z.ZodObject<{
|
|
220
|
-
db: z.ZodObject<{
|
|
221
|
-
tableName: z.ZodString;
|
|
222
|
-
identifierField: z.ZodOptional<z.ZodString>;
|
|
223
|
-
photoNameField: z.ZodOptional<z.ZodString>;
|
|
224
|
-
metaField: z.ZodOptional<z.ZodString>;
|
|
225
|
-
}, z.core.$strict>;
|
|
226
|
-
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
-
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
228
|
-
width: z.ZodNumber;
|
|
229
|
-
height: z.ZodNumber;
|
|
230
|
-
crop: z.ZodBoolean;
|
|
231
|
-
quality: z.ZodNumber;
|
|
232
|
-
}, z.core.$strict>>;
|
|
233
|
-
}, z.core.$strict>>;
|
|
234
221
|
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
235
|
-
|
|
222
|
+
name: z.ZodString;
|
|
223
|
+
order: z.ZodNumber;
|
|
236
224
|
db: z.ZodObject<{
|
|
237
225
|
table: z.ZodString;
|
|
238
226
|
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
@@ -256,8 +244,26 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
|
256
244
|
name: z.ZodOptional<z.ZodString>;
|
|
257
245
|
}, z.core.$strict>>>;
|
|
258
246
|
}, z.core.$strict>;
|
|
247
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
248
|
+
gallery: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
db: z.ZodObject<{
|
|
250
|
+
tableName: z.ZodString;
|
|
251
|
+
identifierField: z.ZodOptional<z.ZodString>;
|
|
252
|
+
photoNameField: z.ZodOptional<z.ZodString>;
|
|
253
|
+
metaField: z.ZodOptional<z.ZodString>;
|
|
254
|
+
}, z.core.$strict>;
|
|
255
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
+
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
width: z.ZodNumber;
|
|
258
|
+
height: z.ZodNumber;
|
|
259
|
+
fit: z.ZodEnum<{
|
|
260
|
+
cover: "cover";
|
|
261
|
+
contain: "contain";
|
|
262
|
+
}>;
|
|
263
|
+
quality: z.ZodNumber;
|
|
264
|
+
}, z.core.$strict>>;
|
|
265
|
+
}, z.core.$strict>>;
|
|
259
266
|
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
|
|
260
|
-
order: z.ZodNumber;
|
|
261
267
|
hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
|
|
262
268
|
}, z.core.$strict>;
|
|
263
269
|
export type CategorySectionOptions = z.infer<typeof optionsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/core/sections/category.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../src/core/sections/category.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,EACH,OAAO,EAKV,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AAEzE,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;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1
|
-
import { Section, baseHelperFunctionOptionsSchema, FieldGroupConfigSchema, fieldConfigSchema } from './section.js';
|
|
1
|
+
import { Section, baseHelperFunctionOptionsSchema, FieldGroupConfigSchema, fieldConfigSchema, validateFieldNamesForSection, } from './section.js';
|
|
2
2
|
import { entityKind } from '../helpers/index.js';
|
|
3
3
|
import { numberField, textField } from '../fields/index.js';
|
|
4
4
|
import * as z from 'zod';
|
|
@@ -137,6 +137,11 @@ export function categorySection(section) {
|
|
|
137
137
|
fields = section.fields;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
+
validateFieldNamesForSection({
|
|
141
|
+
sectionName: section.name,
|
|
142
|
+
fields,
|
|
143
|
+
identifierField: section.db.identifier,
|
|
144
|
+
});
|
|
140
145
|
const config = {
|
|
141
146
|
...section,
|
|
142
147
|
fields,
|
|
@@ -123,18 +123,34 @@ declare const configSchema: z.ZodObject<{
|
|
|
123
123
|
size?: {
|
|
124
124
|
width: number;
|
|
125
125
|
height: number;
|
|
126
|
-
|
|
126
|
+
fit: "cover";
|
|
127
|
+
quality?: number | undefined;
|
|
128
|
+
} | {
|
|
129
|
+
width: number;
|
|
130
|
+
height: number;
|
|
131
|
+
fit: "contain";
|
|
132
|
+
quality?: number | undefined;
|
|
127
133
|
background?: {
|
|
128
134
|
r: number;
|
|
129
135
|
g: number;
|
|
130
136
|
b: number;
|
|
131
137
|
alpha: number;
|
|
132
138
|
} | undefined;
|
|
139
|
+
} | {
|
|
140
|
+
width: number;
|
|
141
|
+
height: number;
|
|
142
|
+
strict: true;
|
|
143
|
+
quality?: number | undefined;
|
|
133
144
|
} | undefined;
|
|
134
145
|
thumbnail?: {
|
|
135
146
|
width: number;
|
|
136
147
|
height: number;
|
|
137
|
-
|
|
148
|
+
fit: "cover";
|
|
149
|
+
quality?: number | undefined;
|
|
150
|
+
} | {
|
|
151
|
+
width: number;
|
|
152
|
+
height: number;
|
|
153
|
+
fit: "contain";
|
|
138
154
|
quality?: number | undefined;
|
|
139
155
|
background?: {
|
|
140
156
|
r: number;
|
|
@@ -147,7 +163,7 @@ declare const configSchema: z.ZodObject<{
|
|
|
147
163
|
size: number;
|
|
148
164
|
unit: "kb" | "mb";
|
|
149
165
|
} | undefined;
|
|
150
|
-
fileType?: ("
|
|
166
|
+
fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
|
|
151
167
|
removeExtension?: boolean | undefined;
|
|
152
168
|
label?: string | Record<string, string> | undefined;
|
|
153
169
|
required?: boolean | undefined;
|
|
@@ -164,18 +180,34 @@ declare const configSchema: z.ZodObject<{
|
|
|
164
180
|
size?: {
|
|
165
181
|
width: number;
|
|
166
182
|
height: number;
|
|
167
|
-
|
|
183
|
+
fit: "cover";
|
|
184
|
+
quality?: number | undefined;
|
|
185
|
+
} | {
|
|
186
|
+
width: number;
|
|
187
|
+
height: number;
|
|
188
|
+
fit: "contain";
|
|
189
|
+
quality?: number | undefined;
|
|
168
190
|
background?: {
|
|
169
191
|
r: number;
|
|
170
192
|
g: number;
|
|
171
193
|
b: number;
|
|
172
194
|
alpha: number;
|
|
173
195
|
} | undefined;
|
|
196
|
+
} | {
|
|
197
|
+
width: number;
|
|
198
|
+
height: number;
|
|
199
|
+
strict: true;
|
|
200
|
+
quality?: number | undefined;
|
|
174
201
|
} | undefined;
|
|
175
202
|
thumbnail?: {
|
|
176
203
|
width: number;
|
|
177
204
|
height: number;
|
|
178
|
-
|
|
205
|
+
fit: "cover";
|
|
206
|
+
quality?: number | undefined;
|
|
207
|
+
} | {
|
|
208
|
+
width: number;
|
|
209
|
+
height: number;
|
|
210
|
+
fit: "contain";
|
|
179
211
|
quality?: number | undefined;
|
|
180
212
|
background?: {
|
|
181
213
|
r: number;
|
|
@@ -188,7 +220,7 @@ declare const configSchema: z.ZodObject<{
|
|
|
188
220
|
size: number;
|
|
189
221
|
unit: "kb" | "mb";
|
|
190
222
|
} | undefined;
|
|
191
|
-
fileType?: ("
|
|
223
|
+
fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
|
|
192
224
|
removeExtension?: boolean | undefined;
|
|
193
225
|
label?: string | Record<string, string> | undefined;
|
|
194
226
|
required?: boolean | undefined;
|
|
@@ -341,18 +373,34 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
341
373
|
size?: {
|
|
342
374
|
width: number;
|
|
343
375
|
height: number;
|
|
344
|
-
|
|
376
|
+
fit: "cover";
|
|
377
|
+
quality?: number | undefined;
|
|
378
|
+
} | {
|
|
379
|
+
width: number;
|
|
380
|
+
height: number;
|
|
381
|
+
fit: "contain";
|
|
382
|
+
quality?: number | undefined;
|
|
345
383
|
background?: {
|
|
346
384
|
r: number;
|
|
347
385
|
g: number;
|
|
348
386
|
b: number;
|
|
349
387
|
alpha: number;
|
|
350
388
|
} | undefined;
|
|
389
|
+
} | {
|
|
390
|
+
width: number;
|
|
391
|
+
height: number;
|
|
392
|
+
strict: true;
|
|
393
|
+
quality?: number | undefined;
|
|
351
394
|
} | undefined;
|
|
352
395
|
thumbnail?: {
|
|
353
396
|
width: number;
|
|
354
397
|
height: number;
|
|
355
|
-
|
|
398
|
+
fit: "cover";
|
|
399
|
+
quality?: number | undefined;
|
|
400
|
+
} | {
|
|
401
|
+
width: number;
|
|
402
|
+
height: number;
|
|
403
|
+
fit: "contain";
|
|
356
404
|
quality?: number | undefined;
|
|
357
405
|
background?: {
|
|
358
406
|
r: number;
|
|
@@ -365,7 +413,7 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
365
413
|
size: number;
|
|
366
414
|
unit: "kb" | "mb";
|
|
367
415
|
} | undefined;
|
|
368
|
-
fileType?: ("
|
|
416
|
+
fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
|
|
369
417
|
removeExtension?: boolean | undefined;
|
|
370
418
|
label?: string | Record<string, string> | undefined;
|
|
371
419
|
required?: boolean | undefined;
|
|
@@ -382,18 +430,34 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
382
430
|
size?: {
|
|
383
431
|
width: number;
|
|
384
432
|
height: number;
|
|
385
|
-
|
|
433
|
+
fit: "cover";
|
|
434
|
+
quality?: number | undefined;
|
|
435
|
+
} | {
|
|
436
|
+
width: number;
|
|
437
|
+
height: number;
|
|
438
|
+
fit: "contain";
|
|
439
|
+
quality?: number | undefined;
|
|
386
440
|
background?: {
|
|
387
441
|
r: number;
|
|
388
442
|
g: number;
|
|
389
443
|
b: number;
|
|
390
444
|
alpha: number;
|
|
391
445
|
} | undefined;
|
|
446
|
+
} | {
|
|
447
|
+
width: number;
|
|
448
|
+
height: number;
|
|
449
|
+
strict: true;
|
|
450
|
+
quality?: number | undefined;
|
|
392
451
|
} | undefined;
|
|
393
452
|
thumbnail?: {
|
|
394
453
|
width: number;
|
|
395
454
|
height: number;
|
|
396
|
-
|
|
455
|
+
fit: "cover";
|
|
456
|
+
quality?: number | undefined;
|
|
457
|
+
} | {
|
|
458
|
+
width: number;
|
|
459
|
+
height: number;
|
|
460
|
+
fit: "contain";
|
|
397
461
|
quality?: number | undefined;
|
|
398
462
|
background?: {
|
|
399
463
|
r: number;
|
|
@@ -406,7 +470,7 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
406
470
|
size: number;
|
|
407
471
|
unit: "kb" | "mb";
|
|
408
472
|
} | undefined;
|
|
409
|
-
fileType?: ("
|
|
473
|
+
fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
|
|
410
474
|
removeExtension?: boolean | undefined;
|
|
411
475
|
label?: string | Record<string, string> | undefined;
|
|
412
476
|
required?: boolean | undefined;
|
|
@@ -417,24 +481,9 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
417
481
|
}>>;
|
|
418
482
|
generateQR: z.ZodOptional<z.ZodBoolean>;
|
|
419
483
|
fields: z.ZodUnion<[z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>, z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>]>;
|
|
420
|
-
name: z.ZodString;
|
|
421
|
-
gallery: z.ZodOptional<z.ZodObject<{
|
|
422
|
-
db: z.ZodObject<{
|
|
423
|
-
tableName: z.ZodString;
|
|
424
|
-
identifierField: z.ZodOptional<z.ZodString>;
|
|
425
|
-
photoNameField: z.ZodOptional<z.ZodString>;
|
|
426
|
-
metaField: z.ZodOptional<z.ZodString>;
|
|
427
|
-
}, z.core.$strict>;
|
|
428
|
-
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
-
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
430
|
-
width: z.ZodNumber;
|
|
431
|
-
height: z.ZodNumber;
|
|
432
|
-
crop: z.ZodBoolean;
|
|
433
|
-
quality: z.ZodNumber;
|
|
434
|
-
}, z.core.$strict>>;
|
|
435
|
-
}, z.core.$strict>>;
|
|
436
484
|
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
437
|
-
|
|
485
|
+
name: z.ZodString;
|
|
486
|
+
order: z.ZodNumber;
|
|
438
487
|
db: z.ZodObject<{
|
|
439
488
|
table: z.ZodString;
|
|
440
489
|
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
@@ -458,8 +507,26 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
458
507
|
name: z.ZodOptional<z.ZodString>;
|
|
459
508
|
}, z.core.$strict>>>;
|
|
460
509
|
}, z.core.$strict>;
|
|
510
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
511
|
+
gallery: z.ZodOptional<z.ZodObject<{
|
|
512
|
+
db: z.ZodObject<{
|
|
513
|
+
tableName: z.ZodString;
|
|
514
|
+
identifierField: z.ZodOptional<z.ZodString>;
|
|
515
|
+
photoNameField: z.ZodOptional<z.ZodString>;
|
|
516
|
+
metaField: z.ZodOptional<z.ZodString>;
|
|
517
|
+
}, z.core.$strict>;
|
|
518
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
519
|
+
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
520
|
+
width: z.ZodNumber;
|
|
521
|
+
height: z.ZodNumber;
|
|
522
|
+
fit: z.ZodEnum<{
|
|
523
|
+
cover: "cover";
|
|
524
|
+
contain: "contain";
|
|
525
|
+
}>;
|
|
526
|
+
quality: z.ZodNumber;
|
|
527
|
+
}, z.core.$strict>>;
|
|
528
|
+
}, z.core.$strict>>;
|
|
461
529
|
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
|
|
462
|
-
order: z.ZodNumber;
|
|
463
530
|
hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
|
|
464
531
|
}, z.core.$strict>;
|
|
465
532
|
declare const hasItemsSectionConfigSchema: z.ZodObject<{
|
|
@@ -583,18 +650,34 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
|
|
|
583
650
|
size?: {
|
|
584
651
|
width: number;
|
|
585
652
|
height: number;
|
|
586
|
-
|
|
653
|
+
fit: "cover";
|
|
654
|
+
quality?: number | undefined;
|
|
655
|
+
} | {
|
|
656
|
+
width: number;
|
|
657
|
+
height: number;
|
|
658
|
+
fit: "contain";
|
|
659
|
+
quality?: number | undefined;
|
|
587
660
|
background?: {
|
|
588
661
|
r: number;
|
|
589
662
|
g: number;
|
|
590
663
|
b: number;
|
|
591
664
|
alpha: number;
|
|
592
665
|
} | undefined;
|
|
666
|
+
} | {
|
|
667
|
+
width: number;
|
|
668
|
+
height: number;
|
|
669
|
+
strict: true;
|
|
670
|
+
quality?: number | undefined;
|
|
593
671
|
} | undefined;
|
|
594
672
|
thumbnail?: {
|
|
595
673
|
width: number;
|
|
596
674
|
height: number;
|
|
597
|
-
|
|
675
|
+
fit: "cover";
|
|
676
|
+
quality?: number | undefined;
|
|
677
|
+
} | {
|
|
678
|
+
width: number;
|
|
679
|
+
height: number;
|
|
680
|
+
fit: "contain";
|
|
598
681
|
quality?: number | undefined;
|
|
599
682
|
background?: {
|
|
600
683
|
r: number;
|
|
@@ -607,7 +690,7 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
|
|
|
607
690
|
size: number;
|
|
608
691
|
unit: "kb" | "mb";
|
|
609
692
|
} | undefined;
|
|
610
|
-
fileType?: ("
|
|
693
|
+
fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
|
|
611
694
|
removeExtension?: boolean | undefined;
|
|
612
695
|
label?: string | Record<string, string> | undefined;
|
|
613
696
|
required?: boolean | undefined;
|
|
@@ -624,18 +707,34 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
|
|
|
624
707
|
size?: {
|
|
625
708
|
width: number;
|
|
626
709
|
height: number;
|
|
627
|
-
|
|
710
|
+
fit: "cover";
|
|
711
|
+
quality?: number | undefined;
|
|
712
|
+
} | {
|
|
713
|
+
width: number;
|
|
714
|
+
height: number;
|
|
715
|
+
fit: "contain";
|
|
716
|
+
quality?: number | undefined;
|
|
628
717
|
background?: {
|
|
629
718
|
r: number;
|
|
630
719
|
g: number;
|
|
631
720
|
b: number;
|
|
632
721
|
alpha: number;
|
|
633
722
|
} | undefined;
|
|
723
|
+
} | {
|
|
724
|
+
width: number;
|
|
725
|
+
height: number;
|
|
726
|
+
strict: true;
|
|
727
|
+
quality?: number | undefined;
|
|
634
728
|
} | undefined;
|
|
635
729
|
thumbnail?: {
|
|
636
730
|
width: number;
|
|
637
731
|
height: number;
|
|
638
|
-
|
|
732
|
+
fit: "cover";
|
|
733
|
+
quality?: number | undefined;
|
|
734
|
+
} | {
|
|
735
|
+
width: number;
|
|
736
|
+
height: number;
|
|
737
|
+
fit: "contain";
|
|
639
738
|
quality?: number | undefined;
|
|
640
739
|
background?: {
|
|
641
740
|
r: number;
|
|
@@ -648,7 +747,7 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
|
|
|
648
747
|
size: number;
|
|
649
748
|
unit: "kb" | "mb";
|
|
650
749
|
} | undefined;
|
|
651
|
-
fileType?: ("
|
|
750
|
+
fileType?: ("jpeg" | "jpg" | "png" | "webp")[] | undefined;
|
|
652
751
|
removeExtension?: boolean | undefined;
|
|
653
752
|
label?: string | Record<string, string> | undefined;
|
|
654
753
|
required?: boolean | undefined;
|
|
@@ -658,24 +757,9 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
|
|
|
658
757
|
adminGenerated?: boolean | "readonly" | undefined;
|
|
659
758
|
}>>;
|
|
660
759
|
generateQR: z.ZodOptional<z.ZodBoolean>;
|
|
661
|
-
name: z.ZodString;
|
|
662
|
-
gallery: z.ZodOptional<z.ZodObject<{
|
|
663
|
-
db: z.ZodObject<{
|
|
664
|
-
tableName: z.ZodString;
|
|
665
|
-
identifierField: z.ZodOptional<z.ZodString>;
|
|
666
|
-
photoNameField: z.ZodOptional<z.ZodString>;
|
|
667
|
-
metaField: z.ZodOptional<z.ZodString>;
|
|
668
|
-
}, z.core.$strict>;
|
|
669
|
-
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
670
|
-
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
671
|
-
width: z.ZodNumber;
|
|
672
|
-
height: z.ZodNumber;
|
|
673
|
-
crop: z.ZodBoolean;
|
|
674
|
-
quality: z.ZodNumber;
|
|
675
|
-
}, z.core.$strict>>;
|
|
676
|
-
}, z.core.$strict>>;
|
|
677
760
|
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
678
|
-
|
|
761
|
+
name: z.ZodString;
|
|
762
|
+
order: z.ZodNumber;
|
|
679
763
|
db: z.ZodObject<{
|
|
680
764
|
table: z.ZodString;
|
|
681
765
|
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
@@ -699,8 +783,26 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
|
|
|
699
783
|
name: z.ZodOptional<z.ZodString>;
|
|
700
784
|
}, z.core.$strict>>>;
|
|
701
785
|
}, z.core.$strict>;
|
|
786
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
787
|
+
gallery: z.ZodOptional<z.ZodObject<{
|
|
788
|
+
db: z.ZodObject<{
|
|
789
|
+
tableName: z.ZodString;
|
|
790
|
+
identifierField: z.ZodOptional<z.ZodString>;
|
|
791
|
+
photoNameField: z.ZodOptional<z.ZodString>;
|
|
792
|
+
metaField: z.ZodOptional<z.ZodString>;
|
|
793
|
+
}, z.core.$strict>;
|
|
794
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
795
|
+
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
796
|
+
width: z.ZodNumber;
|
|
797
|
+
height: z.ZodNumber;
|
|
798
|
+
fit: z.ZodEnum<{
|
|
799
|
+
cover: "cover";
|
|
800
|
+
contain: "contain";
|
|
801
|
+
}>;
|
|
802
|
+
quality: z.ZodNumber;
|
|
803
|
+
}, z.core.$strict>>;
|
|
804
|
+
}, z.core.$strict>>;
|
|
702
805
|
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<import("../types/index.js").Variant, import("../types/index.js").Variant>>>;
|
|
703
|
-
order: z.ZodNumber;
|
|
704
806
|
hooks: z.ZodOptional<z.ZodCustom<import("./section.js").Hooks, import("./section.js").Hooks>>;
|
|
705
807
|
}, z.core.$strict>;
|
|
706
808
|
export type HasItemsSectionOptions = z.infer<typeof optionsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hasItems.d.ts","sourceRoot":"","sources":["../../../src/core/sections/hasItems.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACtG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,
|
|
1
|
+
{"version":3,"file":"hasItems.d.ts","sourceRoot":"","sources":["../../../src/core/sections/hasItems.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// import { Variant } from '@/lz/types'
|
|
2
2
|
import { entityKind } from '../helpers/index.js';
|
|
3
|
-
import { Section, baseHelperFunctionOptionsSchema, FieldGroupConfigSchema, fieldConfigSchema } from './section.js';
|
|
3
|
+
import { Section, baseHelperFunctionOptionsSchema, FieldGroupConfigSchema, fieldConfigSchema, validateFieldNamesForSection, } from './section.js';
|
|
4
4
|
import chalk from 'chalk';
|
|
5
5
|
import * as z from 'zod';
|
|
6
6
|
const configSchema = z.strictObject({
|
|
@@ -141,16 +141,11 @@ export function hasItemsSection(section) {
|
|
|
141
141
|
console.log(chalk.red('--------------------------------'));
|
|
142
142
|
throw new Error(message);
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
if (duplicates.length > 0) {
|
|
150
|
-
const uniqueDuplicates = [...new Set(duplicates)];
|
|
151
|
-
const message = `${chalk.red.bold(` - ${chalk.underline(`[Section: ${section.name}]:`)} Duplicate field names detected: ${uniqueDuplicates.join(', ')}.`)}\n${chalk.yellow(' Field names must be unique. Please make sure every field name is unique in each section.')}`;
|
|
152
|
-
throw new Error(message);
|
|
153
|
-
}
|
|
144
|
+
validateFieldNamesForSection({
|
|
145
|
+
sectionName: section.name,
|
|
146
|
+
fields,
|
|
147
|
+
identifierField: section.db.identifier,
|
|
148
|
+
});
|
|
154
149
|
const config = {
|
|
155
150
|
...section,
|
|
156
151
|
fields,
|
|
@@ -23,7 +23,10 @@ export declare const baseSectionOptionsSchema: z.ZodObject<{
|
|
|
23
23
|
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
24
24
|
width: z.ZodNumber;
|
|
25
25
|
height: z.ZodNumber;
|
|
26
|
-
|
|
26
|
+
fit: z.ZodEnum<{
|
|
27
|
+
cover: "cover";
|
|
28
|
+
contain: "contain";
|
|
29
|
+
}>;
|
|
27
30
|
quality: z.ZodNumber;
|
|
28
31
|
}, z.core.$strict>>;
|
|
29
32
|
}, z.core.$strict>>;
|
|
@@ -62,24 +65,9 @@ export declare const baseSectionOptionsSchema: z.ZodObject<{
|
|
|
62
65
|
*/
|
|
63
66
|
export declare const baseHelperFunctionOptionsSchema: z.ZodObject<{
|
|
64
67
|
fields: z.ZodUnion<[z.ZodArray<z.ZodCustom<FieldConfig, FieldConfig>>, z.ZodArray<z.ZodCustom<FieldGroupConfig, FieldGroupConfig>>]>;
|
|
65
|
-
name: z.ZodString;
|
|
66
|
-
gallery: z.ZodOptional<z.ZodObject<{
|
|
67
|
-
db: z.ZodObject<{
|
|
68
|
-
tableName: z.ZodString;
|
|
69
|
-
identifierField: z.ZodOptional<z.ZodString>;
|
|
70
|
-
photoNameField: z.ZodOptional<z.ZodString>;
|
|
71
|
-
metaField: z.ZodOptional<z.ZodString>;
|
|
72
|
-
}, z.core.$strict>;
|
|
73
|
-
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
-
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
75
|
-
width: z.ZodNumber;
|
|
76
|
-
height: z.ZodNumber;
|
|
77
|
-
crop: z.ZodBoolean;
|
|
78
|
-
quality: z.ZodNumber;
|
|
79
|
-
}, z.core.$strict>>;
|
|
80
|
-
}, z.core.$strict>>;
|
|
81
68
|
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
82
|
-
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
order: z.ZodNumber;
|
|
83
71
|
db: z.ZodObject<{
|
|
84
72
|
table: z.ZodString;
|
|
85
73
|
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
@@ -103,11 +91,36 @@ export declare const baseHelperFunctionOptionsSchema: z.ZodObject<{
|
|
|
103
91
|
name: z.ZodOptional<z.ZodString>;
|
|
104
92
|
}, z.core.$strict>>>;
|
|
105
93
|
}, z.core.$strict>;
|
|
94
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
95
|
+
gallery: z.ZodOptional<z.ZodObject<{
|
|
96
|
+
db: z.ZodObject<{
|
|
97
|
+
tableName: z.ZodString;
|
|
98
|
+
identifierField: z.ZodOptional<z.ZodString>;
|
|
99
|
+
photoNameField: z.ZodOptional<z.ZodString>;
|
|
100
|
+
metaField: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
watermark: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
104
|
+
width: z.ZodNumber;
|
|
105
|
+
height: z.ZodNumber;
|
|
106
|
+
fit: z.ZodEnum<{
|
|
107
|
+
cover: "cover";
|
|
108
|
+
contain: "contain";
|
|
109
|
+
}>;
|
|
110
|
+
quality: z.ZodNumber;
|
|
111
|
+
}, z.core.$strict>>;
|
|
112
|
+
}, z.core.$strict>>;
|
|
106
113
|
variants: z.ZodOptional<z.ZodArray<z.ZodCustom<Variant, Variant>>>;
|
|
107
|
-
order: z.ZodNumber;
|
|
108
114
|
hooks: z.ZodOptional<z.ZodCustom<Hooks, Hooks>>;
|
|
109
115
|
}, z.core.$strict>;
|
|
110
116
|
export declare function validateSectionConfig(config: BaseSectionOptions): void;
|
|
117
|
+
export declare function getDuplicateFieldNames(fields: FieldConfig[]): string[];
|
|
118
|
+
export declare function validateUniqueFieldNames(sectionName: string, fields: FieldConfig[]): void;
|
|
119
|
+
export declare function validateFieldNamesForSection({ sectionName, fields, identifierField, }: {
|
|
120
|
+
sectionName: string;
|
|
121
|
+
fields: FieldConfig[];
|
|
122
|
+
identifierField?: FieldConfig;
|
|
123
|
+
}): void;
|
|
111
124
|
export type BeforeUpdateContext = {
|
|
112
125
|
itemId?: string | number;
|
|
113
126
|
values: Record<string, unknown>;
|
|
@@ -201,7 +214,7 @@ export declare abstract class Section<TExtraSectionConfig extends object = objec
|
|
|
201
214
|
thumbnail?: {
|
|
202
215
|
width: number;
|
|
203
216
|
height: number;
|
|
204
|
-
|
|
217
|
+
fit: 'cover' | 'contain';
|
|
205
218
|
quality: number;
|
|
206
219
|
};
|
|
207
220
|
} | undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/core/sections/section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEhF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAE5E,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAGxB,eAAO,MAAM,iBAAiB,uCAA0B,CAAA;AACxD,eAAO,MAAM,sBAAsB,iDAA+B,CAAA;AAIlE,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../../src/core/sections/section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEhF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAE5E,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAGxB,eAAO,MAAM,iBAAiB,uCAA0B,CAAA;AACxD,eAAO,MAAM,sBAAsB,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