@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.
Files changed (159) hide show
  1. package/README.md +0 -2
  2. package/dist/cjs/callers/compat/lingui.cjs +18 -28
  3. package/dist/cjs/callers/compat/lingui.cjs.map +1 -1
  4. package/dist/cjs/callers/compat/reactI18next.cjs +1 -0
  5. package/dist/cjs/callers/compat/reactI18next.cjs.map +1 -1
  6. package/dist/cjs/callers/compat/reactIntl.cjs +26 -15
  7. package/dist/cjs/callers/compat/reactIntl.cjs.map +1 -1
  8. package/dist/cjs/callers/index.cjs +1 -0
  9. package/dist/cjs/callers/index.cjs.map +1 -1
  10. package/dist/cjs/callers/transform.cjs +16 -9
  11. package/dist/cjs/callers/transform.cjs.map +1 -1
  12. package/dist/esm/bundle/index.mjs +1 -1
  13. package/dist/esm/callers/compat/lingui.mjs +18 -28
  14. package/dist/esm/callers/compat/lingui.mjs.map +1 -1
  15. package/dist/esm/callers/compat/reactI18next.mjs +1 -0
  16. package/dist/esm/callers/compat/reactI18next.mjs.map +1 -1
  17. package/dist/esm/callers/compat/reactIntl.mjs +26 -15
  18. package/dist/esm/callers/compat/reactIntl.mjs.map +1 -1
  19. package/dist/esm/callers/index.mjs +2 -2
  20. package/dist/esm/callers/index.mjs.map +1 -1
  21. package/dist/esm/callers/transform.mjs +16 -10
  22. package/dist/esm/callers/transform.mjs.map +1 -1
  23. package/dist/types/built.d.ts +13 -14
  24. package/dist/types/built.d.ts.map +1 -1
  25. package/dist/types/bundle/index.d.ts +3 -4
  26. package/dist/types/bundle/index.d.ts.map +1 -1
  27. package/dist/types/bundle/logBundle.d.ts +1 -2
  28. package/dist/types/bundle/logBundle.d.ts.map +1 -1
  29. package/dist/types/callers/base.d.ts +1 -2
  30. package/dist/types/callers/base.d.ts.map +1 -1
  31. package/dist/types/callers/compat/i18next.d.ts +1 -2
  32. package/dist/types/callers/compat/i18next.d.ts.map +1 -1
  33. package/dist/types/callers/compat/lingui.d.ts +1 -2
  34. package/dist/types/callers/compat/lingui.d.ts.map +1 -1
  35. package/dist/types/callers/compat/nextIntl.d.ts +1 -2
  36. package/dist/types/callers/compat/nextIntl.d.ts.map +1 -1
  37. package/dist/types/callers/compat/reactI18next.d.ts +1 -2
  38. package/dist/types/callers/compat/reactI18next.d.ts.map +1 -1
  39. package/dist/types/callers/compat/reactIntl.d.ts +1 -2
  40. package/dist/types/callers/compat/reactIntl.d.ts.map +1 -1
  41. package/dist/types/callers/compat/useIntl.d.ts +1 -2
  42. package/dist/types/callers/compat/useIntl.d.ts.map +1 -1
  43. package/dist/types/callers/compat/vueI18n.d.ts +1 -2
  44. package/dist/types/callers/compat/vueI18n.d.ts.map +1 -1
  45. package/dist/types/callers/index.d.ts +7 -7
  46. package/dist/types/callers/index.d.ts.map +1 -1
  47. package/dist/types/callers/transform.d.ts +17 -12
  48. package/dist/types/callers/transform.d.ts.map +1 -1
  49. package/dist/types/callers/types.d.ts +9 -4
  50. package/dist/types/callers/types.d.ts.map +1 -1
  51. package/dist/types/colors.d.ts +15 -15
  52. package/dist/types/colors.d.ts.map +1 -1
  53. package/dist/types/configFile/buildBrowserConfiguration.d.ts +8 -9
  54. package/dist/types/configFile/buildBrowserConfiguration.d.ts.map +1 -1
  55. package/dist/types/configFile/buildConfigurationFields.d.ts +2 -2
  56. package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
  57. package/dist/types/configFile/configurationSchema.d.ts +18 -19
  58. package/dist/types/configFile/configurationSchema.d.ts.map +1 -1
  59. package/dist/types/configFile/getConfiguration.d.ts +4 -5
  60. package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
  61. package/dist/types/configFile/loadConfigurationFile.d.ts +1 -2
  62. package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
  63. package/dist/types/configFile/searchConfigurationFile.d.ts +2 -3
  64. package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
  65. package/dist/types/defaultValues/analytics.d.ts +3 -4
  66. package/dist/types/defaultValues/analytics.d.ts.map +1 -1
  67. package/dist/types/defaultValues/build.d.ts +10 -11
  68. package/dist/types/defaultValues/build.d.ts.map +1 -1
  69. package/dist/types/defaultValues/compiler.d.ts +4 -5
  70. package/dist/types/defaultValues/compiler.d.ts.map +1 -1
  71. package/dist/types/defaultValues/content.d.ts +7 -8
  72. package/dist/types/defaultValues/content.d.ts.map +1 -1
  73. package/dist/types/defaultValues/dictionary.d.ts +8 -9
  74. package/dist/types/defaultValues/dictionary.d.ts.map +1 -1
  75. package/dist/types/defaultValues/editor.d.ts +9 -10
  76. package/dist/types/defaultValues/editor.d.ts.map +1 -1
  77. package/dist/types/defaultValues/internationalization.d.ts +4 -5
  78. package/dist/types/defaultValues/internationalization.d.ts.map +1 -1
  79. package/dist/types/defaultValues/log.d.ts +2 -3
  80. package/dist/types/defaultValues/log.d.ts.map +1 -1
  81. package/dist/types/defaultValues/routing.d.ts +8 -9
  82. package/dist/types/defaultValues/routing.d.ts.map +1 -1
  83. package/dist/types/defaultValues/system.d.ts +12 -13
  84. package/dist/types/defaultValues/system.d.ts.map +1 -1
  85. package/dist/types/dictionaryPreload.d.ts +7 -8
  86. package/dist/types/dictionaryPreload.d.ts.map +1 -1
  87. package/dist/types/envVars/envVars.d.ts +4 -5
  88. package/dist/types/envVars/envVars.d.ts.map +1 -1
  89. package/dist/types/extract/constants.d.ts +1 -2
  90. package/dist/types/extract/constants.d.ts.map +1 -1
  91. package/dist/types/extract/shouldExtract.d.ts +1 -2
  92. package/dist/types/extract/shouldExtract.d.ts.map +1 -1
  93. package/dist/types/loadEnvFile.d.ts +3 -4
  94. package/dist/types/loadEnvFile.d.ts.map +1 -1
  95. package/dist/types/loadExternalFile/bundleFile.d.ts +4 -5
  96. package/dist/types/loadExternalFile/bundleFile.d.ts.map +1 -1
  97. package/dist/types/loadExternalFile/bundleJSFile.d.ts +1 -2
  98. package/dist/types/loadExternalFile/bundleJSFile.d.ts.map +1 -1
  99. package/dist/types/loadExternalFile/loadExternalFile.d.ts +3 -4
  100. package/dist/types/loadExternalFile/loadExternalFile.d.ts.map +1 -1
  101. package/dist/types/loadExternalFile/parseFileContent.d.ts +3 -4
  102. package/dist/types/loadExternalFile/parseFileContent.d.ts.map +1 -1
  103. package/dist/types/loadExternalFile/transpileTSToCJS.d.ts +4 -5
  104. package/dist/types/loadExternalFile/transpileTSToCJS.d.ts.map +1 -1
  105. package/dist/types/logger.d.ts +19 -20
  106. package/dist/types/logger.d.ts.map +1 -1
  107. package/dist/types/secrets.browser.d.ts +1 -2
  108. package/dist/types/secrets.browser.d.ts.map +1 -1
  109. package/dist/types/secrets.d.ts +1 -2
  110. package/dist/types/secrets.d.ts.map +1 -1
  111. package/dist/types/utils/ESMxCJSHelpers.d.ts +3 -4
  112. package/dist/types/utils/ESMxCJSHelpers.d.ts.map +1 -1
  113. package/dist/types/utils/alias.d.ts +2 -3
  114. package/dist/types/utils/alias.d.ts.map +1 -1
  115. package/dist/types/utils/builtConfigKeys.d.ts +2 -3
  116. package/dist/types/utils/builtConfigKeys.d.ts.map +1 -1
  117. package/dist/types/utils/cacheDisk.d.ts +2 -3
  118. package/dist/types/utils/cacheDisk.d.ts.map +1 -1
  119. package/dist/types/utils/cacheMemory.d.ts +8 -9
  120. package/dist/types/utils/cacheMemory.d.ts.map +1 -1
  121. package/dist/types/utils/clearModuleCache.d.ts +1 -2
  122. package/dist/types/utils/clearModuleCache.d.ts.map +1 -1
  123. package/dist/types/utils/compareVersions.d.ts +1 -2
  124. package/dist/types/utils/compareVersions.d.ts.map +1 -1
  125. package/dist/types/utils/extractErrorMessage.d.ts +1 -2
  126. package/dist/types/utils/extractErrorMessage.d.ts.map +1 -1
  127. package/dist/types/utils/getDictionarySelectorUsage.d.ts +1 -2
  128. package/dist/types/utils/getDictionarySelectorUsage.d.ts.map +1 -1
  129. package/dist/types/utils/getExtension.d.ts +1 -2
  130. package/dist/types/utils/getExtension.d.ts.map +1 -1
  131. package/dist/types/utils/getPackageJsonPath.d.ts +1 -2
  132. package/dist/types/utils/getPackageJsonPath.d.ts.map +1 -1
  133. package/dist/types/utils/getStorageAttributes.d.ts +1 -2
  134. package/dist/types/utils/getStorageAttributes.d.ts.map +1 -1
  135. package/dist/types/utils/getUsedNodeTypes.d.ts +5 -6
  136. package/dist/types/utils/getUsedNodeTypes.d.ts.map +1 -1
  137. package/dist/types/utils/isPackageInstalled.d.ts +1 -2
  138. package/dist/types/utils/isPackageInstalled.d.ts.map +1 -1
  139. package/dist/types/utils/logStack.d.ts +1 -2
  140. package/dist/types/utils/logStack.d.ts.map +1 -1
  141. package/dist/types/utils/normalizePath.d.ts +1 -2
  142. package/dist/types/utils/normalizePath.d.ts.map +1 -1
  143. package/dist/types/utils/parseFilePathPattern.d.ts +2 -3
  144. package/dist/types/utils/parseFilePathPattern.d.ts.map +1 -1
  145. package/dist/types/utils/pathSecurity.d.ts +1 -2
  146. package/dist/types/utils/pathSecurity.d.ts.map +1 -1
  147. package/dist/types/utils/retryManager.d.ts +2 -3
  148. package/dist/types/utils/retryManager.d.ts.map +1 -1
  149. package/dist/types/utils/setIntlayerIdentifier.d.ts +2 -3
  150. package/dist/types/utils/setIntlayerIdentifier.d.ts.map +1 -1
  151. package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts +1 -2
  152. package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts.map +1 -1
  153. package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts +1 -2
  154. package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts.map +1 -1
  155. package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts +1 -2
  156. package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts.map +1 -1
  157. package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts +1 -2
  158. package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts.map +1 -1
  159. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"transform.mjs","names":[],"sources":["../../../src/callers/transform.ts"],"sourcesContent":["import type { CallerDescriptor, CallerValueSource } from './types';\n\n/**\n * Wire format of an extra caller forwarded to the `@intlayer/swc` plugin.\n *\n * Field names mirror the serde attributes of `ExtraCallerConfig` in\n * `packages/@intlayer/swc/src/lib.rs` — both sides must stay in sync.\n */\nexport type SwcExtraCallerConfig = {\n /** The function name the user calls, e.g. `\"useTranslation\"`. */\n callerName: string;\n /** Module specifiers exporting the function (original + `@intlayer/*`). */\n importSources: string[];\n /**\n * Zero-based index of the positional argument holding the namespace string.\n * Omitted for fixed/option namespace callers.\n */\n namespaceArgIndex?: number;\n /**\n * Compile-time constant namespace — the dictionary ident is inserted as a\n * new first argument (lingui's `useLingui()`).\n */\n fixedNamespace?: string;\n /**\n * Namespace read from a property of an options-object argument — the\n * dictionary ident is inserted as a new first argument and the property is\n * rewritten to the key-prefix remainder (vue-i18n's `useI18n({ namespace })`).\n */\n namespaceOption?: { argumentIndex: number; property: string };\n /** Replacement function name for static import mode, e.g. `\"useDictionary\"`. */\n staticReplacement: string;\n /** Replacement function name for dynamic/fetch mode, e.g. `\"useDictionaryDynamic\"`. */\n dynamicReplacement: string;\n};\n\n/**\n * Returns the callers of a registry slice that the optimize pass can rewrite\n * at build time: plain imported functions carrying both replacement names.\n *\n * Method-matched callers (`i18n.getFixedT`) and JSX components are excluded —\n * their call sites cannot be re-pointed through an import specifier rename.\n */\nexport const getRewritableCallers = (\n descriptors: CallerDescriptor[]\n): CallerDescriptor[] =>\n descriptors.filter(\n (descriptor) =>\n descriptor.staticReplacement !== undefined &&\n descriptor.dynamicReplacement !== undefined &&\n descriptor.matchAsMethod !== true &&\n descriptor.jsxIdAttribute === undefined\n );\n\nconst findSource = <F extends CallerValueSource['from']>(\n sources: CallerValueSource[],\n from: F\n): Extract<CallerValueSource, { from: F }> | undefined =>\n sources.find(\n (source): source is Extract<CallerValueSource, { from: F }> =>\n source.from === from\n );\n\n/**\n * Serialises the rewritable callers of a registry slice into the\n * `@intlayer/swc` plugin wire format (`extraCallers` option).\n *\n * Callers whose namespace can only be derived per-message id\n * (`path-first-segment`) are skipped: the transform cannot bind a single\n * dictionary to the call site.\n *\n * @param descriptors - Registry slice, e.g. `REACT_I18NEXT_CALLERS`.\n * @returns Configs ready to pass as `swcExtraCallers` / `extraCallers`.\n */\nexport const toSwcExtraCallers = (\n descriptors: CallerDescriptor[]\n): SwcExtraCallerConfig[] =>\n getRewritableCallers(descriptors).flatMap((descriptor) => {\n const argumentSource = findSource(descriptor.namespaceSources, 'argument');\n const optionSource = findSource(descriptor.namespaceSources, 'option');\n const fixedSource = findSource(descriptor.namespaceSources, 'fixed');\n\n if (!argumentSource && !optionSource && !fixedSource) return [];\n\n return [\n {\n callerName: descriptor.callerName,\n importSources: descriptor.importSources,\n ...(argumentSource ? { namespaceArgIndex: argumentSource.index } : {}),\n ...(fixedSource ? { fixedNamespace: fixedSource.value } : {}),\n ...(optionSource\n ? {\n namespaceOption: {\n argumentIndex: optionSource.argumentIndex,\n property: optionSource.property,\n },\n }\n : {}),\n staticReplacement: descriptor.staticReplacement!,\n dynamicReplacement: descriptor.dynamicReplacement!,\n },\n ];\n });\n"],"mappings":";;;;;;;;AA0CA,MAAa,wBACX,gBAEA,YAAY,QACT,eACC,WAAW,sBAAsB,UACjC,WAAW,uBAAuB,UAClC,WAAW,kBAAkB,QAC7B,WAAW,mBAAmB,MAClC;AAEF,MAAM,cACJ,SACA,SAEA,QAAQ,MACL,WACC,OAAO,SAAS,IACpB;;;;;;;;;;;;AAaF,MAAa,qBACX,gBAEA,qBAAqB,WAAW,CAAC,CAAC,SAAS,eAAe;CACxD,MAAM,iBAAiB,WAAW,WAAW,kBAAkB,UAAU;CACzE,MAAM,eAAe,WAAW,WAAW,kBAAkB,QAAQ;CACrE,MAAM,cAAc,WAAW,WAAW,kBAAkB,OAAO;CAEnE,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,aAAa,OAAO,CAAC;CAE9D,OAAO,CACL;EACE,YAAY,WAAW;EACvB,eAAe,WAAW;EAC1B,GAAI,iBAAiB,EAAE,mBAAmB,eAAe,MAAM,IAAI,CAAC;EACpE,GAAI,cAAc,EAAE,gBAAgB,YAAY,MAAM,IAAI,CAAC;EAC3D,GAAI,eACA,EACE,iBAAiB;GACf,eAAe,aAAa;GAC5B,UAAU,aAAa;EACzB,EACF,IACA,CAAC;EACL,mBAAmB,WAAW;EAC9B,oBAAoB,WAAW;CACjC,CACF;AACF,CAAC"}
