@focus-reactive/payload-plugin-translator 0.6.1 → 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 (460) hide show
  1. package/dist/client/app/cache/CacheProvider.d.ts +1 -1
  2. package/dist/client/app/cache/CacheProvider.export.d.ts +1 -1
  3. package/dist/client/app/cache/CacheProvider.export.js +2 -2
  4. package/dist/client/app/cache/CacheProvider.js +5 -5
  5. package/dist/client/app/config/TranslateKitConfigContext.d.ts +1 -1
  6. package/dist/client/app/config/TranslateKitConfigContext.js +3 -3
  7. package/dist/client/app/config/index.d.ts +2 -2
  8. package/dist/client/app/config/index.js +1 -1
  9. package/dist/client/entities/translation/api/mutations/useCancelCollectionTranslations.js +7 -7
  10. package/dist/client/entities/translation/api/mutations/useCancelDocumentTranslation.js +7 -7
  11. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.d.ts +1 -1
  12. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslation.js +8 -8
  13. package/dist/client/entities/translation/api/mutations/useQueueDocumentTranslations.js +6 -6
  14. package/dist/client/entities/translation/api/mutations/useRunDocumentTranslation.js +7 -7
  15. package/dist/client/entities/translation/api/mutations/useTranslateField.d.ts +1 -1
  16. package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.d.ts +2 -2
  17. package/dist/client/entities/translation/api/queries/useCollectionTranslationStatus.js +9 -10
  18. package/dist/client/entities/translation/api/queries/useDocumentTranslation.d.ts +2 -2
  19. package/dist/client/entities/translation/api/queries/useDocumentTranslation.js +9 -10
  20. package/dist/client/entities/translation/index.d.ts +12 -12
  21. package/dist/client/entities/translation/index.js +11 -11
  22. package/dist/client/entities/translation/model/types.d.ts +1 -1
  23. package/dist/client/entities/translation/ui/CompletedTranslationStatus/CompletedTranslationStatus.js +12 -12
  24. package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.d.ts +1 -1
  25. package/dist/client/entities/translation/ui/CompletedTranslationStatus/index.js +1 -1
  26. package/dist/client/entities/translation/ui/CompletedTranslationStatus/styles.module.scss +1 -1
  27. package/dist/client/entities/translation/ui/FailedTranslationStatus/FailedTranslationStatus.js +8 -8
  28. package/dist/client/entities/translation/ui/FailedTranslationStatus/index.d.ts +1 -1
  29. package/dist/client/entities/translation/ui/FailedTranslationStatus/index.js +1 -1
  30. package/dist/client/entities/translation/ui/FailedTranslationStatus/styles.module.scss +1 -1
  31. package/dist/client/entities/translation/ui/PendingTranslationStatus/PendingTranslationStatus.js +14 -14
  32. package/dist/client/entities/translation/ui/PendingTranslationStatus/index.d.ts +1 -1
  33. package/dist/client/entities/translation/ui/PendingTranslationStatus/index.js +1 -1
  34. package/dist/client/entities/translation/ui/RunningTranslationStatus/RunningTranslationStatus.js +13 -13
  35. package/dist/client/entities/translation/ui/RunningTranslationStatus/index.d.ts +1 -1
  36. package/dist/client/entities/translation/ui/RunningTranslationStatus/index.js +1 -1
  37. package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.d.ts +1 -1
  38. package/dist/client/entities/translation/ui/TranslationDirection/TranslationDirection.js +2 -2
  39. package/dist/client/entities/translation/ui/TranslationDirection/index.d.ts +1 -1
  40. package/dist/client/entities/translation/ui/TranslationDirection/index.js +1 -1
  41. package/dist/client/entities/translation/ui/TranslationDirection/styles.module.scss +1 -1
  42. package/dist/client/features/collection-translation-form/index.client.d.ts +1 -1
  43. package/dist/client/features/collection-translation-form/index.client.js +1 -1
  44. package/dist/client/features/collection-translation-form/index.d.ts +3 -3
  45. package/dist/client/features/collection-translation-form/index.js +2 -2
  46. package/dist/client/features/collection-translation-form/model/constants.d.ts +1 -1
  47. package/dist/client/features/collection-translation-form/model/constants.js +9 -9
  48. package/dist/client/features/collection-translation-form/model/form-model.d.ts +1 -1
  49. package/dist/client/features/collection-translation-form/model/index.d.ts +1 -1
  50. package/dist/client/features/collection-translation-form/model/index.js +1 -1
  51. package/dist/client/features/collection-translation-form/model/schema.d.ts +1 -1
  52. package/dist/client/features/collection-translation-form/model/schema.js +6 -6
  53. package/dist/client/features/collection-translation-form/ui/CollectionTranslationForm.d.ts +1 -1
  54. package/dist/client/features/collection-translation-form/ui/index.d.ts +1 -1
  55. package/dist/client/features/collection-translation-form/ui/index.js +1 -1
  56. package/dist/client/features/collection-translation-form/ui/styles.module.scss +1 -1
  57. package/dist/client/features/collection-translation-popup/index.d.ts +1 -1
  58. package/dist/client/features/collection-translation-popup/index.js +1 -1
  59. package/dist/client/features/collection-translation-popup/ui/CollectionTranslationPopup.d.ts +1 -1
  60. package/dist/client/features/collection-translation-popup/ui/styles.module.scss +1 -1
  61. package/dist/client/features/collection-translation-progress/index.d.ts +1 -1
  62. package/dist/client/features/collection-translation-progress/index.js +1 -1
  63. package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.d.ts +2 -2
  64. package/dist/client/features/collection-translation-progress/ui/CollectionTranslationProgress.js +13 -13
  65. package/dist/client/features/collection-translation-progress/ui/styles.module.scss +1 -1
  66. package/dist/client/features/document-translation-progress-failed/index.d.ts +1 -1
  67. package/dist/client/features/document-translation-progress-failed/index.js +1 -1
  68. package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.d.ts +2 -2
  69. package/dist/client/features/document-translation-progress-failed/ui/DocumentTranslationProgressFailed.js +3 -3
  70. package/dist/client/features/document-translation-progress-pending/index.d.ts +1 -1
  71. package/dist/client/features/document-translation-progress-pending/index.js +1 -1
  72. package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.d.ts +2 -2
  73. package/dist/client/features/document-translation-progress-pending/ui/DocumentTranslationProgressPending.js +5 -5
  74. package/dist/client/features/document-translation-progress-running/index.d.ts +1 -1
  75. package/dist/client/features/document-translation-progress-running/index.js +1 -1
  76. package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.d.ts +2 -2
  77. package/dist/client/features/document-translation-progress-running/ui/DocumentTranslationProgressRunning.js +3 -3
  78. package/dist/client/features/open-document-translation-popup/index.d.ts +1 -1
  79. package/dist/client/features/open-document-translation-popup/index.js +1 -1
  80. package/dist/client/features/open-document-translation-popup/ui/styles.module.scss +1 -1
  81. package/dist/client/features/translate-document-form/index.client.d.ts +1 -1
  82. package/dist/client/features/translate-document-form/index.client.js +1 -1
  83. package/dist/client/features/translate-document-form/index.d.ts +3 -3
  84. package/dist/client/features/translate-document-form/index.js +2 -2
  85. package/dist/client/features/translate-document-form/model/constants.d.ts +1 -1
  86. package/dist/client/features/translate-document-form/model/constants.js +11 -11
  87. package/dist/client/features/translate-document-form/model/form-model.d.ts +1 -1
  88. package/dist/client/features/translate-document-form/model/index.d.ts +1 -1
  89. package/dist/client/features/translate-document-form/model/index.js +1 -1
  90. package/dist/client/features/translate-document-form/model/schema.d.ts +1 -1
  91. package/dist/client/features/translate-document-form/model/schema.js +5 -5
  92. package/dist/client/features/translate-document-form/ui/DocumentTranslationForm.d.ts +1 -1
  93. package/dist/client/features/translate-document-form/ui/index.d.ts +1 -1
  94. package/dist/client/features/translate-document-form/ui/index.js +1 -1
  95. package/dist/client/features/translate-document-form/ui/styles.module.scss +1 -1
  96. package/dist/client/shared/lib/errors/handleApiError.d.ts +1 -1
  97. package/dist/client/shared/lib/errors/handleApiError.js +2 -2
  98. package/dist/client/shared/lib/forms/handle-form-error.d.ts +1 -1
  99. package/dist/client/shared/lib/forms/handle-form-error.js +6 -6
  100. package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.d.ts +1 -1
  101. package/dist/client/shared/lib/payload/hooks/useCollectionDashboardUrlParams.js +1 -1
  102. package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.d.ts +1 -1
  103. package/dist/client/shared/lib/payload/hooks/useCollectionDocumentUrlParams.js +2 -2
  104. package/dist/client/shared/lib/payload/hooks/useLocaleOptions.js +2 -2
  105. package/dist/client/shared/lib/utils/errors/handleApiError.d.ts +1 -1
  106. package/dist/client/shared/lib/utils/errors/handleApiError.js +2 -2
  107. package/dist/client/shared/lib/utils/react/useToggle.js +1 -1
  108. package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.d.ts +2 -2
  109. package/dist/client/shared/providers/CacheClientProvider/CacheClientProvider.factory.js +3 -3
  110. package/dist/client/shared/providers/CacheClientProvider/index.d.ts +1 -1
  111. package/dist/client/shared/providers/CacheClientProvider/index.js +1 -1
  112. package/dist/client/shared/types/AccessGuard.d.ts +1 -1
  113. package/dist/client/shared/ui/Alert/Alert.d.ts +2 -2
  114. package/dist/client/shared/ui/Alert/Alert.js +18 -18
  115. package/dist/client/shared/ui/Alert/index.d.ts +1 -1
  116. package/dist/client/shared/ui/Alert/index.js +1 -1
  117. package/dist/client/shared/ui/Alert/styles.module.scss +1 -1
  118. package/dist/client/shared/ui/Button/index.d.ts +1 -1
  119. package/dist/client/shared/ui/Button/index.js +1 -1
  120. package/dist/client/shared/ui/Button/styles.module.scss +6 -3
  121. package/dist/client/shared/ui/Checkbox/Checkbox.d.ts +2 -2
  122. package/dist/client/shared/ui/Checkbox/Checkbox.js +4 -4
  123. package/dist/client/shared/ui/Checkbox/index.d.ts +1 -1
  124. package/dist/client/shared/ui/Checkbox/index.js +1 -1
  125. package/dist/client/shared/ui/Checkbox/styles.module.scss +1 -1
  126. package/dist/client/shared/ui/ColorIndicator/ColorIndicator.d.ts +2 -2
  127. package/dist/client/shared/ui/ColorIndicator/ColorIndicator.js +2 -2
  128. package/dist/client/shared/ui/ColorIndicator/index.d.ts +1 -1
  129. package/dist/client/shared/ui/ColorIndicator/index.js +1 -1
  130. package/dist/client/shared/ui/ColorIndicator/styles.module.scss +1 -1
  131. package/dist/client/shared/ui/Description/Description.d.ts +3 -3
  132. package/dist/client/shared/ui/Description/Description.js +4 -4
  133. package/dist/client/shared/ui/Description/index.d.ts +1 -1
  134. package/dist/client/shared/ui/Description/index.js +1 -1
  135. package/dist/client/shared/ui/Description/styles.module.scss +1 -1
  136. package/dist/client/shared/ui/Divider/Divider.d.ts +4 -4
  137. package/dist/client/shared/ui/Divider/Divider.js +4 -4
  138. package/dist/client/shared/ui/Divider/index.d.ts +1 -1
  139. package/dist/client/shared/ui/Divider/index.js +1 -1
  140. package/dist/client/shared/ui/Divider/styles.module.scss +1 -1
  141. package/dist/client/shared/ui/Label/Label.d.ts +2 -2
  142. package/dist/client/shared/ui/Label/Label.js +3 -3
  143. package/dist/client/shared/ui/Label/index.d.ts +1 -1
  144. package/dist/client/shared/ui/Label/index.js +1 -1
  145. package/dist/client/shared/ui/Label/styles.module.scss +1 -1
  146. package/dist/client/shared/ui/Loading/Loading.d.ts +1 -1
  147. package/dist/client/shared/ui/Loading/Loading.js +9 -9
  148. package/dist/client/shared/ui/Loading/index.d.ts +1 -1
  149. package/dist/client/shared/ui/Loading/index.js +1 -1
  150. package/dist/client/shared/ui/Loading/styles.module.scss +2 -2
  151. package/dist/client/shared/ui/Popup/Popup.d.ts +1 -1
  152. package/dist/client/shared/ui/Popup/index.d.ts +1 -1
  153. package/dist/client/shared/ui/Popup/index.js +1 -1
  154. package/dist/client/shared/ui/Popup/styles.module.scss +1 -1
  155. package/dist/client/shared/ui/ProgressBar/ProgressBar.d.ts +2 -2
  156. package/dist/client/shared/ui/ProgressBar/ProgressBar.js +3 -3
  157. package/dist/client/shared/ui/ProgressBar/index.d.ts +1 -1
  158. package/dist/client/shared/ui/ProgressBar/index.js +1 -1
  159. package/dist/client/shared/ui/ProgressBar/styles.module.scss +1 -1
  160. package/dist/client/shared/ui/Select/index.d.ts +1 -1
  161. package/dist/client/shared/ui/Select/index.js +1 -1
  162. package/dist/client/shared/ui/Select/styles.module.scss +1 -1
  163. package/dist/client/shared/ui/StatusCounter/StatusCounter.d.ts +2 -2
  164. package/dist/client/shared/ui/StatusCounter/StatusCounter.js +13 -13
  165. package/dist/client/shared/ui/StatusCounter/index.d.ts +1 -1
  166. package/dist/client/shared/ui/StatusCounter/index.js +1 -1
  167. package/dist/client/shared/ui/StatusCounter/styles.module.scss +1 -1
  168. package/dist/client/shared/ui/StatusIndicator/StatusIndicator.d.ts +3 -3
  169. package/dist/client/shared/ui/StatusIndicator/StatusIndicator.js +4 -4
  170. package/dist/client/shared/ui/StatusIndicator/index.d.ts +1 -1
  171. package/dist/client/shared/ui/StatusIndicator/index.js +1 -1
  172. package/dist/client/shared/ui/StatusIndicator/styles.module.scss +1 -1
  173. package/dist/client/shared/ui/Tooltip/Tooltip.d.ts +2 -2
  174. package/dist/client/shared/ui/Tooltip/Tooltip.js +4 -4
  175. package/dist/client/shared/ui/Tooltip/index.d.ts +1 -1
  176. package/dist/client/shared/ui/Tooltip/index.js +1 -1
  177. package/dist/client/shared/ui/Tooltip/styles.module.scss +5 -5
  178. package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.d.ts +1 -1
  179. package/dist/client/shared/ui/form/FormCheckbox/FormCheckbox.js +6 -6
  180. package/dist/client/shared/ui/form/FormCheckbox/index.d.ts +1 -1
  181. package/dist/client/shared/ui/form/FormCheckbox/index.js +1 -1
  182. package/dist/client/shared/ui/form/FormCheckbox/styles.module.scss +1 -1
  183. package/dist/client/shared/ui/form/FormCheckboxPublish/FormCheckboxPublish.js +5 -5
  184. package/dist/client/shared/ui/form/FormCheckboxPublish/index.d.ts +1 -1
  185. package/dist/client/shared/ui/form/FormCheckboxPublish/index.js +1 -1
  186. package/dist/client/shared/ui/form/FormCheckboxPublish/styles.module.scss +1 -1
  187. package/dist/client/shared/ui/form/FormSelect/FormSelect.d.ts +5 -5
  188. package/dist/client/shared/ui/form/FormSelect/FormSelect.js +9 -9
  189. package/dist/client/shared/ui/form/FormSelect/index.d.ts +1 -1
  190. package/dist/client/shared/ui/form/FormSelect/index.js +1 -1
  191. package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.d.ts +1 -1
  192. package/dist/client/shared/ui/form/FormSelectLocale/FormSelectLocale.js +2 -2
  193. package/dist/client/shared/ui/form/FormSelectLocale/index.d.ts +1 -1
  194. package/dist/client/shared/ui/form/FormSelectLocale/index.js +1 -1
  195. package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.d.ts +2 -2
  196. package/dist/client/shared/ui/form/FormSelectStrategy/FormSelectStrategy.js +9 -9
  197. package/dist/client/shared/ui/form/FormSelectStrategy/index.d.ts +2 -2
  198. package/dist/client/shared/ui/form/FormSelectStrategy/index.js +1 -1
  199. package/dist/client/shared/ui/form/FormSelectStrategy/styles.module.scss +1 -1
  200. package/dist/client/shared/utils/componentPath.js +1 -1
  201. package/dist/client/widgets/bulk-translation-dashboard/index.d.ts +1 -1
  202. package/dist/client/widgets/bulk-translation-dashboard/index.js +1 -1
  203. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.d.ts +2 -2
  204. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.export.js +3 -3
  205. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.js +11 -11
  206. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.d.ts +2 -2
  207. package/dist/client/widgets/bulk-translation-dashboard/ui/BulkTranslationDashboard.server.js +3 -3
  208. package/dist/client/widgets/bulk-translation-dashboard/ui/index.d.ts +1 -1
  209. package/dist/client/widgets/bulk-translation-dashboard/ui/index.js +1 -1
  210. package/dist/client/widgets/translate-document/index.d.ts +1 -1
  211. package/dist/client/widgets/translate-document/index.js +1 -1
  212. package/dist/client/widgets/translate-document/ui/TranslateDocument.export.d.ts +3 -3
  213. package/dist/client/widgets/translate-document/ui/TranslateDocument.export.js +3 -3
  214. package/dist/client/widgets/translate-document/ui/TranslateDocument.js +16 -16
  215. package/dist/client/widgets/translate-document/ui/TranslateDocument.server.d.ts +2 -2
  216. package/dist/client/widgets/translate-document/ui/TranslateDocument.server.js +3 -3
  217. package/dist/client/widgets/translate-document/ui/index.d.ts +1 -1
  218. package/dist/client/widgets/translate-document/ui/index.js +1 -1
  219. package/dist/client/widgets/translate-field-control/ui/TranslateFieldControl.export.d.ts +1 -1
  220. package/dist/client/widgets/translate-field-control/ui/styles.module.scss +1 -1
  221. package/dist/{server/modules/translation-levels → composition/levels}/collectionLevel.d.ts +1 -1
  222. package/dist/{server/modules/translation-levels → composition/levels}/collectionLevel.js +1 -1
  223. package/dist/{server/modules/translation-levels → composition/levels}/documentLevel.d.ts +1 -1
  224. package/dist/{server/modules/translation-levels → composition/levels}/documentLevel.js +1 -1
  225. package/dist/{server/modules/translation-levels → composition/levels}/fieldLevel.d.ts +1 -1
  226. package/dist/{server/modules/translation-levels → composition/levels}/fieldLevel.js +1 -1
  227. package/dist/composition/levels/index.d.ts +3 -0
  228. package/dist/composition/levels/index.js +5 -0
  229. package/dist/{server/modules/translation-levels → composition/levels}/useDocTranslationApi.d.ts +1 -1
  230. package/dist/{server/modules/translation-levels → composition/levels}/useDocTranslationApi.js +1 -1
  231. package/dist/core/content-projection/contentProjector.d.ts +28 -0
  232. package/dist/core/content-projection/contentProjector.js +97 -0
  233. package/dist/core/content-projection/fingerprinter.d.ts +28 -0
  234. package/dist/core/content-projection/fingerprinter.js +29 -0
  235. package/dist/core/content-projection/idPath.d.ts +48 -0
  236. package/dist/core/content-projection/idPath.js +64 -0
  237. package/dist/core/content-projection/translatableLeaf.d.ts +27 -0
  238. package/dist/core/content-projection/translatableLeaf.js +37 -0
  239. package/dist/core/field-config/getFieldConfig.d.ts +23 -0
  240. package/dist/{server/shared → core}/field-config/getFieldConfig.js +5 -5
  241. package/dist/{server/shared → core}/field-config/index.d.ts +3 -3
  242. package/dist/core/field-config/index.js +4 -0
  243. package/dist/{server/shared → core}/field-traversal/findFieldByPath.d.ts +2 -3
  244. package/dist/core/field-traversal/guards.d.ts +19 -0
  245. package/dist/core/field-traversal/guards.js +20 -0
  246. package/dist/core/field-traversal/index.d.ts +7 -0
  247. package/dist/core/field-traversal/index.js +7 -0
  248. package/dist/{server/shared → core}/field-traversal/kernel.d.ts +7 -8
  249. package/dist/{server/shared → core}/field-traversal/kernel.js +6 -6
  250. package/dist/core/field-traversal/predicates.d.ts +24 -0
  251. package/dist/core/field-traversal/predicates.js +17 -0
  252. package/dist/{server/shared → core}/field-traversal/types.d.ts +129 -27
  253. package/dist/{server/shared → core}/field-traversal/types.js +6 -0
  254. package/dist/{server/shared → core}/field-traversal/walkFields.d.ts +2 -3
  255. package/dist/core/index.d.ts +10 -0
  256. package/dist/core/index.js +14 -0
  257. package/dist/{server/shared → core}/lexical/collectTextNodes.d.ts +1 -1
  258. package/dist/{server/shared → core}/lexical/collectTextNodes.js +1 -1
  259. package/dist/{server/shared → core}/lexical/guards.d.ts +1 -1
  260. package/dist/{server/shared → core}/lexical/guards.js +4 -4
  261. package/dist/core/lexical/index.d.ts +6 -0
  262. package/dist/core/lexical/index.js +6 -0
  263. package/dist/{server/shared → core}/lexical/isEmptyRichText.d.ts +1 -1
  264. package/dist/{server/shared → core}/lexical/isEmptyRichText.js +3 -3
  265. package/dist/{server/shared → core}/lexical/traverseLexicalTree.d.ts +1 -1
  266. package/dist/{server/shared → core}/lexical/traverseLexicalTree.js +1 -1
  267. package/dist/core/lexical/types.d.ts +33 -0
  268. package/dist/core/lexical/types.js +11 -0
  269. package/dist/{server/modules → core}/translation-pipeline/TranslationPipeline.d.ts +4 -4
  270. package/dist/{server/modules → core}/translation-pipeline/TranslationPipeline.js +1 -1
  271. package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.d.ts +2 -2
  272. package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.js +3 -2
  273. package/dist/core/translation-pipeline/stages/data-reconciler/index.d.ts +2 -0
  274. package/dist/core/translation-pipeline/stages/data-reconciler/index.js +4 -0
  275. package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.d.ts +2 -2
  276. package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.js +18 -4
  277. package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.d.ts +2 -2
  278. package/dist/{server/modules → core}/translation-pipeline/stages/field-collector/FieldChunkCollector.stage.js +2 -2
  279. package/dist/core/translation-pipeline/stages/field-collector/index.d.ts +2 -0
  280. package/dist/core/translation-pipeline/stages/field-collector/index.js +4 -0
  281. package/dist/core/translation-pipeline/stages/index.d.ts +6 -0
  282. package/dist/core/translation-pipeline/stages/index.js +7 -0
  283. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/PlainTextExpander.d.ts +2 -2
  284. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/PlainTextExpander.js +2 -2
  285. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/RichTextExpander.d.ts +2 -2
  286. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/RichTextExpander.js +3 -3
  287. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.d.ts +2 -2
  288. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.stage.d.ts +2 -2
  289. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.stage.js +4 -4
  290. package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextExpander.interface.d.ts +1 -1
  291. package/dist/core/translation-pipeline/stages/text-expander/index.d.ts +6 -0
  292. package/dist/core/translation-pipeline/stages/text-expander/index.js +6 -0
  293. package/dist/{server/modules → core}/translation-pipeline/stages/translation/Translation.stage.d.ts +2 -2
  294. package/dist/{server/modules → core}/translation-pipeline/stages/translation/Translation.stage.js +1 -1
  295. package/dist/core/translation-pipeline/stages/translation/index.d.ts +1 -0
  296. package/dist/core/translation-pipeline/stages/translation/index.js +3 -0
  297. package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.d.ts +1 -1
  298. package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.js +1 -1
  299. package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.d.ts +1 -1
  300. package/dist/{server/modules → core}/translation-pipeline/stages/translation-applicator/TranslationMutator.stage.js +2 -2
  301. package/dist/core/translation-pipeline/stages/translation-applicator/index.d.ts +2 -0
  302. package/dist/core/translation-pipeline/stages/translation-applicator/index.js +4 -0
  303. package/dist/{server/modules → core}/translation-pipeline/strategies/Overwrite.strategy.d.ts +1 -1
  304. package/dist/{server/modules → core}/translation-pipeline/strategies/Overwrite.strategy.js +1 -1
  305. package/dist/{server/modules → core}/translation-pipeline/strategies/SkipExisting.strategy.d.ts +1 -1
  306. package/dist/{server/modules → core}/translation-pipeline/strategies/SkipExisting.strategy.js +3 -1
  307. package/dist/core/translation-pipeline/strategies/index.d.ts +13 -0
  308. package/dist/{server/modules → core}/translation-pipeline/strategies/index.js +4 -4
  309. package/dist/{server/modules → core}/translation-pipeline/translateContent.d.ts +2 -2
  310. package/dist/{server/modules → core}/translation-pipeline/types/FieldChunk.d.ts +3 -3
  311. package/dist/{server/modules → core}/translation-pipeline/types/Pipeline.d.ts +2 -2
  312. package/dist/{server/modules → core}/translation-pipeline/types/PipelineContext.d.ts +4 -4
  313. package/dist/{server/modules → core}/translation-pipeline/types/TextChunk.d.ts +3 -3
  314. package/dist/{server/modules → core}/translation-pipeline/types/TextChunk.js +2 -2
  315. package/dist/core/translation-pipeline/types/index.d.ts +5 -0
  316. package/dist/core/translation-pipeline/types/index.js +3 -0
  317. package/dist/core/translation-providers/index.d.ts +1 -0
  318. package/dist/core/translation-providers/index.js +5 -0
  319. package/dist/core/utils/index.d.ts +2 -0
  320. package/dist/core/utils/index.js +4 -0
  321. package/dist/{server/shared → core}/utils/isEmpty.js +2 -2
  322. package/dist/{server/shared → core}/utils/isObject.js +1 -1
  323. package/dist/field-actions.d.ts +1 -1
  324. package/dist/field-config.d.ts +1 -1
  325. package/dist/field-config.js +1 -1
  326. package/dist/index.d.ts +5 -4
  327. package/dist/index.js +4 -4
  328. package/dist/plugin.d.ts +1 -1
  329. package/dist/plugin.js +1 -1
  330. package/dist/server/features/_lib/collection-utils.d.ts +1 -1
  331. package/dist/server/features/_lib/index.d.ts +1 -1
  332. package/dist/server/features/_lib/index.js +1 -1
  333. package/dist/server/features/cancel/index.d.ts +1 -1
  334. package/dist/server/features/cancel/index.js +1 -1
  335. package/dist/server/features/cancel-by-collection/index.d.ts +1 -1
  336. package/dist/server/features/cancel-by-collection/index.js +1 -1
  337. package/dist/server/features/cancel-by-collection/model.d.ts +2 -2
  338. package/dist/server/features/cancel-by-collection/model.js +1 -1
  339. package/dist/server/features/createTranslationRoutes.d.ts +1 -1
  340. package/dist/server/features/enqueue-translation/index.d.ts +1 -1
  341. package/dist/server/features/enqueue-translation/index.js +1 -1
  342. package/dist/server/features/enqueue-translation/model.d.ts +2 -2
  343. package/dist/server/features/enqueue-translation/model.js +4 -4
  344. package/dist/server/features/get-collection-status/index.d.ts +1 -1
  345. package/dist/server/features/get-collection-status/index.js +1 -1
  346. package/dist/server/features/get-collection-status/model.d.ts +3 -3
  347. package/dist/server/features/get-collection-status/model.js +1 -1
  348. package/dist/server/features/get-document-status/index.d.ts +2 -2
  349. package/dist/server/features/get-document-status/index.js +2 -2
  350. package/dist/server/features/run-translation/index.d.ts +1 -1
  351. package/dist/server/features/run-translation/index.js +1 -1
  352. package/dist/server/features/translate-document/handler.d.ts +3 -2
  353. package/dist/server/features/translate-document/handler.js +1 -1
  354. package/dist/server/features/translate-document/index.d.ts +1 -1
  355. package/dist/server/features/translate-document/model.d.ts +2 -7
  356. package/dist/server/features/translate-document/model.js +1 -2
  357. package/dist/server/features/translate-field/handler.js +1 -1
  358. package/dist/server/features/translate-field/index.d.ts +2 -1
  359. package/dist/server/features/translate-field/model.d.ts +2 -19
  360. package/dist/server/features/translate-field/resolveFieldSubtree.js +1 -1
  361. package/dist/server/features/translate-field/route.d.ts +1 -1
  362. package/dist/server/index.d.ts +3 -3
  363. package/dist/server/index.js +3 -3
  364. package/dist/server/modules/index.d.ts +2 -2
  365. package/dist/server/modules/index.js +2 -2
  366. package/dist/server/modules/task-runner/TaskRunner.interface.d.ts +2 -2
  367. package/dist/server/modules/task-runner/TaskRunnerProvider.interface.d.ts +1 -1
  368. package/dist/server/modules/task-runner/index.d.ts +1 -1
  369. package/dist/server/modules/task-runner/payload-jobs-runner/index.d.ts +2 -2
  370. package/dist/server/modules/task-runner/payload-jobs-runner/index.js +1 -1
  371. package/dist/server/modules/task-runner/sync-runner/index.d.ts +1 -1
  372. package/dist/server/modules/task-runner/sync-runner/index.js +1 -1
  373. package/dist/server/modules/translation-levels/PluginConfigBuilder.d.ts +3 -3
  374. package/dist/server/modules/translation-levels/index.d.ts +1 -4
  375. package/dist/server/modules/translation-levels/index.js +1 -3
  376. package/dist/server/modules/translation-levels/types.d.ts +3 -3
  377. package/dist/server/shared/access/AnyAccessGuard.d.ts +1 -1
  378. package/dist/server/shared/access/handler.d.ts +1 -1
  379. package/dist/server/shared/access/index.d.ts +3 -3
  380. package/dist/server/shared/access/index.js +1 -1
  381. package/dist/server/shared/access/types.d.ts +1 -1
  382. package/dist/server/shared/guards/collection-guards.d.ts +1 -1
  383. package/dist/server/shared/guards/collection-guards.js +2 -2
  384. package/dist/server/shared/guards/field-guards.d.ts +9 -20
  385. package/dist/server/shared/guards/field-guards.js +5 -20
  386. package/dist/server/shared/guards/index.d.ts +3 -3
  387. package/dist/server/shared/guards/index.js +2 -2
  388. package/dist/server/shared/http/ServerResponse.js +15 -15
  389. package/dist/server/shared/http/index.d.ts +3 -3
  390. package/dist/server/shared/http/index.js +3 -3
  391. package/dist/server/shared/http/withAccessCheck.d.ts +2 -2
  392. package/dist/server/shared/http/withAccessCheck.js +1 -1
  393. package/dist/server/shared/http/withErrorHandler.js +3 -3
  394. package/dist/server/shared/index.d.ts +6 -5
  395. package/dist/server/shared/index.js +4 -3
  396. package/dist/server/shared/utils/filterLocalizedFields.js +2 -2
  397. package/dist/server/shared/utils/getByPath.js +2 -2
  398. package/dist/server/shared/utils/index.d.ts +9 -9
  399. package/dist/server/shared/utils/index.js +8 -8
  400. package/dist/server/shared/utils/normalizePath.js +3 -3
  401. package/dist/server/shared/utils/setByPath.js +2 -2
  402. package/dist/translation-providers/index.d.ts +2 -0
  403. package/dist/translation-providers/index.js +10 -0
  404. package/dist/{server/modules/translation-providers → translation-providers/openai}/OpenAITranslation.provider.d.ts +1 -1
  405. package/dist/{server/modules/translation-providers → translation-providers/openai}/OpenAITranslation.provider.js +1 -1
  406. package/dist/translation-providers/openai/index.d.ts +1 -0
  407. package/dist/translation-providers/openai/index.js +5 -0
  408. package/dist/types/CollectionSchemaMap.d.ts +6 -0
  409. package/dist/types/CollectionSchemaMap.js +6 -0
  410. package/dist/{client/shared/types → types}/PayloadComponentExport.d.ts +1 -1
  411. package/dist/types/index.d.ts +4 -1
  412. package/dist/types/wire/field-translation.d.ts +17 -0
  413. package/dist/types/wire/field-translation.js +7 -0
  414. package/package.json +3 -1
  415. package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.d.ts +0 -2
  416. package/dist/server/modules/translation-pipeline/stages/data-reconciler/index.js +0 -4
  417. package/dist/server/modules/translation-pipeline/stages/field-collector/index.d.ts +0 -2
  418. package/dist/server/modules/translation-pipeline/stages/field-collector/index.js +0 -4
  419. package/dist/server/modules/translation-pipeline/stages/index.d.ts +0 -6
  420. package/dist/server/modules/translation-pipeline/stages/index.js +0 -7
  421. package/dist/server/modules/translation-pipeline/stages/text-expander/index.d.ts +0 -6
  422. package/dist/server/modules/translation-pipeline/stages/text-expander/index.js +0 -6
  423. package/dist/server/modules/translation-pipeline/stages/translation/index.d.ts +0 -1
  424. package/dist/server/modules/translation-pipeline/stages/translation/index.js +0 -3
  425. package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.d.ts +0 -2
  426. package/dist/server/modules/translation-pipeline/stages/translation-applicator/index.js +0 -4
  427. package/dist/server/modules/translation-pipeline/strategies/index.d.ts +0 -13
  428. package/dist/server/modules/translation-pipeline/types/index.d.ts +0 -5
  429. package/dist/server/modules/translation-pipeline/types/index.js +0 -3
  430. package/dist/server/modules/translation-providers/index.d.ts +0 -2
  431. package/dist/server/modules/translation-providers/index.js +0 -3
  432. package/dist/server/shared/field-config/getFieldConfig.d.ts +0 -20
  433. package/dist/server/shared/field-config/index.js +0 -4
  434. package/dist/server/shared/field-traversal/index.d.ts +0 -5
  435. package/dist/server/shared/field-traversal/index.js +0 -5
  436. package/dist/server/shared/lexical/index.d.ts +0 -6
  437. package/dist/server/shared/lexical/index.js +0 -6
  438. package/dist/server/shared/lexical/types.d.ts +0 -19
  439. package/dist/server/shared/lexical/types.js +0 -8
  440. /package/dist/{server/shared → core}/field-config/types.d.ts +0 -0
  441. /package/dist/{server/shared → core}/field-config/types.js +0 -0
  442. /package/dist/{server/shared → core}/field-traversal/findFieldByPath.js +0 -0
  443. /package/dist/{server/shared → core}/field-traversal/walkFields.js +0 -0
  444. /package/dist/{server/modules → core}/translation-pipeline/index.d.ts +0 -0
  445. /package/dist/{server/modules → core}/translation-pipeline/index.js +0 -0
  446. /package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.stage.d.ts +0 -0
  447. /package/dist/{server/modules → core}/translation-pipeline/stages/data-reconciler/DataReconciler.stage.js +0 -0
  448. /package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextChunkExpander.js +0 -0
  449. /package/dist/{server/modules → core}/translation-pipeline/stages/text-expander/TextExpander.interface.js +0 -0
  450. /package/dist/{server/modules → core}/translation-pipeline/strategies/TranslationStrategy.interface.d.ts +0 -0
  451. /package/dist/{server/modules → core}/translation-pipeline/strategies/TranslationStrategy.interface.js +0 -0
  452. /package/dist/{server/modules → core}/translation-pipeline/translateContent.js +0 -0
  453. /package/dist/{server/modules → core}/translation-pipeline/types/FieldChunk.js +0 -0
  454. /package/dist/{server/modules → core}/translation-pipeline/types/Pipeline.js +0 -0
  455. /package/dist/{server/modules → core}/translation-pipeline/types/PipelineContext.js +0 -0
  456. /package/dist/{server/modules → core}/translation-providers/TranslationProvider.interface.d.ts +0 -0
  457. /package/dist/{server/modules → core}/translation-providers/TranslationProvider.interface.js +0 -0
  458. /package/dist/{server/shared → core}/utils/isEmpty.d.ts +0 -0
  459. /package/dist/{server/shared → core}/utils/isObject.d.ts +0 -0
  460. /package/dist/{client/shared/types → types}/PayloadComponentExport.js +0 -0
