@intlayer/config 9.0.0-canary.8 → 9.0.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 (305) hide show
  1. package/dist/cjs/built.cjs +2 -0
  2. package/dist/cjs/built.cjs.map +1 -1
  3. package/dist/cjs/bundle/index.cjs +1 -1
  4. package/dist/cjs/bundle/index.cjs.map +1 -1
  5. package/dist/cjs/bundle/logBundle.cjs.map +1 -1
  6. package/dist/cjs/callers/base.cjs +42 -0
  7. package/dist/cjs/callers/base.cjs.map +1 -0
  8. package/dist/cjs/callers/compat/i18next.cjs +27 -0
  9. package/dist/cjs/callers/compat/i18next.cjs.map +1 -0
  10. package/dist/cjs/callers/compat/lingui.cjs +82 -0
  11. package/dist/cjs/callers/compat/lingui.cjs.map +1 -0
  12. package/dist/cjs/callers/compat/nextIntl.cjs +44 -0
  13. package/dist/cjs/callers/compat/nextIntl.cjs.map +1 -0
  14. package/dist/cjs/callers/compat/reactI18next.cjs +50 -0
  15. package/dist/cjs/callers/compat/reactI18next.cjs.map +1 -0
  16. package/dist/cjs/callers/compat/reactIntl.cjs +31 -0
  17. package/dist/cjs/callers/compat/reactIntl.cjs.map +1 -0
  18. package/dist/cjs/callers/compat/useIntl.cjs +46 -0
  19. package/dist/cjs/callers/compat/useIntl.cjs.map +1 -0
  20. package/dist/cjs/callers/compat/vueI18n.cjs +26 -0
  21. package/dist/cjs/callers/compat/vueI18n.cjs.map +1 -0
  22. package/dist/cjs/callers/index.cjs +87 -0
  23. package/dist/cjs/callers/index.cjs.map +1 -0
  24. package/dist/cjs/callers/transform.cjs +46 -0
  25. package/dist/cjs/callers/transform.cjs.map +1 -0
  26. package/dist/cjs/callers/types.cjs +0 -0
  27. package/dist/cjs/client.cjs +1 -0
  28. package/dist/cjs/configFile/buildBrowserConfiguration.cjs +47 -3
  29. package/dist/cjs/configFile/buildBrowserConfiguration.cjs.map +1 -1
  30. package/dist/cjs/configFile/buildConfigurationFields.cjs +9 -3
  31. package/dist/cjs/configFile/buildConfigurationFields.cjs.map +1 -1
  32. package/dist/cjs/configFile/configurationSchema.cjs +7 -0
  33. package/dist/cjs/configFile/configurationSchema.cjs.map +1 -1
  34. package/dist/cjs/configFile/getConfiguration.cjs +10 -3
  35. package/dist/cjs/configFile/getConfiguration.cjs.map +1 -1
  36. package/dist/cjs/configFile/index.cjs +2 -0
  37. package/dist/cjs/configFile/loadConfigurationFile.cjs.map +1 -1
  38. package/dist/cjs/configFile/searchConfigurationFile.cjs +0 -1
  39. package/dist/cjs/configFile/searchConfigurationFile.cjs.map +1 -1
  40. package/dist/cjs/defaultValues/analytics.cjs +16 -0
  41. package/dist/cjs/defaultValues/analytics.cjs.map +1 -0
  42. package/dist/cjs/defaultValues/build.cjs.map +1 -1
  43. package/dist/cjs/defaultValues/content.cjs.map +1 -1
  44. package/dist/cjs/defaultValues/index.cjs +4 -0
  45. package/dist/cjs/defaultValues/internationalization.cjs.map +1 -1
  46. package/dist/cjs/defaultValues/routing.cjs.map +1 -1
  47. package/dist/cjs/envVars/envVars.cjs +2 -1
  48. package/dist/cjs/envVars/envVars.cjs.map +1 -1
  49. package/dist/cjs/loadEnvFile.cjs +44 -7
  50. package/dist/cjs/loadEnvFile.cjs.map +1 -1
  51. package/dist/cjs/loadExternalFile/bundleFile.cjs +4 -3
  52. package/dist/cjs/loadExternalFile/bundleFile.cjs.map +1 -1
  53. package/dist/cjs/loadExternalFile/bundleJSFile.cjs +0 -1
  54. package/dist/cjs/loadExternalFile/bundleJSFile.cjs.map +1 -1
  55. package/dist/cjs/loadExternalFile/index.cjs +1 -0
  56. package/dist/cjs/loadExternalFile/loadExternalFile.cjs +11 -6
  57. package/dist/cjs/loadExternalFile/loadExternalFile.cjs.map +1 -1
  58. package/dist/cjs/loadExternalFile/parseFileContent.cjs +52 -17
  59. package/dist/cjs/loadExternalFile/parseFileContent.cjs.map +1 -1
  60. package/dist/cjs/loadExternalFile/transpileTSToCJS.cjs +99 -10
  61. package/dist/cjs/loadExternalFile/transpileTSToCJS.cjs.map +1 -1
  62. package/dist/cjs/logger.cjs +2 -1
  63. package/dist/cjs/logger.cjs.map +1 -1
  64. package/dist/cjs/node.cjs +2 -0
  65. package/dist/cjs/utils/ESMxCJSHelpers.cjs +0 -1
  66. package/dist/cjs/utils/ESMxCJSHelpers.cjs.map +1 -1
  67. package/dist/cjs/utils/alias.cjs +0 -1
  68. package/dist/cjs/utils/alias.cjs.map +1 -1
  69. package/dist/cjs/utils/builtConfigKeys.cjs +38 -0
  70. package/dist/cjs/utils/builtConfigKeys.cjs.map +1 -0
  71. package/dist/cjs/utils/cacheDisk.cjs +2 -1
  72. package/dist/cjs/utils/cacheDisk.cjs.map +1 -1
  73. package/dist/cjs/utils/cacheMemory.cjs +0 -1
  74. package/dist/cjs/utils/cacheMemory.cjs.map +1 -1
  75. package/dist/cjs/utils/clearModuleCache.cjs.map +1 -1
  76. package/dist/cjs/utils/compareVersions.cjs.map +1 -1
  77. package/dist/cjs/utils/extractErrorMessage.cjs.map +1 -1
  78. package/dist/cjs/utils/getDictionarySelectorUsage.cjs.map +1 -1
  79. package/dist/cjs/utils/getExtension.cjs.map +1 -1
  80. package/dist/cjs/utils/getPackageJsonPath.cjs +0 -1
  81. package/dist/cjs/utils/getPackageJsonPath.cjs.map +1 -1
  82. package/dist/cjs/utils/getStorageAttributes.cjs +2 -1
  83. package/dist/cjs/utils/getStorageAttributes.cjs.map +1 -1
  84. package/dist/cjs/utils/getUsedNodeTypes.cjs +0 -1
  85. package/dist/cjs/utils/getUsedNodeTypes.cjs.map +1 -1
  86. package/dist/cjs/utils/index.cjs +2 -0
  87. package/dist/cjs/utils/logStack.cjs.map +1 -1
  88. package/dist/cjs/utils/normalizePath.cjs.map +1 -1
  89. package/dist/cjs/utils/parseFilePathPattern.cjs.map +1 -1
  90. package/dist/cjs/utils/pathSecurity.cjs +0 -1
  91. package/dist/cjs/utils/pathSecurity.cjs.map +1 -1
  92. package/dist/cjs/utils/retryManager.cjs.map +1 -1
  93. package/dist/cjs/utils/setIntlayerIdentifier.cjs.map +1 -1
  94. package/dist/cjs/utils/stringFormatter/camelCaseToKebabCase.cjs.map +1 -1
  95. package/dist/cjs/utils/stringFormatter/camelCaseToSentence.cjs.map +1 -1
  96. package/dist/cjs/utils/stringFormatter/kebabCaseToCamelCase.cjs.map +1 -1
  97. package/dist/cjs/utils/stringFormatter/toLowerCamelCase.cjs.map +1 -1
  98. package/dist/esm/built.mjs +2 -1
  99. package/dist/esm/built.mjs.map +1 -1
  100. package/dist/esm/bundle/index.mjs +2 -2
  101. package/dist/esm/bundle/index.mjs.map +1 -1
  102. package/dist/esm/bundle/logBundle.mjs.map +1 -1
  103. package/dist/esm/callers/base.mjs +40 -0
  104. package/dist/esm/callers/base.mjs.map +1 -0
  105. package/dist/esm/callers/compat/i18next.mjs +25 -0
  106. package/dist/esm/callers/compat/i18next.mjs.map +1 -0
  107. package/dist/esm/callers/compat/lingui.mjs +80 -0
  108. package/dist/esm/callers/compat/lingui.mjs.map +1 -0
  109. package/dist/esm/callers/compat/nextIntl.mjs +42 -0
  110. package/dist/esm/callers/compat/nextIntl.mjs.map +1 -0
  111. package/dist/esm/callers/compat/reactI18next.mjs +48 -0
  112. package/dist/esm/callers/compat/reactI18next.mjs.map +1 -0
  113. package/dist/esm/callers/compat/reactIntl.mjs +29 -0
  114. package/dist/esm/callers/compat/reactIntl.mjs.map +1 -0
  115. package/dist/esm/callers/compat/useIntl.mjs +44 -0
  116. package/dist/esm/callers/compat/useIntl.mjs.map +1 -0
  117. package/dist/esm/callers/compat/vueI18n.mjs +24 -0
  118. package/dist/esm/callers/compat/vueI18n.mjs.map +1 -0
  119. package/dist/esm/callers/index.mjs +72 -0
  120. package/dist/esm/callers/index.mjs.map +1 -0
  121. package/dist/esm/callers/transform.mjs +43 -0
  122. package/dist/esm/callers/transform.mjs.map +1 -0
  123. package/dist/esm/callers/types.mjs +0 -0
  124. package/dist/esm/client.mjs +2 -2
  125. package/dist/esm/configFile/buildBrowserConfiguration.mjs +47 -4
  126. package/dist/esm/configFile/buildBrowserConfiguration.mjs.map +1 -1
  127. package/dist/esm/configFile/buildConfigurationFields.mjs +10 -4
  128. package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
  129. package/dist/esm/configFile/configurationSchema.mjs +7 -1
  130. package/dist/esm/configFile/configurationSchema.mjs.map +1 -1
  131. package/dist/esm/configFile/getConfiguration.mjs +10 -2
  132. package/dist/esm/configFile/getConfiguration.mjs.map +1 -1
  133. package/dist/esm/configFile/index.mjs +3 -3
  134. package/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -1
  135. package/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -1
  136. package/dist/esm/defaultValues/analytics.mjs +12 -0
  137. package/dist/esm/defaultValues/analytics.mjs.map +1 -0
  138. package/dist/esm/defaultValues/build.mjs.map +1 -1
  139. package/dist/esm/defaultValues/content.mjs.map +1 -1
  140. package/dist/esm/defaultValues/index.mjs +2 -1
  141. package/dist/esm/defaultValues/internationalization.mjs.map +1 -1
  142. package/dist/esm/defaultValues/routing.mjs.map +1 -1
  143. package/dist/esm/envVars/envVars.mjs +2 -1
  144. package/dist/esm/envVars/envVars.mjs.map +1 -1
  145. package/dist/esm/loadEnvFile.mjs +45 -8
  146. package/dist/esm/loadEnvFile.mjs.map +1 -1
  147. package/dist/esm/loadExternalFile/bundleFile.mjs +4 -2
  148. package/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -1
  149. package/dist/esm/loadExternalFile/bundleJSFile.mjs.map +1 -1
  150. package/dist/esm/loadExternalFile/index.mjs +2 -2
  151. package/dist/esm/loadExternalFile/loadExternalFile.mjs +11 -6
  152. package/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -1
  153. package/dist/esm/loadExternalFile/parseFileContent.mjs +52 -17
  154. package/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -1
  155. package/dist/esm/loadExternalFile/transpileTSToCJS.mjs +102 -13
  156. package/dist/esm/loadExternalFile/transpileTSToCJS.mjs.map +1 -1
  157. package/dist/esm/logger.mjs +2 -1
  158. package/dist/esm/logger.mjs.map +1 -1
  159. package/dist/esm/node.mjs +3 -3
  160. package/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -1
  161. package/dist/esm/utils/alias.mjs.map +1 -1
  162. package/dist/esm/utils/builtConfigKeys.mjs +36 -0
  163. package/dist/esm/utils/builtConfigKeys.mjs.map +1 -0
  164. package/dist/esm/utils/cacheDisk.mjs +6 -5
  165. package/dist/esm/utils/cacheDisk.mjs.map +1 -1
  166. package/dist/esm/utils/cacheMemory.mjs.map +1 -1
  167. package/dist/esm/utils/clearModuleCache.mjs.map +1 -1
  168. package/dist/esm/utils/compareVersions.mjs.map +1 -1
  169. package/dist/esm/utils/extractErrorMessage.mjs.map +1 -1
  170. package/dist/esm/utils/getDictionarySelectorUsage.mjs.map +1 -1
  171. package/dist/esm/utils/getExtension.mjs.map +1 -1
  172. package/dist/esm/utils/getPackageJsonPath.mjs.map +1 -1
  173. package/dist/esm/utils/getStorageAttributes.mjs +2 -1
  174. package/dist/esm/utils/getStorageAttributes.mjs.map +1 -1
  175. package/dist/esm/utils/getUsedNodeTypes.mjs.map +1 -1
  176. package/dist/esm/utils/index.mjs +2 -1
  177. package/dist/esm/utils/logStack.mjs.map +1 -1
  178. package/dist/esm/utils/normalizePath.mjs.map +1 -1
  179. package/dist/esm/utils/parseFilePathPattern.mjs.map +1 -1
  180. package/dist/esm/utils/pathSecurity.mjs.map +1 -1
  181. package/dist/esm/utils/retryManager.mjs.map +1 -1
  182. package/dist/esm/utils/setIntlayerIdentifier.mjs.map +1 -1
  183. package/dist/esm/utils/stringFormatter/camelCaseToKebabCase.mjs.map +1 -1
  184. package/dist/esm/utils/stringFormatter/camelCaseToSentence.mjs.map +1 -1
  185. package/dist/esm/utils/stringFormatter/kebabCaseToCamelCase.mjs.map +1 -1
  186. package/dist/esm/utils/stringFormatter/toLowerCamelCase.mjs.map +1 -1
  187. package/dist/types/built.d.ts +2 -1
  188. package/dist/types/built.d.ts.map +1 -1
  189. package/dist/types/bundle/index.d.ts +2 -4
  190. package/dist/types/bundle/index.d.ts.map +1 -1
  191. package/dist/types/bundle/logBundle.d.ts +0 -1
  192. package/dist/types/bundle/logBundle.d.ts.map +1 -1
  193. package/dist/types/callers/base.d.ts +13 -0
  194. package/dist/types/callers/base.d.ts.map +1 -0
  195. package/dist/types/callers/compat/i18next.d.ts +11 -0
  196. package/dist/types/callers/compat/i18next.d.ts.map +1 -0
  197. package/dist/types/callers/compat/lingui.d.ts +6 -0
  198. package/dist/types/callers/compat/lingui.d.ts.map +1 -0
  199. package/dist/types/callers/compat/nextIntl.d.ts +12 -0
  200. package/dist/types/callers/compat/nextIntl.d.ts.map +1 -0
  201. package/dist/types/callers/compat/reactI18next.d.ts +14 -0
  202. package/dist/types/callers/compat/reactI18next.d.ts.map +1 -0
  203. package/dist/types/callers/compat/reactIntl.d.ts +15 -0
  204. package/dist/types/callers/compat/reactIntl.d.ts.map +1 -0
  205. package/dist/types/callers/compat/useIntl.d.ts +11 -0
  206. package/dist/types/callers/compat/useIntl.d.ts.map +1 -0
  207. package/dist/types/callers/compat/vueI18n.d.ts +11 -0
  208. package/dist/types/callers/compat/vueI18n.d.ts.map +1 -0
  209. package/dist/types/callers/index.d.ts +48 -0
  210. package/dist/types/callers/index.d.ts.map +1 -0
  211. package/dist/types/callers/transform.d.ts +60 -0
  212. package/dist/types/callers/transform.d.ts.map +1 -0
  213. package/dist/types/callers/types.d.ts +160 -0
  214. package/dist/types/callers/types.d.ts.map +1 -0
  215. package/dist/types/client.d.ts +2 -2
  216. package/dist/types/colors.d.ts +14 -14
  217. package/dist/types/colors.d.ts.map +1 -1
  218. package/dist/types/configFile/buildBrowserConfiguration.d.ts +24 -4
  219. package/dist/types/configFile/buildBrowserConfiguration.d.ts.map +1 -1
  220. package/dist/types/configFile/buildConfigurationFields.d.ts +8 -4
  221. package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
  222. package/dist/types/configFile/configurationSchema.d.ts +43 -34
  223. package/dist/types/configFile/configurationSchema.d.ts.map +1 -1
  224. package/dist/types/configFile/getConfiguration.d.ts +0 -1
  225. package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
  226. package/dist/types/configFile/index.d.ts +3 -3
  227. package/dist/types/configFile/loadConfigurationFile.d.ts +1 -2
  228. package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
  229. package/dist/types/configFile/searchConfigurationFile.d.ts +1 -1
  230. package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
  231. package/dist/types/defaultValues/analytics.d.ts +11 -0
  232. package/dist/types/defaultValues/analytics.d.ts.map +1 -0
  233. package/dist/types/defaultValues/build.d.ts.map +1 -1
  234. package/dist/types/defaultValues/compiler.d.ts.map +1 -1
  235. package/dist/types/defaultValues/content.d.ts.map +1 -1
  236. package/dist/types/defaultValues/dictionary.d.ts +0 -1
  237. package/dist/types/defaultValues/dictionary.d.ts.map +1 -1
  238. package/dist/types/defaultValues/editor.d.ts.map +1 -1
  239. package/dist/types/defaultValues/index.d.ts +2 -1
  240. package/dist/types/defaultValues/internationalization.d.ts +0 -1
  241. package/dist/types/defaultValues/internationalization.d.ts.map +1 -1
  242. package/dist/types/defaultValues/log.d.ts.map +1 -1
  243. package/dist/types/defaultValues/routing.d.ts +0 -1
  244. package/dist/types/defaultValues/routing.d.ts.map +1 -1
  245. package/dist/types/defaultValues/system.d.ts.map +1 -1
  246. package/dist/types/envVars/envVars.d.ts +0 -1
  247. package/dist/types/envVars/envVars.d.ts.map +1 -1
  248. package/dist/types/loadEnvFile.d.ts +1 -1
  249. package/dist/types/loadEnvFile.d.ts.map +1 -1
  250. package/dist/types/loadExternalFile/bundleFile.d.ts +0 -1
  251. package/dist/types/loadExternalFile/bundleFile.d.ts.map +1 -1
  252. package/dist/types/loadExternalFile/bundleJSFile.d.ts +57 -59
  253. package/dist/types/loadExternalFile/bundleJSFile.d.ts.map +1 -1
  254. package/dist/types/loadExternalFile/index.d.ts +2 -2
  255. package/dist/types/loadExternalFile/loadExternalFile.d.ts +0 -1
  256. package/dist/types/loadExternalFile/loadExternalFile.d.ts.map +1 -1
  257. package/dist/types/loadExternalFile/parseFileContent.d.ts +9 -1
  258. package/dist/types/loadExternalFile/parseFileContent.d.ts.map +1 -1
  259. package/dist/types/loadExternalFile/transpileTSToCJS.d.ts +4 -4
  260. package/dist/types/loadExternalFile/transpileTSToCJS.d.ts.map +1 -1
  261. package/dist/types/logger.d.ts +2 -3
  262. package/dist/types/logger.d.ts.map +1 -1
  263. package/dist/types/node.d.ts +3 -3
  264. package/dist/types/utils/ESMxCJSHelpers.d.ts.map +1 -1
  265. package/dist/types/utils/alias.d.ts +1 -6
  266. package/dist/types/utils/alias.d.ts.map +1 -1
  267. package/dist/types/utils/builtConfigKeys.d.ts +25 -0
  268. package/dist/types/utils/builtConfigKeys.d.ts.map +1 -0
  269. package/dist/types/utils/cacheDisk.d.ts +22 -11
  270. package/dist/types/utils/cacheDisk.d.ts.map +1 -1
  271. package/dist/types/utils/cacheMemory.d.ts +3 -3
  272. package/dist/types/utils/cacheMemory.d.ts.map +1 -1
  273. package/dist/types/utils/clearModuleCache.d.ts.map +1 -1
  274. package/dist/types/utils/compareVersions.d.ts +1 -1
  275. package/dist/types/utils/compareVersions.d.ts.map +1 -1
  276. package/dist/types/utils/extractErrorMessage.d.ts.map +1 -1
  277. package/dist/types/utils/getDictionarySelectorUsage.d.ts +0 -1
  278. package/dist/types/utils/getDictionarySelectorUsage.d.ts.map +1 -1
  279. package/dist/types/utils/getExtension.d.ts +1 -2
  280. package/dist/types/utils/getExtension.d.ts.map +1 -1
  281. package/dist/types/utils/getPackageJsonPath.d.ts.map +1 -1
  282. package/dist/types/utils/getStorageAttributes.d.ts +0 -1
  283. package/dist/types/utils/getStorageAttributes.d.ts.map +1 -1
  284. package/dist/types/utils/getUsedNodeTypes.d.ts +0 -1
  285. package/dist/types/utils/getUsedNodeTypes.d.ts.map +1 -1
  286. package/dist/types/utils/index.d.ts +2 -1
  287. package/dist/types/utils/logStack.d.ts.map +1 -1
  288. package/dist/types/utils/normalizePath.d.ts.map +1 -1
  289. package/dist/types/utils/parseFilePathPattern.d.ts +0 -1
  290. package/dist/types/utils/parseFilePathPattern.d.ts.map +1 -1
  291. package/dist/types/utils/pathSecurity.d.ts.map +1 -1
  292. package/dist/types/utils/retryManager.d.ts +8 -9
  293. package/dist/types/utils/retryManager.d.ts.map +1 -1
  294. package/dist/types/utils/setIntlayerIdentifier.d.ts.map +1 -1
  295. package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts.map +1 -1
  296. package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts.map +1 -1
  297. package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts.map +1 -1
  298. package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts.map +1 -1
  299. package/package.json +11 -7
  300. package/dist/cjs/built.browser.cjs +0 -46
  301. package/dist/cjs/built.browser.cjs.map +0 -1
  302. package/dist/esm/built.browser.mjs +0 -32
  303. package/dist/esm/built.browser.mjs.map +0 -1
  304. package/dist/types/built.browser.d.ts +0 -27
  305. package/dist/types/built.browser.d.ts.map +0 -1
