@intlayer/types 8.4.0 → 8.4.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 (73) hide show
  1. package/dist/cjs/allLocales.cjs +1 -1
  2. package/dist/cjs/allLocales.cjs.map +1 -1
  3. package/dist/cjs/config.cjs.map +1 -1
  4. package/dist/cjs/index.cjs +1 -1
  5. package/dist/cjs/locales-C4UTuU_K.cjs +2 -0
  6. package/dist/cjs/locales-C4UTuU_K.cjs.map +1 -0
  7. package/dist/cjs/locales.cjs +1 -2
  8. package/dist/esm/allLocales.mjs +1 -1
  9. package/dist/esm/allLocales.mjs.map +1 -1
  10. package/dist/esm/config.mjs.map +1 -1
  11. package/dist/esm/index.mjs +1 -1
  12. package/dist/esm/locales-Df9X3IYy.mjs +2 -0
  13. package/dist/esm/locales-Df9X3IYy.mjs.map +1 -0
  14. package/dist/esm/locales.mjs +1 -2
  15. package/dist/types/allLocales-DeCezB07.d.ts +10 -0
  16. package/dist/types/allLocales-DeCezB07.d.ts.map +1 -0
  17. package/dist/types/allLocales.d.ts +2 -10
  18. package/dist/types/config-D_yheU94.d.ts +1661 -0
  19. package/dist/types/config-D_yheU94.d.ts.map +1 -0
  20. package/dist/types/config.d.ts +2 -1172
  21. package/dist/types/dictionary.d.ts +2 -376
  22. package/dist/types/filePathPattern.d.ts +2 -29
  23. package/dist/types/index.d.ts +5 -9
  24. package/dist/types/keyPath.d.ts +1 -1
  25. package/dist/types/locales-CojWxvz7.d.ts +610 -0
  26. package/dist/types/locales-CojWxvz7.d.ts.map +1 -0
  27. package/dist/types/locales.d.ts +2 -610
  28. package/dist/types/module_augmentation.d.ts +2 -29
  29. package/dist/types/nodeType-DIgDogqh.d.ts +32 -0
  30. package/dist/types/nodeType-DIgDogqh.d.ts.map +1 -0
  31. package/dist/types/nodeType.d.ts +2 -32
  32. package/dist/types/plugin.d.ts +2 -70
  33. package/package.json +1 -1
  34. package/dist/cjs/_virtual/_rolldown/runtime.cjs +0 -1
  35. package/dist/cjs/locales.cjs.map +0 -1
  36. package/dist/esm/_virtual/_rolldown/runtime.mjs +0 -1
  37. package/dist/esm/locales.mjs.map +0 -1
  38. package/dist/types/allLocales.d.ts.map +0 -1
  39. package/dist/types/config.d.ts.map +0 -1
  40. package/dist/types/dictionary.d.ts.map +0 -1
  41. package/dist/types/filePathPattern.d.ts.map +0 -1
  42. package/dist/types/locales.d.ts.map +0 -1
  43. package/dist/types/module_augmentation.d.ts.map +0 -1
  44. package/dist/types/nodeType.d.ts.map +0 -1
  45. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.d.ts +0 -23
  46. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/errors.d.ts.map +0 -1
  47. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.d.ts +0 -17
  48. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/parse.d.ts.map +0 -1
  49. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.d.ts +0 -169
  50. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.d.ts.map +0 -1
  51. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.d.ts +0 -32
  52. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/api.d.ts.map +0 -1
  53. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.d.ts +0 -65
  54. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/checks.d.ts.map +0 -1
  55. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.d.ts +0 -48
  56. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/core.d.ts.map +0 -1
  57. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.d.ts +0 -128
  58. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/errors.d.ts.map +0 -1
  59. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.ts +0 -70
  60. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/json-schema.d.ts.map +0 -1
  61. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.d.ts +0 -32
  62. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/registries.d.ts.map +0 -1
  63. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.d.ts +0 -786
  64. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/schemas.d.ts.map +0 -1
  65. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.ts +0 -121
  66. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/standard-schema.d.ts.map +0 -1
  67. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.ts +0 -97
  68. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.d.ts.map +0 -1
  69. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.d.ts +0 -38
  70. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/util.d.ts.map +0 -1
  71. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.d.ts +0 -9
  72. package/dist/types/node_modules/.bun/zod@4.3.6/node_modules/zod/v4/core/versions.d.ts.map +0 -1
  73. package/dist/types/plugin.d.ts.map +0 -1
