@intlayer/config 9.4.3 → 9.5.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 +0 -2
- package/dist/cjs/callers/compat/lingui.cjs +18 -28
- package/dist/cjs/callers/compat/lingui.cjs.map +1 -1
- package/dist/cjs/callers/compat/reactI18next.cjs +1 -0
- package/dist/cjs/callers/compat/reactI18next.cjs.map +1 -1
- package/dist/cjs/callers/compat/reactIntl.cjs +26 -15
- package/dist/cjs/callers/compat/reactIntl.cjs.map +1 -1
- package/dist/cjs/callers/index.cjs +1 -0
- package/dist/cjs/callers/index.cjs.map +1 -1
- package/dist/cjs/callers/transform.cjs +16 -9
- package/dist/cjs/callers/transform.cjs.map +1 -1
- package/dist/esm/bundle/index.mjs +1 -1
- package/dist/esm/callers/compat/lingui.mjs +18 -28
- package/dist/esm/callers/compat/lingui.mjs.map +1 -1
- package/dist/esm/callers/compat/reactI18next.mjs +1 -0
- package/dist/esm/callers/compat/reactI18next.mjs.map +1 -1
- package/dist/esm/callers/compat/reactIntl.mjs +26 -15
- package/dist/esm/callers/compat/reactIntl.mjs.map +1 -1
- package/dist/esm/callers/index.mjs +2 -2
- package/dist/esm/callers/index.mjs.map +1 -1
- package/dist/esm/callers/transform.mjs +16 -10
- package/dist/esm/callers/transform.mjs.map +1 -1
- package/dist/types/built.d.ts +13 -14
- package/dist/types/built.d.ts.map +1 -1
- package/dist/types/bundle/index.d.ts +3 -4
- package/dist/types/bundle/index.d.ts.map +1 -1
- package/dist/types/bundle/logBundle.d.ts +1 -2
- package/dist/types/bundle/logBundle.d.ts.map +1 -1
- package/dist/types/callers/base.d.ts +1 -2
- package/dist/types/callers/base.d.ts.map +1 -1
- package/dist/types/callers/compat/i18next.d.ts +1 -2
- package/dist/types/callers/compat/i18next.d.ts.map +1 -1
- package/dist/types/callers/compat/lingui.d.ts +1 -2
- package/dist/types/callers/compat/lingui.d.ts.map +1 -1
- package/dist/types/callers/compat/nextIntl.d.ts +1 -2
- package/dist/types/callers/compat/nextIntl.d.ts.map +1 -1
- package/dist/types/callers/compat/reactI18next.d.ts +1 -2
- package/dist/types/callers/compat/reactI18next.d.ts.map +1 -1
- package/dist/types/callers/compat/reactIntl.d.ts +1 -2
- package/dist/types/callers/compat/reactIntl.d.ts.map +1 -1
- package/dist/types/callers/compat/useIntl.d.ts +1 -2
- package/dist/types/callers/compat/useIntl.d.ts.map +1 -1
- package/dist/types/callers/compat/vueI18n.d.ts +1 -2
- package/dist/types/callers/compat/vueI18n.d.ts.map +1 -1
- package/dist/types/callers/index.d.ts +7 -7
- package/dist/types/callers/index.d.ts.map +1 -1
- package/dist/types/callers/transform.d.ts +17 -12
- package/dist/types/callers/transform.d.ts.map +1 -1
- package/dist/types/callers/types.d.ts +9 -4
- package/dist/types/callers/types.d.ts.map +1 -1
- package/dist/types/colors.d.ts +15 -15
- package/dist/types/colors.d.ts.map +1 -1
- package/dist/types/configFile/buildBrowserConfiguration.d.ts +8 -9
- package/dist/types/configFile/buildBrowserConfiguration.d.ts.map +1 -1
- package/dist/types/configFile/buildConfigurationFields.d.ts +2 -2
- package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
- package/dist/types/configFile/configurationSchema.d.ts +18 -19
- package/dist/types/configFile/configurationSchema.d.ts.map +1 -1
- package/dist/types/configFile/getConfiguration.d.ts +4 -5
- package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
- package/dist/types/configFile/loadConfigurationFile.d.ts +1 -2
- package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
- package/dist/types/configFile/searchConfigurationFile.d.ts +2 -3
- package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
- package/dist/types/defaultValues/analytics.d.ts +3 -4
- package/dist/types/defaultValues/analytics.d.ts.map +1 -1
- package/dist/types/defaultValues/build.d.ts +10 -11
- package/dist/types/defaultValues/build.d.ts.map +1 -1
- package/dist/types/defaultValues/compiler.d.ts +4 -5
- package/dist/types/defaultValues/compiler.d.ts.map +1 -1
- package/dist/types/defaultValues/content.d.ts +7 -8
- package/dist/types/defaultValues/content.d.ts.map +1 -1
- package/dist/types/defaultValues/dictionary.d.ts +8 -9
- package/dist/types/defaultValues/dictionary.d.ts.map +1 -1
- package/dist/types/defaultValues/editor.d.ts +9 -10
- package/dist/types/defaultValues/editor.d.ts.map +1 -1
- package/dist/types/defaultValues/internationalization.d.ts +4 -5
- package/dist/types/defaultValues/internationalization.d.ts.map +1 -1
- package/dist/types/defaultValues/log.d.ts +2 -3
- package/dist/types/defaultValues/log.d.ts.map +1 -1
- package/dist/types/defaultValues/routing.d.ts +8 -9
- package/dist/types/defaultValues/routing.d.ts.map +1 -1
- package/dist/types/defaultValues/system.d.ts +12 -13
- package/dist/types/defaultValues/system.d.ts.map +1 -1
- package/dist/types/dictionaryPreload.d.ts +7 -8
- package/dist/types/dictionaryPreload.d.ts.map +1 -1
- package/dist/types/envVars/envVars.d.ts +4 -5
- package/dist/types/envVars/envVars.d.ts.map +1 -1
- package/dist/types/extract/constants.d.ts +1 -2
- package/dist/types/extract/constants.d.ts.map +1 -1
- package/dist/types/extract/shouldExtract.d.ts +1 -2
- package/dist/types/extract/shouldExtract.d.ts.map +1 -1
- package/dist/types/loadEnvFile.d.ts +3 -4
- package/dist/types/loadEnvFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/bundleFile.d.ts +4 -5
- package/dist/types/loadExternalFile/bundleFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/bundleJSFile.d.ts +1 -2
- package/dist/types/loadExternalFile/bundleJSFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/loadExternalFile.d.ts +3 -4
- package/dist/types/loadExternalFile/loadExternalFile.d.ts.map +1 -1
- package/dist/types/loadExternalFile/parseFileContent.d.ts +3 -4
- package/dist/types/loadExternalFile/parseFileContent.d.ts.map +1 -1
- package/dist/types/loadExternalFile/transpileTSToCJS.d.ts +4 -5
- package/dist/types/loadExternalFile/transpileTSToCJS.d.ts.map +1 -1
- package/dist/types/logger.d.ts +19 -20
- package/dist/types/logger.d.ts.map +1 -1
- package/dist/types/secrets.browser.d.ts +1 -2
- package/dist/types/secrets.browser.d.ts.map +1 -1
- package/dist/types/secrets.d.ts +1 -2
- package/dist/types/secrets.d.ts.map +1 -1
- package/dist/types/utils/ESMxCJSHelpers.d.ts +3 -4
- package/dist/types/utils/ESMxCJSHelpers.d.ts.map +1 -1
- package/dist/types/utils/alias.d.ts +2 -3
- package/dist/types/utils/alias.d.ts.map +1 -1
- package/dist/types/utils/builtConfigKeys.d.ts +2 -3
- package/dist/types/utils/builtConfigKeys.d.ts.map +1 -1
- package/dist/types/utils/cacheDisk.d.ts +2 -3
- package/dist/types/utils/cacheDisk.d.ts.map +1 -1
- package/dist/types/utils/cacheMemory.d.ts +8 -9
- package/dist/types/utils/cacheMemory.d.ts.map +1 -1
- package/dist/types/utils/clearModuleCache.d.ts +1 -2
- package/dist/types/utils/clearModuleCache.d.ts.map +1 -1
- package/dist/types/utils/compareVersions.d.ts +1 -2
- package/dist/types/utils/compareVersions.d.ts.map +1 -1
- package/dist/types/utils/extractErrorMessage.d.ts +1 -2
- package/dist/types/utils/extractErrorMessage.d.ts.map +1 -1
- package/dist/types/utils/getDictionarySelectorUsage.d.ts +1 -2
- package/dist/types/utils/getDictionarySelectorUsage.d.ts.map +1 -1
- package/dist/types/utils/getExtension.d.ts +1 -2
- package/dist/types/utils/getExtension.d.ts.map +1 -1
- package/dist/types/utils/getPackageJsonPath.d.ts +1 -2
- package/dist/types/utils/getPackageJsonPath.d.ts.map +1 -1
- package/dist/types/utils/getStorageAttributes.d.ts +1 -2
- package/dist/types/utils/getStorageAttributes.d.ts.map +1 -1
- package/dist/types/utils/getUsedNodeTypes.d.ts +5 -6
- package/dist/types/utils/getUsedNodeTypes.d.ts.map +1 -1
- package/dist/types/utils/isPackageInstalled.d.ts +1 -2
- package/dist/types/utils/isPackageInstalled.d.ts.map +1 -1
- package/dist/types/utils/logStack.d.ts +1 -2
- package/dist/types/utils/logStack.d.ts.map +1 -1
- package/dist/types/utils/normalizePath.d.ts +1 -2
- package/dist/types/utils/normalizePath.d.ts.map +1 -1
- package/dist/types/utils/parseFilePathPattern.d.ts +2 -3
- package/dist/types/utils/parseFilePathPattern.d.ts.map +1 -1
- package/dist/types/utils/pathSecurity.d.ts +1 -2
- package/dist/types/utils/pathSecurity.d.ts.map +1 -1
- package/dist/types/utils/retryManager.d.ts +2 -3
- package/dist/types/utils/retryManager.d.ts.map +1 -1
- package/dist/types/utils/setIntlayerIdentifier.d.ts +2 -3
- package/dist/types/utils/setIntlayerIdentifier.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts +1 -2
- package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts +1 -2
- package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts +1 -2
- package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts.map +1 -1
- package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts +1 -2
- package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AiProviders } from "@intlayer/types/config";
|
|
2
2
|
import z from "zod";
|
|
3
3
|
//#region src/configFile/configurationSchema.d.ts
|
|
4
|
-
declare const internationalizationSchema: z.ZodObject<{
|
|
4
|
+
export declare const internationalizationSchema: z.ZodObject<{
|
|
5
5
|
locales: z.ZodArray<z.ZodString>;
|
|
6
6
|
requiredLocales: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
7
|
strictMode: z.ZodOptional<z.ZodEnum<{
|
|
@@ -11,7 +11,7 @@ declare const internationalizationSchema: z.ZodObject<{
|
|
|
11
11
|
}>>;
|
|
12
12
|
defaultLocale: z.ZodOptional<z.ZodString>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
|
-
declare const cookiesAttributesSchema: z.ZodObject<{
|
|
14
|
+
export declare const cookiesAttributesSchema: z.ZodObject<{
|
|
15
15
|
type: z.ZodLiteral<"cookie">;
|
|
16
16
|
name: z.ZodOptional<z.ZodString>;
|
|
17
17
|
domain: z.ZodOptional<z.ZodString>;
|
|
@@ -26,7 +26,7 @@ declare const cookiesAttributesSchema: z.ZodObject<{
|
|
|
26
26
|
expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
|
|
27
27
|
maxAge: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
}, z.core.$strip>;
|
|
29
|
-
declare const storageAttributesSchema: z.ZodObject<{
|
|
29
|
+
export declare const storageAttributesSchema: z.ZodObject<{
|
|
30
30
|
type: z.ZodEnum<{
|
|
31
31
|
header: "header";
|
|
32
32
|
localStorage: "localStorage";
|
|
@@ -34,7 +34,7 @@ declare const storageAttributesSchema: z.ZodObject<{
|
|
|
34
34
|
}>;
|
|
35
35
|
name: z.ZodOptional<z.ZodString>;
|
|
36
36
|
}, z.core.$strip>;
|
|
37
|
-
declare const storageSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum<{
|
|
37
|
+
export declare const storageSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum<{
|
|
38
38
|
cookie: "cookie";
|
|
39
39
|
header: "header";
|
|
40
40
|
localStorage: "localStorage";
|
|
@@ -87,17 +87,17 @@ declare const storageSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum
|
|
|
87
87
|
}>;
|
|
88
88
|
name: z.ZodOptional<z.ZodString>;
|
|
89
89
|
}, z.core.$strip>]>>]>;
|
|
90
|
-
declare const rewriteRuleSchema: z.ZodObject<{
|
|
90
|
+
export declare const rewriteRuleSchema: z.ZodObject<{
|
|
91
91
|
canonical: z.ZodString;
|
|
92
92
|
localized: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
93
93
|
}, z.core.$strip>;
|
|
94
|
-
declare const rewriteRulesSchema: z.ZodObject<{
|
|
94
|
+
export declare const rewriteRulesSchema: z.ZodObject<{
|
|
95
95
|
rules: z.ZodArray<z.ZodObject<{
|
|
96
96
|
canonical: z.ZodString;
|
|
97
97
|
localized: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
98
98
|
}, z.core.$strip>>;
|
|
99
99
|
}, z.core.$strip>;
|
|
100
|
-
declare const rewriteObjectSchema: z.ZodObject<{
|
|
100
|
+
export declare const rewriteObjectSchema: z.ZodObject<{
|
|
101
101
|
url: z.ZodObject<{
|
|
102
102
|
rules: z.ZodArray<z.ZodObject<{
|
|
103
103
|
canonical: z.ZodString;
|
|
@@ -117,7 +117,7 @@ declare const rewriteObjectSchema: z.ZodObject<{
|
|
|
117
117
|
}, z.core.$strip>>;
|
|
118
118
|
}, z.core.$strip>>;
|
|
119
119
|
}, z.core.$strip>;
|
|
120
|
-
declare const routingSchema: z.ZodObject<{
|
|
120
|
+
export declare const routingSchema: z.ZodObject<{
|
|
121
121
|
rewrite: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodObject<{
|
|
122
122
|
url: z.ZodObject<{
|
|
123
123
|
rules: z.ZodArray<z.ZodObject<{
|
|
@@ -201,7 +201,7 @@ declare const routingSchema: z.ZodObject<{
|
|
|
201
201
|
basePath: z.ZodOptional<z.ZodString>;
|
|
202
202
|
domains: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
203
203
|
}, z.core.$strip>;
|
|
204
|
-
declare const systemSchema: z.ZodObject<{
|
|
204
|
+
export declare const systemSchema: z.ZodObject<{
|
|
205
205
|
baseDir: z.ZodOptional<z.ZodString>;
|
|
206
206
|
moduleAugmentationDir: z.ZodOptional<z.ZodString>;
|
|
207
207
|
unmergedDictionariesDir: z.ZodOptional<z.ZodString>;
|
|
@@ -215,7 +215,7 @@ declare const systemSchema: z.ZodObject<{
|
|
|
215
215
|
cacheDir: z.ZodOptional<z.ZodString>;
|
|
216
216
|
tempDir: z.ZodOptional<z.ZodString>;
|
|
217
217
|
}, z.core.$strip>;
|
|
218
|
-
declare const contentSchema: z.ZodObject<{
|
|
218
|
+
export declare const contentSchema: z.ZodObject<{
|
|
219
219
|
fileExtensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
220
220
|
contentDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
221
221
|
codeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -223,7 +223,7 @@ declare const contentSchema: z.ZodObject<{
|
|
|
223
223
|
watch: z.ZodOptional<z.ZodBoolean>;
|
|
224
224
|
formatCommand: z.ZodOptional<z.ZodString>;
|
|
225
225
|
}, z.core.$strip>;
|
|
226
|
-
declare const editorSchema: z.ZodObject<{
|
|
226
|
+
export declare const editorSchema: z.ZodObject<{
|
|
227
227
|
applicationURL: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
228
228
|
editorURL: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
229
229
|
cmsURL: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
@@ -240,12 +240,12 @@ declare const editorSchema: z.ZodObject<{
|
|
|
240
240
|
liveSyncPort: z.ZodOptional<z.ZodNumber>;
|
|
241
241
|
liveSyncURL: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
|
|
242
242
|
}, z.core.$strip>;
|
|
243
|
-
declare const analyticsSchema: z.ZodObject<{
|
|
243
|
+
export declare const analyticsSchema: z.ZodObject<{
|
|
244
244
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
245
245
|
flushInterval: z.ZodOptional<z.ZodNumber>;
|
|
246
246
|
sampleRate: z.ZodOptional<z.ZodNumber>;
|
|
247
247
|
}, z.core.$strip>;
|
|
248
|
-
declare const logSchema: z.ZodObject<{
|
|
248
|
+
export declare const logSchema: z.ZodObject<{
|
|
249
249
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
250
250
|
default: "default";
|
|
251
251
|
disabled: "disabled";
|
|
@@ -257,7 +257,7 @@ declare const logSchema: z.ZodObject<{
|
|
|
257
257
|
info: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
258
258
|
warn: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
259
259
|
}, z.core.$strip>;
|
|
260
|
-
declare const aiSchema: z.ZodObject<{
|
|
260
|
+
export declare const aiSchema: z.ZodObject<{
|
|
261
261
|
provider: z.ZodOptional<z.ZodEnum<typeof AiProviders>>;
|
|
262
262
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
263
263
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -269,7 +269,7 @@ declare const aiSchema: z.ZodObject<{
|
|
|
269
269
|
toon: "toon";
|
|
270
270
|
}>>;
|
|
271
271
|
}, z.core.$strip>;
|
|
272
|
-
declare const buildSchema: z.ZodObject<{
|
|
272
|
+
export declare const buildSchema: z.ZodObject<{
|
|
273
273
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
274
274
|
auto: "auto";
|
|
275
275
|
manual: "manual";
|
|
@@ -289,7 +289,7 @@ declare const buildSchema: z.ZodObject<{
|
|
|
289
289
|
require: z.ZodOptional<z.ZodUnknown>;
|
|
290
290
|
checkTypes: z.ZodOptional<z.ZodBoolean>;
|
|
291
291
|
}, z.core.$strip>;
|
|
292
|
-
declare const compilerSchema: z.ZodObject<{
|
|
292
|
+
export declare const compilerSchema: z.ZodObject<{
|
|
293
293
|
enabled: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"build-only">]>>;
|
|
294
294
|
dictionaryKeyPrefix: z.ZodOptional<z.ZodString>;
|
|
295
295
|
transformPattern: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
@@ -298,7 +298,7 @@ declare const compilerSchema: z.ZodObject<{
|
|
|
298
298
|
noMetadata: z.ZodOptional<z.ZodBoolean>;
|
|
299
299
|
saveComponents: z.ZodOptional<z.ZodBoolean>;
|
|
300
300
|
}, z.core.$strip>;
|
|
301
|
-
declare const dictionarySchema: z.ZodObject<{
|
|
301
|
+
export declare const dictionarySchema: z.ZodObject<{
|
|
302
302
|
fill: z.ZodOptional<z.ZodUnknown>;
|
|
303
303
|
contentAutoTransformation: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
304
304
|
markdown: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -309,7 +309,7 @@ declare const dictionarySchema: z.ZodObject<{
|
|
|
309
309
|
locale: z.ZodOptional<z.ZodString>;
|
|
310
310
|
title: z.ZodOptional<z.ZodString>;
|
|
311
311
|
}, z.core.$strip>;
|
|
312
|
-
declare const intlayerConfigSchema: z.ZodObject<{
|
|
312
|
+
export declare const intlayerConfigSchema: z.ZodObject<{
|
|
313
313
|
internationalization: z.ZodOptional<z.ZodObject<{
|
|
314
314
|
locales: z.ZodArray<z.ZodString>;
|
|
315
315
|
requiredLocales: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -521,5 +521,4 @@ declare const intlayerConfigSchema: z.ZodObject<{
|
|
|
521
521
|
}, z.core.$strip>>;
|
|
522
522
|
}, z.core.$strip>;
|
|
523
523
|
//#endregion
|
|
524
|
-
export { aiSchema, analyticsSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema };
|
|
525
524
|
//# sourceMappingURL=configurationSchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurationSchema.d.ts","names":[],"sources":["../../../src/configFile/configurationSchema.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"configurationSchema.d.ts","names":[],"sources":["../../../src/configFile/configurationSchema.ts"],"mappings":";;;qBAGa,4BAA0B,EAAA;;;;;;;;;GAKrC,EAAA,KAAA;qBA0BW,yBAAuB,EAAA;;;;;;;;;;;;;;GAUlC,EAAA,KAAA;qBAEW,yBAAuB,EAAA;;;;;;;GAGlC,EAAA,KAAA;qBAEW,eAAa,EAAA,mBAAA,EAAA,mBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYxB,EAAA,KAAA;qBAEW,mBAAiB,EAAA;;;GAG5B,EAAA,KAAA;qBAEW,oBAAkB,EAAA;;;;;GAE7B,EAAA,KAAA;qBAEW,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;GAI9B,EAAA,KAAA;qBAEW,eAAa,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAcxB,EAAA,KAAA;qBAEW,cAAY,EAAA;;;;;;;;;;;;;GAavB,EAAA,KAAA;qBAEW,eAAa,EAAA;;;;;;;GAOxB,EAAA,KAAA;qBAEW,cAAY,EAAA;;;;;;;;;;;;;;;;GAevB,EAAA,KAAA;qBAEW,iBAAe,EAAA;;;;GAI1B,EAAA,KAAA;qBAEW,WAAS,EAAA;;;;;;;;;;;GAOpB,EAAA,KAAA;qBAEW,UAAQ,EAAA;;;;;;;;;;;GAQnB,EAAA,KAAA;qBAEW,aAAW,EAAA;;;;;;;;;;;;;;;;;;;GAStB,EAAA,KAAA;qBAEW,gBAAc,EAAA;;;;;;;;GAQzB,EAAA,KAAA;qBAEW,kBAAgB,EAAA;;;;;;;;;;GAe3B,EAAA,KAAA;qBAEW,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqB/B,EAAA,KAAA"}
|
|
@@ -2,7 +2,7 @@ import { SandBoxContextOptions } from "../loadExternalFile/parseFileContent.js";
|
|
|
2
2
|
import { LoadExternalFileOptions } from "../loadExternalFile/loadExternalFile.js";
|
|
3
3
|
import { CustomIntlayerConfig, IntlayerConfig, LogFunctions } from "@intlayer/types/config";
|
|
4
4
|
//#region src/configFile/getConfiguration.d.ts
|
|
5
|
-
type GetConfigurationOptions = {
|
|
5
|
+
export type GetConfigurationOptions = {
|
|
6
6
|
baseDir?: string;
|
|
7
7
|
override?: CustomIntlayerConfig;
|
|
8
8
|
env?: string;
|
|
@@ -12,7 +12,7 @@ type GetConfigurationOptions = {
|
|
|
12
12
|
cache?: boolean;
|
|
13
13
|
buildOptions?: LoadExternalFileOptions['buildOptions'];
|
|
14
14
|
} & Omit<SandBoxContextOptions, 'projectRequire'>;
|
|
15
|
-
type GetConfigurationAndFilePathResult = {
|
|
15
|
+
export type GetConfigurationAndFilePathResult = {
|
|
16
16
|
configuration: IntlayerConfig;
|
|
17
17
|
customConfiguration: CustomIntlayerConfig | undefined;
|
|
18
18
|
numCustomConfiguration: number;
|
|
@@ -21,11 +21,10 @@ type GetConfigurationAndFilePathResult = {
|
|
|
21
21
|
/**
|
|
22
22
|
* Get the configuration for the intlayer by reading the configuration file (e.g. intlayer.config.js)
|
|
23
23
|
*/
|
|
24
|
-
declare const getConfigurationAndFilePath: (options?: GetConfigurationOptions) => GetConfigurationAndFilePathResult;
|
|
24
|
+
export declare const getConfigurationAndFilePath: (options?: GetConfigurationOptions) => GetConfigurationAndFilePathResult;
|
|
25
25
|
/**
|
|
26
26
|
* Get the configuration for the intlayer by reading the configuration file (e.g. intlayer.config.js)
|
|
27
27
|
*/
|
|
28
|
-
declare const getConfiguration: (options?: GetConfigurationOptions) => IntlayerConfig;
|
|
28
|
+
export declare const getConfiguration: (options?: GetConfigurationOptions) => IntlayerConfig;
|
|
29
29
|
//#endregion
|
|
30
|
-
export { GetConfigurationAndFilePathResult, GetConfigurationOptions, getConfiguration, getConfigurationAndFilePath };
|
|
31
30
|
//# sourceMappingURL=getConfiguration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfiguration.d.ts","names":[],"sources":["../../../src/configFile/getConfiguration.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"getConfiguration.d.ts","names":[],"sources":["../../../src/configFile/getConfiguration.ts"],"mappings":";;;;YAcY;EACV;EACA,WAAW;EAEX;EACA;EAEA,eAAe;EAEf,UAAU,OAAO;EAEjB;EAEA,eAAe;IACb,KAAK;YAEG;EACV,eAAe;EACf,qBAAqB;EACrB;EACA;;;;;qBAMW,8BAA2B,UAC5B,4BACT;;;;qBAqGU,mBAAgB,UACjB,4BACT"}
|
|
@@ -7,7 +7,6 @@ import { CustomIntlayerConfig } from "@intlayer/types/config";
|
|
|
7
7
|
*
|
|
8
8
|
* Accepts JSON, JS, MJS and TS files as configuration
|
|
9
9
|
*/
|
|
10
|
-
declare const loadConfigurationFile: (configFilePath: string, options?: Omit<LoadExternalFileOptions, 'configuration'>) => CustomIntlayerConfig | undefined;
|
|
10
|
+
export declare const loadConfigurationFile: (configFilePath: string, options?: Omit<LoadExternalFileOptions, 'configuration'>) => CustomIntlayerConfig | undefined;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { loadConfigurationFile };
|
|
13
12
|
//# sourceMappingURL=loadConfigurationFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadConfigurationFile.d.ts","names":[],"sources":["../../../src/configFile/loadConfigurationFile.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"loadConfigurationFile.d.ts","names":[],"sources":["../../../src/configFile/loadConfigurationFile.ts"],"mappings":";;;;;;;;;qBA4Ba,wBAAqB,wBACV,UACZ,KAAK,8CACd"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/configFile/searchConfigurationFile.d.ts
|
|
2
|
-
declare const configurationFilesCandidates: readonly ['intlayer.config.ts', 'intlayer.config.js', 'intlayer.config.json', 'intlayer.config.json5', 'intlayer.config.jsonc', 'intlayer.config.cjs', 'intlayer.config.mjs', '.intlayerrc'];
|
|
2
|
+
export declare const configurationFilesCandidates: readonly ['intlayer.config.ts', 'intlayer.config.js', 'intlayer.config.json', 'intlayer.config.json5', 'intlayer.config.jsonc', 'intlayer.config.cjs', 'intlayer.config.mjs', '.intlayerrc'];
|
|
3
3
|
type SearchConfigurationFileResult = {
|
|
4
4
|
configurationFilePath?: string;
|
|
5
5
|
numCustomConfiguration: number;
|
|
@@ -15,7 +15,6 @@ type SearchConfigurationFileResult = {
|
|
|
15
15
|
* - intlayer.config.mjs
|
|
16
16
|
* - .intlayerrc
|
|
17
17
|
*/
|
|
18
|
-
declare const searchConfigurationFile: (startDir: string) => SearchConfigurationFileResult;
|
|
18
|
+
export declare const searchConfigurationFile: (startDir: string) => SearchConfigurationFileResult;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { configurationFilesCandidates, searchConfigurationFile };
|
|
21
20
|
//# sourceMappingURL=searchConfigurationFile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"searchConfigurationFile.d.ts","names":[],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"searchConfigurationFile.d.ts","names":[],"sources":["../../../src/configFile/searchConfigurationFile.ts"],"mappings":";qBAKa;KAWR;EACH;EACA;;;;;;;;;;;;;qBAiBW,0BAAuB,qBAEjC"}
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
* Analytics is opt-out — enabled unless the user disables it, and only
|
|
5
5
|
* effective once the optional `@intlayer/analytics` package is installed.
|
|
6
6
|
*/
|
|
7
|
-
declare const ANALYTICS_ENABLED = true;
|
|
8
|
-
declare const ANALYTICS_FLUSH_INTERVAL = 20000;
|
|
9
|
-
declare const ANALYTICS_SAMPLE_RATE = 1;
|
|
7
|
+
export declare const ANALYTICS_ENABLED = true;
|
|
8
|
+
export declare const ANALYTICS_FLUSH_INTERVAL = 20000;
|
|
9
|
+
export declare const ANALYTICS_SAMPLE_RATE = 1;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { ANALYTICS_ENABLED, ANALYTICS_FLUSH_INTERVAL, ANALYTICS_SAMPLE_RATE };
|
|
12
11
|
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","names":[],"sources":["../../../src/defaultValues/analytics.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","names":[],"sources":["../../../src/defaultValues/analytics.ts"],"mappings":";;;;;;qBAKa;qBACA;qBACA"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
//#region src/defaultValues/build.d.ts
|
|
2
|
-
declare const BUILD_MODE = "auto";
|
|
3
|
-
declare const OPTIMIZE: any;
|
|
4
|
-
declare const TRAVERSE_PATTERN: string[];
|
|
5
|
-
declare const OUTPUT_FORMAT: ('cjs' | 'esm')[];
|
|
6
|
-
declare const CACHE = true;
|
|
7
|
-
declare const TYPE_CHECKING = false;
|
|
8
|
-
declare const MINIFY = false;
|
|
9
|
-
declare const PURGE = false;
|
|
10
|
-
declare const CHUNK_GROUPING = true;
|
|
11
|
-
declare const DICTIONARIES_PRELOAD = true;
|
|
2
|
+
export declare const BUILD_MODE = "auto";
|
|
3
|
+
export declare const OPTIMIZE: any;
|
|
4
|
+
export declare const TRAVERSE_PATTERN: string[];
|
|
5
|
+
export declare const OUTPUT_FORMAT: ('cjs' | 'esm')[];
|
|
6
|
+
export declare const CACHE = true;
|
|
7
|
+
export declare const TYPE_CHECKING = false;
|
|
8
|
+
export declare const MINIFY = false;
|
|
9
|
+
export declare const PURGE = false;
|
|
10
|
+
export declare const CHUNK_GROUPING = true;
|
|
11
|
+
export declare const DICTIONARIES_PRELOAD = true;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { BUILD_MODE, CACHE, CHUNK_GROUPING, DICTIONARIES_PRELOAD, MINIFY, OPTIMIZE, OUTPUT_FORMAT, PURGE, TRAVERSE_PATTERN, TYPE_CHECKING };
|
|
14
13
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","names":[],"sources":["../../../src/defaultValues/build.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"build.d.ts","names":[],"sources":["../../../src/defaultValues/build.ts"],"mappings":";qBAAa;qBAEA;qBAEA;qBA0BA;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
//#region src/defaultValues/compiler.d.ts
|
|
2
|
-
declare const COMPILER_ENABLED = false;
|
|
3
|
-
declare const COMPILER_DICTIONARY_KEY_PREFIX = "";
|
|
4
|
-
declare const COMPILER_NO_METADATA = false;
|
|
5
|
-
declare const COMPILER_SAVE_COMPONENTS = false;
|
|
2
|
+
export declare const COMPILER_ENABLED = false;
|
|
3
|
+
export declare const COMPILER_DICTIONARY_KEY_PREFIX = "";
|
|
4
|
+
export declare const COMPILER_NO_METADATA = false;
|
|
5
|
+
export declare const COMPILER_SAVE_COMPONENTS = false;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { COMPILER_DICTIONARY_KEY_PREFIX, COMPILER_ENABLED, COMPILER_NO_METADATA, COMPILER_SAVE_COMPONENTS };
|
|
8
7
|
//# sourceMappingURL=compiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler.d.ts","names":[],"sources":["../../../src/defaultValues/compiler.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"compiler.d.ts","names":[],"sources":["../../../src/defaultValues/compiler.ts"],"mappings":";qBAAa;qBAEA;qBAEA;qBAEA"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
//#region src/defaultValues/content.d.ts
|
|
2
|
-
declare const FILE_EXTENSIONS: string[];
|
|
3
|
-
declare const EXCLUDED_PATHS: string[];
|
|
4
|
-
declare const CONTENT_DIR: string[];
|
|
5
|
-
declare const CODE_DIR: string[];
|
|
6
|
-
declare const I18NEXT_DICTIONARIES_DIR = "i18next_resources";
|
|
7
|
-
declare const REACT_INTL_MESSAGES_DIR = "intl_messages";
|
|
8
|
-
declare const WATCH = true;
|
|
2
|
+
export declare const FILE_EXTENSIONS: string[];
|
|
3
|
+
export declare const EXCLUDED_PATHS: string[];
|
|
4
|
+
export declare const CONTENT_DIR: string[];
|
|
5
|
+
export declare const CODE_DIR: string[];
|
|
6
|
+
export declare const I18NEXT_DICTIONARIES_DIR = "i18next_resources";
|
|
7
|
+
export declare const REACT_INTL_MESSAGES_DIR = "intl_messages";
|
|
8
|
+
export declare const WATCH = true;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { CODE_DIR, CONTENT_DIR, EXCLUDED_PATHS, FILE_EXTENSIONS, I18NEXT_DICTIONARIES_DIR, REACT_INTL_MESSAGES_DIR, WATCH };
|
|
11
10
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../src/defaultValues/content.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../src/defaultValues/content.ts"],"mappings":";qBAAa;qBAgBA;qBAeA;qBAEA;qBAEA;qBAEA;qBAEA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DictionaryLocation } from "@intlayer/types/dictionary";
|
|
2
2
|
//#region src/defaultValues/dictionary.d.ts
|
|
3
|
-
declare const FILL = true;
|
|
4
|
-
declare const LOCATION: DictionaryLocation;
|
|
5
|
-
declare const CONTENT_AUTO_TRANSFORMATION = false;
|
|
6
|
-
declare const IMPORT_MODE = "static";
|
|
3
|
+
export declare const FILL = true;
|
|
4
|
+
export declare const LOCATION: DictionaryLocation;
|
|
5
|
+
export declare const CONTENT_AUTO_TRANSFORMATION = false;
|
|
6
|
+
export declare const IMPORT_MODE = "static";
|
|
7
7
|
/**
|
|
8
8
|
* Directory the per-locale JSON chunks of `importMode: 'dynamic'` are written
|
|
9
9
|
* under, relative to `system.dynamicDictionariesDir`.
|
|
@@ -14,14 +14,14 @@ declare const IMPORT_MODE = "static";
|
|
|
14
14
|
* module ids against this layout — hence the shared constant rather than a
|
|
15
15
|
* literal repeated on both sides.
|
|
16
16
|
*/
|
|
17
|
-
declare const DYNAMIC_DICTIONARIES_JSON_SUBDIR = "json";
|
|
17
|
+
export declare const DYNAMIC_DICTIONARIES_JSON_SUBDIR = "json";
|
|
18
18
|
/**
|
|
19
19
|
* Marker property carrying the ordered qualifier dimensions on a dynamic loader
|
|
20
20
|
* map. Its presence distinguishes a qualified group loader map (a nested tree
|
|
21
21
|
* of chunks) from a plain dynamic loader map (one chunk per `locale`). Prefixed
|
|
22
22
|
* and unlikely to collide with a real locale code.
|
|
23
23
|
*/
|
|
24
|
-
declare const QUALIFIER_DYNAMIC_TYPES_KEY = "__intlayerQualifierTypes";
|
|
24
|
+
export declare const QUALIFIER_DYNAMIC_TYPES_KEY = "__intlayerQualifierTypes";
|
|
25
25
|
/**
|
|
26
26
|
* Marker property carrying the dictionary a generated dynamic entry point
|
|
27
27
|
* already resolved for the browsing locale, before any component rendered.
|
|
@@ -31,7 +31,7 @@ declare const QUALIFIER_DYNAMIC_TYPES_KEY = "__intlayerQualifierTypes";
|
|
|
31
31
|
* locale chunk has landed. A read during render then finds the content in place
|
|
32
32
|
* instead of suspending.
|
|
33
33
|
*/
|
|
34
|
-
declare const PRELOADED_DYNAMIC_KEY = "__intlayerPreloaded";
|
|
34
|
+
export declare const PRELOADED_DYNAMIC_KEY = "__intlayerPreloaded";
|
|
35
35
|
/**
|
|
36
36
|
* Name of the local binding a generated dynamic entry point holds its loader
|
|
37
37
|
* map in, before exporting it as default.
|
|
@@ -40,7 +40,6 @@ declare const PRELOADED_DYNAMIC_KEY = "__intlayerPreloaded";
|
|
|
40
40
|
* binding, so the code generator and the build plugins have to agree on the
|
|
41
41
|
* name — hence the shared constant rather than a literal repeated in both.
|
|
42
42
|
*/
|
|
43
|
-
declare const DYNAMIC_ENTRY_LOADER_MAP_IDENTIFIER = "content";
|
|
43
|
+
export declare const DYNAMIC_ENTRY_LOADER_MAP_IDENTIFIER = "content";
|
|
44
44
|
//#endregion
|
|
45
|
-
export { CONTENT_AUTO_TRANSFORMATION, DYNAMIC_DICTIONARIES_JSON_SUBDIR, DYNAMIC_ENTRY_LOADER_MAP_IDENTIFIER, FILL, IMPORT_MODE, LOCATION, PRELOADED_DYNAMIC_KEY, QUALIFIER_DYNAMIC_TYPES_KEY };
|
|
46
45
|
//# sourceMappingURL=dictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../../src/defaultValues/dictionary.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"dictionary.d.ts","names":[],"sources":["../../../src/defaultValues/dictionary.ts"],"mappings":";;qBAEa;qBACA,UAAU;qBACV;qBACA;;;;;;;;;;;qBAYA;;;;;;;qBAQA;;;;;;;;;;qBAWA;;;;;;;;;qBAUA"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
//#region src/defaultValues/editor.d.ts
|
|
2
|
-
declare const APPLICATION_URL: any;
|
|
3
|
-
declare const EDITOR_URL = "http://localhost:8000";
|
|
4
|
-
declare const CMS_URL = "https://app.intlayer.org";
|
|
5
|
-
declare const BACKEND_URL = "https://back.intlayer.org";
|
|
6
|
-
declare const PORT = 8000;
|
|
7
|
-
declare const IS_ENABLED = false;
|
|
8
|
-
declare const LIVE_SYNC = false;
|
|
9
|
-
declare const DICTIONARY_PRIORITY_STRATEGY = "local_first";
|
|
10
|
-
declare const LIVE_SYNC_PORT = 4000;
|
|
2
|
+
export declare const APPLICATION_URL: any;
|
|
3
|
+
export declare const EDITOR_URL = "http://localhost:8000";
|
|
4
|
+
export declare const CMS_URL = "https://app.intlayer.org";
|
|
5
|
+
export declare const BACKEND_URL = "https://back.intlayer.org";
|
|
6
|
+
export declare const PORT = 8000;
|
|
7
|
+
export declare const IS_ENABLED = false;
|
|
8
|
+
export declare const LIVE_SYNC = false;
|
|
9
|
+
export declare const DICTIONARY_PRIORITY_STRATEGY = "local_first";
|
|
10
|
+
export declare const LIVE_SYNC_PORT = 4000;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { APPLICATION_URL, BACKEND_URL, CMS_URL, DICTIONARY_PRIORITY_STRATEGY, EDITOR_URL, IS_ENABLED, LIVE_SYNC, LIVE_SYNC_PORT, PORT };
|
|
13
12
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/defaultValues/editor.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../../src/defaultValues/editor.ts"],"mappings":";qBAAa;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { StrictMode } from "@intlayer/types/config";
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
//#region src/defaultValues/internationalization.d.ts
|
|
4
|
-
declare const LOCALES: Locale[];
|
|
5
|
-
declare const REQUIRED_LOCALES: Locale[];
|
|
6
|
-
declare const DEFAULT_LOCALE: Locale;
|
|
7
|
-
declare const STRICT_MODE: StrictMode;
|
|
4
|
+
export declare const LOCALES: Locale[];
|
|
5
|
+
export declare const REQUIRED_LOCALES: Locale[];
|
|
6
|
+
export declare const DEFAULT_LOCALE: Locale;
|
|
7
|
+
export declare const STRICT_MODE: StrictMode;
|
|
8
8
|
//#endregion
|
|
9
|
-
export { DEFAULT_LOCALE, LOCALES, REQUIRED_LOCALES, STRICT_MODE };
|
|
10
9
|
//# sourceMappingURL=internationalization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internationalization.d.ts","names":[],"sources":["../../../src/defaultValues/internationalization.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"internationalization.d.ts","names":[],"sources":["../../../src/defaultValues/internationalization.ts"],"mappings":";;;qBAGa,SAAS;qBAET,kBAAkB;qBAElB,gBAAgB;qBAEhB,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","names":[],"sources":["../../../src/defaultValues/log.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"log.d.ts","names":[],"sources":["../../../src/defaultValues/log.ts"],"mappings":";qBAEa;qBAEA"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { RoutingStorageInput } from "@intlayer/types/config";
|
|
2
2
|
//#region src/defaultValues/routing.d.ts
|
|
3
|
-
declare const HEADER_NAME = "x-intlayer-locale";
|
|
4
|
-
declare const COOKIE_NAME = "INTLAYER_LOCALE";
|
|
5
|
-
declare const LOCALE_STORAGE_NAME = "INTLAYER_LOCALE";
|
|
6
|
-
declare const BASE_PATH = "";
|
|
7
|
-
declare const SERVER_SET_COOKIE = "always";
|
|
8
|
-
declare const ROUTING_MODE = "prefix-no-default";
|
|
3
|
+
export declare const HEADER_NAME = "x-intlayer-locale";
|
|
4
|
+
export declare const COOKIE_NAME = "INTLAYER_LOCALE";
|
|
5
|
+
export declare const LOCALE_STORAGE_NAME = "INTLAYER_LOCALE";
|
|
6
|
+
export declare const BASE_PATH = "";
|
|
7
|
+
export declare const SERVER_SET_COOKIE = "always";
|
|
8
|
+
export declare const ROUTING_MODE = "prefix-no-default";
|
|
9
9
|
/**
|
|
10
10
|
* Left `undefined` on purpose: it selects the proxy's *auto* mode, which keeps
|
|
11
11
|
* locale routing URL-driven on development and preview servers while behaving
|
|
12
12
|
* like `true` in production. `true` and `false` are the explicit opt-in and
|
|
13
13
|
* opt-out. See `resolveProxyMode` in `@intlayer/core/localization`.
|
|
14
14
|
*/
|
|
15
|
-
declare const ENABLE_PROXY: boolean | undefined;
|
|
16
|
-
declare const STORAGE: RoutingStorageInput;
|
|
15
|
+
export declare const ENABLE_PROXY: boolean | undefined;
|
|
16
|
+
export declare const STORAGE: RoutingStorageInput;
|
|
17
17
|
//#endregion
|
|
18
|
-
export { BASE_PATH, COOKIE_NAME, ENABLE_PROXY, HEADER_NAME, LOCALE_STORAGE_NAME, ROUTING_MODE, SERVER_SET_COOKIE, STORAGE };
|
|
19
18
|
//# sourceMappingURL=routing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing.d.ts","names":[],"sources":["../../../src/defaultValues/routing.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"routing.d.ts","names":[],"sources":["../../../src/defaultValues/routing.ts"],"mappings":";;qBAEa;qBAEA;qBACA;qBAEA;qBAEA;qBAEA;;;;;;;qBAQA;qBAEA,SAAS"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
//#region src/defaultValues/system.d.ts
|
|
2
|
-
declare const MAIN_DIR = ".intlayer/main";
|
|
3
|
-
declare const DICTIONARIES_DIR = ".intlayer/dictionary";
|
|
4
|
-
declare const MASKS_DIR = ".intlayer/mask";
|
|
5
|
-
declare const REMOTE_DICTIONARIES_DIR = ".intlayer/remote_dictionary";
|
|
6
|
-
declare const UNMERGED_DICTIONARIES_DIR = ".intlayer/unmerged_dictionary";
|
|
7
|
-
declare const DYNAMIC_DICTIONARIES_DIR = ".intlayer/dynamic_dictionary";
|
|
8
|
-
declare const FETCH_DICTIONARIES_DIR = ".intlayer/fetch_dictionary";
|
|
9
|
-
declare const TYPES_DIR = ".intlayer/types";
|
|
10
|
-
declare const MODULE_AUGMENTATION_DIR = ".intlayer/types";
|
|
11
|
-
declare const CONFIG_DIR = ".intlayer/config";
|
|
12
|
-
declare const CACHE_DIR = ".intlayer/cache";
|
|
13
|
-
declare const TEMP_DIR = ".intlayer/tmp";
|
|
2
|
+
export declare const MAIN_DIR = ".intlayer/main";
|
|
3
|
+
export declare const DICTIONARIES_DIR = ".intlayer/dictionary";
|
|
4
|
+
export declare const MASKS_DIR = ".intlayer/mask";
|
|
5
|
+
export declare const REMOTE_DICTIONARIES_DIR = ".intlayer/remote_dictionary";
|
|
6
|
+
export declare const UNMERGED_DICTIONARIES_DIR = ".intlayer/unmerged_dictionary";
|
|
7
|
+
export declare const DYNAMIC_DICTIONARIES_DIR = ".intlayer/dynamic_dictionary";
|
|
8
|
+
export declare const FETCH_DICTIONARIES_DIR = ".intlayer/fetch_dictionary";
|
|
9
|
+
export declare const TYPES_DIR = ".intlayer/types";
|
|
10
|
+
export declare const MODULE_AUGMENTATION_DIR = ".intlayer/types";
|
|
11
|
+
export declare const CONFIG_DIR = ".intlayer/config";
|
|
12
|
+
export declare const CACHE_DIR = ".intlayer/cache";
|
|
13
|
+
export declare const TEMP_DIR = ".intlayer/tmp";
|
|
14
14
|
//#endregion
|
|
15
|
-
export { CACHE_DIR, CONFIG_DIR, DICTIONARIES_DIR, DYNAMIC_DICTIONARIES_DIR, FETCH_DICTIONARIES_DIR, MAIN_DIR, MASKS_DIR, MODULE_AUGMENTATION_DIR, REMOTE_DICTIONARIES_DIR, TEMP_DIR, TYPES_DIR, UNMERGED_DICTIONARIES_DIR };
|
|
16
15
|
//# sourceMappingURL=system.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.d.ts","names":[],"sources":["../../../src/defaultValues/system.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"system.d.ts","names":[],"sources":["../../../src/defaultValues/system.ts"],"mappings":";qBAAa;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA;qBAEA"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* `<dynamicDictionariesDir>/<key>.mjs`. The per-locale JSON chunks it imports
|
|
5
5
|
* live one directory deeper, under `json/`, and are deliberately excluded.
|
|
6
6
|
*/
|
|
7
|
-
declare const DYNAMIC_ENTRY_PATTERN: RegExp;
|
|
7
|
+
export declare const DYNAMIC_ENTRY_PATTERN: RegExp;
|
|
8
8
|
/**
|
|
9
9
|
* Builds a filter matching only the generated dynamic entry points, for
|
|
10
10
|
* bundlers whose load hook is selected by a regular expression over the raw
|
|
@@ -21,7 +21,7 @@ declare const DYNAMIC_ENTRY_PATTERN: RegExp;
|
|
|
21
21
|
*
|
|
22
22
|
* @param dynamicDictionariesDir - Absolute dictionaries root, any separator.
|
|
23
23
|
*/
|
|
24
|
-
declare const createDynamicEntryFilter: (dynamicDictionariesDir: string) => RegExp;
|
|
24
|
+
export declare const createDynamicEntryFilter: (dynamicDictionariesDir: string) => RegExp;
|
|
25
25
|
/**
|
|
26
26
|
* Specifier of the module the injected preamble reads the locale from, as the
|
|
27
27
|
* bundler plugins are expected to resolve it.
|
|
@@ -32,7 +32,7 @@ declare const createDynamicEntryFilter: (dynamicDictionariesDir: string) => RegE
|
|
|
32
32
|
* resolve from a directory where the package is absent, or, worse, silently
|
|
33
33
|
* hit an unrelated copy hoisted higher up the tree.
|
|
34
34
|
*/
|
|
35
|
-
declare const PRELOAD_MODULE_SPECIFIER = "@intlayer/core/localization";
|
|
35
|
+
export declare const PRELOAD_MODULE_SPECIFIER = "@intlayer/core/localization";
|
|
36
36
|
/**
|
|
37
37
|
* Resolves {@link PRELOAD_MODULE_SPECIFIER} to an absolute id the injected
|
|
38
38
|
* preamble can import, from a package that actually depends on it.
|
|
@@ -49,10 +49,10 @@ declare const PRELOAD_MODULE_SPECIFIER = "@intlayer/core/localization";
|
|
|
49
49
|
* @returns Absolute path to the ESM build, falling back to whatever the
|
|
50
50
|
* standard resolution yields if the package ever stops publishing one.
|
|
51
51
|
*/
|
|
52
|
-
declare const resolvePreloadModuleId: (requireFn: NodeRequire) => string;
|
|
52
|
+
export declare const resolvePreloadModuleId: (requireFn: NodeRequire) => string;
|
|
53
53
|
/** Why a generated entry point was left untransformed. */
|
|
54
|
-
type PreloadSkipReason = 'qualified' | 'unrecognized-shape';
|
|
55
|
-
type PreloadTransformResult = {
|
|
54
|
+
export type PreloadSkipReason = 'qualified' | 'unrecognized-shape';
|
|
55
|
+
export type PreloadTransformResult = {
|
|
56
56
|
code: string;
|
|
57
57
|
skipped?: undefined;
|
|
58
58
|
} | {
|
|
@@ -73,7 +73,6 @@ type PreloadTransformResult = {
|
|
|
73
73
|
* from, already resolved against the plugin package.
|
|
74
74
|
* @returns The transformed source, or the reason it was left alone.
|
|
75
75
|
*/
|
|
76
|
-
declare const addDynamicEntryPreload: (code: string, preloadModuleId: string) => PreloadTransformResult;
|
|
76
|
+
export declare const addDynamicEntryPreload: (code: string, preloadModuleId: string) => PreloadTransformResult;
|
|
77
77
|
//#endregion
|
|
78
|
-
export { DYNAMIC_ENTRY_PATTERN, PRELOAD_MODULE_SPECIFIER, PreloadSkipReason, PreloadTransformResult, addDynamicEntryPreload, createDynamicEntryFilter, resolvePreloadModuleId };
|
|
79
78
|
//# sourceMappingURL=dictionaryPreload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dictionaryPreload.d.ts","names":[],"sources":["../../src/dictionaryPreload.ts"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"dictionaryPreload.d.ts","names":[],"sources":["../../src/dictionaryPreload.ts"],"mappings":";;;;;;qBAYa,uBAAqB;;;;;;;;;;;;;;;;;qBAsBrB,2BAAwB,mCAElC;;;;;;;;;;;qBAmBU;;;;;;;;;;;;;;;;;qBA2BA,yBAAsB,WAAe;;YAuEtC;YAEA;EACN;EAAc;;EACd;EAAkB,SAAS;;;;;;;;;;;;;;;;qBAgBpB,yBAAsB,cACrB,4BAEX"}
|
|
@@ -11,7 +11,7 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
11
11
|
* formatNodeTypeToEnvVar(['reactNode'], (k) => `process.env.${k}`, (v) => `"${v}"`)
|
|
12
12
|
* // { 'process.env.INTLAYER_NODE_TYPE_REACT_NODE': '"false"' }
|
|
13
13
|
*/
|
|
14
|
-
declare const formatNodeTypeToEnvVar: (nodeTypes: string[], wrapKey?: (key: string) => string, wrapValue?: (value: string) => string) => Record<string, string>;
|
|
14
|
+
export declare const formatNodeTypeToEnvVar: (nodeTypes: string[], wrapKey?: (key: string) => string, wrapValue?: (value: string) => string) => Record<string, string>;
|
|
15
15
|
/**
|
|
16
16
|
* Returns the env-var definition disabling the dictionary-selector resolution
|
|
17
17
|
* path (collections, variants) when no built dictionary declares
|
|
@@ -30,7 +30,7 @@ declare const formatNodeTypeToEnvVar: (nodeTypes: string[], wrapKey?: (key: stri
|
|
|
30
30
|
* formatDictionarySelectorEnvVar(false, (k) => `process.env.${k}`, (v) => `"${v}"`)
|
|
31
31
|
* // { 'process.env.INTLAYER_DICTIONARY_SELECTOR': '"false"' }
|
|
32
32
|
*/
|
|
33
|
-
declare const formatDictionarySelectorEnvVar: (hasDictionarySelector: boolean, wrapKey?: (key: string) => string, wrapValue?: (value: string) => string) => Record<string, string>;
|
|
33
|
+
export declare const formatDictionarySelectorEnvVar: (hasDictionarySelector: boolean, wrapKey?: (key: string) => string, wrapValue?: (value: string) => string) => Record<string, string>;
|
|
34
34
|
/**
|
|
35
35
|
* Returns the env-var definition selecting the local `nest()` resolver, which
|
|
36
36
|
* reads the nest targets the optimizer attached to each dictionary instead of
|
|
@@ -52,7 +52,7 @@ declare const formatDictionarySelectorEnvVar: (hasDictionarySelector: boolean, w
|
|
|
52
52
|
* formatOptimizedNestingEnvVar(true, (k) => `process.env.${k}`, (v) => `"${v}"`)
|
|
53
53
|
* // { 'process.env.INTLAYER_OPTIMIZED_NESTING': '"true"' }
|
|
54
54
|
*/
|
|
55
|
-
declare const formatOptimizedNestingEnvVar: (isOptimized: boolean, wrapKey?: (key: string) => string, wrapValue?: (value: string) => string) => Record<string, string>;
|
|
55
|
+
export declare const formatOptimizedNestingEnvVar: (isOptimized: boolean, wrapKey?: (key: string) => string, wrapValue?: (value: string) => string) => Record<string, string>;
|
|
56
56
|
/**
|
|
57
57
|
* Returns env-var definitions for the full Intlayer config to be injected at
|
|
58
58
|
* build time. Allows bundlers to dead-code-eliminate unused routing modes,
|
|
@@ -65,7 +65,6 @@ declare const formatOptimizedNestingEnvVar: (isOptimized: boolean, wrapKey?: (ke
|
|
|
65
65
|
* getConfigEnvVars(config, true)
|
|
66
66
|
* // { 'process.env.INTLAYER_ROUTING_MODE': '"prefix-no-default"', ... }
|
|
67
67
|
*/
|
|
68
|
-
declare const getConfigEnvVars: (config: IntlayerConfig, wrapKey?: (key: string) => string, wrapValue?: (value: string) => string) => Record<string, string>;
|
|
68
|
+
export declare const getConfigEnvVars: (config: IntlayerConfig, wrapKey?: (key: string) => string, wrapValue?: (value: string) => string) => Record<string, string>;
|
|
69
69
|
//#endregion
|
|
70
|
-
export { formatDictionarySelectorEnvVar, formatNodeTypeToEnvVar, formatOptimizedNestingEnvVar, getConfigEnvVars };
|
|
71
70
|
//# sourceMappingURL=envVars.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envVars.d.ts","names":[],"sources":["../../../src/envVars/envVars.ts"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"envVars.d.ts","names":[],"sources":["../../../src/envVars/envVars.ts"],"mappings":";;;;;;;;;;;;;qBA2Ba,yBAAsB,qBACd,WAAA,wBACG,aAAA,6BAErB;;;;;;;;;;;;;;;;;;;qBA4BU,iCAA8B,gCACX,WAAA,wBACR,aAAA,6BAErB;;;;;;;;;;;;;;;;;;;;;;qBA0BU,+BAA4B,sBACnB,WAAA,wBACE,aAAA,6BAErB;;;;;;;;;;;;;qBAiBU,mBAAgB,QACnB,gBAAc,WAAA,wBACA,aAAA,6BAErB"}
|