@@ -0,0 +1,160 @@
1
+ //#region src/callers/types.d.ts
2
+ /**
3
+ * Shared caller-descriptor model.
4
+ *
5
+ * A "caller" is any function or JSX component through which application code
6
+ * reads intlayer content: the base getters (`useIntlayer`, `getIntlayer`) and
7
+ * every compat-adapter entry point (`useTranslation`, `useTranslations`,
8
+ * `formatMessage`, lingui's `t`/`_`, …).
9
+ *
10
+ * This registry is the single source of truth consumed by:
11
+ * - `@intlayer/babel` — field-usage analysis (purge/minify) and the optimize
12
+ * pass that rewrites caller invocations to `useDictionary(...)` /
13
+ * `useDictionaryDynamic(...)` with pre-imported dictionaries.
14
+ * - `@intlayer/swc` — the same optimize pass for Next.js builds; descriptors
15
+ * are serialised to the plugin's wire format via `toSwcExtraCallers`.
16
+ * - `@intlayer/lsp` and the VS Code extension — AST/regex matchers powering
17
+ * go-to-definition, references and completion.
18
+ * - Each compat package's bundler plugin — injects its library's descriptors
19
+ * into the pipelines above, so no compat-specific name is hard-coded in the
20
+ * core packages.
21
+ */
22
+ /**
23
+ * Where a value (namespace/dictionary key, or key prefix) is read from a call
24
+ * expression.
25
+ */
26
+ type CallerValueSource =
27
+ /** Positional argument holding a string literal, e.g. `useTranslations('ns')`. */
28
+ {
29
+ from: 'argument';
30
+ index: number;
31
+ } |
32
+ /** Property of an options-object argument, e.g. `useI18n({ namespace: 'ns' })`. */
33
+ {
34
+ from: 'option';
35
+ argumentIndex: number;
36
+ property: string;
37
+ } |
38
+ /**
39
+ * Compile-time constant — every call site reads the same dictionary.
40
+ * Used by single-catalog libraries such as lingui (`messages`).
41
+ */
42
+ {
43
+ from: 'fixed';
44
+ value: string;
45
+ } |
46
+ /**
47
+ * The first dot-segment of the message id passed to the call itself.
48
+ * Used by react-intl where `formatMessage({ id: 'home.title' })` encodes
49
+ * both the dictionary key (`home`) and the field path (`title`).
50
+ */
51
+ {
52
+ from: 'path-first-segment';
53
+ };
54
+ /**
55
+ * How translated content is obtained from the caller's result.
56
+ *
57
+ * - `'content'` — returns the dictionary content object; fields are
58
+ * read through member access or destructuring
59
+ * (`useIntlayer`, `getIntlayer`).
60
+ * - `'return-value'` — returns the translation function directly:
61
+ * `const t = useTranslations('ns'); t('key')`.
62
+ * - `'destructured-t'` — returns an object holding `t`:
63
+ * `const { t } = useTranslation('ns'); t('key')`.
64
+ * - `'self'` — the caller IS the translation call; the message id is
65
+ * one of its own arguments (`formatMessage`, `i18n._`).
66
+ * - `'all'` — field-level analysis is impossible; the whole
67
+ * dictionary is marked as used (Angular templates,
68
+ * lingui hashed ids).
69
+ */
70
+ type CallerResultShape = 'content' | 'return-value' | 'destructured-t' | 'self' | 'all';
71
+ /**
72
+ * Full description of a single caller.
73
+ */
74
+ type CallerDescriptor = {
75
+ /** Function or JSX component name, e.g. `'useTranslation'`, `'FormattedMessage'`. */
76
+ callerName: string;
77
+ /** Library identifier grouping related callers, e.g. `'react-i18next'`. */
78
+ library: string;
79
+ /**
80
+ * Module specifiers the caller may be imported from. Includes both the
81
+ * original library names and the `@intlayer/*` adapter equivalents, because
82
+ * bundler aliasing keeps user imports on the original names.
83
+ */
84
+ importSources: string[];
85
+ /**
86
+ * When `true`, the caller only participates in matching when the analysed
87
+ * file imports from one of `importSources`. Used for generic names such as
88
+ * lingui's `t` / `_` that would otherwise produce false positives.
89
+ */
90
+ requiresImport?: boolean;
91
+ /**
92
+ * When `true`, the caller is also matched as a method on any object
93
+ * (`i18n.getFixedT(...)`, `intl.formatMessage(...)`) in addition to the
94
+ * bare-identifier form.
95
+ */
96
+ matchAsMethod?: boolean;
97
+ /** When `true`, also match the tagged-template form, e.g. lingui's ``t`…` ``. */
98
+ matchAsTaggedTemplate?: boolean;
99
+ /**
100
+ * When set, the caller is also matched as a JSX element whose attribute of
101
+ * this name holds the message id, e.g. `<FormattedMessage id="home.title" />`
102
+ * or `<Trans i18nKey="richText" />`.
103
+ */
104
+ jsxIdAttribute?: string;
105
+ /**
106
+ * Optional JSX attribute carrying the namespace (dictionary key), e.g.
107
+ * react-i18next's `<Trans ns="home" i18nKey="title" />`.
108
+ */
109
+ jsxNamespaceAttribute?: string;
110
+ /**
111
+ * Where the dictionary key is read from, tried in declaration order.
112
+ * The first source that yields a static string wins.
113
+ */
114
+ namespaceSources: CallerValueSource[];
115
+ /**
116
+ * Optional key prefix prepended to every message path resolved through the
117
+ * returned translation function, e.g. `getFixedT(lng, ns, keyPrefix)` or
118
+ * `useTranslation(ns, { keyPrefix })`.
119
+ */
120
+ keyPrefixSources?: CallerValueSource[];
121
+ /**
122
+ * When `true`, a dotted namespace is split at the first `.`: the first
123
+ * segment is the dictionary key and the rest becomes a key prefix.
124
+ * next-intl semantics: `useTranslations('about.counter')` reads the
125
+ * `about` dictionary with every `t()` path prefixed by `counter`.
126
+ */
127
+ nestedNamespace?: boolean;
128
+ /**
129
+ * When `true`, the caller may be invoked without any namespace
130
+ * (`useTranslations()` root scope) — the dictionary key is then the first
131
+ * dot-segment of each message id passed to the returned `t()`.
132
+ */
133
+ allowRootScope?: boolean;
134
+ /** How translated content is obtained from the caller's result. */
135
+ translationFunction: CallerResultShape;
136
+ /**
137
+ * When `true`, the message id is a *flat* dictionary field that itself may
138
+ * contain dots (lingui catalogs). When unset, dotted ids map onto nested
139
+ * dictionary objects and are split into a field path.
140
+ */
141
+ flatKey?: boolean;
142
+ /**
143
+ * Name of the dictionary-accepting replacement used by the optimize pass in
144
+ * static import mode, e.g. `'useDictionary'`. The replacement must be
145
+ * exported from every module in `importSources` (the compat package exports
146
+ * it; original-library specifiers are bundler-aliased to the compat package).
147
+ *
148
+ * Only callers with both replacements set — and matched as plain imported
149
+ * functions (not `matchAsMethod` / JSX) — are rewritten at build time.
150
+ */
151
+ staticReplacement?: string;
152
+ /**
153
+ * Name of the dictionary-accepting replacement used by the optimize pass in
154
+ * dynamic/fetch import mode, e.g. `'useDictionaryDynamic'`.
155
+ */
156
+ dynamicReplacement?: string;
157
+ };
158
+ //#endregion
159
+ export { CallerDescriptor, CallerResultShape, CallerValueSource };
160
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +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,4 +1,4 @@
1
- import { BrowserIntlayerConfig, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./configFile/buildBrowserConfiguration.js";
1
+ import { BrowserIntlayerConfig, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./configFile/buildBrowserConfiguration.js";
2
2
  import { extractErrorMessage } from "./utils/extractErrorMessage.js";
3
3
  import { logStack } from "./utils/logStack.js";
4
4
  import { normalizePath } from "./utils/normalizePath.js";
@@ -7,4 +7,4 @@ import { camelCaseToKebabCase } from "./utils/stringFormatter/camelCaseToKebabCa
7
7
  import { camelCaseToSentence } from "./utils/stringFormatter/camelCaseToSentence.js";
8
8
  import { kebabCaseToCamelCase } from "./utils/stringFormatter/kebabCaseToCamelCase.js";
9
9
  import { toLowerCamelCase } from "./utils/stringFormatter/toLowerCamelCase.js";
10
- export { BrowserIntlayerConfig, WindowsWithIntlayer, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, camelCaseToKebabCase, camelCaseToSentence, extractBrowserConfiguration, extractErrorMessage, kebabCaseToCamelCase, logStack, normalizePath, setIntlayerIdentifier, toLowerCamelCase };
10
+ export { BrowserIntlayerConfig, WindowsWithIntlayer, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, camelCaseToKebabCase, camelCaseToSentence, extractBrowserConfiguration, extractErrorMessage, kebabCaseToCamelCase, logStack, normalizePath, setIntlayerIdentifier, toLowerCamelCase };
@@ -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: "\u001B[0m";
5
- declare const GREY: "\u001B[90m";
6
- declare const GREY_DARK: "\u001B[38;5;239m";
7
- declare const GREY_LIGHT: "\u001B[38;5;252m";
8
- declare const BLUE: "\u001B[34m";
9
- declare const RED: "\u001B[31m";
10
- declare const GREEN: "\u001B[32m";
11
- declare const YELLOW: "\u001B[38;5;226m";
12
- declare const MAGENTA: "\u001B[35m";
13
- declare const BEIGE: "\u001B[38;5;3m";
14
- declare const ORANGE: "\u001B[38;5;208m";
15
- declare const CYAN: "\u001B[36m";
16
- declare const WHITE: "\u001B[37m";
17
- declare const BOLD: "\u001B[1m";
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: '';
18
18
  //#endregion
19
19
  export { BEIGE, BLUE, BOLD, CYAN, GREEN, GREY, GREY_DARK, GREY_LIGHT, MAGENTA, ORANGE, RED, RESET, WHITE, YELLOW, 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,KAAA;AAAA,cACA,IAAA;AAAA,cACA,SAAA;AAAA,cACA,UAAA;AAAA,cACA,IAAA;AAAA,cACA,GAAA;AAAA,cACA,KAAA;AAAA,cACA,MAAA;AAAA,cACA,OAAA;AAAA,cACA,KAAA;AAAA,cACA,MAAA;AAAA,cACA,IAAA;AAAA,cACA,KAAA;AAAA,cACA,IAAA"}
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,5 +1,4 @@
1
- import { CustomIntlayerConfig, CustomRoutingConfig, EditorConfig, InternationalizationConfig, IntlayerConfig, LogConfig, LogFunctions, RoutingConfig } from "@intlayer/types/config";
2
-
1
+ import { AnalyticsConfig, CustomIntlayerConfig, CustomRoutingConfig, EditorConfig, InternationalizationConfig, IntlayerConfig, LogConfig, LogFunctions, RoutingConfig } from "@intlayer/types/config";
3
2
  //#region src/configFile/buildBrowserConfiguration.d.ts
4
3
  /**
5
4
  * Browser-safe subset of {@link IntlayerConfig}.
@@ -12,6 +11,7 @@ type BrowserIntlayerConfig = {
12
11
  internationalization: Pick<InternationalizationConfig, 'locales' | 'defaultLocale'>;
13
12
  routing: RoutingConfig;
14
13
  editor: Omit<EditorConfig, 'clientId' | 'clientSecret'>;
14
+ analytics: AnalyticsConfig;
15
15
  log: Pick<LogConfig, 'mode' | 'prefix'>;
16
16
  };
17
17
  declare global {
@@ -41,10 +41,30 @@ declare const buildRoutingFields: (customConfiguration?: Partial<CustomRoutingCo
41
41
  * (`clientId`, `clientSecret`). The browser-safe {@link BrowserIntlayerConfig}
42
42
  * omits those fields when exposing config to the client.
43
43
  *
44
+ * When the user does not explicitly set `clientId` / `clientSecret` in the
45
+ * configuration file, they fall back to the `INTLAYER_CLIENT_ID` /
46
+ * `INTLAYER_CLIENT_SECRET` environment variables read from `env`. This lets
47
+ * users authenticate purely through their `.env` file (including files passed
48
+ * via the CLI `--env-file` flag) without having to wire `process.env` into the
49
+ * configuration manually.
50
+ *
44
51
  * @param customConfiguration - Partial user-supplied editor config.
52
+ * @param env - Environment variables used to resolve credential fallbacks.
53
+ * Defaults to `process.env`.
45
54
  * @returns A fully-defaulted {@link EditorConfig}.
46
55
  */
47
- declare const buildEditorFields: (customConfiguration?: Partial<EditorConfig>) => EditorConfig;
56
+ declare const buildEditorFields: (customConfiguration?: Partial<EditorConfig>, env?: NodeJS.ProcessEnv) => EditorConfig;
57
+ /**
58
+ * Build the analytics section of the Intlayer configuration.
59
+ *
60
+ * Analytics is strictly opt-in: `enabled` defaults to `false` and, even when
61
+ * enabled, the runtime additionally requires a project key (`editor.clientId`)
62
+ * for attribution before collecting anything.
63
+ *
64
+ * @param customConfiguration - Partial user-supplied analytics config.
65
+ * @returns A fully-defaulted {@link AnalyticsConfig}.
66
+ */
67
+ declare const buildAnalyticsFields: (customConfiguration?: Partial<AnalyticsConfig>) => AnalyticsConfig;
48
68
  /**
49
69
  * Build the log section of the Intlayer configuration.
50
70
  *
@@ -89,5 +109,5 @@ declare const buildBrowserConfiguration: (customConfig?: CustomIntlayerConfig) =
89
109
  */
90
110
  declare const extractBrowserConfiguration: (config: IntlayerConfig) => BrowserIntlayerConfig;
91
111
  //#endregion
92
- export { BrowserIntlayerConfig, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration };
112
+ export { BrowserIntlayerConfig, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration };
93
113
  //# sourceMappingURL=buildBrowserConfiguration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildBrowserConfiguration.d.ts","names":[],"sources":["../../../src/configFile/buildBrowserConfiguration.ts"],"mappings":";;;;;AA+CA;;;;;KAAY,qBAAA;EACV,oBAAA,EAAsB,IAAA,CACpB,0BAAA;EAGF,OAAA,EAAS,aAAA;EACT,MAAA,EAAQ,IAAA,CAAK,YAAA;EACb,GAAA,EAAK,IAAA,CAAK,SAAA;AAAA;AAAA,QAGJ,MAAA;EAAA,UACI,MAAA;IAVY;IAYpB,eAAA,GAAkB,qBAAA;EAAA;AAAA;;;;;;;cAiBT,+BAAA,GACX,mBAAA,GAAsB,OAAA,CAAQ,0BAAA,MAC7B,0BAAA;;AAxBD;;;;;cAuEW,kBAAA,GACX,mBAAA,GAAsB,OAAA,CAAQ,mBAAA,MAC7B,aAAA;;;;;;AAnDH;;;;;cAkKa,iBAAA,GACX,mBAAA,GAAsB,OAAA,CAAQ,YAAA,MAC7B,YAAA;;;;;;;;cAmIU,cAAA,GACX,mBAAA,GAAsB,OAAA,CAAQ,SAAA,GAC9B,YAAA,GAAe,YAAA,KACd,SAAA;AAzPH;;;;;;;;;;;;;;AAiHA;;;;;;;;AAjHA,cAiTa,yBAAA,GACX,YAAA,GAAe,oBAAA,KACd,qBAAA;;;;;;AA7DH;;;;;;cA4Fa,2BAAA,GACX,MAAA,EAAQ,cAAA,KACP,qBAAA"}
1
+ {"version":3,"file":"buildBrowserConfiguration.d.ts","names":[],"sources":["../../../src/configFile/buildBrowserConfiguration.ts"],"mappings":";;;;;;;;;KAqDY;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;;;;;;;;;;;;;;;;;;;;cAwHU,oBAAiB,sBACN,QAAQ,eAAa,MACtC,OAAO,eACX;;;;;;;;;;;cAuIU,uBAAoB,sBACT,QAAQ,qBAC7B;;;;;;;;cA8BU,iBAAc,sBACH,QAAQ,YAAU,eACzB,iBACd;;;;;;;;;;;;;;;;;;;;;;;cAwDU,4BAAyB,eACrB,yBACd;;;;;;;;;;;;cAiCU,8BAA2B,QAC9B,mBACP"}
@@ -1,6 +1,5 @@
1
- import { BrowserIntlayerConfig, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./buildBrowserConfiguration.js";
1
+ import { BrowserIntlayerConfig, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./buildBrowserConfiguration.js";
2
2
  import { CustomIntlayerConfig, IntlayerConfig, LogFunctions } from "@intlayer/types/config";
3
-
4
3
  //#region src/configFile/buildConfigurationFields.d.ts
5
4
  /**
6
5
  * Build the complete Intlayer configuration by merging user-supplied values
@@ -18,9 +17,14 @@ import { CustomIntlayerConfig, IntlayerConfig, LogFunctions } from "@intlayer/ty
18
17
  * @param customConfiguration - Optional user-supplied configuration object.
19
18
  * @param baseDir - Project root directory. Defaults to `process.cwd()`.
20
19
  * @param logFunctions - Optional custom logging functions.
20
+ * @param env - Environment variables used to resolve credential fallbacks
21
+ * (e.g. `INTLAYER_CLIENT_ID` / `INTLAYER_CLIENT_SECRET`). Defaults to
22
+ * `process.env`. Callers loading a custom env file (such as the CLI
23
+ * `--env-file` flag) should pass the merged env so credentials defined there
24
+ * are picked up without polluting `process.env`.
21
25
  * @returns A fully-built {@link IntlayerConfig}.
22
26
  */
23
- declare const buildConfigurationFields: (customConfiguration?: CustomIntlayerConfig, baseDir?: string, logFunctions?: LogFunctions) => IntlayerConfig;
27
+ declare const buildConfigurationFields: (customConfiguration?: CustomIntlayerConfig, baseDir?: string, logFunctions?: LogFunctions, env?: NodeJS.ProcessEnv) => IntlayerConfig;
24
28
  //#endregion
25
- export { type BrowserIntlayerConfig, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration };
29
+ export { type BrowserIntlayerConfig, buildAnalyticsFields, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration };
26
30
  //# sourceMappingURL=buildConfigurationFields.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildConfigurationFields.d.ts","names":[],"sources":["../../../src/configFile/buildConfigurationFields.ts"],"mappings":";;;;;;AA0uBA;;;;;;;;;;;;;;;;cAAa,wBAAA,GACX,mBAAA,GAAsB,oBAAA,EACtB,OAAA,WACA,YAAA,GAAe,YAAA,KACd,cAAA"}
1
+ {"version":3,"file":"buildConfigurationFields.d.ts","names":[],"sources":["../../../src/configFile/buildConfigurationFields.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;cAivBa,2BAAwB,sBACb,sBAAoB,kBAC1B,eACD,cAAY,MACtB,OAAO,eACX"}
@@ -1,14 +1,13 @@
1
1
  import { AiProviders } from "@intlayer/types/config";
2
2
  import z from "zod";
3
-
4
3
  //#region src/configFile/configurationSchema.d.ts
5
4
  declare const internationalizationSchema: z.ZodObject<{
6
5
  locales: z.ZodArray<z.ZodString>;
7
6
  requiredLocales: z.ZodOptional<z.ZodArray<z.ZodString>>;
8
7
  strictMode: z.ZodOptional<z.ZodEnum<{
9
- strict: "strict";
10
8
  inclusive: "inclusive";
11
9
  loose: "loose";
10
+ strict: "strict";
12
11
  }>>;
13
12
  defaultLocale: z.ZodOptional<z.ZodString>;
14
13
  }, z.core.$strip>;
@@ -20,26 +19,26 @@ declare const cookiesAttributesSchema: z.ZodObject<{
20
19
  secure: z.ZodOptional<z.ZodBoolean>;
21
20
  httpOnly: z.ZodOptional<z.ZodBoolean>;
22
21
  sameSite: z.ZodOptional<z.ZodEnum<{
22
+ lax: "lax";
23
23
  none: "none";
24
24
  strict: "strict";
25
- lax: "lax";
26
25
  }>>;
27
26
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
28
27
  maxAge: z.ZodOptional<z.ZodNumber>;
29
28
  }, z.core.$strip>;
30
29
  declare const storageAttributesSchema: z.ZodObject<{
31
30
  type: z.ZodEnum<{
31
+ header: "header";
32
32
  localStorage: "localStorage";
33
33
  sessionStorage: "sessionStorage";
34
- header: "header";
35
34
  }>;
36
35
  name: z.ZodOptional<z.ZodString>;
37
36
  }, z.core.$strip>;
38
37
  declare const storageSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum<{
39
38
  cookie: "cookie";
39
+ header: "header";
40
40
  localStorage: "localStorage";
41
41
  sessionStorage: "sessionStorage";
42
- header: "header";
43
42
  }>, z.ZodObject<{
44
43
  type: z.ZodLiteral<"cookie">;
45
44
  name: z.ZodOptional<z.ZodString>;
@@ -48,24 +47,24 @@ declare const storageSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum
48
47
  secure: z.ZodOptional<z.ZodBoolean>;
49
48
  httpOnly: z.ZodOptional<z.ZodBoolean>;
50
49
  sameSite: z.ZodOptional<z.ZodEnum<{
50
+ lax: "lax";
51
51
  none: "none";
52
52
  strict: "strict";
53
- lax: "lax";
54
53
  }>>;
55
54
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
56
55
  maxAge: z.ZodOptional<z.ZodNumber>;
57
56
  }, z.core.$strip>, z.ZodObject<{
58
57
  type: z.ZodEnum<{
58
+ header: "header";
59
59
  localStorage: "localStorage";
60
60
  sessionStorage: "sessionStorage";
61
- header: "header";
62
61
  }>;
63
62
  name: z.ZodOptional<z.ZodString>;
64
63
  }, z.core.$strip>, z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
65
64
  cookie: "cookie";
65
+ header: "header";
66
66
  localStorage: "localStorage";
67
67
  sessionStorage: "sessionStorage";
68
- header: "header";
69
68
  }>, z.ZodObject<{
70
69
  type: z.ZodLiteral<"cookie">;
71
70
  name: z.ZodOptional<z.ZodString>;
@@ -74,17 +73,17 @@ declare const storageSchema: z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum
74
73
  secure: z.ZodOptional<z.ZodBoolean>;
75
74
  httpOnly: z.ZodOptional<z.ZodBoolean>;
76
75
  sameSite: z.ZodOptional<z.ZodEnum<{
76
+ lax: "lax";
77
77
  none: "none";
78
78
  strict: "strict";
79
- lax: "lax";
80
79
  }>>;
81
80
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
82
81
  maxAge: z.ZodOptional<z.ZodNumber>;
83
82
  }, z.core.$strip>, z.ZodObject<{
84
83
  type: z.ZodEnum<{
84
+ header: "header";
85
85
  localStorage: "localStorage";
86
86
  sessionStorage: "sessionStorage";
87
- header: "header";
88
87
  }>;
89
88
  name: z.ZodOptional<z.ZodString>;
90
89
  }, z.core.$strip>]>>]>;
@@ -140,17 +139,17 @@ declare const routingSchema: z.ZodObject<{
140
139
  }, z.core.$strip>>;
141
140
  }, z.core.$strip>]>>;
142
141
  mode: z.ZodOptional<z.ZodEnum<{
143
- "prefix-no-default": "prefix-no-default";
144
- "prefix-all": "prefix-all";
145
142
  "no-prefix": "no-prefix";
143
+ "prefix-all": "prefix-all";
144
+ "prefix-no-default": "prefix-no-default";
146
145
  "search-params": "search-params";
147
146
  }>>;
148
147
  enableProxy: z.ZodOptional<z.ZodBoolean>;
149
148
  storage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum<{
150
149
  cookie: "cookie";
150
+ header: "header";
151
151
  localStorage: "localStorage";
152
152
  sessionStorage: "sessionStorage";
153
- header: "header";
154
153
  }>, z.ZodObject<{
155
154
  type: z.ZodLiteral<"cookie">;
156
155
  name: z.ZodOptional<z.ZodString>;
@@ -159,24 +158,24 @@ declare const routingSchema: z.ZodObject<{
159
158
  secure: z.ZodOptional<z.ZodBoolean>;
160
159
  httpOnly: z.ZodOptional<z.ZodBoolean>;
161
160
  sameSite: z.ZodOptional<z.ZodEnum<{
161
+ lax: "lax";
162
162
  none: "none";
163
163
  strict: "strict";
164
- lax: "lax";
165
164
  }>>;
166
165
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
167
166
  maxAge: z.ZodOptional<z.ZodNumber>;
168
167
  }, z.core.$strip>, z.ZodObject<{
169
168
  type: z.ZodEnum<{
169
+ header: "header";
170
170
  localStorage: "localStorage";
171
171
  sessionStorage: "sessionStorage";
172
- header: "header";
173
172
  }>;
174
173
  name: z.ZodOptional<z.ZodString>;
175
174
  }, z.core.$strip>, z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
176
175
  cookie: "cookie";
176
+ header: "header";
177
177
  localStorage: "localStorage";
178
178
  sessionStorage: "sessionStorage";
179
- header: "header";
180
179
  }>, z.ZodObject<{
181
180
  type: z.ZodLiteral<"cookie">;
182
181
  name: z.ZodOptional<z.ZodString>;
@@ -185,17 +184,17 @@ declare const routingSchema: z.ZodObject<{
185
184
  secure: z.ZodOptional<z.ZodBoolean>;
186
185
  httpOnly: z.ZodOptional<z.ZodBoolean>;
187
186
  sameSite: z.ZodOptional<z.ZodEnum<{
187
+ lax: "lax";
188
188
  none: "none";
189
189
  strict: "strict";
190
- lax: "lax";
191
190
  }>>;
192
191
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
193
192
  maxAge: z.ZodOptional<z.ZodNumber>;
194
193
  }, z.core.$strip>, z.ZodObject<{
195
194
  type: z.ZodEnum<{
195
+ header: "header";
196
196
  localStorage: "localStorage";
197
197
  sessionStorage: "sessionStorage";
198
- header: "header";
199
198
  }>;
200
199
  name: z.ZodOptional<z.ZodString>;
201
200
  }, z.core.$strip>]>>]>>;
