@intlayer/chokidar 7.0.9-canary.0 → 7.0.9-canary.2

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 (758) hide show
  1. package/README.md +2 -1
  2. package/dist/cjs/api/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
  3. package/dist/cjs/api/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  4. package/dist/cjs/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
  5. package/dist/cjs/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  6. package/dist/cjs/api/dist/esm/config/dist/esm/built.cjs +8 -0
  7. package/dist/cjs/api/dist/esm/config/dist/esm/built.cjs.map +1 -0
  8. package/dist/cjs/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
  9. package/dist/cjs/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
  10. package/dist/cjs/api/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
  11. package/dist/cjs/api/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
  12. package/dist/cjs/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
  13. package/dist/cjs/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
  14. package/dist/cjs/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
  15. package/dist/cjs/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
  16. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
  17. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
  18. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
  19. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
  20. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
  21. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
  22. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
  23. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
  24. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
  25. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
  26. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
  27. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
  28. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
  29. package/dist/cjs/api/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
  30. package/dist/cjs/api/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
  31. package/dist/cjs/api/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
  32. package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
  33. package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
  34. package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
  35. package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
  36. package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
  37. package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
  38. package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
  39. package/dist/cjs/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
  40. package/dist/cjs/api/dist/esm/config/dist/esm/logger.cjs +47 -0
  41. package/dist/cjs/api/dist/esm/config/dist/esm/logger.cjs.map +1 -0
  42. package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
  43. package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  44. package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
  45. package/dist/cjs/api/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
  46. package/dist/cjs/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
  47. package/dist/cjs/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
  48. package/dist/cjs/api/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
  49. package/dist/cjs/api/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
  50. package/dist/cjs/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
  51. package/dist/cjs/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
  52. package/dist/cjs/api/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
  53. package/dist/cjs/api/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
  54. package/dist/cjs/api/dist/esm/fetcher.cjs +121 -0
  55. package/dist/cjs/api/dist/esm/fetcher.cjs.map +1 -0
  56. package/dist/cjs/api/dist/esm/getIntlayerAPI/ai.cjs +164 -0
  57. package/dist/cjs/api/dist/esm/getIntlayerAPI/ai.cjs.map +1 -0
  58. package/dist/cjs/api/dist/esm/getIntlayerAPI/audit.cjs +39 -0
  59. package/dist/cjs/api/dist/esm/getIntlayerAPI/audit.cjs.map +1 -0
  60. package/dist/cjs/api/dist/esm/getIntlayerAPI/dictionary.cjs +70 -0
  61. package/dist/cjs/api/dist/esm/getIntlayerAPI/dictionary.cjs.map +1 -0
  62. package/dist/cjs/api/dist/esm/getIntlayerAPI/editor.cjs +38 -0
  63. package/dist/cjs/api/dist/esm/getIntlayerAPI/editor.cjs.map +1 -0
  64. package/dist/cjs/api/dist/esm/getIntlayerAPI/index.cjs +32 -0
  65. package/dist/cjs/api/dist/esm/getIntlayerAPI/index.cjs.map +1 -0
  66. package/dist/cjs/api/dist/esm/getIntlayerAPI/newsletter.cjs +41 -0
  67. package/dist/cjs/api/dist/esm/getIntlayerAPI/newsletter.cjs.map +1 -0
  68. package/dist/cjs/api/dist/esm/getIntlayerAPI/oAuth.cjs +27 -0
  69. package/dist/cjs/api/dist/esm/getIntlayerAPI/oAuth.cjs.map +1 -0
  70. package/dist/cjs/api/dist/esm/getIntlayerAPI/organization.cjs +94 -0
  71. package/dist/cjs/api/dist/esm/getIntlayerAPI/organization.cjs.map +1 -0
  72. package/dist/cjs/api/dist/esm/getIntlayerAPI/project.cjs +110 -0
  73. package/dist/cjs/api/dist/esm/getIntlayerAPI/project.cjs.map +1 -0
  74. package/dist/cjs/api/dist/esm/getIntlayerAPI/search.cjs +23 -0
  75. package/dist/cjs/api/dist/esm/getIntlayerAPI/search.cjs.map +1 -0
  76. package/dist/cjs/api/dist/esm/getIntlayerAPI/stripe.cjs +39 -0
  77. package/dist/cjs/api/dist/esm/getIntlayerAPI/stripe.cjs.map +1 -0
  78. package/dist/cjs/api/dist/esm/getIntlayerAPI/tag.cjs +48 -0
  79. package/dist/cjs/api/dist/esm/getIntlayerAPI/tag.cjs.map +1 -0
  80. package/dist/cjs/api/dist/esm/getIntlayerAPI/user.cjs +80 -0
  81. package/dist/cjs/api/dist/esm/getIntlayerAPI/user.cjs.map +1 -0
  82. package/dist/cjs/api/dist/esm/proxy.cjs +100 -0
  83. package/dist/cjs/api/dist/esm/proxy.cjs.map +1 -0
  84. package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs +14 -5
  85. package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs.map +1 -1
  86. package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs +1 -0
  87. package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs.map +1 -1
  88. package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
  89. package/dist/cjs/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  90. package/dist/cjs/config/dist/esm/built.cjs +8 -0
  91. package/dist/cjs/config/dist/esm/built.cjs.map +1 -0
  92. package/dist/cjs/config/dist/esm/config/package.cjs +7 -0
  93. package/dist/cjs/config/dist/esm/config/package.cjs.map +1 -0
  94. package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
  95. package/dist/cjs/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
  96. package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs +69 -0
  97. package/dist/cjs/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
  98. package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
  99. package/dist/cjs/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
  100. package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
  101. package/dist/cjs/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
  102. package/dist/cjs/config/dist/esm/defaultValues/build.cjs +15 -0
  103. package/dist/cjs/config/dist/esm/defaultValues/build.cjs.map +1 -0
  104. package/dist/cjs/config/dist/esm/defaultValues/content.cjs +54 -0
  105. package/dist/cjs/config/dist/esm/defaultValues/content.cjs.map +1 -0
  106. package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs +7 -0
  107. package/dist/cjs/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
  108. package/dist/cjs/config/dist/esm/defaultValues/editor.cjs +23 -0
  109. package/dist/cjs/config/dist/esm/defaultValues/editor.cjs.map +1 -0
  110. package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs +14 -0
  111. package/dist/cjs/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
  112. package/dist/cjs/config/dist/esm/defaultValues/log.cjs +10 -0
  113. package/dist/cjs/config/dist/esm/defaultValues/log.cjs.map +1 -0
  114. package/dist/cjs/config/dist/esm/defaultValues/routing.cjs +11 -0
  115. package/dist/cjs/config/dist/esm/defaultValues/routing.cjs.map +1 -0
  116. package/dist/cjs/config/dist/esm/loadEnvFile.cjs +26 -0
  117. package/dist/cjs/config/dist/esm/loadEnvFile.cjs.map +1 -0
  118. package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs +58 -0
  119. package/dist/cjs/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
  120. package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs +83 -0
  121. package/dist/cjs/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
  122. package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
  123. package/dist/cjs/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
  124. package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +58 -0
  125. package/dist/cjs/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
  126. package/dist/cjs/config/dist/esm/logger.cjs +114 -0
  127. package/dist/cjs/config/dist/esm/logger.cjs.map +1 -0
  128. package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
  129. package/dist/cjs/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  130. package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
  131. package/dist/cjs/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
  132. package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs +28 -0
  133. package/dist/cjs/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
  134. package/dist/cjs/config/dist/esm/utils/cache.cjs +416 -0
  135. package/dist/cjs/config/dist/esm/utils/cache.cjs.map +1 -0
  136. package/dist/cjs/config/dist/esm/utils/clearModuleCache.cjs +26 -0
  137. package/dist/cjs/config/dist/esm/utils/clearModuleCache.cjs.map +1 -0
  138. package/dist/cjs/config/dist/esm/utils/extractErrorMessage.cjs +95 -0
  139. package/dist/cjs/config/dist/esm/utils/extractErrorMessage.cjs.map +1 -0
  140. package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
  141. package/dist/cjs/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
  142. package/dist/cjs/config/dist/esm/utils/normalizePath.cjs +17 -0
  143. package/dist/cjs/config/dist/esm/utils/normalizePath.cjs.map +1 -0
  144. package/dist/cjs/config/package.cjs +12 -0
  145. package/dist/cjs/config/package.cjs.map +1 -0
  146. package/dist/cjs/config/src/utils/kebabCaseToCamelCase.cjs +14 -0
  147. package/dist/cjs/config/src/utils/kebabCaseToCamelCase.cjs.map +1 -0
  148. package/dist/cjs/core/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
  149. package/dist/cjs/core/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  150. package/dist/cjs/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
  151. package/dist/cjs/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  152. package/dist/cjs/core/dist/esm/config/dist/esm/built.cjs +8 -0
  153. package/dist/cjs/core/dist/esm/config/dist/esm/built.cjs.map +1 -0
  154. package/dist/cjs/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
  155. package/dist/cjs/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
  156. package/dist/cjs/core/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
  157. package/dist/cjs/core/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
  158. package/dist/cjs/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
  159. package/dist/cjs/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
  160. package/dist/cjs/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
  161. package/dist/cjs/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
  162. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
  163. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
  164. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
  165. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
  166. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
  167. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
  168. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
  169. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
  170. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
  171. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
  172. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
  173. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
  174. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
  175. package/dist/cjs/core/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
  176. package/dist/cjs/core/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
  177. package/dist/cjs/core/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
  178. package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
  179. package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
  180. package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
  181. package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
  182. package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
  183. package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
  184. package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
  185. package/dist/cjs/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
  186. package/dist/cjs/core/dist/esm/config/dist/esm/logger.cjs +63 -0
  187. package/dist/cjs/core/dist/esm/config/dist/esm/logger.cjs.map +1 -0
  188. package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
  189. package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  190. package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
  191. package/dist/cjs/core/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
  192. package/dist/cjs/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
  193. package/dist/cjs/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
  194. package/dist/cjs/core/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
  195. package/dist/cjs/core/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
  196. package/dist/cjs/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
  197. package/dist/cjs/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
  198. package/dist/cjs/core/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
  199. package/dist/cjs/core/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
  200. package/dist/cjs/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.cjs +43 -0
  201. package/dist/cjs/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.cjs.map +1 -0
  202. package/dist/cjs/core/dist/esm/deepTransformPlugins/getLocalizedContent.cjs +32 -0
  203. package/dist/cjs/core/dist/esm/deepTransformPlugins/getLocalizedContent.cjs.map +1 -0
  204. package/dist/cjs/core/dist/esm/deepTransformPlugins/getMaskContent.cjs +26 -0
  205. package/dist/cjs/core/dist/esm/deepTransformPlugins/getMaskContent.cjs.map +1 -0
  206. package/dist/cjs/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.cjs +87 -0
  207. package/dist/cjs/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.cjs.map +1 -0
  208. package/dist/cjs/core/dist/esm/dictionaryManipulator/getNodeType.cjs +35 -0
  209. package/dist/cjs/core/dist/esm/dictionaryManipulator/getNodeType.cjs.map +1 -0
  210. package/dist/cjs/core/dist/esm/dictionaryManipulator/mergeDictionaries.cjs +67 -0
  211. package/dist/cjs/core/dist/esm/dictionaryManipulator/mergeDictionaries.cjs.map +1 -0
  212. package/dist/cjs/core/dist/esm/dictionaryManipulator/normalizeDictionary.cjs +29 -0
  213. package/dist/cjs/core/dist/esm/dictionaryManipulator/normalizeDictionary.cjs.map +1 -0
  214. package/dist/cjs/core/dist/esm/dictionaryManipulator/orderDictionaries.cjs +46 -0
  215. package/dist/cjs/core/dist/esm/dictionaryManipulator/orderDictionaries.cjs.map +1 -0
  216. package/dist/cjs/core/dist/esm/interpreter/getContent/deepTransform.cjs +39 -0
  217. package/dist/cjs/core/dist/esm/interpreter/getContent/deepTransform.cjs.map +1 -0
  218. package/dist/cjs/core/dist/esm/interpreter/getContent/plugins.cjs +28 -0
  219. package/dist/cjs/core/dist/esm/interpreter/getContent/plugins.cjs.map +1 -0
  220. package/dist/cjs/core/dist/esm/interpreter/getTranslation.cjs +32 -0
  221. package/dist/cjs/core/dist/esm/interpreter/getTranslation.cjs.map +1 -0
  222. package/dist/cjs/core/dist/esm/localization/getLocaleName.cjs +10 -0
  223. package/dist/cjs/core/dist/esm/localization/getLocaleName.cjs.map +1 -0
  224. package/dist/cjs/core/dist/esm/transpiler/translation/translation.cjs +28 -0
  225. package/dist/cjs/core/dist/esm/transpiler/translation/translation.cjs.map +1 -0
  226. package/dist/cjs/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
  227. package/dist/cjs/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  228. package/dist/cjs/core/dist/esm/types/dist/esm/locales.cjs +1128 -0
  229. package/dist/cjs/core/dist/esm/types/dist/esm/locales.cjs.map +1 -0
  230. package/dist/cjs/core/dist/esm/types/dist/esm/nodeType.cjs +31 -0
  231. package/dist/cjs/core/dist/esm/types/dist/esm/nodeType.cjs.map +1 -0
  232. package/dist/cjs/core/dist/esm/utils/intl.cjs +49 -0
  233. package/dist/cjs/core/dist/esm/utils/intl.cjs.map +1 -0
  234. package/dist/cjs/core/dist/esm/utils/isValidReactElement.cjs +14 -0
  235. package/dist/cjs/core/dist/esm/utils/isValidReactElement.cjs.map +1 -0
  236. package/dist/cjs/core/package.cjs +12 -0
  237. package/dist/cjs/core/package.cjs.map +1 -0
  238. package/dist/cjs/core/src/deepTransformPlugins/processContentDeclarationContent.cjs +77 -0
  239. package/dist/cjs/core/src/deepTransformPlugins/processContentDeclarationContent.cjs.map +1 -0
  240. package/dist/cjs/createType/createModuleAugmentation.cjs +1 -2
  241. package/dist/cjs/createType/createModuleAugmentation.cjs.map +1 -1
  242. package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs +3 -2
  243. package/dist/cjs/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.cjs.map +1 -1
  244. package/dist/cjs/index.cjs +0 -4
  245. package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs +12 -12
  246. package/dist/cjs/loadDictionaries/loadRemoteDictionaries.cjs.map +1 -1
  247. package/dist/cjs/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
  248. package/dist/cjs/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  249. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
  250. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  251. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/built.cjs +8 -0
  252. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/built.cjs.map +1 -0
  253. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
  254. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
  255. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
  256. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
  257. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
  258. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
  259. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
  260. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
  261. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
  262. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
  263. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
  264. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
  265. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
  266. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
  267. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
  268. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
  269. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
  270. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
  271. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
  272. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
  273. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
  274. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
  275. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
  276. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
  277. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
  278. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
  279. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
  280. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
  281. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
  282. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
  283. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
  284. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
  285. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs +47 -0
  286. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs.map +1 -0
  287. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
  288. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  289. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
  290. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
  291. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
  292. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
  293. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
  294. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
  295. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
  296. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
  297. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
  298. package/dist/cjs/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
  299. package/dist/cjs/remote-dictionaries-entry/dist/esm/index.cjs +27 -0
  300. package/dist/cjs/remote-dictionaries-entry/dist/esm/index.cjs.map +1 -0
  301. package/dist/cjs/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
  302. package/dist/cjs/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  303. package/dist/cjs/types/dist/esm/locales.cjs +1128 -0
  304. package/dist/cjs/types/dist/esm/locales.cjs.map +1 -0
  305. package/dist/cjs/types/dist/esm/nodeType.cjs +25 -0
  306. package/dist/cjs/types/dist/esm/nodeType.cjs.map +1 -0
  307. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs +10 -0
  308. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  309. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs +11 -0
  310. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  311. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.cjs +8 -0
  312. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.cjs.map +1 -0
  313. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs +119 -0
  314. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.cjs.map +1 -0
  315. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs +69 -0
  316. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.cjs.map +1 -0
  317. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs +26 -0
  318. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.cjs.map +1 -0
  319. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs +51 -0
  320. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.cjs.map +1 -0
  321. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs +15 -0
  322. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.cjs.map +1 -0
  323. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs +54 -0
  324. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.cjs.map +1 -0
  325. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs +7 -0
  326. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.cjs.map +1 -0
  327. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs +23 -0
  328. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.cjs.map +1 -0
  329. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs +14 -0
  330. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.cjs.map +1 -0
  331. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs +10 -0
  332. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.cjs.map +1 -0
  333. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs +11 -0
  334. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.cjs.map +1 -0
  335. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs +26 -0
  336. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.cjs.map +1 -0
  337. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs +23 -0
  338. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.cjs.map +1 -0
  339. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs +48 -0
  340. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.cjs.map +1 -0
  341. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs +65 -0
  342. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.cjs.map +1 -0
  343. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs +45 -0
  344. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.cjs.map +1 -0
  345. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs +47 -0
  346. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.cjs.map +1 -0
  347. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs +15 -0
  348. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.cjs.map +1 -0
  349. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs +1128 -0
  350. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.cjs.map +1 -0
  351. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs +27 -0
  352. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.cjs.map +1 -0
  353. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs +264 -0
  354. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.cjs.map +1 -0
  355. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs +34 -0
  356. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.cjs.map +1 -0
  357. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs +17 -0
  358. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.cjs.map +1 -0
  359. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/index.cjs +27 -0
  360. package/dist/cjs/unmerged-dictionaries-entry/dist/esm/index.cjs.map +1 -0
  361. package/dist/cjs/utils/camelCaseToSentence.cjs +11 -0
  362. package/dist/cjs/utils/camelCaseToSentence.cjs.map +1 -0
  363. package/dist/cjs/utils/cammelCaseToSentense.cjs +11 -0
  364. package/dist/cjs/utils/cammelCaseToSentense.cjs.map +1 -0
  365. package/dist/cjs/writeContentDeclaration/transformJSFile.cjs +47 -47
  366. package/dist/cjs/writeContentDeclaration/transformJSFile.cjs.map +1 -1
  367. package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +9 -6
  368. package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs.map +1 -1
  369. package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +1 -0
  370. package/dist/cjs/writeContentDeclaration/writeJSFile.cjs.map +1 -1
  371. package/dist/esm/api/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  372. package/dist/esm/api/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  373. package/dist/esm/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  374. package/dist/esm/api/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  375. package/dist/esm/api/dist/esm/config/dist/esm/built.mjs +8 -0
  376. package/dist/esm/api/dist/esm/config/dist/esm/built.mjs.map +1 -0
  377. package/dist/esm/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
  378. package/dist/esm/api/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
  379. package/dist/esm/api/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
  380. package/dist/esm/api/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
  381. package/dist/esm/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
  382. package/dist/esm/api/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
  383. package/dist/esm/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
  384. package/dist/esm/api/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
  385. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
  386. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
  387. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
  388. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
  389. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
  390. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
  391. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
  392. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
  393. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
  394. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
  395. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
  396. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
  397. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
  398. package/dist/esm/api/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
  399. package/dist/esm/api/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
  400. package/dist/esm/api/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
  401. package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
  402. package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
  403. package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
  404. package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
  405. package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
  406. package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
  407. package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
  408. package/dist/esm/api/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
  409. package/dist/esm/api/dist/esm/config/dist/esm/logger.mjs +45 -0
  410. package/dist/esm/api/dist/esm/config/dist/esm/logger.mjs.map +1 -0
  411. package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
  412. package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  413. package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
  414. package/dist/esm/api/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
  415. package/dist/esm/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
  416. package/dist/esm/api/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
  417. package/dist/esm/api/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
  418. package/dist/esm/api/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
  419. package/dist/esm/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
  420. package/dist/esm/api/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
  421. package/dist/esm/api/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
  422. package/dist/esm/api/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
  423. package/dist/esm/api/dist/esm/fetcher.mjs +120 -0
  424. package/dist/esm/api/dist/esm/fetcher.mjs.map +1 -0
  425. package/dist/esm/api/dist/esm/getIntlayerAPI/ai.mjs +164 -0
  426. package/dist/esm/api/dist/esm/getIntlayerAPI/ai.mjs.map +1 -0
  427. package/dist/esm/api/dist/esm/getIntlayerAPI/audit.mjs +39 -0
  428. package/dist/esm/api/dist/esm/getIntlayerAPI/audit.mjs.map +1 -0
  429. package/dist/esm/api/dist/esm/getIntlayerAPI/dictionary.mjs +70 -0
  430. package/dist/esm/api/dist/esm/getIntlayerAPI/dictionary.mjs.map +1 -0
  431. package/dist/esm/api/dist/esm/getIntlayerAPI/editor.mjs +38 -0
  432. package/dist/esm/api/dist/esm/getIntlayerAPI/editor.mjs.map +1 -0
  433. package/dist/esm/api/dist/esm/getIntlayerAPI/index.mjs +32 -0
  434. package/dist/esm/api/dist/esm/getIntlayerAPI/index.mjs.map +1 -0
  435. package/dist/esm/api/dist/esm/getIntlayerAPI/newsletter.mjs +41 -0
  436. package/dist/esm/api/dist/esm/getIntlayerAPI/newsletter.mjs.map +1 -0
  437. package/dist/esm/api/dist/esm/getIntlayerAPI/oAuth.mjs +27 -0
  438. package/dist/esm/api/dist/esm/getIntlayerAPI/oAuth.mjs.map +1 -0
  439. package/dist/esm/api/dist/esm/getIntlayerAPI/organization.mjs +94 -0
  440. package/dist/esm/api/dist/esm/getIntlayerAPI/organization.mjs.map +1 -0
  441. package/dist/esm/api/dist/esm/getIntlayerAPI/project.mjs +110 -0
  442. package/dist/esm/api/dist/esm/getIntlayerAPI/project.mjs.map +1 -0
  443. package/dist/esm/api/dist/esm/getIntlayerAPI/search.mjs +23 -0
  444. package/dist/esm/api/dist/esm/getIntlayerAPI/search.mjs.map +1 -0
  445. package/dist/esm/api/dist/esm/getIntlayerAPI/stripe.mjs +39 -0
  446. package/dist/esm/api/dist/esm/getIntlayerAPI/stripe.mjs.map +1 -0
  447. package/dist/esm/api/dist/esm/getIntlayerAPI/tag.mjs +48 -0
  448. package/dist/esm/api/dist/esm/getIntlayerAPI/tag.mjs.map +1 -0
  449. package/dist/esm/api/dist/esm/getIntlayerAPI/user.mjs +80 -0
  450. package/dist/esm/api/dist/esm/getIntlayerAPI/user.mjs.map +1 -0
  451. package/dist/esm/api/dist/esm/proxy.mjs +100 -0
  452. package/dist/esm/api/dist/esm/proxy.mjs.map +1 -0
  453. package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs +15 -6
  454. package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs.map +1 -1
  455. package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs +1 -1
  456. package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs.map +1 -1
  457. package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  458. package/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  459. package/dist/esm/config/dist/esm/built.mjs +8 -0
  460. package/dist/esm/config/dist/esm/built.mjs.map +1 -0
  461. package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
  462. package/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
  463. package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
  464. package/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
  465. package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
  466. package/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
  467. package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
  468. package/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
  469. package/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
  470. package/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
  471. package/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
  472. package/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
  473. package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
  474. package/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
  475. package/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
  476. package/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
  477. package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
  478. package/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
  479. package/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
  480. package/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
  481. package/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
  482. package/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
  483. package/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
  484. package/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
  485. package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
  486. package/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
  487. package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
  488. package/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
  489. package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
  490. package/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
  491. package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
  492. package/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
  493. package/dist/esm/config/dist/esm/logger.mjs +104 -0
  494. package/dist/esm/config/dist/esm/logger.mjs.map +1 -0
  495. package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
  496. package/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  497. package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
  498. package/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
  499. package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
  500. package/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
  501. package/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
  502. package/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
  503. package/dist/esm/config/dist/esm/utils/extractErrorMessage.mjs +94 -0
  504. package/dist/esm/config/dist/esm/utils/extractErrorMessage.mjs.map +1 -0
  505. package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
  506. package/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
  507. package/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
  508. package/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
  509. package/dist/esm/config/package.mjs +6 -0
  510. package/dist/esm/config/package.mjs.map +1 -0
  511. package/dist/esm/config/src/utils/kebabCaseToCamelCase.mjs +13 -0
  512. package/dist/esm/config/src/utils/kebabCaseToCamelCase.mjs.map +1 -0
  513. package/dist/esm/core/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  514. package/dist/esm/core/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  515. package/dist/esm/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  516. package/dist/esm/core/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  517. package/dist/esm/core/dist/esm/config/dist/esm/built.mjs +8 -0
  518. package/dist/esm/core/dist/esm/config/dist/esm/built.mjs.map +1 -0
  519. package/dist/esm/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
  520. package/dist/esm/core/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
  521. package/dist/esm/core/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
  522. package/dist/esm/core/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
  523. package/dist/esm/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
  524. package/dist/esm/core/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
  525. package/dist/esm/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
  526. package/dist/esm/core/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
  527. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
  528. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
  529. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
  530. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
  531. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
  532. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
  533. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
  534. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
  535. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
  536. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
  537. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
  538. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
  539. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
  540. package/dist/esm/core/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
  541. package/dist/esm/core/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
  542. package/dist/esm/core/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
  543. package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
  544. package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
  545. package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
  546. package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
  547. package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
  548. package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
  549. package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
  550. package/dist/esm/core/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
  551. package/dist/esm/core/dist/esm/config/dist/esm/logger.mjs +59 -0
  552. package/dist/esm/core/dist/esm/config/dist/esm/logger.mjs.map +1 -0
  553. package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
  554. package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  555. package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
  556. package/dist/esm/core/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
  557. package/dist/esm/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
  558. package/dist/esm/core/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
  559. package/dist/esm/core/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
  560. package/dist/esm/core/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
  561. package/dist/esm/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
  562. package/dist/esm/core/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
  563. package/dist/esm/core/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
  564. package/dist/esm/core/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
  565. package/dist/esm/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs +43 -0
  566. package/dist/esm/core/dist/esm/deepTransformPlugins/getFilteredLocalesContent.mjs.map +1 -0
  567. package/dist/esm/core/dist/esm/deepTransformPlugins/getLocalizedContent.mjs +32 -0
  568. package/dist/esm/core/dist/esm/deepTransformPlugins/getLocalizedContent.mjs.map +1 -0
  569. package/dist/esm/core/dist/esm/deepTransformPlugins/getMaskContent.mjs +26 -0
  570. package/dist/esm/core/dist/esm/deepTransformPlugins/getMaskContent.mjs.map +1 -0
  571. package/dist/esm/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs +87 -0
  572. package/dist/esm/core/dist/esm/deepTransformPlugins/getMultilingualDictionary.mjs.map +1 -0
  573. package/dist/esm/core/dist/esm/dictionaryManipulator/getNodeType.mjs +35 -0
  574. package/dist/esm/core/dist/esm/dictionaryManipulator/getNodeType.mjs.map +1 -0
  575. package/dist/esm/core/dist/esm/dictionaryManipulator/mergeDictionaries.mjs +67 -0
  576. package/dist/esm/core/dist/esm/dictionaryManipulator/mergeDictionaries.mjs.map +1 -0
  577. package/dist/esm/core/dist/esm/dictionaryManipulator/normalizeDictionary.mjs +29 -0
  578. package/dist/esm/core/dist/esm/dictionaryManipulator/normalizeDictionary.mjs.map +1 -0
  579. package/dist/esm/core/dist/esm/dictionaryManipulator/orderDictionaries.mjs +46 -0
  580. package/dist/esm/core/dist/esm/dictionaryManipulator/orderDictionaries.mjs.map +1 -0
  581. package/dist/esm/core/dist/esm/interpreter/getContent/deepTransform.mjs +39 -0
  582. package/dist/esm/core/dist/esm/interpreter/getContent/deepTransform.mjs.map +1 -0
  583. package/dist/esm/core/dist/esm/interpreter/getContent/plugins.mjs +28 -0
  584. package/dist/esm/core/dist/esm/interpreter/getContent/plugins.mjs.map +1 -0
  585. package/dist/esm/core/dist/esm/interpreter/getTranslation.mjs +31 -0
  586. package/dist/esm/core/dist/esm/interpreter/getTranslation.mjs.map +1 -0
  587. package/dist/esm/core/dist/esm/localization/getLocaleName.mjs +10 -0
  588. package/dist/esm/core/dist/esm/localization/getLocaleName.mjs.map +1 -0
  589. package/dist/esm/core/dist/esm/transpiler/translation/translation.mjs +28 -0
  590. package/dist/esm/core/dist/esm/transpiler/translation/translation.mjs.map +1 -0
  591. package/dist/esm/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
  592. package/dist/esm/core/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  593. package/dist/esm/core/dist/esm/types/dist/esm/locales.mjs +1128 -0
  594. package/dist/esm/core/dist/esm/types/dist/esm/locales.mjs.map +1 -0
  595. package/dist/esm/core/dist/esm/types/dist/esm/nodeType.mjs +29 -0
  596. package/dist/esm/core/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
  597. package/dist/esm/core/dist/esm/utils/intl.mjs +49 -0
  598. package/dist/esm/core/dist/esm/utils/intl.mjs.map +1 -0
  599. package/dist/esm/core/dist/esm/utils/isValidReactElement.mjs +13 -0
  600. package/dist/esm/core/dist/esm/utils/isValidReactElement.mjs.map +1 -0
  601. package/dist/esm/core/package.mjs +6 -0
  602. package/dist/esm/core/package.mjs.map +1 -0
  603. package/dist/esm/core/src/deepTransformPlugins/processContentDeclarationContent.mjs +76 -0
  604. package/dist/esm/core/src/deepTransformPlugins/processContentDeclarationContent.mjs.map +1 -0
  605. package/dist/esm/createType/createModuleAugmentation.mjs +1 -2
  606. package/dist/esm/createType/createModuleAugmentation.mjs.map +1 -1
  607. package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs +1 -1
  608. package/dist/esm/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.mjs.map +1 -1
  609. package/dist/esm/index.mjs +1 -3
  610. package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs +12 -12
  611. package/dist/esm/loadDictionaries/loadRemoteDictionaries.mjs.map +1 -1
  612. package/dist/esm/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  613. package/dist/esm/remote-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  614. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  615. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  616. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/built.mjs +8 -0
  617. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/built.mjs.map +1 -0
  618. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
  619. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
  620. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
  621. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
  622. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
  623. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
  624. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
  625. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
  626. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
  627. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
  628. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
  629. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
  630. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
  631. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
  632. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
  633. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
  634. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
  635. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
  636. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
  637. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
  638. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
  639. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
  640. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
  641. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
  642. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
  643. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
  644. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
  645. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
  646. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
  647. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
  648. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
  649. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
  650. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs +45 -0
  651. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs.map +1 -0
  652. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
  653. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  654. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
  655. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
  656. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
  657. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
  658. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
  659. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
  660. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
  661. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
  662. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
  663. package/dist/esm/remote-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
  664. package/dist/esm/remote-dictionaries-entry/dist/esm/index.mjs +25 -0
  665. package/dist/esm/remote-dictionaries-entry/dist/esm/index.mjs.map +1 -0
  666. package/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
  667. package/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  668. package/dist/esm/types/dist/esm/locales.mjs +1128 -0
  669. package/dist/esm/types/dist/esm/locales.mjs.map +1 -0
  670. package/dist/esm/types/dist/esm/nodeType.mjs +24 -0
  671. package/dist/esm/types/dist/esm/nodeType.mjs.map +1 -0
  672. package/dist/esm/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  673. package/dist/esm/unmerged-dictionaries-entry/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  674. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs +11 -0
  675. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  676. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.mjs +8 -0
  677. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/built.mjs.map +1 -0
  678. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs +118 -0
  679. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -0
  680. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs +67 -0
  681. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/getConfiguration.mjs.map +1 -0
  682. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs +26 -0
  683. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/loadConfigurationFile.mjs.map +1 -0
  684. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs +50 -0
  685. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/configFile/searchConfigurationFile.mjs.map +1 -0
  686. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs +10 -0
  687. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/build.mjs.map +1 -0
  688. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs +40 -0
  689. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/content.mjs.map +1 -0
  690. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs +6 -0
  691. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/dictionary.mjs.map +1 -0
  692. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs +14 -0
  693. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/editor.mjs.map +1 -0
  694. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs +11 -0
  695. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/internationalization.mjs.map +1 -0
  696. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs +9 -0
  697. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/log.mjs.map +1 -0
  698. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs +8 -0
  699. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/defaultValues/routing.mjs.map +1 -0
  700. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs +24 -0
  701. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadEnvFile.mjs.map +1 -0
  702. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs +23 -0
  703. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/bundleFile.mjs.map +1 -0
  704. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs +47 -0
  705. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/loadExternalFile.mjs.map +1 -0
  706. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs +63 -0
  707. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/parseFileContent.mjs.map +1 -0
  708. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs +44 -0
  709. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/loadExternalFile/transpileTSToMJS.mjs.map +1 -0
  710. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs +45 -0
  711. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/logger.mjs.map +1 -0
  712. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs +14 -0
  713. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/_virtual/rolldown_runtime.mjs.map +1 -0
  714. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs +1128 -0
  715. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/types/dist/esm/locales.mjs.map +1 -0
  716. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs +25 -0
  717. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/ESMxCJSHelpers.mjs.map +1 -0
  718. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs +263 -0
  719. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/cache.mjs.map +1 -0
  720. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs +33 -0
  721. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/getPackageJsonPath.mjs.map +1 -0
  722. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs +16 -0
  723. package/dist/esm/unmerged-dictionaries-entry/dist/esm/config/dist/esm/utils/normalizePath.mjs.map +1 -0
  724. package/dist/esm/unmerged-dictionaries-entry/dist/esm/index.mjs +25 -0
  725. package/dist/esm/unmerged-dictionaries-entry/dist/esm/index.mjs.map +1 -0
  726. package/dist/esm/utils/camelCaseToSentence.mjs +10 -0
  727. package/dist/esm/utils/camelCaseToSentence.mjs.map +1 -0
  728. package/dist/esm/utils/cammelCaseToSentense.mjs +10 -0
  729. package/dist/esm/utils/cammelCaseToSentense.mjs.map +1 -0
  730. package/dist/esm/writeContentDeclaration/transformJSFile.mjs +47 -47
  731. package/dist/esm/writeContentDeclaration/transformJSFile.mjs.map +1 -1
  732. package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +9 -6
  733. package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs.map +1 -1
  734. package/dist/esm/writeContentDeclaration/writeJSFile.mjs +1 -0
  735. package/dist/esm/writeContentDeclaration/writeJSFile.mjs.map +1 -1
  736. package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -2
  737. package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +3 -3
  738. package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +3 -3
  739. package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +2 -2
  740. package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +8 -4
  741. package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
  742. package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +2 -1
  743. package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
  744. package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -2
  745. package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +2 -2
  746. package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
  747. package/dist/types/index.d.ts +1 -3
  748. package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +1 -1
  749. package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
  750. package/dist/types/processContentDeclarationContent.d.ts +13 -0
  751. package/dist/types/processContentDeclarationContent.d.ts.map +1 -0
  752. package/dist/types/utils/camelCaseToSentence.d.ts +5 -0
  753. package/dist/types/utils/camelCaseToSentence.d.ts.map +1 -0
  754. package/dist/types/utils/cammelCaseToSentense.d.ts +5 -0
  755. package/dist/types/utils/cammelCaseToSentense.d.ts.map +1 -0
  756. package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
  757. package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
  758. package/package.json +24 -21
