@focus-reactive/payload-plugin-translator 0.1.4 → 0.1.6

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 (288) hide show
  1. package/README.md +86 -95
  2. package/dist/client/app/cache/CacheProvider.d.ts +1 -2
  3. package/dist/client/app/cache/CacheProvider.export.d.ts +0 -1
  4. package/dist/client/app/config/TranslateKitConfigContext.d.ts +1 -2
  5. package/dist/client/app/config/index.d.ts +0 -1
  6. package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.d.ts +0 -1
  7. package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.d.ts +0 -1
  8. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.d.ts +0 -1
  9. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.d.ts +0 -1
  10. package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.d.ts +0 -1
  11. package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.d.ts +7 -72
  12. package/dist/client/entities/translation/api/queries/useDocumentTranslation.d.ts +7 -72
  13. package/dist/client/entities/translation/index.d.ts +0 -1
  14. package/dist/client/entities/translation/model/enums.d.ts +0 -1
  15. package/dist/client/entities/translation/model/enums.js +3 -3
  16. package/dist/client/entities/translation/model/types.d.ts +0 -1
  17. package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.d.ts +1 -2
  18. package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.d.ts +0 -1
  19. package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.d.ts +1 -2
  20. package/dist/client/entities/translation/ui/FailedTranslationStatus/index.d.ts +0 -1
  21. package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.d.ts +1 -2
  22. package/dist/client/entities/translation/ui/PendingTranslationStatus/index.d.ts +0 -1
  23. package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.d.ts +1 -2
  24. package/dist/client/entities/translation/ui/RunningTranslationStatus/index.d.ts +0 -1
  25. package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.d.ts +1 -2
  26. package/dist/client/entities/translation/ui/TranslationDirection/index.d.ts +0 -1
  27. package/dist/client/features/collection-translation-form/index.client.d.ts +0 -1
  28. package/dist/client/features/collection-translation-form/index.d.ts +0 -1
  29. package/dist/client/features/collection-translation-form/model/constants.d.ts +0 -1
  30. package/dist/client/features/collection-translation-form/model/form-model.d.ts +0 -1
  31. package/dist/client/features/collection-translation-form/model/index.d.ts +0 -1
  32. package/dist/client/features/collection-translation-form/model/schema.d.ts +0 -1
  33. package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.d.ts +1 -2
  34. package/dist/client/features/collection-translation-form/ui/index.d.ts +0 -1
  35. package/dist/client/features/collection-translation-popup/index.d.ts +0 -1
  36. package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts +1 -2
  37. package/dist/client/features/collection-translation-progress/index.d.ts +0 -1
  38. package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts +1 -2
  39. package/dist/client/features/document-translation-progress-failed/index.d.ts +0 -1
  40. package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.d.ts +1 -2
  41. package/dist/client/features/document-translation-progress-pending/index.d.ts +0 -1
  42. package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.d.ts +1 -2
  43. package/dist/client/features/document-translation-progress-running/index.d.ts +0 -1
  44. package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.d.ts +1 -2
  45. package/dist/client/features/open-document-translation-popup/index.d.ts +0 -1
  46. package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.d.ts +1 -2
  47. package/dist/client/features/translate-document-form/index.client.d.ts +0 -1
  48. package/dist/client/features/translate-document-form/index.d.ts +0 -1
  49. package/dist/client/features/translate-document-form/model/constants.d.ts +0 -1
  50. package/dist/client/features/translate-document-form/model/form-model.d.ts +0 -1
  51. package/dist/client/features/translate-document-form/model/index.d.ts +0 -1
  52. package/dist/client/features/translate-document-form/model/schema.d.ts +0 -1
  53. package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.d.ts +1 -2
  54. package/dist/client/features/translate-document-form/ui/index.d.ts +0 -1
  55. package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.d.ts +1 -2
  56. package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.d.ts +1 -2
  57. package/dist/client/shared/lib/assets/icons/ReloadIcon.d.ts +1 -2
  58. package/dist/client/shared/lib/errors/handleApiError.d.ts +0 -1
  59. package/dist/client/shared/lib/errors/handleApiError.js +3 -1
  60. package/dist/client/shared/lib/forms/handle-form-error.d.ts +0 -1
  61. package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.d.ts +0 -1
  62. package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.d.ts +0 -1
  63. package/dist/client/shared/lib/payload/hooks/useLocaleOptions.d.ts +0 -1
  64. package/dist/client/shared/lib/utils/errors/handleApiError.d.ts +0 -1
  65. package/dist/client/shared/lib/utils/errors/handleApiError.js +3 -1
  66. package/dist/client/shared/lib/utils/react/useToggle.d.ts +0 -1
  67. package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.d.ts +0 -1
  68. package/dist/client/shared/providers/CacheClientProvider/index.d.ts +0 -1
  69. package/dist/client/shared/types/AccessGuard.d.ts +0 -1
  70. package/dist/client/shared/types/PayloadComponentExport.d.ts +0 -1
  71. package/dist/client/shared/ui/Alert/Alert.d.ts +0 -1
  72. package/dist/client/shared/ui/Alert/index.d.ts +0 -1
  73. package/dist/client/shared/ui/Button/Button.d.ts +0 -1
  74. package/dist/client/shared/ui/Button/index.d.ts +0 -1
  75. package/dist/client/shared/ui/Checkbox/Checkbox.d.ts +0 -1
  76. package/dist/client/shared/ui/Checkbox/index.d.ts +0 -1
  77. package/dist/client/shared/ui/ColorIndicator/ColorIndicator.d.ts +1 -2
  78. package/dist/client/shared/ui/ColorIndicator/index.d.ts +0 -1
  79. package/dist/client/shared/ui/Description/Description.d.ts +1 -2
  80. package/dist/client/shared/ui/Description/index.d.ts +0 -1
  81. package/dist/client/shared/ui/Divider/Divider.d.ts +0 -1
  82. package/dist/client/shared/ui/Divider/index.d.ts +0 -1
  83. package/dist/client/shared/ui/Label/Label.d.ts +0 -1
  84. package/dist/client/shared/ui/Label/index.d.ts +0 -1
  85. package/dist/client/shared/ui/Loading/Loading.d.ts +1 -2
  86. package/dist/client/shared/ui/Loading/index.d.ts +0 -1
  87. package/dist/client/shared/ui/Popup/Popup.d.ts +1 -2
  88. package/dist/client/shared/ui/Popup/index.d.ts +0 -1
  89. package/dist/client/shared/ui/ProgressBar/ProgressBar.d.ts +1 -2
  90. package/dist/client/shared/ui/ProgressBar/index.d.ts +0 -1
  91. package/dist/client/shared/ui/Select/Select.d.ts +2 -3
  92. package/dist/client/shared/ui/Select/index.d.ts +0 -1
  93. package/dist/client/shared/ui/StatusCounter/StatusCounter.d.ts +1 -2
  94. package/dist/client/shared/ui/StatusCounter/index.d.ts +0 -1
  95. package/dist/client/shared/ui/StatusIndicator/StatusIndicator.d.ts +1 -2
  96. package/dist/client/shared/ui/StatusIndicator/index.d.ts +0 -1
  97. package/dist/client/shared/ui/Tooltip/Tooltip.d.ts +1 -2
  98. package/dist/client/shared/ui/Tooltip/index.d.ts +0 -1
  99. package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.d.ts +1 -2
  100. package/dist/client/shared/ui/form/FormCheckbox/index.d.ts +0 -1
  101. package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.d.ts +1 -2
  102. package/dist/client/shared/ui/form/FormCheckboxPublish/index.d.ts +0 -1
  103. package/dist/client/shared/ui/form/FormSelect/FormSelect.d.ts +1 -2
  104. package/dist/client/shared/ui/form/FormSelect/index.d.ts +0 -1
  105. package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.d.ts +1 -2
  106. package/dist/client/shared/ui/form/FormSelectLocale/index.d.ts +0 -1
  107. package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.d.ts +1 -2
  108. package/dist/client/shared/ui/form/FormSelectStrategy/index.d.ts +0 -1
  109. package/dist/client/shared/utils/componentPath.d.ts +0 -1
  110. package/dist/client/widgets/bulk-translation-dashboard/index.d.ts +0 -1
  111. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.d.ts +1 -2
  112. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts +0 -1
  113. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js +2 -1
  114. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts +1 -2
  115. package/dist/client/widgets/bulk-translation-dashboard/ui/index.d.ts +0 -1
  116. package/dist/client/widgets/translate-document/index.d.ts +0 -1
  117. package/dist/client/widgets/translate-document/ui/TranslateDocument.d.ts +1 -2
  118. package/dist/client/widgets/translate-document/ui/TranslateDocument.export.d.ts +0 -1
  119. package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js +2 -1
  120. package/dist/client/widgets/translate-document/ui/TranslateDocument.server.d.ts +1 -2
  121. package/dist/client/widgets/translate-document/ui/index.d.ts +0 -1
  122. package/dist/field-config.d.ts +0 -1
  123. package/dist/index.d.ts +0 -1
  124. package/dist/plugin.d.ts +0 -1
  125. package/dist/server/features/_lib/collection-utils.d.ts +0 -1
  126. package/dist/server/features/_lib/index.d.ts +0 -1
  127. package/dist/server/features/cancel/handler.d.ts +0 -1
  128. package/dist/server/features/cancel/index.d.ts +0 -1
  129. package/dist/server/features/cancel/model.d.ts +4 -5
  130. package/dist/server/features/cancel/model.js +4 -3
  131. package/dist/server/features/cancel/route.d.ts +0 -1
  132. package/dist/server/features/cancel-by-collection/handler.d.ts +0 -1
  133. package/dist/server/features/cancel-by-collection/index.d.ts +0 -1
  134. package/dist/server/features/cancel-by-collection/model.d.ts +0 -1
  135. package/dist/server/features/cancel-by-collection/route.d.ts +0 -1
  136. package/dist/server/features/enqueue-translation/handler.d.ts +0 -1
  137. package/dist/server/features/enqueue-translation/index.d.ts +0 -1
  138. package/dist/server/features/enqueue-translation/model.d.ts +0 -1
  139. package/dist/server/features/enqueue-translation/route.d.ts +0 -1
  140. package/dist/server/features/get-collection-status/handler.d.ts +0 -1
  141. package/dist/server/features/get-collection-status/index.d.ts +0 -1
  142. package/dist/server/features/get-collection-status/model.d.ts +0 -1
  143. package/dist/server/features/get-collection-status/route.d.ts +0 -1
  144. package/dist/server/features/get-document-status/handler.d.ts +0 -1
  145. package/dist/server/features/get-document-status/index.d.ts +0 -1
  146. package/dist/server/features/get-document-status/model.d.ts +10 -7
  147. package/dist/server/features/get-document-status/model.js +8 -5
  148. package/dist/server/features/get-document-status/route.d.ts +0 -1
  149. package/dist/server/features/index.d.ts +0 -1
  150. package/dist/server/features/run-translation/handler.d.ts +0 -1
  151. package/dist/server/features/run-translation/index.d.ts +0 -1
  152. package/dist/server/features/run-translation/model.d.ts +8 -5
  153. package/dist/server/features/run-translation/model.js +8 -3
  154. package/dist/server/features/run-translation/route.d.ts +0 -1
  155. package/dist/server/features/translate-document/handler.d.ts +0 -1
  156. package/dist/server/features/translate-document/index.d.ts +0 -1
  157. package/dist/server/features/translate-document/model.d.ts +0 -1
  158. package/dist/server/features/translate-document/task.d.ts +0 -1
  159. package/dist/server/index.d.ts +0 -1
  160. package/dist/server/modules/index.d.ts +0 -1
  161. package/dist/server/modules/task-runner/TaskRunner.interface.d.ts +0 -1
  162. package/dist/server/modules/task-runner/TaskRunnerProvider.interface.d.ts +3 -4
  163. package/dist/server/modules/task-runner/index.d.ts +0 -1
  164. package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.d.ts +1 -2
  165. package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.d.ts +80 -5
  166. package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.js +98 -38
  167. package/dist/server/modules/task-runner/payload-jobs-runner/index.d.ts +0 -1
  168. package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.d.ts +0 -1
  169. package/dist/server/modules/task-runner/payload-jobs-runner/types.d.ts +0 -1
  170. package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.d.ts +0 -1
  171. package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.d.ts +0 -1
  172. package/dist/server/modules/task-runner/sync-runner/index.d.ts +0 -1
  173. package/dist/server/modules/task-runner/sync-runner/types.d.ts +0 -1
  174. package/dist/server/modules/task-runner/types.d.ts +0 -1
  175. package/dist/server/modules/translation-pipeline/TranslationPipeline.d.ts +0 -1
  176. package/dist/server/modules/translation-pipeline/index.d.ts +0 -1
  177. package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.d.ts +0 -1
  178. package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.d.ts +0 -1
  179. package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.d.ts +0 -1
  180. package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.d.ts +0 -1
  181. package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.js +2 -1
  182. package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.d.ts +0 -1
  183. package/dist/server/modules/translation-pipeline/stages/field-collector/index.d.ts +0 -1
  184. package/dist/server/modules/translation-pipeline/stages/index.d.ts +0 -1
  185. package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts +0 -1
  186. package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.d.ts +0 -1
  187. package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts +0 -1
  188. package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.d.ts +0 -1
  189. package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.d.ts +0 -1
  190. package/dist/server/modules/translation-pipeline/stages/text-expander/index.d.ts +0 -1
  191. package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.d.ts +0 -1
  192. package/dist/server/modules/translation-pipeline/stages/translation/index.d.ts +0 -1
  193. package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.d.ts +0 -1
  194. package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.d.ts +0 -1
  195. package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.d.ts +0 -1
  196. package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.d.ts +0 -1
  197. package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.d.ts +0 -1
  198. package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.d.ts +0 -1
  199. package/dist/server/modules/translation-pipeline/strategies/index.d.ts +0 -1
  200. package/dist/server/modules/translation-pipeline/types/FieldChunk.d.ts +0 -1
  201. package/dist/server/modules/translation-pipeline/types/Pipeline.d.ts +0 -1
  202. package/dist/server/modules/translation-pipeline/types/PipelineContext.d.ts +0 -1
  203. package/dist/server/modules/translation-pipeline/types/TextChunk.d.ts +0 -1
  204. package/dist/server/modules/translation-pipeline/types/index.d.ts +0 -1
  205. package/dist/server/modules/translation-providers/OpenAITranslation.provider.d.ts +1 -2
  206. package/dist/server/modules/translation-providers/TranslationProvider.interface.d.ts +0 -1
  207. package/dist/server/modules/translation-providers/index.d.ts +0 -1
  208. package/dist/server/shared/access/AnyAccessGuard.d.ts +0 -1
  209. package/dist/server/shared/access/handler.d.ts +1 -2
  210. package/dist/server/shared/access/index.d.ts +0 -1
  211. package/dist/server/shared/access/types.d.ts +0 -1
  212. package/dist/server/shared/field-config/getFieldConfig.d.ts +0 -1
  213. package/dist/server/shared/field-config/index.d.ts +0 -1
  214. package/dist/server/shared/field-config/types.d.ts +0 -1
  215. package/dist/server/shared/guards/collection-guards.d.ts +0 -1
  216. package/dist/server/shared/guards/field-guards.d.ts +0 -1
  217. package/dist/server/shared/guards/index.d.ts +0 -1
  218. package/dist/server/shared/http/ServerResponse.d.ts +0 -1
  219. package/dist/server/shared/http/index.d.ts +0 -1
  220. package/dist/server/shared/http/withAccessCheck.d.ts +0 -1
  221. package/dist/server/shared/http/withErrorHandler.d.ts +0 -1
  222. package/dist/server/shared/index.d.ts +11 -11
  223. package/dist/server/shared/index.js +8 -6
  224. package/dist/server/shared/lexical/collectTextNodes.d.ts +0 -1
  225. package/dist/server/shared/lexical/guards.d.ts +0 -1
  226. package/dist/server/shared/lexical/index.d.ts +0 -1
  227. package/dist/server/shared/lexical/isEmptyRichText.d.ts +0 -1
  228. package/dist/server/shared/lexical/traverseLexicalTree.d.ts +0 -1
  229. package/dist/server/shared/lexical/types.d.ts +0 -1
  230. package/dist/server/shared/utils/LazyMap.d.ts +0 -1
  231. package/dist/server/shared/utils/filterLocalizedFields.d.ts +0 -1
  232. package/dist/server/shared/utils/getByPath.d.ts +0 -1
  233. package/dist/server/shared/utils/index.d.ts +0 -1
  234. package/dist/server/shared/utils/isEmpty.d.ts +0 -1
  235. package/dist/server/shared/utils/isObject.d.ts +0 -1
  236. package/dist/server/shared/utils/normalizePath.d.ts +0 -1
  237. package/dist/server/shared/utils/pipe.d.ts +0 -1
  238. package/dist/server/shared/utils/setByPath.d.ts +0 -1
  239. package/dist/server/shared/validation/index.d.ts +1 -0
  240. package/dist/server/shared/validation/index.js +3 -0
  241. package/dist/server/shared/validation/jobId.d.ts +17 -0
  242. package/dist/server/shared/validation/jobId.js +23 -0
  243. package/dist/types/AccessGuard.d.ts +0 -1
  244. package/dist/types/index.d.ts +0 -1
  245. package/package.json +33 -32
  246. package/dist/client/app/cache/CacheProvider.jsx +0 -11
  247. package/dist/client/app/config/TranslateKitConfigContext.jsx +0 -13
  248. package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.jsx +0 -25
  249. package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.jsx +0 -24
  250. package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.jsx +0 -38
  251. package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.jsx +0 -32
  252. package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.jsx +0 -16
  253. package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.jsx +0 -25
  254. package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.jsx +0 -23
  255. package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.jsx +0 -47
  256. package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.jsx +0 -19
  257. package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.jsx +0 -34
  258. package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.jsx +0 -19
  259. package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.jsx +0 -15
  260. package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.jsx +0 -24
  261. package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.jsx +0 -4
  262. package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.jsx +0 -3
  263. package/dist/client/shared/lib/assets/icons/ReloadIcon.jsx +0 -3
  264. package/dist/client/shared/ui/Alert/Alert.jsx +0 -33
  265. package/dist/client/shared/ui/Button/Button.jsx +0 -35
  266. package/dist/client/shared/ui/Checkbox/Checkbox.jsx +0 -6
  267. package/dist/client/shared/ui/ColorIndicator/ColorIndicator.jsx +0 -7
  268. package/dist/client/shared/ui/Description/Description.jsx +0 -7
  269. package/dist/client/shared/ui/Divider/Divider.jsx +0 -7
  270. package/dist/client/shared/ui/Label/Label.jsx +0 -9
  271. package/dist/client/shared/ui/Loading/Loading.jsx +0 -11
  272. package/dist/client/shared/ui/Popup/Popup.jsx +0 -13
  273. package/dist/client/shared/ui/ProgressBar/ProgressBar.jsx +0 -11
  274. package/dist/client/shared/ui/Select/Select.jsx +0 -41
  275. package/dist/client/shared/ui/StatusCounter/StatusCounter.jsx +0 -26
  276. package/dist/client/shared/ui/StatusIndicator/StatusIndicator.jsx +0 -10
  277. package/dist/client/shared/ui/Tooltip/Tooltip.jsx +0 -16
  278. package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.jsx +0 -24
  279. package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.jsx +0 -21
  280. package/dist/client/shared/ui/form/FormSelect/FormSelect.jsx +0 -44
  281. package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.jsx +0 -6
  282. package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.jsx +0 -25
  283. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.jsx +0 -11
  284. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.jsx +0 -55
  285. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.jsx +0 -17
  286. package/dist/client/widgets/translate-document/ui/TranslateDocument.jsx +0 -55
  287. package/dist/client/widgets/translate-document/ui/TranslateDocument.server.jsx +0 -16
  288. package/dist/vitest-env.d.js +0 -3