@@ -234,18 +233,23 @@ declare const editorSchema: z.ZodObject<{
234
233
  clientId: z.ZodOptional<z.ZodString>;
235
234
  clientSecret: z.ZodOptional<z.ZodString>;
236
235
  dictionaryPriorityStrategy: z.ZodOptional<z.ZodEnum<{
237
- local_first: "local_first";
238
236
  distant_first: "distant_first";
237
+ local_first: "local_first";
239
238
  }>>;
240
239
  liveSync: z.ZodOptional<z.ZodBoolean>;
241
240
  liveSyncPort: z.ZodOptional<z.ZodNumber>;
242
241
  liveSyncURL: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
243
242
  }, z.core.$strip>;
243
+ declare const analyticsSchema: z.ZodObject<{
244
+ enabled: z.ZodOptional<z.ZodBoolean>;
245
+ flushInterval: z.ZodOptional<z.ZodNumber>;
246
+ sampleRate: z.ZodOptional<z.ZodNumber>;
247
+ }, z.core.$strip>;
244
248
  declare const logSchema: z.ZodObject<{
245
249
  mode: z.ZodOptional<z.ZodEnum<{
246
250
  default: "default";
247
- verbose: "verbose";
248
251
  disabled: "disabled";
252
+ verbose: "verbose";
249
253
  }>>;
250
254
  prefix: z.ZodOptional<z.ZodString>;
251
255
  error: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
@@ -272,9 +276,9 @@ declare const buildSchema: z.ZodObject<{
272
276
  }>>;
273
277
  optimize: z.ZodOptional<z.ZodBoolean>;
274
278
  importMode: z.ZodOptional<z.ZodEnum<{
275
- static: "static";
276
279
  dynamic: "dynamic";
277
280
  fetch: "fetch";
281
+ static: "static";
278
282
  }>>;
279
283
  traversePattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
280
284
  outputFormat: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -310,9 +314,9 @@ declare const intlayerConfigSchema: z.ZodObject<{
310
314
  locales: z.ZodArray<z.ZodString>;
311
315
  requiredLocales: z.ZodOptional<z.ZodArray<z.ZodString>>;
312
316
  strictMode: z.ZodOptional<z.ZodEnum<{
313
- strict: "strict";
314
317
  inclusive: "inclusive";
315
318
  loose: "loose";
319
+ strict: "strict";
316
320
  }>>;
317
321
  defaultLocale: z.ZodOptional<z.ZodString>;
318
322
  }, z.core.$strip>>;
@@ -338,17 +342,17 @@ declare const intlayerConfigSchema: z.ZodObject<{
338
342
  }, z.core.$strip>>;
339
343
  }, z.core.$strip>]>>;
