strapi-plugin-navigation 3.0.16 → 3.2.0

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.
Files changed (83) hide show
  1. package/README.md +52 -1
  2. package/dist/_chunks/ca-BQn7S09g.js +1 -0
  3. package/dist/_chunks/{ca-Jr1amAtF.mjs → ca-RyBP-sbV.mjs} +25 -3
  4. package/dist/_chunks/{en-DmeenfQT.mjs → en-DBw_pmms.mjs} +25 -3
  5. package/dist/_chunks/en-DO98mdcm.js +1 -0
  6. package/dist/_chunks/fr-CjFMUCWK.js +1 -0
  7. package/dist/_chunks/{fr-CZx3EMw8.mjs → fr-CnAHMC1C.mjs} +25 -3
  8. package/dist/admin/index.js +350 -363
  9. package/dist/admin/index.mjs +11193 -10887
  10. package/dist/admin/src/api/client.d.ts +15 -1
  11. package/dist/admin/src/api/validators.d.ts +137 -17
  12. package/dist/admin/src/pages/HomePage/components/NavigationContentHeader/ManageNavigationItems/index.d.ts +10 -0
  13. package/dist/admin/src/pages/HomePage/components/{Search → NavigationContentHeader/Search}/index.d.ts +1 -1
  14. package/dist/admin/src/pages/HomePage/components/NavigationEmptyState/index.d.ts +12 -0
  15. package/dist/admin/src/pages/HomePage/components/{AdditionalFieldInput → NavigationItemForm/components/AdditionalFields/AdditionalFieldInput}/index.d.ts +1 -1
  16. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/AudienceField/index.d.ts +1 -0
  17. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/CustomFieldsField/index.d.ts +7 -0
  18. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/index.d.ts +1 -0
  19. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AttachToMenuField/index.d.ts +7 -0
  20. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/CopyFromLocales/index.d.ts +12 -0
  21. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/NavigationItemTypeField/index.d.ts +1 -0
  22. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/PathField/index.d.ts +10 -0
  23. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/ReadFieldsFromRelatedField/index.d.ts +1 -0
  24. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedEntityField/hooks.d.ts +3 -0
  25. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedEntityField/index.d.ts +13 -0
  26. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedTypeField/index.d.ts +13 -0
  27. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/TitleField/index.d.ts +1 -0
  28. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/context/NavigationItemFormContext.d.ts +14 -0
  29. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/utils/form.d.ts +95 -6
  30. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/utils/hooks.d.ts +259 -0
  31. package/dist/admin/src/pages/HomePage/components/NavigationItemList/index.d.ts +2 -5
  32. package/dist/admin/src/pages/HomePage/components/NavigationItemListItem/index.d.ts +2 -0
  33. package/dist/admin/src/pages/HomePage/hooks/index.d.ts +7 -158
  34. package/dist/admin/src/pages/HomePage/hooks/useAPI.d.ts +162 -0
  35. package/dist/admin/src/pages/HomePage/hooks/useI18nCopyNavigationItemsModal.d.ts +8 -0
  36. package/dist/admin/src/pages/HomePage/hooks/useInvalidateQueries.d.ts +1 -0
  37. package/dist/admin/src/pages/HomePage/hooks/useLocales.d.ts +19 -0
  38. package/dist/admin/src/pages/HomePage/hooks/useNavigationItemPopup.d.ts +93 -0
  39. package/dist/admin/src/pages/HomePage/hooks/useSearch.d.ts +11 -0
  40. package/dist/admin/src/pages/HomePage/hooks/useSettingsPermissions.d.ts +5 -0
  41. package/dist/admin/src/pages/HomePage/utils/appendViewId.d.ts +2 -0
  42. package/dist/admin/src/pages/HomePage/utils/parsers.d.ts +1 -1
  43. package/dist/admin/src/pages/SettingsPage/common/const.d.ts +6 -0
  44. package/dist/admin/src/pages/SettingsPage/components/AdditionalSettingsPanel/index.d.ts +1 -0
  45. package/dist/admin/src/pages/SettingsPage/components/{CustomFieldForm → CustomFieldsPanel/CustomFieldForm}/index.d.ts +3 -3
  46. package/dist/admin/src/pages/SettingsPage/components/{CustomFieldModal → CustomFieldsPanel/CustomFieldModal}/index.d.ts +2 -2
  47. package/dist/admin/src/pages/SettingsPage/components/{CustomFieldTable → CustomFieldsPanel/CustomFieldTable}/index.d.ts +2 -2
  48. package/dist/admin/src/pages/SettingsPage/components/CustomFieldsPanel/index.d.ts +1 -0
  49. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/ContentTypesField/index.d.ts +1 -0
  50. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/ContentTypesSettings/index.d.ts +1 -0
  51. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/DefaultContentTypeField/index.d.ts +1 -0
  52. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/PreferCustomContentTypeField/index.d.ts +1 -0
  53. package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/index.d.ts +1 -0
  54. package/dist/admin/src/pages/SettingsPage/components/RestartPanel/index.d.ts +6 -0
  55. package/dist/admin/src/pages/SettingsPage/components/RestorePanel/index.d.ts +6 -0
  56. package/dist/admin/src/pages/SettingsPage/context/index.d.ts +15 -0
  57. package/dist/admin/src/pages/SettingsPage/hooks/index.d.ts +2 -366
  58. package/dist/admin/src/pages/SettingsPage/hooks/useAPI.d.ts +131 -0
  59. package/dist/admin/src/pages/SettingsPage/hooks/useInitialConfig.d.ts +8 -0
  60. package/dist/admin/src/pages/SettingsPage/schemas/index.d.ts +282 -0
  61. package/dist/admin/src/schemas/config.d.ts +96 -3
  62. package/dist/admin/src/translations/ca.d.ts +22 -0
  63. package/dist/admin/src/translations/en.d.ts +22 -0
  64. package/dist/admin/src/translations/es.d.ts +22 -0
  65. package/dist/admin/src/translations/fr.d.ts +22 -0
  66. package/dist/admin/src/translations/tr.d.ts +22 -0
  67. package/dist/server/index.js +35 -35
  68. package/dist/server/index.mjs +3489 -3603
  69. package/dist/server/src/config/index.d.ts +1 -0
  70. package/dist/server/src/config/setup.d.ts +7 -0
  71. package/dist/server/src/controllers/admin.d.ts +882 -2
  72. package/dist/server/src/controllers/client.d.ts +12 -0
  73. package/dist/server/src/controllers/validators.d.ts +2 -2
  74. package/dist/server/src/index.d.ts +893 -0
  75. package/dist/server/src/schemas/config.d.ts +96 -3
  76. package/dist/server/src/schemas/index.d.ts +1305 -2
  77. package/dist/server/src/services/admin/admin.d.ts +1 -0
  78. package/dist/server/src/services/common/common.d.ts +865 -0
  79. package/dist/server/src/services/index.d.ts +891 -0
  80. package/package.json +9 -2
  81. package/dist/_chunks/ca-Gq9Ty_aG.js +0 -1
  82. package/dist/_chunks/en-BP5RWE-N.js +0 -1
  83. package/dist/_chunks/fr-BIJn6QmK.js +0 -1