1
+ {"version":3,"file":"transform.mjs","names":[],"sources":["../../../src/callers/transform.ts"],"sourcesContent":["import type { CallerDescriptor, CallerValueSource } from './types';\n\n/**\n * Wire format of an extra caller forwarded to the `@intlayer/swc` plugin.\n *\n * Field names mirror the serde attributes of `ExtraCallerConfig` in\n * `packages/@intlayer/swc/src/lib.rs` — both sides must stay in sync.\n */\nexport type SwcExtraCallerConfig = {\n /** The function name the user calls, e.g. `\"useTranslation\"`. */\n callerName: string;\n /** Module specifiers exporting the function (original + `@intlayer/*`). */\n importSources: string[];\n /**\n * Zero-based index of the positional argument holding the namespace string.\n * Omitted for fixed/option namespace callers.\n */\n namespaceArgIndex?: number;\n /**\n * Compile-time constant namespace — the dictionary ident is inserted as a\n * new first argument (lingui's `useLingui()`).\n */\n fixedNamespace?: string;\n /**\n * Namespace read from a property of an options-object argument — the\n * dictionary ident is inserted as a new first argument and the property is\n * rewritten to the key-prefix remainder (vue-i18n's `useI18n({ namespace })`).\n */\n namespaceOption?: { argumentIndex: number; property: string };\n /** Replacement function name for static import mode, e.g. `\"useDictionary\"`. */\n staticReplacement: string;\n /** Replacement function name for dynamic/fetch mode, e.g. `\"useDictionaryDynamic\"`. */\n dynamicReplacement: string;\n};\n\n/**\n * Whether the optimize pass can rewrite this caller's call sites at build time.\n *\n * Requires both replacement names and a call shape reachable through an import\n * specifier rename. Method-matched callers (`i18n.getFixedT`, `intl.formatMessage`)\n * and JSX components (`<Trans>`, `<FormattedMessage>`) are excluded their call\n * sites keep resolving through the runtime dictionary registry.\n */\nexport const isRewritableCaller = (descriptor: CallerDescriptor): boolean =>\n descriptor.staticReplacement !== undefined &&\n descriptor.dynamicReplacement !== undefined &&\n descriptor.matchAsMethod !== true &&\n descriptor.jsxIdAttribute === undefined;\n\n/**\n * Returns the callers of a registry slice that the optimize pass can rewrite\n * at build time. See {@link isRewritableCaller}.\n */\nexport const getRewritableCallers = (\n descriptors: CallerDescriptor[]\n): CallerDescriptor[] => descriptors.filter(isRewritableCaller);\n\nconst findSource = <F extends CallerValueSource['from']>(\n sources: CallerValueSource[],\n from: F\n): Extract<CallerValueSource, { from: F }> | undefined =>\n sources.find(\n (source): source is Extract<CallerValueSource, { from: F }> =>\n source.from === from\n );\n\n/**\n * Serialises the rewritable callers of a registry slice into the\n * `@intlayer/swc` plugin wire format (`extraCallers` option).\n *\n * A caller with no statically readable namespace source is dropped: the plugin\n * binds a dictionary from an argument, an option property or a fixed value\n * only, so forwarding it would emit a descriptor no call site can match.\n *\n * @param descriptors - Registry slice, e.g. `REACT_I18NEXT_CALLERS`.\n * @returns Configs ready to pass as the plugin's `extraCallers` option.\n */\nexport const toSwcExtraCallers = (\n descriptors: CallerDescriptor[]\n): SwcExtraCallerConfig[] =>\n getRewritableCallers(descriptors).flatMap((descriptor) => {\n const argumentSource = findSource(descriptor.namespaceSources, 'argument');\n const optionSource = findSource(descriptor.namespaceSources, 'option');\n const fixedSource = findSource(descriptor.namespaceSources, 'fixed');\n\n if (!argumentSource && !optionSource && !fixedSource) return [];\n\n return [\n {\n callerName: descriptor.callerName,\n importSources: descriptor.importSources,\n ...(argumentSource ? { namespaceArgIndex: argumentSource.index } : {}),\n ...(fixedSource ? { fixedNamespace: fixedSource.value } : {}),\n ...(optionSource\n ? {\n namespaceOption: {\n argumentIndex: optionSource.argumentIndex,\n property: optionSource.property,\n },\n }\n : {}),\n staticReplacement: descriptor.staticReplacement!,\n dynamicReplacement: descriptor.dynamicReplacement!,\n },\n ];\n });\n"],"mappings":";;;;;;;;;AA2CA,MAAa,sBAAsB,eACjC,WAAW,sBAAsB,UACjC,WAAW,uBAAuB,UAClC,WAAW,kBAAkB,QAC7B,WAAW,mBAAmB;;;;;AAMhC,MAAa,wBACX,gBACuB,YAAY,OAAO,kBAAkB;AAE9D,MAAM,cACJ,SACA,SAEA,QAAQ,MACL,WACC,OAAO,SAAS,IACpB;;;;;;;;;;;;AAaF,MAAa,qBACX,gBAEA,qBAAqB,WAAW,CAAC,CAAC,SAAS,eAAe;CACxD,MAAM,iBAAiB,WAAW,WAAW,kBAAkB,UAAU;CACzE,MAAM,eAAe,WAAW,WAAW,kBAAkB,QAAQ;CACrE,MAAM,cAAc,WAAW,WAAW,kBAAkB,OAAO;CAEnE,IAAI,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,aAAa,OAAO,CAAC;CAE9D,OAAO,CACL;EACE,YAAY,WAAW;EACvB,eAAe,WAAW;EAC1B,GAAI,iBAAiB,EAAE,mBAAmB,eAAe,MAAM,IAAI,CAAC;EACpE,GAAI,cAAc,EAAE,gBAAgB,YAAY,MAAM,IAAI,CAAC;EAC3D,GAAI,eACA,EACE,iBAAiB;GACf,eAAe,aAAa;GAC5B,UAAU,aAAa;EACzB,EACF,IACA,CAAC;EACL,mBAAmB,WAAW;EAC9B,oBAAoB,WAAW;CACjC,CACF;AACF,CAAC"}
@@ -3,19 +3,18 @@
3
3
  * @intlayer/config/built is a package that only returns the configuration file as a JSON object.