@@ -0,0 +1,110 @@
1
+ const require_fetcher = require('../fetcher.cjs');
2
+ const require_built = require('../config/dist/esm/built.cjs');
3
+
4
+ //#region ../api/dist/esm/getIntlayerAPI/project.mjs
5
+ const getProjectAPI = (authAPIOptions = {}, intlayerConfig) => {
6
+ const backendURL = intlayerConfig?.editor?.backendURL ?? require_built.built_default?.editor?.backendURL;
7
+ if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
8
+ const PROJECT_API_ROUTE = `${backendURL}/api/project`;
9
+ /**
10
+ * Retrieves a list of projects based on filters and pagination.
11
+ * @param filters - Filters and pagination options.
12
+ */
13
+ const getProjects = async (filters, otherOptions = {}) => await require_fetcher.fetcher(PROJECT_API_ROUTE, authAPIOptions, otherOptions, {
14
+ cache: "no-store",
15
+ params: filters
16
+ });
17
+ /**
18
+ * Adds a new project to the database.
19
+ * @param project - Project data.
20
+ */
21
+ const addProject = async (project, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {
22
+ method: "POST",
23
+ body: project
24
+ });
25
+ /**
26
+ * Updates an existing project in the database.
27
+ * @param project - Updated project data.
28
+ */
29
+ const updateProject = async (project, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {
30
+ method: "PUT",
31
+ body: project
32
+ });
33
+ /**
34
+ * Updates project members in the database.
35
+ * @param project - Updated project data.
36
+ */
37
+ const updateProjectMembers = async (body, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}/members`, authAPIOptions, otherOptions, {
38
+ method: "PUT",
39
+ body
40
+ });
41
+ /** Pushes a project configuration to the database.
42
+ * @param projectConfiguration - Project configuration data.
43
+ */
44
+ const pushProjectConfiguration = async (projectConfiguration, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}/configuration`, authAPIOptions, otherOptions, {
45
+ method: "PUT",
46
+ body: projectConfiguration
47
+ });
48
+ /**
49
+ * Deletes a project from the database by its ID.
50
+ * @param id - Project ID.
51
+ */
52
+ const deleteProject = async (otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, { method: "DELETE" });
53
+ /**
54
+ * Select a project from the database by its ID.
55
+ * @param projectId - Organization ID.
56
+ */
57
+ const selectProject = async (projectId, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}/${String(projectId)}`, authAPIOptions, otherOptions, { method: "PUT" });
58
+ /**
59
+ * Unselect a project from the database by its ID.
60
+ * @param projectId - Project ID.
61
+ */
62
+ const unselectProject = async (otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}/logout`, authAPIOptions, otherOptions, { method: "POST" });
63
+ /**
64
+ * Add a new access key to a project.
65
+ * @param accessKey - Access key data.
66
+ * @param otherOptions - Fetcher options.
67
+ * @returns The new access key.
68
+ */
69
+ const addNewAccessKey = async (accessKey, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {
70
+ method: "POST",
71
+ body: accessKey
72
+ });
73
+ /**
74
+ * Delete a project access key.
75
+ * @param clientId - Access key client ID.
76
+ * @param otherOptions - Fetcher options.
77
+ * @returns The deleted project.
78
+ */
79
+ const deleteAccessKey = async (clientId, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {
80
+ method: "DELETE",
81
+ body: { clientId }
82
+ });
83
+ /**
84
+ * Refreshes an access key from a project.
85
+ * @param clientId - The ID of the client to refresh.
86
+ * @param projectId - The ID of the project to refresh the access key from.
87
+ * @returns The new access key.
88
+ */
89
+ const refreshAccessKey = async (clientId, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {
90
+ method: "PATCH",
91
+ body: { clientId }
92
+ });
93
+ return {
94
+ getProjects,
95
+ addProject,
96
+ updateProject,
97
+ updateProjectMembers,
98
+ pushProjectConfiguration,
99
+ deleteProject,
100
+ selectProject,
101
+ unselectProject,
102
+ addNewAccessKey,
103
+ deleteAccessKey,
104
+ refreshAccessKey
105
+ };
106
+ };
107
+
108
+ //#endregion
109
+ exports.getProjectAPI = getProjectAPI;
110
+ //# sourceMappingURL=project.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.cjs","names":["built_default","fetcher"],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/project.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/project.ts\nconst getProjectAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst PROJECT_API_ROUTE = `${backendURL}/api/project`;\n\t/**\n\t* Retrieves a list of projects based on filters and pagination.\n\t* @param filters - Filters and pagination options.\n\t*/\n\tconst getProjects = async (filters, otherOptions = {}) => await fetcher(PROJECT_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tcache: \"no-store\",\n\t\tparams: filters\n\t});\n\t/**\n\t* Adds a new project to the database.\n\t* @param project - Project data.\n\t*/\n\tconst addProject = async (project, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody: project\n\t});\n\t/**\n\t* Updates an existing project in the database.\n\t* @param project - Updated project data.\n\t*/\n\tconst updateProject = async (project, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody: project\n\t});\n\t/**\n\t* Updates project members in the database.\n\t* @param project - Updated project data.\n\t*/\n\tconst updateProjectMembers = async (body, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/members`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody\n\t});\n\t/** Pushes a project configuration to the database.\n\t* @param projectConfiguration - Project configuration data.\n\t*/\n\tconst pushProjectConfiguration = async (projectConfiguration, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/configuration`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody: projectConfiguration\n\t});\n\t/**\n\t* Deletes a project from the database by its ID.\n\t* @param id - Project ID.\n\t*/\n\tconst deleteProject = async (otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, { method: \"DELETE\" });\n\t/**\n\t* Select a project from the database by its ID.\n\t* @param projectId - Organization ID.\n\t*/\n\tconst selectProject = async (projectId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${String(projectId)}`, authAPIOptions, otherOptions, { method: \"PUT\" });\n\t/**\n\t* Unselect a project from the database by its ID.\n\t* @param projectId - Project ID.\n\t*/\n\tconst unselectProject = async (otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/logout`, authAPIOptions, otherOptions, { method: \"POST\" });\n\t/**\n\t* Add a new access key to a project.\n\t* @param accessKey - Access key data.\n\t* @param otherOptions - Fetcher options.\n\t* @returns The new access key.\n\t*/\n\tconst addNewAccessKey = async (accessKey, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody: accessKey\n\t});\n\t/**\n\t* Delete a project access key.\n\t* @param clientId - Access key client ID.\n\t* @param otherOptions - Fetcher options.\n\t* @returns The deleted project.\n\t*/\n\tconst deleteAccessKey = async (clientId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {\n\t\tmethod: \"DELETE\",\n\t\tbody: { clientId }\n\t});\n\t/**\n\t* Refreshes an access key from a project.\n\t* @param clientId - The ID of the client to refresh.\n\t* @param projectId - The ID of the project to refresh the access key from.\n\t* @returns The new access key.\n\t*/\n\tconst refreshAccessKey = async (clientId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/access_key`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PATCH\",\n\t\tbody: { clientId }\n\t});\n\treturn {\n\t\tgetProjects,\n\t\taddProject,\n\t\tupdateProject,\n\t\tupdateProjectMembers,\n\t\tpushProjectConfiguration,\n\t\tdeleteProject,\n\t\tselectProject,\n\t\tunselectProject,\n\t\taddNewAccessKey,\n\t\tdeleteAccessKey,\n\t\trefreshAccessKey\n\t};\n};\n\n//#endregion\nexport { getProjectAPI };\n//# sourceMappingURL=project.mjs.map"],"mappings":";;;;AAIA,MAAM,iBAAiB,iBAAiB,EAAE,EAAE,mBAAmB;CAC9D,MAAM,aAAa,gBAAgB,QAAQ,cAAcA,6BAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,oBAAoB,GAAG,WAAW;;;;;CAKxC,MAAM,cAAc,OAAO,SAAS,eAAe,EAAE,KAAK,MAAMC,wBAAQ,mBAAmB,gBAAgB,cAAc;EACxH,OAAO;EACP,QAAQ;EACR,CAAC;;;;;CAKF,MAAM,aAAa,OAAO,SAAS,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,qBAAqB,gBAAgB,cAAc;EAC5H,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,gBAAgB,OAAO,SAAS,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,qBAAqB,gBAAgB,cAAc;EAC/H,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,uBAAuB,OAAO,MAAM,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,kBAAkB,WAAW,gBAAgB,cAAc;EAC3I,QAAQ;EACR;EACA,CAAC;;;;CAIF,MAAM,2BAA2B,OAAO,sBAAsB,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,kBAAkB,iBAAiB,gBAAgB,cAAc;EACrK,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,gBAAgB,OAAO,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,qBAAqB,gBAAgB,cAAc,EAAE,QAAQ,UAAU,CAAC;;;;;CAK5I,MAAM,gBAAgB,OAAO,WAAW,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,kBAAkB,GAAG,OAAO,UAAU,IAAI,gBAAgB,cAAc,EAAE,QAAQ,OAAO,CAAC;;;;;CAKzK,MAAM,kBAAkB,OAAO,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,kBAAkB,UAAU,gBAAgB,cAAc,EAAE,QAAQ,QAAQ,CAAC;;;;;;;CAOnJ,MAAM,kBAAkB,OAAO,WAAW,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,kBAAkB,cAAc,gBAAgB,cAAc;EAC9I,QAAQ;EACR,MAAM;EACN,CAAC;;;;;;;CAOF,MAAM,kBAAkB,OAAO,UAAU,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,kBAAkB,cAAc,gBAAgB,cAAc;EAC7I,QAAQ;EACR,MAAM,EAAE,UAAU;EAClB,CAAC;;;;;;;CAOF,MAAM,mBAAmB,OAAO,UAAU,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,kBAAkB,cAAc,gBAAgB,cAAc;EAC9I,QAAQ;EACR,MAAM,EAAE,UAAU;EAClB,CAAC;AACF,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
@@ -0,0 +1,23 @@
1
+ const require_fetcher = require('../fetcher.cjs');
2
+ const require_built = require('../config/dist/esm/built.cjs');
3
+
4
+ //#region ../api/dist/esm/getIntlayerAPI/search.mjs
5
+ const getSearchAPI = (authAPIOptions = {}, intlayerConfig) => {
6
+ const backendURL = intlayerConfig?.editor?.backendURL ?? require_built.built_default?.editor?.backendURL;
7
+ if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
8
+ const AI_API_ROUTE = `${backendURL}/api/search`;
9
+ /**
10
+ * Search documentation
11
+ * @param params - Search parameters containing the input query.
12
+ * @returns Search results with GitHub URLs.
13
+ */
14
+ const searchDoc = async (params, otherOptions = {}) => await require_fetcher.fetcher(`${AI_API_ROUTE}/doc`, authAPIOptions, otherOptions, {
15
+ method: "GET",
16
+ params
17
+ });
18
+ return { searchDoc };
19
+ };
20
+
21
+ //#endregion
22
+ exports.getSearchAPI = getSearchAPI;
23
+ //# sourceMappingURL=search.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.cjs","names":["built_default","fetcher"],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/search.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/search.ts\nconst getSearchAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst AI_API_ROUTE = `${backendURL}/api/search`;\n\t/**\n\t* Search documentation\n\t* @param params - Search parameters containing the input query.\n\t* @returns Search results with GitHub URLs.\n\t*/\n\tconst searchDoc = async (params, otherOptions = {}) => await fetcher(`${AI_API_ROUTE}/doc`, authAPIOptions, otherOptions, {\n\t\tmethod: \"GET\",\n\t\tparams\n\t});\n\treturn { searchDoc };\n};\n\n//#endregion\nexport { getSearchAPI };\n//# sourceMappingURL=search.mjs.map"],"mappings":";;;;AAIA,MAAM,gBAAgB,iBAAiB,EAAE,EAAE,mBAAmB;CAC7D,MAAM,aAAa,gBAAgB,QAAQ,cAAcA,6BAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,eAAe,GAAG,WAAW;;;;;;CAMnC,MAAM,YAAY,OAAO,QAAQ,eAAe,EAAE,KAAK,MAAMC,wBAAQ,GAAG,aAAa,OAAO,gBAAgB,cAAc;EACzH,QAAQ;EACR;EACA,CAAC;AACF,QAAO,EAAE,WAAW"}
@@ -0,0 +1,39 @@
1
+ const require_fetcher = require('../fetcher.cjs');
2
+ const require_built = require('../config/dist/esm/built.cjs');
3
+
4
+ //#region ../api/dist/esm/getIntlayerAPI/stripe.mjs
5
+ const getStripeAPI = (authAPIOptions = {}, intlayerConfig) => {
6
+ const backendURL = intlayerConfig?.editor?.backendURL ?? require_built.built_default?.editor?.backendURL;
7
+ if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
8
+ const STRIPE_API_ROUTE = `${backendURL}/api/stripe`;
9
+ /**
10
+ * Get a pricing plan calculated for a given promotion code.
11
+ * @param body - Pricing plan body.
12
+ */
13
+ const getPricing = async (body, otherOptions = {}) => await require_fetcher.fetcher(`${STRIPE_API_ROUTE}/pricing`, authAPIOptions, otherOptions, {
14
+ method: "POST",
15
+ body
16
+ });
17
+ /**
18
+ * Retrieves a checkout session.
19
+ * @param body - Checkout session body.
20
+ */
21
+ const getSubscription = async (body, otherOptions = {}) => await require_fetcher.fetcher(`${STRIPE_API_ROUTE}/create-subscription`, authAPIOptions, otherOptions, {
22
+ method: "POST",
23
+ body
24
+ });
25
+ /**
26
+ * Cancels a subscription.
27
+ * @param body - Checkout session body.
28
+ */
29
+ const cancelSubscription = async (otherOptions = {}) => await require_fetcher.fetcher(`${STRIPE_API_ROUTE}/cancel-subscription`, authAPIOptions, otherOptions, { method: "POST" });
30
+ return {
31
+ getPricing,
32
+ getSubscription,
33
+ cancelSubscription
34
+ };
35
+ };
36
+
37
+ //#endregion
38
+ exports.getStripeAPI = getStripeAPI;
39
+ //# sourceMappingURL=stripe.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stripe.cjs","names":["built_default","fetcher"],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/stripe.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/stripe.ts\nconst getStripeAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst STRIPE_API_ROUTE = `${backendURL}/api/stripe`;\n\t/**\n\t* Get a pricing plan calculated for a given promotion code.\n\t* @param body - Pricing plan body.\n\t*/\n\tconst getPricing = async (body, otherOptions = {}) => await fetcher(`${STRIPE_API_ROUTE}/pricing`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Retrieves a checkout session.\n\t* @param body - Checkout session body.\n\t*/\n\tconst getSubscription = async (body, otherOptions = {}) => await fetcher(`${STRIPE_API_ROUTE}/create-subscription`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody\n\t});\n\t/**\n\t* Cancels a subscription.\n\t* @param body - Checkout session body.\n\t*/\n\tconst cancelSubscription = async (otherOptions = {}) => await fetcher(`${STRIPE_API_ROUTE}/cancel-subscription`, authAPIOptions, otherOptions, { method: \"POST\" });\n\treturn {\n\t\tgetPricing,\n\t\tgetSubscription,\n\t\tcancelSubscription\n\t};\n};\n\n//#endregion\nexport { getStripeAPI };\n//# sourceMappingURL=stripe.mjs.map"],"mappings":";;;;AAIA,MAAM,gBAAgB,iBAAiB,EAAE,EAAE,mBAAmB;CAC7D,MAAM,aAAa,gBAAgB,QAAQ,cAAcA,6BAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,mBAAmB,GAAG,WAAW;;;;;CAKvC,MAAM,aAAa,OAAO,MAAM,eAAe,EAAE,KAAK,MAAMC,wBAAQ,GAAG,iBAAiB,WAAW,gBAAgB,cAAc;EAChI,QAAQ;EACR;EACA,CAAC;;;;;CAKF,MAAM,kBAAkB,OAAO,MAAM,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,iBAAiB,uBAAuB,gBAAgB,cAAc;EACjJ,QAAQ;EACR;EACA,CAAC;;;;;CAKF,MAAM,qBAAqB,OAAO,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,iBAAiB,uBAAuB,gBAAgB,cAAc,EAAE,QAAQ,QAAQ,CAAC;AAClK,QAAO;EACN;EACA;EACA;EACA"}
@@ -0,0 +1,48 @@
1
+ const require_fetcher = require('../fetcher.cjs');
2
+ const require_built = require('../config/dist/esm/built.cjs');
3
+
4
+ //#region ../api/dist/esm/getIntlayerAPI/tag.mjs
5
+ const getTagAPI = (authAPIOptions = {}, intlayerConfig) => {
6
+ const backendURL = intlayerConfig?.editor?.backendURL ?? require_built.built_default?.editor?.backendURL;
7
+ if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
8
+ const PROJECT_API_ROUTE = `${backendURL}/api/tag`;
9
+ /**
10
+ * Retrieves a list of tags based on filters and pagination.
11
+ * @param filters - Filters and pagination options.
12
+ */
13
+ const getTags = async (filters, otherOptions = {}) => await require_fetcher.fetcher(PROJECT_API_ROUTE, authAPIOptions, otherOptions, {
14
+ cache: "no-store",
15
+ params: filters
16
+ });
17
+ /**
18
+ * Adds a new tag to the database.
19
+ * @param tag - Tag data.
20
+ */
21
+ const addTag = async (tag, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {
22
+ method: "POST",
23
+ body: tag
24
+ });
25
+ /**
26
+ * Updates an existing tag in the database.
27
+ * @param tag - Updated tag data.
28
+ */
29
+ const updateTag = async (tagId, tag, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}/${tagId}`, authAPIOptions, otherOptions, {
30
+ method: "PUT",
31
+ body: tag
32
+ });
33
+ /**
34
+ * Deletes a tag from the database by its ID.
35
+ * @param tagId - Tag ID.
36
+ */
37
+ const deleteTag = async (tagId, otherOptions = {}) => await require_fetcher.fetcher(`${PROJECT_API_ROUTE}/${tagId}`, authAPIOptions, otherOptions, { method: "DELETE" });
38
+ return {
39
+ getTags,
40
+ addTag,
41
+ updateTag,
42
+ deleteTag
43
+ };
44
+ };
45
+
46
+ //#endregion
47
+ exports.getTagAPI = getTagAPI;
48
+ //# sourceMappingURL=tag.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.cjs","names":["built_default","fetcher"],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/tag.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/tag.ts\nconst getTagAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst PROJECT_API_ROUTE = `${backendURL}/api/tag`;\n\t/**\n\t* Retrieves a list of tags based on filters and pagination.\n\t* @param filters - Filters and pagination options.\n\t*/\n\tconst getTags = async (filters, otherOptions = {}) => await fetcher(PROJECT_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tcache: \"no-store\",\n\t\tparams: filters\n\t});\n\t/**\n\t* Adds a new tag to the database.\n\t* @param tag - Tag data.\n\t*/\n\tconst addTag = async (tag, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody: tag\n\t});\n\t/**\n\t* Updates an existing tag in the database.\n\t* @param tag - Updated tag data.\n\t*/\n\tconst updateTag = async (tagId, tag, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${tagId}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody: tag\n\t});\n\t/**\n\t* Deletes a tag from the database by its ID.\n\t* @param tagId - Tag ID.\n\t*/\n\tconst deleteTag = async (tagId, otherOptions = {}) => await fetcher(`${PROJECT_API_ROUTE}/${tagId}`, authAPIOptions, otherOptions, { method: \"DELETE\" });\n\treturn {\n\t\tgetTags,\n\t\taddTag,\n\t\tupdateTag,\n\t\tdeleteTag\n\t};\n};\n\n//#endregion\nexport { getTagAPI };\n//# sourceMappingURL=tag.mjs.map"],"mappings":";;;;AAIA,MAAM,aAAa,iBAAiB,EAAE,EAAE,mBAAmB;CAC1D,MAAM,aAAa,gBAAgB,QAAQ,cAAcA,6BAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,oBAAoB,GAAG,WAAW;;;;;CAKxC,MAAM,UAAU,OAAO,SAAS,eAAe,EAAE,KAAK,MAAMC,wBAAQ,mBAAmB,gBAAgB,cAAc;EACpH,OAAO;EACP,QAAQ;EACR,CAAC;;;;;CAKF,MAAM,SAAS,OAAO,KAAK,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,qBAAqB,gBAAgB,cAAc;EACpH,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,YAAY,OAAO,OAAO,KAAK,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,kBAAkB,GAAG,SAAS,gBAAgB,cAAc;EACvI,QAAQ;EACR,MAAM;EACN,CAAC;;;;;CAKF,MAAM,YAAY,OAAO,OAAO,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,kBAAkB,GAAG,SAAS,gBAAgB,cAAc,EAAE,QAAQ,UAAU,CAAC;AACxJ,QAAO;EACN;EACA;EACA;EACA;EACA"}
@@ -0,0 +1,80 @@
1
+ const require_fetcher = require('../fetcher.cjs');
2
+ const require_built = require('../config/dist/esm/built.cjs');
3
+
4
+ //#region ../api/dist/esm/getIntlayerAPI/user.mjs
5
+ const getUserAPI = (authAPIOptions = {}, intlayerConfig) => {
6
+ const backendURL = intlayerConfig?.editor?.backendURL ?? require_built.built_default?.editor?.backendURL;
7
+ if (!backendURL) throw new Error("Backend URL is not defined in the Intlayer configuration.");
8
+ const USER_API_ROUTE = `${backendURL}/api/user`;
9
+ /**
10
+ * Retrieves a list of users based on filters and pagination.
11
+ * @param filters - Filters and pagination options.
12
+ * @returns List of users.
13
+ */
14
+ const getUsers = async (filters, otherOptions = {}) => await require_fetcher.fetcher(USER_API_ROUTE, authAPIOptions, otherOptions, {
15
+ cache: "no-store",
16
+ params: filters
17
+ });
18
+ /**
19
+ * Retrieves a user by ID.
20
+ * @param userId - User ID.
21
+ * @returns User object.
22
+ */
23
+ const getUserById = async (userId, otherOptions = {}) => await require_fetcher.fetcher(`${USER_API_ROUTE}/${userId}`, authAPIOptions, otherOptions, { cache: "no-store" });
24
+ /**
25
+ * Retrieves a user by email.
26
+ * @param email - User email.
27
+ * @returns User object.
28
+ */
29
+ const getUserByEmail = async (email, otherOptions = {}) => await require_fetcher.fetcher(`${USER_API_ROUTE}/email/${email}`, authAPIOptions, otherOptions, { cache: "no-store" });
30
+ /**
31
+ * Retrieves a user by account.
32
+ * @param providerAccountId - The provider account ID.
33
+ * @param provider - The provider of the account.
34
+ */
35
+ const getUserByAccount = async (providerAccountId, provider, otherOptions = {}) => await require_fetcher.fetcher(`${USER_API_ROUTE}/account/${provider}/${providerAccountId}`, authAPIOptions, otherOptions, { cache: "no-store" });
36
+ /**
37
+ * Creates a new user.
38
+ * @param user - User credentials.
39
+ * @returns User object.
40
+ */
41
+ const createUser = async (user, otherOptions = {}) => await require_fetcher.fetcher(`${USER_API_ROUTE}/`, authAPIOptions, otherOptions, {
42
+ method: "POST",
43
+ body: user
44
+ });
45
+ /**
46
+ * Updates the user with the provided data.
47
+ * @param user - Updated user data.
48
+ * @returns User object.
49
+ */
50
+ const updateUser = async (user, otherOptions = {}) => await require_fetcher.fetcher(`${USER_API_ROUTE}`, authAPIOptions, otherOptions, {
51
+ method: "PUT",
52
+ body: user
53
+ });
54
+ /**
55
+ * Deletes a user with the provided ID.
56
+ * @param userId - User ID.
57
+ * @returns User object.
58
+ */
59
+ const deleteUser = async (userId, otherOptions = {}) => await require_fetcher.fetcher(`${USER_API_ROUTE}/${userId}`, authAPIOptions, otherOptions, { method: "DELETE" });
60
+ /**
61
+ * Gets the verify email status URL to use in the SSE.
62
+ * @param userId - User ID.
63
+ * @returns The verify email status URL.
64
+ */
65
+ const getVerifyEmailStatusURL = (userId) => `${USER_API_ROUTE}/verify-email-status/${String(userId)}`;
66
+ return {
67
+ createUser,
68
+ getUsers,
69
+ getUserById,
70
+ getUserByAccount,
71
+ getUserByEmail,
72
+ updateUser,
73
+ deleteUser,
74
+ getVerifyEmailStatusURL
75
+ };
76
+ };
77
+
78
+ //#endregion
79
+ exports.getUserAPI = getUserAPI;
80
+ //# sourceMappingURL=user.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.cjs","names":["built_default","fetcher"],"sources":["../../../../../../../api/dist/esm/getIntlayerAPI/user.mjs"],"sourcesContent":["import { fetcher } from \"../fetcher.mjs\";\nimport { built_default } from \"../config/dist/esm/built.mjs\";\n\n//#region src/getIntlayerAPI/user.ts\nconst getUserAPI = (authAPIOptions = {}, intlayerConfig) => {\n\tconst backendURL = intlayerConfig?.editor?.backendURL ?? built_default?.editor?.backendURL;\n\tif (!backendURL) throw new Error(\"Backend URL is not defined in the Intlayer configuration.\");\n\tconst USER_API_ROUTE = `${backendURL}/api/user`;\n\t/**\n\t* Retrieves a list of users based on filters and pagination.\n\t* @param filters - Filters and pagination options.\n\t* @returns List of users.\n\t*/\n\tconst getUsers = async (filters, otherOptions = {}) => await fetcher(USER_API_ROUTE, authAPIOptions, otherOptions, {\n\t\tcache: \"no-store\",\n\t\tparams: filters\n\t});\n\t/**\n\t* Retrieves a user by ID.\n\t* @param userId - User ID.\n\t* @returns User object.\n\t*/\n\tconst getUserById = async (userId, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/${userId}`, authAPIOptions, otherOptions, { cache: \"no-store\" });\n\t/**\n\t* Retrieves a user by email.\n\t* @param email - User email.\n\t* @returns User object.\n\t*/\n\tconst getUserByEmail = async (email, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/email/${email}`, authAPIOptions, otherOptions, { cache: \"no-store\" });\n\t/**\n\t* Retrieves a user by account.\n\t* @param providerAccountId - The provider account ID.\n\t* @param provider - The provider of the account.\n\t*/\n\tconst getUserByAccount = async (providerAccountId, provider, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/account/${provider}/${providerAccountId}`, authAPIOptions, otherOptions, { cache: \"no-store\" });\n\t/**\n\t* Creates a new user.\n\t* @param user - User credentials.\n\t* @returns User object.\n\t*/\n\tconst createUser = async (user, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/`, authAPIOptions, otherOptions, {\n\t\tmethod: \"POST\",\n\t\tbody: user\n\t});\n\t/**\n\t* Updates the user with the provided data.\n\t* @param user - Updated user data.\n\t* @returns User object.\n\t*/\n\tconst updateUser = async (user, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}`, authAPIOptions, otherOptions, {\n\t\tmethod: \"PUT\",\n\t\tbody: user\n\t});\n\t/**\n\t* Deletes a user with the provided ID.\n\t* @param userId - User ID.\n\t* @returns User object.\n\t*/\n\tconst deleteUser = async (userId, otherOptions = {}) => await fetcher(`${USER_API_ROUTE}/${userId}`, authAPIOptions, otherOptions, { method: \"DELETE\" });\n\t/**\n\t* Gets the verify email status URL to use in the SSE.\n\t* @param userId - User ID.\n\t* @returns The verify email status URL.\n\t*/\n\tconst getVerifyEmailStatusURL = (userId) => `${USER_API_ROUTE}/verify-email-status/${String(userId)}`;\n\treturn {\n\t\tcreateUser,\n\t\tgetUsers,\n\t\tgetUserById,\n\t\tgetUserByAccount,\n\t\tgetUserByEmail,\n\t\tupdateUser,\n\t\tdeleteUser,\n\t\tgetVerifyEmailStatusURL\n\t};\n};\n\n//#endregion\nexport { getUserAPI };\n//# sourceMappingURL=user.mjs.map"],"mappings":";;;;AAIA,MAAM,cAAc,iBAAiB,EAAE,EAAE,mBAAmB;CAC3D,MAAM,aAAa,gBAAgB,QAAQ,cAAcA,6BAAe,QAAQ;AAChF,KAAI,CAAC,WAAY,OAAM,IAAI,MAAM,4DAA4D;CAC7F,MAAM,iBAAiB,GAAG,WAAW;;;;;;CAMrC,MAAM,WAAW,OAAO,SAAS,eAAe,EAAE,KAAK,MAAMC,wBAAQ,gBAAgB,gBAAgB,cAAc;EAClH,OAAO;EACP,QAAQ;EACR,CAAC;;;;;;CAMF,MAAM,cAAc,OAAO,QAAQ,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,eAAe,GAAG,UAAU,gBAAgB,cAAc,EAAE,OAAO,YAAY,CAAC;;;;;;CAM1J,MAAM,iBAAiB,OAAO,OAAO,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,eAAe,SAAS,SAAS,gBAAgB,cAAc,EAAE,OAAO,YAAY,CAAC;;;;;;CAMjK,MAAM,mBAAmB,OAAO,mBAAmB,UAAU,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,eAAe,WAAW,SAAS,GAAG,qBAAqB,gBAAgB,cAAc,EAAE,OAAO,YAAY,CAAC;;;;;;CAMnN,MAAM,aAAa,OAAO,MAAM,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,eAAe,IAAI,gBAAgB,cAAc;EACvH,QAAQ;EACR,MAAM;EACN,CAAC;;;;;;CAMF,MAAM,aAAa,OAAO,MAAM,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,kBAAkB,gBAAgB,cAAc;EACtH,QAAQ;EACR,MAAM;EACN,CAAC;;;;;;CAMF,MAAM,aAAa,OAAO,QAAQ,eAAe,EAAE,KAAK,MAAMA,wBAAQ,GAAG,eAAe,GAAG,UAAU,gBAAgB,cAAc,EAAE,QAAQ,UAAU,CAAC;;;;;;CAMxJ,MAAM,2BAA2B,WAAW,GAAG,eAAe,uBAAuB,OAAO,OAAO;AACnG,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
@@ -0,0 +1,100 @@
1
+ const require_oAuth = require('./getIntlayerAPI/oAuth.cjs');
2
+ const require_index = require('./getIntlayerAPI/index.cjs');
3
+
4
+ //#region ../api/dist/esm/proxy.mjs
5
+ const ONE_MINUTE_MS = 6e4;
6
+ /**
7
+ * Returns the expiration timestamp in ms from an OAuth token-like object.
8
+ */
9
+ const getExpiryTimestamp = (token) => {
10
+ if (!token) return void 0;
11
+ const dateLike = token.accessTokenExpiresAt ?? token.expiresAt;
12
+ if (dateLike) {
13
+ const ts = typeof dateLike === "string" ? Date.parse(dateLike) : dateLike.getTime?.();
14
+ if (typeof ts === "number" && Number.isFinite(ts)) return ts;
15
+ }
16
+ const seconds = token.expires_in ?? token.expiresIn;
17
+ if (typeof seconds === "number" && Number.isFinite(seconds)) return Date.now() + seconds * 1e3;
18
+ };
19
+ let currentAccessToken;
20
+ let currentExpiryTs;
21
+ let pendingRefresh;
22
+ /**
23
+ * Build an auto-auth proxy around getIntlayerAPI that:
24
+ * - Fetches an OAuth2 token when needed
25
+ * - Injects Authorization header for each request
26
+ * - Refreshes token proactively when near expiry
27
+ *
28
+ * The returned API matches the shape of getIntlayerAPI.
29
+ */
30
+ const getIntlayerAPIProxy = (_baseAuthOptions = {}, intlayerConfig) => {
31
+ const authOptionsRef = { ..._baseAuthOptions };
32
+ const hasCMSAuth = intlayerConfig?.editor?.clientId && intlayerConfig?.editor?.clientSecret;
33
+ const baseApi = require_index.getIntlayerAPI(authOptionsRef, intlayerConfig);
34
+ const needsRefresh = () => {
35
+ if (!currentAccessToken) return true;
36
+ if (!currentExpiryTs) return false;
37
+ return Date.now() + ONE_MINUTE_MS >= currentExpiryTs;
38
+ };
39
+ const refreshToken = async () => {
40
+ const doRefresh = async () => {
41
+ const tokenData = (await require_oAuth.getOAuthAPI(intlayerConfig).getOAuth2AccessToken())?.data;
42
+ currentAccessToken = tokenData?.accessToken;
43
+ currentExpiryTs = getExpiryTimestamp(tokenData);
44
+ };
45
+ if (!pendingRefresh) pendingRefresh = doRefresh().finally(() => {
46
+ pendingRefresh = void 0;
47
+ });
48
+ await pendingRefresh;
49
+ };
50
+ const ensureValidToken = async () => {
51
+ if (needsRefresh()) await refreshToken();
52
+ };
53
+ const applyAuthHeaderToRef = () => {
54
+ if (!currentAccessToken) return;
55
+ authOptionsRef.headers = {
56
+ ...authOptionsRef.headers ?? {},
57
+ Authorization: `Bearer ${currentAccessToken}`
58
+ };
59
+ };
60
+ const wrapSection = (section, skipAuth = !hasCMSAuth) => {
61
+ return new Proxy(section, { get(target, prop, receiver) {
62
+ const value = Reflect.get(target, prop, receiver);
63
+ if (typeof value === "function") return async (...args) => {
64
+ if (!skipAuth) {
65
+ await ensureValidToken();
66
+ applyAuthHeaderToRef();
67
+ }
68
+ try {
69
+ return await value.apply(target, args);
70
+ } catch (err) {
71
+ if (!skipAuth) {
72
+ await refreshToken();
73
+ applyAuthHeaderToRef();
74
+ return await value.apply(target, args);
75
+ }
76
+ throw err;
77
+ }
78
+ };
79
+ return value;
80
+ } });
81
+ };
82
+ return {
83
+ organization: wrapSection(baseApi.organization),
84
+ project: wrapSection(baseApi.project),
85
+ user: wrapSection(baseApi.user),
86
+ oAuth: wrapSection(baseApi.oAuth, true),
87
+ dictionary: wrapSection(baseApi.dictionary),
88
+ stripe: wrapSection(baseApi.stripe),
89
+ ai: wrapSection(baseApi.ai),
90
+ tag: wrapSection(baseApi.tag),
91
+ search: wrapSection(baseApi.search),
92
+ editor: wrapSection(baseApi.editor),
93
+ newsletter: wrapSection(baseApi.newsletter),
94
+ audit: wrapSection(baseApi.audit)
95
+ };
96
+ };
97
+
98
+ //#endregion
99
+ exports.getIntlayerAPIProxy = getIntlayerAPIProxy;
100
+ //# sourceMappingURL=proxy.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"proxy.cjs","names":["getIntlayerAPI","getOAuthAPI"],"sources":["../../../../../../api/dist/esm/proxy.mjs"],"sourcesContent":["import { getOAuthAPI } from \"./getIntlayerAPI/oAuth.mjs\";\nimport { getIntlayerAPI } from \"./getIntlayerAPI/index.mjs\";\n\n//#region src/proxy.ts\nconst ONE_MINUTE_MS = 6e4;\n/**\n* Returns the expiration timestamp in ms from an OAuth token-like object.\n*/\nconst getExpiryTimestamp = (token) => {\n\tif (!token) return void 0;\n\tconst dateLike = token.accessTokenExpiresAt ?? token.expiresAt;\n\tif (dateLike) {\n\t\tconst ts = typeof dateLike === \"string\" ? Date.parse(dateLike) : dateLike.getTime?.();\n\t\tif (typeof ts === \"number\" && Number.isFinite(ts)) return ts;\n\t}\n\tconst seconds = token.expires_in ?? token.expiresIn;\n\tif (typeof seconds === \"number\" && Number.isFinite(seconds)) return Date.now() + seconds * 1e3;\n};\nlet currentAccessToken;\nlet currentExpiryTs;\nlet pendingRefresh;\n/**\n* Build an auto-auth proxy around getIntlayerAPI that:\n* - Fetches an OAuth2 token when needed\n* - Injects Authorization header for each request\n* - Refreshes token proactively when near expiry\n*\n* The returned API matches the shape of getIntlayerAPI.\n*/\nconst getIntlayerAPIProxy = (_baseAuthOptions = {}, intlayerConfig) => {\n\tconst authOptionsRef = { ..._baseAuthOptions };\n\tconst hasCMSAuth = intlayerConfig?.editor?.clientId && intlayerConfig?.editor?.clientSecret;\n\tconst baseApi = getIntlayerAPI(authOptionsRef, intlayerConfig);\n\tconst needsRefresh = () => {\n\t\tif (!currentAccessToken) return true;\n\t\tif (!currentExpiryTs) return false;\n\t\treturn Date.now() + ONE_MINUTE_MS >= currentExpiryTs;\n\t};\n\tconst refreshToken = async () => {\n\t\tconst doRefresh = async () => {\n\t\t\tconst tokenData = (await getOAuthAPI(intlayerConfig).getOAuth2AccessToken())?.data;\n\t\t\tcurrentAccessToken = tokenData?.accessToken;\n\t\t\tcurrentExpiryTs = getExpiryTimestamp(tokenData);\n\t\t};\n\t\tif (!pendingRefresh) pendingRefresh = doRefresh().finally(() => {\n\t\t\tpendingRefresh = void 0;\n\t\t});\n\t\tawait pendingRefresh;\n\t};\n\tconst ensureValidToken = async () => {\n\t\tif (needsRefresh()) await refreshToken();\n\t};\n\tconst applyAuthHeaderToRef = () => {\n\t\tif (!currentAccessToken) return;\n\t\tauthOptionsRef.headers = {\n\t\t\t...authOptionsRef.headers ?? {},\n\t\t\tAuthorization: `Bearer ${currentAccessToken}`\n\t\t};\n\t};\n\tconst wrapSection = (section, skipAuth = !hasCMSAuth) => {\n\t\treturn new Proxy(section, { get(target, prop, receiver) {\n\t\t\tconst value = Reflect.get(target, prop, receiver);\n\t\t\tif (typeof value === \"function\") return async (...args) => {\n\t\t\t\tif (!skipAuth) {\n\t\t\t\t\tawait ensureValidToken();\n\t\t\t\t\tapplyAuthHeaderToRef();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\treturn await value.apply(target, args);\n\t\t\t\t} catch (err) {\n\t\t\t\t\tif (!skipAuth) {\n\t\t\t\t\t\tawait refreshToken();\n\t\t\t\t\t\tapplyAuthHeaderToRef();\n\t\t\t\t\t\treturn await value.apply(target, args);\n\t\t\t\t\t}\n\t\t\t\t\tthrow err;\n\t\t\t\t}\n\t\t\t};\n\t\t\treturn value;\n\t\t} });\n\t};\n\treturn {\n\t\torganization: wrapSection(baseApi.organization),\n\t\tproject: wrapSection(baseApi.project),\n\t\tuser: wrapSection(baseApi.user),\n\t\toAuth: wrapSection(baseApi.oAuth, true),\n\t\tdictionary: wrapSection(baseApi.dictionary),\n\t\tstripe: wrapSection(baseApi.stripe),\n\t\tai: wrapSection(baseApi.ai),\n\t\ttag: wrapSection(baseApi.tag),\n\t\tsearch: wrapSection(baseApi.search),\n\t\teditor: wrapSection(baseApi.editor),\n\t\tnewsletter: wrapSection(baseApi.newsletter),\n\t\taudit: wrapSection(baseApi.audit)\n\t};\n};\n\n//#endregion\nexport { getIntlayerAPIProxy };\n//# sourceMappingURL=proxy.mjs.map"],"mappings":";;;;AAIA,MAAM,gBAAgB;;;;AAItB,MAAM,sBAAsB,UAAU;AACrC,KAAI,CAAC,MAAO,QAAO,KAAK;CACxB,MAAM,WAAW,MAAM,wBAAwB,MAAM;AACrD,KAAI,UAAU;EACb,MAAM,KAAK,OAAO,aAAa,WAAW,KAAK,MAAM,SAAS,GAAG,SAAS,WAAW;AACrF,MAAI,OAAO,OAAO,YAAY,OAAO,SAAS,GAAG,CAAE,QAAO;;CAE3D,MAAM,UAAU,MAAM,cAAc,MAAM;AAC1C,KAAI,OAAO,YAAY,YAAY,OAAO,SAAS,QAAQ,CAAE,QAAO,KAAK,KAAK,GAAG,UAAU;;AAE5F,IAAI;AACJ,IAAI;AACJ,IAAI;;;;;;;;;AASJ,MAAM,uBAAuB,mBAAmB,EAAE,EAAE,mBAAmB;CACtE,MAAM,iBAAiB,EAAE,GAAG,kBAAkB;CAC9C,MAAM,aAAa,gBAAgB,QAAQ,YAAY,gBAAgB,QAAQ;CAC/E,MAAM,UAAUA,6BAAe,gBAAgB,eAAe;CAC9D,MAAM,qBAAqB;AAC1B,MAAI,CAAC,mBAAoB,QAAO;AAChC,MAAI,CAAC,gBAAiB,QAAO;AAC7B,SAAO,KAAK,KAAK,GAAG,iBAAiB;;CAEtC,MAAM,eAAe,YAAY;EAChC,MAAM,YAAY,YAAY;GAC7B,MAAM,aAAa,MAAMC,0BAAY,eAAe,CAAC,sBAAsB,GAAG;AAC9E,wBAAqB,WAAW;AAChC,qBAAkB,mBAAmB,UAAU;;AAEhD,MAAI,CAAC,eAAgB,kBAAiB,WAAW,CAAC,cAAc;AAC/D,oBAAiB,KAAK;IACrB;AACF,QAAM;;CAEP,MAAM,mBAAmB,YAAY;AACpC,MAAI,cAAc,CAAE,OAAM,cAAc;;CAEzC,MAAM,6BAA6B;AAClC,MAAI,CAAC,mBAAoB;AACzB,iBAAe,UAAU;GACxB,GAAG,eAAe,WAAW,EAAE;GAC/B,eAAe,UAAU;GACzB;;CAEF,MAAM,eAAe,SAAS,WAAW,CAAC,eAAe;AACxD,SAAO,IAAI,MAAM,SAAS,EAAE,IAAI,QAAQ,MAAM,UAAU;GACvD,MAAM,QAAQ,QAAQ,IAAI,QAAQ,MAAM,SAAS;AACjD,OAAI,OAAO,UAAU,WAAY,QAAO,OAAO,GAAG,SAAS;AAC1D,QAAI,CAAC,UAAU;AACd,WAAM,kBAAkB;AACxB,2BAAsB;;AAEvB,QAAI;AACH,YAAO,MAAM,MAAM,MAAM,QAAQ,KAAK;aAC9B,KAAK;AACb,SAAI,CAAC,UAAU;AACd,YAAM,cAAc;AACpB,4BAAsB;AACtB,aAAO,MAAM,MAAM,MAAM,QAAQ,KAAK;;AAEvC,WAAM;;;AAGR,UAAO;KACL,CAAC;;AAEL,QAAO;EACN,cAAc,YAAY,QAAQ,aAAa;EAC/C,SAAS,YAAY,QAAQ,QAAQ;EACrC,MAAM,YAAY,QAAQ,KAAK;EAC/B,OAAO,YAAY,QAAQ,OAAO,KAAK;EACvC,YAAY,YAAY,QAAQ,WAAW;EAC3C,QAAQ,YAAY,QAAQ,OAAO;EACnC,IAAI,YAAY,QAAQ,GAAG;EAC3B,KAAK,YAAY,QAAQ,IAAI;EAC7B,QAAQ,YAAY,QAAQ,OAAO;EACnC,QAAQ,YAAY,QAAQ,OAAO;EACnC,YAAY,YAAY,QAAQ,WAAW;EAC3C,OAAO,YAAY,QAAQ,MAAM;EACjC"}
@@ -2,9 +2,11 @@ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
2
  const require_utils_parallelize = require('../utils/parallelize.cjs');
3
3
  const require_filterInvalidDictionaries = require('../filterInvalidDictionaries.cjs');
4
4
  const require_writeJsonIfChanged = require('../writeJsonIfChanged.cjs');
5
+ const require_buildIntlayerDictionary_writeUnmergedDictionary = require('./writeUnmergedDictionary.cjs');
5
6
  const require_loadDictionaries_loadRemoteDictionaries = require('../loadDictionaries/loadRemoteDictionaries.cjs');
6
7
  let __intlayer_config = require("@intlayer/config");
7
8
  let node_path = require("node:path");
9
+ let __intlayer_core = require("@intlayer/core");
8
10
  let node_fs_promises = require("node:fs/promises");
9
11
 
10
12
  //#region src/buildIntlayerDictionary/writeRemoteDictionary.ts
@@ -27,13 +29,20 @@ let node_fs_promises = require("node:fs/promises");
27
29
  const writeRemoteDictionary = async (remoteDictionaries, configuration = (0, __intlayer_config.getConfiguration)()) => {
28
30
  const { remoteDictionariesDir } = configuration.content;
29
31
  await (0, node_fs_promises.mkdir)((0, node_path.resolve)(remoteDictionariesDir), { recursive: true });
30
- await require_utils_parallelize.parallelize(require_filterInvalidDictionaries.filterInvalidDictionaries(remoteDictionaries, configuration).filter((dictionary) => dictionary.key !== "undefined"), async (dictionary) => {
31
- const resultFilePath = (0, node_path.resolve)(remoteDictionariesDir, `${dictionary.key}.json`);
32
- await require_writeJsonIfChanged.writeJsonIfChanged(resultFilePath, dictionary).catch((err) => {
33
- console.error(`Error creating merged ${(0, __intlayer_config.colorizePath)(resultFilePath)}:`, err);
32
+ const groupedDictionaries = require_buildIntlayerDictionary_writeUnmergedDictionary.groupDictionariesByKey(require_filterInvalidDictionaries.filterInvalidDictionaries(remoteDictionaries, configuration));
33
+ const results = await require_utils_parallelize.parallelize(Object.entries(groupedDictionaries), async ([key, dictionaries]) => {
34
+ if (key === "undefined") return;
35
+ const orderedDictionaries = (0, __intlayer_core.orderDictionaries)(require_loadDictionaries_loadRemoteDictionaries.formatDistantDictionaries(dictionaries), configuration);
36
+ const unmergedFilePath = (0, node_path.resolve)(remoteDictionariesDir, `${key}.json`);
37
+ await require_writeJsonIfChanged.writeJsonIfChanged(unmergedFilePath, orderedDictionaries).catch((err) => {
38
+ console.error(`${__intlayer_config.x} Error creating unmerged ${(0, __intlayer_config.colorizePath)(unmergedFilePath)}:`, err);
34
39
  });
40
+ return [key, {
41
+ dictionaryPath: unmergedFilePath,
42
+ dictionaries
43
+ }];
35
44
  });
36
- return require_loadDictionaries_loadRemoteDictionaries.formatDistantDictionaries(remoteDictionaries);
45
+ return Object.fromEntries(results.filter(Boolean));
37
46
  };
38
47
 
39
48
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"writeRemoteDictionary.cjs","names":["parallelize","filterInvalidDictionaries","writeJsonIfChanged","formatDistantDictionaries"],"sources":["../../../src/buildIntlayerDictionary/writeRemoteDictionary.ts"],"sourcesContent":["import { mkdir } from 'node:fs/promises';\nimport { resolve } from 'node:path';\nimport { colorizePath, getConfiguration } from '@intlayer/config';\nimport type { Dictionary } from '@intlayer/types';\nimport { filterInvalidDictionaries } from '../filterInvalidDictionaries';\nimport { formatDistantDictionaries } from '../loadDictionaries';\nimport { parallelize } from '../utils/parallelize';\nimport { writeJsonIfChanged } from '../writeJsonIfChanged';\n\n/**\n * Write the localized dictionaries to the dictionariesDir\n * @param mergedDictionaries - The merged dictionaries\n * @param configuration - The configuration\n * @returns The final dictionaries\n *\n * @example\n * ```ts\n * const unmergedDictionaries = await writeUnmergedDictionaries(dictionaries);\n * const finalDictionaries = await writeFinalDictionaries(unmergedDictionaries);\n * console.log(finalDictionaries);\n *\n * // .intlayer/fetch_dictionaries/home.json\n * // { key: 'home', content: { ... } },\n * ```\n */\nexport const writeRemoteDictionary = async (\n remoteDictionaries: Dictionary[],\n configuration = getConfiguration()\n): Promise<Dictionary[]> => {\n const { remoteDictionariesDir } = configuration.content;\n\n // Create the dictionaries folder if it doesn't exist\n await mkdir(resolve(remoteDictionariesDir), { recursive: true });\n\n const filteredDictionaries = filterInvalidDictionaries(\n remoteDictionaries,\n configuration\n );\n\n // Merge dictionaries with the same key and write to dictionariesDir\n await parallelize(\n filteredDictionaries.filter((dictionary) => dictionary.key !== 'undefined'),\n async (dictionary) => {\n const outputFileName = `${dictionary.key}.json`;\n const resultFilePath = resolve(remoteDictionariesDir, outputFileName);\n\n // Write the merged dictionary\n await writeJsonIfChanged(resultFilePath, dictionary).catch((err) => {\n console.error(\n `Error creating merged ${colorizePath(resultFilePath)}:`,\n err\n );\n });\n }\n );\n\n return formatDistantDictionaries(remoteDictionaries);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,MAAa,wBAAwB,OACnC,oBACA,yDAAkC,KACR;CAC1B,MAAM,EAAE,0BAA0B,cAAc;AAGhD,0DAAoB,sBAAsB,EAAE,EAAE,WAAW,MAAM,CAAC;AAQhE,OAAMA,sCANuBC,4DAC3B,oBACA,cACD,CAIsB,QAAQ,eAAe,WAAW,QAAQ,YAAY,EAC3E,OAAO,eAAe;EAEpB,MAAM,wCAAyB,uBADR,GAAG,WAAW,IAAI,OAC4B;AAGrE,QAAMC,8CAAmB,gBAAgB,WAAW,CAAC,OAAO,QAAQ;AAClE,WAAQ,MACN,6DAAsC,eAAe,CAAC,IACtD,IACD;IACD;GAEL;AAED,QAAOC,0EAA0B,mBAAmB"}
1
+ {"version":3,"file":"writeRemoteDictionary.cjs","names":["groupDictionariesByKey","filterInvalidDictionaries","parallelize","formatDistantDictionaries","writeJsonIfChanged","x"],"sources":["../../../src/buildIntlayerDictionary/writeRemoteDictionary.ts"],"sourcesContent":["import { mkdir } from 'node:fs/promises';\nimport { resolve } from 'node:path';\nimport { colorizePath, getConfiguration, x } from '@intlayer/config';\nimport { orderDictionaries } from '@intlayer/core';\nimport type { Dictionary } from '@intlayer/types';\nimport { filterInvalidDictionaries } from '../filterInvalidDictionaries';\nimport { formatDistantDictionaries } from '../loadDictionaries';\nimport { parallelize } from '../utils/parallelize';\nimport { writeJsonIfChanged } from '../writeJsonIfChanged';\nimport {\n groupDictionariesByKey,\n type UnmergedDictionaryResult,\n} from './writeUnmergedDictionary';\n\nexport type RemoteDictionaryResult = {\n dictionaryPath: string;\n dictionaries: Dictionary[];\n};\n\nexport type RemoteDictionaryOutput = Record<string, RemoteDictionaryResult>;\n\n/**\n * Write the localized dictionaries to the dictionariesDir\n * @param mergedDictionaries - The merged dictionaries\n * @param configuration - The configuration\n * @returns The final dictionaries\n *\n * @example\n * ```ts\n * const unmergedDictionaries = await writeUnmergedDictionaries(dictionaries);\n * const finalDictionaries = await writeFinalDictionaries(unmergedDictionaries);\n * console.log(finalDictionaries);\n *\n * // .intlayer/fetch_dictionaries/home.json\n * // { key: 'home', content: { ... } },\n * ```\n */\nexport const writeRemoteDictionary = async (\n remoteDictionaries: Dictionary[],\n configuration = getConfiguration()\n): Promise<RemoteDictionaryOutput> => {\n const { remoteDictionariesDir } = configuration.content;\n\n // Create the dictionaries folder if it doesn't exist\n await mkdir(resolve(remoteDictionariesDir), { recursive: true });\n\n const filteredDictionaries = filterInvalidDictionaries(\n remoteDictionaries,\n configuration\n );\n\n // Group dictionaries by key and write to unmergedDictionariesDir\n const groupedDictionaries = groupDictionariesByKey(filteredDictionaries);\n\n // Merge dictionaries with the same key and write to dictionariesDir\n const results = await parallelize(\n Object.entries(groupedDictionaries),\n async ([key, dictionaries]) => {\n if (key === 'undefined') {\n return undefined as unknown as readonly [\n string,\n UnmergedDictionaryResult,\n ];\n }\n\n const formattedDictionaries = formatDistantDictionaries(dictionaries);\n\n const orderedDictionaries = orderDictionaries(\n formattedDictionaries,\n configuration\n );\n\n const outputFileName = `${key}.json`;\n const unmergedFilePath = resolve(remoteDictionariesDir, outputFileName);\n\n // Write the grouped dictionaries\n await writeJsonIfChanged(unmergedFilePath, orderedDictionaries).catch(\n (err) => {\n console.error(\n `${x} Error creating unmerged ${colorizePath(unmergedFilePath)}:`,\n err\n );\n }\n );\n\n return [\n key,\n {\n dictionaryPath: unmergedFilePath,\n dictionaries,\n } as UnmergedDictionaryResult,\n ] as const;\n }\n );\n\n return Object.fromEntries(\n results.filter(Boolean) as Array<\n readonly [string, UnmergedDictionaryResult]\n >\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCA,MAAa,wBAAwB,OACnC,oBACA,yDAAkC,KACE;CACpC,MAAM,EAAE,0BAA0B,cAAc;AAGhD,0DAAoB,sBAAsB,EAAE,EAAE,WAAW,MAAM,CAAC;CAQhE,MAAM,sBAAsBA,+EANCC,4DAC3B,oBACA,cACD,CAGuE;CAGxE,MAAM,UAAU,MAAMC,sCACpB,OAAO,QAAQ,oBAAoB,EACnC,OAAO,CAAC,KAAK,kBAAkB;AAC7B,MAAI,QAAQ,YACV;EAQF,MAAM,6DAFwBC,0EAA0B,aAAa,EAInE,cACD;EAGD,MAAM,0CAA2B,uBADV,GAAG,IAAI,OACyC;AAGvE,QAAMC,8CAAmB,kBAAkB,oBAAoB,CAAC,OAC7D,QAAQ;AACP,WAAQ,MACN,GAAGC,oBAAE,+DAAwC,iBAAiB,CAAC,IAC/D,IACD;IAEJ;AAED,SAAO,CACL,KACA;GACE,gBAAgB;GAChB;GACD,CACF;GAEJ;AAED,QAAO,OAAO,YACZ,QAAQ,OAAO,QAAQ,CAGxB"}
@@ -54,5 +54,6 @@ const writeUnmergedDictionaries = async (dictionaries, configuration) => {
54
54
  };
55
55
 
56
56
  //#endregion
57
+ exports.groupDictionariesByKey = groupDictionariesByKey;
57
58
  exports.writeUnmergedDictionaries = writeUnmergedDictionaries;
58
59
  //# sourceMappingURL=writeUnmergedDictionary.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"writeUnmergedDictionary.cjs","names":["filterInvalidDictionaries","parallelize","dictionaries","writeJsonIfChanged","x"],"sources":["../../../src/buildIntlayerDictionary/writeUnmergedDictionary.ts"],"sourcesContent":["import { mkdir } from 'node:fs/promises';\nimport { resolve } from 'node:path';\nimport { colorizePath, x } from '@intlayer/config';\nimport { orderDictionaries } from '@intlayer/core';\nimport type { Dictionary, IntlayerConfig } from '@intlayer/types';\nimport { filterInvalidDictionaries } from '../filterInvalidDictionaries';\nimport { parallelize } from '../utils/parallelize';\nimport { writeJsonIfChanged } from '../writeJsonIfChanged';\n\nconst groupDictionariesByKey = (\n dictionaries: Dictionary[]\n): Record<string, Dictionary[]> =>\n dictionaries.reduce(\n (acc, dictionary) => {\n const key = dictionary.key;\n if (!acc[key]) {\n acc[key] = [];\n }\n acc[key].push(dictionary);\n return acc;\n },\n {} as Record<string, Dictionary[]>\n );\n\nexport type UnmergedDictionaryResult = {\n dictionaryPath: string;\n dictionaries: Dictionary[];\n};\n\nexport type UnmergedDictionaryOutput = Record<string, UnmergedDictionaryResult>;\n\n/**\n * Write the unmerged dictionaries to the unmergedDictionariesDir\n * @param dictionaries - The dictionaries to write\n * @param configuration - The configuration\n * @returns The grouped dictionaries\n *\n * @example\n * ```ts\n * const unmergedDictionaries = await writeUnmergedDictionaries(dictionaries);\n * console.log(unmergedDictionaries);\n *\n * // .intlayer/unmerged_dictionaries/home.json\n * // {\n * // [\n * // { key: 'home', content: { ... } },\n * // { key: 'home', content: { ... } },\n * // ],\n * // }\n * ```\n */\nexport const writeUnmergedDictionaries = async (\n dictionaries: Dictionary[],\n configuration: IntlayerConfig\n): Promise<UnmergedDictionaryOutput> => {\n const { unmergedDictionariesDir } = configuration.content;\n\n // Create the dictionaries folder if it doesn't exist\n await mkdir(resolve(unmergedDictionariesDir), { recursive: true });\n\n const filteredDictionaries = filterInvalidDictionaries(\n dictionaries,\n configuration\n );\n\n // Group dictionaries by key and write to unmergedDictionariesDir\n const groupedDictionaries = groupDictionariesByKey(filteredDictionaries);\n\n const results = await parallelize(\n Object.entries(groupedDictionaries),\n async ([key, dictionaries]) => {\n if (key === 'undefined') {\n return undefined as unknown as readonly [\n string,\n UnmergedDictionaryResult,\n ];\n }\n\n const orderedDictionaries = orderDictionaries(\n dictionaries,\n configuration\n );\n\n const outputFileName = `${key}.json`;\n const unmergedFilePath = resolve(unmergedDictionariesDir, outputFileName);\n\n // Write the grouped dictionaries\n await writeJsonIfChanged(unmergedFilePath, orderedDictionaries).catch(\n (err) => {\n console.error(\n `${x} Error creating unmerged ${colorizePath(unmergedFilePath)}:`,\n err\n );\n }\n );\n\n return [\n key,\n {\n dictionaryPath: unmergedFilePath,\n dictionaries: dictionaries,\n } as UnmergedDictionaryResult,\n ] as const;\n }\n );\n\n return Object.fromEntries(\n results.filter(Boolean) as Array<\n readonly [string, UnmergedDictionaryResult]\n >\n );\n};\n"],"mappings":";;;;;;;;;;AASA,MAAM,0BACJ,iBAEA,aAAa,QACV,KAAK,eAAe;CACnB,MAAM,MAAM,WAAW;AACvB,KAAI,CAAC,IAAI,KACP,KAAI,OAAO,EAAE;AAEf,KAAI,KAAK,KAAK,WAAW;AACzB,QAAO;GAET,EAAE,CACH;;;;;;;;;;;;;;;;;;;;;AA6BH,MAAa,4BAA4B,OACvC,cACA,kBACsC;CACtC,MAAM,EAAE,4BAA4B,cAAc;AAGlD,0DAAoB,wBAAwB,EAAE,EAAE,WAAW,MAAM,CAAC;CAQlE,MAAM,sBAAsB,uBANCA,4DAC3B,cACA,cACD,CAGuE;CAExE,MAAM,UAAU,MAAMC,sCACpB,OAAO,QAAQ,oBAAoB,EACnC,OAAO,CAAC,KAAKC,oBAAkB;AAC7B,MAAI,QAAQ,YACV;EAMF,MAAM,6DACJA,gBACA,cACD;EAGD,MAAM,0CAA2B,yBADV,GAAG,IAAI,OAC2C;AAGzE,QAAMC,8CAAmB,kBAAkB,oBAAoB,CAAC,OAC7D,QAAQ;AACP,WAAQ,MACN,GAAGC,oBAAE,+DAAwC,iBAAiB,CAAC,IAC/D,IACD;IAEJ;AAED,SAAO,CACL,KACA;GACE,gBAAgB;GAChB,cAAcF;GACf,CACF;GAEJ;AAED,QAAO,OAAO,YACZ,QAAQ,OAAO,QAAQ,CAGxB"}
1
+ {"version":3,"file":"writeUnmergedDictionary.cjs","names":["filterInvalidDictionaries","parallelize","dictionaries","writeJsonIfChanged","x"],"sources":["../../../src/buildIntlayerDictionary/writeUnmergedDictionary.ts"],"sourcesContent":["import { mkdir } from 'node:fs/promises';\nimport { resolve } from 'node:path';\nimport { colorizePath, x } from '@intlayer/config';\nimport { orderDictionaries } from '@intlayer/core';\nimport type { Dictionary, IntlayerConfig } from '@intlayer/types';\nimport { filterInvalidDictionaries } from '../filterInvalidDictionaries';\nimport { parallelize } from '../utils/parallelize';\nimport { writeJsonIfChanged } from '../writeJsonIfChanged';\n\nexport const groupDictionariesByKey = (\n dictionaries: Dictionary[]\n): Record<string, Dictionary[]> =>\n dictionaries.reduce(\n (acc, dictionary) => {\n const key = dictionary.key;\n if (!acc[key]) {\n acc[key] = [];\n }\n acc[key].push(dictionary);\n return acc;\n },\n {} as Record<string, Dictionary[]>\n );\n\nexport type UnmergedDictionaryResult = {\n dictionaryPath: string;\n dictionaries: Dictionary[];\n};\n\nexport type UnmergedDictionaryOutput = Record<string, UnmergedDictionaryResult>;\n\n/**\n * Write the unmerged dictionaries to the unmergedDictionariesDir\n * @param dictionaries - The dictionaries to write\n * @param configuration - The configuration\n * @returns The grouped dictionaries\n *\n * @example\n * ```ts\n * const unmergedDictionaries = await writeUnmergedDictionaries(dictionaries);\n * console.log(unmergedDictionaries);\n *\n * // .intlayer/unmerged_dictionaries/home.json\n * // {\n * // [\n * // { key: 'home', content: { ... } },\n * // { key: 'home', content: { ... } },\n * // ],\n * // }\n * ```\n */\nexport const writeUnmergedDictionaries = async (\n dictionaries: Dictionary[],\n configuration: IntlayerConfig\n): Promise<UnmergedDictionaryOutput> => {\n const { unmergedDictionariesDir } = configuration.content;\n\n // Create the dictionaries folder if it doesn't exist\n await mkdir(resolve(unmergedDictionariesDir), { recursive: true });\n\n const filteredDictionaries = filterInvalidDictionaries(\n dictionaries,\n configuration\n );\n\n // Group dictionaries by key and write to unmergedDictionariesDir\n const groupedDictionaries = groupDictionariesByKey(filteredDictionaries);\n\n const results = await parallelize(\n Object.entries(groupedDictionaries),\n async ([key, dictionaries]) => {\n if (key === 'undefined') {\n return undefined as unknown as readonly [\n string,\n UnmergedDictionaryResult,\n ];\n }\n\n const orderedDictionaries = orderDictionaries(\n dictionaries,\n configuration\n );\n\n const outputFileName = `${key}.json`;\n const unmergedFilePath = resolve(unmergedDictionariesDir, outputFileName);\n\n // Write the grouped dictionaries\n await writeJsonIfChanged(unmergedFilePath, orderedDictionaries).catch(\n (err) => {\n console.error(\n `${x} Error creating unmerged ${colorizePath(unmergedFilePath)}:`,\n err\n );\n }\n );\n\n return [\n key,\n {\n dictionaryPath: unmergedFilePath,\n dictionaries: dictionaries,\n } as UnmergedDictionaryResult,\n ] as const;\n }\n );\n\n return Object.fromEntries(\n results.filter(Boolean) as Array<\n readonly [string, UnmergedDictionaryResult]\n >\n );\n};\n"],"mappings":";;;;;;;;;;AASA,MAAa,0BACX,iBAEA,aAAa,QACV,KAAK,eAAe;CACnB,MAAM,MAAM,WAAW;AACvB,KAAI,CAAC,IAAI,KACP,KAAI,OAAO,EAAE;AAEf,KAAI,KAAK,KAAK,WAAW;AACzB,QAAO;GAET,EAAE,CACH;;;;;;;;;;;;;;;;;;;;;AA6BH,MAAa,4BAA4B,OACvC,cACA,kBACsC;CACtC,MAAM,EAAE,4BAA4B,cAAc;AAGlD,0DAAoB,wBAAwB,EAAE,EAAE,WAAW,MAAM,CAAC;CAQlE,MAAM,sBAAsB,uBANCA,4DAC3B,cACA,cACD,CAGuE;CAExE,MAAM,UAAU,MAAMC,sCACpB,OAAO,QAAQ,oBAAoB,EACnC,OAAO,CAAC,KAAKC,oBAAkB;AAC7B,MAAI,QAAQ,YACV;EAMF,MAAM,6DACJA,gBACA,cACD;EAGD,MAAM,0CAA2B,yBADV,GAAG,IAAI,OAC2C;AAGzE,QAAMC,8CAAmB,kBAAkB,oBAAoB,CAAC,OAC7D,QAAQ;AACP,WAAQ,MACN,GAAGC,oBAAE,+DAAwC,iBAAiB,CAAC,IAC/D,IACD;IAEJ;AAED,SAAO,CACL,KACA;GACE,gBAAgB;GAChB,cAAcF;GACf,CACF;GAEJ;AAED,QAAO,OAAO,YACZ,QAAQ,OAAO,QAAQ,CAGxB"}
@@ -0,0 +1,10 @@
1
+
2
+ //#region ../config/dist/esm/_virtual/rolldown_runtime.mjs
3
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
5
+ throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
6
+ });
7
+
8
+ //#endregion
9
+ exports.__require = __require;
10
+ //# sourceMappingURL=rolldown_runtime.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rolldown_runtime.cjs","names":[],"sources":["../../../../../../../config/dist/esm/_virtual/rolldown_runtime.mjs"],"sourcesContent":["//#region rolldown:runtime\nvar __defProp = Object.defineProperty;\nvar __export = (all) => {\n\tlet target = {};\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n\treturn target;\n};\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, { get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b] }) : x)(function(x) {\n\tif (typeof require !== \"undefined\") return require.apply(this, arguments);\n\tthrow Error(\"Calling `require` for \\\"\" + x + \"\\\" in an environment that doesn't expose the `require` function.\");\n});\n\n//#endregion\nexport { __export, __require };"],"mappings":";;AAUA,IAAI,YAA4B,kBAAE,MAAM,OAAO,YAAY,cAAc,UAAU,OAAO,UAAU,cAAc,IAAI,MAAM,GAAG,EAAE,MAAM,GAAG,OAAO,OAAO,YAAY,cAAc,UAAU,GAAG,IAAI,CAAC,GAAG,GAAG,SAAS,GAAG;AACrN,KAAI,OAAO,YAAY,YAAa,QAAO,QAAQ,MAAM,MAAM,UAAU;AACzE,OAAM,MAAM,6BAA6B,IAAI,mEAAmE;EAC/G"}
@@ -0,0 +1,8 @@
1
+ const require_getConfiguration = require('./configFile/getConfiguration.cjs');
2
+
3
+ //#region ../config/dist/esm/built.mjs
4
+ var built_default = require_getConfiguration.getConfiguration();
5
+
6
+ //#endregion
7
+ exports.built_default = built_default;
8
+ //# sourceMappingURL=built.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"built.cjs","names":["getConfiguration"],"sources":["../../../../../../config/dist/esm/built.mjs"],"sourcesContent":["import { getConfiguration } from \"./configFile/getConfiguration.mjs\";\n\n//#region src/built.ts\nconst configuration = getConfiguration();\nvar built_default = configuration;\n\n//#endregion\nexport { built_default as default };\n//# sourceMappingURL=built.mjs.map"],"mappings":";;;AAIA,IAAI,gBADkBA,2CAAkB"}
@@ -0,0 +1,7 @@
1
+
2
+ //#region ../config/dist/esm/config/package.mjs
3
+ var version = "7.0.9";
4
+
5
+ //#endregion
6
+ exports.version = version;
7
+ //# sourceMappingURL=package.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package.cjs","names":[],"sources":["../../../../../../../config/dist/esm/config/package.mjs"],"sourcesContent":["//#region package.json\nvar version = \"7.0.9\";\n\n//#endregion\nexport { version };\n//# sourceMappingURL=package.mjs.map"],"mappings":";;AACA,IAAI,UAAU"}