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.
- package/README.md +52 -1
- package/dist/_chunks/ca-BQn7S09g.js +1 -0
- package/dist/_chunks/{ca-Jr1amAtF.mjs → ca-RyBP-sbV.mjs} +25 -3
- package/dist/_chunks/{en-DmeenfQT.mjs → en-DBw_pmms.mjs} +25 -3
- package/dist/_chunks/en-DO98mdcm.js +1 -0
- package/dist/_chunks/fr-CjFMUCWK.js +1 -0
- package/dist/_chunks/{fr-CZx3EMw8.mjs → fr-CnAHMC1C.mjs} +25 -3
- package/dist/admin/index.js +350 -363
- package/dist/admin/index.mjs +11193 -10887
- package/dist/admin/src/api/client.d.ts +15 -1
- package/dist/admin/src/api/validators.d.ts +137 -17
- package/dist/admin/src/pages/HomePage/components/NavigationContentHeader/ManageNavigationItems/index.d.ts +10 -0
- package/dist/admin/src/pages/HomePage/components/{Search → NavigationContentHeader/Search}/index.d.ts +1 -1
- package/dist/admin/src/pages/HomePage/components/NavigationEmptyState/index.d.ts +12 -0
- package/dist/admin/src/pages/HomePage/components/{AdditionalFieldInput → NavigationItemForm/components/AdditionalFields/AdditionalFieldInput}/index.d.ts +1 -1
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/AudienceField/index.d.ts +1 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/CustomFieldsField/index.d.ts +7 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AdditionalFields/index.d.ts +1 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/AttachToMenuField/index.d.ts +7 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/CopyFromLocales/index.d.ts +12 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/NavigationItemTypeField/index.d.ts +1 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/PathField/index.d.ts +10 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/ReadFieldsFromRelatedField/index.d.ts +1 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedEntityField/hooks.d.ts +3 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedEntityField/index.d.ts +13 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/RelatedTypeField/index.d.ts +13 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/components/TitleField/index.d.ts +1 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/context/NavigationItemFormContext.d.ts +14 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/utils/form.d.ts +95 -6
- package/dist/admin/src/pages/HomePage/components/NavigationItemForm/utils/hooks.d.ts +259 -0
- package/dist/admin/src/pages/HomePage/components/NavigationItemList/index.d.ts +2 -5
- package/dist/admin/src/pages/HomePage/components/NavigationItemListItem/index.d.ts +2 -0
- package/dist/admin/src/pages/HomePage/hooks/index.d.ts +7 -158
- package/dist/admin/src/pages/HomePage/hooks/useAPI.d.ts +162 -0
- package/dist/admin/src/pages/HomePage/hooks/useI18nCopyNavigationItemsModal.d.ts +8 -0
- package/dist/admin/src/pages/HomePage/hooks/useInvalidateQueries.d.ts +1 -0
- package/dist/admin/src/pages/HomePage/hooks/useLocales.d.ts +19 -0
- package/dist/admin/src/pages/HomePage/hooks/useNavigationItemPopup.d.ts +93 -0
- package/dist/admin/src/pages/HomePage/hooks/useSearch.d.ts +11 -0
- package/dist/admin/src/pages/HomePage/hooks/useSettingsPermissions.d.ts +5 -0
- package/dist/admin/src/pages/HomePage/utils/appendViewId.d.ts +2 -0
- package/dist/admin/src/pages/HomePage/utils/parsers.d.ts +1 -1
- package/dist/admin/src/pages/SettingsPage/common/const.d.ts +6 -0
- package/dist/admin/src/pages/SettingsPage/components/AdditionalSettingsPanel/index.d.ts +1 -0
- package/dist/admin/src/pages/SettingsPage/components/{CustomFieldForm → CustomFieldsPanel/CustomFieldForm}/index.d.ts +3 -3
- package/dist/admin/src/pages/SettingsPage/components/{CustomFieldModal → CustomFieldsPanel/CustomFieldModal}/index.d.ts +2 -2
- package/dist/admin/src/pages/SettingsPage/components/{CustomFieldTable → CustomFieldsPanel/CustomFieldTable}/index.d.ts +2 -2
- package/dist/admin/src/pages/SettingsPage/components/CustomFieldsPanel/index.d.ts +1 -0
- package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/ContentTypesField/index.d.ts +1 -0
- package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/ContentTypesSettings/index.d.ts +1 -0
- package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/DefaultContentTypeField/index.d.ts +1 -0
- package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/PreferCustomContentTypeField/index.d.ts +1 -0
- package/dist/admin/src/pages/SettingsPage/components/GeneralSettingsPanel/index.d.ts +1 -0
- package/dist/admin/src/pages/SettingsPage/components/RestartPanel/index.d.ts +6 -0
- package/dist/admin/src/pages/SettingsPage/components/RestorePanel/index.d.ts +6 -0
- package/dist/admin/src/pages/SettingsPage/context/index.d.ts +15 -0
- package/dist/admin/src/pages/SettingsPage/hooks/index.d.ts +2 -366
- package/dist/admin/src/pages/SettingsPage/hooks/useAPI.d.ts +131 -0
- package/dist/admin/src/pages/SettingsPage/hooks/useInitialConfig.d.ts +8 -0
- package/dist/admin/src/pages/SettingsPage/schemas/index.d.ts +282 -0
- package/dist/admin/src/schemas/config.d.ts +96 -3
- package/dist/admin/src/translations/ca.d.ts +22 -0
- package/dist/admin/src/translations/en.d.ts +22 -0
- package/dist/admin/src/translations/es.d.ts +22 -0
- package/dist/admin/src/translations/fr.d.ts +22 -0
- package/dist/admin/src/translations/tr.d.ts +22 -0
- package/dist/server/index.js +35 -35
- package/dist/server/index.mjs +3489 -3603
- package/dist/server/src/config/index.d.ts +1 -0
- package/dist/server/src/config/setup.d.ts +7 -0
- package/dist/server/src/controllers/admin.d.ts +882 -2
- package/dist/server/src/controllers/client.d.ts +12 -0
- package/dist/server/src/controllers/validators.d.ts +2 -2
- package/dist/server/src/index.d.ts +893 -0
- package/dist/server/src/schemas/config.d.ts +96 -3
- package/dist/server/src/schemas/index.d.ts +1305 -2
- package/dist/server/src/services/admin/admin.d.ts +1 -0
- package/dist/server/src/services/common/common.d.ts +865 -0
- package/dist/server/src/services/index.d.ts +891 -0
- package/package.json +9 -2
- package/dist/_chunks/ca-Gq9Ty_aG.js +0 -1
- package/dist/_chunks/en-BP5RWE-N.js +0 -1
- package/dist/_chunks/fr-BIJn6QmK.js +0 -1
|
@@ -5,16 +5,22 @@ export type NavigationItemCustomFieldBase = z.infer<typeof navigationCustomField
|
|
|
5
5
|
declare const navigationCustomFieldBase: z.ZodObject<{
|
|
6
6
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
7
7
|
label: z.ZodString;
|
|
8
|
+
description: z.ZodOptional<z.ZodString>;
|
|
9
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
8
10
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
9
11
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
10
12
|
}, "strip", z.ZodTypeAny, {
|
|
11
13
|
name: string;
|
|
12
14
|
label: string;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
placeholder?: string | undefined;
|
|
13
17
|
required?: boolean | undefined;
|
|
14
18
|
enabled?: boolean | undefined;
|
|
15
19
|
}, {
|
|
16
20
|
name: string;
|
|
17
21
|
label: string;
|
|
22
|
+
description?: string | undefined;
|
|
23
|
+
placeholder?: string | undefined;
|
|
18
24
|
required?: boolean | undefined;
|
|
19
25
|
enabled?: boolean | undefined;
|
|
20
26
|
}>;
|
|
@@ -22,6 +28,8 @@ export type NavigationItemCustomFieldSelect = z.infer<typeof navigationItemCusto
|
|
|
22
28
|
declare const navigationItemCustomFieldSelect: z.ZodObject<{
|
|
23
29
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
24
30
|
label: z.ZodString;
|
|
31
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
25
33
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
26
34
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
27
35
|
} & {
|
|
@@ -34,6 +42,8 @@ declare const navigationItemCustomFieldSelect: z.ZodObject<{
|
|
|
34
42
|
name: string;
|
|
35
43
|
label: string;
|
|
36
44
|
multi: boolean;
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
placeholder?: string | undefined;
|
|
37
47
|
required?: boolean | undefined;
|
|
38
48
|
enabled?: boolean | undefined;
|
|
39
49
|
}, {
|
|
@@ -42,6 +52,8 @@ declare const navigationItemCustomFieldSelect: z.ZodObject<{
|
|
|
42
52
|
name: string;
|
|
43
53
|
label: string;
|
|
44
54
|
multi: boolean;
|
|
55
|
+
description?: string | undefined;
|
|
56
|
+
placeholder?: string | undefined;
|
|
45
57
|
required?: boolean | undefined;
|
|
46
58
|
enabled?: boolean | undefined;
|
|
47
59
|
}>;
|
|
@@ -49,6 +61,8 @@ export type NavigationItemCustomFieldPrimitive = z.infer<typeof navigationItemCu
|
|
|
49
61
|
declare const navigationItemCustomFieldPrimitive: z.ZodObject<{
|
|
50
62
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
51
63
|
label: z.ZodString;
|
|
64
|
+
description: z.ZodOptional<z.ZodString>;
|
|
65
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
52
66
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
53
67
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
54
68
|
} & {
|
|
@@ -60,6 +74,8 @@ declare const navigationItemCustomFieldPrimitive: z.ZodObject<{
|
|
|
60
74
|
name: string;
|
|
61
75
|
label: string;
|
|
62
76
|
options?: string[] | undefined;
|
|
77
|
+
description?: string | undefined;
|
|
78
|
+
placeholder?: string | undefined;
|
|
63
79
|
required?: boolean | undefined;
|
|
64
80
|
enabled?: boolean | undefined;
|
|
65
81
|
multi?: false | undefined;
|
|
@@ -68,6 +84,8 @@ declare const navigationItemCustomFieldPrimitive: z.ZodObject<{
|
|
|
68
84
|
name: string;
|
|
69
85
|
label: string;
|
|
70
86
|
options?: string[] | undefined;
|
|
87
|
+
description?: string | undefined;
|
|
88
|
+
placeholder?: string | undefined;
|
|
71
89
|
required?: boolean | undefined;
|
|
72
90
|
enabled?: boolean | undefined;
|
|
73
91
|
multi?: false | undefined;
|
|
@@ -76,6 +94,8 @@ export type NavigationItemCustomFieldMedia = z.infer<typeof navigationItemCustom
|
|
|
76
94
|
declare const navigationItemCustomFieldMedia: z.ZodObject<{
|
|
77
95
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
78
96
|
label: z.ZodString;
|
|
97
|
+
description: z.ZodOptional<z.ZodString>;
|
|
98
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
79
99
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
80
100
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
81
101
|
} & {
|
|
@@ -87,6 +107,8 @@ declare const navigationItemCustomFieldMedia: z.ZodObject<{
|
|
|
87
107
|
name: string;
|
|
88
108
|
label: string;
|
|
89
109
|
options?: string[] | undefined;
|
|
110
|
+
description?: string | undefined;
|
|
111
|
+
placeholder?: string | undefined;
|
|
90
112
|
required?: boolean | undefined;
|
|
91
113
|
enabled?: boolean | undefined;
|
|
92
114
|
multi?: false | undefined;
|
|
@@ -95,14 +117,18 @@ declare const navigationItemCustomFieldMedia: z.ZodObject<{
|
|
|
95
117
|
name: string;
|
|
96
118
|
label: string;
|
|
97
119
|
options?: string[] | undefined;
|
|
120
|
+
description?: string | undefined;
|
|
121
|
+
placeholder?: string | undefined;
|
|
98
122
|
required?: boolean | undefined;
|
|
99
123
|
enabled?: boolean | undefined;
|
|
100
124
|
multi?: false | undefined;
|
|
101
125
|
}>;
|
|
102
126
|
export type NavigationItemCustomField = z.infer<typeof navigationItemCustomField>;
|
|
103
|
-
export declare const navigationItemCustomField: z.
|
|
127
|
+
export declare const navigationItemCustomField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
104
128
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
105
129
|
label: z.ZodString;
|
|
130
|
+
description: z.ZodOptional<z.ZodString>;
|
|
131
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
106
132
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
107
133
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
108
134
|
} & {
|
|
@@ -114,6 +140,8 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
|
|
|
114
140
|
name: string;
|
|
115
141
|
label: string;
|
|
116
142
|
options?: string[] | undefined;
|
|
143
|
+
description?: string | undefined;
|
|
144
|
+
placeholder?: string | undefined;
|
|
117
145
|
required?: boolean | undefined;
|
|
118
146
|
enabled?: boolean | undefined;
|
|
119
147
|
multi?: false | undefined;
|
|
@@ -122,12 +150,16 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
|
|
|
122
150
|
name: string;
|
|
123
151
|
label: string;
|
|
124
152
|
options?: string[] | undefined;
|
|
153
|
+
description?: string | undefined;
|
|
154
|
+
placeholder?: string | undefined;
|
|
125
155
|
required?: boolean | undefined;
|
|
126
156
|
enabled?: boolean | undefined;
|
|
127
157
|
multi?: false | undefined;
|
|
128
158
|
}>, z.ZodObject<{
|
|
129
159
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
130
160
|
label: z.ZodString;
|
|
161
|
+
description: z.ZodOptional<z.ZodString>;
|
|
162
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
131
163
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
132
164
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
133
165
|
} & {
|
|
@@ -139,6 +171,8 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
|
|
|
139
171
|
name: string;
|
|
140
172
|
label: string;
|
|
141
173
|
options?: string[] | undefined;
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
placeholder?: string | undefined;
|
|
142
176
|
required?: boolean | undefined;
|
|
143
177
|
enabled?: boolean | undefined;
|
|
144
178
|
multi?: false | undefined;
|
|
@@ -147,12 +181,16 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
|
|
|
147
181
|
name: string;
|
|
148
182
|
label: string;
|
|
149
183
|
options?: string[] | undefined;
|
|
184
|
+
description?: string | undefined;
|
|
185
|
+
placeholder?: string | undefined;
|
|
150
186
|
required?: boolean | undefined;
|
|
151
187
|
enabled?: boolean | undefined;
|
|
152
188
|
multi?: false | undefined;
|
|
153
189
|
}>, z.ZodObject<{
|
|
154
190
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
155
191
|
label: z.ZodString;
|
|
192
|
+
description: z.ZodOptional<z.ZodString>;
|
|
193
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
156
194
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
157
195
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
158
196
|
} & {
|
|
@@ -165,6 +203,8 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
|
|
|
165
203
|
name: string;
|
|
166
204
|
label: string;
|
|
167
205
|
multi: boolean;
|
|
206
|
+
description?: string | undefined;
|
|
207
|
+
placeholder?: string | undefined;
|
|
168
208
|
required?: boolean | undefined;
|
|
169
209
|
enabled?: boolean | undefined;
|
|
170
210
|
}, {
|
|
@@ -173,13 +213,17 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
|
|
|
173
213
|
name: string;
|
|
174
214
|
label: string;
|
|
175
215
|
multi: boolean;
|
|
216
|
+
description?: string | undefined;
|
|
217
|
+
placeholder?: string | undefined;
|
|
176
218
|
required?: boolean | undefined;
|
|
177
219
|
enabled?: boolean | undefined;
|
|
178
220
|
}>]>;
|
|
179
221
|
export type NavigationItemAdditionalField = z.infer<typeof navigationItemAdditionalField>;
|
|
180
|
-
export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.
|
|
222
|
+
export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
181
223
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
182
224
|
label: z.ZodString;
|
|
225
|
+
description: z.ZodOptional<z.ZodString>;
|
|
226
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
183
227
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
184
228
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
185
229
|
} & {
|
|
@@ -191,6 +235,8 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
|
|
|
191
235
|
name: string;
|
|
192
236
|
label: string;
|
|
193
237
|
options?: string[] | undefined;
|
|
238
|
+
description?: string | undefined;
|
|
239
|
+
placeholder?: string | undefined;
|
|
194
240
|
required?: boolean | undefined;
|
|
195
241
|
enabled?: boolean | undefined;
|
|
196
242
|
multi?: false | undefined;
|
|
@@ -199,12 +245,16 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
|
|
|
199
245
|
name: string;
|
|
200
246
|
label: string;
|
|
201
247
|
options?: string[] | undefined;
|
|
248
|
+
description?: string | undefined;
|
|
249
|
+
placeholder?: string | undefined;
|
|
202
250
|
required?: boolean | undefined;
|
|
203
251
|
enabled?: boolean | undefined;
|
|
204
252
|
multi?: false | undefined;
|
|
205
253
|
}>, z.ZodObject<{
|
|
206
254
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
207
255
|
label: z.ZodString;
|
|
256
|
+
description: z.ZodOptional<z.ZodString>;
|
|
257
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
208
258
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
209
259
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
210
260
|
} & {
|
|
@@ -216,6 +266,8 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
|
|
|
216
266
|
name: string;
|
|
217
267
|
label: string;
|
|
218
268
|
options?: string[] | undefined;
|
|
269
|
+
description?: string | undefined;
|
|
270
|
+
placeholder?: string | undefined;
|
|
219
271
|
required?: boolean | undefined;
|
|
220
272
|
enabled?: boolean | undefined;
|
|
221
273
|
multi?: false | undefined;
|
|
@@ -224,12 +276,16 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
|
|
|
224
276
|
name: string;
|
|
225
277
|
label: string;
|
|
226
278
|
options?: string[] | undefined;
|
|
279
|
+
description?: string | undefined;
|
|
280
|
+
placeholder?: string | undefined;
|
|
227
281
|
required?: boolean | undefined;
|
|
228
282
|
enabled?: boolean | undefined;
|
|
229
283
|
multi?: false | undefined;
|
|
230
284
|
}>, z.ZodObject<{
|
|
231
285
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
232
286
|
label: z.ZodString;
|
|
287
|
+
description: z.ZodOptional<z.ZodString>;
|
|
288
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
233
289
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
234
290
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
235
291
|
} & {
|
|
@@ -242,6 +298,8 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
|
|
|
242
298
|
name: string;
|
|
243
299
|
label: string;
|
|
244
300
|
multi: boolean;
|
|
301
|
+
description?: string | undefined;
|
|
302
|
+
placeholder?: string | undefined;
|
|
245
303
|
required?: boolean | undefined;
|
|
246
304
|
enabled?: boolean | undefined;
|
|
247
305
|
}, {
|
|
@@ -250,14 +308,18 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
|
|
|
250
308
|
name: string;
|
|
251
309
|
label: string;
|
|
252
310
|
multi: boolean;
|
|
311
|
+
description?: string | undefined;
|
|
312
|
+
placeholder?: string | undefined;
|
|
253
313
|
required?: boolean | undefined;
|
|
254
314
|
enabled?: boolean | undefined;
|
|
255
315
|
}>]>]>;
|
|
256
316
|
export type ConfigSchema = z.infer<typeof configSchema>;
|
|
257
317
|
export declare const configSchema: z.ZodObject<{
|
|
258
|
-
additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.
|
|
318
|
+
additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
259
319
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
260
320
|
label: z.ZodString;
|
|
321
|
+
description: z.ZodOptional<z.ZodString>;
|
|
322
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
261
323
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
262
324
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
263
325
|
} & {
|
|
@@ -269,6 +331,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
269
331
|
name: string;
|
|
270
332
|
label: string;
|
|
271
333
|
options?: string[] | undefined;
|
|
334
|
+
description?: string | undefined;
|
|
335
|
+
placeholder?: string | undefined;
|
|
272
336
|
required?: boolean | undefined;
|
|
273
337
|
enabled?: boolean | undefined;
|
|
274
338
|
multi?: false | undefined;
|
|
@@ -277,12 +341,16 @@ export declare const configSchema: z.ZodObject<{
|
|
|
277
341
|
name: string;
|
|
278
342
|
label: string;
|
|
279
343
|
options?: string[] | undefined;
|
|
344
|
+
description?: string | undefined;
|
|
345
|
+
placeholder?: string | undefined;
|
|
280
346
|
required?: boolean | undefined;
|
|
281
347
|
enabled?: boolean | undefined;
|
|
282
348
|
multi?: false | undefined;
|
|
283
349
|
}>, z.ZodObject<{
|
|
284
350
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
285
351
|
label: z.ZodString;
|
|
352
|
+
description: z.ZodOptional<z.ZodString>;
|
|
353
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
286
354
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
287
355
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
288
356
|
} & {
|
|
@@ -294,6 +362,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
294
362
|
name: string;
|
|
295
363
|
label: string;
|
|
296
364
|
options?: string[] | undefined;
|
|
365
|
+
description?: string | undefined;
|
|
366
|
+
placeholder?: string | undefined;
|
|
297
367
|
required?: boolean | undefined;
|
|
298
368
|
enabled?: boolean | undefined;
|
|
299
369
|
multi?: false | undefined;
|
|
@@ -302,12 +372,16 @@ export declare const configSchema: z.ZodObject<{
|
|
|
302
372
|
name: string;
|
|
303
373
|
label: string;
|
|
304
374
|
options?: string[] | undefined;
|
|
375
|
+
description?: string | undefined;
|
|
376
|
+
placeholder?: string | undefined;
|
|
305
377
|
required?: boolean | undefined;
|
|
306
378
|
enabled?: boolean | undefined;
|
|
307
379
|
multi?: false | undefined;
|
|
308
380
|
}>, z.ZodObject<{
|
|
309
381
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
310
382
|
label: z.ZodString;
|
|
383
|
+
description: z.ZodOptional<z.ZodString>;
|
|
384
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
311
385
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
312
386
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
313
387
|
} & {
|
|
@@ -320,6 +394,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
320
394
|
name: string;
|
|
321
395
|
label: string;
|
|
322
396
|
multi: boolean;
|
|
397
|
+
description?: string | undefined;
|
|
398
|
+
placeholder?: string | undefined;
|
|
323
399
|
required?: boolean | undefined;
|
|
324
400
|
enabled?: boolean | undefined;
|
|
325
401
|
}, {
|
|
@@ -328,11 +404,14 @@ export declare const configSchema: z.ZodObject<{
|
|
|
328
404
|
name: string;
|
|
329
405
|
label: string;
|
|
330
406
|
multi: boolean;
|
|
407
|
+
description?: string | undefined;
|
|
408
|
+
placeholder?: string | undefined;
|
|
331
409
|
required?: boolean | undefined;
|
|
332
410
|
enabled?: boolean | undefined;
|
|
333
411
|
}>]>]>, "many">;
|
|
334
412
|
allowedLevels: z.ZodNumber;
|
|
335
413
|
contentTypes: z.ZodArray<z.ZodString, "many">;
|
|
414
|
+
defaultContentType: z.ZodOptional<z.ZodString>;
|
|
336
415
|
contentTypesNameFields: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
337
416
|
contentTypesPopulate: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
338
417
|
gql: z.ZodObject<{
|
|
@@ -352,6 +431,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
352
431
|
name: string;
|
|
353
432
|
label: string;
|
|
354
433
|
options?: string[] | undefined;
|
|
434
|
+
description?: string | undefined;
|
|
435
|
+
placeholder?: string | undefined;
|
|
355
436
|
required?: boolean | undefined;
|
|
356
437
|
enabled?: boolean | undefined;
|
|
357
438
|
multi?: false | undefined;
|
|
@@ -360,6 +441,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
360
441
|
name: string;
|
|
361
442
|
label: string;
|
|
362
443
|
options?: string[] | undefined;
|
|
444
|
+
description?: string | undefined;
|
|
445
|
+
placeholder?: string | undefined;
|
|
363
446
|
required?: boolean | undefined;
|
|
364
447
|
enabled?: boolean | undefined;
|
|
365
448
|
multi?: false | undefined;
|
|
@@ -369,6 +452,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
369
452
|
name: string;
|
|
370
453
|
label: string;
|
|
371
454
|
multi: boolean;
|
|
455
|
+
description?: string | undefined;
|
|
456
|
+
placeholder?: string | undefined;
|
|
372
457
|
required?: boolean | undefined;
|
|
373
458
|
enabled?: boolean | undefined;
|
|
374
459
|
})[];
|
|
@@ -382,6 +467,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
382
467
|
pathDefaultFields: Record<string, any>;
|
|
383
468
|
cascadeMenuAttached: boolean;
|
|
384
469
|
preferCustomContentTypes: boolean;
|
|
470
|
+
defaultContentType?: string | undefined;
|
|
385
471
|
isCacheEnabled?: boolean | undefined;
|
|
386
472
|
}, {
|
|
387
473
|
additionalFields: ("audience" | {
|
|
@@ -389,6 +475,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
389
475
|
name: string;
|
|
390
476
|
label: string;
|
|
391
477
|
options?: string[] | undefined;
|
|
478
|
+
description?: string | undefined;
|
|
479
|
+
placeholder?: string | undefined;
|
|
392
480
|
required?: boolean | undefined;
|
|
393
481
|
enabled?: boolean | undefined;
|
|
394
482
|
multi?: false | undefined;
|
|
@@ -397,6 +485,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
397
485
|
name: string;
|
|
398
486
|
label: string;
|
|
399
487
|
options?: string[] | undefined;
|
|
488
|
+
description?: string | undefined;
|
|
489
|
+
placeholder?: string | undefined;
|
|
400
490
|
required?: boolean | undefined;
|
|
401
491
|
enabled?: boolean | undefined;
|
|
402
492
|
multi?: false | undefined;
|
|
@@ -406,6 +496,8 @@ export declare const configSchema: z.ZodObject<{
|
|
|
406
496
|
name: string;
|
|
407
497
|
label: string;
|
|
408
498
|
multi: boolean;
|
|
499
|
+
description?: string | undefined;
|
|
500
|
+
placeholder?: string | undefined;
|
|
409
501
|
required?: boolean | undefined;
|
|
410
502
|
enabled?: boolean | undefined;
|
|
411
503
|
})[];
|
|
@@ -419,6 +511,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
419
511
|
pathDefaultFields: Record<string, any>;
|
|
420
512
|
cascadeMenuAttached: boolean;
|
|
421
513
|
preferCustomContentTypes: boolean;
|
|
514
|
+
defaultContentType?: string | undefined;
|
|
422
515
|
isCacheEnabled?: boolean | undefined;
|
|
423
516
|
}>;
|
|
424
517
|
export {};
|