@@ -1,3 +1,2 @@
1
1
  export * from './translation-providers';
2
2
  export * from './translation-pipeline';
3
- //# sourceMappingURL=index.d.ts.map
@@ -28,4 +28,3 @@ export interface TaskRunner {
28
28
  */
29
29
  findByCollection(collectionSlug: CollectionSlug, documentIds?: Array<string | number>): Promise<Task[]>;
30
30
  }
31
- //# sourceMappingURL=TaskRunner.interface.d.ts.map
@@ -1,6 +1,6 @@
1
- import { CollectionSlug, Config, Payload } from 'payload';
2
- import { TaskRunner } from './TaskRunner.interface';
3
- import { TranslationStrategyName } from '../translation-pipeline/strategies';
1
+ import type { CollectionSlug, Config, Payload } from 'payload';
2
+ import type { TaskRunner } from './TaskRunner.interface';
3
+ import type { TranslationStrategyName } from '../translation-pipeline/strategies';
4
4
  /**
5
5
  * Input for task handler callback
6
6
  */
@@ -43,4 +43,3 @@ export interface TaskRunnerProvider {
43
43
  */
44
44
  configure(context: TaskRunnerContext): (config: Config) => Config;
45
45
  }
46
- //# sourceMappingURL=TaskRunnerProvider.interface.d.ts.map
@@ -4,4 +4,3 @@ export { createPayloadJobsRunner } from './payload-jobs-runner';
4
4
  export type { PayloadJobsRunnerOptions } from './payload-jobs-runner';
