strapi-plugin-navigation 3.0.11 → 3.0.12

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
@@ -117,17 +117,17 @@ export declare const useSaveConfig: () => import("@tanstack/react-query").UseMut
117
117
  isCachePluginEnabled?: boolean | undefined;
118
118
  }, unknown>;
119
119
  export type UiFormSchema = z.infer<typeof uiFormSchema>;
120
- export declare const uiFormSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
121
- additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
120
+ export declare const uiFormSchema: z.ZodObject<{
121
+ additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodObject<{
122
122
  name: z.ZodEffects<z.ZodString, string, string>;
123
123
  label: z.ZodString;
124
124
  required: z.ZodOptional<z.ZodBoolean>;
125
125
  enabled: z.ZodOptional<z.ZodBoolean>;
126
- }, {
126
+ } & {
127
127
  type: z.ZodEnum<["boolean", "string"]>;
128
128
  multi: z.ZodOptional<z.ZodLiteral<false>>;
129
129
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
- }>, "strip", z.ZodTypeAny, {
130
+ }, "strip", z.ZodTypeAny, {
131
131
  name: string;
132
132
  type: "string" | "boolean";
133
133
  label: string;
@@ -143,16 +143,16 @@ export declare const uiFormSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
143
143
  options?: string[] | undefined;
144
144
  enabled?: boolean | undefined;
145
145
  multi?: false | undefined;
146
- }>, z.ZodObject<z.objectUtil.extendShape<{
146
+ }>, z.ZodObject<{
147
147
  name: z.ZodEffects<z.ZodString, string, string>;
148
148
  label: z.ZodString;
149
149
  required: z.ZodOptional<z.ZodBoolean>;
150
150
  enabled: z.ZodOptional<z.ZodBoolean>;
151
- }, {
151
+ } & {
152
152
  type: z.ZodLiteral<"media">;
153
153
  multi: z.ZodOptional<z.ZodLiteral<false>>;
154
154
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
155
- }>, "strip", z.ZodTypeAny, {
155
+ }, "strip", z.ZodTypeAny, {
156
156
  name: string;
157
157
  type: "media";
158
158
  label: string;
@@ -168,16 +168,16 @@ export declare const uiFormSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
168
168
  options?: string[] | undefined;
169
169
  enabled?: boolean | undefined;
170
170
  multi?: false | undefined;
171
- }>, z.ZodObject<z.objectUtil.extendShape<{
171
+ }>, z.ZodObject<{
172
172
  name: z.ZodEffects<z.ZodString, string, string>;
173
173
  label: z.ZodString;
174
174
  required: z.ZodOptional<z.ZodBoolean>;
175
175
  enabled: z.ZodOptional<z.ZodBoolean>;
176
- }, {
176
+ } & {
177
177
  type: z.ZodLiteral<"select">;
178
178
  multi: z.ZodBoolean;
179
179
  options: z.ZodArray<z.ZodString, "many">;
180
- }>, "strip", z.ZodTypeAny, {
180
+ }, "strip", z.ZodTypeAny, {
181
181
  name: string;
182
182
  type: "select";
183
183
  label: string;
@@ -212,8 +212,6 @@ export declare const uiFormSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
212
212
  documentId: string;
213
213
  }>, "many">;
214
214
  contentTypes: z.ZodArray<z.ZodString, "many">;
215
- contentTypesNameFields: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
216
- contentTypesPopulate: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
217
215
  gql: z.ZodObject<{
218
216
  navigationItemRelated: z.ZodArray<z.ZodString, "many">;
219
217
  }, "strip", z.ZodTypeAny, {
@@ -221,12 +219,11 @@ export declare const uiFormSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
221
219
  }, {
222
220
  navigationItemRelated: string[];
223
221
  }>;
224
- pathDefaultFields: z.ZodRecord<z.ZodString, z.ZodAny>;
225
222
  cascadeMenuAttached: z.ZodBoolean;
226
223
  preferCustomContentTypes: z.ZodBoolean;
227
224
  isCacheEnabled: z.ZodOptional<z.ZodBoolean>;
228
225
  isCachePluginEnabled: z.ZodOptional<z.ZodBoolean>;
229
- }, "contentTypesNameFields">, {
226
+ } & {
230
227
  audienceFieldChecked: z.ZodBoolean;
231
228
  contentTypesNameFields: z.ZodArray<z.ZodObject<{
232
229
  key: z.ZodString;
@@ -258,7 +255,7 @@ export declare const uiFormSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
258
255
  key: string;
259
256
  fields: string[];
260
257
  }>, "many">;
261
- }>, "strip", z.ZodTypeAny, {
258
+ }, "strip", z.ZodTypeAny, {
262
259
  additionalFields: ("audience" | {
263
260
  name: string;
264
261
  type: "select";
@@ -17,16 +17,16 @@ declare const navigationCustomFieldBase: z.ZodObject<{
17
17
  enabled?: boolean | undefined;
18
18
  }>;
19
19
  export type NavigationItemCustomFieldSelect = z.infer<typeof navigationItemCustomFieldSelect>;
20
- declare const navigationItemCustomFieldSelect: z.ZodObject<z.objectUtil.extendShape<{
20
+ declare const navigationItemCustomFieldSelect: z.ZodObject<{
21
21
  name: z.ZodEffects<z.ZodString, string, string>;
22
22
  label: z.ZodString;
23
23
  required: z.ZodOptional<z.ZodBoolean>;
24
24
  enabled: z.ZodOptional<z.ZodBoolean>;
25
- }, {
25
+ } & {
26
26
  type: z.ZodLiteral<"select">;
27
27
  multi: z.ZodBoolean;
28
28
  options: z.ZodArray<z.ZodString, "many">;
29
- }>, "strip", z.ZodTypeAny, {
29
+ }, "strip", z.ZodTypeAny, {
30
30
  name: string;
31
31
  type: "select";
32
32
  label: string;
@@ -44,16 +44,16 @@ declare const navigationItemCustomFieldSelect: z.ZodObject<z.objectUtil.extendSh
44
44
  enabled?: boolean | undefined;
45
45
  }>;
46
46
  export type NavigationItemCustomFieldPrimitive = z.infer<typeof navigationItemCustomFieldPrimitive>;
47
- declare const navigationItemCustomFieldPrimitive: z.ZodObject<z.objectUtil.extendShape<{
47
+ declare const navigationItemCustomFieldPrimitive: z.ZodObject<{
48
48
  name: z.ZodEffects<z.ZodString, string, string>;
49
49
  label: z.ZodString;
50
50
  required: z.ZodOptional<z.ZodBoolean>;
51
51
  enabled: z.ZodOptional<z.ZodBoolean>;
52
- }, {
52
+ } & {
53
53
  type: z.ZodEnum<["boolean", "string"]>;
54
54
  multi: z.ZodOptional<z.ZodLiteral<false>>;
55
55
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
- }>, "strip", z.ZodTypeAny, {
56
+ }, "strip", z.ZodTypeAny, {
57
57
  name: string;
58
58
  type: "string" | "boolean";
59
59
  label: string;
@@ -71,16 +71,16 @@ declare const navigationItemCustomFieldPrimitive: z.ZodObject<z.objectUtil.exten
71
71
  multi?: false | undefined;
72
72
  }>;
73
73
  export type NavigationItemCustomFieldMedia = z.infer<typeof navigationItemCustomFieldMedia>;
74
- declare const navigationItemCustomFieldMedia: z.ZodObject<z.objectUtil.extendShape<{
74
+ declare const navigationItemCustomFieldMedia: z.ZodObject<{
75
75
  name: z.ZodEffects<z.ZodString, string, string>;
76
76
  label: z.ZodString;
77
77
  required: z.ZodOptional<z.ZodBoolean>;
78
78
  enabled: z.ZodOptional<z.ZodBoolean>;
79
- }, {
79
+ } & {
80
80
  type: z.ZodLiteral<"media">;
81
81
  multi: z.ZodOptional<z.ZodLiteral<false>>;
82
82
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
83
- }>, "strip", z.ZodTypeAny, {
83
+ }, "strip", z.ZodTypeAny, {
84
84
  name: string;
85
85
  type: "media";
86
86
  label: string;
@@ -98,16 +98,16 @@ declare const navigationItemCustomFieldMedia: z.ZodObject<z.objectUtil.extendSha
98
98
  multi?: false | undefined;
99
99
  }>;
100
100
  export type NavigationItemCustomField = z.infer<typeof navigationItemCustomField>;
101
- export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
101
+ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
102
102
  name: z.ZodEffects<z.ZodString, string, string>;
103
103
  label: z.ZodString;
104
104
  required: z.ZodOptional<z.ZodBoolean>;
105
105
  enabled: z.ZodOptional<z.ZodBoolean>;
106
- }, {
106
+ } & {
107
107
  type: z.ZodEnum<["boolean", "string"]>;
108
108
  multi: z.ZodOptional<z.ZodLiteral<false>>;
109
109
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
- }>, "strip", z.ZodTypeAny, {
110
+ }, "strip", z.ZodTypeAny, {
111
111
  name: string;
112
112
  type: "string" | "boolean";
113
113
  label: string;
@@ -123,16 +123,16 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<z.object
123
123
  options?: string[] | undefined;
124
124
  enabled?: boolean | undefined;
125
125
  multi?: false | undefined;
126
- }>, z.ZodObject<z.objectUtil.extendShape<{
126
+ }>, z.ZodObject<{
127
127
  name: z.ZodEffects<z.ZodString, string, string>;
128
128
  label: z.ZodString;
129
129
  required: z.ZodOptional<z.ZodBoolean>;
130
130
  enabled: z.ZodOptional<z.ZodBoolean>;
131
- }, {
131
+ } & {
132
132
  type: z.ZodLiteral<"media">;
133
133
  multi: z.ZodOptional<z.ZodLiteral<false>>;
134
134
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
135
- }>, "strip", z.ZodTypeAny, {
135
+ }, "strip", z.ZodTypeAny, {
136
136
  name: string;
137
137
  type: "media";
138
138
  label: string;
@@ -148,16 +148,16 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<z.object
148
148
  options?: string[] | undefined;
149
149
  enabled?: boolean | undefined;
150
150
  multi?: false | undefined;
151
- }>, z.ZodObject<z.objectUtil.extendShape<{
151
+ }>, z.ZodObject<{
152
152
  name: z.ZodEffects<z.ZodString, string, string>;
153
153
  label: z.ZodString;
154
154
  required: z.ZodOptional<z.ZodBoolean>;
155
155
  enabled: z.ZodOptional<z.ZodBoolean>;
156
- }, {
156
+ } & {
157
157
  type: z.ZodLiteral<"select">;
158
158
  multi: z.ZodBoolean;
159
159
  options: z.ZodArray<z.ZodString, "many">;
160
- }>, "strip", z.ZodTypeAny, {
160
+ }, "strip", z.ZodTypeAny, {
161
161
  name: string;
162
162
  type: "select";
163
163
  label: string;
@@ -175,16 +175,16 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<z.object
175
175
  enabled?: boolean | undefined;
176
176
  }>]>;
177
177
  export type NavigationItemAdditionalField = z.infer<typeof navigationItemAdditionalField>;
178
- export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
178
+ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodObject<{
179
179
  name: z.ZodEffects<z.ZodString, string, string>;
180
180
  label: z.ZodString;
181
181
  required: z.ZodOptional<z.ZodBoolean>;
182
182
  enabled: z.ZodOptional<z.ZodBoolean>;
183
- }, {
183
+ } & {
184
184
  type: z.ZodEnum<["boolean", "string"]>;
185
185
  multi: z.ZodOptional<z.ZodLiteral<false>>;
186
186
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
187
- }>, "strip", z.ZodTypeAny, {
187
+ }, "strip", z.ZodTypeAny, {
188
188
  name: string;
189
189
  type: "string" | "boolean";
190
190
  label: string;
@@ -200,16 +200,16 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
200
200
  options?: string[] | undefined;
201
201
  enabled?: boolean | undefined;
202
202
  multi?: false | undefined;
203
- }>, z.ZodObject<z.objectUtil.extendShape<{
203
+ }>, z.ZodObject<{
204
204
  name: z.ZodEffects<z.ZodString, string, string>;
205
205
  label: z.ZodString;
206
206
  required: z.ZodOptional<z.ZodBoolean>;
207
207
  enabled: z.ZodOptional<z.ZodBoolean>;
208
- }, {
208
+ } & {
209
209
  type: z.ZodLiteral<"media">;
210
210
  multi: z.ZodOptional<z.ZodLiteral<false>>;
211
211
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
212
- }>, "strip", z.ZodTypeAny, {
212
+ }, "strip", z.ZodTypeAny, {
213
213
  name: string;
214
214
  type: "media";
215
215
  label: string;
@@ -225,16 +225,16 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
225
225
  options?: string[] | undefined;
226
226
  enabled?: boolean | undefined;
227
227
  multi?: false | undefined;
228
- }>, z.ZodObject<z.objectUtil.extendShape<{
228
+ }>, z.ZodObject<{
229
229
  name: z.ZodEffects<z.ZodString, string, string>;
230
230
  label: z.ZodString;
231
231
  required: z.ZodOptional<z.ZodBoolean>;
232
232
  enabled: z.ZodOptional<z.ZodBoolean>;
233
- }, {
233
+ } & {
234
234
  type: z.ZodLiteral<"select">;
235
235
  multi: z.ZodBoolean;
236
236
  options: z.ZodArray<z.ZodString, "many">;
237
- }>, "strip", z.ZodTypeAny, {
237
+ }, "strip", z.ZodTypeAny, {
238
238
  name: string;
239
239
  type: "select";
240
240
  label: string;
@@ -253,16 +253,16 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
253
253
  }>]>]>;
254
254
  export type ConfigSchema = z.infer<typeof configSchema>;
255
255
  export declare const configSchema: z.ZodObject<{
256
- additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
256
+ additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodUnion<[z.ZodObject<{
257
257
  name: z.ZodEffects<z.ZodString, string, string>;
258
258
  label: z.ZodString;
259
259
  required: z.ZodOptional<z.ZodBoolean>;
260
260
  enabled: z.ZodOptional<z.ZodBoolean>;
261
- }, {
261
+ } & {
262
262
  type: z.ZodEnum<["boolean", "string"]>;
263
263
  multi: z.ZodOptional<z.ZodLiteral<false>>;
264
264
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
265
- }>, "strip", z.ZodTypeAny, {
265
+ }, "strip", z.ZodTypeAny, {
266
266
  name: string;
267
267
  type: "string" | "boolean";
268
268
  label: string;
@@ -278,16 +278,16 @@ export declare const configSchema: z.ZodObject<{
278
278
  options?: string[] | undefined;
279
279
  enabled?: boolean | undefined;
280
280
  multi?: false | undefined;
281
- }>, z.ZodObject<z.objectUtil.extendShape<{
281
+ }>, z.ZodObject<{
282
282
  name: z.ZodEffects<z.ZodString, string, string>;
283
283
  label: z.ZodString;
284
284
  required: z.ZodOptional<z.ZodBoolean>;
285
285
  enabled: z.ZodOptional<z.ZodBoolean>;
286
- }, {
286
+ } & {
287
287
  type: z.ZodLiteral<"media">;
288
288
  multi: z.ZodOptional<z.ZodLiteral<false>>;
289
289
  options: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
290
- }>, "strip", z.ZodTypeAny, {
290
+ }, "strip", z.ZodTypeAny, {
291
291
  name: string;
292
292
  type: "media";
293
293
  label: string;
@@ -303,16 +303,16 @@ export declare const configSchema: z.ZodObject<{
303
303
  options?: string[] | undefined;
304
304
  enabled?: boolean | undefined;
305
305
  multi?: false | undefined;
306
- }>, z.ZodObject<z.objectUtil.extendShape<{
306
+ }>, z.ZodObject<{
307
307
  name: z.ZodEffects<z.ZodString, string, string>;
308
308
  label: z.ZodString;
309
309
  required: z.ZodOptional<z.ZodBoolean>;
310
310
  enabled: z.ZodOptional<z.ZodBoolean>;
311
- }, {
311
+ } & {
312
312
  type: z.ZodLiteral<"select">;
313
313
  multi: z.ZodBoolean;
314
314
  options: z.ZodArray<z.ZodString, "many">;
315
- }>, "strip", z.ZodTypeAny, {
315
+ }, "strip", z.ZodTypeAny, {
316
316
  name: string;
317
317
  type: "select";
318
318
  label: string;