@@ -24,7 +24,7 @@ declare const navigationItemBaseSchema: z.ZodObject<{
24
24
  documentId: z.ZodString;
25
25
  title: z.ZodString;
26
26
  type: z.ZodEnum<["INTERNAL", "EXTERNAL", "WRAPPER"]>;
27
- path: z.ZodString;
27
+ path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
28
28
  externalPath: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
29
29
  uiRouterKey: z.ZodString;
30
30
  menuAttached: z.ZodBoolean;
@@ -68,12 +68,12 @@ declare const navigationItemBaseSchema: z.ZodObject<{
68
68
  id: number;
69
69
  type: "INTERNAL" | "EXTERNAL" | "WRAPPER";
70
70
  order: number;
71
- path: string;
72
71
  title: string;
73
72
  documentId: string;
74
73
  uiRouterKey: string;
75
74
  menuAttached: boolean;
76
75
  collapsed: boolean;
76
+ path?: string | null | undefined;
77
77
  additionalFields?: Record<string, unknown> | null | undefined;
78
78
  audience?: {
79
79
  id: number;
@@ -97,12 +97,12 @@ declare const navigationItemBaseSchema: z.ZodObject<{
97
97
  id: number;
98
98
  type: "INTERNAL" | "EXTERNAL" | "WRAPPER";
99
99
  order: number;
100
- path: string;
101
100
  title: string;
102
101
  documentId: string;
103
102
  uiRouterKey: string;
104
103
  menuAttached: boolean;
105
104
  collapsed: boolean;
105
+ path?: string | null | undefined;
106
106
  additionalFields?: Record<string, unknown> | null | undefined;
107
107
  audience?: {
108
108
  id: number;
@@ -157,6 +157,8 @@ export type NavigationItemCustomFieldSelect = z.infer<typeof navigationItemCusto
157
157
  declare const navigationItemCustomFieldSelect: z.ZodObject<{
158
158
  name: z.ZodEffects<z.ZodString, string, string>;
159
159
  label: z.ZodString;
160
+ description: z.ZodOptional<z.ZodString>;
161
+ placeholder: z.ZodOptional<z.ZodString>;
160
162
  required: z.ZodOptional<z.ZodBoolean>;
161
163
  enabled: z.ZodOptional<z.ZodBoolean>;
162
164
  } & {
@@ -169,7 +171,9 @@ declare const navigationItemCustomFieldSelect: z.ZodObject<{
169
171
  label: string;
170
172
  options: string[];
171
173
  multi: boolean;
174
+ placeholder?: string | undefined;
172
175
  required?: boolean | undefined;
176
+ description?: string | undefined;
173
177
  enabled?: boolean | undefined;
174
178
  }, {
175
179
  name: string;
@@ -177,13 +181,17 @@ declare const navigationItemCustomFieldSelect: z.ZodObject<{
177
181
  label: string;
178
182
  options: string[];
179
183
  multi: boolean;
184
+ placeholder?: string | undefined;
180
185
  required?: boolean | undefined;
186
+ description?: string | undefined;
181
187
  enabled?: boolean | undefined;
182
188
  }>;
183
189
  export type NavigationItemCustomFieldPrimitive = z.infer<typeof navigationItemCustomFieldPrimitive>;
184
190
  declare const navigationItemCustomFieldPrimitive: z.ZodObject<{
185
191
  name: z.ZodEffects<z.ZodString, string, string>;
186
192
  label: z.ZodString;
193
+ description: z.ZodOptional<z.ZodString>;
194
+ placeholder: z.ZodOptional<z.ZodString>;
187
195
  required: z.ZodOptional<z.ZodBoolean>;
188
196
  enabled: z.ZodOptional<z.ZodBoolean>;
189
197
  } & {
@@ -194,16 +202,20 @@ declare const navigationItemCustomFieldPrimitive: z.ZodObject<{
194
202
  name: string;
195
203
  type: "string" | "boolean";
196
204
  label: string;
205
+ placeholder?: string | undefined;
197
206
  required?: boolean | undefined;
198
207
  options?: string[] | undefined;
208
+ description?: string | undefined;
199
209
  enabled?: boolean | undefined;
200
210
  multi?: false | undefined;
201
211
  }, {
202
212
  name: string;
203
213
  type: "string" | "boolean";
204
214
  label: string;
215
+ placeholder?: string | undefined;
205
216
  required?: boolean | undefined;
206
217
  options?: string[] | undefined;
218
+ description?: string | undefined;
207
219
  enabled?: boolean | undefined;
208
220
  multi?: false | undefined;
209
221
  }>;
@@ -211,6 +223,8 @@ export type NavigationItemCustomFieldMedia = z.infer<typeof navigationItemCustom
211
223
  declare const navigationItemCustomFieldMedia: z.ZodObject<{
212
224
  name: z.ZodEffects<z.ZodString, string, string>;
213
225
  label: z.ZodString;
226
+ description: z.ZodOptional<z.ZodString>;
227
+ placeholder: z.ZodOptional<z.ZodString>;
214
228
  required: z.ZodOptional<z.ZodBoolean>;
215
229
  enabled: z.ZodOptional<z.ZodBoolean>;
216
230
  } & {
@@ -221,23 +235,29 @@ declare const navigationItemCustomFieldMedia: z.ZodObject<{
221
235
  name: string;
222
236
  type: "media";
223
237
  label: string;
238
+ placeholder?: string | undefined;
224
239
  required?: boolean | undefined;
225
240
  options?: string[] | undefined;
241
+ description?: string | undefined;
226
242
  enabled?: boolean | undefined;
227
243
  multi?: false | undefined;
228
244
  }, {
229
245
  name: string;
230
246
  type: "media";
231
247
  label: string;
248
+ placeholder?: string | undefined;
232
249
  required?: boolean | undefined;
233
250
  options?: string[] | undefined;
251
+ description?: string | undefined;
234
252
  enabled?: boolean | undefined;
235
253
  multi?: false | undefined;
236
254
  }>;
237
255
  export type NavigationItemCustomField = z.infer<typeof navigationItemCustomField>;
238
- export declare const navigationItemCustomField: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
256
+ export declare const navigationItemCustomField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
239
257
  name: z.ZodEffects<z.ZodString, string, string>;
240
258
  label: z.ZodString;
259
+ description: z.ZodOptional<z.ZodString>;
260
+ placeholder: z.ZodOptional<z.ZodString>;
241
261
  required: z.ZodOptional<z.ZodBoolean>;
242
262
  enabled: z.ZodOptional<z.ZodBoolean>;
243
263
  } & {
@@ -248,21 +268,27 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodUnion<[z.ZodObj
248
268
  name: string;
249
269
  type: "string" | "boolean";
250
270
  label: string;
271
+ placeholder?: string | undefined;
251
272
  required?: boolean | undefined;
252
273
  options?: string[] | undefined;
274
+ description?: string | undefined;
253
275
  enabled?: boolean | undefined;
254
276
  multi?: false | undefined;
255
277
  }, {
256
278
  name: string;
257
279
  type: "string" | "boolean";
258
280
  label: string;
281
+ placeholder?: string | undefined;
259
282
  required?: boolean | undefined;
260
283
  options?: string[] | undefined;
284
+ description?: string | undefined;
261
285
  enabled?: boolean | undefined;
262
286
  multi?: false | undefined;
263
287
  }>, z.ZodObject<{
264
288
  name: z.ZodEffects<z.ZodString, string, string>;
265
289
  label: z.ZodString;
290
+ description: z.ZodOptional<z.ZodString>;
291
+ placeholder: z.ZodOptional<z.ZodString>;
266
292
  required: z.ZodOptional<z.ZodBoolean>;
267
293
  enabled: z.ZodOptional<z.ZodBoolean>;
268
294
  } & {
@@ -273,21 +299,27 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodUnion<[z.ZodObj
273
299
  name: string;
274
300
  type: "media";
275
301
  label: string;
302
+ placeholder?: string | undefined;
276
303
  required?: boolean | undefined;
277
304
  options?: string[] | undefined;
305
+ description?: string | undefined;
278
306
  enabled?: boolean | undefined;
279
307
  multi?: false | undefined;
280
308
  }, {
281
309
  name: string;
282
310
  type: "media";
283
311
  label: string;
312
+ placeholder?: string | undefined;
284
313
  required?: boolean | undefined;
285
314
  options?: string[] | undefined;
315
+ description?: string | undefined;
286
316
  enabled?: boolean | undefined;
287
317
  multi?: false | undefined;
288
- }>]>, z.ZodObject<{
318
+ }>, z.ZodObject<{
289
319
  name: z.ZodEffects<z.ZodString, string, string>;
290
320
  label: z.ZodString;
321
+ description: z.ZodOptional<z.ZodString>;
322
+ placeholder: z.ZodOptional<z.ZodString>;
291
323
  required: z.ZodOptional<z.ZodBoolean>;
292
324
  enabled: z.ZodOptional<z.ZodBoolean>;
293
325
  } & {
@@ -300,7 +332,9 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodUnion<[z.ZodObj
300
332
  label: string;
301
333
  options: string[];
302
334
  multi: boolean;
335
+ placeholder?: string | undefined;
303
336
  required?: boolean | undefined;
337
+ description?: string | undefined;
304
338
  enabled?: boolean | undefined;
305
339
  }, {
306
340
  name: string;
@@ -308,13 +342,17 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodUnion<[z.ZodObj
308
342
  label: string;
309
343
  options: string[];
310
344
  multi: boolean;
345
+ placeholder?: string | undefined;
311
346
  required?: boolean | undefined;
347
+ description?: string | undefined;
312
348
  enabled?: boolean | undefined;
313
349
  }>]>;
314
350
  export type NavigationItemAdditionalField = z.infer<typeof navigationItemAdditionalField>;
315
- export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
351
+ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
316
352
  name: z.ZodEffects<z.ZodString, string, string>;
317
353
  label: z.ZodString;
354
+ description: z.ZodOptional<z.ZodString>;
355
+ placeholder: z.ZodOptional<z.ZodString>;
318
356
  required: z.ZodOptional<z.ZodBoolean>;
319
357
  enabled: z.ZodOptional<z.ZodBoolean>;
320
358
  } & {
@@ -325,21 +363,27 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
325
363
  name: string;
326
364
  type: "string" | "boolean";
327
365
  label: string;
366
+ placeholder?: string | undefined;
328
367
  required?: boolean | undefined;
329
368
  options?: string[] | undefined;
369
+ description?: string | undefined;
330
370
  enabled?: boolean | undefined;
331
371
  multi?: false | undefined;
332
372
  }, {
333
373
  name: string;
334
374
  type: "string" | "boolean";
335
375
  label: string;
376
+ placeholder?: string | undefined;
336
377
  required?: boolean | undefined;
337
378
  options?: string[] | undefined;
379
+ description?: string | undefined;
338
380
  enabled?: boolean | undefined;
339
381
  multi?: false | undefined;
340
382
  }>, z.ZodObject<{
341
383
  name: z.ZodEffects<z.ZodString, string, string>;
342
384
  label: z.ZodString;
385
+ description: z.ZodOptional<z.ZodString>;
386
+ placeholder: z.ZodOptional<z.ZodString>;
343
387
  required: z.ZodOptional<z.ZodBoolean>;
344
388
  enabled: z.ZodOptional<z.ZodBoolean>;
345
389
  } & {
@@ -350,21 +394,27 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
350
394
  name: string;
351
395
  type: "media";
352
396
  label: string;
397
+ placeholder?: string | undefined;
353
398
  required?: boolean | undefined;
354
399
  options?: string[] | undefined;
400
+ description?: string | undefined;
355
401
  enabled?: boolean | undefined;
356
402
  multi?: false | undefined;
357
403
  }, {
358
404
  name: string;
359
405
  type: "media";
360
406
  label: string;
407
+ placeholder?: string | undefined;
361
408
  required?: boolean | undefined;
362
409
  options?: string[] | undefined;
410
+ description?: string | undefined;
363
411
  enabled?: boolean | undefined;
364
412
  multi?: false | undefined;
365
- }>]>, z.ZodObject<{
413
+ }>, z.ZodObject<{
366
414
  name: z.ZodEffects<z.ZodString, string, string>;
367
415
  label: z.ZodString;
416
+ description: z.ZodOptional<z.ZodString>;
417
+ placeholder: z.ZodOptional<z.ZodString>;
368
418
  required: z.ZodOptional<z.ZodBoolean>;
369
419
  enabled: z.ZodOptional<z.ZodBoolean>;
370
420
  } & {
@@ -377,7 +427,9 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
377
427
  label: string;
378
428
  options: string[];
379
429
  multi: boolean;
430
+ placeholder?: string | undefined;
380
431
  required?: boolean | undefined;
432
+ description?: string | undefined;
381
433
  enabled?: boolean | undefined;
382
434
  }, {
383
435
  name: string;
@@ -385,7 +437,9 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
385
437
  label: string;
386
438
  options: string[];
387
439
  multi: boolean;
440
+ placeholder?: string | undefined;
388
441
  required?: boolean | undefined;
442
+ description?: string | undefined;
389
443
  enabled?: boolean | undefined;
390
444
  }>]>]>;
391
445
  export declare const configContentTypeSchema: z.ZodObject<{
@@ -404,11 +458,11 @@ export declare const configContentTypeSchema: z.ZodObject<{
404
458
  }, "strip", z.ZodTypeAny, {
405
459
  name: string;
406
460
  label: string;
461
+ description: string;
407
462
  visible: boolean;
408
463
  uid: string;
409
464
  draftAndPublish: boolean;
410
465
  isSingle: boolean;
411
- description: string;
412
466
  collectionName: string;
413
467
  contentTypeName: string;
414
468
  labelSingular: string;
@@ -417,11 +471,11 @@ export declare const configContentTypeSchema: z.ZodObject<{
417
471
  }, {
418
472
  name: string;
419
473
  label: string;
474
+ description: string;
420
475
  visible: boolean;
421
476
  uid: string;
422
477
  draftAndPublish: boolean;
423
478
  isSingle: boolean;
424
- description: string;
425
479
  collectionName: string;
426
480
  contentTypeName: string;
427
481
  labelSingular: string;
@@ -429,9 +483,11 @@ export declare const configContentTypeSchema: z.ZodObject<{
429
483
  available: boolean;
430
484
  }>;
431
485
  export declare const configSchema: z.ZodObject<{
432
- additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
486
+ additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
433
487
  name: z.ZodEffects<z.ZodString, string, string>;
434
488
  label: z.ZodString;
489
+ description: z.ZodOptional<z.ZodString>;
490
+ placeholder: z.ZodOptional<z.ZodString>;
435
491
  required: z.ZodOptional<z.ZodBoolean>;
436
492
  enabled: z.ZodOptional<z.ZodBoolean>;
437
493
  } & {
@@ -442,21 +498,27 @@ export declare const configSchema: z.ZodObject<{
442
498
  name: string;
443
499
  type: "string" | "boolean";
444
500
  label: string;
501
+ placeholder?: string | undefined;
445
502
  required?: boolean | undefined;
446
503
  options?: string[] | undefined;
504
+ description?: string | undefined;
447
505
  enabled?: boolean | undefined;
448
506
  multi?: false | undefined;
449
507
  }, {
450
508
  name: string;
451
509
  type: "string" | "boolean";
452
510
  label: string;
511
+ placeholder?: string | undefined;
453
512
  required?: boolean | undefined;
454
513
  options?: string[] | undefined;
514
+ description?: string | undefined;
455
515
  enabled?: boolean | undefined;
456
516
  multi?: false | undefined;
457
517
  }>, z.ZodObject<{
458
518
  name: z.ZodEffects<z.ZodString, string, string>;
459
519
  label: z.ZodString;
520
+ description: z.ZodOptional<z.ZodString>;
521
+ placeholder: z.ZodOptional<z.ZodString>;
460
522
  required: z.ZodOptional<z.ZodBoolean>;
461
523
  enabled: z.ZodOptional<z.ZodBoolean>;
462
524
  } & {
@@ -467,21 +529,27 @@ export declare const configSchema: z.ZodObject<{
467
529
  name: string;
468
530
  type: "media";
469
531
  label: string;
532
+ placeholder?: string | undefined;
470
533
  required?: boolean | undefined;
471
534
  options?: string[] | undefined;
535
+ description?: string | undefined;
472
536
  enabled?: boolean | undefined;
473
537
  multi?: false | undefined;
474
538
  }, {
475
539
  name: string;
476
540
  type: "media";
477
541
  label: string;
542
+ placeholder?: string | undefined;
478
543
  required?: boolean | undefined;
479
544
  options?: string[] | undefined;
545
+ description?: string | undefined;
480
546
  enabled?: boolean | undefined;
481
547
  multi?: false | undefined;
482
- }>]>, z.ZodObject<{
548
+ }>, z.ZodObject<{
483
549
  name: z.ZodEffects<z.ZodString, string, string>;
484
550
  label: z.ZodString;
551
+ description: z.ZodOptional<z.ZodString>;
552
+ placeholder: z.ZodOptional<z.ZodString>;
485
553
  required: z.ZodOptional<z.ZodBoolean>;
486
554
  enabled: z.ZodOptional<z.ZodBoolean>;
487
555
  } & {
@@ -494,7 +562,9 @@ export declare const configSchema: z.ZodObject<{
494
562
  label: string;
495
563
  options: string[];
496
564
  multi: boolean;
565
+ placeholder?: string | undefined;
497
566
  required?: boolean | undefined;
567
+ description?: string | undefined;
498
568
  enabled?: boolean | undefined;
499
569
  }, {
500
570
  name: string;
@@ -502,7 +572,9 @@ export declare const configSchema: z.ZodObject<{
502
572
  label: string;
503
573
  options: string[];
504
574
  multi: boolean;
575
+ placeholder?: string | undefined;
505
576
  required?: boolean | undefined;
577
+ description?: string | undefined;
506
578
  enabled?: boolean | undefined;
507
579
  }>]>]>, "many">;
508
580
  allowedLevels: z.ZodNumber;
@@ -523,6 +595,7 @@ export declare const configSchema: z.ZodObject<{
523
595
  documentId: string;
524
596
  }>, "many">;
525
597
  contentTypes: z.ZodArray<z.ZodString, "many">;
598
+ defaultContentType: z.ZodOptional<z.ZodString>;
526
599
  contentTypesNameFields: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
527
600
  contentTypesPopulate: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
528
601
  gql: z.ZodObject<{
@@ -544,16 +617,20 @@ export declare const configSchema: z.ZodObject<{
544
617
  name: string;
545
618
  type: "string" | "boolean";
546
619
  label: string;
620
+ placeholder?: string | undefined;
547
621
  required?: boolean | undefined;
548
622
  options?: string[] | undefined;
623
+ description?: string | undefined;
549
624
  enabled?: boolean | undefined;
550
625
  multi?: false | undefined;
551
626
  } | {
552
627
  name: string;
553
628
  type: "media";
554
629
  label: string;
630
+ placeholder?: string | undefined;
555
631
  required?: boolean | undefined;
556
632
  options?: string[] | undefined;
633
+ description?: string | undefined;
557
634
  enabled?: boolean | undefined;
558
635
  multi?: false | undefined;
559
636
  } | {
@@ -562,7 +639,9 @@ export declare const configSchema: z.ZodObject<{
562
639
  label: string;
563
640
  options: string[];
564
641
  multi: boolean;
642
+ placeholder?: string | undefined;
565
643
  required?: boolean | undefined;
644
+ description?: string | undefined;
566
645
  enabled?: boolean | undefined;
567
646
  })[];
568
647
  allowedLevels: number;
@@ -583,6 +662,7 @@ export declare const configSchema: z.ZodObject<{
583
662
  preferCustomContentTypes: boolean;
584
663
  allowedContentTypes: string[];
585
664
  restrictedContentTypes: string[];
665
+ defaultContentType?: string | undefined;
586
666
  isCacheEnabled?: boolean | undefined;
587
667
  isCachePluginEnabled?: boolean | undefined;
588
668
  }, {
@@ -590,16 +670,20 @@ export declare const configSchema: z.ZodObject<{
590
670
  name: string;
591
671
  type: "string" | "boolean";
592
672
  label: string;
673
+ placeholder?: string | undefined;
593
674
  required?: boolean | undefined;
594
675
  options?: string[] | undefined;
676
+ description?: string | undefined;
595
677
  enabled?: boolean | undefined;
596
678
  multi?: false | undefined;
597
679
  } | {
598
680
  name: string;
599
681
  type: "media";
600
682
  label: string;
683
+ placeholder?: string | undefined;
601
684
  required?: boolean | undefined;
602
685
  options?: string[] | undefined;
686
+ description?: string | undefined;
603
687
  enabled?: boolean | undefined;
604
688
  multi?: false | undefined;
605
689
  } | {
@@ -608,7 +692,9 @@ export declare const configSchema: z.ZodObject<{
608
692
  label: string;
609
693
  options: string[];
610
694
  multi: boolean;
695
+ placeholder?: string | undefined;
611
696
  required?: boolean | undefined;
697
+ description?: string | undefined;
612
698
  enabled?: boolean | undefined;
613
699
  })[];
614
700
  allowedLevels: number;
@@ -629,14 +715,17 @@ export declare const configSchema: z.ZodObject<{
629
715
  preferCustomContentTypes: boolean;
630
716
  allowedContentTypes: string[];
631
717
  restrictedContentTypes: string[];
718
+ defaultContentType?: string | undefined;
632
719
  isCacheEnabled?: boolean | undefined;
633
720
  isCachePluginEnabled?: boolean | undefined;
634
721
  }>;
635
722
  export type ConfigFromServerSchema = z.infer<typeof configFromServerSchema>;
636
723
  export declare const configFromServerSchema: z.ZodObject<Omit<{
637
- additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
724
+ additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
638
725
  name: z.ZodEffects<z.ZodString, string, string>;
639
726
  label: z.ZodString;
727
+ description: z.ZodOptional<z.ZodString>;
728
+ placeholder: z.ZodOptional<z.ZodString>;
640
729
  required: z.ZodOptional<z.ZodBoolean>;
641
730
  enabled: z.ZodOptional<z.ZodBoolean>;
642
731
  } & {
@@ -647,21 +736,27 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
647
736
  name: string;
648
737
  type: "string" | "boolean";
649
738
  label: string;
739
+ placeholder?: string | undefined;
650
740
  required?: boolean | undefined;
651
741
  options?: string[] | undefined;
742
+ description?: string | undefined;
652
743
  enabled?: boolean | undefined;
653
744
  multi?: false | undefined;
654
745
  }, {
655
746
  name: string;
656
747
  type: "string" | "boolean";
657
748
  label: string;
749
+ placeholder?: string | undefined;
658
750
  required?: boolean | undefined;
659
751
  options?: string[] | undefined;
752
+ description?: string | undefined;
660
753
  enabled?: boolean | undefined;
661
754
  multi?: false | undefined;
662
755
  }>, z.ZodObject<{
663
756
  name: z.ZodEffects<z.ZodString, string, string>;
664
757
  label: z.ZodString;
758
+ description: z.ZodOptional<z.ZodString>;
759
+ placeholder: z.ZodOptional<z.ZodString>;
665
760
  required: z.ZodOptional<z.ZodBoolean>;
666
761
  enabled: z.ZodOptional<z.ZodBoolean>;
667
762
  } & {
@@ -672,21 +767,27 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
672
767
  name: string;
673
768
  type: "media";
674
769
  label: string;
770
+ placeholder?: string | undefined;
675
771
  required?: boolean | undefined;
676
772
  options?: string[] | undefined;
773
+ description?: string | undefined;
677
774
  enabled?: boolean | undefined;
678
775
  multi?: false | undefined;
679
776
  }, {
680
777
  name: string;
681
778
  type: "media";
682
779
  label: string;
780
+ placeholder?: string | undefined;
683
781
  required?: boolean | undefined;
684
782
  options?: string[] | undefined;
783
+ description?: string | undefined;
685
784
  enabled?: boolean | undefined;
686
785
  multi?: false | undefined;
687
- }>]>, z.ZodObject<{
786
+ }>, z.ZodObject<{
688
787
  name: z.ZodEffects<z.ZodString, string, string>;
689
788
  label: z.ZodString;
789
+ description: z.ZodOptional<z.ZodString>;
790
+ placeholder: z.ZodOptional<z.ZodString>;
690
791
  required: z.ZodOptional<z.ZodBoolean>;
691
792
  enabled: z.ZodOptional<z.ZodBoolean>;
692
793
  } & {
@@ -699,7 +800,9 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
699
800
  label: string;
700
801
  options: string[];
701
802
  multi: boolean;
803
+ placeholder?: string | undefined;
702
804
  required?: boolean | undefined;
805
+ description?: string | undefined;
703
806
  enabled?: boolean | undefined;
704
807
  }, {
705
808
  name: string;
@@ -707,7 +810,9 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
707
810
  label: string;
708
811
  options: string[];
709
812
  multi: boolean;
813
+ placeholder?: string | undefined;
710
814
  required?: boolean | undefined;
815
+ description?: string | undefined;
711
816
  enabled?: boolean | undefined;
712
817
  }>]>]>, "many">;
713
818
  allowedLevels: z.ZodNumber;
@@ -728,6 +833,7 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
728
833
  documentId: string;
729
834
  }>, "many">;
730
835
  contentTypes: z.ZodArray<z.ZodString, "many">;
836
+ defaultContentType: z.ZodOptional<z.ZodString>;
731
837
  contentTypesNameFields: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
732
838
  contentTypesPopulate: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
733
839
  gql: z.ZodObject<{
@@ -761,11 +867,11 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
761
867
  }, "strip", z.ZodTypeAny, {
762
868
  name: string;
763
869
  label: string;
870
+ description: string;
764
871
  visible: boolean;
765
872
  uid: string;
766
873
  draftAndPublish: boolean;
767
874
  isSingle: boolean;
768
- description: string;
769
875
  collectionName: string;
770
876
  contentTypeName: string;
771
877
  labelSingular: string;
@@ -774,11 +880,11 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
774
880
  }, {
775
881
  name: string;
776
882
  label: string;
883
+ description: string;
777
884
  visible: boolean;
778
885
  uid: string;
779
886
  draftAndPublish: boolean;
780
887
  isSingle: boolean;
781
- description: string;
782
888
  collectionName: string;
783
889
  contentTypeName: string;
784
890
  labelSingular: string;
@@ -790,16 +896,20 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
790
896
  name: string;
791
897
  type: "string" | "boolean";
792
898
  label: string;
899
+ placeholder?: string | undefined;
793
900
  required?: boolean | undefined;
794
901
  options?: string[] | undefined;
902
+ description?: string | undefined;
795
903
  enabled?: boolean | undefined;
796
904
  multi?: false | undefined;
797
905
  } | {
798
906
  name: string;
799
907
  type: "media";
800
908
  label: string;
909
+ placeholder?: string | undefined;
801
910
  required?: boolean | undefined;
802
911
  options?: string[] | undefined;
912
+ description?: string | undefined;
803
913
  enabled?: boolean | undefined;
804
914
  multi?: false | undefined;
805
915
  } | {
@@ -808,7 +918,9 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
808
918
  label: string;
809
919
  options: string[];
810
920
  multi: boolean;
921
+ placeholder?: string | undefined;
811
922
  required?: boolean | undefined;
923
+ description?: string | undefined;
812
924
  enabled?: boolean | undefined;
813
925
  })[];
814
926
  allowedLevels: number;
@@ -821,11 +933,11 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
821
933
  contentTypes: {
822
934
  name: string;
823
935
  label: string;
936
+ description: string;
824
937
  visible: boolean;
825
938
  uid: string;
826
939
  draftAndPublish: boolean;
827
940
  isSingle: boolean;
828
- description: string;
829
941
  collectionName: string;
830
942
  contentTypeName: string;
831
943
  labelSingular: string;
@@ -842,6 +954,7 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
842
954
  preferCustomContentTypes: boolean;
843
955
  allowedContentTypes: string[];
844
956
  restrictedContentTypes: string[];
957
+ defaultContentType?: string | undefined;
845
958
  isCacheEnabled?: boolean | undefined;
846
959
  isCachePluginEnabled?: boolean | undefined;
847
960
  }, {
@@ -849,16 +962,20 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
849
962
  name: string;
850
963
  type: "string" | "boolean";
851
964
  label: string;
965
+ placeholder?: string | undefined;
852
966
  required?: boolean | undefined;
853
967
  options?: string[] | undefined;
968
+ description?: string | undefined;
854
969
  enabled?: boolean | undefined;
855
970
  multi?: false | undefined;
856
971
  } | {
857
972
  name: string;
858
973
  type: "media";
859
974
  label: string;
975
+ placeholder?: string | undefined;
860
976
  required?: boolean | undefined;
861
977
  options?: string[] | undefined;
978
+ description?: string | undefined;
862
979
  enabled?: boolean | undefined;
863
980
  multi?: false | undefined;
864
981
  } | {
@@ -867,7 +984,9 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
867
984
  label: string;
868
985
  options: string[];
869
986
  multi: boolean;
987
+ placeholder?: string | undefined;
870
988
  required?: boolean | undefined;
989
+ description?: string | undefined;
871
990
  enabled?: boolean | undefined;
872
991
  })[];
873
992
  allowedLevels: number;
@@ -880,11 +999,11 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
880
999
  contentTypes: {
881
1000
  name: string;
882
1001
  label: string;
1002
+ description: string;
883
1003
  visible: boolean;
884
1004
  uid: string;
885
1005
  draftAndPublish: boolean;
886
1006
  isSingle: boolean;
887
- description: string;
888
1007
  collectionName: string;
889
1008
  contentTypeName: string;
890
1009
  labelSingular: string;
@@ -901,6 +1020,7 @@ export declare const configFromServerSchema: z.ZodObject<Omit<{
901
1020
  preferCustomContentTypes: boolean;
902
1021
  allowedContentTypes: string[];
903
1022
  restrictedContentTypes: string[];
1023
+ defaultContentType?: string | undefined;
904
1024
  isCacheEnabled?: boolean | undefined;
905
1025
  isCachePluginEnabled?: boolean | undefined;
906
1026
  }>;