strapi-plugin-navigation 3.0.11 → 3.0.12-beta.1

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 (24) hide show
  1. package/dist/_chunks/{fr-DDKFueED.mjs → fr-B3UeLLGy.mjs} +42 -42
  2. package/dist/_chunks/fr-BjVniZne.js +1 -0
  3. package/dist/admin/index.js +2231 -44
  4. package/dist/admin/index.mjs +36912 -2763
  5. package/dist/admin/src/api/client.d.ts +9 -1
  6. package/dist/admin/src/api/validators.d.ts +72 -72
  7. package/dist/admin/src/components/RestartAlert/index.d.ts +1 -1
  8. package/dist/admin/src/pages/HomePage/components/NavigationHeader/styles.d.ts +1 -1
  9. package/dist/admin/src/pages/HomePage/components/NavigationItemForm/utils/form.d.ts +9 -9
  10. package/dist/admin/src/pages/HomePage/components/NavigationItemList/Wrapper.d.ts +2 -2
  11. package/dist/admin/src/pages/HomePage/components/NavigationItemListItem/ItemCardBadge/index.d.ts +1 -1
  12. package/dist/admin/src/pages/HomePage/components/NavigationItemListItem/ItemCardHeader/Wrapper.d.ts +1 -1
  13. package/dist/admin/src/pages/HomePage/components/NavigationItemListItem/ItemCardRemovedOverlay/index.d.ts +1 -1
  14. package/dist/admin/src/pages/HomePage/components/NavigationItemListItem/Wrapper.d.ts +2 -2
  15. package/dist/admin/src/pages/HomePage/hooks/index.d.ts +10 -2
  16. package/dist/admin/src/pages/SettingsPage/hooks/index.d.ts +12 -15
  17. package/dist/admin/src/schemas/config.d.ts +36 -36
  18. package/dist/server/index.js +44 -44
  19. package/dist/server/index.mjs +7107 -7438
  20. package/dist/server/src/schemas/config.d.ts +36 -36
  21. package/dist/server/src/schemas/content-type.d.ts +24 -24
  22. package/dist/server/src/schemas/navigation.d.ts +6 -6
  23. package/package.json +15 -18
  24. package/dist/_chunks/fr-DyX_S7LN.js +0 -1
@@ -15,7 +15,15 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
15
15
  readAllIndex(): string[];
16
16
  delete(documentId: string): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
17
17
  create(body: Omit<NavigationSchema, 'documentId' | 'id' | 'slug'>): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
