@focus-reactive/payload-plugin-translator 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (461) hide show
  1. package/README.md +172 -306
  2. package/dist/client/app/cache/CacheProvider.d.ts +1 -1
  3. package/dist/client/app/cache/CacheProvider.export.d.ts +1 -1
  4. package/dist/client/app/cache/CacheProvider.export.js +2 -2
  5. package/dist/client/app/cache/CacheProvider.js +5 -5
  6. package/dist/client/app/config/TranslateKitConfigContext.d.ts +1 -1
  7. package/dist/client/app/config/TranslateKitConfigContext.js +3 -3
  8. package/dist/client/app/config/index.d.ts +2 -2
  9. package/dist/client/app/config/index.js +1 -1
  10. package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.js +7 -7
  11. package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.js +7 -7
  12. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.d.ts +1 -1
  13. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.js +8 -8
  14. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.js +6 -6
  15. package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.js +7 -7
  16. package/dist/client/entities/translation/api/mutations/useTranslateField.d.ts +1 -1
  17. package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.d.ts +2 -2
  18. package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.js +9 -10
  19. package/dist/client/entities/translation/api/queries/useDocumentTranslation.d.ts +2 -2
  20. package/dist/client/entities/translation/api/queries/useDocumentTranslation.js +9 -10
  21. package/dist/client/entities/translation/index.d.ts +12 -12
  22. package/dist/client/entities/translation/index.js +11 -11
  23. package/dist/client/entities/translation/model/types.d.ts +1 -1
  24. package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.js +12 -12
  25. package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.d.ts +1 -1
  26. package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.js +1 -1
  27. package/dist/client/entities/translation/ui/CompletedTranslationStatus/styles.module.scss +1 -1
  28. package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.js +8 -8
  29. package/dist/client/entities/translation/ui/FailedTranslationStatus/index.d.ts +1 -1
  30. package/dist/client/entities/translation/ui/FailedTranslationStatus/index.js +1 -1
  31. package/dist/client/entities/translation/ui/FailedTranslationStatus/styles.module.scss +1 -1
  32. package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.js +14 -14
  33. package/dist/client/entities/translation/ui/PendingTranslationStatus/index.d.ts +1 -1
  34. package/dist/client/entities/translation/ui/PendingTranslationStatus/index.js +1 -1
  35. package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.js +13 -13
  36. package/dist/client/entities/translation/ui/RunningTranslationStatus/index.d.ts +1 -1
  37. package/dist/client/entities/translation/ui/RunningTranslationStatus/index.js +1 -1
  38. package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.d.ts +1 -1
  39. package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.js +2 -2
  40. package/dist/client/entities/translation/ui/TranslationDirection/index.d.ts +1 -1
  41. package/dist/client/entities/translation/ui/TranslationDirection/index.js +1 -1
  42. package/dist/client/entities/translation/ui/TranslationDirection/styles.module.scss +1 -1
  43. package/dist/client/features/collection-translation-form/index.client.d.ts +1 -1
  44. package/dist/client/features/collection-translation-form/index.client.js +1 -1
  45. package/dist/client/features/collection-translation-form/index.d.ts +3 -3
  46. package/dist/client/features/collection-translation-form/index.js +2 -2
  47. package/dist/client/features/collection-translation-form/model/constants.d.ts +1 -1
  48. package/dist/client/features/collection-translation-form/model/constants.js +9 -9
  49. package/dist/client/features/collection-translation-form/model/form-model.d.ts +1 -1
  50. package/dist/client/features/collection-translation-form/model/index.d.ts +1 -1
  51. package/dist/client/features/collection-translation-form/model/index.js +1 -1
  52. package/dist/client/features/collection-translation-form/model/schema.d.ts +1 -1
  53. package/dist/client/features/collection-translation-form/model/schema.js +6 -6
  54. package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.d.ts +1 -1
  55. package/dist/client/features/collection-translation-form/ui/index.d.ts +1 -1
  56. package/dist/client/features/collection-translation-form/ui/index.js +1 -1
  57. package/dist/client/features/collection-translation-form/ui/styles.module.scss +1 -1
  58. package/dist/client/features/collection-translation-popup/index.d.ts +1 -1
  59. package/dist/client/features/collection-translation-popup/index.js +1 -1
  60. package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts +1 -1
  61. package/dist/client/features/collection-translation-popup/ui/styles.module.scss +1 -1
  62. package/dist/client/features/collection-translation-progress/index.d.ts +1 -1
  63. package/dist/client/features/collection-translation-progress/index.js +1 -1
  64. package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts +2 -2
  65. package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.js +13 -13
  66. package/dist/client/features/collection-translation-progress/ui/styles.module.scss +1 -1
  67. package/dist/client/features/document-translation-progress-failed/index.d.ts +1 -1
  68. package/dist/client/features/document-translation-progress-failed/index.js +1 -1
  69. package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.d.ts +2 -2
  70. package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.js +3 -3
  71. package/dist/client/features/document-translation-progress-pending/index.d.ts +1 -1
  72. package/dist/client/features/document-translation-progress-pending/index.js +1 -1
  73. package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.d.ts +2 -2
  74. package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.js +5 -5
  75. package/dist/client/features/document-translation-progress-running/index.d.ts +1 -1
  76. package/dist/client/features/document-translation-progress-running/index.js +1 -1
  77. package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.d.ts +2 -2
  78. package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.js +3 -3
  79. package/dist/client/features/open-document-translation-popup/index.d.ts +1 -1
  80. package/dist/client/features/open-document-translation-popup/index.js +1 -1
  81. package/dist/client/features/open-document-translation-popup/ui/styles.module.scss +1 -1
  82. package/dist/client/features/translate-document-form/index.client.d.ts +1 -1
  83. package/dist/client/features/translate-document-form/index.client.js +1 -1
  84. package/dist/client/features/translate-document-form/index.d.ts +3 -3
  85. package/dist/client/features/translate-document-form/index.js +2 -2
  86. package/dist/client/features/translate-document-form/model/constants.d.ts +1 -1
  87. package/dist/client/features/translate-document-form/model/constants.js +11 -11
  88. package/dist/client/features/translate-document-form/model/form-model.d.ts +1 -1
  89. package/dist/client/features/translate-document-form/model/index.d.ts +1 -1
  90. package/dist/client/features/translate-document-form/model/index.js +1 -1
  91. package/dist/client/features/translate-document-form/model/schema.d.ts +1 -1
  92. package/dist/client/features/translate-document-form/model/schema.js +5 -5
  93. package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.d.ts +1 -1
  94. package/dist/client/features/translate-document-form/ui/index.d.ts +1 -1
  95. package/dist/client/features/translate-document-form/ui/index.js +1 -1
  96. package/dist/client/features/translate-document-form/ui/styles.module.scss +1 -1
  97. package/dist/client/shared/lib/errors/handleApiError.d.ts +1 -1
  98. package/dist/client/shared/lib/errors/handleApiError.js +2 -2
  99. package/dist/client/shared/lib/forms/handle-form-error.d.ts +1 -1
  100. package/dist/client/shared/lib/forms/handle-form-error.js +6 -6
  101. package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.d.ts +1 -1
  102. package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.js +1 -1
  103. package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.d.ts +1 -1
  104. package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.js +2 -2
  105. package/dist/client/shared/lib/payload/hooks/useLocaleOptions.js +2 -2
  106. package/dist/client/shared/lib/utils/errors/handleApiError.d.ts +1 -1
  107. package/dist/client/shared/lib/utils/errors/handleApiError.js +2 -2
  108. package/dist/client/shared/lib/utils/react/useToggle.js +1 -1
  109. package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.d.ts +2 -2
  110. package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.js +3 -3
  111. package/dist/client/shared/providers/CacheClientProvider/index.d.ts +1 -1
  112. package/dist/client/shared/providers/CacheClientProvider/index.js +1 -1
  113. package/dist/client/shared/types/AccessGuard.d.ts +1 -1
  114. package/dist/client/shared/ui/Alert/Alert.d.ts +2 -2
  115. package/dist/client/shared/ui/Alert/Alert.js +18 -18
  116. package/dist/client/shared/ui/Alert/index.d.ts +1 -1
  117. package/dist/client/shared/ui/Alert/index.js +1 -1
  118. package/dist/client/shared/ui/Alert/styles.module.scss +1 -1
  119. package/dist/client/shared/ui/Button/index.d.ts +1 -1
  120. package/dist/client/shared/ui/Button/index.js +1 -1
  121. package/dist/client/shared/ui/Button/styles.module.scss +6 -3
  122. package/dist/client/shared/ui/Checkbox/Checkbox.d.ts +2 -2
  123. package/dist/client/shared/ui/Checkbox/Checkbox.js +4 -4
  124. package/dist/client/shared/ui/Checkbox/index.d.ts +1 -1
  125. package/dist/client/shared/ui/Checkbox/index.js +1 -1
  126. package/dist/client/shared/ui/Checkbox/styles.module.scss +1 -1
  127. package/dist/client/shared/ui/ColorIndicator/ColorIndicator.d.ts +2 -2
  128. package/dist/client/shared/ui/ColorIndicator/ColorIndicator.js +2 -2
  129. package/dist/client/shared/ui/ColorIndicator/index.d.ts +1 -1
  130. package/dist/client/shared/ui/ColorIndicator/index.js +1 -1
  131. package/dist/client/shared/ui/ColorIndicator/styles.module.scss +1 -1
  132. package/dist/client/shared/ui/Description/Description.d.ts +3 -3
  133. package/dist/client/shared/ui/Description/Description.js +4 -4
  134. package/dist/client/shared/ui/Description/index.d.ts +1 -1
  135. package/dist/client/shared/ui/Description/index.js +1 -1
  136. package/dist/client/shared/ui/Description/styles.module.scss +1 -1
  137. package/dist/client/shared/ui/Divider/Divider.d.ts +4 -4
  138. package/dist/client/shared/ui/Divider/Divider.js +4 -4
  139. package/dist/client/shared/ui/Divider/index.d.ts +1 -1
  140. package/dist/client/shared/ui/Divider/index.js +1 -1
  141. package/dist/client/shared/ui/Divider/styles.module.scss +1 -1
  142. package/dist/client/shared/ui/Label/Label.d.ts +2 -2
  143. package/dist/client/shared/ui/Label/Label.js +3 -3
  144. package/dist/client/shared/ui/Label/index.d.ts +1 -1
  145. package/dist/client/shared/ui/Label/index.js +1 -1
  146. package/dist/client/shared/ui/Label/styles.module.scss +1 -1
  147. package/dist/client/shared/ui/Loading/Loading.d.ts +1 -1
  148. package/dist/client/shared/ui/Loading/Loading.js +9 -9
  149. package/dist/client/shared/ui/Loading/index.d.ts +1 -1
  150. package/dist/client/shared/ui/Loading/index.js +1 -1
  151. package/dist/client/shared/ui/Loading/styles.module.scss +2 -2
  152. package/dist/client/shared/ui/Popup/Popup.d.ts +1 -1
  153. package/dist/client/shared/ui/Popup/index.d.ts +1 -1
  154. package/dist/client/shared/ui/Popup/index.js +1 -1
  155. package/dist/client/shared/ui/Popup/styles.module.scss +1 -1
  156. package/dist/client/shared/ui/ProgressBar/ProgressBar.d.ts +2 -2
  157. package/dist/client/shared/ui/ProgressBar/ProgressBar.js +3 -3
  158. package/dist/client/shared/ui/ProgressBar/index.d.ts +1 -1
  159. package/dist/client/shared/ui/ProgressBar/index.js +1 -1
  160. package/dist/client/shared/ui/ProgressBar/styles.module.scss +1 -1
  161. package/dist/client/shared/ui/Select/index.d.ts +1 -1
  162. package/dist/client/shared/ui/Select/index.js +1 -1
  163. package/dist/client/shared/ui/Select/styles.module.scss +1 -1
  164. package/dist/client/shared/ui/StatusCounter/StatusCounter.d.ts +2 -2
  165. package/dist/client/shared/ui/StatusCounter/StatusCounter.js +13 -13
  166. package/dist/client/shared/ui/StatusCounter/index.d.ts +1 -1
  167. package/dist/client/shared/ui/StatusCounter/index.js +1 -1
  168. package/dist/client/shared/ui/StatusCounter/styles.module.scss +1 -1
  169. package/dist/client/shared/ui/StatusIndicator/StatusIndicator.d.ts +3 -3
  170. package/dist/client/shared/ui/StatusIndicator/StatusIndicator.js +4 -4
  171. package/dist/client/shared/ui/StatusIndicator/index.d.ts +1 -1
  172. package/dist/client/shared/ui/StatusIndicator/index.js +1 -1
  173. package/dist/client/shared/ui/StatusIndicator/styles.module.scss +1 -1
  174. package/dist/client/shared/ui/Tooltip/Tooltip.d.ts +2 -2
  175. package/dist/client/shared/ui/Tooltip/Tooltip.js +4 -4
  176. package/dist/client/shared/ui/Tooltip/index.d.ts +1 -1
  177. package/dist/client/shared/ui/Tooltip/index.js +1 -1
  178. package/dist/client/shared/ui/Tooltip/styles.module.scss +5 -5
  179. package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.d.ts +1 -1
  180. package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.js +6 -6
  181. package/dist/client/shared/ui/form/FormCheckbox/index.d.ts +1 -1
  182. package/dist/client/shared/ui/form/FormCheckbox/index.js +1 -1
  183. package/dist/client/shared/ui/form/FormCheckbox/styles.module.scss +1 -1
  184. package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.js +5 -5
  185. package/dist/client/shared/ui/form/FormCheckboxPublish/index.d.ts +1 -1
  186. package/dist/client/shared/ui/form/FormCheckboxPublish/index.js +1 -1
  187. package/dist/client/shared/ui/form/FormCheckboxPublish/styles.module.scss +1 -1
  188. package/dist/client/shared/ui/form/FormSelect/FormSelect.d.ts +5 -5
  189. package/dist/client/shared/ui/form/FormSelect/FormSelect.js +9 -9
  190. package/dist/client/shared/ui/form/FormSelect/index.d.ts +1 -1
  191. package/dist/client/shared/ui/form/FormSelect/index.js +1 -1
  192. package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.d.ts +1 -1
  193. package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.js +2 -2
  194. package/dist/client/shared/ui/form/FormSelectLocale/index.d.ts +1 -1
  195. package/dist/client/shared/ui/form/FormSelectLocale/index.js +1 -1
  196. package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.d.ts +2 -2
  197. package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.js +9 -9
  198. package/dist/client/shared/ui/form/FormSelectStrategy/index.d.ts +2 -2
  199. package/dist/client/shared/ui/form/FormSelectStrategy/index.js +1 -1
  200. package/dist/client/shared/ui/form/FormSelectStrategy/styles.module.scss +1 -1
  201. package/dist/client/shared/utils/componentPath.js +1 -1
  202. package/dist/client/widgets/bulk-translation-dashboard/index.d.ts +1 -1
  203. package/dist/client/widgets/bulk-translation-dashboard/index.js +1 -1
  204. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts +2 -2
  205. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js +3 -3
  206. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.js +11 -11
  207. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts +2 -2
  208. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.js +3 -3
  209. package/dist/client/widgets/bulk-translation-dashboard/ui/index.d.ts +1 -1
  210. package/dist/client/widgets/bulk-translation-dashboard/ui/index.js +1 -1
  211. package/dist/client/widgets/translate-document/index.d.ts +1 -1
  212. package/dist/client/widgets/translate-document/index.js +1 -1
  213. package/dist/client/widgets/translate-document/ui/TranslateDocument.export.d.ts +3 -3
  214. package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js +3 -3
  215. package/dist/client/widgets/translate-document/ui/TranslateDocument.js +16 -16
  216. package/dist/client/widgets/translate-document/ui/TranslateDocument.server.d.ts +2 -2
  217. package/dist/client/widgets/translate-document/ui/TranslateDocument.server.js +3 -3
  218. package/dist/client/widgets/translate-document/ui/index.d.ts +1 -1
  219. package/dist/client/widgets/translate-document/ui/index.js +1 -1
  220. package/dist/client/widgets/translate-field-control/ui/TranslateFieldControl.export.d.ts +1 -1
  221. package/dist/client/widgets/translate-field-control/ui/styles.module.scss +1 -1
  222. package/dist/{server/modules/translation-levels → composition/levels}/collectionLevel.d.ts +1 -1
  223. package/dist/{server/modules/translation-levels → composition/levels}/collectionLevel.js +1 -1
  224. package/dist/{server/modules/translation-levels → composition/levels}/documentLevel.d.ts +1 -1
  225. package/dist/{server/modules/translation-levels → composition/levels}/documentLevel.js +1 -1
  226. package/dist/{server/modules/translation-levels → composition/levels}/fieldLevel.d.ts +1 -1
  227. package/dist/{server/modules/translation-levels → composition/levels}/fieldLevel.js +1 -1
  228. package/dist/composition/levels/index.d.ts +3 -0
  229. package/dist/composition/levels/index.js +5 -0
  230. package/dist/{server/modules/translation-levels → composition/levels}/useDocTranslationApi.d.ts +1 -1
  231. package/dist/{server/modules/translation-levels → composition/levels}/useDocTranslationApi.js +1 -1
  232. package/dist/core/content-projection/contentProjector.d.ts +28 -0
  233. package/dist/core/content-projection/contentProjector.js +97 -0
  234. package/dist/core/content-projection/fingerprinter.d.ts +28 -0
  235. package/dist/core/content-projection/fingerprinter.js +29 -0
  236. package/dist/core/content-projection/idPath.d.ts +48 -0
  237. package/dist/core/content-projection/idPath.js +64 -0
  238. package/dist/core/content-projection/translatableLeaf.d.ts +27 -0
  239. package/dist/core/content-projection/translatableLeaf.js +37 -0
  240. package/dist/core/field-config/getFieldConfig.d.ts +23 -0
  241. package/dist/{server/shared → core}/field-config/getFieldConfig.js +5 -5
  242. package/dist/{server/shared → core}/field-config/index.d.ts +3 -3
  243. package/dist/core/field-config/index.js +4 -0
  244. package/dist/{server/shared → core}/field-traversal/findFieldByPath.d.ts +2 -3
  245. package/dist/core/field-traversal/guards.d.ts +19 -0
  246. package/dist/core/field-traversal/guards.js +20 -0
  247. package/dist/core/field-traversal/index.d.ts +7 -0
  248. package/dist/core/field-traversal/index.js +7 -0
  249. package/dist/{server/shared → core}/field-traversal/kernel.d.ts +7 -8
  250. package/dist/{server/shared → core}/field-traversal/kernel.js +6 -6
  251. package/dist/core/field-traversal/predicates.d.ts +24 -0
  252. package/dist/core/field-traversal/predicates.js +17 -0
  253. package/dist/{server/shared → core}/field-traversal/types.d.ts +129 -27
  254. package/dist/{server/shared → core}/field-traversal/types.js +6 -0
  255. package/dist/{server/shared → core}/field-traversal/walkFields.d.ts +2 -3
  256. package/dist/core/index.d.ts +10 -0
  257. package/dist/core/index.js +14 -0
  258. package/dist/{server/shared → core}/lexical/collectTextNodes.d.ts +1 -1
  259. package/dist/{server/shared → core}/lexical/collectTextNodes.js +1 -1
  260. package/dist/{server/shared → core}/lexical/guards.d.ts +1 -1
  261. package/dist/{server/shared → core}/lexical/guards.js +4 -4
  262. package/dist/core/lexical/index.d.ts +6 -0
  263. package/dist/core/lexical/index.js +6 -0
  264. package/dist/{server/shared → core}/lexical/isEmptyRichText.d.ts +1 -1
  265. package/dist/{server/shared → core}/lexical/isEmptyRichText.js +3 -3
  266. package/dist/{server/shared → core}/lexical/traverseLexicalTree.d.ts +1 -1
  267. package/dist/{server/shared → core}/lexical/traverseLexicalTree.js +1 -1
  268. package/dist/core/lexical/types.d.ts +33 -0
  269. package/dist/core/lexical/types.js +11 -0
  270. package/dist/{server/modules → core}/translation-pipeline/TranslationPipeline.d.ts +4 -4
  271. package/dist/{server/modules → core}/translation-pipeline/TranslationPipeline.js +1 -1
  272. package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.d.ts +2 -2
  273. package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.js +3 -2
  274. package/dist/core/translation-pipeline/stages/data-reconciler/index.d.ts +2 -0
  275. package/dist/core/translation-pipeline/stages/data-reconciler/index.js +4 -0
  276. package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.d.ts +2 -2
  277. package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.js +18 -4
  278. package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.d.ts +2 -2
  279. package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.js +2 -2
  280. package/dist/core/translation-pipeline/stages/field-collector/index.d.ts +2 -0
  281. package/dist/core/translation-pipeline/stages/field-collector/index.js +4 -0
  282. package/dist/core/translation-pipeline/stages/index.d.ts +6 -0
  283. package/dist/core/translation-pipeline/stages/index.js +7 -0
  284. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts +2 -2
  285. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/PlainTextExpander.js +2 -2
  286. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/RichTextExpander.d.ts +2 -2
  287. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/RichTextExpander.js +3 -3
  288. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts +2 -2
  289. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.stage.d.ts +2 -2
  290. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.stage.js +4 -4
  291. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextExpander.interface.d.ts +1 -1
  292. package/dist/core/translation-pipeline/stages/text-expander/index.d.ts +6 -0
  293. package/dist/core/translation-pipeline/stages/text-expander/index.js +6 -0
  294. package/dist/{server/modules → core}/translation-pipeline/stages/translation/Translation.stage.d.ts +2 -2
  295. package/dist/{server/modules → core}/translation-pipeline/stages/translation/Translation.stage.js +1 -1
  296. package/dist/core/translation-pipeline/stages/translation/index.d.ts +1 -0
  297. package/dist/core/translation-pipeline/stages/translation/index.js +3 -0
  298. package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.d.ts +1 -1
  299. package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.js +1 -1
  300. package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.d.ts +1 -1
  301. package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.js +2 -2
  302. package/dist/core/translation-pipeline/stages/translation-applicator/index.d.ts +2 -0
  303. package/dist/core/translation-pipeline/stages/translation-applicator/index.js +4 -0
  304. package/dist/{server/modules → core}/translation-pipeline/strategies/Overwrite.strategy.d.ts +1 -1
  305. package/dist/{server/modules → core}/translation-pipeline/strategies/Overwrite.strategy.js +1 -1
  306. package/dist/{server/modules → core}/translation-pipeline/strategies/SkipExisting.strategy.d.ts +1 -1
  307. package/dist/{server/modules → core}/translation-pipeline/strategies/SkipExisting.strategy.js +3 -1
  308. package/dist/core/translation-pipeline/strategies/index.d.ts +13 -0
  309. package/dist/{server/modules → core}/translation-pipeline/strategies/index.js +4 -4
  310. package/dist/{server/modules → core}/translation-pipeline/translateContent.d.ts +2 -2
  311. package/dist/{server/modules → core}/translation-pipeline/types/FieldChunk.d.ts +3 -3
  312. package/dist/{server/modules → core}/translation-pipeline/types/Pipeline.d.ts +2 -2
  313. package/dist/{server/modules → core}/translation-pipeline/types/PipelineContext.d.ts +4 -4
  314. package/dist/{server/modules → core}/translation-pipeline/types/TextChunk.d.ts +3 -3
  315. package/dist/{server/modules → core}/translation-pipeline/types/TextChunk.js +2 -2
  316. package/dist/core/translation-pipeline/types/index.d.ts +5 -0
  317. package/dist/core/translation-pipeline/types/index.js +3 -0
  318. package/dist/core/translation-providers/index.d.ts +1 -0
  319. package/dist/core/translation-providers/index.js +5 -0
  320. package/dist/core/utils/index.d.ts +2 -0
  321. package/dist/core/utils/index.js +4 -0
  322. package/dist/{server/shared → core}/utils/isEmpty.js +2 -2
  323. package/dist/{server/shared → core}/utils/isObject.js +1 -1
  324. package/dist/field-actions.d.ts +1 -1
  325. package/dist/field-config.d.ts +1 -1
  326. package/dist/field-config.js +1 -1
  327. package/dist/index.d.ts +5 -4
  328. package/dist/index.js +4 -4
  329. package/dist/plugin.d.ts +1 -1
  330. package/dist/plugin.js +1 -1
  331. package/dist/server/features/_lib/collection-utils.d.ts +1 -1
  332. package/dist/server/features/_lib/index.d.ts +1 -1
  333. package/dist/server/features/_lib/index.js +1 -1
  334. package/dist/server/features/cancel/index.d.ts +1 -1
  335. package/dist/server/features/cancel/index.js +1 -1
  336. package/dist/server/features/cancel-by-collection/index.d.ts +1 -1
  337. package/dist/server/features/cancel-by-collection/index.js +1 -1
  338. package/dist/server/features/cancel-by-collection/model.d.ts +2 -2
  339. package/dist/server/features/cancel-by-collection/model.js +1 -1
  340. package/dist/server/features/createTranslationRoutes.d.ts +1 -1
  341. package/dist/server/features/enqueue-translation/index.d.ts +1 -1
  342. package/dist/server/features/enqueue-translation/index.js +1 -1
  343. package/dist/server/features/enqueue-translation/model.d.ts +2 -2
  344. package/dist/server/features/enqueue-translation/model.js +4 -4
  345. package/dist/server/features/get-collection-status/index.d.ts +1 -1
  346. package/dist/server/features/get-collection-status/index.js +1 -1
  347. package/dist/server/features/get-collection-status/model.d.ts +3 -3
  348. package/dist/server/features/get-collection-status/model.js +1 -1
  349. package/dist/server/features/get-document-status/index.d.ts +2 -2
  350. package/dist/server/features/get-document-status/index.js +2 -2
  351. package/dist/server/features/run-translation/index.d.ts +1 -1
  352. package/dist/server/features/run-translation/index.js +1 -1
  353. package/dist/server/features/translate-document/handler.d.ts +3 -2
  354. package/dist/server/features/translate-document/handler.js +1 -1
  355. package/dist/server/features/translate-document/index.d.ts +1 -1
  356. package/dist/server/features/translate-document/model.d.ts +2 -7
  357. package/dist/server/features/translate-document/model.js +1 -2
  358. package/dist/server/features/translate-field/handler.js +1 -1
  359. package/dist/server/features/translate-field/index.d.ts +2 -1
  360. package/dist/server/features/translate-field/model.d.ts +2 -19
  361. package/dist/server/features/translate-field/resolveFieldSubtree.js +1 -1
  362. package/dist/server/features/translate-field/route.d.ts +1 -1
  363. package/dist/server/index.d.ts +3 -3
  364. package/dist/server/index.js +3 -3
  365. package/dist/server/modules/index.d.ts +2 -2
  366. package/dist/server/modules/index.js +2 -2
  367. package/dist/server/modules/task-runner/TaskRunner.interface.d.ts +2 -2
  368. package/dist/server/modules/task-runner/TaskRunnerProvider.interface.d.ts +1 -1
  369. package/dist/server/modules/task-runner/index.d.ts +1 -1
  370. package/dist/server/modules/task-runner/payload-jobs-runner/index.d.ts +2 -2
  371. package/dist/server/modules/task-runner/payload-jobs-runner/index.js +1 -1
  372. package/dist/server/modules/task-runner/sync-runner/index.d.ts +1 -1
  373. package/dist/server/modules/task-runner/sync-runner/index.js +1 -1
  374. package/dist/server/modules/translation-levels/PluginConfigBuilder.d.ts +3 -3
  375. package/dist/server/modules/translation-levels/index.d.ts +1 -4
  376. package/dist/server/modules/translation-levels/index.js +1 -3
  377. package/dist/server/modules/translation-levels/types.d.ts +3 -3
  378. package/dist/server/shared/access/AnyAccessGuard.d.ts +1 -1
  379. package/dist/server/shared/access/handler.d.ts +1 -1
  380. package/dist/server/shared/access/index.d.ts +3 -3
  381. package/dist/server/shared/access/index.js +1 -1
  382. package/dist/server/shared/access/types.d.ts +1 -1
  383. package/dist/server/shared/guards/collection-guards.d.ts +1 -1
  384. package/dist/server/shared/guards/collection-guards.js +2 -2
  385. package/dist/server/shared/guards/field-guards.d.ts +9 -20
  386. package/dist/server/shared/guards/field-guards.js +5 -20
  387. package/dist/server/shared/guards/index.d.ts +3 -3
  388. package/dist/server/shared/guards/index.js +2 -2
  389. package/dist/server/shared/http/ServerResponse.js +15 -15
  390. package/dist/server/shared/http/index.d.ts +3 -3
  391. package/dist/server/shared/http/index.js +3 -3
  392. package/dist/server/shared/http/withAccessCheck.d.ts +2 -2
  393. package/dist/server/shared/http/withAccessCheck.js +1 -1
  394. package/dist/server/shared/http/withErrorHandler.js +3 -3
  395. package/dist/server/shared/index.d.ts +6 -5
  396. package/dist/server/shared/index.js +4 -3
  397. package/dist/server/shared/utils/filterLocalizedFields.js +2 -2
  398. package/dist/server/shared/utils/getByPath.js +2 -2
  399. package/dist/server/shared/utils/index.d.ts +9 -9
  400. package/dist/server/shared/utils/index.js +8 -8
  401. package/dist/server/shared/utils/normalizePath.js +3 -3
  402. package/dist/server/shared/utils/setByPath.js +2 -2
  403. package/dist/translation-providers/index.d.ts +2 -0
  404. package/dist/translation-providers/index.js +10 -0
  405. package/dist/{server/modules/translation-providers → translation-providers/openai}/OpenAITranslation.provider.d.ts +1 -1
  406. package/dist/{server/modules/translation-providers → translation-providers/openai}/OpenAITranslation.provider.js +1 -1
  407. package/dist/translation-providers/openai/index.d.ts +1 -0
  408. package/dist/translation-providers/openai/index.js +5 -0
  409. package/dist/types/CollectionSchemaMap.d.ts +6 -0
  410. package/dist/types/CollectionSchemaMap.js +6 -0
  411. package/dist/{client/shared/types → types}/PayloadComponentExport.d.ts +1 -1
  412. package/dist/types/index.d.ts +4 -1
  413. package/dist/types/wire/field-translation.d.ts +17 -0
  414. package/dist/types/wire/field-translation.js +7 -0
  415. package/package.json +3 -1
  416. package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.d.ts +0 -2
  417. package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.js +0 -4
  418. package/dist/server/modules/translation-pipeline/stages/field-collector/index.d.ts +0 -2
  419. package/dist/server/modules/translation-pipeline/stages/field-collector/index.js +0 -4
  420. package/dist/server/modules/translation-pipeline/stages/index.d.ts +0 -6
  421. package/dist/server/modules/translation-pipeline/stages/index.js +0 -7
  422. package/dist/server/modules/translation-pipeline/stages/text-expander/index.d.ts +0 -6
  423. package/dist/server/modules/translation-pipeline/stages/text-expander/index.js +0 -6
  424. package/dist/server/modules/translation-pipeline/stages/translation/index.d.ts +0 -1
  425. package/dist/server/modules/translation-pipeline/stages/translation/index.js +0 -3
  426. package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.d.ts +0 -2
  427. package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.js +0 -4
  428. package/dist/server/modules/translation-pipeline/strategies/index.d.ts +0 -13
  429. package/dist/server/modules/translation-pipeline/types/index.d.ts +0 -5
  430. package/dist/server/modules/translation-pipeline/types/index.js +0 -3
  431. package/dist/server/modules/translation-providers/index.d.ts +0 -2
  432. package/dist/server/modules/translation-providers/index.js +0 -3
  433. package/dist/server/shared/field-config/getFieldConfig.d.ts +0 -20
  434. package/dist/server/shared/field-config/index.js +0 -4
  435. package/dist/server/shared/field-traversal/index.d.ts +0 -5
  436. package/dist/server/shared/field-traversal/index.js +0 -5
  437. package/dist/server/shared/lexical/index.d.ts +0 -6
  438. package/dist/server/shared/lexical/index.js +0 -6
  439. package/dist/server/shared/lexical/types.d.ts +0 -19
  440. package/dist/server/shared/lexical/types.js +0 -8
  441. /package/dist/{server/shared → core}/field-config/types.d.ts +0 -0
  442. /package/dist/{server/shared → core}/field-config/types.js +0 -0
  443. /package/dist/{server/shared → core}/field-traversal/findFieldByPath.js +0 -0
  444. /package/dist/{server/shared → core}/field-traversal/walkFields.js +0 -0
  445. /package/dist/{server/modules → core}/translation-pipeline/index.d.ts +0 -0
  446. /package/dist/{server/modules → core}/translation-pipeline/index.js +0 -0
  447. /package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.stage.d.ts +0 -0
  448. /package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.stage.js +0 -0
  449. /package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.js +0 -0
  450. /package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextExpander.interface.js +0 -0
  451. /package/dist/{server/modules → core}/translation-pipeline/strategies/TranslationStrategy.interface.d.ts +0 -0
  452. /package/dist/{server/modules → core}/translation-pipeline/strategies/TranslationStrategy.interface.js +0 -0
  453. /package/dist/{server/modules → core}/translation-pipeline/translateContent.js +0 -0
  454. /package/dist/{server/modules → core}/translation-pipeline/types/FieldChunk.js +0 -0
  455. /package/dist/{server/modules → core}/translation-pipeline/types/Pipeline.js +0 -0
  456. /package/dist/{server/modules → core}/translation-pipeline/types/PipelineContext.js +0 -0
  457. /package/dist/{server/modules → core}/translation-providers/TranslationProvider.interface.d.ts +0 -0
  458. /package/dist/{server/modules → core}/translation-providers/TranslationProvider.interface.js +0 -0
  459. /package/dist/{server/shared → core}/utils/isEmpty.d.ts +0 -0
  460. /package/dist/{server/shared → core}/utils/isObject.d.ts +0 -0
  461. /package/dist/{client/shared/types → types}/PayloadComponentExport.js +0 -0
