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
|
@@ -3,23 +3,31 @@ export type NavigationItemCustomFieldBase = z.infer<typeof navigationCustomField
|
|
|
3
3
|
declare const navigationCustomFieldBase: z.ZodObject<{
|
|
4
4
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
label: z.ZodString;
|
|
6
|
+
description: z.ZodOptional<z.ZodString>;
|
|
7
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
6
8
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
7
9
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
8
10
|
}, "strip", z.ZodTypeAny, {
|
|
9
11
|
name: string;
|
|
10
12
|
label: string;
|
|
13
|
+
placeholder?: string | undefined;
|
|
11
14
|
required?: boolean | undefined;
|
|
15
|
+
description?: string | undefined;
|
|
12
16
|
enabled?: boolean | undefined;
|
|
13
17
|
}, {
|
|
14
18
|
name: string;
|
|
15
19
|
label: string;
|
|
20
|
+
placeholder?: string | undefined;
|
|
16
21
|
required?: boolean | undefined;
|
|
22
|
+
description?: string | undefined;
|
|
17
23
|
enabled?: boolean | undefined;
|
|
18
24
|
}>;
|
|
19
25
|
export type NavigationItemCustomFieldSelect = z.infer<typeof navigationItemCustomFieldSelect>;
|
|
20
26
|
declare const navigationItemCustomFieldSelect: z.ZodObject<{
|
|
21
27
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
22
28
|
label: z.ZodString;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
23
31
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
24
32
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
25
33
|
} & {
|
|
@@ -32,7 +40,9 @@ declare const navigationItemCustomFieldSelect: z.ZodObject<{
|
|
|
32
40
|
label: string;
|
|
33
41
|
options: string[];
|
|
34
42
|
multi: boolean;
|
|
43
|
+
placeholder?: string | undefined;
|
|
35
44
|
required?: boolean | undefined;
|
|
45
|
+
description?: string | undefined;
|
|
36
46
|
enabled?: boolean | undefined;
|
|
37
47
|
}, {
|
|
38
48
|
name: string;
|
|
@@ -40,13 +50,17 @@ declare const navigationItemCustomFieldSelect: z.ZodObject<{
|
|
|
40
50
|
label: string;
|
|
41
51
|
options: string[];
|
|
42
52
|
multi: boolean;
|
|
53
|
+
placeholder?: string | undefined;
|
|
43
54
|
required?: boolean | undefined;
|
|
55
|
+
description?: string | undefined;
|
|
44
56
|
enabled?: boolean | undefined;
|
|
45
57
|
}>;
|
|
46
58
|
export type NavigationItemCustomFieldPrimitive = z.infer<typeof navigationItemCustomFieldPrimitive>;
|
|
47
59
|
declare const navigationItemCustomFieldPrimitive: z.ZodObject<{
|
|
48
60
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
49
61
|
label: z.ZodString;
|
|
62
|
+
description: z.ZodOptional<z.ZodString>;
|
|
63
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
50
64
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
51
65
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
52
66
|
} & {
|
|
@@ -57,16 +71,20 @@ declare const navigationItemCustomFieldPrimitive: z.ZodObject<{
|
|
|
57
71
|
name: string;
|
|
58
72
|
type: "string" | "boolean";
|
|
59
73
|
label: string;
|
|
74
|
+
placeholder?: string | undefined;
|
|
60
75
|
required?: boolean | undefined;
|
|
61
76
|
options?: string[] | undefined;
|
|
77
|
+
description?: string | undefined;
|
|
62
78
|
enabled?: boolean | undefined;
|
|
63
79
|
multi?: false | undefined;
|
|
64
80
|
}, {
|
|
65
81
|
name: string;
|
|
66
82
|
type: "string" | "boolean";
|
|
67
83
|
label: string;
|
|
84
|
+
placeholder?: string | undefined;
|
|
68
85
|
required?: boolean | undefined;
|
|
69
86
|
options?: string[] | undefined;
|
|
87
|
+
description?: string | undefined;
|
|
70
88
|
enabled?: boolean | undefined;
|
|
71
89
|
multi?: false | undefined;
|
|
72
90
|
}>;
|
|
@@ -74,6 +92,8 @@ export type NavigationItemCustomFieldMedia = z.infer<typeof navigationItemCustom
|
|
|
74
92
|
declare const navigationItemCustomFieldMedia: z.ZodObject<{
|
|
75
93
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
76
94
|
label: z.ZodString;
|
|
95
|
+
description: z.ZodOptional<z.ZodString>;
|
|
96
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
77
97
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
78
98
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
79
99
|
} & {
|
|
@@ -84,23 +104,29 @@ declare const navigationItemCustomFieldMedia: z.ZodObject<{
|
|
|
84
104
|
name: string;
|
|
85
105
|
type: "media";
|
|
86
106
|
label: string;
|
|
107
|
+
placeholder?: string | undefined;
|
|
87
108
|
required?: boolean | undefined;
|
|
88
109
|
options?: string[] | undefined;
|
|
110
|
+
description?: string | undefined;
|
|
89
111
|
enabled?: boolean | undefined;
|
|
90
112
|
multi?: false | undefined;
|
|
91
113
|
}, {
|
|
92
114
|
name: string;
|
|
93
115
|
type: "media";
|
|
94
116
|
label: string;
|
|
117
|
+
placeholder?: string | undefined;
|
|
95
118
|
required?: boolean | undefined;
|
|
96
119
|
options?: string[] | undefined;
|
|
120
|
+
description?: string | undefined;
|
|
97
121
|
enabled?: boolean | undefined;
|
|
98
122
|
multi?: false | undefined;
|
|
99
123
|
}>;
|
|
100
124
|
export type NavigationItemCustomField = z.infer<typeof navigationItemCustomField>;
|
|
101
|
-
export declare const navigationItemCustomField: z.
|
|
125
|
+
export declare const navigationItemCustomField: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
102
126
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
103
127
|
label: z.ZodString;
|
|
128
|
+
description: z.ZodOptional<z.ZodString>;
|
|
129
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
104
130
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
105
131
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
106
132
|
} & {
|
|
@@ -111,21 +137,27 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
|
|
|
111
137
|
name: string;
|
|
112
138
|
type: "string" | "boolean";
|
|
113
139
|
label: string;
|
|
140
|
+
placeholder?: string | undefined;
|
|
114
141
|
required?: boolean | undefined;
|
|
115
142
|
options?: string[] | undefined;
|
|
143
|
+
description?: string | undefined;
|
|
116
144
|
enabled?: boolean | undefined;
|
|
117
145
|
multi?: false | undefined;
|
|
118
146
|
}, {
|
|
119
147
|
name: string;
|
|
120
148
|
type: "string" | "boolean";
|
|
121
149
|
label: string;
|
|
150
|
+
placeholder?: string | undefined;
|
|
122
151
|
required?: boolean | undefined;
|
|
123
152
|
options?: string[] | undefined;
|
|
153
|
+
description?: string | undefined;
|
|
124
154
|
enabled?: boolean | undefined;
|
|
125
155
|
multi?: false | undefined;
|
|
126
156
|
}>, z.ZodObject<{
|
|
127
157
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
128
158
|
label: z.ZodString;
|
|
159
|
+
description: z.ZodOptional<z.ZodString>;
|
|
160
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
129
161
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
130
162
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
131
163
|
} & {
|
|
@@ -136,21 +168,27 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
|
|
|
136
168
|
name: string;
|
|
137
169
|
type: "media";
|
|
138
170
|
label: string;
|
|
171
|
+
placeholder?: string | undefined;
|
|
139
172
|
required?: boolean | undefined;
|
|
140
173
|
options?: string[] | undefined;
|
|
174
|
+
description?: string | undefined;
|
|
141
175
|
enabled?: boolean | undefined;
|
|
142
176
|
multi?: false | undefined;
|
|
143
177
|
}, {
|
|
144
178
|
name: string;
|
|
145
179
|
type: "media";
|
|
146
180
|
label: string;
|
|
181
|
+
placeholder?: string | undefined;
|
|
147
182
|
required?: boolean | undefined;
|
|
148
183
|
options?: string[] | undefined;
|
|
184
|
+
description?: string | undefined;
|
|
149
185
|
enabled?: boolean | undefined;
|
|
150
186
|
multi?: false | undefined;
|
|
151
187
|
}>, z.ZodObject<{
|
|
152
188
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
153
189
|
label: z.ZodString;
|
|
190
|
+
description: z.ZodOptional<z.ZodString>;
|
|
191
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
154
192
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
155
193
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
156
194
|
} & {
|
|
@@ -163,7 +201,9 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
|
|
|
163
201
|
label: string;
|
|
164
202
|
options: string[];
|
|
165
203
|
multi: boolean;
|
|
204
|
+
placeholder?: string | undefined;
|
|
166
205
|
required?: boolean | undefined;
|
|
206
|
+
description?: string | undefined;
|
|
167
207
|
enabled?: boolean | undefined;
|
|
168
208
|
}, {
|
|
169
209
|
name: string;
|
|
@@ -171,13 +211,17 @@ export declare const navigationItemCustomField: z.ZodUnion<[z.ZodObject<{
|
|
|
171
211
|
label: string;
|
|
172
212
|
options: string[];
|
|
173
213
|
multi: boolean;
|
|
214
|
+
placeholder?: string | undefined;
|
|
174
215
|
required?: boolean | undefined;
|
|
216
|
+
description?: string | undefined;
|
|
175
217
|
enabled?: boolean | undefined;
|
|
176
218
|
}>]>;
|
|
177
219
|
export type NavigationItemAdditionalField = z.infer<typeof navigationItemAdditionalField>;
|
|
178
|
-
export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.
|
|
220
|
+
export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
179
221
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
180
222
|
label: z.ZodString;
|
|
223
|
+
description: z.ZodOptional<z.ZodString>;
|
|
224
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
181
225
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
182
226
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
183
227
|
} & {
|
|
@@ -188,21 +232,27 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
|
|
|
188
232
|
name: string;
|
|
189
233
|
type: "string" | "boolean";
|
|
190
234
|
label: string;
|
|
235
|
+
placeholder?: string | undefined;
|
|
191
236
|
required?: boolean | undefined;
|
|
192
237
|
options?: string[] | undefined;
|
|
238
|
+
description?: string | undefined;
|
|
193
239
|
enabled?: boolean | undefined;
|
|
194
240
|
multi?: false | undefined;
|
|
195
241
|
}, {
|
|
196
242
|
name: string;
|
|
197
243
|
type: "string" | "boolean";
|
|
198
244
|
label: string;
|
|
245
|
+
placeholder?: string | undefined;
|
|
199
246
|
required?: boolean | undefined;
|
|
200
247
|
options?: string[] | undefined;
|
|
248
|
+
description?: string | undefined;
|
|
201
249
|
enabled?: boolean | undefined;
|
|
202
250
|
multi?: false | undefined;
|
|
203
251
|
}>, z.ZodObject<{
|
|
204
252
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
205
253
|
label: z.ZodString;
|
|
254
|
+
description: z.ZodOptional<z.ZodString>;
|
|
255
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
206
256
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
207
257
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
208
258
|
} & {
|
|
@@ -213,21 +263,27 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
|
|
|
213
263
|
name: string;
|
|
214
264
|
type: "media";
|
|
215
265
|
label: string;
|
|
266
|
+
placeholder?: string | undefined;
|
|
216
267
|
required?: boolean | undefined;
|
|
217
268
|
options?: string[] | undefined;
|
|
269
|
+
description?: string | undefined;
|
|
218
270
|
enabled?: boolean | undefined;
|
|
219
271
|
multi?: false | undefined;
|
|
220
272
|
}, {
|
|
221
273
|
name: string;
|
|
222
274
|
type: "media";
|
|
223
275
|
label: string;
|
|
276
|
+
placeholder?: string | undefined;
|
|
224
277
|
required?: boolean | undefined;
|
|
225
278
|
options?: string[] | undefined;
|
|
279
|
+
description?: string | undefined;
|
|
226
280
|
enabled?: boolean | undefined;
|
|
227
281
|
multi?: false | undefined;
|
|
228
282
|
}>, z.ZodObject<{
|
|
229
283
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
230
284
|
label: z.ZodString;
|
|
285
|
+
description: z.ZodOptional<z.ZodString>;
|
|
286
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
231
287
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
232
288
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
233
289
|
} & {
|
|
@@ -240,7 +296,9 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
|
|
|
240
296
|
label: string;
|
|
241
297
|
options: string[];
|
|
242
298
|
multi: boolean;
|
|
299
|
+
placeholder?: string | undefined;
|
|
243
300
|
required?: boolean | undefined;
|
|
301
|
+
description?: string | undefined;
|
|
244
302
|
enabled?: boolean | undefined;
|
|
245
303
|
}, {
|
|
246
304
|
name: string;
|
|
@@ -248,14 +306,18 @@ export declare const navigationItemAdditionalField: z.ZodUnion<[z.ZodLiteral<"au
|
|
|
248
306
|
label: string;
|
|
249
307
|
options: string[];
|
|
250
308
|
multi: boolean;
|
|
309
|
+
placeholder?: string | undefined;
|
|
251
310
|
required?: boolean | undefined;
|
|
311
|
+
description?: string | undefined;
|
|
252
312
|
enabled?: boolean | undefined;
|
|
253
313
|
}>]>]>;
|
|
254
314
|
export type ConfigSchema = z.infer<typeof configSchema>;
|
|
255
315
|
export declare const configSchema: z.ZodObject<{
|
|
256
|
-
additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.
|
|
316
|
+
additionalFields: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"audience">, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
257
317
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
258
318
|
label: z.ZodString;
|
|
319
|
+
description: z.ZodOptional<z.ZodString>;
|
|
320
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
259
321
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
260
322
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
261
323
|
} & {
|
|
@@ -266,21 +328,27 @@ export declare const configSchema: z.ZodObject<{
|
|
|
266
328
|
name: string;
|
|
267
329
|
type: "string" | "boolean";
|
|
268
330
|
label: string;
|
|
331
|
+
placeholder?: string | undefined;
|
|
269
332
|
required?: boolean | undefined;
|
|
270
333
|
options?: string[] | undefined;
|
|
334
|
+
description?: string | undefined;
|
|
271
335
|
enabled?: boolean | undefined;
|
|
272
336
|
multi?: false | undefined;
|
|
273
337
|
}, {
|
|
274
338
|
name: string;
|
|
275
339
|
type: "string" | "boolean";
|
|
276
340
|
label: string;
|
|
341
|
+
placeholder?: string | undefined;
|
|
277
342
|
required?: boolean | undefined;
|
|
278
343
|
options?: string[] | undefined;
|
|
344
|
+
description?: string | undefined;
|
|
279
345
|
enabled?: boolean | undefined;
|
|
280
346
|
multi?: false | undefined;
|
|
281
347
|
}>, z.ZodObject<{
|
|
282
348
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
283
349
|
label: z.ZodString;
|
|
350
|
+
description: z.ZodOptional<z.ZodString>;
|
|
351
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
284
352
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
285
353
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
286
354
|
} & {
|
|
@@ -291,21 +359,27 @@ export declare const configSchema: z.ZodObject<{
|
|
|
291
359
|
name: string;
|
|
292
360
|
type: "media";
|
|
293
361
|
label: string;
|
|
362
|
+
placeholder?: string | undefined;
|
|
294
363
|
required?: boolean | undefined;
|
|
295
364
|
options?: string[] | undefined;
|
|
365
|
+
description?: string | undefined;
|
|
296
366
|
enabled?: boolean | undefined;
|
|
297
367
|
multi?: false | undefined;
|
|
298
368
|
}, {
|
|
299
369
|
name: string;
|
|
300
370
|
type: "media";
|
|
301
371
|
label: string;
|
|
372
|
+
placeholder?: string | undefined;
|
|
302
373
|
required?: boolean | undefined;
|
|
303
374
|
options?: string[] | undefined;
|
|
375
|
+
description?: string | undefined;
|
|
304
376
|
enabled?: boolean | undefined;
|
|
305
377
|
multi?: false | undefined;
|
|
306
378
|
}>, z.ZodObject<{
|
|
307
379
|
name: z.ZodEffects<z.ZodString, string, string>;
|
|
308
380
|
label: z.ZodString;
|
|
381
|
+
description: z.ZodOptional<z.ZodString>;
|
|
382
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
309
383
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
310
384
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
311
385
|
} & {
|
|
@@ -318,7 +392,9 @@ export declare const configSchema: z.ZodObject<{
|
|
|
318
392
|
label: string;
|
|
319
393
|
options: string[];
|
|
320
394
|
multi: boolean;
|
|
395
|
+
placeholder?: string | undefined;
|
|
321
396
|
required?: boolean | undefined;
|
|
397
|
+
description?: string | undefined;
|
|
322
398
|
enabled?: boolean | undefined;
|
|
323
399
|
}, {
|
|
324
400
|
name: string;
|
|
@@ -326,7 +402,9 @@ export declare const configSchema: z.ZodObject<{
|
|
|
326
402
|
label: string;
|
|
327
403
|
options: string[];
|
|
328
404
|
multi: boolean;
|
|
405
|
+
placeholder?: string | undefined;
|
|
329
406
|
required?: boolean | undefined;
|
|
407
|
+
description?: string | undefined;
|
|
330
408
|
enabled?: boolean | undefined;
|
|
331
409
|
}>]>]>, "many">;
|
|
332
410
|
allowedLevels: z.ZodNumber;
|
|
@@ -347,6 +425,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
347
425
|
documentId: string;
|
|
348
426
|
}>, "many">;
|
|
349
427
|
contentTypes: z.ZodArray<z.ZodString, "many">;
|
|
428
|
+
defaultContentType: z.ZodOptional<z.ZodString>;
|
|
350
429
|
contentTypesNameFields: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
351
430
|
contentTypesPopulate: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
352
431
|
gql: z.ZodObject<{
|
|
@@ -368,22 +447,28 @@ export declare const configSchema: z.ZodObject<{
|
|
|
368
447
|
label: string;
|
|
369
448
|
options: string[];
|
|
370
449
|
multi: boolean;
|
|
450
|
+
placeholder?: string | undefined;
|
|
371
451
|
required?: boolean | undefined;
|
|
452
|
+
description?: string | undefined;
|
|
372
453
|
enabled?: boolean | undefined;
|
|
373
454
|
} | {
|
|
374
455
|
name: string;
|
|
375
456
|
type: "string" | "boolean";
|
|
376
457
|
label: string;
|
|
458
|
+
placeholder?: string | undefined;
|
|
377
459
|
required?: boolean | undefined;
|
|
378
460
|
options?: string[] | undefined;
|
|
461
|
+
description?: string | undefined;
|
|
379
462
|
enabled?: boolean | undefined;
|
|
380
463
|
multi?: false | undefined;
|
|
381
464
|
} | {
|
|
382
465
|
name: string;
|
|
383
466
|
type: "media";
|
|
384
467
|
label: string;
|
|
468
|
+
placeholder?: string | undefined;
|
|
385
469
|
required?: boolean | undefined;
|
|
386
470
|
options?: string[] | undefined;
|
|
471
|
+
description?: string | undefined;
|
|
387
472
|
enabled?: boolean | undefined;
|
|
388
473
|
multi?: false | undefined;
|
|
389
474
|
})[];
|
|
@@ -403,6 +488,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
403
488
|
pathDefaultFields: Record<string, any>;
|
|
404
489
|
cascadeMenuAttached: boolean;
|
|
405
490
|
preferCustomContentTypes: boolean;
|
|
491
|
+
defaultContentType?: string | undefined;
|
|
406
492
|
isCacheEnabled?: boolean | undefined;
|
|
407
493
|
isCachePluginEnabled?: boolean | undefined;
|
|
408
494
|
}, {
|
|
@@ -412,22 +498,28 @@ export declare const configSchema: z.ZodObject<{
|
|
|
412
498
|
label: string;
|
|
413
499
|
options: string[];
|
|
414
500
|
multi: boolean;
|
|
501
|
+
placeholder?: string | undefined;
|
|
415
502
|
required?: boolean | undefined;
|
|
503
|
+
description?: string | undefined;
|
|
416
504
|
enabled?: boolean | undefined;
|
|
417
505
|
} | {
|
|
418
506
|
name: string;
|
|
419
507
|
type: "string" | "boolean";
|
|
420
508
|
label: string;
|
|
509
|
+
placeholder?: string | undefined;
|
|
421
510
|
required?: boolean | undefined;
|
|
422
511
|
options?: string[] | undefined;
|
|
512
|
+
description?: string | undefined;
|
|
423
513
|
enabled?: boolean | undefined;
|
|
424
514
|
multi?: false | undefined;
|
|
425
515
|
} | {
|
|
426
516
|
name: string;
|
|
427
517
|
type: "media";
|
|
428
518
|
label: string;
|
|
519
|
+
placeholder?: string | undefined;
|
|
429
520
|
required?: boolean | undefined;
|
|
430
521
|
options?: string[] | undefined;
|
|
522
|
+
description?: string | undefined;
|
|
431
523
|
enabled?: boolean | undefined;
|
|
432
524
|
multi?: false | undefined;
|
|
433
525
|
})[];
|
|
@@ -447,6 +539,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
447
539
|
pathDefaultFields: Record<string, any>;
|
|
448
540
|
cascadeMenuAttached: boolean;
|
|
449
541
|
preferCustomContentTypes: boolean;
|
|
542
|
+
defaultContentType?: string | undefined;
|
|
450
543
|
isCacheEnabled?: boolean | undefined;
|
|
451
544
|
isCachePluginEnabled?: boolean | undefined;
|
|
452
545
|
}>;
|
|
@@ -197,6 +197,9 @@ declare const ca: {
|
|
|
197
197
|
published: string;
|
|
198
198
|
};
|
|
199
199
|
};
|
|
200
|
+
update: {
|
|
201
|
+
error: string;
|
|
202
|
+
};
|
|
200
203
|
};
|
|
201
204
|
error: {
|
|
202
205
|
common: string;
|
|
@@ -271,6 +274,11 @@ declare const ca: {
|
|
|
271
274
|
placeholder: string;
|
|
272
275
|
hint: string;
|
|
273
276
|
};
|
|
277
|
+
defaultContentType: {
|
|
278
|
+
label: string;
|
|
279
|
+
placeholder: string;
|
|
280
|
+
hint: string;
|
|
281
|
+
};
|
|
274
282
|
i18n: {
|
|
275
283
|
label: string;
|
|
276
284
|
hint: string;
|
|
@@ -343,11 +351,24 @@ declare const ca: {
|
|
|
343
351
|
label: string;
|
|
344
352
|
placeholder: string;
|
|
345
353
|
description: string;
|
|
354
|
+
requiredError: string;
|
|
355
|
+
noSpaceError: string;
|
|
346
356
|
};
|
|
347
357
|
label: {
|
|
348
358
|
label: string;
|
|
349
359
|
placeholder: string;
|
|
350
360
|
description: string;
|
|
361
|
+
requiredError: string;
|
|
362
|
+
};
|
|
363
|
+
description: {
|
|
364
|
+
label: string;
|
|
365
|
+
placeholder: string;
|
|
366
|
+
description: string;
|
|
367
|
+
};
|
|
368
|
+
placeholder: {
|
|
369
|
+
label: string;
|
|
370
|
+
placeholder: string;
|
|
371
|
+
description: string;
|
|
351
372
|
};
|
|
352
373
|
type: {
|
|
353
374
|
label: string;
|
|
@@ -359,6 +380,7 @@ declare const ca: {
|
|
|
359
380
|
options: {
|
|
360
381
|
label: string;
|
|
361
382
|
description: string;
|
|
383
|
+
requiredError: string;
|
|
362
384
|
};
|
|
363
385
|
multi: {
|
|
364
386
|
label: string;
|
|
@@ -201,6 +201,9 @@ declare const en: {
|
|
|
201
201
|
published: string;
|
|
202
202
|
};
|
|
203
203
|
};
|
|
204
|
+
update: {
|
|
205
|
+
error: string;
|
|
206
|
+
};
|
|
204
207
|
};
|
|
205
208
|
error: {
|
|
206
209
|
common: string;
|
|
@@ -275,6 +278,11 @@ declare const en: {
|
|
|
275
278
|
placeholder: string;
|
|
276
279
|
hint: string;
|
|
277
280
|
};
|
|
281
|
+
defaultContentType: {
|
|
282
|
+
label: string;
|
|
283
|
+
placeholder: string;
|
|
284
|
+
hint: string;
|
|
285
|
+
};
|
|
278
286
|
i18n: {
|
|
279
287
|
label: string;
|
|
280
288
|
hint: string;
|
|
@@ -347,11 +355,24 @@ declare const en: {
|
|
|
347
355
|
label: string;
|
|
348
356
|
placeholder: string;
|
|
349
357
|
description: string;
|
|
358
|
+
requiredError: string;
|
|
359
|
+
noSpaceError: string;
|
|
350
360
|
};
|
|
351
361
|
label: {
|
|
352
362
|
label: string;
|
|
353
363
|
placeholder: string;
|
|
354
364
|
description: string;
|
|
365
|
+
requiredError: string;
|
|
366
|
+
};
|
|
367
|
+
description: {
|
|
368
|
+
label: string;
|
|
369
|
+
placeholder: string;
|
|
370
|
+
description: string;
|
|
371
|
+
};
|
|
372
|
+
placeholder: {
|
|
373
|
+
label: string;
|
|
374
|
+
placeholder: string;
|
|
375
|
+
description: string;
|
|
355
376
|
};
|
|
356
377
|
type: {
|
|
357
378
|
label: string;
|
|
@@ -364,6 +385,7 @@ declare const en: {
|
|
|
364
385
|
options: {
|
|
365
386
|
label: string;
|
|
366
387
|
description: string;
|
|
388
|
+
requiredError: string;
|
|
367
389
|
};
|
|
368
390
|
multi: {
|
|
369
391
|
label: string;
|
|
@@ -201,6 +201,9 @@ declare const en: {
|
|
|
201
201
|
published: string;
|
|
202
202
|
};
|
|
203
203
|
};
|
|
204
|
+
update: {
|
|
205
|
+
error: string;
|
|
206
|
+
};
|
|
204
207
|
};
|
|
205
208
|
error: {
|
|
206
209
|
common: string;
|
|
@@ -275,6 +278,11 @@ declare const en: {
|
|
|
275
278
|
placeholder: string;
|
|
276
279
|
hint: string;
|
|
277
280
|
};
|
|
281
|
+
defaultContentType: {
|
|
282
|
+
label: string;
|
|
283
|
+
placeholder: string;
|
|
284
|
+
hint: string;
|
|
285
|
+
};
|
|
278
286
|
i18n: {
|
|
279
287
|
label: string;
|
|
280
288
|
hint: string;
|
|
@@ -347,11 +355,24 @@ declare const en: {
|
|
|
347
355
|
label: string;
|
|
348
356
|
placeholder: string;
|
|
349
357
|
description: string;
|
|
358
|
+
requiredError: string;
|
|
359
|
+
noSpaceError: string;
|
|
350
360
|
};
|
|
351
361
|
label: {
|
|
352
362
|
label: string;
|
|
353
363
|
placeholder: string;
|
|
354
364
|
description: string;
|
|
365
|
+
requiredError: string;
|
|
366
|
+
};
|
|
367
|
+
description: {
|
|
368
|
+
label: string;
|
|
369
|
+
placeholder: string;
|
|
370
|
+
description: string;
|
|
371
|
+
};
|
|
372
|
+
placeholder: {
|
|
373
|
+
label: string;
|
|
374
|
+
placeholder: string;
|
|
375
|
+
description: string;
|
|
355
376
|
};
|
|
356
377
|
type: {
|
|
357
378
|
label: string;
|
|
@@ -364,6 +385,7 @@ declare const en: {
|
|
|
364
385
|
options: {
|
|
365
386
|
label: string;
|
|
366
387
|
description: string;
|
|
388
|
+
requiredError: string;
|
|
367
389
|
};
|
|
368
390
|
multi: {
|
|
369
391
|
label: string;
|
|
@@ -201,6 +201,9 @@ declare const fr: {
|
|
|
201
201
|
published: string;
|
|
202
202
|
};
|
|
203
203
|
};
|
|
204
|
+
update: {
|
|
205
|
+
error: string;
|
|
206
|
+
};
|
|
204
207
|
};
|
|
205
208
|
error: {
|
|
206
209
|
common: string;
|
|
@@ -275,6 +278,11 @@ declare const fr: {
|
|
|
275
278
|
placeholder: string;
|
|
276
279
|
hint: string;
|
|
277
280
|
};
|
|
281
|
+
defaultContentType: {
|
|
282
|
+
label: string;
|
|
283
|
+
placeholder: string;
|
|
284
|
+
hint: string;
|
|
285
|
+
};
|
|
278
286
|
i18n: {
|
|
279
287
|
label: string;
|
|
280
288
|
hint: string;
|
|
@@ -347,11 +355,24 @@ declare const fr: {
|
|
|
347
355
|
label: string;
|
|
348
356
|
placeholder: string;
|
|
349
357
|
description: string;
|
|
358
|
+
requiredError: string;
|
|
359
|
+
noSpaceError: string;
|
|
350
360
|
};
|
|
351
361
|
label: {
|
|
352
362
|
label: string;
|
|
353
363
|
placeholder: string;
|
|
354
364
|
description: string;
|
|
365
|
+
requiredError: string;
|
|
366
|
+
};
|
|
367
|
+
description: {
|
|
368
|
+
label: string;
|
|
369
|
+
placeholder: string;
|
|
370
|
+
description: string;
|
|
371
|
+
};
|
|
372
|
+
placeholder: {
|
|
373
|
+
label: string;
|
|
374
|
+
placeholder: string;
|
|
375
|
+
description: string;
|
|
355
376
|
};
|
|
356
377
|
type: {
|
|
357
378
|
label: string;
|
|
@@ -364,6 +385,7 @@ declare const fr: {
|
|
|
364
385
|
options: {
|
|
365
386
|
label: string;
|
|
366
387
|
description: string;
|
|
388
|
+
requiredError: string;
|
|
367
389
|
};
|
|
368
390
|
multi: {
|
|
369
391
|
label: string;
|