18
- update(body: NavigationSchema): Promise<import("@strapi/strapi/admin").FetchResponse<any>>;
18
+ update(body: NavigationSchema): Promise<{
19
+ id: number;
20
+ name: string;
21
+ documentId: string;
22
+ items: import("./validators").NavigationItemSchema[];
23
+ slug: string;
24
+ locale: string;
25
+ visible: boolean;
26
+ }>;
19
27
  purge({ documentId, withLangVersions }: {
20
28
  documentId?: string;
21
29
  withLangVersions?: boolean;
@@ -154,16 +154,16 @@ export declare const navigationSchema: z.ZodObject<{
154
154
  visible: boolean;
155
155
  }>;
156
156
  export type NavigationItemCustomFieldSelect = z.infer<typeof navigationItemCustomFieldSelect>;
157
- declare const navigationItemCustomFieldSelect: z.ZodObject<z.objectUtil.extendShape<{
157
+ declare const navigationItemCustomFieldSelect: z.ZodObject<{
158
158
  name: z.ZodEffects<z.ZodString, string, string>;
159
159
  label: z.ZodString;
160
160
  required: z.ZodOptional<z.ZodBoolean>;
161
161
  enabled: z.ZodOptional<z.ZodBoolean>;
162
- }, {
162
+ } & {
163
163
  type: z.ZodLiteral<"select">;
164
164
  multi: z.ZodBoolean;
165
165
  options: z.ZodArray<z.ZodString, "many">;
166
- }>, "strip", z.ZodTypeAny, {
166
+ }, "strip", z.ZodTypeAny, {
167
167
  name: string;
168
168
  type: "select";
169
169
  label: string;
@@ -181,16 +181,16 @@ declare const navigationItemCustomFieldSelect: z.ZodObject<z.objectUtil.extendSh
181
181
  enabled?: boolean | undefined;
182
182
  }>;
183
183
  export type NavigationItemCustomFieldPrimitive = z.infer<typeof navigationItemCustomFieldPrimitive>;
184
- declare const navigationItemCustomFieldPrimitive: z.ZodObject<z.objectUtil.extendShape<{
184
+ declare const navigationItemCustomFieldPrimitive: z.ZodObject<{
185
185
  name: z.ZodEffects<z.ZodString, string, string>;
186
186
  label: z.ZodString;
187
187
  required: z.ZodOptional<z.ZodBoolean>;
188
188
  enabled: z.ZodOptional<z.ZodBoolean>;
189
- }, {
189
+ } & {
190
190
  type: z.ZodEnum<["boolean", "string"]>;
191
191
  multi: z.ZodOptional<z.ZodLiteral<false>>;
192
192
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
193
- }>, "strip", z.ZodTypeAny, {
193
+ }, "strip", z.ZodTypeAny, {
194
194
  name: string;
195
195
  type: "string" | "boolean";
196
196
  label: string;
@@ -208,16 +208,16 @@ declare const navigationItemCustomFieldPrimitive: z.ZodObject<z.objectUtil.exten
208
208
  multi?: false | undefined;
209
209
  }>;
210
210
  export type NavigationItemCustomFieldMedia = z.infer<typeof navigationItemCustomFieldMedia>;
211
- declare const navigationItemCustomFieldMedia: z.ZodObject<z.objectUtil.extendShape<{
211
+ declare const navigationItemCustomFieldMedia: z.ZodObject<{
212
212
  name: z.ZodEffects<z.ZodString, string, string>;
213
213
  label: z.ZodString;
214
214
  required: z.ZodOptional<z.ZodBoolean>;
215
215
  enabled: z.ZodOptional<z.ZodBoolean>;
216
- }, {
216
+ } & {
217
217
  type: z.ZodLiteral<"media">;
218
218
  multi: z.ZodOptional<z.ZodLiteral<false>>;
219
219
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
220
- }>, "strip", z.ZodTypeAny, {
220
+ }, "strip", z.ZodTypeAny, {
221
221
  name: string;
222
222
  type: "media";
223
223
  label: string;
@@ -235,16 +235,16 @@ declare const navigationItemCustomFieldMedia: z.ZodObject<z.objectUtil.extendSha
235
235
  multi?: false | undefined;
236
236
  }>;
237
237
  export type NavigationItemCustomField = z.infer<typeof navigationItemCustomField>;
238
- export declare const navigationItemCustomField: z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
238
+ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
239
239
  name: z.ZodEffects<z.ZodString, string, string>;
240
240
  label: z.ZodString;
241
241
  required: z.ZodOptional<z.ZodBoolean>;
242
242
  enabled: z.ZodOptional<z.ZodBoolean>;
243
- }, {
243
+ } & {
244
244
  type: z.ZodEnum<["boolean", "string"]>;
245
245
  multi: z.ZodOptional<z.ZodLiteral<false>>;
246
246
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
247
- }>, "strip", z.ZodTypeAny, {
247
+ }, "strip", z.ZodTypeAny, {
248
248
  name: string;
249
249
  type: "string" | "boolean";
250
250
  label: string;
@@ -260,16 +260,16 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodUnion<[z.ZodObj
260
260
  options?: string[] | undefined;
261
261
  enabled?: boolean | undefined;
262
262
  multi?: false | undefined;
263
- }>, z.ZodObject<z.objectUtil.extendShape<{
263
+ }>, z.ZodObject<{
264
264
  name: z.ZodEffects<z.ZodString, string, string>;
265
265
  label: z.ZodString;
266
266
  required: z.ZodOptional<z.ZodBoolean>;
267
267
  enabled: z.ZodOptional<z.ZodBoolean>;
268
- }, {
268
+ } & {
269
269
  type: z.ZodLiteral<"media">;
270
270
  multi: z.ZodOptional<z.ZodLiteral<false>>;
271
271
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
272
- }>, "strip", z.ZodTypeAny, {
272
+ }, "strip", z.ZodTypeAny, {
273
273
  name: string;
274
274
  type: "media";
275
275
  label: string;
@@ -285,16 +285,16 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodUnion<[z.ZodObj
285
285
  options?: string[] | undefined;
286
286
  enabled?: boolean | undefined;
287
287
  multi?: false | undefined;
288
- }>]>, z.ZodObject<z.objectUtil.extendShape<{
288
+ }>]>, z.ZodObject<{
289
289
  name: z.ZodEffects<z.ZodString, string, string>;
290
290
  label: z.ZodString;
291
291
  required: z.ZodOptional<z.ZodBoolean>;
292
292
  enabled: z.ZodOptional<z.ZodBoolean>;
293
- }, {
293
+ } & {
294
294
  type: z.ZodLiteral<"select">;
295
295
  multi: z.ZodBoolean;
296
296
  options: z.ZodArray<z.ZodString, "many">;
297
- }>, "strip", z.ZodTypeAny, {
297
+ }, "strip", z.ZodTypeAny, {
298
298
  name: string;
299
299
  type: "select";
300
300
  label: string;
@@ -312,16 +312,16 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodUnion<[z.ZodObj
312
312
  enabled?: boolean | undefined;
313
313
  }>]>;
314
314
  export type NavigationItemAdditionalField = z.infer<typeof navigationItemAdditionalField>;
315
- export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
315
+ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
316
316
  name: z.ZodEffects<z.ZodString, string, string>;
317
317
  label: z.ZodString;
318
318
  required: z.ZodOptional<z.ZodBoolean>;
319
319
  enabled: z.ZodOptional<z.ZodBoolean>;
320
- }, {
320
+ } & {
321
321
  type: z.ZodEnum<["boolean", "string"]>;
322
322
  multi: z.ZodOptional<z.ZodLiteral<false>>;
323
323
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
324
- }>, "strip", z.ZodTypeAny, {
324
+ }, "strip", z.ZodTypeAny, {
325
325
  name: string;
326
326
  type: "string" | "boolean";
327
327
  label: string;
@@ -337,16 +337,16 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
337
337
  options?: string[] | undefined;
338
338
  enabled?: boolean | undefined;
339
339
  multi?: false | undefined;
340
- }>, z.ZodObject<z.objectUtil.extendShape<{
340
+ }>, z.ZodObject<{
341
341
  name: z.ZodEffects<z.ZodString, string, string>;
342
342
  label: z.ZodString;
343
343
  required: z.ZodOptional<z.ZodBoolean>;
344
344
  enabled: z.ZodOptional<z.ZodBoolean>;
345
- }, {
345
+ } & {
346
346
  type: z.ZodLiteral<"media">;
347
347
  multi: z.ZodOptional<z.ZodLiteral<false>>;
348
348
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
349
- }>, "strip", z.ZodTypeAny, {
349
+ }, "strip", z.ZodTypeAny, {
350
350
  name: string;
351
351
  type: "media";
352
352
  label: string;
@@ -362,16 +362,16 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
362
362
  options?: string[] | undefined;
363
363
  enabled?: boolean | undefined;
364
364
  multi?: false | undefined;
365
- }>]>, z.ZodObject<z.objectUtil.extendShape<{
365
+ }>]>, z.ZodObject<{
366
366
  name: z.ZodEffects<z.ZodString, string, string>;
367
367
  label: z.ZodString;
368
368
  required: z.ZodOptional<z.ZodBoolean>;
369
369
  enabled: z.ZodOptional<z.ZodBoolean>;
370
- }, {
370
+ } & {
371
371
  type: z.ZodLiteral<"select">;
372
372
  multi: z.ZodBoolean;
373
373
  options: z.ZodArray<z.ZodString, "many">;
374
- }>, "strip", z.ZodTypeAny, {
374
+ }, "strip", z.ZodTypeAny, {
375
375
  name: string;
376
376
  type: "select";
377
377
  label: string;
@@ -429,16 +429,16 @@ export declare const configContentTypeSchema: z.ZodObject<{
429
429
  available: boolean;
430
430
  }>;
431
431
  export declare const configSchema: z.ZodObject<{
432
- additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
432
+ additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
433
433
  name: z.ZodEffects<z.ZodString, string, string>;
434
434
  label: z.ZodString;
435
435
  required: z.ZodOptional<z.ZodBoolean>;
436
436
  enabled: z.ZodOptional<z.ZodBoolean>;
437
- }, {
437
+ } & {
438
438
  type: z.ZodEnum<["boolean", "string"]>;
439
439
  multi: z.ZodOptional<z.ZodLiteral<false>>;
440
440
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
441
- }>, "strip", z.ZodTypeAny, {
441
+ }, "strip", z.ZodTypeAny, {
442
442
  name: string;
443
443
  type: "string" | "boolean";
444
444
  label: string;
@@ -454,16 +454,16 @@ export declare const configSchema: z.ZodObject<{
454
454
  options?: string[] | undefined;
455
455
  enabled?: boolean | undefined;
456
456
  multi?: false | undefined;
457
- }>, z.ZodObject<z.objectUtil.extendShape<{
457
+ }>, z.ZodObject<{
458
458
  name: z.ZodEffects<z.ZodString, string, string>;
459
459
  label: z.ZodString;
460
460
  required: z.ZodOptional<z.ZodBoolean>;
461
461
  enabled: z.ZodOptional<z.ZodBoolean>;
462
- }, {
462
+ } & {
463
463
  type: z.ZodLiteral<"media">;
464
464
  multi: z.ZodOptional<z.ZodLiteral<false>>;
465
465
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
466
- }>, "strip", z.ZodTypeAny, {
466
+ }, "strip", z.ZodTypeAny, {
467
467
  name: string;
468
468
  type: "media";
469
469
  label: string;
@@ -479,16 +479,16 @@ export declare const configSchema: z.ZodObject<{
479
479
  options?: string[] | undefined;
480
480
  enabled?: boolean | undefined;
481
481
  multi?: false | undefined;
482
- }>]>, z.ZodObject<z.objectUtil.extendShape<{
482
+ }>]>, z.ZodObject<{
483
483
  name: z.ZodEffects<z.ZodString, string, string>;
484
484
  label: z.ZodString;
485
485
  required: z.ZodOptional<z.ZodBoolean>;
486
486
  enabled: z.ZodOptional<z.ZodBoolean>;
487
- }, {
487
+ } & {
488
488
  type: z.ZodLiteral<"select">;
489
489
  multi: z.ZodBoolean;
490
490
  options: z.ZodArray<z.ZodString, "many">;
491
- }>, "strip", z.ZodTypeAny, {
491
+ }, "strip", z.ZodTypeAny, {
492
492
  name: string;
493
493
  type: "select";
494
494
  label: string;
@@ -633,17 +633,17 @@ export declare const configSchema: z.ZodObject<{
633
633
  isCachePluginEnabled?: boolean | undefined;
634
634
  }>;
635
635
  export type ConfigFromServerSchema = z.infer<typeof configFromServerSchema>;
636
- export declare const configFromServerSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
637
- additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
636
+ export declare const configFromServerSchema: z.ZodObject<Omit<{
637
+ additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
638
638
  name: z.ZodEffects<z.ZodString, string, string>;
639
639
  label: z.ZodString;
640
640
  required: z.ZodOptional<z.ZodBoolean>;
641
641
  enabled: z.ZodOptional<z.ZodBoolean>;
642
- }, {
642
+ } & {
643
643
  type: z.ZodEnum<["boolean", "string"]>;
644
644
  multi: z.ZodOptional<z.ZodLiteral<false>>;
645
645
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
646
- }>, "strip", z.ZodTypeAny, {
646
+ }, "strip", z.ZodTypeAny, {
647
647
  name: string;
648
648
  type: "string" | "boolean";
649
649
  label: string;
@@ -659,16 +659,16 @@ export declare const configFromServerSchema: z.ZodObject<z.objectUtil.extendShap
659
659
  options?: string[] | undefined;
660
660
  enabled?: boolean | undefined;
661
661
  multi?: false | undefined;
662
- }>, z.ZodObject<z.objectUtil.extendShape<{
662
+ }>, z.ZodObject<{
663
663
  name: z.ZodEffects<z.ZodString, string, string>;
664
664
  label: z.ZodString;
665
665
  required: z.ZodOptional<z.ZodBoolean>;
666
666
  enabled: z.ZodOptional<z.ZodBoolean>;
667
- }, {
667
+ } & {
668
668
  type: z.ZodLiteral<"media">;
669
669
  multi: z.ZodOptional<z.ZodLiteral<false>>;
670
670
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
671
- }>, "strip", z.ZodTypeAny, {
671
+ }, "strip", z.ZodTypeAny, {
672
672
  name: string;
673
673
  type: "media";
674
674
  label: string;
@@ -684,16 +684,16 @@ export declare const configFromServerSchema: z.ZodObject<z.objectUtil.extendShap
684
684
  options?: string[] | undefined;
685
685
  enabled?: boolean | undefined;
686
686
  multi?: false | undefined;
687
- }>]>, z.ZodObject<z.objectUtil.extendShape<{
687
+ }>]>, z.ZodObject<{
688
688
  name: z.ZodEffects<z.ZodString, string, string>;
689
689
  label: z.ZodString;
690
690
  required: z.ZodOptional<z.ZodBoolean>;
691
691
  enabled: z.ZodOptional<z.ZodBoolean>;
692
- }, {
692
+ } & {
693
693
  type: z.ZodLiteral<"select">;
694
694
  multi: z.ZodBoolean;
695
695
  options: z.ZodArray<z.ZodString, "many">;
696
- }>, "strip", z.ZodTypeAny, {
696
+ }, "strip", z.ZodTypeAny, {
697
697
  name: string;
698
698
  type: "select";
699
699
  label: string;
@@ -744,7 +744,7 @@ export declare const configFromServerSchema: z.ZodObject<z.objectUtil.extendShap
744
744
  restrictedContentTypes: z.ZodArray<z.ZodString, "many">;
745
745
  isCacheEnabled: z.ZodOptional<z.ZodBoolean>;
746
746
  isCachePluginEnabled: z.ZodOptional<z.ZodBoolean>;
747
- }, "contentTypes">, {
747
+ }, "contentTypes"> & {
748
748
  contentTypes: z.ZodArray<z.ZodObject<{
749
749
  uid: z.ZodString;
750
750
  name: z.ZodString;
@@ -785,7 +785,7 @@ export declare const configFromServerSchema: z.ZodObject<z.objectUtil.extendShap
785
785
  endpoint: string;
786
786
  available: boolean;
787
787
  }>, "many">;
788
- }>, "strip", z.ZodTypeAny, {
788
+ }, "strip", z.ZodTypeAny, {
789
789
  additionalFields: ("audience" | {
790
790
  name: string;
791
791
  type: "string" | "boolean";
@@ -968,7 +968,7 @@ export declare const contentTypeAttributeValidator: z.ZodObject<{
968
968
  export type contentTypeFieldTypeSchema = z.infer<typeof contentTypeFieldTypeSchema>;
969
969
  export declare const contentTypeFieldTypeSchema: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
970
970
  export type SimpleContentTypeAttribute = z.infer<typeof simpleContentTypeAttribute>;
971
- export declare const simpleContentTypeAttribute: z.ZodObject<z.objectUtil.extendShape<{
971
+ export declare const simpleContentTypeAttribute: z.ZodObject<{
972
972
  required: z.ZodOptional<z.ZodBoolean>;
973
973
  max: z.ZodOptional<z.ZodNumber>;
974
974
  min: z.ZodOptional<z.ZodNumber>;
@@ -977,9 +977,9 @@ export declare const simpleContentTypeAttribute: z.ZodObject<z.objectUtil.extend
977
977
  private: z.ZodOptional<z.ZodBoolean>;
978
978
  configurable: z.ZodOptional<z.ZodBoolean>;
979
979
  default: z.ZodOptional<z.ZodAny>;
980
- }, {
980
+ } & {
981
981
  type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
982
- }>, "strip", z.ZodTypeAny, {
982
+ }, "strip", z.ZodTypeAny, {
983
983
  type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
984
984
  max?: number | undefined;
985
985
  min?: number | undefined;
@@ -1001,7 +1001,7 @@ export declare const simpleContentTypeAttribute: z.ZodObject<z.objectUtil.extend
1001
1001
  configurable?: boolean | undefined;
1002
1002
  }>;
1003
1003
  export type ContentTypeEnumerationAttribute = z.infer<typeof contentTypeEnumerationAttribute>;
1004
- export declare const contentTypeEnumerationAttribute: z.ZodObject<z.objectUtil.extendShape<{
1004
+ export declare const contentTypeEnumerationAttribute: z.ZodObject<{
1005
1005
  required: z.ZodOptional<z.ZodBoolean>;
1006
1006
  max: z.ZodOptional<z.ZodNumber>;
1007
1007
  min: z.ZodOptional<z.ZodNumber>;
@@ -1010,10 +1010,10 @@ export declare const contentTypeEnumerationAttribute: z.ZodObject<z.objectUtil.e
1010
1010
  private: z.ZodOptional<z.ZodBoolean>;
1011
1011
  configurable: z.ZodOptional<z.ZodBoolean>;
1012
1012
  default: z.ZodOptional<z.ZodAny>;
1013
- }, {
1013
+ } & {
1014
1014
  type: z.ZodLiteral<"enumeration">;
1015
1015
  enum: z.ZodArray<z.ZodString, "many">;
1016
- }>, "strip", z.ZodTypeAny, {
1016
+ }, "strip", z.ZodTypeAny, {
1017
1017
  type: "enumeration";
1018
1018
  enum: string[];
1019
1019
  max?: number | undefined;
@@ -1098,7 +1098,7 @@ export declare const contentTypeRelationAttribute: z.ZodObject<{
1098
1098
  inversedBy?: string | undefined;
1099
1099
  }>;
1100
1100
  export type ContentTypeAttributes = z.infer<typeof contentTypeAttributes>;
1101
- export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1101
+ export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1102
1102
  required: z.ZodOptional<z.ZodBoolean>;
1103
1103
  max: z.ZodOptional<z.ZodNumber>;
1104
1104
  min: z.ZodOptional<z.ZodNumber>;
@@ -1107,9 +1107,9 @@ export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<
1107
1107
  private: z.ZodOptional<z.ZodBoolean>;
1108
1108
  configurable: z.ZodOptional<z.ZodBoolean>;
1109
1109
  default: z.ZodOptional<z.ZodAny>;
1110
- }, {
1110
+ } & {
1111
1111
  type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
1112
- }>, "strip", z.ZodTypeAny, {
1112
+ }, "strip", z.ZodTypeAny, {
1113
1113
  type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
1114
1114
  max?: number | undefined;
1115
1115
  min?: number | undefined;
@@ -1129,7 +1129,7 @@ export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<
1129
1129
  default?: any;
1130
1130
  private?: boolean | undefined;
1131
1131
  configurable?: boolean | undefined;
1132
- }>, z.ZodObject<z.objectUtil.extendShape<{
1132
+ }>, z.ZodObject<{
1133
1133
  required: z.ZodOptional<z.ZodBoolean>;
1134
1134
  max: z.ZodOptional<z.ZodNumber>;
1135
1135
  min: z.ZodOptional<z.ZodNumber>;
@@ -1138,10 +1138,10 @@ export declare const contentTypeAttributes: z.ZodRecord<z.ZodString, z.ZodUnion<
1138
1138
  private: z.ZodOptional<z.ZodBoolean>;
1139
1139
  configurable: z.ZodOptional<z.ZodBoolean>;
1140
1140
  default: z.ZodOptional<z.ZodAny>;
1141
- }, {
1141
+ } & {
1142
1142
  type: z.ZodLiteral<"enumeration">;
1143
1143
  enum: z.ZodArray<z.ZodString, "many">;
1144
- }>, "strip", z.ZodTypeAny, {
1144
+ }, "strip", z.ZodTypeAny, {
1145
1145
  type: "enumeration";
1146
1146
  enum: string[];
1147
1147
  max?: number | undefined;
@@ -1251,7 +1251,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
1251
1251
  draftAndPublish?: boolean | undefined;
1252
1252
  templateName?: string | undefined;
1253
1253
  }>>;
1254
- attributes: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1254
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1255
1255
  required: z.ZodOptional<z.ZodBoolean>;
1256
1256
  max: z.ZodOptional<z.ZodNumber>;
1257
1257
  min: z.ZodOptional<z.ZodNumber>;
@@ -1260,9 +1260,9 @@ export declare const contentTypeFullSchema: z.ZodObject<{
1260
1260
  private: z.ZodOptional<z.ZodBoolean>;
1261
1261
  configurable: z.ZodOptional<z.ZodBoolean>;
1262
1262
  default: z.ZodOptional<z.ZodAny>;
1263
- }, {
1263
+ } & {
1264
1264
  type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
1265
- }>, "strip", z.ZodTypeAny, {
1265
+ }, "strip", z.ZodTypeAny, {
1266
1266
  type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
1267
1267
  max?: number | undefined;
1268
1268
  min?: number | undefined;
@@ -1282,7 +1282,7 @@ export declare const contentTypeFullSchema: z.ZodObject<{
1282
1282
  default?: any;
1283
1283
  private?: boolean | undefined;
1284
1284
  configurable?: boolean | undefined;
1285
- }>, z.ZodObject<z.objectUtil.extendShape<{
1285
+ }>, z.ZodObject<{
1286
1286
  required: z.ZodOptional<z.ZodBoolean>;
1287
1287
  max: z.ZodOptional<z.ZodNumber>;
1288
1288
  min: z.ZodOptional<z.ZodNumber>;
@@ -1291,10 +1291,10 @@ export declare const contentTypeFullSchema: z.ZodObject<{
1291
1291
  private: z.ZodOptional<z.ZodBoolean>;
1292
1292
  configurable: z.ZodOptional<z.ZodBoolean>;
1293
1293
  default: z.ZodOptional<z.ZodAny>;
1294
- }, {
1294
+ } & {
1295
1295
  type: z.ZodLiteral<"enumeration">;
1296
1296
  enum: z.ZodArray<z.ZodString, "many">;
1297
- }>, "strip", z.ZodTypeAny, {
1297
+ }, "strip", z.ZodTypeAny, {
1298
1298
  type: "enumeration";
1299
1299
  enum: string[];
1300
1300
  max?: number | undefined;
@@ -1555,7 +1555,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
1555
1555
  draftAndPublish?: boolean | undefined;
1556
1556
  templateName?: string | undefined;
1557
1557
  }>>;
1558
- attributes: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1558
+ attributes: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
1559
1559
  required: z.ZodOptional<z.ZodBoolean>;
1560
1560
  max: z.ZodOptional<z.ZodNumber>;
1561
1561
  min: z.ZodOptional<z.ZodNumber>;
@@ -1564,9 +1564,9 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
1564
1564
  private: z.ZodOptional<z.ZodBoolean>;
1565
1565
  configurable: z.ZodOptional<z.ZodBoolean>;
1566
1566
  default: z.ZodOptional<z.ZodAny>;
1567
- }, {
1567
+ } & {
1568
1568
  type: z.ZodEnum<["string", "text", "richtext", "blocks", "email", "password", "date", "time", "datetime", "timestamp", "boolean", "integer", "biginteger", "float", "decimal", "json", "relation", "media"]>;
1569
- }>, "strip", z.ZodTypeAny, {
1569
+ }, "strip", z.ZodTypeAny, {
1570
1570
  type: "string" | "boolean" | "media" | "time" | "text" | "integer" | "float" | "date" | "richtext" | "blocks" | "email" | "password" | "datetime" | "timestamp" | "biginteger" | "decimal" | "json" | "relation";
1571
1571
  max?: number | undefined;
1572
1572
  min?: number | undefined;
@@ -1586,7 +1586,7 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
1586
1586
  default?: any;
1587
1587
  private?: boolean | undefined;
1588
1588
  configurable?: boolean | undefined;
1589
- }>, z.ZodObject<z.objectUtil.extendShape<{
1589
+ }>, z.ZodObject<{
1590
1590
  required: z.ZodOptional<z.ZodBoolean>;
1591
1591
  max: z.ZodOptional<z.ZodNumber>;
1592
1592
  min: z.ZodOptional<z.ZodNumber>;
@@ -1595,10 +1595,10 @@ export declare const contentTypeSchema: z.ZodObject<Pick<{
1595
1595
  private: z.ZodOptional<z.ZodBoolean>;
1596
1596
  configurable: z.ZodOptional<z.ZodBoolean>;
1597
1597
  default: z.ZodOptional<z.ZodAny>;
1598
- }, {
1598
+ } & {
1599
1599
  type: z.ZodLiteral<"enumeration">;
1600
1600
  enum: z.ZodArray<z.ZodString, "many">;
1601
- }>, "strip", z.ZodTypeAny, {
1601
+ }, "strip", z.ZodTypeAny, {
1602
1602
  type: "enumeration";
1603
1603
  enum: string[];
1604
1604
  max?: number | undefined;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const RestartAlert: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
2
+ export declare const RestartAlert: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const MoreButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
2
+ export declare const MoreButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
@@ -5,7 +5,7 @@ interface FormSchemaBuilderInput {
5
5
  additionalFields: Array<NavigationItemAdditionalField>;
6
6
  }
7
7
  export type NavigationItemFormSchema = z.infer<ReturnType<typeof navigationItemFormSchema>>;
8
- export declare const navigationItemFormSchema: (input: FormSchemaBuilderInput) => z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
8
+ export declare const navigationItemFormSchema: (input: FormSchemaBuilderInput) => z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9
9
  title: z.ZodString;
10
10
  autoSync: z.ZodOptional<z.ZodBoolean>;
11
11
  removed: z.ZodOptional<z.ZodBoolean>;
@@ -30,13 +30,13 @@ export declare const navigationItemFormSchema: (input: FormSchemaBuilderInput) =
30
30
  }, {
31
31
  [x: string]: any;
32
32
  }>;
33
- }, {
33
+ } & {
34
34
  type: z.ZodLiteral<"EXTERNAL">;
35
35
  path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
36
36
  externalPath: z.ZodEffects<z.ZodString, string, string>;
37
37
  relatedType: z.ZodOptional<z.ZodString>;
38
38
  related: z.ZodOptional<z.ZodString>;
39
- }>, "strip", z.ZodTypeAny, {
39
+ }, "strip", z.ZodTypeAny, {
40
40
  type: "EXTERNAL";
41
41
  title: string;
42
42
  additionalFields: {
@@ -92,7 +92,7 @@ export declare const navigationItemFormSchema: (input: FormSchemaBuilderInput) =
92
92
  levelPath?: string | undefined;
93
93
  isMenuAllowedLevel?: boolean | undefined;
94
94
  parentAttachedToMenu?: boolean | undefined;
95
- }>, z.ZodObject<z.objectUtil.extendShape<{
95
+ }>, z.ZodObject<{
96
96
  title: z.ZodString;
97
97
  autoSync: z.ZodOptional<z.ZodBoolean>;
98
98
  removed: z.ZodOptional<z.ZodBoolean>;
@@ -117,13 +117,13 @@ export declare const navigationItemFormSchema: (input: FormSchemaBuilderInput) =
117
117
  }, {
118
118
  [x: string]: any;
119
119
  }>;
120
- }, {
120
+ } & {
121
121
  type: z.ZodLiteral<"INTERNAL">;
122
122
  path: z.ZodString;
123
123
  externalPath: z.ZodOptional<z.ZodString>;
124
124
  relatedType: z.ZodString;
125
125
  related: z.ZodString | z.ZodOptional<z.ZodString>;
126
- }>, "strip", z.ZodTypeAny, {
126
+ }, "strip", z.ZodTypeAny, {
127
127
  type: "INTERNAL";
128
128
  path: string;
129
129
  title: string;
@@ -179,7 +179,7 @@ export declare const navigationItemFormSchema: (input: FormSchemaBuilderInput) =
179
179
  levelPath?: string | undefined;
180
180
  isMenuAllowedLevel?: boolean | undefined;
181
181
  parentAttachedToMenu?: boolean | undefined;
182
- }>, z.ZodObject<z.objectUtil.extendShape<{
182
+ }>, z.ZodObject<{
183
183
  title: z.ZodString;
184
184
  autoSync: z.ZodOptional<z.ZodBoolean>;
185
185
  removed: z.ZodOptional<z.ZodBoolean>;
@@ -204,10 +204,10 @@ export declare const navigationItemFormSchema: (input: FormSchemaBuilderInput) =
204
204
  }, {
205
205
  [x: string]: any;
206
206
  }>;
207
- }, {
207
+ } & {
208
208
  type: z.ZodLiteral<"WRAPPER">;
209
209
  path: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
210
- }>, "strip", z.ZodTypeAny, {
210
+ }, "strip", z.ZodTypeAny, {
211
211
  type: "WRAPPER";
212
212
  title: string;
213
213
  additionalFields: {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ declare const Wrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
3
  level?: number | undefined;
4
- }>> & string;
4
+ }>>;
5
5
  export default Wrapper;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const ItemCardBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
2
+ export declare const ItemCardBadge: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const CardItemTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<any, never>> & string & (import("styled-components/dist/types").BaseObject | Omit<any, keyof import("react").Component<any, {}, any>>);
2
+ export declare const CardItemTitle: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> | (import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<any, never>> & Omit<any, keyof import("react").Component<any, {}, any>>);
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare const ItemCardRemovedOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const ItemCardRemovedOverlay: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ declare const Wrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
3
  level?: number | undefined;
4
4
  isLast?: boolean | undefined;
5
- }>> & string;
5
+ }>>;
6
6
  export default Wrapper;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { NavigationItemSchema } from '../../../api/validators';
2
+ import { NavigationItemSchema, NavigationSchema } from '../../../api/validators';
3
3
  import { Effect } from '../../../types';
4
4
  import { ConfirmEffect } from '../components/I18nCopyNavigationItems';
5
5
  export declare const useLocale: () => import("@tanstack/react-query").UseQueryResult<{
@@ -71,7 +71,15 @@ export declare const useCreateNavigation: () => import("@tanstack/react-query").
71
71
  locale: string;
72
72
  visible: boolean;
73
73
  }, "id" | "documentId" | "slug">, unknown>;
74
- export declare const useUpdateNavigation: (onSuccess?: Effect<void>) => import("@tanstack/react-query").UseMutationResult<import("@strapi/strapi/admin").FetchResponse<any>, Error, {
74
+ export declare const useUpdateNavigation: (onSuccess?: Effect<NavigationSchema>) => import("@tanstack/react-query").UseMutationResult<{
75
+ id: number;
76
+ name: string;
77
+ documentId: string;
78
+ items: NavigationItemSchema[];
79
+ slug: string;
80
+ locale: string;
81
+ visible: boolean;
82
+ }, Error, {
75
83
  id: number;
76
84
  name: string;
77
85
  documentId: string;