@intlayer/cli 6.1.6-canary.0 → 7.0.0-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/dist/cjs/IntlayerEventListener.cjs +187 -239
  2. package/dist/cjs/IntlayerEventListener.cjs.map +1 -1
  3. package/dist/cjs/_virtual/_utils_asset.cjs +104 -0
  4. package/dist/cjs/_virtual/rolldown_runtime.cjs +25 -0
  5. package/dist/cjs/build.cjs +23 -42
  6. package/dist/cjs/build.cjs.map +1 -1
  7. package/dist/cjs/cli.cjs +370 -431
  8. package/dist/cjs/cli.cjs.map +1 -1
  9. package/dist/cjs/config.cjs +10 -35
  10. package/dist/cjs/config.cjs.map +1 -1
  11. package/dist/cjs/editor.cjs +51 -66
  12. package/dist/cjs/editor.cjs.map +1 -1
  13. package/dist/cjs/fill/fill.cjs +73 -301
  14. package/dist/cjs/fill/fill.cjs.map +1 -1
  15. package/dist/cjs/fill/formatAutoFillData.cjs +48 -106
  16. package/dist/cjs/fill/formatAutoFillData.cjs.map +1 -1
  17. package/dist/cjs/fill/formatAutoFilledFilePath.cjs +27 -43
  18. package/dist/cjs/fill/formatAutoFilledFilePath.cjs.map +1 -1
  19. package/dist/cjs/fill/formatFillData.cjs +50 -0
  20. package/dist/cjs/fill/formatFillData.cjs.map +1 -0
  21. package/dist/cjs/fill/groupLimiter.cjs +42 -0
  22. package/dist/cjs/fill/groupLimiter.cjs.map +1 -0
  23. package/dist/cjs/fill/index.cjs +5 -25
  24. package/dist/cjs/fill/listTranslationsTasks.cjs +77 -0
  25. package/dist/cjs/fill/listTranslationsTasks.cjs.map +1 -0
  26. package/dist/cjs/fill/test-original-case.cjs +10 -0
  27. package/dist/cjs/fill/test-original-case.cjs.map +1 -0
  28. package/dist/cjs/fill/translateDictionary.cjs +148 -0
  29. package/dist/cjs/fill/translateDictionary.cjs.map +1 -0
  30. package/dist/cjs/fill/writeAutoFill.cjs +48 -0
  31. package/dist/cjs/fill/writeAutoFill.cjs.map +1 -0
  32. package/dist/cjs/fill/writeFill.cjs +50 -0
  33. package/dist/cjs/fill/writeFill.cjs.map +1 -0
  34. package/dist/cjs/getTargetDictionary.cjs +36 -76
  35. package/dist/cjs/getTargetDictionary.cjs.map +1 -1
  36. package/dist/cjs/index.cjs +31 -45
  37. package/dist/cjs/listContentDeclaration.cjs +36 -64
  38. package/dist/cjs/listContentDeclaration.cjs.map +1 -1
  39. package/dist/cjs/liveSync.cjs +146 -221
  40. package/dist/cjs/liveSync.cjs.map +1 -1
  41. package/dist/cjs/pull.cjs +132 -195
  42. package/dist/cjs/pull.cjs.map +1 -1
  43. package/dist/cjs/push/pullLog.cjs +101 -144
  44. package/dist/cjs/push/pullLog.cjs.map +1 -1
  45. package/dist/cjs/push/push.cjs +159 -249
  46. package/dist/cjs/push/push.cjs.map +1 -1
  47. package/dist/cjs/pushConfig.cjs +18 -45
  48. package/dist/cjs/pushConfig.cjs.map +1 -1
  49. package/dist/cjs/pushLog.cjs +87 -128
  50. package/dist/cjs/pushLog.cjs.map +1 -1
  51. package/dist/cjs/reviewDoc.cjs +183 -291
  52. package/dist/cjs/reviewDoc.cjs.map +1 -1
  53. package/dist/cjs/test/index.cjs +52 -91
  54. package/dist/cjs/test/index.cjs.map +1 -1
  55. package/dist/cjs/test/listMissingTranslations.cjs +35 -62
  56. package/dist/cjs/test/listMissingTranslations.cjs.map +1 -1
  57. package/dist/cjs/translateDoc.cjs +127 -221
  58. package/dist/cjs/translateDoc.cjs.map +1 -1
  59. package/dist/cjs/utils/calculateChunks.cjs +85 -115
  60. package/dist/cjs/utils/calculateChunks.cjs.map +1 -1
  61. package/dist/cjs/utils/checkAccess.cjs +33 -72
  62. package/dist/cjs/utils/checkAccess.cjs.map +1 -1
  63. package/dist/cjs/utils/checkFileModifiedRange.cjs +75 -91
  64. package/dist/cjs/utils/checkFileModifiedRange.cjs.map +1 -1
  65. package/dist/cjs/utils/checkLastUpdateTime.cjs +17 -30
  66. package/dist/cjs/utils/checkLastUpdateTime.cjs.map +1 -1
  67. package/dist/cjs/utils/chunkInference.cjs +28 -47
  68. package/dist/cjs/utils/chunkInference.cjs.map +1 -1
  69. package/dist/cjs/utils/fixChunkStartEndChars.cjs +23 -42
  70. package/dist/cjs/utils/fixChunkStartEndChars.cjs.map +1 -1
  71. package/dist/cjs/utils/formatTimeDiff.cjs +17 -43
  72. package/dist/cjs/utils/formatTimeDiff.cjs.map +1 -1
  73. package/dist/cjs/utils/getIsFileUpdatedRecently.cjs +13 -32
  74. package/dist/cjs/utils/getIsFileUpdatedRecently.cjs.map +1 -1
  75. package/dist/cjs/utils/getOutputFilePath.cjs +71 -86
  76. package/dist/cjs/utils/getOutputFilePath.cjs.map +1 -1
  77. package/dist/cjs/utils/getParentPackageJSON.cjs +19 -44
  78. package/dist/cjs/utils/getParentPackageJSON.cjs.map +1 -1
  79. package/dist/cjs/utils/listSpecialChars.cjs +49 -73
  80. package/dist/cjs/utils/listSpecialChars.cjs.map +1 -1
  81. package/dist/cjs/utils/mapChunksBetweenFiles.cjs +90 -132
  82. package/dist/cjs/utils/mapChunksBetweenFiles.cjs.map +1 -1
  83. package/dist/cjs/utils/reorderParagraphs.cjs +86 -118
  84. package/dist/cjs/utils/reorderParagraphs.cjs.map +1 -1
  85. package/dist/cjs/watch.cjs +21 -39
  86. package/dist/cjs/watch.cjs.map +1 -1
  87. package/dist/esm/IntlayerEventListener.mjs +178 -201
  88. package/dist/esm/IntlayerEventListener.mjs.map +1 -1
  89. package/dist/esm/_virtual/_utils_asset.mjs +100 -0
  90. package/dist/esm/_virtual/rolldown_runtime.mjs +8 -0
  91. package/dist/esm/build.mjs +20 -23
  92. package/dist/esm/build.mjs.map +1 -1
  93. package/dist/esm/cli.mjs +349 -380
  94. package/dist/esm/cli.mjs.map +1 -1
  95. package/dist/esm/config.mjs +8 -14
  96. package/dist/esm/config.mjs.map +1 -1
  97. package/dist/esm/editor.mjs +47 -41
  98. package/dist/esm/editor.mjs.map +1 -1
  99. package/dist/esm/fill/fill.mjs +68 -300
  100. package/dist/esm/fill/fill.mjs.map +1 -1
  101. package/dist/esm/fill/formatAutoFillData.mjs +47 -81
  102. package/dist/esm/fill/formatAutoFillData.mjs.map +1 -1
  103. package/dist/esm/fill/formatAutoFilledFilePath.mjs +25 -19
  104. package/dist/esm/fill/formatAutoFilledFilePath.mjs.map +1 -1
  105. package/dist/esm/fill/formatFillData.mjs +50 -0
  106. package/dist/esm/fill/formatFillData.mjs.map +1 -0
  107. package/dist/esm/fill/groupLimiter.mjs +40 -0
  108. package/dist/esm/fill/groupLimiter.mjs.map +1 -0
  109. package/dist/esm/fill/index.mjs +4 -3
  110. package/dist/esm/fill/listTranslationsTasks.mjs +70 -0
  111. package/dist/esm/fill/listTranslationsTasks.mjs.map +1 -0
  112. package/dist/esm/fill/test-original-case.mjs +10 -0
  113. package/dist/esm/fill/test-original-case.mjs.map +1 -0
  114. package/dist/esm/fill/translateDictionary.mjs +141 -0
  115. package/dist/esm/fill/translateDictionary.mjs.map +1 -0
  116. package/dist/esm/fill/writeAutoFill.mjs +44 -0
  117. package/dist/esm/fill/writeAutoFill.mjs.map +1 -0
  118. package/dist/esm/fill/writeFill.mjs +45 -0
  119. package/dist/esm/fill/writeFill.mjs.map +1 -0
  120. package/dist/esm/getTargetDictionary.mjs +27 -48
  121. package/dist/esm/getTargetDictionary.mjs.map +1 -1
  122. package/dist/esm/index.mjs +15 -13
  123. package/dist/esm/listContentDeclaration.mjs +28 -43
  124. package/dist/esm/listContentDeclaration.mjs.map +1 -1
  125. package/dist/esm/liveSync.mjs +135 -187
  126. package/dist/esm/liveSync.mjs.map +1 -1
  127. package/dist/esm/pull.mjs +125 -178
  128. package/dist/esm/pull.mjs.map +1 -1
  129. package/dist/esm/push/pullLog.mjs +99 -125
  130. package/dist/esm/push/pullLog.mjs.map +1 -1
  131. package/dist/esm/push/push.mjs +149 -221
  132. package/dist/esm/push/push.mjs.map +1 -1
  133. package/dist/esm/pushConfig.mjs +14 -23
  134. package/dist/esm/pushConfig.mjs.map +1 -1
  135. package/dist/esm/pushLog.mjs +85 -109
  136. package/dist/esm/pushLog.mjs.map +1 -1
  137. package/dist/esm/reviewDoc.mjs +167 -264
  138. package/dist/esm/reviewDoc.mjs.map +1 -1
  139. package/dist/esm/test/index.mjs +47 -73
  140. package/dist/esm/test/index.mjs.map +1 -1
  141. package/dist/esm/test/listMissingTranslations.mjs +30 -41
  142. package/dist/esm/test/listMissingTranslations.mjs.map +1 -1
  143. package/dist/esm/translateDoc.mjs +114 -193
  144. package/dist/esm/translateDoc.mjs.map +1 -1
  145. package/dist/esm/utils/calculateChunks.mjs +83 -91
  146. package/dist/esm/utils/calculateChunks.mjs.map +1 -1
  147. package/dist/esm/utils/checkAccess.mjs +28 -46
  148. package/dist/esm/utils/checkAccess.mjs.map +1 -1
  149. package/dist/esm/utils/checkFileModifiedRange.mjs +73 -65
  150. package/dist/esm/utils/checkFileModifiedRange.mjs.map +1 -1
  151. package/dist/esm/utils/checkLastUpdateTime.mjs +15 -6
  152. package/dist/esm/utils/checkLastUpdateTime.mjs.map +1 -1
  153. package/dist/esm/utils/chunkInference.mjs +24 -24
  154. package/dist/esm/utils/chunkInference.mjs.map +1 -1
  155. package/dist/esm/utils/fixChunkStartEndChars.mjs +22 -18
  156. package/dist/esm/utils/fixChunkStartEndChars.mjs.map +1 -1
  157. package/dist/esm/utils/formatTimeDiff.mjs +16 -19
  158. package/dist/esm/utils/formatTimeDiff.mjs.map +1 -1
  159. package/dist/esm/utils/getIsFileUpdatedRecently.mjs +11 -8
  160. package/dist/esm/utils/getIsFileUpdatedRecently.mjs.map +1 -1
  161. package/dist/esm/utils/getOutputFilePath.mjs +70 -62
  162. package/dist/esm/utils/getOutputFilePath.mjs.map +1 -1
  163. package/dist/esm/utils/getParentPackageJSON.mjs +16 -20
  164. package/dist/esm/utils/getParentPackageJSON.mjs.map +1 -1
  165. package/dist/esm/utils/listSpecialChars.mjs +48 -49
  166. package/dist/esm/utils/listSpecialChars.mjs.map +1 -1
  167. package/dist/esm/utils/mapChunksBetweenFiles.mjs +87 -107
  168. package/dist/esm/utils/mapChunksBetweenFiles.mjs.map +1 -1
  169. package/dist/esm/utils/reorderParagraphs.mjs +85 -93
  170. package/dist/esm/utils/reorderParagraphs.mjs.map +1 -1
  171. package/dist/esm/watch.mjs +17 -17
  172. package/dist/esm/watch.mjs.map +1 -1
  173. package/dist/types/IntlayerEventListener.d.ts +63 -59
  174. package/dist/types/IntlayerEventListener.d.ts.map +1 -1
  175. package/dist/types/build.d.ts +10 -7
  176. package/dist/types/build.d.ts.map +1 -1
  177. package/dist/types/cli.d.ts +13 -10
  178. package/dist/types/cli.d.ts.map +1 -1
  179. package/dist/types/config.d.ts +7 -4
  180. package/dist/types/config.d.ts.map +1 -1
  181. package/dist/types/editor.d.ts +6 -4
  182. package/dist/types/editor.d.ts.map +1 -1
  183. package/dist/types/fill/fill.d.ts +20 -14
  184. package/dist/types/fill/fill.d.ts.map +1 -1
  185. package/dist/types/fill/formatAutoFillData.d.ts +10 -7
  186. package/dist/types/fill/formatAutoFillData.d.ts.map +1 -1
  187. package/dist/types/fill/formatAutoFilledFilePath.d.ts +6 -2
  188. package/dist/types/fill/formatAutoFilledFilePath.d.ts.map +1 -1
  189. package/dist/types/fill/formatFillData.d.ts +12 -0
  190. package/dist/types/fill/formatFillData.d.ts.map +1 -0
  191. package/dist/types/fill/groupLimiter.d.ts +15 -0
  192. package/dist/types/fill/groupLimiter.d.ts.map +1 -0
  193. package/dist/types/fill/index.d.ts +3 -3
  194. package/dist/types/fill/listTranslationsTasks.d.ts +15 -0
  195. package/dist/types/fill/listTranslationsTasks.d.ts.map +1 -0
  196. package/dist/types/fill/test-original-case.d.ts +1 -0
  197. package/dist/types/fill/translateDictionary.d.ts +19 -0
  198. package/dist/types/fill/translateDictionary.d.ts.map +1 -0
  199. package/dist/types/fill/writeAutoFill.d.ts +7 -0
  200. package/dist/types/fill/writeAutoFill.d.ts.map +1 -0
  201. package/dist/types/fill/writeFill.d.ts +7 -0
  202. package/dist/types/fill/writeFill.d.ts.map +1 -0
  203. package/dist/types/getTargetDictionary.d.ts +17 -13
  204. package/dist/types/getTargetDictionary.d.ts.map +1 -1
  205. package/dist/types/index.d.ts +15 -14
  206. package/dist/types/listContentDeclaration.d.ts +10 -7
  207. package/dist/types/listContentDeclaration.d.ts.map +1 -1
  208. package/dist/types/liveSync.d.ts +8 -3
  209. package/dist/types/liveSync.d.ts.map +1 -1
  210. package/dist/types/pull.d.ts +9 -6
  211. package/dist/types/pull.d.ts.map +1 -1
  212. package/dist/types/push/pullLog.d.ts +25 -21
  213. package/dist/types/push/pullLog.d.ts.map +1 -1
  214. package/dist/types/push/push.d.ts +13 -9
  215. package/dist/types/push/push.d.ts.map +1 -1
  216. package/dist/types/pushConfig.d.ts +7 -4
  217. package/dist/types/pushConfig.d.ts.map +1 -1
  218. package/dist/types/pushLog.d.ts +23 -20
  219. package/dist/types/pushLog.d.ts.map +1 -1
  220. package/dist/types/reviewDoc.d.ts +34 -17
  221. package/dist/types/reviewDoc.d.ts.map +1 -1
  222. package/dist/types/test/index.d.ts +9 -5
  223. package/dist/types/test/index.d.ts.map +1 -1
  224. package/dist/types/test/listMissingTranslations.d.ts +14 -10
  225. package/dist/types/test/listMissingTranslations.d.ts.map +1 -1
  226. package/dist/types/translateDoc.d.ts +34 -17
  227. package/dist/types/translateDoc.d.ts.map +1 -1
  228. package/dist/types/utils/calculateChunks.d.ts +10 -7
  229. package/dist/types/utils/calculateChunks.d.ts.map +1 -1
  230. package/dist/types/utils/checkAccess.d.ts +8 -4
  231. package/dist/types/utils/checkAccess.d.ts.map +1 -1
  232. package/dist/types/utils/checkFileModifiedRange.d.ts +8 -6
  233. package/dist/types/utils/checkFileModifiedRange.d.ts.map +1 -1
  234. package/dist/types/utils/checkLastUpdateTime.d.ts +4 -1
  235. package/dist/types/utils/checkLastUpdateTime.d.ts.map +1 -1
  236. package/dist/types/utils/chunkInference.d.ts +9 -6
  237. package/dist/types/utils/chunkInference.d.ts.map +1 -1
  238. package/dist/types/utils/fixChunkStartEndChars.d.ts +4 -1
  239. package/dist/types/utils/fixChunkStartEndChars.d.ts.map +1 -1
  240. package/dist/types/utils/formatTimeDiff.d.ts +4 -1
  241. package/dist/types/utils/formatTimeDiff.d.ts.map +1 -1
  242. package/dist/types/utils/getIsFileUpdatedRecently.d.ts +4 -1
  243. package/dist/types/utils/getIsFileUpdatedRecently.d.ts.map +1 -1
  244. package/dist/types/utils/getOutputFilePath.d.ts +7 -2
  245. package/dist/types/utils/getOutputFilePath.d.ts.map +1 -1
  246. package/dist/types/utils/getParentPackageJSON.d.ts +30 -28
  247. package/dist/types/utils/getParentPackageJSON.d.ts.map +1 -1
  248. package/dist/types/utils/listSpecialChars.d.ts +9 -7
  249. package/dist/types/utils/listSpecialChars.d.ts.map +1 -1
  250. package/dist/types/utils/mapChunksBetweenFiles.d.ts +10 -6
  251. package/dist/types/utils/mapChunksBetweenFiles.d.ts.map +1 -1
  252. package/dist/types/utils/reorderParagraphs.d.ts +4 -1
  253. package/dist/types/utils/reorderParagraphs.d.ts.map +1 -1
  254. package/dist/types/watch.d.ts +9 -6
  255. package/dist/types/watch.d.ts.map +1 -1
  256. package/package.json +42 -47
  257. package/LICENSE +0 -202
  258. package/dist/cjs/fill/autoFill.cjs +0 -105
  259. package/dist/cjs/fill/autoFill.cjs.map +0 -1
  260. package/dist/cjs/fill/index.cjs.map +0 -1
  261. package/dist/cjs/index.cjs.map +0 -1
  262. package/dist/cjs/utils/getChunk.cjs +0 -77
  263. package/dist/cjs/utils/getChunk.cjs.map +0 -1
  264. package/dist/cjs/utils/splitTextByLine.cjs +0 -35
  265. package/dist/cjs/utils/splitTextByLine.cjs.map +0 -1
  266. package/dist/esm/fill/autoFill.mjs +0 -92
  267. package/dist/esm/fill/autoFill.mjs.map +0 -1
  268. package/dist/esm/fill/index.mjs.map +0 -1
  269. package/dist/esm/index.mjs.map +0 -1
  270. package/dist/esm/prompts/REVIEW_PROMPT.md +0 -37
  271. package/dist/esm/prompts/TRANSLATE_PROMPT.md +0 -38
  272. package/dist/esm/utils/calculrateChunkTest.md +0 -9
  273. package/dist/esm/utils/getChunk.mjs +0 -53
  274. package/dist/esm/utils/getChunk.mjs.map +0 -1
  275. package/dist/esm/utils/splitTextByLine.mjs +0 -11
  276. package/dist/esm/utils/splitTextByLine.mjs.map +0 -1
  277. package/dist/types/fill/autoFill.d.ts +0 -4
  278. package/dist/types/fill/autoFill.d.ts.map +0 -1
  279. package/dist/types/fill/index.d.ts.map +0 -1
  280. package/dist/types/index.d.ts.map +0 -1
  281. package/dist/types/utils/getChunk.d.ts +0 -9
  282. package/dist/types/utils/getChunk.d.ts.map +0 -1
  283. package/dist/types/utils/splitTextByLine.d.ts +0 -2
  284. package/dist/types/utils/splitTextByLine.d.ts.map +0 -1
  285. /package/dist/{cjs → assets}/prompts/REVIEW_PROMPT.md +0 -0
  286. /package/dist/{cjs → assets}/prompts/TRANSLATE_PROMPT.md +0 -0
  287. /package/dist/{cjs/utils/calculrateChunkTest.md → assets/utils/_calculateChunkTest.md} +0 -0