340
344
  mode: z.ZodOptional<z.ZodEnum<{
341
- "prefix-no-default": "prefix-no-default";
342
- "prefix-all": "prefix-all";
343
345
  "no-prefix": "no-prefix";
346
+ "prefix-all": "prefix-all";
347
+ "prefix-no-default": "prefix-no-default";
344
348
  "search-params": "search-params";
345
349
  }>>;
346
350
  enableProxy: z.ZodOptional<z.ZodBoolean>;
347
351
  storage: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodEnum<{
348
352
  cookie: "cookie";
353
+ header: "header";
349
354
  localStorage: "localStorage";
350
355
  sessionStorage: "sessionStorage";
351
- header: "header";
352
356
  }>, z.ZodObject<{
353
357
  type: z.ZodLiteral<"cookie">;
354
358
  name: z.ZodOptional<z.ZodString>;
@@ -357,24 +361,24 @@ declare const intlayerConfigSchema: z.ZodObject<{
357
361
  secure: z.ZodOptional<z.ZodBoolean>;
358
362
  httpOnly: z.ZodOptional<z.ZodBoolean>;
359
363
  sameSite: z.ZodOptional<z.ZodEnum<{
364
+ lax: "lax";
360
365
  none: "none";
361
366
  strict: "strict";
362
- lax: "lax";
363
367
  }>>;
364
368
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
365
369
  maxAge: z.ZodOptional<z.ZodNumber>;
366
370
  }, z.core.$strip>, z.ZodObject<{
367
371
  type: z.ZodEnum<{
372
+ header: "header";
368
373
  localStorage: "localStorage";
369
374
  sessionStorage: "sessionStorage";
370
- header: "header";
371
375
  }>;
372
376
  name: z.ZodOptional<z.ZodString>;
373
377
  }, z.core.$strip>, z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
374
378
  cookie: "cookie";
379
+ header: "header";
375
380
  localStorage: "localStorage";
376
381
  sessionStorage: "sessionStorage";
377
- header: "header";
378
382
  }>, z.ZodObject<{
379
383
  type: z.ZodLiteral<"cookie">;
380
384
  name: z.ZodOptional<z.ZodString>;
@@ -383,17 +387,17 @@ declare const intlayerConfigSchema: z.ZodObject<{
383
387
  secure: z.ZodOptional<z.ZodBoolean>;
384
388
  httpOnly: z.ZodOptional<z.ZodBoolean>;
385
389
  sameSite: z.ZodOptional<z.ZodEnum<{
390
+ lax: "lax";
386
391
  none: "none";
387
392
  strict: "strict";
388
- lax: "lax";
389
393
  }>>;
390
394
  expires: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<Date, Date>, z.ZodNumber, z.ZodString]>>;
391
395
  maxAge: z.ZodOptional<z.ZodNumber>;
392
396
  }, z.core.$strip>, z.ZodObject<{
393
397
  type: z.ZodEnum<{
398
+ header: "header";
394
399
  localStorage: "localStorage";
395
400
  sessionStorage: "sessionStorage";
396
- header: "header";
397
401
  }>;
398
402
  name: z.ZodOptional<z.ZodString>;
399
403
  }, z.core.$strip>]>>]>>;