@@ -1,14 +1,14 @@
1
- import { z } from 'zod';
2
- import { FORM_FIELDS } from './constants';
1
+ import { z } from "zod";
2
+ import { FORM_FIELDS } from "./constants";
3
3
  export const validationSchema = z.object({
4
4
  [FORM_FIELDS.SOURCE_LNG]: z.string().nonempty(),
5
5
  [FORM_FIELDS.TARGET_LNG]: z.string().nonempty(),
6
6
  [FORM_FIELDS.HIDDEN_COLLECTION_ID]: z.string().nonempty(),
7
7
  [FORM_FIELDS.HIDDEN_COLLECTION_SLUG]: z.string().nonempty(),
8
8
  [FORM_FIELDS.STRATEGY]: z.enum([
9
- 'overwrite',
10
- 'skip_existing'
11
- ]).default('overwrite'),
9
+ "overwrite",
10
+ "skip_existing"
11
+ ]).default("overwrite"),
12
12
  [FORM_FIELDS.PUBLISH_ON_TRANSLATION]: z.boolean().default(false)
13
13
  });
14
14
 
@@ -5,5 +5,5 @@ type DocumentTranslationFormProps = {
5
5
  onSubmit: (values: FormValues) => Promise<void>;
6
6
  hasDrafts?: boolean;
7
7
  };