@@ -1,6 +1,8 @@
1
- import type { DictionaryAPI } from '@intlayer/backend';
2
- import { type IntlayerConfig } from '@intlayer/config/client';
3
- export type IntlayerMessageEvent = MessageEvent;
1
+ import { DictionaryAPI } from "@intlayer/backend";
2
+ import { IntlayerConfig } from "@intlayer/types";
3
+
4
+ //#region src/IntlayerEventListener.d.ts
5
+ type IntlayerMessageEvent = MessageEvent;
4
6
  /**
5
7
  * IntlayerEventListener class to listen for dictionary changes via SSE (Server-Sent Events).
6
8
  *
@@ -25,61 +27,63 @@ export type IntlayerMessageEvent = MessageEvent;
25
27
  * // eventListener.cleanup();
26
28
  * };
27
29
  */
28
- export declare class IntlayerEventListener {
29
- private intlayerConfig;
30
- private appLogger;
31
- private eventSource;
32
- private reconnectAttempts;
33
- private maxReconnectAttempts;
34
- private reconnectDelay;
35
- private isManuallyDisconnected;
36
- private reconnectTimeout;
37
- /**
38
- * Callback triggered when a Dictionary is ADDED.
39
- */
40
- onDictionaryAdded?: (dictionary: DictionaryAPI) => any;
41
- /**
42
- * Callback triggered when a Dictionary is UPDATED.
43
- */
44
- onDictionaryChange?: (dictionary: DictionaryAPI) => any;
45
- /**
46
- * Callback triggered when a Dictionary is DELETED.
47
- */
48
- onDictionaryDeleted?: (dictionary: DictionaryAPI) => any;
49
- /**
50
- * Callback triggered when connection is established or re-established.
51
- */
52
- onConnectionOpen?: () => any;
53
- /**
54
- * Callback triggered when connection encounters an error.
55
- */
56
- onConnectionError?: (error: Event) => any;
57
- constructor(intlayerConfig?: IntlayerConfig);
58
- /**
59
- * Initializes the EventSource connection using the given intlayerConfig
60
- * (or the default config if none was provided).
61
- */
62
- initialize(): Promise<void>;
63
- /**
64
- * Establishes the EventSource connection with automatic reconnection support.
65
- */
66
- private connect;
67
- /**
68
- * Cleans up (closes) the EventSource connection.
69
- */
70
- cleanup(): void;
71
- /**
72
- * Schedules a reconnection attempt with exponential backoff.
73
- */
74
- private scheduleReconnect;
75
- /**
76
- * Handles incoming SSE messages, parses the event data,
77
- * and invokes the appropriate callback.
78
- */
79
- private handleMessage;
80
- /**
81
- * Handles any SSE errors and attempts reconnection if appropriate.
82
- */
83
- private handleError;
30
+ declare class IntlayerEventListener {
31
+ private intlayerConfig;
32
+ private appLogger;
33
+ private eventSource;
34
+ private reconnectAttempts;
35
+ private maxReconnectAttempts;
36
+ private reconnectDelay;
37
+ private isManuallyDisconnected;
38
+ private reconnectTimeout;
39
+ /**
40
+ * Callback triggered when a Dictionary is ADDED.
41
+ */
42
+ onDictionaryAdded?: (dictionary: DictionaryAPI) => any;
43
+ /**
44
+ * Callback triggered when a Dictionary is UPDATED.
45
+ */
46
+ onDictionaryChange?: (dictionary: DictionaryAPI) => any;
47
+ /**
48
+ * Callback triggered when a Dictionary is DELETED.
49
+ */
50
+ onDictionaryDeleted?: (dictionary: DictionaryAPI) => any;
51
+ /**
52
+ * Callback triggered when connection is established or re-established.
53
+ */
54
+ onConnectionOpen?: () => any;
55
+ /**
56
+ * Callback triggered when connection encounters an error.
57
+ */
58
+ onConnectionError?: (error: Event) => any;
59
+ constructor(intlayerConfig?: IntlayerConfig);
60
+ /**
61
+ * Initializes the EventSource connection using the given intlayerConfig
62
+ * (or the default config if none was provided).
63
+ */
64
+ initialize(): Promise<void>;
65
+ /**
66
+ * Establishes the EventSource connection with automatic reconnection support.
67
+ */
68
+ private connect;
69
+ /**
70
+ * Cleans up (closes) the EventSource connection.
71
+ */
72
+ cleanup(): void;
73
+ /**
74
+ * Schedules a reconnection attempt with exponential backoff.
75
+ */
76
+ private scheduleReconnect;
77
+ /**
78
+ * Handles incoming SSE messages, parses the event data,
79
+ * and invokes the appropriate callback.
80
+ */
81
+ private handleMessage;
82
+ /**
83
+ * Handles any SSE errors and attempts reconnection if appropriate.
84
+ */
85
+ private handleError;
84
86
  }
87
+ //#endregion
88
+ export { IntlayerEventListener, IntlayerMessageEvent };
85
89
  //# sourceMappingURL=IntlayerEventListener.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IntlayerEventListener.d.ts","sourceRoot":"","sources":["../../src/IntlayerEventListener.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAoB,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EAAE,KAAK,cAAc,EAAgB,MAAM,yBAAyB,CAAC;AAG5E,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,qBAAqB;IAmCpB,OAAO,CAAC,cAAc;IAlClC,OAAO,CAAC,SAAS,CAA+B;IAEhD,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,iBAAiB,CAAK;IAC9B,OAAO,CAAC,oBAAoB,CAAK;IACjC,OAAO,CAAC,cAAc,CAAQ;IAC9B,OAAO,CAAC,sBAAsB,CAAS;IACvC,OAAO,CAAC,gBAAgB,CAA+B;IAEvD;;OAEG;IACI,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,GAAG,CAAC;IAE9D;;OAEG;IACI,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,GAAG,CAAC;IAE/D;;OAEG;IACI,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,aAAa,KAAK,GAAG,CAAC;IAEhE;;OAEG;IACI,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC;IAEpC;;OAEG;IACI,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,GAAG,CAAC;gBAE7B,cAAc,GAAE,cAA8B;IAIlE;;;OAGG;IACU,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAKxC;;OAEG;YACW,OAAO;IAgDrB;;OAEG;IACI,OAAO,IAAI,IAAI;IActB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAgCzB;;;OAGG;YACW,aAAa;IA2C3B;;OAEG;IACH,OAAO,CAAC,WAAW;CAwCpB"}
1
+ {"version":3,"file":"IntlayerEventListener.d.ts","names":[],"sources":["../../src/IntlayerEventListener.ts"],"sourcesContent":[],"mappings":";;;;KAQY,oBAAA,GAAuB;;AAAnC;AA0BA;;;;;;;;;;;;;;;;;;;;;;cAAa,qBAAA;;;;;;;;;;;;mCAa6B;;;;oCAKC;;;;qCAKC;;;;;;;;8BAUP;+BAEC;;;;;gBAQT"}
@@ -1,14 +1,17 @@
1
- import { type GetConfigurationOptions } from '@intlayer/config';
1
+ import { GetConfigurationOptions } from "@intlayer/config";
2
+
3
+ //#region src/build.d.ts
2
4
  type BuildOptions = {
3
- watch?: boolean;
4
- skipPrepare?: boolean;
5
- with?: string | string[];
6
- configOptions?: GetConfigurationOptions;
5
+ watch?: boolean;
6
+ skipPrepare?: boolean;
7
+ with?: string | string[];
8
+ configOptions?: GetConfigurationOptions;
7
9
  };
8
10
  /**
9
11
  * Get locales dictionaries .content.{json|ts|tsx|js|jsx|mjs|cjs} and build the JSON dictionaries in the .intlayer directory.
10
12
  * Watch mode available to get the change in the .content.{json|ts|tsx|js|jsx|mjs|cjs}
11
13
  */
12
- export declare const build: (options?: BuildOptions) => Promise<void>;
13
- export {};
14
+ declare const build: (options?: BuildOptions) => Promise<void>;
15
+ //#endregion
16
+ export { build };
14
17
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/build.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,kBAAkB,CAAC;AAE1B,KAAK,YAAY,GAAG;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAU,UAAU,YAAY,kBAiBjD,CAAC"}
1
+ {"version":3,"file":"build.d.ts","names":[],"sources":["../../src/build.ts"],"sourcesContent":[],"mappings":";;;KAUK,YAAA;;EAAA,WAAA,CAAA,EAAA,OAAY;EAWJ,IAAA,CAAA,EAAA,MAiBZ,GAAA,MAjBqC,EAAA;kBAPpB;;;;;;cAOL,kBAAyB,iBAAY"}
@@ -1,13 +1,15 @@
1
- import { Command } from 'commander';
2
- export declare const dirname: string;
1
+ import { Command } from "commander";
2
+
3
+ //#region src/cli.d.ts
4
+ declare const dirname: string;
3
5
  type LogOptions = {
4
- prefix?: string;
5
- verbose?: boolean;
6
+ prefix?: string;
7
+ verbose?: boolean;
6
8
  };
7
- export type ConfigurationOptions = {
8
- baseDir?: string;
9
- env?: string;
10
- envFile?: string;
9
+ type ConfigurationOptions = {
10
+ baseDir?: string;
11
+ env?: string;
12
+ envFile?: string;
11
13
  } & LogOptions;
12
14
  /**
13
15
  * Set the API for the CLI
@@ -17,6 +19,7 @@ export type ConfigurationOptions = {
17
19
  * npm run intlayer build --watch
18
20
  * npm run intlayer push --dictionaries id1 id2 id3 --deleteLocaleDir
19
21
  */
20
- export declare const setAPI: () => Command;
21
- export {};
22
+ declare const setAPI: () => Command;
23
+ //#endregion
24
+ export { ConfigurationOptions, dirname, setAPI };
22
25
  //# sourceMappingURL=cli.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA6BpC,eAAO,MAAM,OAAO,QAEP,CAAC;AA+Hd,KAAK,UAAU,GAAG;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,UAAU,CAAC;AA2Cf;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,QAAO,OA6azB,CAAC"}
1
+ {"version":3,"file":"cli.d.ts","names":[],"sources":["../../src/cli.ts"],"sourcesContent":[],"mappings":";;;cAgCa;KAqIR,UAAA;EArIQ,MAAA,CAAA,EAAA,MAEA;EAmIR,OAAA,CAAA,EAAA,OAAU;AAKf,CAAA;AAyDa,KAzDD,oBAAA,GAqkBX;;;;IAjkBG;;;;;;;;;cAqDS,cAAa"}
@@ -1,7 +1,10 @@
1
- import { type GetConfigurationOptions } from '@intlayer/config';
1
+ import { GetConfigurationOptions } from "@intlayer/config";
2
+
3
+ //#region src/config.d.ts
2
4
  type ConfigOptions = {
3
- configOptions?: GetConfigurationOptions;
5
+ configOptions?: GetConfigurationOptions;
4
6
  };
5
- export declare const getConfig: (options?: ConfigOptions) => void;
6
- export {};
7
+ declare const getConfig: (options?: ConfigOptions) => void;
8
+ //#endregion
9
+ export { getConfig };
7
10
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,kBAAkB,CAAC;AAE1B,KAAK,aAAa,GAAG;IACnB,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,UAAU,aAAa,SAShD,CAAC"}
1
+ {"version":3,"file":"config.d.ts","names":[],"sources":["../../src/config.ts"],"sourcesContent":[],"mappings":";;;KAMK,aAAA;kBACa;AAHQ,CAAA;AAMb,cAAA,SAAuB,EAAA,CAAA,OAAa,CAAb,EAAA,aAAa,EAAA,GAAA,IAAA"}
@@ -1,7 +1,9 @@
1
+ //#region src/editor.d.ts
1
2
  type StartEditorOptions = {
2
- env?: string;
3
- envFile?: string;
3
+ env?: string;
4
+ envFile?: string;
4
5
  };
5
- export declare const startEditor: (options: StartEditorOptions) => void;
6
- export {};
6
+ declare const startEditor: (options: StartEditorOptions) => void;
7
+ //#endregion
8
+ export { startEditor };
7
9
  //# sourceMappingURL=editor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../src/editor.ts"],"names":[],"mappings":"AAIA,KAAK,kBAAkB,GAAG;IACxB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,SAAS,kBAAkB,KAAG,IA4CzD,CAAC"}
1
+ {"version":3,"file":"editor.d.ts","names":[],"sources":["../../src/editor.ts"],"sourcesContent":[],"mappings":";KAKK,kBAAA;EAAA,GAAA,CAAA,EAAA,MAAA;EAKQ,OAAA,CAAA,EAAA,MA8CZ;;cA9CY,uBAAwB"}
@@ -1,19 +1,25 @@
1
- import { AIOptions } from '@intlayer/api';
2
- import { ListGitFilesOptions } from '@intlayer/chokidar';
3
- import { Locales } from '@intlayer/config';
4
- import { GetTargetDictionaryOptions } from '../getTargetDictionary';
5
- export type FillOptions = {
6
- sourceLocale?: Locales;
7
- outputLocales?: Locales | Locales[];
8
- mode?: 'complete' | 'review';
9
- gitOptions?: ListGitFilesOptions;
10
- aiOptions?: AIOptions;
11
- verbose?: boolean;
12
- nbConcurrentTranslations?: number;
13
- build?: boolean;
1
+ import { GetTargetDictionaryOptions } from "../getTargetDictionary.js";
2
+ import { Locale } from "@intlayer/types";
3
+ import { AIOptions } from "@intlayer/api";
4
+ import { ListGitFilesOptions } from "@intlayer/chokidar";
5
+
6
+ //#region src/fill/fill.d.ts
7
+ type FillOptions = {
8
+ sourceLocale?: Locale;
9
+ outputLocales?: Locale | Locale[];
10
+ mode?: 'complete' | 'review';
11
+ gitOptions?: ListGitFilesOptions;
12
+ aiOptions?: AIOptions;
13
+ verbose?: boolean;
14
+ nbConcurrentTranslations?: number;
15
+ nbConcurrentTasks?: number;
16
+ build?: boolean;
17
+ skipMetadata?: boolean;
14
18
  } & GetTargetDictionaryOptions;
15
19
  /**
16
20
  * Fill translations based on the provided options.
17
21
  */
18
- export declare const fill: (options: FillOptions) => Promise<void>;
22
+ declare const fill: (options?: FillOptions) => Promise<void>;
23
+ //#endregion
24
+ export { FillOptions, fill };
19
25
  //# sourceMappingURL=fill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../../../src/fill/fill.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AAC/D,OAAO,EAGL,mBAAmB,EAOpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAQL,OAAO,EACR,MAAM,kBAAkB,CAAC;AAU1B,OAAO,EAEL,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAOhC,MAAM,MAAM,WAAW,GAAG;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,CAAC;IACpC,IAAI,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IAC7B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,0BAA0B,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,IAAI,GAAU,SAAS,WAAW,KAAG,OAAO,CAAC,IAAI,CAiV7D,CAAC"}
1
+ {"version":3,"file":"fill.d.ts","names":[],"sources":["../../../src/fill/fill.ts"],"sourcesContent":[],"mappings":";;;;;;KAoCY,WAAA;iBACK;EADL,aAAA,CAAW,EAEL,MAFK,GAEI,MAFJ,EAAA;EACN,IAAA,CAAA,EAAA,UAAA,GAAA,QAAA;EACC,UAAA,CAAA,EAEH,mBAFG;EAAS,SAAA,CAAA,EAGb,SAHa;EAEZ,OAAA,CAAA,EAAA,OAAA;EACD,wBAAA,CAAA,EAAA,MAAA;EAMV,iBAAA,CAAA,EAAA,MAAA;EAA0B,KAAA,CAAA,EAAA,OAAA;EAKjB,YAmIZ,CAAA,EAAA,OAnIoC;IALjC;;;;cAKS,iBAAwB,gBAAc"}
@@ -1,9 +1,12 @@
1
- import { type IntlayerConfig, Locales } from '@intlayer/config';
2
- import { type AutoFill } from '@intlayer/core';
3
- export type AutoFillData = {
4
- localeList: Locales[];
5
- filePath: string;
6
- isPerLocale: boolean;
1
+ import { Fill, IntlayerConfig, LocalesValues } from "@intlayer/types";
2
+
3
+ //#region src/fill/formatAutoFillData.d.ts
4
+ type FillData = {
5
+ localeList: LocalesValues[];
6
+ filePath: string;
7
+ isPerLocale: boolean;
7
8
  };
8
- export declare const formatAutoFillData: (autoFillField: AutoFill, localeList: Locales[], filePath: string, dictionaryKey: string, configuration: IntlayerConfig) => AutoFillData[];
9
+ declare const formatFillData: (autoFillField: Fill, localeList: LocalesValues[], filePath: string, dictionaryKey: string, configuration: IntlayerConfig) => FillData[];
10
+ //#endregion
11
+ export { FillData, formatFillData };
9
12
  //# sourceMappingURL=formatAutoFillData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatAutoFillData.d.ts","sourceRoot":"","sources":["../../../src/fill/formatAutoFillData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAI/C,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,OAAO,EAAE,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,eAAe,QAAQ,EACvB,YAAY,OAAO,EAAE,EACrB,UAAU,MAAM,EAChB,eAAe,MAAM,EACrB,eAAe,cAAc,KAC5B,YAAY,EAmGd,CAAC"}
1
+ {"version":3,"file":"formatAutoFillData.d.ts","names":[],"sources":["../../../src/fill/formatAutoFillData.ts"],"sourcesContent":[],"mappings":";;;KAIY,QAAA;cACE;EADF,QAAA,EAAA,MAAQ;EAMP,WAAA,EAAA,OA2FZ;CA1FgB;AACH,cAFD,cAEC,EAAA,CAAA,aAAA,EADG,IACH,EAAA,UAAA,EAAA,aAAA,EAAA,EAAA,QAAA,EAAA,MAAA,EAAA,aAAA,EAAA,MAAA,EAAA,aAAA,EAGG,cAHH,EAAA,GAIX,QAJW,EAAA"}
@@ -1,3 +1,7 @@
1
- import { Locales } from '@intlayer/config';
2
- export declare const formatAutoFilledFilePath: (autoFillField: string, dictionaryKey: string, dictionaryFilePath: string, baseDir: string, locale?: Locales) => string;
1
+ import { LocalesValues } from "@intlayer/types";
2
+
3
+ //#region src/fill/formatAutoFilledFilePath.d.ts
4
+ declare const formatAutoFilledFilePath: (autoFillField: string, dictionaryKey: string, dictionaryFilePath: string, baseDir: string, locale?: LocalesValues) => string;
5
+ //#endregion
6
+ export { formatAutoFilledFilePath };
3
7
  //# sourceMappingURL=formatAutoFilledFilePath.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatAutoFilledFilePath.d.ts","sourceRoot":"","sources":["../../../src/fill/formatAutoFilledFilePath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAmB3C,eAAO,MAAM,wBAAwB,GACnC,eAAe,MAAM,EACrB,eAAe,MAAM,EACrB,oBAAoB,MAAM,EAC1B,SAAS,MAAM,EACf,SAAS,OAAO,WAkBjB,CAAC"}
1
+ {"version":3,"file":"formatAutoFilledFilePath.d.ts","names":[],"sources":["../../../src/fill/formatAutoFilledFilePath.ts"],"sourcesContent":[],"mappings":";;;cAUa,+HAKF"}
@@ -0,0 +1,12 @@
1
+ import { Fill, IntlayerConfig, LocalesValues } from "@intlayer/types";
2
+
3
+ //#region src/fill/formatFillData.d.ts
4
+ type FillData = {
5
+ localeList: LocalesValues[];
6
+ filePath: string;
7
+ isPerLocale: boolean;
8
+ };
9
+ declare const formatFillData: (autoFillField: Fill, localeList: LocalesValues[], filePath: string, dictionaryKey: string, configuration: IntlayerConfig) => FillData[];
10
+ //#endregion
11
+ export { FillData, formatFillData };
12
+ //# sourceMappingURL=formatFillData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatFillData.d.ts","names":[],"sources":["../../../src/fill/formatFillData.ts"],"sourcesContent":[],"mappings":";;;KAGY,QAAA;cACE;EADF,QAAA,EAAA,MAAQ;EAMP,WAAA,EAAA,OA2FZ;CA1FgB;AACH,cAFD,cAEC,EAAA,CAAA,aAAA,EADG,IACH,EAAA,UAAA,EAAA,aAAA,EAAA,EAAA,QAAA,EAAA,MAAA,EAAA,aAAA,EAAA,MAAA,EAAA,aAAA,EAGG,cAHH,EAAA,GAIX,QAJW,EAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/fill/groupLimiter.d.ts
2
+ type GroupLimiter = {
3
+ schedule: <T>(fn: () => Promise<T>) => void;
4
+ done: () => Promise<void>;
5
+ activeCount: () => number;
6
+ pendingCount: () => number;
7
+ };
8
+ /**
9
+ * Creates a group limiter that controls concurrency and provides a sync point
10
+ * to wait for all scheduled tasks to complete.
11
+ */
12
+ declare const makeGroupLimiter: (concurrency: number) => GroupLimiter;
13
+ //#endregion
14
+ export { GroupLimiter, makeGroupLimiter };
15
+ //# sourceMappingURL=groupLimiter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"groupLimiter.d.ts","names":[],"sources":["../../../src/fill/groupLimiter.ts"],"sourcesContent":[],"mappings":";KAEY,YAAA;EAAA,QAAA,EAAA,CAAA,CAAA,CAAA,CAAA,EAAY,EAAA,GAAA,GACE,OADF,CACU,CADV,CAAA,EAAA,GAAA,IAAA;EACU,IAAA,EAAA,GAAA,GACpB,OADoB,CAAA,IAAA,CAAA;EAAR,WAAA,EAAA,GAAA,GAAA,MAAA;EACZ,YAAA,EAAA,GAAA,GAAA,MAAA;CAAO;AAiBrB;;;;cAAa,2CAA0C"}
@@ -1,3 +1,3 @@
1
- export * from './autoFill';
2
- export * from './fill';
3
- //# sourceMappingURL=index.d.ts.map
1
+ import { FillOptions, fill } from "./fill.js";
2
+ import { writeFill } from "./writeFill.js";
3
+ export { FillOptions, fill, writeFill };
@@ -0,0 +1,15 @@
1
+ import { IntlayerConfig, LocalDictionaryId, Locale } from "@intlayer/types";
2
+
3
+ //#region src/fill/listTranslationsTasks.d.ts
4
+ type TranslationTask = {
5
+ dictionaryKey: string;
6
+ dictionaryLocalId: LocalDictionaryId;
7
+ sourceLocale: Locale;
8
+ targetLocales: Locale[];
9
+ dictionaryPreset: string;
10
+ dictionaryFilePath: string;
11
+ };
12
+ declare const listTranslationsTasks: (localIds: LocalDictionaryId[], outputLocales: Locale[], mode: "complete" | "review", baseLocale: Locale, configuration: IntlayerConfig) => TranslationTask[];
13
+ //#endregion
14
+ export { TranslationTask, listTranslationsTasks };
15
+ //# sourceMappingURL=listTranslationsTasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listTranslationsTasks.d.ts","names":[],"sources":["../../../src/fill/listTranslationsTasks.ts"],"sourcesContent":[],"mappings":";;;KAwBY,eAAA;;EAAA,iBAAA,EAES,iBAFM;EAEN,YAAA,EACL,MADK;EACL,aAAA,EACC,MADD,EAAA;EACC,gBAAA,EAAA,MAAA;EAAM,kBAAA,EAAA,MAAA;AAKvB,CAAA;AACY,cADC,qBACD,EAAA,CAAA,QAAA,EAAA,iBAAA,EAAA,EAAA,aAAA,EACK,MADL,EAAA,EAAA,IAAA,EAAA,UAAA,GAAA,QAAA,EAAA,UAAA,EAGE,MAHF,EAAA,aAAA,EAIK,cAJL,EAAA,GAKT,eALS,EAAA"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,19 @@
1
+ import { TranslationTask } from "./listTranslationsTasks.js";
2
+ import { Dictionary, IntlayerConfig } from "@intlayer/types";
3
+ import { AIOptions } from "@intlayer/api";
4
+ import * as _intlayer_chokidar0 from "@intlayer/chokidar";
5
+
6
+ //#region src/fill/translateDictionary.d.ts
7
+ type TranslateDictionaryResult = TranslationTask & {
8
+ dictionaryOutput: Dictionary | null;
9
+ };
10
+ type TranslateDictionaryOptions = {
11
+ mode: 'complete' | 'review';
12
+ aiOptions?: AIOptions;
13
+ fillMetadata?: boolean;
14
+ onHandle?: ReturnType<typeof _intlayer_chokidar0.getGlobalLimiter>;
15
+ };
16
+ declare const translateDictionary: (task: TranslationTask, configuration: IntlayerConfig, options?: TranslateDictionaryOptions) => Promise<TranslateDictionaryResult>;
17
+ //#endregion
18
+ export { translateDictionary };
19
+ //# sourceMappingURL=translateDictionary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"translateDictionary.d.ts","names":[],"sources":["../../../src/fill/translateDictionary.ts"],"sourcesContent":[],"mappings":";;;;;;KA6BK,yBAAA,GAA4B;oBACb;;AAH2C,KAM1D,0BAAA,GAJyB;EAIzB,IAAA,EAAA,UAAA,GAAA,QAAA;EAES,SAAA,CAAA,EAAA,SAAA;EAAS,YAAA,CAAA,EAAA,OAEqC;EAA/C,QAAA,CAAA,EAAA,UAAA,CAAA,OAFU,mBAAA,CAEqC,gBAA/C,CAAA;CAAU;AAWV,cAAA,mBAwSZ,EAAA,CAAA,IAAA,EAvSO,eAuSP,EAAA,aAAA,EAtSgB,cAsShB,EAAA,OAAA,CAAA,EArSW,0BAqSX,EAAA,GApSE,OAoSF,CApSU,yBAoSV,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { Dictionary, IntlayerConfig, Locale } from "@intlayer/types";
2
+
3
+ //#region src/fill/writeAutoFill.d.ts
4
+ declare const writeFill: (contentDeclarationFile: Dictionary, outputLocales: Locale[], parentLocales: Locale[], configuration: IntlayerConfig) => Promise<void>;
5
+ //#endregion
6
+ export { writeFill };
7
+ //# sourceMappingURL=writeAutoFill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeAutoFill.d.ts","names":[],"sources":["../../../src/fill/writeAutoFill.ts"],"sourcesContent":[],"mappings":";;;cAWa,oCACa,2BACT,yBACA,yBACA,mBAAc"}
@@ -0,0 +1,7 @@
1
+ import { Dictionary, IntlayerConfig, Locale } from "@intlayer/types";
2
+
3
+ //#region src/fill/writeFill.d.ts
4
+ declare const writeFill: (contentDeclarationFile: Dictionary, outputLocales: Locale[], parentLocales: Locale[], configuration: IntlayerConfig) => Promise<void>;
5
+ //#endregion
6
+ export { writeFill };
7
+ //# sourceMappingURL=writeFill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeFill.d.ts","names":[],"sources":["../../../src/fill/writeFill.ts"],"sourcesContent":[],"mappings":";;;cAWa,oCACa,2BACT,yBACA,yBACA,mBAAc"}
@@ -1,15 +1,19 @@
1
- import { ListGitFilesOptions } from '@intlayer/chokidar';
2
- import { GetConfigurationOptions } from '@intlayer/config';
3
- import { Dictionary } from '@intlayer/core';
4
- export declare const ensureArray: <T>(value: T | T[]) => T[];
5
- export type GetTargetDictionaryOptions = {
6
- file?: string | string[];
7
- keys?: string | string[];
8
- excludedKeys?: string | string[];
9
- filter?: (entry: Dictionary) => boolean;
10
- pathFilter?: string | string[];
11
- gitOptions?: ListGitFilesOptions;
12
- configOptions?: GetConfigurationOptions;
1
+ import { Dictionary } from "@intlayer/types";
2
+ import { GetConfigurationOptions } from "@intlayer/config";
3
+ import { ListGitFilesOptions } from "@intlayer/chokidar";
4
+
5
+ //#region src/getTargetDictionary.d.ts
6
+ declare const ensureArray: <T>(value: T | T[]) => T[];
7
+ type GetTargetDictionaryOptions = {
8
+ file?: string | string[];
9
+ keys?: string | string[];
10
+ excludedKeys?: string | string[];
11
+ filter?: (entry: Dictionary) => boolean;
12
+ pathFilter?: string | string[];
13
+ gitOptions?: ListGitFilesOptions;
14
+ configOptions?: GetConfigurationOptions;
13
15
  };
14
- export declare const getTargetUnmergedDictionaries: (options: GetTargetDictionaryOptions) => Promise<Dictionary[]>;
16
+ declare const getTargetUnmergedDictionaries: (options?: GetTargetDictionaryOptions) => Promise<Dictionary[]>;
17
+ //#endregion
18
+ export { GetTargetDictionaryOptions, ensureArray, getTargetUnmergedDictionaries };
15
19
  //# sourceMappingURL=getTargetDictionary.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getTargetDictionary.d.ts","sourceRoot":"","sources":["../../src/getTargetDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAoB,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAI5C,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,KAAG,CAAC,EAA2B,CAAC;AAG7E,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,CAAC;IACxC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,6BAA6B,GACxC,SAAS,0BAA0B,KAClC,OAAO,CAAC,UAAU,EAAE,CA8DtB,CAAC"}
1
+ {"version":3,"file":"getTargetDictionary.d.ts","names":[],"sources":["../../src/getTargetDictionary.ts"],"sourcesContent":[],"mappings":";;;;;cASa,wBAAyB,IAAI,QAAM;KAGpC,0BAAA;EAHC,IAAA,CAAA,EAAA,MAAA,GAA+D,MAAA,EAAA;EAAtC,IAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA;EAAI,YAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA;EAAM,MAAA,CAAA,EAAA,CAAA,KAAA,EAO7B,UAP6B,EAAA,GAAA,OAAA;EAAC,UAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA;EAGrC,UAAA,CAAA,EAMG,mBANuB;EAInB,aAAA,CAAA,EAGD,uBAHC;CAEJ;AACG,cAGL,6BAHK,EAAA,CAAA,OAAA,CAAA,EAIN,0BAJM,EAAA,GAKf,OALe,CAKP,UALO,EAAA,CAAA"}
@@ -1,14 +1,15 @@
1
- export type * from '@intlayer/chokidar';
2
- export * from './build';
3
- export * from './cli';
4
- export * from './editor';
5
- export * from './fill/fill';
6
- export * from './listContentDeclaration';
7
- export * from './liveSync';
8
- export * from './pull';
9
- export * from './push/push';
10
- export * from './pushConfig';
11
- export * from './reviewDoc';
12
- export * from './test';
13
- export * from './translateDoc';
14
- //# sourceMappingURL=index.d.ts.map
1
+ import { build } from "./build.js";
2
+ import { ConfigurationOptions, dirname, setAPI } from "./cli.js";
3
+ import { startEditor } from "./editor.js";
4
+ import { FillOptions, fill } from "./fill/fill.js";
5
+ import { listContentDeclaration, listContentDeclarationRows } from "./listContentDeclaration.js";
6
+ import { liveSync } from "./liveSync.js";
7
+ import { pull } from "./pull.js";
8
+ import { push } from "./push/push.js";
9
+ import { pushConfig } from "./pushConfig.js";
10
+ import { reviewDoc, reviewFile } from "./reviewDoc.js";
11
+ import { listMissingTranslations } from "./test/listMissingTranslations.js";
12
+ import { testMissingTranslations } from "./test/index.js";
13
+ import { translateDoc, translateFile } from "./translateDoc.js";
14
+ export * from "@intlayer/chokidar";
15
+ export { ConfigurationOptions, FillOptions, build, dirname, fill, listContentDeclaration, listContentDeclarationRows, listMissingTranslations, liveSync, pull, push, pushConfig, reviewDoc, reviewFile, setAPI, startEditor, testMissingTranslations, translateDoc, translateFile };
@@ -1,11 +1,14 @@
1
- import { type GetConfigurationOptions } from '@intlayer/config';
1
+ import { GetConfigurationOptions } from "@intlayer/config";
2
+
3
+ //#region src/listContentDeclaration.d.ts
2
4
  type ListContentDeclarationOptions = {
3
- configOptions?: GetConfigurationOptions;
5
+ configOptions?: GetConfigurationOptions;
4
6
  };
5
- export declare const listContentDeclarationRows: (options?: ListContentDeclarationOptions) => {
6
- key: string;
7
- path: string;
7
+ declare const listContentDeclarationRows: (options?: ListContentDeclarationOptions) => {
8
+ key: string;
9
+ path: string;
8
10
  }[];
9
- export declare const listContentDeclaration: (options?: ListContentDeclarationOptions) => void;
10
- export {};
11
+ declare const listContentDeclaration: (options?: ListContentDeclarationOptions) => void;
12
+ //#endregion
13
+ export { listContentDeclaration, listContentDeclarationRows };
11
14
  //# sourceMappingURL=listContentDeclaration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"listContentDeclaration.d.ts","sourceRoot":"","sources":["../../src/listContentDeclaration.ts"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,uBAAuB,EAC7B,MAAM,kBAAkB,CAAC;AAI1B,KAAK,6BAA6B,GAAG;IACnC,aAAa,CAAC,EAAE,uBAAuB,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,UAAU,6BAA6B;;;GAaxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,UAAU,6BAA6B,SA+BxC,CAAC"}
1
+ {"version":3,"file":"listContentDeclaration.d.ts","names":[],"sources":["../../src/listContentDeclaration.ts"],"sourcesContent":[],"mappings":";;;KAYK,6BAAA;kBACa;AAJQ,CAAA;AAOb,cAAA,0BACD,EAAA,CAAA,OAA6B,CAA7B,EAAA,6BAA6B,EAAA,GAAA;EAe5B,GAAA,EAAA,MAAA;;;cAAA,mCACD"}
@@ -1,6 +1,11 @@
1
+ import { GetConfigurationOptions } from "@intlayer/config";
2
+
3
+ //#region src/liveSync.d.ts
1
4
  type LiveSyncOptions = {
2
- with?: string | string[];
5
+ with?: string | string[];
6
+ configOptions?: GetConfigurationOptions;
3
7
  };
4
- export declare const liveSync: (options?: LiveSyncOptions) => Promise<void>;
5
- export {};
8
+ declare const liveSync: (options?: LiveSyncOptions) => Promise<void>;
9
+ //#endregion
10
+ export { liveSync };
6
11
  //# sourceMappingURL=liveSync.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"liveSync.d.ts","sourceRoot":"","sources":["../../src/liveSync.ts"],"names":[],"mappings":"AAgBA,KAAK,eAAe,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC1B,CAAC;AAWF,eAAO,MAAM,QAAQ,GAAU,UAAU,eAAe,kBA0OvD,CAAC"}
1
+ {"version":3,"file":"liveSync.d.ts","names":[],"sources":["../../src/liveSync.ts"],"sourcesContent":[],"mappings":";;;KAiBK,eAAA;;EAAA,aAAA,CAAA,EAEa,uBAAA;AAYlB,CAAA;cAAa,qBAA4B,oBAAe"}