@@ -432,18 +436,23 @@ declare const intlayerConfigSchema: z.ZodObject<{
432
436
  clientId: z.ZodOptional<z.ZodString>;
433
437
  clientSecret: z.ZodOptional<z.ZodString>;
434
438
  dictionaryPriorityStrategy: z.ZodOptional<z.ZodEnum<{
435
- local_first: "local_first";
436
439
  distant_first: "distant_first";
440
+ local_first: "local_first";
437
441
  }>>;
438
442
  liveSync: z.ZodOptional<z.ZodBoolean>;
439
443
  liveSyncPort: z.ZodOptional<z.ZodNumber>;
440
444
  liveSyncURL: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
441
445
  }, z.core.$strip>>;
446
+ analytics: z.ZodOptional<z.ZodObject<{
447
+ enabled: z.ZodOptional<z.ZodBoolean>;
448
+ flushInterval: z.ZodOptional<z.ZodNumber>;
449
+ sampleRate: z.ZodOptional<z.ZodNumber>;
450
+ }, z.core.$strip>>;
442
451
  log: z.ZodOptional<z.ZodObject<{
443
452
  mode: z.ZodOptional<z.ZodEnum<{
444
453
  default: "default";
445
- verbose: "verbose";
446
454
  disabled: "disabled";
455
+ verbose: "verbose";
447
456
  }>>;
448
457
  prefix: z.ZodOptional<z.ZodString>;
449
458
  error: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
@@ -470,9 +479,9 @@ declare const intlayerConfigSchema: z.ZodObject<{
470
479
  }>>;
471
480
  optimize: z.ZodOptional<z.ZodBoolean>;
472
481
  importMode: z.ZodOptional<z.ZodEnum<{
473
- static: "static";
474
482
  dynamic: "dynamic";
475
483
  fetch: "fetch";
484
+ static: "static";
476
485
  }>>;
477
486
  traversePattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
478
487
  outputFormat: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -512,5 +521,5 @@ declare const intlayerConfigSchema: z.ZodObject<{
512
521
  }, z.core.$strip>>;
513
522
  }, z.core.$strip>;
