@focus-reactive/payload-plugin-translator 0.1.0 → 0.1.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 (636) hide show
  1. package/README.md +27 -14
  2. package/dist/client/app/cache/CacheProvider.export.js +1 -1
  3. package/dist/client/entities/translation/ui/CompletedTranslationStatus/styles.module.scss +3 -0
  4. package/dist/client/entities/translation/ui/FailedTranslationStatus/styles.module.scss +3 -0
  5. package/dist/client/entities/translation/ui/TranslationDirection/styles.module.scss +16 -0
  6. package/dist/client/features/collection-translation-form/ui/styles.module.scss +31 -0
  7. package/dist/client/features/collection-translation-popup/ui/styles.module.scss +18 -0
  8. package/dist/client/features/collection-translation-progress/ui/styles.module.scss +8 -0
  9. package/dist/client/features/open-document-translation-popup/ui/styles.module.scss +11 -0
  10. package/dist/client/features/translate-document-form/ui/styles.module.scss +18 -0
  11. package/dist/client/shared/ui/Alert/styles.module.scss +31 -0
  12. package/dist/client/shared/ui/Button/styles.module.scss +103 -0
  13. package/dist/client/shared/ui/Checkbox/styles.module.scss +17 -0
  14. package/dist/client/shared/ui/ColorIndicator/styles.module.scss +37 -0
  15. package/dist/client/shared/ui/Description/styles.module.scss +14 -0
  16. package/dist/client/shared/ui/Divider/styles.module.scss +56 -0
  17. package/dist/client/shared/ui/Label/styles.module.scss +12 -0
  18. package/dist/client/shared/ui/Loading/styles.module.scss +141 -0
  19. package/dist/client/shared/ui/Popup/styles.module.scss +7 -0
  20. package/dist/client/shared/ui/ProgressBar/styles.module.scss +64 -0
  21. package/dist/client/shared/ui/Select/styles.module.scss +55 -0
  22. package/dist/client/shared/ui/StatusCounter/styles.module.scss +46 -0
  23. package/dist/client/shared/ui/StatusIndicator/styles.module.scss +12 -0
  24. package/dist/client/shared/ui/Tooltip/styles.module.scss +84 -0
  25. package/dist/client/shared/ui/form/FormCheckbox/styles.module.scss +23 -0
  26. package/dist/client/shared/ui/form/FormCheckboxPublish/styles.module.scss +16 -0
  27. package/dist/client/shared/ui/form/FormSelectStrategy/styles.module.scss +16 -0
  28. package/dist/client/shared/utils/componentPath.d.ts +1 -1
  29. package/dist/client/shared/utils/componentPath.js +1 -1
  30. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js +1 -1
  31. package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js +1 -1
  32. package/package.json +32 -17
  33. package/dist/client/app/cache/CacheProvider.d.ts.map +0 -1
  34. package/dist/client/app/cache/CacheProvider.export.d.ts.map +0 -1
  35. package/dist/client/app/cache/CacheProvider.export.js.map +0 -1
  36. package/dist/client/app/cache/CacheProvider.js.map +0 -1
  37. package/dist/client/app/cache/CacheProvider.jsx +0 -11
  38. package/dist/client/app/config/TranslateKitConfigContext.d.ts.map +0 -1
  39. package/dist/client/app/config/TranslateKitConfigContext.js.map +0 -1
  40. package/dist/client/app/config/TranslateKitConfigContext.jsx +0 -13
  41. package/dist/client/app/config/index.d.ts.map +0 -1
  42. package/dist/client/app/config/index.js.map +0 -1
  43. package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.d.ts.map +0 -1
  44. package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.js.map +0 -1
  45. package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.d.ts.map +0 -1
  46. package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.js.map +0 -1
  47. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.d.ts.map +0 -1
  48. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.js.map +0 -1
  49. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.d.ts.map +0 -1
  50. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.js.map +0 -1
  51. package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.d.ts.map +0 -1
  52. package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.js.map +0 -1
  53. package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.d.ts.map +0 -1
  54. package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.js.map +0 -1
  55. package/dist/client/entities/translation/api/queries/useDocumentTranslation.d.ts.map +0 -1
  56. package/dist/client/entities/translation/api/queries/useDocumentTranslation.js.map +0 -1
  57. package/dist/client/entities/translation/index.d.ts.map +0 -1
  58. package/dist/client/entities/translation/index.js.map +0 -1
  59. package/dist/client/entities/translation/model/enums.d.ts.map +0 -1
  60. package/dist/client/entities/translation/model/enums.js.map +0 -1
  61. package/dist/client/entities/translation/model/types.d.ts.map +0 -1
  62. package/dist/client/entities/translation/model/types.js.map +0 -1
  63. package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.d.ts.map +0 -1
  64. package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.js.map +0 -1
  65. package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.jsx +0 -25
  66. package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.d.ts.map +0 -1
  67. package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.js.map +0 -1
  68. package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.d.ts.map +0 -1
  69. package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.js.map +0 -1
  70. package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.jsx +0 -24
  71. package/dist/client/entities/translation/ui/FailedTranslationStatus/index.d.ts.map +0 -1
  72. package/dist/client/entities/translation/ui/FailedTranslationStatus/index.js.map +0 -1
  73. package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.d.ts.map +0 -1
  74. package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.js.map +0 -1
  75. package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.jsx +0 -38
  76. package/dist/client/entities/translation/ui/PendingTranslationStatus/index.d.ts.map +0 -1
  77. package/dist/client/entities/translation/ui/PendingTranslationStatus/index.js.map +0 -1
  78. package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.d.ts.map +0 -1
  79. package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.js.map +0 -1
  80. package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.jsx +0 -32
  81. package/dist/client/entities/translation/ui/RunningTranslationStatus/index.d.ts.map +0 -1
  82. package/dist/client/entities/translation/ui/RunningTranslationStatus/index.js.map +0 -1
  83. package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.d.ts.map +0 -1
  84. package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.js.map +0 -1
  85. package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.jsx +0 -16
  86. package/dist/client/entities/translation/ui/TranslationDirection/index.d.ts.map +0 -1
  87. package/dist/client/entities/translation/ui/TranslationDirection/index.js.map +0 -1
  88. package/dist/client/features/collection-translation-form/index.client.d.ts.map +0 -1
  89. package/dist/client/features/collection-translation-form/index.client.js.map +0 -1
  90. package/dist/client/features/collection-translation-form/index.d.ts.map +0 -1
  91. package/dist/client/features/collection-translation-form/index.js.map +0 -1
  92. package/dist/client/features/collection-translation-form/model/constants.d.ts.map +0 -1
  93. package/dist/client/features/collection-translation-form/model/constants.js.map +0 -1
  94. package/dist/client/features/collection-translation-form/model/form-model.d.ts.map +0 -1
  95. package/dist/client/features/collection-translation-form/model/form-model.js.map +0 -1
  96. package/dist/client/features/collection-translation-form/model/index.d.ts.map +0 -1
  97. package/dist/client/features/collection-translation-form/model/index.js.map +0 -1
  98. package/dist/client/features/collection-translation-form/model/schema.d.ts.map +0 -1
  99. package/dist/client/features/collection-translation-form/model/schema.js.map +0 -1
  100. package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.d.ts.map +0 -1
  101. package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.js.map +0 -1
  102. package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.jsx +0 -25
  103. package/dist/client/features/collection-translation-form/ui/index.d.ts.map +0 -1
  104. package/dist/client/features/collection-translation-form/ui/index.js.map +0 -1
  105. package/dist/client/features/collection-translation-popup/index.d.ts.map +0 -1
  106. package/dist/client/features/collection-translation-popup/index.js.map +0 -1
  107. package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts.map +0 -1
  108. package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.js.map +0 -1
  109. package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.jsx +0 -23
  110. package/dist/client/features/collection-translation-progress/index.d.ts.map +0 -1
  111. package/dist/client/features/collection-translation-progress/index.js.map +0 -1
  112. package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts.map +0 -1
  113. package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.js.map +0 -1
  114. package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.jsx +0 -47
  115. package/dist/client/features/document-translation-progress-failed/index.d.ts.map +0 -1
  116. package/dist/client/features/document-translation-progress-failed/index.js.map +0 -1
  117. package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.d.ts.map +0 -1
  118. package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.js.map +0 -1
  119. package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.jsx +0 -19
  120. package/dist/client/features/document-translation-progress-pending/index.d.ts.map +0 -1
  121. package/dist/client/features/document-translation-progress-pending/index.js.map +0 -1
  122. package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.d.ts.map +0 -1
  123. package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.js.map +0 -1
  124. package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.jsx +0 -34
  125. package/dist/client/features/document-translation-progress-running/index.d.ts.map +0 -1
  126. package/dist/client/features/document-translation-progress-running/index.js.map +0 -1
  127. package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.d.ts.map +0 -1
  128. package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.js.map +0 -1
  129. package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.jsx +0 -19
  130. package/dist/client/features/open-document-translation-popup/index.d.ts.map +0 -1
  131. package/dist/client/features/open-document-translation-popup/index.js.map +0 -1
  132. package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.d.ts.map +0 -1
  133. package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.js.map +0 -1
  134. package/dist/client/features/open-document-translation-popup/ui/OpenDocumentTranslationPopup.jsx +0 -15
  135. package/dist/client/features/translate-document-form/index.client.d.ts.map +0 -1
  136. package/dist/client/features/translate-document-form/index.client.js.map +0 -1
  137. package/dist/client/features/translate-document-form/index.d.ts.map +0 -1
  138. package/dist/client/features/translate-document-form/index.js.map +0 -1
  139. package/dist/client/features/translate-document-form/model/constants.d.ts.map +0 -1
  140. package/dist/client/features/translate-document-form/model/constants.js.map +0 -1
  141. package/dist/client/features/translate-document-form/model/form-model.d.ts.map +0 -1
  142. package/dist/client/features/translate-document-form/model/form-model.js.map +0 -1
  143. package/dist/client/features/translate-document-form/model/index.d.ts.map +0 -1
  144. package/dist/client/features/translate-document-form/model/index.js.map +0 -1
  145. package/dist/client/features/translate-document-form/model/schema.d.ts.map +0 -1
  146. package/dist/client/features/translate-document-form/model/schema.js.map +0 -1
  147. package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.d.ts.map +0 -1
  148. package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.js.map +0 -1
  149. package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.jsx +0 -24
  150. package/dist/client/features/translate-document-form/ui/index.d.ts.map +0 -1
  151. package/dist/client/features/translate-document-form/ui/index.js.map +0 -1
  152. package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.d.ts.map +0 -1
  153. package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.js.map +0 -1
  154. package/dist/client/shared/lib/assets/icons/LanguageTranslateIcon.jsx +0 -4
  155. package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.d.ts.map +0 -1
  156. package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.js.map +0 -1
  157. package/dist/client/shared/lib/assets/icons/QuestionCircleIcon.jsx +0 -3
  158. package/dist/client/shared/lib/assets/icons/ReloadIcon.d.ts.map +0 -1
  159. package/dist/client/shared/lib/assets/icons/ReloadIcon.js.map +0 -1
  160. package/dist/client/shared/lib/assets/icons/ReloadIcon.jsx +0 -3
  161. package/dist/client/shared/lib/errors/handleApiError.d.ts.map +0 -1
  162. package/dist/client/shared/lib/errors/handleApiError.js.map +0 -1
  163. package/dist/client/shared/lib/forms/handle-form-error.d.ts.map +0 -1
  164. package/dist/client/shared/lib/forms/handle-form-error.js.map +0 -1
  165. package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.d.ts.map +0 -1
  166. package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.js.map +0 -1
  167. package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.d.ts.map +0 -1
  168. package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.js.map +0 -1
  169. package/dist/client/shared/lib/payload/hooks/useLocaleOptions.d.ts.map +0 -1
  170. package/dist/client/shared/lib/payload/hooks/useLocaleOptions.js.map +0 -1
  171. package/dist/client/shared/lib/utils/errors/handleApiError.d.ts.map +0 -1
  172. package/dist/client/shared/lib/utils/errors/handleApiError.js.map +0 -1
  173. package/dist/client/shared/lib/utils/react/useToggle.d.ts.map +0 -1
  174. package/dist/client/shared/lib/utils/react/useToggle.js.map +0 -1
  175. package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.d.ts.map +0 -1
  176. package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.js.map +0 -1
  177. package/dist/client/shared/providers/CacheClientProvider/index.d.ts.map +0 -1
  178. package/dist/client/shared/providers/CacheClientProvider/index.js.map +0 -1
  179. package/dist/client/shared/types/AccessGuard.d.ts.map +0 -1
  180. package/dist/client/shared/types/AccessGuard.js.map +0 -1
  181. package/dist/client/shared/types/PayloadComponentExport.d.ts.map +0 -1
  182. package/dist/client/shared/types/PayloadComponentExport.js.map +0 -1
  183. package/dist/client/shared/ui/Alert/Alert.d.ts.map +0 -1
  184. package/dist/client/shared/ui/Alert/Alert.js.map +0 -1
  185. package/dist/client/shared/ui/Alert/Alert.jsx +0 -33
  186. package/dist/client/shared/ui/Alert/index.d.ts.map +0 -1
  187. package/dist/client/shared/ui/Alert/index.js.map +0 -1
  188. package/dist/client/shared/ui/Button/Button.d.ts.map +0 -1
  189. package/dist/client/shared/ui/Button/Button.js.map +0 -1
  190. package/dist/client/shared/ui/Button/Button.jsx +0 -35
  191. package/dist/client/shared/ui/Button/index.d.ts.map +0 -1
  192. package/dist/client/shared/ui/Button/index.js.map +0 -1
  193. package/dist/client/shared/ui/Checkbox/Checkbox.d.ts.map +0 -1
  194. package/dist/client/shared/ui/Checkbox/Checkbox.js.map +0 -1
  195. package/dist/client/shared/ui/Checkbox/Checkbox.jsx +0 -6
  196. package/dist/client/shared/ui/Checkbox/index.d.ts.map +0 -1
  197. package/dist/client/shared/ui/Checkbox/index.js.map +0 -1
  198. package/dist/client/shared/ui/ColorIndicator/ColorIndicator.d.ts.map +0 -1
  199. package/dist/client/shared/ui/ColorIndicator/ColorIndicator.js.map +0 -1
  200. package/dist/client/shared/ui/ColorIndicator/ColorIndicator.jsx +0 -7
  201. package/dist/client/shared/ui/ColorIndicator/index.d.ts.map +0 -1
  202. package/dist/client/shared/ui/ColorIndicator/index.js.map +0 -1
  203. package/dist/client/shared/ui/Description/Description.d.ts.map +0 -1
  204. package/dist/client/shared/ui/Description/Description.js.map +0 -1
  205. package/dist/client/shared/ui/Description/Description.jsx +0 -7
  206. package/dist/client/shared/ui/Description/index.d.ts.map +0 -1
  207. package/dist/client/shared/ui/Description/index.js.map +0 -1
  208. package/dist/client/shared/ui/Divider/Divider.d.ts.map +0 -1
  209. package/dist/client/shared/ui/Divider/Divider.js.map +0 -1
  210. package/dist/client/shared/ui/Divider/Divider.jsx +0 -7
  211. package/dist/client/shared/ui/Divider/index.d.ts.map +0 -1
  212. package/dist/client/shared/ui/Divider/index.js.map +0 -1
  213. package/dist/client/shared/ui/Label/Label.d.ts.map +0 -1
  214. package/dist/client/shared/ui/Label/Label.js.map +0 -1
  215. package/dist/client/shared/ui/Label/Label.jsx +0 -9
  216. package/dist/client/shared/ui/Label/index.d.ts.map +0 -1
  217. package/dist/client/shared/ui/Label/index.js.map +0 -1
  218. package/dist/client/shared/ui/Loading/Loading.d.ts.map +0 -1
  219. package/dist/client/shared/ui/Loading/Loading.js.map +0 -1
  220. package/dist/client/shared/ui/Loading/Loading.jsx +0 -11
  221. package/dist/client/shared/ui/Loading/index.d.ts.map +0 -1
  222. package/dist/client/shared/ui/Loading/index.js.map +0 -1
  223. package/dist/client/shared/ui/Popup/Popup.d.ts.map +0 -1
  224. package/dist/client/shared/ui/Popup/Popup.js.map +0 -1
  225. package/dist/client/shared/ui/Popup/Popup.jsx +0 -13
  226. package/dist/client/shared/ui/Popup/index.d.ts.map +0 -1
  227. package/dist/client/shared/ui/Popup/index.js.map +0 -1
  228. package/dist/client/shared/ui/ProgressBar/ProgressBar.d.ts.map +0 -1
  229. package/dist/client/shared/ui/ProgressBar/ProgressBar.js.map +0 -1
  230. package/dist/client/shared/ui/ProgressBar/ProgressBar.jsx +0 -11
  231. package/dist/client/shared/ui/ProgressBar/index.d.ts.map +0 -1
  232. package/dist/client/shared/ui/ProgressBar/index.js.map +0 -1
  233. package/dist/client/shared/ui/Select/Select.d.ts.map +0 -1
  234. package/dist/client/shared/ui/Select/Select.js.map +0 -1
  235. package/dist/client/shared/ui/Select/Select.jsx +0 -41
  236. package/dist/client/shared/ui/Select/index.d.ts.map +0 -1
  237. package/dist/client/shared/ui/Select/index.js.map +0 -1
  238. package/dist/client/shared/ui/StatusCounter/StatusCounter.d.ts.map +0 -1
  239. package/dist/client/shared/ui/StatusCounter/StatusCounter.js.map +0 -1
  240. package/dist/client/shared/ui/StatusCounter/StatusCounter.jsx +0 -26
  241. package/dist/client/shared/ui/StatusCounter/index.d.ts.map +0 -1
  242. package/dist/client/shared/ui/StatusCounter/index.js.map +0 -1
  243. package/dist/client/shared/ui/StatusIndicator/StatusIndicator.d.ts.map +0 -1
  244. package/dist/client/shared/ui/StatusIndicator/StatusIndicator.js.map +0 -1
  245. package/dist/client/shared/ui/StatusIndicator/StatusIndicator.jsx +0 -10
  246. package/dist/client/shared/ui/StatusIndicator/index.d.ts.map +0 -1
  247. package/dist/client/shared/ui/StatusIndicator/index.js.map +0 -1
  248. package/dist/client/shared/ui/Tooltip/Tooltip.d.ts.map +0 -1
  249. package/dist/client/shared/ui/Tooltip/Tooltip.js.map +0 -1
  250. package/dist/client/shared/ui/Tooltip/Tooltip.jsx +0 -16
  251. package/dist/client/shared/ui/Tooltip/index.d.ts.map +0 -1
  252. package/dist/client/shared/ui/Tooltip/index.js.map +0 -1
  253. package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.d.ts.map +0 -1
  254. package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.js.map +0 -1
  255. package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.jsx +0 -24
  256. package/dist/client/shared/ui/form/FormCheckbox/index.d.ts.map +0 -1
  257. package/dist/client/shared/ui/form/FormCheckbox/index.js.map +0 -1
  258. package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.d.ts.map +0 -1
  259. package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.js.map +0 -1
  260. package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.jsx +0 -21
  261. package/dist/client/shared/ui/form/FormCheckboxPublish/index.d.ts.map +0 -1
  262. package/dist/client/shared/ui/form/FormCheckboxPublish/index.js.map +0 -1
  263. package/dist/client/shared/ui/form/FormSelect/FormSelect.d.ts.map +0 -1
  264. package/dist/client/shared/ui/form/FormSelect/FormSelect.js.map +0 -1
  265. package/dist/client/shared/ui/form/FormSelect/FormSelect.jsx +0 -44
  266. package/dist/client/shared/ui/form/FormSelect/index.d.ts.map +0 -1
  267. package/dist/client/shared/ui/form/FormSelect/index.js.map +0 -1
  268. package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.d.ts.map +0 -1
  269. package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.js.map +0 -1
  270. package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.jsx +0 -6
  271. package/dist/client/shared/ui/form/FormSelectLocale/index.d.ts.map +0 -1
  272. package/dist/client/shared/ui/form/FormSelectLocale/index.js.map +0 -1
  273. package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.d.ts.map +0 -1
  274. package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.js.map +0 -1
  275. package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.jsx +0 -25
  276. package/dist/client/shared/ui/form/FormSelectStrategy/index.d.ts.map +0 -1
  277. package/dist/client/shared/ui/form/FormSelectStrategy/index.js.map +0 -1
  278. package/dist/client/shared/utils/componentPath.d.ts.map +0 -1
  279. package/dist/client/shared/utils/componentPath.js.map +0 -1
  280. package/dist/client/widgets/bulk-translation-dashboard/index.d.ts.map +0 -1
  281. package/dist/client/widgets/bulk-translation-dashboard/index.js.map +0 -1
  282. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.d.ts.map +0 -1
  283. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts.map +0 -1
  284. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js.map +0 -1
  285. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.jsx +0 -11
  286. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.js.map +0 -1
  287. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.jsx +0 -55
  288. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts.map +0 -1
  289. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.js.map +0 -1
  290. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.jsx +0 -17
  291. package/dist/client/widgets/bulk-translation-dashboard/ui/index.d.ts.map +0 -1
  292. package/dist/client/widgets/bulk-translation-dashboard/ui/index.js.map +0 -1
  293. package/dist/client/widgets/translate-document/index.d.ts.map +0 -1
  294. package/dist/client/widgets/translate-document/index.js.map +0 -1
  295. package/dist/client/widgets/translate-document/ui/TranslateDocument.d.ts.map +0 -1
  296. package/dist/client/widgets/translate-document/ui/TranslateDocument.export.d.ts.map +0 -1
  297. package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js.map +0 -1
  298. package/dist/client/widgets/translate-document/ui/TranslateDocument.js.map +0 -1
  299. package/dist/client/widgets/translate-document/ui/TranslateDocument.jsx +0 -55
  300. package/dist/client/widgets/translate-document/ui/TranslateDocument.server.d.ts.map +0 -1
  301. package/dist/client/widgets/translate-document/ui/TranslateDocument.server.js.map +0 -1
  302. package/dist/client/widgets/translate-document/ui/TranslateDocument.server.jsx +0 -16
  303. package/dist/client/widgets/translate-document/ui/index.d.ts.map +0 -1
  304. package/dist/client/widgets/translate-document/ui/index.js.map +0 -1
  305. package/dist/field-config.d.ts.map +0 -1
  306. package/dist/field-config.js.map +0 -1
  307. package/dist/index.d.ts.map +0 -1
  308. package/dist/index.js.map +0 -1
  309. package/dist/plugin.d.ts.map +0 -1
  310. package/dist/plugin.js.map +0 -1
  311. package/dist/server/features/_lib/collection-utils.d.ts.map +0 -1
  312. package/dist/server/features/_lib/collection-utils.js.map +0 -1
  313. package/dist/server/features/_lib/index.d.ts.map +0 -1
  314. package/dist/server/features/_lib/index.js.map +0 -1
  315. package/dist/server/features/cancel/handler.d.ts.map +0 -1
  316. package/dist/server/features/cancel/handler.js.map +0 -1
  317. package/dist/server/features/cancel/handler.test.d.ts +0 -2
  318. package/dist/server/features/cancel/handler.test.d.ts.map +0 -1
  319. package/dist/server/features/cancel/handler.test.js +0 -63
  320. package/dist/server/features/cancel/index.d.ts.map +0 -1
  321. package/dist/server/features/cancel/index.js.map +0 -1
  322. package/dist/server/features/cancel/model.d.ts.map +0 -1
  323. package/dist/server/features/cancel/model.js.map +0 -1
  324. package/dist/server/features/cancel/route.d.ts.map +0 -1
  325. package/dist/server/features/cancel/route.js.map +0 -1
  326. package/dist/server/features/cancel-by-collection/handler.d.ts.map +0 -1
  327. package/dist/server/features/cancel-by-collection/handler.js.map +0 -1
  328. package/dist/server/features/cancel-by-collection/handler.test.d.ts +0 -2
  329. package/dist/server/features/cancel-by-collection/handler.test.d.ts.map +0 -1
  330. package/dist/server/features/cancel-by-collection/handler.test.js +0 -126
  331. package/dist/server/features/cancel-by-collection/index.d.ts.map +0 -1
  332. package/dist/server/features/cancel-by-collection/index.js.map +0 -1
  333. package/dist/server/features/cancel-by-collection/model.d.ts.map +0 -1
  334. package/dist/server/features/cancel-by-collection/model.js.map +0 -1
  335. package/dist/server/features/cancel-by-collection/route.d.ts.map +0 -1
  336. package/dist/server/features/cancel-by-collection/route.js.map +0 -1
  337. package/dist/server/features/enqueue-translation/handler.d.ts.map +0 -1
  338. package/dist/server/features/enqueue-translation/handler.js.map +0 -1
  339. package/dist/server/features/enqueue-translation/handler.test.d.ts +0 -2
  340. package/dist/server/features/enqueue-translation/handler.test.d.ts.map +0 -1
  341. package/dist/server/features/enqueue-translation/handler.test.js +0 -115
  342. package/dist/server/features/enqueue-translation/index.d.ts.map +0 -1
  343. package/dist/server/features/enqueue-translation/index.js.map +0 -1
  344. package/dist/server/features/enqueue-translation/model.d.ts.map +0 -1
  345. package/dist/server/features/enqueue-translation/model.js.map +0 -1
  346. package/dist/server/features/enqueue-translation/route.d.ts.map +0 -1
  347. package/dist/server/features/enqueue-translation/route.js.map +0 -1
  348. package/dist/server/features/get-collection-status/handler.d.ts.map +0 -1
  349. package/dist/server/features/get-collection-status/handler.js.map +0 -1
  350. package/dist/server/features/get-collection-status/handler.test.d.ts +0 -2
  351. package/dist/server/features/get-collection-status/handler.test.d.ts.map +0 -1
  352. package/dist/server/features/get-collection-status/handler.test.js +0 -108
  353. package/dist/server/features/get-collection-status/index.d.ts.map +0 -1
  354. package/dist/server/features/get-collection-status/index.js.map +0 -1
  355. package/dist/server/features/get-collection-status/model.d.ts.map +0 -1
  356. package/dist/server/features/get-collection-status/model.js.map +0 -1
  357. package/dist/server/features/get-collection-status/route.d.ts.map +0 -1
  358. package/dist/server/features/get-collection-status/route.js.map +0 -1
  359. package/dist/server/features/get-document-status/handler.d.ts.map +0 -1
  360. package/dist/server/features/get-document-status/handler.js.map +0 -1
  361. package/dist/server/features/get-document-status/handler.test.d.ts +0 -2
  362. package/dist/server/features/get-document-status/handler.test.d.ts.map +0 -1
  363. package/dist/server/features/get-document-status/handler.test.js +0 -138
  364. package/dist/server/features/get-document-status/index.d.ts.map +0 -1
  365. package/dist/server/features/get-document-status/index.js.map +0 -1
  366. package/dist/server/features/get-document-status/model.d.ts.map +0 -1
  367. package/dist/server/features/get-document-status/model.js.map +0 -1
  368. package/dist/server/features/get-document-status/route.d.ts.map +0 -1
  369. package/dist/server/features/get-document-status/route.js.map +0 -1
  370. package/dist/server/features/index.d.ts.map +0 -1
  371. package/dist/server/features/index.js.map +0 -1
  372. package/dist/server/features/run-translation/handler.d.ts.map +0 -1
  373. package/dist/server/features/run-translation/handler.js.map +0 -1
  374. package/dist/server/features/run-translation/handler.test.d.ts +0 -2
  375. package/dist/server/features/run-translation/handler.test.d.ts.map +0 -1
  376. package/dist/server/features/run-translation/handler.test.js +0 -98
  377. package/dist/server/features/run-translation/index.d.ts.map +0 -1
  378. package/dist/server/features/run-translation/index.js.map +0 -1
  379. package/dist/server/features/run-translation/model.d.ts.map +0 -1
  380. package/dist/server/features/run-translation/model.js.map +0 -1
  381. package/dist/server/features/run-translation/route.d.ts.map +0 -1
  382. package/dist/server/features/run-translation/route.js.map +0 -1
  383. package/dist/server/features/translate-document/handler.d.ts.map +0 -1
  384. package/dist/server/features/translate-document/handler.js.map +0 -1
  385. package/dist/server/features/translate-document/handler.test.d.ts +0 -2
  386. package/dist/server/features/translate-document/handler.test.d.ts.map +0 -1
  387. package/dist/server/features/translate-document/handler.test.js +0 -171
  388. package/dist/server/features/translate-document/index.d.ts.map +0 -1
  389. package/dist/server/features/translate-document/index.js.map +0 -1
  390. package/dist/server/features/translate-document/model.d.ts.map +0 -1
  391. package/dist/server/features/translate-document/model.js.map +0 -1
  392. package/dist/server/features/translate-document/task.d.ts.map +0 -1
  393. package/dist/server/features/translate-document/task.js.map +0 -1
  394. package/dist/server/index.d.ts.map +0 -1
  395. package/dist/server/index.js.map +0 -1
  396. package/dist/server/modules/index.d.ts.map +0 -1
  397. package/dist/server/modules/index.js.map +0 -1
  398. package/dist/server/modules/task-runner/TaskRunner.interface.d.ts.map +0 -1
  399. package/dist/server/modules/task-runner/TaskRunner.interface.js.map +0 -1
  400. package/dist/server/modules/task-runner/TaskRunnerProvider.interface.d.ts.map +0 -1
  401. package/dist/server/modules/task-runner/TaskRunnerProvider.interface.js.map +0 -1
  402. package/dist/server/modules/task-runner/index.d.ts.map +0 -1
  403. package/dist/server/modules/task-runner/index.js.map +0 -1
  404. package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.d.ts.map +0 -1
  405. package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsRunnerProvider.js.map +0 -1
  406. package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.d.ts.map +0 -1
  407. package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.js.map +0 -1
  408. package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.d.ts +0 -2
  409. package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.d.ts.map +0 -1
  410. package/dist/server/modules/task-runner/payload-jobs-runner/PayloadJobsTaskRunner.test.js +0 -188
  411. package/dist/server/modules/task-runner/payload-jobs-runner/index.d.ts.map +0 -1
  412. package/dist/server/modules/task-runner/payload-jobs-runner/index.js.map +0 -1
  413. package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.d.ts.map +0 -1
  414. package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.js.map +0 -1
  415. package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.d.ts +0 -2
  416. package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.d.ts.map +0 -1
  417. package/dist/server/modules/task-runner/payload-jobs-runner/normalizeJob.test.js +0 -169
  418. package/dist/server/modules/task-runner/payload-jobs-runner/types.d.ts.map +0 -1
  419. package/dist/server/modules/task-runner/payload-jobs-runner/types.js.map +0 -1
  420. package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.d.ts.map +0 -1
  421. package/dist/server/modules/task-runner/sync-runner/SyncRunnerProvider.js.map +0 -1
  422. package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.d.ts.map +0 -1
  423. package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.js.map +0 -1
  424. package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.d.ts +0 -2
  425. package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.d.ts.map +0 -1
  426. package/dist/server/modules/task-runner/sync-runner/SyncTaskRunner.test.js +0 -148
  427. package/dist/server/modules/task-runner/sync-runner/index.d.ts.map +0 -1
  428. package/dist/server/modules/task-runner/sync-runner/index.js.map +0 -1
  429. package/dist/server/modules/task-runner/sync-runner/types.d.ts.map +0 -1
  430. package/dist/server/modules/task-runner/sync-runner/types.js.map +0 -1
  431. package/dist/server/modules/task-runner/types.d.ts.map +0 -1
  432. package/dist/server/modules/task-runner/types.js.map +0 -1
  433. package/dist/server/modules/translation-pipeline/TranslationPipeline.d.ts.map +0 -1
  434. package/dist/server/modules/translation-pipeline/TranslationPipeline.js.map +0 -1
  435. package/dist/server/modules/translation-pipeline/TranslationPipeline.test.d.ts +0 -2
  436. package/dist/server/modules/translation-pipeline/TranslationPipeline.test.d.ts.map +0 -1
  437. package/dist/server/modules/translation-pipeline/TranslationPipeline.test.js +0 -552
  438. package/dist/server/modules/translation-pipeline/index.d.ts.map +0 -1
  439. package/dist/server/modules/translation-pipeline/index.js.map +0 -1
  440. package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.d.ts.map +0 -1
  441. package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.js.map +0 -1
  442. package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.d.ts.map +0 -1
  443. package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.stage.js.map +0 -1
  444. package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.d.ts +0 -2
  445. package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.d.ts.map +0 -1
  446. package/dist/server/modules/translation-pipeline/stages/data-reconciler/DataReconciler.test.js +0 -294
  447. package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.d.ts.map +0 -1
  448. package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.js.map +0 -1
  449. package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.d.ts.map +0 -1
  450. package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.js.map +0 -1
  451. package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.d.ts.map +0 -1
  452. package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.js.map +0 -1
  453. package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.d.ts +0 -2
  454. package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.d.ts.map +0 -1
  455. package/dist/server/modules/translation-pipeline/stages/field-collector/FieldChunkCollector.test.js +0 -737
  456. package/dist/server/modules/translation-pipeline/stages/field-collector/index.d.ts.map +0 -1
  457. package/dist/server/modules/translation-pipeline/stages/field-collector/index.js.map +0 -1
  458. package/dist/server/modules/translation-pipeline/stages/index.d.ts.map +0 -1
  459. package/dist/server/modules/translation-pipeline/stages/index.js.map +0 -1
  460. package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts.map +0 -1
  461. package/dist/server/modules/translation-pipeline/stages/text-expander/PlainTextExpander.js.map +0 -1
  462. package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.d.ts.map +0 -1
  463. package/dist/server/modules/translation-pipeline/stages/text-expander/RichTextExpander.js.map +0 -1
  464. package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts.map +0 -1
  465. package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.js.map +0 -1
  466. package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.d.ts.map +0 -1
  467. package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.stage.js.map +0 -1
  468. package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.d.ts +0 -2
  469. package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.d.ts.map +0 -1
  470. package/dist/server/modules/translation-pipeline/stages/text-expander/TextChunkExpander.test.js +0 -396
  471. package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.d.ts.map +0 -1
  472. package/dist/server/modules/translation-pipeline/stages/text-expander/TextExpander.interface.js.map +0 -1
  473. package/dist/server/modules/translation-pipeline/stages/text-expander/index.d.ts.map +0 -1
  474. package/dist/server/modules/translation-pipeline/stages/text-expander/index.js.map +0 -1
  475. package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.d.ts.map +0 -1
  476. package/dist/server/modules/translation-pipeline/stages/translation/Translation.stage.js.map +0 -1
  477. package/dist/server/modules/translation-pipeline/stages/translation/index.d.ts.map +0 -1
  478. package/dist/server/modules/translation-pipeline/stages/translation/index.js.map +0 -1
  479. package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.d.ts.map +0 -1
  480. package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.js.map +0 -1
  481. package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.d.ts.map +0 -1
  482. package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.js.map +0 -1
  483. package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.d.ts +0 -2
  484. package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.d.ts.map +0 -1
  485. package/dist/server/modules/translation-pipeline/stages/translation-applicator/TranslationMutator.test.js +0 -110
  486. package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.d.ts.map +0 -1
  487. package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.js.map +0 -1
  488. package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.d.ts.map +0 -1
  489. package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.js.map +0 -1
  490. package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.d.ts +0 -2
  491. package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.d.ts.map +0 -1
  492. package/dist/server/modules/translation-pipeline/strategies/Overwrite.strategy.test.js +0 -36
  493. package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.d.ts.map +0 -1
  494. package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.js.map +0 -1
  495. package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.d.ts +0 -2
  496. package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.d.ts.map +0 -1
  497. package/dist/server/modules/translation-pipeline/strategies/SkipExisting.strategy.test.js +0 -77
  498. package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.d.ts.map +0 -1
  499. package/dist/server/modules/translation-pipeline/strategies/TranslationStrategy.interface.js.map +0 -1
  500. package/dist/server/modules/translation-pipeline/strategies/index.d.ts.map +0 -1
  501. package/dist/server/modules/translation-pipeline/strategies/index.js.map +0 -1
  502. package/dist/server/modules/translation-pipeline/types/FieldChunk.d.ts.map +0 -1
  503. package/dist/server/modules/translation-pipeline/types/FieldChunk.js.map +0 -1
  504. package/dist/server/modules/translation-pipeline/types/Pipeline.d.ts.map +0 -1
  505. package/dist/server/modules/translation-pipeline/types/Pipeline.js.map +0 -1
  506. package/dist/server/modules/translation-pipeline/types/PipelineContext.d.ts.map +0 -1
  507. package/dist/server/modules/translation-pipeline/types/PipelineContext.js.map +0 -1
  508. package/dist/server/modules/translation-pipeline/types/TextChunk.d.ts.map +0 -1
  509. package/dist/server/modules/translation-pipeline/types/TextChunk.js.map +0 -1
  510. package/dist/server/modules/translation-pipeline/types/index.d.ts.map +0 -1
  511. package/dist/server/modules/translation-pipeline/types/index.js.map +0 -1
  512. package/dist/server/modules/translation-providers/OpenAITranslation.provider.d.ts.map +0 -1
  513. package/dist/server/modules/translation-providers/OpenAITranslation.provider.js.map +0 -1
  514. package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.d.ts +0 -2
  515. package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.d.ts.map +0 -1
  516. package/dist/server/modules/translation-providers/OpenAITranslation.provider.test.js +0 -214
  517. package/dist/server/modules/translation-providers/TranslationProvider.interface.d.ts.map +0 -1
  518. package/dist/server/modules/translation-providers/TranslationProvider.interface.js.map +0 -1
  519. package/dist/server/modules/translation-providers/index.d.ts.map +0 -1
  520. package/dist/server/modules/translation-providers/index.js.map +0 -1
  521. package/dist/server/shared/access/AnyAccessGuard.d.ts.map +0 -1
  522. package/dist/server/shared/access/AnyAccessGuard.js.map +0 -1
  523. package/dist/server/shared/access/handler.d.ts.map +0 -1
  524. package/dist/server/shared/access/handler.js.map +0 -1
  525. package/dist/server/shared/access/index.d.ts.map +0 -1
  526. package/dist/server/shared/access/index.js.map +0 -1
  527. package/dist/server/shared/access/types.d.ts.map +0 -1
  528. package/dist/server/shared/access/types.js.map +0 -1
  529. package/dist/server/shared/field-config/getFieldConfig.d.ts.map +0 -1
  530. package/dist/server/shared/field-config/getFieldConfig.js.map +0 -1
  531. package/dist/server/shared/field-config/getFieldConfig.test.d.ts +0 -2
  532. package/dist/server/shared/field-config/getFieldConfig.test.d.ts.map +0 -1
  533. package/dist/server/shared/field-config/getFieldConfig.test.js +0 -74
  534. package/dist/server/shared/field-config/index.d.ts.map +0 -1
  535. package/dist/server/shared/field-config/index.js.map +0 -1
  536. package/dist/server/shared/field-config/types.d.ts.map +0 -1
  537. package/dist/server/shared/field-config/types.js.map +0 -1
  538. package/dist/server/shared/guards/collection-guards.d.ts.map +0 -1
  539. package/dist/server/shared/guards/collection-guards.js.map +0 -1
  540. package/dist/server/shared/guards/field-guards.d.ts.map +0 -1
  541. package/dist/server/shared/guards/field-guards.js.map +0 -1
  542. package/dist/server/shared/guards/field-guards.test.d.ts +0 -2
  543. package/dist/server/shared/guards/field-guards.test.d.ts.map +0 -1
  544. package/dist/server/shared/guards/field-guards.test.js +0 -166
  545. package/dist/server/shared/guards/index.d.ts.map +0 -1
  546. package/dist/server/shared/guards/index.js.map +0 -1
  547. package/dist/server/shared/http/ServerResponse.d.ts.map +0 -1
  548. package/dist/server/shared/http/ServerResponse.js.map +0 -1
  549. package/dist/server/shared/http/ServerResponse.test.d.ts +0 -2
  550. package/dist/server/shared/http/ServerResponse.test.d.ts.map +0 -1
  551. package/dist/server/shared/http/ServerResponse.test.js +0 -161
  552. package/dist/server/shared/http/index.d.ts.map +0 -1
  553. package/dist/server/shared/http/index.js.map +0 -1
  554. package/dist/server/shared/http/withAccessCheck.d.ts.map +0 -1
  555. package/dist/server/shared/http/withAccessCheck.js.map +0 -1
  556. package/dist/server/shared/http/withAccessCheck.test.d.ts +0 -2
  557. package/dist/server/shared/http/withAccessCheck.test.d.ts.map +0 -1
  558. package/dist/server/shared/http/withAccessCheck.test.js +0 -46
  559. package/dist/server/shared/http/withErrorHandler.d.ts.map +0 -1
  560. package/dist/server/shared/http/withErrorHandler.js.map +0 -1
  561. package/dist/server/shared/http/withErrorHandler.test.d.ts +0 -2
  562. package/dist/server/shared/http/withErrorHandler.test.d.ts.map +0 -1
  563. package/dist/server/shared/http/withErrorHandler.test.js +0 -69
  564. package/dist/server/shared/index.d.ts.map +0 -1
  565. package/dist/server/shared/index.js.map +0 -1
  566. package/dist/server/shared/lexical/collectTextNodes.d.ts.map +0 -1
  567. package/dist/server/shared/lexical/collectTextNodes.js.map +0 -1
  568. package/dist/server/shared/lexical/collectTextNodes.test.d.ts +0 -2
  569. package/dist/server/shared/lexical/collectTextNodes.test.d.ts.map +0 -1
  570. package/dist/server/shared/lexical/collectTextNodes.test.js +0 -120
  571. package/dist/server/shared/lexical/guards.d.ts.map +0 -1
  572. package/dist/server/shared/lexical/guards.js.map +0 -1
  573. package/dist/server/shared/lexical/guards.test.d.ts +0 -2
  574. package/dist/server/shared/lexical/guards.test.d.ts.map +0 -1
  575. package/dist/server/shared/lexical/guards.test.js +0 -160
  576. package/dist/server/shared/lexical/index.d.ts.map +0 -1
  577. package/dist/server/shared/lexical/index.js.map +0 -1
  578. package/dist/server/shared/lexical/isEmptyRichText.d.ts.map +0 -1
  579. package/dist/server/shared/lexical/isEmptyRichText.js.map +0 -1
  580. package/dist/server/shared/lexical/isEmptyRichText.test.d.ts +0 -2
  581. package/dist/server/shared/lexical/isEmptyRichText.test.d.ts.map +0 -1
  582. package/dist/server/shared/lexical/isEmptyRichText.test.js +0 -251
  583. package/dist/server/shared/lexical/traverseLexicalTree.d.ts.map +0 -1
  584. package/dist/server/shared/lexical/traverseLexicalTree.js.map +0 -1
  585. package/dist/server/shared/lexical/traverseLexicalTree.test.d.ts +0 -2
  586. package/dist/server/shared/lexical/traverseLexicalTree.test.d.ts.map +0 -1
  587. package/dist/server/shared/lexical/traverseLexicalTree.test.js +0 -112
  588. package/dist/server/shared/lexical/types.d.ts.map +0 -1
  589. package/dist/server/shared/lexical/types.js.map +0 -1
  590. package/dist/server/shared/utils/LazyMap.d.ts.map +0 -1
  591. package/dist/server/shared/utils/LazyMap.js.map +0 -1
  592. package/dist/server/shared/utils/LazyMap.test.d.ts +0 -2
  593. package/dist/server/shared/utils/LazyMap.test.d.ts.map +0 -1
  594. package/dist/server/shared/utils/LazyMap.test.js +0 -262
  595. package/dist/server/shared/utils/filterLocalizedFields.d.ts.map +0 -1
  596. package/dist/server/shared/utils/filterLocalizedFields.js.map +0 -1
  597. package/dist/server/shared/utils/filterLocalizedFields.test.d.ts +0 -2
  598. package/dist/server/shared/utils/filterLocalizedFields.test.d.ts.map +0 -1
  599. package/dist/server/shared/utils/filterLocalizedFields.test.js +0 -338
  600. package/dist/server/shared/utils/getByPath.d.ts.map +0 -1
  601. package/dist/server/shared/utils/getByPath.js.map +0 -1
  602. package/dist/server/shared/utils/getByPath.test.d.ts +0 -2
  603. package/dist/server/shared/utils/getByPath.test.d.ts.map +0 -1
  604. package/dist/server/shared/utils/getByPath.test.js +0 -33
  605. package/dist/server/shared/utils/index.d.ts.map +0 -1
  606. package/dist/server/shared/utils/index.js.map +0 -1
  607. package/dist/server/shared/utils/isEmpty.d.ts.map +0 -1
  608. package/dist/server/shared/utils/isEmpty.js.map +0 -1
  609. package/dist/server/shared/utils/isEmpty.test.d.ts +0 -2
  610. package/dist/server/shared/utils/isEmpty.test.d.ts.map +0 -1
  611. package/dist/server/shared/utils/isEmpty.test.js +0 -60
  612. package/dist/server/shared/utils/isObject.d.ts.map +0 -1
  613. package/dist/server/shared/utils/isObject.js.map +0 -1
  614. package/dist/server/shared/utils/isObject.test.d.ts +0 -2
  615. package/dist/server/shared/utils/isObject.test.d.ts.map +0 -1
  616. package/dist/server/shared/utils/isObject.test.js +0 -57
  617. package/dist/server/shared/utils/normalizePath.d.ts.map +0 -1
  618. package/dist/server/shared/utils/normalizePath.js.map +0 -1
  619. package/dist/server/shared/utils/normalizePath.test.d.ts +0 -2
  620. package/dist/server/shared/utils/normalizePath.test.d.ts.map +0 -1
  621. package/dist/server/shared/utils/normalizePath.test.js +0 -33
  622. package/dist/server/shared/utils/pipe.d.ts.map +0 -1
  623. package/dist/server/shared/utils/pipe.js.map +0 -1
  624. package/dist/server/shared/utils/pipe.test.d.ts +0 -2
  625. package/dist/server/shared/utils/pipe.test.d.ts.map +0 -1
  626. package/dist/server/shared/utils/pipe.test.js +0 -55
  627. package/dist/server/shared/utils/setByPath.d.ts.map +0 -1
  628. package/dist/server/shared/utils/setByPath.js.map +0 -1
  629. package/dist/server/shared/utils/setByPath.test.d.ts +0 -2
  630. package/dist/server/shared/utils/setByPath.test.d.ts.map +0 -1
  631. package/dist/server/shared/utils/setByPath.test.js +0 -46
  632. package/dist/types/AccessGuard.d.ts.map +0 -1
  633. package/dist/types/AccessGuard.js.map +0 -1
  634. package/dist/types/index.d.ts.map +0 -1
  635. package/dist/types/index.js.map +0 -1
  636. package/dist/vitest-env.d.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"withErrorHandler.test.d.ts","sourceRoot":"","sources":["../../../../src/server/shared/http/withErrorHandler.test.ts"],"names":[],"mappings":""}