@@ -1 +1 @@
1
- export { default } from './Loading';
1
+ export { default } from "./Loading";
@@ -1,3 +1,3 @@
1
- export { default } from './Loading';
1
+ export { default } from "./Loading";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  &:after {
23
- content: '';
23
+ content: "";
24
24
  position: absolute;
25
25
  top: 0;
26
26
  left: 0;
@@ -138,4 +138,4 @@
138
138
  100% {
139
139
  opacity: 0;
140
140
  }
141
- }
141
+ }
@@ -12,5 +12,5 @@ type PopupProps = PropsWithChildren<{
12
12
  */
13
13
  onOpenAutoFocus?: (event: Event) => void;
14
14
  }>;
15
- declare function Popup({ open, children, onOpenChange, $trigger, $align, $side, onOpenAutoFocus }: PopupProps): import("react/jsx-runtime").JSX.Element;
15
+ declare function Popup({ open, children, onOpenChange, $trigger, $align, $side, onOpenAutoFocus, }: PopupProps): import("react/jsx-runtime").JSX.Element;
16
16
  export default Popup;
@@ -1 +1 @@
1
- export { default } from './Popup';
1
+ export { default } from "./Popup";
@@ -1,3 +1,3 @@
1
- export { default } from './Popup';
1
+ export { default } from "./Popup";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -4,4 +4,4 @@
4
4
  color: var(--theme-text);