514
523
  //#endregion
515
- export { aiSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema };
524
+ export { aiSchema, analyticsSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema };
516
525
  //# sourceMappingURL=configurationSchema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"configurationSchema.d.ts","names":[],"sources":["../../../src/configFile/configurationSchema.ts"],"mappings":";;;;cAGa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cA+B1B,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAYvB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;cAKvB,aAAA,EAAa,CAAA,CAAA,QAAA,WAAA,CAAA,CAAA,UAAA,SAAA,CAAA,CAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAcb,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;cAKjB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;cAIlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAMnB,aAAA,EAAa,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgBb,YAAA,EAAY,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAeZ,aAAA,EAAa,CAAA,CAAA,SAAA;;;;;;;;cASb,YAAA,EAAY,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAiBZ,SAAA,EAAS,CAAA,CAAA,SAAA;;;;;;;;;;;;cAST,QAAA,EAAQ,CAAA,CAAA,SAAA;;;;;;;;;;;;cAUR,WAAA,EAAW,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAWX,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;cAUd,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;;;;;;;;cAiBhB,oBAAA,EAAoB,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"configurationSchema.d.ts","names":[],"sources":["../../../src/configFile/configurationSchema.ts"],"mappings":";;;cAGa,4BAA0B,EAAA;;;;;;;;;GAKrC,EAAA,KAAA;cA0BW,yBAAuB,EAAA;;;;;;;;;;;;;;GAUlC,EAAA,KAAA;cAEW,yBAAuB,EAAA;;;;;;;GAGlC,EAAA,KAAA;cAEW,eAAa,EAAA,mBAAA,EAAA,mBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYxB,EAAA,KAAA;cAEW,mBAAiB,EAAA;;;GAG5B,EAAA,KAAA;cAEW,oBAAkB,EAAA;;;;;GAE7B,EAAA,KAAA;cAEW,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;GAI9B,EAAA,KAAA;cAEW,eAAa,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAcxB,EAAA,KAAA;cAEW,cAAY,EAAA;;;;;;;;;;;;;GAavB,EAAA,KAAA;cAEW,eAAa,EAAA;;;;;;;GAOxB,EAAA,KAAA;cAEW,cAAY,EAAA;;;;;;;;;;;;;;;;GAevB,EAAA,KAAA;cAEW,iBAAe,EAAA;;;;GAI1B,EAAA,KAAA;cAEW,WAAS,EAAA;;;;;;;;;;;GAOpB,EAAA,KAAA;cAEW,UAAQ,EAAA;;;;;;;;;;;GAQnB,EAAA,KAAA;cAEW,aAAW,EAAA;;;;;;;;;;;;;;;;;;;GAStB,EAAA,KAAA;cAEW,gBAAc,EAAA;;;;;;;;GAQzB,EAAA,KAAA;cAEW,kBAAgB,EAAA;;;;;;;;;;GAe3B,EAAA,KAAA;cAEW,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqB/B,EAAA,KAAA"}