@@ -1,1172 +1,2 @@
1
- import { Locale } from "./allLocales.js";
2
- import { ZodType } from "./node_modules/.bun/zod@4.3.6/node_modules/zod/v4/classic/schemas.js";
3
- import { LocalesValues, StrictModeLocaleMap } from "./module_augmentation.js";
4
- import { FilePathPattern } from "./filePathPattern.js";
5
- import { ContentAutoTransformation, DictionaryLocation, Fill } from "./dictionary.js";
6
- import { Plugin } from "./plugin.js";
7
-
8
- //#region src/config.d.ts
9
- type StrictMode = "strict" | "inclusive" | "loose";
10
- type Protocol = "http" | "https";
11
- type URLPath = `/${string}`;
12
- type OptionalURLPath = `/${string}` | "";
13
- type LocalhostURL = `${Protocol}://localhost:${number}${OptionalURLPath}`;
14
- type IPUrl = `${Protocol}://${number}.${string}${OptionalURLPath}` | `${Protocol}://${number}.${string}:${number}${OptionalURLPath}`;
15
- type DomainURL = `${Protocol}://${string}.${string}${OptionalURLPath}`;
16
- type URLType = LocalhostURL | IPUrl | DomainURL | (string & {});
17
- /**
18
- * Configuration for internationalization settings
19
- */
20
- type InternationalizationConfig = {
21
- /**
22
- * Locales available in the application
23
- *
24
- * Default: [Locales.ENGLISH]
25
- *
26
- * You can define a list of available locales to support in the application.
27
- */
28
- locales: Locale[];
29
- /**
30
- * Locales required by TypeScript to ensure strong implementations of internationalized content using typescript.
31
- *
32
- * Default: []
33
- *
34
- * If empty, all locales are required in `strict` mode.
35
- *
36
- * Ensure required locales are also defined in the `locales` field.
37
- */
38
- requiredLocales: Locale[];
39
- /**
40
- * Ensure strong implementations of internationalized content using typescript.
41
- * - If set to "strict", the translation `t` function will require each declared locales to be defined. If one locale is missing, or if a locale is not declared in your config, it will throw an error.
42
- * - If set to "inclusive", the translation `t` function will require each declared locales to be defined. If one locale is missing, it will throw a warning. But will accept if a locale is not declared in your config, but exist.
43
- * - If set to "loose", the translation `t` function will accept any existing locale.
44
- *
45
- * Default: "inclusive"
46
- */
47
- strictMode: StrictMode;
48
- /**
49
- * Default locale of the application for fallback
50
- *
51
- * Default: Locales.ENGLISH
52
- *
53
- * Used to specify a fallback locale in case no other locale is set.
54
- */
55
- defaultLocale: Locale;
56
- };
57
- type CookiesAttributes = {
58
- /**
59
- * Type of the storage
60
- *
61
- * The type of the storage. It can be 'cookie'.
62
- */
63
- type: "cookie";
64
- /**
65
- * Cookie name to store the locale information
66
- *
67
- * Default: 'INTLAYER_LOCALE'
68
- *
69
- * The cookie key where the locale information is stored.
70
- */
71
- name?: string;
72
- /**
73
- * Cookie domain to store the locale information
74
- *
75
- * Default: undefined
76
- *
77
- * Define the domain where the cookie is available. Defaults to
78
- * the domain of the page where the cookie was created.
79
- */
80
- domain?: string;
81
- /**
82
- * Cookie path to store the locale information
83
- *
84
- * Default: undefined
85
- *
86
- * Define the path where the cookie is available. Defaults to '/'
87
- */
88
- path?: string;
89
- /**
90
- * Cookie secure to store the locale information
91
- *
92
- * Default: undefined
93
- *
94
- * A Boolean indicating if the cookie transmission requires a
95
- * secure protocol (https). Defaults to false.
96
- */
97
- secure?: boolean;
98
- /**
99
- * Cookie httpOnly to store the locale information
100
- *
101
- * Default: undefined
102
- *
103
- * The cookie httpOnly where the locale information is stored.
104
- */
105
- httpOnly?: boolean;
106
- /**
107
- * Cookie sameSite to store the locale information
108
- *
109
- * Default: undefined
110
- *
111
- * Asserts that a cookie must not be sent with cross-origin requests,
112
- * providing some protection against cross-site request forgery
113
- * attacks (CSRF)
114
- */
115
- sameSite?: "strict" | "lax" | "none";
116
- /**
117
- * Cookie expires to store the locale information
118
- *
119
- * Default: undefined
120
- *
121
- * Define when the cookie will be removed. Value can be a Number
122
- * which will be interpreted as days from time of creation or a
123
- * Date instance. If omitted, the cookie becomes a session cookie.
124
- */
125
- expires?: Date | number | undefined;
126
- };
127
- type StorageAttributes = {
128
- /**
129
- * Storage type where the locale is stored
130
- *
131
- * Determines whether the locale is persisted in `localStorage` (across sessions)
132
- * or `sessionStorage` (cleared when the browser session ends) or `header` (from the request header).
133
- */
134
- type: "localStorage" | "sessionStorage" | "header";
135
- /**
136
- * Storage key to store the locale information
137
- *
138
- * Default: 'INTLAYER_LOCALE'
139
- *
140
- * The key name used in the client storage to save the locale.
141
- */
142
- name?: string;
143
- };
144
- type RewriteRule<T extends string = string> = {
145
- canonical: T;
146
- localized: StrictModeLocaleMap<string>;
147
- };
148
- type RewriteRules = {
149
- rules: RewriteRule[];
150
- };
151
- type RewriteObject = {
152
- /**
153
- * Used for client-side URL generation (e.g., getLocalizedUrl).
154
- * Patterns are usually stripped of locale prefixes as the core logic handles prefixing.
155
- */
156
- url: RewriteRules;
157
- /**
158
- * Used for Next.js middleware / proxy.
159
- * Patterns usually include [locale] or :locale to match incoming full URLs.
160
- */
161
- nextjs?: RewriteRules;
162
- /**
163
- * Used for Vite proxy middleware.
164
- */
165
- vite?: RewriteRules;
166
- };
167
- /**
168
- * Configuration for routing behaviors
169
- */
170
- type RoutingConfig = {
171
- /**
172
- * Rewrite the URLs to a localized path
173
- *
174
- * Example:
175
- * ```ts
176
- * // ...
177
- * routing: {
178
- * rewrite: nextjsRewrite({
179
- * '[locale]/about': {
180
- * fr: '[locale]/a-propos'
181
- * }
182
- * })
183
- * }
184
- * ```
185
- */
186
- rewrite?: Record<URLPath, StrictModeLocaleMap<URLPath>> | RewriteObject;
187
- /**
188
- * URL routing mode for locale handling
189
- *
190
- * Controls how locales are represented in application URLs:
191
- * - 'prefix-no-default': Prefix all locales except the default locale
192
- * - 'prefix-all': Prefix all locales including the default locale
193
- * - 'no-prefix': No locale prefixing in URLs
194
- * - 'search-params': Use search parameters for locale handling
195
- *
196
- * Examples with defaultLocale = 'en':
197
- * - 'prefix-no-default': /dashboard (en) or /fr/dashboard (fr)
198
- * - 'prefix-all': /en/dashboard (en) or /fr/dashboard (fr)
199
- * - 'no-prefix': /dashboard (locale handled via other means)
200
- * - 'search-params': /dashboard?locale=fr
201
- *
202
- * Note: This setting do not impact the cookie, or locale storage management.
203
- *
204
- * Default: 'prefix-no-default'
205
- */
206
- mode: "prefix-no-default" | "prefix-all" | "no-prefix" | "search-params";
207
- /**
208
- * Configuration for storing the locale in the client (localStorage or sessionStorage)
209
- *
210
- * If false, the locale will not be stored by the middleware.
211
- * If true, the locale storage will consider all default values.
212
- *
213
- * Default: ['cookie', 'header]
214
- *
215
- * Note: Check out GDPR compliance for cookies. See https://gdpr.eu/cookies/
216
- * Note: useLocale hook includes a prop to disable the cookie storage.
217
- * Note: Even if storage is disabled, the middleware will still detect the locale from the request header (1- check for `x-intlayer-locale`, 2- fallback to the `accept-language`).
218
- *
219
- * Recommendation:
220
- * - Config both localStorage and cookies for the storage of the locale if you want to support GDPR compliance.
221
- * - Disable the cookie storage by default on the useLocale hook by waiting for the user to consent to the cookie storage.
222
- */
223
- storage: false | "cookie" | "localStorage" | "sessionStorage" | "header" | CookiesAttributes | StorageAttributes | ("cookie" | "localStorage" | "sessionStorage" | "header" | CookiesAttributes | StorageAttributes)[];
224
- /**
225
- * Base path for application URLs
226
- *
227
- * Default: ''
228
- *
229
- * Defines the base path where the application is accessible from.
230
- */
231
- basePath: string;
232
- };
233
- /**
234
- * Configuration for intlayer editor
235
- */
236
- type EditorConfig = {
237
- /**
238
- * URL of the application. Used to restrict the origin of the editor for security reasons.
239
- *
240
- * Default: ''
241
- */
242
- applicationURL?: URLType;
243
- editorURL?: URLType;
244
- cmsURL?: URLType;
245
- backendURL?: URLType;
246
- /**
247
- * Indicates if the application interact with the visual editor
248
- *
249
- * Default: false;
250
- *
251
- * If true, the editor will be able to interact with the application.
252
- * If false, the editor will not be able to interact with the application.
253
- * In any case, the editor can only be enabled by the visual editor.
254
- * Disabling the editor for specific environments is a way to enforce the security.
255
- *
256
- * Usage:
257
- * ```js
258
- * {
259
- * // Other configurations
260
- * editor: {
261
- * enabled: process.env.NODE_ENV !== 'production',
262
- * }
263
- * };
264
- * ```
265
- *
266
- */
267
- enabled: boolean;
268
- /** Port of the editor server
269
- *
270
- * Default: 8000
271
- */
272
- port: number;
273
- /**
274
- * clientId and clientSecret allow the intlayer packages to authenticate with the backend using oAuth2 authentication.
275
- * An access token is use to authenticate the user related to the project.
276
- * To get an access token, go to https://app.intlayer.org/project and create an account.
277
- *
278
- * Default: undefined
279
- *
280
- * > Important: The clientId and clientSecret should be kept secret and not shared publicly. Please ensure to keep them in a secure location, such as environment variables.
281
- */
282
- clientId?: string;
283
- /**
284
- * clientId and clientSecret allow the intlayer packages to authenticate with the backend using oAuth2 authentication.
285
- * An access token is use to authenticate the user related to the project.
286
- * To get an access token, go to https://app.intlayer.org/project and create an account.
287
- *
288
- * Default: undefined
289
- *
290
- * > Important: The clientId and clientSecret should be kept secret and not shared publicly. Please ensure to keep them in a secure location, such as environment variables.
291
- */
292
- clientSecret?: string;
293
- /**
294
- * Strategy for prioritizing dictionaries. If a dictionary is both present online and locally, the content will be merge.
295
- * However, is a field is defined in both dictionary, this setting determines which fields takes the priority over the other.
296
- *
297
- * Default: 'local_first'
298
- *
299
- * The strategy for prioritizing dictionaries. It can be either 'local_first' or 'distant_first'.
300
- * - 'local_first': The first dictionary found in the locale is used.
301
- * - 'distant_first': The first dictionary found in the distant locales is used.
302
- */
303
- dictionaryPriorityStrategy: "local_first" | "distant_first";
304
- /**
305
- * Indicates if the application should hot reload the locale configurations when a change is detected.
306
- * For example, when a new dictionary is added or updated, the application will update the content tu display in the page.
307
- *
308
- * Default: true
309
- */
310
- liveSync: boolean;
311
- /**
312
- * Port of the live sync server
313
- *
314
- * Default: 4000
315
- */
316
- liveSyncPort: number;
317
- /**
318
- * URL of the live sync server in case of remote live sync server
319
- *
320
- * Default: `http://localhost:${liveSyncPort}`
321
- */
322
- liveSyncURL: URLType;
323
- };
324
- declare enum AiProviders {
325
- OPENAI = "openai",
326
- ANTHROPIC = "anthropic",
327
- MISTRAL = "mistral",
328
- DEEPSEEK = "deepseek",
329
- GEMINI = "gemini",
330
- OLLAMA = "ollama",
331
- OPENROUTER = "openrouter",
332
- ALIBABA = "alibaba",
333
- FIREWORKS = "fireworks",
334
- GROQ = "groq",
335
- HUGGINGFACE = "huggingface",
336
- BEDROCK = "bedrock",
337
- GOOGLEVERTEX = "googlevertex",
338
- GOOGLEGENERATIVEAI = "googlegenerativeai",
339
- TOGETHERAI = "togetherai"
340
- }
341
- type CommonAiConfig = {
342
- /**
343
- * API model
344
- *
345
- * The model to use for the AI features of Intlayer.
346
- *
347
- * Example: 'gpt-4o-2024-11-20'
348
- *
349
- */
350
- model?: string;
351
- /**
352
- * temperature
353
- *
354
- * The temperature to use for the AI features of Intlayer.
355
- * The temperature controls the randomness of the AI's responses.
356
- * A higher temperature will make the AI more creative and less predictable.
357
- *
358
- * Example: 0.1
359
- */
360
- temperature?: number;
361
- /**
362
- * API key
363
- *
364
- * Use your own OpenAI API key to use the AI features of Intlayer.
365
- * If you don't have an OpenAI API key, you can get one for free at https://openai.com/api/.
366
- *
367
- */
368
- apiKey?: string;
369
- /**
370
- * Application context
371
- *
372
- * The context of the application to use for the AI features of Intlayer.
373
- *
374
- * Example: 'This is a website for a company that sells products online.'
375
- */
376
- applicationContext?: string;
377
- /**
378
- * Base URL
379
- *
380
- * The base URL to use for the AI features of Intlayer.
381
- *
382
- * Example: 'https://api.openai.com/v1'
383
- */
384
- baseURL?: string;
385
- /**
386
- * Data serialization
387
- *
388
- * The data serialization format to use for the AI features of Intlayer.
389
- *
390
- * Default: 'json'
391
- */
392
- dataSerialization?: "json" | "toon";
393
- };
394
- type AiProviderConfigMap = {};
395
- type AiConfigUnion = { [P in keyof AiProviderConfigMap]: {
396
- provider: P | `${P}`;
397
- } & AiProviderConfigMap[P] }[keyof AiProviderConfigMap];
398
- type AiConfig = CommonAiConfig & (AiConfigUnion | {
399
- provider?: AiProviders | `${AiProviders}`;
400
- });
401
- type BuildConfig = {
402
- /**
403
- * Indicates the mode of the build
404
- *
405
- * Default: 'auto'
406
- *
407
- * If 'auto', the build will be enabled automatically when the application is built.
408
- * If 'manual', the build will be set only when the build command is executed.
409
- *
410
- * Can be used to disable dictionaries build, for instance when execution on Node.js environment should be avoided.
411
- */
412
- mode: "auto" | "manual";
413
- /**
414
- * Indicates if the build should be optimized
415
- *
416
- * Default: undefined
417
- *
418
- * If true, the build will be optimized.
419
- * If false, the build will not be optimized.
420
- *
421
- * Intlayer will replace all calls of dictionaries to optimize chunking. That way the final bundle will import only the dictionaries that are used.
422
- * All imports will stay as static import to avoid async processing when loading the dictionaries.
423
- *
424
- * Note:
425
- * - Intlayer will replace all call of `useIntlayer` with the defined mode by the `importMode` option.
426
- * - Intlayer will replace all call of `getIntlayer` with `getDictionary`.
427
- * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.
428
- * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.
429
- */
430
- optimize?: boolean;
431
- /**
432
- * Indicates the mode of import to use for the dictionaries.
433
- *
434
- * Available modes:
435
- * - "static": The dictionaries are imported statically.
436
- * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionary`.
437
- * - "dynamic": The dictionaries are imported dynamically in a synchronous component using the suspense API.
438
- * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.
439
- * - "fetch": The dictionaries are imported dynamically using the live sync API.
440
- * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.
441
- * Fetch mode will use the live sync API to fetch the dictionaries. If the API call fails, the dictionaries will be imported dynamically as "dynamic" mode.
442
- *
443
- * Default: "static"
444
- *
445
- * By default, when a dictionary is loaded, it imports content for all locales as it's imported statically.
446
- *
447
- * Note:
448
- * - Dynamic imports rely on Suspense and may slightly impact rendering performance.
449
- * - If desabled all locales will be loaded at once, even if they are not used.
450
- * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.
451
- * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.
452
- * - This option will be ignored if `optimize` is disabled.
453
- * - This option will not impact the `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` and `useDictionaryDynamic` functions. You can still use them to refine you code on manual optimization.
454
- * - The "fetch" allows to sync the dictionaries to the live sync server.
455
- * - Require static key to work. Example of invalid code: `const navbarKey = "my-key"; useIntlayer(navbarKey)`.
456
- *
457
- * @deprecated Use `dictionary.importMode` instead.
458
- */
459
- importMode?: "static" | "dynamic" | "fetch";
460
- /**
461
- * Pattern to traverse the code to optimize.
462
- *
463
- * Allows to avoid to traverse the code that is not relevant to the optimization.
464
- * Improve build performance.
465
- *
466
- * Default: ['**\/*.{js,ts,mjs,cjs,jsx,tsx}', '!**\/node_modules/**']
467
- *
468
- * Example: `['src/**\/*.{ts,tsx}', '../ui-library/**\/*.{ts,tsx}', '!**\/node_modules/**']`
469
- *
470
- * Note:
471
- * - This option will be ignored if `optimize` is disabled.
472
- * - Use glob pattern.
473
- */
474
- traversePattern: string[];
475
- /**
476
- * Output format of the dictionaries
477
- *
478
- * Default: ['cjs', 'esm']
479
- *
480
- * The output format of the dictionaries. It can be either 'cjs' or 'esm'. Even if dictionaries are written in JSON, entry point to access the dictionaries are generated.
481
- * This function will use the output format defined using this option.
482
- * The default format is 'cjs' as it allows better interoperability with other libraries, scripts, and applications. But some build tools, such as Vite, require ES modules.
483
- */
484
- outputFormat: ("cjs" | "esm")[];
485
- /**
486
- * Indicates if the cache should be enabled
487
- *
488
- * Default: true
489
- *
490
- * If true, the cache will be enabled.
491
- * If false, the cache will not be enabled.
492
- */
493
- cache: boolean;
494
- /**
495
- * Require function
496
- *
497
- * In some environments, as VSCode extension, the require function should be set relatively to the project root to work properly.
498
- *
499
- * Default: undefined
500
- *
501
- * If undefined, the require function will be set to the default require function.
502
- * If defined, the require function will be set to the defined require function.
503
- *
504
- * Example:
505
- * ```js
506
- * {
507
- * require: require
508
- * }
509
- * ```
510
- */
511
- require?: NodeJS.Require;
512
- /**
513
- * Indicates if the build should check TypeScript types
514
- *
515
- * Default: false
516
- *
517
- * If true, the build will check TypeScript types and log errors.
518
- * Note: This can slow down the build.
519
- */
520
- checkTypes: boolean;
521
- };
522
- type CompilerConfig = {
523
- /**
524
- * Indicates if the compiler should be enabled.
525
- * If 'build-only', the compiler will be skipped during development mode to speed up start times.
526
- */
527
- enabled: boolean | "build-only";
528
- /**
529
- * Prefix for the extracted dictionary keys.
530
- * Default: ''
531
- */
532
- dictionaryKeyPrefix?: string;
533
- /**
534
- * Pattern to traverse the code to optimize.
535
- *
536
- * Allows to avoid to traverse the code that is not relevant to the optimization.
537
- * Improve build performance.
538
- *
539
- * Default: ['**\/*.{ts,tsx,jsx,js,cjs,mjs,svelte,vue}', '!**\/node_modules/**']
540
- *
541
- * Example: `['src/**\/*.{ts,tsx}', '../ui-library/**\/*.{ts,tsx}', '!**\/node_modules/**']`
542
- *
543
- * Note:
544
- * - This option will be ignored if `optimize` is disabled.
545
- * - Use glob pattern.
546
- *
547
- * @deprecated use build.traversePattern instead
548
- */
549
- transformPattern?: string | string[];
550
- /**
551
- * Pattern to exclude from the optimization.
552
- *
553
- * Allows to exclude files from the optimization.
554
- *
555
- * Default: ['**\/node_modules/**']
556
- *
557
- * Example: `['**\/node_modules/**', '!**\/node_modules/react/**']`
558
- *
559
- * @deprecated use build.traversePattern instead
560
- */
561
- excludePattern?: string | string[];
562
- /**
563
- * Defines the output files path. Replaces `outputDir`.
564
- *
565
- * - `./` paths are resolved relative to the component directory.
566
- * - `/` paths are resolved relative to the project root (`baseDir`).
567
- *
568
- * - Including the `{{locale}}` variable in the path will trigger the generation of separate dictionaries per locale.
569
- *
570
- * Example:
571
- * ```ts
572
- * {
573
- * // Create Multilingual .content.ts files close to the component
574
- * output: ({ fileName, extension }) => `./${fileName}${extension}`,
575
- *
576
- * // output: './{{fileName}}{{extension}}', // Equivalent using template string
577
- * }
578
- * ```
579
- *
580
- * ```ts
581
- * {
582
- * // Create centralize per-locale JSON at the root of the project
583
- * output: ({ key, locale }) => `/locales/${locale}/${key}.content.json`,
584
- *
585
- * // output: '/locales/{{locale}}/{{key}}.content.json', // Equivalent using template string
586
- * }
587
- * ```
588
- *
589
- * Variable list:
590
- * - `fileName`: The name of the file.
591
- * - `key`: The key of the content.
592
- * - `locale`: The locale of the content.
593
- * - `extension`: The extension of the file.
594
- * - `componentFileName`: The name of the component file.
595
- * - `componentExtension`: The extension of the component file.
596
- * - `format`: The format of the dictionary.
597
- * - `componentFormat`: The format of the component dictionary.
598
- * - `componentDirPath`: The directory path of the component.
599
- */
600
- output?: FilePathPattern;
601
- /**
602
- * Indicates if the metadata should be saved in the file.
603
- *
604
- * If true, the compiler will not save the metadata of the dictionaries.
605
- *
606
- * If true:
607
- *
608
- * ```json
609
- * {
610
- * "key": "value"
611
- * }
612
- * ```
613
- *
614
- * If false:
615
- *
616
- * ```json
617
- * {
618
- * "key": "value",
619
- * "content": {
620
- * "key": "value"
621
- * }
622
- * }
623
- * ```
624
- *
625
- * Default: false
626
- *
627
- * Note: Useful if used with loadJSON plugin
628
- *
629
- */
630
- noMetadata?: boolean;
631
- /**
632
- * Indicates if the components should be saved after being transformed.
633
- *
634
- * If true, the compiler will replace the original files with the transformed files.
635
- * That way, the compiler can be run only once to transform the app, and then it can be removed.
636
- *
637
- * Default: false
638
- */
639
- saveComponents: boolean;
640
- };
641
- /**
642
- * Custom configuration that can be provided to override default settings
643
- */
644
- type CustomIntlayerConfig = {
645
- /**
646
- * Custom internationalization configuration
647
- */
648
- internationalization?: Partial<InternationalizationConfig>;
649
- /**
650
- * Custom dictionary configuration
651
- */
652
- dictionary?: Partial<DictionaryConfig>;
653
- /**
654
- * Custom routing configuration
655
- */
656
- routing?: Partial<RoutingConfig>;
657
- /**
658
- * Custom content configuration
659
- */
660
- content?: Partial<ContentConfig>;
661
- /**
662
- * Custom editor configuration
663
- */
664
- editor?: Partial<EditorConfig>;
665
- /**
666
- * Custom log configuration
667
- */
668
- log?: Partial<LogConfig>;
669
- /**
670
- * Custom AI configuration
671
- */
672
- ai?: Partial<AiConfig>;
673
- /**
674
- * Custom build configuration
675
- */
676
- build?: Partial<BuildConfig>;
677
- /**
678
- * Custom compiler configuration
679
- */
680
- compiler?: Partial<CompilerConfig>;
681
- /**
682
- * Custom system configuration
683
- */
684
- system?: Partial<SystemConfig>;
685
- /**
686
- * Custom schemas to validate the dictionaries content.
687
- *
688
- * Example:
689
- * ```ts
690
- * {
691
- * schemas: {
692
- * 'my-schema': z.object({
693
- * title: z.string(),
694
- * description: z.string(),
695
- * }),
696
- * }
697
- * }
698
- * ```
699
- */
700
- schemas?: Record<string, ZodType>;
701
- /**
702
- * Custom plugins configuration
703
- */
704
- plugins?: (Plugin | Promise<Plugin>)[];
705
- };
706
- type DictionaryConfig = {
707
- /**
708
- * Indicate how the dictionary should be filled using AI.
709
- *
710
- * Default: `true`
711
- *
712
- * - If `true`, will consider the `compiler.output` field.
713
- * - If `false`, will skip the fill process.
714
- *
715
- * - `./` paths are resolved relative to the component directory.
716
- * - `/` paths are resolved relative to the project root (`baseDir`).
717
- *
718
- * - If includes `{{locale}}` variable in the path, will trigger the generation of separate dictionaries per locale.
719
- *
720
- * Example:
721
- * ```ts
722
- * {
723
- * // Create Multilingual .content.ts files close to the component
724
- * fill: ({ fileName, extension }) => `./${fileName}${extension}`,
725
- *
726
- * // fill: './{{fileName}}{{extension}}', // Equivalent using template string
727
- * }
728
- * ```
729
- *
730
- * ```ts
731
- * {
732
- * // Create centralize per-locale JSON at the root of the project
733
- * fill: ({ key, locale }) => `/locales/${locale}/${key}.content.json`,
734
- *
735
- * // fill: '/locales/{{locale}}/{{key}}.content.json', // Equivalent using template string
736
- * }
737
- * ```
738
- *
739
- * ```ts
740
- * {
741
- * // Create custom output based on the locale
742
- * fill: {
743
- * en: ({ key }) => `/locales/en/${key}.content.json`,
744
- * fr: '/locales/fr/{{key}}.content.json',
745
- * es: false,
746
- * de: true,
747
- * },
748
- * }
749
- * ```
750
- *
751
- *
752
- * Variable list:
753
- * - `fileName`: The name of the file.
754
- * - `key`: The key of the content.
755
- * - `locale`: The locale of the content.
756
- * - `extension`: The extension of the file.
757
- * - `componentFileName`: The name of the component file.
758
- * - `componentExtension`: The extension of the component file.
759
- * - `format`: The format of the dictionary.
760
- * - `componentFormat`: The format of the component dictionary.
761
- * - `componentDirPath`: The directory path of the component.
762
- */
763
- fill?: Fill;
764
- /**
765
- * The description of the dictionary. Helps to understand the purpose of the dictionary in the editor, and the CMS.
766
- * The description is also used as context for translations generation.
767
- *
768
- * Example:
769
- * ```ts
770
- * {
771
- * "key": "about-page-meta",
772
- * "description":[
773
- * "This dictionary is manage the metadata of the About Page",
774
- * "Consider good practices for SEO:",
775
- * "- The title should be between 50 and 60 characters",
776
- * "- The description should be between 150 and 160 characters",
777
- * ].join('\n'),
778
- * "content": { ... }
779
- * }
780
- * ```
781
- */
782
- description?: string;
783
- /**
784
- * Transform the dictionary in a per-locale dictionary.
785
- * Each field declared in a per-locale dictionary will be transformed in a translation node.
786
- * If missing, the dictionary will be treated as a multilingual dictionary.
787
- * If declared, do not use translation nodes in the content.
788
- *
789
- * Example:
790
- * ```json
791
- * {
792
- * "key": "about-page",
793
- * "locale": "en",
794
- * "content": {
795
- * "multilingualContent": "English content"
796
- * }
797
- * }
798
- * ```
799
- */
800
- locale?: LocalesValues;
801
- /**
802
- * Indicators if the content of the dictionary should be automatically transformed.
803
- * If true, the content will be transformed to the corresponding node type.
804
- * - Markdown: `### Title` -> `md('### Title')`
805
- * - HTML: `<div>Title</div>` -> `html('<div>Title</div>')`
806
- * - Insertion: `Hello {{name}}` -> `insert('Hello {{name}}')`
807
- *
808
- * If an object is provided, you can specify which transformations should be enabled.
809
- *
810
- * Default: false
811
- */
812
- contentAutoTransformation?: ContentAutoTransformation;
813
- /**
814
- * Indicates the priority of the dictionary.
815
- * In the case of conflicts, the dictionary with the highest priority will override the other dictionaries.
816
- */
817
- priority?: number;
818
- /**
819
- * Indicates the mode of import to use for the dictionaries.
820
- *
821
- * Available modes:
822
- * - "static": The dictionaries are imported statically.
823
- * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionary`.
824
- * - "dynamic": The dictionaries are imported dynamically in a synchronous component using the suspense API.
825
- * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.
826
- * - "fetch": The dictionaries are imported dynamically using the live sync API.
827
- * In that case, Intlayer will replace all calls to `useIntlayer` with `useDictionaryDynamic`.
828
- * Fetch mode will use the live sync API to fetch the dictionaries. If the API call fails, the dictionaries will be imported dynamically as "dynamic" mode.
829
- *
830
- * Default: "static"
831
- *
832
- * By default, when a dictionary is loaded, it imports content for all locales as it's imported statically.
833
- *
834
- * Note:
835
- * - Dynamic imports rely on Suspense and may slightly impact rendering performance.
836
- * - If disabled all locales will be loaded at once, even if they are not used.
837
- * - This option relies on the `@intlayer/babel` and `@intlayer/swc` plugins.
838
- * - Ensure all keys are declared statically in the `useIntlayer` calls. e.g. `useIntlayer('navbar')`.
839
- * - This option will be ignored if `optimize` is disabled.
840
- * - This option will not impact the `getIntlayer`, `getDictionary`, `useDictionary`, `useDictionaryAsync` and `useDictionaryDynamic` functions. You can still use them to refine you code on manual optimization.
841
- * - The "fetch" allows to sync the dictionaries to the live sync server.
842
- * - Require static key to work. Example of invalid code: `const navbarKey = "my-key"; useIntlayer(navbarKey)`.
843
- */
844
- importMode?: "static" | "dynamic" | "fetch";
845
- /**
846
- * The title of the dictionary. Helps to identify the dictionary in the editor, and the CMS.
847
- *
848
- * Example:
849
- * ```json
850
- * {
851
- * "key": "about-page-meta",
852
- * "title": "About Page",
853
- * "content": { ... }
854
- * }
855
- * ```
856
- */
857
- title?: string;
858
- /**
859
- * Helps to categorize the dictionaries. The tags can provide more context and instructions for the dictionary.
860
- *
861
- * Example:
862
- * ```json
863
- * {
864
- * "key": "about-page-meta",
865
- * "tags": ["metadata","about-page"]
866
- * }
867
- * ```
868
- */
869
- tags?: string[];
870
- /**
871
- * Indicates the location of the dictionary and controls how it synchronizes with the CMS.
872
- *
873
- * - 'hybrid': The dictionary is managed locally and remotely. Once pushed on the CMS, it will be synchronized from the local one. The local dictionary will be pulled from the CMS.
874
- * - 'remote': The dictionary is managed remotely only. Once pushed on the CMS, it will be detached from the local one. At content load time, the remote dictionary will be pulled from the CMS. A '.content' file with remote location will be ignored.
875
- * - 'local': The dictionary is managed locally. It will not be pushed to the remote CMS.
876
- * - 'plugin' (or any custom string): The dictionary is managed by a plugin, or a custom source. When you will try to push it, the system will ask an action to the user.
877
- */
878
- location?: DictionaryLocation;
879
- };
880
- /**
881
- * Combined configuration for internationalization, middleware, and content
882
- */
883
- type IntlayerConfig = {
884
- /**
885
- * Internationalization configuration
886
- */
887
- internationalization: InternationalizationConfig;
888
- /**
889
- * Default dictionary configuration
890
- */
891
- dictionary?: Partial<DictionaryConfig>;
892
- /**
893
- * Routing configuration
894
- */
895
- routing: RoutingConfig;
896
- /**
897
- * Content configuration
898
- */
899
- content: ContentConfig;
900
- /**
901
- * System configuration
902
- */
903
- system: SystemConfig;
904
- /**
905
- * Intlayer editor configuration
906
- */
907
- editor: EditorConfig;
908
- /**
909
- * Logger configuration
910
- */
911
- log: LogConfig;
912
- /**
913
- * AI configuration
914
- */
915
- ai?: Partial<AiConfig>;
916
- /**
917
- * Build configuration
918
- */
919
- build: BuildConfig;
920
- /**
921
- * Compiler configuration
922
- */
923
- compiler: CompilerConfig;
924
- /**
925
- * Custom schemas to validate the dictionaries content.
926
- */
927
- schemas?: Record<string, ZodType>;
928
- /**
929
- * Plugins configuration
930
- */
931
- plugins?: Plugin[];
932
- /**
933
- * Metadata of the project
934
- */
935
- metadata: {
936
- name: string;
937
- version: string;
938
- doc: string;
939
- };
940
- };
941
- /**
942
- * Configuration for content handling
943
- */
944
- type ContentConfig = {
945
- /**
946
- * File extensions of content to look for
947
- *
948
- * Default: ['.content.ts', '.content.js', '.content.cjs', '.content.mjs', '.content.json', '.content.tsx', '.content.jsx']
949
- *
950
- * List of file extensions to scan for content.
951
- */
952
- fileExtensions: string[];
953
- /**
954
- * Directory where the content is stored, relative to the base directory
955
- *
956
- * Default: ['.']
957
- *
958
- * Derived content directory based on the base configuration.
959
- *
960
- * Note: This is used to watch for content files.
961
- */
962
- contentDir: string[];
963
- /**
964
- * Directory where the code is stored, relative to the base directory
965
- *
966
- * Default: ['.']
967
- *
968
- * Derived code directory based on the base configuration.
969
- *
970
- * Note: This is used to watch for code files to transform.
971
- */
972
- codeDir: string[];
973
- /**
974
- * Directories to be excluded from content processing
975
- *
976
- * Default: ['node_modules', '.intlayer']
977
- *
978
- * A list of directories to exclude from content processing.
979
- */
980
- excludedPath: string[];
981
- /**
982
- * Indicates if Intlayer should watch for changes in the content declaration files in the app to rebuild the related dictionaries.
983
- *
984
- * Default: process.env.NODE_ENV === 'development'
985
- */
986
- watch: boolean;
987
- /**
988
- * Command to format the content. When intlayer write your .content files locally, this command will be used to format the content.
989
- *
990
- * Example:
991
- *
992
- * ```bash
993
- * npx prettier --write {{file}}
994
- * ```
995
- *
996
- * ```bash
997
- * bunx biome format {{file}}
998
- * ```
999
- *
1000
- * ```bash
1001
- * bun format {{file}}
1002
- * ```
1003
- *
1004
- * ```bash
1005
- * npx eslint --fix {{file}}
1006
- * ```
1007
- *
1008
- * Intlayer will replace the {{file}} with the path of the file to format.
1009
- *
1010
- * Default: undefined
1011
- */
1012
- formatCommand: string | undefined;
1013
- /**
1014
- * Patterns of files to watch for changes
1015
- *
1016
- * Default: ['/**\/*.content.ts', '/**\/*.content.js', '/**\/*.content.json', '/**\/*.content.cjs', '/**\/*.content.mjs', '/**\/*.content.tsx', '/**\/*.content.jsx']
1017
- *
1018
- * Defines file patterns for content to watch for changes.
1019
- */
1020
- watchedFilesPattern: string[];
1021
- /**
1022
- * Patterns of files to watch for changes including the relative path
1023
- *
1024
- * Default: ['src/**\/*.content.ts', 'src/**\/*.content.js', 'src/**\/*.content.json', 'src/**\/*.content.cjs', 'src/**\/*.content.mjs', 'src/**\/*.content.tsx', 'src/**\/*.content.jsx']
1025
- *
1026
- * Specifies the file patterns for content to watch, including relative paths.
1027
- */
1028
- watchedFilesPatternWithPath: string[];
1029
- };
1030
- type SystemConfig = {
1031
- /**
1032
- * Absolute path of the project's base directory
1033
- *
1034
- * Default: process.cwd()
1035
- *
1036
- * The root directory of the project, typically used for resolving other paths.
1037
- */
1038
- baseDir: string;
1039
- /**
1040
- * Directory for module augmentation, relative to the base directory
1041
- *
1042
- * Default: .intlayer/types
1043
- *
1044
- * Defines the derived path for module augmentation.
1045
- */
1046
- moduleAugmentationDir: string;
1047
- /**
1048
- * Directory where unmerged dictionaries are stored, relative to the result directory
1049
- *
1050
- * Default: .intlayer/unmerged_dictionary
1051
- *
1052
- * Specifies the derived path for unmerged dictionaries relative to the result directory.
1053
- */
1054
- unmergedDictionariesDir: string;
1055
- /**
1056
- * Directory where remote dictionaries are stored, relative to the result directory
1057
- *
1058
- * Default: .intlayer/remote_dictionary
1059
- *
1060
- * Specifies the derived path for remote dictionaries relative to the result directory.
1061
- */
1062
- remoteDictionariesDir: string;
1063
- /**
1064
- * Directory where final dictionaries are stored, relative to the result directory
1065
- *
1066
- * Default: .intlayer/dictionary
1067
- *
1068
- * Specifies the derived path for dictionaries relative to the result directory.
1069
- */
1070
- dictionariesDir: string;
1071
- /**
1072
- * Directory where dynamic dictionaries are stored, relative to the result directory
1073
- *
1074
- * Default: .intlayer/dynamic_dictionary
1075
- *
1076
- * Specifies the derived path for dynamic dictionaries relative to the result directory.
1077
- */
1078
- dynamicDictionariesDir: string;
1079
- /**
1080
- * Directory where fetch dictionaries are stored, relative to the result directory
1081
- *
1082
- * Default: .intlayer/fetch_dictionary
1083
- *
1084
- * Specifies the derived path for fetch dictionaries relative to the result directory.
1085
- */
1086
- fetchDictionariesDir: string;
1087
- /**
1088
- * Directory where dictionary types are stored, relative to the result directory
1089
- *
1090
- * Default: .intlayer/types
1091
- *
1092
- * Specifies the derived path for dictionary types relative to the result directory.
1093
- */
1094
- typesDir: string;
1095
- /**
1096
- * Directory where the main files are stored, relative to the result directory
1097
- *
1098
- * Default: .intlayer/main
1099
- *
1100
- * Specifies the derived path for the main files relative to the result directory.
1101
- */
1102
- mainDir: string;
1103
- /**
1104
- * Directory where the configuration files are stored, relative to the result directory
1105
- *
1106
- * Default: .intlayer/config
1107
- *
1108
- * Specifies the derived path for the configuration files relative to the result directory.
1109
- */
1110
- configDir: string;
1111
- /**
1112
- * Directory where the cache files are stored, relative to the result directory
1113
- *
1114
- * Default: .intlayer/cache
1115
- *
1116
- * Specifies the derived path for the cache files relative to the result directory.
1117
- */
1118
- cacheDir: string;
1119
- /**
1120
- * Directory where the temp files are stored, relative to the result directory
1121
- *
1122
- * Default: .intlayer/tmp
1123
- *
1124
- * Specifies the derived path for the tmp files relative to the result directory.
1125
- */
1126
- tempDir: string;
1127
- /**
1128
- * Pattern for output files including the relative path
1129
- *
1130
- * Default: '{{dictionariesDir}}/**\/*.json'
1131
- *
1132
- * Defines the pattern for output files, including the relative path.
1133
- */
1134
- outputFilesPatternWithPath: string;
1135
- };
1136
- type LogFunctions = {
1137
- error?: typeof console.error;
1138
- log?: typeof console.log;
1139
- info?: typeof console.info;
1140
- warn?: typeof console.warn;
1141
- };
1142
- type LogConfig = {
1143
- /**
1144
- * Indicates if the logger is enabled
1145
- *
1146
- * Default: true
1147
- *
1148
- * If 'default', the logger is enabled and can be used.
1149
- * If 'verbose', the logger will be enabled and can be used, but will log more information.
1150
- * If 'disabled', the logger is disabled and cannot be used.
1151
- */
1152
- mode: "default" | "verbose" | "disabled";
1153
- /**
1154
- * Prefix of the logger
1155
- *
1156
- * Default: '[intlayer]'
1157
- *
1158
- * The prefix of the logger.
1159
- */
1160
- prefix: string;
1161
- /**
1162
- * Functions to log
1163
- */
1164
- error?: typeof console.error;
1165
- log?: typeof console.log;
1166
- info?: typeof console.info;
1167
- warn?: typeof console.warn;
1168
- debug?: typeof console.debug;
1169
- };
1170
- //#endregion
1171
- export { AiConfig, AiProviderConfigMap, AiProviders, BuildConfig, CommonAiConfig, CompilerConfig, ContentConfig, CookiesAttributes, CustomIntlayerConfig, DictionaryConfig, EditorConfig, InternationalizationConfig, IntlayerConfig, LogConfig, LogFunctions, RewriteObject, RewriteRule, RewriteRules, RoutingConfig, StorageAttributes, StrictMode, SystemConfig, URLType };
1172
- //# sourceMappingURL=config.d.ts.map
1
+ import { C as SystemConfig, S as StrictMode, _ as RewriteRule, a as CommonAiConfig, b as Schema, c as CookiesAttributes, d as EditorConfig, f as InternationalizationConfig, g as RewriteObject, h as LogFunctions, i as BuildConfig, l as CustomIntlayerConfig, m as LogConfig, n as AiProviderConfigMap, o as CompilerConfig, p as IntlayerConfig, r as AiProviders, s as ContentConfig, t as AiConfig, u as DictionaryConfig, v as RewriteRules, w as URLType, x as StorageAttributes, y as RoutingConfig } from "./config-D_yheU94.js";
2
+ export { AiConfig, AiProviderConfigMap, AiProviders, BuildConfig, CommonAiConfig, CompilerConfig, ContentConfig, CookiesAttributes, CustomIntlayerConfig, DictionaryConfig, EditorConfig, InternationalizationConfig, IntlayerConfig, LogConfig, LogFunctions, RewriteObject, RewriteRule, RewriteRules, RoutingConfig, Schema, StorageAttributes, StrictMode, SystemConfig, URLType };