4
4
  * Using an external package allow to alias it in the bundle configuration (such as webpack).
5
5
  */
6
- declare const internationalization: any;
7
- declare const dictionary: any;
8
- declare const routing: any;
9
- declare const content: any;
10
- declare const system: any;
11
- declare const editor: any;
12
- declare const analytics: any;
13
- declare const log: any;
14
- declare const ai: any;
15
- declare const build: any;
16
- declare const compiler: any;
17
- declare const schemas: any;
18
- declare const plugins: any;
6
+ export declare const internationalization: any;
7
+ export declare const dictionary: any;
8
+ export declare const routing: any;
9
+ export declare const content: any;
10
+ export declare const system: any;
11
+ export declare const editor: any;
12
+ export declare const analytics: any;
13
+ export declare const log: any;
14
+ export declare const ai: any;
15
+ export declare const build: any;
16
+ export declare const compiler: any;
17
+ export declare const schemas: any;
18
+ export declare const plugins: any;
19
19
  //#endregion
20
- export { ai, analytics, build, compiler, content, dictionary, editor, internationalization, log, plugins, routing, schemas, system };
21
20
  //# sourceMappingURL=built.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"built.d.ts","names":[],"sources":["../../src/built.ts"],"mappings":";;;;;cAaa;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA"}