@@ -1,7 +1,6 @@
1
1
  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
-
5
4
  //#region src/configFile/getConfiguration.d.ts
6
5
  type GetConfigurationOptions = {
7
6
  baseDir?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"getConfiguration.d.ts","names":[],"sources":["../../../src/configFile/getConfiguration.ts"],"mappings":";;;;;KAcY,uBAAA;EACV,OAAA;EACA,QAAA,GAAW,oBAAA;EAEX,GAAA;EACA,OAAA;EAEA,YAAA,GAAe,YAAA;EAEf,OAAA,GAAU,MAAA,CAAO,OAAA;EAEjB,KAAA;EAEA,YAAA,GAAe,uBAAA;AAAA,IACb,IAAA,CAAK,qBAAA;AAAA,KAEG,iCAAA;EACV,aAAA,EAAe,cAAA;EACf,mBAAA,EAAqB,oBAAA;EACrB,sBAAA;EACA,qBAAA;AAAA;;;;cAMW,2BAAA,GACX,OAAA,GAAU,uBAAA,KACT,iCAAA;;;;cAqGU,gBAAA,GACX,OAAA,GAAU,uBAAA,KACT,cAAA"}
1
+ {"version":3,"file":"getConfiguration.d.ts","names":[],"sources":["../../../src/configFile/getConfiguration.ts"],"mappings":";;;;KAeY;EACV;EACA,WAAW;EAEX;EACA;EAEA,eAAe;EAEf,UAAU,OAAO;EAEjB;EAEA,eAAe;IACb,KAAK;KAEG;EACV,eAAe;EACf,qBAAqB;EACrB;EACA;;;;;cAMW,8BAA2B,UAC5B,4BACT;;;;cAiHU,mBAAgB,UACjB,4BACT"}