5
5
  border-radius: var(--style-radius-m);
6
6
  padding: 0.5rem;
7
- }
7
+ }
@@ -1,7 +1,7 @@
1
1
  type ProgressBarProps = {
2
2
  percentage: number;
3
- size?: 'small' | 'medium' | 'large';
4
- color?: 'blue' | 'green' | 'red' | 'gray';
3
+ size?: "small" | "medium" | "large";
4
+ color?: "blue" | "green" | "red" | "gray";
5
5
  showPercentage?: boolean;
6
6
  className?: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import classNames from 'classnames';
3
- import styles from './styles.module.scss';
4
- export default function ProgressBar({ percentage, size = 'medium', color = 'blue', showPercentage = true, className }) {
2
+ import classNames from "classnames";
3
+ import styles from "./styles.module.scss";
4
+ export default function ProgressBar({ percentage, size = "medium", color = "blue", showPercentage = true, className }) {
5
5
  const clampedPercentage = Math.max(0, Math.min(100, percentage));
6
6
  return /*#__PURE__*/ _jsxs("div", {
7
7
  className: classNames(styles.container, className),
@@ -1 +1 @@
1
- export { default as ProgressBar } from './ProgressBar';
1
+ export { default as ProgressBar } from "./ProgressBar";
@@ -1,3 +1,3 @@
1
- export { default as ProgressBar } from './ProgressBar';
1
+ export { default as ProgressBar } from "./ProgressBar";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -61,4 +61,4 @@
61
61
  &.large-label {
62
62
  font-size: var(--font-size-base);
63
63
  }
64
- }
64
+ }
@@ -1 +1 @@
1
- export { default } from './Select';
1
+ export { default } from "./Select";
@@ -1,3 +1,3 @@
1
- export { default } from './Select';
1
+ export { default } from "./Select";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -57,4 +57,4 @@
57
57
  outline: 2px solid var(--theme-error-200);
58
58
  outline-offset: -1px;
59
59
  }
60
- }
60
+ }
@@ -1,9 +1,9 @@
1
1
  type StatusCounterProps = {
2
- status: 'pending' | 'running' | 'completed' | 'failed';
2
+ status: "pending" | "running" | "completed" | "failed";
3
3
  count: number;
4
4
  label?: string;
5
5
  animated?: boolean;
6
- size?: 'small' | 'medium';
6
+ size?: "small" | "medium";
7
7
  className?: string;
8
8
  };