1
+ {"version":3,"file":"built.d.ts","names":[],"sources":["../../src/built.ts"],"mappings":";;;;;qBAaa;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA"}
@@ -1,8 +1,8 @@
1
1
  import { GetConfigurationOptions } from "../configFile/getConfiguration.js";
2
2
  import { BuildOptions } from "esbuild";
3
3
  //#region src/bundle/index.d.ts
4
- declare const packageList: readonly ['next-intlayer', 'react-intlayer', 'vue-intlayer', 'svelte-intlayer', 'preact-intlayer', 'solid-intlayer', 'angular-intlayer', 'lit-intlayer', 'express-intlayer', 'hono-intlayer', 'fastify-intlayer', 'adonis-intlayer', 'vanilla-intlayer', 'intlayer'];
5
- type BundleIntlayerOptions = {
4
+ export declare const packageList: readonly ['next-intlayer', 'react-intlayer', 'vue-intlayer', 'svelte-intlayer', 'preact-intlayer', 'solid-intlayer', 'angular-intlayer', 'lit-intlayer', 'express-intlayer', 'hono-intlayer', 'fastify-intlayer', 'adonis-intlayer', 'vanilla-intlayer', 'intlayer'];
5
+ export type BundleIntlayerOptions = {
6
6
  outfile?: string;
7
7
  configOptions?: GetConfigurationOptions;
8
8
  bundlePackages?: string[];
@@ -15,7 +15,6 @@ type BundleIntlayerOptions = {
15
15
  * @param options - Bundle options including entryPoint, outfile, and esbuild options.
16
16
  * @returns The build result.
17
17
  */
18
- declare const bundleIntlayer: (options: BundleIntlayerOptions) => Promise<import("esbuild").BuildResult<BuildOptions>>;
18
+ export declare const bundleIntlayer: (options: BundleIntlayerOptions) => Promise<import("esbuild").BuildResult<BuildOptions>>;
19
19
  //#endregion
20
- export { BundleIntlayerOptions, bundleIntlayer, packageList };
21
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/bundle/index.ts"],"mappings":";;;cAgBa;KAmBD;EACV;EACA,gBAAgB;EAChB;EACA;IACE;;;;;;;;cASS,iBAAc,SAAmB,0BAAqB,0BAAA,YAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/bundle/index.ts"],"mappings":";;;qBAgBa;YAmBD;EACV;EACA,gBAAgB;EAChB;EACA;IACE;;;;;;;;qBASS,iBAAc,SAAmB,0BAAqB,0BAAA,YAAA"}
@@ -1,6 +1,6 @@
1
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
2
  //#region src/bundle/logBundle.d.ts
3
- declare class BundleLogger {
3
+ export declare class BundleLogger {
4
4
  private status;
5
5
  private spinnerTimer;
6
6
  private spinnerIndex;
@@ -18,5 +18,4 @@ declare class BundleLogger {
18
18
  private render;
19
19
  }
20
20
  //#endregion
21
- export { BundleLogger };
22
21
  //# sourceMappingURL=logBundle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logBundle.d.ts","names":[],"sources":["../../../src/bundle/logBundle.ts"],"mappings":";;cAKa;UACH;UAEA;UACA;UACA;UACA;mBACS;UACT;UACA;EAER,YAAY,gBAAgB;EAI5B,UAAU;EAWV,SAAS;UAOD;UAQA;UAMA;UAMA"}
1
+ {"version":3,"file":"logBundle.d.ts","names":[],"sources":["../../../src/bundle/logBundle.ts"],"mappings":";;qBAKa;UACH;UAEA;UACA;UACA;UACA;mBACS;UACT;UACA;EAER,YAAY,gBAAgB;EAI5B,UAAU;EAWV,SAAS;UAOD;UAQA;UAMA;UAMA"}
@@ -7,7 +7,6 @@ import { CallerDescriptor } from "./types.js";
7
7
  * through member access (`content.title`) or destructuring
8
8
  * (`const { title } = useIntlayer('home')`).
9
9
  */
10
- declare const BASE_CALLERS: CallerDescriptor[];
10
+ export declare const BASE_CALLERS: CallerDescriptor[];
11
11
  //#endregion
12
- export { BASE_CALLERS };
13
12
  //# sourceMappingURL=base.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","names":[],"sources":["../../../src/callers/base.ts"],"mappings":";;;;;;;;;cASa,cAAc"}
1
+ {"version":3,"file":"base.d.ts","names":[],"sources":["../../../src/callers/base.ts"],"mappings":";;;;;;;;;qBASa,cAAc"}
@@ -5,7 +5,6 @@ import { CallerDescriptor } from "../types.js";
5
5
  *
6
6
  * Mirrors `compat/i18next/src/plugin/index.ts` (`I18NEXT_COMPAT_CALLERS`).
7
7
  */
8
- declare const I18NEXT_CALLERS: CallerDescriptor[];
8
+ export declare const I18NEXT_CALLERS: CallerDescriptor[];
9
9
  //#endregion
10
- export { I18NEXT_CALLERS };
11
10
  //# sourceMappingURL=i18next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i18next.d.ts","names":[],"sources":["../../../../src/callers/compat/i18next.ts"],"mappings":";;;;;;;cAOa,iBAAiB"}
1
+ {"version":3,"file":"i18next.d.ts","names":[],"sources":["../../../../src/callers/compat/i18next.ts"],"mappings":";;;;;;;qBAOa,iBAAiB"}
@@ -1,6 +1,5 @@
1
1
  import { CallerDescriptor } from "../types.js";
2
2
  //#region src/callers/compat/lingui.d.ts
3
- declare const LINGUI_CALLERS: CallerDescriptor[];
3
+ export declare const LINGUI_CALLERS: CallerDescriptor[];
4
4
  //#endregion
5
- export { LINGUI_CALLERS };
6
5
  //# sourceMappingURL=lingui.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lingui.d.ts","names":[],"sources":["../../../../src/callers/compat/lingui.ts"],"mappings":";;cAwBa,gBAAgB"}
1
+ {"version":3,"file":"lingui.d.ts","names":[],"sources":["../../../../src/callers/compat/lingui.ts"],"mappings":";;qBA8Ba,gBAAgB"}
@@ -6,7 +6,6 @@ import { CallerDescriptor } from "../types.js";
6
6
  * Mirrors `compat/next-intl/src/plugin/index.ts` (`NEXT_INTL_SWC_CALLERS`),
7
7
  * adding the `getTranslations({ locale, namespace })` object overload.
8
8
  */
9
- declare const NEXT_INTL_CALLERS: CallerDescriptor[];
9
+ export declare const NEXT_INTL_CALLERS: CallerDescriptor[];
10
10
  //#endregion
11
- export { NEXT_INTL_CALLERS };
12
11
  //# sourceMappingURL=nextIntl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nextIntl.d.ts","names":[],"sources":["../../../../src/callers/compat/nextIntl.ts"],"mappings":";;;;;;;;cAQa,mBAAmB"}
1
+ {"version":3,"file":"nextIntl.d.ts","names":[],"sources":["../../../../src/callers/compat/nextIntl.ts"],"mappings":";;;;;;;;qBAQa,mBAAmB"}
@@ -8,7 +8,6 @@ import { CallerDescriptor } from "../types.js";
8
8
  * Mirrors `compat/react-i18next/src/plugin/index.ts` and
9
9
  * `compat/next-i18next/src/plugin/index.ts`.
10
10
  */
11
- declare const REACT_I18NEXT_CALLERS: CallerDescriptor[];
11
+ export declare const REACT_I18NEXT_CALLERS: CallerDescriptor[];
12
12
  //#endregion
13
- export { REACT_I18NEXT_CALLERS };
14
13
  //# sourceMappingURL=reactI18next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reactI18next.d.ts","names":[],"sources":["../../../../src/callers/compat/reactI18next.ts"],"mappings":";;;;;;;;;;cAUa,uBAAuB"}
1
+ {"version":3,"file":"reactI18next.d.ts","names":[],"sources":["../../../../src/callers/compat/reactI18next.ts"],"mappings":";;;;;;;;;;qBAUa,uBAAuB"}
@@ -9,7 +9,6 @@ import { CallerDescriptor } from "../types.js";
9
9
  *
10
10
  * Mirrors `compat/react-intl/src/plugin/index.ts`.
11
11
  */
12
- declare const REACT_INTL_CALLERS: CallerDescriptor[];
12
+ export declare const REACT_INTL_CALLERS: CallerDescriptor[];
13
13
  //#endregion
14
- export { REACT_INTL_CALLERS };
15
14
  //# sourceMappingURL=reactIntl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reactIntl.d.ts","names":[],"sources":["../../../../src/callers/compat/reactIntl.ts"],"mappings":";;;;;;;;;;;cAWa,oBAAoB"}
1
+ {"version":3,"file":"reactIntl.d.ts","names":[],"sources":["../../../../src/callers/compat/reactIntl.ts"],"mappings":";;;;;;;;;;;qBAWa,oBAAoB"}
@@ -5,7 +5,6 @@ import { CallerDescriptor } from "../types.js";
5
5
  *
6
6
  * Mirrors `compat/use-intl/src/plugin/index.ts`.
7
7
  */
8
- declare const USE_INTL_CALLERS: CallerDescriptor[];
8
+ export declare const USE_INTL_CALLERS: CallerDescriptor[];
9
9
  //#endregion
10
- export { USE_INTL_CALLERS };
11
10
  //# sourceMappingURL=useIntl.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../../src/callers/compat/useIntl.ts"],"mappings":";;;;;;;cAOa,kBAAkB"}
1
+ {"version":3,"file":"useIntl.d.ts","names":[],"sources":["../../../../src/callers/compat/useIntl.ts"],"mappings":";;;;;;;qBAOa,kBAAkB"}
@@ -5,7 +5,6 @@ import { CallerDescriptor } from "../types.js";
5
5
  *
6
6
  * Mirrors `compat/vue-i18n/src/plugin/index.ts`.
7
7
  */
8
- declare const VUE_I18N_CALLERS: CallerDescriptor[];
8
+ export declare const VUE_I18N_CALLERS: CallerDescriptor[];
9
9
  //#endregion
10
- export { VUE_I18N_CALLERS };
11
10
  //# sourceMappingURL=vueI18n.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vueI18n.d.ts","names":[],"sources":["../../../../src/callers/compat/vueI18n.ts"],"mappings":";;;;;;;cAOa,kBAAkB"}
1
+ {"version":3,"file":"vueI18n.d.ts","names":[],"sources":["../../../../src/callers/compat/vueI18n.ts"],"mappings":";;;;;;;qBAOa,kBAAkB"}
@@ -7,7 +7,7 @@ import { REACT_I18NEXT_CALLERS } from "./compat/reactI18next.js";
7
7
  import { REACT_INTL_CALLERS } from "./compat/reactIntl.js";
8
8
  import { USE_INTL_CALLERS } from "./compat/useIntl.js";
9
9
  import { VUE_I18N_CALLERS } from "./compat/vueI18n.js";
10
- import { SwcExtraCallerConfig, getRewritableCallers, toSwcExtraCallers } from "./transform.js";
10
+ import { SwcExtraCallerConfig, getRewritableCallers, isRewritableCaller, toSwcExtraCallers } from "./transform.js";
11
11
  //#region src/callers/index.d.ts
12
12
  /**
13
13
  * Compat-adapter callers, grouped in one list. Each compat package's bundler
@@ -15,15 +15,15 @@ import { SwcExtraCallerConfig, getRewritableCallers, toSwcExtraCallers } from ".
15
15
  * pipeline; this aggregate exists for consumers that need every syntax at
16
16
  * once, such as the LSP.
17
17
  */
18
- declare const COMPAT_CALLERS: CallerDescriptor[];
18
+ export declare const COMPAT_CALLERS: CallerDescriptor[];
19
19
  /** Base + compat callers — the full registry the matchers run against. */
20
- declare const ALL_CALLERS: CallerDescriptor[];
20
+ export declare const ALL_CALLERS: CallerDescriptor[];
21
21
  /**
22
22
  * Descriptors indexed by caller name. A name can map to several descriptors
23
23
  * (e.g. `Trans` exists in both react-i18next and lingui with different
24
24
  * attributes); matchers try them in registry order.
25
25
  */
26
- declare const CALLERS_BY_NAME: Map<string, CallerDescriptor[]>;
26
+ export declare const CALLERS_BY_NAME: Map<string, CallerDescriptor[]>;
27
27
  /**
28
28
  * Caller names whose dictionary key can appear as a positional string literal
29
29
  * argument (`caller('key', …)` / `caller(locale, 'key', …)`). Used to build
@@ -31,7 +31,7 @@ declare const CALLERS_BY_NAME: Map<string, CallerDescriptor[]>;
31
31
  * completion trigger pattern. Callers whose key never appears positionally
32
32
  * (fixed namespace, options object, JSX-only) are excluded on purpose.
33
33
  */
34
- declare const getPositionalKeyCallerNames: () => string[];
34
+ export declare const getPositionalKeyCallerNames: () => string[];
35
35
  /**
36
36
  * Returns `true` when the descriptor may participate in matching for a file
37
37
  * importing from `importSources`. Descriptors flagged `requiresImport` only
@@ -42,7 +42,7 @@ declare const getPositionalKeyCallerNames: () => string[];
42
42
  * @param descriptor - The caller descriptor to gate.
43
43
  * @param fileImportSources - Module specifiers imported by the analysed file.
44
44
  */
45
- declare const isCallerActive: (descriptor: CallerDescriptor, fileImportSources: ReadonlySet<string>) => boolean;
45
+ export declare const isCallerActive: (descriptor: CallerDescriptor, fileImportSources: ReadonlySet<string>) => boolean;
46
46
  //#endregion
47
- export { ALL_CALLERS, BASE_CALLERS, CALLERS_BY_NAME, COMPAT_CALLERS, type CallerDescriptor, type CallerResultShape, type CallerValueSource, I18NEXT_CALLERS, LINGUI_CALLERS, NEXT_INTL_CALLERS, REACT_I18NEXT_CALLERS, REACT_INTL_CALLERS, type SwcExtraCallerConfig, USE_INTL_CALLERS, VUE_I18N_CALLERS, getPositionalKeyCallerNames, getRewritableCallers, isCallerActive, toSwcExtraCallers };
47
+ export { BASE_CALLERS, type CallerDescriptor, type CallerResultShape, type CallerValueSource, I18NEXT_CALLERS, LINGUI_CALLERS, NEXT_INTL_CALLERS, REACT_I18NEXT_CALLERS, REACT_INTL_CALLERS, type SwcExtraCallerConfig, USE_INTL_CALLERS, VUE_I18N_CALLERS, getRewritableCallers, isRewritableCaller, toSwcExtraCallers };
48
48
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/callers/index.ts"],"mappings":";;;;;;;;;;;;;;;;;cAmCa,gBAAgB;;cAWhB,aAAa;;;;;;cAUb,iBAAiB,YAAY;;;;;;;;cAuB7B;;;;;;;;;;;cAwBA,iBAAc,YACb,kBAAgB,mBACT"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/callers/index.ts"],"mappings":";;;;;;;;;;;;;;;;;qBAoCa,gBAAgB;;qBAWhB,aAAa;;;;;;qBAUb,iBAAiB,YAAY;;;;;;;;qBAuB7B;;;;;;;;;;;qBAwBA,iBAAc,YACb,kBAAgB,mBACT"}
@@ -6,7 +6,7 @@ import { CallerDescriptor } from "./types.js";
6
6
  * Field names mirror the serde attributes of `ExtraCallerConfig` in
7
7
  * `packages/@intlayer/swc/src/lib.rs` — both sides must stay in sync.
8
8
  */
9
- type SwcExtraCallerConfig = {
9
+ export type SwcExtraCallerConfig = {
10
10
  /** The function name the user calls, e.g. `"useTranslation"`. */
11
11
  callerName: string;
12
12
  /** Module specifiers exporting the function (original + `@intlayer/*`). */
@@ -36,25 +36,30 @@ type SwcExtraCallerConfig = {
36
36
  dynamicReplacement: string;
37
37
  };
38
38
  /**
39
- * Returns the callers of a registry slice that the optimize pass can rewrite
40
- * at build time: plain imported functions carrying both replacement names.
39
+ * Whether the optimize pass can rewrite this caller's call sites at build time.
41
40
  *
42
- * Method-matched callers (`i18n.getFixedT`) and JSX components are excluded
43
- * their call sites cannot be re-pointed through an import specifier rename.
41
+ * Requires both replacement names and a call shape reachable through an import
42
+ * specifier rename. Method-matched callers (`i18n.getFixedT`, `intl.formatMessage`)
43
+ * and JSX components (`<Trans>`, `<FormattedMessage>`) are excluded — their call
44
+ * sites keep resolving through the runtime dictionary registry.
45
+ */
46
+ export declare const isRewritableCaller: (descriptor: CallerDescriptor) => boolean;
47
+ /**
48
+ * Returns the callers of a registry slice that the optimize pass can rewrite
49
+ * at build time. See {@link isRewritableCaller}.
44
50
  */
45
- declare const getRewritableCallers: (descriptors: CallerDescriptor[]) => CallerDescriptor[];
51
+ export declare const getRewritableCallers: (descriptors: CallerDescriptor[]) => CallerDescriptor[];
46
52
  /**
47
53
  * Serialises the rewritable callers of a registry slice into the
48
54
  * `@intlayer/swc` plugin wire format (`extraCallers` option).
49
55
  *
50
- * Callers whose namespace can only be derived per-message id
51
- * (`path-first-segment`) are skipped: the transform cannot bind a single
52
- * dictionary to the call site.
56
+ * A caller with no statically readable namespace source is dropped: the plugin
57
+ * binds a dictionary from an argument, an option property or a fixed value
58
+ * only, so forwarding it would emit a descriptor no call site can match.
53
59
  *
54
60
  * @param descriptors - Registry slice, e.g. `REACT_I18NEXT_CALLERS`.
55
- * @returns Configs ready to pass as `swcExtraCallers` / `extraCallers`.
61
+ * @returns Configs ready to pass as the plugin's `extraCallers` option.
56
62
  */
57
- declare const toSwcExtraCallers: (descriptors: CallerDescriptor[]) => SwcExtraCallerConfig[];
63
+ export declare const toSwcExtraCallers: (descriptors: CallerDescriptor[]) => SwcExtraCallerConfig[];
58
64
  //#endregion
59
- export { SwcExtraCallerConfig, getRewritableCallers, toSwcExtraCallers };
60
65
  //# sourceMappingURL=transform.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transform.d.ts","names":[],"sources":["../../../src/callers/transform.ts"],"mappings":";;;;;;;;KAQY;;EAEV;;EAEA;;;;;EAKA;;;;;EAKA;;;;;;EAMA;IAAoB;IAAuB;;;EAE3C;;EAEA;;;;;;;;;cAUW,uBAAoB,aAClB,uBACZ;;;;;;;;;;;;cA6BU,oBAAiB,aACf,uBACZ"}
1
+ {"version":3,"file":"transform.d.ts","names":[],"sources":["../../../src/callers/transform.ts"],"mappings":";;;;;;;;YAQY;;EAEV;;EAEA;;;;;EAKA;;;;;EAKA;;;;;;EAMA;IAAoB;IAAuB;;;EAE3C;;EAEA;;;;;;;;;;qBAWW,qBAAkB,YAAgB;;;;;qBAUlC,uBAAoB,aAClB,uBACZ;;;;;;;;;;;;qBAsBU,oBAAiB,aACf,uBACZ"}
@@ -23,7 +23,7 @@
23
23
  * Where a value (namespace/dictionary key, or key prefix) is read from a call
24
24
  * expression.
25
25
  */
26
- type CallerValueSource =
26
+ export type CallerValueSource =
27
27
  /** Positional argument holding a string literal, e.g. `useTranslations('ns')`. */
28
28
  {
29
29
  from: 'argument';
@@ -67,11 +67,11 @@ type CallerValueSource =
67
67
  * dictionary is marked as used (Angular templates,
68
68
  * lingui hashed ids).
69
69
  */
70
- type CallerResultShape = 'content' | 'return-value' | 'destructured-t' | 'self' | 'all';
70
+ export type CallerResultShape = 'content' | 'return-value' | 'destructured-t' | 'self' | 'all';
71
71
  /**
72
72
  * Full description of a single caller.
73
73
  */
74
- type CallerDescriptor = {
74
+ export type CallerDescriptor = {
75
75
  /** Function or JSX component name, e.g. `'useTranslation'`, `'FormattedMessage'`. */
76
76
  callerName: string;
77
77
  /** Library identifier grouping related callers, e.g. `'react-i18next'`. */
@@ -129,6 +129,12 @@ type CallerDescriptor = {
129
129
  * When `true`, the caller may be invoked without any namespace
130
130
  * (`useTranslations()` root scope) — the dictionary key is then the first
131
131
  * dot-segment of each message id passed to the returned `t()`.
132
+ *
133
+ * Analysis-only: the LSP resolves such bindings for go-to-definition, and
134
+ * the ESLint rule stops reporting the missing argument as a dynamic key.
135
+ * The optimize passes do **not** honour it — a call with no readable
136
+ * namespace is left to the runtime registry, so declaring it never changes
137
+ * the emitted bundle.
132
138
  */
133
139
  allowRootScope?: boolean;
134
140
  /** How translated content is obtained from the caller's result. */
@@ -156,5 +162,4 @@ type CallerDescriptor = {
156
162
  dynamicReplacement?: string;
157
163
  };
158
164
  //#endregion
159
- export { CallerDescriptor, CallerResultShape, CallerValueSource };
160
165
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/callers/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;KAyBY;;;EAEN;EAAkB;;;;EAElB;EAAgB;EAAuB;;;;;;;EAKvC;EAAe;;;;;;;;EAMf;;;;;;;;;;;;;;;;;;KAkBM;;;;KAUA;;EAEV;;EAEA;;;;;;EAMA;;;;;;EAMA;;;;;;EAMA;;EAEA;;;;;;EAMA;;;;;EAKA;;;;;EAKA,kBAAkB;;;;;;EAMlB,mBAAmB;;;;;;;EAOnB;;;;;;EAMA;;EAEA,qBAAqB;;;;;;EAMrB;;;;;;;;;;EAUA;;;;;EAKA"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../src/callers/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;YAyBY;;;EAEN;EAAkB;;;;EAElB;EAAgB;EAAuB;;;;;;;EAKvC;EAAe;;;;;;;;EAMf;;;;;;;;;;;;;;;;;;YAkBM;;;;YAUA;;EAEV;;EAEA;;;;;;EAMA;;;;;;EAMA;;;;;;EAMA;;EAEA;;;;;;EAMA;;;;;EAKA;;;;;EAKA,kBAAkB;;;;;;EAMlB,mBAAmB;;;;;;;EAOnB;;;;;;;;;;;;EAYA;;EAEA,qBAAqB;;;;;;EAMrB;;;;;;;;;;EAUA;;;;;EAKA"}
@@ -1,20 +1,20 @@
1
1
  declare namespace colors_d_exports {
2
2
  export { BEIGE, BLUE, BOLD, CYAN, GREEN, GREY, GREY_DARK, GREY_LIGHT, MAGENTA, ORANGE, RED, RESET, WHITE, YELLOW };
3
3
  }
4
- declare const RESET: '';
5
- declare const GREY: '';
6
- declare const GREY_DARK: '';
7
- declare const GREY_LIGHT: '';
8
- declare const BLUE: '';
9
- declare const RED: '';
10
- declare const GREEN: '';
11
- declare const YELLOW: '';
12
- declare const MAGENTA: '';
13
- declare const BEIGE: '';
14
- declare const ORANGE: '';
15
- declare const CYAN: '';
16
- declare const WHITE: '';
17
- declare const BOLD: '';
4
+ export declare const RESET: '';
5
+ export declare const GREY: '';
6
+ export declare const GREY_DARK: '';
7
+ export declare const GREY_LIGHT: '';
8
+ export declare const BLUE: '';
9
+ export declare const RED: '';
10
+ export declare const GREEN: '';
11
+ export declare const YELLOW: '';
12
+ export declare const MAGENTA: '';
13
+ export declare const BEIGE: '';
14
+ export declare const ORANGE: '';
15
+ export declare const CYAN: '';
16
+ export declare const WHITE: '';
17
+ export declare const BOLD: '';
18
18
  //#endregion
19
- export { BEIGE, BLUE, BOLD, CYAN, GREEN, GREY, GREY_DARK, GREY_LIGHT, MAGENTA, ORANGE, RED, RESET, WHITE, YELLOW, colors_d_exports };
19
+ export { colors_d_exports };
20
20
  //# sourceMappingURL=colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","names":[],"sources":["../../src/colors.ts"],"mappings":";;;cAAa;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA"}
1
+ {"version":3,"file":"colors.d.ts","names":[],"sources":["../../src/colors.ts"],"mappings":";;;qBAAa;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA;qBACA"}
@@ -12,7 +12,7 @@ import { AnalyticsConfig, CustomIntlayerConfig, CustomRoutingConfig, EditorConfi
12
12
  * short-lived ingest token. It grants nothing on its own — every credentialed
13
13
  * backend call needs the secret, which only ever exists server-side.
14
14
  */
15
- type BrowserIntlayerConfig = {
15
+ export type BrowserIntlayerConfig = {
16
16
  internationalization: Pick<InternationalizationConfig, 'locales' | 'defaultLocale'>;
17
17
  routing: RoutingConfig;
18
18
  editor: Omit<EditorConfig, 'clientSecret'>;
@@ -31,14 +31,14 @@ declare global {
31
31
  * @param customConfiguration - Partial user-supplied internationalization config.
32
32
  * @returns A fully-defaulted {@link InternationalizationConfig}.
33
33
  */
34
- declare const buildInternationalizationFields: (customConfiguration?: Partial<InternationalizationConfig>) => InternationalizationConfig;
34
+ export declare const buildInternationalizationFields: (customConfiguration?: Partial<InternationalizationConfig>) => InternationalizationConfig;
35
35
  /**
36
36
  * Build the routing section of the Intlayer configuration.
37
37
  *
38
38
  * @param customConfiguration - Partial user-supplied routing config.
39
39
  * @returns A fully-defaulted {@link RoutingConfig}.
40
40
  */
41
- declare const buildRoutingFields: (customConfiguration?: Partial<CustomRoutingConfig>) => RoutingConfig;
41
+ export declare const buildRoutingFields: (customConfiguration?: Partial<CustomRoutingConfig>) => RoutingConfig;
42
42
  /**
43
43
  * Build the editor section of the Intlayer configuration.
44
44
  *
@@ -57,7 +57,7 @@ declare const buildRoutingFields: (customConfiguration?: Partial<CustomRoutingCo
57
57
  * @param customConfiguration - Partial user-supplied editor config.
58
58
  * @returns A fully-defaulted {@link EditorConfig}.
59
59
  */
60
- declare const buildEditorFields: (customConfiguration?: Partial<EditorConfig>) => EditorConfig;
60
+ export declare const buildEditorFields: (customConfiguration?: Partial<EditorConfig>) => EditorConfig;
61
61
  /**
62
62
  * Build the analytics section of the Intlayer configuration.
63
63
  *
@@ -75,7 +75,7 @@ declare const buildEditorFields: (customConfiguration?: Partial<EditorConfig>) =
75
75
  * the runtime dynamic `import()` fail silently when it is absent.
76
76
  * @returns A fully-defaulted {@link AnalyticsConfig}.
77
77
  */
78
- declare const buildAnalyticsFields: (customConfiguration?: Partial<AnalyticsConfig>, isPackageInstalled?: boolean) => AnalyticsConfig;
78
+ export declare const buildAnalyticsFields: (customConfiguration?: Partial<AnalyticsConfig>, isPackageInstalled?: boolean) => AnalyticsConfig;
79
79
  /**
80
80
  * Build the log section of the Intlayer configuration.
81
81
  *
@@ -83,7 +83,7 @@ declare const buildAnalyticsFields: (customConfiguration?: Partial<AnalyticsConf
83
83
  * @param logFunctions - Optional custom log function overrides (server-only).
84
84
  * @returns A fully-defaulted {@link LogConfig}.
85
85
  */
86
- declare const buildLogFields: (customConfiguration?: Partial<LogConfig>, logFunctions?: LogFunctions) => LogConfig;
86
+ export declare const buildLogFields: (customConfiguration?: Partial<LogConfig>, logFunctions?: LogFunctions) => LogConfig;
87
87
  /**
88
88
  * Build a browser-safe {@link BrowserIntlayerConfig} from a raw user config.
89
89
  *
@@ -107,7 +107,7 @@ declare const buildLogFields: (customConfiguration?: Partial<LogConfig>, logFunc
107
107
  * });
108
108
  * ```
109
109
  */
110
- declare const buildBrowserConfiguration: (customConfig?: CustomIntlayerConfig) => BrowserIntlayerConfig;
110
+ export declare const buildBrowserConfiguration: (customConfig?: CustomIntlayerConfig) => BrowserIntlayerConfig;
111
111
  /**
112
112
  * Extract a {@link BrowserIntlayerConfig} from an already-built full
113
113
  * {@link IntlayerConfig}.
@@ -119,7 +119,6 @@ declare const buildBrowserConfiguration: (customConfig?: CustomIntlayerConfig) =
119
119
  * @param config - A fully-built server-side Intlayer configuration.
120
120
  * @returns The browser-safe subset of that configuration.
121
121
  */
122
- declare const extractBrowserConfiguration: (config: IntlayerConfig) => BrowserIntlayerConfig;
122
+ export declare const extractBrowserConfiguration: (config: IntlayerConfig) => BrowserIntlayerConfig;
123
123
  //#endregion
124
- export { BrowserIntlayerConfig, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration };
125
124
  //# sourceMappingURL=buildBrowserConfiguration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildBrowserConfiguration.d.ts","names":[],"sources":["../../../src/configFile/buildBrowserConfiguration.ts"],"mappings":";;;;;;;;;;;;;;KA0DY;EACV,sBAAsB,KACpB;EAGF,SAAS;EACT,QAAQ,KAAK;EACb,WAAW;EACX,KAAK,KAAK;;QAGJ;YACI;;IAER,kBAAkB;;;;;;;;;cAiBT,kCAA+B,sBACpB,QAAQ,gCAC7B;;;;;;;cA+CU,qBAAkB,sBACP,QAAQ,yBAC7B;;;;;;;;;;;;;;;;;;;cA4HU,oBAAiB,sBACN,QAAQ,kBAC7B;;;;;;;;;;;;;;;;;;cA6IU,uBAAoB,sBACT,QAAQ,kBAAgB,iCAE7C;;;;;;;;cA+BU,iBAAc,sBACH,QAAQ,YAAU,eACzB,iBACd;;;;;;;;;;;;;;;;;;;;;;;;cAyDU,4BAAyB,eACrB,yBACd;;;;;;;;;;;;cA+BU,8BAA2B,QAC9B,mBACP"}
1
+ {"version":3,"file":"buildBrowserConfiguration.d.ts","names":[],"sources":["../../../src/configFile/buildBrowserConfiguration.ts"],"mappings":";;;;;;;;;;;;;;YA0DY;EACV,sBAAsB,KACpB;EAGF,SAAS;EACT,QAAQ,KAAK;EACb,WAAW;EACX,KAAK,KAAK;;QAGJ;YACI;;IAER,kBAAkB;;;;;;;;;qBAiBT,kCAA+B,sBACpB,QAAQ,gCAC7B;;;;;;;qBA+CU,qBAAkB,sBACP,QAAQ,yBAC7B;;;;;;;;;;;;;;;;;;;qBA4HU,oBAAiB,sBACN,QAAQ,kBAC7B;;;;;;;;;;;;;;;;;;qBA6IU,uBAAoB,sBACT,QAAQ,kBAAgB,iCAE7C;;;;;;;;qBA+BU,iBAAc,sBACH,QAAQ,YAAU,eACzB,iBACd;;;;;;;;;;;;;;;;;;;;;;;;qBAyDU,4BAAyB,eACrB,yBACd;;;;;;;;;;;;qBA+BU,8BAA2B,QAC9B,mBACP"}
@@ -19,7 +19,7 @@ import { CustomIntlayerConfig, IntlayerConfig, LogFunctions } from "@intlayer/ty
19
19
  * @param logFunctions - Optional custom logging functions.
20
20
  * @returns A fully-built {@link IntlayerConfig}.
21
21
  */
22
- declare const buildConfigurationFields: (customConfiguration?: CustomIntlayerConfig, baseDir?: string, logFunctions?: LogFunctions) => IntlayerConfig;
22
+ export declare const buildConfigurationFields: (customConfiguration?: CustomIntlayerConfig, baseDir?: string, logFunctions?: LogFunctions) => IntlayerConfig;
23
23
  //#endregion
24
- export { type BrowserIntlayerConfig, buildAnalyticsFields, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration };
24
+ export { type BrowserIntlayerConfig, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration };
25
25
  //# sourceMappingURL=buildConfigurationFields.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildConfigurationFields.d.ts","names":[],"sources":["../../../src/configFile/buildConfigurationFields.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;cA+wBa,2BAAwB,sBACb,sBAAoB,kBAC1B,eACD,iBACd"}
1
+ {"version":3,"file":"buildConfigurationFields.d.ts","names":[],"sources":["../../../src/configFile/buildConfigurationFields.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBA+wBa,2BAAwB,sBACb,sBAAoB,kBAC1B,eACD,iBACd"}