nextjs-cms 0.7.2 → 0.7.4
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/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/core/config/config-loader.d.ts +35 -7
- package/dist/core/config/config-loader.d.ts.map +1 -1
- package/dist/core/config/config-loader.js +61 -13
- package/dist/core/fields/photo.d.ts +121 -79
- package/dist/core/fields/photo.d.ts.map +1 -1
- package/dist/core/fields/photo.js +83 -72
- package/dist/core/fields/select.d.ts +1 -1
- package/dist/core/sections/category.d.ts +12 -6
- package/dist/core/sections/category.d.ts.map +1 -1
- package/dist/core/sections/hasItems.d.ts +120 -18
- package/dist/core/sections/hasItems.d.ts.map +1 -1
- package/dist/core/sections/section.d.ts +11 -5
- package/dist/core/sections/section.d.ts.map +1 -1
- package/dist/core/sections/section.js +5 -5
- package/dist/core/sections/simple.d.ts +8 -2
- package/dist/core/sections/simple.d.ts.map +1 -1
- package/dist/translations/client.d.ts +4 -4
- package/dist/translations/client.d.ts.map +1 -1
- package/dist/translations/server.d.ts +4 -4
- package/dist/translations/server.d.ts.map +1 -1
- package/dist/validators/photo.js +1 -1
- package/package.json +2 -1
|
@@ -16,41 +16,61 @@ const backgroundSchema = z
|
|
|
16
16
|
b: z.number().min(0).max(255).describe('Blue channel (0-255)'),
|
|
17
17
|
alpha: z.number().min(0).max(1).describe('Alpha channel (0-1)'),
|
|
18
18
|
})
|
|
19
|
-
.describe('Background color for image padding (used
|
|
20
|
-
|
|
19
|
+
.describe('Background color for image padding (used with fit: contain)');
|
|
20
|
+
/**
|
|
21
|
+
* Size schema — discriminated union of three variants:
|
|
22
|
+
* - strict: true — user must upload exact dimensions, no server resize
|
|
23
|
+
* - fit: 'cover' — accept any dimensions, crop to fill (sharp fit: cover)
|
|
24
|
+
* - fit: 'contain' — accept any dimensions, pad with background (sharp fit: contain)
|
|
25
|
+
*/
|
|
26
|
+
const strictSizeSchema = z.strictObject({
|
|
21
27
|
width: z.number().describe('Image width in pixels'),
|
|
22
28
|
height: z.number().describe('Image height in pixels'),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
* width: 1200,
|
|
32
|
-
* height: 450,
|
|
33
|
-
* crop: true, // No constraints
|
|
34
|
-
* }
|
|
35
|
-
*/
|
|
36
|
-
crop: z.boolean().describe('Whether to crop the image to fit dimensions'),
|
|
37
|
-
/**
|
|
38
|
-
* Background color for padding when crop is false.
|
|
39
|
-
* Falls back to CMS config media.images.background if not provided.
|
|
40
|
-
*/
|
|
41
|
-
background: backgroundSchema.optional().describe('Background color for padding when not cropping'),
|
|
29
|
+
strict: z.literal(true).describe('Require exact upload dimensions, no server resize'),
|
|
30
|
+
quality: z.number().min(1).max(100).optional().describe('Output quality (1-100)'),
|
|
31
|
+
});
|
|
32
|
+
const coverSizeSchema = z.strictObject({
|
|
33
|
+
width: z.number().describe('Image width in pixels'),
|
|
34
|
+
height: z.number().describe('Image height in pixels'),
|
|
35
|
+
fit: z.literal('cover').describe('Crop to fill dimensions (sharp fit: cover)'),
|
|
36
|
+
quality: z.number().min(1).max(100).optional().describe('Output quality (1-100)'),
|
|
42
37
|
});
|
|
43
|
-
const
|
|
44
|
-
width: z.number().describe('
|
|
45
|
-
height: z.number().describe('
|
|
46
|
-
|
|
47
|
-
quality: z.number().optional().describe('
|
|
38
|
+
const containSizeSchema = z.strictObject({
|
|
39
|
+
width: z.number().describe('Image width in pixels'),
|
|
40
|
+
height: z.number().describe('Image height in pixels'),
|
|
41
|
+
fit: z.literal('contain').describe('Pad with background to fill dimensions (sharp fit: contain)'),
|
|
42
|
+
quality: z.number().min(1).max(100).optional().describe('Output quality (1-100)'),
|
|
48
43
|
/**
|
|
49
|
-
* Background color for padding
|
|
44
|
+
* Background color for padding.
|
|
50
45
|
* Falls back to CMS config media.images.background if not provided.
|
|
51
46
|
*/
|
|
52
|
-
background: backgroundSchema.optional().describe('Background color for padding
|
|
47
|
+
background: backgroundSchema.optional().describe('Background color for padding'),
|
|
53
48
|
});
|
|
49
|
+
const sizeSchema = z.union([strictSizeSchema, z.discriminatedUnion('fit', [coverSizeSchema, containSizeSchema])]);
|
|
50
|
+
/**
|
|
51
|
+
* Thumbnail schema — discriminated union:
|
|
52
|
+
* - fit: 'cover' — crop thumbnail to fill
|
|
53
|
+
* - fit: 'contain' — pad thumbnail with background
|
|
54
|
+
*/
|
|
55
|
+
const thumbnailSchema = z.discriminatedUnion('fit', [
|
|
56
|
+
z.strictObject({
|
|
57
|
+
width: z.number().describe('Thumbnail width in pixels'),
|
|
58
|
+
height: z.number().describe('Thumbnail height in pixels'),
|
|
59
|
+
fit: z.literal('cover').describe('Crop thumbnail to fill'),
|
|
60
|
+
quality: z.number().min(1).max(100).optional().describe('Thumbnail quality (1-100)'),
|
|
61
|
+
}),
|
|
62
|
+
z.strictObject({
|
|
63
|
+
width: z.number().describe('Thumbnail width in pixels'),
|
|
64
|
+
height: z.number().describe('Thumbnail height in pixels'),
|
|
65
|
+
fit: z.literal('contain').describe('Pad thumbnail with background'),
|
|
66
|
+
quality: z.number().min(1).max(100).optional().describe('Thumbnail quality (1-100)'),
|
|
67
|
+
/**
|
|
68
|
+
* Background color for padding.
|
|
69
|
+
* Falls back to CMS config media.images.background if not provided.
|
|
70
|
+
*/
|
|
71
|
+
background: backgroundSchema.optional().describe('Background color for padding'),
|
|
72
|
+
}),
|
|
73
|
+
]);
|
|
54
74
|
const maxFileSizeSchema = z.strictObject({
|
|
55
75
|
size: z.number().describe('Maximum file size'),
|
|
56
76
|
unit: z.enum(['kb', 'mb']).describe('Size unit'),
|
|
@@ -152,9 +172,13 @@ export class PhotoField extends FileField {
|
|
|
152
172
|
this._thumbnail = this._thumbnailConfig;
|
|
153
173
|
}
|
|
154
174
|
else {
|
|
155
|
-
//
|
|
175
|
+
// Fetch CMS config and construct a ThumbnailConfig from it
|
|
156
176
|
const cmsConfig = await getCMSConfig();
|
|
157
|
-
|
|
177
|
+
const t = cmsConfig.media.images.thumbnail;
|
|
178
|
+
const fit = t.size.fit ?? 'contain';
|
|
179
|
+
this._thumbnail = fit === 'contain'
|
|
180
|
+
? { width: t.size.width, height: t.size.height, fit: 'contain', quality: t.quality }
|
|
181
|
+
: { width: t.size.width, height: t.size.height, fit: 'cover', quality: t.quality };
|
|
158
182
|
}
|
|
159
183
|
return this._thumbnail;
|
|
160
184
|
}
|
|
@@ -206,55 +230,53 @@ export class PhotoField extends FileField {
|
|
|
206
230
|
fs.mkdirSync(thumbsFolder, { recursive: true });
|
|
207
231
|
}
|
|
208
232
|
/**
|
|
209
|
-
*
|
|
210
|
-
* -
|
|
211
|
-
* -
|
|
233
|
+
* Write the main image to disk
|
|
234
|
+
* - strict: true -> no resize, just convert to webp
|
|
235
|
+
* - fit: 'cover' -> crop to fill dimensions
|
|
236
|
+
* - fit: 'contain' -> pad with background to fill dimensions
|
|
212
237
|
*/
|
|
238
|
+
const cmsImageQuality = cmsConfig.media.images.image.quality ?? 80;
|
|
213
239
|
if (this.size) {
|
|
214
|
-
|
|
215
|
-
|
|
240
|
+
const quality = this.size.quality ?? cmsImageQuality;
|
|
241
|
+
const outputPath = path.join(uploadsFolder, '.photos', this._folder, this.value);
|
|
242
|
+
if ('strict' in this.size) {
|
|
243
|
+
// Strict mode: exact dimensions already validated, just convert to webp
|
|
244
|
+
await this._sharpImage.clone().webp({ quality }).toFile(outputPath);
|
|
245
|
+
}
|
|
246
|
+
else if (this.size.fit === 'cover') {
|
|
216
247
|
await this._sharpImage
|
|
217
248
|
.clone()
|
|
218
|
-
.resize({
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
fit: 'cover',
|
|
222
|
-
})
|
|
223
|
-
.webp()
|
|
224
|
-
.toFile(path.join(uploadsFolder, '.photos', this._folder, this.value));
|
|
249
|
+
.resize({ width: this.size.width, height: this.size.height, fit: 'cover' })
|
|
250
|
+
.webp({ quality })
|
|
251
|
+
.toFile(outputPath);
|
|
225
252
|
}
|
|
226
253
|
else {
|
|
227
|
-
//
|
|
228
|
-
|
|
254
|
+
// contain: pad with background
|
|
255
|
+
const background = this.size.background ?? cmsBackground;
|
|
229
256
|
await this._sharpImage
|
|
230
257
|
.clone()
|
|
231
|
-
.resize({
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
fit: 'contain',
|
|
235
|
-
background: this.size.background ?? cmsBackground,
|
|
236
|
-
})
|
|
237
|
-
.webp()
|
|
238
|
-
.toFile(path.join(uploadsFolder, '.photos', this._folder, this.value));
|
|
258
|
+
.resize({ width: this.size.width, height: this.size.height, fit: 'contain', background })
|
|
259
|
+
.webp({ quality })
|
|
260
|
+
.toFile(outputPath);
|
|
239
261
|
}
|
|
240
262
|
}
|
|
241
263
|
else {
|
|
242
264
|
await this._sharpImage.clone().toFile(path.join(uploadsFolder, '.photos', this._folder, this.value));
|
|
243
265
|
}
|
|
244
266
|
/**
|
|
245
|
-
*
|
|
246
|
-
* Use CMS config background for padding when crop is false
|
|
267
|
+
* Write a thumbnail
|
|
247
268
|
*/
|
|
269
|
+
const thumbBackground = ('background' in thumbnail ? thumbnail.background : undefined) ?? cmsBackground;
|
|
248
270
|
await this._sharpImage
|
|
249
271
|
.clone()
|
|
250
272
|
.resize({
|
|
251
273
|
width: thumbnail.width,
|
|
252
274
|
height: thumbnail.height,
|
|
253
|
-
fit: thumbnail.
|
|
254
|
-
|
|
275
|
+
fit: thumbnail.fit,
|
|
276
|
+
...(thumbnail.fit === 'contain' ? { background: thumbBackground } : {}),
|
|
255
277
|
})
|
|
256
278
|
.webp({
|
|
257
|
-
quality: thumbnail.quality ??
|
|
279
|
+
quality: thumbnail.quality ?? cmsImageQuality,
|
|
258
280
|
})
|
|
259
281
|
.toFile(path.join(uploadsFolder, '.thumbs', this._folder, this.value));
|
|
260
282
|
}
|
|
@@ -416,22 +438,11 @@ export class PhotoField extends FileField {
|
|
|
416
438
|
throw new Error(getString('fileCorrupted', this.locale));
|
|
417
439
|
}
|
|
418
440
|
/**
|
|
419
|
-
* Check the size
|
|
441
|
+
* Check the size — only enforce exact dimensions when strict mode is set
|
|
420
442
|
*/
|
|
421
|
-
if (this.size) {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
*/
|
|
425
|
-
if (!this.size.crop) {
|
|
426
|
-
/**
|
|
427
|
-
* Just resize the image?
|
|
428
|
-
*/
|
|
429
|
-
/**
|
|
430
|
-
* Check if the size matches the required size
|
|
431
|
-
*/
|
|
432
|
-
if (metadata.width !== this.size.width || metadata.height !== this.size.height) {
|
|
433
|
-
throw new Error(getString('imageDimensionMismatchDetailed', this.locale, { field: this.getLocalizedLabel(), actual: `${metadata.width}x${metadata.height}`, required: `${this.size.width}x${this.size.height}` }));
|
|
434
|
-
}
|
|
443
|
+
if (this.size && 'strict' in this.size) {
|
|
444
|
+
if (metadata.width !== this.size.width || metadata.height !== this.size.height) {
|
|
445
|
+
throw new Error(getString('imageDimensionMismatchDetailed', this.locale, { field: this.getLocalizedLabel(), actual: `${metadata.width}x${metadata.height}`, required: `${this.size.width}x${this.size.height}` }));
|
|
435
446
|
}
|
|
436
447
|
}
|
|
437
448
|
/**
|
|
@@ -346,8 +346,8 @@ declare const selectFieldConfigSchema: z.ZodIntersection<z.ZodUnion<readonly [z.
|
|
|
346
346
|
}, z.core.$strict>]>, z.ZodObject<{
|
|
347
347
|
type: z.ZodLiteral<"select">;
|
|
348
348
|
optionsType: z.ZodEnum<{
|
|
349
|
-
section: "section";
|
|
350
349
|
db: "db";
|
|
350
|
+
section: "section";
|
|
351
351
|
static: "static";
|
|
352
352
|
}>;
|
|
353
353
|
build: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodCustom<SelectField, SelectField>>;
|
|
@@ -119,6 +119,8 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
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
121
|
name: z.ZodString;
|
|
122
|
+
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
123
|
+
order: z.ZodNumber;
|
|
122
124
|
db: z.ZodObject<{
|
|
123
125
|
table: z.ZodString;
|
|
124
126
|
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
@@ -142,8 +144,6 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
142
144
|
name: z.ZodOptional<z.ZodString>;
|
|
143
145
|
}, z.core.$strict>>>;
|
|
144
146
|
}, z.core.$strict>;
|
|
145
|
-
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
146
|
-
order: z.ZodNumber;
|
|
147
147
|
icon: z.ZodOptional<z.ZodString>;
|
|
148
148
|
gallery: z.ZodOptional<z.ZodObject<{
|
|
149
149
|
db: z.ZodObject<{
|
|
@@ -156,7 +156,10 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
156
156
|
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
157
157
|
width: z.ZodNumber;
|
|
158
158
|
height: z.ZodNumber;
|
|
159
|
-
|
|
159
|
+
fit: z.ZodEnum<{
|
|
160
|
+
cover: "cover";
|
|
161
|
+
contain: "contain";
|
|
162
|
+
}>;
|
|
160
163
|
quality: z.ZodNumber;
|
|
161
164
|
}, z.core.$strict>>;
|
|
162
165
|
}, z.core.$strict>>;
|
|
@@ -216,6 +219,8 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
|
216
219
|
*/
|
|
217
220
|
allowRecursiveDelete: z.ZodOptional<z.ZodBoolean>;
|
|
218
221
|
name: z.ZodString;
|
|
222
|
+
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
223
|
+
order: z.ZodNumber;
|
|
219
224
|
db: z.ZodObject<{
|
|
220
225
|
table: z.ZodString;
|
|
221
226
|
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
@@ -239,8 +244,6 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
|
239
244
|
name: z.ZodOptional<z.ZodString>;
|
|
240
245
|
}, z.core.$strict>>>;
|
|
241
246
|
}, z.core.$strict>;
|
|
242
|
-
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
243
|
-
order: z.ZodNumber;
|
|
244
247
|
icon: z.ZodOptional<z.ZodString>;
|
|
245
248
|
gallery: z.ZodOptional<z.ZodObject<{
|
|
246
249
|
db: z.ZodObject<{
|
|
@@ -253,7 +256,10 @@ export declare const categorySectionConfigSchema: z.ZodObject<{
|
|
|
253
256
|
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
254
257
|
width: z.ZodNumber;
|
|
255
258
|
height: z.ZodNumber;
|
|
256
|
-
|
|
259
|
+
fit: z.ZodEnum<{
|
|
260
|
+
cover: "cover";
|
|
261
|
+
contain: "contain";
|
|
262
|
+
}>;
|
|
257
263
|
quality: z.ZodNumber;
|
|
258
264
|
}, z.core.$strict>>;
|
|
259
265
|
}, z.core.$strict>>;
|
|
@@ -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,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,EA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AAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE/E;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,qBAAqB,CAmDtF"}
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -418,6 +482,8 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
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
484
|
name: z.ZodString;
|
|
485
|
+
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
486
|
+
order: z.ZodNumber;
|
|
421
487
|
db: z.ZodObject<{
|
|
422
488
|
table: z.ZodString;
|
|
423
489
|
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
@@ -441,8 +507,6 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
441
507
|
name: z.ZodOptional<z.ZodString>;
|
|
442
508
|
}, z.core.$strict>>>;
|
|
443
509
|
}, z.core.$strict>;
|
|
444
|
-
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
445
|
-
order: z.ZodNumber;
|
|
446
510
|
icon: z.ZodOptional<z.ZodString>;
|
|
447
511
|
gallery: z.ZodOptional<z.ZodObject<{
|
|
448
512
|
db: z.ZodObject<{
|
|
@@ -455,7 +519,10 @@ declare const optionsSchema: z.ZodObject<{
|
|
|
455
519
|
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
456
520
|
width: z.ZodNumber;
|
|
457
521
|
height: z.ZodNumber;
|
|
458
|
-
|
|
522
|
+
fit: z.ZodEnum<{
|
|
523
|
+
cover: "cover";
|
|
524
|
+
contain: "contain";
|
|
525
|
+
}>;
|
|
459
526
|
quality: z.ZodNumber;
|
|
460
527
|
}, z.core.$strict>>;
|
|
461
528
|
}, z.core.$strict>>;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -659,6 +758,8 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
|
|
|
659
758
|
}>>;
|
|
660
759
|
generateQR: z.ZodOptional<z.ZodBoolean>;
|
|
661
760
|
name: z.ZodString;
|
|
761
|
+
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
762
|
+
order: z.ZodNumber;
|
|
662
763
|
db: z.ZodObject<{
|
|
663
764
|
table: z.ZodString;
|
|
664
765
|
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
@@ -682,8 +783,6 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
|
|
|
682
783
|
name: z.ZodOptional<z.ZodString>;
|
|
683
784
|
}, z.core.$strict>>>;
|
|
684
785
|
}, z.core.$strict>;
|
|
685
|
-
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
686
|
-
order: z.ZodNumber;
|
|
687
786
|
icon: z.ZodOptional<z.ZodString>;
|
|
688
787
|
gallery: z.ZodOptional<z.ZodObject<{
|
|
689
788
|
db: z.ZodObject<{
|
|
@@ -696,7 +795,10 @@ declare const hasItemsSectionConfigSchema: z.ZodObject<{
|
|
|
696
795
|
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
697
796
|
width: z.ZodNumber;
|
|
698
797
|
height: z.ZodNumber;
|
|
699
|
-
|
|
798
|
+
fit: z.ZodEnum<{
|
|
799
|
+
cover: "cover";
|
|
800
|
+
contain: "contain";
|
|
801
|
+
}>;
|
|
700
802
|
quality: z.ZodNumber;
|
|
701
803
|
}, z.core.$strict>>;
|
|
702
804
|
}, z.core.$strict>>;
|
|
@@ -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,EACH,OAAO,EAKV,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAA;AAGzE,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAExB,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"hasItems.d.ts","sourceRoot":"","sources":["../../../src/core/sections/hasItems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;GAWG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,qBAAqB,CA8DtF"}
|
|
@@ -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>>;
|
|
@@ -63,6 +66,8 @@ export declare const baseSectionOptionsSchema: z.ZodObject<{
|
|
|
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
68
|
name: z.ZodString;
|
|
69
|
+
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
70
|
+
order: z.ZodNumber;
|
|
66
71
|
db: z.ZodObject<{
|
|
67
72
|
table: z.ZodString;
|
|
68
73
|
identifier: z.ZodOptional<z.ZodCustom<FieldConfig, FieldConfig>>;
|
|
@@ -86,8 +91,6 @@ export declare const baseHelperFunctionOptionsSchema: z.ZodObject<{
|
|
|
86
91
|
name: z.ZodOptional<z.ZodString>;
|
|
87
92
|
}, z.core.$strict>>>;
|
|
88
93
|
}, z.core.$strict>;
|
|
89
|
-
readonly: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
90
|
-
order: z.ZodNumber;
|
|
91
94
|
icon: z.ZodOptional<z.ZodString>;
|
|
92
95
|
gallery: z.ZodOptional<z.ZodObject<{
|
|
93
96
|
db: z.ZodObject<{
|
|
@@ -100,7 +103,10 @@ export declare const baseHelperFunctionOptionsSchema: z.ZodObject<{
|
|
|
100
103
|
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
101
104
|
width: z.ZodNumber;
|
|
102
105
|
height: z.ZodNumber;
|
|
103
|
-
|
|
106
|
+
fit: z.ZodEnum<{
|
|
107
|
+
cover: "cover";
|
|
108
|
+
contain: "contain";
|
|
109
|
+
}>;
|
|
104
110
|
quality: z.ZodNumber;
|
|
105
111
|
}, z.core.$strict>>;
|
|
106
112
|
}, z.core.$strict>>;
|
|
@@ -208,7 +214,7 @@ export declare abstract class Section<TExtraSectionConfig extends object = objec
|
|
|
208
214
|
thumbnail?: {
|
|
209
215
|
width: number;
|
|
210
216
|
height: number;
|
|
211
|
-
|
|
217
|
+
fit: 'cover' | 'contain';
|
|
212
218
|
quality: number;
|
|
213
219
|
};
|
|
214
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,EA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