9
9
  export default function StatusCounter({ status, count, label, animated, size, className, }: StatusCounterProps): import("react/jsx-runtime").JSX.Element;
@@ -1,20 +1,20 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import classNames from 'classnames';
3
- import StatusIndicator from '../StatusIndicator';
4
- import styles from './styles.module.scss';
2
+ import classNames from "classnames";
3
+ import StatusIndicator from "../StatusIndicator";
4
+ import styles from "./styles.module.scss";
5
5
  const statusColorMap = {
6
- pending: 'gray',
7
- running: 'blue',
8
- completed: 'green',
9
- failed: 'red'
6
+ pending: "gray",
7
+ running: "blue",
8
+ completed: "green",
9
+ failed: "red"
10
10
  };
11
11
  const statusLabelMap = {
12
- pending: 'В очереди',
13
- running: 'В процессе',
14
- completed: 'Завершено',
15
- failed: 'Ошибки'
12
+ pending: "В очереди",
13
+ running: "В процессе",
14
+ completed: "Завершено",
15
+ failed: "Ошибки"
16
16
  };
17
- export default function StatusCounter({ status, count, label, animated = false, size = 'medium', className }) {
17
+ export default function StatusCounter({ status, count, label, animated = false, size = "medium", className }) {
18
18
  const displayLabel = label || statusLabelMap[status];
19
19
  const color = statusColorMap[status];
20
20
  return /*#__PURE__*/ _jsxs("div", {
@@ -22,7 +22,7 @@ export default function StatusCounter({ status, count, label, animated = false,
22
22
  children: [
23
23
  /*#__PURE__*/ _jsx(StatusIndicator, {
24
24
  $color: color,
25
- $animated: animated && status === 'running',
25
+ $animated: animated && status === "running",
26
26
  className: styles.indicator
27
27
  }),
28
28
  /*#__PURE__*/ _jsxs("div", {
@@ -1 +1 @@
1
- export { default as StatusCounter } from './StatusCounter';
1
+ export { default as StatusCounter } from "./StatusCounter";
@@ -1,3 +1,3 @@
1
- export { default as StatusCounter } from './StatusCounter';
1
+ export { default as StatusCounter } from "./StatusCounter";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -43,4 +43,4 @@
43
43
  .label {
44
44
  color: var(--color-base-600);
45
45
  line-height: 1.2;
46
- }
46
+ }
@@ -1,9 +1,9 @@
1
- import type { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from "react";
2
2
  type StatusIndicatorProps = PropsWithChildren<{
3
- $color: 'red' | 'green' | 'blue' | 'gray';
3
+ $color: "red" | "green" | "blue" | "gray";
4
4
  $animated?: boolean;
5
5
  title?: string;
6
6
  className?: string;
7
7
  }>;
8
- export default function StatusIndicator({ $color, $animated, title, className, children }: StatusIndicatorProps): import("react/jsx-runtime").JSX.Element;
8
+ export default function StatusIndicator({ $color, $animated, title, className, children, }: StatusIndicatorProps): import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import classNames from 'classnames';
3
- import ColorIndicator from '../ColorIndicator';
4
- import styles from './styles.module.scss';
2
+ import classNames from "classnames";
3
+ import ColorIndicator from "../ColorIndicator";
4
+ import styles from "./styles.module.scss";
5
5
  export default function StatusIndicator({ $color, $animated, title, className, children }) {
6
- const cardClassName = classNames(styles['status-indicator'], styles[$color], className);
6
+ const cardClassName = classNames(styles["status-indicator"], styles[$color], className);
7
7
  return /*#__PURE__*/ _jsxs("div", {
8
8
  className: cardClassName,
9
9
  children: [
@@ -1 +1 @@
1
- export { default } from './StatusIndicator';
1
+ export { default } from "./StatusIndicator";
@@ -1,3 +1,3 @@
1
- export { default } from './StatusIndicator';
1
+ export { default } from "./StatusIndicator";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -9,4 +9,4 @@
9
9
  white-space: nowrap;
10
10
  box-sizing: border-box;
11
11
  gap: 0.5rem;
12
- }
12
+ }
@@ -1,8 +1,8 @@
1
- import type { ReactNode } from 'react';
1
+ import type { ReactNode } from "react";
2
2
  type TooltipProps = {
3
3
  children: ReactNode;
4
4
  content: ReactNode;
5
- side?: 'top' | 'bottom' | 'left' | 'right';
5
+ side?: "top" | "bottom" | "left" | "right";
6
6
  sideOffset?: number;
7
7
  delayDuration?: number;
8
8
  };
@@ -1,8 +1,8 @@
1
- 'use client';
1
+ "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import * as RadixTooltip from '@radix-ui/react-tooltip';
4
- import styles from './styles.module.scss';
5
- export default function Tooltip({ children, content, side = 'top', sideOffset = 6, delayDuration = 200 }) {
3
+ import * as RadixTooltip from "@radix-ui/react-tooltip";
4
+ import styles from "./styles.module.scss";
5
+ export default function Tooltip({ children, content, side = "top", sideOffset = 6, delayDuration = 200 }) {
6
6
  return /*#__PURE__*/ _jsx(RadixTooltip.Provider, {
7
7
  delayDuration: delayDuration,
8
8
  children: /*#__PURE__*/ _jsxs(RadixTooltip.Root, {
@@ -1 +1 @@
1
- export { default } from './Tooltip';
1
+ export { default } from "./Tooltip";
@@ -1,3 +1,3 @@
1
- export { default } from './Tooltip';
1
+ export { default } from "./Tooltip";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -14,19 +14,19 @@
14
14
  animation-duration: 150ms;
15
15
  animation-timing-function: ease-out;
16
16
 
17
- &[data-state='delayed-open'][data-side='top'] {
17
+ &[data-state="delayed-open"][data-side="top"] {
18
18
  animation-name: slideDownAndFade;
19
19
  }
20
20
 
21
- &[data-state='delayed-open'][data-side='bottom'] {
21
+ &[data-state="delayed-open"][data-side="bottom"] {
22
22
  animation-name: slideUpAndFade;
23
23
  }
24
24
 
25
- &[data-state='delayed-open'][data-side='left'] {
25
+ &[data-state="delayed-open"][data-side="left"] {
26
26
  animation-name: slideRightAndFade;
27
27
  }
28
28
 
29
- &[data-state='delayed-open'][data-side='right'] {
29
+ &[data-state="delayed-open"][data-side="right"] {
30
30
  animation-name: slideLeftAndFade;
31
31
  }
32
32
  }
@@ -81,4 +81,4 @@
81
81
  opacity: 1;
82
82
  transform: translateX(0);
83
83
  }
84
- }
84
+ }
@@ -1,4 +1,4 @@
1
- import type { ReactElement } from 'react';
1
+ import type { ReactElement } from "react";
2
2
  type FormCheckboxProps = {
3
3
  name: string;
4
4
  label: string | ReactElement;
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useId } from 'react';
3
- import { useController } from 'react-hook-form';
4
- import { Checkbox } from '../../Checkbox';
5
- import Description from '../../Description';
6
- import styles from './styles.module.scss';
2
+ import { useId } from "react";
3
+ import { useController } from "react-hook-form";
4
+ import { Checkbox } from "../../Checkbox";
5
+ import Description from "../../Description";
6
+ import styles from "./styles.module.scss";
7
7
  export function FormCheckbox({ name, label, description, disabled, className }) {
8
8
  const formControl = useController({
9
9
  name
@@ -12,7 +12,7 @@ export function FormCheckbox({ name, label, description, disabled, className })
12
12
  const descriptionId = useId();
13
13
  const inputId = useId();
14
14
  return /*#__PURE__*/ _jsxs("div", {
15
- className: `${styles.container} ${className ?? ''}`,
15
+ className: `${styles.container} ${className ?? ""}`,
16
16
  children: [
17
17
  /*#__PURE__*/ _jsxs("label", {
18
18
  className: styles.label,
@@ -1 +1 @@
1
- export { FormCheckbox } from './FormCheckbox';
1
+ export { FormCheckbox } from "./FormCheckbox";
@@ -1,3 +1,3 @@
1
- export { FormCheckbox } from './FormCheckbox';
1
+ export { FormCheckbox } from "./FormCheckbox";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -20,4 +20,4 @@
20
20
  font-size: 0.875rem;
21
21
  line-height: 1.25rem;
22
22
  color: var(--theme-elevation-800);
23
- }
23
+ }
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { FormCheckbox } from '../FormCheckbox';
3
- import Tooltip from '../../Tooltip';
4
- import { QuestionCircleIcon } from '../../../lib/assets/icons/QuestionCircleIcon';
5
- import styles from './styles.module.scss';
6
- const PUBLISH_LABEL = 'Publish after translation';
2
+ import { FormCheckbox } from "../FormCheckbox";
3
+ import Tooltip from "../../Tooltip";
4
+ import { QuestionCircleIcon } from "../../../lib/assets/icons/QuestionCircleIcon";
5
+ import styles from "./styles.module.scss";
6
+ const PUBLISH_LABEL = "Publish after translation";
7
7
  const PUBLISH_TOOLTIP = /*#__PURE__*/ _jsxs(_Fragment, {
8
8
  children: [
9
9
  "When enabled, translated documents will be published immediately.",
@@ -1 +1 @@
1
- export { FormCheckboxPublish } from './FormCheckboxPublish';
1
+ export { FormCheckboxPublish } from "./FormCheckboxPublish";
@@ -1,3 +1,3 @@
1
- export { FormCheckboxPublish } from './FormCheckboxPublish';
1
+ export { FormCheckboxPublish } from "./FormCheckboxPublish";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -13,4 +13,4 @@
13
13
  &:hover {
14
14
  color: var(--theme-elevation-800);
15
15
  }
16
- }
16
+ }
@@ -1,4 +1,4 @@
1
- import type { ReactElement } from 'react';
1
+ import type { ReactElement } from "react";
2
2
  type FormSelectProps = {
3
3
  name: string;
4
4
  required?: boolean;
@@ -10,10 +10,10 @@ type FormSelectProps = {
10
10
  description?: string;
11
11
  placeholder?: string;
12
12
  disabled?: boolean;
13
- size?: 'sm' | 'md' | 'lg';
14
- 'aria-label'?: string;
15
- 'aria-labelledby'?: string;
13
+ size?: "sm" | "md" | "lg";
14
+ "aria-label"?: string;
15
+ "aria-labelledby"?: string;
16
16
  className?: string;
17
17
  };
18
- export default function FormSelect({ name, required, options, label, description, disabled, size, placeholder, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, className, }: FormSelectProps): import("react/jsx-runtime").JSX.Element;
18
+ export default function FormSelect({ name, required, options, label, description, disabled, size, placeholder, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, className, }: FormSelectProps): import("react/jsx-runtime").JSX.Element;
19
19
  export {};
@@ -1,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { useId } from 'react';
3
- import { useController } from 'react-hook-form';
4
- import Description from '../../Description';
5
- import Label from '../../Label';
6
- import Select from '../../Select';
7
- export default function FormSelect({ name, required, options, label, description, disabled, size, placeholder, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledby, className }) {
2
+ import { useId } from "react";
3
+ import { useController } from "react-hook-form";
4
+ import Description from "../../Description";
5
+ import Label from "../../Label";
6
+ import Select from "../../Select";
7
+ export default function FormSelect({ name, required, options, label, description, disabled, size, placeholder, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, className }) {
8
8
  const formControl = useController({
9
9
  name,
10
10
  rules: {
@@ -19,16 +19,16 @@ export default function FormSelect({ name, required, options, label, description
19
19
  }
20
20
  if (ariaLabelledby) {
21
21
  return {
22
- 'aria-labelledby': ariaLabelledby
22
+ "aria-labelledby": ariaLabelledby
23
23
  };
24
24
  }
25
25
  if (ariaLabel) {
26
26
  return {
27
- 'aria-label': ariaLabel
27
+ "aria-label": ariaLabel
28
28
  };
29
29
  }
30
30
  return {
31
- 'aria-label': 'Select option'
31
+ "aria-label": "Select option"
32
32
  };
33
33
  };
34
34
  const selectElement = /*#__PURE__*/ _jsxs(Select, {
@@ -1 +1 @@
1
- export { default } from './FormSelect';
1
+ export { default } from "./FormSelect";
@@ -1,3 +1,3 @@
1
- export { default } from './FormSelect';
1
+ export { default } from "./FormSelect";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -4,7 +4,7 @@ type FormSelectProps = {
4
4
  label?: string;
5
5
  description?: string;
6
6
  disabled?: boolean;
7
- size?: 'sm' | 'md' | 'lg';
7
+ size?: "sm" | "md" | "lg";
8
8
  className?: string;
9
9
  };
10
10
  export default function FormSelectLocale({ name, required, label, description, disabled, size, className, }: FormSelectProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useLocaleOptions } from '../../../lib/payload/hooks/useLocaleOptions';
3
- import FormSelect from '../FormSelect';
2
+ import { useLocaleOptions } from "../../../lib/payload/hooks/useLocaleOptions";
3
+ import FormSelect from "../FormSelect";
4
4
  export default function FormSelectLocale({ name, required, label, description, disabled, size, className }) {
5
5
  const localeOptions = useLocaleOptions();
6
6
  return /*#__PURE__*/ _jsx(FormSelect, {
@@ -1 +1 @@
1
- export { default } from './FormSelectLocale';
1
+ export { default } from "./FormSelectLocale";
@@ -1,3 +1,3 @@
1
- export { default } from './FormSelectLocale';
1
+ export { default } from "./FormSelectLocale";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -10,9 +10,9 @@ type FormSelectStrategyProps = {
10
10
  required?: boolean;
11
11
  description?: string;
12
12
  disabled?: boolean;
13
- size?: 'sm' | 'md' | 'lg';
13
+ size?: "sm" | "md" | "lg";
14
14
  className?: string;
15
15
  };
16
16
  export declare function FormSelectStrategy({ name, required, description, disabled, size, className, }: FormSelectStrategyProps): import("react/jsx-runtime").JSX.Element;
17
- export type TranslationStrategy = (typeof STRATEGY_OPTIONS)[number]['value'];
17
+ export type TranslationStrategy = (typeof STRATEGY_OPTIONS)[number]["value"];
18
18
  export {};
@@ -1,19 +1,19 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import FormSelect from '../FormSelect';
3
- import Tooltip from '../../Tooltip';
4
- import { QuestionCircleIcon } from '../../../lib/assets/icons/QuestionCircleIcon';
5
- import styles from './styles.module.scss';
2
+ import FormSelect from "../FormSelect";
3
+ import Tooltip from "../../Tooltip";
4
+ import { QuestionCircleIcon } from "../../../lib/assets/icons/QuestionCircleIcon";
5
+ import styles from "./styles.module.scss";
6
6
  const STRATEGY_OPTIONS = [
7
7
  {
8
- value: 'overwrite',
9
- label: 'Overwrite'
8
+ value: "overwrite",
9
+ label: "Overwrite"
10
10
  },
11
11
  {
12
- value: 'skip_existing',
13
- label: 'Skip existing'
12
+ value: "skip_existing",
13
+ label: "Skip existing"
14
14
  }
15
15
  ];
16
- const STRATEGY_LABEL = 'Update mode';
16
+ const STRATEGY_LABEL = "Update mode";
17
17
  const STRATEGY_TOOLTIP = /*#__PURE__*/ _jsxs(_Fragment, {
18
18
  children: [
19
19
  /*#__PURE__*/ _jsx("strong", {
@@ -1,2 +1,2 @@
1
- export { FormSelectStrategy } from './FormSelectStrategy';
2
- export type { TranslationStrategy } from './FormSelectStrategy';
1
+ export { FormSelectStrategy } from "./FormSelectStrategy";
2
+ export type { TranslationStrategy } from "./FormSelectStrategy";
@@ -1,3 +1,3 @@
1
- export { FormSelectStrategy } from './FormSelectStrategy';
1
+ export { FormSelectStrategy } from "./FormSelectStrategy";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -13,4 +13,4 @@
13
13
  &:hover {
14
14
  color: var(--theme-elevation-800);
15
15
  }
16
- }
16
+ }
@@ -1,4 +1,4 @@
1
- const PACKAGE_NAME = '@focus-reactive/payload-plugin-translator';
1
+ const PACKAGE_NAME = "@focus-reactive/payload-plugin-translator";
2
2
  /**
3
3
  * Creates a full path to a client component for Payload's import map.
4
4
  * @param relativePath - Path relative to the client folder (e.g., 'widgets/translate-document/ui/TranslateDocument.server')
@@ -1 +1 @@
1
- export { BulkDocumentTranslationDashboard } from './ui/BulkTranslationDashboard.export';
1
+ export { BulkDocumentTranslationDashboard } from "./ui/BulkTranslationDashboard.export";
@@ -1,3 +1,3 @@
1
- export { BulkDocumentTranslationDashboard } from './ui/BulkTranslationDashboard.export';
1
+ export { BulkDocumentTranslationDashboard } from "./ui/BulkTranslationDashboard.export";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import type { AccessGuard } from '../../../../types/AccessGuard';
2
- import type { RawPayloadComponentExport } from '../../../shared/types/PayloadComponentExport';
1
+ import type { AccessGuard } from "../../../../types/AccessGuard";
2
+ import type { RawPayloadComponentExport } from "../../../../types/PayloadComponentExport";
3
3
  export declare class BulkDocumentTranslationDashboard implements RawPayloadComponentExport {
4
4
  readonly access: AccessGuard;
5
5
  serverProps?: object | Record<string, any> | undefined;
@@ -1,11 +1,11 @@
1
- import { AnyAccessGuard } from '../../../../server/shared';
2
- import { clientComponentPath } from '../../../shared/utils/componentPath';
1
+ import { AnyAccessGuard } from "../../../../server/shared";
2
+ import { clientComponentPath } from "../../../shared/utils/componentPath";
3
3
  export class BulkDocumentTranslationDashboard {
4
4
  access;
5
5
  serverProps;
6
6
  constructor(access = new AnyAccessGuard()){
7
7
  this.access = access;
8
- this.path = clientComponentPath('widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server');
8
+ this.path = clientComponentPath("widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server");
9
9
  this.serverProps = {
10
10
  access
11
11
  };