5
5
  export { createSyncRunner } from './sync-runner';
6
6
  export type { TaskRunner } from './TaskRunner.interface';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import type { Config, Payload } from 'payload';
2
2
  import type { TaskRunner } from '../TaskRunner.interface';
3
3
  import type { PayloadJobsRunnerOptions } from './types';
4
- import { TaskRunnerContext, TaskRunnerProvider } from '../TaskRunnerProvider.interface';
4
+ import type { TaskRunnerContext, TaskRunnerProvider } from '../TaskRunnerProvider.interface';
5
5
  /**
6
6
  * TaskRunnerProvider implementation using Payload Jobs.
7
7
  *
@@ -17,4 +17,3 @@ export declare class PayloadJobsRunnerProvider implements TaskRunnerProvider {
17
17
  * Creates a TaskRunnerProvider that uses Payload Jobs for task execution.
18
18
  */
19
19
  export declare function createPayloadJobsRunner(options?: PayloadJobsRunnerOptions): TaskRunnerProvider;
20
- //# sourceMappingURL=PayloadJobsRunnerProvider.d.ts.map
@@ -1,7 +1,7 @@
1
- import type { Payload, CollectionSlug } from 'payload';
2
- import type { TaskRunner } from '../TaskRunner.interface';
3
- import type { Task, TaskInput, RunResult } from '../types';
4
- import type { PayloadJobsRunnerConfig } from './types';
1
+ import type { Payload, CollectionSlug } from "payload";
2
+ import type { TaskRunner } from "../TaskRunner.interface";
3
+ import type { Task, TaskInput, RunResult } from "../types";
4
+ import type { PayloadJobsRunnerConfig } from "./types";
5
5
  /**
6
6
  * TaskRunner implementation using Payload Jobs.
7
7
  *
@@ -14,6 +14,82 @@ export declare class PayloadJobsTaskRunner implements TaskRunner {
14
14
  enqueue(tasks: TaskInput[]): Promise<void>;
15
15
  cancel(taskIds: string[]): Promise<void>;
16
16
  run(taskId: string): Promise<RunResult>;
17
+ /**
18
+ * Find translation jobs for a collection, optionally narrowed by document IDs.
19
+ *
20
+ * IMPORTANT — why we filter `collection.value` in memory instead of in WHERE
21
+ * ------------------------------------------------------------------------
22
+ * The "natural" implementation would be a single `payload.find` with the
23
+ * full where clause:
24
+ *
25
+ * where: {
26
+ * and: [
27
+ * { 'input.collection.relationTo': { equals: collectionSlug } },
28
+ * { 'input.collection.value': { in: documentIds } },
29
+ * ],
30
+ * }
31
+ *
32
+ * This DOES NOT work on SQLite (and is unreliable on any adapter) because
33
+ * of two compounding bugs in Payload's drizzle layer.
34
+ *
35
+ * 1. The `input` field on `payload-jobs` is declared `type: 'json'`. The
36
+ * drizzle path resolver (`@payloadcms/drizzle/queries/getTableColumnFromPath`)
37
+ * has no `case 'json'` branch, so the value is left as a raw column and
38
+ * the path segments are passed through to `parseParams.js`, which on
39
+ * SQLite builds raw SQL using `convertPathToJSONTraversal` — generating
40
+ * expressions like `input->>'collection'->>'value'`.
41
+ *
42
+ * 2. When `parseParams.js` formats the right-hand side of `in`/`not_in`
43
+ * (and even `equals` when `!isNaN(val)`), it inlines values via JS
44
+ * template literals WITHOUT wrapping strings in quotes. The string
45
+ * `'1'` from our WHERE becomes raw `1` in the SQL. Drizzle therefore
46
+ * emits queries like:
47
+ *
48
+ * WHERE input->>'collection'->>'value' IN (1)
49
+ *
50
+ * even though the caller passed `['1']` (an array of strings).
51
+ *
52
+ * On SQLite, `->>` preserves the JSON value's type — if the stored JSON
53
+ * has `"value": "1"` (a JSON string), `->>` returns SQLite TEXT `'1'`;
54
+ * if the JSON has `"value": 1` (a JSON number), `->>` returns INTEGER `1`.
55
+ * SQLite's `IN (...)` does NOT coerce between TEXT and INTEGER. So:
56
+ *
57
+ * TEXT '1' IN (1) → false (text vs integer, no match)
58
+ * INTEGER 1 IN ('1') → false (integer vs text, no match)
59
+ *
60
+ * Combined with bug #2 above, any value passed by the caller — even if
61
+ * we normalize it to a string on write — gets re-coerced to a number in
62
+ * the generated SQL and never matches the stored JSON.
63
+ *
64
+ * Postgres avoids most of this because `jsonb_path_query` returns text
65
+ * uniformly and PG's type coercion is more permissive, but the same
66
+ * un-quoted-string bug technically affects it too.
67
+ *
68
+ * Why we don't fix it upstream / patch the dep
69
+ * --------------------------------------------
70
+ * - This plugin is published to npm. Consumers install it with their own
71
+ * Payload version and would not receive any local `bun patch` /
72
+ * `patch-package` overrides on `@payloadcms/drizzle`. The plugin must
73
+ * work against vanilla Payload.
74
+ * - A PR to Payload core is the proper long-term fix, but the plugin
75
+ * cannot block on its merge/release cycle.
76
+ * - Forcing a non-numeric prefix on the stored ID (e.g., `"id:1"`) would
77
+ * work around bug #2, but bloats the data shape and breaks anything
78
+ * that reads `input.collection.value` expecting a plain id.
79
+ *
80
+ * Why in-memory filtering is acceptable here
81
+ * ------------------------------------------
82
+ * We narrow the SQL query to `taskSlug + relationTo` (both string
83
+ * equality, which Payload quotes correctly), then filter the result set
84
+ * by `collection.value` in JavaScript. Per-collection job sets are
85
+ * small (typically <100 rows; the plugin actively cancels superseded
86
+ * jobs so they don't accumulate), so a Set-membership check in JS is
87
+ * effectively free.
88
+ *
89
+ * If/when the upstream drizzle bug is fixed (or this plugin gains a
90
+ * mirror collection with indexed flat columns), this method can collapse
91
+ * back to a single SQL query.
92
+ */
17
93
  findByCollection(collectionSlug: CollectionSlug, documentIds?: Array<string | number>): Promise<Task[]>;