8
- export declare function DocumentTranslationForm({ form, onSubmit, hasDrafts }: DocumentTranslationFormProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function DocumentTranslationForm({ form, onSubmit, hasDrafts, }: DocumentTranslationFormProps): import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -1 +1 @@
1
- export { DocumentTranslationForm } from './DocumentTranslationForm';
1
+ export { DocumentTranslationForm } from "./DocumentTranslationForm";
@@ -1,3 +1,3 @@
1
- export { DocumentTranslationForm } from './DocumentTranslationForm';
1
+ export { DocumentTranslationForm } from "./DocumentTranslationForm";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -15,4 +15,4 @@
15
15
  .submit-button {
16
16
  margin: 0;
17
17
  width: 100%;
18
- }
18
+ }
@@ -1,4 +1,4 @@
1
- import type { ZodIssue } from 'zod';
1
+ import type { ZodIssue } from "zod";
2
2
  export declare class NextApiError extends Error {
3
3
  readonly message: string;
4
4
  readonly details?: ZodIssue[] | undefined;
@@ -1,4 +1,4 @@
1
- import { FetchError } from 'ofetch';
1
+ import { FetchError } from "ofetch";
2
2
  export class NextApiError extends Error {
3
3
  message;
4
4
  details;
@@ -19,7 +19,7 @@ export async function handleNextApiError(callback) {
19
19
  if (e instanceof Error) {
20
20
  throw new NextApiError(e.message);
21
21
  }
22
- throw new NextApiError('Unknown error');
22
+ throw new NextApiError("Unknown error");
23
23
  }
24
24
  }
25
25
 
@@ -1,2 +1,2 @@
1
- import type { UseFormReturn } from 'react-hook-form';
1
+ import type { UseFormReturn } from "react-hook-form";
2
2
  export declare function handleFormError<D extends object>(error: unknown, form: UseFormReturn<D, unknown, any>): void;
@@ -1,24 +1,24 @@
1
- import { NextApiError } from '../errors/handleApiError';
1
+ import { NextApiError } from "../errors/handleApiError";
2
2
  export function handleFormError(error, form) {
3
3
  if (error instanceof NextApiError) {
4
4
  if (error.details) {
5
5
  error.details?.forEach((error)=>{
6
- form.setError(error.path.join('.'), {
6
+ form.setError(error.path.join("."), {
7
7
  message: error.message
8
8
  });
9
9
  });
10
10
  } else {
11
- form.setError('root', {
11
+ form.setError("root", {
12
12
  message: error.message
13
13
  });
14
14
  }
15
15
  } else if (error instanceof Error) {
16
- form.setError('root', {
16
+ form.setError("root", {
17
17
  message: error.message
18
18
  });
19
19
  } else {
20
- form.setError('root', {
21
- message: 'Unknown error'
20
+ form.setError("root", {
21
+ message: "Unknown error"
22
22
  });
23
23
  }
24
24
  }
@@ -1,4 +1,4 @@
1
- import type { CollectionSlug } from 'payload';
1
+ import type { CollectionSlug } from "payload";
2
2
  type UseCollectionUrlParamsReturn = {
3
3
  collection: CollectionSlug;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { useParams } from 'next/navigation';
1
+ import { useParams } from "next/navigation";
2
2
  export function useCollectionDashboardUrlParams() {
3
3
  const { segments } = useParams();
4
4
  if (!segments) {
@@ -1,4 +1,4 @@
1
- import type { CollectionSlug } from 'payload';
1
+ import type { CollectionSlug } from "payload";
2
2
  type CollectionItemId = string;
3
3
  type UseCollectionUrlParamsReturn = {
4
4
  collection: CollectionSlug;
@@ -1,9 +1,9 @@
1
- import { useParams } from 'next/navigation';
1
+ import { useParams } from "next/navigation";
2
2
  export function useCollectionDocumentUrlParams() {
3
3
  const params = useParams();
4
4
  const segments = params.segments;
5
5
  if (!segments) {
6
- throw new Error('useCollectionUrlParams hook can only be called on collection pages. Make sure you are using this hook within a Payload collection context.');
6
+ throw new Error("useCollectionUrlParams hook can only be called on collection pages. Make sure you are using this hook within a Payload collection context.");
7
7
  }
8
8
  return {
9
9
  collection: segments[1],
@@ -1,5 +1,5 @@
1
- import { useConfig } from '@payloadcms/ui';
2
- import { useMemo } from 'react';
1
+ import { useConfig } from "@payloadcms/ui";
2
+ import { useMemo } from "react";
3
3
  export function useLocaleOptions() {
4
4
  const appConfig = useConfig();
5
5
  return useMemo(()=>appConfig.config.localization ? appConfig.config.localization.locales.map((l)=>({
@@ -1,4 +1,4 @@
1
- import type { ZodIssue } from 'zod';
1
+ import type { ZodIssue } from "zod";
2
2
  export declare class TranslationApiError extends Error {
3
3
  readonly message: string;
4
4
  readonly details?: ZodIssue[] | undefined;
@@ -1,4 +1,4 @@
1
- import { FetchError } from 'ofetch';
1
+ import { FetchError } from "ofetch";
2
2
  export class TranslationApiError extends Error {
3
3
  message;
4
4
  details;
@@ -19,7 +19,7 @@ export async function handleApiError(callback) {
19
19
  if (e instanceof Error) {
20
20
  throw new TranslationApiError(e.message);
21
21
  }
22
- throw new TranslationApiError('Unknown error');
22
+ throw new TranslationApiError("Unknown error");
23
23
  }
24
24
  }
25
25
 
@@ -1,4 +1,4 @@
1
- import { useCallback, useState } from 'react';
1
+ import { useCallback, useState } from "react";
2
2
  export function useToggle(initialValue = false) {
3
3
  const [value, setValue] = useState(initialValue);
4
4
  const toggle = useCallback(()=>{
@@ -1,4 +1,4 @@
1
- import { QueryClient } from '@tanstack/react-query';
1
+ import { QueryClient } from "@tanstack/react-query";
2
2
  export interface QueryClientConfig {
3
3
  staleTime?: number;
4
4
  gcTime?: number;
@@ -8,7 +8,7 @@ export interface QueryClientConfig {
8
8
  refetchOnMount?: boolean;
9
9
  retryDelay?: number | ((attemptIndex: number) => number);
10
10
  }
11
- export type QueryClientType = 'server' | 'client';
11
+ export type QueryClientType = "server" | "client";
12
12
  export declare class CacheClientProviderFactory {
13
13
  private clientQueryClient;
14
14
  private readonly config;
@@ -1,4 +1,4 @@
1
- import { QueryClient } from '@tanstack/react-query';
1
+ import { QueryClient } from "@tanstack/react-query";
2
2
  export class CacheClientProviderFactory {
3
3
  clientQueryClient = null;
4
4
  config;
@@ -19,9 +19,9 @@ export class CacheClientProviderFactory {
19
19
  * Creates QueryClient with specified type
20
20
  */ create(type) {
21
21
  switch(type){
22
- case 'server':
22
+ case "server":
23
23
  return this.createServerQueryClient();
24
- case 'client':
24
+ case "client":
25
25
  if (!this.clientQueryClient) {
26
26
  this.clientQueryClient = this.createClientQueryClient();
27
27
  }
@@ -1 +1 @@
1
- export { CacheClientProviderFactory } from './CacheClientProvider.factory';
1
+ export { CacheClientProviderFactory } from "./CacheClientProvider.factory";
@@ -1,3 +1,3 @@
1
- export { CacheClientProviderFactory } from './CacheClientProvider.factory';
1
+ export { CacheClientProviderFactory } from "./CacheClientProvider.factory";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { BasePayload, TypedUser } from 'payload';
1
+ import type { BasePayload, TypedUser } from "payload";
2
2
  export type AccessGuardRequest = {
3
3
  headers: Headers;
4
4
  user?: TypedUser | null;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- export type AlertVariant = 'transparent' | 'info' | 'warning' | 'error';
1
+ import React from "react";
2
+ export type AlertVariant = "transparent" | "info" | "warning" | "error";
3
3
  export interface AlertProps {
4
4
  variant?: AlertVariant;
5
5
  children: React.ReactNode;
@@ -1,32 +1,32 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import classNames from 'classnames';
3
- import React from 'react';
4
- import styles from './styles.module.scss';
2
+ import classNames from "classnames";
3
+ import React from "react";
4
+ import styles from "./styles.module.scss";
5
5
  const getRole = (variant)=>{
6
6
  switch(variant){
7
- case 'error':
8
- return 'alert';
9
- case 'warning':
10
- return 'alert';
11
- case 'info':
12
- return 'status';
7
+ case "error":
8
+ return "alert";
9
+ case "warning":
10
+ return "alert";
11
+ case "info":
12
+ return "status";
13
13
  default:
14
- return 'status';
14
+ return "status";
15
15
  }
16
16
  };
17
17
  const getAriaLive = (variant)=>{
18
18
  switch(variant){
19
- case 'error':
20
- return 'assertive';
21
- case 'warning':
22
- return 'polite';
23
- case 'info':
24
- return 'polite';
19
+ case "error":
20
+ return "assertive";
21
+ case "warning":
22
+ return "polite";
23
+ case "info":
24
+ return "polite";
25
25
  default:
26
- return 'polite';
26
+ return "polite";
27
27
  }
28
28
  };
29
- const Alert = ({ variant = 'transparent', children, className })=>{
29
+ const Alert = ({ variant = "transparent", children, className })=>{
30
30
  return /*#__PURE__*/ _jsx("div", {
31
31
  className: classNames(styles.alert, styles[`alert--${variant}`], className),
32
32
  role: getRole(variant),
@@ -1 +1 @@
1
- export { default } from './Alert';
1
+ export { default } from "./Alert";
@@ -1,3 +1,3 @@
1
- export { default } from './Alert';
1
+ export { default } from "./Alert";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -28,4 +28,4 @@
28
28
  border-color: var(--color-error-400);
29
29
  color: var(--color-error-700);
30
30
  }
31
- }
31
+ }
@@ -1 +1 @@
1
- export { default } from './Button';
1
+ export { default } from "./Button";
@@ -1,3 +1,3 @@
1
- export { default } from './Button';
1
+ export { default } from "./Button";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -7,7 +7,10 @@
7
7
  justify-content: center;
8
8
  align-items: center;
9
9
  text-decoration: none;
10
- transition: background 0.1s ease-in-out, opacity 0.2s ease-in-out, border-color 0.2s ease-in-out;
10
+ transition:
11
+ background 0.1s ease-in-out,
12
+ opacity 0.2s ease-in-out,
13
+ border-color 0.2s ease-in-out;
11
14
  background: none;
12
15
  padding-block: 0.25rem;
13
16
  padding-inline: var(--padding-inline);
@@ -97,7 +100,7 @@
97
100
 
98
101
  &:hover:not(:disabled),
99
102
  &:focus {
100
- background-color: transparent
103
+ background-color: transparent;
101
104
  }
102
105
  }
103
106
 
@@ -123,4 +126,4 @@
123
126
  background-color: var(--theme-elevation-50);
124
127
  color: var(--theme-elevation-400);
125
128
  }
126
- }
129
+ }
@@ -1,5 +1,5 @@
1
- import type { ComponentPropsWithRef } from 'react';
2
- type CheckboxProps = Omit<ComponentPropsWithRef<'input'>, 'type'> & {
1
+ import type { ComponentPropsWithRef } from "react";
2
+ type CheckboxProps = Omit<ComponentPropsWithRef<"input">, "type"> & {
3
3
  hasError?: boolean;
4
4
  };
5
5
  declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
- import styles from './styles.module.scss';
4
- const Checkbox = /*#__PURE__*/ forwardRef(function Checkbox({ className = '', hasError, ...props }, ref) {
2
+ import { forwardRef } from "react";
3
+ import styles from "./styles.module.scss";
4
+ const Checkbox = /*#__PURE__*/ forwardRef(function Checkbox({ className = "", hasError, ...props }, ref) {
5
5
  return /*#__PURE__*/ _jsx("input", {
6
6
  ref: ref,
7
7
  type: "checkbox",
8
- className: `${styles.checkbox} ${hasError ? styles['checkbox--error'] : ''} ${className}`,
8
+ className: `${styles.checkbox} ${hasError ? styles["checkbox--error"] : ""} ${className}`,
9
9
  ...props
10
10
  });
11
11
  });
@@ -1 +1 @@
1
- export { default as Checkbox } from './Checkbox';
1
+ export { default as Checkbox } from "./Checkbox";
@@ -1,3 +1,3 @@
1
- export { default as Checkbox } from './Checkbox';
1
+ export { default as Checkbox } from "./Checkbox";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -14,4 +14,4 @@
14
14
  outline: 2px solid var(--theme-error-500);
15
15
  outline-offset: 2px;
16
16
  }
17
- }
17
+ }
@@ -1,8 +1,8 @@
1
1
  type ColorIndicatorProps = {
2
- $color: 'red' | 'green' | 'blue' | 'gray';
2
+ $color: "red" | "green" | "blue" | "gray";
3
3
  $animated?: boolean;
4
4
  title?: string;
5
5
  className?: string;
6
6
  };
7
- export default function ColorIndicator({ $color, $animated, title, className }: ColorIndicatorProps): import("react/jsx-runtime").JSX.Element;
7
+ export default function ColorIndicator({ $color, $animated, title, className, }: ColorIndicatorProps): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import classNames from 'classnames';
3
- import styles from './styles.module.scss';
2
+ import classNames from "classnames";
3
+ import styles from "./styles.module.scss";
4
4
  export default function ColorIndicator({ $color, $animated, title, className }) {
5
5
  return /*#__PURE__*/ _jsx("div", {
6
6
  title: title,
@@ -1 +1 @@
1
- export { default } from './ColorIndicator';
1
+ export { default } from "./ColorIndicator";
@@ -1,3 +1,3 @@
1
- export { default } from './ColorIndicator';
1
+ export { default } from "./ColorIndicator";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -34,4 +34,4 @@
34
34
  50% {
35
35
  opacity: 0.5;
36
36
  }
37
- }
37
+ }
@@ -1,7 +1,7 @@
1
- import type { ComponentPropsWithoutRef } from 'react';
2
- type DescriptionProps = ComponentPropsWithoutRef<'div'> & {
1
+ import type { ComponentPropsWithoutRef } from "react";
2
+ type DescriptionProps = ComponentPropsWithoutRef<"div"> & {
3
3
  id: string;
4
- variant?: 'default' | 'error';
4
+ variant?: "default" | "error";
5
5
  };
6
6
  export default function Description({ children, className, id, variant, ...props }: DescriptionProps): import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -1,12 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import styles from './styles.module.scss';
3
- export default function Description({ children, className = '', id, variant = 'default', ...props }) {
2
+ import styles from "./styles.module.scss";
3
+ export default function Description({ children, className = "", id, variant = "default", ...props }) {
4
4
  const descriptionClassName = `${styles.description} ${styles[variant]} ${className}`;
5
5
  return /*#__PURE__*/ _jsx("p", {
6
6
  id: id,
7
7
  className: descriptionClassName,
8
- role: variant === 'error' ? 'alert' : undefined,
9
- "aria-live": variant === 'error' ? 'polite' : undefined,
8
+ role: variant === "error" ? "alert" : undefined,
9
+ "aria-live": variant === "error" ? "polite" : undefined,
10
10
  ...props,
11
11
  children: children
12
12
  });
@@ -1 +1 @@
1
- export { default } from './Description';
1
+ export { default } from "./Description";
@@ -1,3 +1,3 @@
1
- export { default } from './Description';
1
+ export { default } from "./Description";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -11,4 +11,4 @@
11
11
  .error {
12
12
  color: var(--theme-error-600);
13
13
  font-weight: 500;
14
- }
14
+ }
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
1
+ import * as React from "react";
2
2
  type DividerProps = {
3
- $orientation?: 'horizontal' | 'vertical';
4
- $size?: 'sm' | 'md' | 'lg';
5
- $color?: 'light' | 'medium' | 'dark';
3
+ $orientation?: "horizontal" | "vertical";
4
+ $size?: "sm" | "md" | "lg";
5
+ $color?: "light" | "medium" | "dark";
6
6
  className?: string;
7
7
  style?: React.CSSProperties;
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import classNames from 'classnames';
3
- import * as React from 'react';
4
- import styles from './styles.module.scss';
5
- const Divider = /*#__PURE__*/ React.forwardRef(function Divider({ $orientation = 'horizontal', $size = 'md', $color = 'medium', className, style, ...props }, ref) {
2
+ import classNames from "classnames";
3
+ import * as React from "react";
4
+ import styles from "./styles.module.scss";
5
+ const Divider = /*#__PURE__*/ React.forwardRef(function Divider({ $orientation = "horizontal", $size = "md", $color = "medium", className, style, ...props }, ref) {
6
6
  return /*#__PURE__*/ _jsx("hr", {
7
7
  ref: ref,
8
8
  className: classNames(styles.divider, styles[$orientation], styles[$size], styles[$color], className),
@@ -1 +1 @@
1
- export { default } from './Divider';
1
+ export { default } from "./Divider";
@@ -1,3 +1,3 @@
1
- export { default } from './Divider';
1
+ export { default } from "./Divider";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -53,4 +53,4 @@
53
53
  &.dark {
54
54
  background-color: var(--theme-elevation-300);
55
55
  }
56
- }
56
+ }
@@ -1,5 +1,5 @@
1
- import type { ComponentPropsWithRef, ReactElement } from 'react';
2
- type LabelProps = ComponentPropsWithRef<'label'> & {
1
+ import type { ComponentPropsWithRef, ReactElement } from "react";
2
+ type LabelProps = ComponentPropsWithRef<"label"> & {
3
3
  label: string | ReactElement;
4
4
  };
5
5
  declare const Label: import("react").ForwardRefExoticComponent<Omit<LabelProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
3
- import styles from './styles.module.scss';
4
- const Label = /*#__PURE__*/ forwardRef(function Label({ children, className = '', label, ...props }, ref) {
2
+ import { forwardRef } from "react";
3
+ import styles from "./styles.module.scss";
4
+ const Label = /*#__PURE__*/ forwardRef(function Label({ children, className = "", label, ...props }, ref) {
5
5
  return /*#__PURE__*/ _jsxs("label", {
6
6
  ref: ref,
7
7
  className: `${styles.label} ${className}`,
@@ -1 +1 @@
1
- export { default } from './Label';
1
+ export { default } from "./Label";
@@ -1,3 +1,3 @@
1
- export { default } from './Label';
1
+ export { default } from "./Label";
2
2
 
3
3
  //# sourceMappingURL=index.js.map
@@ -9,4 +9,4 @@
9
9
  &__text {
10
10
  padding-bottom: 5px;
11
11
  }
12
- }
12
+ }
@@ -1,7 +1,7 @@
1
1
  type LoadingProps = {
2
2
  text?: string;
3
3
  className?: string;
4
- size?: 'small' | 'medium';
4
+ size?: "small" | "medium";
5
5
  };
6
6
  declare function Loading({ text, className, size }: LoadingProps): import("react/jsx-runtime").JSX.Element;
7
7
  export default Loading;
@@ -1,21 +1,21 @@
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
- function Loading({ text, className, size = 'medium' }) {
2
+ import classNames from "classnames";
3
+ import styles from "./styles.module.scss";
4
+ function Loading({ text, className, size = "medium" }) {
5
5
  return /*#__PURE__*/ _jsxs("div", {
6
- className: classNames(styles['loading-overlay'], styles['loading-overlay--entering'], className),
6
+ className: classNames(styles["loading-overlay"], styles["loading-overlay--entering"], className),
7
7
  style: {
8
- animationDuration: '500ms'
8
+ animationDuration: "500ms"
9
9
  },
10
10
  children: [
11
11
  /*#__PURE__*/ _jsx("div", {
12
- className: classNames(styles['loading-overlay__bars'], styles[`loading-overlay__bars_${size}`]),
13
- children: new Array(size === 'small' ? 2 : 5).fill(null).map((_, index)=>/*#__PURE__*/ _jsx("div", {
14
- className: classNames(styles['loading-overlay__bar'], styles[`loading-overlay__bar_size-${size}`])
12
+ className: classNames(styles["loading-overlay__bars"], styles[`loading-overlay__bars_${size}`]),
13
+ children: new Array(size === "small" ? 2 : 5).fill(null).map((_, index)=>/*#__PURE__*/ _jsx("div", {
14
+ className: classNames(styles["loading-overlay__bar"], styles[`loading-overlay__bar_size-${size}`])
15
15
  }, index))
16
16
  }),
17
17
  text && /*#__PURE__*/ _jsx("span", {
18
- className: styles['loading-overlay__text'],
18
+ className: styles["loading-overlay__text"],
19
19
  children: text
20
20
  })
21
21
  ]