@@ -1,69 +0,0 @@
1
- import { describe, it, expect, vi, beforeEach } from 'vitest';
2
- import { APIError } from 'payload';
3
- import { withErrorHandler } from './withErrorHandler';
4
- import { ServerResponse } from './ServerResponse';
5
- describe('withErrorHandler', () => {
6
- beforeEach(() => {
7
- vi.spyOn(console, 'error').mockImplementation(() => { });
8
- });
9
- it('returns handler result on success', async () => {
10
- const expectedResponse = ServerResponse.success({ data: 'test' });
11
- const handler = vi.fn().mockResolvedValue(expectedResponse);
12
- const wrappedHandler = withErrorHandler(handler);
13
- const result = await wrappedHandler();
14
- expect(result).toBe(expectedResponse);
15
- });
16
- it('passes arguments to handler', async () => {
17
- const handler = vi.fn().mockResolvedValue(ServerResponse.success());
18
- const wrappedHandler = withErrorHandler(handler);
19
- await wrappedHandler('arg1', 'arg2', { option: true });
20
- expect(handler).toHaveBeenCalledWith('arg1', 'arg2', { option: true });
21
- });
22
- it('handles APIError with custom status', async () => {
23
- const apiError = new APIError('Not found', 404);
24
- const handler = vi.fn().mockRejectedValue(apiError);
25
- const wrappedHandler = withErrorHandler(handler);
26
- const result = await wrappedHandler();
27
- expect(result.status).toBe(404);
28
- expect(await result.json()).toEqual({ message: 'Not found' });
29
- });
30
- it('handles APIError with different statuses', async () => {
31
- const badRequestError = new APIError('Bad request data', 400);
32
- const handler = vi.fn().mockRejectedValue(badRequestError);
33
- const wrappedHandler = withErrorHandler(handler);
34
- const result = await wrappedHandler();
35
- expect(result.status).toBe(400);
36
- expect(await result.json()).toEqual({ message: 'Bad request data' });
37
- });
38
- it('handles generic Error with 500 status', async () => {
39
- const error = new Error('Something went wrong');
40
- const handler = vi.fn().mockRejectedValue(error);
41
- const wrappedHandler = withErrorHandler(handler);
42
- const result = await wrappedHandler();
43
- expect(result.status).toBe(500);
44
- expect(await result.json()).toEqual({ message: 'Something went wrong' });
45
- });
46
- it('handles unknown error with default message', async () => {
47
- const handler = vi.fn().mockRejectedValue('string error');
48
- const wrappedHandler = withErrorHandler(handler);
49
- const result = await wrappedHandler();
50
- expect(result.status).toBe(500);
51
- expect(await result.json()).toEqual({ message: 'Internal server error' });
52
- });
53
- it('logs error to console', async () => {
54
- const error = new Error('Test error');
55
- const handler = vi.fn().mockRejectedValue(error);
56
- const wrappedHandler = withErrorHandler(handler);
57
- await wrappedHandler();
58
- expect(console.error).toHaveBeenCalledWith('[TranslateKit] Handler error:', error);
59
- });
60
- it('preserves handler type signature', async () => {
61
- const typedHandler = async (id, options) => {
62
- return ServerResponse.success({ id, options });
63
- };
64
- const wrappedHandler = withErrorHandler(typedHandler);
65
- // TypeScript should allow these calls
66
- const result = await wrappedHandler('test-id', { force: true });
67
- expect(result.status).toBe(200);
68
- });
69
- });
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/shared/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAA;AAG1E,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,YAAY,EAAE,WAAW,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAGxE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAG7G,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AACjD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,SAAS,GACV,MAAM,UAAU,CAAA;AAGjB,OAAO,EAAE,8BAA8B,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAA;AAC3F,YAAY,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAG7D,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,mBAAmB,EACnB,iCAAiC,GAClC,MAAM,WAAW,CAAA;AAClB,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/server/shared/index.ts"],"sourcesContent":["// HTTP utilities\nexport { ServerResponse, withErrorHandler, withAccessCheck } from './http'\n\n// Access control\nexport { AnyAccessGuard } from './access'\nexport type { AccessGuard, AccessGuardRequest, Handler } from './access'\n\n// General utilities\nexport { isEmpty, isObject, normalizePath, pipe, getByPath, setByPath, filterLocalizedFields } from './utils'\n\n// Field guards\nexport type { TranslatableField } from './guards'\nexport {\n isTranslatableField,\n isLocalizedField,\n isRelationshipField,\n isTabsField,\n isBlockItem,\n hasFields,\n} from './guards'\n\n// Field config\nexport { isFieldExcludedFromTranslation, getTranslateKitFieldConfig } from './field-config'\nexport type { TranslateKitFieldConfig } from './field-config'\n\n// Lexical utilities\nexport {\n isSerializedLexicalRoot,\n isEmptyRichText,\n traverseLexicalTree,\n collectSerializedLexicalTextNodes,\n} from './lexical'\nexport type { SerializedTextNodeRef } from './lexical'\n"],"names":["ServerResponse","withErrorHandler","withAccessCheck","AnyAccessGuard","isEmpty","isObject","normalizePath","pipe","getByPath","setByPath","filterLocalizedFields","isTranslatableField","isLocalizedField","isRelationshipField","isTabsField","isBlockItem","hasFields","isFieldExcludedFromTranslation","getTranslateKitFieldConfig","isSerializedLexicalRoot","isEmptyRichText","traverseLexicalTree","collectSerializedLexicalTextNodes"],"mappings":"AAAA,iBAAiB;AACjB,SAASA,cAAc,EAAEC,gBAAgB,EAAEC,eAAe,QAAQ,SAAQ;AAE1E,iBAAiB;AACjB,SAASC,cAAc,QAAQ,WAAU;AAGzC,oBAAoB;AACpB,SAASC,OAAO,EAAEC,QAAQ,EAAEC,aAAa,EAAEC,IAAI,EAAEC,SAAS,EAAEC,SAAS,EAAEC,qBAAqB,QAAQ,UAAS;AAI7G,SACEC,mBAAmB,EACnBC,gBAAgB,EAChBC,mBAAmB,EACnBC,WAAW,EACXC,WAAW,EACXC,SAAS,QACJ,WAAU;AAEjB,eAAe;AACf,SAASC,8BAA8B,EAAEC,0BAA0B,QAAQ,iBAAgB;AAG3F,oBAAoB;AACpB,SACEC,uBAAuB,EACvBC,eAAe,EACfC,mBAAmB,EACnBC,iCAAiC,QAC5B,YAAW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"collectTextNodes.d.ts","sourceRoot":"","sources":["../../../../src/server/shared/lexical/collectTextNodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAqB3E;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,qBAAqB,GAAG,qBAAqB,EAAE,CAItG"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/server/shared/lexical/collectTextNodes.ts"],"sourcesContent":["import type { SerializedLexicalNode, SerializedTextNodeRef } from './types'\nimport { hasChildren, isSerializedLexicalTextNode } from './guards'\n\n/**\n * Recursively collects text node references from serialized Lexical JSON.\n */\nfunction collectTextNodesRecursive(node: SerializedLexicalNode, refs: SerializedTextNodeRef[]): void {\n if (isSerializedLexicalTextNode(node)) {\n if (node.text.trim().length > 0) {\n refs.push({ node })\n }\n return\n }\n\n if (hasChildren(node)) {\n for (const child of node.children) {\n collectTextNodesRecursive(child, refs)\n }\n }\n}\n\n/**\n * Traverses serialized Lexical JSON and returns all non-empty text node references.\n * Only collects text nodes with content (after trimming whitespace).\n *\n * @param node - The serialized Lexical node to traverse\n * @returns Array of references to text nodes for mutation\n */\nexport function collectSerializedLexicalTextNodes(node: SerializedLexicalNode): SerializedTextNodeRef[] {\n const refs: SerializedTextNodeRef[] = []\n collectTextNodesRecursive(node, refs)\n return refs\n}\n"],"names":["hasChildren","isSerializedLexicalTextNode","collectTextNodesRecursive","node","refs","text","trim","length","push","child","children","collectSerializedLexicalTextNodes"],"mappings":"AACA,SAASA,WAAW,EAAEC,2BAA2B,QAAQ,WAAU;AAEnE;;CAEC,GACD,SAASC,0BAA0BC,IAA2B,EAAEC,IAA6B;IAC3F,IAAIH,4BAA4BE,OAAO;QACrC,IAAIA,KAAKE,IAAI,CAACC,IAAI,GAAGC,MAAM,GAAG,GAAG;YAC/BH,KAAKI,IAAI,CAAC;gBAAEL;YAAK;QACnB;QACA;IACF;IAEA,IAAIH,YAAYG,OAAO;QACrB,KAAK,MAAMM,SAASN,KAAKO,QAAQ,CAAE;YACjCR,0BAA0BO,OAAOL;QACnC;IACF;AACF;AAEA;;;;;;CAMC,GACD,OAAO,SAASO,kCAAkCR,IAA2B;IAC3E,MAAMC,OAAgC,EAAE;IACxCF,0BAA0BC,MAAMC;IAChC,OAAOA;AACT"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=collectTextNodes.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collectTextNodes.test.d.ts","sourceRoot":"","sources":["../../../../src/server/shared/lexical/collectTextNodes.test.ts"],"names":[],"mappings":""}
@@ -1,120 +0,0 @@
1
- import { describe, it, expect } from 'vitest';
2
- import { collectSerializedLexicalTextNodes } from './collectTextNodes';
3
- const createNode = (type, props, children) => ({ type, ...props, ...(children && { children }) });
4
- describe('collectSerializedLexicalTextNodes', () => {
5
- describe('text node collection', () => {
6
- it('collects text nodes with content', () => {
7
- const root = createNode('root', {}, [createNode('paragraph', {}, [createNode('text', { text: 'Hello' })])]);
8
- const refs = collectSerializedLexicalTextNodes(root);
9
- expect(refs).toHaveLength(1);
10
- expect(refs[0].node.text).toBe('Hello');
11
- });
12
- it('collects multiple text nodes', () => {
13
- const root = createNode('root', {}, [
14
- createNode('paragraph', {}, [createNode('text', { text: 'Hello' }), createNode('text', { text: 'World' })]),
15
- ]);
16
- const refs = collectSerializedLexicalTextNodes(root);
17
- expect(refs).toHaveLength(2);
18
- expect(refs[0].node.text).toBe('Hello');
19
- expect(refs[1].node.text).toBe('World');
20
- });
21
- it('collects text nodes from multiple paragraphs', () => {
22
- const root = createNode('root', {}, [
23
- createNode('paragraph', {}, [createNode('text', { text: 'First' })]),
24
- createNode('paragraph', {}, [createNode('text', { text: 'Second' })]),
25
- ]);
26
- const refs = collectSerializedLexicalTextNodes(root);
27
- expect(refs).toHaveLength(2);
28
- expect(refs[0].node.text).toBe('First');
29
- expect(refs[1].node.text).toBe('Second');
30
- });
31
- });
32
- describe('empty text filtering', () => {
33
- it('skips empty text nodes', () => {
34
- const root = createNode('root', {}, [createNode('paragraph', {}, [createNode('text', { text: '' })])]);
35
- const refs = collectSerializedLexicalTextNodes(root);
36
- expect(refs).toHaveLength(0);
37
- });
38
- it('skips whitespace-only text nodes', () => {
39
- const root = createNode('root', {}, [createNode('paragraph', {}, [createNode('text', { text: ' \n\t ' })])]);
40
- const refs = collectSerializedLexicalTextNodes(root);
41
- expect(refs).toHaveLength(0);
42
- });
43
- it('collects text with leading/trailing whitespace', () => {
44
- const root = createNode('root', {}, [createNode('paragraph', {}, [createNode('text', { text: ' content ' })])]);
45
- const refs = collectSerializedLexicalTextNodes(root);
46
- expect(refs).toHaveLength(1);
47
- expect(refs[0].node.text).toBe(' content ');
48
- });
49
- it('mixes empty and non-empty text nodes', () => {
50
- const root = createNode('root', {}, [
51
- createNode('paragraph', {}, [
52
- createNode('text', { text: '' }),
53
- createNode('text', { text: 'content' }),
54
- createNode('text', { text: ' ' }),
55
- createNode('text', { text: 'more' }),
56
- ]),
57
- ]);
58
- const refs = collectSerializedLexicalTextNodes(root);
59
- expect(refs).toHaveLength(2);
60
- expect(refs[0].node.text).toBe('content');
61
- expect(refs[1].node.text).toBe('more');
62
- });
63
- });
64
- describe('nested structures', () => {
65
- it('collects from deeply nested structures', () => {
66
- const root = createNode('root', {}, [
67
- createNode('list', {}, [
68
- createNode('listitem', {}, [createNode('paragraph', {}, [createNode('text', { text: 'Item 1' })])]),
69
- createNode('listitem', {}, [createNode('paragraph', {}, [createNode('text', { text: 'Item 2' })])]),
70
- ]),
71
- ]);
72
- const refs = collectSerializedLexicalTextNodes(root);
73
- expect(refs).toHaveLength(2);
74
- expect(refs[0].node.text).toBe('Item 1');
75
- expect(refs[1].node.text).toBe('Item 2');
76
- });
77
- it('collects from link nodes', () => {
78
- const root = createNode('root', {}, [
79
- createNode('paragraph', {}, [
80
- createNode('text', { text: 'Click ' }),
81
- createNode('link', { url: 'https://example.com' }, [createNode('text', { text: 'here' })]),
82
- createNode('text', { text: ' to continue' }),
83
- ]),
84
- ]);
85
- const refs = collectSerializedLexicalTextNodes(root);
86
- expect(refs).toHaveLength(3);
87
- expect(refs[0].node.text).toBe('Click ');
88
- expect(refs[1].node.text).toBe('here');
89
- expect(refs[2].node.text).toBe(' to continue');
90
- });
91
- });
92
- describe('mutation via references', () => {
93
- it('returns references that can mutate original nodes', () => {
94
- const textNode = createNode('text', { text: 'Original' });
95
- const root = createNode('root', {}, [createNode('paragraph', {}, [textNode])]);
96
- const refs = collectSerializedLexicalTextNodes(root);
97
- refs[0].node.text = 'Translated';
98
- expect(textNode.text).toBe('Translated');
99
- });
100
- });
101
- describe('edge cases', () => {
102
- it('returns empty array for empty root', () => {
103
- const root = createNode('root', {}, []);
104
- const refs = collectSerializedLexicalTextNodes(root);
105
- expect(refs).toHaveLength(0);
106
- });
107
- it('returns empty array for root without children', () => {
108
- const root = { type: 'root' };
109
- const refs = collectSerializedLexicalTextNodes(root);
110
- expect(refs).toHaveLength(0);
111
- });
112
- it('returns empty array for paragraph without text nodes', () => {
113
- const root = createNode('root', {}, [
114
- createNode('paragraph', {}, [createNode('upload', { relationTo: 'media' })]),
115
- ]);
116
- const refs = collectSerializedLexicalTextNodes(root);
117
- expect(refs).toHaveLength(0);
118
- });
119
- });
120
- });
@@ -1 +0,0 @@
1
- {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../../src/server/shared/lexical/guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAG/F;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,qBAAqB,GAAG;IACtE,QAAQ,EAAE,qBAAqB,EAAE,CAAA;CAClC,CAAA;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,qBAAqB,CAEtF;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,IAAI,kBAAkB,CAEnG;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,qBAAqB,GAAG,IAAI,IAAI,iCAAiC,CAElG"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/server/shared/lexical/guards.ts"],"sourcesContent":["import type { SerializedLexicalNode, SerializedLexicalRoot, SerializedTextNode } from './types'\nimport { isObject } from '../utils'\n\n/**\n * Node with children property.\n */\nexport type SerializedLexicalNodeWithChildren = SerializedLexicalNode & {\n children: SerializedLexicalNode[]\n}\n\n/**\n * Type guard: Checks if value is a serialized Lexical root structure.\n */\nexport function isSerializedLexicalRoot(value: unknown): value is SerializedLexicalRoot {\n return isObject(value) && 'root' in value && isObject(value.root)\n}\n\n/**\n * Type guard: Checks if node is a serialized Lexical text node.\n */\nexport function isSerializedLexicalTextNode(node: SerializedLexicalNode): node is SerializedTextNode {\n return node.type === 'text' && 'text' in node && typeof node.text === 'string'\n}\n\n/**\n * Type guard: Checks if node has children array.\n */\nexport function hasChildren(node: SerializedLexicalNode): node is SerializedLexicalNodeWithChildren {\n return 'children' in node && Array.isArray(node.children)\n}\n"],"names":["isObject","isSerializedLexicalRoot","value","root","isSerializedLexicalTextNode","node","type","text","hasChildren","Array","isArray","children"],"mappings":"AACA,SAASA,QAAQ,QAAQ,WAAU;AASnC;;CAEC,GACD,OAAO,SAASC,wBAAwBC,KAAc;IACpD,OAAOF,SAASE,UAAU,UAAUA,SAASF,SAASE,MAAMC,IAAI;AAClE;AAEA;;CAEC,GACD,OAAO,SAASC,4BAA4BC,IAA2B;IACrE,OAAOA,KAAKC,IAAI,KAAK,UAAU,UAAUD,QAAQ,OAAOA,KAAKE,IAAI,KAAK;AACxE;AAEA;;CAEC,GACD,OAAO,SAASC,YAAYH,IAA2B;IACrD,OAAO,cAAcA,QAAQI,MAAMC,OAAO,CAACL,KAAKM,QAAQ;AAC1D"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=guards.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guards.test.d.ts","sourceRoot":"","sources":["../../../../src/server/shared/lexical/guards.test.ts"],"names":[],"mappings":""}
@@ -1,160 +0,0 @@
1
- import { describe, it, expect } from 'vitest';
2
- import { isSerializedLexicalRoot, isSerializedLexicalTextNode, hasChildren } from './guards';
3
- describe('lexical guards', () => {
4
- describe('isSerializedLexicalRoot', () => {
5
- it('returns true for valid Lexical root structure', () => {
6
- const validRoot = {
7
- root: {
8
- type: 'root',
9
- children: [],
10
- },
11
- };
12
- expect(isSerializedLexicalRoot(validRoot)).toBe(true);
13
- });
14
- it('returns true for root with nested content', () => {
15
- const rootWithContent = {
16
- root: {
17
- type: 'root',
18
- children: [
19
- {
20
- type: 'paragraph',
21
- children: [{ type: 'text', text: 'Hello' }],
22
- },
23
- ],
24
- },
25
- };
26
- expect(isSerializedLexicalRoot(rootWithContent)).toBe(true);
27
- });
28
- it('returns false for object without root property', () => {
29
- expect(isSerializedLexicalRoot({ children: [] })).toBe(false);
30
- expect(isSerializedLexicalRoot({ type: 'root' })).toBe(false);
31
- });
32
- it('returns false for object with non-object root', () => {
33
- expect(isSerializedLexicalRoot({ root: null })).toBe(false);
34
- expect(isSerializedLexicalRoot({ root: 'string' })).toBe(false);
35
- expect(isSerializedLexicalRoot({ root: 123 })).toBe(false);
36
- // Note: arrays are objects in JS, so isObject([]) returns true
37
- // This is acceptable behavior - arrays would fail other validations
38
- });
39
- it('returns false for non-objects', () => {
40
- expect(isSerializedLexicalRoot(null)).toBe(false);
41
- expect(isSerializedLexicalRoot(undefined)).toBe(false);
42
- expect(isSerializedLexicalRoot('string')).toBe(false);
43
- expect(isSerializedLexicalRoot(123)).toBe(false);
44
- expect(isSerializedLexicalRoot([])).toBe(false);
45
- });
46
- });
47
- describe('isSerializedLexicalTextNode', () => {
48
- it('returns true for valid text node', () => {
49
- // Text nodes have 'text' property which is not on base SerializedLexicalNode type
50
- const textNode = {
51
- type: 'text',
52
- text: 'Hello World',
53
- version: 1,
54
- };
55
- expect(isSerializedLexicalTextNode(textNode)).toBe(true);
56
- });
57
- it('returns true for text node with empty string', () => {
58
- const textNode = {
59
- type: 'text',
60
- text: '',
61
- version: 1,
62
- };
63
- expect(isSerializedLexicalTextNode(textNode)).toBe(true);
64
- });
65
- it('returns true for text node with formatting', () => {
66
- const textNode = {
67
- type: 'text',
68
- text: 'Bold text',
69
- format: 1,
70
- version: 1,
71
- };
72
- expect(isSerializedLexicalTextNode(textNode)).toBe(true);
73
- });
74
- it('returns false for paragraph node', () => {
75
- const paragraphNode = {
76
- type: 'paragraph',
77
- children: [],
78
- version: 1,
79
- };
80
- expect(isSerializedLexicalTextNode(paragraphNode)).toBe(false);
81
- });
82
- it('returns false for heading node', () => {
83
- const headingNode = {
84
- type: 'heading',
85
- tag: 'h1',
86
- children: [],
87
- version: 1,
88
- };
89
- expect(isSerializedLexicalTextNode(headingNode)).toBe(false);
90
- });
91
- it('returns false for node with type text but no text property', () => {
92
- const invalidNode = {
93
- type: 'text',
94
- version: 1,
95
- };
96
- expect(isSerializedLexicalTextNode(invalidNode)).toBe(false);
97
- });
98
- it('returns false for node with non-string text property', () => {
99
- const invalidNode = {
100
- type: 'text',
101
- text: 123,
102
- version: 1,
103
- };
104
- expect(isSerializedLexicalTextNode(invalidNode)).toBe(false);
105
- });
106
- });
107
- describe('hasChildren', () => {
108
- it('returns true for node with children array', () => {
109
- const node = {
110
- type: 'paragraph',
111
- children: [],
112
- version: 1,
113
- };
114
- expect(hasChildren(node)).toBe(true);
115
- });
116
- it('returns true for node with populated children', () => {
117
- const node = {
118
- type: 'paragraph',
119
- children: [
120
- { type: 'text', text: 'Hello', version: 1 },
121
- { type: 'text', text: 'World', version: 1 },
122
- ],
123
- version: 1,
124
- };
125
- expect(hasChildren(node)).toBe(true);
126
- });
127
- it('returns true for root node with children', () => {
128
- const rootNode = {
129
- type: 'root',
130
- children: [{ type: 'paragraph', children: [], version: 1 }],
131
- version: 1,
132
- };
133
- expect(hasChildren(rootNode)).toBe(true);
134
- });
135
- it('returns false for text node (no children)', () => {
136
- const textNode = {
137
- type: 'text',
138
- text: 'Hello',
139
- version: 1,
140
- };
141
- expect(hasChildren(textNode)).toBe(false);
142
- });
143
- it('returns false for node with non-array children', () => {
144
- const invalidNode = {
145
- type: 'paragraph',
146
- children: 'not-array',
147
- version: 1,
148
- };
149
- expect(hasChildren(invalidNode)).toBe(false);
150
- });
151
- it('returns false for node with null children', () => {
152
- const invalidNode = {
153
- type: 'paragraph',
154
- children: null,
155
- version: 1,
156
- };
157
- expect(hasChildren(invalidNode)).toBe(false);
158
- });
159
- });
160
- });
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/shared/lexical/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,SAAS,CAAA;AAChB,YAAY,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAA;AACjE,OAAO,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC5F,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/server/shared/lexical/index.ts"],"sourcesContent":["export type {\n SerializedTextNodeRef,\n SerializedLexicalRoot,\n SerializedLexicalNode,\n SerializedTextNode,\n SerializedRootNode,\n} from './types'\nexport type { SerializedLexicalNodeWithChildren } from './guards'\nexport { isSerializedLexicalRoot, isSerializedLexicalTextNode, hasChildren } from './guards'\nexport { isEmptyRichText } from './isEmptyRichText'\nexport { traverseLexicalTree } from './traverseLexicalTree'\nexport { collectSerializedLexicalTextNodes } from './collectTextNodes'\n"],"names":["isSerializedLexicalRoot","isSerializedLexicalTextNode","hasChildren","isEmptyRichText","traverseLexicalTree","collectSerializedLexicalTextNodes"],"mappings":"AAQA,SAASA,uBAAuB,EAAEC,2BAA2B,EAAEC,WAAW,QAAQ,WAAU;AAC5F,SAASC,eAAe,QAAQ,oBAAmB;AACnD,SAASC,mBAAmB,QAAQ,wBAAuB;AAC3D,SAASC,iCAAiC,QAAQ,qBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"isEmptyRichText.d.ts","sourceRoot":"","sources":["../../../../src/server/shared/lexical/isEmptyRichText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAIpD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAkBrE"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/server/shared/lexical/isEmptyRichText.ts"],"sourcesContent":["import type { SerializedLexicalRoot } from './types'\nimport { traverseLexicalTree } from './traverseLexicalTree'\nimport { isSerializedLexicalTextNode } from './guards'\n\n/**\n * Checks if a serialized Lexical richText structure is empty.\n *\n * Empty means:\n * - Only contains root/paragraph nodes with no content\n * - Text nodes are empty or whitespace-only\n *\n * Non-empty means:\n * - Contains any node other than root/paragraph/text (e.g., upload, block, heading)\n * - Contains text node with actual content\n */\nexport function isEmptyRichText(value: SerializedLexicalRoot): boolean {\n let hasContent = false\n traverseLexicalTree(value.root, (node) => {\n const { type } = node\n\n if (type !== 'paragraph' && type !== 'text' && type !== 'root') {\n hasContent = true\n return false\n }\n\n if (isSerializedLexicalTextNode(node)) {\n if (node.text.trim()) {\n hasContent = true\n return false\n }\n }\n })\n return !hasContent\n}\n"],"names":["traverseLexicalTree","isSerializedLexicalTextNode","isEmptyRichText","value","hasContent","root","node","type","text","trim"],"mappings":"AACA,SAASA,mBAAmB,QAAQ,wBAAuB;AAC3D,SAASC,2BAA2B,QAAQ,WAAU;AAEtD;;;;;;;;;;CAUC,GACD,OAAO,SAASC,gBAAgBC,KAA4B;IAC1D,IAAIC,aAAa;IACjBJ,oBAAoBG,MAAME,IAAI,EAAE,CAACC;QAC/B,MAAM,EAAEC,IAAI,EAAE,GAAGD;QAEjB,IAAIC,SAAS,eAAeA,SAAS,UAAUA,SAAS,QAAQ;YAC9DH,aAAa;YACb,OAAO;QACT;QAEA,IAAIH,4BAA4BK,OAAO;YACrC,IAAIA,KAAKE,IAAI,CAACC,IAAI,IAAI;gBACpBL,aAAa;gBACb,OAAO;YACT;QACF;IACF;IACA,OAAO,CAACA;AACV"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=isEmptyRichText.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isEmptyRichText.test.d.ts","sourceRoot":"","sources":["../../../../src/server/shared/lexical/isEmptyRichText.test.ts"],"names":[],"mappings":""}