18
94
  /**
19
95
  * Group tasks by collection slug
@@ -28,4 +104,3 @@ export declare class PayloadJobsTaskRunner implements TaskRunner {
28
104
  */
29
105
  private findJobsInternal;
30
106
  }
31
- //# sourceMappingURL=PayloadJobsTaskRunner.d.ts.map
@@ -1,4 +1,4 @@
1
- import { normalizeJob } from './normalizeJob';
1
+ import { normalizeJob } from "./normalizeJob";
2
2
  /**
3
3
  * TaskRunner implementation using Payload Jobs.
4
4
  *
@@ -13,21 +13,8 @@ import { normalizeJob } from './normalizeJob';
13
13
  async enqueue(tasks) {
14
14
  const byCollection = this.groupByCollection(tasks);
15
15
  for (const [collectionSlug, items] of byCollection){
16
- const documentIds = items.map((t)=>t.collectionId);
17
- const existing = await this.findJobsInternal({
18
- and: [
19
- {
20
- 'input.collection.relationTo': {
21
- equals: collectionSlug
22
- }
23
- },
24
- {
25
- 'input.collection.value': {
26
- in: documentIds
27
- }
28
- }
29
- ]
30
- });
16
+ const documentIds = items.map((t)=>String(t.collectionId));
17
+ const existing = await this.findByCollection(collectionSlug, documentIds);
31
18
  if (existing.length > 0) {
32
19
  await this.cancelInternal(existing.map((t)=>t.id));
33
20
  }
@@ -37,6 +24,15 @@ import { normalizeJob } from './normalizeJob';
37
24
  queue: this.config.queueName,
38
25
  input: {
39
26
  collection: {
27
+ // Pass `value` through verbatim. The Payload Jobs `input` schema
28
+ // declares this as a `relationship` field, which validates the
29
+ // value's type against the target collection's ID type (number
30
+ // for autoincrement, string for uuid). Coercing to string here
31
+ // would silently fail validation for number-id collections and
32
+ // leave jobs stuck in processing without ever invoking the
33
+ // task handler. `findByCollection` reads back via in-memory
34
+ // filtering and normalizes both sides with String(...) for the
35
+ // comparison, so it does not need write-side normalization.
40
36
  relationTo: task.collectionSlug,
41
37
  value: task.collectionId
42
38
  },
@@ -63,19 +59,19 @@ import { normalizeJob } from './normalizeJob';
63
59
  if (!task) {
64
60
  return {
65
61
  success: false,
66
- error: 'not_found'
62
+ error: "not_found"
67
63
  };
68
64
  }
69
65
  if (task.completedAt) {
70
66
  return {
71
67
  success: false,
72
- error: 'already_completed'
68
+ error: "already_completed"
73
69
  };
74
70
  }
75
- if (task.status === 'running') {
71
+ if (task.status === "running") {
76
72
  return {
77
73
  success: false,
78
- error: 'already_running'
74
+ error: "already_running"
79
75
  };
80
76
  }
81
77
  this.payload.jobs.runByID({
@@ -85,28 +81,92 @@ import { normalizeJob } from './normalizeJob';
85
81
  success: true
86
82
  };
87
83
  }
88
- async findByCollection(collectionSlug, documentIds) {
89
- const where = documentIds?.length ? {
90
- and: [
91
- {
92
- 'input.collection.relationTo': {
93
- equals: collectionSlug
94
- }
95
- },
96
- {
97
- 'input.collection.value': {
98
- in: documentIds
99
- }
100
- }
101
- ]
102
- } : {
103
- 'input.collection.relationTo': {
84
+ /**
85
+ * Find translation jobs for a collection, optionally narrowed by document IDs.
86
+ *
87
+ * IMPORTANT — why we filter `collection.value` in memory instead of in WHERE
88
+ * ------------------------------------------------------------------------
89
+ * The "natural" implementation would be a single `payload.find` with the
90
+ * full where clause:
91
+ *
92
+ * where: {
93
+ * and: [
94
+ * { 'input.collection.relationTo': { equals: collectionSlug } },
95
+ * { 'input.collection.value': { in: documentIds } },
96
+ * ],
97
+ * }
98
+ *
99
+ * This DOES NOT work on SQLite (and is unreliable on any adapter) because
100
+ * of two compounding bugs in Payload's drizzle layer.
101
+ *
102
+ * 1. The `input` field on `payload-jobs` is declared `type: 'json'`. The
103
+ * drizzle path resolver (`@payloadcms/drizzle/queries/getTableColumnFromPath`)
104
+ * has no `case 'json'` branch, so the value is left as a raw column and
105
+ * the path segments are passed through to `parseParams.js`, which on
106
+ * SQLite builds raw SQL using `convertPathToJSONTraversal` — generating
107
+ * expressions like `input->>'collection'->>'value'`.
108
+ *
109
+ * 2. When `parseParams.js` formats the right-hand side of `in`/`not_in`
110
+ * (and even `equals` when `!isNaN(val)`), it inlines values via JS
111
+ * template literals WITHOUT wrapping strings in quotes. The string
112
+ * `'1'` from our WHERE becomes raw `1` in the SQL. Drizzle therefore
113
+ * emits queries like:
114
+ *
115
+ * WHERE input->>'collection'->>'value' IN (1)
116
+ *
117
+ * even though the caller passed `['1']` (an array of strings).
118
+ *
119
+ * On SQLite, `->>` preserves the JSON value's type — if the stored JSON
120
+ * has `"value": "1"` (a JSON string), `->>` returns SQLite TEXT `'1'`;
121
+ * if the JSON has `"value": 1` (a JSON number), `->>` returns INTEGER `1`.
122
+ * SQLite's `IN (...)` does NOT coerce between TEXT and INTEGER. So:
123
+ *
124
+ * TEXT '1' IN (1) → false (text vs integer, no match)
125
+ * INTEGER 1 IN ('1') → false (integer vs text, no match)
126
+ *
127
+ * Combined with bug #2 above, any value passed by the caller — even if
128
+ * we normalize it to a string on write — gets re-coerced to a number in
129
+ * the generated SQL and never matches the stored JSON.
130
+ *
131
+ * Postgres avoids most of this because `jsonb_path_query` returns text
132
+ * uniformly and PG's type coercion is more permissive, but the same
133
+ * un-quoted-string bug technically affects it too.
134
+ *
135
+ * Why we don't fix it upstream / patch the dep
136
+ * --------------------------------------------
137
+ * - This plugin is published to npm. Consumers install it with their own
138
+ * Payload version and would not receive any local `bun patch` /
139
+ * `patch-package` overrides on `@payloadcms/drizzle`. The plugin must
140
+ * work against vanilla Payload.
141
+ * - A PR to Payload core is the proper long-term fix, but the plugin
142
+ * cannot block on its merge/release cycle.
143
+ * - Forcing a non-numeric prefix on the stored ID (e.g., `"id:1"`) would
144
+ * work around bug #2, but bloats the data shape and breaks anything
145
+ * that reads `input.collection.value` expecting a plain id.
146
+ *
147
+ * Why in-memory filtering is acceptable here
148
+ * ------------------------------------------
149
+ * We narrow the SQL query to `taskSlug + relationTo` (both string
150
+ * equality, which Payload quotes correctly), then filter the result set
151
+ * by `collection.value` in JavaScript. Per-collection job sets are
152
+ * small (typically <100 rows; the plugin actively cancels superseded
153
+ * jobs so they don't accumulate), so a Set-membership check in JS is
154
+ * effectively free.
155
+ *
156
+ * If/when the upstream drizzle bug is fixed (or this plugin gains a
157
+ * mirror collection with indexed flat columns), this method can collapse
158
+ * back to a single SQL query.
159
+ */ async findByCollection(collectionSlug, documentIds) {
160
+ const tasks = await this.findJobsInternal({
161
+ "input.collection.relationTo": {
104
162
  equals: collectionSlug
105
163
  }
106
- };
107
- return this.findJobsInternal(where, {
164
+ }, {
108
165
  pagination: false
109
166
  });
167
+ if (!documentIds?.length) return tasks;
168
+ const wanted = new Set(documentIds.map(String));
169
+ return tasks.filter((t)=>wanted.has(String(t.input.collectionId)));
110
170
  }
111
171
  /**
112
172
  * Group tasks by collection slug
@@ -1,3 +1,2 @@
1
1
  export { createPayloadJobsRunner } from './PayloadJobsRunnerProvider';
2
2
  export type { PayloadJobsRunnerOptions } from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@ import type { PayloadJob } from './types';
4
4
  * Transform Payload job to normalized Task
5
5
  */
6
6
  export declare function normalizeJob(job: PayloadJob): Task;
7
- //# sourceMappingURL=normalizeJob.d.ts.map
@@ -82,4 +82,3 @@ export type PayloadJob = {
82
82
  publish_on_translation?: boolean;
83
83
  };
84
84
  };
85
- //# sourceMappingURL=types.d.ts.map
@@ -22,4 +22,3 @@ export declare class SyncRunnerProvider implements TaskRunnerProvider {
22
22
  * Results are stored in memory and lost on server restart.
23
23
  */
24
24
  export declare function createSyncRunner(options?: SyncRunnerOptions): TaskRunnerProvider;
25
- //# sourceMappingURL=SyncRunnerProvider.d.ts.map
@@ -20,4 +20,3 @@ export declare class SyncTaskRunner implements TaskRunner {
20
20
  findByCollection(collectionSlug: CollectionSlug, documentIds?: Array<string | number>): Promise<Task[]>;
21
21
  private getKey;
22
22
  }
23
- //# sourceMappingURL=SyncTaskRunner.d.ts.map
@@ -1,2 +1 @@
1
1
  export { createSyncRunner } from './SyncRunnerProvider';
2
- //# sourceMappingURL=index.d.ts.map
@@ -15,4 +15,3 @@ export type SyncRunnerOptions = {
15
15
  */
16
16
  ttlMs?: number;
17
17
  };
18
- //# sourceMappingURL=types.d.ts.map
@@ -38,4 +38,3 @@ export type RunResult = {
38
38
  success: false;
39
39
  error: 'not_found' | 'already_running' | 'already_completed';
40
40
  };
41
- //# sourceMappingURL=types.d.ts.map
@@ -32,4 +32,3 @@ export declare class TranslationPipeline {
32
32
  */
33
33
  execute(config: PipelineConfig): Promise<PipelineResult | null>;
34
34
  }
35
- //# sourceMappingURL=TranslationPipeline.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export { TranslationPipeline } from './TranslationPipeline';
2
2
  export type { TranslationStrategy } from './strategies';
3
3
  export { OverwriteStrategy, SkipExistingStrategy } from './strategies';
4
- //# sourceMappingURL=index.d.ts.map
@@ -23,4 +23,3 @@ export declare class DataReconciler {
23
23
  reconcile(sourceData: Record<string, unknown>, targetData: Record<string, unknown>): Record<string, unknown>;
24
24
  private reconcileFields;
25
25
  }
26
- //# sourceMappingURL=DataReconciler.d.ts.map
@@ -6,4 +6,3 @@ import type { PipelineContext, PipelineStage } from '../../types';
6
6
  export declare class DataReconcilerStage implements PipelineStage {
7
7
  execute(ctx: PipelineContext): PipelineContext;
8
8
  }
9
- //# sourceMappingURL=DataReconciler.stage.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { DataReconciler } from './DataReconciler';
2
2
  export { DataReconcilerStage } from './DataReconciler.stage';
3
- //# sourceMappingURL=index.d.ts.map
@@ -32,4 +32,3 @@ export declare class FieldChunkCollector {
32
32
  */
33
33
  private traverseFields;
34
34
  }
35
- //# sourceMappingURL=FieldChunkCollector.d.ts.map
@@ -18,13 +18,14 @@ import { hasFields, isBlockItem, isLocalizedField, isObject, isTabsField, isTran
18
18
  sourceData;
19
19
  targetData;
20
20
  strategy;
21
- chunks = [];
21
+ chunks;
22
22
  constructor(schema, filteredData, sourceData, targetData, strategy){
23
23
  this.schema = schema;
24
24
  this.filteredData = filteredData;
25
25
  this.sourceData = sourceData;
26
26
  this.targetData = targetData;
27
27
  this.strategy = strategy;
28
+ this.chunks = [];
28
29
  }
29
30
  /**
30
31
  * Collects translatable field chunks that need translation.
@@ -10,4 +10,3 @@ export declare class FieldChunkCollectorStage implements PipelineStage {
10
10
  constructor(strategy: TranslationStrategy);
11
11
  execute(ctx: PipelineContext): PipelineContext;
12
12
  }
13
- //# sourceMappingURL=FieldChunkCollector.stage.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { FieldChunkCollector } from './FieldChunkCollector';
2
2
  export { FieldChunkCollectorStage } from './FieldChunkCollector.stage';
3
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@ export { TextChunkExpander, PlainTextExpander, RichTextExpander, TextChunkExpand
4
4
  export type { TextExpansionResult, TextExpander, ExpansionResult } from './text-expander';
5
5
  export { TranslationStage } from './translation';
6
6
  export { TranslationMutator, TranslationMutatorStage } from './translation-applicator';
7
- //# sourceMappingURL=index.d.ts.map
@@ -7,4 +7,3 @@ export declare class PlainTextExpander implements TextExpander {
7
7
  canExpand(_chunk: FieldChunk, value: unknown): boolean;
8
8
  expand(chunk: FieldChunk, value: unknown, startIndex: number): ExpansionResult;
9
9
  }
10
- //# sourceMappingURL=PlainTextExpander.d.ts.map
@@ -7,4 +7,3 @@ export declare class RichTextExpander implements TextExpander {
7
7
  canExpand(chunk: FieldChunk, value: unknown): boolean;
8
8
  expand(_chunk: FieldChunk, value: unknown, startIndex: number): ExpansionResult;
9
9
  }
10
- //# sourceMappingURL=RichTextExpander.d.ts.map
@@ -21,4 +21,3 @@ export declare class TextChunkExpander {
21
21
  */
22
22
  expand(fieldChunks: FieldChunk[]): TextExpansionResult;
23
23
  }
24
- //# sourceMappingURL=TextChunkExpander.d.ts.map
@@ -8,4 +8,3 @@ export declare class TextChunkExpanderStage implements PipelineStage {
8
8
  constructor(expanders?: TextExpander[]);
9
9
  execute(ctx: PipelineContext): PipelineContext;
10
10
  }
11
- //# sourceMappingURL=TextChunkExpander.stage.d.ts.map
@@ -24,4 +24,3 @@ export interface TextExpander {
24
24
  */
25
25
  expand(chunk: FieldChunk, value: unknown, startIndex: number): ExpansionResult;
26
26
  }
27
- //# sourceMappingURL=TextExpander.interface.d.ts.map
@@ -4,4 +4,3 @@ export type { TextExpander, ExpansionResult } from './TextExpander.interface';
4
4
  export { PlainTextExpander } from './PlainTextExpander';
5
5
  export { RichTextExpander } from './RichTextExpander';
6
6
  export { TextChunkExpanderStage } from './TextChunkExpander.stage';
7
- //# sourceMappingURL=index.d.ts.map
@@ -8,4 +8,3 @@ export declare class TranslationStage implements PipelineStage {
8
8
  constructor(provider: TranslationProvider);
9
9
  execute(ctx: PipelineContext): Promise<PipelineContext>;
10
10
  }
11
- //# sourceMappingURL=Translation.stage.d.ts.map
@@ -1,2 +1 @@
1
1
  export { TranslationStage } from './Translation.stage';
2
- //# sourceMappingURL=index.d.ts.map
@@ -15,4 +15,3 @@ export declare class TranslationMutator {
15
15
  */
16
16
  apply(textChunks: TextChunk[], translations: Record<number, string>): void;
17
17
  }
18
- //# sourceMappingURL=TranslationMutator.d.ts.map
@@ -5,4 +5,3 @@ import type { PipelineContext, PipelineStage } from '../../types';
5
5
  export declare class TranslationMutatorStage implements PipelineStage {
6
6
  execute(ctx: PipelineContext): PipelineContext;
7
7
  }
8
- //# sourceMappingURL=TranslationMutator.stage.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export { TranslationMutator } from './TranslationMutator';
2
2
  export { TranslationMutatorStage } from './TranslationMutator.stage';
3
- //# sourceMappingURL=index.d.ts.map
@@ -6,4 +6,3 @@ import type { TranslationStrategy, StrategyContext } from './TranslationStrategy
6
6
  export declare class OverwriteStrategy implements TranslationStrategy {
7
7
  shouldTranslate(ctx: StrategyContext): boolean;
8
8
  }
9
- //# sourceMappingURL=Overwrite.strategy.d.ts.map
@@ -7,4 +7,3 @@ export declare class SkipExistingStrategy implements TranslationStrategy {
7
7
  shouldTranslate(ctx: StrategyContext): boolean;
8
8
  private isEmptyValue;
9
9
  }
10
- //# sourceMappingURL=SkipExisting.strategy.d.ts.map
@@ -19,4 +19,3 @@ export interface TranslationStrategy {
19
19
  */
20
20
  shouldTranslate(ctx: StrategyContext): boolean;
21
21
  }
22
- //# sourceMappingURL=TranslationStrategy.interface.d.ts.map
@@ -11,4 +11,3 @@ export type TranslationStrategyName = 'overwrite' | 'skip_existing';
11
11
  * Creates a TranslationStrategy instance by name.
12
12
  */
13
13
  export declare function createTranslationStrategy(name: TranslationStrategyName): TranslationStrategy;
14
- //# sourceMappingURL=index.d.ts.map
@@ -15,4 +15,3 @@ export type FieldChunk = {
15
15
  /** Full path from root for strategy lookup in targetData */
16
16
  path: string[];
17
17
  };
18
- //# sourceMappingURL=FieldChunk.d.ts.map
@@ -18,4 +18,3 @@ export type PipelineResult = {
18
18
  /** Mutated data with translations applied */
19
19
  translatedData: Record<string, unknown>;
20
20
  };
21
- //# sourceMappingURL=Pipeline.d.ts.map
@@ -25,4 +25,3 @@ export type PipelineContext = {
25
25
  export interface PipelineStage {
26
26
  execute(ctx: PipelineContext): PipelineContext | Promise<PipelineContext>;
27
27
  }
28
- //# sourceMappingURL=PipelineContext.d.ts.map
@@ -40,4 +40,3 @@ export declare function isPlainTextChunk(chunk: TextChunk): chunk is PlainTextCh
40
40
  * Type guard for RichTextChunk.
41
41
  */
42
42
  export declare function isRichTextChunk(chunk: TextChunk): chunk is RichTextChunk;
43
- //# sourceMappingURL=TextChunk.d.ts.map
@@ -3,4 +3,3 @@ export type { PlainTextChunk, RichTextChunk, TextChunk } from './TextChunk';
3
3
  export { isPlainTextChunk, isRichTextChunk } from './TextChunk';
4
4
  export type { PipelineConfig, PipelineResult } from './Pipeline';
5
5
  export type { PipelineContext, PipelineStage } from './PipelineContext';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { TranslationProvider, TranslationInput, TranslationOutput } from './TranslationProvider.interface';
2
- import { ChatModel } from 'openai/resources/index.mjs';
2
+ import type { ChatModel } from 'openai/resources/index.mjs';
3
3
  /**
4
4
  * Function to transform text in dry run mode.
5
5
  * Receives the original text and returns the transformed text.
@@ -125,4 +125,3 @@ export declare class OpenAITranslationProvider implements TranslationProvider {
125
125
  */
126
126
  export declare function createOpenAIProvider(config: OpenAIProviderConfig): OpenAITranslationProvider;
127
127
  export {};
128
- //# sourceMappingURL=OpenAITranslation.provider.d.ts.map
@@ -53,4 +53,3 @@ export interface TranslationProvider {
53
53
  */
54
54
  translate(input: TranslationInput, sourceLng: string, targetLng: string): Promise<TranslationOutput | null>;
55
55
  }
56
- //# sourceMappingURL=TranslationProvider.interface.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export type { TranslationProvider, TranslationInput, TranslationOutput, TranslationIndex, } from './TranslationProvider.interface';
2
2
  export { OpenAITranslationProvider, createOpenAIProvider, type OpenAIProviderConfig, type DryRunConfig, type SystemPromptContext, } from './OpenAITranslation.provider';
3
- //# sourceMappingURL=index.d.ts.map
@@ -5,4 +5,3 @@ import type { AccessGuard } from './types';
5
5
  export declare class AnyAccessGuard implements AccessGuard {
6
6
  check(): Promise<boolean>;
7
7
  }
8
- //# sourceMappingURL=AnyAccessGuard.d.ts.map
@@ -1,8 +1,7 @@
1
- import { Payload } from 'payload';
1
+ import type { Payload } from 'payload';
2
2
  /**
3
3
  * Base handler interface for all feature handlers
4
4
  */
5
5
  export interface Handler<TInput, TOutput> {
6
6
  handle(payload: Payload, input: TInput): Promise<TOutput>;
7
7
  }
8
- //# sourceMappingURL=handler.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export type { AccessGuard, AccessGuardRequest } from './types';
2
2
  export { AnyAccessGuard } from './AnyAccessGuard';
3
3
  export type { Handler } from './handler';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
1
  export type { AccessGuard, AccessGuardRequest } from '../../../types/AccessGuard';
2
- //# sourceMappingURL=types.d.ts.map
@@ -18,4 +18,3 @@ export declare const getTranslateKitFieldConfig: typeof getFieldTranslationConfi
18
18
  * @returns true if the field has `translateKit.exclude: true`
19
19
  */
20
20
  export declare function isFieldExcludedFromTranslation(field: Field): boolean;
21
- //# sourceMappingURL=getFieldConfig.d.ts.map